/* ==========================================================================
   WOODSON AERIAL WORKS — "Title Sequence" design system
   The site as an opening-credits sequence. True black, warm bone, one
   desaturated tungsten accent pulled from a film grade. Nothing on the page
   is more colorful than the footage.
   Type: Anton (display) / Archivo (body) / IBM Plex Mono (credits + metadata).
   Motion: title-sequence pacing — staggered line reveals, letterbox bars that
   open to expose the frame, heavy easing. Nothing snaps, nothing bounces.
   ========================================================================== */

:root {
  /* Design Direction 02 §02 — the grade. Values are spec, not taste. */
  --ground:    #0C0B09;  /* print-black — warm near-black, never pure #000 */
  --panel:     #211D16;  /* screen — a genuinely raised surface, clearly a step up */
  --panel-2:   #292419;  /* second step — chips and fields sitting on a panel */
  --ink:       #E8E2D6;  /* bone — projector light, not device white */
  --ink-soft:  #C6BEAE;
  --muted:     #A69D8C;  /* bone-65 — the floor for any text, ≥7:1 on ground */
  --hairline:  #3A342A;  /* rules must be *visible*: ~1.9:1 on ground */
  --hairline-2:#4E4537;  /* stronger rule, ~2.6:1 on ground */
  /* tungsten: primary CTA, active/hover, timecode bar, one masthead mark.
     Never backgrounds, never headlines, never decorative. Budget: <1% of any
     viewport — if a screen reads "orange-y", the budget is blown. */
  --accent:    #C29B5C;
  --ok:        #7E8F6E;  /* desaturated moss — form success only */
  --err:       #B0685C;  /* desaturated brick — form error only */

  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --display: "Anton", "Archivo", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(1.1rem, 4vw, 3rem);
  --max: 84rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* film grain, site-wide, at print-stock strength */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 999;
  opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: var(--ground); }

img, video { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
/* underlines belong to running text, not to nav or controls */
.prose a, .lede a, .spec-row a, p a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--muted); }
.prose a:hover, .lede a:hover, .spec-row a:hover, p a:hover { text-decoration-color: var(--accent); }
p { margin: 0 0 1rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---- type ---------------------------------------------------------------- */

/* credits metadata: DIRECTED BY / SHOT ON / RUNTIME */
.data {
  font-family: var(--mono); font-size: 0.8rem; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.data b, .data strong { color: var(--ink-soft); font-weight: 500; }
.data .lit { color: var(--accent); }

.display {
  font-family: var(--display); font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.008em; line-height: 0.92;
  margin: 0; text-wrap: balance; overflow-wrap: break-word;
  color: var(--ink);
}
/* §03: Anton needs air at scale, not compression */
h1.display { font-size: clamp(2.75rem, 11vw, 8rem); line-height: 0.95; letter-spacing: 0.005em; }
h2.display { font-size: clamp(1.8rem, 5vw, 3rem); }

.lede { font-size: clamp(1.04rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 56ch; }

/* section label, set like a credit line */
.eyebrow {
  display: flex; align-items: center; gap: 1.1rem;
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--muted);
  margin: 0 0 1.2rem;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--hairline-2); transform-origin: left; }
.eyebrow .idx { color: var(--muted); letter-spacing: 0.14em; }

section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
section + section { border-top: 1px solid var(--hairline); }
/* tone band: a raised surface for alternating sections — letterboxing in page
   form. Depth comes from luminance steps, not shadows. */
.band { background: var(--panel); }

/* ---- §06 motion inventory ------------------------------------------------
   Five items, one curve. Film language (cuts, reveals), never web language —
   which is why nothing fades up on scroll except the one letterbox part below.

   The cold open runs once, on first load: title lines reveal at an 80ms
   cadence. Scoped to .js so a script failure can never leave the headline
   invisible (the class is set inline in <head>, before first paint).
   ------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    clip-path: inset(0 0 110% 0); transform: translateY(0.3em);
    /* safety net: if main.js never runs, the title still cuts in at 2.4s */
    animation: reveal-fallback 0.9s var(--ease) 2.4s forwards;
  }
  .js .reveal.in {
    clip-path: inset(0 0 -20% 0); transform: none;
    transition: clip-path 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: var(--d, 0ms);
    animation: none;
  }
  @keyframes reveal-fallback { to { clip-path: inset(0 0 -20% 0); transform: none; } }
}

