/* DEADWORK — Homepage (Refined Original direction, chosen 2026-10-28). Tokens from assets/css/tokens.css; fonts/images from the shared /assets folder. */
/* ---------- Fonts (the same self-hosted files the live site uses) ---------- */
@font-face { font-family: 'Anton'; src: url('../fonts/anton.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('../fonts/archivo-variable.woff2') format('woff2-variations'), url('../fonts/archivo-variable.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono-400.woff2?v=20261027a') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono-500.woff2?v=20261027a') format('woff2'); font-weight: 500; font-display: swap; }

/* ---------- Tokens (from assets/css/tokens.css) ---------- */
:root {
  color-scheme: dark;
  --ink: #0a0a09;
  --ink-deep: #060605;
  --ink-raised: #11110f;
  --bone: #e6e0d3;
  --bone-body: #d3cdc0;
  --bone-2: #94918a;
  --bone-3: #807d77;
  --line: rgba(230, 224, 211, 0.14);
  --line-strong: rgba(230, 224, 211, 0.32);
  --live: #8fd687;            /* brand green: only ever marks the one shipping tool */
  --error: #e5463d;

  --font-display: 'Anton', 'Impact', 'Haettenschweiler', 'Arial Narrow Bold', sans-serif;
  --font-body: 'Archivo', 'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --gutter: clamp(20px, 3.9vw, 56px);
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--bone);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
:focus-visible { outline: 1px solid var(--bone); outline-offset: 4px; }
::selection { background: var(--bone); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 8px 12px; background: var(--bone); color: var(--ink); font: 500 12px var(--font-mono); text-transform: uppercase; }
.skip-link:focus { top: 16px; }

/* every small label on the page is the same mono voice */
.masthead-meta, .tab, .menu-eyebrow, .menu-card-meta, .badge, .module-index, .sheet-top, .sheet-close,
.spec dt, .notify-label, .notify-status, .btn, .clock-label, .clock-suffix, .foot-note, .foot-copy {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; font-feature-settings: 'tnum' 1;
}

/* ---------- Film (hero video behind everything) ---------- */
.film { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: var(--ink); }
.film img, .film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(0.55) contrast(1.05); }
.film video { opacity: 0; transition: opacity 1.2s var(--ease); }
.film video.is-playing { opacity: 1; }
.film-shade { position: absolute; inset: 0; background:
  radial-gradient(120% 90% at 50% 45%, rgba(6,6,5,0.25), rgba(6,6,5,0.85)),
  linear-gradient(180deg, rgba(6,6,5,0.6) 0%, rgba(6,6,5,0.15) 30%, rgba(6,6,5,0.35) 70%, rgba(6,6,5,0.9) 100%); }
