/* siah.tv: GetLayers template "Fathom" (getlayers.ai/?layer=fathom), composition and motion kept,
   re-skinned to the siah brand (the siah brand guidelines): Night for Fathom's navy,
   Bone for its white, Ops Orange for its accent; Oswald and JetBrains Mono for Host and Schibsted Grotesk;
   radii squared to the brand's 4-6 px; every glow removed. Choices and reasons: /getlayers.json.
   The ad slot itself is styled by /hud/ad-slot.css, not here. */
@font-face { font-family: 'Oswald'; font-weight: 500 700; font-display: swap; src: url('/fonts/oswald-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500 700; font-display: swap; src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --night: #0B0D0F; --bone: #ECEAE4; --orange: #FF6A1A; --orange-lit: #FF8747;
  --ash: #A0A7B0; --graphite: #14181C; --graphite-2: #1C2127; --card: #F6F5F1;
  --display: 'Oswald', 'Avenir Next Condensed', 'Arial Narrow', sans-serif;
  --mono: 'JetBrains Mono', Menlo, monospace;
  --body: 'Avenir Next', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, 0, 0, 1); --fast: 150ms; --normal: 300ms;
  --gutter: clamp(16px, 4vw, 40px); --hdr: 64px; --max: 1360px;
  /* Per-section ink, switched by data-theme */
  --ink: var(--bone); --muted: var(--ash); --line: rgba(236, 234, 228, .16); --field: #080A0C; --field-line: #56606C;
  color-scheme: dark;
}
@media (min-width: 1025px) { :root { --hdr: 76px; } }
[data-theme="light"] { --ink: var(--night); --muted: rgba(11, 13, 15, .64); --line: rgba(11, 13, 15, .13); --field: #FCFBF8; --field-line: rgba(11, 13, 15, .26); color-scheme: light; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 12px); }
html.locked { overflow: hidden; }
body { margin: 0; background: var(--night); color: var(--ink); font: 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--orange); text-underline-offset: .2em; }
::selection { background: var(--orange); color: var(--night); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h1, h2, h3, p { margin: 0; }

/* ---- Plain pages (status, admin): one narrow column, as before */
main:not(.site) { max-width: 720px; margin: 0 auto; padding: 40px 16px 64px; }
main:not(.site) h1 { font: 500 clamp(2.25rem, 8vw, 3.5rem)/.95 var(--display); text-transform: uppercase; margin: 8px 0 20px; }
main:not(.site) h2 { font: 500 1.375rem/1.2 var(--display); margin: 8px 0; }
main:not(.site) p { margin: 0 0 12px; }
main:not(.site) button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; margin: 8px 8px 0 0; border: 0; border-radius: 4px; background: var(--orange); color: var(--night); font: 500 1rem/1 var(--display); text-transform: uppercase; letter-spacing: .03em; cursor: pointer; }
main:not(.site) label:has(> input[type="checkbox"]) { display: flex; gap: 12px; align-items: center; min-height: 44px; }
#orders article { background: var(--graphite); border: 1px solid var(--line); border-radius: 4px; padding: 12px; margin: 8px 0; }
#orders img { max-width: 160px; max-height: 80px; background: var(--bone); }
[role="alert"]:not(:empty) { color: #F6D5CC; }
[data-theme="light"] [role="alert"]:not(:empty), [data-theme="light"][role="alert"]:not(:empty) { color: #8A2B14; }

/* ---- Type */
.h2 { font: 500 clamp(2.4rem, 6.4vw, 5rem)/.94 var(--display); text-transform: uppercase; letter-spacing: -.005em; }
.h3 { font: 500 clamp(1.5rem, 3vw, 2rem)/1.05 var(--display); }
.label { font: 600 .75rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.marker { display: inline-block; width: 8px; height: 8px; background: var(--orange); flex: none; }

/* ---- Pills: Fathom's pill, squared to the brand's 4 px */
.pill { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 14px; border-radius: 4px; border: 1px solid transparent; background: var(--orange); color: var(--night); font: 500 1rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease); }
.pill__dot { width: 7px; height: 7px; background: currentColor; }
.pill--bone { background: var(--bone); }
.pill--quiet { background: none; border-color: var(--line); color: var(--ink); }
@media (hover: hover) {
  .pill:hover { background: var(--orange-lit); }
  .pill--bone:hover { background: #fff; }
  .pill--quiet:hover { background: none; border-color: var(--ink); }
}

/* ---- Header: follows the section under it (data-theme on every section and the footer) */
.hdr { position: fixed; inset: 0 0 auto; z-index: 40; height: var(--hdr); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--gutter); padding-top: env(safe-area-inset-top); color: var(--bone); background: rgba(11, 13, 15, .55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(236, 234, 228, .08); transition: background-color var(--normal) var(--ease), color var(--normal) var(--ease), border-color var(--normal) var(--ease); }
.hdr[data-theme="light"] { color: var(--night); background: rgba(236, 234, 228, .82); border-bottom-color: rgba(11, 13, 15, .08); }
.hdr__logo { display: block; width: 100px; }
.hdr__logo svg { width: 100%; height: auto; }
.logo-tag { fill: var(--orange); }
.logo-word { fill: currentColor; transition: fill var(--normal) var(--ease); }
.hdr__nav { display: flex; align-items: center; gap: 22px; }
.hdr__link { display: inline-flex; align-items: center; min-height: 44px; font: 500 .9375rem/1 var(--display); text-transform: uppercase; letter-spacing: .05em; text-decoration: none; opacity: .9; }
.hdr .pill { min-height: 44px; background: var(--bone); color: var(--night); }
.hdr[data-theme="light"] .pill { background: var(--orange); }
@media (hover: hover) { .hdr__link:hover { color: var(--orange); opacity: 1; } }
@media (max-width: 560px) { .hdr__link { display: none; } }

/* ---- Passage: the first-visit loader (once a session). A night chart; an orange course plots LOBBY to LIVE
   with the page's real load progress, then the curtain opens out of LIVE. */
#passage { position: fixed; inset: 0; z-index: 60; height: 100lvh; background: var(--night); color: var(--bone); animation: passage-failsafe 0s 4s forwards; }
.no-intro #passage { display: none; }
@keyframes passage-failsafe { to { visibility: hidden; } } /* if the script never runs, the curtain cannot trap anyone */
.passage__chart { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.passage__chart--tall { display: none; }
@media (orientation: portrait) { .passage__chart--wide { display: none; } .passage__chart--tall { display: block; } }
.passage__grid { stroke: rgba(236, 234, 228, .08); stroke-width: 1; }
.passage__dash { fill: none; stroke: rgba(236, 234, 228, .3); stroke-width: 1; stroke-dasharray: 2 7; }
.passage__route { fill: none; stroke: var(--orange); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.passage__port { fill: var(--bone); }
.passage__port--to { fill: rgba(236, 234, 228, .6); }
.passage__code { fill: var(--bone); font: 600 16px var(--mono); letter-spacing: .08em; }
.passage__runner { fill: var(--orange); }
.passage__read { position: absolute; left: var(--gutter); bottom: max(24px, env(safe-area-inset-bottom)); display: flex; gap: 24px; font: 500 .75rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.passage__read span:first-child { min-width: 4ch; }
.passage__read span:last-child { opacity: .6; }

/* ---- Hero: one pinned 200lvh screen. The scroll swaps the scene in the phone and the headline. */
.hero { position: relative; height: 200lvh; background: var(--night); }
.hero__pin { position: sticky; top: 0; height: 100lvh; overflow: hidden; color: var(--bone); perspective: 1400px; }
.finder { position: absolute; inset: 0; pointer-events: none; }
.finder__v { position: absolute; left: 50%; top: var(--hdr); bottom: 0; width: 1px; background: rgba(236, 234, 228, .14); }
.finder__h { position: absolute; inset: 44% 0 auto; height: 1px; background: rgba(236, 234, 228, .14); }
.finder__ring { position: absolute; left: 50%; top: 44%; width: 74lvh; height: 74lvh; translate: -50% -50%; border: 1px solid rgba(236, 234, 228, .16); border-radius: 50%; }
.finder__outer { position: absolute; left: 50%; top: 44%; width: 104lvh; height: 104lvh; max-width: none; translate: -50% -50%; overflow: visible; }
.finder__ticks { fill: none; stroke: rgba(236, 234, 228, .32); stroke-width: 3; stroke-dasharray: .5 4.5; }
.finder__arc { fill: none; stroke: var(--orange); stroke-width: 1; stroke-dasharray: 34 326; }
.finder__tick { position: absolute; top: 44%; width: 16px; height: 10px; margin-top: -5px; background: rgba(236, 234, 228, .9); }
.finder__tick--l { left: var(--gutter); } .finder__tick--r { right: var(--gutter); }
@media (min-width: 1025px) { .finder__h, .finder__ring, .finder__outer, .finder__tick { top: 50%; } }

.phone { position: relative; margin: 0; aspect-ratio: 9 / 16; border: clamp(5px, .9lvh, 8px) solid var(--graphite-2); border-radius: clamp(22px, 3.8lvh, 34px); background: var(--night); overflow: hidden; }
.phone > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__phone { position: absolute; left: 50%; top: 44%; height: min(56lvh, 120vw); translate: -50% -50%; transform-style: preserve-3d; }
.phone__next { opacity: var(--swap, 0); } /* home.js sets --swap on the hero phone as the scroll swaps scenes */
@media (min-width: 1025px) { .hero__phone { top: 50%; height: 72lvh; } }
.hero__cap { position: absolute; left: 0; right: 0; top: calc(44% + min(28lvh, 60vw) + 12px); text-align: center; font-size: .8125rem; color: rgba(236, 234, 228, .72); }
@media (min-width: 1025px) { .hero__cap { top: calc(50% + 36lvh + 12px); } }

.hero__copy { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 88px; text-align: center; }
.hero__title { position: absolute; left: 0; right: 0; bottom: 0; font: 500 clamp(2.5rem, 11vw, 4.25rem)/.92 var(--display); text-transform: uppercase; letter-spacing: -.005em; }
.hero__line { position: relative; display: block; width: fit-content; margin: 0 auto; }
/* Below desktop the second line is too long for the headline slot (it would cover the phone), so it is set as a lead. */
@media (max-width: 1024px) { .hero__second { font: 400 1.125rem/1.45 var(--body); text-transform: none; letter-spacing: 0; color: rgba(236, 234, 228, .85); } }
/* Clipped only until home.js starts (it adds .motion-ready and then drives the clip itself); if it never does, the lines show at 4 s. */
.motion:not(.motion-ready) .hero__second, .motion:not(.motion-ready) .hero h1 .hero__line { clip-path: inset(-10% 100% -10% 0); animation: hero-failsafe 0s 4s forwards; }
@keyframes hero-failsafe { to { clip-path: none; } }
@media (min-width: 1025px) {
  .hero__copy { bottom: 44px; text-align: left; }
  .hero__title { font-size: clamp(3rem, 4.4vw, 5.25rem); right: auto; max-width: calc(50vw - 72lvh * 9 / 32 - var(--gutter) - 24px); }
  .hero__line { margin: 0; }
}
.course { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--orange); pointer-events: none; opacity: 0; }

.hint { position: absolute; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); translate: -50% 0; display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 18px 0 8px; border-radius: 6px; border: 1px solid rgba(236, 234, 228, .25); background: rgba(236, 234, 228, .08); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); white-space: nowrap; }
.hint__ring { position: relative; display: grid; place-items: center; width: 32px; height: 32px; }
.hint__ring svg { position: absolute; inset: 0; rotate: -90deg; }
.hint__track, .hint__arc { fill: none; stroke-width: 1; }
.hint__track { stroke: rgba(236, 234, 228, .3); }
.hint__arc { stroke: var(--orange); stroke-dasharray: 1; stroke-dashoffset: 1; }
.hint__label { font: 500 .8125rem/1 var(--mono); letter-spacing: .04em; opacity: .8; }
@media (min-width: 1025px) { .hint { left: auto; right: var(--gutter); bottom: 44px; translate: none; } }

/* Reduced motion: the hero is one still screen with both lines. */
.still .hero { height: auto; }
.still .hero__pin { position: relative; height: 100svh; min-height: 560px; }
.still .hero__second { position: relative; clip-path: none; margin-top: .12em; }
.still .hero h1.hero__title { position: relative; }
.still .hint { display: none; }

/* ---- Bands (light sections) and the centred section head */
.band { position: relative; isolation: isolate; background: var(--bone); color: var(--ink); padding: clamp(72px, 10vw, 136px) var(--gutter); }
.head { max-width: 46rem; margin: 0 auto clamp(36px, 5vw, 64px); text-align: center; }
.head .h2 { width: fit-content; margin: 0 auto; position: relative; }
.head__lead { margin-top: 18px; color: var(--muted); font-size: 1.0625rem; }

/* ---- Schedule: Fathom's Routes table. Bars dock with an overshoot; a band glides to the hovered row. */
.sched { position: relative; isolation: isolate; width: 100%; max-width: var(--max); margin: 0 auto; border-collapse: collapse; }
.sched thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.sched tbody tr { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "day next" "show time" "dock dock"; gap: 6px 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.sched tbody tr:last-child { border-bottom: 1px solid var(--line); }
.sched th, .sched td { padding: 0; text-align: left; font-weight: 400; }
.sched tbody th { grid-area: day; display: flex; align-items: center; gap: 12px; font: 500 1.625rem/1.1 var(--display); }
.sched tbody th .marker { opacity: 0; transition: opacity var(--normal) var(--ease); }
.sched tr.on th .marker { opacity: 1; }
.sched td:nth-of-type(1) { grid-area: show; color: var(--muted); }
.sched td:nth-of-type(2) { grid-area: time; text-align: right; font-variant-numeric: tabular-nums; }
.sched td:nth-of-type(3) { grid-area: dock; padding-top: 6px; }
.sched td:nth-of-type(4) { grid-area: next; text-align: right; font: 500 .8125rem/1.9 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.sched tr:not(.on) td, .sched tr:not(.on) th { transition: opacity var(--normal) var(--ease); }
.dock { position: relative; display: block; height: 10px; }
.dock__track { position: absolute; left: 0; right: 0; top: 4px; height: 2px; background: var(--line); }
.dock__fill { position: absolute; left: 0; top: 4px; height: 2px; width: 0; background: rgba(11, 13, 15, .5); transition: background-color var(--normal) var(--ease); }
.dock__dot { position: absolute; left: 0; top: 1px; width: 8px; height: 8px; margin-left: -4px; background: rgba(11, 13, 15, .7); transition: background-color var(--normal) var(--ease); }
.sched tr.on .dock__fill, .sched tr.on .dock__dot { background: var(--orange); }
.sched__band { position: absolute; left: 50%; top: 0; width: 100vw; translate: -50% 0; z-index: -1; background: var(--card); pointer-events: none; }
@media (min-width: 768px) {
  .sched tbody tr { display: table-row; padding: 0; }
  .sched th, .sched td { padding: 26px 16px 26px 0; vertical-align: middle; }
  .sched tbody th { display: table-cell; font-size: 2rem; white-space: nowrap; }
  .sched tbody th .marker { margin: 0 14px 0 -22px; vertical-align: middle; }
  .sched td:nth-of-type(3) { width: 30%; padding-top: 26px; }
  .sched td:nth-of-type(2) { text-align: left; }
  .sched tr:not(.on) td, .sched tr:not(.on) th > :not(.marker) { opacity: .62; }
}
.sched__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }

/* ---- "Every match is a call": Fathom's Why us. A ghost word drifts; the dog tag comes down on its chain. */
.tagsec { position: relative; overflow: hidden; background: var(--bone); color: var(--ink); padding: clamp(72px, 10vw, 128px) var(--gutter) clamp(64px, 8vw, 112px); text-align: center; }
.ghost { position: absolute; inset: 32% 0 auto; pointer-events: none; }
.ghost span { position: relative; left: 50%; display: inline-block; font: 700 clamp(7rem, 26vw, 26rem)/.8 var(--display); text-transform: uppercase; white-space: nowrap; color: rgba(11, 13, 15, .055); translate: -50% 0; }
.tagsec__copy { position: relative; z-index: 1; }
.tagsec__copy .h2 { width: fit-content; margin: 0 auto; position: relative; }
.rig { position: relative; height: clamp(300px, 46vw, 500px); }
.rig__load { position: absolute; left: 50%; bottom: 0; width: clamp(112px, 15vw, 180px); margin-left: calc(clamp(112px, 15vw, 180px) / -2); transform-origin: 50% 0; }
.rig__chain { position: absolute; left: 50%; bottom: calc(100% - 19.5%); width: 6px; height: 120vh; margin-left: -3px; background: radial-gradient(circle at 3px 3px, #7D838C 2.2px, transparent 2.7px) 0 100% / 6px 7px repeat-y; }
.rig__tag { position: relative; width: 100%; height: auto; }
.beats { position: relative; z-index: 1; max-width: 34rem; margin: 28px auto 0; }
.beats__tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.beats__tabs button { position: relative; padding: 16px 0 0; border: 0; background: none; color: var(--ink); font: 500 .75rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .6; cursor: pointer; text-align: left; min-height: 44px; }
.beats__tabs button[aria-selected="true"] { opacity: 1; }
.beats__tabs button::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--line); }
.beats__bar { position: absolute; inset: 0 0 auto; height: 2px; background: var(--orange); transform-origin: 0 50%; }
.beats__panel { margin-top: 24px; }
.beats__panel p { margin-top: 10px; color: var(--muted); font-size: 1.0625rem; }

/* ---- Banner: Fathom's Book banner. The stream drifts behind in parallax and fades into Night. */
.banner { position: relative; overflow: hidden; display: grid; place-items: center; min-height: clamp(560px, 64vw, 720px); padding: 96px var(--gutter); background: var(--night); color: var(--bone); text-align: center; }
.banner__drift { position: absolute; inset: -12% 0; }
.banner__drift img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; opacity: .32; }
.banner__drift .hud { opacity: .32; } /* the house lines, faded with the picture */
.banner__drift::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(11, 13, 15, .2), var(--night) 92%); }
.banner__copy { position: relative; max-width: 40rem; display: grid; justify-items: center; gap: 22px; }
.banner__title span { position: relative; display: block; width: fit-content; margin: 0 auto; }
.banner__copy p { font-size: 1.0625rem; color: rgba(236, 234, 228, .88); }
.mailbig { font: 500 clamp(2rem, 7vw, 4.5rem)/1 var(--display); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .14em; overflow-wrap: anywhere; }
@media (hover: hover) { .mailbig:hover { color: var(--orange); } }

/* ---- Footer: the giant word surfaces from a waterline above its reflection. */
.foot { position: relative; overflow: hidden; background: var(--night); color: var(--bone); padding: 40px var(--gutter) 24px; }
.foot__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; max-width: var(--max); margin: 0 auto; }
.foot__intro { grid-column: 1 / -1; max-width: 22rem; font-size: 1.125rem; }
.foot h2 { font: 500 .75rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .55; }
.foot ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.foot a { text-decoration: none; }
.foot ul { gap: 0; }
.foot li { display: flex; align-items: center; min-height: 44px; } /* every row a 44 px tap target */
.foot li a { display: flex; align-items: center; align-self: stretch; }
@media (hover: hover) { .foot a:hover { color: var(--orange); } }
@media (min-width: 768px) { .foot__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .foot__intro { grid-column: auto; } }
.foot__word { position: relative; max-width: var(--max); margin: clamp(40px, 8vw, 96px) auto 0; }
.foot__word p { font: 700 clamp(5rem, 25vw, 22rem)/.8 var(--display); text-transform: uppercase; white-space: nowrap; letter-spacing: -.01em; }
.foot__rise { overflow: hidden; border-bottom: 1px solid rgba(236, 234, 228, .25); padding-top: .06em; }
.foot__rise p { padding-bottom: .02em; }
.foot__mirror { transform: scaleY(-1); opacity: .2; height: .42em; overflow: hidden; -webkit-mask-image: repeating-linear-gradient(to bottom, #000 0 5px, transparent 5px 8px); mask-image: repeating-linear-gradient(to bottom, #000 0 5px, transparent 5px 8px); }
.foot__legal { display: flex; justify-content: space-between; gap: 16px; max-width: var(--max); margin: 12px auto 0; font-size: .875rem; opacity: .7; }
.foot__top { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; min-height: 44px; }

/* ---- Partner head (a short dark hero) */
.phead { padding: calc(var(--hdr) + clamp(48px, 9vw, 120px)) var(--gutter) clamp(48px, 7vw, 96px); background: var(--night); color: var(--bone); }
.phead > * { max-width: var(--max); margin-inline: auto; }
.phead h1 { font: 500 clamp(2.75rem, 9vw, 6.5rem)/.92 var(--display); text-transform: uppercase; }
.phead h1 span { position: relative; display: block; width: fit-content; }
.phead p { max-width: 36rem; margin-top: 22px; margin-left: 0; font-size: 1.125rem; color: rgba(236, 234, 228, .85); }
@media (min-width: 1025px) { .phead p { margin-left: max(0px, calc((100% - var(--max)) / 2)); } }
/* The stream on a phone, both slots on their house line: under the lead on a phone, beside the headline on desktop. */
.phead__stream { margin-top: 28px; }
.phead__stream .phone { display: block; width: min(58vw, 260px); }
.phead__stream figcaption { margin-top: 10px; font-size: .8125rem; color: rgba(236, 234, 228, .72); }
@media (min-width: 1025px) {
  .phead { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(40px, 6vw, 96px); align-content: start; padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2)); }
  .phead > * { grid-column: 1; max-width: none; margin-inline: 0; }
  .phead > p { max-width: 36rem; }
  .phead > .phead__stream { grid-column: 2; grid-row: 1 / span 4; align-self: center; margin: 0; }
  .phead__stream .phone { width: auto; height: min(68svh, 620px); }
}
/* Last week's audience under the partner head: four figures, then where they come from. */
.stats { margin-top: clamp(32px, 5vw, 56px); }
.stats ul { display: flex; flex-wrap: wrap; gap: 18px 40px; margin: 12px 0 0; padding: 0; list-style: none; font: 500 .8125rem/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ash); }
.stats b { display: block; margin-bottom: 4px; font: 500 2.25rem/1 var(--display); letter-spacing: 0; color: var(--bone); }
.phead .stats__cap { max-width: 46rem; margin-top: 16px; font-size: .875rem; color: var(--ash); }

