/* Fifth Day: page styles. A five-column week grid, Monday to Friday. The fifth column is the red one. */
:root {
  --page: #FFFFFF;
  --ink: #171A21;
  --muted: #5C6370;
  --surface: #F1F2F4;
  --line: #D9DCE1;
  --red: #D7263D;
  --red-d: #BD1F34;
  --serif: "Brygada 1918", Georgia, "Times New Roman", serif;
  --sans: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  --m: clamp(24px, 8vw, 136px);
  --gut: clamp(4px, 0.56vw, 10px);
  --pad: clamp(112px, 15vw, 220px);
  --mast: 64px;
  --bar: 52px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --io: cubic-bezier(0.7, 0, 0.2, 1);
}
@media (max-width: 699px) {
  :root { --m: 16px; --mast: 54px; --bar: 46px; }
}

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  background: var(--page);
  color: var(--ink);
  font: 400 18px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
em, i { font-style: normal; }
h1, h2, h3, p, ul, dl, dd, dt, figure, blockquote, fieldset, legend { margin: 0; padding: 0; }
h1, h2, h3, .quote p, .sum { text-wrap: balance; }
fieldset { border: 0; min-width: 0; }
ul { list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: #FFFFFF; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; }
.wk { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--gut); }
.tag { font: 800 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.skip { position: absolute; left: var(--m); top: -80px; z-index: 200; background: var(--ink); color: #FFFFFF; padding: 14px 18px; font: 700 14px/1 var(--sans); text-decoration: none; }
.skip:focus { top: 8px; }

/* Buttons: a flat day cell, ink until it is pressed towards Friday. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: 52px; padding: 0 26px; border: 0; border-radius: 0;
  background: var(--ink); color: #FFFFFF;
  font: 700 15px/1 var(--sans); letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
  --k-fill: var(--red); --k-fill-ink: #FFFFFF;
  transition: transform 0.2s var(--ease), color 0.45s var(--io);
}
.btn:active { transform: scale(0.97); }
.btn-w { background: #FFFFFF; color: var(--ink); --k-fill: var(--ink); --k-fill-ink: #FFFFFF; }
.tlink, .quiet, .reset {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; border-radius: 0;
  background: none; color: var(--ink); font: 700 15px/1 var(--sans); text-decoration: none;
}
/* Quiet links: a hairline under the words, inked in from the left on hover. Drawn with two thin
   pseudo elements, so the link itself has no background. */
.tlink, .quiet, .reset { position: relative; }
.tlink::before, .quiet::before, .reset::before, .tlink::after, .quiet::after, .reset::after {
  content: ""; position: absolute; left: 0; right: 0; top: calc(50% + 0.8em); height: 1.5px; background: var(--line);
}
.tlink::after, .quiet::after, .reset::after { background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.45s var(--io); }
.tlink:hover::after, .tlink:focus-visible::after, .quiet:hover::after, .quiet:focus-visible::after, .reset:hover::after, .reset:focus-visible::after { transform: scaleX(1); }
.quiet { font-size: 14px; }
.quiet svg { flex: none; }

/* ---------- Header: a masthead and the week ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--page); transition: transform 0.5s var(--ease); }
.top.is-tucked { transform: translateY(calc(-1 * var(--mast))); }
.mast { height: var(--mast); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--m); }
.brand { display: inline-flex; align-items: center; gap: 11px; font: 600 23px/1 var(--serif); letter-spacing: -0.01em; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand svg { width: 26px; height: 14px; flex: none; }
.mast-r { display: flex; align-items: center; gap: 18px; min-width: 0; }
.hello { font: 600 15px/1.2 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-btn { display: none; height: 40px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 0; background: none; font: 800 11px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
.menu-btn[aria-expanded="true"] { background: var(--ink); color: #FFFFFF; }

.week-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--gut); padding: 0 var(--m); border-bottom: 1px solid var(--line); background: var(--page); }
.week-nav > * {
  position: relative; display: flex; align-items: center; gap: 12px; min-width: 0;
  height: var(--bar); padding: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0;
  background: none; color: var(--ink); text-decoration: none; text-align: left; font: 600 15px/1 var(--sans);
}
.week-nav > *::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--ink);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.5s var(--ease);
}
.week-nav > a:hover::before, .week-nav > [aria-current="true"]::before { transform: scaleX(1); }
.week-nav .d { display: inline-flex; font: 800 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.week-nav .l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 4px 0; }
.week-nav > .nav-fri { background: var(--red); border-top-color: var(--red); color: #FFFFFF; padding: 0 14px; font-weight: 800; transition: background-color 0.3s; }
.week-nav > .nav-fri:hover, .week-nav > .nav-fri[aria-expanded="true"] { background: var(--red-d); }
.nav-fri .d { color: #FFFFFF; }
.nav-fri:focus-visible { outline-offset: 2px; }

.acct { position: absolute; right: var(--m); top: 100%; width: max(calc((100% - 2 * var(--m) - 4 * var(--gut)) / 5), 200px); background: var(--red); color: #FFFFFF; padding: 20px 16px 8px; }
.acct-n { font: 600 23px/1.1 var(--serif); }
.acct-no { margin: 10px 0 14px; font: 800 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.acct-b { display: flex; align-items: center; width: 100%; height: 48px; padding: 0; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.5); border-radius: 0; background: none; color: #FFFFFF; font: 700 14px/1 var(--sans); text-align: left; }
.acct-b:hover { text-decoration: underline; text-underline-offset: 4px; }
.acct :focus-visible { outline-color: #FFFFFF; }

.menu { position: absolute; left: 0; right: 0; top: 100%; background: var(--page); border-bottom: 1.5px solid var(--ink); padding: 0 var(--m) 14px; }
.menu > * { display: flex; align-items: center; gap: 0; width: 100%; height: 56px; padding: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; color: var(--ink); text-decoration: none; text-align: left; font: 500 25px/1 var(--serif); }
.menu > * > span:first-child { flex: none; width: 52px; font: 800 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.menu > .menu-fri > span:first-child { color: var(--red); }
.menu > .menu-q { font: 700 15px/1 var(--sans); border-bottom: 0; }

@media (max-width: 999px) {
  .week-nav .d2 { display: none; }
}
@media (max-width: 699px) {
  .mast-r [data-open="signin"] { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .brand { font-size: 21px; }
  .hello { font-size: 13px; }
  .week-nav > * { justify-content: center; }
  .week-nav > .nav-fri { padding: 0; }
  .week-nav .l { display: none; }
  .week-nav .d { font-size: 13px; letter-spacing: 0.06em; color: var(--ink); }
  .nav-fri .d { color: #FFFFFF; }
  .acct { left: var(--m); right: var(--m); width: auto; }
}
@media (min-width: 700px) {
  .menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 3.6vw, 52px) var(--m) 0; }
.hero-top { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--gut); row-gap: clamp(22px, 2.2vw, 32px); align-items: end; margin-bottom: clamp(36px, 3.2vw, 46px); }
.hero h1 { grid-column: 1 / -1; font: 500 clamp(46px, 7.5vw, 112px)/0.98 var(--serif); letter-spacing: -0.022em; }
.lede { grid-column: 1 / span 2; font-size: clamp(17px, 1.32vw, 19px); max-width: 27em; padding-right: 24px; }
.hero-cta { grid-column: 3 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

.strips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--gut); height: clamp(340px, 74vh, min(740px, 51vw)); }
.strip { position: relative; overflow: hidden; background: var(--surface); }
.pane { position: absolute; top: 0; height: 100%; width: calc(500% + 4 * var(--gut)); left: calc(var(--i) * (-100% - var(--gut))); }
.pane svg, .scene svg, .portrait svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph { position: absolute; inset: 0; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.7s var(--ease); }
.ph img.is-on { opacity: 1; }
/* Hero photograph. It is sized from the width of the five columns, never from their height, so the
   crop is the same at every viewport height: the desk lamp in strip one, then one person in each of
   strips two, three and four, and no gutter across a face. Strip five is the part that folds away. */
.hero .ph img { inset: auto; left: -29.33%; top: 0; margin-top: -14%; width: 133.34%; height: auto; max-width: none; aspect-ratio: 16 / 9; }
@media (max-width: 699px) {
  .hero .ph img { left: -76.8%; top: -5%; margin-top: 0; width: auto; height: 105%; }
}
.blind { position: absolute; inset: -1px; background: var(--surface); transform: scaleY(0); transform-origin: 50% 0; transition: transform 1.15s var(--io); transition-delay: calc(var(--i) * 0.1s + 0.1s); }
.kit-js:not(.is-static) .hero:not(.is-in) .blind { transform: scaleY(1); transition: none; }

.strip-fri { background: var(--red); color: #FFFFFF; }
.fri-face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(8px, 1.5vw, 22px); }
.fri-big { font: 500 clamp(27px, 5.6vw, 88px)/0.92 var(--serif); letter-spacing: -0.02em; }
.fri-big span { display: block; }
.fri-small { font: 700 clamp(11px, 1.05vw, 15px)/1.35 var(--sans); }

/* The fifth strip of the photograph, folded up and away like a paper concertina. Built by app.js in motion mode only. */
.fold { position: absolute; inset: 0; perspective: 1500px; perspective-origin: 50% 0; pointer-events: none; }
.fseg { position: absolute; left: 0; top: 0; width: 100%; height: 25%; transform-origin: 50% 0; transform-style: preserve-3d; transform: rotateX(calc(var(--th, 0) * -1deg)); }
.fseg .fseg { top: 100%; height: 100%; transform: rotateX(calc(var(--th, 0) * 2deg)); }
.fseg .fseg .fseg { transform: rotateX(calc(var(--th, 0) * -2deg)); }
.fseg .fseg .fseg .fseg { transform: rotateX(calc(var(--th, 0) * 2deg)); }
.face { position: absolute; inset: 0 0 -0.5px 0; overflow: hidden; background: var(--surface); }
.face .pane { top: calc(var(--k) * -100%); height: 400%; }
.face::after { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: calc(var(--sh, 0) * var(--dk, 0.1)); }

@media (max-width: 999px) {
  .lede { grid-column: 1 / span 4; padding-right: 0; }
  .hero-cta { grid-column: 1 / -1; }
}
@media (max-width: 699px) {
  .lede { grid-column: 1 / -1; }
  .strips { height: calc((100vw - 2 * var(--m)) * 0.95); }
}

/* ---------- Sections ---------- */
.sec { padding: var(--pad) var(--m) 0; }
.ruler { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--gut); margin-bottom: clamp(44px, 5.4vw, 84px); }
.ruler span, .g-head span { border-top: 1px solid var(--line); padding-top: 12px; font: 800 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.ruler .fri, .g-head .fri { color: var(--red); }
.ruler .on { border-top: 3px solid var(--ink); padding-top: 10px; color: var(--ink); }
.ruler .on.fri { border-top-color: var(--red); color: var(--red); }
.sec h2 { font: 500 clamp(34px, 4.6vw, 72px)/1.02 var(--serif); letter-spacing: -0.018em; }
.sec-head { align-items: end; row-gap: 20px; margin-bottom: clamp(44px, 5.6vw, 88px); }
.sec-head h2 { grid-column: 1 / span 3; }
.sec-head p { grid-column: 4 / span 2; max-width: 25em; padding: 0 0 0.45em clamp(0px, 1.2vw, 20px); }

.why .statement { grid-column: 1 / span 4; font: 500 clamp(28px, 3.5vw, 54px)/1.12 var(--serif); letter-spacing: -0.012em; }
.why-p { grid-column: 3 / span 2; margin-top: clamp(32px, 4vw, 64px); max-width: 27em; padding-left: clamp(0px, 1.2vw, 20px); }

@media (max-width: 999px) {
  .sec-head h2, .sec-head p { grid-column: 1 / -1; }
  .sec-head p { padding: 0; max-width: 30em; }
  .why .statement { grid-column: 1 / -1; }
  .why-p { grid-column: 1 / -1; padding-left: 0; }
}

/* ---------- The rota ---------- */
.controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(28px, 3vw, 44px); }
.seg { display: inline-grid; grid-auto-flow: column; border: 1.5px solid var(--ink); }
.seg label { position: relative; display: block; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg label > span { display: flex; align-items: center; height: 48px; padding: 0 20px; border-left: 1.5px solid var(--ink); font: 700 14px/1.15 var(--sans); transition: background-color 0.25s, color 0.25s; }
.seg label:first-of-type > span { border-left: 0; }
.seg input:checked + span { background: var(--ink); color: #FFFFFF; }
.seg label:hover input:not(:checked) + span { background: var(--surface); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; position: relative; z-index: 1; }

.switch { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; font: 700 14px/1.2 var(--sans); text-align: left; }
.sw { position: relative; flex: none; width: 46px; height: 26px; border: 1.5px solid var(--ink); transition: background-color 0.3s; }
.sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 17px; height: 17px; background: var(--ink); transition: transform 0.35s var(--ease), background-color 0.3s; }
.switch[aria-checked="true"] .sw { background: var(--ink); }
.switch[aria-checked="true"] .sw::after { transform: translateX(20px); background: #FFFFFF; }
.switch-w .sw { border-color: #FFFFFF; }
.switch-w .sw::after { background: #FFFFFF; }
.switch-w[aria-checked="true"] .sw { background: #FFFFFF; }
.switch-w[aria-checked="true"] .sw::after { background: var(--red); }
.switch-w:focus-visible { outline-color: #FFFFFF; }

.g-head span { padding-bottom: 12px; }
.rows { display: grid; row-gap: var(--gut); }
.row { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--gut); height: clamp(44px, 4vw, 58px); }
.cell { background: var(--surface); display: flex; align-items: center; padding: 0 clamp(6px, 1vw, 14px); font: 600 clamp(13px, 1.3vw, 18px)/1 var(--serif); color: var(--muted); }
.cell.is-ill { background: none; outline: 1.5px dashed var(--muted); outline-offset: -1.5px; }
.off {
  position: absolute; left: 0; top: 0; height: 100%; width: calc((100% - 4 * var(--gut)) / 5);
  transform: translateX(calc(var(--d) * (100% + var(--gut)))); transition: transform 0.6s var(--ease);
  display: flex; align-items: center; gap: 8px; padding: 0 clamp(6px, 1vw, 14px); border: 0; border-radius: 0;
  background: var(--page); color: var(--red); text-align: left; font: 600 clamp(14px, 1.5vw, 21px)/1 var(--serif);
}
.off::before { content: ""; position: absolute; inset: 0; border: 1.5px solid var(--red); opacity: 0; transition: opacity 0.25s; pointer-events: none; }
.off:hover::before, .off.is-moved::before { opacity: 1; }
.off:active .off-n { transform: scale(0.96); }
.off-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: transform 0.2s var(--ease); padding: 3px 0; }
.off-t { font: 800 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; }
.off svg { flex: none; margin-left: auto; width: 8px; height: 12px; }
.off:focus-visible { outline-offset: 2px; z-index: 2; }

.cover { margin-top: clamp(14px, 1.5vw, 22px); }
.cov { min-width: 0; }
.cov-bar { position: relative; display: block; height: 6px; background: var(--line); }
.cov-fill, .cov-gap { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 0 50%; }
.cov-fill { background: var(--ink); transform: scaleX(var(--f, 0)); transition: transform 0.6s var(--ease); }
.cov-gap { background: var(--red); opacity: 0; transform: scaleX(var(--n, 0)); }
.cov-need { position: absolute; top: -5px; bottom: -5px; left: calc(var(--n, 0) * 100% - 1px); width: 2px; background: var(--ink); }
.cov.is-short .cov-gap { opacity: 0.32; }
.cov.is-short .cov-fill, .cov.is-short .cov-need { background: var(--red); }
.cov-n { display: block; margin-top: 16px; font: 500 clamp(20px, 2.2vw, 32px)/1 var(--serif); }
.cov-t { display: block; margin-top: 6px; font: 600 clamp(11px, 1vw, 13px)/1.3 var(--sans); color: var(--muted); }
.cov.is-short .cov-n, .cov.is-short .cov-t { color: var(--red); }
.cov.is-short .cov-t { font-weight: 800; }

.result { margin-top: clamp(40px, 4.4vw, 68px); min-height: 7.2em; }
.sum { font: 500 clamp(25px, 2.7vw, 42px)/1.12 var(--serif); letter-spacing: -0.012em; max-width: 21em; }
.sum .bad { color: var(--red); }
.sum2 { margin-top: 14px; max-width: 32em; color: var(--muted); font-size: 17px; }
.sum.is-new, .sum2.is-new, .phase-name.is-new, .phase-text.is-new, .pr-n.is-new { animation: rise 0.5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin-top: 18px; min-height: 44px; font: 600 13px/1.4 var(--sans); color: var(--muted); }
.reset { font-size: 13px; }

@media (max-width: 699px) {
  .controls { gap: 8px; margin-bottom: 26px; }
  .seg { display: grid; grid-auto-flow: row; width: 100%; }
  .seg label > span { border-left: 0; border-top: 1.5px solid var(--ink); padding: 0 14px; }
  .seg label:first-of-type > span { border-top: 0; }
  .row { height: 44px; }
  .off { padding: 0 8px; gap: 2px; font-size: 14px; }
  .off-t { display: none; }
  .off svg { width: 6px; height: 10px; }
  .cell { padding: 0 8px; }
  .result { min-height: 8.6em; }
}

/* ---------- The playbook ---------- */
.tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--gut); margin-bottom: clamp(18px, 2vw, 30px); }
.tabs [role="tab"] { position: relative; min-height: 56px; padding: 16px 0 14px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; text-align: left; font: 500 clamp(18px, 2.1vw, 32px)/1 var(--serif); color: var(--muted); transition: color 0.3s; }
.tabs [role="tab"]::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.5s var(--ease); }
.tabs [role="tab"]:hover { color: var(--ink); }
.tabs [aria-selected="true"] { color: var(--ink); }
.tabs [aria-selected="true"]::before { transform: scaleX(1); }

.pb-photo { grid-column: 1 / span 3; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.scene { position: absolute; inset: 0; display: none; }
.scene.on { display: block; }
/* Per photograph crops: keep faces clear of the two gutters. */
.scene[data-ind="software"] .ph img { width: 107%; height: 107%; max-width: none; inset: -3.5% auto auto 0; }
.pb-blinds { position: absolute; inset: -1px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gut); pointer-events: none; }
.pb-blinds span { background: var(--surface); transform: scaleY(0); transform-origin: 50% 0; transition: transform 0.42s var(--io); transition-delay: calc(var(--i) * 70ms); }
.pb-photo.is-shut .pb-blinds span { transform: scaleY(1); }
.pb-gut { position: absolute; top: 0; bottom: 0; width: var(--gut); background: var(--page); }
.pb-gut.g1 { left: calc((100% - 2 * var(--gut)) / 3); }
.pb-gut.g2 { left: calc((100% - 2 * var(--gut)) / 3 * 2 + var(--gut)); }

.phase { grid-column: 4 / span 2; display: flex; flex-direction: column; padding-left: clamp(16px, 2.4vw, 44px); }
.phase-step { font: 800 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.phase-name { margin-top: 16px; font: 500 clamp(36px, 4.2vw, 64px)/1 var(--serif); letter-spacing: -0.018em; }
.phase-text { margin-top: 18px; max-width: 19em; font: 500 clamp(20px, 1.75vw, 26px)/1.32 var(--serif); min-height: 6.6em; }
.scrub { margin-top: auto; padding-top: 24px; }
.scrub input { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 0; background: none; cursor: pointer; border-radius: 0; }
.scrub input::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(var(--ink), var(--ink)) 0 0 / var(--p, 0%) 100% no-repeat, var(--line); }
.scrub input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin-top: -10px; border: 0; border-radius: 0; background: var(--ink); transition: transform 0.2s var(--ease); }
.scrub input:active::-webkit-slider-thumb { transform: scale(0.9); }
.scrub input::-moz-range-track { height: 2px; background: var(--line); }
.scrub input::-moz-range-progress { height: 2px; background: var(--ink); }
.scrub input::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 0; background: var(--ink); }
.scrub input:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; }
.scrub-l { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.scrub-l button { min-height: 44px; padding: 0; border: 0; border-radius: 0; background: none; text-align: left; font: 700 14px/1 var(--sans); color: var(--muted); transition: color 0.25s; }
.scrub-l button:nth-child(2) { text-align: center; }
.scrub-l button:nth-child(3) { text-align: right; }
.scrub-l button[aria-pressed="true"], .scrub-l button:hover { color: var(--ink); }

@media (max-width: 999px) {
  .pb-photo { grid-column: 1 / -1; }
  .phase { grid-column: 1 / -1; padding: 28px 0 0; }
  .phase-text { min-height: 5.2em; max-width: 24em; }
}
@media (max-width: 699px) {
  .tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tabs [role="tab"] { font-size: 15px; }
  .phase-text { min-height: 6.5em; }
}

/* ---------- Members ---------- */
.mem { align-items: end; }
.portrait { grid-column: 1 / span 2; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.quote { grid-column: 3 / span 3; padding: 0 0 0 clamp(16px, 3vw, 56px); }
.quote p { font: 500 clamp(26px, 3.1vw, 48px)/1.14 var(--serif); letter-spacing: -0.012em; }
.quote footer { display: grid; gap: 3px; margin-top: clamp(24px, 2.6vw, 40px); font-size: 15px; }
.quote footer strong { font-weight: 800; }
.quote footer span { color: var(--muted); }
.quote footer .tag { margin-top: 12px; }
.nums { margin-top: clamp(72px, 9vw, 140px); }
.nums > div { grid-column: span 2; display: flex; flex-direction: column-reverse; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 14px; min-width: 0; }
.nums > .n-fri { grid-column: span 1; border-top: 3px solid var(--red); padding-top: 12px; }
.nums dd { font: 500 clamp(40px, 6.2vw, 96px)/1 var(--serif); letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.nums .n-fri dd { color: var(--red); }
.nums dt { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; font: 600 clamp(13px, 1.1vw, 15px)/1.35 var(--sans); color: var(--muted); }

@media (max-width: 999px) {
  .portrait { grid-column: 1 / span 3; }
  .quote { grid-column: 1 / -1; padding: 28px 0 0; }
}

/* ---------- Membership ---------- */
.pr { align-items: stretch; }
.pr-l { grid-column: 1 / span 3; }
.incl { margin-top: clamp(40px, 5vw, 76px); max-width: 30em; }
.incl li { border-top: 1px solid var(--line); padding: 18px 0; font-size: clamp(17px, 1.32vw, 19px); }
.incl li:last-child { border-bottom: 1px solid var(--line); }
.pr-card { grid-column: 5; display: flex; flex-direction: column; align-items: flex-start; min-height: clamp(420px, 37vw, 560px); padding: clamp(14px, 1.5vw, 22px); background: var(--red); color: #FFFFFF; }
.pr-tag { font: 800 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; }
.pr-amt { margin-top: auto; }
.pr-n { display: block; font: 500 clamp(40px, 4vw, 62px)/0.95 var(--serif); letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.pr-per { display: block; margin-top: 8px; font: 700 15px/1.3 var(--sans); }
.pr-card .switch { margin-top: 14px; }
.pr-note { margin: 6px 0 20px; min-height: 2.8em; font: 700 13px/1.4 var(--sans); }
.pr-card .btn { width: 100%; padding: 0 12px; }
.pr-card .btn:focus-visible { outline-color: #FFFFFF; }

@media (max-width: 1239px) {
  .pr-card { grid-column: 4 / span 2; }
}
@media (max-width: 999px) {
  .pr-l { grid-column: 1 / -1; }
  .pr-card { grid-column: 1 / -1; min-height: 0; margin-top: 44px; padding: 20px; }
  .pr-amt { margin-top: 72px; }
  .pr-n { font-size: clamp(56px, 12vw, 84px); }
  .pr-card .btn { width: auto; padding: 0 26px; }
}
@media (max-width: 699px) {
  .pr-card .btn { width: 100%; }
}

/* ---------- Footer ---------- */
.foot { margin-top: var(--pad); padding: clamp(44px, 5.4vw, 80px) var(--m) 36px; border-top: 1px solid var(--line); }
.foot-a { grid-column: 1 / span 2; }
.foot-brand { font: 600 clamp(26px, 2.6vw, 38px)/1 var(--serif); letter-spacing: -0.01em; }
.foot-line { margin-top: 12px; max-width: 17em; color: var(--muted); font-size: 16px; }
.foot-nav { grid-column: 3 / span 2; display: grid; justify-items: start; align-content: start; }
.foot-nav a { padding: 10px 0; font: 600 16px/1.5 var(--sans); text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.foot-fri { grid-column: 5; font: 500 clamp(24px, 2.8vw, 44px)/0.95 var(--serif); letter-spacing: -0.02em; color: var(--red); }
.foot-fri span { display: block; }
.foot-legal { margin-top: clamp(48px, 6vw, 88px); font: 600 13px/1.5 var(--sans); color: var(--muted); max-width: 40em; }
@media (max-width: 699px) {
  .foot-a { grid-column: 1 / span 4; }
  .foot-nav { grid-column: 1 / span 4; grid-row: 2; margin-top: 28px; }
  .foot-fri { grid-column: 5; grid-row: 1; }
}

/* ---------- The member card view ---------- */
.view { position: fixed; inset: 0; z-index: 100; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--page); }
.view-open { overflow: hidden; }
.view-bar { height: var(--mast); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--m); border-bottom: 1px solid var(--line); }
.view-in { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--gut); padding: 0 var(--m); min-height: calc(100vh - var(--mast) - 1px); min-height: calc(100dvh - var(--mast) - 1px); }
.view-form { grid-column: 1 / span 2; align-self: center; padding: 48px clamp(16px, 3vw, 56px) 64px 0; }
.view-h { font: 500 clamp(36px, 4.2vw, 64px)/1 var(--serif); letter-spacing: -0.018em; outline: 0; }
.view-p { margin-top: 16px; max-width: 23em; color: var(--muted); font-size: 17px; }
.vf { display: grid; gap: 24px; margin-top: clamp(28px, 3.2vw, 46px); max-width: 26em; }
.fld { display: grid; gap: 4px; }
.fld > span, .days legend { font: 800 11px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); transition: color 0.2s; }
.fld:focus-within > span { color: var(--ink); }
.fld input { width: 100%; height: 54px; padding: 0; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0; background: none; color: var(--ink); font: 500 26px/1 var(--serif); }
.fld input:focus-visible { outline: 0; border-bottom-width: 4px; }
.hint { margin-top: -16px; font: 700 13px/1.3 var(--sans); color: var(--red); }
.hint:empty { display: none; }
.days-in { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 12px; border: 1.5px solid var(--ink); }
.days-in label { position: relative; display: block; }
.days-in input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.days-in span { display: flex; align-items: center; justify-content: center; height: 52px; border-left: 1.5px solid var(--ink); font: 800 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; transition: background-color 0.25s, color 0.25s; }
.days-in label:first-child span { border-left: 0; }
.days-in label:hover input:not(:checked) + span { background: var(--surface); }
.days-in input:checked + span { background: var(--red); color: #FFFFFF; }
.days-in input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; position: relative; z-index: 1; }
.vf-go { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; margin-top: 6px; }

.desk { grid-column: 3 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; margin-right: calc(-1 * var(--m)); padding: clamp(24px, 5vw, 88px); background: var(--surface); }
.desk-note { position: relative; z-index: 1; font: 700 13px/1.3 var(--sans); color: var(--muted); }
.card { position: relative; display: flex; flex-direction: column; width: min(100%, 620px); aspect-ratio: 1.586 / 1; background: #FFFFFF; border: 1.5px solid var(--ink); border-radius: clamp(10px, 1.3vw, 18px); container-type: inline-size; }
.card-top { display: flex; align-items: center; justify-content: space-between; padding: 5cqw 5.5cqw 0; font: 800 clamp(11px, 2cqw, 12px)/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; }
.card-brand { display: inline-flex; align-items: center; gap: 1.8cqw; }
.card-brand svg { width: max(4.6cqw, 20px); height: auto; }
.card-mid { margin-top: auto; padding: 0 5.5cqw; min-width: 0; }
.card-name { display: flex; align-items: flex-end; min-height: 10.5cqw; font: 500 calc(10cqw * var(--fit, 1))/1.05 var(--serif); letter-spacing: -0.02em; white-space: nowrap; }
.card-co { margin-top: 1.6cqw; min-height: 1.25em; font: 600 calc(clamp(13px, 3cqw, 18px) * var(--fit, 1))/1.25 var(--sans); white-space: nowrap; overflow: hidden; }
.ghost { color: var(--line); }
.ch { display: inline-block; white-space: pre; }
.ch.in { animation: set 0.3s var(--ease) both; }
@keyframes set { from { opacity: 0; transform: translateY(0.2em); } to { opacity: 1; transform: none; } }
.card-meta { display: flex; justify-content: space-between; gap: 12px; padding: 3.4cqw 5.5cqw 3.6cqw; font: 700 clamp(11px, 2.3cqw, 13px)/1 var(--sans); letter-spacing: 0.06em; color: var(--muted); font-variant-numeric: tabular-nums; }
.card-week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.cw { display: flex; align-items: center; justify-content: space-between; padding: 2.5cqw 2.6cqw 2.5cqw 3cqw; border-left: 1px solid var(--line); font: 800 clamp(11px, 2.1cqw, 12px)/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
.cw:first-child { border-left: 0; padding-left: 5.5cqw; }
.cw:last-child { padding-right: 5.5cqw; }
.hole { position: relative; flex: none; width: max(4.6cqw, 16px); height: max(4.6cqw, 16px); border: 1.5px solid var(--line); border-radius: 50%; }
.cw.on { color: var(--red); }
@container (max-width: 430px) {
  .cw-l .x { display: none; }
  .cw { padding-left: 4cqw; padding-right: 4cqw; }
}
.cw.on .hole { border-color: var(--ink); background: var(--surface); animation: punch 0.34s var(--ease) both; }
@keyframes punch { from { transform: scale(0.3); } to { transform: none; } }
.chad { position: absolute; inset: -1.5px; border: 1.5px solid var(--ink); border-radius: 50%; background: #FFFFFF; pointer-events: none; animation: chad 0.8s cubic-bezier(0.5, 0, 0.9, 0.6) both; }
@keyframes chad { from { opacity: 1; transform: none; } 55% { opacity: 1; } to { opacity: 0; transform: translate(-30%, 240%) rotate(-120deg); } }
.is-static .chad { display: none; }
.stamp { position: absolute; right: 5.5cqw; top: 15cqw; padding: 1.9cqw 2.4cqw 1.7cqw 2.8cqw; border: 0.55cqw solid var(--red); color: var(--red); font: 800 clamp(11px, 3.6cqw, 22px)/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap; transform: rotate(-8deg); opacity: 0; pointer-events: none; }
.card.is-stamped .stamp { opacity: 1; animation: stamp 0.36s cubic-bezier(0.2, 1.3, 0.4, 1) both; }
@keyframes stamp { from { opacity: 0; transform: rotate(-8deg) scale(1.8); } to { opacity: 1; transform: rotate(-8deg) scale(1); } }

@media (max-width: 999px) {
  .view-in { display: flex; flex-direction: column; min-height: 0; }
  .desk { order: -1; margin: 0 calc(-1 * var(--m)); padding: 22px var(--m) 18px; gap: 12px; }
  .card { width: min(100%, 460px); }
  .view-form { padding: 30px 0 56px; }
  .vf { max-width: 30em; }
}
