/*
Theme Name: Altstead
Theme URI: https://altstead.com
Author: Altstead
Description: Monochrome editorial one-page theme with cinematic hero intro, scroll-scrubbed video, and conversational contact page.
Version: 1.3.1
License: GPL-2.0-or-later
Text Domain: altstead
*/

    /* ==========================================================================
       ALTSTEAD — Design System
       Monochrome. Editorial. Architected.
       ========================================================================== */

    :root {
      --bg: #050505;
      --bg-elevated: #0a0a0a;
      --text: #F2F2EE;
      --text-muted: #9B9B96;
      --text-faint: #6A6A66;
      --line: #252525;
      --line-strong: #3A3A38;
      --invert-bg: #EDEDE8;
      --invert-text: #090909;
      --invert-muted: #4A4A46;
      --invert-line: #C8C8C2;

      --font-sans: "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, sans-serif;
      --font-mono: "SFMono-Regular", "SF Mono", ui-monospace, "Cascadia Code", "Segoe UI Mono", Menlo, Consolas, monospace;

      --pad: clamp(1.25rem, 4vw, 3.5rem);
      --pad-y: clamp(4.5rem, 12vw, 9rem);
      --nav-h: 4.25rem;
      --max: 1440px;
      --col-gap: clamp(1rem, 2.5vw, 2rem);
      --ease: cubic-bezier(0.22, 1, 0.36, 1);
      --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
      --dur: 0.55s;
      --focus: #F2F2EE;

      --logo-path: path("M100,16 L184,184 L16,184 Z M100,50 L133,116 L115,116 L115,184 L85,184 L85,116 L67,116 Z");
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    html {
      -webkit-text-size-adjust: 100%;
      text-size-adjust: 100%;
    }

    @media (prefers-reduced-motion: no-preference) {
      html { scroll-behavior: smooth; }
    }

    body {
      font-family: var(--font-sans);
      font-weight: 400;
      font-size: 16px;
      line-height: 1.55;
      color: var(--text);
      background: var(--bg);
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    body.is-loading { overflow: hidden; }
    body.nav-open { overflow: hidden; }

    img, svg { display: block; max-width: 100%; }
    a { color: inherit; text-decoration: none; }
    button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
    ul { list-style: none; }
    address { font-style: normal; }

    :focus { outline: none; }
    :focus-visible {
      outline: 1px solid var(--focus);
      outline-offset: 3px;
    }

    .skip-link {
      position: absolute;
      left: var(--pad);
      top: -100px;
      z-index: 10000;
      padding: 0.65rem 1rem;
      background: var(--text);
      color: var(--bg);
      font-size: 0.75rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      font-family: var(--font-mono);
    }
    .skip-link:focus { top: 0.75rem; }

    /* —— Utilities —— */
    .container {
      width: 100%;
      max-width: var(--max);
      margin-inline: auto;
      padding-inline: var(--pad);
    }

    .grid-12 {
      display: grid;
      grid-template-columns: repeat(12, minmax(0, 1fr));
      gap: var(--col-gap);
    }

    .label {
      font-family: var(--font-mono);
      font-size: 0.6875rem;
      font-weight: 500;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--text-muted);
      line-height: 1.4;
    }

    .rule {
      height: 1px;
      background: var(--line);
      border: 0;
      width: 100%;
    }

    .text-balance { text-wrap: balance; }
    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0,0,0,0);
      white-space: nowrap;
      border: 0;
    }

    /* —— Logo mark —— */
    .mark {
      width: 1.5rem;
      height: 1.5rem;
      flex-shrink: 0;
    }
    .mark path { fill: currentColor; }
    .mark--lg { width: 2.75rem; height: 2.75rem; }
    .mark--xl { width: clamp(8rem, 28vw, 22rem); height: auto; }
    .mark--hero {
      width: clamp(14rem, 42vw, 34rem);
      height: auto;
      opacity: 0.07;
    }

    /* ==========================================================================
       LOADER
       ========================================================================== */
    #loader {
      position: fixed;
      inset: 0;
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--bg);
      pointer-events: none;
    }
    #loader.is-done {
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s;
    }

    .loader-inner {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1.75rem;
      width: min(280px, 70vw);
    }

    .loader-line-track {
      width: 100%;
      height: 1px;
      background: var(--line);
      overflow: hidden;
      position: relative;
    }
    .loader-line {
      position: absolute;
      inset: 0 auto 0 0;
      width: 0%;
      background: var(--text);
    }

    .loader-mark {
      width: 2.5rem;
      height: 2.5rem;
      opacity: 0;
      transform: translateY(6px);
    }
    .loader-word {
      font-family: var(--font-mono);
      font-size: 0.6875rem;
      letter-spacing: 0.28em;
      text-transform: uppercase;
      color: var(--text);
      opacity: 0;
      transform: translateY(6px);
    }

    /* ==========================================================================
       NAVIGATION
       ========================================================================== */
    #site-header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 1002; /* above mobile panel so brand + toggle remain interactive */
      height: var(--nav-h);
      display: flex;
      align-items: center;
      mix-blend-mode: normal;
      transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease), opacity 0.7s var(--ease), transform 0.7s var(--ease);
      border-bottom: 1px solid transparent;
    }
    #site-header.is-scrolled {
      background: rgba(5, 5, 5, 0.86);
      border-bottom-color: var(--line);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
    }
    #site-header.is-invert,
    #site-header.is-scrolled.is-invert {
      background: rgba(237, 237, 232, 0.94);
      border-bottom-color: var(--invert-line);
      color: var(--invert-text);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
    }

    .nav-bar {
      width: 100%;
      max-width: var(--max);
      margin-inline: auto;
      padding-inline: var(--pad);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1.5rem;
    }

    .nav-brand {
      display: inline-flex;
      align-items: center;
      gap: 0.7rem;
      z-index: 1002;
    }
    .nav-brand-word {
      font-family: var(--font-mono);
      font-size: 0.6875rem;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      font-weight: 500;
    }

    .nav-links {
      display: none;
      align-items: center;
      gap: 2rem;
    }
    .nav-links a {
      font-family: var(--font-mono);
      font-size: 0.6875rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--text-muted);
      transition: color 0.25s var(--ease);
      position: relative;
    }
    .nav-links a::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -0.35rem;
      width: 100%;
      height: 1px;
      background: currentColor;
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.35s var(--ease);
    }
    .nav-links a:hover,
    .nav-links a:focus-visible { color: var(--text); }
    .nav-links a:hover::after,
    .nav-links a:focus-visible::after { transform: scaleX(1); }
    #site-header.is-invert .nav-links a { color: var(--invert-muted); }
    #site-header.is-invert .nav-links a:hover,
    #site-header.is-invert .nav-links a:focus-visible { color: var(--invert-text); }

    @media (min-width: 860px) {
      .nav-links { display: flex; }
    }

    .nav-toggle {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 6px;
      width: 2.5rem;
      height: 2.5rem;
      z-index: 1002;
      position: relative;
    }
    .nav-toggle span {
      display: block;
      width: 1.35rem;
      height: 1px;
      background: currentColor;
      margin-left: auto;
      transition: transform 0.35s var(--ease), opacity 0.25s ease, width 0.25s ease;
      transform-origin: center;
    }
    body.nav-open .nav-toggle span:nth-child(1) {
      transform: translateY(3.5px) rotate(45deg);
    }
    body.nav-open .nav-toggle span:nth-child(2) {
      transform: translateY(-3.5px) rotate(-45deg);
    }
    @media (min-width: 860px) {
      .nav-toggle { display: none; }
    }

    /* Mobile menu — full panel, not a dropdown */
    #mobile-nav {
      position: fixed;
      inset: 0;
      z-index: 1001;
      background: var(--bg);
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: calc(var(--nav-h) + 2rem) var(--pad) 3rem;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
    }
    body.nav-open #mobile-nav {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transition: opacity 0.4s var(--ease);
    }

    .mobile-nav-list {
      display: flex;
      flex-direction: column;
      border-top: 1px solid var(--line);
    }
    .mobile-nav-list a {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 1rem;
      padding: 1.35rem 0;
      border-bottom: 1px solid var(--line);
      font-size: clamp(1.75rem, 7vw, 2.5rem);
      letter-spacing: -0.03em;
      line-height: 1.1;
      transform: translateY(12px);
      opacity: 0;
      transition: transform 0.45s var(--ease), opacity 0.45s var(--ease), color 0.25s ease;
    }
    body.nav-open .mobile-nav-list a {
      transform: translateY(0);
      opacity: 1;
    }
    body.nav-open .mobile-nav-list li:nth-child(1) a { transition-delay: 0.06s; }
    body.nav-open .mobile-nav-list li:nth-child(2) a { transition-delay: 0.12s; }
    body.nav-open .mobile-nav-list li:nth-child(3) a { transition-delay: 0.18s; }
    .mobile-nav-list a:hover { color: var(--text-muted); }
    .mobile-nav-list .idx {
      font-family: var(--font-mono);
      font-size: 0.6875rem;
      letter-spacing: 0.12em;
      color: var(--text-faint);
    }
    .mobile-nav-meta {
      margin-top: 2.5rem;
      font-family: var(--font-mono);
      font-size: 0.6875rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--text-faint);
      opacity: 0;
      transition: opacity 0.4s var(--ease) 0.25s;
    }
    body.nav-open .mobile-nav-meta { opacity: 1; }

    /* ==========================================================================
       HERO
       ========================================================================== */
    #hero {
      position: relative;
      min-height: 100svh;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding-top: calc(var(--nav-h) + 2rem);
      padding-bottom: clamp(2rem, 5vw, 3.5rem);
      overflow: hidden;
    }

    .hero-canvas {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 0;
    }

    .hero-mark-bg {
      position: absolute;
      right: -6%;
      top: 42%;
      transform: translateY(-50%);
      z-index: 0;
      color: var(--text);
      pointer-events: none;
      user-select: none;
    }
    @media (max-width: 700px) {
      .hero-mark-bg {
        right: -18%;
        top: 28%;
        opacity: 0.9;
      }
      .mark--hero { opacity: 0.05; }
    }

    .hero-inner {
      position: relative;
      z-index: 1;
      width: 100%;
      max-width: var(--max);
      margin-inline: auto;
      padding-inline: var(--pad);
    }

    .hero-top {
      display: grid;
      grid-template-columns: repeat(12, minmax(0, 1fr));
      gap: var(--col-gap);
      align-items: end;
      margin-bottom: clamp(2.5rem, 8vw, 5.5rem);
    }

    .hero-title-block {
      grid-column: 1 / -1;
    }
    @media (min-width: 900px) {
      .hero-title-block { grid-column: 1 / 9; }
    }

    .hero-slogan {
      display: flex;
      flex-direction: column;
      gap: 0;
    }
    .hero-slogan .line {
      overflow: hidden;
    }
    .hero-slogan .line > span {
      display: block;
      font-size: clamp(2.75rem, 9.5vw, 7.25rem);
      font-weight: 500;
      letter-spacing: -0.045em;
      line-height: 0.92;
      color: var(--text);
    }

    .hero-bottom {
      display: grid;
      grid-template-columns: repeat(12, minmax(0, 1fr));
      gap: var(--col-gap);
      align-items: end;
      padding-top: clamp(1.5rem, 4vw, 2.5rem);
    }

    .hero-lede {
      grid-column: 1 / -1;
      max-width: 36rem;
      font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
      line-height: 1.65;
      color: var(--text-muted);
      letter-spacing: -0.01em;
    }
    @media (min-width: 900px) {
      .hero-lede { grid-column: 1 / 7; }
    }

    .hero-scroll {
      grid-column: 1 / -1;
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-top: 1.5rem;
      font-family: var(--font-mono);
      font-size: 0.625rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--text-faint);
    }
    @media (min-width: 900px) {
      .hero-scroll {
        grid-column: 10 / -1;
        margin-top: 0;
        justify-content: flex-end;
      }
    }
    .hero-scroll-line {
      width: 2rem;
      height: 1px;
      background: var(--line-strong);
      position: relative;
      overflow: hidden;
    }
    .hero-scroll-line::after {
      content: "";
      position: absolute;
      inset: 0;
      background: var(--text-muted);
      transform: translateX(-100%);
      animation: scrollPulse 2.2s var(--ease) infinite;
    }
    @keyframes scrollPulse {
      0% { transform: translateX(-100%); }
      50% { transform: translateX(0); }
      100% { transform: translateX(100%); }
    }
    @media (prefers-reduced-motion: reduce) {
      .hero-scroll-line::after { animation: none; transform: none; }
    }

    /* ==========================================================================
       TECH FIELD — faint floating stack glyphs (background texture)
       Monochrome only. Positioned via per-instance CSS custom properties.
       ========================================================================== */
    .tech-field {
      position: absolute;
      inset: 0;
      z-index: 0;
      overflow: hidden;
      pointer-events: none;
      user-select: none;
    }
    .tech-float {
      position: absolute;
      left: var(--x, 50%);
      top: var(--y, 50%);
      color: var(--text);
      opacity: var(--o, 0.07);
    }
    .tech-float svg {
      display: block;
      width: var(--s, 2.5rem);
      aspect-ratio: 1 / 1;
      height: auto;
      transform: rotate(var(--r, 0deg));
      will-change: transform;
    }
    @media (prefers-reduced-motion: no-preference) {
      .tech-float svg {
        animation: techDrift var(--d, 26s) ease-in-out var(--dl, 0s) infinite alternate;
      }
    }
    @keyframes techDrift {
      from { transform: translate3d(0, 0, 0) rotate(var(--r, 0deg)); }
      to { transform: translate3d(var(--dx, 1.25rem), var(--dy, -1.6rem), 0) rotate(calc(var(--r, 0deg) + var(--rr, 6deg))); }
    }
    @media (max-width: 700px) {
      .tech-float--opt { display: none; }
    }
    /* Keep section copy above the background glyph layer */
    #position .container,
    #principles .container,
    #approach .container {
      position: relative;
      z-index: 1;
    }

    /* ==========================================================================
       MOBILE CENTERING — headers and section content center on small screens
       ========================================================================== */
    @media (max-width: 700px) {
      .section-label,
      .inquiries-label { text-align: center; }
      .display-h,
      .body-l,
      .position-secondary,
      .about-cols,
      .approach-support,
      .inquiries-headline,
      .inquiries-body { text-align: center; }
      .body-l,
      .position-secondary,
      .about-cols,
      .approach-support,
      .inquiries-body { margin-inline: auto; }
      .hero-title-block { text-align: center; }
      .hero-lede {
        margin-inline: auto;
        text-align: center;
      }
      .hero-scroll { justify-content: center; }
      .principle { text-align: center; }
      .principle-body { margin-inline: auto; }
      .capability-row { text-align: center; }
      .capability-row .capability-idx { grid-column: 1 / -1; padding-top: 0; }
      .capability-row .capability-title { grid-column: 1 / -1; }
      .capability-row .capability-body {
        grid-column: 1 / -1;
        margin-inline: auto;
      }
      .approach-row { text-align: center; }
      .closing-inner { text-align: center; }
      .footer-grid { text-align: center; }
      .footer-brand-name { justify-content: center; }
      .footer-links { justify-content: center; }
      .footer-bottom { justify-content: center; }
    }

    /* ==========================================================================
       MICRO-INTERACTIONS — char reveal, magnetic hover, scroll progress
       ========================================================================== */
    .h-char {
      display: inline-block;
      will-change: transform;
    }
    .mag-i {
      display: inline-flex;
      align-items: center;
      gap: inherit;
      transition: transform 0.45s var(--ease);
      will-change: transform;
    }
    .scroll-progress {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 2px;
      background: var(--text);
      opacity: 0.28;
      transform: scaleX(0);
      transform-origin: 0 50%;
      z-index: 1003;
      pointer-events: none;
    }

    /* ==========================================================================
       FULL-VIEWPORT SECTIONS — each section owns the viewport
       ========================================================================== */
    #closing {
      min-height: 100svh;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    /* Inverted sections get dark glyphs instead */
    .tech-field--invert .tech-float { color: var(--invert-text); }

    /* ==========================================================================
       02 — ABOUT
       ========================================================================== */
    #about { border-top: 1px solid var(--line); }
    #about .about-copy { grid-column: 1 / -1; }
    @media (min-width: 900px) {
      #about .about-copy { grid-column: 3 / 12; }
    }
    .about-cols {
      display: grid;
      gap: clamp(1.25rem, 3vw, 2rem);
      color: var(--text-muted);
      font-size: 0.9375rem;
      line-height: 1.75;
    }
    @media (min-width: 900px) {
      .about-cols {
        grid-template-columns: 1fr 1fr;
        gap: var(--col-gap);
      }
    }

    /* ==========================================================================
       04 — CAPABILITIES
       ========================================================================== */
    #capabilities { border-top: 1px solid var(--line); }
    #capabilities .capabilities-intro { grid-column: 1 / -1; }
    @media (min-width: 900px) {
      #capabilities .capabilities-intro { grid-column: 3 / 12; }
    }
    .capability-rows { border-top: 1px solid var(--line); }
    .capability-row {
      display: grid;
      grid-template-columns: repeat(12, minmax(0, 1fr));
      gap: var(--col-gap);
      padding-block: clamp(1.75rem, 4vw, 2.5rem);
      border-bottom: 1px solid var(--line);
      align-items: start;
      transition: background 0.4s var(--ease);
    }
    @media (hover: hover) and (pointer: fine) {
      .capability-row:hover { background: rgba(255, 255, 255, 0.015); }
    }
    .capability-idx {
      grid-column: 1 / 3;
      font-family: var(--font-mono);
      font-size: 0.6875rem;
      letter-spacing: 0.14em;
      color: var(--text-faint);
      padding-top: 0.45em;
    }
    .capability-title {
      grid-column: 3 / -1;
      font-size: clamp(1.375rem, 3.2vw, 2.25rem);
      font-weight: 500;
      letter-spacing: -0.03em;
      line-height: 1.12;
      color: var(--text);
      margin-bottom: 0.75rem;
    }
    .capability-body {
      grid-column: 3 / -1;
      font-size: 0.9375rem;
      line-height: 1.7;
      color: var(--text-muted);
      max-width: 34rem;
    }
    @media (min-width: 900px) {
      .capability-idx { grid-column: 1 / 2; }
      .capability-title { grid-column: 2 / 7; margin-bottom: 0; }
      .capability-body { grid-column: 7 / 13; }
    }

    /* ==========================================================================
       HERO INTRO — full-bleed film, then hands off to the editorial hero
       ========================================================================== */
    .hero-video-wrap {
      position: absolute;
      inset: 0;
      z-index: 0;
      overflow: hidden;
      pointer-events: none;
      background: var(--bg);
    }
    .hero-video {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: grayscale(1) contrast(1.05);
      opacity: 1;
      transition: opacity 1.5s var(--ease);
    }
    .hero-shade {
      position: absolute;
      inset: 0;
      background:
        linear-gradient(to top, rgba(5, 5, 5, 0.85), rgba(5, 5, 5, 0) 55%),
        linear-gradient(to right, rgba(5, 5, 5, 0.55), rgba(5, 5, 5, 0) 45%);
      opacity: 0;
      transition: opacity 1.2s var(--ease);
    }
    .hero-video-wrap.is-done .hero-video {
      opacity: 0.9;
      transform: translateX(30%) scale(0.55);
      transform-origin: center center;
      /* Screen blend + contrast crush dissolves the frame's dark background
         into the page so the white logo reads on its own */
      filter: grayscale(1) contrast(1.4) brightness(0.95);
      mix-blend-mode: screen;
      transition: opacity 1.5s var(--ease), transform 1.7s var(--ease), filter 1.5s var(--ease);
    }
    .hero-video-wrap.is-done .hero-shade { opacity: 1; }
    @media (max-width: 700px) {
      .hero-video-wrap.is-done .hero-video {
        transform: none;
        object-fit: contain;
        object-position: center 16%;
        opacity: 0.55;
      }
    }
    /* No-JS and reduced-motion never see the film — classic mark hero instead */
    .no-js .hero-video-wrap,
    .no-js .intro-skip { display: none; }
    .has-hero-video .hero-mark-bg { display: none; }

    /* While the film plays, the screen is completely clear — no chrome,
       no rules, no marks. Everything arrives with the handoff. */
    .has-hero-video:not(.intro-complete) #site-header {
      opacity: 0;
      transform: translateY(-0.5rem);
      pointer-events: none;
    }
    .has-hero-video:not(.intro-complete) .reg,
    .has-hero-video:not(.intro-complete) #hero .tech-field { opacity: 0; }
    .has-hero-video .reg { transition: opacity 1s var(--ease) 0.8s; }
    .intro-skip {
      position: absolute;
      right: var(--pad);
      bottom: 1.25rem;
      z-index: 2;
      font-family: var(--font-mono);
      font-size: 0.625rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--text-muted);
      padding: 0.6rem 0.2rem;
      border-bottom: 1px solid var(--line-strong);
      transition: color 0.3s var(--ease), opacity 0.6s var(--ease), visibility 0.6s var(--ease);
    }
    .intro-skip:hover,
    .intro-skip:focus-visible { color: var(--text); }
    .intro-skip.is-hidden {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }
    @media (prefers-reduced-motion: reduce) {
      .hero-video-wrap,
      .intro-skip { display: none; }
    }

    /* ==========================================================================
       HERO EXTRAS — hollow slogan word, registration marks
       ========================================================================== */
    .hero-slogan .line--hollow > span {
      color: transparent;
      -webkit-text-stroke: 1.5px var(--text);
    }
    @media (max-width: 700px) {
      .hero-slogan .line--hollow > span { -webkit-text-stroke-width: 1px; }
    }
    .reg {
      position: absolute;
      width: 0.875rem;
      height: 0.875rem;
      z-index: 1;
      pointer-events: none;
      opacity: 0.55;
    }
    .reg::before,
    .reg::after {
      content: "";
      position: absolute;
      background: var(--line-strong);
    }
    .reg::before { left: 0; top: 50%; width: 100%; height: 1px; }
    .reg::after { left: 50%; top: 0; width: 1px; height: 100%; }
    .reg--tl { top: calc(var(--nav-h) + 1.25rem); left: var(--pad); }
    .reg--tr { top: calc(var(--nav-h) + 1.25rem); right: var(--pad); }
    .reg--ml { top: 50%; left: var(--pad); }
    .reg--mr { top: 50%; right: var(--pad); }
    @media (max-width: 700px) {
      .reg--ml,
      .reg--mr { display: none; }
    }

    /* ==========================================================================
       MOBILE REFINEMENTS
       ========================================================================== */
    @media (max-width: 700px) {
      .footer-links a {
        display: inline-block;
        padding-block: 0.55rem;
      }
    }

    /* ==========================================================================
       SECTIONS — shared
       ========================================================================== */
    .section {
      position: relative;
      padding-block: clamp(3.5rem, 8vw, 6rem);
      min-height: 100svh;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    .section-head {
      display: grid;
      grid-template-columns: repeat(12, minmax(0, 1fr));
      gap: var(--col-gap);
      margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
    }
    .section-label {
      grid-column: 1 / -1;
      margin-bottom: 1.25rem;
    }
    @media (min-width: 900px) {
      .section-label {
        grid-column: 1 / 3;
        margin-bottom: 0;
      }
    }

    /* ==========================================================================
       01 — POSITION
       ========================================================================== */
    #position .position-copy {
      grid-column: 1 / -1;
    }
    @media (min-width: 900px) {
      #position .position-copy { grid-column: 3 / 12; }
    }

    .display-h {
      font-size: clamp(2rem, 5.4vw, 4.25rem);
      font-weight: 500;
      letter-spacing: -0.035em;
      line-height: 1.05;
      color: var(--text);
      margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
    }

    .body-l {
      font-size: clamp(1rem, 1.5vw, 1.125rem);
      line-height: 1.7;
      color: var(--text-muted);
      max-width: 40rem;
      letter-spacing: -0.005em;
    }

    .position-secondary {
      margin-top: clamp(2rem, 4vw, 3rem);
      padding-top: clamp(1.5rem, 3vw, 2rem);
      border-top: 1px solid var(--line);
      max-width: 36rem;
      font-size: 0.9375rem;
      line-height: 1.65;
      color: var(--text-faint);
    }

    /* ==========================================================================
       02 — PRINCIPLES
       ========================================================================== */
    #principles {
      border-top: 1px solid var(--line);
    }

    .principle {
      display: grid;
      grid-template-columns: repeat(12, minmax(0, 1fr));
      gap: var(--col-gap);
      padding-block: clamp(2.25rem, 5vw, 3.75rem);
      border-top: 1px solid var(--line);
      position: relative;
    }
    .principle:last-child { border-bottom: 1px solid var(--line); }

    .principle-num {
      grid-column: 1 / -1;
      font-family: var(--font-mono);
      font-size: 0.625rem;
      letter-spacing: 0.14em;
      color: var(--text-faint);
      margin-bottom: 0.75rem;
    }
    @media (min-width: 900px) {
      .principle-num {
        grid-column: 1 / 2;
        margin-bottom: 0;
        padding-top: 0.55rem;
      }
    }

    .principle-title {
      grid-column: 1 / -1;
      font-size: clamp(2.25rem, 7vw, 5.5rem);
      font-weight: 500;
      letter-spacing: -0.04em;
      line-height: 0.95;
      margin-bottom: 1.25rem;
      overflow: hidden;
    }
    @media (min-width: 900px) {
      .principle-title {
        grid-column: 2 / 8;
        margin-bottom: 0;
      }
    }
    .principle-title span {
      display: block;
      transform-origin: left center;
    }

    .principle-body {
      grid-column: 1 / -1;
      font-size: 0.9375rem;
      line-height: 1.7;
      color: var(--text-muted);
      max-width: 28rem;
    }
    @media (min-width: 900px) {
      .principle-body {
        grid-column: 8 / 13;
        align-self: end;
        padding-bottom: 0.35rem;
      }
    }

    .principle::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      width: 0;
      height: 1px;
      background: var(--text);
      transition: width 0.8s var(--ease);
    }
    .principle.is-inview::before { width: 100%; }

    /* ==========================================================================
       03 — APPROACH
       ========================================================================== */
    #approach {
      border-top: 1px solid var(--line);
    }

    .approach-statement {
      grid-column: 1 / -1;
      margin-bottom: clamp(2.5rem, 6vw, 4rem);
    }
    @media (min-width: 900px) {
      .approach-statement { grid-column: 1 / -1; }
    }

    .approach-words {
      font-size: clamp(1.5rem, 8vw, 6rem);
      font-weight: 500;
      letter-spacing: -0.04em;
      line-height: 0.98;
      margin-bottom: 1.75rem;
      color: var(--text);
    }
    .approach-words em {
      font-style: normal;
      display: inline;
    }

    .approach-support {
      max-width: 34rem;
      font-size: 1rem;
      line-height: 1.7;
      color: var(--text-muted);
    }

    .approach-rows {
      border-top: 1px solid var(--line);
    }

    .approach-row {
      display: grid;
      grid-template-columns: repeat(12, minmax(0, 1fr));
      gap: var(--col-gap);
      padding-block: clamp(1.5rem, 3.5vw, 2.25rem);
      border-bottom: 1px solid var(--line);
      align-items: baseline;
      transition: background 0.4s var(--ease);
      position: relative;
    }
    .approach-row::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -1px;
      width: 0;
      height: 1px;
      background: var(--text);
      transition: width 0.55s var(--ease);
    }
    @media (hover: hover) and (pointer: fine) {
      .approach-row:hover { background: rgba(255,255,255,0.015); }
      .approach-row:hover::after { width: 100%; }
      .approach-row:hover .approach-row-title { color: var(--text); }
    }
    .approach-row:focus-within::after { width: 100%; }

    .approach-row-idx {
      grid-column: 1 / 3;
      font-family: var(--font-mono);
      font-size: 0.6875rem;
      letter-spacing: 0.12em;
      color: var(--text-faint);
      padding-top: 0.2rem;
    }
    @media (min-width: 700px) {
      .approach-row-idx { grid-column: 1 / 2; }
    }

    .approach-row-title {
      grid-column: 3 / -1;
      font-size: clamp(1.25rem, 2.8vw, 1.75rem);
      font-weight: 500;
      letter-spacing: -0.02em;
      color: var(--text-muted);
      transition: color 0.35s var(--ease);
      margin-bottom: 0.65rem;
    }
    @media (min-width: 700px) {
      .approach-row-title {
        grid-column: 2 / 5;
        margin-bottom: 0;
      }
    }

    .approach-row-body {
      grid-column: 3 / -1;
      font-size: 0.9375rem;
      line-height: 1.65;
      color: var(--text-faint);
      max-width: 28rem;
    }
    @media (min-width: 700px) {
      .approach-row-body { grid-column: 5 / 12; }
    }

    /* ==========================================================================
       04 — PRIVATE (inverted)
       ========================================================================== */
    #private {
      background: var(--invert-bg);
      color: var(--invert-text);
      padding-block: clamp(5rem, 14vw, 10rem);
    }
    #private .label { color: var(--invert-muted); }
    #private .rule { background: var(--invert-line); }

    .private-grid {
      display: grid;
      grid-template-columns: repeat(12, minmax(0, 1fr));
      gap: var(--col-gap);
    }

    .private-label {
      grid-column: 1 / -1;
      margin-bottom: 1.5rem;
    }
    @media (min-width: 900px) {
      .private-label {
        grid-column: 1 / 3;
        margin-bottom: 0;
      }
    }

    .private-content {
      grid-column: 1 / -1;
    }
    @media (min-width: 900px) {
      .private-content { grid-column: 3 / 12; }
    }

    .private-headline {
      font-size: clamp(2.25rem, 6vw, 4.75rem);
      font-weight: 500;
      letter-spacing: -0.035em;
      line-height: 1.02;
      margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
    }

    .private-body {
      font-size: clamp(1rem, 1.5vw, 1.125rem);
      line-height: 1.7;
      color: var(--invert-muted);
      max-width: 38rem;
    }

    .private-mark {
      grid-column: 1 / -1;
      margin-top: clamp(3rem, 8vw, 5rem);
      display: flex;
      justify-content: flex-end;
      opacity: 0.12;
      color: var(--invert-text);
      pointer-events: none;
    }
    .private-mark .mark { width: clamp(6rem, 18vw, 12rem); height: auto; }

    /* ==========================================================================
       CLOSING
       ========================================================================== */
    #closing {
      padding-block: clamp(5rem, 14vw, 11rem);
      overflow: hidden;
      position: relative;
      border-top: 1px solid var(--line);
    }

    .closing-inner {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: repeat(12, minmax(0, 1fr));
      gap: var(--col-gap);
    }

    .closing-words {
      grid-column: 1 / -1;
      font-size: clamp(2.5rem, 9vw, 7rem);
      font-weight: 500;
      letter-spacing: -0.045em;
      line-height: 0.95;
      margin-bottom: 2rem;
      color: var(--text);
    }
    .closing-words span { display: block; }

    .closing-sub {
      grid-column: 1 / -1;
      font-family: var(--font-mono);
      font-size: 0.75rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--text-muted);
    }
    @media (min-width: 900px) {
      .closing-words { grid-column: 1 / 10; }
      .closing-sub { grid-column: 1 / 6; }
    }

    .closing-mark {
      position: absolute;
      right: -4%;
      bottom: -8%;
      color: var(--text);
      opacity: 0.06;
      pointer-events: none;
      z-index: 0;
    }
    .closing-mark .mark {
      width: clamp(16rem, 48vw, 36rem);
      height: auto;
    }

    /* ==========================================================================
       FOOTER
       ========================================================================== */
    #site-footer {
      border-top: 1px solid var(--line);
      padding-block: clamp(2.5rem, 5vw, 3.5rem) clamp(2rem, 4vw, 2.75rem);
    }

    .footer-grid {
      display: grid;
      grid-template-columns: repeat(12, minmax(0, 1fr));
      gap: var(--col-gap) 1.5rem;
      align-items: start;
    }

    .footer-brand {
      grid-column: 1 / -1;
      margin-bottom: 0.5rem;
    }
    @media (min-width: 700px) {
      .footer-brand {
        grid-column: 1 / 5;
        margin-bottom: 0;
      }
    }

    .footer-brand-name {
      font-family: var(--font-mono);
      font-size: 0.6875rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      margin-bottom: 0.5rem;
      display: flex;
      align-items: center;
      gap: 0.6rem;
    }
    .footer-brand-name .mark { width: 1rem; height: 1rem; }
    .footer-slogan {
      font-size: 0.8125rem;
      color: var(--text-muted);
      letter-spacing: -0.01em;
    }

    .footer-links {
      grid-column: 1 / -1;
      display: flex;
      flex-wrap: wrap;
      gap: 1rem 1.75rem;
    }
    @media (min-width: 700px) {
      .footer-links {
        grid-column: 9 / -1;
        justify-content: flex-end;
      }
    }
    .footer-links a {
      font-family: var(--font-mono);
      font-size: 0.625rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--text-faint);
      transition: color 0.25s ease;
    }
    .footer-links a:hover { color: var(--text); }

    .footer-bottom {
      margin-top: clamp(2rem, 4vw, 3rem);
      padding-top: 1.25rem;
      border-top: 1px solid var(--line);
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 0.75rem 1.5rem;
      font-family: var(--font-mono);
      font-size: 0.625rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-faint);
    }

    /* ==========================================================================
       REVEAL HELPERS
       Content is visible by default. Animation only enhances when JS is ready.
       ========================================================================== */
    .clip-reveal { overflow: hidden; }

    .js-anim .reveal-pending {
      opacity: 0;
      transform: translateY(1.25rem);
    }
    .js-anim .clip-pending {
      transform: translateY(110%);
    }

    /* 320px safety */
    @media (max-width: 360px) {
      :root { --pad: 1rem; }
      .hero-slogan .line span {
        font-size: 2.35rem;
      }
      .nav-brand-word { display: none; }
    }

    /* Large displays — extra breathing room */
    @media (min-width: 1600px) {
      :root {
        --max: 1560px;
        --pad: 4rem;
      }
    }

    /* ==========================================================================
       CONTACT PAGE
       ========================================================================== */
    .contact-page {
      padding-top: calc(var(--nav-h) + clamp(2.5rem, 7vw, 5rem));
      padding-bottom: var(--pad-y);
    }
    @media (prefers-reduced-motion: no-preference) {
      .contact-page { animation: pageIn 0.9s var(--ease) both; }
      @keyframes pageIn {
        from { opacity: 0; transform: translateY(1.25rem); }
        to { opacity: 1; transform: none; }
      }
    }

    .inquiries-grid {
      display: grid;
      grid-template-columns: repeat(12, minmax(0, 1fr));
      gap: var(--col-gap);
    }
    .inquiries-label {
      grid-column: 1 / -1;
      margin-bottom: 1.5rem;
    }
    @media (min-width: 900px) {
      .inquiries-label { grid-column: 1 / 3; }
    }
    .inquiries-content { grid-column: 1 / -1; }
    @media (min-width: 900px) {
      .inquiries-content { grid-column: 3 / 11; }
    }

    .inquiries-headline {
      font-size: clamp(2rem, 5vw, 3.5rem);
      font-weight: 500;
      letter-spacing: -0.03em;
      line-height: 1.05;
      margin-bottom: 1.25rem;
    }
    .inquiries-body {
      font-size: 1rem;
      line-height: 1.65;
      color: var(--text-muted);
      max-width: 34rem;
    }

    /* ==========================================================================
       CONVERSATIONAL FORM
       ========================================================================== */
    .convo {
      margin-top: clamp(2rem, 5vw, 3.5rem);
      max-width: 40rem;
    }
    .convo-step { display: none; }
    .convo-step.is-active,
    .convo-step.is-done { display: block; }
    .convo-step.is-done { margin-bottom: 1.25rem; }
    @media (prefers-reduced-motion: no-preference) {
      .convo-step.is-active { animation: convoIn 0.5s var(--ease); }
      @keyframes convoIn {
        from { opacity: 0; transform: translateY(1rem); }
        to { opacity: 1; transform: none; }
      }
    }
    .convo-q {
      font-size: clamp(1.05rem, 2vw, 1.3rem);
      font-weight: 500;
      letter-spacing: -0.01em;
      color: var(--text);
      margin-bottom: 1rem;
    }
    .convo-from {
      display: block;
      font-family: var(--font-mono);
      font-size: 0.625rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--text-faint);
      margin-bottom: 0.5rem;
    }
    .convo-step.is-done .convo-q {
      opacity: 0.45;
      margin-bottom: 0.35rem;
      font-size: 0.95rem;
    }
    .convo-echo { display: none; }
    .convo-step.is-done .convo-echo { display: block; }
    .convo-step.is-done .convo-a,
    .convo-step.is-done .convo-chips,
    .convo-step.is-done .convo-err { display: none; }
    .convo-ans { color: var(--text-muted); }
    .convo-a {
      display: flex;
      align-items: flex-end;
      gap: 0.75rem;
    }
    .convo-a input,
    .convo-a textarea {
      flex: 1;
      background: transparent;
      border: 0;
      border-bottom: 1px solid var(--line-strong);
      color: var(--text);
      font: inherit;
      font-size: 1.0625rem;
      padding: 0.65rem 0;
      resize: none;
    }
    .convo-a input::placeholder,
    .convo-a textarea::placeholder { color: var(--text-faint); }
    .convo-a input:focus,
    .convo-a textarea:focus {
      outline: none;
      border-bottom-color: var(--text);
    }
    .convo-next {
      font-family: var(--font-mono);
      font-size: 1rem;
      color: var(--text-muted);
      padding: 0.65rem 0.35rem;
      border-bottom: 1px solid var(--line-strong);
      transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
    }
    .convo-next:hover,
    .convo-next:focus-visible {
      color: var(--text);
      border-bottom-color: var(--text);
    }
    .convo-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 0.6rem;
    }
    .chip {
      font-family: var(--font-mono);
      font-size: 0.6875rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--text-muted);
      border: 1px solid var(--line-strong);
      padding: 0.6rem 1rem;
      transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
    }
    .chip:hover,
    .chip:focus-visible {
      color: var(--text);
      border-color: var(--text);
      background: rgba(255, 255, 255, 0.03);
    }
    .convo-err {
      display: none;
      margin-top: 0.6rem;
      font-family: var(--font-mono);
      font-size: 0.6875rem;
      letter-spacing: 0.08em;
      color: var(--text);
    }
    .convo-step.is-invalid .convo-err { display: block; }
    .convo-step.is-invalid input,
    .convo-step.is-invalid textarea { border-bottom-color: var(--text); }
    .convo-actions {
      display: flex;
      align-items: center;
      gap: 1.75rem;
      flex-wrap: wrap;
    }
    .convo-send {
      font-family: var(--font-mono);
      font-size: 0.75rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--text);
      padding-bottom: 0.65rem;
      border-bottom: 1px solid var(--line-strong);
      transition: border-color 0.3s var(--ease);
    }
    .convo-send:hover,
    .convo-send:focus-visible { border-bottom-color: var(--text); }
    .convo-edit {
      font-family: var(--font-mono);
      font-size: 0.6875rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--text-faint);
      transition: color 0.25s var(--ease);
    }
    .convo-edit:hover,
    .convo-edit:focus-visible { color: var(--text); }
    .convo-note {
      margin-top: 1.25rem;
      font-family: var(--font-mono);
      font-size: 0.625rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--text-faint);
    }

    /* Centered conversational layout — Typeform-style, middle of the page */
    .contact-page .inquiries-content { text-align: center; }
    .convo {
      margin-inline: auto;
      text-align: center;
    }
    .convo-a {
      justify-content: center;
      max-width: 22rem;
      margin-inline: auto;
    }
    .convo-a input,
    .convo-a textarea { text-align: center; }
    .convo-chips { justify-content: center; }
    .convo-actions { justify-content: center; }
