/* Ten Sail. Ground #07080a, bone #e9e7e2, grey #8d8f93 (the site's own values). No inline styles: the site CSP forbids them. */
/* the fallback is cut to Archivo's width and vertical metrics, so the swap when the font arrives moves nothing */
@font-face { font-family: "Archivo Fallback"; src: local("Arial"); font-weight: 100 600; size-adjust: 98.3%; ascent-override: 89.3%; descent-override: 21.4%; line-gap-override: 0%; }
@font-face { font-family: "Archivo Fallback"; src: local("Arial Bold"), local("Arial"); font-weight: 700; size-adjust: 97.9%; ascent-override: 89.7%; descent-override: 21.5%; line-gap-override: 0%; }
@font-face { font-family: "Archivo Fallback"; src: local("Arial Bold"), local("Arial"); font-weight: 800 900; size-adjust: 109.6%; ascent-override: 80.1%; descent-override: 19.2%; line-gap-override: 0%; }
:root { --ts-bone: #e9e7e2; --ts-grey: #8d8f93; --ts-ground: #07080a; --ts-orange: #ff5b1f; --ts-gun: #252320;
  --ts-bone-05: rgba(233, 231, 226, .05); --ts-bone-10: rgba(233, 231, 226, .1); --ts-bone-20: rgba(233, 231, 226, .2); --ts-rule: rgba(233, 231, 226, .26); --ts-bone-40: rgba(233, 231, 226, .4); --ts-bone-60: rgba(233, 231, 226, .6); --ts-bone-80: rgba(233, 231, 226, .8); }
html { background: var(--ts-ground); }
body.ts { --font-display: "Archivo", "Archivo Fallback", sans-serif; background: transparent; color: var(--ts-bone); }

/* the scene: one canvas at the top of the page, behind the hero only (it scrolls away with it); the poster is the same frame until the scene is ready, and its still state */
body .ts-canvas, body .ts-poster { position: absolute; top: 0; left: 0; width: 100%; height: 100svh; z-index: -1; display: block; pointer-events: none; transition: opacity .7s ease-out; }
body .ts-poster { object-fit: cover; object-position: 50% 0; }
body .ts-canvas { opacity: 0; }
html[data-ts="live"] .ts-canvas { opacity: 1; }
html[data-ts="live"] .ts-poster { opacity: 0; }
/* reduced motion: no poster, no fade; the composed still is painted once on the canvas (the poster only returns if WebGL is missing) */
@media (prefers-reduced-motion: reduce) { body .ts-canvas, body .ts-poster { transition: none; } body .ts-poster { display: none; } html[data-ts="poster"] body .ts-poster { display: block; } body .ts-canvas { opacity: 1; } }

.ts-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* hero: title, lede and buttons on the left; the sea is full-bleed behind them and the lantern's track crosses the whole width (on a phone, in the band under the buttons) */
.ts-hero { position: relative; box-sizing: border-box; display: flex; flex-direction: column; align-items: flex-start; max-width: var(--page-max); min-height: calc(100svh - var(--sn-h, 64px)); margin: 0 auto; padding: 0 var(--gutter) var(--space-16); }
.ts-title { font: 900 clamp(3.4rem, 17vw, 13.5rem)/.86 var(--font-display); letter-spacing: -.025em; margin: 0 0 var(--space-6); color: var(--ts-bone); }
.ts-line { max-width: 30ch; font: 700 clamp(1.25rem, 1rem + 1.2vw, 1.75rem)/1.2 var(--font-display); }
.ts-intro { max-width: 52ch; margin-top: var(--space-4); font-size: 1.125rem; line-height: 1.55; }
.ts-go { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-6); margin-top: var(--space-4); }
.ts-go a { display: inline-flex; align-items: center; min-height: 44px; font: 700 var(--text-xs)/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ts-bone); text-decoration: none; border-bottom: 2px solid var(--ts-bone); }
.ts-go a:hover { background: var(--ts-bone-10); }
.ts-go a:active { background: var(--ts-bone-20); }
.ts-go a:focus-visible, .ts-ext:focus-visible, .ts-ask a:focus-visible, .ts-pause:focus-visible, .ts-rowbtn:focus-visible, .ts-tg:focus-visible, .ts-f:focus-visible, .ts-table select:focus-visible, .ts-q input:focus-visible, .ts-sel select:focus-visible, .ts-insp:focus-visible { outline: 2px solid var(--ts-orange); outline-offset: 2px; }
.ts-band { display: none; }
.ts-heromedia { position: fixed; inset: 0; z-index: -2; }
.ts-heromedia[hidden] { display: none; }
.ts-heromedia video { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 48rem) {
  .ts-hero { justify-content: center; padding-top: 6svh; padding-bottom: 18svh; }
  .ts-title { font-size: clamp(3.4rem, 7.2vw, 7.5rem); }
}
@media (max-width: 47.99rem) {
  .ts-hero { padding-top: var(--space-6); }
  .ts-band { display: block; flex: none; width: 100%; height: 48svh; margin-top: var(--space-6); }
}

