/* ===========================================================================
   tools.css v2 - "Through the viewfinder, disciplined"
   The shared kit for the thirteen free photographer tools at /tools.
   ---------------------------------------------------------------------------
   Every tool is one camera body: a slab (.vf-camera), a window (.vf-finder or
   .vf-display) with HUD corner blocks, a caption line, a scrub bar, an info
   bar, a deck of body controls, marginalia, a menu page, the essay, one
   shutter CTA. Document-shaped tools use a paper .sheet instead of a window.

   Scope: everything new lives under .vf (the page wrapper every tool adds
   around .tool-wrap), under .sheet, or is prefixed vf-/tc-/tr-. Nothing here
   reaches .seo-* or the marketing pages. Typography is Inter and JetBrains
   Mono only, through --font-sans / --font-mono from style.css. No @import.

   Sections
     1  tokens            2  page column + hero      3  slab + window + HUD
     4  caption + scrub   5  info bar                6  deck + controls
     7  menu page         8  marginalia, CTA, essay  9  empty state + glyphs
    10  the sheet        11  hub cards + related    12  motion + print
    LEGACY (to strip after migration) at the very bottom.
   ========================================================================= */

/* ---------------------------------------------------------------------------
   1. Tokens (style.css tokens stay; these are added)
   ------------------------------------------------------------------------- */
:root {
    /* surfaces */
    --vf-black: #050505;
    --vf-body: #0b0b0b;
    --vf-body-2: #111111;
    --vf-bevel: rgba(255,255,255,0.09);
    --vf-bevel-strong: rgba(255,255,255,0.16);
    --vf-shadow: 0 30px 80px rgba(0,0,0,0.55);

    /* HUD */
    --hud: #f4f2ea;
    --hud-dim: rgba(244,242,234,0.62);
    --hud-faint: rgba(244,242,234,0.32);
    --hud-amber: #ff9800;
    --hud-amber-2: #ffc46b;
    --hud-green: #6fe3a0;
    --hud-red: #ff5b4d;
    --hud-blue: #7aaeff;

    /* scene palette, sky-like things only */
    --sky-night: #0b1026; --sky-astro: #1e2a5a; --sky-naut: #2d4a8a; --sky-blue: #3f6fd1;
    --sky-gold: #ff9800; --sky-warm: #ffc36b; --sky-day: #8fc7f5;

    /* paper sheet */
    --paper: #f2ede4;
    --paper-2: #e9e2d6;
    --ink: #16130f;
    --ink-2: #5c554b;
    --ink-rule: rgba(22,19,15,0.18);
    --ink-rule-strong: rgba(22,19,15,0.55);
    --ink-accent: #c96a00;
    --ink-red: #b3261e;
    --ink-blue: #2f5aa8;

    /* motion */
    --t-snap: 120ms;
    --t-confirm: 320ms;
    --t-count: 350ms;
    --t-grade: 450ms;
    --t-morph: 480ms;
    --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
    --ease-morph: cubic-bezier(0.33, 1, 0.68, 1);

    /* geometry */
    --hud-inset: 40px;      /* 28px at <=760, 20px at <=480 */
    --scrub-pad: 40px;      /* horizontal padding of the scrub and info bar */
}

/* ---------------------------------------------------------------------------
   2. Page column and the three-line hero
   ------------------------------------------------------------------------- */
.tool-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px 8px; }
@media (max-width: 640px) { .tool-wrap { padding: 0 12px 4px; } }

.vf { color: var(--text-primary); }
.vf * { box-sizing: border-box; }

/* The hero is the existing .seo-hero with the .vf-hero modifier. Top padding
   stays 72px because the site navbar is fixed; the 26px of the brief is the
   gap between the breadcrumbs and the eyebrow. */
.seo-hero.vf-hero { padding: 72px 0 18px; }
.seo-hero.vf-hero .container { max-width: 1240px; }
.seo-hero.vf-hero .seo-breadcrumbs { margin-bottom: 26px; }
.seo-hero.vf-hero .vf-eyebrow {                       /* T9 */
    font-family: var(--font-sans); font-weight: 600; font-size: 0.74rem;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--hud-amber);
    margin: 0 0 8px;
}
.seo-hero.vf-hero h1 {                                /* T10 */
    font-family: var(--font-sans); font-weight: 800;
    font-size: clamp(1.8rem, 3.6vw, 2.5rem); line-height: 1.12; letter-spacing: -0.02em;
    color: var(--text-primary); background: none; -webkit-text-fill-color: currentColor;
    margin: 0 0 8px;
}
.seo-hero.vf-hero h1 .gradient-text { background: none; -webkit-text-fill-color: currentColor; color: inherit; }
.seo-hero.vf-hero .lede {                             /* T11 */
    font-family: var(--font-sans); font-weight: 400; font-size: 1.02rem; line-height: 1.6;
    color: var(--text-secondary); max-width: 680px; margin: 0;
}
.seo-hero.vf-hero .lede em { font-style: normal; font-weight: 500; color: var(--hud); }

/* ---------------------------------------------------------------------------
   3. The slab, the window, the HUD
   ------------------------------------------------------------------------- */
.vf-camera {
    background: var(--vf-body); border-radius: 18px;
    box-shadow: var(--vf-shadow), inset 0 1px 0 var(--vf-bevel);
    overflow: hidden; position: relative;
}

.vf-finder, .vf-display {
    position: relative; background: var(--vf-black); overflow: hidden;
    user-select: none; -webkit-user-select: none; touch-action: none;
    aspect-ratio: 12 / 5; width: 100%; display: block;
}
.vf-finder { cursor: crosshair; }
.vf-finder.--r12x5, .vf-display.--r12x5 { aspect-ratio: 12 / 5; }
.vf-finder.--r3x2,  .vf-display.--r3x2  { aspect-ratio: 3 / 2; }
/* A 3:2 window at full slab width is 795px tall on a 1240px column, which puts
   its bottom (and the EXIF empty state's drop verb) 190px below a 900px fold.
   Above the phone breakpoints, size it from the viewport height instead and
   centre it in the slab; the slab tone showing either side reads as an LCD
   inset in a camera back. 330px is the hero + breadcrumbs + slab padding. */
@media (min-width: 761px) {
    /* Three classes: .vf .vf-empty (line ~504) sets width:100% later in the file. */
    .vf .vf-finder.--r3x2, .vf .vf-display.--r3x2 {
        width: min(100%, max(560px, calc((100vh - 330px) * 1.5)));
        margin-left: auto; margin-right: auto;
    }
}
.vf-finder.--r4x3,  .vf-display.--r4x3  { aspect-ratio: 4 / 3; }
.vf-finder.--r1x1,  .vf-display.--r1x1  { aspect-ratio: 1 / 1; }
/* Row of two or three finders (camera comparison). */
.vf-finder-row { display: grid; gap: 1px; background: var(--vf-bevel-strong); grid-template-columns: var(--cols, 1fr 1fr); }

.vf-finder img.vf-plate, .vf-display img.vf-plate {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; max-width: none;
    object-fit: cover; display: block; pointer-events: none;
    transition: filter var(--t-grade) var(--ease-out); will-change: filter;
}
.vf-grade { position: absolute; inset: 0; pointer-events: none; transition: background var(--t-grade) var(--ease-out); }
.vf-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, rgba(0,0,0,0) 55%, rgba(0,0,0,.5) 100%); }
.vf-flare { position: absolute; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255,196,100,.6) 0%, rgba(255,150,40,.25) 28%, rgba(255,120,0,0) 62%); mix-blend-mode: screen; opacity: 0; transition: opacity .2s; }
.vf-finder canvas.vf-canvas, .vf-display canvas.vf-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }

