/* Cat Livshits — portfolio
   Type: SF Pro (system) for everything, UnifrakturMaguntia as the accent.
   Desktop layout follows the 1440px Figma frame; horizontal offsets scale with
   the frame via container query units (cqw), font sizes stay fixed. */

@font-face {
  font-family: "UnifrakturMaguntia";
  src: url("/assets/fonts/UnifrakturMaguntia.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --sf: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gothic: "UnifrakturMaguntia", "Times New Roman", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* dark pages */
  --night: #0b0b0c;
  --paper-ink: #edecea;
  --soft: #c9c7c3;
  --dim: #9a9894;
  --rule-dark: #3a3a3b;

  /* light pages */
  --ink: #09090a;
  --grey: #8c8c91;
  --grey-2: #737378;
  --card: #f6f6f4;
  --rule-light: #dbdbde;
  --accent: #f27845;
  --squiggle: #e5322d;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sf);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3 { font-weight: inherit; }
.gothic { font-family: var(--gothic); font-weight: 400; font-style: normal; letter-spacing: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.theme-dark { background: var(--night); color: var(--paper-ink); }
.theme-light { background: #fff; color: var(--ink); }

/* 1440 frame. Everything inside measures horizontal offsets in cqw. */
.frame { width: min(100%, 1440px); margin: 0 auto; container-type: inline-size; position: relative; }

/* ---------- top bars ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px calc(193 / 1440 * 100cqw) 0 calc(236 / 1440 * 100cqw);
  font-size: 12.5px; line-height: 16px;
}
.topbar nav { display: flex; gap: 26px; justify-content: flex-end; }
.topbar nav a, .back { transition: opacity .2s; }
.topbar nav a:hover, .back:hover { opacity: .6; }
.topbar-clock { white-space: pre; font-variant-numeric: tabular-nums; }
.topbar-clock span + span { margin-left: 2.2em; }

/* inner pages: back arrow at the frame edge, short menu ending at x=1203 */
.topbar-inner { padding-right: calc(237 / 1440 * 100cqw); justify-content: flex-end; }
.back {
  position: absolute; top: 32px; left: calc(40 / 1440 * 100cqw);
  font-size: 20px; line-height: 26px; padding: 4px 8px; margin: -4px -8px;
}
.theme-light .back { top: 42px; left: calc(48 / 1440 * 100cqw); line-height: 24px; }

/* ---------- custom cursor (fine pointers only) ---------- */
.custom-cursor {
  position: fixed; top: 0; left: 0; z-index: 10000; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  pointer-events: none; opacity: 0; will-change: transform; mix-blend-mode: difference;
}
.custom-cursor svg { display: block; width: 44px; height: 44px; }
.custom-cursor g { transform-origin: 50% 50%; transition: transform .15s var(--ease); }
.custom-cursor.is-active g { transform: scale(1.3) rotate(12deg); }
@media (pointer: fine) {
  html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor [data-rail] { cursor: none; }
}

/* ---------- reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- rail carousel (shared by every photo slider) ----------
   Slides sit in a horizontal scroll-snap strip. Image height comes from --rail-h,
   width from each slide's --ar; captions sit under the image inside the slide. */
.rail { position: relative; }
.rail-viewport {
  display: flex; align-items: flex-start; gap: var(--rail-gap, 18px); overflow-x: auto; overflow-y: hidden;
  overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  user-select: none; -webkit-user-select: none;
}
.rail-viewport::-webkit-scrollbar { display: none; }
.rail-viewport.is-dragging { scroll-snap-type: none; }
.rail-slide { flex: none; margin: 0; scroll-snap-align: start; }
.rail-slide img { height: var(--rail-h, 520px); width: auto; aspect-ratio: var(--ar, 1); object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.rail-slide figcaption { margin-top: 12px; font-size: 12px; line-height: 16px; color: var(--grey); white-space: nowrap; }
.rail-foot { position: relative; height: 3px; margin-top: 24px; border-top: 1px solid var(--rail-track, var(--rule-light)); }
.rail-progress { position: absolute; left: 0; top: -2px; height: 3px; background: var(--rail-bar, var(--ink)); transition: transform .42s var(--ease); }
.rail-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; font-size: 12px; line-height: 16px; color: var(--grey); }
.rail-count { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.rail-viewport:focus-visible { outline-offset: 6px; }

/* single-photo rails (home) */
.rail-single .rail-viewport { gap: 0; }
.rail-single .rail-slide { width: 100%; }
.rail-single .rail-slide img { width: 100%; height: auto; }

/* ---------- record: sleeve slides away, vinyl spins ---------- */
.record { position: relative; width: 240px; height: 186px; cursor: pointer; flex: none; -webkit-tap-highlight-color: transparent; }
.record-vinyl { position: absolute; top: 0; left: 54px; width: 186px; height: 186px; border-radius: 50%; overflow: hidden; animation: spin 9s linear infinite; will-change: transform; }
.record-sleeve { position: absolute; top: 0; left: 0; width: 160px; height: 160px; overflow: hidden; transition: transform .42s var(--ease); will-change: transform; }
.record img { width: 100%; height: 100%; object-fit: cover; }
.record:hover .record-sleeve, .record.is-open .record-sleeve { transform: translateX(-54px); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- floating Show Cases button (liquid glass) ---------- */
.floating-showcases {
  position: fixed; left: 50%; bottom: 24px; z-index: 9000; display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 171px; height: 48px; border-radius: 48px; border-top: 1px solid #fff; border-left: 1px solid #fff;
  color: #fff; font-size: 15px; line-height: 1; isolation: isolate; overflow: hidden;
  opacity: 0; pointer-events: none; transform: translate(-50%, 18px); transition: opacity .22s, transform .22s;
}
.floating-showcases.is-visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.glass, .glass > span, .glass-shine { position: absolute; inset: 0; border-radius: 48px; pointer-events: none; }
.glass-burn { background: #1d1d1d1a; mix-blend-mode: color-burn; }
.glass-plus { background: #1d1d1d; mix-blend-mode: plus-lighter; }
.glass-blur { background: #ffffff1a; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.floating-showcases > .label, .floating-showcases > img { position: relative; z-index: 2; flex: none; }
.floating-showcases > img { width: 24px; height: 24px; }
.glass-shine { z-index: 3; box-shadow: inset -4.5px -4.5px 1.5px -5.25px #ffffff80, inset 4.5px 4.5px 1.5px -5.25px #ffffff80, inset 3px 4.5px 1.5px -3px #b3b3b333, inset -3px -4.5px 1.5px -3px #b3b3b3, inset 0 0 33px #f2f2f280; }

/* =====================================================================
   HOME (Figma 797:3)
   ===================================================================== */
.home { padding-bottom: 96px; }
.home .col { margin-left: calc(236 / 1440 * 100cqw); width: calc(1011 / 1440 * 100cqw); }
/* label | content(741) | spare(44) — the 462 and 1203 guides of the frame */
.home .row { display: grid; grid-template-columns: calc(226 / 1011 * 100%) calc(741 / 1011 * 100%); }
.home .label { font-size: 15px; line-height: 18px; color: var(--soft); }
.home .ruled { border-top: 1px solid var(--rule-dark); }

.hero-title { position: relative; top: -8px; margin-top: 137px; font-family: var(--gothic); font-size: 116px; line-height: 132px; color: #fff; white-space: nowrap; }
.hero-sub { display: flex; justify-content: space-between; gap: 24px; margin-top: 0; font-size: 23px; line-height: 28px; color: var(--soft); }
.hero-photo { margin-top: 72px; }
.hero-photo img { width: 100%; aspect-ratio: 1011 / 721; object-fit: cover; }
.caption { margin-top: 11px; font-size: 12px; line-height: 14px; color: var(--dim); }

.about { margin-top: 95px; }
.about .label { margin-top: -3px; }
.about-text { padding-top: 12px; max-width: 693px; font-size: 16.5px; line-height: 1.568; color: var(--soft); }
.about-text p + p { margin-top: 1.568em; }
.about-text p:first-child { margin-right: -34px; }
/* Drop cap: exactly two lines of body text, third line starts under the letter.
   Browsers with initial-letter size it natively; others get a float capped at two lines. */
.has-dropcap::first-letter { float: left; font-family: var(--gothic); font-size: 56px; line-height: 48px; color: #fff; margin: 0 7px 0 0; }
@supports (initial-letter: 2) or (-webkit-initial-letter: 2) {
  .has-dropcap::first-letter { float: none; font-size: inherit; line-height: inherit; margin: 0 8px 0 0; -webkit-initial-letter: 2; initial-letter: 2; }
}

.photos { display: grid; grid-template-columns: calc(468 / 1011 * 100%) calc(468 / 1011 * 100%); column-gap: calc(30 / 1011 * 100%); margin-top: 94px; align-items: start; }
.photos .rail { --ar: 468 / 586; --rail-track: rgba(255, 255, 255, .42); --rail-bar: var(--paper-ink); }
.photos .rail-foot { margin-top: -3px; }
.photos .rail-meta { color: var(--dim); margin-top: 7px; }
.photos .rail-count { color: #fff; font-weight: 400; }
.photos .rail-right { margin-top: 64px; }

.career { margin-top: 99px; }
.career-list { list-style: none; margin: 0; padding: 0; }
.career-list li { display: grid; grid-template-columns: calc(315 / 741 * 100%) 1fr auto; align-items: baseline; gap: 0; min-height: 57px; padding: 7px 0 0; border-top: 1px solid var(--rule-dark); }
.career-list li:last-child { border-bottom: 1px solid var(--rule-dark); padding-bottom: 12px; }
.career-list .co { font-family: var(--gothic); font-size: 33px; line-height: 40px; color: var(--paper-ink); }
.career-list .role { font-size: 15px; line-height: 18px; }
.career-list .years { padding-left: 16px; font-size: 15px; line-height: 18px; text-align: right; font-variant-numeric: tabular-nums; }

.listening { margin-top: 196px; }
.listening-body { display: grid; grid-template-columns: calc(315 / 741 * 100%) 1fr; padding-top: 35px; }
.listening-body h3 { font-family: var(--gothic); font-size: 40px; line-height: 48px; color: var(--paper-ink); }
.listening-body .track { margin-top: 0; font-size: 13px; line-height: 16px; color: var(--soft); }
.listening-body .meta { margin-top: 9px; font-size: 12px; line-height: 14px; color: var(--dim); }

.summon { margin-top: 109px; }
.summon .label { display: block; }
.home-footer { display: grid; grid-template-columns: calc(237 / 1011 * 100%) 1fr auto; align-items: baseline; margin-top: 40px; font-size: 14px; line-height: 17px; }
.home-footer .linkedin { font-size: 16px; }
.home-footer .place { padding-right: calc(44 / 1440 * 100cqw); }
.home-footer a:hover { opacity: .6; }

/* =====================================================================
   SHOWCASES (Figma 870:3)
   ===================================================================== */
.showcases { min-height: 100vh; padding-bottom: 150px; }
.showcase-grid {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; row-gap: 64px;
  margin: 156px calc(237 / 1440 * 100cqw) 0 calc(236 / 1440 * 100cqw);
}
.card { display: block; }
.card-image { aspect-ratio: 471.5 / 266.4; border-radius: 16px; overflow: hidden; background: #151516; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
a.card:hover .card-image img { transform: scale(1.025); }
.card-year { margin-top: 20px; font-size: 20px; line-height: 26px; color: var(--dim); }
.card-title { margin-top: 6px; font-size: 20px; line-height: 26px; letter-spacing: -.4px; color: var(--paper-ink); }
.card.is-pending { cursor: default; }
.card.is-pending .card-image { display: grid; place-items: center; }
.card-status { font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 1.6px; color: #5d5d61; }

/* =====================================================================
   CASE (Figma 870:35) — light page
   ===================================================================== */
.case { --gap-xl: 180px; --gap-l: 119px; --gap-m: 64px; --gap-s: 38px; padding-bottom: 144px; }
.case .col { margin-left: calc(236 / 1440 * 100cqw); width: calc(967 / 1440 * 100cqw); }
.case .topbar a { color: var(--ink); }

.meta { display: grid; grid-template-columns: 358fr 358fr 251fr; margin-top: 86px; }
.meta dt { font-size: 13px; line-height: 17px; color: var(--grey); }
.meta dd { margin: 6px 0 0; font-size: 15px; line-height: 20px; font-weight: 600; max-width: 273px; }
.meta div:last-child dd { max-width: 290px; margin-right: -40px; }

.statement { margin-top: 117px; max-width: 830px; font-size: 66px; line-height: 76px; font-weight: 700; letter-spacing: -2.3px; }
.statement .gothic { font-size: 106px; letter-spacing: 6px; font-weight: 400; line-height: 0; }
.dek { margin-top: 25px; max-width: 773px; font-size: 28px; line-height: 38px; color: var(--grey); }

.h-label { font-size: 34px; line-height: 43px; font-weight: 600; letter-spacing: -.9px; }
.h2 { font-size: 48px; line-height: 58px; font-weight: 600; letter-spacing: -1.5px; max-width: 930px; }
.h2-xl { font-size: 54px; line-height: 64px; font-weight: 600; letter-spacing: -1.5px; }
.body { margin-top: var(--gap-s); max-width: 870px; font-size: 25px; line-height: 35px; }
.body-narrow { max-width: 820px; }
.body-mid { max-width: 840px; }
.body-wide { max-width: 920px; }
.callout { max-width: 820px; font-size: 30px; line-height: 40px; font-weight: 600; color: var(--accent); }
.fine { font-size: 13px; line-height: 18px; color: var(--grey); }
.u { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.squiggle { text-decoration: underline wavy var(--squiggle); text-decoration-thickness: 1.5px; text-underline-offset: 7px; text-decoration-skip-ink: none; }

.context { margin-top: 168px; }
.context-grid { display: grid; grid-template-columns: 627fr 67fr 273fr; align-items: end; margin-top: 36px; }
.context-grid .main { grid-column: 1; font-size: 24px; line-height: 34px; }
.context-grid .side { grid-column: 3; font-size: 17px; line-height: 26px; color: var(--grey); }
.cover { margin-top: 90px; }
.cover img { width: 100%; aspect-ratio: 967 / 620; object-fit: cover; }

.chapter { margin-top: var(--gap-l); }
.chapter-xl { margin-top: var(--gap-xl); }
.chapter .h2 + .body { margin-top: var(--gap-s); }
.after-media { margin-top: 140px; }

.meet { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin-top: 92px; }
.meet img { width: 100%; aspect-ratio: 472 / 200; object-fit: cover; }
.meet + .fine { margin-top: 17px; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin-top: var(--gap-m); }
.tiles-tall { gap: 24px; margin-top: 72px; }
.tile { background: var(--card); border-radius: 14px; padding: 22px; min-height: 155px; }
.tiles-tall .tile { min-height: 255px; }
.tile .n { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--grey); }
.tile h3 { margin-top: 10px; font-size: 23px; line-height: 29px; font-weight: 600; letter-spacing: -.3px; }
.tile p:last-child { margin-top: 10px; font-size: 16px; line-height: 23px; color: var(--grey); }

.timeline { margin-top: 50px; background: var(--card); border-radius: 16px; padding: 22px 24px; list-style: none; }
.timeline li { display: grid; grid-template-columns: 116px 238px 1fr; gap: 22px; min-height: 95px; padding: 16px 0; border-bottom: 1px solid var(--rule-light); }
.timeline li:last-child { border-bottom: 0; }
.timeline .phase { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .7px; color: var(--grey); padding-top: 3px; }
.timeline .method { font-size: 17px; line-height: 23px; font-weight: 600; letter-spacing: -.2px; }
.timeline .what { font-size: 15px; line-height: 22px; color: var(--grey); }

.body + .callout { margin-top: 18px; }
.body + .callout-lead { margin-top: 34px; }

.gaps { display: grid; grid-template-columns: 460fr 460fr; column-gap: 47px; row-gap: 42px; margin-top: var(--gap-m); }
.gap { min-height: 245px; border-bottom: 1px solid var(--rule-light); padding-bottom: 24px; }
.gap .n { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--grey); }
.gap h3 { margin-top: 18px; max-width: 444px; font-size: 27px; line-height: 34px; font-weight: 600; }
.gap p:last-child { margin-top: 14px; max-width: 438px; font-size: 17px; line-height: 25px; color: var(--grey); }

.case .rail { margin-top: var(--gap-l); }
.case .rail.after-body { margin-top: 66px; }
.case .rail-muji { margin-top: 38px; }
.rail-muji { --rail-h: 306px; --rail-gap: 20px; --ar: 540 / 306; }
.rail-muji .rail-foot { margin-top: 26px; }

.quote { margin: var(--gap-xl) 0 0 calc(112 / 967 * 100%); max-width: 790px; }
.quote blockquote { margin: 0; font-size: 30px; line-height: 40px; font-weight: 600; font-style: italic; color: var(--accent); }
.quote figcaption { margin: 18px 0 0 calc(532 / 790 * 100%); font-size: 15px; line-height: 20px; color: #8b8b8b; }

.metrics { display: grid; grid-template-columns: 603fr 30fr 334fr; margin-top: var(--gap-m); }
.metric:last-child { grid-column: 3; }
.metric strong { display: block; font-size: 112px; line-height: 120px; font-weight: 300; letter-spacing: -2px; white-space: nowrap; }
.metric span { display: block; margin-top: 22px; font-size: 13px; line-height: 18px; color: var(--grey-2); text-transform: uppercase; }
.metrics + .body { margin-top: 45px; }

.hub { margin-top: var(--gap-m); width: calc(458 / 967 * 100%); }
.hub img { width: 100%; }

.closing { font-size: 42px; line-height: 52px; font-weight: 600; letter-spacing: -1px; max-width: 927px; }
.lesson { margin-top: var(--gap-s); max-width: 850px; font-size: 23px; line-height: 33px; color: var(--grey); }

/* "I'd associate this study with" / "Listening to" — shared album block */
.album { display: grid; grid-template-columns: calc(226 / 967 * 100%) 1fr; margin-top: 172px; }
.album .label { font-size: 15px; line-height: 18px; margin-top: -9px; }
.album-body { display: grid; grid-template-columns: calc(315 / 741 * 100%) 1fr; border-top: 1px solid #b9b9bc; padding-top: 35px; max-width: 741px; }
.album-body h3 { font-family: var(--gothic); font-size: 30px; line-height: 36px; }
.album-body .track { margin-top: 20px; font-size: 13px; line-height: 16px; }
.album-body .meta-line { margin-top: 9px; font-size: 12px; line-height: 14px; }

/* =====================================================================
   Tablet
   ===================================================================== */
@media (max-width: 1100px) {
  .topbar { padding-left: 40px; padding-right: 40px; }
  .home .col, .case .col { margin-left: 40px; width: calc(100cqw - 80px); }
  .home .row { grid-template-columns: 160px 1fr; }
  .showcase-grid { margin-left: 40px; margin-right: 40px; }
  .back, .theme-light .back { left: 16px; }
  .statement { font-size: 56px; line-height: 64px; }
  .metric strong { font-size: 88px; line-height: 96px; }
}

/* =====================================================================
   Mobile
   ===================================================================== */
@media (max-width: 760px) {
  .topbar { padding: 14px 20px 0; font-size: 11px; line-height: 14px; align-items: flex-start; }
  .topbar nav { gap: 14px; flex-wrap: wrap; row-gap: 6px; }
  .topbar-clock { white-space: normal; }
  .topbar-clock { flex: none; }
  .topbar-clock span { display: block; white-space: nowrap; }
  .topbar-clock span + span { margin-left: 0; }
  .home .topbar nav a[data-optional] { display: none; }
  .topbar-inner { padding-top: 22px; }
  .back, .theme-light .back { top: 16px; left: 12px; }
  .home .col, .case .col { margin-left: 20px; width: calc(100cqw - 40px); }
  .home .row { grid-template-columns: 1fr; }
  .home .row > .label { margin: 0 0 14px; }

  .hero-title { margin-top: 64px; font-size: 64px; line-height: 72px; white-space: normal; }
  .hero-sub { flex-direction: column; gap: 6px; font-size: 17px; line-height: 23px; }
  .hero-photo { margin-top: 32px; }
  .hero-photo img { aspect-ratio: 4 / 3.4; }

  .about { margin-top: 72px; }
  .about .ruled { border-top: 0; }
  .about-text { padding-top: 0; font-size: 16px; }
  .about-text p:first-child { margin-right: 0; }

  .photos { grid-template-columns: 1fr; row-gap: 64px; margin-top: 64px; }
  .photos .rail-right { margin-top: 0; }

  .career { margin-top: 80px; }
  .career-list li { grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0 10px; }
  .career-list .co { font-size: 27px; line-height: 32px; }
  .career-list .role { grid-column: 1; font-size: 13px; color: var(--soft); }
  .career-list .years { grid-column: 2; grid-row: 1; font-size: 13px; color: var(--dim); }

  .listening { margin-top: 80px; }
  .listening-body { grid-template-columns: 1fr; row-gap: 22px; padding-top: 24px; }
  .summon { margin-top: 80px; }
  .home-footer { grid-template-columns: 1fr; row-gap: 12px; margin-top: 0; }
  .home-footer .place { padding: 16px 0 0; color: var(--dim); }
  .home { padding-bottom: 120px; }

  .showcase-grid { grid-template-columns: 1fr; row-gap: 48px; margin: 96px 20px 0; }
  .card-year { margin-top: 14px; font-size: 15px; line-height: 20px; }
  .card-title { margin-top: 2px; font-size: 18px; line-height: 24px; letter-spacing: -.2px; }

  .case { --gap-xl: 96px; --gap-l: 80px; --gap-m: 36px; --gap-s: 20px; padding-bottom: 72px; }
  .meta { grid-template-columns: 1fr 1fr; gap: 20px 16px; margin-top: 64px; }
  .meta div:last-child { grid-column: 1 / -1; }
  .meta dd { max-width: none; }
  .statement { margin-top: 64px; font-size: 38px; line-height: 44px; letter-spacing: -1.2px; }
  .statement .gothic { font-size: 60px; letter-spacing: 2px; }
  .dek { font-size: 20px; line-height: 28px; margin-top: 18px; }
  .context { margin-top: 80px; }
  .h-label { font-size: 26px; line-height: 32px; }
  .context-grid { grid-template-columns: 1fr; row-gap: 20px; margin-top: 20px; }
  .context-grid .main { font-size: 19px; line-height: 28px; }
  .context-grid .side { grid-column: 1; font-size: 15px; line-height: 23px; }
  .cover { margin-top: 48px; }
  .cover img { aspect-ratio: 4 / 3; }
  .after-media { margin-top: 80px; }
  .h2, .h2-xl { font-size: 31px; line-height: 38px; letter-spacing: -.8px; }
  .body, .lesson { font-size: 19px; line-height: 28px; }
  .callout, .quote blockquote { font-size: 22px; line-height: 30px; }
  .meet { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 40px; }
  .tiles, .tiles-tall { grid-template-columns: 1fr; gap: 12px; margin-top: var(--gap-m); }
  .tile, .tiles-tall .tile { min-height: 0; padding: 20px; }
  .tile h3 { font-size: 20px; line-height: 26px; }
  .tile p:last-child { font-size: 15px; line-height: 22px; }
  .timeline { padding: 6px 18px; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; min-height: 0; padding: 16px 0; }
  .gaps { grid-template-columns: 1fr; row-gap: 28px; }
  .gap { min-height: 0; }
  .gap h3 { margin-top: 10px; font-size: 22px; line-height: 28px; }
  .gap p:last-child { font-size: 16px; line-height: 23px; }
  .rail-kl, .rail-docs { --rail-h: 300px; }
  .rail-muji { --rail-h: 168px; }
  .quote { margin-left: 0; }
  .quote figcaption { margin-left: 0; }
  .metrics { grid-template-columns: 1fr; row-gap: 36px; }
  .metric:last-child { grid-column: 1; }
  .metric strong { font-size: 72px; line-height: 76px; }
  .metric span { margin-top: 10px; }
  .hub { width: 100%; }
  .closing { font-size: 29px; line-height: 36px; letter-spacing: -.6px; }
  .album { grid-template-columns: 1fr; row-gap: 16px; margin-top: 96px; }
  .album .label { margin-top: 0; }
  .album-body { grid-template-columns: 1fr; row-gap: 22px; padding-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .record-vinyl { animation: none; }
  .rail-progress, .record-sleeve, .floating-showcases { transition: none; }
}

/* =====================================================================
   ARCHIVE CASES — Moonly (907:6), VkusVill (910:6)
   ===================================================================== */
.archive { padding-bottom: 72px; }
.archive .col { margin-left: calc(236 / 1440 * 100cqw); width: calc(967 / 1440 * 100cqw); }
.archive-top { display: flex; justify-content: space-between; gap: 16px; padding-top: 46px; font-size: 12px; line-height: 16px; }
.archive-top strong { font-weight: 600; letter-spacing: .5px; }
.archive-top span { color: var(--grey); width: 156px; }
.archive-head { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: end; margin-top: 70px; }
.archive-head .note { margin-top: 0; padding: 16px 18px 18px; border-radius: 12px; }
.archive-head .note p:last-child { margin-top: 8px; font-size: 14px; line-height: 20px; letter-spacing: 0; }
.archive h1 { margin-top: 0; font-size: 80px; line-height: 88px; font-weight: 600; letter-spacing: -2.8px; }
.archive h1 .gothic { letter-spacing: 0; }
.archive-sub { margin-top: 32px; font-size: 14px; line-height: 20px; letter-spacing: .3px; color: var(--grey); }
.kicker { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 1.2px; color: var(--grey); }
.flow { display: grid; grid-template-columns: 390fr 158fr 419fr; margin-top: 108px; padding-bottom: 64px; border-bottom: 1px solid #d6d6d6; }
.flow h2 { margin-top: 18px; font-size: 38px; line-height: 47px; font-weight: 600; letter-spacing: -.8px; }
.flow-arrow { align-self: start; margin-top: 52px; font-size: 88px; line-height: 92px; letter-spacing: -2px; text-align: center; }
.note { margin-top: 64px; background: var(--night); color: #fff; border-radius: 16px; padding: 24px 28px 28px; }
.note .kicker { color: #9e9ea6; letter-spacing: 1.1px; }
.note p:last-child { margin-top: 12px; max-width: 900px; font-size: 23px; line-height: 31px; letter-spacing: -.2px; }
.report { margin-top: 104px; }
.viewer { margin-top: 20px; background: #f4f3f2; border-radius: 16px; overflow: hidden; }
.viewer-bar { display: grid; grid-template-columns: 1fr 136px 80px; align-items: center; height: 64px; padding: 0 24px; background: var(--night); color: #fff; font-size: 13px; line-height: 18px; }
.viewer-bar strong { font-weight: 600; letter-spacing: .4px; }
.viewer-bar span { color: #b8b8bd; }
.viewer-nav { display: flex; justify-content: flex-end; gap: 14px; }
.viewer-nav button { padding: 2px 4px; border: 0; background: none; color: #fff; font: inherit; font-size: 18px; line-height: 24px; cursor: pointer; }
.viewer-nav button:disabled { opacity: .3; cursor: default; }
.viewer-pages { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.viewer-pages::-webkit-scrollbar { display: none; }
.viewer-pages img { flex: none; width: 100%; aspect-ratio: 967 / 544; object-fit: contain; scroll-snap-align: start; -webkit-user-drag: none; }
.viewer-foot a { color: var(--grey); text-decoration: underline; text-underline-offset: 3px; }
.viewer-foot a:hover { color: var(--ink); }
.viewer-progress i { transition: width .3s var(--ease); }
.viewer-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; height: 48px; padding: 0 29px 0 24px; font-size: 12px; line-height: 17px; color: var(--grey); }
.viewer-progress { flex: none; width: 194px; height: 2px; border-radius: 1px; background: #c2c2c4; position: relative; }
.viewer-progress i { position: absolute; inset: 0 auto 0 0; border-radius: 1px; background: var(--ink); }
.archive-foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 78px; font-size: 12px; line-height: 16px; letter-spacing: .4px; color: var(--grey); }
.archive-foot a { color: var(--ink); font-weight: 600; letter-spacing: .2px; }
.archive-foot a:hover { opacity: .6; }

@media (max-width: 1100px) {
  .archive .col { margin-left: 40px; width: calc(100cqw - 80px); }
  .archive-head { grid-template-columns: 1fr 260px; gap: 28px; }
  .archive h1 { font-size: 60px; line-height: 66px; letter-spacing: -2px; }
}
@media (max-width: 760px) {
  .archive .col { margin-left: 20px; width: calc(100cqw - 40px); }
  .archive-top { padding-top: 60px; }
  .archive-head { grid-template-columns: 1fr; gap: 28px; margin-top: 48px; }
  .archive h1 { margin-top: 0; font-size: 46px; line-height: 52px; letter-spacing: -1.4px; }
  .archive-sub { margin-top: 16px; font-size: 12px; }
  .flow { grid-template-columns: 1fr; margin-top: 56px; padding-bottom: 40px; }
  .flow h2 { font-size: 26px; line-height: 33px; }
  .flow-arrow { margin: 16px 0; font-size: 56px; line-height: 56px; text-align: left; transform: rotate(90deg); width: 56px; }
  .note { margin-top: 40px; padding: 20px; }
  .note p:last-child { font-size: 18px; line-height: 26px; }
  .report { margin-top: 64px; }
  .viewer-bar { grid-template-columns: 1fr auto auto; gap: 12px; height: 52px; padding: 0 12px 0 16px; font-size: 12px; }
  .viewer-bar strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .viewer-nav { gap: 4px; }
  .viewer-foot { flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; height: auto; padding: 14px 16px; }
  .archive-foot { flex-direction: column; margin-top: 48px; }
}
