/* JDD MCS · "One day"
 * The page is one day: the sky behind everything follows your scroll from dawn,
 * through a busy day, into a short night and out into the next morning.
 *
 * Layout: the design is drawn on a 1440 × 900 stage. On landscape screens every
 * size is scaled by --u (one design pixel), so each scene keeps its composition.
 * Portrait and narrow screens get their own compact layout further down.
 * Motion: scroll-driven CSS animations. Browsers without them get a plain,
 * readable long page (see "Fallback" at the end).
 */

:root {
  --ink: #111418;
  --muted: #5B636B;
  --line: #E3E6E9;
  --soft: #F4F6F8;
  --accent: #14466B;
  --paper: #F6F2EB;
  --paper-line: #E2DCD1;
  --body: #2A3138;
  --gold: #9A6A2F;
  --gold-ink: #6B4A22;
  --night: #121A27;
  --night-gold: #E9C98F;

  --u: min(100vw / 1440, 100svh / 900, 1.35px);
  --pad-x: calc(80 * var(--u));
  --scene: 100svh;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: #FFFFFF;
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
p, h1, h2, h3, blockquote, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--accent); }
a:hover { color: var(--ink); }

.serif { font-family: Newsreader, Georgia, serif; font-weight: 400; font-variation-settings: 'opsz' 24; }
.sans { font-family: Inter, system-ui, sans-serif; }
.muted { color: var(--muted); }
.small { font-size: max(13px, calc(15 * var(--u))); line-height: 1.5; }

.kicker {
  color: var(--gold);
  font-size: calc(28 * var(--u));
  line-height: 1.2;
  font-style: italic;
}
.display {
  color: var(--ink);
  font-size: calc(88 * var(--u));
  line-height: 1.02;
  letter-spacing: -0.032em;
}
.lede {
  color: var(--muted);
  font-size: max(16px, calc(21 * var(--u)));
  line-height: 1.5;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: max(12px, calc(14 * var(--u))) max(16px, calc(20 * var(--u)));
  background-color: var(--ink);
  border-radius: 4px;
  color: #FFFFFF;
  font-size: max(14px, calc(15 * var(--u)));
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s;
}
.btn:hover { color: #FFFFFF; background-color: var(--accent); }
.btn-lg { padding: max(16px, calc(18 * var(--u))) max(20px, calc(26 * var(--u))); font-size: max(15px, calc(16 * var(--u))); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Sky and header ---------- */

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: #FFFFFF;
  pointer-events: none;
}

.hdr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: max(64px, calc(88 * var(--u)));
  padding: 0 var(--pad-x);
  color: var(--ink);
}
.hdr-home { display: block; }
.hdr-logo { width: max(96px, calc(120 * var(--u))); height: auto; aspect-ratio: 3 / 1; object-fit: contain; }
.hdr-right { display: flex; align-items: center; gap: max(16px, calc(24 * var(--u))); }
.hdr-phone { color: inherit; font-size: max(13px, calc(14 * var(--u))); line-height: 1; text-decoration: none; white-space: nowrap; }
.hdr-phone:hover { color: inherit; text-decoration: underline; }
.hdr-cta {
  display: inline-flex;
  padding: 10px 16px;
  border: 1px solid currentColor;
  border-radius: 4px;
  color: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.hdr-cta:hover { color: inherit; background-color: #1114180F; }

/* ---------- Scenes ---------- */

main { position: relative; z-index: 1; }
.scene { position: relative; }
.stage {
  position: sticky;
  top: 0;
  height: var(--scene);
  padding: calc(88 * var(--u)) var(--pad-x) calc(72 * var(--u));
  overflow: hidden;
}
.stack { display: grid; }
.stack > * { grid-area: 1 / 1; }
/* A swapped line: the wrapper fades it out, the child fades it in. One animation per element, so each has a single timeline and range (Safari drops comma-listed ranges). */
.swap-out { display: grid; min-width: 0; }

/* Scene lengths, as multiples of one screen (the prototype's 1440 × 900 stage) */
.dawn    { height: calc(var(--scene) * 2); }
.day     { height: calc(var(--scene) * 4); }
.late    { height: calc(var(--scene) * 2.3333); }
.close   { height: calc(var(--scene) * 2.6667); }
.morning { height: calc(var(--scene) * 2.6667); }
.work    { height: calc(var(--scene) * 4); }
.later   { height: calc(var(--scene) * 2.6667); }
.who     { height: calc(var(--scene) * 3); }
.say     { height: calc(var(--scene) * 3); }

/* 6:00 am */
.dawn .stage {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: calc(56 * var(--u));
}
.bokeh { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; animation: bokehIn 2.4s ease-out both; }
.orb { position: absolute; }
.orb > div {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-image: radial-gradient(circle at 40% 38%, var(--c) 0%, color-mix(in srgb, var(--c) 80%, transparent) 55%, transparent 72%);
  filter: blur(calc(34 * var(--u)));
  animation-timeline: --dawn;
  animation-range: contain 0% contain 70%;
}
.dawn-copy { display: flex; flex-direction: column; gap: calc(28 * var(--u)); max-width: calc(1100 * var(--u)); }
.dawn-kicker { font-size: calc(32 * var(--u)); letter-spacing: -0.4px; }
.dawn .lede { max-width: max(320px, calc(620 * var(--u))); }
.dawn-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: calc(24 * var(--u));
  border-top: 1px solid #1114181F;
}
.dawn-hint { display: flex; align-items: center; gap: 14px; }
.dawn-hint svg { width: 20px; height: 20px; flex-shrink: 0; }
.dawn-hint p { font-size: calc(24 * var(--u)); line-height: 1.2; }
.dawn-book { display: flex; align-items: center; gap: 18px; }
.dawn-book .muted { font-size: max(13px, calc(15 * var(--u))); line-height: 1.5; }

/* 7:12 am to 5:15 pm */
.day .stage { display: flex; flex-direction: column; justify-content: center; }
.clock {
  position: absolute;
  right: var(--pad-x);
  top: 50%;
  width: calc(340 * var(--u));
  height: calc(340 * var(--u));
  margin-top: calc(-170 * var(--u));
  overflow: visible;
}
.hand { transform-box: view-box; transform-origin: 180px 180px; }
.day-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: calc(20 * var(--u)); max-width: calc(900 * var(--u)); }
.day-times { min-height: calc(36 * var(--u)); }
.day-intro { color: var(--body); font-size: calc(36 * var(--u)); line-height: 1.25; }
.day-hats { min-height: calc(120 * var(--u)); }
.hat { color: var(--ink); font-size: calc(92 * var(--u)); line-height: 1.05; letter-spacing: -0.028em; white-space: nowrap; }
.day-asides { min-height: calc(32 * var(--u)); }
.aside { color: var(--muted); font-size: calc(24 * var(--u)); line-height: 1.3; font-style: italic; }
.day-outro { padding-top: calc(12 * var(--u)); color: var(--body); font-size: calc(28 * var(--u)); line-height: 1.3; font-style: italic; }

