/* Audit page (re-audit, 3 Dec 2026). Hero after Tammi's summary: every captured screen on one tilted plane, a dark
   card with the total. Flow cards, then a full-screen viewer. Motion is transform and opacity only; the wall is one
   AVIF mosaic (assets/img/audit/re/wall.avif), so the hero costs one image. Severity: red high, orange medium, grey low. */

/* ---------- hero ---------- */
.ah {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(620px, calc(100svh - var(--nav-h)));
  display: grid; place-items: center;
  padding: clamp(32px, 6vw, 72px) var(--gutter);
  background: #050506; color: #f3eee3;
}
.ah-wall { position: absolute; inset: 0; z-index: -1; perspective: 1600px; perspective-origin: 50% 30%;
  /* (the plane sits a little right of centre and high, so its far edge still reaches the top right corner on wide
     screens: tools/capture/wall-check.mjs samples every corner) */
  --wx: -44%; --wy: -52%; }
.ah-plane {
  position: absolute; left: 50%; top: 50%;
  width: max(2700px, 215vmax);
  transform: translate(var(--wx), var(--wy)) rotateX(48deg) rotateZ(-16deg) translate3d(0, 0, 0);
  transform-origin: 50% 50%;
}
.ah-plane img { display: block; width: 100%; height: auto; border-radius: 8px; }
/* the wall falls away into the dark at the edges, darker behind the card */
.ah-wall::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 50% 52%, rgb(5 5 6 / .55), transparent 70%),
    linear-gradient(to bottom, #050506 0%, rgb(5 5 6 / .2) 22%, rgb(5 5 6 / 0) 60%, #050506 100%);
}
.ah-card {
  position: relative; width: min(1000px, 100%);
  padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 72px) clamp(32px, 5vw, 60px);
  border-radius: clamp(24px, 3vw, 40px); corner-shape: squircle;
  background: rgb(22 22 26 / .9);
  box-shadow: 0 0 0 1px rgb(255 255 255 / .06), 0 40px 120px -20px rgb(0 0 0 / .9);
  text-align: center;
}
.ah-eyebrow { color: #ff8a7d; font-weight: 600; font-size: clamp(15px, 1.4vw, 19px); letter-spacing: .01em; }
.ah-title {
  font-family: var(--sans); font-weight: 800; letter-spacing: -.045em; line-height: .92;
  font-size: clamp(64px, 12vw, 176px);
}
/* (the number always sits on its own line above "findings": counting up beside it, the line wrapped once the number
   grew and the number jumped to the top mid-count. Faiq, 4 Dec 2026) */
.ah-n { display: block; font-variant-numeric: tabular-nums; }
.ah-unit { white-space: nowrap; }
.ah-line { margin: clamp(18px, 2.4vw, 30px) auto 0; max-width: 34em; color: #bdb6a9; font-size: clamp(16px, 1.6vw, 22px); text-wrap: balance; }
.ah-line b { color: #f3eee3; font-weight: 700; }
.ah-card .sig-btn { margin-top: clamp(22px, 3vw, 36px); }

/* (self-audit S10: on a short laptop screen the card shrinks, so the wall still shows round it) */
@media (max-height: 720px) and (min-width: 700px) {
  .ah-card { width: min(820px, 100%); padding: 26px 40px 30px; }
  .ah-title { font-size: clamp(56px, 9vw, 120px); }
}

/* entrance: the wall settles in, then the card rises; each its own movement, done in about 2.6 s */
html.js .ah-plane { opacity: 0; transform: translate(var(--wx), calc(var(--wy) + 6%)) rotateX(56deg) rotateZ(-12deg) scale(1.12); }
html.js .ah-card > * { opacity: 0; transform: translateY(26px); }
html.ah-ready .ah-plane { opacity: 1; transform: translate(var(--wx), var(--wy)) rotateX(48deg) rotateZ(-16deg); transition: transform 2.4s var(--ease), opacity 1.2s ease-out; }
html.ah-ready .ah-card > * { opacity: 1; transform: none; transition: transform 1.1s var(--ease), opacity .8s ease-out; }
html.ah-ready .ah-card > :nth-child(1) { transition-delay: .35s; }
html.ah-ready .ah-card > :nth-child(2) { transition-delay: .6s; }
html.ah-ready .ah-card > :nth-child(3) { transition-delay: .75s; }

/* ---------- flows ---------- */
.af { padding-block: clamp(80px, 11vw, 150px); }
.af-head .h2 { font: 700 clamp(34px, 5vw, 72px) / 1.04 var(--sans); letter-spacing: -.035em; max-width: none; text-wrap: balance; }
.af-head { text-align: center; margin-inline: auto; max-width: none; /* (one line wherever it fits: Faiq, 3 Dec 2026) */ margin-bottom: clamp(36px, 5vw, 64px); }
.af-sub { margin-top: 16px; color: var(--fg-2); font-size: clamp(16px, 1.3vw, 19px); }
.af-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: clamp(14px, 1.6vw, 22px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1040px) { .af-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .af-grid { grid-template-columns: 1fr; } }
.af-btn {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; width: 100%; height: 100%;
  border-radius: 24px; corner-shape: squircle; overflow: hidden;
  background: var(--raise); box-shadow: 0 0 0 1px var(--line);
  transition: transform .5s var(--ease), box-shadow .3s ease;
  scroll-margin-block: calc(var(--nav-h) + 16px) 16px; /* focus never scrolls a card under the sticky nav */
}
.af-btn:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--fg) 22%, transparent), 0 24px 60px -30px rgb(0 0 0 / .7); }
.af-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.af-shots { position: relative; display: block; height: clamp(170px, 16vw, 220px); background: var(--bg-2); overflow: hidden; }
.af-d { position: absolute; left: 7%; top: 14%; width: 72%; height: auto; border-radius: 8px; box-shadow: 0 10px 30px -10px rgb(0 0 0 / .5); transition: transform .7s var(--ease); }
.af-m { position: absolute; right: 7%; top: 9%; width: 25%; height: auto; border-radius: 14% / 6.5%; box-shadow: 0 0 0 3px #111, 0 14px 30px -10px rgb(0 0 0 / .6); transition: transform .7s var(--ease); }
.af-btn:hover .af-d { transform: translateY(-6px); }
.af-btn:hover .af-m { transform: translateY(-12px) rotate(2deg); }
.af-txt { display: grid; gap: 6px; padding: 20px 22px 22px; }
.af-title { font-weight: 700; font-size: clamp(21px, 1.8vw, 26px); letter-spacing: -.015em; }
.af-blurb { color: var(--fg-2); font-size: 15px; }
.af-n { margin-top: 10px; font-size: 15px; color: var(--fg-2); }
/* one line, one total: the only split that changes which flow you open is how many are high (Faiq, 3 Dec 2026) */
.af-high { color: var(--sev); font-weight: 600; }
/* (the card is lighter than the page; a touch lighter red keeps 4.5:1 on it in the dark theme) */
.af-high { color: color-mix(in srgb, var(--sev) 88%, #fff); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .af-high { color: var(--sev); } }
:root[data-theme="light"] .af-high { color: var(--sev); }
.af-n b { color: var(--fg); font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-right: 4px; }
.af-bar { display: flex; gap: 3px; height: 6px; border-radius: 3px; overflow: hidden; }
.af-bar i { display: block; border-radius: 2px; }
/* severity colour, and the ink on it: dark on the dark theme's light colours, white on the light theme's deep ones
   (self-audit S3: #111 on the light theme's red, orange and grey measured 3.1–3.2:1) */
:root { --on-sev: #111; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --on-sev: #fff; } }
:root[data-theme="light"] { --on-sev: #fff; }
.sev-high { --sev: var(--red); } .sev-medium { --sev: var(--orange); } .sev-low { --sev: var(--grey); }
.af-bar .high, .sev-high .fv-num { background: var(--red); }
.af-bar .medium, .sev-medium .fv-num { background: var(--orange); }
.af-bar .low, .sev-low .fv-num { background: var(--grey); }
/* (self-audit S1: each card names its severities in words, a coloured dot beside each) */
html.js .af-card, html.js .af-head { opacity: 0; transform: translateY(28px); }
html.js .af-card:focus-within { opacity: 1; transform: none; transition: none; } /* a Tab stop is never invisible */
html.js .af-card.is-in, html.js .af-head.is-in { opacity: 1; transform: none; transition: transform 1s var(--ease) calc(var(--i, 0) * 70ms), opacity .7s ease-out calc(var(--i, 0) * 70ms); }

/* full screen while a flow is open: no site bar, no footer (Faiq, 3 Dec 2026: fewer things to choose from) */
html.fv-mode { --nav-h: 0px; }
html.fv-mode #nav, html.fv-mode .foot, html.fv-mode .panel { display: none; }

/* ---------- a flow's own view (?flow=…): the screen with its dots on the left, the panel on the right ----------
   The stage stays in view while the panel scrolls with the page; on phones the panel follows the screen and a
   finding opens as a sheet over the lower half, the dot still visible above it. */
.fv { --fv-pad: clamp(16px, 3vw, 40px); padding: 0 var(--fv-pad) 48px; }
.fv-top {
  position: sticky; top: var(--nav-h); z-index: 5; background: var(--bg);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(14px, 2.4vw, 36px);
  /* (the line runs the full width of the window; Faiq, 3 Dec 2026) */
  margin-inline: calc(-1 * var(--fv-pad)); padding: 14px var(--fv-pad); border-bottom: 1px solid var(--line);
}
/* back on the left, the title centred like an app's title bar, the device switch on the right */
.fv-top .fv-back { justify-self: start; } .fv-ttl { text-align: center; } .fv-top .fv-dev { justify-self: end; }
.fv-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; text-decoration: none; color: var(--fg); font-weight: 600; font-size: 15px; box-shadow: inset 0 0 0 1px var(--line); }
.fv-back::before { content: ""; width: 9px; height: 9px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: 45deg; margin-left: 4px; }
.fv-back:hover { background: var(--raise); }
/* the title only confirms which flow you opened; the screenshot is the star (Faiq, 3 Dec 2026) */
.fv-ttl h1 { font-family: var(--sans); font-weight: 600; font-size: 20px; letter-spacing: -.01em; line-height: 1.2; color: var(--fg-2); }
.fv-dev { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.fv-dev button { all: unset; cursor: pointer; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--fg-2); }
.fv-dev button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.fv-dev button:disabled { opacity: .35; cursor: not-allowed; }
.fv :focus-visible, .fv-sheet :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.fv-body { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 34vw, 440px); gap: clamp(16px, 2.4vw, 36px); align-items: start; }
.fv-stage {
  position: sticky; top: calc(var(--nav-h) + var(--fv-top, 82px));
  height: calc(100svh - var(--nav-h) - var(--fv-top, 82px));
  display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; padding: 18px 0 14px;
}
.fv-shot { position: relative; margin: 0; min-height: 0; display: grid; place-items: center; }
.fv-frame { position: relative; }
.fv-frame img { display: block; width: 100%; height: 100%; border-radius: 10px; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.fv-shot.iphone .fv-frame img { border-radius: 15% / 6.9%; box-shadow: 0 0 0 7px #0d0d0f, 0 0 0 8px rgb(255 255 255 / .12), var(--shadow); }
.fv-hint { text-align: center; font-size: 13px; color: var(--fg-3); letter-spacing: .02em; }
.fv-pager { display: flex; align-items: center; justify-content: center; gap: 14px; }
.fv-pager button { all: unset; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.fv-pager button:hover:not(:disabled) { background: var(--raise); }
.fv-pager button:disabled { opacity: .3; cursor: default; }
.fv-pager button svg { width: 18px; height: 18px; }
#fvPrev svg { rotate: 180deg; }
.fv-pager p { display: grid; justify-items: center; flex: 0 1 220px; min-width: 0; text-align: center; line-height: 1.3; }
.fv-pager b { font-size: 14px; font-weight: 500; color: var(--fg-2); }
.fv-pager span { font-size: 12px; color: var(--fg-3); }

/* (Faiq, 3 Dec 2026: filled, numbered markers set beside the problem, a short line to a small dot on it, so the
   evidence is never covered; slightly see-through. Replaces the hollow rings of self-audit S2) */
.fv-pin {
  all: unset; cursor: pointer; position: absolute; translate: -50% -50%; z-index: 2;
  width: 28px; height: 28px; border-radius: 50%; box-sizing: border-box; display: grid; place-items: center;
  background: color-mix(in srgb, var(--sev) 88%, transparent); color: var(--on-sev);
  box-shadow: 0 0 0 2px rgb(255 255 255 / .9), 0 4px 12px rgb(0 0 0 / .3);
  animation: fv-pin .5s var(--ease) both; animation-delay: calc(var(--d) * 60ms + .1s);
  transition: scale .3s var(--ease), box-shadow .3s ease, left .3s var(--ease), top .3s var(--ease);
}
.fv-pin b { font-size: 13px; font-weight: 700; line-height: 1; }
.fv-pin::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 currentColor; pointer-events: none; }
/* (they pulse once when a screen opens, so a reader knows the dots are there to press) */
.fv-pin.is-new::after { animation: fv-ring 1.4s ease-out .6s 1; color: rgb(255 255 255 / .9); }
@keyframes fv-pin { from { opacity: 0; scale: .4; } }
@keyframes fv-ring { 0% { box-shadow: 0 0 0 0 currentColor; } 100% { box-shadow: 0 0 0 16px transparent; } }
.fv-pin:hover { scale: 1.12; }
.fv-pin.is-active { scale: 1.15; background: var(--sev); box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--fg), 0 8px 20px rgb(0 0 0 / .35); }

.fv-panel { padding: 8px 0 24px; min-width: 0; }
/* the panel's foot: the screen pager, and on the last screen the next flow (Faiq, 3 Dec 2026: the way on, always here) */
.fv-foot { display: grid; gap: 12px; padding: 14px 0 18px; border-top: 1px solid var(--line); }
.fv-foot .fv-pager { justify-content: space-between; }
#fvOn:empty { display: none; }
/* a laptop: the page is the window; only the panel scrolls, so the screenshot is never cut (Faiq, 3 Dec 2026) */
@media (min-width: 701px) and (orientation: landscape) {
  html.fv-mode, html.fv-mode body { height: 100%; overflow: hidden; }
  html.fv-mode .fv { height: 100svh; display: grid; grid-template-rows: auto minmax(0, 1fr); padding-bottom: 0; padding-right: 0; }
  html.fv-mode .fv-top { margin-right: 0; }
  .fv-top { position: static; }
  .fv-body { min-height: 0; align-items: stretch; }
  .fv-stage { position: static; height: auto; min-height: 0; }
  /* a line splits the screenshot from the panel, from the bar to the bottom of the window */
  .fv-body { column-gap: 0; }
  .fv-stage { padding-right: clamp(16px, 2.4vw, 36px); }
  /* (the panel runs to the window's edge, so its lines meet the split line and the edge, and its scrollbar sits at the edge) */
  .fv-panel { --pp: clamp(12px, 1.6vw, 24px); display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; padding: 0; border-left: 1px solid var(--line); }
  .fv-panel .fv-foot { padding: 14px var(--fv-pad) 18px var(--pp); }
  .fv-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px var(--fv-pad) 16px var(--pp); scrollbar-width: thin; }
  .fv-scroll .fd-bar { position: sticky; top: 0; z-index: 1; background: var(--bg); }
}
.fv-group { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 14px 12px 4px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
/* the panel is headed by the screen's name (Faiq, 3 Dec 2026) */
.fv-list-head { margin: 0 0 6px; padding: 16px 12px 14px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--fg); border-bottom: 1px solid var(--line); }
.fv-list { list-style: none; margin: 0; padding: 0; }
.fv-item { border-radius: 14px; color: var(--fg); transition: background .25s ease, opacity .25s ease; }
.fv-item + .fv-item { margin-top: 2px; }
.fv-item.is-active { background: var(--raise-2); opacity: 1; }
.fv-item-btn { display: grid; grid-template-columns: 30px 1fr 20px; gap: 14px; align-items: center; padding: 14px 12px; border-radius: 14px; color: inherit; text-decoration: none; }
.fv-item-btn:hover { background: color-mix(in srgb, var(--raise-2) 60%, transparent); }
.fv-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--on-sev); }
/* (a number is filled for the screen in view and outlined for the others: shape, not fading, so contrast holds) */
.fv-item.sev-high { --sev: var(--red); } .fv-item.sev-medium { --sev: var(--orange); } .fv-item.sev-low { --sev: var(--grey); }
.fv-item:not(.is-here) .fv-num { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 2px var(--sev); }
/* the last screen's way on: a pill in the pager row, where the next arrow was, so the foot keeps one height */
.fv-nextflow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 18px; border-radius: 999px; text-decoration: none; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .2s; }
.fv-nextflow:hover { background: var(--raise); }
.fv-pager button { flex: none; }
.fv-pager button[hidden] { display: none; }
.fv-nextflow svg { width: 18px; height: 18px; transition: translate .3s var(--ease); }
.fv-nextflow:hover svg { translate: 3px 0; }
/* (quieter: one bold thing per panel, the screen's name; titles regular until hovered or open) */
/* a finding with no spot on the screenshot: "</>" in place of a number, its severity said in words */
.fv-num.fv-num-code { background: transparent; color: var(--fg-3); box-shadow: inset 0 0 0 1.5px var(--line); font-size: 10px; letter-spacing: -.02em; }
.fv-sev-tag { font-style: normal; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); margin-left: 6px; white-space: nowrap; }
.fv-item-title { font-weight: 450; font-size: 16px; line-height: 1.4; color: var(--fg-2); transition: color .2s; }
.fv-item-btn:hover .fv-item-title, .fv-item.is-active .fv-item-title { color: var(--fg); }
.fv-go { align-self: center; color: var(--fg-3); transition: translate .3s var(--ease), color .2s; }
.fv-go svg { width: 18px; height: 18px; display: block; }
.fv-item-btn:hover .fv-go { translate: 3px 0; color: var(--fg); }

