/* Digital advertising — scrolling section-hero template, rendered over the shared
   pond scene (#gl is fixed behind, driven by hero.js). Clash Display for the big
   display type, Space Grotesk for body — the approved section-hero direction. */
:root {
  --bg: #0b1224;
  --ink: #f4f6fb;
  --muted: rgba(244, 246, 251, 0.62);
  --soft: rgba(244, 246, 251, 0.82);
  --line: rgba(244, 246, 251, 0.18);
  --accent: #a7bbe6;
  --disp: "Clash Display", "Instrument Serif", Georgia, serif;
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 0 26px rgba(0, 0, 0, 0.4);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(24px, 6vw, 110px);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scrollbar-width: none; }
html::-webkit-scrollbar { width: 0; height: 0; }
body {
  background: #070c19; color: var(--ink); font-family: var(--sans); font-weight: 400;
  font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-image: linear-gradient(rgba(7, 12, 25, 0.16), rgba(7, 12, 25, 0.34)), url("/assets/scene/pond-poster.webp");
  background-size: cover; background-position: center; background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--accent); }
::selection { background: var(--accent); color: #070c19; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 120; padding: 10px 14px; background: var(--ink); color: var(--bg); border-radius: 999px; transform: translateY(-160%); transition: transform 0.2s var(--ease); }
.skip-link:focus { transform: none; }

#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; }
body.no-gl #gl { display: none; }
body.no-gl { background: var(--bg); }
.stage { position: relative; z-index: 1; }

/* Moon white-out overlay (matches home): covers the swap on arrival/leave. */
.flash { position: fixed; inset: 0; z-index: 90; background: #fff; opacity: 0; pointer-events: none; }

.eyebrow { font-size: 0.78rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.3rem; text-shadow: var(--shadow); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5em; }
.breadcrumb a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.28em; }
.breadcrumb a:hover { color: var(--ink); }

/* Header */
.dhead {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
}
.wordmark { font-family: var(--sans); font-weight: 400; letter-spacing: 0.03em; font-size: 1.3rem; line-height: 1; color: var(--ink); text-shadow: var(--shadow); }
.wordmark span { font-family: var(--disp); font-weight: 500; margin-left: 0.28em; }
.dback { display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.95rem; color: var(--ink); text-shadow: var(--shadow); transition: opacity 0.35s var(--ease); }
.dback:hover { opacity: 0.72; }
.dback span { transition: transform 0.35s var(--ease); }
.dback:hover span { transform: translateX(-4px); }

/* Hero — the A stands in the scene behind; copy sits low so the A reads above it. */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--pad) 15vh; position: relative; }
.hero__title { font-family: var(--disp); font-size: clamp(3.2rem, 12vw, 11rem); line-height: 0.9; letter-spacing: -0.02em; font-weight: 600; text-shadow: 0 2px 44px rgba(4, 8, 20, 0.65); max-width: 14ch; }
.hero__sub { margin-top: 1.6rem; max-width: 32ch; color: var(--soft); font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.5; text-shadow: var(--shadow); }
.cta { margin-top: 2.2rem; display: inline-flex; align-items: center; gap: 0.6em; color: var(--ink); font-size: 0.95rem; letter-spacing: 0.02em; width: max-content; border-bottom: 1px solid var(--line); padding-bottom: 6px; transition: border-color 0.35s var(--ease); text-shadow: var(--shadow); }
.cta:hover { border-color: var(--ink); }
.cta span { transition: transform 0.35s var(--ease); }
.cta:hover span { transform: translateX(5px); }
.scrollcue { position: absolute; bottom: 30px; right: var(--pad); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); text-shadow: var(--shadow); }

/* Content sections */
.sect { position: relative; overflow: hidden; padding: 14vh var(--pad) 16vh; }
.ghost { position: absolute; top: -3vh; left: -1vw; font-family: var(--disp); font-size: clamp(7rem, 28vw, 26rem); line-height: 1; font-weight: 700; color: rgba(244, 246, 251, 0.04); letter-spacing: -0.03em; pointer-events: none; user-select: none; z-index: -1; }
.sect__label { font-size: 0.78rem; font-weight: 400; line-height: 1.5; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); margin-bottom: 3rem; text-shadow: var(--shadow); }