.grain { position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* =====================================================================================
   MASTHEAD — 06 Tools | Pre · Production | wordmark | Post · Studio | Est. Los Angeles
   ===================================================================================== */
.masthead { position: relative; z-index: 20; }
.masthead-row {
  display: grid; grid-template-columns: 1fr auto auto auto 1fr; align-items: center; gap: 32px;
  height: 72px;
}
.masthead-meta { font-size: 11px; color: var(--bone-2); }
.masthead-meta--right, .masthead-row > .masthead-meta:last-child { justify-self: end; }
.masthead-nav { display: flex; gap: 28px; }
.masthead-nav--pre { justify-content: flex-end; }
.tab { font-size: 11px; color: var(--bone); opacity: 0.8; padding: 8px 0; position: relative; transition: opacity .2s; }
.tab:hover, .tab[aria-expanded="true"] { opacity: 1; }
.tab::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.tab:hover::after, .tab[aria-expanded="true"]::after { transform: scaleX(1); }
.masthead-mark img { height: 22px; width: auto; }

.menu {
  position: absolute; left: 0; right: 0; top: 72px;
  background: rgba(10,10,9,0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 24px 0 32px; opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .35s var(--ease-out);
}
.menu.is-open { opacity: 1; transform: none; }
.menu-eyebrow { font-size: 11px; color: var(--bone-2); margin-bottom: 16px; }
.menu-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.menu-card { display: grid; gap: 8px; padding: 20px; border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.menu-card:hover, .menu-card:focus-visible { border-color: var(--line-strong); background: rgba(230,224,211,0.04); }
.menu-card-plate img { height: 40px; width: auto; }
.menu-card-name { font: 400 28px/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.01em; }
.menu-card-desc { color: var(--bone-body); font-size: 15px; }
.menu-card-meta { display: flex; gap: 16px; align-items: center; font-size: 10px; color: var(--bone-2); }
.badge { font-size: 10px; padding: 3px 6px; border: 1px solid var(--line-strong); color: var(--bone-2); }

/* =====================================================================================
   BUTTONS + NOTIFY
   ===================================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; font-size: 11px; font-weight: 500; white-space: nowrap; transition: background .2s, color .2s; }
.btn-primary { background: var(--bone); color: var(--ink); }
.btn-primary:hover { background: #f2ede2; }
.btn-block { width: 100%; }
.notify-row { display: flex; gap: 0; }
.notify-input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; background: rgba(6,6,5,0.6); border: 1px solid var(--line-strong); border-right: 0; color: var(--bone); font: 400 15px var(--font-body); border-radius: 0; }
.notify-input::placeholder { color: var(--bone-3); }
.notify-input:focus { outline: none; border-color: var(--bone); }
.notify-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.notify-label { display: block; font-size: 10px; color: var(--bone-2); margin-bottom: 8px; }
.notify-status { font-size: 11px; margin-top: 8px; color: var(--bone-2); }
.notify-status-good { color: var(--live); }
.notify-status-bad { color: var(--error); }

/* =====================================================================================
   SHEETS — native <dialog>: right-side sheet on desktop, bottom sheet on phones
   ===================================================================================== */
.sheet { padding: 0; margin: 0 0 0 auto; border: 0; height: 100%; max-height: 100%; width: min(560px, 100%); max-width: 100%; background: transparent; color: var(--bone); }
.sheet::backdrop { background: rgba(6,6,5,0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.sheet-panel { height: 100%; overflow-y: auto; background: var(--ink-raised); border-left: 1px solid var(--line); padding: 28px 40px 40px; display: flex; flex-direction: column; gap: 20px; }
.sheet[open] .sheet-panel { animation: sheet-in .45s var(--ease-out); }
@keyframes sheet-in { from { transform: translateX(40px); opacity: 0; } }
.sheet-top { display: flex; align-items: center; gap: 16px; font-size: 10px; color: var(--bone-2); }
.sheet-close { margin-left: auto; font-size: 24px; line-height: 1; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); letter-spacing: 0; }
.sheet-close:hover { border-color: var(--bone); }
.sheet-plate img { height: 56px; width: auto; }
.sheet-name { font: 400 clamp(56px, 7vw, 88px)/0.9 var(--font-display); text-transform: uppercase; }
.sheet-tag { font-size: 20px; color: var(--bone); }
.sheet-desc { color: var(--bone-body); font-size: 16px; line-height: 1.6; }
.spec { border-top: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-size: 10px; color: var(--bone-2); padding-top: 3px; }
.spec dd { font-size: 14px; color: var(--bone-body); }
@media (max-width: 700px) {
  .sheet { margin: auto 0 0; width: 100%; height: auto; max-height: 88svh; }
  .sheet-panel { border-left: 0; border-top: 1px solid var(--line); padding: 20px 20px 32px; }
  @keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
}

/* ---------- Masthead on phones ---------- */
@media (max-width: 899px) {
  .masthead-row { grid-template-columns: 1fr 1fr; grid-template-areas: "mark mark" "l r" "pre pre" "post post"; height: auto; gap: 12px 16px; padding: 16px 0; }
  .masthead-mark { grid-area: mark; justify-self: center; }
  .masthead-mark img { height: 26px; }
  .masthead-row > .masthead-meta:first-child { grid-area: l; }
  .masthead-row > .masthead-meta:last-child { grid-area: r; }
  .masthead-nav--pre, .masthead-nav--post { justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); }
  .masthead-nav--pre { grid-area: pre; }
  .masthead-nav--post { grid-area: post; }
  .tab { white-space: nowrap; }
  .masthead-meta, .tab { font-size: 10px; letter-spacing: 0.1em; }
  .menu { top: 100%; }
  .menu-cards { grid-template-columns: 1fr; gap: 8px; }
  .menu-card { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================================
   TWO SCREENS (shared by all five directions)
   1: masthead + the statement over the film.  2: the six tools, and nothing competing.
   Two ways in: the masthead menus (by phase) and scrolling / "06 Tools" down to screen 2.
   ===================================================================================== */
html { scroll-behavior: smooth; scroll-snap-type: y proximity; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.screen {
  position: relative; min-height: 100vh; min-height: 100svh; scroll-snap-align: start;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  display: grid;
}
.screen--hero { grid-template-rows: auto minmax(0, 1fr); isolation: isolate; }
.screen--hero .film { position: absolute; z-index: -1; }
.grain { position: fixed; }
.screen--tools { grid-template-rows: auto minmax(0, 1fr) auto; background: var(--ink); outline: none; }
.tools-head { padding: clamp(28px, 5vh, 56px) 0 clamp(12px, 2vh, 20px); }
.tools-title { font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: 0.16em; color: var(--bone-2); }
.hero-line { display: block; }
.hero-cue { display: inline-grid; justify-items: center; gap: 14px; padding: 8px 12px; font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: 0.2em; color: var(--bone); }
.hero-cue:hover { color: var(--bone); }
/* a hairline track with a bead that travels down it: "there's more below", without an arrow icon */
.hero-cue-line { position: relative; width: 1px; height: 56px; background: rgba(230,224,211,0.25); overflow: hidden; }
.hero-cue-line::after { content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 18px; background: var(--bone); }
.motion .hero-cue-line::after { animation: bead 2.2s var(--ease) infinite; }
@keyframes bead { 0% { transform: translateY(-18px); } 70%, 100% { transform: translateY(56px); } }
.hero-cue:hover .hero-cue-line { background: rgba(230,224,211,0.5); }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* tool-name buttons inherit the type they sit in */
.tool-name button, .entry-name button, .credit-name button, .module-name button { font: inherit; text-transform: inherit; letter-spacing: inherit; }

.status { font: 400 10px var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--bone-2); white-space: nowrap; }
.status::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border: 1px solid currentColor; }
.status--live { color: var(--live); }
.status--live::before { background: currentColor; }
.link { font: 400 10px var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--bone-2); border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; transition: color .2s, border-color .2s; }
.link:hover { color: var(--bone); border-color: var(--bone); }
.btn { height: 40px; }

/* foot: clock · motto · socials · copyright on one hairline */
.foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0 28px; border-top: 1px solid var(--line); }
/* socials stacked over the motto, dead centre — as on the previous footer */
.foot { display: grid; grid-template-columns: 1fr auto 1fr; }
.foot-center { display: grid; justify-items: center; gap: 10px; }
.foot-copy { justify-self: end; }
.clock { display: flex; align-items: baseline; gap: 12px; }
.clock-label { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; color: var(--bone-2); }
.clock-dot { width: 6px; height: 6px; background: currentColor; animation: blink 2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.clock-time { display: inline-flex; align-items: baseline; gap: 8px; }
[data-clock-hms] { font: 400 24px/1 var(--font-display); display: inline-flex; align-items: center; letter-spacing: 0; }
[data-clock-hms] .d { display: inline-block; width: 0.5em; text-align: center; }
[data-clock-hms] .s { opacity: 0.55; }
[data-clock-hms] .c { font: 500 0.72em/1 var(--font-mono); opacity: 0.7; padding: 0 0.12em; transform: translateY(-0.06em); }
.motion [data-clock-hms] .c { animation: tick 1s steps(1) infinite; }
@keyframes tick { 50% { opacity: 0.3; } }
.clock-suffix { font-size: 10px; color: var(--bone-2); }
.foot-note, .foot-copy { font-size: 10px; color: var(--bone-2); }
.foot-social { display: flex; gap: 20px; color: var(--bone-2); }
.foot-social a:hover { color: var(--bone); }

@media (max-width: 899px) {
  .foot { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 16px; }
  .foot-copy { justify-self: center; }
}

/* =====================================================================================
   01 — REFINED ORIGINAL. The live page at its best: centered statement over the film,
   then the 3 · DEADWORK · 3 composition as its own quiet screen.
   ===================================================================================== */
.film-shade { background: linear-gradient(180deg, rgba(6,6,5,0.55), rgba(6,6,5,0.25) 40%, rgba(6,6,5,0.55) 80%, var(--ink)); }
.hero { display: grid; align-content: center; justify-items: center; text-align: center; padding-bottom: 6vh; position: relative; }
.hero-title { font: 400 clamp(64px, 11.4vw, 200px)/0.94 var(--font-display); letter-spacing: -0.005em; }
.hero-lede { margin-top: 28px; font-size: clamp(16px, 1.35vw, 20px); color: var(--bone-body); }
.hero-cue { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); }
/* keep the statement and buttons clear of the "06 Tools" cue, which sits at the bottom of the hero (it used to run under the buttons on short laptop windows and in longer languages) */
@media (min-width: 900px) { .hero { padding-bottom: calc(6vh + 120px); } }
.motion .hero-line { animation: rise 1.2s var(--ease-out) both; }
.motion .hero-line + .hero-line { animation-delay: .1s; }
.motion .hero-lede, .motion .hero-cue { animation: fade 1s var(--ease) .6s both; }
@keyframes rise { from { opacity: 0; transform: translateY(0.2em); clip-path: inset(-20% -5% 100% -5%); } to { clip-path: inset(-20% -5% -20% -5%); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Screen 2: three tools · DEADWORK · three tools ---------- */
.tools-head { text-align: center; }
.constellation { display: grid; grid-template-columns: minmax(0, 1fr) clamp(180px, 20vw, 300px) minmax(0, 1fr); grid-template-rows: repeat(3, auto); align-content: center; align-items: stretch; column-gap: clamp(24px, 4vw, 64px); min-height: 0; }
.side { display: contents; }
/* rows by phase: Pre-Production on top, Production in the middle, Post-Production at the bottom */
.side--left .tool { grid-column: 1; text-align: right; }
.side--right .tool { grid-column: 3; }
.side .tool:nth-child(1) { grid-row: 1; } .side .tool:nth-child(2) { grid-row: 2; } .side .tool:nth-child(3) { grid-row: 3; }
.center { grid-column: 2; grid-row: 1 / 4; }
.side--left { text-align: right; }
.tool { display: grid; gap: 8px; padding: clamp(18px, 3.2vh, 32px) 0; border-top: 1px solid var(--line); }
.side .tool:nth-child(3) { border-bottom: 1px solid var(--line); }
.tool-meta { display: flex; gap: 16px; font: 400 10px var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--bone-3); }
.side--left .tool-meta { justify-content: flex-end; }
.tool-name { font: 400 clamp(36px, 3.9vw, 60px)/0.95 var(--font-display); text-transform: uppercase; }
.tool-name button { transition: opacity .25s; }
.side:hover .tool-name button { opacity: 0.5; }
.side .tool:hover .tool-name button { opacity: 1; }
.tool-tag { font-size: 16px; color: var(--bone-body); }
.tool-actions { display: flex; gap: 20px; align-items: center; margin-top: 4px; }
.side--left .tool-actions { justify-content: flex-end; }
.center { display: grid; justify-items: center; align-content: center; gap: 20px; }
.center img { width: 100%; height: auto; }
/* the rules run the full height of the three rows, so the wordmark is tied to them */
.center { grid-template-rows: 1fr auto 1fr; align-content: stretch; }
.center-rule { width: 1px; min-height: 32px; height: 100%; background: linear-gradient(transparent, var(--line-strong) 30%, var(--line-strong) 70%, transparent); }

@media (max-width: 899px) {
  .hero-title { font-size: clamp(54px, 16vw, 110px); }
  .constellation { grid-template-columns: 1fr; gap: 0; }
  .center { order: -1; padding: 8px 0 32px; }
  .center img { width: 60%; }
  .center-rule { display: none; }
  .center { grid-template-rows: auto; padding-bottom: 24px; }
  .side--left .tool, .side--left .tool-meta, .side--left .tool-actions { text-align: left; justify-content: flex-start; }
  /* phones: one column in product order — the two sides interleave back into 01 → 06 */
  .side .tool:nth-child(1), .side .tool:nth-child(2), .side .tool:nth-child(3), .center { grid-column: 1; grid-row: auto; }
  .side--left .tool:nth-child(1) { order: 1; } .side--right .tool:nth-child(1) { order: 2; }
  .side--left .tool:nth-child(2) { order: 3; } .side--right .tool:nth-child(2) { order: 4; }
  .side--left .tool:nth-child(3) { order: 5; } .side--right .tool:nth-child(3) { order: 6; }
  .side .tool:nth-child(3) { border-bottom: 0; }
  .side--right .tool:nth-child(3) { border-bottom: 1px solid var(--line); }
}

/* ---------- Footer clock: the original plain mono time (no date) ---------- */
.foot-clock { font: 400 12px/1.5 var(--font-mono); letter-spacing: .06em; color: var(--bone-2); font-variant-numeric: tabular-nums; }


/* =====================================================================================
   NAV TABS + MEGA-MENU — the site's original header, restored on request (2026-10-28).
   Rules copied from home.css / home-tabs.css / base.css (badges) rather than loading those
   files whole: home.css also locks html/body scrolling for its one-screen poster layout,
   which would stop this page's second screen from being reachable.
   ===================================================================================== */
.screen--hero .poster-head { padding-top: 22px; }
.poster-brand img { height: 22px; width: auto; margin: 0 auto; transform: translateY(-4.6px); }
.poster-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 10px 16px; position: relative; z-index: 50; }
.poster-brand { order: -1; flex: 1 0 100%; text-align: center; }
.nav-tabs { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.nav-tab { position: static; }
.nav-tab-trigger {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  background: none;
  cursor: pointer;
  font: 400 11px/1.4 var(--font-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone);
  transition: color var(--duration-hover) var(--ease);
  white-space: nowrap;
}
/* A real underline draw-in (a bar scaling from 0 to full width) instead of a plain color fade on
   a static underline — reads as a considered, deliberate reveal rather than just a color swap. */
.nav-tab-trigger::after {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: -6px;
  height: 2px;
  background: var(--acc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-hover) var(--ease);
}
@media (hover: hover) { .nav-tab-trigger:hover::after { transform: scaleX(1); } }
.nav-tab-trigger[aria-expanded='true'] { color: var(--acc); }
.nav-tab-trigger[aria-expanded='true']::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .nav-tab-trigger::after { transition: none; }
}
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .85), 0 8px 20px -8px rgba(0, 0, 0, .7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--duration-close) var(--ease), transform var(--duration-close) var(--ease), visibility 0s linear var(--duration-close);
  pointer-events: none;
}
.mega-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity var(--duration-open) var(--ease), transform var(--duration-open) var(--ease), visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
  .mega-menu, .mega-menu.is-open { transition-duration: 1ms; transform: none; }
}
/* Only the active group's content is in flow at all — an instant swap (rather than a timed
   cross-fade) while the panel stays open, which reads as smooth without risking either group
   being visible at once mid-transition. Column direction: the group's own eyebrow sits in its
   own row above .mega-menu-cards, rather than living inside the left-most card's own box — an
   earlier version nested it in a wrapper around just that one card, which pushed only that
   card's photo down and left the two cards visibly misaligned/different-looking even though
   they were exactly the same rendered width. Left-aligned text in a full-width row still reads
   as "above the left card" (there's nothing above the card(s) to its right), without that
   misalignment risk. */