/* ---- Picker: Fathom's Services. Scene tabs over a card holding the stream (the bay plan), the slots drawn
   in place with a price card over yours, beside a panel with the list, your ad and checkout. */
.pick { background: var(--bone); color: var(--ink); padding: clamp(56px, 8vw, 112px) var(--gutter); }
.pick__inner { max-width: var(--max); margin: 0 auto; }
.tabs { display: flex; gap: clamp(20px, 4vw, 40px); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tab { position: relative; flex: none; min-height: 44px; padding: 0 0 14px; border: 0; background: none; color: var(--ink); font: 500 clamp(1.75rem, 4.4vw, 3rem)/1 var(--display); text-transform: uppercase; opacity: .6; cursor: pointer; transition: opacity var(--normal) var(--ease); }
.tab::after { content: ""; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--normal) var(--ease); }
.tab[aria-selected="true"] { opacity: 1; }
.tab[aria-selected="true"]::after { transform: none; }
@media (hover: hover) { .tab:hover { opacity: .8; } .tab[aria-selected="true"]:hover { opacity: 1; } }
.pick__grid { display: grid; gap: 16px; margin-top: 24px; align-items: start; }
@media (min-width: 900px) { .pick__grid { grid-template-columns: minmax(0, 1fr) minmax(360px, 460px); gap: 20px; } }
.pick__grid--plain { grid-template-columns: minmax(0, 560px); } /* no layout file: the form alone */
.stage, .panel { background: var(--card); border-radius: 6px; border: 1px solid var(--line); }
.stage { display: grid; justify-items: center; gap: 16px; padding: 20px 12px 18px; perspective: 1400px; }
@media (min-width: 900px) { .stage { position: sticky; top: calc(var(--hdr) + 16px); padding: 28px 24px 22px; } }
.stage__head { width: 100%; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 0 4px; }
.stage__head p:last-child { text-align: right; }
.stage .phone { width: min(100%, 360px, calc((100svh - var(--hdr) - 190px) * 9 / 16)); min-width: 236px; }
.screen { position: absolute; inset: 0; container-type: inline-size; }
.screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The HUD canvas: 1080 x 1920 canvas px, scaled to the frame as one piece (partner.js sets the scale and --k).
   Slots sit at their canvas boxes in the HUD sheet's own sizes; --px is one screen pixel for the outlines. */