/* sections: one readable column, heading above its copy */
.ts-sec { box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); max-width: var(--page-max); margin: 0 auto; padding: var(--space-24) var(--gutter) 0; }
.ts-sec > * { max-width: 70ch; }
.ts-sec h2 { font: 800 var(--text-3xl)/1 var(--font-display); letter-spacing: -.02em; }
.ts-sec p, .ts-how li { font-size: 1.125rem; line-height: 1.55; }
.ts-body p + p { margin-top: var(--space-4); }
.ts-how li { padding: var(--space-4) 0; border-top: 1px solid var(--ts-rule); }
.ts-how li:last-child { border-bottom: 1px solid var(--ts-rule); }

/* the register: ruled rows, gunmetal rules, bone text, mono labels. No cards, pills or shadows. */
.ts-reg { box-sizing: border-box; max-width: 1440px; margin: 0 auto; padding: var(--space-16) clamp(16px, 4.45vw, 64px) 0; }
.ts-reg > h2 { margin: 0 0 var(--space-6); font: 800 var(--text-3xl)/1 var(--font-display); letter-spacing: -.02em; }
.ts-fig { margin: 0; }
.ts-fig[hidden] { display: none; }
.ts-fig img, .ts-fig video { display: block; width: 100%; height: auto; }
.ts-reg > .ts-fig-wide, .ts-ask > .ts-fig-wide { margin: 0 0 var(--space-8); }
.ts-rail { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: var(--space-4); height: 44px; padding: 0; overflow-x: auto; scroll-snap-type: x proximity; background: var(--ts-ground); border-top: 1px solid var(--ts-gun); border-bottom: 1px solid var(--ts-gun); font: 700 var(--text-xs)/1 var(--font-mono); letter-spacing: .08em; scrollbar-width: none; }
.ts-rail > * { flex: none; scroll-snap-align: start; }
.ts-rail .ts-f:focus-visible, .ts-rail select:focus-visible, .ts-rail input:focus-visible { outline-offset: -3px; }   /* the rail is exactly 44 px and scrolls: an outer ring would be clipped */
.ts-rg { display: flex; }
.ts-f { min-height: 44px; padding: 0 14px; font: inherit; letter-spacing: inherit; color: var(--ts-bone); background: none; border: 1px solid transparent; border-bottom-color: transparent; cursor: pointer; }
.ts-f:hover { background: var(--ts-bone-05); }
.ts-f:active { background: var(--ts-bone-10); }
.ts-f[aria-pressed="true"] { border-color: var(--ts-bone); }
.ts-sel select, .ts-q input { box-sizing: border-box; height: 44px; padding: 0 12px; font: inherit; letter-spacing: inherit; text-transform: uppercase; color: var(--ts-bone); background: var(--ts-ground); border: 1px solid var(--ts-bone-40); border-radius: 0; color-scheme: dark; }
.ts-q input { width: 11rem; }
.ts-q input::placeholder { color: var(--ts-grey); opacity: 1; }
.ts-count, .ts-stamp { color: var(--ts-grey); white-space: nowrap; }
.ts-stamp { margin-left: auto; padding-right: 2px; }
.ts-regwrap { display: grid; grid-template-columns: minmax(0, 1fr); }
.ts-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ts-table col.k-id { width: 104px; } .ts-table col.k-st { width: 160px; } .ts-table col.k-src { width: 168px; } .ts-table col.k-tg { width: 48px; }
.ts-table th { padding: 14px 12px; font: 700 var(--text-xs)/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; text-align: left; color: var(--ts-grey); border-bottom: 1px solid var(--ts-gun); }
.ts-table td { padding: 14px 12px; vertical-align: middle; font-size: 1rem; line-height: 1.35; border-bottom: 1px solid var(--ts-gun); }
.ts-r { position: relative; cursor: pointer; }
.ts-r:hover td { background: var(--ts-bone-05); }
.ts-r:active td { background: var(--ts-bone-10); }
.ts-r.is-sel td { background-color: var(--ts-bone-10); }
.ts-r.is-sel td:first-child { background-image: linear-gradient(var(--ts-orange), var(--ts-orange)); background-size: 2px 100%; background-position: 0 0; background-repeat: no-repeat; }
.ts-rowbtn { display: block; width: 100%; min-height: 48px; padding: 0 0 0 4px; font: 700 var(--text-xs)/1 var(--font-mono); letter-spacing: .08em; text-align: left; color: var(--ts-bone); background: none; border: 0; cursor: pointer; }
.ts-rowbtn::after { content: ""; position: absolute; inset: 0; }
.ts-chip { display: inline-block; padding: 5px 8px; font: 700 var(--text-xs)/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; border: 1px solid var(--ts-bone); }
.c-src { font: 700 var(--text-xs)/1.2 var(--font-mono); letter-spacing: .04em; color: var(--ts-grey); white-space: nowrap; }
.ts-sew { display: block; height: 22px; border-top: 1px solid var(--ts-bone); border-bottom: 1px solid var(--ts-bone); background: repeating-linear-gradient(45deg, transparent 0 4px, var(--ts-bone-80) 4px 5px), repeating-linear-gradient(-45deg, transparent 0 4px, var(--ts-bone-80) 4px 5px); }
.ts-sew-lg { height: 30px; margin: var(--space-3) 0 var(--space-4); }
.ts-empty td { font: 700 var(--text-xs)/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ts-grey); }
.ts-empty[hidden], .ts-r[hidden] { display: none; }
.ts-insp { display: none; }
.ts-insp-empty { font: 700 var(--text-xs)/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ts-grey); }
.ts-insp-empty[hidden] { display: none; }
html.js .ts-dossiers { display: none; }

