/* Project X · Malibu: the weekend programme, c/o Yousef. Black paper, Helvetica, words in quotation marks,
   one industrial orange tag and black-and-white hazard tape. Nothing on the page that isn't saying something. */
:root {
  --ink: #f4f3ef; --body: #cfccc5; --mute: #858279; --line: #2c2b28; --table: #050505; --paper: #0e0e0d;
  --orange: #ff5a00; --red: #ff3b2f; --felix: #5cf2a0;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--table); color: var(--body); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; }
/* phones: Safari only folds its address and tab bars away when the page scrolls, so the page gets something to scroll.
   Everything on it is fixed, so nothing moves; the scroll just takes the bars off a sideways phone. */
@media (pointer: coarse) {
  html, body { height: auto; }
  body { overflow-x: hidden; overflow-y: auto; }
  body::after { content: ''; display: block; height: calc(100lvh + 240px); pointer-events: none; }
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.top { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) max(22px, env(safe-area-inset-right, 0px)) 0 max(22px, env(safe-area-inset-left, 0px));
  font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--ink); }
.top .mark { color: var(--ink); text-decoration: none; }
.top .acts { display: flex; align-items: center; gap: 22px; }
.top .film { color: var(--mute); text-decoration: none; }
@media (hover: hover) { .top .film:hover, .top .req:hover { color: var(--ink); } .top .film:hover { color: var(--felix); } }
@media (max-width: 520px) { .top .film { display: none; } }
.top .what { display: none; }

.table { position: fixed; inset: calc(env(safe-area-inset-top, 0px) + 56px) 0 calc(env(safe-area-inset-bottom, 0px) + 64px); display: grid; place-items: center; padding: 0 3vw; }
.book { width: 100%; height: 100%; transition: transform .85s cubic-bezier(.5,0,.2,1); }

/* ---------------------------------------------------------------- pages */
.page { background: var(--paper); overflow: hidden; container-type: inline-size; color: var(--body); }
.pg { position: relative; width: 100%; height: 100%; padding: 10cqw 9cqw; display: flex; flex-direction: column; gap: 3.2cqw; }
.pg.center-v { justify-content: center; }
.lbl { margin: 0; font-size: clamp(9px, 2.3cqw, 12.5px); font-weight: 700; letter-spacing: .02em; color: var(--ink); }
.lbl::before { content: "“"; } .lbl::after { content: "”"; }
.lbl.gap { margin-top: 5cqw; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 700; letter-spacing: -.02em; line-height: .93; text-transform: uppercase; text-wrap: balance; }
h2 { font-size: 9cqw; }
h2.huge { font-size: 12cqw; line-height: .9; }
h3 { font-size: 7.2cqw; }
.body { margin: 0; font-size: clamp(11.5px, 3.05cqw, 16.5px); line-height: 1.5; }
.body.big { font-size: clamp(12.5px, 3.6cqw, 19.5px); line-height: 1.45; color: var(--ink); }
.lead { margin: 0; color: var(--ink); font-weight: 700; font-size: 6.6cqw; letter-spacing: -.02em; line-height: 1; text-transform: uppercase; text-wrap: balance; }
.pull { margin: 0; color: var(--ink); font-weight: 700; font-size: clamp(14px, 4.4cqw, 24px); line-height: 1.2; letter-spacing: -.015em; }
.hl { color: var(--orange); }
.aside { margin: 0; color: var(--mute); font-size: clamp(11px, 2.8cqw, 15px); font-weight: 700; letter-spacing: .02em; }
.small { margin: 0; font-size: clamp(10px, 2.3cqw, 13px); color: var(--mute); }