/* The drawing layer. viewBox is set to the window's pixel size by JS
   (ResizeObserver) so text never scales. */
.vf-finder svg.vf-svg, .vf-display svg.vf-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vf-svg text {                                        /* T1 inside SVG */
    font-family: var(--font-sans); font-weight: 600; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
    fill: var(--hud-dim); paint-order: stroke; stroke: rgba(0,0,0,.7); stroke-width: 4px; stroke-linejoin: round;
}
.vf-svg text.mono {                                   /* T5 */
    font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: 0; text-transform: none;
    fill: var(--hud); font-variant-numeric: tabular-nums;
}
.vf-svg text.mono.tick { font-size: 10px; font-weight: 500; fill: var(--hud-dim); }
.vf-svg text.lit { fill: var(--hud); }
.vf-svg text.amber { fill: var(--hud-amber-2); }
.vf-svg text.blue { fill: var(--hud-blue); }
.vf-svg text.red { fill: var(--hud-red); }
.vf-svg .guide { stroke: rgba(244,242,234,.28); stroke-width: 1; stroke-dasharray: 2 6; fill: none; }
.vf-svg .horizon, .vf-svg .rule { stroke: rgba(244,242,234,.85); stroke-width: 1.25; fill: none; }
.vf-svg .tick-line { stroke: rgba(244,242,234,.6); stroke-width: 1; }
.vf-svg .bracket { fill: none; stroke: var(--hud); stroke-width: 2; stroke-linecap: square; transition: stroke .2s; }
.vf-svg .bracket.green { stroke: var(--hud-green); }
.vf-svg .bracket.amber { stroke: var(--hud-amber); }
.vf-svg .bracket.blue { stroke: var(--hud-blue); }
.vf-svg .bracket.pulse, .vf .bracket.pulse { animation: vfConfirm var(--t-confirm) var(--ease-out); }
@keyframes vfConfirm { 0% { stroke-width: 4.5; opacity: .4; } 100% { stroke-width: 2; opacity: 1; } }
.vf-svg .mask { fill: rgba(0,0,0,.55); }

/* corner brackets of the EVF itself */
.vf-corner { position: absolute; width: 22px; height: 22px; border: 2px solid rgba(244,242,234,.55); pointer-events: none; }
.vf-corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.vf-corner.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.vf-corner.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.vf-corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

/* HUD blocks: fixed positions, fixed jobs */
.vf .hud {
    position: absolute; pointer-events: none; color: var(--hud); line-height: 1.25;
    font-family: var(--font-sans); text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0,0,0,.8), 0 0 12px rgba(0,0,0,.5);
}
.vf .hud .lbl { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; color: var(--hud-dim); }     /* T1 */
.vf .hud .val { display: block; font-size: 1rem; font-weight: 700; letter-spacing: 0.08em; color: var(--hud); }           /* T2 */
.vf .hud .sub { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; color: var(--hud-dim); margin-top: 2px; } /* T1 */
.vf .hud .mono, .vf .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; text-transform: none; }
.vf .hud .code { font-family: var(--font-mono); font-weight: 500; font-size: 0.68rem; letter-spacing: 0; color: var(--hud-faint); }
.vf .hud .chip { display: inline-block; margin-right: 8px; }
.vf .hud.tl { top: var(--hud-inset); left: var(--hud-inset); max-width: 46%; }
.vf .hud.tr { top: var(--hud-inset); right: var(--hud-inset); text-align: right; }
.vf .hud.tr .num {                                    /* T3, exactly one per page */
    display: block; font-family: var(--font-mono); font-weight: 700; letter-spacing: -0.02em; line-height: 1;
    font-size: clamp(1.5rem, 3vw, 2.4rem); color: var(--hud); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.vf .hud.tr .num.amber { color: var(--hud-amber); }
.vf .hud.tr .lbl, .vf .hud.tr .sub { margin-top: 5px; }
.vf .hud.tr .val { margin-top: 5px; }
.vf .hud .val.gold, .vf .hud .val.amber { color: var(--hud-amber-2); }
.vf .hud .val.blue { color: var(--hud-blue); }
.vf .hud .val.red { color: var(--hud-red); }
.vf .hud .val.green { color: var(--hud-green); }
.vf .hud .val.dim { color: var(--hud-dim); }
.vf .hud.bl { bottom: var(--hud-inset); left: var(--hud-inset); max-width: 60%; }
.vf .hud.bl .val { white-space: nowrap; }
.vf .hud.bl .val .mono { font-size: 1.05rem; color: var(--hud-amber-2); }
.vf .hud.br { bottom: calc(var(--hud-inset) - 2px); right: var(--hud-inset); display: flex; gap: 14px; align-items: flex-end; text-align: right; }
.vf .hud.br .glyph, .vf .hud.br svg, .vf .hud.br canvas { width: 74px; height: 74px; display: block; }
/* The bottom-centre caveat collides with the bottom-left verdict on every
   finder whose verdict runs past mid-frame (seen live on GH-1 and ST-1 at
   1440px). The brief already moves caveats into the marginalia on phones;
   generalised here. .vf-empty re-enables it below for its drop verb. */
.vf .hud.bc { display: none; bottom: var(--hud-inset); left: 50%; transform: translateX(-50%); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; color: var(--hud-dim); white-space: nowrap; }
/* the finder's own bottom info strip (EXIF idiom) */
.vf .hud.strip { left: var(--hud-inset); right: var(--hud-inset); bottom: var(--hud-inset); display: flex; gap: 22px; align-items: baseline; font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------------------
   4. Caption line and scrub bar
   ------------------------------------------------------------------------- */
.vf-cap {
    display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline;
    padding: 10px var(--scrub-pad) 12px; color: var(--text-secondary);
    font-family: var(--font-sans); font-weight: 400; font-size: 0.86rem; line-height: 1.5;
}
.vf-cap .fig { font-family: var(--font-mono); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hud-faint); white-space: nowrap; }  /* T13 label */
.vf-cap .txt { flex: 1 1 auto; min-width: 0; }
.vf-cap .txt .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.vf-cap .credit { font-family: var(--font-mono); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hud-faint); white-space: nowrap; margin-left: auto; }