.row { display: grid; grid-template-columns: 3.5rem 1fr 1.1fr; gap: clamp(16px, 3vw, 48px); align-items: baseline; padding: 2.1rem 0; border-top: 1px solid var(--line); }
.row:last-child { border-bottom: 1px solid var(--line); }
.row__n { color: var(--muted); font-size: 1rem; font-variant-numeric: tabular-nums; }
.row__t { font-family: var(--disp); font-size: clamp(1.7rem, 3.4vw, 2.8rem); font-weight: 500; letter-spacing: -0.01em; }
.row__d { color: var(--soft); line-height: 1.55; }
.row__tags { margin-top: 0.9rem; display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.row__tags b { font-weight: 400; margin-right: 1.3em; }

.deliver { list-style: none; }
.deliver li { font-size: clamp(1.15rem, 2.1vw, 1.7rem); font-weight: 400; padding: 1.1rem 0 1.1rem 2rem; border-top: 1px solid var(--line); position: relative; color: rgba(244, 246, 251, 0.9); }
.deliver li:last-child { border-bottom: 1px solid var(--line); }
.deliver li::before { content: "\2192"; position: absolute; left: 0; color: var(--accent); }
.deliver--tight li { font-size: clamp(1rem, 1.7vw, 1.3rem); padding-block: 0.75rem; }
.why__lead { font-size: clamp(1.3rem, 2.5vw, 2.1rem); line-height: 1.35; font-weight: 400; max-width: 26ch; margin-bottom: 2.2rem; color: var(--ink); }
.why__lead--wide { max-width: 34ch; }

/* Mid-weight section heading (GEO). Smaller than the hero display type. */
.sect__h { font-family: var(--disp); font-size: clamp(2rem, 5.2vw, 3.8rem); line-height: 1; letter-spacing: -0.02em; font-weight: 600; max-width: 18ch; margin-bottom: 1.5rem; }

/* Certifications — plain, elegant credential text, each on its own hairline. No
   pill/chip/box backing (deliberately): just the words, underlined by a rule. */
.cert-row { display: flex; flex-wrap: wrap; gap: clamp(1.6rem, 4vw, 3.2rem); margin-bottom: 1.6rem; }
.cert { font-family: var(--disp); font-weight: 500; font-size: clamp(1.15rem, 2.2vw, 1.7rem); color: var(--ink); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.cert::before { content: "\2713\00a0"; color: var(--accent); }
.certs__note { color: var(--muted); max-width: 42ch; }

.faq { margin: 0; }
.faq__item { padding: 1.5rem 0; border-top: 1px solid var(--line); max-width: 62ch; }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq dt { font-family: var(--disp); font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 500; margin-bottom: 0.5rem; }
.faq dd { margin: 0; color: var(--soft); line-height: 1.55; }

.sect--cta { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; }
.cta2__h { font-family: var(--disp); font-size: clamp(2.6rem, 8vw, 7rem); line-height: 0.95; letter-spacing: -0.02em; font-weight: 600; max-width: 15ch; }
.cta2 { margin-top: 2.2rem; display: inline-flex; align-items: center; gap: 0.6em; width: max-content; font-size: clamp(1rem, 1.6vw, 1.3rem); border-bottom: 1px solid var(--line); padding-bottom: 8px; transition: border-color 0.35s var(--ease); }
.cta2:hover { border-color: var(--ink); }
.cta2 span { transition: transform 0.35s var(--ease); }
.cta2:hover span { transform: translateX(6px); }
.related { display: flex; flex-wrap: wrap; gap: 0.7rem 1.4rem; margin-top: 3rem; color: var(--muted); font-size: 0.9rem; }
.related a { min-height: 44px; display: inline-flex; align-items: center; border-bottom: 1px solid transparent; }
.related a:hover, .related a[aria-current="page"] { color: var(--ink); border-color: var(--line); }

/* About — full-height "chapters" that each hold the screen as you scroll through
   the journey (Who / Where / What we stand for / Who we work with). */
.chapter { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 18vh var(--pad); position: relative; overflow: hidden; }
.chapter .why__lead { margin-bottom: 1.6rem; }
.chapter__body { color: var(--soft); max-width: 46ch; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.6; }

/* How we work — R → E → A cross the screen; Activate finishes centre and ignites. */
.reveal-steps { position: relative; height: 360vh; }
.steps-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.steps-label { position: absolute; top: 8vh; left: var(--pad); z-index: 3; font-size: 0.78rem; font-weight: 400; line-height: 1.5; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); text-shadow: var(--shadow); }
.hstep {
  position: absolute; top: 50%; left: 50%; width: min(88vw, 42rem); z-index: 2;
  transform: translate(calc(-50% + var(--x, 0px)), -50%) scale(calc(0.9 + var(--a, 0) * 0.1));
  opacity: calc(0.05 + var(--a, 0) * 0.95); will-change: transform, opacity;
}
.hstep__num { position: absolute; left: -0.1em; top: -0.62em; font-family: var(--disp); font-weight: 600; font-size: clamp(9rem, 26vw, 24rem); line-height: 0.8; color: rgba(244, 246, 251, 0.05); pointer-events: none; z-index: -1; }
.hstep__k { display: block; font-family: var(--disp); font-weight: 600; font-size: clamp(3rem, 9vw, 7.5rem); line-height: 0.95; letter-spacing: -0.02em; width: max-content; position: relative; }
.hstep__k::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.12em; height: 2px; background: var(--accent); transform: scaleX(var(--a, 0)); transform-origin: left; }
.hstep__d { margin-top: 1.1rem; font-size: clamp(1.1rem, 1.6vw, 1.45rem); line-height: 1.5; color: var(--soft); max-width: 34ch; }
.hstep.is-final .hstep__k { color: #fff; }

.steps-progress { position: absolute; left: var(--pad); right: var(--pad); bottom: 9vh; height: 1px; background: var(--line); z-index: 3; }
.steps-progress span { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.steps-cta { position: absolute; left: 50%; bottom: calc(9vh + 24px); transform: translateX(-50%); z-index: 3; opacity: 0; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transform: translate(-50%, 12px); text-align: center; }
.steps-cta.is-in { opacity: 1; transform: translate(-50%, 0); }
.steps-cta .cta2 { margin: 0; }

/* Reveal for standard sections */
[data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

:where(a, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

@media (max-width: 760px) {
  .row { grid-template-columns: 2.4rem 1fr; }
  .row__d { grid-column: 2; }
  .hstep__d { display: none; }
  .related { gap-inline: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media (pointer: coarse) {
  .wordmark, .dback, .cta, .cta2 { min-height: 44px; display: inline-flex; align-items: center; }
}