/* ---- header -------------------------------------------------------------- */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ground) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.site-head .bar { display: flex; align-items: center; gap: 1.6rem; min-height: 3.7rem; }
.brand {
  font-family: var(--display); font-weight: 400;
  text-transform: uppercase; font-size: 1.06rem; letter-spacing: 0.09em;
  color: var(--ink); white-space: nowrap; line-height: 1;
}
.brand .tick { color: var(--accent); font-size: 0.7em; vertical-align: 0.12em; margin: 0 0.15em; }
.site-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.site-nav a {
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--ink-soft);
  padding: 0.5rem 0; border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ink); border-bottom-color: var(--muted); outline: none; }
.site-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--muted); }
.head-call {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em;
  color: var(--ink); white-space: nowrap;
}
/* §06: scroll progress as running timecode — functional, quiet, the one flourish */
.head-tc {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em;
  color: var(--muted); white-space: nowrap; min-width: 8.5rem;
  font-variant-numeric: tabular-nums; line-height: 1.2;
}
.head-tc .tcbar { display: block; height: 1px; background: var(--hairline-2); margin-top: 0.35rem; }
.head-tc .tcbar i { display: block; height: 100%; width: 0; background: var(--accent); }
@media (max-width: 1240px) { .head-tc { display: none; } }
.head-call .lbl { color: var(--muted); margin-right: 0.5em; }
.head-cta {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: #0A0A09; background: var(--accent); font-weight: 500; white-space: nowrap;
  padding: 0.55rem 0.95rem;
}
.head-cta:hover { background: #D2AC6E; }
@media (max-width: 1200px) { .site-head .bar { gap: 1.1rem; } .site-nav { gap: 1.05rem; } }
@media (max-width: 1080px) { .head-call { display: none; } }
/* ≤900px: the nav drops to its own scrollable row instead of vanishing —
   mobile visitors keep a path to every page without a hamburger */
@media (max-width: 900px) {
  .site-head .bar { flex-wrap: wrap; row-gap: 0; padding-top: 0.55rem; }
  .site-nav {
    order: 10; flex-basis: 100%; overflow-x: auto; gap: 1.3rem;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { white-space: nowrap; }
}
@media (max-width: 620px) { .head-cta { display: none; } .brand { font-size: 0.95rem; } }

/* ---- hero: cold open — letterbox bars open, then the title types on -------- */

.hero { padding: 0; }
.hero .matte { padding-block: clamp(1.8rem, 4.5vw, 3.4rem); }
.hero .matte-top { padding-block: clamp(1.1rem, 2.4vw, 1.8rem); }
.hero .matte-top .data { display: flex; flex-wrap: wrap; gap: 0.35rem 2rem; }

.hero-media { position: relative; overflow: hidden; background: #060605; }
.hero-media .frame { aspect-ratio: 2.39 / 1; position: relative; }
/* On a laptop the full 2.39 frame pushes the title card and both CTAs past the
   fold. Capping the height crops wider than 2.39 — which reads as more matte,
   not less — so the first title lines crest the fold. The slate credits the
   source format, not this crop. */
/* the ratio has to be released, not just clamped: with aspect-ratio still set,
   a definite height makes Chrome re-derive the width and the frame stops
   bleeding to the right edge. Height carries the 2.39 cap instead. */
@media (min-width: 701px) {
  .hero-media .frame { aspect-ratio: auto; width: 100%; height: min(58vh, calc(100vw / 2.39)); }
}
@media (max-width: 700px) { .hero-media .frame { aspect-ratio: 3 / 4; } }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* the letterbox bars retract to expose the frame — the cold open */
.hero-media::before, .hero-media::after {
  content: ""; position: absolute; left: 0; right: 0; z-index: 4;
  background: var(--ground); height: 50%;
}
.hero-media::before { top: 0; }
.hero-media::after { bottom: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hero-media::before { animation: openTop 1.5s var(--ease) 0.15s both; }
  .hero-media::after  { animation: openBottom 1.5s var(--ease) 0.15s both; }
  @keyframes openTop    { from { transform: translateY(0); } to { transform: translateY(-100%); } }
  @keyframes openBottom { from { transform: translateY(0); } to { transform: translateY(100%); } }
  /* the plate drifts, very slowly, standing in for the silent loop */
  .hero-media.drift img { animation: drift 44s linear infinite alternate; transform-origin: 50% 45%; }
  @keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.09) translateX(-1.2%); } }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media::before, .hero-media::after { display: none; }
}

