/* ==========================================================================
   Home only: hero (the WebGL shader arrives in phase 3; this is its CSS fallback)
   ========================================================================== */

.hero { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; display: grid; place-items: center;
  background:
    radial-gradient(60% 70% at 70% 30%, var(--orange) 0%, transparent 60%),
    radial-gradient(70% 80% at 25% 70%, var(--cobalt) 0%, transparent 65%),
    var(--paper); }
/* soft bright centre so the headline reads over the colour */
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 50% at 50% 48%, rgba(242, 243, 237, .92) 0%, rgba(242, 243, 237, .55) 55%, rgba(242, 243, 237, 0) 100%); }
.hero__copy { position: relative; z-index: 2; max-width: 1000px; padding: 96px var(--pad) 72px; text-align: center; will-change: transform, opacity; }
.badge { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; padding: 10px 16px 10px 12px; border-radius: var(--pill);
  font: 400 var(--fs-ui)/1 var(--sans); color: var(--ink); background: rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(23, 24, 19, .08); animation-delay: .15s; }
.badge img { width: auto; height: 22px; }
.hero h1 { font: 400 clamp(50px, 8vw, 128px)/.96 var(--serif); letter-spacing: -.03em; text-wrap: balance; color: var(--ink); }
.hero__sub { max-width: 50ch; margin: 26px auto 0; font: 400 var(--fs-body)/1.5 var(--sans); color: #33342E; text-wrap: pretty; }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; animation-delay: 1.05s; }

.scroll-hint { position: absolute; left: 50%; bottom: 24px; z-index: 2; width: 1px; height: 44px; overflow: hidden; transform: translateX(-50%);
  background: linear-gradient(rgba(23, 24, 19, .5), transparent); }
.scroll-hint::after { content: ""; position: absolute; inset: 0; background: var(--ink); animation: drip 2s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

@media (max-width: 720px) {
  .hero__copy { padding: 110px 22px 64px; }
  .badge { font-size: 15px; margin-bottom: 22px; }
  .hero h1 { font-size: clamp(46px, 13vw, 64px); }
  .hero__ctas { flex-direction: column; align-items: stretch; max-width: 340px; margin-left: auto; margin-right: auto; }
  .hero__ctas .cta { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .scroll-hint::after { animation: none; } }

/* ---------- WebGL shader (falls back to the CSS gradient above) ---------- */
.hero__shader { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; }
.hero.gl-on::before { display: none; }          /* the shader brightens its own centre */
.hero.gl-off .hero__shader { display: none; }

/* ---------- Results: project blocks (Ragged Edge structure) ---------- */
.results { padding-bottom: clamp(24px, 4vw, 48px); }
.project { display: block; color: inherit; text-decoration: none; margin-bottom: clamp(88px, 12vw, 168px); border-radius: 8px; }
.project:focus-visible { outline: 2px solid var(--ink); outline-offset: 8px; }
.project__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #E2E3DB;
  clip-path: inset(8% 6% 8% 6% round 4px); transform: scale(.96); transition: clip-path 1.2s var(--ease), transform 1.2s var(--ease); }
.project.in-view .project__media { clip-path: inset(0 0 0 0 round 4px); transform: none; }
.project__media video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.6s var(--ease); }
.project.in-view .project__media video { transform: scale(1); }
.project:hover .project__media video { transform: scale(1.03); transition-duration: 1.2s; }
.project__tag { position: absolute; left: 16px; bottom: 16px; padding: 9px 14px; border-radius: var(--pill); font: 400 var(--fs-ui)/1 var(--sans);
  color: var(--paper); background: rgba(23, 24, 19, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.project__pill { position: absolute; right: 16px; bottom: 16px; padding: 12px 18px; border-radius: var(--pill); font: 500 var(--fs-ui)/1 var(--sans);
  color: var(--ink); background: var(--paper); opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.project:hover .project__pill, .project:focus-visible .project__pill { opacity: 1; transform: none; }
@media (hover: none) { .project__pill { opacity: 1; transform: none; } }
.project__soon { display: grid; place-items: center; height: 100%; text-align: center;
  background: radial-gradient(70% 90% at 20% 20%, rgba(30, 63, 216, .35), transparent 70%), radial-gradient(60% 80% at 85% 85%, rgba(255, 106, 26, .35), transparent 70%), #ECEDE6; }
.project__soon span { font: italic 400 clamp(28px, 3.6vw, 48px)/1.1 var(--serif); }
.project__meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 56px; margin-top: 28px; align-items: start; }
.project__meta h3 { font: 400 clamp(34px, 3.6vw, 52px)/1.02 var(--serif); letter-spacing: -.02em; }
.project__line { margin-top: 12px; max-width: 34ch; font: 400 var(--fs-body)/1.45 var(--sans); color: var(--mute); }
.stat { display: flex; align-items: center; gap: 12px; font: 500 clamp(22px, 2vw, 28px)/1.2 var(--sans); letter-spacing: -.01em; }
.stat + .stat { margin-top: 12px; }
.plus { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--on-accent);
  font: 500 18px/1 var(--sans); transform: scale(0); transition: transform .7s var(--ease) .1s; }
.stat.on .plus, .reveal-off .plus { transform: scale(1); }
.project__note { margin-top: 18px; max-width: 44ch; font: 400 clamp(17px, 1.4vw, 19px)/1.45 var(--serif); color: var(--mute); }
@media (max-width: 720px) { .project__meta { grid-template-columns: 1fr; } }

/* ---------- Services: three giant words ---------- */
.services { padding-bottom: clamp(88px, 11vw, 150px); }
.services h2 { margin-bottom: clamp(24px, 3vw, 40px); font: 400 clamp(28px, 3vw, 40px)/1.05 var(--serif); letter-spacing: -.02em; }
.svc-words { list-style: none; border-top: 1px solid var(--line); }
.svc-row { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 16px 48px;
  padding: clamp(18px, 2.4vw, 30px) 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.svc-row:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 8px; }
.svc-word { font: 400 clamp(72px, 12vw, 190px)/.9 var(--serif); letter-spacing: -.04em; transition: transform .8s var(--ease); }
.svc-word i { font-style: normal; color: var(--accent); }
.svc-text { max-width: 36ch; font: 400 var(--fs-body)/1.5 var(--sans); color: var(--mute); }
.svc-peek { position: absolute; z-index: 3; top: 0; left: 0; width: clamp(180px, 16vw, 240px); aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; pointer-events: none;
  box-shadow: 0 30px 60px -30px rgba(23, 24, 19, .5); opacity: 0; transform: translate(var(--px, 60%), var(--py, 0)) rotate(-4deg) scale(.6);
  transition: opacity .4s var(--ease), transform .7s var(--ease); }
.svc-peek video, .svc-peek img { width: 100%; height: 100%; object-fit: cover; }
.svc-row:hover .svc-peek, .svc-row:focus-visible .svc-peek { opacity: 1; transform: translate(var(--px, 60%), var(--py, 0)) rotate(-4deg) scale(1); }
.svc-row:hover .svc-word { transform: translateX(18px); }
@media (hover: none), (max-width: 820px) {
  .svc-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "word peek" "text peek"; }
  .svc-word { grid-area: word; font-size: clamp(64px, 19vw, 110px); }
  .svc-text { grid-area: text; }
  .svc-peek { grid-area: peek; position: relative; opacity: 1; transform: rotate(-3deg); width: clamp(96px, 26vw, 150px); }
  .svc-row:hover .svc-peek { transform: rotate(-3deg); }
  .svc-row:hover .svc-word { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .project__media, .project__media video { clip-path: none !important; transform: none !important; }
  .plus { transform: none; }
}

/* ---------- growth chart (Mosaic): 18 months before vs last 18 months ---------- */
.growth { display: grid; gap: 10px; margin: 22px 0 4px; max-width: 420px; }
.growth__row { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); align-items: center; gap: 12px; }
.growth__label { font: 400 15px/1.3 var(--sans); color: var(--mute); }
.growth__track { position: relative; display: flex; align-items: center; gap: 10px; height: 22px; }
.growth__bar { display: block; height: 10px; width: calc(var(--v) * (100% - 4.2em)); border-radius: 6px; background: rgba(23, 24, 19, .24);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.4s var(--ease) .3s; }
.growth__bar--now { background: var(--accent); transition-delay: .55s; }
.growth__value { font: 600 15px/1 var(--sans); color: var(--accent); opacity: 0; transition: opacity .6s var(--ease) 1.4s; }
.project.in-view .growth__bar { transform: scaleX(1); }
.project.in-view .growth__value { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .growth__bar { transform: none; } .growth__value { opacity: 1; } }