.hud, .closeup__layer { position: absolute; left: 0; top: 0; transform-origin: 0 0; --px: calc(1px / var(--k, 1)); }
.hud { width: 1080px; height: 1920px; }
.hud > .hx { position: absolute; } /* house lines outside the picker (home, the partner head) */
.closeup__layer { display: flex; flex-direction: column; justify-content: flex-end; }
.spot { position: absolute; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; outline: calc(1.5 * var(--px)) dashed rgba(236, 234, 228, .8); outline-offset: var(--px); transition: outline-color var(--fast) var(--ease); }
.spot::before { content: ""; position: absolute; left: calc(-6 * var(--px)); right: calc(-6 * var(--px)); top: 50%; height: max(100% + 12 * var(--px), 48 * var(--px)); translate: 0 -50%; } /* at least 44 screen px to tap, with room to spare */
.spot[data-state="taken"] { outline: calc(1.5 * var(--px)) solid var(--ash); }
.spot[data-state="pending"] { outline: calc(1.5 * var(--px)) dotted var(--ash); }
.spot[aria-pressed="true"], .spot[data-pressed="true"] { outline: calc(2 * var(--px)) solid var(--orange); outline-offset: var(--px); z-index: 2; }
.spot--mirror { cursor: default; pointer-events: none; } /* the board footer follows the title slot; it is not picked */
@media (hover: hover) { .spot:hover { outline-color: var(--bone); outline-style: solid; } .spot[aria-pressed="true"]:hover { outline-color: var(--orange); } }
.pcard { position: absolute; left: 0; top: 0; z-index: 3; width: max(132px, 46cqw); padding: 8px 10px 9px; background: var(--night); color: var(--bone); border-top: 3px solid var(--orange); pointer-events: none; }
.pcard__title { font: 600 max(11px, 3.1cqw)/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; opacity: .75; }
.pcard__title span { white-space: nowrap; }
.pcard__price { margin-top: 3px; font: 500 max(20px, 7.4cqw)/1 var(--display); font-variant-numeric: tabular-nums; }
.pcard__price small { margin-left: 5px; font: 600 max(11px, 3.1cqw)/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; opacity: .8; }
.pcard__sub { margin-top: 3px; font-size: max(11px, 3.4cqw); line-height: 1.25; opacity: .85; }
.pcard__caret { position: absolute; left: var(--caret, 50%); top: 100%; width: 10px; height: 6px; margin-left: -5px; background: var(--night); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.pcard--below .pcard__caret { top: auto; bottom: calc(100% + 3px); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.pcard--left .pcard__caret { left: 100%; top: var(--caret-y); width: 6px; height: 10px; margin: -5px 0 0; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font: 500 .75rem/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 14px; height: 10px; outline-offset: -1px; }
.legend .l-free { outline: 1.5px dashed var(--night); }
.legend .l-taken { outline: 1.5px solid var(--ash); background: rgba(11, 13, 15, .25); }
.legend .l-pending { outline: 1.5px dotted var(--night); }
.legend .l-yours { background: var(--orange); }
.stage__note { max-width: 30rem; text-align: center; font-size: .875rem; color: var(--muted); }
.stage__cap { margin-top: -6px; font-size: .8125rem; color: var(--muted); }
.stage__aside { display: none; }
/* The close-up sits beside the frame only when that column can show it at a readable size;
   below that the one under the inputs is used (at 900 to 1239 px the side column squeezed it to about 50 px). */
@media (min-width: 1240px) {
  .stage { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "head head" "frame aside" "cap aside" "legend aside" "note aside"; justify-items: start; column-gap: clamp(20px, 3vw, 40px); align-items: start; }
  .stage__head { grid-area: head; }
  .stage .phone { grid-area: frame; }
  .stage__cap { grid-area: cap; }
  .legend { grid-area: legend; justify-content: flex-start; }
  .stage__note { grid-area: note; text-align: left; max-width: 300px; }
  .stage__aside { grid-area: aside; display: grid; gap: 10px; width: 100%; align-self: center; }
  .stage__aside .closeup { margin-top: 0; }
  .panel__closeup { display: none; }
}

.panel { padding: 0 20px; }
@media (min-width: 900px) { .panel { padding: 0 28px; } }
.panel__part { padding: 22px 0 24px; border-top: 1px solid var(--line); }
.panel__part:first-child { border-top: 0; }
.panel__part > .label { display: block; margin-bottom: 14px; }
.slots { display: grid; gap: 8px; }
.slotrow { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease); }
.slotrow[aria-checked="true"] { border-color: var(--orange); box-shadow: inset 0 3px 0 var(--orange); } /* the top edge, as on the length choice */
@media (hover: hover) { .slotrow:hover { border-color: var(--ink); } .slotrow[aria-checked="true"]:hover { border-color: var(--orange); } }
.slotrow__name { font: 500 1.25rem/1.1 var(--display); text-transform: uppercase; }
.slotrow__price { font: 500 1.25rem/1.1 var(--display); font-variant-numeric: tabular-nums; text-align: right; }
.slotrow__where { font-size: .875rem; color: var(--muted); }
.slotrow__state { font: 600 .6875rem/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; text-align: right; color: var(--muted); }
.slotrow__state[data-state="free"] { color: var(--ink); }
.detail h3 { font: 500 1.75rem/1 var(--display); text-transform: uppercase; }
.detail__price { margin-top: 10px; font: 500 2.5rem/1 var(--display); font-variant-numeric: tabular-nums; }
.detail__price small { font: 500 .8125rem/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-left: 6px; }
.detail p { margin-top: 10px; color: var(--muted); }
.detail .detail__price { color: var(--ink); }
.detail p strong { color: var(--ink); font-weight: 600; }
.field { display: grid; gap: 6px; margin-top: 14px; }
.field:first-child { margin-top: 0; }
.field > span:first-child, .field legend { font: 600 .75rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0; }
.field small { color: var(--muted); font-size: .8125rem; }
fieldset.field { border: 0; margin-inline: 0; padding: 0; min-width: 0; }
.field input, .field select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--field-line); border-radius: 4px; background: var(--field); color: var(--ink); font: 16px/1.3 var(--body); }
.field input:focus-visible, .field select:focus-visible { border-color: var(--orange); outline-offset: 1px; }
.field input::placeholder { color: var(--muted); opacity: 1; }
.field input[aria-invalid="true"] { border-color: #8A2B14; }
.field small.bad:empty { display: none; }
.field input[type="file"] { padding: 7px 8px; font-size: .9375rem; }
.field input[type="file"]::file-selector-button { margin-right: 12px; min-height: 32px; padding: 0 14px; border: 0; border-radius: 4px; background: var(--night); color: var(--bone); font: 500 .875rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice label { position: relative; display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--field-line); border-radius: 4px; cursor: pointer; }
.choice label:has(input:checked) { border-color: var(--orange); box-shadow: inset 0 3px 0 var(--orange); }
.choice label:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.choice label:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 2px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice b { font: 500 1.375rem/1.1 var(--display); font-variant-numeric: tabular-nums; }
.choice span { font-size: .8125rem; color: var(--muted); }
.notes { display: grid; gap: 6px; margin-top: 8px; padding: 0; list-style: none; font-size: .875rem; }
.notes li { padding-left: 14px; position: relative; }
.notes li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; background: var(--orange); }
.notes .bad, .panel .bad { color: #8A2B14; }
.closeup { position: relative; width: 100%; margin-top: 16px; overflow: hidden; background: var(--night) var(--pic) no-repeat; background-size: var(--zoom) auto; background-position: var(--bx) var(--by); outline: 1px solid var(--line); }
.closeup__cap { margin-top: 8px; font-size: .8125rem; color: var(--muted); }
.tick { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; min-height: 44px; cursor: pointer; }
.tick input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--orange); }
/* Inline links in small print: a 44 px tall hit area without moving the lines around them */
.tick a, .panel__fine a { display: inline-block; padding: 13px 6px; margin: -13px -6px; }
.pay { width: 100%; justify-content: center; min-height: 54px; margin-top: 18px; font-size: 1.125rem; border: 0; }
.pay:disabled { opacity: .5; cursor: not-allowed; background: var(--orange); }
.panel [role="alert"] { margin-top: 12px; font-weight: 600; }
.panel__fine { margin-top: 12px; font-size: .8125rem; color: var(--muted); }