/* slate caption, bottom-left of frame — credits language, not telemetry */
.hero-slate {
  position: absolute; left: 16px; bottom: 14px; z-index: 5;
  display: flex; gap: 1.6rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em;
  color: rgba(237, 230, 214, 0.92); text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

/* the title card sits on the lower matte; slate + controls sit under it */
.hero #hero-title { display: flex; flex-direction: column; }
.hero #hero-title .reveal { display: block; }
.hero-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem 2.6rem;
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
}
.hero .cred { display: flex; flex-direction: column; gap: 0.3rem; }
.hero .actions { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; flex-wrap: wrap; }
@media (max-width: 700px) { .hero .actions { margin-left: 0; } }

/* ---- buttons: rules and underscores, not filled chips --------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 500; padding: 0.9rem 1.5rem; cursor: pointer;
  border: 1px solid var(--hairline-2); background: transparent; color: var(--ink);
}
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease); }
}
/* the primary CTA is filled — the one place the tungsten reads at full strength */
.btn-primary { background: var(--accent); border-color: var(--accent); color: #0A0A09; }
.btn-primary:hover, .btn-primary:focus-visible { background: #D2AC6E; border-color: #D2AC6E; color: #0A0A09; outline: none; }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--muted); color: var(--accent); outline: none; }
.btn-ghost .tri { color: var(--accent); font-size: 0.62rem; }

/* ---- proof strip ---------------------------------------------------------- */

.proof { padding: 0; background: var(--panel); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.proof .credits-line {
  margin: 0; padding: 1.15rem 0; line-height: 2;
  font-size: 0.82rem; letter-spacing: 0.08em;
}
.proof .credits-line b { color: var(--ink); font-weight: 500; }

/* ---- selected work: credits-style cards ---------------------------------- */

.workgrid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.6rem 1.4rem; margin-top: 2.4rem; }
.workgrid .card { grid-column: span 6; }
.workgrid .card.wide { grid-column: span 7; }
.workgrid .card.slim { grid-column: span 5; }
@media (max-width: 800px) { .workgrid .card, .workgrid .card.wide, .workgrid .card.slim { grid-column: span 12; } }

.card { text-decoration: none; color: inherit; display: block; }
.card .shot { position: relative; overflow: hidden; background: #060605; border: 1px solid var(--hairline); }
.card .shot img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .card .shot img { transition: transform 1.1s var(--ease), filter 1.1s var(--ease); filter: saturate(0.9); }
  .card:hover .shot img, .card:focus-visible .shot img { transform: scale(1.035); filter: saturate(1); }
}
.card .tc {
  position: absolute; right: 12px; top: 10px; z-index: 2;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em;
  color: rgba(237, 230, 214, 0.92); text-shadow: 0 1px 5px rgba(0,0,0,0.65);
}
/* the big credit numeral */
.card .no {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em;
  color: var(--muted); display: block; margin: 0.85rem 0 0.25rem;
}
.card .title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem); letter-spacing: 0.02em; line-height: 1.05;
  color: var(--ink);
}
.card:hover .title, .card:focus-visible .title { color: var(--accent); }
.card .slate {
  display: flex; flex-wrap: wrap; gap: 0.2rem 1.6rem; margin-top: 0.5rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); line-height: 1.8;
}

/* ---- services: credits roll ---------------------------------------------- */

.svc { border-top: 1px solid var(--hairline-2); margin-top: 2rem; }
.svc-row {
  display: grid; grid-template-columns: 3.6rem 1fr 20rem auto;
  gap: 1.5rem; align-items: center;
  padding: 1.35rem 0; border-bottom: 1px solid var(--hairline);
  color: inherit; text-decoration: none;
}
.svc-row:hover .svc-name, .svc-row:focus-visible .svc-name { color: var(--accent); }
.svc-row:hover .go { transform: translateX(8px); color: var(--accent); }
.svc-row .idx { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; color: var(--muted); }
.svc-name {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.3rem, 2.8vw, 1.8rem); letter-spacing: 0.02em; line-height: 1; color: var(--ink);
}
.svc-row .note { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.5; }
.svc-row .go { font-family: var(--mono); color: var(--muted); font-size: 1rem; }
@media (prefers-reduced-motion: no-preference) {
  .svc-row .go { transition: transform 0.6s var(--ease), color 0.6s var(--ease); }
  .svc-name, .card .title { transition: color 0.5s var(--ease); }
}
@media (max-width: 800px) {
  /* name and arrow share the first row; the note drops beneath both. Pinning
     the arrow keeps it off an auto-placed third row of its own. */
  .svc-row { grid-template-columns: 2.8rem 1fr auto; gap: 0.45rem 1.2rem; align-items: baseline; }
  .svc-row .note { grid-row: 2; grid-column: 2 / -1; }
  .svc-row .go { grid-row: 1; grid-column: 3; }
}