/* the orange zip-tie tag */
.tag { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 1.6cqw; padding: 1.4cqw 2.6cqw 1.4cqw 1.6cqw; background: var(--orange); color: #111; font-weight: 700; font-size: clamp(9px, 2.2cqw, 12px); letter-spacing: .02em; border-radius: .6cqw; transform: rotate(-9deg); box-shadow: 0 1cqw 2cqw rgba(0,0,0,.4); }
.tag::before { content: ""; width: 1.8cqw; height: 1.8cqw; min-width: 6px; min-height: 6px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1px rgba(0,0,0,.3); }
.t-cover { right: 8cqw; top: 18cqw; }
.t-seat { right: -2cqw; top: 3cqw; }
.t-price { right: -6cqw; top: -4cqw; transform: rotate(8deg); }

/* cover */
.cover .pg { padding: 8cqw; justify-content: space-between; }
.cover .tl { margin: 0; font-size: clamp(9px, 2.2cqw, 12px); font-weight: 700; color: var(--ink); }
.cover-c { display: grid; justify-items: start; gap: 3cqw; }
.cover .tip { margin: 0; width: 100%; aspect-ratio: 5 / 4.6; overflow: hidden; background: #000; }
.cover .tip video { width: 100%; height: 100%; object-fit: cover; }
.cover h1 { font-size: 18cqw; letter-spacing: -.04em; }
.cover .cs { margin: 0; font-size: clamp(9px, 2.2cqw, 12px); font-weight: 700; color: var(--ink); }
.cover .cs::before { content: "“"; } .cover .cs::after { content: "”"; }
.cover-f { display: flex; justify-content: space-between; font-size: clamp(8px, 2cqw, 11px); font-weight: 700; color: var(--mute); }
.back { background: #000; }
.back .pg { justify-content: space-between; }
.back-c { flex: 1; display: grid; place-content: center; text-align: left; }
.back-c p { margin: 0; color: var(--ink); font-weight: 700; font-size: 9cqw; letter-spacing: -.02em; line-height: .95; text-transform: uppercase; }

/* business models */
.models { margin: 0; border-top: 2px solid var(--ink); }
.models dt { margin: 0; padding-top: 2.4cqw; color: var(--ink); font-weight: 700; font-size: clamp(10px, 2.5cqw, 13.5px); text-transform: uppercase; }
.models dt::before { content: "“"; } .models dt::after { content: "”"; }
.models dd { margin: 0; padding: .8cqw 0 2.4cqw; border-bottom: 1px solid var(--line); font-size: clamp(11.5px, 3.1cqw, 17px); line-height: 1.38; }

/* richard, felix */
.still { margin: -10cqw -9cqw 2cqw; aspect-ratio: 16 / 10; overflow: hidden; }
.still img { width: 100%; height: 100%; object-fit: cover; }
.chat { display: grid; gap: 1.2cqw; justify-items: start; }
.chat .b { margin: 0; max-width: 86%; padding: 1.4cqw 2.4cqw; background: #222220; color: var(--ink); font-size: clamp(10.5px, 2.7cqw, 15px); line-height: 1.3; border-radius: 2.4cqw; }
.chat .b.me { justify-self: end; background: var(--ink); color: #0e0e0d; font-weight: 700; }
.punch { margin: auto 0 0; color: var(--red); font-weight: 700; font-size: clamp(13px, 4cqw, 22px); letter-spacing: -.01em; }
.giant { margin: 0; color: var(--ink); font-weight: 700; font-size: 10.5cqw; letter-spacing: -.03em; line-height: .92; text-transform: uppercase; }

/* your host */
.bleed-one .pg { padding: 0; }
.bl { position: absolute; inset: 0; background-size: cover; background-position: 50% 60%; }
.caption-on { position: absolute; left: 7cqw; bottom: 7cqw; margin: 0; color: #fff; font-size: clamp(9px, 2.2cqw, 12px); font-weight: 700; line-height: 1.3; mix-blend-mode: difference; }
.stat { display: grid; gap: 1.2cqw; padding: 3cqw 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.stat b { color: var(--ink); font-weight: 700; font-size: 7.4cqw; letter-spacing: -.03em; line-height: .95; }
.stat span, .stats span { color: var(--mute); font-size: clamp(9px, 2.2cqw, 12px); font-weight: 700; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4cqw; padding: 3cqw 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.stats b { display: block; white-space: nowrap; color: var(--ink); font-weight: 700; font-size: 7cqw; letter-spacing: -.035em; line-height: 1; margin-bottom: 1.2cqw; }

/* the four days */
.sched { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.sched li { display: grid; grid-template-columns: 16cqw 1fr; gap: 2cqw; padding: 2.4cqw 0; border-bottom: 1px solid var(--line); font-size: clamp(11.5px, 3cqw, 16px); line-height: 1.4; }
.sched time { color: var(--mute); font-weight: 700; font-variant-numeric: tabular-nums; }
.sched b { color: var(--ink); font-weight: 700; }
.sched em { display: block; margin-top: 1cqw; font-style: normal; color: var(--ink); font-weight: 700; font-size: .9em; }
.sched em::before { content: "→ "; color: var(--orange); }
.after { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; }
.after li { border-top: 2px solid var(--ink); padding-top: 1.4cqw; font-size: clamp(10px, 2.6cqw, 14px); color: var(--mute); }
.after b { display: block; color: var(--ink); font-weight: 700; font-size: 1.3em; text-transform: uppercase; }

/* the house, the seat */
.frame-wait { flex: 1; min-height: 30cqw; border: 2px solid var(--ink); display: grid; place-items: center; }
.frame-wait span { font-size: clamp(10px, 2.6cqw, 14px); font-weight: 700; color: var(--ink); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.4cqw 4cqw; font-size: clamp(9.5px, 2.4cqw, 13px); color: var(--mute); font-weight: 700; }
.facts b { display: block; color: var(--ink); font-size: 2em; letter-spacing: -.03em; line-height: 1; margin-bottom: .6cqw; }
.piece { margin: 0; display: grid; gap: 1.4cqw; position: relative; }
.piece img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.piece figcaption { font-size: clamp(8px, 1.9cqw, 10.5px); font-weight: 700; color: var(--mute); }
.incl { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.incl li { padding: 1.6cqw 0; border-bottom: 1px solid var(--line); font-size: clamp(11px, 2.9cqw, 15.5px); color: var(--ink); }
.poss { list-style: none; margin: 1cqw 0; padding: 0; display: grid; gap: 1.6cqw; }
.poss li { font-size: clamp(13px, 4cqw, 21px); color: var(--ink); font-weight: 700; line-height: 1.2; }
.poss li::before { content: "→ "; color: var(--orange); }

/* the price: hazard tape over every guess */
.guess { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6cqw; }
.guess li { position: relative; justify-self: start; }
.guess span { font-weight: 700; font-size: 12cqw; letter-spacing: -.04em; color: var(--ink); line-height: 1; }
.tape { position: absolute; left: -5%; right: -5%; top: 41%; height: 2.9cqw; min-height: 14px; overflow: hidden; display: flex; align-items: center;
  background: var(--ink); box-shadow: 0 .6cqw 1.4cqw rgba(0,0,0,.5);
  transform: rotate(-3deg) scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.6,0,.3,1); }
.tape::before { content: "“NOT THE PRICE”   “NOT THE PRICE”   “NOT THE PRICE”   “NOT THE PRICE”   “NOT THE PRICE”"; white-space: pre; padding-left: 2cqw;
  color: #0e0e0d; font-size: clamp(7px, 1.7cqw, 10px); font-weight: 700; letter-spacing: .03em; }
.guess li:nth-child(2) .tape { transform: rotate(2deg) scaleX(0); } .guess li:nth-child(3) .tape { transform: rotate(-1.5deg) scaleX(0); }
.price.seen .guess li:nth-child(1) .tape { transform: rotate(-3deg) scaleX(1); transition-delay: .5s; }
.price.seen .guess li:nth-child(2) .tape { transform: rotate(2deg) scaleX(1); transition-delay: 1s; }
.price.seen .guess li:nth-child(3) .tape { transform: rotate(-1.5deg) scaleX(1); transition-delay: 1.5s; }
.fuck { margin: 2cqw 0 0; color: var(--ink); font-weight: 700; font-size: clamp(13px, 3.8cqw, 20px); line-height: 1.25; }
.amt-w { position: relative; align-self: flex-start; }
.amt { margin: 0; font-weight: 700; font-size: 20cqw; letter-spacing: -.05em; color: var(--ink); line-height: .9; }

/* application */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.8cqw; font-size: clamp(12px, 3.2cqw, 17px); color: var(--ink); border-top: 2px solid var(--ink); padding-top: 2cqw; }
.steps b { font-weight: 700; margin-right: 2cqw; color: var(--felix); }
.card { margin-top: 2cqw; }
.btn { display: inline-flex; align-items: center; height: 42px; padding: 0 20px; background: var(--ink); color: #0e0e0d; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.qa { margin: 0; display: grid; gap: 1.2cqw; border-top: 2px solid var(--ink); }
.qa dt { color: var(--ink); font-weight: 700; font-size: clamp(12px, 3.2cqw, 17px); margin-top: 2.6cqw; }
.qa dd { margin: 0; font-size: clamp(11px, 2.9cqw, 15.5px); line-height: 1.45; }

/* the story: your own footage at its own 16:9, edge to edge across the page, set like a magazine plate */
.plate .pg { padding: 8cqw 9cqw 9cqw; gap: 0; }
.rh { margin: 0; display: flex; justify-content: space-between; padding-bottom: 2cqw; border-bottom: 1px solid var(--line); font-size: clamp(8px, 1.9cqw, 10.5px); font-weight: 700; letter-spacing: .04em; color: var(--mute); font-variant-numeric: tabular-nums; }
.pv { margin: 10cqw -9cqw 0; }
.v169 { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.v32 { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #000; }
.pv figcaption { margin: 2.4cqw 9cqw 0; font-size: clamp(9px, 2.2cqw, 12px); line-height: 1.4; color: var(--mute); }
.pq { margin: auto 0 0; color: var(--ink); font-weight: 700; font-size: clamp(15px, 5.6cqw, 31px); line-height: 1.06; letter-spacing: -.025em; text-wrap: balance; }
.pq::before { content: "“"; } .pq::after { content: "”"; }
/* full-bleed footage (kept for stills) */
.blv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.bleed-one .caption-on { z-index: 2; }
.bleed-one .bl + .on-photo::before { content: ""; position: absolute; z-index: -1; left: -7cqw; right: -7cqw; top: -9cqw; height: 70cqw; background: linear-gradient(rgba(0,0,0,.72), rgba(0,0,0,0)); }
.on-photo { position: absolute; left: 7cqw; right: 7cqw; top: 9cqw; z-index: 2; margin: 0; color: #fff; font-weight: 700; font-size: 8.4cqw; line-height: .95; letter-spacing: -.025em; text-transform: uppercase; text-wrap: balance; text-shadow: 0 .4cqw 3cqw rgba(0,0,0,.55); }
.blackout { background: #000; }
.blackout .giant { font-size: 13.5cqw; }
.blackout .giant:only-child { font-size: 24cqw; letter-spacing: -.05em; line-height: .85; }
.pull.xl { font-size: clamp(16px, 6.2cqw, 34px); line-height: 1.08; letter-spacing: -.025em; }

/* the weekend: one day a page, set like a calendar */
.day .pg { gap: 2.6cqw; padding-top: 8cqw; }
.cal-h { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 2.4cqw; border-bottom: 1px solid var(--line); }
.cal-h .dn { margin: 0; color: var(--ink); font-weight: 200; font-size: 21cqw; line-height: .78; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.cal-h .dn span { display: block; margin-bottom: 1.6cqw; font-weight: 700; font-size: clamp(9px, 2.3cqw, 12.5px); letter-spacing: .04em; color: var(--felix); }
.wk { display: grid; justify-items: end; gap: 1.6cqw; }
.wk p { margin: 0; font-size: clamp(8px, 1.9cqw, 10.5px); font-weight: 700; color: var(--mute); letter-spacing: .02em; }
.wk ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 1cqw; }
.wk li { width: 6.4cqw; height: 6.4cqw; min-width: 18px; min-height: 18px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--mute); font-size: clamp(8px, 2cqw, 11px); font-weight: 700; font-variant-numeric: tabular-nums; }
.wk li.on { background: var(--ink); border-color: var(--ink); color: #0e0e0d; }
.cal { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 2cqw;
  background: repeating-linear-gradient(to bottom, transparent 0 calc(7cqw - 1px), rgba(244,243,239,.05) calc(7cqw - 1px) 7cqw); }
.cal::before { content: ""; position: absolute; left: 17cqw; top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--line), rgba(92,242,160,.45), var(--line)); }
.cal li { position: relative; display: grid; grid-template-columns: 17cqw 1fr; align-items: start; }
.cal time { padding-top: .5cqw; color: var(--mute); font-size: clamp(8.5px, 2.15cqw, 11.5px); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.cal li::before { content: ""; position: absolute; left: calc(17cqw - 1cqw); top: 1.2cqw; width: 2cqw; height: 2cqw; min-width: 6px; min-height: 6px; border-radius: 50%; background: #0e0e0d; border: 1px solid var(--mute); transform: translateX(-.5px); }
.cal .ev { margin-left: 4cqw; font-size: clamp(11px, 2.85cqw, 15.5px); line-height: 1.38; color: var(--body); }
.cal .ev b { color: var(--ink); font-weight: 700; }
.cal li.s::before { background: var(--felix); border-color: var(--felix); box-shadow: 0 0 2.4cqw rgba(92,242,160,.8); }
.cal li.s .ev { padding: 2cqw 2.6cqw 2.2cqw; border: 1px solid rgba(244,243,239,.22); background: linear-gradient(100deg, rgba(92,242,160,.09), rgba(92,242,160,0) 55%); box-shadow: inset 2px 0 0 var(--felix); }
.cal .ev i { display: block; margin-bottom: .8cqw; font-style: normal; font-size: clamp(7.5px, 1.8cqw, 10px); font-weight: 700; letter-spacing: .06em; color: var(--felix); }
.cal li.s .ev b { display: block; font-size: clamp(13px, 3.9cqw, 21px); letter-spacing: -.015em; line-height: 1.08; }
.cal .ev p { margin: 1cqw 0 0; }
.cal .ev em { display: block; margin-top: 1.2cqw; font-style: normal; color: var(--ink); font-weight: 700; font-size: .92em; }
.cal .ev em::before { content: "→ "; color: var(--felix); }
.cal-n { margin: auto 0 0; padding-top: 2cqw; border-top: 1px solid var(--line); font-size: clamp(9px, 2.2cqw, 12px); font-weight: 700; color: var(--mute); }

/* after monday */
.checks { list-style: none; margin: 1cqw 0 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.checks li { display: grid; grid-template-columns: 19cqw 1fr; column-gap: 3cqw; padding: 3cqw 0; border-bottom: 1px solid var(--line); }
.checks b { grid-row: span 2; color: var(--ink); font-weight: 700; font-size: 5.4cqw; letter-spacing: -.03em; line-height: 1; }
.checks span { font-size: clamp(8.5px, 2.1cqw, 11.5px); font-weight: 700; color: var(--felix); letter-spacing: .02em; }
.checks p { margin: .8cqw 0 0; font-size: clamp(11px, 2.9cqw, 15.5px); line-height: 1.42; }

/* the house */
.house .frame-wait { position: absolute; inset: 0; border: 0; background: #151514; }
.house .bl { z-index: 1; }

/* the mission file: the hoodie as a hologram */
.mission { background: #000; }
.mission .pg { padding: 7cqw; gap: 2.4cqw; background: radial-gradient(80% 55% at 50% 55%, rgba(92,242,160,.08), transparent 70%); }
.hud-t, .hud-b { margin: 0; display: flex; justify-content: space-between; gap: 3cqw; font-size: clamp(7.5px, 1.85cqw, 10px); font-weight: 700; letter-spacing: .06em; color: var(--felix); }
.hud-b { flex-direction: column; gap: 1cqw; color: var(--mute); } .hud-b span:first-child { color: var(--ink); font-size: 1.15em; }
.holo { position: relative; flex: 1; margin: 0; min-height: 0; overflow: hidden; background: #000; border: 1px solid rgba(92,242,160,.18); }
.holo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.holo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(92,242,160,.05) 0 1px, transparent 1px 3px); }
.holo .br { position: absolute; z-index: 2; width: 5cqw; height: 5cqw; border: 0 solid var(--felix); }
.holo .a { left: 2cqw; top: 2cqw; border-left-width: 2px; border-top-width: 2px; } .holo .b { right: 2cqw; top: 2cqw; border-right-width: 2px; border-top-width: 2px; }
.holo .c { left: 2cqw; bottom: 2cqw; border-left-width: 2px; border-bottom-width: 2px; } .holo .d { right: 2cqw; bottom: 2cqw; border-right-width: 2px; border-bottom-width: 2px; }

/* what you get, stacked */
.stack { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.stack li { display: grid; grid-template-columns: 1fr auto; gap: 4cqw; align-items: baseline; padding: 2cqw 0; border-bottom: 1px solid var(--line); font-size: clamp(11px, 2.8cqw, 15px); line-height: 1.35; }
.stack b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stack-t { margin: 0; display: flex; justify-content: space-between; align-items: baseline; padding-top: 2cqw; }
.stack-t span { font-size: clamp(9px, 2.2cqw, 12px); font-weight: 700; color: var(--mute); }
.stack-t b { color: var(--ink); font-size: 8cqw; letter-spacing: -.04em; }

/* questions */
.faq { list-style: none; margin: 0; padding: 0; display: grid; }
.faq li { padding: 2.6cqw 0 2.8cqw; border-top: 1px solid var(--line); }
.faq li:first-child { border-top: 2px solid var(--ink); }
.fq { margin: 0; display: grid; grid-template-columns: 8cqw 1fr; color: var(--ink); font-weight: 700; font-size: clamp(12.5px, 3.5cqw, 19px); line-height: 1.15; letter-spacing: -.01em; }
.fq span { padding-top: .5cqw; font-size: .55em; color: var(--felix); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.fa { margin: 1.2cqw 0 0 8cqw; font-size: clamp(11px, 2.85cqw, 15.5px); line-height: 1.45; }

/* the film */
.film-p .still { margin-bottom: 1cqw; }
.ghost-b { align-self: flex-start; background: transparent; color: var(--ink); border: 1.5px solid var(--ink); text-decoration: none; }
@media (hover: hover) { .ghost-b:hover { background: var(--ink); color: #0e0e0d; } }

/* "READ": the spread full size, over everything */
.ctrl .zoom { display: none; color: var(--felix); }
body.small-pages .ctrl .zoom { display: inline; }
.zoomv { position: fixed; inset: 0; z-index: 80; overflow-y: auto; -webkit-overflow-scrolling: touch; background: rgba(0,0,0,.94);
  display: grid; justify-items: center; padding: calc(env(safe-area-inset-top, 0px) + 54px) 0 40px; }
.zoomv[hidden] { display: none; }
.zp { display: grid; gap: 14px; justify-items: center; }
.zp .page { position: relative; display: block; width: min(440px, 92vw); aspect-ratio: 520 / 700; height: auto; transform: none; }
.zr { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 14px); left: max(16px, env(safe-area-inset-left, 0px)); z-index: 81; padding: 8px 12px; border: 1.5px solid var(--ink); color: var(--ink); font-size: 12px; font-weight: 700; }
.zx { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 14px); right: max(16px, env(safe-area-inset-right, 0px)); z-index: 81; padding: 8px 12px; background: var(--ink); color: #0e0e0d; font-size: 12px; font-weight: 700; }

/* ---------------------------------------------------------------- controls */
.ctrl { position: fixed; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); display: flex; justify-content: center; align-items: center; gap: 28px; z-index: 10; font-size: 12px; font-weight: 700; color: var(--ink); }
.ctrl button { color: var(--ink); } @media (hover: hover) { .ctrl button:hover { color: var(--orange); } }
.ctrl span { min-width: 150px; text-align: center; color: var(--mute); font-variant-numeric: tabular-nums; }

.apply { border: 0; padding: 0; background: transparent; max-width: calc(100vw - 32px); }
.apply::backdrop { background: rgba(0,0,0,.7); }
.apply form { width: min(460px, calc(100vw - 32px)); background: var(--paper); border: 2px solid var(--ink); padding: 30px 30px 26px; display: grid; gap: 8px; color: var(--body); }
.apply h3 { font-size: 36px; margin: 6px 0 6px; }
.apply label { font-size: 12px; font-weight: 700; color: var(--mute); margin-top: 12px; text-transform: uppercase; }
.apply input { font: inherit; font-size: 20px; color: var(--ink); background: transparent; border: 0; border-bottom: 2px solid var(--line); padding: 8px 0 10px; border-radius: 0; }
.apply input:focus { outline: none; border-bottom-color: var(--ink); }
.apply .row { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.apply .ghost { font-size: 12px; font-weight: 700; color: var(--mute); }
.hp { position: absolute; left: -9999px; }
.apply .note { margin: 2px 0 0; font-size: 13px; line-height: 1.45; color: var(--mute); }
@media (max-height: 520px) {
  .apply { max-height: calc(100dvh - 16px); max-width: calc(100vw - 24px); }
  .apply form { width: min(760px, calc(100vw - 24px)); grid-template-columns: 1fr 1.25fr; column-gap: 36px; row-gap: 4px; padding: 20px 26px 18px; }
  .apply form > .lbl, .apply form > h3, .apply form > .note { grid-column: 1; }
  .apply form > label, .apply form > input, .apply form > .row, .apply form > .msg { grid-column: 2; }
  .apply form > .lbl { grid-row: 1; } .apply form > h3 { grid-row: 2; font-size: 30px; } .apply form > .note { grid-row: 3 / span 4; }
  .apply label { margin-top: 4px; } .apply input { font-size: 17px; padding: 6px 0 8px; }
  .apply .row { margin-top: 10px; }
}
.msg { min-height: 1.4em; margin: 6px 0 0; font-size: 14px; color: var(--ink); }

@media (max-width: 760px) {
  .table { inset: calc(env(safe-area-inset-top, 0px) + 52px) 0 calc(env(safe-area-inset-bottom, 0px) + 56px); padding: 0 10px; }
  .ctrl { gap: 18px; } .ctrl span { min-width: 110px; }
}
/* never show a browser play button over the moving cover */
.cover video::-webkit-media-controls, .cover video::-webkit-media-controls-start-playback-button, .cover video::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none; }

/* small pages (a phone on its side, the booklet in the hands): the page keeps its own layout and just gets smaller,
   instead of the type stopping at a minimum size and running off the page. "READ" opens the spread full size. */
@container (max-width: 330px) {
  .lbl { font-size: 2.3cqw; }
  .body { font-size: 3.05cqw; }
  .body.big { font-size: 3.6cqw; }
  .pull { font-size: 4.4cqw; }
  .aside { font-size: 2.8cqw; }
  .small { font-size: 2.3cqw; }
  .tag { font-size: 2.2cqw; }
  .cover .tl { font-size: 2.2cqw; }
  .cover .cs { font-size: 2.2cqw; }
  .cover-f { font-size: 2cqw; }
  .models dt { font-size: 2.5cqw; }
  .models dd { font-size: 3.1cqw; }
  .chat .b { font-size: 2.7cqw; }
  .punch { font-size: 4cqw; }
  .caption-on { font-size: 2.2cqw; }
  .stat span, .stats span { font-size: 2.2cqw; }
  .sched li { font-size: 3cqw; }
  .after li { font-size: 2.6cqw; }
  .frame-wait span { font-size: 2.6cqw; }
  .facts { font-size: 2.4cqw; }
  .piece figcaption { font-size: 1.9cqw; }
  .incl li { font-size: 2.9cqw; }
  .poss li { font-size: 4cqw; }
  .tape::before { font-size: 1.7cqw; }
  .fuck { font-size: 3.8cqw; }
  .steps { font-size: 3.2cqw; }
  .qa dt { font-size: 3.2cqw; }
  .qa dd { font-size: 2.9cqw; }
  .rh { font-size: 1.9cqw; }
  .pv figcaption { font-size: 2.2cqw; }
  .pq { font-size: 5.6cqw; }
  .pull.xl { font-size: 6.2cqw; }
  .cal-h .dn span { font-size: 2.3cqw; }
  .wk p { font-size: 1.9cqw; }
  .wk li { font-size: 2cqw; }
  .cal time { font-size: 2.15cqw; }
  .cal .ev { font-size: 2.85cqw; }
  .cal .ev i { font-size: 1.8cqw; }
  .cal li.s .ev b { font-size: 3.9cqw; }
  .cal-n { font-size: 2.2cqw; }
  .checks span { font-size: 2.1cqw; }
  .checks p { font-size: 2.9cqw; }
  .hud-t, .hud-b { font-size: 1.85cqw; }
  .stack li { font-size: 2.8cqw; }
  .stack-t span { font-size: 2.2cqw; }
  .fq { font-size: 3.5cqw; }
  .fa { font-size: 2.85cqw; }
  .wk li { min-width: 0; min-height: 0; }
  .btn { height: 9cqw; padding: 0 4cqw; font-size: 2.4cqw; }
  .tape { min-height: 0; }
}