/* ---- Rules: ruled, numbered rows. The "rules" link lands focus on the section; it needs no ring of its own. */
#rules:focus { outline: none; }
.rules { max-width: 58rem; margin: 0 auto; padding: 0; list-style: none; counter-reset: rule; }
.rules li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); font-size: 1.0625rem; counter-increment: rule; }
.rules li:last-child { border-bottom: 1px solid var(--line); }
.rules li::before { content: counter(rule, decimal-leading-zero); font: 600 .8125rem/1.9 var(--mono); letter-spacing: .06em; color: var(--muted); }
.rules strong { font-weight: 600; }

/* ---- The phone view (/stream.js): what a live app draws over the stream on a viewer's phone, in canvas px.
   Translucent dark pills, white system text; no platform's own marks or colours, made-up viewers only. */
.live { position: absolute; left: 0; top: 0; width: 1080px; height: 1920px; transform-origin: 0 0; pointer-events: none; color: #fff; font: 500 32px/1.25 -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', Roboto, sans-serif; }
.live__pill { position: absolute; display: flex; align-items: center; border-radius: 999px; background: rgba(0, 0, 0, .36); }
.live__me { left: 45px; top: 137px; width: 510px; height: 84px; gap: 16px; padding: 0 24px 0 8px; }
.live__me img { width: 68px; height: 68px; padding: 8px 14px; border-radius: 50%; background: var(--night); object-fit: contain; }
.live__me b { font-size: 34px; font-weight: 700; }
.live__tag { margin-left: auto; padding: 6px 12px; border-radius: 8px; background: var(--orange); color: var(--night); font-size: 22px; font-weight: 800; letter-spacing: .06em; line-height: 1; }
.live__crowd { left: 753px; top: 150px; width: 282px; height: 56px; padding: 0 16px 0 8px; }
.live__crowd i { width: 42px; height: 42px; margin-right: -12px; border-radius: 50%; border: 3px solid rgba(0, 0, 0, .5); }
.live__crowd svg { width: 40px; height: 40px; margin-left: auto; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }
.live__chat { position: absolute; left: 45px; top: 1470px; width: 700px; height: 350px; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 32%); mask-image: linear-gradient(transparent, #000 32%); }
.live__list { position: absolute; left: 0; right: 0; bottom: 0; display: grid; justify-items: start; gap: 12px; }
.live__msg, .live__join { display: flex; align-items: center; gap: 12px; max-width: 100%; margin: 0; padding: 8px 22px 8px 8px; border-radius: 30px; background: rgba(0, 0, 0, .34); }
.live__msg i { flex: none; width: 44px; height: 44px; border-radius: 50%; }
.live__msg b { font-weight: 600; color: rgba(255, 255, 255, .7); }
.live__join { padding-left: 22px; color: rgba(255, 255, 255, .78); background: rgba(0, 0, 0, .24); }
.live__dock { position: absolute; left: 45px; top: 1838px; display: flex; gap: 20px; }
.live__dock span { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: rgba(0, 0, 0, .36); }
.live__dock svg { width: 38px; height: 38px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Status page */
.status-state { font-size: 1.25rem; }
.status-what { color: var(--muted); }