/* ---- the pilot / spec sheet ---------------------------------------------- */

.pilot { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.8rem, 4vw, 3.6rem); align-items: start; margin-top: 2.4rem; }
@media (max-width: 800px) { .pilot { grid-template-columns: 1fr; } }
.pilot .portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(0.9); border: 1px solid var(--hairline); }

/* fleet spec rows: same two-column split as .pilot, but the rig photo matches
   the height of its spec sheet instead of running past it. Aircraft with two
   spec rows were leaving a deep void down the right. */
.fleet-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.8rem, 4vw, 3.6rem); align-items: stretch; }
.fleet-row .portrait img {
  width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  filter: saturate(0.9); border: 1px solid var(--hairline);
}
@media (max-width: 800px) { .fleet-row { grid-template-columns: 1fr; } }

.spec { border-top: 1px solid var(--hairline-2); }
.spec-row {
  display: grid; grid-template-columns: 11rem 1fr; gap: 1.2rem;
  padding: 0.95rem 0; border-bottom: 1px solid var(--hairline);
  font-size: 1rem; color: var(--ink-soft); line-height: 1.55;
}
.spec-row dt { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 0.22rem; }
.spec-row dd { margin: 0; }
.spec-row dd b { color: var(--ink); font-weight: 600; }
@media (max-width: 560px) { .spec-row { grid-template-columns: 1fr; gap: 0.25rem; } }

.counters { display: flex; flex-wrap: wrap; gap: 2.4rem 3.2rem; margin-top: 2.4rem; }
.counter { flex: 0 1 auto; }
.counter .num {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 0.9; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.counter .num .unit { color: var(--accent); }
.counter .lbl { margin-top: 0.6rem; }

/* ---- reviews + quote form ------------------------------------------------ */

.ask { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4.5vw, 4rem); align-items: start; margin-top: 2.4rem; }
@media (max-width: 860px) { .ask { grid-template-columns: 1fr; } }

.quote-block { padding: 0; margin: 0 0 2.2rem; }
.quote-block p {
  font-family: var(--sans); font-size: 1.15rem; font-weight: 500; line-height: 1.5;
  color: var(--ink); margin-bottom: 0.7rem;
}
.quote-block figcaption { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.tag-sample {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--hairline-2); color: var(--muted); padding: 0.1rem 0.45rem;
}

/* the ask sits in its own lit panel — the one container on the page */
.qform { background: var(--panel); border: 1px solid var(--hairline-2); padding: clamp(1.4rem, 3.5vw, 2.2rem); }
.band .qform { background: var(--ground); }
.qform .fieldrow { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 560px) { .qform .fieldrow { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.3rem; display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field label .opt { opacity: 0.75; text-transform: none; letter-spacing: 0.05em; }
/* underlined fields, like a form on a call sheet */
.field input, .field select, .field textarea {
  background: transparent; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--hairline-2);
  font-family: var(--sans); font-size: 1rem; padding: 0.6rem 0.1rem;
  width: 100%;
}
.field select {
  appearance: none; padding-right: 1.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23A69D8C' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.3rem center;
}
.field textarea { min-height: 5.5rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-bottom-color: var(--accent);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.qform .btn { width: 100%; justify-content: center; margin-top: 0.6rem; }
.qform .promise { margin-top: 1.1rem; text-align: center; }
.qform .promise .lit { color: var(--ok); }
.qform .alt { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--hairline); text-align: center; }
.qform-done { text-align: center; padding: 3rem 1rem; }
.qform-done .big {
  font-family: var(--display); font-weight: 400; font-size: 1.6rem;
  text-transform: uppercase; letter-spacing: 0.02em; margin: 0.8rem 0 0.6rem;
}

/* ---- reel dialog --------------------------------------------------------- */

dialog.reel {
  background: #060605; color: var(--ink); border: 1px solid var(--hairline-2);
  padding: 0; max-width: min(94vw, 72rem); width: 100%;
}
dialog.reel::backdrop { background: rgba(5, 5, 4, 0.92); }
dialog.reel .reel-head { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--hairline); }
dialog.reel .reel-body { position: relative; }
dialog.reel .reel-body .frame { aspect-ratio: 16 / 9; position: relative; }
dialog.reel img, dialog.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
dialog.reel .placeholder-note { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; background: rgba(6,6,5,0.6); padding: 1rem; gap: 0.6rem; }
dialog.reel .x {
  background: none; border: 1px solid var(--hairline-2); color: var(--ink);
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.4rem 0.8rem; cursor: pointer;
}
dialog.reel .x:hover { border-color: var(--muted); color: var(--accent); }