/* a dossier: the four paragraphs verbatim, the link, then only the public events GitHub shows */
.ts-dos-id { font: 700 var(--text-xs)/1 var(--font-mono); letter-spacing: .12em; color: var(--ts-grey); }
.ts-dos h3 { margin: var(--space-2) 0 var(--space-4); font: 800 clamp(1.5rem, 1.1rem + 1.2vw, 1.875rem)/1.12 var(--font-display); letter-spacing: -.01em; }
.ts-dos p { max-width: 62ch; font-size: 1rem; line-height: 1.5; }
.ts-dos p + p { margin-top: var(--space-3); }
.ts-dos .ts-dos-id + h3 + p { margin-top: 0; }
.ts-ext { display: inline-flex; align-items: center; min-height: 44px; font: 700 var(--text-xs)/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ts-bone); text-underline-offset: 4px; }
.ts-tl-h { margin: var(--space-4) 0 var(--space-2); font: 700 var(--text-xs)/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ts-grey); }
.ts-tl li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--space-3); padding: 10px 0; font-size: .9375rem; line-height: 1.4; border-top: 1px solid var(--ts-gun); }
.ts-tl li:last-child { border-bottom: 1px solid var(--ts-gun); }
.ts-tl time { font: 700 var(--text-xs)/1.4 var(--font-mono); letter-spacing: .06em; }
.ts-dos .ts-tl-note { margin-top: var(--space-2); font: 700 var(--text-xs)/1.3 var(--font-mono); letter-spacing: .06em; color: var(--ts-grey); text-transform: uppercase; }
.ts-record { display: inline-block; margin-top: var(--space-4); padding: 8px 12px; font: 700 var(--text-xs)/1 var(--font-mono); letter-spacing: .12em; border: 1px solid var(--ts-bone); }

