/* landing.css — the front page (site/index.html; the site-redesign branch, the front page since 2026-11-18), built to
   Arthur's sketches of 2026-11-15: light, quiet, one orange (the buy
   button). Paper ground, ink type in Orbitron, the video's pen for frames
   (2 px ink, square corners) and its tick ruler under headings. The dither
   is in the pictures themselves (the designer's stage, the engine's boat,
   the chart), never laid over the page.
   Phone first. Tokens and .btn/.tag come from site.css. */

:root {
  --line: #12151a;
  --soft: #5c646e;
  --panel: #eceff3;
  --chartSea: #6b9fd5;          /* world.png's own sea */
  --cycle: 7.5s;                /* the phone's three taps */
  --pz: 1;                      /* the phone picture's zoom (by the screen's height) */
}
body[data-page="landing"] { background: var(--paper); color: var(--ink); }
.say, h2, h3 { text-wrap: balance; }

/* ------------------------------------------------------------- the bar */
.bar { position: relative; z-index: 3; height: 56px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter); max-width: 1180px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 900; font-size: 18px; letter-spacing: 2px; text-transform: uppercase; }
.brand img { display: block; }
.login { font-weight: 700; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; line-height: 1;
  padding: 10px 14px 9px; border: 2px solid var(--ink); }
.login:hover { background: var(--ink); color: var(--paper); }

/* ------------------------------------------------------------- the first screen */
.first { position: relative; isolation: isolate; overflow-x: clip;
  display: flex; flex-direction: column; align-items: center; min-height: calc(100vh - 56px); min-height: calc(100svh - 56px);
  padding: 0 0 10px; }
.slides { width: 100%; flex: 1 1 auto; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain; outline: none; }
.slides::-webkit-scrollbar { display: none; }
/* the faint sea at the screen's foot, on every width (Arthur, 2026-11-17:
   "some nonintrusive pattern underneath everything"; "put the background
   pattern in the back on mobile as well"): img/sea.png, the engine's Bayer
   dither in a pale tint of the chart's sea fading in from nothing, a few
   pixel wave crests; drawn by tools/landing-sea.mjs, 335 bytes. On its own
   layer, so pixelated never reaches the pictures */
.first::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 340px; pointer-events: none;
  background: url("img/sea.png") repeat-x left bottom / 128px 400px; image-rendering: pixelated; image-rendering: crisp-edges; }
