/* Talk&Fly — the page as a flight progress strip board */

@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/barlow-500.woff2") format("woff2"); }

:root {
  /* palette: green-black board, bone strips, pale jade for booking */
  --bg: #161c1a;
  --surface: #1f2725;
  --surface-hover: #26302d;
  --holder: #34403c;
  --holder-2: #2a3532;
  --holder-3: #46534e;
  --paper: #e3e2da;
  --paper-2: #d0d2c8;
  --paper-3: #f1f0ea;
  --paper-hover: #c2c5ba;
  --strip-ink: #161c1a;
  --strip-muted: #4a524e;
  --strip-muted-inv: #c6c9c0;
  --ink: #e3e2da;
  --muted: #a3a9a1;
  --accent: #9fc7b8;
  --accent-hover: #b6d6ca;
  --accent-ink: #161c1a;
  --link-hover-paper: #2f5a4b;
  --focus: var(--accent);

  /* type: Barlow Condensed for what is printed on a strip, Barlow for reading */
  --f-strip: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-text: "Barlow", system-ui, sans-serif;
  --s-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --s-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --s-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --s-mid: clamp(1.875rem, 1.2rem + 2vw, 2.875rem);
  --s-head: clamp(2.625rem, 1rem + 4.4vw, 5rem);

  /* frame */
  --m: clamp(16px, 2.2vw, 32px);
  --m-left: max(var(--m), env(safe-area-inset-left));
  --m-right: max(var(--m), env(safe-area-inset-right));
  --gap: clamp(16px, 2vw, 28px);
  --section: clamp(96px, 11vw, 176px);
  --band: 56px;
  --notch: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 64%, 9px 58%, 9px 42%, 0 36%);

  /* motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --t-press: 140ms;
  --t-hover: 160ms;
  --t-ui: 200ms;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scrollbar-color: var(--holder-3) var(--bg);
  color-scheme: dark;
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--s-body);
  line-height: 1.5;
  letter-spacing: 0.002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}
img, video { display: block; max-width: 100%; height: auto; }
img { background-color: var(--holder-2); color: var(--muted); font-size: var(--s-small); }
a { color: inherit; }
a, button, summary, label, input { touch-action: manipulation; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--f-strip); font-weight: 700; line-height: 0.95; letter-spacing: -0.012em; text-wrap: balance; overflow-wrap: break-word; }
p, li, dd { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
/* on paper the jade ring disappears, so focus takes the strip ink there */
.cell, .facts, .sheet--a, .sheet--c, .slip, .eg, .scale, .qa details[open], .card, .foot__panel { --focus: var(--strip-ink); }

.skip { position: absolute; left: -9999px; top: 0; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 12px 18px; font-weight: 500; }
.skip:focus { left: var(--m-left); top: 12px; }

.wrap { padding-left: var(--m-left); padding-right: var(--m-right); }
.h1 { font-size: var(--s-head); letter-spacing: -0.02em; }
.h2 { font-size: var(--s-head); letter-spacing: -0.02em; }
.h3 { font-size: var(--s-mid); line-height: 1; }
.lead { font-size: var(--s-lead); line-height: 1.35; max-width: 34ch; }

/* buttons: square, one fill */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--f-strip); font-weight: 700; font-size: var(--s-lead); letter-spacing: 0.005em; line-height: 1;
  text-decoration: none; text-align: center; border: 0; cursor: pointer;
  -webkit-user-select: none; user-select: none;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--lg { min-height: 56px; padding: 0 28px; }
.textlink {
  font-weight: 500; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
  text-decoration-color: color-mix(in oklab, currentColor 45%, transparent);
  transition: text-decoration-color var(--t-hover) ease;
}
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.acts .textlink { padding-block: 10px; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--accent-hover); }
  .textlink:hover { text-decoration-color: currentColor; }
}

/* ---------- main sheet over the footer ---------- */
main { position: relative; z-index: 1; background: var(--bg); }