.vf-scrub { position: relative; padding: 12px var(--scrub-pad) 8px; background: var(--vf-body); border-top: 1px solid var(--vf-bevel-strong); }
.vf-scrub input[type=range] {
    -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; padding: 0;
    background: transparent; cursor: ew-resize; display: block; outline: none;
}
.vf-scrub input[type=range]::-webkit-slider-runnable-track { height: 14px; border-radius: 3px; background: var(--scrub-bg, #1c1c1c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.6); }
.vf-scrub input[type=range]::-moz-range-track { height: 14px; border-radius: 3px; background: var(--scrub-bg, #1c1c1c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.6); }
.vf-scrub input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 4px; height: 26px; margin-top: -6px; border-radius: 2px; background: var(--hud); box-shadow: 0 0 0 1px rgba(0,0,0,.8); cursor: ew-resize; }
.vf-scrub input[type=range]::-moz-range-thumb { width: 4px; height: 26px; border: 0; border-radius: 2px; background: var(--hud); box-shadow: 0 0 0 1px rgba(0,0,0,.8); cursor: ew-resize; }
.vf-scrub input[type=range]:focus-visible { outline: 2px solid var(--hud-amber); outline-offset: 2px; }
.vf-scrub .ticks { display: flex; justify-content: space-between; margin-top: 2px; font-family: var(--font-mono); font-weight: 500; font-size: 0.68rem; color: var(--hud-faint); font-variant-numeric: tabular-nums; }
.vf-scrub .ticks .lit { color: var(--hud-dim); }
.vf-scrub .ticks .red { color: var(--hud-red); }
/* NOW tick: set --at (0..1) on the element; no calc in page JS. */
.vf-scrub .now-tick { position: absolute; top: 23px; width: 2px; height: 22px; margin-left: -1px; background: var(--hud); opacity: .9; pointer-events: none; left: calc(var(--scrub-pad) + 2px + (100% - 2 * var(--scrub-pad) - 4px) * var(--at, 0)); }
.vf-scrub .now-tick::after { content: attr(data-label); position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-family: var(--font-sans); font-weight: 600; font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hud-dim); white-space: nowrap; }
.vf-scrub .now-tick:not([data-label])::after { content: 'NOW'; }
/* extra markers on the track (sunrise dot, NPF tick, a shoot): same --at */
.vf-scrub .mark { position: absolute; top: 27px; width: 6px; height: 14px; margin-left: -3px; pointer-events: none; left: calc(var(--scrub-pad) + 2px + (100% - 2 * var(--scrub-pad) - 4px) * var(--at, 0)); background: var(--hud-dim); }
.vf-scrub .mark.amber { background: var(--hud-amber); }
.vf-scrub .mark.red { background: var(--hud-red); }
.vf-scrub .mark::after { content: attr(data-label); position: absolute; top: -13px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-weight: 500; font-size: 0.6rem; letter-spacing: 0; color: var(--hud-dim); white-space: nowrap; }
.vf-scrub .mark.below::after { top: auto; bottom: -14px; }

/* ---------------------------------------------------------------------------
   5. Info bar (replaces the metric tiles). 3 to 5 cells, never wraps.
   ------------------------------------------------------------------------- */
.vf-info { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 14px var(--scrub-pad) 16px; gap: 0; border-top: 1px solid var(--vf-bevel-strong); }
.vf-camera > .vf-scrub + .vf-info { border-top: 0; }
.vf-info .cell { padding: 0 16px; border-left: 1px solid var(--vf-bevel-strong); min-width: 0; }
.vf-info .cell:first-child { border-left: 0; padding-left: 0; }
.vf-info .cell:last-child { padding-right: 0; }
.vf-info .lbl { font-family: var(--font-sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hud-dim); }  /* T1 */
.vf-info .val { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 700; color: var(--hud); margin-top: 3px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }  /* T4 */
.vf-info .sub { font-family: var(--font-sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hud-dim); margin-top: 3px; }
.vf-info .cell.hero .val { font-size: 1.35rem; color: var(--hud-amber-2); }
.vf-info .cell.cool .val { color: var(--hud-blue); }
.vf-info .val.red, .vf-info .cell.trouble .val { color: var(--hud-red); }
.vf-info .val a { color: inherit; text-decoration: underline; text-decoration-color: var(--hud-faint); }

/* ---------------------------------------------------------------------------
   6. Deck and the body controls
   ------------------------------------------------------------------------- */
.vf-deck { display: grid; grid-template-columns: var(--cols, 1fr); gap: 1px; background: var(--vf-bevel-strong); border-top: 1px solid var(--vf-bevel-strong); }
.vf-deck > * { background: var(--vf-body-2); padding: 16px 24px 18px; min-width: 0; }
.vf-deck > .span2 { grid-column: span 2; }
.vf-deck > .span3 { grid-column: span 3; }
.vf .ctl-lbl {
    font-family: var(--font-sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hud-dim);
    display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px;
}
.vf .ctl-lbl .keys { display: inline-flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.vf .ctl-lbl kbd { font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500; color: var(--hud-faint); letter-spacing: 0; text-transform: none; border: 1px solid var(--vf-bevel-strong); border-radius: 4px; padding: 1px 5px; line-height: 1.4; }
.vf .ctl-lbl .t-link { margin-left: auto; }
.vf .ctl-stack > * + * { margin-top: 12px; }
.vf .ctl-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }

/* tertiary text link */
.vf .t-link, .vf-cta .alt, .tool-related .tr-all {
    font-family: var(--font-sans); font-weight: 600; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--hud-dim); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer;
}
.vf .t-link:hover, .vf-cta .alt:hover, .tool-related .tr-all:hover { color: var(--hud); }

/* Fn tile: a real <select> (or input) dressed as the camera's function tile */
.vf .fn { position: relative; }
.vf .fn > select, .vf .fn > input {
    width: 100%; appearance: none; -webkit-appearance: none; -moz-appearance: none; margin: 0;
    background: var(--vf-black); border: 1px solid var(--vf-bevel-strong); border-radius: 6px; color: var(--hud);
    font-family: var(--font-sans); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 12px 40px 12px 14px; cursor: pointer; min-height: 48px; line-height: 1.2; background-image: none !important;
}
.vf .fn > input { cursor: text; }
.vf .fn > input::placeholder { color: var(--hud-faint); text-transform: uppercase; }
.vf .fn > input.mono, .vf .fn > input[type=number], .vf .fn > input[inputmode=decimal], .vf .fn > input[inputmode=numeric] { font-family: var(--font-mono); letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; padding-right: 14px; }
.vf .fn > select option { background: #111; color: var(--hud); text-transform: none; letter-spacing: 0; }
.vf .fn > select:focus-visible, .vf .fn > input:focus-visible { outline: 2px solid var(--hud-amber); outline-offset: 2px; }
.vf .fn::after { content: ''; position: absolute; right: 16px; top: 24px; width: 8px; height: 8px; border-right: 2px solid var(--hud-dim); border-bottom: 2px solid var(--hud-dim); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.vf .fn.--nochevron::after, .vf .fn--num::after { display: none; }
.vf .fn .coord { font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem; color: var(--hud-faint); margin-top: 8px; font-variant-numeric: tabular-nums; letter-spacing: 0; text-transform: none; }
.vf .fn .coord.red { color: var(--hud-red); }
/* date in Fn dress */
.vf .fn--date > input[type=date] { font-family: var(--font-mono); font-weight: 700; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; color-scheme: dark; padding-right: 14px; }
.vf .fn--date::after { display: none; }
.vf .fn--date > input[type=date]::-webkit-calendar-picker-indicator { filter: invert(.85); opacity: .7; cursor: pointer; }
/* type-ahead picker for long lists */
.vf .fn--search::after { transform: translateY(-70%) rotate(45deg); }
.vf .fn--search[aria-expanded="true"]::after, .vf .fn--search.open::after { transform: translateY(-20%) rotate(-135deg); }
.vf .fn-menu {
    position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% - 0px); margin: 4px 0 0; padding: 4px 0; list-style: none;
    max-height: 320px; overflow-y: auto; background: #0e0e0e; border: 1px solid var(--vf-bevel-strong); border-radius: 6px;
    box-shadow: 0 18px 40px rgba(0,0,0,.6);
}
.vf .fn-menu.--up { top: auto; bottom: calc(100% + 4px); }
.vf .fn-menu[hidden] { display: none; }
.vf .fn-menu .grp { font-family: var(--font-sans); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hud-faint); padding: 10px 14px 4px; }
.vf .fn-menu .grp + .grp { display: none; }
.vf .fn-menu .opt { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: baseline; padding: 9px 14px; cursor: pointer; min-height: 44px; }
.vf .fn-menu .opt .nm { font-family: var(--font-sans); font-weight: 600; font-size: 0.84rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hud); }
.vf .fn-menu .opt .nm .br { color: var(--hud-dim); font-weight: 500; }
.vf .fn-menu .opt .meta { font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem; color: var(--hud-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vf .fn-menu .opt:hover, .vf .fn-menu .opt[aria-selected="true"] { background: rgba(255,255,255,.05); box-shadow: inset 3px 0 0 var(--hud-amber); }
.vf .fn-menu .none { padding: 12px 14px; font-family: var(--font-sans); font-size: 0.86rem; color: var(--text-secondary); font-style: italic; }

/* Dial: a knurled strip with a fixed amber index and an engraved scale */
.vf .dial { position: relative; display: grid; grid-template-columns: 44px 1fr 44px; gap: 8px 8px; align-items: stretch; }
.vf .dial-arrow {
    min-height: 44px; background: var(--vf-black); border: 1px solid var(--vf-bevel-strong); border-radius: 6px; color: var(--hud-dim); cursor: pointer;
    font-family: var(--font-mono); font-size: 1rem; font-weight: 500; padding: 0; transition: color var(--t-snap), border-color var(--t-snap);
}
.vf .dial-arrow:hover { color: var(--hud); border-color: rgba(255,255,255,.3); }
.vf .dial-arrow:active { transform: translateY(1px); }
.vf .dial-arrow:focus-visible { outline: 2px solid var(--hud-amber); outline-offset: 2px; }
.vf .dial-strip { position: relative; height: 58px; border-radius: 6px; background: var(--vf-black); border: 1px solid var(--vf-bevel-strong); overflow: hidden; cursor: ew-resize; touch-action: pan-y; }
.vf .dial-strip:focus-visible { outline: 2px solid var(--hud-amber); outline-offset: 2px; }
.vf .dial-knurl { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.22) 0 1px, transparent 1px 10px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.vf .dial-knurl::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 1px, transparent 1px 70px); background-position: inherit; }
.vf .dial-index { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--hud-amber); box-shadow: 0 0 8px rgba(255,152,0,.6); }
.vf .dial-index.tick { animation: vfTick var(--t-snap) var(--ease-out); }
@keyframes vfTick { 0% { transform: scaleX(3); opacity: .5; } 100% { transform: none; opacity: 1; } }
.vf .dial-window {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    background: rgba(5,5,5,.85); border: 1px solid var(--vf-bevel-strong); border-radius: 4px; padding: 5px 14px; text-align: center;
    font-family: var(--font-sans); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hud); white-space: nowrap; pointer-events: none; line-height: 1.2;
}
.vf .dial-window .v { display: block; }
.vf .dial-window .v .mono, .vf .dial-window .v.mono { font-family: var(--font-mono); letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }
.vf .dial-window small { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 0.66rem; letter-spacing: 0; text-transform: none; color: var(--hud-dim); margin-top: 1px; font-variant-numeric: tabular-nums; }
.vf .dial-scale { grid-column: 2; position: relative; height: 16px; margin-top: -2px; }
.vf .dial-scale span { position: absolute; top: 0; transform: translateX(-50%); font-family: var(--font-mono); font-weight: 500; font-size: 0.62rem; color: var(--hud-faint); font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1; }
.vf .dial-scale span::before { content: ''; position: absolute; left: 50%; top: -5px; width: 1px; height: 3px; background: var(--hud-faint); }
.vf .dial-scale span:first-child { transform: none; }
.vf .dial-scale span:first-child::before { left: 0; }
.vf .dial-scale span:last-child { transform: translateX(-100%); }
.vf .dial-scale span:last-child::before { left: auto; right: 0; }
.vf .dial-scale span.on { color: var(--hud); }
.vf .dial-scale span.on::before { background: var(--hud); }