/* ---------- one finding, after the example Faiq liked: finding no., title, device and severity, each rule with
   its family, what it means and how GE breaks it, then why it matters. No fixes. ---------- */
.fd { animation: fd-in .4s var(--ease); }
@keyframes fd-in { from { opacity: 0; translate: 0 10px; } }
.fd-bar { display: flex; align-items: center; gap: 10px; padding: 10px 4px 14px; border-bottom: 1px solid var(--line); }
.fd-bar button { all: unset; cursor: pointer; display: inline-grid; place-items: center; min-width: 40px; height: 40px; border-radius: 999px; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.fd-bar button:hover:not(:disabled) { background: var(--raise); }
.fd-bar button:disabled { opacity: .3; cursor: default; }
.fd-bar svg { width: 18px; height: 18px; }
.fd-bar .fd-back { padding: 0 16px 0 12px; grid-auto-flow: column; gap: 6px; font-weight: 600; font-size: 14px; }
.fd-bar .fd-back span { max-width: 26ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-back svg { rotate: 180deg; }
.fd-x { display: none !important; }
.fd-scroll { padding: 22px 4px 8px; }
.fd-eyebrow { font-weight: 600; font-size: 15px; }
.fd-title { margin-top: 8px; font-family: var(--sans); font-weight: 700; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.16; letter-spacing: -.03em; outline: none; text-wrap: balance; }
.fd-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.fd-sev { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.fd-sev i { width: 16px; height: 2px; background: currentColor; }
.fd-meta .fd-means-sev { text-transform: none; letter-spacing: 0; font-size: 14px; }
.fv-hint[hidden] { display: none; }
.fd-rules { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line); }
.fd-rules li { padding: 18px 0; border-bottom: 1px solid var(--line); }
/* (Faiq, 3 Dec 2026: text hierarchy. Bright: the title, how Great Eastern breaks each rule, why it matters. Quiet:
   labels and the rules' textbook meanings. The set's colour is a small swatch, the Method page's colour, so it never
   reads as a severity) */
.fd-rule { display: grid; justify-items: start; gap: 6px; } /* (the set, then the rule on its own line, every time: a short name no longer sits beside it) */
.fd-fam { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.fd-fam::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--fc, var(--fg-3)); }
.fam-nielsen { --fc: var(--c-nielsen); } .fam-laws { --fc: var(--c-laws); } .fam-wcag { --fc: var(--c-wcag); } .fam-checkout { --fc: var(--c-checkout); }
.fd-rule b { font-size: 15px; font-weight: 600; color: var(--fg-2); }
.fd-how { margin-top: 8px; color: var(--fg); font-size: 16px; line-height: 1.6; }
.fd-means { margin-top: 6px; color: var(--fg-3); font-size: 14px; line-height: 1.55; }
.fd-h { margin-top: 26px; font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.fd-why { margin-top: 8px; font-size: 16px; line-height: 1.65; color: var(--fg); }
.fd-note { margin-top: 14px; font-size: 13px; color: var(--fg-3); }

/* ---------- phones and portrait screens: the screenshot full width, the list below, the pager fixed at the bottom.
   Landscape screens from 701 px (tablets on their side, laptops) keep the screenshot and panel side by side ---------- */
@media (max-width: 700px), (orientation: portrait) {
  .fv { --fv-pad: 12px; padding-inline: 12px; }
  .fv-top { grid-template-columns: 1fr auto; row-gap: 10px; }
  .fv-back { grid-column: 1; grid-row: 1; justify-self: start; }
  .fv-dev { grid-column: 2; grid-row: 1; }
  .fv-ttl { grid-column: 1 / -1; grid-row: 2; text-align: left; }
  .fv-top { position: static; }
  .fv-body { display: block; }
  .fv-stage { position: static; height: auto; }
  .fv-shot { height: min(calc(100svh - 270px), 640px); }
  .fv { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .fv-panel .fv-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  html.fv-sheet-open .fv { padding-bottom: 60svh; }
}
.fv-sheet { display: none; }
@media (max-width: 700px), (orientation: portrait) {
  /* (the sheet itself doesn't scroll, its content does, so its X can sit half off its top edge) */
  .fv-sheet {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 0 16px;
    background: var(--bg); border-radius: 20px 20px 0 0; border-top: 1px solid rgb(255 255 255 / .12);
    box-shadow: 0 -18px 40px rgb(0 0 0 / .55);
    translate: 0 calc(100% + 32px); transition: translate .42s cubic-bezier(.32, .72, 0, 1); visibility: hidden;
  }
  .fv-sheet.is-open { translate: 0 0; visibility: visible; }
  .fv-sheet .fd-scroll { max-height: 58svh; overflow-y: auto; overscroll-behavior: contain; padding: 34px 0 calc(20px + env(safe-area-inset-bottom)); scrollbar-width: none; }
  .fv-sheet .fd-bar { position: static; height: 0; padding: 0; border: 0; }
  .fv-sheet .fd-back { display: none; }
  /* the close button: centred on the sheet's top edge, half off it, as TMV's own sheets and pop-ups (site/src/pages/
     journey/sheet.css .jr-sheet-x; no gold, Faiq, 3 Dec 2026) */
  .fv-sheet .fd-bar .fd-x {
    display: grid !important; place-items: center; position: absolute; z-index: 3; top: 0; left: 50%; translate: -50% -50%;
    width: 40px; min-width: 40px; height: 40px; padding: 0; border-radius: 50%;
    background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line), 0 8px 20px -8px rgb(0 0 0 / .6);
  }
  .fv-sheet .fd-bar .fd-x:hover { background: var(--raise); }
}
@media (max-width: 480px) {
  .fv-dev button { padding: 8px 12px; }
  .ah-title { font-size: clamp(56px, 18vw, 96px); }
}

@media (prefers-reduced-motion: reduce) {
  html.js .ah-plane, html.js .ah-card > *, html.js .af-card, html.js .af-head { opacity: 1; transform: none; transition: none; }
  html.js .ah-plane { transform: translate(var(--wx), var(--wy)) rotateX(48deg) rotateZ(-16deg); }
  .fv-pin, .fv-pin::after, .fd { animation: none; }
  .fv-sheet { transition: none; }
}

/* light theme: the hero stays dark (it is a wall of screens); the rest follows the tokens */

/* (a display rule must never beat the hidden attribute: the empty flow view showed under the cards, 3 Dec 2026) */
.fv[hidden] { display: none !important; }

/* (small-screen pass, 3 Dec 2026: on touch screens the markers' and the device switch's hit areas reach 44 px) */
@media (pointer: coarse) {
  .fv-pin::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; }
  .fv-dev button { min-height: 44px; box-sizing: border-box; display: inline-grid; place-items: center; }
}