.mega-menu-group { display: none; flex-direction: column; padding: 36px 0 40px; gap: 18px; }
.mega-menu-group.is-active { display: flex; }

.mega-menu-eyebrow { margin: 0; font: 400 11px/1.4 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; text-align: center; color: var(--bone-3); }

/* Studio (Mission/Values/Join/Contact) is a 2x2 grid of its own cards rather than the single
   row the product groups use — same card markup, just laid out two-by-two since there are 4
   items, not 2. Each card is shorter (160px) than a product card (300px): these are simple
   section links, not hero-grade product photography. All four currently share the one existing
   generic site photo (no dedicated photography per section yet, unlike the 6 products). */
.mega-menu-group--studio .mega-menu-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.mega-menu-group--studio .mega-menu-card-img { height: 160px; }

/* The group's own products as image cards, side by side, filling the full panel width.
   flex-wrap lets them stack cleanly at tablet widths where two 280px+ cards don't fit side by
   side. */
.mega-menu-cards { display: flex; flex: 1; flex-wrap: wrap; gap: 24px; min-width: 0; }
.mega-menu-card { display: flex; flex-direction: column; flex: 1 1 240px; min-width: 220px; text-decoration: none; }
.mega-menu-card-img { position: relative; display: block; width: 100%; height: 300px; overflow: hidden; background: var(--ink-raised); }
.mega-menu-card-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
  transition: transform var(--duration-hover) var(--ease);
}
@media (hover: hover) { .mega-menu-card:hover .mega-menu-card-photo { transform: scale(1.03); } }
/* Sound Driver's motorcycle photo: the black panel behind the mark sits roughly here, a touch
   left of the photo's own horizontal center (no real fix for that without cropping tighter,
   which was tried and reverted — see chat, 2026-10-22 — for showing noticeably less of the
   machinery than wanted). */
