/* =========================================================================
     OpenAdviser P3 — single-viewport stage
     - Body never scrolls. Sections transition in 3D in place.
     - Canvas heliograph field sits behind
       everything, fixed. Foreground document remains readable on fallback.

     WCAG / NN-Norman pass (v2):
     - Darkened --bg-primary to #0a0c10 — text-primary now ~16.4:1 (AAA),
       text-secondary ~12.0:1 (AAA), text-tertiary lifted to 0.78 alpha
       to clear 4.5:1 (AA) for the small mono labels.
     - Nav-dot hit targets enlarged to 36×36 (AAA touch).
     - aria-current="true" announced on the active section dot.
     - Slide order, counter and progress preserve system-status visibility.
     ========================================================================= */

  @font-face {
    font-family: "Geist";
    src: url("./assets/fonts/Geist-Variable.woff2") format("woff2-variations");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: "Geist";
    src: url("./assets/fonts/Geist-Italic-Variable.woff2") format("woff2-variations");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
  }

  @font-face {
    font-family: "Geist Mono";
    src: url("./assets/fonts/GeistMono-Variable.woff2") format("woff2-variations");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
  }

  :root {
    /* Local overrides — keep the design-system file untouched */
    --bg-primary:    #0a0c10;
    --bg-secondary:  #14171d;
    --text-primary:  #E3EEF8;
    --text-secondary:#B8C3D4;
    --text-tertiary: rgba(199, 209, 225, 0.78);
    --hairline:      rgba(227, 238, 248, 0.12);
    --accent:        #7EC8E3;
    --reserve-1:     #5BA3C9;
    --font-sans:     "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono:     "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

    /* Tuned values from the p3-a handoff. */
    --logo-scale: 1;
    --hero-size: 1;
    --hero-x: 0px;
    --hero-y: 0px;
    --about-size: 1;
    --about-x: 0px;
    --about-y: 0px;
    --services-size: 1;
    --services-x: 0px;
    --services-y: 0px;
    --practice-size: 1;
    --practice-x: 0px;
    --practice-y: 0px;
    --contact-size: 1;
    --contact-x: 0px;
    --contact-y: 0px;
    --eyebrow-size: 1;
    --counter-size: 1;
  }

  .accent-text {
    color: var(--accent) !important;
  }

  html {
    height: 100%;
    width: 100%;
    background: var(--bg-primary);
  }
  body {
    position: relative;
    width: 100%;
    height: 100dvh;
    margin: 0;
    overflow: hidden;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    overscroll-behavior: none;
  }

  /* ---- Background canvas -------------------------------------------------- */
  #bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100dvw;
    height: 100dvh;
    display: block;
    pointer-events: none;
  }

  @media (pointer: coarse) {
    #bg-canvas { opacity: 0.5; }
  }

  /* Subtle vignette over the canvas — pulls focus to center content */
  .stage::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
      radial-gradient(110% 75% at 50% 50%, transparent 35%, rgba(6, 8, 12, 0.72) 100%);
  }

  /* Noise veil to kill banding on the WebGL field */
  .stage::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image: url("./assets/noise.svg");
    background-size: 240px 240px;
    opacity: 0.06;
    mix-blend-mode: overlay;
  }

  /* ---- Stage (the one viewport) ------------------------------------------- */
  .stage {
    position: relative;
    z-index: 2;
    width: 100dvw;
    height: 100dvh;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 1fr;
  }

  /* ---- Chrome: top bar ----------------------------------------------------- */
  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(20px, 2.4vw, 36px) clamp(24px, 4vw, 56px);
    pointer-events: none;
    position: relative;
    z-index: 3;
  }
  .topbar > * { pointer-events: auto; }

  .brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
  }
  .brand__lockup {
    position: relative;
    height: 48px;
    width: 206px;
    display: block;
    flex-shrink: 0;
    transform: scale(var(--logo-scale));
    transform-origin: left center;
  }
  .brand__lockup img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1);
    transition: filter 220ms cubic-bezier(.2,.7,.1,1);
  }
  .brand__lockup::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent);
    clip-path: inset(0 76.9% 0 0);
    -webkit-mask: url("./assets/openadviser-lockup-light.svg") left center / 100% 100% no-repeat;
    mask: url("./assets/openadviser-lockup-light.svg") left center / 100% 100% no-repeat;
    pointer-events: none;
  }
  .brand:hover .brand__lockup img { filter: brightness(1.15); }
  /* Fix #3 — the global a::after rule paints a hairline under every link;
     suppress it for the logo lockup. */
  .brand::after { display: none; content: none; }

  .topbar__meta {
    display: flex;
    align-items: center;
    gap: 18px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-tertiary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border: 1px solid rgba(227, 238, 248, 0.12);
    background: rgba(10, 12, 16, 0.24);
  }

  .language-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 24px;
    color: var(--text-tertiary);
    text-decoration: none;
    transition:
      color 180ms cubic-bezier(.2,.7,.1,1),
      background-color 180ms cubic-bezier(.2,.7,.1,1);
  }

  .language-switcher a:hover,
  .language-switcher a[aria-current="page"] {
    color: var(--text-primary);
    background: rgba(126, 200, 227, 0.12);
  }

  .language-switcher a::after { display: none; content: none; }

  .topbar__location {
    white-space: nowrap;
  }

  /* ---- Main: 3D section carousel ----------------------------------------- */
  .deck {
    position: relative;
    z-index: 3;
    display: grid;
    place-items: center;
    padding: 0 clamp(24px, 6vw, 96px);
    /* 3D rotation context — slides pivot around their vertical axis. */
    perspective: 1600px;
    perspective-origin: 50% 50%;
    transform-style: preserve-3d;
    /* Slides should not block pointer events to the polyhedron canvas behind;
       individual interactive elements re-enable pointer-events themselves. */
    pointer-events: none;
  }
  .slide {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 0 clamp(24px, 6vw, 96px);
    opacity: 0;
    /* Default — coming up from the right (next) */
    transform: rotateY(58deg) translateZ(-360px) scale(.94);
    transform-origin: 50% 50%;
    will-change: transform, opacity;
    backface-visibility: hidden;
    pointer-events: none;
  }
  .slide.is-prev {
    /* Already past — exits to the left */
    transform: rotateY(-58deg) translateZ(-360px) scale(.94);
  }
  .slide.is-active {
    opacity: 1;
    transform: rotateY(0) translateZ(0) scale(1);
    pointer-events: none; /* stays off — children re-enable as needed */
  }
  /* Re-enable hit testing on interactive bits inside an active slide. */
  .slide.is-active .contact__mailto,
  .slide.is-active a,
  .slide.is-active button { pointer-events: auto; }

  .slide__inner {
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(24px, 4vh, 56px);
    transform: scale(1.2);
    transform-origin: center center;
  }

  .slide-copy {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .slide-copy--about {
    transform: translate(var(--about-x), var(--about-y));
  }

  .slide-copy--practice {
    transform: translate(var(--practice-x), var(--practice-y));
  }

  .standards-panel {
    align-self: end;
  }

  .standards-panel__label {
    margin-bottom: 18px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  @media (max-width: 1180px), (max-height: 720px), (pointer: coarse) {
    .hero,
    .services,
    .contact,
    .slide-copy--about,
    .slide-copy--practice {
      transform: none;
    }
  }
  @media (min-width: 960px) {
    .slide__inner--split {
      grid-template-columns: 1.1fr 0.9fr;
      align-items: end;
      gap: clamp(40px, 6vw, 96px);
    }
  }

  /* Section eyebrow — small mono index */
  .eyebrow {
    font-family: var(--font-mono);
    font-size: calc(11px * var(--eyebrow-size));
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 12px;
  }
  .eyebrow::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 1px;
    background: var(--reserve-1);
  }

  /* ---- Slide 1 — Hero ----------------------------------------------------- */
  .hero {
    display: flex;
    flex-direction: column;
    gap: clamp(28px, 4vh, 56px);
    transform: translate(var(--hero-x), var(--hero-y));
  }
  .hero__manifesto {
    font-size: calc(clamp(38px, 5.2vw, 76px) * var(--hero-size));
    line-height: 1.04;
    letter-spacing: -0.025em;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
  }
  .hero__manifesto p {
    margin: 0;
    font: inherit;
    color: inherit;
    white-space: nowrap;
  }
  .hero__manifesto p:first-child {
    color: var(--accent);
  }
  @media (max-width: 720px) {
    .hero__manifesto p { white-space: normal; }
  }
  .hero__manifesto p:nth-child(2),
  .hero__manifesto p:nth-child(4) {
    color: var(--text-secondary);
  }
  /* staggered reveal driven by active class */
  .slide.is-active .hero__manifesto p {
    opacity: 0;
    transform: translateY(14px);
    animation: line-in 700ms cubic-bezier(.2,.7,.1,1) forwards;
  }
  .slide.is-active .hero__manifesto p:nth-child(1) { animation-delay: 120ms; }
  .slide.is-active .hero__manifesto p:nth-child(2) { animation-delay: 240ms; }
  .slide.is-active .hero__manifesto p:nth-child(3) { animation-delay: 360ms; }
  .slide.is-active .hero__manifesto p:nth-child(4) { animation-delay: 480ms; }
  @keyframes line-in {
    to { opacity: 1; transform: translateY(0); }
  }

  .hero__signature {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-tertiary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .hero__signature .rule {
    flex: 0 0 56px;
    height: 1px;
    background: var(--reserve-1);
  }

  /* ---- Slide 2 — About ---------------------------------------------------- */
  .about__lede {
    font-size: calc(clamp(22px, 2.2vw, 30px) * var(--about-size));
    line-height: 1.45;
    letter-spacing: -0.005em;
    font-weight: 400;
    color: var(--text-secondary);
    margin: 0;
    text-wrap: pretty;
    max-width: 22ch;
  }
  .about__lede strong {
    font-weight: 500;
    color: var(--text-primary);
  }
  .about__meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-self: end;
  }
  .meta-pair {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-left: 1px solid var(--hairline);
    padding-left: 16px;
  }
  .meta-pair__label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
  }
  .meta-pair__value {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 500;
  }

  /* ---- Slide 3 — Services ------------------------------------------------- */
  .services {
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 2.8vh, 36px);
    transform: translate(var(--services-x), var(--services-y));
  }
  .services__pillar {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.2vh, 14px);
  }
  .services__row {
    font-size: calc(clamp(28px, 4vw, 56px) * var(--services-size));
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 500;
    color: var(--text-primary);
    text-wrap: balance;
  }
  .services__row--sub {
    font-size: calc(clamp(20px, 2vw, 28px) * var(--services-size));
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: -0.005em;
  }
  .services__note {
    max-width: 54ch;
    margin: 0;
    color: var(--text-tertiary);
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.45;
  }
  .services__dot {
    color: var(--reserve-1);
    padding: 0 clamp(8px, 1vw, 14px);
    font-weight: 300;
  }

  /* ---- Slide 4 — Practice signal ----------------------------------------- */
  .practice {
    font-size: calc(clamp(22px, 2.4vw, 34px) * var(--practice-size));
    line-height: 1.45;
    letter-spacing: -0.01em;
    color: var(--text-secondary);
    font-style: italic;
    max-width: 22ch;
    margin: 0;
  }
  .practice em {
    font-style: italic;
    color: var(--text-primary);
  }
  .practice__standards {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-tertiary);
  }
  .practice__standards span {
    padding: 4px 10px;
    border: 1px solid var(--hairline);
    border-radius: 999px;
  }

  /* ---- Slide 5 — Contact -------------------------------------------------- */
  .contact {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 640px;
    transform: translate(var(--contact-x), var(--contact-y));
  }
  .contact__heading {
    font-size: calc(clamp(36px, 4.6vw, 64px) * var(--contact-size));
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
  }
  .contact__body {
    font-size: clamp(18px, 1.6vw, 22px);
    line-height: 1.45;
    color: var(--text-secondary);
    margin: 0;
  }
  .contact__mailto {
    align-self: flex-start;
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: clamp(18px, 1.4vw, 22px);
    color: var(--accent);
    text-decoration: none;
    padding: 18px 22px;
    min-height: 44px;       /* WCAG 2.5.5 — comfortable touch target */
    background: rgba(10, 12, 16, 0.45);
    border: 1px solid var(--hairline);
    border-radius: 2px;
    transition: color 220ms cubic-bezier(.2,.7,.1,1),
                border-color 220ms cubic-bezier(.2,.7,.1,1),
                background 220ms cubic-bezier(.2,.7,.1,1),
                transform 220ms cubic-bezier(.2,.7,.1,1);
    position: relative;
    overflow: hidden;
  }
  /* The contact mailto already has its own treatment — suppress the global
     a::after underline so the framed CTA reads cleanly. */
  .contact__mailto::after { display: none; content: none; }
  .contact__mailto::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(126, 200, 227, 0.10) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 600ms cubic-bezier(.2,.7,.1,1);
  }
  .contact__mailto:hover {
    color: var(--text-primary);
    border-color: var(--accent);
  }
  .contact__mailto:hover::before { transform: translateX(100%); }
  .contact__mailto:active { transform: translateY(1px); }
  .contact__mailto .arrow {
    width: 14px;
    height: 14px;
    transition: transform 220ms cubic-bezier(.2,.7,.1,1);
  }
  .contact__mailto:hover .arrow { transform: translate(3px, -3px); }

  /* ---- Chrome: bottom bar ------------------------------------------------- */
  .bottombar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(20px, 2.4vw, 36px) clamp(24px, 4vw, 56px);
    pointer-events: none;
    position: relative;
    z-index: 3;
  }
  .bottombar > * { pointer-events: auto; }

  /* ---- Counter ------------------------------------------------------------ */
  .counter {
    --p: 0.2;
    font-family: var(--font-mono);
    font-size: calc(12px * var(--counter-size));
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    min-width: 206px;
  }
  .counter b {
    color: var(--text-primary);
    font-weight: 500;
  }
  .counter .progress {
    width: 120px;
    height: 12px;
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
  }
  .counter .progress::before,
  .counter .progress::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    transform: translateY(-50%);
  }
  .counter .progress::before {
    background:
      linear-gradient(90deg, transparent 0 1px, rgba(227, 238, 248, 0.28) 1px 2px, transparent 2px) 0 50% / 25% 10px repeat-x,
      var(--hairline);
  }
  .counter .progress::after {
    background: var(--accent);
    box-shadow: 0 0 14px rgba(126, 200, 227, 0.38);
    transform: translateY(-50%) scaleX(var(--p, 0.2));
    transform-origin: left;
    transition: transform 600ms cubic-bezier(.2,.7,.1,1);
  }

  /* ---- Footer email (accent, no underline) -------------------------------- */
  .footer-email {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--accent);
    text-decoration: none;
    pointer-events: auto;
    transition: color 220ms;
  }
  .footer-email:hover { color: var(--text-primary); }
  .footer-email::after { display: none; content: none; }

  /* ---- Controls panel ----------------------------------------------------- */
  .controls-btn {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    background: transparent;
    border: 1px solid var(--hairline);
    border-radius: 2px;
    padding: 6px 14px;
    cursor: pointer;
    pointer-events: auto;
    transition: color 220ms, border-color 220ms, background 220ms;
    position: fixed;
    top: clamp(20px, 2.4vw, 36px);
    right: clamp(24px, 4vw, 56px);
    z-index: 10;
    margin-top: 48px;
    display: none; /* hidden by default — Shift+C to reveal */
  }

  .controls-btn:hover,
  .controls-btn[aria-expanded="true"] {
    color: var(--text-primary);
    border-color: var(--accent);
    background: rgba(126,200,227,0.06);
  }

  .controls-panel {
    position: fixed;
    top: 130px;
    right: 24px;
    z-index: 100;
    width: 300px;
    max-height: calc(100dvh - 145px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: rgba(199,209,225,0.88);
    background: rgba(10,12,16,0.94);
    border: 1px solid rgba(227,238,248,0.10);
    border-radius: 6px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.55);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    font-family: var(--font-mono);
    font-size: 11px;
  }

  .controls-panel[hidden] { display: none; }

  .controls-panel__header,
  .controls-panel__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(227,238,248,0.08);
    flex-shrink: 0;
  }

  .controls-panel__header {
    justify-content: space-between;
  }

  .controls-panel__title {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .controls-panel__close {
    color: rgba(199,209,225,0.6);
    background: none;
    border: 0;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0 4px;
  }

  .controls-panel__scroll {
    overflow-y: auto;
    flex: 1;
    padding: 4px 0;
  }

  .controls-group {
    border-bottom: 1px solid rgba(227,238,248,0.05);
  }

  .controls-group__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    color: rgba(199,209,225,0.75);
    background: none;
    border: 0;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-align: left;
    text-transform: uppercase;
  }

  .controls-group__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 16px 10px;
  }

  .controls-group__body[hidden] {
    display: none;
  }

  .controls-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .controls-row__label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
  }

  .controls-row__label span:first-child {
    color: rgba(199,209,225,0.7);
  }

  .controls-row__value {
    color: var(--accent);
    font-size: 10px;
    font-weight: 500;
  }

  .controls-row input {
    width: 100%;
    height: 3px;
    accent-color: var(--accent);
    cursor: pointer;
  }

  .controls-panel__actions {
    border-top: 1px solid rgba(227,238,248,0.06);
    border-bottom: 0;
    padding-top: 10px;
  }

  .controls-panel__button {
    flex: 1 1 auto;
    padding: 7px 8px;
    color: rgba(199,209,225,0.7);
    background: rgba(227,238,248,0.04);
    border: 1px solid rgba(227,238,248,0.08);
    border-radius: 2px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .controls-panel__status {
    width: 100%;
    min-height: 14px;
    margin-top: 2px;
    color: var(--accent);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-align: center;
    text-transform: uppercase;
  }

  .controls-panel__button:hover {
    color: var(--text-primary);
    border-color: var(--accent);
  }

  .controls-panel__button:disabled {
    color: var(--accent);
    cursor: default;
  }

  /* ---- Responsive: native viewport baseline ------------------------------ */
  @media (max-width: 1180px), (max-height: 720px), (pointer: coarse) {
    .stage {
      grid-template-rows: auto minmax(0, 1fr) auto;
    }

    .topbar {
      padding:
        max(18px, env(safe-area-inset-top))
        max(28px, env(safe-area-inset-right))
        18px
        max(28px, env(safe-area-inset-left));
    }

    .bottombar {
      padding:
        18px
        max(28px, env(safe-area-inset-right))
        max(18px, env(safe-area-inset-bottom))
        max(28px, env(safe-area-inset-left));
    }

    .deck {
      min-height: 0;
      padding-inline: clamp(24px, 5.5vw, 64px);
    }

    .slide {
      padding-inline: clamp(24px, 5.5vw, 64px);
    }

    .slide__inner {
      width: min(980px, 100%);
      gap: clamp(22px, 3.2dvh, 40px);
      transform: scale(1);
    }

    .hero,
    .services,
    .contact,
    .slide-copy--about,
    .slide-copy--practice {
      transform: none;
    }

    .hero__manifesto {
      font-size: clamp(38px, 6vw, 68px);
    }

    .about__lede,
    .practice {
      font-size: clamp(21px, 2.8vw, 30px);
      max-width: none;
    }

    .services__row {
      font-size: clamp(30px, 4.8vw, 52px);
    }

    .services__row--sub {
      font-size: clamp(20px, 2.6vw, 27px);
    }

    .contact__heading {
      font-size: clamp(36px, 5vw, 58px);
    }

    .contact__mailto {
      max-width: calc(100dvw - 56px);
      white-space: normal;
      overflow-wrap: anywhere;
    }
  }

  /* ---- Responsive: tablet landscape -------------------------------------- */
  @media (min-width: 961px) and (max-width: 1180px) and (orientation: landscape),
         (pointer: coarse) and (min-width: 961px) and (orientation: landscape) {
    .slide__inner {
      width: min(920px, 100%);
    }

    .slide__inner--split {
      grid-template-columns: minmax(0, 1fr) minmax(220px, 0.72fr);
      align-items: end;
      gap: clamp(32px, 5vw, 56px);
    }

    .hero__manifesto {
      font-size: clamp(44px, 5vw, 62px);
    }

    .about__lede,
    .practice {
      font-size: clamp(21px, 2.45vw, 28px);
    }

    .services__row {
      font-size: clamp(34px, 4vw, 48px);
    }

    .contact {
      max-width: 560px;
    }
  }

  /* ---- Responsive: tablet portrait --------------------------------------- */
  @media (min-width: 601px) and (max-width: 960px) and (orientation: portrait),
         (pointer: coarse) and (min-width: 601px) and (max-width: 960px) and (orientation: portrait) {
    .topbar,
    .bottombar {
      padding-inline: clamp(32px, 6vw, 56px);
    }

    .deck,
    .slide {
      padding-inline: clamp(40px, 7vw, 72px);
    }

    .slide__inner {
      width: min(700px, 100%);
      justify-self: center;
    }

    .hero__manifesto {
      font-size: clamp(42px, 7vw, 58px);
    }

    .about__lede,
    .practice {
      font-size: clamp(23px, 3.4vw, 30px);
    }

    .services__row {
      font-size: clamp(34px, 5.2vw, 48px);
    }

    .contact__heading {
      font-size: clamp(40px, 6vw, 56px);
    }
  }

  /* ---- Responsive: tablet ------------------------------------------------- */
  @media (max-width: 960px) {
    .slide__inner {
      transform: scale(1.0);
    }
    .slide__inner--split {
      grid-template-columns: 1fr;
      gap: clamp(24px, 4vh, 40px);
    }
    .slide-copy {
      gap: 22px;
    }
    .standards-panel {
      align-self: start;
    }
    .hero__manifesto { font-size: clamp(32px, 6vw, 56px); }
    .services__row { font-size: clamp(24px, 5vw, 44px); }
    .contact__heading { font-size: clamp(30px, 5.5vw, 52px); }
    .about__lede { font-size: clamp(19px, 3.6vw, 28px); max-width: none; }
    .practice { font-size: clamp(19px, 3.6vw, 28px); max-width: none; }
  }

  /* ---- Responsive: phone -------------------------------------------------- */
  @media (max-width: 600px) {
    .slide__inner {
      transform: scale(1.0);
      gap: 18px;
    }
    .topbar { padding: 16px 20px; }
    .topbar__meta { font-size: 10px; gap: 10px; }
    .language-switcher a {
      min-width: 24px;
      min-height: 22px;
    }
    .brand__lockup { height: 36px; width: 154px; }
    .deck { padding: 0 20px; }
    .slide { padding: 0 20px; }
    .hero__manifesto { font-size: clamp(26px, 7vw, 42px); }
    .hero__manifesto p { white-space: normal; }
    .services__row { font-size: clamp(20px, 5.5vw, 34px); }
    .services__row--sub { font-size: clamp(15px, 3.5vw, 20px); }
    .about__lede { font-size: clamp(16px, 3.8vw, 22px); max-width: none; }
    .practice { font-size: clamp(16px, 3.8vw, 24px); max-width: none; }
    .contact__heading { font-size: clamp(24px, 6.5vw, 38px); }
    .contact__body { font-size: clamp(14px, 3.2vw, 17px); }
    .contact__mailto { font-size: clamp(13px, 3.2vw, 16px); padding: 12px 14px; }
    .bottombar {
      align-items: flex-end;
      gap: 12px;
      padding: 14px 20px;
    }
    .counter {
      min-width: auto;
    }
    .counter .progress { width: 80px; }
    .footer-email { font-size: 10px; }
    .controls-btn { display: none !important; }
    .controls-panel { display: none !important; }
    .eyebrow { font-size: 10px; }
    .meta-pair__value { font-size: 14px; }
    .hero__signature { font-size: 10px; }
    .hero__signature .rule { flex-basis: 32px; }
  }

  @media (max-width: 600px) and (orientation: portrait) {
    .topbar {
      padding:
        max(16px, env(safe-area-inset-top))
        max(20px, env(safe-area-inset-right))
        12px
        max(20px, env(safe-area-inset-left));
    }

    .bottombar {
      padding:
        12px
        max(20px, env(safe-area-inset-right))
        max(14px, env(safe-area-inset-bottom))
        max(20px, env(safe-area-inset-left));
    }

    .deck,
    .slide {
      padding-inline: 22px;
    }

    .slide__inner {
      align-self: center;
    }

    .hero {
      gap: clamp(20px, 3.5dvh, 32px);
    }

    .hero__manifesto {
      font-size: clamp(30px, 8.8vw, 42px);
      line-height: 1.08;
    }

    .hero__signature {
      align-items: center;
      white-space: nowrap;
    }

    .services__row {
      line-height: 1.16;
    }

    .services__note {
      font-size: clamp(13px, 3.2vw, 16px);
    }

    .services__dot {
      padding-inline: 6px;
    }

    .practice__standards {
      gap: 8px;
      margin-top: 20px;
    }

    .contact {
      max-width: 100%;
    }
  }

  @media (max-width: 430px) {
    .topbar__meta {
      align-items: flex-end;
      flex-direction: column;
      font-size: 9px;
      gap: 6px;
    }

    .brand__lockup {
      height: 34px;
      width: 146px;
    }

    .deck,
    .slide {
      padding-inline: 18px;
    }

    .counter {
      gap: 8px;
      letter-spacing: 0.12em;
    }

    .counter .progress {
      width: 54px;
    }

    .footer-email {
      max-width: 48vw;
      text-align: right;
      overflow-wrap: anywhere;
    }
  }

  /* ---- Responsive: landscape phones / short viewports --------------------- */
  @media (max-height: 500px) and (orientation: landscape) {
    .stage {
      grid-template-rows: auto minmax(0, 1fr) auto;
    }

    .deck,
    .slide {
      padding-inline: clamp(32px, 8vw, 72px);
    }

    .slide__inner {
      width: min(720px, 100%);
      transform: scale(1.0);
    }

    .slide__inner--split {
      grid-template-columns: minmax(0, 1fr) minmax(180px, 0.74fr);
      gap: clamp(22px, 4vw, 36px);
    }

    .topbar {
      padding:
        max(8px, env(safe-area-inset-top))
        max(20px, env(safe-area-inset-right))
        6px
        max(20px, env(safe-area-inset-left));
    }

    .bottombar {
      padding:
        6px
        max(20px, env(safe-area-inset-right))
        max(8px, env(safe-area-inset-bottom))
        max(20px, env(safe-area-inset-left));
    }

    .topbar__meta { font-size: 9px; gap: 6px; }
    .brand__lockup { height: 28px; width: 120px; }
    .hero { gap: 10px; }
    .hero__manifesto { font-size: clamp(20px, 4vw, 32px); line-height: 1.1; }
    .hero__signature { font-size: 9px; }
    .eyebrow { font-size: 9px; gap: 8px; }
    .eyebrow::before { width: 14px; }
    .services { gap: 10px; }
    .services__row { font-size: clamp(18px, 3.5vw, 30px); }
    .services__row--sub { font-size: clamp(14px, 2.5vw, 20px); }
    .services__pillar { gap: 4px; }
    .services__note { font-size: clamp(11px, 1.8vw, 14px); line-height: 1.35; }
    .about__lede { font-size: clamp(15px, 2.5vw, 22px); }
    .practice { font-size: clamp(15px, 2.5vw, 22px); }
    .contact__heading { font-size: clamp(22px, 4vw, 34px); }
    .contact__body { font-size: clamp(13px, 2vw, 16px); }
    .contact__mailto { font-size: clamp(12px, 2vw, 15px); padding: 10px 12px; min-height: 36px; }
    .contact { gap: 12px; }
    .slide__inner { gap: 12px; }
    .footer-email { font-size: 9px; }
    .counter .progress { width: 60px; }
    .meta-pair { gap: 2px; padding-left: 10px; }
    .meta-pair__label { font-size: 9px; }
    .meta-pair__value { font-size: 13px; }
    .practice__standards { margin-top: 12px; gap: 8px; font-size: 10px; }
    .practice__standards span { padding: 3px 7px; }
  }

  /* ---- Scroll hint -------------------------------------------------------- */
  .scroll-hint {
    position: fixed;
    bottom: calc(clamp(80px, 11dvh, 112px) + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    opacity: 1;
    transition: opacity 600ms cubic-bezier(.2,.7,.1,1);
  }

  .scroll-hint.is-hidden {
    opacity: 0;
  }

  .scroll-hint__label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    white-space: nowrap;
  }

  .scroll-hint__track {
    width: 1px;
    height: 48px;
    background: var(--hairline);
    position: relative;
    overflow: hidden;
  }

  .scroll-hint__bar {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, var(--reserve-1) 60%, transparent);
    animation: scroll-hint-drop 2s cubic-bezier(.4, 0, .2, 1) infinite;
  }

  @keyframes scroll-hint-drop {
    0%   { transform: translateY(-100%); opacity: 0; }
    18%  { opacity: 1; }
    76%  { opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
  }

  /* landscape phones — drop scroll-hint to bottom so it clears slide text */
  @media (orientation: landscape) and (pointer: coarse) and (max-width: 960px) {
    .scroll-hint { bottom: calc(48px + env(safe-area-inset-bottom, 0px)); }
  }

  /* ---- Reduced motion ----------------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .slide { transition: opacity 200ms linear; transform: rotateY(0) translateZ(0) !important; }
    .slide:not(.is-active) { opacity: 0; }
    .slide.is-active .hero__manifesto p { animation: none; opacity: 1; transform: none; }
    .topbar__pulse { animation: none; }
    .scroll-hint { display: none; }
  }