@media (min-width: 1000px) { .first::before { height: 400px; } }
.slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 18px; padding: 8px var(--gutter) 0; min-height: 0; }
.slide .pic { flex: 1 1 auto; min-height: 0; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
/* two lines' room on every slide, so the caption never moves the picture as the row turns */
/* --say: the line's size by the width, and by the height too so a phone on
   its side does not get 40 px type (the TV below reads it) */
:root { --say: clamp(22px, min(6.6vw, 5.4vh), 40px); }
.say { font-weight: 900; font-size: var(--say); line-height: 1.1; letter-spacing: 0.01em; text-transform: uppercase; text-align: center; margin: 0;
  min-height: 2.2em; display: flex; align-items: flex-start; justify-content: center; }
.dots { display: flex; align-items: center; gap: 0; margin: 4px 0 8px; }
.dots button { position: relative; width: 32px; height: 32px; padding: 0; display: grid; place-items: center; }
.dots button::before, .dots button::after { box-sizing: border-box; }
.dots button::before { content: ""; width: 16px; height: 16px; border: 2px solid var(--ink); background: var(--paper); }
/* the lit dot is a bar that fills while its picture's time runs (landing.js:
   .run restarts it, .held stops it where it is); full at once for less motion */
.dots button[aria-current="true"] { width: 48px; }
.dots button[aria-current="true"]::before { width: 40px; }
.dots button[aria-current="true"]::after { content: ""; position: absolute; left: 6px; top: 10px; width: 36px; height: 12px; background: var(--ink);
  transform-origin: 0 50%; }
.dots.run button[aria-current="true"]::after { animation: fill var(--every, 6s) linear both; }
.dots.held button[aria-current="true"]::after { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* the row is dragged with a mouse as a finger swipes it (landing.js) */
.slides { user-select: none; -webkit-user-select: none; }
@media (hover: hover) and (pointer: fine) { .slides { cursor: grab; } }
.slides.drag { scroll-snap-type: none; cursor: grabbing; }
/* the words beside the picture on a wide window (below) */
.ledes { display: none; }
.btn.buy { width: calc(100% - 2 * var(--gutter)); max-width: 360px; min-height: 56px; font-size: 15px; letter-spacing: 2px; padding: 16px 24px; }
.btn.buy:hover { background: #ff8a3d; }
.btn.buy:active { transform: translateY(1px); }
.down { display: block; margin: 14px auto 2px; padding: 8px; color: var(--ink); }
.down svg { display: block; width: 24px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.5; }
@media (prefers-reduced-motion: no-preference) {
  .down svg { animation: bob 2.2s ease-in-out infinite; }
  @keyframes bob { 0%, 100% { transform: none; } 50% { transform: translateY(5px); } }
}

/* ---- slide 1: the designer on a phone */
.phone { width: 272px; zoom: var(--pz); background: var(--ink); border-radius: 36px; padding: 10px; }
/* both phones the same body: a 9 : 19.5 screen (Arthur, 2026-11-16: "the
   phone proportions change in the illustrations") */
.screen { border-radius: 27px; overflow: hidden; background: var(--ink); aspect-ratio: 9 / 19.5; display: flex; flex-direction: column; }
.url { margin: 4px 8px 10px; padding: 6px 10px; border-radius: 999px; background: var(--paper); color: var(--ink);
  text-align: center; font-weight: 700; font-size: 13px; letter-spacing: 0; line-height: 1.2; max-width: none; }
.stage { position: relative; flex: 1 1 auto; min-height: 0; background: var(--paper); border-radius: 18px 18px 0 0; overflow: hidden; margin: 0 2px; }
.stage .fig { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.ui { padding: 12px 12px 10px; color: var(--paper); display: grid; gap: 9px; }
.ui p { max-width: none; }
.who { display: flex; align-items: flex-end; justify-content: space-between; }
.who .k { display: block; font-weight: 500; font-size: 8px; letter-spacing: 2px; text-transform: uppercase; color: #b8c0cc; }
.who .n { display: block; font-weight: 900; font-size: 22px; letter-spacing: 1px; line-height: 1.05; text-transform: uppercase; }
.roll { background: var(--paper); color: var(--ink); font-weight: 700; font-size: 9px; letter-spacing: 2px; text-transform: uppercase; padding: 7px 12px 6px; }
.pick { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 6px; }
.lab { font-weight: 500; font-size: 8px; letter-spacing: 1.5px; text-transform: uppercase; color: #b8c0cc; }
.box { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--paper); padding: 6px 9px; font-size: 12px; font-weight: 500; }
.ar { font-weight: 700; position: relative; }
.sw { position: relative; flex: 1; height: 1.3em; }
.sw b { position: absolute; inset: 0; text-align: center; font-weight: 500; white-space: nowrap; }
.sw b.w0 { opacity: 0; }
.cols { display: flex; justify-content: space-between; gap: 5px; border: 1px solid var(--paper); padding: 7px 8px; }
.cols i { position: relative; flex: 1; height: 15px; }
.cols .c0 { background: linear-gradient(90deg, #7d8f6a 50%, #c46a43 50%); }
.cols .c1 { background: linear-gradient(90deg, #ffffff 50%, #1a1c22 50%); }
.cols .c2 { background: linear-gradient(90deg, #c9a33b 50%, #263a6b 50%); }
.cols .c3 { background: linear-gradient(90deg, #2f7f86 50%, #b8683a 50%); }
.cols .c4 { background: linear-gradient(90deg, #8e3b5e 50%, #e7b7b4 50%); }
.cols .c5 { background: linear-gradient(90deg, #a85634 50%, #4b6c9a 50%); }
.cols .c6 { background: linear-gradient(90deg, #9b8dc2 50%, #5b3a68 50%); }
.cols i::after { content: ""; position: absolute; inset: -3px; border: 2px solid var(--accent); opacity: 0; }
.cols .c3::after { opacity: 1; }
.ui .act { display: grid; grid-template-columns: 1fr 1.5fr; margin-top: 2px; }
.ui .act .tabs { display: flex; }
.ui .act .t { flex: 1; height: 32px; background: var(--ink); border: 1px solid var(--paper); }
.ui .act .t.on { background: var(--paper); }
.ui .act .save { display: flex; align-items: center; justify-content: center; background: var(--accent); color: var(--ink);
  font-weight: 700; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; }
.stage .f0, .stage .f1 { opacity: 0; }
.tap1::after, .cols .c3::before { content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.35); border: 2px solid var(--paper); opacity: 0; pointer-events: none; z-index: 2; }
@media (prefers-reduced-motion: no-preference) {
  .stage .f0 { animation: a0 var(--cycle) linear infinite; }
  .stage .f1 { animation: a1 var(--cycle) linear infinite; }
  .stage .f2 { animation: a2 var(--cycle) linear infinite; }
  .sw b.w0 { animation: a0 var(--cycle) linear infinite; }
  .sw b.w1 { animation: a12 var(--cycle) linear infinite; }
  .cols .c1::after { animation: a01 var(--cycle) linear infinite; }
  .cols .c3::after { animation: a2 var(--cycle) linear infinite; }
  .tap1::after { animation: tapA var(--cycle) ease-out infinite; }
  .cols .c3::before { animation: tapB var(--cycle) ease-out infinite; }
  @keyframes a0 { 0%, 33.2% { opacity: 1; } 33.4%, 100% { opacity: 0; } }
  @keyframes a1 { 0%, 33.2% { opacity: 0; } 33.4%, 66.5% { opacity: 1; } 66.7%, 100% { opacity: 0; } }
  @keyframes a2 { 0%, 66.5% { opacity: 0; } 66.7%, 100% { opacity: 1; } }
  @keyframes a12 { 0%, 33.2% { opacity: 0; } 33.4%, 100% { opacity: 1; } }
  @keyframes a01 { 0%, 66.5% { opacity: 1; } 66.7%, 100% { opacity: 0; } }
  @keyframes tapA { 0%, 25% { opacity: 0; transform: scale(0.5); } 29% { opacity: 1; transform: scale(1); } 34%, 100% { opacity: 0; transform: scale(1.3); } }
  @keyframes tapB { 0%, 58% { opacity: 0; transform: scale(0.5); } 62% { opacity: 1; transform: scale(1); } 67%, 100% { opacity: 0; transform: scale(1.3); } }
}
/* by the window's height: the desktop's steps, and a phone's in a browser
   too old for the container queries under "fits the screen" below */
@media (max-height: 820px) { :root { --pz: 0.9; } }
@media (max-height: 760px) { :root { --pz: 0.8; } }
@media (max-height: 700px) { :root { --pz: 0.7; } }
@media (max-height: 640px) { :root { --pz: 0.6; } }

/* ---- slide 2: a modern TV, a YouTube Short open on it. Thin ink bezel,
   a chin with the maker's mark, a pedestal. The screen is one svg in its own
   1600 x 900 units (36 of them are 13 px on a 580 px TV): the news and the
   bubble in the show's Orbitron, YouTube's own bits in a plain sans, white */
.tv { width: min(100%, 600px); }
/* below the wide layout the TV is far shorter than the phones the picture
   area is sized for: the TV and its line stand together in the middle of
   the slide, not the TV at the foot of an empty area (Arthur, 2026-11-17:
   "compositionally this part on mobile looks bad") */
@media (max-width: 999px) { #slide2 .pic { flex: 0 0 auto; } }
.tvset { position: relative; background: var(--ink); border-radius: 10px; padding: 7px 7px 15px; }
.tvset::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 22px; height: 3px; margin-left: -11px; background: #3b424b; }
.tvscreen { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 3px; background: #0f0f0f; }
.tvstand { position: relative; display: block; width: 36%; height: 30px; margin: 0 auto; }
.tvstand::before { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 24px; margin-left: -8%; background: var(--ink); }
.tvstand::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px; background: var(--ink); border-radius: 4px 4px 2px 2px; }
.tvscreen .bub { fill: var(--paper); stroke: var(--ink); stroke-width: 7px; stroke-linejoin: miter; }
.tvscreen .bubt { font-family: Orbitron, sans-serif; font-weight: 900; font-size: 54px; letter-spacing: 1px; fill: var(--ink); text-anchor: middle; }
.tvscreen .flag { font-family: Orbitron, sans-serif; font-weight: 900; font-size: 50px; fill: var(--ink); text-anchor: middle; }
.tvscreen .live { font-family: Orbitron, sans-serif; font-weight: 900; font-size: 30px; letter-spacing: 3px; fill: var(--ink); text-anchor: middle; }
.tvscreen .nm { font-family: Orbitron, sans-serif; font-weight: 900; font-size: 52px; letter-spacing: 2px; fill: var(--ink); }
.tvscreen .role { font-family: Orbitron, sans-serif; font-weight: 700; font-size: 29px; letter-spacing: 3px; fill: var(--paper); }
.tvscreen .yt { fill: #ffffff; font-family: Roboto, Arial, system-ui, sans-serif; }
.tvscreen .yt .ti { font-size: 38px; font-weight: 600; }
.tvscreen .yt .ch { font-size: 36px; font-weight: 700; }
.tvscreen .yt .sub { font-size: 27px; font-weight: 700; fill: #0f0f0f; text-anchor: middle; }
.tvscreen .yt .rl { font-size: 27px; font-weight: 500; text-anchor: middle; fill: #f1f1f1; }

/* ---- slide 3: the ticket */
.ticket { display: block; height: 100%; max-height: 520px; width: auto; max-width: 100%; object-fit: contain; transform: rotate(-3deg); }

/* ---- the first screen fits the screen on a phone or a tablet (Arthur,
   2026-11-22: "some of the screen ratios on phones on the afloat site leave
   lots of empty space on top"). The row of pictures used to take the
   ticket's own height (520 px) on every screen, so on a screen shorter than
   that the designer phone sat low under an empty band and BUY TICKET fell
   off the first screen. Now the first screen is the visible screen (svh:
   with the browser's bars showing), the line, the dots, BUY and the arrow
   keep their size, and the pictures share what is left: the ticket by its
   height, the designer phone at the largest zoom step that fits (2.5 % a
   step, so never more than ~14 px short), the TV at the width that leaves
   its line room. A very short window (a phone on its side) keeps 470 px
   and scrolls; a tall one (a tablet) caps the row at 780 px and centres.
   Only where both container queries and zoom work (a Firefox before 126
   has the first without the second): elsewhere the page stays as it was. */
@supports (container-type: size) and (zoom: 1) {
  @media (max-width: 999px) {
    .first { height: calc(100vh - 56px); height: calc(100svh - 56px); min-height: 470px; justify-content: center; }
    .slides { flex: 1 1 0; max-height: 780px; }
    .slide { container: slide / size; }
    .slide .pic { container: pic / size; }
    #slide2 .pic { container-type: normal; }
    .ticket { height: 96cqh; max-height: none; }   /* 96: the -3° turn's corners stay inside */
    /* the TV's height is (width - 14) · 9/16 + 52 (its bezel and stand); the slide also holds its top 8, the gap 18 and the two-line say */
    #slide2 .tv { width: min(100%, 600px, calc((100cqh - 78px - 2.2 * var(--say)) * 16 / 9 + 14px)); }
    /* the designer phone is 272 x 567 at zoom 1; the last step that fits wins (0.35 under them all) */
    .phone { --pz: 0.35; }
    @container pic (min-width: 109px) and (min-height: 227px) { .phone { --pz: 0.4; } }
    @container pic (min-width: 116px) and (min-height: 241px) { .phone { --pz: 0.425; } }
    @container pic (min-width: 123px) and (min-height: 256px) { .phone { --pz: 0.45; } }
    @container pic (min-width: 130px) and (min-height: 270px) { .phone { --pz: 0.475; } }
    @container pic (min-width: 136px) and (min-height: 284px) { .phone { --pz: 0.5; } }
    @container pic (min-width: 143px) and (min-height: 298px) { .phone { --pz: 0.525; } }
    @container pic (min-width: 150px) and (min-height: 312px) { .phone { --pz: 0.55; } }
    @container pic (min-width: 157px) and (min-height: 327px) { .phone { --pz: 0.575; } }
    @container pic (min-width: 164px) and (min-height: 341px) { .phone { --pz: 0.6; } }
    @container pic (min-width: 170px) and (min-height: 355px) { .phone { --pz: 0.625; } }
    @container pic (min-width: 177px) and (min-height: 369px) { .phone { --pz: 0.65; } }
    @container pic (min-width: 184px) and (min-height: 383px) { .phone { --pz: 0.675; } }
    @container pic (min-width: 191px) and (min-height: 397px) { .phone { --pz: 0.7; } }
    @container pic (min-width: 198px) and (min-height: 412px) { .phone { --pz: 0.725; } }
    @container pic (min-width: 204px) and (min-height: 426px) { .phone { --pz: 0.75; } }
    @container pic (min-width: 211px) and (min-height: 440px) { .phone { --pz: 0.775; } }
    @container pic (min-width: 218px) and (min-height: 454px) { .phone { --pz: 0.8; } }
    @container pic (min-width: 225px) and (min-height: 468px) { .phone { --pz: 0.825; } }
    @container pic (min-width: 232px) and (min-height: 482px) { .phone { --pz: 0.85; } }
    @container pic (min-width: 238px) and (min-height: 497px) { .phone { --pz: 0.875; } }
    @container pic (min-width: 245px) and (min-height: 511px) { .phone { --pz: 0.9; } }
    @container pic (min-width: 252px) and (min-height: 525px) { .phone { --pz: 0.925; } }
    @container pic (min-width: 259px) and (min-height: 539px) { .phone { --pz: 0.95; } }
    @container pic (min-width: 266px) and (min-height: 553px) { .phone { --pz: 0.975; } }
    @container pic (min-width: 272px) and (min-height: 567px) { .phone { --pz: 1; } }
    @container pic (min-width: 279px) and (min-height: 582px) { .phone { --pz: 1.025; } }
    @container pic (min-width: 286px) and (min-height: 596px) { .phone { --pz: 1.05; } }
    @container pic (min-width: 293px) and (min-height: 610px) { .phone { --pz: 1.075; } }
    @container pic (min-width: 300px) and (min-height: 624px) { .phone { --pz: 1.1; } }
    @container pic (min-width: 306px) and (min-height: 638px) { .phone { --pz: 1.125; } }
    @container pic (min-width: 313px) and (min-height: 653px) { .phone { --pz: 1.15; } }
    @container pic (min-width: 320px) and (min-height: 667px) { .phone { --pz: 1.175; } }
    @container pic (min-width: 327px) and (min-height: 681px) { .phone { --pz: 1.2; } }
  }
}

@media (min-width: 900px) {
  :root { --pz: 1.05; }
  .slide { gap: 22px; }
}
@media (min-width: 900px) and (max-height: 820px) { :root { --pz: 0.9; } }

/* a wide window: the words on the left (the picture's line, the dots, BUY
   TICKET), the picture on the right, one at a time (Arthur, 2026-11-16:
   "text on one side and the illustration on the other"). The line under
   each picture stays for a screen reader; the one on the left fades to the
   picture on show (landing.js) */
@media (min-width: 1000px) {
  /* the words and the picture as one group 1100 px wide, the picture's
     side the wider (the TV is wide; the phone and the ticket stand in its
     middle); the first screen itself the window's whole width so the sea
     under it (::before) runs edge to edge */
  .first { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); column-gap: 40px;
    align-items: center; justify-items: start;
    grid-template-rows: 1fr auto auto auto 1fr auto;
    grid-template-areas: ". row" "lede row" "dots row" "buy row" ". row" "down down";
    padding: 0 max(var(--gutter), calc((100% - 1100px) / 2)) 10px; }
  .slides { grid-area: row; align-self: stretch; height: calc(100vh - 56px - 64px); height: calc(100svh - 56px - 64px); min-height: 520px; }
  /* the row reaches 56 px past its column on both sides and those 56 px are
     its edges' dither (img/edge-l.svg, edge-r.svg by tools/landing-sea.mjs,
     the Bayer threshold against a ramp): a picture at rest is never in
     them; one gliding in or out dissolves in squares instead of being cut
     (Arthur, 2026-11-17) */
  .slides { width: calc(100% + 112px); margin: 0 -56px;
    -webkit-mask: url("img/edge-l.svg") left top / 56px 16px repeat-y, linear-gradient(#000, #000) center / calc(100% - 112px) 100% no-repeat,
      url("img/edge-r.svg") right top / 56px 16px repeat-y;
    mask: url("img/edge-l.svg") left top / 56px 16px repeat-y, linear-gradient(#000, #000) center / calc(100% - 112px) 100% no-repeat,
      url("img/edge-r.svg") right top / 56px 16px repeat-y; }
  .slide { padding: 0 56px; position: relative; }   /* holds its hidden caption: absolute, it escaped the row's clipping and widened the page */
  .slide .pic { align-items: center; }
  .slide .say { position: absolute; width: 1px; height: 1px; min-height: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ledes { grid-area: lede; display: grid; width: 100%; container-type: inline-size; }
  /* a tenth of the column: the longest line ("DAILY YOUTUBE", 9.4 em) always
     fits, so slide 2 takes three lines and the others two, and the block
     under them never sits low */
  .lede { grid-area: 1 / 1; align-self: end; margin: 0; font-weight: 900; font-size: clamp(30px, 10cqi, 56px); line-height: 1.04; letter-spacing: 0.01em;
    text-transform: uppercase; text-wrap: balance; opacity: 0; transition: opacity 0.35s; }
  .lede.on { opacity: 1; }
  .dots { grid-area: dots; margin: 26px 0 22px -8px; }
  .first > .btn.buy { grid-area: buy; width: 100%; max-width: 360px; }
  .down { grid-area: down; justify-self: center; }
}
@media (min-width: 1000px) and (prefers-reduced-motion: reduce) { .lede { transition: none; } }

/* ------------------------------------------------------------- scrollbars
   (Arthur, 2026-11-17: "something more blocky and fitting the site
   branding"): square, no arrows, an ink bar on a plain panel track (the 2 px
   dither track read as noise, 2026-11-17), the page's own bar too. Where the browser has no
   ::-webkit-scrollbar (Firefox) the two colours. No scrollbar-width on the
   rows: Chrome drops these styles from an element that has one */
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: var(--panel); }
::-webkit-scrollbar-thumb { background: var(--ink) padding-box; border: 3px solid transparent; border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background-color: #3b424b; }
::-webkit-scrollbar-thumb:active { background-color: var(--accent); }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-corner { background: var(--paper); }
@supports not selector(::-webkit-scrollbar) { html, .list { scrollbar-color: var(--ink) var(--panel); } }

/* ------------------------------------------------------------- shared section heads */
section.ship, section.people, section.map, section.awards, section.stats { padding: 56px 0 8px; }
.head { max-width: 1180px; margin: 0 auto 18px; padding: 0 var(--gutter); display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px;
  font-size: 18px; letter-spacing: 2px; }
.head .count { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 6px 8px 5px; }

/* ------------------------------------------------------------- the ship, day by day */
/* the band is the boat, tall, the day's words in white over the sea at its
   top, ‹ › at its middle (Arthur, 2026-11-16) */
section.ship { padding-top: 8px; }
.shipwrap { position: relative; }
.daytitle { position: absolute; z-index: 2; left: 0; right: 0; top: 26px; padding: 0 var(--gutter); text-align: center; color: var(--paper);
  pointer-events: none; text-shadow: 0 2px 0 rgba(18, 21, 26, 0.28); }
.daytitle h2 { font-size: clamp(28px, 7.4vw, 52px); letter-spacing: 2px; line-height: 1.05; }
.daytitle .sub { margin: 8px auto 0; max-width: none; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; min-height: 1.6em; }
.step { width: 48px; height: 48px; border: 2px solid var(--ink); background: var(--paper); font-size: 24px; font-weight: 700; line-height: 1;
  display: grid; place-items: center; }
.step:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.step:disabled { opacity: 0.35; cursor: default; }
.shipwrap .step { position: absolute; z-index: 2; top: 50%; margin-top: -24px; }
.shipwrap .step.prev { left: var(--gutter); }
.shipwrap .step.next { right: var(--gutter); }
@media (min-width: 900px) { .shipwrap .step.prev { left: 32px; } .shipwrap .step.next { right: 32px; } }
/* the day's sea before the engine has drawn it, so the white words read at once */
.shipbox { position: relative; width: 100%; height: clamp(460px, 84vh, 940px); height: clamp(460px, 84svh, 940px); overflow: hidden; background: #2a8fd8;
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.shipbox:active { cursor: grabbing; }
.shipbox:focus-visible { outline: 3px solid var(--accent); outline-offset: -6px; }
.shipbox canvas { position: absolute; left: 0; top: 0; display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
.shipbox .hint { position: absolute; z-index: 2; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0; max-width: none; white-space: nowrap;
  font-weight: 700; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.shipbox .hint span { background: var(--paper); border: 2px solid var(--ink); padding: 6px 10px 5px; }
.shipbox.on .hint { opacity: 1; }
.shipbox .hint[hidden] { display: block; opacity: 0; }

/* ------------------------------------------------------------- the passenger list */
/* a row of everyone on the designer's stage: swiped on a phone, wrapped on a wide window */
.list { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 0 var(--gutter) 10px; scroll-padding: 0 var(--gutter); max-width: 1180px; margin: 0 auto; }
.list li { scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.list img, .list canvas { display: block; width: 100%; height: auto; }
.list b { margin-top: 6px; font-weight: 900; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; line-height: 1.2; }
.list span { font-weight: 700; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; line-height: 1.25; overflow-wrap: anywhere; color: var(--soft); }
@media (min-width: 760px) {
  .list { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); overflow: visible; }
}
.list li[hidden], .list:not(.found) li.later { display: none; }
.list li.later .holder::before { content: ""; display: block; width: 100%; aspect-ratio: 3 / 4; background: var(--panel); }
/* each passenger a button: a tap opens them in 3D (the window below) */
.list .holder { display: flex; flex-direction: column; align-items: center; width: 100%; padding: 0; text-align: center; cursor: pointer; }
@media (hover: hover) { .list .holder:hover img, .list .holder:hover canvas { outline: 2px solid var(--ink); outline-offset: -2px; } }
/* the search: a name or a number (landing.js); 16 px type so a phone does not zoom in on it */
.find { max-width: 1180px; margin: -4px auto 16px; padding: 0 var(--gutter); }
.findbox { display: flex; align-items: center; max-width: 360px; height: 48px; border: 2px solid var(--ink); background: var(--paper); }
.findbox:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.findbox svg { flex: 0 0 auto; width: 16px; height: 16px; margin: 0 0 0 14px; fill: var(--ink); }
.findbox input { -webkit-appearance: none; appearance: none; flex: 1 1 auto; min-width: 0; height: 100%; border: 0; border-radius: 0; background: none; padding: 0 12px; color: var(--ink);
  font: inherit; font-weight: 700; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; outline: none; }
.findbox input::placeholder { color: var(--soft); opacity: 1; font-weight: 500; }
/* what the search found, said to a screen reader; on the page only when nothing */
.findsay { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.findsay.none { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; margin: 14px 0 0; max-width: none;
  font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--soft); }

/* ------------------------------------------------------------- the badges */
/* the passenger list's row (swiped on a phone, wrapped on a wide window), each
   badge its glyph in paper and orange on an ink plate, the video's way */
.list.badges { grid-auto-columns: 92px; }
.badges .plate { display: grid; place-items: center; width: 72px; height: 72px; background: var(--ink); }
.badges .plate svg.glyph { width: 48px; height: 48px; }
.badges b { margin-top: 8px; font-size: 10px; letter-spacing: 0.5px; overflow-wrap: normal; -webkit-hyphens: auto; hyphens: auto; }
@media (min-width: 760px) { .list.badges { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); row-gap: 20px; } }
.awards .none { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--soft); }
.awards .none[hidden], .head .count[hidden] { display: none; }

/* ------------------------------------------------------------- the map */
/* the whole window wide (Arthur, 2026-11-16) */
.chart { position: relative; width: 100%; margin: 0; height: clamp(360px, 72vh, 760px); height: clamp(360px, 72svh, 760px); overflow: hidden; background: var(--chartSea);
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; outline: none; }
.chart:active { cursor: grabbing; }
.chart:focus-visible { box-shadow: inset 0 0 0 3px var(--accent); }
.layer { position: absolute; left: 0; top: 0; width: 720px; height: 360px; transform-origin: 0 0; will-change: transform; --k: 1; }
.layer img { display: block; width: 720px; height: 360px; image-rendering: pixelated; image-rendering: crisp-edges; pointer-events: none; }
.layer svg { position: absolute; inset: 0; width: 720px; height: 360px; overflow: visible; pointer-events: none; }
.layer svg .way { fill: none; stroke: var(--ink); stroke-width: calc(1.5px / var(--k)); stroke-linejoin: round; stroke-linecap: round; }
.pois { position: absolute; inset: 0; }
.poi { position: absolute; width: 32px; height: 32px; margin: -16px 0 0 -16px; padding: 0; transform: scale(calc(1 / var(--k))); display: grid; place-items: center; }
.poi::before { content: ""; width: 8px; height: 8px; background: var(--paper); border: 2px solid var(--ink); }
.poi.now { z-index: 1; }
.poi.now::before { width: 12px; height: 12px; background: var(--accent); }
/* the ports' names: their own layer over the chart and its points, in the
   screen's pixels, each put where it covers no other name and no point
   (landing-live.js); today's in the orange */
.pnames { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.pname { position: absolute; left: 0; top: 0; white-space: nowrap; font-weight: 700; font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
  background: var(--paper); border: 2px solid var(--ink); padding: 3px 5px 2px; line-height: 1; }
.pname.now { background: var(--accent); }
.pname[hidden] { display: none; }
.zoom { position: absolute; right: 10px; top: 10px; display: grid; gap: 6px; z-index: 2; }
.zoom button { width: 40px; height: 40px; background: var(--paper); border: 2px solid var(--ink); font-size: 20px; font-weight: 700; line-height: 1; }
.zoom button:hover { background: var(--ink); color: var(--paper); }
.card { position: absolute; left: 10px; bottom: 10px; z-index: 2; margin: 0; max-width: calc(100% - 20px); background: var(--paper); border: 2px solid var(--ink);
  padding: 8px 10px 7px; font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; line-height: 1.3; }
.card[hidden] { display: none; }

/* ------------------------------------------------------------- the numbers */
.nums { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.nums div { padding: 14px 0 12px; border-top: 2px solid var(--ink); }
.nums div:nth-child(odd) { padding-right: 12px; }
.nums dt { font-weight: 700; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--soft); }
.nums dd { margin: 4px 0 0; font-weight: 900; font-size: clamp(26px, 7vw, 40px); line-height: 1.05; }
@media (min-width: 760px) {
  .nums { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
  .nums div:nth-child(odd) { padding-right: 0; }
}

/* ------------------------------------------------------------- the foot */
.foot { max-width: 1180px; margin: 64px auto 0; padding: 22px var(--gutter) calc(110px + env(safe-area-inset-bottom)); border-top: 2px solid var(--ink);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.foot .brand { font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot nav a { font-weight: 700; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--soft); }
.foot nav a[hidden] { display: none; }

/* ------------------------------------------------------------- the buy window */
.buyw { width: min(calc(100vw - 24px), 520px); max-height: calc(100dvh - 24px); margin: auto; padding: 26px 22px 20px; border: 2px solid var(--ink);
  background: var(--paper); color: var(--ink); overflow-y: auto; }
.buyw::backdrop { background: rgba(18, 21, 26, 0.55); }
.buyw[open] { animation: up 0.22s ease-out; }
@keyframes up { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .buyw[open] { animation: none; } }
.buyw .x { position: absolute; right: 10px; top: 8px; width: 40px; height: 40px; font-size: 26px; line-height: 1; }
.buyw h2 { font-size: 18px; letter-spacing: 2px; margin: 0 40px 18px 0; }
/* how it goes: three numbered lines under the window's title (the "what you
   get" cards went on 2026-11-21) */
.how { list-style: none; counter-reset: h; display: grid; gap: 6px; margin: 0 0 18px; }
.how > li { counter-increment: h; display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 13px; line-height: 1.45; color: #3b424b; }
.how > li::before { content: counter(h); display: grid; place-items: center; width: 22px; height: 22px; background: var(--ink); color: var(--paper); font-weight: 900; font-size: 11px; }
/* what being on board means (2026-11-21): four cells side by side under the
   steps, each a 12 x 12 pixel picture at three pixels a cell on the panel,
   its short line under it */
.perks4 { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: -4px 0 18px; }
.perks4 li { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; text-align: center; font-size: 11px; line-height: 1.3; color: #3b424b; }
.perks4 .pic { display: grid; place-items: center; width: 100%; aspect-ratio: 5 / 4; background: var(--panel); }
.perks4 .pic i { display: block; line-height: 0; }
.perks4 svg.glyph.m { width: 36px; height: 36px; }
/* the name, the button and the fine print: pinned to the window's foot, so
   on a phone the button is always in reach while what you get scrolls */
#buyPop { padding-bottom: 0; }
.buyfoot { position: sticky; bottom: 0; z-index: 2; background: var(--paper); margin: 0 -22px; padding: 12px 22px 16px; border-top: 2px solid var(--panel); }
/* the name: checked yes or no before Stripe's page opens (16 px type: a phone does not zoom in) */
.namebox { margin: 0 0 10px; }
.namebox input { display: block; width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink);
  font: inherit; font-weight: 700; font-size: 16px; letter-spacing: 1px; }
.namebox input::placeholder { color: var(--soft); font-weight: 500; opacity: 1; }
.namebox input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.namebox input:disabled { opacity: 0.5; }
.buyw .note { margin: 8px 0 0; max-width: none; font-size: 13px; font-weight: 500; line-height: 1.45; }
.buyw .note:empty { display: none; }
.buyw .note.bad { background: var(--accent); color: var(--ink); padding: 6px 10px; }
.buyw .note.wait { color: var(--soft); }
.buyw .btn.buy:disabled { opacity: 0.6; cursor: default; }
/* back from Stripe: the ticket's tear-off — the number, the code on the accent */
.thanks h2 { margin-bottom: 14px; }
.thanks .wait { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--soft); max-width: none; }
.thanks .wait[hidden], .thanks .stub[hidden], .thanks .pts li[hidden], .thanks .btn[hidden] { display: none; }
.thanks .spin { width: 14px; height: 14px; border: 2px solid var(--ink); border-right-color: transparent; }
@media (prefers-reduced-motion: no-preference) { .thanks .spin { animation: spin 0.9s steps(8) infinite; } @keyframes spin { to { transform: rotate(360deg); } } }
.thanks .stub { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; padding: 14px 0; margin: 0 0 12px;
  border-top: 2px dashed var(--ink); border-bottom: 2px dashed var(--ink); }
.thanks .stub .k { margin: 0 0 4px; max-width: none; font-weight: 500; font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--soft); }
.thanks .stub .no { margin: 0; max-width: none; font-weight: 900; font-size: 34px; line-height: 1; }
/* the code plate is a button: covered until tapped (a 2 px dither of ink
   over the orange, TAP TO SHOW over the whole plate); the code itself keeps
   the plate its size underneath, so nothing moves as it turns */
.thanks .stub .code { position: relative; display: block; margin: 0; padding: 6px 10px 5px; background: var(--accent); color: var(--ink); border: 2px solid var(--ink);
  border-radius: 0; font: inherit; font-weight: 700; font-size: 18px; letter-spacing: 2px; line-height: 1.3; cursor: pointer; }
.thanks .stub .code .cover { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--paper); text-shadow: 0 0 3px var(--ink), 0 0 3px var(--ink);
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2'%3E%3Crect width='1' height='1' fill='%23f77622'/%3E%3C/svg%3E") 0 0 / 4px 4px; }
.thanks .stub .code[aria-pressed="false"] .val { visibility: hidden; }
.thanks .stub .code[aria-pressed="true"] .cover { display: none; }
/* three points, square bullets in ink (2026-11-21); today and tomorrow in bold */
.thanks .pts { list-style: square; margin: 0 0 6px 18px; padding: 0; }
.thanks .pts li { margin: 0 0 6px; max-width: none; font-size: 14px; line-height: 1.5; color: #3b424b; }
.thanks .pts li::marker { color: var(--ink); }
.thanks .pts b { font-weight: 700; color: var(--ink); }
.thanks .btn { width: 100%; max-width: none; margin-top: 10px; }
.buyw .btn.buy { width: 100%; max-width: none; }
.fine { margin: 10px 0 0; font-size: 11px; color: var(--soft); text-align: center; max-width: none; }

/* ------------------------------------------------------------- one passenger, in 3D */
/* the passenger page's view in a window: the figure on the stage's own
   dithered grey and white, ‹ › to the passenger before and after, × to shut;
   under it the number, the name and the day (no way to the designer here:
   Arthur, 2026-11-17) */
.paxw { width: min(calc(100vw - 24px), 440px); max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 2px solid var(--ink);
  background: var(--paper); color: var(--ink); overflow-x: hidden; overflow-y: auto; }
.paxw::backdrop { background: rgba(18, 21, 26, 0.55); }
.paxw[open] { animation: up 0.22s ease-out; }
@media (prefers-reduced-motion: reduce) { .paxw[open] { animation: none; } }
.paxpic { --h: clamp(300px, 56vh, 540px); position: relative; height: var(--h); overflow: hidden; border-bottom: 2px solid var(--ink); outline: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2'%3E%3Crect width='1' height='1' fill='%23c0cbdc'/%3E%3Crect x='1' y='1' width='1' height='1' fill='%23c0cbdc'/%3E%3C/svg%3E") 0 0 / 4px 4px;
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.paxpic:active { cursor: grabbing; }
.paxpic:focus-visible { box-shadow: inset 0 0 0 3px var(--accent); }
.paxpic canvas { position: absolute; left: 0; top: 0; display: block; }
.paxpic .wait { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; max-width: none;
  font-weight: 700; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--soft); }
.paxpic .wait[hidden] { display: none; }
.paxw .x { position: absolute; right: 10px; top: 10px; z-index: 3; width: 40px; height: 40px; background: var(--paper); border: 2px solid var(--ink);
  font-size: 24px; line-height: 1; display: grid; place-items: center; }
.paxw .cycle { position: absolute; top: calc(clamp(300px, 56vh, 540px) / 2 - 22px); z-index: 3; width: 44px; height: 44px; padding: 0;
  display: flex; align-items: center; justify-content: center; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); }
.paxw .cycle svg { display: block; width: 16px; height: 16px; fill: currentColor; shape-rendering: crispEdges; }
.paxw .cycle.prev { left: 10px; }
.paxw .cycle.next { right: 10px; }
.paxw .cycle[hidden] { display: none; }
@media (hover: hover) { .paxw .cycle:hover, .paxw .x:hover { background: var(--ink); color: var(--paper); } }
.paxinfo { padding: 16px 18px 20px; }
.paxinfo .no { font-size: 32px; letter-spacing: 1px; line-height: 1.1; margin: 4px 0 0; }
.paxinfo .name { margin: 4px 0 0; max-width: none; font-weight: 500; font-size: 16px; letter-spacing: 1px; overflow-wrap: anywhere; }
.paxinfo .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; max-width: none; }
.paxinfo .tags:not(:has(.tag:not([hidden]))) { display: none; }
.paxinfo .tag[hidden] { display: none; }
.paxinfo .tag.paper { box-shadow: inset 0 0 0 2px var(--ink); }

/* ------------------------------------------------------------- the pin */
.pin { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; justify-content: center;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 2px solid var(--ink);
  transform: translateY(110%); transition: transform 0.22s ease-out; }
.pin.on { transform: none; }
.pin .btn.buy { min-height: 50px; }
@media (prefers-reduced-motion: reduce) { .pin { transition: none; } }

/* the cookie note (site.css) at the top on this page, slimmer: at the foot
   it sat over the buy button on a first visit */
body[data-page="landing"] .cookie { top: 62px; bottom: auto; box-shadow: none; padding: 8px 10px; gap: 8px 12px; }
body[data-page="landing"] .cookie p { font-size: 11px; }
body[data-page="landing"] .cookie .btn { min-height: 34px; padding: 8px 12px; }

/* ------------------------------------------------------------- critique round, 2026-11-15 */
/* the ship band says it is coming before the engine is there */
.shipbox .wait { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; max-width: none;
  font-weight: 700; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--paper); }
.shipbox.on .wait { display: none; }
/* on a wide window the pin is a button in the corner, not a bar */
@media (min-width: 900px) {
  .pin { left: auto; right: 24px; bottom: 24px; padding: 0; background: none; border: 0; transform: translateY(calc(100% + 40px)); }
  .pin.on { transform: none; }
  .pin .btn.buy { width: auto; padding: 14px 22px; }
}