/* Body buttons and the segmented control */
.vf .body-btn {
    background: transparent; border: 1px solid var(--vf-bevel-strong); border-radius: 100px; color: var(--hud-dim);
    font-family: var(--font-sans); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 8px 14px; min-height: 44px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
    transition: color var(--t-snap), border-color var(--t-snap), background var(--t-snap);
}
.vf .body-btn:hover { color: var(--hud); border-color: rgba(255,255,255,.35); }
.vf .body-btn:active { transform: translateY(1px); }
.vf .body-btn[aria-pressed="true"], .vf .body-btn.active { color: var(--vf-black); background: var(--hud); border-color: var(--hud); transition: none; }
.vf .body-btn:focus-visible { outline: 2px solid var(--hud-amber); outline-offset: 2px; }
.vf .body-btn:disabled { opacity: .4; cursor: not-allowed; }
.vf .body-btn.red { color: var(--hud-red); border-color: rgba(255,91,77,.5); }
.vf .body-btn .vf-glyph { width: 14px; height: 14px; }
.vf .body-seg { display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); gap: 8px; }
.vf .body-seg .body-btn { width: 100%; padding-left: 8px; padding-right: 8px; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------------------------
   7. Menu page (replaces tables, phase cards, spec tables)
   ------------------------------------------------------------------------- */
.vf-menu { margin-top: 28px; background: var(--vf-body); border-radius: 14px; box-shadow: inset 0 1px 0 var(--vf-bevel); overflow: hidden; }
.vf-menu .menu-tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--vf-bevel-strong); padding: 0 8px; }
.vf-menu .menu-tabs button, .vf-menu .menu-tabs .tab {
    background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; min-height: 44px;
    color: var(--hud-dim); font-family: var(--font-sans); font-weight: 600; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 14px 16px;
}
.vf-menu .menu-tabs button .n { font-family: var(--font-mono); font-weight: 500; font-size: 0.8rem; letter-spacing: 0; color: var(--hud-faint); margin-right: 8px; }
.vf-menu .menu-tabs button[aria-selected="true"], .vf-menu .menu-tabs button.active { color: var(--hud); border-bottom-color: var(--hud-amber); }
.vf-menu .menu-tabs button[aria-selected="true"] .n, .vf-menu .menu-tabs button.active .n { color: var(--hud-amber); }
.vf-menu .menu-tabs button:focus-visible { outline: 2px solid var(--hud-amber); outline-offset: -2px; }
.vf-menu .menu-tabs .menu-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; padding-right: 8px; }
.vf-menu .menu-lede { padding: 14px 24px 0; font-family: var(--font-sans); font-weight: 700; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hud); }  /* T2 summary line */
.vf-menu .menu-rows { list-style: none; margin: 0; padding: 6px 0; }
.vf-menu .menu-rows[hidden] { display: none; }
.vf-menu .menu-rows li {
    display: grid; grid-template-columns: var(--cols, 1fr); gap: 4px 14px; align-items: baseline;
    padding: 11px 24px; min-height: 44px; border-bottom: 1px solid rgba(255,255,255,.05);
}
.vf-menu .menu-rows li:last-child { border-bottom: 0; }
.vf-menu .menu-rows li:hover { background: rgba(255,255,255,.03); }
.vf-menu .menu-rows li.hd { color: var(--hud-faint); }
.vf-menu .menu-rows li.hd:hover { background: none; }
.vf-menu .menu-rows li.hd > * { font-family: var(--font-sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hud-faint); font-style: normal; }
.vf-menu .menu-rows li[data-scrub], .vf-menu .menu-rows li.pick { cursor: pointer; }
.vf-menu .menu-rows li.live { background: rgba(255,152,0,.06); box-shadow: inset 3px 0 0 var(--hud-amber); }
.vf-menu .menu-rows li.live-b { background: rgba(244,242,234,.04); box-shadow: inset 3px 0 0 var(--hud); }
.vf-menu .menu-rows li.dim > * { color: var(--hud-faint) !important; }
.vf-menu .menu-rows li:focus-visible { outline: 2px solid var(--hud-amber); outline-offset: -2px; }
.vf-menu .menu-rows .sw { width: 14px; height: 14px; border-radius: 2px; transform: translateY(2px); display: inline-block; }
.vf-menu .menu-rows .nm { font-family: var(--font-sans); font-weight: 600; font-size: 0.84rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hud); }   /* T8 */
.vf-menu .menu-rows .num { font-family: var(--font-mono); font-weight: 500; font-size: 0.9rem; letter-spacing: 0; color: var(--hud); font-variant-numeric: tabular-nums; }  /* T8b */
.vf-menu .menu-rows .num.sec { color: var(--hud-dim); }
.vf-menu .menu-rows .num.amber { color: var(--hud-amber-2); }
.vf-menu .menu-rows .num.red { color: var(--hud-red); }
.vf-menu .menu-rows .num.blue { color: var(--hud-blue); }
.vf-menu .menu-rows .num.green { color: var(--hud-green); }
.vf-menu .menu-rows .rm { font-family: var(--font-sans); font-weight: 400; font-style: italic; font-size: 0.86rem; color: var(--text-secondary); letter-spacing: 0; text-transform: none; }  /* T8c */
.vf-menu .menu-rows .rm .mono { font-style: normal; }
.vf-menu .menu-rows .sq { width: 10px; height: 10px; border: 1.5px solid var(--hud); display: inline-block; transform: translateY(1px); }
.vf-menu .menu-rows .sq.on { background: var(--hud); }
.vf-menu .menu-rows li.promo { border-top: 1px solid var(--vf-bevel-strong); margin-top: 6px; padding-top: 14px; }
.vf-menu .menu-rows li.promo .nm { color: var(--hud); }
.vf-menu .menu-rows li.promo .t-link { justify-self: end; }
.vf-menu .menu-rows li .t-link { white-space: nowrap; }
.vf-menu .menu-rows input.inl {
    background: transparent; border: 0; border-bottom: 1px solid var(--vf-bevel-strong); color: var(--hud); font-family: var(--font-sans); font-size: 0.86rem; padding: 4px 0; width: 100%; outline: none;
}
.vf-menu .menu-rows input.inl:focus-visible { border-bottom-color: var(--hud-amber); }
.vf-menu[data-collapsed] .menu-rows, .vf-menu[data-collapsed] .menu-lede { display: none; }
.vf-menu .menu-fold { margin-left: auto; }
/* The one permitted horizontal scroll in the suite: a comparison menu with a
   sticky first column on phones. The page body still never scrolls. */