a[href$="sound-driver/"] .mega-menu-card-photo { object-position: 50% 48%; }
/* Stock Shredder's engine-bay photo: lands the bracket roughly behind the mark, same tradeoff
   as above. */
a[href$="stock-shredder/"] .mega-menu-card-photo { object-position: 50% 53%; }
/* Scene Lock: the first fix (61%) centered the mark ON the console row itself, overlapping the
   switches. Pulled back up to 54%, where the full crosshair+text mark instead hovers in the dark
   gap right above the desk's top edge — sitting on top of it, not down in the switches. */
a[href$="scene-lock/"] .mega-menu-card-photo { object-position: 50% 54%; }
/* A soft dark scrim sits behind the centered logo, independent of whatever the photo underneath
   actually shows — without it, a light-colored mark (Loadout's circles, Handoff's diamond) can
   disappear into bright/busy regions of some photos (confirmed: both nearly vanished against
   their latest background swap) with no reliable fix possible from the drop-shadow alone, since
   that contours to the mark's own shape rather than guaranteeing contrast. Sized to comfortably
   clear each mark's own bounding box, not tied to any specific photo's content. */
.mega-menu-card-img::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(70%, 280px);
  height: 58%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 72%);
  pointer-events: none;
}
/* Each product's own logo mark (same transparent-background files used on its hero) sits
   directly on its photo, bottom-left, instead of only as plain text below. */
