/* Rob Smith, Elite Dads. Written for this site on 4 Dec 2026. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-wdth-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* floor black, rig yellow, log white: sources in build/direction.md */
  --floor: #111214;
  --panel: #1c1d21;
  --line: #34363d;
  --ink: #f1f0ec;
  --soft: #b9babf;
  --rig: #f2c200;
  --rig-press: #d9ae00;
  --on-rig: #111214;
  --on-rig-soft: #2f2a05;
  --log: #edebe6;
  --log-line: #c9c6bd;
  --on-log: #111214;
  --on-log-soft: #45464b;
  --warn: #ffb3a7;
  --warn-on-log: #9b1f10;
  --focus: #ffffff;
  --display: "Bricolage Grotesque", sans-serif;
  --body: "Onest", sans-serif;
  --t-s: 0.875rem;
  --t-m: 1rem;
  --t-l: 1.125rem;
  --t-xl: 1.375rem;
  --t-2xl: 1.75rem;
  --t-3xl: clamp(2rem, 6.2vw + 0.7rem, 3.75rem);
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s8: 4.5rem;
  --gut: max(1rem, env(safe-area-inset-left));
  --r1: 4px;
  --r2: 10px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --d1: 160ms;
  --d2: 280ms;
  --d3: 480ms;
  --wide: 70rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--floor);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-m);
  line-height: 1.55;
  font-synthesis: none;
  overflow-x: clip;
}
::selection { background: var(--rig); color: var(--on-rig); }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
h1, h2, h3 { font-family: var(--display); font-weight: 800; font-stretch: 92%; line-height: 1.03; letter-spacing: -0.02em; margin: 0; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-xl); line-height: 1.1; }
p { margin: 0; }
.stop { color: var(--rig); }
/* his own lines run as his sentences; only a client's words keep their marks */
q { quotes: none; }
q.c { quotes: "c" "d"; }
.skip { position: absolute; left: var(--gut); top: -4rem; z-index: 30; background: var(--rig); color: var(--on-rig); padding: var(--s3) var(--s4); font-weight: 700; }
.skip:focus-visible { top: var(--s2); }
.wrap { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gut); }
.sec { padding-block: var(--s7) var(--s6); }
.sec > .wrap > * + * { margin-top: var(--s4); }
.sec h2 + * { margin-top: var(--s3); }
.soft { color: var(--soft); }
.fine { font-size: var(--t-s); color: var(--soft); }
.num { font-variant-numeric: tabular-nums; }

/* his dashed label, one role: over a log line (Terry carousel) */
.wk { display: flex; align-items: center; gap: var(--s2); font-family: var(--display); font-weight: 800; font-stretch: 85%; font-size: var(--t-s); letter-spacing: 0.04em; text-transform: uppercase; color: var(--rig); }
.wk::before { content: ""; width: 1.4rem; height: 3px; background: currentColor; flex: none; }
.on-log .wk, .on-rig .wk { color: inherit; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.125rem; padding: 0 var(--s4); border: 2px solid var(--rig); border-radius: var(--r1); background: var(--rig); color: var(--on-rig); font: 700 var(--t-m)/1 var(--body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--d1) ease, transform var(--d1) var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.75; cursor: default; }
.btn-ink { background: var(--floor); border-color: var(--floor); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.on-log .btn-ghost { color: var(--on-log); border-color: var(--on-log); }
.textlink { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--rig-press); border-color: var(--rig-press); }
  .btn-ink:hover, .join-card > form .btn:hover { background: var(--panel); border-color: var(--panel); }
  .btn-ghost:hover { background: var(--panel); }
  .on-log .btn-ghost:hover { background: var(--log-line); }
  .textlink:hover { color: var(--rig); }
  .nav a:hover { color: var(--rig); }
}