@media (min-width: 72rem) {
  .ts-regwrap { grid-template-columns: minmax(0, 800px) 480px; column-gap: 32px; align-items: start; }
  .ts-insp { display: block; position: sticky; top: 60px; max-height: calc(100svh - 76px); overflow: auto; padding: 24px 0 24px 24px; border-left: 1px solid var(--ts-gun); scrollbar-width: thin; }
}
@media (max-width: 71.99rem) {
  .ts-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ts-table, .ts-table tbody, .ts-table tr, .ts-table td { display: block; }
  .ts-table .ts-r { display: grid; grid-template-columns: auto minmax(0, 1fr) 44px; grid-template-areas: "id st tg" "sub sub sub" "src src src"; gap: 6px 12px; align-items: center; min-height: 48px; padding: 8px 0; border-bottom: 1px solid var(--ts-gun); }
  .ts-table .ts-r td { padding: 0; border: 0; }
  .ts-table .ts-r:hover td { background: none; }
  .ts-table .ts-r.is-sel { background: var(--ts-bone-10); box-shadow: inset 2px 0 0 var(--ts-orange); }
  .ts-table .ts-r.is-sel td, .ts-table .ts-r.is-sel td:first-child { background: none; }
  .ts-table .ts-r:active td { background: var(--ts-bone-10); }
  .ts-table .ts-rowbtn { padding-left: 8px; }
  .ts-table .c-id { grid-area: id; } .ts-table .c-st { grid-area: st; justify-self: end; } .ts-table .c-sub { grid-area: sub; padding-left: 8px; } .ts-table .c-src { grid-area: src; padding-left: 8px; } .ts-table .c-tg { grid-area: tg; justify-self: end; }
  .ts-table .ts-r[data-scope="private"] { grid-template-areas: "id band tg"; }
  .ts-table .c-band { grid-area: band; }
  .ts-table .ts-r[hidden] { display: none; }
  .ts-detail td { margin-top: 8px; padding: 20px 16px 28px; background: var(--ts-bone-05); border-bottom: 1px solid var(--ts-gun); }
}
@media (max-width: 71.99rem) {   /* tablet and phone: controls on the first rows, count and stamp on the last; nothing scrolls off or is cut */
  .ts-rail { position: static; flex-wrap: wrap; height: auto; overflow: visible; column-gap: var(--space-4); }
  .ts-rail::after { content: ""; order: 1; flex: 0 0 100%; height: 0; }
  .ts-rail .ts-q { flex: 1 1 11rem; } .ts-rail .ts-q input { width: 100%; }
  .ts-count, .ts-stamp { order: 2; display: flex; align-items: center; min-height: 40px; }
}
@media (max-width: 47.99rem) { .ts-stamp { margin-left: 0; } }

/* media slots: nothing renders (and nothing loads) until ten-sail/media.json says ready */
.ts-has-fig .ts-figs { display: grid; gap: var(--space-6); }
.ts-has-fig .ts-figs:empty { display: none; }
@media (min-width: 64rem) {
  .ts-has-fig { grid-template-columns: minmax(0, 70ch) minmax(0, 1fr); column-gap: var(--space-16); align-items: start; }
  .ts-has-fig > h2 { grid-column: 1; }
  .ts-has-fig > .ts-figs { grid-column: 2; grid-row: 1 / span 3; max-width: none; }
}

.ts-ask { box-sizing: border-box; max-width: var(--page-max); margin: 0 auto; padding: var(--space-24) var(--gutter) 0; }
.ts-ask p { font: 800 var(--text-2xl)/1.1 var(--font-display); max-width: 24ch; }
/* this page only: the shared footer keeps its markup and rules, but its display lines no longer outshout the case titles */
body.ts .foot-slogan { font-size: var(--text-xl); }
body.ts .foot-brand .lockup-name { font-size: var(--text-2xl); }
.ts-ask a { display: inline-block; padding-block: var(--space-2); }

.ts-ask a { color: var(--ts-bone); text-underline-offset: 4px; }
/* the shared lockup link is 13 px tall on a phone: an invisible hit area brings the tap target to 44 px without moving anything */
body.ts .shell-lockup { z-index: 80; }   /* above the header bar, which otherwise sits over the link and swallows the tap */
body.ts .sl-link { position: relative; }
body.ts .sl-link::after { content: ""; position: absolute; inset: -16px 0; }
/* pause: in the hero, beside the cases link (the shell's own button steps aside on pages that run their own scene) */
.ts-pause { min-height: 44px; padding: 6px 14px; font: 700 var(--text-xs)/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ts-bone); background: transparent; border: 1px solid var(--ts-bone-60); cursor: pointer; }
.ts-pause[hidden] { display: none; }
.ts-pause:hover { border-color: var(--ts-bone); }
.ts-pause:active { background: var(--ts-bone-20); }
.ts-pause[aria-pressed="true"] { background: var(--ts-bone); color: var(--ts-ground); }