.mega-menu-card-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  height: clamp(32px, 3.2vw, 56px);
  width: auto;
  max-width: calc(100% - 48px);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .65));
}
/* Set Control's wordmark reads better flat against its console photo — the shared drop-shadow
   looked muddy on its particular mix of fine lines and light background. Sized up slightly from
   the shared default for a touch more separation from the busy panel detail behind it — no
   shadow/glow/scrim added back in, size is the only lever used here. */
a[href$="set-control/"] .mega-menu-card-logo { filter: none; height: clamp(36px, 3.6vw, 62px); }
/* Sound Driver: up ~45% from its previous subtle size — still clearly smaller than the shared
   default (this mark reads best secondary to the wider machinery photo), just no longer reading
   as too quiet against the black panel it sits in. */
a[href$="sound-driver/"] .mega-menu-card-logo {
  height: clamp(26px, 2.6vw, 41px);
}
/* Stock Shredder: up ~25% from its previous size, same reasoning as Sound Driver above but a
   smaller bump — the engine bracket it sits on is a touch more forgiving than Sound Driver's
   tighter black gap. */
a[href$="stock-shredder/"] .mega-menu-card-logo {
  height: clamp(23px, 2.3vw, 35px);
}
/* Handoff: the shared default read as too small against this particular rack photo's level of
   detail — sized up clearly past the shared default so it's comfortably readable, not just
   technically present. */
a[href$="handoff/"] .mega-menu-card-logo {
  height: clamp(52px, 5.2vw, 90px);
}
/* Loadout: the shared scrim wasn't quite enough separation — its logo's own white circles can
   still read close in tone to similar round shapes in the photo behind it. Strengthened just for
   this card rather than resizing the mark or touching the photo itself. */
a[href$="loadout/"] .mega-menu-card-img::after {
  /* An ellipse doesn't fit a wordmark+icon's own roughly-rectangular footprint well — its
     corners reach further than its edge midpoints, so the logo's actual text row (wide and
     short) fell partly outside the dark area while the gradient still looked generous on-paper.
     A soft-edged rectangle covers the measured logo bounding box (164x56 at this viewport, with
     margin) evenly along its whole width instead. */
  width: 34%;
  height: 34%;
  max-width: 320px;
  max-height: 110px;
  background: rgba(0, 0, 0, .62);
  border-radius: 10px;
  filter: blur(14px);
}
.mega-menu-card-caption { display: block; margin-top: 14px; text-align: center; }
.mega-menu-card-name { display: block; font: 400 15px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--bone); transition: color var(--duration-hover) var(--ease); }
/* D-16: was ungated, so a tap on touch stuck the card's accent color on until a different card
   was tapped. */