.vf-menu.--scroll-x { overflow-x: auto; }
.vf-menu.--scroll-x .menu-rows li { min-width: 640px; }
.vf-menu.--scroll-x .menu-rows .nm { position: sticky; left: 0; background: var(--vf-body); padding-right: 8px; }

/* ---------------------------------------------------------------------------
   8. Marginalia, CTA, essay
   ------------------------------------------------------------------------- */
.vf-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 32px; margin: 20px 0 0; padding: 0 var(--scrub-pad); }
.vf-notes > div { min-width: 0; }
.vf-notes .lbl { font-family: var(--font-sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hud-dim); margin-bottom: 6px; }
.vf-notes p { margin: 0; font-family: var(--font-sans); font-weight: 400; font-size: 0.9rem; line-height: 1.6; color: var(--text-secondary); }
.vf-notes p .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--hud-dim); }
.vf-notes p.red, .vf-notes .red { color: var(--hud-red); }

.vf-cta { margin: 44px 0 60px; padding: 34px 40px; border-radius: 16px; background: var(--vf-body); box-shadow: inset 0 1px 0 var(--vf-bevel); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.vf-cta h3 { font-family: var(--font-sans); font-size: 1.35rem; font-weight: 700; margin: 0 0 6px; color: var(--text-primary); letter-spacing: -0.01em; }
.vf-cta p { color: var(--text-secondary); margin: 0; font-size: 1rem; line-height: 1.6; }
.vf-cta .acts { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.vf-cta .alt { margin-left: 4px; }

.vf .shutter, .vf-cta .shutter {
    display: inline-flex; align-items: center; gap: 12px; background: var(--hud-amber); color: #100a00; border: 0; border-radius: 100px;
    padding: 14px 22px 14px 16px; min-height: 50px; font-family: var(--font-sans); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase;
    cursor: pointer; text-decoration: none; box-shadow: 0 0 0 4px rgba(255,152,0,.18); transition: transform var(--t-snap), box-shadow var(--t-snap);
}
.vf .shutter::before, .vf-cta .shutter::before { content: ''; width: 22px; height: 22px; border-radius: 50%; background: #100a00; box-shadow: inset 0 0 0 4px var(--hud-amber), inset 0 0 0 6px #100a00; flex: none; }
.vf .shutter:hover, .vf-cta .shutter:hover { color: #100a00; box-shadow: 0 0 0 6px rgba(255,152,0,.22); }
.vf .shutter:active, .vf-cta .shutter:active { transform: translateY(1px); box-shadow: 0 0 0 3px rgba(255,152,0,.2); }
.vf .shutter:focus-visible, .vf-cta .shutter:focus-visible { outline: 2px solid var(--hud-amber); outline-offset: 4px; }

.vf-essay { max-width: 760px; margin: 44px auto 0; }
.vf-essay h2 { font-family: var(--font-sans); font-size: 1.35rem; font-weight: 700; margin: 36px 0 12px; letter-spacing: -0.01em; color: var(--text-primary); border: 0; padding: 0; display: flex; align-items: baseline; gap: 12px; }
.vf-essay h2:first-child { margin-top: 0; }
.vf-essay h2 .n { font-family: var(--font-mono); font-weight: 500; font-size: 0.8rem; letter-spacing: 0; color: var(--hud-amber); font-variant-numeric: tabular-nums; }  /* T14 */
.vf-essay h3 { font-family: var(--font-sans); font-size: 1.1rem; font-weight: 600; margin: 24px 0 8px; color: var(--text-primary); }
.vf-essay p, .vf-essay li { font-family: var(--font-sans); font-weight: 400; font-size: 1rem; line-height: 1.75; color: var(--text-secondary); }  /* T12 */
.vf-essay p { margin: 0 0 16px; }
.vf-essay ul, .vf-essay ol { margin: 0 0 18px 22px; padding: 0; }
.vf-essay li { margin-bottom: 8px; }
.vf-essay li strong, .vf-essay p strong { color: var(--text-primary); font-weight: 600; }
.vf-essay a { color: var(--hud-amber-2); text-decoration: none; }
.vf-essay a:hover { color: var(--hud-amber); }
.vf-essay .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
/* FAQ inside the essay: hairlines, no boxes, inline SVG chevron */
.vf-essay .faq-item, .vf .faq-item { background: transparent; border: 0; border-bottom: 1px solid var(--vf-bevel-strong); border-radius: 0; padding: 0; margin: 0; }
.vf-essay .faq-item:first-of-type, .vf .faq-item:first-of-type { border-top: 1px solid var(--vf-bevel-strong); }
.vf .faq-item.is-collapsible { padding: 0; }
.vf .faq-toggle { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 16px 0; cursor: pointer; font-family: var(--font-sans); font-weight: 600; font-size: 1.02rem; color: var(--text-primary); min-height: 44px; }
.vf .faq-toggle:focus-visible { outline: 2px solid var(--hud-amber); outline-offset: 2px; }
.vf .faq-toggle .vf-glyph { width: 14px; height: 14px; flex: none; color: var(--hud-dim); transition: transform .2s var(--ease-out); }
.vf .faq-item.is-collapsible.open .faq-toggle .vf-glyph { transform: rotate(180deg); }
.vf .faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s var(--ease-out); }
.vf .faq-item.is-collapsible.open .faq-answer { max-height: 640px; }
.vf .faq-answer p { margin: 0; padding: 0 0 18px; font-size: 0.95rem; }

/* ---------------------------------------------------------------------------
   9. Empty state (powered-off instrument) and the glyph set
   ------------------------------------------------------------------------- */
.vf .vf-empty {
    display: block; width: 100%; border: 0; margin: 0; padding: 0; cursor: pointer; color: var(--hud-faint); text-align: left;
    background: var(--vf-black); font: inherit;
}
.vf .vf-empty .hud, .vf .vf-empty .hud .lbl, .vf .vf-empty .hud .val, .vf .vf-empty .hud .sub { color: var(--hud-faint); text-shadow: none; }
.vf .vf-empty .vf-corner { border-color: rgba(244,242,234,.25); }
.vf .vf-empty .hud.bc { display: block; color: var(--hud-dim); white-space: normal; text-align: center; max-width: 80%; }
.vf .vf-empty:hover .hud.bc, .vf .vf-empty:focus-visible .hud.bc { color: var(--hud); }
.vf .vf-empty:focus-visible { outline: 2px solid var(--hud-amber); outline-offset: -2px; }
.vf .vf-empty.over { box-shadow: inset 0 0 0 2px var(--hud); }
.vf .vf-empty.over .hud.bc { color: var(--hud); }
.vf .vf-empty input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.vf-glyph { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; flex: none; }
.vf-glyph.lg { width: 24px; height: 24px; }
.vf .hud.br .vf-glyph { width: 74px; height: 74px; stroke-width: 1; }

/* ---------------------------------------------------------------------------
   10. The sheet: paper and ink (pricing, shot list)
   ------------------------------------------------------------------------- */
.sheet {
    background: var(--paper); color: var(--ink); border-radius: 0; box-shadow: 0 24px 60px rgba(0,0,0,.5);
    max-width: 820px; margin: 0 auto; padding: 40px 44px; position: relative;
    font-family: var(--font-sans); font-weight: 400; font-size: 0.92rem; line-height: 1.6;          /* T16 */
}
.sheet * { box-sizing: border-box; }
.sheet a { color: var(--ink-accent); }
.sheet .k, .sheet .sh-lbl { font-family: var(--font-sans); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }   /* T15 */
.sheet .num, .sheet .v.num { font-family: var(--font-mono); font-weight: 500; font-size: 0.92rem; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: 0; }  /* T17 */
.sheet .accent { color: var(--ink-accent); }
.sheet .trouble { color: var(--ink-red); }
.sheet .cool { color: var(--ink-blue); }
.sheet .muted { color: var(--ink-2); }
.sheet .sheet-code { position: absolute; top: 40px; right: 44px; font-family: var(--font-mono); font-weight: 500; font-size: 0.7rem; color: var(--ink-2); letter-spacing: 0; }
.sheet .sheet-title { font-family: var(--font-sans); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 18px; }
.sheet .sheet-title b, .sheet .sheet-title .big { display: block; font-size: 1.4rem; letter-spacing: -0.01em; text-transform: none; color: var(--ink); font-weight: 700; margin-top: 4px; }
.sheet .sheet-hint { font-style: italic; color: var(--ink-2); margin: -10px 0 18px; }
.sheet .sheet-head { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 24px; padding-bottom: 16px; border-bottom: 1px solid var(--ink-rule-strong); margin-bottom: 18px; }
.sheet .sheet-head .v { display: block; margin-top: 3px; color: var(--ink); }
.sheet .sheet-head .v.num { font-size: 0.92rem; }
.sheet .sheet-lines { margin: 0; padding: 0; list-style: none; }
.sheet .line { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--ink-rule); }
.sheet .line.sub { padding-left: 18px; color: var(--ink-2); }
.sheet .line.sub .num { color: var(--ink-2); }
.sheet .line.rule { border-bottom: 1px solid var(--ink-rule-strong); }
.sheet .line.total { border-top: 1px solid var(--ink-rule-strong); border-bottom: 3px double var(--ink-rule-strong); padding: 12px 0 10px; margin-top: 4px; }
.sheet .line.total .num { font-weight: 700; font-size: 1.6rem; line-height: 1; }
.sheet .line.total .k { font-size: 0.7rem; }
.sheet .band { background: var(--paper-2); margin: 0 -44px; padding: 8px 44px; }
/* min-width just large enough to keep a click target when the field is
   emptied mid-edit; 2ch left a visible gap before the unit that followed
   ("6  h") because a one-digit value never filled it. */
.sheet [contenteditable] { outline: none; border-bottom: 1px dotted transparent; cursor: text; min-width: 1ch; display: inline-block; }
.sheet [contenteditable]:hover, .sheet [contenteditable]:focus { border-bottom-color: var(--ink-rule-strong); }
.sheet [contenteditable]:focus-visible { outline: 2px solid var(--ink-accent); outline-offset: 2px; }
.sheet .sheet-foot { margin-top: 22px; font-size: 0.92rem; color: var(--ink); }
.sheet .sheet-foot .num { font-size: 0.92rem; }
.sheet .cap { font-family: var(--font-mono); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin-top: 10px; }
.sheet .cap .s { font-family: var(--font-sans); font-weight: 400; font-size: 0.86rem; letter-spacing: 0; text-transform: none; color: var(--ink-2); margin-left: 8px; }
.sheet svg text { font-family: var(--font-mono); font-size: 10px; fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.sheet svg .ink { stroke: var(--ink); fill: none; stroke-width: 1; }
.sheet svg .ink-rule { stroke: var(--ink-rule-strong); fill: none; stroke-width: 1; }
/* an ink ruler: input[type=range] as an engraved scale */
.sheet input[type=range].ink-rule-in { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: ew-resize; display: block; }
.sheet input[type=range].ink-rule-in::-webkit-slider-runnable-track { height: 2px; background: var(--ink-rule-strong); }
.sheet input[type=range].ink-rule-in::-moz-range-track { height: 2px; background: var(--ink-rule-strong); }
.sheet input[type=range].ink-rule-in::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 3px; height: 22px; margin-top: -10px; background: var(--ink-accent); border-radius: 0; }
.sheet input[type=range].ink-rule-in::-moz-range-thumb { width: 3px; height: 22px; border: 0; background: var(--ink-accent); border-radius: 0; }
.sheet input[type=range].ink-rule-in:focus-visible { outline: 2px solid var(--ink-accent); outline-offset: 2px; }
/* the tickable square of a call sheet */
.sheet .sq { width: 11px; height: 11px; border: 1.5px solid var(--ink); display: inline-block; vertical-align: -1px; margin-right: 10px; flex: none; }
.sheet .sq.must { background: var(--ink); }
.sheet .done { text-decoration: line-through; color: var(--ink-2); }
.sheet .done .sq { background: var(--ink-2); border-color: var(--ink-2); }

/* ---------------------------------------------------------------------------
   11. Hub cards and the related-tools rows (kept class names, restyled)
   ------------------------------------------------------------------------- */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 16px; margin: 28px 0 8px; }
.tool-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--vf-body); border: 0; border-radius: 14px; box-shadow: inset 0 1px 0 var(--vf-bevel);
    padding: 20px 20px 18px; text-decoration: none; color: var(--text-primary);
    transition: box-shadow .2s, transform .2s;
}
.tool-card:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 var(--vf-bevel), inset 0 0 0 1px var(--vf-bevel-strong), 0 14px 34px rgba(0,0,0,.4); color: var(--text-primary); }
.tool-card:focus-visible { outline: 2px solid var(--hud-amber); outline-offset: 2px; }
.tool-card .tc-code { position: absolute; top: 18px; right: 20px; font-family: var(--font-mono); font-weight: 500; font-size: 0.7rem; color: var(--hud-faint); letter-spacing: 0; }
.tool-card .tc-icon { width: 46px; height: 46px; margin-bottom: 14px; flex-shrink: 0; border-radius: 6px; background: var(--vf-black); box-shadow: inset 0 0 0 1px var(--vf-bevel-strong); overflow: hidden; }
.tool-card .tc-icon img { width: 100%; height: 100%; display: block; }
.tool-card .tc-kicker { font-family: var(--font-sans); font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--hud-dim); margin-bottom: 6px; }
.tool-card .tc-title { font-family: var(--font-sans); font-size: 1.02rem; font-weight: 700; color: var(--text-primary); margin: 0 0 7px; line-height: 1.35; }
.tool-card p { font-size: 0.86rem; color: var(--text-secondary); line-height: 1.6; margin: 0 0 16px; }
.tool-card .tc-go { margin-top: auto; font-family: var(--font-sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hud-dim); display: inline-flex; align-items: center; gap: 8px; }
.tool-card .tc-go .vf-glyph { width: 14px; height: 14px; transition: transform .2s var(--ease-out); }
.tool-card:hover .tc-go { color: var(--hud); }
.tool-card:hover .tc-go .vf-glyph { transform: translateX(3px); }