/* ---- subpage hero -------------------------------------------------------- */

.page-hero { padding: clamp(2.6rem, 5.5vw, 4.5rem) 0 0; }
.page-hero + section { padding-top: clamp(2.2rem, 4vw, 3.4rem); border-top: none; }
.page-hero .media { margin-top: 2.2rem; position: relative; overflow: hidden; }
.page-hero .media img { aspect-ratio: 21 / 9; width: 100%; object-fit: cover; filter: saturate(0.9); border: 1px solid var(--hairline); }
@media (max-width: 700px) { .page-hero .media img { aspect-ratio: 4 / 3; } }

.prose { max-width: 65ch; color: var(--ink-soft); }
.prose h3 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: 1.15rem; letter-spacing: 0.04em; color: var(--ink); margin: 2.4rem 0 0.8rem;
}
.prose ul { padding-left: 1.1rem; margin: 0 0 1.2rem; }
.prose li { margin-bottom: 0.5rem; }
.prose li::marker { color: var(--muted); }
.prose b, .prose strong { color: var(--ink); font-weight: 600; }

.duo-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin: 2.4rem 0; }
@media (max-width: 700px) { .duo-shots { grid-template-columns: 1fr; } }

/* ---- CTA band ------------------------------------------------------------ */

.cta-band { background: var(--panel); border-top: 1px solid var(--hairline); }
.cta-band .inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem 2.8rem; }
.cta-band .display { font-size: clamp(1.5rem, 3.4vw, 2.4rem); }
.cta-band .actions { margin-left: auto; display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
@media (max-width: 700px) { .cta-band .actions { margin-left: 0; } }

/* ---- footer: end credits ------------------------------------------------- */

.site-foot { border-top: 1px solid var(--hairline-2); padding: 3rem 0 5.5rem; }
/* the contact column carries the full email set in mono uppercase — it needs
   more track than the link lists or it breaks mid-word */
.site-foot .cols { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.5fr; gap: 2.4rem; }
@media (max-width: 1120px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-foot .cols { grid-template-columns: 1fr; gap: 1.8rem; } }
.site-foot .data { line-height: 2.1; }
.site-foot a.data { color: var(--ink-soft); }
.site-foot a.data:hover { color: var(--accent); }
.site-foot .grp { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.site-foot .grp > * { max-width: 100%; overflow-wrap: anywhere; }
.site-foot .legal { margin-top: 2.6rem; padding-top: 1.3rem; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; gap: 0.4rem 2.4rem; }

/* ---- sticky mobile bar --------------------------------------------------- */

.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; grid-template-columns: 1fr 1.5fr;
  border-top: 1px solid var(--hairline-2);
  background: color-mix(in srgb, var(--ground) 94%, transparent);
  backdrop-filter: blur(10px);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar a {
  font-family: var(--mono); font-size: clamp(0.7rem, 3.2vw, 0.8rem);
  letter-spacing: 0.12em; text-transform: uppercase;
  text-align: center; padding: 1rem 0.4rem; font-weight: 500;
  min-width: 0; white-space: nowrap; /* tracks must be free to shrink below min-content */
}
.mobile-bar .call { color: var(--ink); border-right: 1px solid var(--hairline); }
.mobile-bar .quote { background: var(--accent); color: #0A0A09; }
@media (max-width: 900px) { .mobile-bar { display: grid; } }

/* skip link */
.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: #0A0A09; padding: 0.6rem 1rem;
  font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em;
}
.skip:focus { left: 0; }

/* §06 micro: focus is a visible 2px bone outline, never a removed one */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 3px;
}

/* §06: the only scroll-triggered motion on the site — a work block's mattes
   part slightly as it enters frame, once. */
@media (prefers-reduced-motion: no-preference) {
  .js .card .shot::before, .js .card .shot::after {
    content: ""; position: absolute; left: 0; right: 0; height: 50%;
    background: var(--ground); z-index: 2;
    transition: transform 0.85s var(--ease);
  }
  .js .card .shot::before { top: 0; }
  .js .card .shot::after { bottom: 0; }
  .js .card.parted .shot::before { transform: translateY(-100%); }
  .js .card.parted .shot::after { transform: translateY(100%); }
}