@media (hover: hover) and (pointer: fine) { .mega-menu-card:hover .mega-menu-card-name { color: var(--acc); } }
.mega-menu-card[aria-current] .mega-menu-card-name { color: var(--acc); }
.mega-menu-card-desc { display: block; margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--bone-2); }
@media (prefers-reduced-motion: reduce) {
  .mega-menu-card-photo { transition: none; }
}
.poster-meta-left,
.poster-meta-right {
  display: none;
}
@media (min-width: 1101px) {
  .poster-meta-left,
  .poster-meta-right {
    display: block;
    position: absolute;
    /* H-20: bottom:0 anchors the box's own bottom edge to the header's, but this line's text is
       shorter than the tab's own 36px-tall flex box (which bottom-aligns its glyphs via
       align-items:flex-end) — the meta text itself rendered ~9px below the tab's baseline.
       Nudged up by the measured gap so both read as sitting on one shelf. */
    bottom: 9px;
    font: 400 11px/1.4 var(--font-mono);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--bone-3);
    white-space: nowrap;
  }
  .poster-meta-left { left: 0; }
  .poster-meta-right { right: 0; }
}
@media (max-width: 719px) {
  .mega-menu { display: none; position: static; margin: 10px 0 0; box-shadow: none; }
  .mega-menu.is-open { display: block; }
  .mega-menu-group.is-active { display: block; }
  .mega-menu-group { padding: 16px 20px 20px; }
  .mega-menu-cards, .mega-menu-group--studio .mega-menu-cards { display: flex; flex-direction: column; gap: 20px; }
  .mega-menu-cards .mega-menu-card { flex: none; }
  .mega-menu-card-img { height: 180px; }
  .nav-tabs { align-items: flex-start; }
}
@media (min-width: 720px) {
  .poster-head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 16px; }
  .poster-brand { order: 0; grid-column: 2; justify-self: center; }
  .nav-tabs--pre { grid-column: 1; justify-content: flex-end; }
  .nav-tabs--post { grid-column: 3; justify-content: flex-start; }
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-beta {
  background: var(--beta-green);
  color: var(--ink);
}
/* P1-1 (2026-10-26 audit): this used to be --dev-yellow, the only place that color carried any
   meaning as "status". Shape (hairline + hollow square) already does that job on its own, so the
   badge is now a neutral bone-on-dark mark, same family as the beta chip's ink-on-green. See
   product-dev.css's body.dev-light override for the ink-on-sand counterpart on the light pages. */
.badge-dev {
  background: transparent;
  color: var(--bone);
  border: 1px solid var(--bone);
}
.badge-icon {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border: 1px solid currentColor;
}
.badge-icon--filled {
  background: currentColor;
  border: none;
}
/* home-tabs.css */
/* Homepage only (loaded by home/index.html, not the product pages that share home.css):
   tab style C (registration corners), calmer category switching, and the product plates inside each tab. */
/* Shared by all five tab options: switching category eases the new content in instead of snapping.
   H-21: scoped to :not(.was-open) — only the first open of a session animates; sweeping the
   pointer between tabs while the panel stays open (nav-dropdown.js already sets .was-open for
   that case) swaps content instantly instead of restarting this keyframe every time. */
.mega-menu:not(.was-open) .mega-menu-group.is-active { animation: tabs-group-in 260ms var(--ease) both; }
.mega-menu:not(.was-open) .mega-menu-group.is-active .mega-menu-card { animation: tabs-card-in 220ms var(--ease) both; }
.mega-menu:not(.was-open) .mega-menu-group.is-active .mega-menu-card:nth-child(2) { animation-delay: 40ms; }
@keyframes tabs-group-in { from { opacity: 0; } }
@keyframes tabs-card-in { from { opacity: 0; transform: translateY(6px); } }
/* while a category is open, the others step back so the open one reads instantly */
.poster-head:has(.mega-menu.is-open) .nav-tab-trigger:not([aria-expanded='true']) { color: var(--bone-3); }
.nav-tab-trigger:focus-visible { outline: 1px solid var(--bone); outline-offset: 6px; }
@media (prefers-reduced-motion: reduce) {
  .mega-menu-group.is-active, .mega-menu-group.is-active .mega-menu-card { animation: none; }
}

/* QA-18: this 4px margin-top (home's own tab rhythm, predating the header-geometry alignment
   work) was the last thing landing home's tab row 4px lower than Studio/Stock Shredder/the dev
   pages' identical-looking header once the shared padding-top was matched (H-8) — dropped so the
   tab row's top edge lines up exactly with every other page's. */
.nav-tab-trigger { padding: 8px 10px 6px; align-items: center; min-height: 36px; }
.nav-tab-trigger::after { display: none; }
/* H-6/QA-17: 36px tall is well under the 44px touch-target floor on a screen where there's no
   cursor precision to make up for it. min-height:44px (the first attempt) grew the whole header
   row's own box by ~16px on touch viewports, same bug nav-v2.css hit on the other pages — this
   tab has its own ::after (disabled above), so it's free to repurpose purely as an
   absolutely-positioned hit-box extension that never touches layout, matching nav-v2.css's fix. */