/* Related tools: three rows with the model code, no cards. Renders inside the
   old .seo-main article and inside the new .vf column alike. */
.tool-related { margin: 36px 0 8px; }
.tool-related .tr-title { font-family: var(--font-sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hud-dim); margin: 0 0 4px; padding: 0; border: 0; }
.tool-related a.tr-row {
    display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: baseline;
    padding: 12px 0; min-height: 44px; border-bottom: 1px solid var(--vf-bevel-strong); text-decoration: none; color: var(--text-primary);
}
.tool-related a.tr-row:first-of-type { border-top: 1px solid var(--vf-bevel-strong); }
.tool-related a.tr-row:hover { background: rgba(255,255,255,.03); }
.tool-related a.tr-row:focus-visible { outline: 2px solid var(--hud-amber); outline-offset: 2px; }
.tool-related .tr-code { font-family: var(--font-mono); font-weight: 500; font-size: 0.7rem; color: var(--hud-faint); letter-spacing: 0; }
.tool-related .tr-name { font-family: var(--font-sans); font-weight: 600; font-size: 0.84rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hud); }   /* T8 */
.tool-related .tr-name .tr-blurb { display: block; font-weight: 400; font-style: italic; font-size: 0.86rem; letter-spacing: 0; text-transform: none; color: var(--text-secondary); margin-top: 2px; }  /* T8c */
.tool-related .tr-go { color: var(--hud-dim); display: inline-flex; align-items: center; }
.tool-related .tr-go .vf-glyph { width: 14px; height: 14px; transition: transform .2s var(--ease-out); }
.tool-related a.tr-row:hover .tr-go { color: var(--hud); }
.tool-related a.tr-row:hover .tr-go .vf-glyph { transform: translateX(3px); }
.tool-related .tr-all { display: inline-block; margin-top: 14px; }
.seo-main .tool-related .tr-name, .seo-main .tool-related a.tr-row .tr-name { color: var(--hud); }
.seo-main .tool-related a.tr-row:not(.btn) { color: var(--text-primary); }