/* feature rows: the four public cases that matter most. Same table, same hairlines; the row is three rows tall, with a plate at its right end */
.ts-table th.c-tg, .ts-table td.c-tg { padding: 0 2px; text-align: center; }
.ts-feat .c-feat { padding: 14px 12px; }
.ts-fb { display: grid; grid-template-columns: auto minmax(0, 1fr) min(320px, 50%); grid-template-areas: "sub sub plate" "sum sum plate" "st src plate"; gap: var(--space-2) var(--space-4); align-content: center; align-items: center; }
.ts-fb .c-sub { grid-area: sub; font: 800 1.1875rem/1.2 var(--font-display); letter-spacing: -.01em; }
.ts-fb .c-sum { grid-area: sum; margin: 0; font-size: .875rem; line-height: 1.5; }
.ts-fb .c-st { grid-area: st; } .ts-fb .c-src { grid-area: src; }
/* a plate: the poster still, with the one shared canvas laid over it while it is live (the same frame: the still is the corrected moment) */
.ts-plate { grid-area: plate; position: relative; aspect-ratio: 2 / 1; overflow: hidden; background: var(--ts-ground); }
.ts-plate img, .ts-plate canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.ts-plate canvas { opacity: 0; transition: opacity .4s ease-out; }
.ts-plate.is-live canvas { opacity: 1; }
.ts-plate::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--ts-gun); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .ts-plate canvas { transition: none; } }

/* the row menu: a "+" toggle in its own column, and a strip under the row (what it is, status, link) */
.ts-tg { position: relative; z-index: 1; display: inline-block; width: 44px; height: 44px; padding: 0; font: 700 1rem/1 var(--font-mono); color: var(--ts-bone); border: 1px solid var(--ts-bone-20); cursor: pointer;
  background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat; }   /* a drawn plus: no glyph to depend on */
.ts-tg[aria-expanded="true"] { background-size: 14px 2px, 0 0; }
.ts-tg:hover { border-color: var(--ts-bone); background-color: var(--ts-bone-10); }
.ts-tg:active { background-color: var(--ts-bone-20); }
.ts-strip[hidden] { display: none; }
.ts-table .ts-strip td { padding: 8px 12px 10px 116px; font-size: .875rem; line-height: 1.45; background: var(--ts-bone-05); }
.ts-strip td > * { margin-right: var(--space-4); }
.ts-sw, .ts-ss { display: inline-block; vertical-align: middle; }
.ts-ss { color: var(--ts-grey); }
.ts-strip .ts-ext { vertical-align: middle; }

@media (max-width: 71.99rem) {
  .ts-table .ts-strip[hidden] { display: none; }
  .ts-table .ts-strip td { padding: 8px 8px 10px; }
  .ts-strip td > .ts-sw, .ts-strip td > .ts-ss { display: block; }
  .ts-strip td > a { margin-top: var(--space-1); }
  .ts-table .ts-feat { grid-template-areas: "plate plate plate" "id st tg" "sub sub sub" "sum sum sum" "src src pause"; }
  .ts-feat .c-feat, .ts-feat .ts-fb { display: contents; }
  .ts-table .ts-feat .ts-plate { width: 100%; max-width: 24rem; aspect-ratio: auto; height: 120px; }
  .ts-table .ts-feat .c-sub, .ts-table .ts-feat .c-sum { padding-left: 8px; }
  .ts-table .ts-feat .c-sum { grid-area: sum; }
}

/* the plates' own Pause: the hero's button pattern, icon only, in the meta line of the row that holds the shared canvas; one shared state */
.ts-pause-plate { grid-area: src; justify-self: end; position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 44px; padding: 0; font-size: 0; }
.ts-pause-plate::before { content: ""; width: 14px; height: 14px; background: linear-gradient(90deg, currentColor 0 4px, transparent 4px 10px, currentColor 10px 14px); }
.ts-pause-plate[aria-pressed="true"]::before { background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
@media (max-width: 71.99rem) { .ts-table .ts-pause-plate { grid-area: pause; } }

/* The four feature rows: the plate is a photograph as a live displaced mesh. One canvas moves into the row in view; every plate keeps its own still, which is also the fallback (reduced motion, Save-Data, software GL, no WebGL) */
.ts-fb-p3d { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "plate plate" "sub sub" "sum sum" "st src"; }   /* the register column is 624 px at 1440, so the plate sits above the text, 510 px wide */
.ts-fb-p3d .ts-p3d { width: 100%; max-width: 510px; }
.ts-p3d { grid-area: plate; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ts-ground); }
.ts-p3d img, .ts-p3d canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.ts-p3d img { transform: scale(1.1); }   /* the live camera rests 10% inside the photograph (room to drift), so the still is the same frame */
.ts-p3d canvas { opacity: 0; transition: opacity .4s ease-out; }
.ts-p3d.is-live canvas { opacity: 1; }
.ts-p3d::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--ts-gun); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .ts-p3d canvas { transition: none; } }
@media (max-width: 71.99rem) { .ts-table .ts-feat .ts-p3d { width: 100%; max-width: none; aspect-ratio: 3 / 2; height: auto; } }