@media (pointer: coarse) {
  .nav-tab-trigger::after { content: ''; display: block; position: absolute; inset: -6px 0; }
}
.nav-tab-trigger::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 180ms var(--ease);
  background:
    linear-gradient(var(--bone), var(--bone)) top left / 7px 1px no-repeat, linear-gradient(var(--bone), var(--bone)) top left / 1px 7px no-repeat,
    linear-gradient(var(--bone), var(--bone)) top right / 7px 1px no-repeat, linear-gradient(var(--bone), var(--bone)) top right / 1px 7px no-repeat,
    linear-gradient(var(--bone), var(--bone)) bottom left / 7px 1px no-repeat, linear-gradient(var(--bone), var(--bone)) bottom left / 1px 7px no-repeat,
    linear-gradient(var(--bone), var(--bone)) bottom right / 7px 1px no-repeat, linear-gradient(var(--bone), var(--bone)) bottom right / 1px 7px no-repeat;
}
@media (hover: hover) { .nav-tab-trigger:hover::before { opacity: .45; } }
.nav-tab-trigger[aria-expanded='true']::before { opacity: 1; }
.nav-tab-trigger[aria-expanded='true'] { color: var(--bone); }

/* shared: the status + platform line under each tagline, quiet mono like the rest of the menu */
/* H-18: a layout-only mitigation (text itself is unchanged — the full fix needs copy shortened,
   which is the owner's call, see the audit). text-wrap:pretty avoids a single orphaned word on
   the platform line's own last line when it does wrap. */
.mm-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 8px; margin-top: 10px; font: 400 10.5px/1.5 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--bone-3); }
.mm-platform { text-wrap: pretty; }
/* MEDIUM-1 (2026-10-27 QA): nav-v2.css's near-duplicate sibling needs the identical fix — this
   page loads base.css, so the real shared .badge/.badge-dev/.badge-icon already exist on the
   page; only the smaller in-menu sizing needs restating here. Stock Shredder's own entry
   deliberately carries no badge (see this page's panel-meta decision above), so there's no beta
   variant needed here either. */
.mm-meta .badge { height: 18px; padding: 0 7px; gap: 5px; font: inherit; letter-spacing: inherit; }
.mega-menu-card-caption { display: flex; flex-direction: column; align-items: center; }
.mega-menu-card:focus-visible { outline: 1px solid var(--bone); outline-offset: 6px; }