/* header */
.top { position: sticky; top: 0; z-index: 20; background: var(--floor); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: var(--s2); min-height: 3.5rem; flex-wrap: wrap; }
.brand { display: flex; flex-direction: column; justify-content: center; min-height: 2.75rem; margin-right: auto; text-decoration: none; line-height: 1.1; }
.brand-name { font-family: var(--display); font-weight: 800; font-stretch: 90%; font-size: var(--t-l); letter-spacing: -0.01em; }
.brand-sub { font-size: 0.8125rem; color: var(--rig); font-weight: 600; }
.btn-top { min-height: 2.75rem; padding: 0 var(--s3); font-size: 0.9375rem; }
.menu-btn { min-width: 2.75rem; min-height: 2.75rem; padding: 0 var(--s2); background: transparent; border: 2px solid var(--line); border-radius: var(--r1); color: var(--ink); font: 700 0.9375rem/1 var(--body); cursor: pointer; }
.nav { display: grid; width: 100%; padding-bottom: var(--s3); }
.nav a { display: flex; align-items: center; min-height: 2.75rem; padding: 0 var(--s1); border-top: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.nav a[aria-current="page"] { color: var(--rig); }
.js .nav { display: none; }
.js .nav.is-open { display: grid; }
html:not(.js) .menu-btn { display: none; }

/* photo frames: the yellow keyline from his carousels */
.kl { position: relative; background: var(--panel); overflow: hidden; }
.kl img, .kl video { width: 100%; height: 100%; object-fit: cover; }
.kl::before, .kl::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border: 0 solid var(--rig); }
.kl::before { border-width: 2px 0 0 2px; }
.kl::after { border-width: 0 2px 2px 0; }
.kl-ink::before, .kl-ink::after { border-color: var(--on-rig); }
.whole { background: var(--floor); }
.whole img { object-fit: contain; height: auto; }
.cap { margin-top: var(--s2); font-size: var(--t-s); color: var(--soft); }

/* the clock */
.clock [data-clock] { display: block; }
.clock small { display: block; padding: 0.15em 0 0.25em; font-family: var(--body); font-stretch: 100%; font-weight: 700; font-size: 0.8125rem; line-height: 1; letter-spacing: 0; text-align: center; }
.close-clock .clock { font-size: 2.25rem; text-align: center; }
.clock { display: inline-block; background: var(--rig); color: var(--on-rig); font-family: var(--display); font-weight: 800; font-stretch: 75%; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -0.01em; padding: 0.12em 0.22em 0.16em; }

/* hero */
.hero { padding-block: var(--s3) var(--s6); }
.hero-grid { display: grid; gap: var(--s3); }
.hero-frame { aspect-ratio: 358 / 200; max-height: 58svh; overflow: visible; }
.hero-frame img { object-position: 50% 16%; }
.hero-frame .clock { position: absolute; right: -2px; bottom: -1.1rem; z-index: 3; font-size: 2.75rem; min-width: 3.1em; text-align: center; }
.hero h1 { margin-top: var(--s5); }
.hero .sub { margin-top: var(--s3); font-size: var(--t-m); }
.page-top { padding-block: var(--s5) var(--s6); }
.page-top .sub { margin-top: var(--s3); font-size: var(--t-l); line-height: 1.45; max-width: 38rem; }
.page-top .kl { margin-top: var(--s5); }
.top-photo { aspect-ratio: 4 / 5; max-width: 30rem; }
.top-photo.whole { aspect-ratio: auto; }

/* sign-up */
.join { margin-top: var(--s4); scroll-margin-top: 6rem; }
.join label { display: block; font-size: var(--t-s); font-weight: 600; margin-bottom: var(--s1); }
.join-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.join input { flex: 1 1 11rem; min-width: 0; min-height: 3.125rem; padding: 0 var(--s3); border: 2px solid var(--log); border-radius: var(--r1); background: var(--log); color: var(--on-log); font: 500 var(--t-m)/1.2 var(--body); }
.join input:focus-visible { outline-offset: 2px; }
.join .btn { flex: 0 0 auto; }
.join-alert { margin-top: var(--s2); color: var(--warn); font-weight: 600; font-size: var(--t-s); }
.join-alert:empty { display: none; }
.join-under { margin-top: var(--s2); font-size: var(--t-s); color: var(--soft); }
.join-open { margin-top: var(--s3); font-size: var(--t-s); color: var(--soft); }
.join-open a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; color: var(--ink); }
.join-open.is-back { padding: var(--s3) var(--s4); background: var(--log); color: var(--on-log); border-radius: var(--r1); font-size: var(--t-m); font-weight: 700; }
.join-open.is-back a { margin-left: var(--s2); padding: 0 var(--s4); min-height: 3rem; background: var(--floor); color: var(--ink); border-radius: var(--r1); text-decoration: none; }
.join-card { padding: var(--s4); }
.join-card input { border-color: var(--on-log); }
.join-card > form .btn { background: var(--floor); border-color: var(--floor); color: var(--ink); }
.join-card .join-under, .join-card .join-open { color: var(--on-log-soft); }
.join-card .join-open a { color: var(--on-log); }
.join-card .join-alert { color: var(--warn-on-log); }
.join-card .in-card, .join-card .code-card { padding: 0; background: none; }
.join-card .in-card .clock { top: calc(-1 * var(--s4) - 0.9rem); right: 0; }
.when { font-weight: 700; }
.on-rig .join-under, .on-rig .join-open { color: var(--on-rig-soft); }
.on-rig .join-open a { color: var(--on-rig); }
.on-rig .join input { border-color: var(--on-rig); }
.on-rig .join-alert { color: var(--on-rig); }
.on-rig .join .btn { background: var(--floor); border-color: var(--floor); color: var(--ink); }

