/* Brand layer · Growth Terminal (settled 2026-12-03 from the founder's Phase 3 picks).
   One set of decisions: White Studio ground; Archivo on its width axis (display at 118%, weight 600); ink type;
   light ink #F3F1ED on graphite and the close; the one orange only as the call to action's rule; each site's own
   colour carried only by its own page (the rooms stay White Studio since the founder's Into the screen pick,
   2026-12-03); 20 px corners on the pieces and nowhere else; nothing set under 17 px. */

:root {
  --paper: #F3F1ED;                       /* light ink on graphite and the close */
  --studio: linear-gradient(180deg, #F7F8F9 0%, #F1F3F5 50%, #E7EAED 66%, #DDE1E5 100%);
  --stretch: 118%;
  --piece-radius: 20px;
  /* Lenis supplies desktop inertia. Keep native-scroll catch-up short on touch. */
  --motion-lerp: 0.12;
  --motion-scrub: 0.24;
  /* motion tokens: one clock for the whole page */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 0.75, 0.06);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-press: 120ms;
  --dur-ui: 180ms;
  --dur-exit: 220ms;
  --dur-enter: 420ms;
  --stagger: 50ms;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; font-stretch: var(--stretch); letter-spacing: -0.02em; line-height: 1.02; }
main a:not(.gt-cta) { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
@media (hover: hover) { main a:not(.gt-cta):hover { text-decoration-thickness: 2px; } }

/* ---------- Header and menu: the tenth piece (js/scenes/slabmenu.js; header-options/round-2/option-E.jpg). The line is
   still: the mark with the studio's name, the five links, Menu, Start a project. The menu arrives like the work: a
   graphite slab that tips up to face the visitor, then comes on to the full screen. Square corners, no pills. ---------- */
.gt-header { background: color-mix(in srgb, #F1F3F5 90%, transparent); }
.gt-mark { display: inline-flex; align-items: center; gap: 14px; flex: none; color: #0F0F0E; text-decoration: none; }
.gt-mark .mark { display: block; width: 34px; height: 34px; flex: none; }
.gt-wm { font: 600 1.1875rem/1 var(--font-display); font-stretch: var(--stretch); letter-spacing: -0.01em; white-space: nowrap; }
.gt-header nav { display: flex; justify-content: flex-end; align-items: center; gap: 0; font-size: 1.0625rem; }
.gt-links { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.1rem); }
.gt-links a { font-weight: 500; color: inherit; }
.gt-menu-btn { margin-left: clamp(1.4rem, 2.4vw, 2.2rem); padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 500; cursor: pointer; }
.gt-menu-btn[hidden] { display: none; }
@media (hover: hover) { .gt-links a:hover, .gt-menu-btn:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; } }
.gt-cta { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 500; white-space: nowrap; }
.gt-header .gt-cta { margin-left: clamp(1.6rem, 3vw, 2.6rem); }
@media (hover: hover) { .gt-cta:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; } }
.gt-sq { display: inline-block; width: 10px; height: 10px; background: #FC5802; flex: none; }
/* over the graphite ground, in one step (slabmenu.js) */
.gt-header.is-dark { background: #16181B; color: #F3F1ED; }
.gt-header.is-dark .gt-mark { color: #F3F1ED; }
/* narrower windows: the five links live in the menu (only once Menu is there: without JS they stay in the line) */
@media (max-width: 1199px) { .gt-header:has(.gt-menu-btn:not([hidden])) .gt-links { display: none; } }
@media (max-width: 599px) { .gt-wm { display: none; } }

/* the menu: a native modal dialog over everything; the slab's face is the whole menu, laid out at the window's size */
.slabmenu { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: #F3F1ED; overflow: hidden; overscroll-behavior: contain; }
.slabmenu::backdrop { background: transparent; }
html:not(.lenis):has(.slabmenu[open]) { overflow: hidden; }   /* the page behind stays put where Lenis isn't running */
.sm-veil { position: absolute; inset: 0; background: #F1F3F5; opacity: 0; }
.sm-stage { position: absolute; inset: 0; overflow: hidden; perspective: 1600px; perspective-origin: 50% 50%; }
.sm-slab { position: absolute; inset: 0; transform-style: preserve-3d; }
.sm-face { position: absolute; inset: 0; overflow: hidden; background: #16181B; color: #F3F1ED; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.sm-sheen { position: absolute; inset: 0; z-index: 3; opacity: 0; pointer-events: none; background: linear-gradient(180deg, #F1F3F5 0%, rgba(241, 243, 245, 0.35) 100%); }
.sm-edges { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.sm-edges i { position: absolute; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: linear-gradient(to top, #D6DAE0 0, #D6DAE0 var(--hl, 1.2px), #181A1D var(--hd, 3.2px), #181A1D 100%); }
.slabmenu.is-flat .sm-stage { perspective: none; }
.slabmenu.is-flat .sm-slab { transform-style: flat; }
.slabmenu.is-flat .sm-edges, .slabmenu.is-flat .sm-sheen { display: none; }
/* the face's top line sits exactly where the header's does */
.sm-top { position: absolute; left: 0; right: 0; top: 0; z-index: 2; min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-xs) var(--gutter); }
.sm-top .gt-mark { color: #F3F1ED; }
.sm-close { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; background: none; color: inherit;
  font: inherit; font-size: 1.0625rem; font-weight: 500; cursor: pointer; }
@media (hover: hover) { .sm-close:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; } }
.sm-body { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; row-gap: 2.5rem;
  padding: calc(var(--header-h) + clamp(1.5rem, 9vh, 5.25rem)) var(--gutter) var(--gutter); overflow-y: auto; overscroll-behavior: contain; }
.sm-lines, .sm-work { list-style: none; margin: 0; padding: 0; }
.sm-lines a { color: inherit; text-decoration: none; font: 600 clamp(2.4rem, 1rem + 4.4vw, 4.75rem)/1.06 var(--font-display); font-stretch: var(--stretch); letter-spacing: -0.02em; }
.sm-lines a:focus-visible, .sm-work a:focus-visible { outline-offset: 4px; }
@media (hover: hover) { .sm-lines a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.12em; } }
.sm-go a { display: inline-flex; align-items: center; gap: 0.3em; }
.sm-go .gt-sq { width: 0.32em; height: 0.32em; }
.sm-work { display: grid; gap: 0.5rem; align-content: start; }
.sm-work a { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none;
  font: 500 clamp(1.125rem, 0.75rem + 0.85vw, 1.375rem)/1.25 var(--font-display); font-stretch: 110%; }
.sm-work a::before { content: ""; width: 12px; height: 12px; flex: none; background: #FC5802; transform: scale(0); transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.sm-work a[aria-current] { font-weight: 700; }
.sm-work a[aria-current]::before, .sm-work a:focus-visible::before { transform: scale(1); }
@media (hover: hover) and (pointer: fine) { .sm-work a:hover::before { transform: scale(1); } }
.sm-side { display: flex; flex-direction: column; gap: 2rem; min-height: 0; }
.sm-still { display: none; }
@media (min-width: 900px) {   /* the lines, then the work from the window's middle with the piece in front under it, whole */
  .sm-body { grid-template-columns: calc(50vw - var(--gutter)) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); column-gap: 0; }
  .sm-side { padding-top: 0.6rem; }
  .sm-lines a { font-size: min(4.75rem, 5.4vw); }   /* the longest line, Start a project, always fits its half */
  .sm-still { display: block; flex: 1 1 0; min-height: 0; width: 100%; max-width: 640px; object-fit: contain; object-position: 0 100%; }
}
@media (min-width: 900px) and (max-height: 640px) { .sm-still { display: none; } }

/* ---------- ★ The flight / ★ The hand-over (static end state) ---------- */
.flight { position: relative; background: #F1F3F5; }   /* one ground under every room: no seams between them */
.flight-head h1 { font-size: clamp(2.1rem, 1.2rem + 2.4vw, 3.4rem); max-width: 10.5em; }
.flight-sub { margin-top: 1rem; font-size: var(--step-1); color: var(--color-muted); max-width: 24em; }

.flight-controls { position: relative; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1rem var(--gutter); }
.flight-controls[hidden] { display: none; }
.flight-choice { display: inline-flex; align-items: center; gap: 0.65rem; min-height: 44px; font-size: 1rem; cursor: pointer; }
.flight-choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--color-fg); cursor: pointer; }
.flight-choice input:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.flight-pause { display: grid; place-items: center; width: 44px; height: 44px; flex: none; padding: 10px; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.flight-pause[hidden], .flight-play-icon, .flight-pause[aria-pressed="true"] .flight-pause-icon { display: none; }
.flight-pause[aria-pressed="true"] .flight-play-icon { display: block; }
.flight-pause svg { display: block; width: 20px; height: 20px; }
.flight-pause:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.flight-next {
  position: relative; z-index: 6; display: block; width: 48px; height: 48px;
  flex: none; margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--color-fg); cursor: pointer; touch-action: manipulation;
}
.flight-next[hidden] { display: none; }
.flight-next svg { display: block; width: 100%; height: 100%; transition: transform var(--dur-ui) var(--ease-out); }
.flight-next:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.flight-next:disabled { opacity: 0.4; cursor: wait; }
@media (min-width: 900px) {
  .flight-controls { position: absolute; inset: 0; margin: 0; pointer-events: none; }
  .flight-choice { position: absolute; right: var(--gutter); top: calc(100svh - 68px); pointer-events: auto; }
  .flight-pause { position: absolute; right: calc(var(--gutter) + 232px); top: calc(100svh - 68px); pointer-events: auto; }
  .flight-next { position: absolute; top: calc(50svh - 24px); right: clamp(4px, 0.35vw, 8px); margin: 0; pointer-events: auto; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .flight-next:hover svg { transform: translateX(2px); }
}

.piece {
  position: relative; min-height: 100svh;
  display: grid; align-content: center; justify-items: center; gap: 1.5rem;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem;
  color: var(--color-fg);
}
.piece-face {
  width: min(83vw, calc((100svh - var(--header-h) - 11rem) * 1.6));
  aspect-ratio: 16 / 10; border-radius: var(--piece-radius); overflow: hidden; overflow: clip;
  box-shadow: 0 18px 38px -25px rgba(18, 23, 30, 0.3), 0 4px 10px -7px rgba(18, 23, 30, 0.2);
}
.piece-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.piece-label {
  width: min(83vw, calc((100svh - var(--header-h) - 11rem) * 1.6));
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 0.5rem 1.5rem;
}
.piece-label h2 { font-size: var(--step-2); }
.piece-label p { font-size: 1.25rem; color: var(--color-muted); }
.piece-label a { font-size: 1.25rem; font-weight: 500; }

/* every room stands on the one studio ground (Into the screen, 2026-12-03): each site's colour lives on its own page;
   the first piece keeps the studio floor under the headline */
.piece:first-child { background: var(--studio); }

@media (min-width: 900px) {
  .flight-head { position: absolute; inset: 0 0 auto 0; height: 100svh; z-index: 2; pointer-events: none; padding: calc(var(--header-h) + 3.4rem) 56px 0; }
  .flight-head a { pointer-events: auto; }
  .piece:first-child { display: block; padding: 0; }
  .piece:first-child .piece-face { position: absolute; left: 38vw; top: 19svh; width: 58vw; }
  .piece:first-child .piece-label { position: absolute; left: 56px; bottom: 7svh; width: auto; display: block; }
  .piece:first-child .piece-label h2 { font-size: 2.5rem; margin-bottom: 0.4rem; }
  .piece:first-child .piece-label p { font-size: 1.3rem; }
  .piece:first-child .piece-label a { display: inline-block; margin-top: 0.6rem; }
}
@media (max-width: 899px) {
  .flight-head { padding: calc(var(--header-h) + 2.5rem) var(--gutter) 0; }
  .piece { min-height: 78svh; }   /* the next piece is already rising as one leaves */
  .piece:first-child { min-height: auto; padding-top: 2rem; background: none; }
  .piece-face, .piece-label { width: 100%; }
  .piece-label { grid-template-columns: 1fr; }
  .piece-label a { display: inline-flex; align-items: center; min-height: 48px; }   /* the Open link is a full tap target */
}
/* phones with motion (js/scenes/flight.js): each piece tips up on its bottom edge, then comes on to the full width */
.flight.is-phone-flight .piece-face { transform-origin: 50% 100%; backface-visibility: hidden; }
/* The unpinned/mobile button mode shows one complete project, not a long list. */
.flight:not(.is-flying) .piece[hidden] { display: none; }
.flight.is-button-navigation:not(.is-flying) { min-height: 100svh; }
.flight.is-button-navigation:not(.is-flying) .flight-head { position: relative; height: auto; padding: calc(var(--header-h) + 2rem) var(--gutter) 0; }
.flight.is-button-navigation:not(.is-flying) .flight-controls { position: relative; inset: auto; display: flex; margin: 1rem var(--gutter); pointer-events: auto; }
.flight.is-button-navigation:not(.is-flying) .flight-controls[hidden] { display: none; }
.flight.is-button-navigation:not(.is-flying) .flight-choice, .flight.is-button-navigation:not(.is-flying) .flight-next { position: relative; inset: auto; }
.flight.is-button-navigation:not(.is-flying) .piece { display: grid; min-height: auto; padding: 1rem var(--gutter) 2rem; }
.flight.is-button-navigation:not(.is-flying) .piece[hidden] { display: none; }
.flight.is-button-navigation:not(.is-flying) .piece-face { position: relative; inset: auto; width: min(100%, 1000px); }
.flight.is-button-navigation:not(.is-flying) .piece-label { position: relative; inset: auto; width: min(100%, 1000px); }

/* ---------- What we build: flush statement on graphite ---------- */
.build { min-height: 100svh; display: grid; align-content: center; padding-block: var(--space-2xl); }
.build h2 { font-size: clamp(2.4rem, 1rem + 4.6vw, 5.6rem); max-width: 12.5em; }
.build p { margin-top: 2rem; font-size: var(--step-1); color: var(--color-muted); max-width: 32em; line-height: 1.45; }

/* ---------- Three formats: book page ---------- */
.formats h2 { font-size: var(--step-3); max-width: 16em; }
.formats .dossier-row dt { color: var(--color-fg); font-family: var(--font-display); font-weight: 600; font-stretch: var(--stretch); font-size: var(--step-2); line-height: 1.1; }
.formats .dossier-row dd { font-family: var(--font-body); font-size: var(--step-1); line-height: 1.45; font-variant-numeric: normal; max-width: 36em; }
.formats .suits { margin-top: 0.75rem; font-size: 1.125rem; color: var(--color-muted); }
.formats .also { font-size: var(--step-1); color: var(--color-muted); }

/* ---------- The page ground (Made in Evolve): one full-screen ground for the whole page, never a box per section.
   It turns graphite as the flight ends (covering its last frame as it leaves) and back to White Studio at Three
   formats (covering the statement as it leaves). Stacking: flight 0 · graphite 1 · What we build 2 · White Studio 3 ·
   Three formats 4 · footer 5 · header 50. With motion, What we build shows the turning ground instead of its own box;
   reduced motion keeps every section's own ground. ---------- */
.ground { position: fixed; inset: 0; opacity: 0; pointer-events: none; }
.ground-dark { z-index: 1; background: #16181B; }
.ground-light { z-index: 3; background: #F1F3F5; }
.flight { z-index: 0; }
.build { position: relative; z-index: 2; }
.formats { position: relative; z-index: 4; }
.gt-footer { position: relative; z-index: 5; }
html.motion .build { background: transparent; }

/* ---------- Footer: the name owns the end ---------- */
.gt-footer { padding: var(--space-2xl) 0 var(--space-l); }
.wordmark { width: 100%; height: auto; }
.wordmark text { font-family: var(--font-display); font-weight: 700; font-stretch: 125%; font-size: 128px; fill: currentColor; }
.footer-cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; margin-top: var(--space-xl); }
.footer-cols nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; font-size: 1.125rem; }
.footer-cols a { color: inherit; text-decoration: none; }
@media (hover: hover) { .footer-cols a:hover { text-decoration: underline; text-underline-offset: 0.22em; } }
.footer-legal { margin-top: 1rem; font-size: 1.0625rem; color: var(--color-muted); }
.footer-cols + .footer-legal { margin-top: var(--space-l); }

/* ---------- 404: the studio ground, one line, one way back ---------- */
.lost { min-height: 100svh; display: grid; align-content: center; background: var(--studio); }
.lost h1 { font-size: clamp(2.4rem, 1rem + 4.6vw, 5.6rem); max-width: 11em; }
.lost p { margin: 1.25rem 0 2rem; font-size: var(--step-1); color: var(--color-muted); }
.lost .gt-cta { font-size: var(--step-1); }

/* ==========================================================================================================
   ★ The flight + ★ The hand-over · custom scene js/scenes/flight.js (desktop with motion only; the static rooms
   above are the phone, reduced-motion and JS-off page). Frame of the approved film: 1440 x 900, fitted by the scene.
   ========================================================================================================== */
.flight.is-flying { height: 100vh; height: 100svh; overflow: hidden; overflow: clip; padding: 0; background: none; }
.fl-stage { position: absolute; inset: 0; z-index: 0; overflow: hidden; overflow: clip; pointer-events: none; }
.fl-ground { position: absolute; inset: 0; background: var(--studio); }
.fl-box { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; transform-origin: 0 0; }
.fl-world { position: absolute; inset: 0; perspective: 1600px; perspective-origin: 720px 490px; transform-style: preserve-3d; }
.fl-slab { position: absolute; left: 280px; top: 160px; width: 880px; height: 550px; transform-style: preserve-3d; transform-origin: 50% 50% 0; }
.fl-back { position: absolute; inset: 0; border-radius: 20px; background: linear-gradient(180deg, #25282D, #121518); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.fl-facet { position: absolute; background: linear-gradient(to top, #A6AEB8 0, #757D87 1.2px, #191C21 3.2px, #191C21 100%); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.fl-lit { position: absolute; inset: 0; background: linear-gradient(to top, transparent 0, transparent 1.2px, #717984 3.2px, #717984 100%); }
/* Surface depth follows the slab, never a surrounding browser frame. */
.fl-slab::after { content: ""; position: absolute; inset: 0; border-radius: 20px; transform: translateZ(-15px); pointer-events: none;
  box-shadow: 0 18px 36px -20px rgba(18, 23, 30, 0.28), 0 5px 12px -7px rgba(18, 23, 30, 0.2);
  opacity: var(--frame-strength, 1); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.fl-floor { position: absolute; left: 280px; top: 710px; width: 880px; transform-origin: 50% 0 0; opacity: 0; }
.fl-pool { height: 520px; background-size: 100% 100%;
  -webkit-mask-image: radial-gradient(58% 90% at 50% 0%, #000 0%, rgba(0,0,0,.55) 40%, transparent 78%);
          mask-image: radial-gradient(58% 90% at 50% 0%, #000 0%, rgba(0,0,0,.55) 40%, transparent 78%); }
.fl-contact { height: 14px; background: linear-gradient(180deg, rgba(18,19,20,.34), rgba(18,19,20,0)); }
.flight .fl-face { position: absolute; left: 0; top: 0; width: 880px; height: 550px; margin: 0; aspect-ratio: auto;
  border-radius: 20px; overflow: hidden; overflow: clip; background: #0B0C0E; box-shadow: none; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flight .fl-face::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.24), inset 0 -1px 0 rgba(0,0,0,0.1);
  opacity: var(--frame-strength, 1); }
.flight .fl-face img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
/* the live page is laid out at the window's size (inline width and height) and fitted into the face by the scene;
   the still gives way to it in one frame as soon as it is ready, while the scroll is quiet (a 0.15 s fade doubled
   the image once the run had moved the page under it, proof 2026-12-03) */
.fl-live { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; border: 0; transform: scale(0.611111); transform-origin: 0 0; pointer-events: none; background: #fff; }
.fl-haze, .fl-sheen { position: absolute; inset: 0; z-index: 2; opacity: 0; pointer-events: none; }
.fl-haze { background: #F1F3F5; }
.fl-sheen { background: linear-gradient(180deg, #F1F3F5 0%, rgba(241,243,245,.35) 100%); }
.fl-sheen.is-under { background: linear-gradient(0deg, #F1F3F5 0%, rgba(241,243,245,.35) 100%); }
.flight .fl-face.is-live img { opacity: 0; pointer-events: none; }   /* the still has gone */
/* a recorded page (a site that refuses to be framed): viewport captures every few hundred px of its scroll, stacked
   so each shows only the band it newly reveals; the scene places them from the run's inner scroll */
.flight .fl-face .fl-record { overflow: hidden; background: #090909; cursor: pointer; }
.flight .fl-face .fl-record img { inset: auto; left: 0; top: 0; width: 100%; height: auto; object-fit: fill; display: none; }
.flight .fl-face.is-live .fl-record img { opacity: 1; }
.flight .fl-face .fl-record img.fl-record-bar { display: block; z-index: 1000; opacity: 0; }
/* the pointer reaches the site only while it is the page (landed, or its run) */
.flight .fl-face.is-touch, .flight .fl-face.is-touch .fl-live { pointer-events: auto; }
/* landed: the slab's pose is flat 2D, so the running site renders sharp and 1:1 */
.fl-stage.is-landed .fl-world, .fl-stage.is-landed .fl-slab { perspective: none; transform-style: flat; }

/* type over the stage */
.flight.is-flying .flight-head { z-index: 5; right: auto; width: calc(var(--fl-head-w, 560px) + 56px); padding-right: 0; height: auto; }
.flight.is-flying .flight-head h1 { font-size: clamp(2rem, 3.2vw, 2.875rem); }
.flight.is-flying .flight-list { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.flight.is-flying .piece { position: absolute; inset: 0; min-height: 0; padding: 0; display: block; background: none; color: var(--color-fg); }
/* a piece's still shows only on its slab: the figures of pieces not near the front wait out of sight in their rooms */
.flight.is-flying .piece > .piece-face { display: none; }
.flight.is-flying .piece-label { position: absolute; left: 56px; top: var(--fl-label-top, 742px); bottom: auto; width: auto; display: block; }
.flight.is-flying .piece-label h2 { font-size: 2.5rem; margin: 0 0 0.3rem; }
.flight.is-flying .piece-label p { font-size: 1.3125rem; color: var(--color-muted); }
.flight.is-flying .piece-label a { display: inline-block; margin-top: 0.45rem; font-size: 1.25rem; pointer-events: auto; }

/* every line leaves and arrives through its own mask: played, never scrubbed */
.fl-mask { display: block; overflow: hidden; overflow: clip; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.fl-rise { display: block; transform: translateY(108%); visibility: hidden;
  transition: transform 0.25s cubic-bezier(0.7, 0, 0.84, 0), visibility 0s linear 0.25s; }
.flight-head .fl-rise { transition-duration: 0.3s, 0s; transition-delay: 0s, 0.3s; }
.is-shown > .fl-mask > .fl-rise, .is-shown > .fl-mask > a.fl-rise {
  transform: none; visibility: visible; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s; }
.piece-label.is-shown .fl-mask:nth-child(2) .fl-rise { transition-delay: 0.05s, 0s; }
.piece-label.is-shown .fl-mask:nth-child(3) .fl-rise { transition-delay: 0.1s, 0s; }

/* the header sits on the studio during the flight and steps aside while a site is the page (played: out 0.25 s,
   back 0.5 s); keyboard focus brings it back at once */
.gt-header.is-over-flight { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.gt-header { transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s linear, background-color 0.2s linear, color 0.2s linear; }
.gt-header.is-inside { transform: translateY(-100%); opacity: 0; pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.7, 0, 0.84, 0), opacity 0.2s linear 0.05s; }
.gt-header.is-inside:focus-within { transform: none; opacity: 1; pointer-events: auto; }

/* ?tune instrument */
.fl-tune { position: fixed; right: 12px; bottom: 12px; z-index: 100; display: grid; gap: 4px; padding: 12px 14px; background: #121314; color: #F3F1ED;
  font: 500 17px/1.3 var(--font-body); border-radius: 10px; }
.fl-tune label { display: grid; grid-template-columns: 7em 10em 3em; align-items: center; gap: 8px; }

/* ==========================================================================================================
   Motion polish: one clock. Feedback 180 ms, exits 220 ms, entrances 420 ms with a 50 ms stagger.
   ========================================================================================================== */
.gt-links a, .gt-menu-btn, .gt-header .gt-cta, .sm-close, .footer-cols a, main a:not(.gt-cta) {
  text-decoration-line: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 0.22em;
  transition: text-decoration-color var(--dur-ui) var(--ease-out), opacity var(--dur-ui) var(--ease-out); }
main a:not(.gt-cta) { text-decoration-color: currentColor; }
@media (hover: hover) {
  .gt-links a:hover, .gt-menu-btn:hover, .gt-cta:hover, .sm-close:hover, .footer-cols a:hover { text-decoration-line: underline; text-decoration-color: currentColor; }
}
.gt-links a:focus-visible, .gt-menu-btn:focus-visible, .gt-cta:focus-visible, .sm-close:focus-visible { text-decoration-color: currentColor; }
.gt-cta:active, .gt-menu-btn:active, .sm-close:active { opacity: 0.7; transition-duration: var(--dur-press); }

/* Menu lines: underline fades in without changing weight. */
.sm-lines a { text-decoration-line: underline; text-decoration-thickness: 3px; text-underline-offset: 0.12em; text-decoration-color: transparent;
  transition: text-decoration-color var(--dur-ui) var(--ease-out); }
@media (hover: hover) { .sm-lines a:hover { text-decoration-color: currentColor; } }
.sm-lines a:focus-visible { text-decoration-color: currentColor; }
.sm-work a::before { transition: transform var(--dur-ui) var(--ease-out); }

/* flight captions: leave quickly, arrive in 420 ms, a short even stagger */
.fl-rise { transition: transform var(--dur-exit) var(--ease-in), visibility 0s linear var(--dur-exit); }
.flight-head .fl-rise { transition-duration: var(--dur-exit), 0s; transition-delay: 0s, var(--dur-exit); }
.is-shown > .fl-mask > .fl-rise, .is-shown > .fl-mask > a.fl-rise {
  transition: transform var(--dur-enter) var(--ease-out), visibility 0s; }
.piece-label.is-shown .fl-mask:nth-child(2) .fl-rise, .flight-head.is-shown .fl-mask:nth-child(2) .fl-rise { transition-delay: var(--stagger), 0s; }
.piece-label.is-shown .fl-mask:nth-child(3) .fl-rise { transition-delay: calc(var(--stagger) * 2), 0s; }

/* header: steps aside in 220 ms, returns in 420 ms; colour swaps on the UI clock */
.gt-header { transition: transform var(--dur-enter) var(--ease-out), opacity var(--dur-ui) var(--ease-out),
  background-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out); }
.gt-header.is-inside { transition: transform var(--dur-exit) var(--ease-in), opacity var(--dur-ui) var(--ease-in); }
.gt-header.is-inside:focus-within { transition-duration: var(--dur-ui); }

@media (prefers-reduced-motion: reduce) {
  .gt-sq, .sm-work a::before, .gt-header, .fl-rise, .is-shown > .fl-mask > .fl-rise { transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .gt-cta:hover .gt-sq, .sm-close:hover .gt-sq { transform: none; }
}