/* Plates: no photography — the logo alone on a quiet plate, with a hairline frame */
.mm-plate-box { background: #121210 !important; box-shadow: inset 0 0 0 1px rgba(230,224,211,.10); transition: box-shadow 200ms var(--ease), background-color 200ms var(--ease); }
.mm-plate-box::after { display: none !important; }
.mm-plate .mega-menu-card-logo { filter: none !important; height: clamp(44px, 4.6vw, 76px) !important; transition: transform 300ms var(--ease); }
a.mm-plate[href$="handoff/"] .mega-menu-card-logo { height: clamp(70px, 7vw, 120px) !important; }
@media (hover: hover) { .mm-plate:hover .mm-plate-box { background: #171715 !important; box-shadow: inset 0 0 0 1px rgba(230,224,211,.28); } .mm-plate:hover .mega-menu-card-logo { transform: translate(-50%, -50%) scale(1.03); } }

/* =====================================================================================
   TOOLS SCREEN — light (2026-10-28): warm sand stock, ink type. Every tool shows its
   category + status, name, logo, slogan and one line of what it does, and the whole block
   links to that product's own page. (Sand, not white: the brand's light surface.)
   ===================================================================================== */
.screen--tools {
  --paper: #ebe5d8; --ink-text: #0a0a09; --ink-2: #4a4843; --ink-3: #6f6b63;
  --rule: rgba(10,10,9,0.14); --rule-strong: rgba(10,10,9,0.32);
  background: var(--paper); color: var(--ink-text);
}
.screen--tools ::selection { background: var(--ink-text); color: var(--paper); }
.screen--tools :focus-visible { outline-color: var(--ink-text); }
.screen--tools .tools-title { color: var(--ink-3); }
.screen--tools .tool { border-color: var(--rule); }
.screen--tools .side .tool:nth-child(3) { border-bottom-color: var(--rule); }
.tool-link { display: grid; gap: 8px; color: inherit; text-decoration: none; }
.side--left .tool-link { justify-items: end; }
.screen--tools .tool-meta { color: var(--ink-3); }
.screen--tools .status { color: var(--ink-2); }
.screen--tools .status--live { color: var(--ink-text); }
.screen--tools .status--live::before { background: #8fd687; border-color: #4f8f48; }
.screen--tools .tool-name { color: var(--ink-text); transition: transform .45s var(--ease-out); }
.tool-logo { display: block; height: 30px; margin: 2px 0 4px; }
.tool-logo img { height: 100%; width: auto; filter: invert(1); }
.screen--tools .tool-tag { color: var(--ink-text); font-size: 16px; }
.tool-desc { max-width: 46ch; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.side--left .tool-desc { margin-left: auto; }
.tool-link:hover .tool-name, .tool-link:focus-visible .tool-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.side--left .tool-link:hover .tool-name { transform: translateX(-6px); }
.side--right .tool-link:hover .tool-name { transform: translateX(6px); }
.screen--tools .center-rule { background: linear-gradient(transparent, var(--rule-strong) 30%, var(--rule-strong) 70%, transparent); }
.screen--tools .foot { border-color: var(--rule); }
.screen--tools .foot-clock, .screen--tools .foot-note, .screen--tools .foot-copy, .screen--tools .foot-social { color: var(--ink-3); }
.screen--tools .foot-social a:hover { color: var(--ink-text); }
@media (max-width: 899px) {
  .side--left .tool-link { justify-items: start; }
  .side--left .tool-desc { margin-left: 0; }
  .side--left .tool-link:hover .tool-name { transform: none; }
}

/* ---------- Status colors on the homepage: In Development = yellow, Live = green ---------- */
.mega-menu .badge-dev { background: var(--dev-yellow); border-color: var(--dev-yellow); color: var(--ink); }
.mega-menu .badge-dev .badge-icon { border-color: currentColor; }
.screen--tools .status { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; background: var(--dev-yellow); color: var(--ink); font-weight: 500; }
.screen--tools .status--live { background: var(--beta-green); color: var(--ink); }
.screen--tools .status::before { border-color: currentColor; background: transparent; width: 6px; height: 6px; margin-right: 6px; }
.screen--tools .status--live::before { background: currentColor; }
.mega-menu .badge-live { background: var(--beta-green); border: 1px solid var(--beta-green); color: var(--ink); }

/* ---------- Hero: the one direct action, to the tool that's shipping ---------- */
.hero-action {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; margin-top: 32px; padding: 0 22px;
  background: var(--bone); color: var(--ink); text-decoration: none;
  font: 500 11px/1 var(--font-mono); letter-spacing: .18em; text-transform: uppercase;
  transition: background .2s var(--ease);
}
.hero-action::before { content: ''; width: 7px; height: 7px; background: var(--beta-green); box-shadow: 0 0 0 1px rgba(10,10,9,.35); }
.hero-action:hover, .hero-action:focus-visible { background: #f2ede2; }
.motion .hero-action { animation: fade 1s var(--ease) .7s both; }
@media (max-width: 899px) { .hero-action { margin-top: 24px; } }

/* ---------- Hero feature (2026-11-04, Daniel): Stock Shredder is the one live product, so it
   gets a real purchase path right under the headline. Editorial, not a SaaS card: no box,
   centered, hairline rules, one bone button. ---------- */
.hero-feature {
  display: grid; justify-items: center; gap: 12px; width: min(100%, 560px); margin-top: 36px; padding: 22px 0 0;
  border-top: 1px solid var(--line-strong); text-align: center; position: relative; z-index: 2;
}
.hf-eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 11px/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--bone-2); }
.hf-eyebrow::before { content: ''; width: 7px; height: 7px; background: var(--beta-green); box-shadow: 0 0 0 1px rgba(10,10,9,.35); }
.hf-title { font: 400 clamp(26px, 2.6vw, 36px)/1 var(--font-display); text-transform: uppercase; letter-spacing: .01em; color: var(--bone); }
.hf-sub { font: 400 15px/1.45 var(--font-body); color: var(--bone-2); }
.hf-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; margin-top: 8px; padding: 0 26px;
  background: var(--bone); color: var(--ink); text-decoration: none;
  font: 500 11px/1 var(--font-mono); letter-spacing: .18em; text-transform: uppercase;
  transition: background .2s var(--ease);
}
.hf-btn:hover, .hf-btn:focus-visible { background: #f2ede2; }
/* Sales audit 2026-11-12: a direct way to the free clips beside Explore. */
.hf-btns { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hf-btn-ghost { background: transparent; color: var(--bone); box-shadow: inset 0 0 0 1px rgba(232, 226, 212, .55); }
.hf-btn-ghost:hover, .hf-btn-ghost:focus-visible { background: rgba(232, 226, 212, .12); }
.motion .hero-feature { animation: fade 1s var(--ease) .7s both; }
@media (max-width: 899px) {
  .hero-feature { margin-top: 28px; padding-top: 20px; gap: 10px; }
  .hf-title { font-size: 26px; text-wrap: balance; }
  .hf-sub { text-wrap: balance; }
  /* on a phone the feature is the call to action; the scroll cue would collide with it */
  .hero-cue { display: none; }
}

/* Footer legal + contact line (site audit 2026-11-18): Contact · Terms · Privacy under the tagline */
.foot-legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.foot-legal a:hover, .foot-legal a:focus-visible { color: var(--bone); }
.screen--tools .foot-legal a:hover, .screen--tools .foot-legal a:focus-visible { color: var(--ink-text); }
.foot-legal .sep { margin: 0 .6em; }
@media (max-width: 767px) { .foot-legal a { display: inline-block; padding: 12px 2px; margin: -12px 0; } }