/* 10:14 pm and 11:40 pm */
.night { background-color: var(--night); }
.night-kicker { color: var(--night-gold); }
.late .stage { display: flex; align-items: center; gap: calc(96 * var(--u)); }
.late-copy { display: flex; flex-direction: column; gap: calc(24 * var(--u)); width: calc(520 * var(--u)); flex-shrink: 0; }
.late-title { color: #FFFFFF; font-size: calc(64 * var(--u)); line-height: 1.05; letter-spacing: -0.023em; }
.late-body { color: #FFFFFFCC; font-size: max(16px, calc(21 * var(--u))); line-height: 1.55; }
.print-photo {
  flex-shrink: 0;
  padding: calc(14 * var(--u)) calc(14 * var(--u)) calc(52 * var(--u));
  background-color: #FBF8F2;
  box-shadow: 0 24px 60px #00000066;
  transform: rotate(-3deg);
}
.print-photo img { width: calc(620 * var(--u)); height: calc(400 * var(--u)); object-fit: cover; object-position: 70% center; }

.close .stage { display: flex; align-items: center; justify-content: center; }
.close-copy { display: flex; flex-direction: column; gap: calc(36 * var(--u)); width: calc(1000 * var(--u)); max-width: 100%; }
.close-title { color: #FFFFFF; font-size: calc(88 * var(--u)); line-height: 1.05; letter-spacing: -0.023em; transform-origin: 40% 50%; }
.close-body { max-width: calc(720 * var(--u)); color: #FFFFFFCC; font-size: max(16px, calc(21 * var(--u))); line-height: 1.6; }

/* Tomorrow morning */
.morning .stage { padding: calc(104 * var(--u)) var(--pad-x) calc(64 * var(--u)); }
.window { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 6px; }
.window img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 62% center; }
.window-shade { position: absolute; inset: 0; background-image: linear-gradient(90deg, #0B0C0ECC 0%, #0B0C0E66 45%, #0B0C0E00 70%); }
.window-copy {
  position: absolute;
  left: calc(64 * var(--u));
  bottom: calc(64 * var(--u));
  display: flex;
  flex-direction: column;
  gap: calc(20 * var(--u));
  width: calc(600 * var(--u));
}
.window-copy .kicker { color: #F3D9A8; }
.window-title { color: #FFFFFF; font-size: calc(64 * var(--u)); line-height: 1.05; letter-spacing: -0.023em; }
.window-body { color: #FFFFFFE6; font-size: max(15px, calc(18 * var(--u))); line-height: 1.5; }

/* How the work runs */
.work .stage { display: flex; flex-direction: column; justify-content: center; padding-left: 0; padding-right: 0; }
.track {
  display: flex;
  align-items: flex-start;
  gap: calc(80 * var(--u));
  padding: 0 var(--pad-x);
  width: max-content;
}
.work-intro { display: flex; flex-direction: column; gap: calc(20 * var(--u)); width: calc(600 * var(--u)); flex-shrink: 0; }
.work-title { color: var(--ink); font-size: calc(72 * var(--u)); line-height: 1.02; letter-spacing: -0.028em; }
.work-lede { color: var(--body); font-size: max(16px, calc(22 * var(--u))); line-height: 1.5; }
.step {
  display: flex;
  flex-direction: column;
  gap: calc(16 * var(--u));
  width: calc(560 * var(--u));
  flex-shrink: 0;
  padding-top: calc(24 * var(--u));
  border-top: 1px solid var(--ink);
}
.step-title { color: var(--ink); font-size: calc(40 * var(--u)); line-height: 1.1; letter-spacing: -0.015em; }
.step-body { color: var(--muted); font-size: max(14px, calc(16 * var(--u))); line-height: 1.55; }
.progress { position: absolute; left: var(--pad-x); right: var(--pad-x); bottom: calc(72 * var(--u)); height: 2px; background-color: #1114181A; }
.bar { height: 2px; background-color: var(--ink); transform-origin: left center; }

/* A few months from now */
.later .stage { display: flex; align-items: center; }
.later-copy { display: flex; flex-direction: column; gap: calc(26 * var(--u)); max-width: calc(1000 * var(--u)); }
.later-lines { display: flex; flex-direction: column; gap: calc(26 * var(--u)); }
.later-line { color: var(--ink); font-size: calc(48 * var(--u)); line-height: 1.15; letter-spacing: -0.02em; }
.later-final { padding-top: calc(16 * var(--u)); color: var(--ink); font-size: calc(72 * var(--u)); line-height: 1.05; letter-spacing: -0.028em; }
.off-wrap { position: relative; display: inline-block; margin-left: calc(10 * var(--u)); }
.off-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(420 * var(--u));
  height: calc(420 * var(--u));
  margin: calc(-210 * var(--u)) 0 0 calc(-210 * var(--u));
  border-radius: 50%;
  background-image: radial-gradient(circle, #F2C98AB3 0%, #F2C98A55 40%, #F2C98A00 70%);
  filter: blur(10px);
  z-index: -1;
}
.off { display: inline-block; color: var(--gold); font-size: calc(150 * var(--u)); line-height: 0.9; font-style: italic; letter-spacing: -0.027em; transform-origin: 30% 80%; }
.off-line { position: absolute; left: calc(-6 * var(--u)); bottom: calc(-34 * var(--u)); width: calc(300 * var(--u)); height: calc(40 * var(--u)); overflow: visible; }

/* Who's on your side */
.who .stage { display: grid; }
.who-a, .who-b { grid-area: 1 / 1; align-self: center; }
.who-a { display: flex; flex-direction: column; gap: calc(40 * var(--u)); max-width: calc(980 * var(--u)); }
.who-facts { display: flex; align-items: center; gap: calc(64 * var(--u)); }
.who-years { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.years { color: var(--ink); font-size: calc(128 * var(--u)); line-height: 1; letter-spacing: -0.031em; }
.chips { display: flex; flex-wrap: wrap; gap: calc(12 * var(--u)); max-width: calc(520 * var(--u)); }
.chip {
  display: inline-flex;
  padding: calc(10 * var(--u)) calc(18 * var(--u));
  border: 1px solid #9A6A2F66;
  border-radius: 999px;
  background-color: #FFFFFFB3;
  color: var(--gold-ink);
  font-size: max(13px, calc(16 * var(--u)));
  font-weight: 500;
  line-height: 1;
}
.janet-quote { display: flex; flex-direction: column; gap: calc(20 * var(--u)); }
.janet-quote blockquote { color: var(--ink); font-size: calc(40 * var(--u)); line-height: 1.25; letter-spacing: -0.015em; }
.janet-quote figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.janet-quote .rule { display: block; width: 40px; height: 2px; background-color: var(--gold); }
.janet-quote .name { color: var(--ink); font-size: max(14px, calc(16 * var(--u))); font-weight: 600; line-height: 1.3; }
.janet-quote .role { font-size: max(13px, calc(15 * var(--u))); line-height: 1.3; }
.who-b { display: flex; align-items: center; gap: calc(88 * var(--u)); }
.team-photo {
  flex-shrink: 0;
  padding: calc(14 * var(--u)) calc(14 * var(--u)) calc(44 * var(--u));
  background-color: #FFFFFF;
  border: 1px solid var(--line);
  transform: rotate(-2deg);
  box-shadow: 0 16px 40px #00000024;
}
.team-photo img { width: calc(600 * var(--u)); height: calc(400 * var(--u)); object-fit: cover; }
.team-copy { display: flex; flex-direction: column; gap: calc(22 * var(--u)); flex: 1 1 0; min-width: 0; }
.team-title { color: var(--ink); font-size: calc(52 * var(--u)); line-height: 1.08; letter-spacing: -0.02em; }
.team-names { font-size: max(13px, calc(14 * var(--u))); line-height: 1.5; }
.team-body { color: var(--body); font-size: max(16px, calc(19 * var(--u))); line-height: 1.55; }

/* What people say */
.say .stage { display: grid; padding: calc(120 * var(--u)) var(--pad-x) calc(80 * var(--u)); }
.say-kicker { position: absolute; left: calc(var(--pad-x) + 444 * var(--u)); top: calc(172 * var(--u)); z-index: 2; }
.voices { height: 100%; }
.voice { display: flex; align-items: center; gap: calc(64 * var(--u)); }
.voice img { width: calc(380 * var(--u)); height: calc(600 * var(--u)); object-fit: cover; flex-shrink: 0; border-radius: 4px; }
.voice-copy { display: flex; flex-direction: column; gap: calc(20 * var(--u)); padding-top: calc(40 * var(--u)); }
.voice-quote { color: var(--ink); font-size: calc(var(--q) * var(--u)); line-height: 1.15; letter-spacing: -0.02em; }

/* The ask */
.ask {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: var(--scene);
  padding: calc(88 * var(--u)) var(--pad-x) calc(64 * var(--u));
}
.ask-copy { display: flex; flex-direction: column; gap: calc(28 * var(--u)); max-width: calc(1000 * var(--u)); }
.ask .accent { color: var(--gold); font-style: italic; }
.ask-body { max-width: calc(640 * var(--u)); color: var(--body); line-height: 1.55; }
.ask-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.ask-actions .muted { font-size: max(14px, calc(15 * var(--u))); line-height: 1.5; }
.ask-actions .muted a { color: inherit; }
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--paper-line);
}
.foot a { color: var(--ink); font-size: 14px; line-height: 1.5; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot p { font-size: 13px; line-height: 1.5; }

/* ---------- Motion ---------- */

@keyframes loadUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateY(6px); } }
@keyframes driftA { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(-3.3%, 3.3%); } 66% { transform: translate(1.4%, -2.4%); } }
@keyframes driftB { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(2.8%, -4%); } 66% { transform: translate(-1.7%, 2%); } }
@keyframes driftC { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(1.8%, 4.9%); } 66% { transform: translate(-2.1%, -1.8%); } }
@keyframes bokehIn { from { opacity: 0; } to { opacity: 1; } }
.dA { animation: driftA 14s ease-in-out infinite; }
.dB { animation: driftB 17s ease-in-out infinite; }
.dC { animation: driftC 21s ease-in-out infinite; }
.load { animation: loadUp 1s cubic-bezier(.2, .7, .2, 1) both; }
.nudge { animation: nudge 1.8s ease-in-out infinite; }

@keyframes sky {
  0%    { background-color: #F4EADB; }
  7%    { background-color: #FFFFFF; }
  18.1% { background-color: #FFFFFF; }
  20.4% { background-color: #EFD7B8; }
  22.8% { background-color: #121A27; }
  41.8% { background-color: #121A27; }
  43.5% { background-color: #F3DFC4; }
  46.4% { background-color: #FFFFFF; }
  64.1% { background-color: #FFFFFF; }
  67.1% { background-color: #FBF2E4; }
  75.9% { background-color: #FBF2E4; }
  78.1% { background-color: #FFFFFF; }
  96.6% { background-color: #FFFFFF; }
  100%  { background-color: #F6F2EB; }
}
@keyframes hdrTone { 0%, 21% { color: #111418; } 22.5%, 42% { color: #FFFFFF; } 43.8%, 100% { color: #111418; } }
@keyframes logoTone { 0%, 21% { filter: none; } 22.5%, 42% { filter: brightness(0) invert(1); } 43.8%, 100% { filter: none; } }

@keyframes fadeUp { from { opacity: 0; transform: translateY(calc(48 * var(--u))); } to { opacity: 1; transform: none; } }
@keyframes outUp { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(calc(-56 * var(--u))); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes tooClose { from { transform: scale(3.4); filter: blur(18px); opacity: .55; } to { transform: none; filter: blur(0); opacity: 1; } }
@keyframes print { from { opacity: 0; transform: translateY(calc(160 * var(--u))) rotate(9deg); } to { opacity: 1; transform: rotate(-3deg); } }
@keyframes frameOpen { from { clip-path: inset(30% 34% 30% 34% round 6px); } to { clip-path: inset(0 0 0 0 round 6px); } }
@keyframes settle { from { transform: scale(1.2); } to { transform: none; } }
@keyframes track { from { transform: translateX(0); } to { transform: translateX(calc(-100% + 100vw)); } }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes slideL { from { opacity: 0; transform: translateX(calc(-72 * var(--u))); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateX(calc(220 * var(--u))) rotate(8deg); } to { opacity: 1; transform: rotate(-2deg); } }
@property --n { syntax: '<integer>'; inherits: false; initial-value: 0; }
@keyframes dimBack { from { opacity: 1; filter: none; } to { opacity: .26; filter: blur(1.5px); } }
@keyframes popOff { from { opacity: 0; transform: translateY(calc(48 * var(--u))) rotate(-10deg) scale(.7); } to { opacity: 1; transform: rotate(-4deg); } }
@keyframes drawLine { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes glowUp { from { opacity: 0; transform: translateY(calc(140 * var(--u))) scale(.5); } to { opacity: 1; transform: none; } }
@keyframes count25 { from { --n: 0; } to { --n: 25; } }
@keyframes hourHand { 0%, 14% { transform: rotate(216deg); } 18%, 32% { transform: rotate(285deg); } 36%, 50% { transform: rotate(332.5deg); } 54%, 68% { transform: rotate(440deg); } 72%, 100% { transform: rotate(517.5deg); } }
@keyframes minHand { 0%, 14% { transform: rotate(72deg); } 18%, 32% { transform: rotate(900deg); } 36%, 50% { transform: rotate(1470deg); } 54%, 68% { transform: rotate(2760deg); } 72%, 100% { transform: rotate(3690deg); } }
@keyframes faceSky { 0% { fill: #FBF3E4; } 40% { fill: #FFFFFF; } 80% { fill: #FFFFFF; } 100% { fill: #F6E3C8; } }

/* Hands rest at 7:12 when the clock isn't animated */
.hh { transform: rotate(216deg); }
.mh { transform: rotate(72deg); }

@supports (animation-timeline: scroll()) {
  .night { background-color: transparent; }
  .sky { animation: sky linear both; animation-timeline: scroll(root block); }
  .hdr { animation: hdrTone linear both; animation-timeline: scroll(root block); }
  .hdr-logo { animation: logoTone linear both; animation-timeline: scroll(root block); }
  .s { animation-duration: auto; animation-timing-function: linear; animation-fill-mode: both; }
  .fu { animation-name: fadeUp; }
  .fo2 { animation-name: fadeOut; animation-fill-mode: forwards; }
  .fi { animation-name: fadeIn; }
  .ou { animation-name: outUp; animation-fill-mode: forwards; }
  .tc { animation-name: tooClose; }
  .pr { animation-name: print; }
  .fo { animation-name: frameOpen; }
  .st { animation-name: settle; }
  .tr { animation-name: track; }
  .bar { animation-name: bar; }
  .sl { animation-name: slideL; }
  .dr { animation-name: drop; }
  .cnt { font-size: 0 !important; counter-reset: n var(--n); }
  .cnt::after { content: counter(n); font-size: calc(128 * var(--u)); }
  .c25 { animation-name: count25; }
  .fc { animation-name: focusIn; }
  .dim { animation-name: dimBack; }
  .po { animation-name: popOff; }
  .dw { animation-name: drawLine; }
  .gl { animation-name: glowUp; }
  .hh { animation-name: hourHand; }
  .mh { animation-name: minHand; }
  .fs { animation-name: faceSky; }
}
@keyframes focusIn { from { transform: none; } to { opacity: 0; transform: translateY(-20%) scale(1.12); } }

/* ---------- Compact layout: portrait and narrow screens ---------- */

@media (max-aspect-ratio: 1/1), (max-width: 760px) {
  :root {
    --u: min(100vw / 760, 1.1px);
    --pad-x: 20px;
  }
  .hdr { height: 64px; padding: 0 var(--pad-x); }
  .hdr-phone { display: none; }
  .stage { padding: 88px var(--pad-x) 32px; }

  .kicker { font-size: 20px; }
  .display { font-size: clamp(38px, 10.5vw, 72px); line-height: 1.04; }
  .lede { font-size: 17px; }

  .dawn-copy { gap: 20px; max-width: none; }
  .dawn-kicker { font-size: 22px; }
  .dawn .lede { max-width: 34em; }
  .dawn-bar { flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 18px; }
  .dawn-hint p { font-size: 19px; }
  .dawn-book { flex-wrap: wrap; gap: 12px; }
  .orb > div { filter: blur(24px); }

  .day .stage { justify-content: center; }
  .clock { top: 80px; right: var(--pad-x); width: 104px; height: 104px; margin-top: 0; }
  .day-copy { gap: 14px; max-width: none; }
  .day-times { min-height: 26px; }
  .day-intro { font-size: 22px; }
  .day-hats { min-height: 56px; }
  .hat { font-size: clamp(34px, 9.6vw, 64px); }
  .day-asides { min-height: 52px; }
  .aside { font-size: 18px; }
  .day-outro { font-size: 20px; padding-top: 4px; }

  .late .stage { flex-direction: column; align-items: stretch; justify-content: center; gap: 36px; }
  .late-copy { width: auto; gap: 16px; }
  .late-title { font-size: clamp(34px, 9vw, 56px); }
  .late-body { font-size: 17px; }
  .print-photo { align-self: center; padding: 10px 10px 32px; max-width: 92%; }
  .print-photo img { width: 100%; height: auto; aspect-ratio: 31 / 20; }

  .close-copy { gap: 24px; }
  .close-title { font-size: clamp(40px, 11vw, 72px); }
  .close-body { font-size: 17px; }

  .morning .stage { padding: 80px 12px 16px; }
  .window-copy { left: 20px; right: 20px; bottom: 28px; width: auto; gap: 12px; }
  .window img { object-position: 80% center; }
  .window-shade { background-image: linear-gradient(0deg, #0B0C0EE6 0%, #0B0C0E99 45%, #0B0C0E00 75%); }
  .window-title { font-size: clamp(32px, 8.5vw, 52px); }
  .window-body { font-size: 16px; }

  .track { gap: 32px; }
  .work-intro { width: min(78vw, 420px); gap: 14px; }
  .work-title { font-size: clamp(40px, 10.5vw, 64px); }
  .work-lede { font-size: 18px; }
  .step { width: min(78vw, 420px); gap: 12px; padding-top: 18px; }
  .step-title { font-size: 28px; }
  .step-body { font-size: 15px; }
  .progress { bottom: 40px; }

  .later-copy { gap: 18px; max-width: none; }
  .later-lines { gap: 16px; }
  .later-line { font-size: clamp(26px, 7vw, 40px); }
  .later-final { font-size: clamp(36px, 9.5vw, 60px); }
  .off { font-size: 1.9em; }
  .off-glow { width: 240px; height: 240px; margin: -120px 0 0 -120px; }
  .off-line { width: 150px; height: 20px; bottom: -18px; }

  .who .stage { padding-top: 84px; }
  .who-a { gap: 22px; max-width: none; }
  .who-facts { flex-direction: column; align-items: flex-start; gap: 18px; }
  .years { font-size: 72px; }
  .cnt::after { font-size: 72px !important; }
  .chips { gap: 8px; max-width: none; }
  .chip { padding: 8px 14px; font-size: 14px; }
  .janet-quote { gap: 14px; }
  .janet-quote blockquote { font-size: clamp(21px, 5.6vw, 32px); }
  .who-b { flex-direction: column; align-items: stretch; gap: 32px; }
  .team-photo { align-self: center; max-width: 92%; padding: 10px 10px 28px; }
  .team-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; }
  .team-copy { gap: 14px; }
  .team-title { font-size: clamp(28px, 7.5vw, 44px); }
  .team-body { font-size: 17px; }

  .say .stage { padding: 88px var(--pad-x) 32px; grid-template-rows: auto 1fr; gap: 20px; }
  .say-kicker { position: static; }
  .voices { height: auto; align-self: center; }
  .voice { flex-direction: column; align-items: flex-start; gap: 20px; }
  .voice img { width: 100%; height: min(36svh, 340px); object-fit: contain; object-position: left top; border-radius: 0; }
  .voice-copy { gap: 12px; padding-top: 0; }
  .voice-quote { font-size: clamp(22px, 5.8vw, 34px); line-height: 1.2; }

  .ask { padding: 96px var(--pad-x) 28px; }
  .ask-copy { gap: 20px; max-width: none; }
  .ask-body { font-size: 17px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .s, .load, .nudge, .bokeh, .dA, .dB, .dC { animation: none !important; }
}

/* ---------- Fallback: no scroll-driven animations, or reduced motion ----------
 * The day becomes a plain long page: scenes take their natural height,
 * swapped lines show their final state, layered panels stack.
 */
@supports not (animation-timeline: scroll()) {
  .hdr { background-color: #FFFFFFEB; backdrop-filter: blur(8px); }
  .dawn { background-color: #F4EADB; }
  .scene { height: auto !important; }
  .stage { position: relative; height: auto; min-height: var(--scene); }
  .morning .stage { height: var(--scene); }
  .stack > * { grid-area: auto; }
  .swap:not(.last) { display: none; }
  .day-hats { gap: 4px; }
  .clock { opacity: .25; }
  .who .stage, .say .stage { display: flex; flex-direction: column; gap: 64px; }
  .say-kicker { position: static; }
  .voices { gap: 64px; }
  .work .stage { padding-left: var(--pad-x); padding-right: var(--pad-x); }
  .track { flex-wrap: wrap; width: auto; padding: 0; row-gap: 48px; }
  .progress { display: none; }
  .ask { background-color: var(--paper); }
}
@media (prefers-reduced-motion: reduce) {
  .night { background-color: var(--night) !important; }
  .sky { display: none; }
  .hdr { background-color: #FFFFFFEB; backdrop-filter: blur(8px); color: var(--ink) !important; }
  .hdr-logo { filter: none !important; }
  .dawn { background-color: #F4EADB; }
  .scene { height: auto !important; }
  .stage { position: relative; height: auto; min-height: var(--scene); }
  .morning .stage { height: var(--scene); }
  .stack > * { grid-area: auto; }
  .swap:not(.last) { display: none; }
  .day-hats { gap: 4px; }
  .cnt { font-size: inherit !important; }
  .cnt::after { content: none; }
  .who .stage, .say .stage { display: flex; flex-direction: column; gap: 64px; }
  .say-kicker { position: static; }
  .voices { gap: 64px; }
  .work .stage { padding-left: var(--pad-x); padding-right: var(--pad-x); }
  .track { flex-wrap: wrap; width: auto; padding: 0; row-gap: 48px; transform: none !important; }
  .progress { display: none; }
  .ask { background-color: var(--paper); }
}