/* ---------- top bar ---------- */
.bar {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: max(20px, env(safe-area-inset-top)) var(--m-right) 20px var(--m-left);
}
.wordmark { font-family: var(--f-strip); font-weight: 700; font-size: var(--s-mid); line-height: 1; text-decoration: none; letter-spacing: -0.015em; padding-block: 6px; }
.bar__links { display: flex; gap: 28px; }
.bar__links a { text-decoration: none; font-weight: 500; padding: 10px 0; transition: color var(--t-hover) ease; }
.bar__act { display: flex; align-items: center; gap: 24px; }
@media (hover: hover) and (pointer: fine) {
  .bar__links a:hover { color: var(--accent); }
}

/* ---------- strips ---------- */
.strip {
  position: relative;
  display: grid; gap: 6px;
  padding: 8px 8px 8px 26px;
  background: var(--holder);
  clip-path: var(--notch);
}
.cell {
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
  padding: 18px 22px 20px;
  background: var(--paper); color: var(--strip-ink);
}
.field { font-size: var(--s-small); color: var(--strip-muted); font-weight: 500; line-height: 1.25; letter-spacing: 0.01em; }
.sub { font-size: var(--s-small); color: var(--strip-muted); line-height: 1.4; letter-spacing: 0.01em; }
.big, .cs { font-family: var(--f-strip); font-weight: 700; font-size: var(--s-mid); line-height: 0.95; letter-spacing: -0.01em; }
.cs { font-size: var(--s-head); letter-spacing: -0.02em; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; padding: clamp(104px, 12vh, 140px) var(--m-right) 0 var(--m-left); overflow: clip; }
.hero__window { position: absolute; inset: 0; background: #222a27; }
.hero__video { width: 100%; height: 100%; object-fit: cover; background: transparent; }
.hero__window::after { content: ""; position: absolute; inset: 0; background: rgba(22, 28, 26, 0.66); }
.rack { position: relative; display: grid; gap: 14px; }

.strip--you { background: var(--accent); grid-template-columns: minmax(170px, 14%) minmax(0, 1fr) minmax(240px, 21%); grid-template-rows: auto auto; }
.strip--you .cell--cs { grid-row: 1 / 3; justify-content: space-between; }
.strip--you .cell--route { grid-row: 1 / 3; padding: 28px 32px 32px; gap: 28px; justify-content: space-between; }
.strip--you .cell--lvl { background: var(--paper-2); }
.strip--you .cell--times { display: grid; gap: 14px; }
.cell--times > div { display: flex; flex-direction: column; gap: 2px; }
.val { font-family: var(--f-strip); font-weight: 700; font-size: var(--s-lead); line-height: 1.1; }
.h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.h1 [data-line] { display: block; }
.cell--route .lead { color: var(--strip-ink); }
.cell--route .textlink { color: var(--strip-ink); }

.strip--check { grid-template-columns: minmax(260px, 30%) minmax(0, 1fr) minmax(240px, 25%); }
.cell--q { gap: 16px; }
.cell--q .note { font-size: var(--s-small); color: var(--strip-muted); max-width: 56ch; line-height: 1.45; letter-spacing: 0.01em; }
.cell--in { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 18px 24px; background: var(--paper-3); }
.seg { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.seg legend { padding: 0; margin-bottom: 8px; }
.seg label { position: relative; cursor: pointer; -webkit-user-select: none; user-select: none; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 0 16px;
  background: var(--paper-2); color: var(--strip-ink);
  font-family: var(--f-strip); font-weight: 700; font-size: var(--s-lead);
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.seg label:active span { transform: scale(0.97); }
.seg input:checked + span { background: var(--strip-ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 3px solid var(--strip-ink); outline-offset: 2px; }
.datefield { display: flex; flex-direction: column; gap: 8px; }
.datefield input {
  font: 500 max(16px, var(--s-body)) / 1 var(--f-text); color: var(--strip-ink); color-scheme: light;
  min-height: 48px; padding: 0 12px; background: #fff; border: 2px solid var(--strip-ink); border-radius: 0;
  caret-color: var(--strip-ink); accent-color: var(--strip-ink);
}
.datefield input[aria-invalid="true"] { border-color: #8a2f22; }
.cell--out { background: var(--paper-2); transition: background-color var(--t-ui) ease, color var(--t-ui) ease; }
.cell--out.is-expired { background: var(--strip-ink); color: var(--paper); --focus: var(--accent); }
.cell--out.is-expired .sub { color: var(--strip-muted-inv); }
.cell--out.is-expired .textlink { color: var(--accent); }
.cell--out .textlink { color: inherit; margin-top: auto; padding-block: 8px; align-self: flex-start; }
@media (hover: hover) and (pointer: fine) {
  .seg label:hover input:not(:checked) + span { background: var(--paper-hover); }
}

/* ---------- intro ---------- */
.intro { padding: var(--section) 0 calc(var(--section) * 0.8); }
.intro__top { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; }
.intro__top .h2 { grid-column: 1 / 8; font-weight: 600; }
.intro__note { grid-column: 9 / 13; font-size: var(--s-lead); line-height: 1.35; }
.facts {
  margin: clamp(56px, 7vw, 112px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  padding: 8px 8px 8px 26px; background: var(--holder); clip-path: var(--notch);
}
.facts > div { background: var(--paper); color: var(--strip-ink); padding: 20px 22px 22px; min-width: 0; }
.facts dt { font-family: var(--f-strip); font-weight: 700; font-size: var(--s-mid); line-height: 1; letter-spacing: -0.01em; }
.facts dd { margin: 8px 0 0; font-size: var(--s-small); color: var(--strip-muted); letter-spacing: 0.01em; line-height: 1.4; }
.intro__low { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-top: clamp(56px, 7vw, 112px); align-items: start; }
.intro__text { grid-column: 1 / 6; display: grid; gap: 22px; max-width: 60ch; }
.situations { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.situations li {
  font-family: var(--f-strip); font-weight: 600; font-size: var(--s-lead); line-height: 1.25;
  background: var(--surface); padding: 12px 16px 12px 22px; position: relative;
}
.situations li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--holder); }
.intro__pic { grid-column: 7 / 13; margin: 0; }
.intro__pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
figcaption { font-size: var(--s-small); color: var(--muted); margin-top: 10px; letter-spacing: 0.01em; }

/* ---------- who: strips stacking in the bay ---------- */
.who { padding: 0 0 var(--section); }
.who__title { margin-bottom: 40px; }
.bay { padding-left: var(--m-left); padding-right: var(--m-right); }
.sheet {
  --i: 0;
  position: sticky; top: calc(24px + var(--i) * var(--band));
  height: clamp(380px, calc(100svh - 48px - 4 * var(--band)), 430px);
  margin-bottom: calc((4 - var(--i)) * var(--band));
  display: grid; grid-template-rows: var(--band) minmax(0, 1fr);
  padding-left: 26px;
  background: var(--paper); color: var(--strip-ink);
  clip-path: var(--notch);
}
.sheet:last-child { margin-bottom: 0; }
.sheet::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 26px; background: var(--holder); }
.sheet--b { background: var(--holder-2); color: var(--ink); }
.sheet--b::before { background: var(--holder-3); }
.sheet--c { background: var(--paper-2); }
.sheet:nth-child(2) { --i: 1; }
.sheet:nth-child(3) { --i: 2; }
.sheet:nth-child(4) { --i: 3; }
.sheet:nth-child(5) { --i: 4; }
.sheet__band { display: flex; align-items: center; padding: 0 24px; min-width: 0; }
.sheet__band .h3 { font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet__body { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding: 0 0 0 24px; min-height: 0; }
.sheet__text { grid-column: 1 / 6; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 8px 0 28px; max-width: 48ch; min-height: 0; }
.sheet__text p + p { margin-top: -4px; }
.sheet__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: 6px; margin: 0; }
.sheet__fields > div { background: var(--paper-2); padding: 12px 14px 16px; min-width: 0; }
.sheet--b .sheet__fields > div { background: var(--holder); }
.sheet--c .sheet__fields > div { background: var(--paper-3); }
.sheet__fields dt { font-size: var(--s-small); font-weight: 500; color: var(--strip-muted); letter-spacing: 0.01em; }
.sheet--b .sheet__fields dt { color: var(--strip-muted-inv); }
.sheet__fields dd { margin: 4px 0 0; font-family: var(--f-strip); font-weight: 700; font-size: var(--s-lead); line-height: 1.1; }
.sheet__copy { display: grid; gap: 12px; }
.sheet__body img { grid-column: 6 / 13; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { font-family: var(--f-strip); font-weight: 600; font-size: var(--s-lead); line-height: 1.25; }
.sheet__copy .btn { justify-self: start; }

/* ---------- how ---------- */
.how { background: var(--surface); padding: var(--section) 0; }
.how__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.how__head { grid-column: 1 / 6; position: sticky; top: 40px; display: grid; gap: 28px; }
.how__p { font-size: var(--s-lead); line-height: 1.35; max-width: 30ch; }
.how__keys { margin: 12px 0 0; display: grid; gap: 18px; }
.how__keys dt { font-size: var(--s-small); color: var(--muted); font-weight: 500; letter-spacing: 0.01em; }
.how__keys dd { margin: 2px 0 0; font-family: var(--f-strip); font-weight: 600; font-size: var(--s-lead); line-height: 1.25; }
.slip {
  grid-column: 7 / 13; max-width: 600px; justify-self: end; width: 100%;
  background: var(--paper); color: var(--strip-ink);
  padding: 12px 40px 64px;
  clip-path: polygon(0 0,100% 0,100.000% calc(100% - 12px),96.667% calc(100% - 0px),93.333% calc(100% - 12px),90.000% calc(100% - 0px),86.667% calc(100% - 12px),83.333% calc(100% - 0px),80.000% calc(100% - 12px),76.667% calc(100% - 0px),73.333% calc(100% - 12px),70.000% calc(100% - 0px),66.667% calc(100% - 12px),63.333% calc(100% - 0px),60.000% calc(100% - 12px),56.667% calc(100% - 0px),53.333% calc(100% - 12px),50.000% calc(100% - 0px),46.667% calc(100% - 12px),43.333% calc(100% - 0px),40.000% calc(100% - 12px),36.667% calc(100% - 0px),33.333% calc(100% - 12px),30.000% calc(100% - 0px),26.667% calc(100% - 12px),23.333% calc(100% - 0px),20.000% calc(100% - 12px),16.667% calc(100% - 0px),13.333% calc(100% - 12px),10.000% calc(100% - 0px),6.667% calc(100% - 12px),3.333% calc(100% - 0px),0.000% calc(100% - 12px));
}
.slip__h { font-size: var(--s-mid); margin-top: 28px; }
.slip__rows { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.slip__rows li { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 10px; font-size: var(--s-body); line-height: 1.3; }
.slip__rows span { flex: 0 1 auto; min-width: 0; }
.slip__rows i {
  flex: 1 0 24px; height: 6px; margin-bottom: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Ccircle cx='3' cy='3' r='2' fill='%237b827d'/%3E%3C/svg%3E") repeat-x left center;
}
.slip__rows b { flex: 0 0 auto; margin-left: auto; font-weight: 500; text-align: right; }
.slip__end {
  margin: 32px -40px 0; min-height: 52px; padding: 10px 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px;
  background: var(--strip-ink); color: var(--paper);
  font-family: var(--f-strip); font-weight: 700; font-size: var(--s-lead); line-height: 1.1;
}

/* ---------- descriptors ---------- */
.desc { padding: var(--section) 0; }
.desc__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.desc__side { grid-column: 1 / 6; position: sticky; top: 40px; display: grid; gap: 36px; }
.desc__lead { font-size: var(--s-lead); line-height: 1.35; max-width: 32ch; }
.eg { margin: 0; }
.eg__strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 6px 6px 6px 22px; background: var(--holder); clip-path: var(--notch); }
.eg__strip span {
  display: flex; flex-direction: column; gap: 6px; padding: 10px 8px 12px; min-width: 0;
  background: var(--paper); color: var(--strip-ink);
  font-family: var(--f-strip); font-weight: 700; font-size: var(--s-mid); line-height: 1;
}
.eg__strip small { font-family: var(--f-strip); font-weight: 600; font-size: var(--s-small); color: var(--strip-muted); line-height: 1.1; }
.eg__strip .eg__res { background: var(--strip-ink); color: var(--paper); }
.eg__strip .eg__res small { color: var(--strip-muted-inv); }
.scale { margin: 0; display: grid; gap: 4px; padding: 6px 6px 6px 22px; background: var(--holder); clip-path: var(--notch); }
.scale > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; padding: 12px 18px 13px; background: var(--paper); color: var(--strip-ink); }
.scale dt { flex: 0 0 6.5rem; font-family: var(--f-strip); font-weight: 700; font-size: var(--s-lead); line-height: 1.1; }
.scale dd { flex: 1 1 12rem; margin: 0; line-height: 1.35; min-width: 0; }
.desc__col { grid-column: 7 / 13; container-type: inline-size; }
.giant {
  font-family: var(--f-strip); font-weight: 700; text-transform: uppercase;
  font-size: 17.6cqw; line-height: 0.8; letter-spacing: -0.02em; margin: 0 0 20px -0.04em; white-space: nowrap;
}
.bars { display: grid; gap: 6px; }
.barrow { background: var(--surface); position: relative; transition: background-color var(--t-hover) ease; }
.barrow::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 10px; background: var(--holder); transition: background-color var(--t-hover) ease; }
.barrow[open]::before { background: var(--accent); }
.barrow summary {
  list-style: none; cursor: pointer; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 20px 0 30px; font-family: var(--f-strip); font-weight: 700; font-size: var(--s-lead);
  -webkit-user-select: none; user-select: none;
}
.barrow summary::-webkit-details-marker { display: none; }
.barrow summary::after { content: "+"; font-weight: 600; font-size: var(--s-mid); line-height: 1; transition: transform var(--t-ui) var(--ease-out); }
.barrow[open] summary::after { transform: rotate(45deg); }
.barrow summary:focus-visible { outline-offset: -3px; }
.barrow p { padding: 0 24px 22px 30px; max-width: 58ch; }
@media (hover: hover) and (pointer: fine) {
  .barrow:hover { background: var(--surface-hover); }
}

/* ---------- faq ---------- */
.faq { overflow-x: clip; background: var(--surface); padding: var(--section) 0 calc(var(--section) * 0.9); }
.faq__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.faq__col { grid-column: 1 / 6; display: grid; gap: 32px; }
.faq__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--s-body); }
.faq__facts li { font-weight: 500; }
.qa { display: grid; gap: 6px; }
.qa details { padding: 12px 18px 14px; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.qa details[open] { background: var(--paper); color: var(--strip-ink); }
.qa summary {
  list-style: none; cursor: pointer; position: relative; padding-right: 36px;
  font-family: var(--f-strip); font-weight: 600; font-size: var(--s-lead); line-height: 1.2; min-height: 36px; display: flex; align-items: center;
  -webkit-user-select: none; user-select: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before, .qa summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 2px; background: currentColor;
  transition: transform var(--t-ui) var(--ease-out);
}
.qa summary::before { transform: translate(-7px, 0) rotate(45deg); }
.qa summary::after { transform: translate(0, 0) rotate(-45deg); }
.qa details[open] summary::before { transform: translate(-7px, 0) rotate(-45deg); }
.qa details[open] summary::after { transform: translate(0, 0) rotate(45deg); }
.qa details p { margin-top: 10px; font-size: var(--s-body); max-width: 60ch; }
@media (hover: hover) and (pointer: fine) {
  .qa details:not([open]) summary:hover { color: var(--accent); }
}
.faq__pics { grid-column: 7 / 13; position: relative; margin-top: calc(var(--section) * -1); padding-bottom: 80px; }
.faq__tall { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.faq__sq { position: absolute; width: 36%; aspect-ratio: 1; object-fit: cover; left: -40px; bottom: 40px; border: 8px solid var(--surface); }

/* ---------- cta ---------- */
.cta { background: var(--bg); padding: calc(var(--section) * 0.75) 0 0; overflow: clip; }
.cta__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; }
.cta__p { grid-column: 1 / 5; font-size: var(--s-lead); line-height: 1.35; padding-bottom: 120px; }
.card {
  grid-column: 6 / 13; justify-self: end; width: min(100%, 720px); aspect-ratio: 7 / 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 20px;
  padding: 48px 56px; margin-bottom: -60px;
  background: var(--paper); color: var(--strip-ink);
  transform: rotate(-2deg); transform-origin: 60% 100%;
  clip-path: var(--notch);
}
.card .h3 { font-size: var(--s-head); letter-spacing: -0.02em; }
.card p { max-width: 38ch; }
.btn--bar { width: 100%; min-height: 60px; }
.card .textlink { color: var(--strip-ink); padding-block: 8px; }

/* ---------- footer: the back of the strip ---------- */
.foot {
  position: relative; z-index: 0; overflow: clip;
  background: var(--surface);
  padding: 64px var(--m-right) max(40px, env(safe-area-inset-bottom)) var(--m-left);
}
.foot__panel {
  position: relative; max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px 64px;
  padding: 64px clamp(24px, 4vw, 56px) 28px;
  background: var(--paper); color: var(--strip-ink);
  clip-path: polygon(0.000% 12px,3.333% 0px,6.667% 12px,10.000% 0px,13.333% 12px,16.667% 0px,20.000% 12px,23.333% 0px,26.667% 12px,30.000% 0px,33.333% 12px,36.667% 0px,40.000% 12px,43.333% 0px,46.667% 12px,50.000% 0px,53.333% 12px,56.667% 0px,60.000% 12px,63.333% 0px,66.667% 12px,70.000% 0px,73.333% 12px,76.667% 0px,80.000% 12px,83.333% 0px,86.667% 12px,90.000% 0px,93.333% 12px,96.667% 0px,100.000% 12px,100% 100%,0 100%);
}
.foot__msg { display: grid; gap: 18px; align-content: start; max-width: 44ch; }
.foot__msg .h3 { font-size: var(--s-head); letter-spacing: -0.02em; }
.foot__legal { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 4px; }
.foot__legal a, .social a { font-weight: 500; text-underline-offset: 4px; padding-block: 10px; display: inline-block; transition: color var(--t-hover) ease; }
.foot__addr { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 8px; padding-right: 110px; min-width: 0; }
.foot__addr > a {
  font-family: var(--f-strip); font-weight: 700; font-size: var(--s-lead); line-height: 1.05; text-decoration: none;
  overflow-wrap: break-word; padding-block: 8px; transition: color var(--t-hover) ease;
}
.social { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 4px; }
.stamp { position: absolute; top: 30px; right: clamp(24px, 4vw, 56px); width: 88px; aspect-ratio: 3 / 4; object-fit: cover; outline: 6px solid var(--paper-3); outline-offset: -6px; transform: rotate(3deg); }
.credits { grid-column: 1 / -1; font-size: var(--s-small); color: var(--strip-muted); max-width: 72ch; letter-spacing: 0.01em; line-height: 1.45; }
.imprint { grid-column: 1 / -1; font-size: var(--s-small); text-align: center; color: var(--strip-muted); letter-spacing: 0.01em; }
@media (hover: hover) and (pointer: fine) {
  .foot__addr > a:hover, .foot__legal a:hover, .social a:hover { color: var(--link-hover-paper); }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* signature: the back of the strip slides out from under the page's last edge */
  @supports (animation-timeline: view()) {
    .foot__panel { animation: curtain linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
  }
  /* first screen: the candidate's strip slides into its holder, the title rises */
  .js .hero [data-line] { transform: translateY(105%); animation: line-up 800ms var(--ease-expo) forwards; animation-delay: calc(140ms + var(--i) * 90ms); }
  .js [data-load] { opacity: 0; transform: translateY(12px); animation: rise 500ms var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
  .js .strip--you[data-load] { transform: translateX(-24px); animation-duration: 700ms; }
  /* strips slide into their holders once, as they enter */
  .js [data-reveal] { opacity: 0; transform: translateX(-24px); transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-expo); transition-delay: var(--d, 0ms); }
  .js .card[data-reveal] { opacity: 1; transform: rotate(-6deg) translateY(72px); transition-duration: 700ms, 900ms; }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .card[data-reveal].is-in { transform: rotate(-2deg); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { transition: opacity 200ms ease; }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes curtain { from { transform: translateY(-52px) scale(0.97); } to { transform: none; } }

@media (prefers-contrast: more) {
  :root { --strip-muted: #222826; --muted: #d6d9d2; --strip-muted-inv: #ecece6; }
}

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .bar__links { display: none; }
  .strip--you { grid-template-columns: minmax(150px, 22%) minmax(0, 1fr); }
  .strip--you .cell--cs { grid-row: auto; }
  .strip--you .cell--route { grid-column: 2; grid-row: 1 / 3; }
  .strip--you .cell--lvl { grid-column: 1; grid-row: 2; }
  .strip--you .cell--times { grid-column: 1 / 3; grid-template-columns: repeat(auto-fit, minmax(min(100%, 6rem), 1fr)); }
  .strip--check { grid-template-columns: 1fr 1fr; }
  .strip--check .cell--q { grid-column: 1 / 3; }
  .facts { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); }
  .intro__top .h2 { grid-column: 1 / 13; }
  .intro__note { grid-column: 1 / 10; }
  .intro__text { grid-column: 1 / 13; max-width: none; }
  .intro__pic { grid-column: 1 / 13; }
  .sheet { position: relative; top: auto; height: auto; margin-bottom: 10px; }
  .sheet__text { justify-content: flex-start; gap: 24px; }
  .sheet__body img { min-height: 320px; }
  .sheet__text { grid-column: 1 / 7; }
  .sheet__body img { grid-column: 7 / 13; }
  .how__head, .desc__side { grid-column: 1 / 13; position: static; }
  .slip { grid-column: 1 / 13; justify-self: start; max-width: 640px; }
  .how__keys { grid-template-columns: repeat(3, 1fr); }
  .desc__col { grid-column: 1 / 13; max-width: 640px; grid-row: 1; }
  .desc__side { grid-row: 2; margin-top: 32px; max-width: 640px; }
  .faq__col { grid-column: 1 / 13; }
  .faq__pics { grid-column: 1 / 13; grid-row: 1; margin-top: 0; max-width: 560px; justify-self: end; width: 80%; }
  .faq__pics .faq__tall { aspect-ratio: 4 / 3; }
  .cta__p { grid-column: 1 / 13; padding-bottom: 0; max-width: 40ch; }
  .card { grid-column: 1 / 13; justify-self: center; width: 90%; }
}

/* ---------- phone ---------- */
@media (max-width: 680px) {
  .bar { padding-top: max(14px, env(safe-area-inset-top)); padding-bottom: 14px; }
  .bar__act .textlink { display: none; }
  .bar .btn { min-height: 44px; padding: 0 16px; }
  .hero { padding-top: calc(84px + env(safe-area-inset-top)); }
  .strip { padding: 6px 6px 6px 18px; gap: 4px; }
  .cell { padding: 14px 14px 16px; }
  .strip--you { grid-template-columns: 1fr 1fr; }
  .strip--you .cell--cs { grid-column: 1; grid-row: 1; }
  .strip--you .cell--lvl { grid-column: 2; grid-row: 1; }
  .strip--you .cell--route { grid-column: 1 / 3; grid-row: 2; padding: 20px 16px 22px; gap: 22px; }
  .strip--you .cell--times { grid-column: 1 / 3; grid-row: 3; gap: 8px; }
  .strip--you .cell--cs .sub { display: none; }
  .h1 { font-size: min(var(--s-head), 11.6vw); }
  .cs { font-size: var(--s-mid); }
  .val { font-size: 1.0625rem; }
  .acts .btn { flex: 1 1 100%; }
  .strip--check { grid-template-columns: 1fr; }
  .strip--check .cell--q { grid-column: auto; }
  .cell--in { flex-direction: column; align-items: stretch; }
  .seg { flex-wrap: nowrap; }
  .seg label { flex: 1; }
  .seg span { width: 100%; }
  .datefield input { width: 100%; }
  .intro__top { gap: 20px; }
  .intro__note { grid-column: 1 / 13; }
  .facts { padding: 6px 6px 6px 18px; gap: 4px; }
  .facts > div { padding: 14px; }
  .who__title { margin-bottom: 28px; }
  .sheet { min-height: 0; grid-template-rows: auto auto; padding-left: 18px; }
  .sheet::before { width: 18px; }
  .sheet__band { padding: 16px 16px 14px; }
  .sheet__band .h3 { white-space: normal; font-size: var(--s-mid); }
  .sheet__body { display: flex; flex-direction: column; padding: 0; gap: 0; }
  .sheet__body img { order: -1; aspect-ratio: 4 / 3; height: auto; }
  .sheet__text { padding: 16px 16px 22px; max-width: none; gap: 18px; }
  .sheet__copy .btn { justify-self: stretch; }
  .how__keys { grid-template-columns: 1fr; }
  .slip { padding: 6px 18px 52px; }
  .slip__end { margin-inline: -18px; padding-inline: 18px; }
  .slip__rows li { font-size: 1.0625rem; }
  .eg__strip { grid-template-columns: 1fr 1fr; gap: 3px; padding: 5px 5px 5px 16px; }
  .eg__strip span { flex-direction: row-reverse; justify-content: space-between; align-items: baseline; padding: 8px 10px; font-size: var(--s-lead); }
  .eg__strip .eg__res { grid-column: 1 / -1; }
  .scale > div { padding: 10px 12px; column-gap: 10px; }
  .scale dt { flex-basis: 5rem; }
  .faq__pics { width: 100%; max-width: none; padding-bottom: 40px; }
  .faq__pics .faq__tall { aspect-ratio: 4 / 5; }
  .faq__sq { left: auto; right: -6px; bottom: 0; width: 38%; }
  .faq__col .acts .btn { width: 100%; }
  .card { width: 92%; aspect-ratio: auto; padding: 40px 22px 76px; transform: rotate(-1deg); }
  .js .card[data-reveal].is-in { transform: rotate(-1deg); }
  .foot { padding-top: 40px; }
  .foot__panel { grid-template-columns: 1fr; padding: 48px 20px 24px; gap: 20px; }
  .foot__addr { padding-right: 0; padding-top: 0; }
  .stamp { top: 26px; right: 20px; width: 64px; }
  .foot__msg { padding-right: 76px; }
}
