/* ShipPost. Playful-mechanical on the DESIGN.md light palette.
   The engine is themed by tokens only; everything below is page-local. */

:root {
  --sc-canvas:     #F6F4EF;
  --sc-surface:    #FFFFFF;
  --sc-ink:        #14171F;
  --sc-ink-soft:   #3D4454;
  --sc-accent:     #1957E5;
  --sc-accent-ink: #FFFFFF;
  --sc-font-display: "Archivo", "Avenir Next", system-ui, sans-serif;
  --sc-font-text:    "Archivo", "Avenir Next", system-ui, sans-serif;
  --sc-font-mono:    "IBM Plex Mono", ui-monospace, monospace;
  --sc-shadow-color: 220 30% 18%;
  --sc-e1: 0 1px 2px hsl(var(--sc-shadow-color) / 0.08), 0 2px 6px -1px hsl(var(--sc-shadow-color) / 0.08);
  --sc-e2: 0 2px 4px hsl(var(--sc-shadow-color) / 0.06), 0 10px 24px -6px hsl(var(--sc-shadow-color) / 0.14);
  --sc-e3: 0 4px 10px hsl(var(--sc-shadow-color) / 0.06), 0 24px 48px -12px hsl(var(--sc-shadow-color) / 0.18), 0 60px 110px -30px hsl(var(--sc-shadow-color) / 0.16);

  --canvas-subtle: #FBFAF7;
  --surface-muted: #F2F5F9;
  --muted:         #697386;
  --border:        #D9DEE8;
  --border-strong: #BAC3D3;
  --primary-strong:#1245B7;
  --primary-soft:  #E8EEFF;
  --success:       #0E7C55;
  --success-soft:  #E7F6EF;
  --r: 12px;
  --r-sm: 8px;
}

body { background: var(--sc-canvas); color: var(--sc-ink); }
.sc-grain { opacity: 0.035; }

/* ------------------------------------------------------------ chrome --- */
.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 90;
  background: var(--sc-ink); color: var(--sc-canvas); padding: 0.6rem 0.9rem; border-radius: var(--r-sm);
}
.skip:focus-visible { top: 1rem; }

.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: clamp(0.75rem, 1.6vw, 1.25rem) var(--sc-gutter);
  pointer-events: none;
}
.bar > * { pointer-events: auto; position: relative; }
.bar::before { /* a ground for the chrome only, not the frame */
  content: ""; position: absolute; inset: 0 0 -1.5rem 0; pointer-events: none;
  background: linear-gradient(to bottom, var(--sc-canvas) 55%, color-mix(in oklab, var(--sc-canvas) 0%, transparent));
}
.mark { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--sc-ink); text-decoration: none; justify-self: start; }
.mark__glyph {
  width: 1.6rem; height: 1.6rem; border-radius: 6px; background: var(--sc-accent);
  position: relative; box-shadow: var(--sc-e1);
}
.mark__glyph::before {
  content: ""; position: absolute; inset: 22% 18%; border-radius: 3px; background: var(--sc-canvas);
}
.mark__glyph::after {
  content: ""; position: absolute; left: 18%; right: 18%; top: calc(50% - 1px); height: 2px; background: var(--sc-accent);
}
.mark__word {
  font-family: var(--sc-font-display); font-weight: 800; font-size: 1.2rem;
  font-variation-settings: "wdth" 112; letter-spacing: -0.02em;
}

.clock {
  justify-self: center;
  display: inline-flex; gap: 0.5rem; align-items: center;
  font-family: var(--sc-font-mono); font-weight: 600; font-variant-numeric: tabular-nums;
  font-size: clamp(0.95rem, 0.8rem + 0.5vw, 1.25rem);
  color: var(--sc-ink);
}
.clock__day, .clock__time { display: inline-flex; gap: 2px; }
.ch {
  display: inline-grid; place-items: center;
  min-width: 1.15em; height: 1.6em; padding: 0 0.12em;
  background: var(--sc-ink); color: var(--sc-canvas);
  border-radius: 4px; position: relative; overflow: hidden;
  box-shadow: 0 1px 0 hsl(var(--sc-shadow-color) / 0.25), 0 3px 8px -3px hsl(var(--sc-shadow-color) / 0.35);
}
.ch::after { /* the hinge */
  content: ""; position: absolute; left: 0; right: 0; top: calc(50% - 0.5px); height: 1px;
  background: color-mix(in oklab, var(--sc-canvas) 22%, transparent);
}
.ch--sep { background: none; color: var(--sc-ink); min-width: 0.4em; box-shadow: none; }
.ch--sep::after { display: none; }
.ch.flip { animation: chflip 160ms var(--sc-ease-out); }
@keyframes chflip {
  from { transform: perspective(200px) rotateX(-70deg); opacity: 0.4; }
  to   { transform: none; opacity: 1; }
}

.cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 1.15rem; border-radius: var(--r-sm);
  background: var(--sc-accent); color: var(--sc-accent-ink);
  font-family: var(--sc-font-text); font-weight: 700; font-size: 0.98rem; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
  box-shadow: var(--sc-e1), inset 0 1px 0 rgb(255 255 255 / 0.18);
  transition: transform 140ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out);
}
.cta:active { transform: translateY(1px) scale(0.98); }
@media (hover: hover) and (pointer: fine) { .cta:hover { background: var(--primary-strong); } }
.cta:focus-visible, .dep__row:focus-visible, .mark:focus-visible, .cta-obj:focus-visible {
  outline: 2px solid var(--sc-accent); outline-offset: 3px;
}
.cta--bar { justify-self: end; }

/* The departure board: the page's map. */
.dep {
  position: fixed; z-index: 60; left: var(--sc-gutter); right: var(--sc-gutter); bottom: clamp(0.75rem, 2vh, 1.25rem);
}
.dep__list {
  list-style: none; margin: 0 auto; padding: 4px; width: max-content; max-width: 100%;
  display: flex; gap: 4px;
  background: var(--sc-ink); border-radius: 10px;
  box-shadow: var(--sc-e2);
}
.dep__row {
  display: grid; gap: 1px; text-align: left;
  padding: 0.4rem 0.75rem; min-height: 44px; border: 0; border-radius: 7px; cursor: pointer;
  background: transparent; color: color-mix(in oklab, var(--sc-canvas) 62%, var(--sc-ink));
  font: inherit;
  transition: background-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out);
}
.dep__time { font-family: var(--sc-font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.dep__name { font-size: 0.86rem; font-weight: 650; }
.dep__row[aria-current="true"] { background: var(--sc-accent); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .dep__row:not([aria-current="true"]):hover { background: color-mix(in oklab, var(--sc-canvas) 12%, var(--sc-ink)); color: var(--sc-canvas); }
}
.dep__row:active { transform: translateY(1px); }

/* ------------------------------------------------------------- world --- */
.far, .plane { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.far { inset: 0; z-index: 140; pointer-events: none; }
.far__inner {
  position: absolute; left: 0; top: 0; transform-origin: 0 0;
  display: flex; gap: 6vw; white-space: nowrap;
  font-family: var(--sc-font-display); font-weight: 900; font-variation-settings: "wdth" 125;
  font-size: 34vh; line-height: 1; letter-spacing: -0.04em;
  color: color-mix(in oklab, var(--sc-ink) 4.5%, var(--sc-canvas));
  padding-top: 30vh; padding-left: 4vw;
}
.plane { width: 3300px; height: 2300px; z-index: 200; }

.obj { position: absolute; }
.kicker {
  margin: 0; font-family: var(--sc-font-mono); font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}

/* batch form */
.inputs {
  left: 200px; top: 500px; width: 600px; padding: 36px;
  background: var(--sc-surface); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--sc-e2);
}
.inputs__title { margin: 8px 0 0; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.inputs__help { margin: 6px 0 22px; color: var(--muted); font-size: 16px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field__label { font-size: 15px; font-weight: 700; color: var(--sc-ink-soft); }
.field__input {
  display: block; min-height: 50px; padding: 13px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--canvas-subtle);
  font-size: 16px; color: var(--sc-ink); white-space: pre-wrap; overflow-wrap: anywhere;
}
.field__input--area { min-height: 112px; }
.field__input.is-typing { border-color: var(--sc-accent); box-shadow: 0 0 0 3px var(--primary-soft); }
.btn-gen {
  display: flex; align-items: center; justify-content: center; height: 54px; margin-top: 8px;
  border-radius: 10px; background: var(--sc-accent); color: #fff; font-weight: 700; font-size: 17px;
  transition: transform 120ms var(--sc-ease-out), background-color 160ms;
}
.btn-gen.is-pressed { transform: scale(0.97); background: var(--primary-strong); }

/* the week board */
.board {
  left: 1000px; top: 440px; width: 1300px; height: 840px; padding: 28px 28px 30px;
  background: var(--canvas-subtle); border: 1px solid var(--border); border-radius: 22px;
  box-shadow: var(--sc-e3);
  display: grid; grid-template-rows: auto 1fr; gap: 18px;
  transition: filter 400ms var(--sc-ease-out);
}
.board.is-dim .tile:not(.is-focus) { filter: grayscale(1) opacity(0.45); }
.board__head { display: flex; align-items: end; justify-content: space-between; }
.board__title { margin: 6px 0 0; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.badge {
  font-family: var(--sc-font-mono); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums;
  padding: 7px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-strong);
}
.grid {
  display: grid; gap: 10px;
  grid-template-columns: 116px repeat(7, minmax(0, 1fr));
  grid-template-rows: 30px repeat(4, minmax(0, 1fr));
}
.grid__day {
  font-family: var(--sc-font-mono); font-size: 14px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--sc-ink-soft); align-self: end; padding-left: 4px;
}
.grid__slot { align-self: center; display: grid; gap: 2px; }
.grid__slot b { font-family: var(--sc-font-mono); font-size: 16px; font-weight: 600; }
.grid__slot small { font-size: 13px; color: var(--muted); }

.cell { position: relative; border-radius: 10px; background: var(--surface-muted); border: 1px dashed var(--border); }
.tile {
  position: absolute; inset: 0; border-radius: 10px; padding: 11px 12px;
  background: var(--sc-surface); border: 1px solid var(--border);
  box-shadow: var(--sc-e1);
  display: flex; flex-direction: column; gap: 6px; overflow: hidden;
  transform-origin: 50% 50%; will-change: transform, opacity;
}
.tile::after { /* split-flap hinge */
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: color-mix(in oklab, var(--sc-ink) 7%, transparent);
}
.tile__meta { display: flex; align-items: center; gap: 6px; font-family: var(--sc-font-mono); font-size: 11.5px; font-weight: 600; color: var(--muted); }
.tile__hook { margin: 0; font-size: 15px; font-weight: 650; line-height: 1.28; letter-spacing: -0.01em; color: var(--sc-ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sc-accent); flex: none; }
.tile[data-state="sent"] .dot { background: var(--success); }
.tile[data-state="sent"] { border-color: color-mix(in oklab, var(--success) 35%, var(--border)); }
.tile__status::before { content: "Ready"; }
.tile[data-state="sent"] .tile__status::before { content: "Sent"; }
.tile.is-blank .tile__meta, .tile.is-blank .tile__hook { opacity: 0; }
.tile.is-blank { background: var(--surface-muted); box-shadow: none; border-style: dashed; }
.tile.flip { animation: flap 380ms var(--sc-ease-out); }
.tile.is-focus { border-color: var(--sc-accent); box-shadow: 0 0 0 3px var(--primary-soft), var(--sc-e2); }
@keyframes flap {
  0%   { transform: perspective(700px) rotateX(-88deg); opacity: 0.2; }
  100% { transform: perspective(700px) rotateX(0deg); opacity: 1; }
}

/* the source and the post */
.paper, .panel {
  top: 1560px; width: 600px; min-height: 600px; padding: 38px;
  background: var(--sc-surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--sc-e2);
}
.paper { left: 960px; background: #FFFEFB; }
.panel { left: 1720px; }
.paper__title { margin: 10px 0 4px; font-size: 32px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.paper__meta { margin: 0 0 22px; font-size: 15px; color: var(--muted); }
.paper__body { margin: 0; font-size: 19px; line-height: 1.7; color: var(--sc-ink-soft); }
.paper mark {
  color: inherit; padding: 1px 2px; border-radius: 3px;
  background: linear-gradient(var(--primary-soft), var(--primary-soft)) no-repeat 0 0 / var(--hl, 0%) 100%;
}
.paper mark.is-on { color: var(--sc-ink); }
.panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.status {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px;
  font-size: 14px; background: var(--primary-soft); color: var(--primary-strong);
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.is-sent { background: var(--success-soft); color: var(--success); }
.panel__body p { margin: 0 0 16px; font-size: 19px; line-height: 1.6; color: var(--sc-ink-soft); }
.panel__body p:first-child { font-size: 26px; line-height: 1.25; font-weight: 800; letter-spacing: -0.025em; color: var(--sc-ink); }
.panel__body p.is-traced { color: var(--sc-ink); }

.traces { position: absolute; left: 0; top: 0; width: 3300px; height: 2300px; overflow: visible; pointer-events: none; }
.traces path { fill: none; stroke: var(--sc-accent); stroke-width: 2.5; stroke-linecap: round; }
.traces circle { fill: var(--sc-accent); }

/* the phone */
.phone {
  left: 2480px; top: 360px; width: 420px; height: 880px; padding: 14px;
  background: var(--sc-ink); border-radius: 58px;
  box-shadow: var(--sc-e3), inset 0 0 0 2px #2A2F3B;
}
.phone__screen {
  position: relative; height: 100%; border-radius: 46px; overflow: hidden;
  background: #EEF1F5;
}
.phone__status {
  display: flex; justify-content: space-between; align-items: center;
  height: 50px; padding: 14px 30px 0; font-family: var(--sc-font-mono); font-weight: 600; font-size: 15px;
}
.phone__icons { width: 46px; height: 12px; border-radius: 3px; background: linear-gradient(90deg, var(--sc-ink) 0 70%, transparent 70% 76%, var(--sc-ink) 76%); opacity: 0.8; }

.chat { position: absolute; inset: 50px 0 0; display: flex; flex-direction: column; }
.chat__head {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px;
  background: rgb(255 255 255 / 0.92); border-bottom: 1px solid var(--border);
}
.chat__who { display: grid; }
.chat__who b { font-size: 17px; }
.chat__who small, .notif small { font-size: 13px; color: var(--muted); }
.chat__avatar {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--sc-accent); color: #fff; font-weight: 800; font-size: 15px; flex: none;
}
.chat__avatar--sm { width: 34px; height: 34px; font-size: 13px; }
.chat__log { flex: 1; display: flex; flex-direction: column; justify-content: end; gap: 10px; padding: 16px 16px 26px; }
.bubble {
  margin: 0; max-width: 88%; padding: 12px 14px 22px; position: relative;
  background: #fff; border-radius: 16px 16px 16px 6px; box-shadow: var(--sc-e1);
  font-size: 16px; line-height: 1.45; color: var(--sc-ink);
}
.bubble p { margin: 0 0 8px; }
.bubble p:first-child { font-weight: 700; }
.bubble time { position: absolute; right: 12px; bottom: 6px; font-family: var(--sc-font-mono); font-size: 11px; color: var(--muted); }
.bubble--old { opacity: 0.7; font-size: 15px; }
.bubble--new { transform-origin: 0 100%; }
.bubble--new.is-held { transform: scale(0.97); box-shadow: 0 0 0 3px var(--primary-soft), var(--sc-e2); }
.day-sep { margin: 4px auto; font-size: 12px; font-weight: 700; color: var(--muted); background: rgb(255 255 255 / 0.7); padding: 3px 10px; border-radius: 999px; }
.chat__dim { position: absolute; inset: 0; z-index: 3; background: rgb(20 23 31 / 0.3); opacity: 0; pointer-events: none; }
.bubble--new { z-index: 4; }
.menu {
  position: absolute; left: 30px; top: 0; width: 200px; z-index: 4;
  display: grid; background: #fff; border-radius: 14px; box-shadow: var(--sc-e3); overflow: hidden;
  opacity: 0; transform: scale(0.95); transform-origin: 0 100%;
}
.menu span { padding: 13px 18px; font-size: 16px; border-bottom: 1px solid var(--surface-muted); }
.menu__copy.is-hit { background: var(--primary-soft); color: var(--primary-strong); font-weight: 700; }
.toast {
  position: absolute; left: 50%; bottom: 40px; margin: 0; translate: -50% 0;
  padding: 10px 16px; border-radius: 999px; background: var(--sc-ink); color: #fff; font-size: 14px; font-weight: 600;
  opacity: 0;
}
.notif {
  position: absolute; left: 12px; right: 12px; top: 56px; z-index: 5;
  display: flex; gap: 12px; align-items: center; padding: 14px;
  background: rgb(255 255 255 / 0.97); border-radius: 22px; box-shadow: var(--sc-e3);
  opacity: 0; transform: translateY(-120%);
}
.notif__text { display: grid; flex: 1; min-width: 0; }
.notif__text b { font-size: 15px; }
.notif small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif time { align-self: start; font-size: 12px; color: var(--muted); }

.composer {
  position: absolute; inset: 50px 0 0; background: #fff; padding: 0 20px;
  opacity: 0; transform: translateY(100%);
}
.composer__head { display: flex; align-items: center; justify-content: space-between; height: 62px; border-bottom: 1px solid var(--surface-muted); }
.composer__head b { font-size: 17px; }
.composer__x { width: 18px; height: 18px; background: linear-gradient(45deg, transparent 45%, var(--sc-ink) 45% 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, var(--sc-ink) 45% 55%, transparent 55%); }
.composer__post {
  min-width: 72px; height: 38px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--sc-accent); color: #fff; font: 700 16px var(--sc-font-text);
  transition: transform 120ms var(--sc-ease-out), background-color 160ms;
}
.composer__post.is-pressed, .composer__post:active { transform: scale(0.94); background: var(--primary-strong); }
.composer__post:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; }
.composer__who { display: flex; gap: 12px; align-items: center; padding: 18px 0 12px; }
.composer__who span:last-child { display: grid; }
.composer__who b { font-size: 16px; }
.composer__who small { font-size: 13px; color: var(--muted); }
.composer__me { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #C9D3E6, #9AA8C2); }
.composer__text { font-size: 17px; line-height: 1.5; color: var(--sc-ink); clip-path: inset(0 0 100% 0); }
.composer__text p { margin: 0 0 10px; }
.composer__done {
  position: absolute; left: 20px; right: 20px; bottom: 34px; margin: 0;
  display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-radius: 14px;
  background: var(--success-soft); color: var(--success); font-weight: 750; font-size: 18px;
  opacity: 0; transform: translateY(12px);
}
.composer__done i { width: 22px; height: 22px; border-radius: 50%; background: var(--success); position: relative; flex: none; }
.composer__done i::after { content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; rotate: 45deg; }

.touch {
  position: absolute; z-index: 9; left: 0; top: 0; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: color-mix(in oklab, var(--sc-ink) 18%, transparent);
  border: 2px solid color-mix(in oklab, var(--sc-ink) 45%, transparent);
  opacity: 0; pointer-events: none;
}

/* the close: CTA as an object on the board */
.cta-obj {
  position: absolute; z-index: 5; display: grid; align-content: center; gap: 8px; padding: 14px 16px;
  border-radius: 12px; background: var(--sc-accent); color: #fff; text-decoration: none;
  box-shadow: var(--sc-e3);
  opacity: 0; visibility: hidden; transform: scale(0.95);
  transition: transform 160ms var(--sc-ease-out), background-color 160ms;
}
.cta-obj__slot { font-family: var(--sc-font-mono); font-size: 15px; font-weight: 600; opacity: 0.9; letter-spacing: 0.03em; }
.cta-obj__label { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
@media (hover: hover) and (pointer: fine) { .cta-obj:hover { background: var(--primary-strong); } }
.cta-obj:active { transform: scale(0.97) !important; }

/* ----------------------------------------------------------- the copy --- */
.copy { position: absolute; z-index: 2; max-width: 34rem; }
.copy--hero, .copy--close { left: var(--sc-gutter); top: 50%; translate: 0 -54%; max-width: min(40rem, 42vw); }
.copy--rewind { right: var(--sc-gutter); bottom: clamp(6.5rem, 16vh, 10rem); max-width: 26rem; }
.copy--runs { left: var(--sc-gutter); bottom: clamp(5.75rem, 11vh, 8rem); max-width: 40rem; }
.copy--grounded { right: var(--sc-gutter); top: 50%; translate: 0 -50%; max-width: min(28rem, 30vw); }
.copy--peak { left: var(--sc-gutter); top: 50%; translate: 0 -50%; max-width: min(24rem, 27vw); }

.h1, .h2, .h3 {
  margin: 0; font-family: var(--sc-font-display); font-weight: 820; color: var(--sc-ink);
  font-variation-settings: "wdth" 108; letter-spacing: var(--sc-track-tight); text-wrap: balance;
}
.h1 { font-size: clamp(2.4rem, 0.8rem + 3vw, 4.2rem); line-height: 0.98; font-variation-settings: "wdth" 100; }
.h2 { font-size: clamp(2rem, 1rem + 2.1vw, 3.2rem); line-height: 1.02; }
.h3 { font-size: clamp(1.6rem, 1rem + 1.3vw, 2.3rem); line-height: 1.06; }
.lede, .body { color: var(--sc-ink-soft); text-wrap: pretty; max-width: 36ch; }
.lede { margin: var(--sc-5) 0 var(--sc-6); font-size: clamp(1.08rem, 0.95rem + 0.4vw, 1.3rem); line-height: 1.5; }
.body { margin: var(--sc-4) 0 0; font-size: clamp(1rem, 0.94rem + 0.25vw, 1.15rem); line-height: 1.6; }
.copy--runs .body { max-width: 52ch; }
.fine { margin: 0; font-size: 0.85rem; color: var(--muted); }
.copy--close .lede { margin-bottom: var(--sc-4); }

.scrim-m { display: none; }

/* ---------------------------------------------------------- near plane --- */
.fore { position: fixed; inset: 0; z-index: 25; pointer-events: none; overflow: clip; }
.fore__inner { position: absolute; inset: 0; will-change: transform; }
.ftile {
  position: absolute; width: clamp(220px, 19vw, 300px); padding: 16px 18px 18px;
  display: grid; gap: 8px;
  background: var(--sc-surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 6px 14px hsl(var(--sc-shadow-color) / 0.08), 0 40px 70px -18px hsl(var(--sc-shadow-color) / 0.30);
  will-change: transform, opacity;
}
.ftile::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: color-mix(in oklab, var(--sc-ink) 7%, transparent); }
.ftile__slot { font-family: var(--sc-font-mono); font-size: 12px; font-weight: 600; color: var(--muted); }
.ftile b { font-size: clamp(1.05rem, 0.8rem + 0.5vw, 1.3rem); line-height: 1.2; letter-spacing: -0.015em; }
.ftile--a { right: -3vw; top: 13vh; rotate: 5deg; }
.ftile--b { right: 33vw; bottom: 9vh; rotate: -4deg; }
.ftile--c { right: 7vw; bottom: -4vh; rotate: 3deg; }

/* --------------------------------------------------------------- phone --- */
@media (max-width: 760px) {
  .bar { grid-template-columns: auto 1fr auto; gap: 0.5rem; }
  .clock { justify-self: center; font-size: 0.82rem; gap: 0.3rem; }
  .mark__word { display: none; }
  .cta--bar { min-height: 40px; padding: 0 0.8rem; font-size: 0.85rem; }

  .dep { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; }
  .dep__list { width: 100%; justify-content: space-between; }
  .dep__row { flex: 1; padding: 0.35rem 0.25rem; justify-items: center; text-align: center; }
  .dep__name { display: none; }
  .dep__time { font-size: 0.64rem; letter-spacing: 0; }

  .scrim-m {
    display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 52svh; z-index: 1;
    background: linear-gradient(to top, var(--sc-canvas) 0 74%, color-mix(in oklab, var(--sc-canvas) 0%, transparent));
    opacity: var(--scrim-m, 1);
  }
  .copy, .copy--hero, .copy--close, .copy--rewind, .copy--runs, .copy--grounded, .copy--peak {
    left: 1.25rem; right: 1.25rem; top: auto; bottom: calc(5.5rem + env(safe-area-inset-bottom)); translate: none; max-width: none;
  }
  .h1 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 2.6rem); }
  .h2 { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.2rem); }
  .h3 { font-size: 1.55rem; }
  .lede { margin: var(--sc-3) 0 var(--sc-4); font-size: 1.02rem; }
  .body { margin-top: var(--sc-3); font-size: 0.98rem; }
  .copy--hero .lede { max-width: none; }

  .ftile { width: 168px; padding: 10px 12px 12px; gap: 5px; border-radius: 11px; }
  .ftile__slot { font-size: 10px; }
  .ftile b { font-size: 0.92rem; }
  .ftile--a { right: -22px; top: 9svh; }
  .ftile--b { right: auto; left: -12px; top: 33svh; bottom: auto; }
  .ftile--c { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tile.flip, .ch.flip { animation: none; }
  .tile, .cta-obj { transition: none; }
}