/* the log card: "You're in", the code screen, a client's own words */
.on-log { --focus: var(--floor); background: var(--log); color: var(--on-log); border-radius: var(--r1); }
.in-card { position: relative; padding: var(--s5) var(--s4) var(--s4); }
.in-card .clock { position: absolute; right: var(--s4); top: -0.9rem; font-size: 1.75rem; }
.in-title { font-family: var(--display); font-weight: 800; font-stretch: 92%; font-size: 2.25rem; line-height: 1; letter-spacing: -0.02em; }
.in-thanks { margin-top: var(--s2); }
.in-rows { margin-top: var(--s4); border-top: 2px solid var(--on-log); }
.in-row { padding: var(--s3) 0; border-bottom: 1px solid var(--log-line); }
.in-row .when { margin-bottom: var(--s1); }
.in-row .btn { margin-top: var(--s2); width: 100%; }
.in-note { margin-top: var(--s2); font-size: var(--t-s); color: var(--on-log-soft); }
.pv-line { margin-top: var(--s3); font-size: var(--t-s); color: var(--on-log-soft); }
.day1 { margin-top: var(--s4); }
.phone { max-width: 20rem; margin-inline: auto; padding: var(--s4); background: var(--floor); color: var(--ink); border-radius: 1.25rem; border: 2px solid var(--on-log); --focus: var(--ink); }
.phone-bar { display: flex; justify-content: space-between; font-size: var(--t-s); color: var(--soft); }
.phone .ph { margin-top: var(--s3); font-family: var(--display); font-weight: 800; font-stretch: 92%; font-size: var(--t-xl); line-height: 1.1; }
.phone .fine { margin-top: var(--s1); }
.moves { list-style: none; margin: var(--s3) 0 0; padding: 0; border-top: 1px solid var(--line); }
.moves li { display: flex; justify-content: space-between; gap: var(--s3); padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.moves span { color: var(--rig); font-variant-numeric: tabular-nums; white-space: nowrap; }
.phone .btn { width: 100%; margin-top: var(--s4); }
.code-card { padding: var(--s4); }
.code-card h3 { font-size: var(--t-2xl); }
.code-card p { margin-top: var(--s2); overflow-wrap: anywhere; }
.code-card label { margin-top: var(--s3); }
.code-card input { border-color: var(--on-log); letter-spacing: 0.3em; font-variant-numeric: tabular-nums; font-size: var(--t-l); max-width: 12rem; }
.code-card .join-alert { color: var(--warn-on-log); }
.code-more { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.code-more .btn { min-height: 2.75rem; font-size: 0.9375rem; white-space: normal; }

/* the yellow panel and the scrubber */
.on-rig { --focus: var(--floor); background: var(--rig); color: var(--on-rig); }
.on-rig .fine, .on-rig .soft { color: var(--on-rig-soft); }
.his { margin: 0; font-family: var(--display); font-weight: 700; font-stretch: 90%; font-size: var(--t-xl); line-height: 1.18; letter-spacing: -0.01em; text-wrap: balance; }
.his + .his { margin-top: var(--s2); }
.scrub { margin-top: var(--s5); }
.scrub-view { position: relative; aspect-ratio: 4 / 4.2; max-width: 30rem; overflow: visible; background: var(--floor); }
.scrub-view img { position: absolute; inset: 0; object-position: 50% 30%; }
.js .scrub-view img { visibility: hidden; }
.js .scrub-view img.is-on { visibility: visible; }
html:not(.js) .scrub-view img + img { display: none; }
.scrub-clock { position: absolute; left: -2px; bottom: -1rem; z-index: 3; font-size: 3.5rem; background: var(--floor); color: var(--rig); min-width: 3.05em; text-align: center; }
.scrub-label { display: block; margin-top: var(--s6); font-weight: 700; font-size: var(--t-s); }
.scrub input[type="range"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; max-width: 30rem; height: 2.75rem; margin: 0; background: transparent; cursor: pointer; }
.scrub input[type="range"]::-webkit-slider-runnable-track { height: 0.5rem; background: var(--on-rig); border-radius: 0; }
.scrub input[type="range"]::-moz-range-track { height: 0.5rem; background: var(--on-rig); border-radius: 0; }
.scrub input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 2rem; height: 2.5rem; margin-top: -1rem; background: var(--floor); border: 3px solid var(--rig); outline: 2px solid var(--floor); border-radius: var(--r1); }
.scrub input[type="range"]::-moz-range-thumb { width: 1.6rem; height: 2.1rem; background: var(--floor); border: 3px solid var(--rig); outline: 2px solid var(--floor); border-radius: var(--r1); }
.ticks { display: flex; justify-content: space-between; max-width: 30rem; font-size: var(--t-s); font-weight: 700; font-variant-numeric: tabular-nums; }
.scrub-rows { margin: var(--s4) 0 0; max-width: 30rem; }
.scrub-rows { height: 19.5rem; overflow: hidden; }
.scrub-rows > div { padding: var(--s3) 0; border-top: 2px solid var(--on-rig); }
@media (min-width: 22.5rem) {
  .scrub-rows { height: 16.5rem; }
}
.scrub-rows dt { font-family: var(--display); font-weight: 800; font-stretch: 85%; font-size: var(--t-s); letter-spacing: 0.04em; text-transform: uppercase; }
.scrub-rows dd { margin: var(--s1) 0 0; font-size: var(--t-l); line-height: 1.35; }
.scrub-rows dd strong { display: block; font-family: var(--display); font-weight: 800; font-stretch: 90%; font-size: var(--t-xl); line-height: 1.1; }
.scrub-list { margin: var(--s4) 0 0; padding-left: 1.2rem; }
.scrub-list li { margin-top: var(--s2); }
.js .scrub-list { display: none; }
html:not(.js) .scrub-live { display: none; }
.after-scrub { margin-top: var(--s6); display: grid; gap: var(--s4); max-width: 38rem; }

/* the calendar: Mon to Sun across, week 1 and week 2 as rows */
.cal { width: 100%; max-width: 34rem; border-collapse: separate; border-spacing: 2px; table-layout: fixed; margin-top: var(--s4); }
.cal caption { text-align: left; padding-bottom: var(--s2); }
.cal th { font-size: var(--t-s); font-weight: 600; color: var(--soft); padding: var(--s1) 0; text-align: center; }
.cal th.wkrow { text-align: left; padding-top: var(--s3); color: var(--ink); font-weight: 700; }
.cal td { padding: 0; height: 4rem; background: var(--panel); vertical-align: top; }
.cal td > * { display: flex; flex-direction: column; justify-content: space-between; width: 100%; height: 100%; min-height: 4rem; padding: 0.3rem 0.25rem; color: inherit; text-decoration: none; }
.cal .d { font-size: 0.8125rem; font-variant-numeric: tabular-nums; color: var(--soft); line-height: 1; }
.cal .m { font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 0.9375rem; line-height: 1.05; letter-spacing: 0; overflow-wrap: normal; hyphens: manual; }
.cal td.s { background: var(--rig); color: var(--on-rig); }
.cal td.s .d { color: var(--on-rig-soft); }
.cal td.s .m { font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 1.5rem; letter-spacing: -0.01em; }
.cal td.s .m { line-height: 0.95; }
.cal td.s .m small { display: block; font-family: var(--body); font-stretch: 100%; font-size: 0.75rem; font-weight: 700; letter-spacing: 0; line-height: 1.2; }
.cal td.c { box-shadow: inset 0 0 0 2px var(--rig); }
.cal td.c .m { color: var(--rig); }
.cal td a:focus-visible { outline-offset: -4px; }
.cal td.s a:focus-visible { outline-color: var(--floor); }
.key { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin-top: var(--s3); padding: 0; list-style: none; font-size: var(--t-s); color: var(--soft); }
.key li { display: flex; align-items: center; gap: var(--s2); }
.key i { width: 0.9rem; height: 0.9rem; background: var(--rig); flex: none; }
.key .k2 i { background: transparent; box-shadow: inset 0 0 0 2px var(--rig); }
.key .k3 i { background: var(--panel); }

/* day rows (14 days) */
.days { list-style: none; margin: var(--s4) 0 0; padding: 0; max-width: 38rem; }
.days li { display: grid; grid-template-columns: 4.2rem 1fr; gap: var(--s3); padding: var(--s3) var(--s2); border-top: 1px solid var(--line); scroll-margin-top: 5rem; }
.days li:target { background: var(--panel); box-shadow: inset 3px 0 0 var(--rig); }
.days .dn { font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: var(--t-l); color: var(--rig); font-variant-numeric: tabular-nums; }


/* stories */
.strip { align-items: flex-start; display: flex; gap: var(--s3); margin: var(--s4) calc(-1 * var(--gut)) 0; padding: 0 var(--gut) var(--s3); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.strip:focus-visible { outline-offset: -2px; }
.card { flex: 0 0 min(17.5rem, 78vw); background: var(--panel); display: flex; flex-direction: column; }
.card .kl { aspect-ratio: 4 / 5; }
.card .kl img { object-fit: contain; background: var(--floor); }
.card-b { padding: var(--s3) var(--s4) var(--s4); display: grid; gap: var(--s2); }
.big { font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: 1.75rem; line-height: 1.05; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.story { display: grid; gap: var(--s4); padding-block: var(--s6); border-top: 1px solid var(--line); }
.story-t { display: grid; gap: var(--s2); align-content: start; }
.story ul { margin: 0; padding-left: 1.1rem; }
.story li { margin-top: var(--s1); }
.story .kl { max-width: 26rem; }
.story .kl img { object-fit: contain; height: auto; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); max-width: 26rem; }
.posted { font-size: var(--t-s); color: var(--soft); }
.wall { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-top: var(--s4); }
.wall figure { margin: 0; }
.wall .kl img { object-fit: contain; height: auto; }
.wall figcaption { margin-top: var(--s2); font-size: var(--t-s); }
figure { margin: 0; }

/* rows of text beside a photo */
.duo { display: grid; gap: var(--s5); }
.duo .kl { aspect-ratio: 4 / 5; max-width: 26rem; }
.duo-t > * + * { margin-top: var(--s3); }
.links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.list { margin: 0; padding: 0; list-style: none; max-width: 38rem; }
.list li { padding: var(--s3) 0; border-top: 1px solid var(--line); }
.list li strong { display: block; font-family: var(--display); font-weight: 800; font-stretch: 90%; font-size: var(--t-xl); line-height: 1.1; }
.list li q, .list li span { display: block; margin-top: var(--s1); }
.list.count { counter-reset: n; }
.list.count li { counter-increment: n; padding-left: 2.6rem; position: relative; }
.list.count li::before { content: counter(n); position: absolute; left: 0; top: var(--s3); font-family: var(--display); font-weight: 800; font-stretch: 75%; font-size: 2rem; line-height: 1; color: var(--rig); }
.moverows { list-style: none; margin: var(--s4) 0 0; padding: 0; max-width: 38rem; }
.moverows li { display: grid; grid-template-columns: 4.6rem 1fr; column-gap: var(--s3); padding: var(--s3) 0; border-top: 2px solid var(--on-rig); }
.moverows .clock { grid-row: span 2; align-self: start; justify-self: start; font-size: 1.5rem; background: var(--floor); color: var(--rig); }
.moverows strong { display: block; font-family: var(--display); font-weight: 800; font-stretch: 90%; font-size: var(--t-xl); line-height: 1.1; }
.moverows q { grid-column: 2; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); margin-top: var(--s4); max-width: 38rem; }
.trio .kl { aspect-ratio: 4 / 5; }
.fridays { display: flex; gap: var(--s3); margin: var(--s4) calc(-1 * var(--gut)) 0; padding: 0 var(--gut) var(--s3); overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.fridays figure { flex: 0 0 min(14rem, 62vw); }
.fridays .kl { aspect-ratio: 4 / 5; }
.logq { padding: var(--s4); max-width: 34rem; }
.logq q { display: block; margin-top: var(--s2); font-size: var(--t-l); line-height: 1.4; font-style: italic; }
.logq .fine { color: var(--on-log-soft); margin-top: var(--s2); }
.loop-wrap { position: relative; max-width: 30rem; aspect-ratio: 4 / 5; }
.loop-btn { position: absolute; right: var(--s2); bottom: var(--s2); z-index: 3; min-height: 2.75rem; min-width: 4.5rem; padding: 0 var(--s3); background: var(--floor); color: var(--ink); border: 2px solid var(--rig); border-radius: var(--r1); font: 700 var(--t-s)/1 var(--body); cursor: pointer; }
html:not(.js) .loop-btn { display: none; }

/* FAQ */
.faq { max-width: 38rem; margin-top: var(--s4); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 3.25rem; padding: var(--s2) 0; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 0.7rem; height: 0.7rem; border-right: 3px solid var(--rig); border-bottom: 3px solid var(--rig); transform: rotate(45deg); flex: none; margin-right: var(--s1); transition: transform var(--d1) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 0 var(--s4); color: var(--soft); max-width: 34rem; }

/* closes and footer */
.close { padding-block: var(--s7); }
.close .wrap > * + * { margin-top: var(--s3); }
.close .join { max-width: 30rem; }
.close h2 { max-width: 30rem; }
.foot { border-top: 1px solid var(--line); padding-block: var(--s6); font-size: var(--t-s); color: var(--soft); }
.foot .wrap > * + * { margin-top: var(--s2); }
.foot strong { color: var(--ink); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 var(--s4); }
.foot a { display: inline-flex; align-items: center; min-height: 2.75rem; min-width: 2.75rem; }
.pv-note { color: var(--soft); }

/* motion: "the clock". Rigid steel, no overshoot. Only under .js and when motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  .js .rv.kl::before { clip-path: inset(0 100% 100% 0); transition: clip-path var(--d3) var(--ease-out); }
  .js .rv.kl::after { clip-path: inset(100% 0 0 100%); transition: clip-path var(--d3) var(--ease-out) 60ms; }
  .js .rv.kl > img, .js .rv.kl > video { opacity: 0; transform: scale(1.04); transition: opacity var(--d2) ease, transform var(--d3) var(--ease-out); }
  .js .rv.kl.is-in::before, .js .rv.kl.is-in::after { clip-path: inset(0); }
  .js .rv.kl.is-in > img, .js .rv.kl.is-in > video { opacity: 1; transform: none; }
  .js .cal.rv td.s > *, .js .cal.rv td.c > * { opacity: 0; transform: scale(0.94); transition: opacity var(--d1) ease, transform var(--d2) var(--ease-out); transition-delay: calc(var(--i, 0) * 55ms); }
  .js .cal.rv.is-in td > * { opacity: 1; transform: none; }
  .js .in-card.is-new, .js .code-card.is-new { animation: card-in var(--d2) var(--ease-out); }
  .js .scrub-view img.is-on { animation: frame-in var(--d1) ease; }
}
@keyframes card-in { from { opacity: 0; transform: translateY(0.6rem); } to { opacity: 1; transform: none; } }
@keyframes frame-in { from { opacity: 0.55; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .btn, .faq summary::after { transition: none; }
}

/* wider screens */
@media (min-width: 40rem) {
  .wall { grid-template-columns: repeat(4, 1fr); }
  .story { grid-template-columns: minmax(0, 22rem) 1fr; gap: var(--s6); }
  .story.solo .story-t { grid-column: 2; }
  .duo { grid-template-columns: minmax(0, 24rem) 1fr; align-items: center; }
}
@media (min-width: 56rem) {
  .top-in { flex-wrap: nowrap; }
  .menu-btn { display: none; }
  .js .nav, .nav { display: flex; width: auto; order: 2; padding: 0; gap: var(--s4); }
  .nav a { border: 0; }
  .brand { margin-right: var(--s5); }
  .btn-top { order: 3; margin-left: auto; }
  .hero { padding-block: var(--s6) var(--s7); }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--s7); align-items: center; }
  .hero-frame { aspect-ratio: 4 / 4.6; order: 2; max-width: 30rem; justify-self: end; width: 100%; }
  .hero-frame img { object-position: 50% 30%; }
  .hero-frame .clock { font-size: 4.5rem; }
  .sec { padding-block: var(--s8); }
  .scrub { display: grid; grid-template-columns: minmax(0, 28rem) 1fr; gap: var(--s7); align-items: start; }
  .scrub-rows { margin-top: 0; height: 15rem; }
  .page-grid { display: grid; grid-template-columns: 1fr minmax(0, 26rem); gap: var(--s7); align-items: center; }
  .page-grid .kl { margin-top: 0; }
  .strip { margin-inline: 0; padding-inline: 0; }
  .fridays { margin-inline: 0; padding-inline: 0; }
  h2 { font-size: 2.5rem; }
}