/* ---------------------------------------------------------------------------
   12. Responsive, motion, print
   ------------------------------------------------------------------------- */
@media (max-width: 960px) {
    .vf-menu .menu-rows li { grid-template-columns: var(--cols-m, var(--cols, 1fr)); }
    .vf-menu .menu-rows .rm { grid-column: 1 / -1; }
    .vf-menu .menu-rows li.hd .rm { display: none; }
}
@media (max-width: 760px) {
    :root { --hud-inset: 28px; --scrub-pad: 28px; }
    .vf-finder, .vf-display { aspect-ratio: 4 / 3; }
    .vf-finder-row { grid-template-columns: 1fr; }
    .vf .hud .val { font-size: 0.9rem; }
    .vf .hud.bc { display: none; }
    .vf .hud.br .glyph, .vf .hud.br svg, .vf .hud.br canvas, .vf .hud.br .vf-glyph { width: 56px; height: 56px; }
    .vf .hud.strip { gap: 14px; font-size: 11px; }
    .vf-cap .credit { margin-left: 0; }
    /* the info bar becomes a list: one fact per row, never a 2-column grid */
    .vf-info { display: block; padding: 6px var(--scrub-pad) 8px; }
    .vf-info .cell { display: grid; grid-template-columns: 1fr auto; gap: 0 16px; align-items: baseline; padding: 10px 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.06); }
    .vf-info .cell:last-child { border-bottom: 0; }
    .vf-info .lbl { grid-column: 1; grid-row: 1; }
    .vf-info .val { grid-column: 2; grid-row: 1; margin: 0; text-align: right; overflow: visible; }
    .vf-info .sub { grid-column: 2; grid-row: 2; margin: 2px 0 0; text-align: right; }
    .vf-info .cell.hero .val { font-size: 1.2rem; }
    .vf-deck { grid-template-columns: 1fr !important; }
    .vf-deck > .span2, .vf-deck > .span3 { grid-column: auto; }
    .vf-notes { grid-template-columns: 1fr; gap: 16px; padding: 0 12px; }
    .vf-cta { grid-template-columns: 1fr; padding: 26px; }
    .sheet { padding: 20px; max-width: 100%; }
    .sheet .sheet-head { grid-template-columns: repeat(2, 1fr); }
    .sheet .sheet-code { top: 20px; right: 20px; }
    .sheet .band { margin: 0 -20px; padding: 8px 20px; }
}
@media (max-width: 480px) {
    :root { --hud-inset: 20px; --scrub-pad: 20px; }
    .vf-finder, .vf-display { aspect-ratio: 1 / 1; }
    .vf .hud.br { display: none; }
    .vf .hud.tl .coord, .vf .hud.tl .sub.coord { display: none; }
    .vf .hud.tr .num { font-size: 1.4rem; }
    .vf .hud.bl { max-width: 80%; }
    .vf .hud.bl .val { white-space: normal; font-size: 0.8rem; }
    .vf .hud.bl .val .mono { font-size: 0.9rem; }
    .vf .body-seg { grid-template-columns: repeat(var(--n2, var(--n, 2)), 1fr); }
    .vf-menu .menu-rows li { padding: 11px 16px; }
    .vf-menu .menu-tabs button { padding: 14px 10px; }
    .vf-cta { margin: 36px 0 44px; }
}

@media (prefers-reduced-motion: reduce) {
    .vf *, .vf *::before, .vf *::after, .sheet *, .tool-card, .tool-related * { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
}

/* Print: the sheet prints exactly as shown at 100% width, nothing else. */
@media print {
    .navbar, .footer, .seo-hero, .seo-cta, .vf-cta, .vf-deck, .vf-menu, .vf-notes, .vf-essay, .vf-cap, .vf-scrub, .vf-info,
    .tool-related, .seo-breadcrumbs, .promo-sidebar, .max-promo, .body-seg, .sheet-tools, .tw-panel { display: none !important; }
    body, .vf { background: #fff !important; color: #000; }
    .tool-wrap { max-width: none; padding: 0; }
    .sheet { box-shadow: none; max-width: 100%; margin: 0; padding: 0; background: #fff; color: #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .sheet .band { background: #f0ece4; }
    .sheet [contenteditable] { border-bottom-color: transparent !important; }
    .sheet .accent { color: var(--ink-accent); }
    .sheet .trouble { color: var(--ink-red); }
    .sheet .cool { color: var(--ink-blue); }
    /* legacy printable output (shot list before its migration) */
    .tw { grid-template-columns: 1fr; }
    .tw-stage { border: none; padding: 0; background: #fff; }
}

/* ===========================================================================
   LEGACY (to strip after migration)
   ---------------------------------------------------------------------------
   The v1 kit, kept verbatim so pages that have not yet moved to the .vf kit
   (the depth-of-field page is being fixed by another workflow right now)
   keep rendering. Nothing new may use any class in this block. A later pass
   deletes everything from here to the end of the file once all 13 pages are
   on the kit. The hub-card, related-tools and FAQ rules that used to live
   here now live in sections 8 and 11 above.
   ========================================================================= */
.tool-wrap--wide { max-width: 1440px; }

.tw {
    display: grid;
    grid-template-columns: minmax(280px, 340px) 1fr;
    gap: 20px;
    align-items: start;
}
.tw--stacked { grid-template-columns: 1fr; }
.tw--wide-panel { grid-template-columns: minmax(300px, 400px) 1fr; }
@media (max-width: 900px) { .tw, .tw--wide-panel { grid-template-columns: 1fr; } }

.tw-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    position: sticky;
    top: 88px;
}
@media (max-width: 900px) { .tw-panel { position: static; } }
.tw-panel--flat { position: static; }

.tw-stage {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    min-width: 0;
}
.tw-stage--dark { background: var(--bg-primary); }

.tw-section + .tw-section { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.tw-section-title {
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.07em; color: var(--text-muted); margin: 0 0 14px;
}

.tw-field { margin-bottom: 16px; }
.tw-field:last-child { margin-bottom: 0; }
.tw-label {
    display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
    font-size: 0.82rem; font-weight: 600; color: var(--text-secondary);
    margin-bottom: 8px;
}
.tw-label .tw-value {
    font-family: var(--font-mono); font-size: 0.85rem; font-weight: 700;
    color: var(--accent); white-space: nowrap;
}
.tw-hint { font-size: 0.72rem; color: var(--text-muted); line-height: 1.5; margin-top: 6px; }

.tw-select, .tw-input {
    width: 100%; box-sizing: border-box;
    background: var(--bg-primary); border: 1px solid var(--border);
    border-radius: 8px; padding: 10px 12px;
    color: var(--text-primary); font-size: 0.88rem; font-family: var(--font-sans);
    transition: border-color 0.2s;
}
.tw-select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 32px; }
.tw-select-wrap { position: relative; }
.tw-select-wrap::after {
    content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    font-size: 10px; color: var(--text-muted); pointer-events: none;
}
.tw-select:focus, .tw-input:focus { outline: none; border-color: var(--accent); }
.tw-select option { background: var(--bg-card); color: var(--text-primary); }
.tw-input[type="number"] { font-family: var(--font-mono); }

.tw-range {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 4px; border-radius: 4px;
    background: var(--border); outline: none; margin: 6px 0; cursor: pointer;
}
.tw-range::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 17px; height: 17px; border-radius: 50%;
    background: var(--accent); cursor: pointer; border: 3px solid var(--bg-card);
    box-shadow: 0 0 0 1px var(--accent);
    transition: transform 0.15s;
}
.tw-range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.tw-range::-moz-range-thumb {
    width: 15px; height: 15px; border-radius: 50%;
    background: var(--accent); cursor: pointer; border: 3px solid var(--bg-card);
    box-shadow: 0 0 0 1px var(--accent);
}
.tw-range:focus-visible { box-shadow: 0 0 0 2px var(--accent-glow); }

.tw-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.tw-seg button {
    flex: 1 1 auto; min-width: 0;
    background: var(--bg-primary); border: 1px solid var(--border);
    border-radius: 8px; padding: 8px 10px;
    color: var(--text-secondary); font-size: 0.78rem; font-weight: 600;
    font-family: var(--font-sans); cursor: pointer; transition: all 0.15s;
    white-space: nowrap;
}
.tw-seg button:hover { border-color: var(--text-muted); color: var(--text-primary); }
.tw-seg button.active {
    background: rgba(255, 152, 0, 0.12); border-color: var(--accent); color: var(--accent);
}
.tw-seg--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(54px, 1fr)); }
.tw-seg--grid button { flex: none; }

.tw-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; padding: 7px 0; font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }
.tw-check input { accent-color: var(--accent); width: 16px; height: 16px; margin: 2px 0 0; flex-shrink: 0; cursor: pointer; }
.tw-check:hover { color: var(--text-primary); }

.tw-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--accent); color: #0d0d0d; border: 1px solid var(--accent);
    border-radius: 8px; padding: 11px 18px;
    font-size: 0.85rem; font-weight: 700; font-family: var(--font-sans);
    cursor: pointer; text-decoration: none; transition: all 0.2s;
}
.tw-btn:hover { background: var(--accent-light); border-color: var(--accent-light); }
.tw-btn--ghost { background: transparent; color: var(--text-secondary); border-color: var(--border); }
.tw-btn--ghost:hover { background: transparent; border-color: var(--accent); color: var(--accent); }
.tw-btn--block { width: 100%; }
.tw-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.tw-btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.tw-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(122px, 1fr)); gap: 12px; }
.tw-metric {
    background: var(--bg-primary); border: 1px solid var(--border);
    border-radius: 10px; padding: 14px 16px;
}
.tw-metric .m-label {
    font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 6px;
}
.tw-metric .m-value {
    font-family: var(--font-mono); font-size: 1.4rem; font-weight: 700;
    color: var(--text-primary); line-height: 1.15; word-break: break-word;
}
.tw-metric .m-sub { font-size: 0.72rem; color: var(--text-muted); margin-top: 5px; line-height: 1.45; }
.tw-metric--hero { border-color: var(--accent); background: rgba(255, 152, 0, 0.06); }
.tw-metric--hero .m-value { color: var(--accent); font-size: 1.75rem; }

.tw-note {
    display: flex; gap: 10px; align-items: flex-start;
    background: var(--bg-primary); border: 1px solid var(--border); border-left: 3px solid var(--accent);
    border-radius: 8px; padding: 12px 14px;
    font-size: 0.8rem; color: var(--text-secondary); line-height: 1.6;
}
.tw-note i { color: var(--accent); margin-top: 0.2em; flex-shrink: 0; }
.tw-note--warn { border-left-color: var(--warning); }
.tw-note--warn i { color: var(--warning); }
.tw-note--good { border-left-color: var(--success); }
.tw-note--good i { color: var(--success); }

.tw-badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    padding: 3px 9px; border-radius: 100px;
    background: rgba(255, 152, 0, 0.14); color: var(--accent);
}
.tw-badge--good { background: rgba(76, 175, 80, 0.15); color: var(--success); }
.tw-badge--warn { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.tw-badge--bad  { background: rgba(239, 68, 68, 0.15); color: var(--error); }
.tw-badge--mute { background: var(--bg-card-hover); color: var(--text-muted); }

.tw-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.tw-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.tw-table th, .tw-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.tw-table thead th { background: var(--bg-secondary); color: var(--text-primary); font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.tw-table tbody tr:last-child td { border-bottom: none; }
.tw-table td { color: var(--text-secondary); }
.tw-table tbody th { background: var(--bg-secondary); color: var(--text-muted); font-weight: 600; font-size: 0.75rem; white-space: nowrap; }
.tw-table .num { font-family: var(--font-mono); }

.tw-empty { text-align: center; padding: 48px 20px; color: var(--text-muted); font-size: 0.88rem; line-height: 1.7; }
.tw-empty i { display: block; font-size: 28px; color: var(--border); margin-bottom: 12px; }

/* Legacy FAQ (pages still on Font Awesome chevrons). The .vf versions above
   override these inside a converted page. */
.faq-item.is-collapsible { padding: 0; }
.faq-toggle {
    all: unset; box-sizing: border-box; display: flex; align-items: center;
    justify-content: space-between; gap: 12px; width: 100%; padding: 18px 20px;
    cursor: pointer; font-weight: 600; font-size: 1.02rem; color: var(--text-primary);
}
.faq-toggle i { color: var(--text-muted); font-size: 13px; transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item.is-collapsible.open .faq-toggle i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.is-collapsible.open .faq-answer { max-height: 520px; }
.faq-answer p { margin: 0; padding: 0 20px 18px; font-size: 0.95rem; color: var(--text-secondary); }
