/* Brand Up There
   Black and white with soft everyday tones (mist, sand, sage, stone). Photography carries the colour.
   Type: DM Sans only, default spacing. Layout: 12 columns, 1440px max, 24px gutters. */

:root {
  --bg: #FFFFFF;
  --fg: #141213;
  --ink: #231F20;
  --surface: #F5F4F1;
  --line: #E6E3DE;
  --muted: #6A6667;
  --slot: #EFEDE9;
  --slot-2: #E6E3DE;
  --knock: var(--bg);
  --scrim: rgba(20, 18, 19, 0.4);

  --mist: #E4E9ED;
  --sand: #F0E9DD;
  --sage: #E3E8E0;
  --stone: #EEEBE6;
  --tone: var(--stone);

  --font: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --fs-mega: clamp(3rem, 1.6rem + 5.6vw, 7rem);
  --fs-display: clamp(2.375rem, 1.5rem + 3.2vw, 4.5rem);
  --fs-headline: clamp(1.625rem, 1.2rem + 1.4vw, 2.375rem);
  --fs-title: 1.25rem;
  --fs-body: 1.125rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.8125rem;

  --fs-xs: 0.75rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lead: 1.1875rem;
  --fs-h5: 1.375rem;
  --fs-h4: 1.5rem;
  --fs-h3: 1.75rem;
  --fs-h2: 2rem;

  --black: #141213;
  --white: #FFFFFF;

  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 12px;
  --r-xl: 20px;
  --r-pill: 999px;
  --r-u: 0 0 999px 999px;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 80px; --space-10: 120px;

  --dur-1: 0.2s;
  --dur-2: 0.35s;
  --dur-3: 0.6s;
  --dur-4: 0.9s;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --stagger: 70ms;

  --max: 1440px;
  --gutter: 24px;
  --header-h: 72px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F0E0E; --fg: #F4F3F1; --ink: #F4F3F1; --surface: #191818; --line: #2B2929; --muted: #A29E9F;
    --slot: #1C1B1B; --slot-2: #252323; --scrim: rgba(0, 0, 0, 0.6);
    --mist: #1B2025; --sand: #23201B; --sage: #1C211C; --stone: #201E1C;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F0E0E; --fg: #F4F3F1; --ink: #F4F3F1; --surface: #191818; --line: #2B2929; --muted: #A29E9F;
  --slot: #1C1B1B; --slot-2: #252323; --scrim: rgba(0, 0, 0, 0.6);
  --mist: #1B2025; --sand: #23201B; --sage: #1C211C; --stone: #201E1C;
  color-scheme: dark;
}


/* Reset */
*, *::before, *::after { box-sizing: border-box; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: var(--fs-body); line-height: 1.6; font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; text-wrap: balance; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--fg); color: var(--bg); padding: 10px 14px; z-index: 100; border-radius: var(--r-pill); }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.tnum { font-variant-numeric: tabular-nums; }
.label { font-size: var(--fs-label); font-weight: 600; line-height: 1.3; }
.small { font-size: var(--fs-small); }

.wrap {
  max-width: calc(var(--max) + 48px); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 900px) { .wrap { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); } }

/* Buttons and pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: var(--r-pill); border: 1px solid var(--fg); background: var(--fg); color: var(--bg); font-weight: 600; font-size: var(--fs-small); cursor: pointer; white-space: nowrap; transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out); }
.btn:hover { background: transparent; color: var(--fg); }
.btn-ghost { background: transparent; color: var(--fg); }
.btn-ghost:hover { background: var(--fg); color: var(--bg); }
.btn-light { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-light:hover { background: transparent; color: var(--white); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--r-pill); background: var(--bg); color: var(--fg); font-size: var(--fs-label); font-weight: 600; line-height: 1.2; }
.pill-dark { background: var(--black); color: var(--white); }
.arrow::after { content: "\2192"; margin-left: 6px; display: inline-block; transition: transform var(--dur-1) var(--ease-out); }
a:hover .arrow::after, .arrow:hover::after { transform: translateX(3px); }
.link { font-weight: 600; font-size: var(--fs-small); border-bottom: 1px solid currentColor; padding-bottom: 1px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); transition: transform var(--dur-2) var(--ease-out); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .bar { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.logo { color: var(--ink); flex: none; display: inline-flex; }
.logo svg { height: 26px; width: auto; }
.nav { display: flex; gap: 4px; align-items: center; flex: 1; }
.nav > li > a, .nav > li > button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--r-pill); background: none; border: 0; cursor: pointer; font-size: var(--fs-small); font-weight: 500; min-height: 40px; }
.nav > li > a:hover, .nav > li > button:hover, .nav > li > button[aria-expanded="true"] { background: var(--surface); }
.nav > li > a[aria-current="page"] { font-weight: 700; }
.chev { width: 10px; height: 10px; transition: transform var(--dur-1) var(--ease-out); }
button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.search-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 14px; border-radius: var(--r-pill); border: 0; background: var(--surface); cursor: pointer; font-size: var(--fs-small); color: var(--muted); min-width: 180px; }
.search-btn svg { width: 16px; height: 16px; color: var(--fg); }
.search-btn kbd { margin-left: auto; font-family: var(--font); font-size: var(--fs-xs); color: var(--muted); }
.signin { font-size: var(--fs-small); font-weight: 600; padding: 8px 10px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: var(--r-pill); border: 0; background: var(--surface); cursor: pointer; place-items: center; }
.menu-btn span { display: grid; gap: 5px; width: 18px; }
.menu-btn i { display: block; height: 2px; background: currentColor; }
.icon-btn { display: none; width: 44px; height: 44px; border-radius: var(--r-pill); border: 0; background: none; cursor: pointer; place-items: center; }
.icon-btn svg { width: 20px; height: 20px; }
@media (max-width: 1080px) { .search-btn { min-width: 0; } .search-btn .txt, .search-btn kbd { display: none; } }
@media (max-width: 960px) {
  .nav, .signin, .tools .btn, .search-btn { display: none; }
  .menu-btn, .icon-btn { display: grid; }
  .logo svg { height: 22px; }
  :root { --header-h: 60px; }
}

/* Mega menus */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.18); }
.mega .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: 48px; padding-block: 36px 44px; }
.mega-links { display: grid; gap: 4px; align-content: start; }
.mega-links a { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mega-links a strong { font-size: var(--fs-h4); line-height: 1.2; font-weight: 700; }
.mega-links a span { font-size: var(--fs-small); color: var(--muted); }
.mega-links a:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.mega-feature { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.mega-card { display: grid; gap: 10px; align-content: start; }
.mega-card .ph { aspect-ratio: 4 / 3; }
.mega-card strong { font-size: var(--fs-base); line-height: 1.3; }

/* Mobile menu */
.mmenu { position: fixed; inset: 0; z-index: 80; background: var(--bg); overflow-y: auto; padding: calc(env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; }
.mmenu-head { display: flex; justify-content: space-between; align-items: center; height: var(--header-h); }
.mmenu nav { display: grid; margin-top: 12px; }
.mmenu details { border-bottom: 1px solid var(--line); }
.mmenu summary, .mmenu nav > a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-size: var(--fs-h2); font-weight: 700; line-height: 1.1; cursor: pointer; list-style: none; }
.mmenu nav > a { border-bottom: 1px solid var(--line); }
.mmenu summary::-webkit-details-marker { display: none; }
.mmenu summary::after { content: "+"; font-weight: 400; font-size: var(--fs-h3); }
.mmenu details[open] summary::after { content: "\2212"; }
.mmenu details a { display: block; padding: 8px 0; font-size: var(--fs-body); font-weight: 500; }
.mmenu details > div { padding-bottom: 16px; }
.mmenu .m-cta { display: grid; gap: 10px; margin-top: auto; padding-top: 32px; }
.close-btn { width: 44px; height: 44px; border-radius: var(--r-pill); border: 0; background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.close-btn svg { width: 16px; height: 16px; }

/* Search */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 70; backdrop-filter: blur(2px); }
.search { position: fixed; z-index: 90; left: 50%; top: calc(80px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); width: min(760px, calc(100vw - 32px)); background: var(--bg); border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.35); max-height: min(72vh, 680px); display: flex; flex-direction: column; }
.search-top { display: flex; align-items: center; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.search-top svg { width: 20px; height: 20px; flex: none; }
.search input { border: 0; background: transparent; font-size: var(--fs-h5); padding: 20px 0; outline: none; width: 100%; color: var(--fg); }
.search-results { overflow-y: auto; padding: 8px 8px 16px; }
.sr-group { padding: 12px 12px 4px; }
.sr-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 8px 12px; border-radius: var(--r-lg); }
.sr-item .ph { width: 52px; height: 52px; border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.sr-item .ph img { width: 100%; height: 100%; object-fit: cover; }
.sr-item:hover, .sr-item.is-active { background: var(--surface); }
.sr-empty { padding: 20px; color: var(--muted); }


/* ---------- Image slots ---------- */
.ph { position: relative; overflow: hidden; background: var(--slot); max-width: 100%; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-4) var(--ease-out); }
a:hover .ph img { transform: scale(1.03); }
.ph.is-empty { background: color-mix(in srgb, var(--tint, var(--slot)) 14%, var(--slot)); }
.surface .ph.is-empty, .tone .ph.is-empty { background: color-mix(in srgb, var(--tint, var(--slot-2)) 14%, var(--slot-2)); }
.ph .slot { position: absolute; left: 12px; bottom: 10px; display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 500; color: var(--muted); line-height: 1.2; }
.ph .slot svg { width: 14px; height: 14px; flex: none; }
.r-45 { aspect-ratio: 4 / 5; } .r-43 { aspect-ratio: 4 / 3; } .r-11 { aspect-ratio: 1 / 1; } .r-169 { aspect-ratio: 16 / 9; }
.r-32 { aspect-ratio: 3 / 2; } .r-21 { aspect-ratio: 21 / 9; } .r-54 { aspect-ratio: 5 / 4; } .r-1610 { aspect-ratio: 16 / 10; }
.ph .pill { position: absolute; left: 12px; top: 12px; z-index: 2; }
.bleed { width: 100%; margin: 0; }
figcaption { font-size: var(--fs-label); color: var(--muted); margin-top: 10px; }
.bleed figcaption { padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 900px) { .bleed figcaption { padding-inline: 24px; } }

/* ---------- Shared bits ---------- */
.kicker { font-size: var(--fs-label); font-weight: 700; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: var(--fs-label); color: var(--muted); font-weight: 500; }
.chips { display: inline-flex; gap: 4px; }
.chips i { width: 12px; height: 12px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14); }
.tag { display: inline-flex; align-items: center; font-size: var(--fs-xs); font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill); background: var(--fg); color: var(--bg); line-height: 1.3; }
.tag.plain { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
.badges { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-xs); font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; line-height: 1.2; }
.badge.solid { background: var(--fg); color: var(--bg); box-shadow: none; }
.badge.solid::before { content: ""; width: 7px; height: 4px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-1px); }
.disc { display: flex; gap: 6px; flex-wrap: wrap; }
.disc span { font-size: var(--fs-xs); font-weight: 500; padding: 4px 10px; border-radius: var(--r-pill); background: var(--surface); }
.tone .disc span, .surface .disc span { background: var(--bg); }
.hover-line:hover h2, .hover-line:hover h3, .hover-line:hover .t { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.14em; }
.section { padding-block: 80px; }
.section.tight { padding-block: 48px; }
.surface { background: var(--surface); }
.tone { background: var(--tone); }
.t-mist { --tone: var(--mist); } .t-sand { --tone: var(--sand); } .t-sage { --tone: var(--sage); } .t-stone { --tone: var(--stone); }
.dark { background: var(--black); color: var(--white); --knock: var(--black); }
.dark .muted { color: rgba(255, 255, 255, 0.66); }
.dark .btn { background: var(--white); color: var(--black); border-color: var(--white); }
.dark .btn:hover { background: transparent; color: var(--white); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.sec-head h2 { font-size: var(--fs-headline); }
.sec-head p { color: var(--muted); max-width: 56ch; margin-top: 8px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; animation: pulse 2.4s ease-out infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 50%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.round { width: 44px; height: 44px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--bg); color: var(--fg); cursor: pointer; display: grid; place-items: center; flex: none; }
.round:hover { border-color: var(--fg); }
.round svg { width: 14px; height: 14px; }
.round[aria-disabled="true"] { opacity: 0.35; pointer-events: none; }
.icon-txt { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 8px 14px; min-height: 40px; cursor: pointer; font-size: var(--fs-small); font-weight: 600; color: var(--fg); }
.icon-txt:hover { border-color: var(--fg); }
.icon-txt svg { width: 16px; height: 16px; }
.icon-txt[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* Grids */
.grid-4, .grid-3, .grid-2 { display: grid; gap: 40px var(--gutter); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); } }

/* Cards */
.card { display: grid; gap: 12px; align-content: start; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.card h3 { font-size: var(--fs-title); line-height: 1.25; }
.card .deck { font-size: var(--fs-base); color: var(--muted); line-height: 1.5; }
.card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.14em; }
.card .palette-peek { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; display: flex; transition: height var(--dur-2) var(--ease-out); z-index: 2; }
.card .palette-peek i { flex: 1; }
.card:hover .palette-peek { height: 30px; }

/* Toolbar, filters */
.toolbar { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); transition: top var(--dur-2) var(--ease-out); }
.site-header.is-hidden ~ main .toolbar { top: env(safe-area-inset-top, 0px); }
.toolbar .wrap { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding-block: 12px; }
.toolbar .end { display: flex; gap: 12px; align-items: center; flex: none; }
.filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); padding: 8px 15px; min-height: 40px; border-radius: var(--r-pill); cursor: pointer; font-size: var(--fs-small); font-weight: 500; }
.chip:hover { border-color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip .n { font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .n { color: inherit; opacity: 0.7; }
.seg { display: inline-flex; background: var(--surface); border-radius: var(--r-pill); padding: 3px; flex: none; }
.seg button { background: none; border: 0; padding: 7px 14px; border-radius: var(--r-pill); cursor: pointer; font-size: var(--fs-small); font-weight: 600; min-height: 36px; color: var(--fg); }
.seg button[aria-pressed="true"] { background: var(--bg); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.count { font-size: var(--fs-label); color: var(--muted); white-space: nowrap; font-weight: 500; }
.select { appearance: none; -webkit-appearance: none; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 8px 34px 8px 14px; min-height: 40px; font-size: var(--fs-small); font-weight: 600; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 3.5L5 7l3.5-3.5' fill='none' stroke='%236A6667' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center / 10px; cursor: pointer; color: var(--fg); }
@media (max-width: 700px) { .toolbar .wrap { flex-wrap: wrap; } .toolbar .end { width: 100%; justify-content: space-between; } }

/* Depth meter for article labels */
.depth { display: inline-flex; gap: 2px; align-items: center; }
.depth i { width: 5px; height: 10px; border-radius: 1px; background: currentColor; opacity: 0.22; }
.depth i.on { opacity: 1; }

/* Forms */
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 240px; min-width: 0; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 12px 18px; font-size: var(--fs-base); background: var(--bg); color: var(--fg); min-height: 48px; }
.inline-form .btn { min-height: 48px; }
.form-done { font-size: var(--fs-small); font-weight: 600; }
.form { display: grid; gap: 14px; align-content: start; padding: 28px; background: var(--surface); border-radius: var(--r-md); grid-template-columns: minmax(0, 1fr); }
.form label { display: grid; gap: 6px; font-size: var(--fs-small); font-weight: 600; }
.form input, .form select, .form textarea { font-size: var(--fs-base); padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); width: 100%; color: var(--fg); }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .form .row2 { grid-template-columns: minmax(0, 1fr); } }
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; min-height: 36px; font-size: var(--fs-base); }
.check input { width: 18px; height: 18px; accent-color: var(--fg); }
.note { font-size: var(--fs-small); color: var(--muted); }
.note a { border-bottom: 1px solid currentColor; color: var(--fg); }
.searchbox { display: flex; align-items: center; gap: 10px; border: 1px solid var(--fg); border-radius: var(--r-pill); padding: 5px 5px 5px 20px; background: var(--bg); }
.searchbox svg { width: 18px; height: 18px; flex: none; }
.searchbox input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; padding: 10px 0; font-size: var(--fs-md); color: var(--fg); }

/* Accordion */
.faq { border-top: 1px solid var(--fg); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-size: var(--fs-lead); font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: var(--fs-h4); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 22px; color: var(--muted); max-width: 64ch; }

/* Before and after */
.ba { margin: 0; }
.ba-frame { position: relative; overflow: hidden; --pos: 50%; aspect-ratio: 16 / 9; background: var(--slot); user-select: none; }
.ba-frame > .ph { position: absolute; inset: 0; aspect-ratio: auto; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-before.is-empty { background: color-mix(in srgb, var(--fg) 7%, var(--slot)); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--bg); z-index: 3; pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: var(--pos); width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: var(--r-pill); background: var(--bg); color: var(--fg); display: grid; place-items: center; z-index: 4; pointer-events: none; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18); }
.ba-knob svg { width: 22px; height: 12px; }
.ba-lab { position: absolute; top: 14px; z-index: 4; pointer-events: none; }
.ba-lab.l { left: 14px; } .ba-lab.r { right: 14px; }
.ba-frame input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 5; margin: 0; }
.ba-frame:focus-within .ba-knob { outline: 2px solid var(--fg); outline-offset: 3px; }
.ba .ph .slot { z-index: 1; }
.ba-after .slot { left: auto; right: 12px; }

/* Mini cards (rails) */
.mini { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.mini .ph { aspect-ratio: 1; border-radius: var(--r-sm); }
.mini .ph .slot span { display: none; }
.mini strong { font-size: var(--fs-small); line-height: 1.3; display: block; }
.mini span.k { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.mini:hover strong { text-decoration: underline; }
.mono { display: grid; place-items: center; font-weight: 700; border-radius: var(--r-md); flex: none; background: var(--c, var(--surface)); color: var(--cf, var(--fg)); }

/* Numbered list */
.numlist { counter-reset: n; display: grid; }
.numlist li { counter-increment: n; border-top: 1px solid var(--line); }
.numlist a { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; padding: 14px 0; font-weight: 700; line-height: 1.3; }
.numlist a::before { content: counter(n); font-size: var(--fs-h5); line-height: 1; }
.numlist a:hover span { text-decoration: underline; }

/* Book mockup */
.book { position: relative; perspective: 1400px; }
.book .cover { position: relative; transform: rotateY(-18deg); transform-origin: left center; box-shadow: 24px 30px 50px -18px rgba(0, 0, 0, 0.35); border-radius: 2px 6px 6px 2px; overflow: hidden; transition: transform var(--dur-3) var(--ease-out); }
.book .cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 14px; background: linear-gradient(90deg, rgba(0, 0, 0, 0.22), rgba(255, 255, 255, 0.12) 60%, transparent); z-index: 3; }
a:hover .book .cover, .book:hover .cover { transform: rotateY(-8deg); }


/* ================= HOME ================= */
.feed-hero { padding-block: 28px 64px; }
.fh-head { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--fg); }
.fh-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fh-title h1 { font-size: var(--fs-h3); line-height: 1; }
.fh-stamp { font-size: var(--fs-small); color: var(--muted); font-weight: 500; }
.feed { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); grid-auto-flow: row dense; }
.f-item { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr); align-content: start; }
.f-meta { display: flex; align-items: center; gap: 8px; font-size: var(--fs-label); font-weight: 500; color: var(--muted); flex-wrap: wrap; }
.f-meta b { color: var(--fg); font-weight: 700; }
.f-meta .sep { width: 3px; height: 3px; border-radius: var(--r-pill); background: currentColor; }
.f-title { font-weight: 700; line-height: 1.2; text-wrap: balance; }
.f-deck { color: var(--muted); }
.f-item:hover .f-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.14em; }
.f-item.is-lead { grid-column: 1 / span 7; grid-row: 1 / span 6; gap: 16px; padding-right: 16px; }
.f-item.is-lead .ph { aspect-ratio: 4 / 3; }
.f-item.is-lead .f-title { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.5rem); line-height: 1.04; }
.f-item.is-lead .f-deck { font-size: var(--fs-lead); max-width: 54ch; }
.f-item.is-lead .f-meta { font-size: var(--fs-small); }
.f-item.is-river { grid-column: 8 / -1; grid-template-columns: minmax(0, 1fr) 96px; gap: 6px 18px; padding-block: 16px; border-top: 1px solid var(--line); align-content: center; }
.f-item.is-river:first-of-type, .f-item.is-river.first { border-top: 0; padding-top: 0; }
.f-item.is-river .ph { grid-column: 2; grid-row: 1 / span 2; aspect-ratio: 1; align-self: start; }
.f-item.is-river .ph .pill, .f-item.is-river .ph .slot span { display: none; }
.f-item.is-river .f-title { font-size: var(--fs-body); }
.f-item.is-river .f-deck { display: none; }
.f-item.is-row { grid-column: span 3; gap: 10px; margin-top: 48px; }
.f-item.is-row .ph { aspect-ratio: 4 / 3; }
.f-item.is-row .f-title { font-size: var(--fs-md); }
.f-item.is-row .f-deck { display: none; }
.f-item.is-off { display: none; }
.fh-more { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
@media (max-width: 1000px) {
  .f-item.is-lead { grid-column: 1 / -1; grid-row: auto; padding-right: 0; margin-bottom: 24px; }
  .f-item.is-river { grid-column: 1 / -1; }
  .f-item.is-river.first { border-top: 1px solid var(--line); padding-top: 16px; }
  .f-item.is-row { grid-column: span 6; }
}
@media (max-width: 560px) { .f-item.is-river { grid-template-columns: minmax(0, 1fr) 76px; } .f-item.is-lead .ph { aspect-ratio: 1 / 1; } .fh-title h1 { font-size: var(--fs-h4); } }

/* Home: Showcase spread */
.sc-spread { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--gutter); }
.sc-spread .card.big .ph { aspect-ratio: 1 / 1; }
.sc-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 32px var(--gutter); align-content: start; }
.sc-stack .ph { aspect-ratio: 4 / 5; }
.sc-stack .card .deck { display: none; }
@media (max-width: 900px) { .sc-spread { grid-template-columns: minmax(0, 1fr); } }

/* Home: reading + most read */
.read-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; }
.most h2 { font-size: var(--fs-title); padding-bottom: 12px; }
@media (max-width: 1000px) { .read-split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .read-split .card { grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr); column-gap: 14px; row-gap: 6px; }
  .read-split .card > .ph { grid-row: 1 / span 3; aspect-ratio: 1; }
  .read-split .card > .ph .pill, .read-split .card > .ph .slot span { display: none; }
  .read-split .card > .deck { display: none; }
  .read-split .card h3 { font-size: var(--fs-md); }
  .read-split .grid-3 { gap: 20px; }
}

/* Home: programme band */
.prog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.prog-card { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--tone); border-radius: var(--r-md); overflow: hidden; color: var(--fg); --knock: var(--tone); }
.prog-card .ph { aspect-ratio: 16 / 11; }
.prog-card .body { padding: 26px 26px 30px; display: grid; gap: 12px; }
.prog-card .submark { width: 120px; height: auto; color: var(--fg); }
.prog-card h3 { font-size: var(--fs-h5); line-height: 1.2; }
.prog-card .label { font-size: var(--fs-label); font-weight: 600; color: var(--muted); }
.prog-card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.14em; }
@media (max-width: 900px) { .prog { grid-template-columns: minmax(0, 1fr); } }

/* Home: archive + directory + promos */
.archive-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.arch-card { display: grid; gap: 12px; align-content: start; grid-template-columns: minmax(0, 1fr); }
.arch-card .ph { aspect-ratio: 3 / 2; }
.arch-card .num { font-size: 3.5rem; font-weight: 700; line-height: 0.9; }
.arch-card .row { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.arch-card:hover h3 { text-decoration: underline; }
@media (max-width: 900px) { .archive-row { grid-template-columns: minmax(0, 1fr); } }
.dir-promo { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: 56px; align-items: start; }
.dir-promo h2 { font-size: var(--fs-display); }
@media (max-width: 1000px) { .dir-promo { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.promos { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.promo { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); background: var(--tone); border-radius: var(--r-md); overflow: hidden; min-height: 300px; }
.promo .body { padding: 32px; display: grid; gap: 10px; align-content: center; }
.promo h3 { font-size: var(--fs-h3); line-height: 1.1; }
.promo .ph { height: 100%; }
@media (max-width: 1000px) { .promos { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .promo { grid-template-columns: minmax(0, 1fr); } .promo .ph { aspect-ratio: 16 / 9; height: auto; } }

/* ================= SECTION MASTHEADS ================= */
.mast { padding-block: 28px 0; }
.crumb { display: flex; gap: 8px; font-size: var(--fs-label); font-weight: 600; color: var(--muted); flex-wrap: wrap; }
.crumb a:hover { color: var(--fg); }
.mast-row { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; margin-top: 18px; }
.mast h1 { font-size: var(--fs-mega); line-height: 0.95; }
.mast-deck { font-size: var(--fs-title); color: var(--muted); max-width: 54ch; margin-top: 18px; line-height: 1.5; }
.mast-stats { display: flex; gap: 36px; margin: 0; flex-wrap: wrap; }
.mast-stats div { display: grid; gap: 2px; }
.mast-stats dt { font-size: var(--fs-label); color: var(--muted); font-weight: 500; order: 2; }
.mast-stats dd { margin: 0; font-size: 2.25rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.mast-foot { margin-top: 40px; }

/* ================= LATEST + WIRE ================= */
.river-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr) 320px; gap: 48px; padding-block: 32px 96px; }
.rail { position: sticky; top: calc(var(--header-h) + 88px); align-self: start; display: grid; gap: 28px; }
.rail h2 { font-size: var(--fs-label); font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.rail-days a { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: var(--fs-small); }
.rail-days a span { color: var(--muted); font-weight: 500; }
.rail-days a.on { font-weight: 700; }
.rail-days a:hover { text-decoration: underline; }
.day-h { position: sticky; top: calc(var(--header-h) + 64px); z-index: 5; background: var(--bg); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0 12px; border-bottom: 2px solid var(--fg); margin-top: 8px; }
.day-h strong { font-size: var(--fs-h4); }
.day-h span { font-size: var(--fs-small); color: var(--muted); }
.day-h + .river-item { border-top: 0; }
.river-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) 220px; gap: 24px; padding-block: 24px; border-top: 1px solid var(--line); }
.ri-time { display: grid; gap: 2px; align-content: start; font-variant-numeric: tabular-nums; }
.ri-time b { font-size: var(--fs-body); }
.ri-time span { font-size: var(--fs-label); color: var(--muted); }
.ri-body { display: grid; gap: 10px; align-content: start; min-width: 0; }
.ri-tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: var(--fs-label); color: var(--muted); font-weight: 600; }
.ri-body h3 { font-size: var(--fs-h4); line-height: 1.18; }
.ri-body p { color: var(--muted); font-size: var(--fs-base); max-width: 60ch; }
.ri-src { font-size: var(--fs-label); color: var(--muted); }
.river-item:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.14em; }
.ri-media { display: grid; gap: 6px; align-content: start; }
.ri-media .ph { aspect-ratio: 4 / 3; border-radius: var(--r-sm); }
.ri-media .ph .slot span { font-size: var(--fs-xs); }
.ri-media.pair { grid-template-columns: 1fr 1fr; }
.ri-media.pair .ph { aspect-ratio: 3 / 4; }
.ri-media .cap { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.side-card { border-radius: var(--r-md); padding: 26px; display: grid; gap: 12px; }
.side-card h2 { font-size: var(--fs-h4); line-height: 1.15; }
@media (max-width: 1180px) { .river-layout { grid-template-columns: 180px minmax(0, 1fr); } .river-layout > aside.end { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 860px) {
  .river-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .rail { position: static; }
  .rail-days { display: flex; gap: 8px; overflow-x: auto; }
  .rail-days a { border: 1px solid var(--line); border-radius: var(--r-pill); padding: 8px 14px; flex: none; }
  .river-layout > aside.end { grid-template-columns: minmax(0, 1fr); }
  .river-item { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
  .ri-media { grid-column: 2; }
  .ri-media.pair { max-width: 280px; }
  .ri-media:not(.pair) { max-width: 280px; }
  .ri-body h3 { font-size: var(--fs-title); }
  .day-h { top: calc(var(--header-h) + 64px); }
}

/* Wire story */
.stream-bar { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.stream-bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 60px; }
.stream-bar .pos { font-size: var(--fs-small); color: var(--muted); font-weight: 500; }
.stream-bar .navs { display: flex; gap: 8px; align-items: center; }
.ws-head { display: grid; gap: 18px; padding-block: 48px 36px; max-width: 980px; }
.ws-head h1 { font-size: var(--fs-display); line-height: 1.02; }
.ws-head .row { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.ws-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; padding-block: 56px 32px; }
.ws-blocks { display: grid; margin: 0; }
.ws-blocks > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding-block: 22px; border-top: 1px solid var(--line); }
.ws-blocks > div:first-child { border-top: 2px solid var(--fg); }
.ws-blocks dt { font-weight: 700; font-size: var(--fs-small); }
.ws-blocks dd { margin: 0; font-size: var(--fs-lead); line-height: 1.55; max-width: 62ch; }
.ws-blocks blockquote { margin: 0; font-size: var(--fs-h4); line-height: 1.35; font-weight: 600; }
.ws-blocks cite { display: block; margin-top: 10px; font-style: normal; font-size: var(--fs-small); color: var(--muted); font-weight: 500; }
.ws-aside { display: grid; gap: 20px; align-content: start; position: sticky; top: calc(var(--header-h) + 84px); align-self: start; }
.box { border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; display: grid; gap: 12px; }
.box h2 { font-size: var(--fs-small); font-weight: 700; }
@media (max-width: 960px) { .ws-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } .ws-aside { position: static; } }
@media (max-width: 640px) { .ws-blocks > div { grid-template-columns: minmax(0, 1fr); gap: 6px; } .ws-blocks blockquote { font-size: var(--fs-title); } }

/* ================= ARTICLES ================= */
.lead-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: end; padding-block: 40px 56px; border-bottom: 1px solid var(--line); }
.lead-split .txt { display: grid; gap: 16px; padding-bottom: 6px; }
.lead-split h2 { font-size: var(--fs-display); line-height: 1.02; }
.lead-split p { font-size: var(--fs-lead); color: var(--muted); }
.lead-split:hover h2 { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.12em; }
@media (max-width: 900px) { .lead-split { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.label-line { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-label); font-weight: 700; }
.opinion-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
.op-card { display: grid; gap: 24px; align-content: space-between; padding: 36px; border-radius: var(--r-md); background: var(--tone); min-height: 320px; }
.op-card q { font-size: clamp(1.5rem, 1.1rem + 1vw, 2.125rem); font-weight: 700; line-height: 1.2; quotes: "\201C" "\201D"; }
.op-card .by { display: flex; align-items: center; gap: 12px; }
.op-card:hover q { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.14em; }
.avatar { width: 44px; height: 44px; border-radius: var(--r-u); background: var(--fg); color: var(--bg); display: grid; place-items: center; font-size: var(--fs-label); font-weight: 700; flex: none; }
@media (max-width: 760px) { .opinion-row { grid-template-columns: minmax(0, 1fr); } .op-card { min-height: 0; padding: 26px; } }
.portraits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
.portrait { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: 24px; align-items: end; }
.portrait .ph { aspect-ratio: 4 / 5; }
.portrait .txt { display: grid; gap: 10px; padding-bottom: 6px; }
.portrait h3 { font-size: var(--fs-h4); line-height: 1.15; }
.portrait:hover h3 { text-decoration: underline; }
@media (max-width: 900px) { .portraits { grid-template-columns: minmax(0, 1fr); } }

/* Article */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--fg); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); z-index: 95; }
.art-head { max-width: 900px; margin: 0 auto; text-align: center; display: grid; gap: 20px; justify-items: center; padding-block: 56px 40px; }
.art-head h1 { font-size: var(--fs-display); line-height: 1.02; }
.art-head .deck { font-size: var(--fs-h5); color: var(--muted); max-width: 46ch; line-height: 1.45; }
.byline { display: flex; align-items: center; gap: 12px; text-align: left; font-size: var(--fs-small); }
.art-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.art-hero .ph { aspect-ratio: 21 / 9; }
@media (max-width: 760px) { .art-hero .ph { aspect-ratio: 4 / 3; } }
.art-layout { display: grid; grid-template-columns: 240px minmax(0, 680px) 240px; justify-content: center; gap: 56px; padding-block: 56px 24px; }
.toc { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; display: grid; gap: 4px; }
.toc h2 { font-size: var(--fs-label); color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.toc a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--line); font-size: var(--fs-small); font-weight: 500; color: var(--muted); }
.toc a.on, .toc a:hover { border-color: var(--fg); color: var(--fg); font-weight: 700; }
.in-story { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; display: grid; gap: 0; }
.in-story h2 { font-size: var(--fs-label); color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.in-short { background: var(--surface); border-radius: var(--r-md); padding: 24px 26px; margin-bottom: 40px; }
.in-short h2 { font-size: var(--fs-small); font-weight: 700; margin-bottom: 10px; }
.in-short ul { display: grid; gap: 8px; }
.in-short li { padding-left: 20px; position: relative; font-size: var(--fs-md); line-height: 1.5; }
.in-short li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: var(--r-u); background: var(--fg); }
.prose { font-size: var(--fs-lead); line-height: 1.72; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: var(--fs-h3); line-height: 1.2; margin-top: 2em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose blockquote { margin: 1.8em 0; padding: 28px 0; border-top: 2px solid var(--fg); border-bottom: 1px solid var(--line); font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.2; font-weight: 700; }
.prose figure { margin: 2em 0; }
.prose .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.art-bleed { margin-block: 56px; }
.art-bleed .ph { aspect-ratio: 21 / 9; }
.art-end { max-width: 680px; margin: 0 auto; display: grid; gap: 28px; padding-block: 24px 40px; }
.topics { display: flex; gap: 8px; flex-wrap: wrap; }
.topics a { font-size: var(--fs-small); font-weight: 600; padding: 7px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); }
.topics a:hover { border-color: var(--fg); }
.author-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-top: 1px solid var(--fg); border-bottom: 1px solid var(--line); }
.author-card .avatar { width: 64px; height: 64px; font-size: var(--fs-base); }
.up-next { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; background: var(--tone); border-radius: var(--r-md); overflow: hidden; }
.up-next .txt { padding: 40px; display: grid; gap: 14px; align-content: center; }
.up-next h2 { font-size: var(--fs-headline); line-height: 1.1; }
.up-next .ph { aspect-ratio: auto; min-height: 320px; height: 100%; }
.up-next:hover h2 { text-decoration: underline; }
@media (max-width: 1180px) { .art-layout { grid-template-columns: minmax(0, 680px) 240px; gap: 48px; } .toc { display: none; } }
@media (max-width: 900px) { .art-layout { grid-template-columns: minmax(0, 1fr); } .in-story { position: static; } .up-next { grid-template-columns: minmax(0, 1fr); } .up-next .ph { min-height: 220px; } .up-next .txt { padding: 28px; } }
.factbox { border-top: 2px solid var(--fg); }
.factbox dl { margin: 0; }
.factbox .r { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.factbox dt { color: var(--muted); font-weight: 600; }
.factbox dd { margin: 0; }
.factbox a { border-bottom: 1px solid currentColor; }

/* ================= SHOWCASE ================= */
.sc-feature { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--gutter); padding-block: 40px 56px; }
.sc-feature .feat { display: grid; gap: 14px; align-content: start; grid-template-columns: minmax(0, 1fr); }
.sc-feature .feat.big .ph { aspect-ratio: 16 / 10; }
.sc-feature .side { display: grid; gap: 28px; align-content: start; }
.sc-feature .side .ph { aspect-ratio: 16 / 10; }
.feat h2 { font-size: var(--fs-headline); line-height: 1.08; }
.feat .side h2, .sc-feature .side h2 { font-size: var(--fs-h5); }
.feat:hover h2 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.14em; }
@media (max-width: 900px) { .sc-feature { grid-template-columns: minmax(0, 1fr); } }
.sc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px var(--gutter); }
.sc-grid .card .ph { aspect-ratio: 4 / 5; }
@media (max-width: 900px) { .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; } .sc-grid .card .deck { display: none; } .sc-grid .card h3 { font-size: var(--fs-md); } }
.sc-index { border-top: 2px solid var(--fg); }
.ix-row { display: grid; grid-template-columns: 56px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.8fr) 64px; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ix-row .no { font-size: var(--fs-small); color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; }
.ix-row .t { font-size: clamp(1.375rem, 1rem + 1vw, 2.125rem); font-weight: 700; line-height: 1.1; }
.ix-row .s, .ix-row .i, .ix-row .y { font-size: var(--fs-small); color: var(--muted); font-weight: 500; }
.ix-row .y { text-align: right; font-variant-numeric: tabular-nums; }
.ix-row:hover .t { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.14em; }
.ix-preview { position: fixed; z-index: 30; width: 280px; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(0.92); transition: opacity var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out); }
.ix-preview.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.ix-preview .ph { aspect-ratio: 4 / 5; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.4); }
@media (max-width: 760px) { .ix-row { grid-template-columns: 34px minmax(0, 1fr) 48px; } .ix-row .s, .ix-row .i { display: none; } .ix-preview { display: none; } }
.submit-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 40px; border-radius: var(--r-md); }
.submit-band h2 { font-size: var(--fs-headline); }
@media (max-width: 700px) { .submit-band { grid-template-columns: minmax(0, 1fr); padding: 28px; } }

/* Project */
.proj-head { padding-block: 28px 40px; display: grid; gap: 18px; }
.proj-head h1 { font-size: var(--fs-mega); line-height: 0.95; }
.proj-sub { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.proj-sub .deck { font-size: var(--fs-h5); line-height: 1.4; max-width: 38ch; color: var(--muted); }
.proj-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 12px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.proj-facts dt { font-size: var(--fs-label); color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.proj-facts dd { margin: 0; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.proj-facts .mono { width: 30px; height: 30px; font-size: var(--fs-xs); }
@media (max-width: 760px) { .proj-facts { grid-template-columns: 1fr 1fr; } }
.proj-hero .ph { aspect-ratio: 21 / 9; }
@media (max-width: 760px) { .proj-hero .ph { aspect-ratio: 4 / 3; } }
.proj-body { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 72px; padding-block: 72px; }
.bp { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: grid; gap: 4px; }
.bp-title { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 2px solid var(--fg); }
.bp-title h2 { font-size: var(--fs-title); }
.bp .r { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.bp dt { color: var(--muted); font-weight: 600; }
.bp dd { margin: 0; font-weight: 500; }
.bp dd a { border-bottom: 1px solid currentColor; }
.bp .sw { display: flex; gap: 6px; }
.bp .sw i { width: 22px; height: 22px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.bp .acts { display: grid; gap: 8px; margin-top: 16px; }
.story { display: grid; gap: 24px; align-content: start; min-width: 0; }
.story .lede { font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.875rem); line-height: 1.35; font-weight: 500; max-width: 34ch; }
.story p.body { font-size: var(--fs-body); line-height: 1.7; max-width: 62ch; color: var(--muted); }
.story .two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.story .three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.story figure { margin: 0; }
.story-quote { margin: 32px 0; padding-left: 28px; border-left: 2px solid var(--fg); }
.story-quote p { font-size: clamp(1.5rem, 1.15rem + 1vw, 2.25rem); font-weight: 700; line-height: 1.2; }
.story-quote footer { margin-top: 14px; font-size: var(--fs-small); color: var(--muted); font-weight: 500; }
.story h2 { font-size: var(--fs-headline); margin-top: 24px; }
@media (max-width: 1000px) { .proj-body { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 40px; } .bp { position: static; order: 2; } }
@media (max-width: 560px) { .story .three { grid-template-columns: 1fr 1fr; } .story .three > :last-child { display: none; } }
.palette-band { display: flex; min-height: 300px; }
.palette-band .sw { flex: var(--w, 1); display: grid; align-content: end; gap: 4px; padding: 22px 20px; background: var(--c); color: var(--cf); min-width: 0; border: 0; cursor: pointer; text-align: left; font: inherit; transition: flex var(--dur-2) var(--ease-out); }
.palette-band .sw:hover { flex: calc(var(--w, 1) * 1.4); }
.palette-band .sw b { font-size: var(--fs-body); font-variant-numeric: tabular-nums; }
.palette-band .sw span { font-size: var(--fs-label); opacity: 0.8; }
@media (max-width: 700px) { .palette-band { flex-direction: column; min-height: 0; } .palette-band .sw { min-height: 96px; } }
.spec-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.spec { border-top: 2px solid var(--fg); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.spec .big { font-size: var(--fs-h2); font-weight: 700; line-height: 1.1; }
@media (max-width: 860px) { .spec-cards { grid-template-columns: minmax(0, 1fr); } }
.next-proj { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); background: var(--fg); color: var(--bg); min-height: 420px; }
.next-proj .txt { padding: 56px max(24px, env(safe-area-inset-left, 0px)); display: grid; gap: 14px; align-content: center; }
.next-proj .txt span { opacity: 0.7; font-weight: 600; font-size: var(--fs-small); }
.next-proj h2 { font-size: var(--fs-mega); line-height: 0.95; }
.next-proj .ph { height: 100%; min-height: 300px; }
.next-proj .ph.is-empty { background: color-mix(in srgb, var(--bg) 12%, var(--fg)); }
.next-proj .ph .slot { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.next-proj:hover h2 { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 0.1em; }
@media (max-width: 800px) { .next-proj { grid-template-columns: minmax(0, 1fr); } .next-proj .txt { padding: 40px 16px; } }

/* ================= DIRECTORY ================= */
.dir-hero { padding-block: 32px 48px; }
.dir-hero h1 { font-size: var(--fs-mega); line-height: 0.95; max-width: 12ch; }
.dir-hero .grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-top: 18px; }
.dir-hero .searchbox { padding: 7px 7px 7px 22px; }
.dir-hero .searchbox input { font-size: var(--fs-lead); padding: 12px 0; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.quick button { border: 0; background: var(--bg); color: var(--fg); border-radius: var(--r-pill); padding: 7px 14px; font-size: var(--fs-small); font-weight: 500; cursor: pointer; min-height: 36px; }
.quick button:hover { box-shadow: inset 0 0 0 1px var(--fg); }
@media (max-width: 900px) { .dir-hero .grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.dir-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; padding-block: 40px 88px; }
.dir-filters { display: grid; gap: 24px; align-content: start; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.dir-filters fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 2px; }
.dir-filters legend { font-weight: 700; font-size: var(--fs-small); margin-bottom: 8px; }
.dir-more > summary { display: none; }
.dir-more-body { display: grid; gap: 24px; }
@media (max-width: 900px) {
  .dir-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
  .dir-filters { position: static; }
  .dir-more { border: 1px solid var(--line); border-radius: var(--r-xl); }
  .dir-more[open] { border-radius: 16px; }
  .dir-more > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; list-style: none; cursor: pointer; padding: 12px 20px; font-weight: 700; font-size: var(--fs-small); min-height: 48px; }
  .dir-more > summary::-webkit-details-marker { display: none; }
  .dir-more > summary::after { content: "+"; font-size: var(--fs-title); font-weight: 400; }
  .dir-more[open] > summary::after { content: "\2212"; }
  .dir-active { margin-left: auto; color: var(--muted); font-weight: 500; }
  .dir-more-body { padding: 8px 20px 20px; }
}
.dir-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.ag-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px var(--gutter); }
@media (max-width: 760px) { .ag-list { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
.ag { display: grid; gap: 14px; align-content: start; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.ag-work { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; aspect-ratio: 16 / 10; }
.ag-work .ph { aspect-ratio: auto; height: 100%; }
.ag-work .ph:first-child { grid-row: 1 / span 2; }
.ag-work .ph:not(:first-child) .slot span { display: none; }
.ag-id { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.ag-id .mono { width: 44px; height: 44px; font-size: 13px; }
.ag-id h3 { font-size: var(--fs-h5); line-height: 1.2; }
.ag:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.14em; }
.ag .line { color: var(--muted); font-size: var(--fs-base); }
.ag-foot { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.ag-foot .budget { font-size: var(--fs-small); font-weight: 700; }
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); counter-reset: s; }
.steps3 > div { counter-increment: s; display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 2px solid var(--fg); }
.steps3 > div::before { content: counter(s, decimal-leading-zero); font-size: 2.5rem; font-weight: 700; line-height: 1; }
.steps3 h3 { font-size: var(--fs-title); }
.steps3 p { color: var(--muted); }
@media (max-width: 760px) { .steps3 { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* Agency profile */
.ag-cover { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: clamp(320px, 42vw, 600px); margin-top: 20px; }
.ag-cover .ph { height: 100%; }
.ag-cover .ph:first-child { grid-row: 1 / span 2; }
@media (max-width: 700px) { .ag-cover { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; height: auto; } .ag-cover .ph:first-child { aspect-ratio: 4 / 3; } .ag-cover .ph:not(:first-child) { display: none; } }
.ag-ident { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding-block: 32px; }
.ag-ident .mono { width: 96px; height: 96px; font-size: var(--fs-h3); border-radius: var(--r-lg); }
.ag-ident h1 { font-size: var(--fs-display); line-height: 1; }
.ag-ident .acts { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 860px) { .ag-ident { grid-template-columns: 64px minmax(0, 1fr); } .ag-ident .mono { width: 64px; height: 64px; font-size: var(--fs-body); } .ag-ident .acts { grid-column: 1 / -1; } }
.tabs { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 20; background: var(--bg); border-block: 1px solid var(--line); }
.tabs .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs .wrap::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 16px 14px; font-size: var(--fs-small); font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on, .tabs a:hover { color: var(--fg); border-color: var(--fg); }
.ag-sec { padding-block: 64px 8px; scroll-margin-top: calc(var(--header-h) + 72px); }
.ag-sec > h2 { font-size: var(--fs-headline); margin-bottom: 28px; }
.facts4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding-block: 24px; border-block: 1px solid var(--line); }
.facts4 dt { font-size: var(--fs-label); color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.facts4 dd { margin: 0; font-weight: 600; font-size: var(--fs-md); }
@media (max-width: 760px) { .facts4 { grid-template-columns: 1fr 1fr; } }
.about-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; }
.about-split .statement { font-size: clamp(1.5rem, 1.15rem + 1vw, 2.25rem); font-weight: 600; line-height: 1.25; }
@media (max-width: 900px) { .about-split { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.services > div { display: grid; gap: 8px; align-content: start; padding: 26px; border-radius: var(--r-md); background: var(--surface); }
.services h3 { font-size: var(--fs-title); }
.services p { color: var(--muted); font-size: var(--fs-base); }
@media (max-width: 860px) { .services { grid-template-columns: minmax(0, 1fr); } }
.logos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.logos .ph { aspect-ratio: 3 / 2; }
.logos .ph .slot { left: 50%; bottom: 50%; transform: translate(-50%, 50%); }
@media (max-width: 760px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.person { display: grid; gap: 10px; align-content: start; grid-template-columns: minmax(0, 1fr); }
.person .ph { aspect-ratio: 4 / 5; }
.person h3 { font-size: var(--fs-md); }
.person span { font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 860px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.enquire { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; padding: 48px; border-radius: var(--r-md); }
.enquire h2 { font-size: var(--fs-headline); }
.enquire .form { background: var(--bg); }
@media (max-width: 900px) { .enquire { grid-template-columns: minmax(0, 1fr); padding: 24px; gap: 28px; } }
.vlist { display: grid; gap: 12px; counter-reset: v; }
.vlist li { counter-increment: v; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
.vlist li::before { content: counter(v); width: 26px; height: 26px; border-radius: var(--r-pill); background: var(--fg); color: var(--bg); display: grid; place-items: center; font-size: var(--fs-xs); font-weight: 700; }

/* ================= PROGRAMME PAGES ================= */
.prog-hero { background: var(--tone); --knock: var(--tone); }
.prog-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; padding-block: 56px 64px; }
.prog-hero .copy { display: grid; gap: 22px; min-width: 0; }
.prog-hero .submark { width: clamp(140px, 16vw, 200px); height: auto; color: var(--fg); }
.prog-hero h1 { font-size: var(--fs-display); line-height: 1; }
.prog-hero p { font-size: var(--fs-title); max-width: 44ch; line-height: 1.5; }
.prog-hero .ph { aspect-ratio: 5 / 4; border-radius: var(--r-md); }
.status { display: flex; gap: 8px; flex-wrap: wrap; }
.status span { font-size: var(--fs-label); font-weight: 600; padding: 6px 12px; border-radius: var(--r-pill); background: var(--bg); }
@media (max-width: 860px) { .prog-hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 36px 40px; } .prog-hero .ph { aspect-ratio: 4 / 3; } }
.formats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.format { display: grid; gap: 12px; align-content: start; grid-template-columns: minmax(0, 1fr); }
.format .ph { aspect-ratio: 4 / 5; }
.format .n { font-size: var(--fs-label); font-weight: 700; color: var(--muted); }
.format h3 { font-size: var(--fs-title); }
.format p { color: var(--muted); font-size: var(--fs-base); }
@media (max-width: 1000px) { .formats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.edition { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 48px; border-top: 1px solid var(--line); }
.edition:nth-child(even) .ph { order: 2; }
.edition .ph { aspect-ratio: 3 / 2; }
.edition .txt { display: grid; gap: 14px; }
.edition .num { font-size: clamp(4rem, 3rem + 4vw, 8rem); font-weight: 700; line-height: 0.85; }
.edition h3 { font-size: var(--fs-h3); }
.edition dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 20px; margin: 0; font-size: var(--fs-small); }
.edition dt { color: var(--muted); font-weight: 600; }
.edition dd { margin: 0; }
.edition .links { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 860px) { .edition { grid-template-columns: minmax(0, 1fr); gap: 20px; } .edition:nth-child(even) .ph { order: 0; } }
.photo-wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(140px, 16vw, 240px); gap: 10px; grid-auto-flow: dense; }
.photo-wall .ph:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.photo-wall .ph:nth-child(4), .photo-wall .ph:nth-child(5) { grid-row: span 2; }
.photo-wall .ph:nth-child(6) { grid-column: span 2; }
@media (max-width: 600px) { .photo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; } .photo-wall .ph:nth-child(4), .photo-wall .ph:nth-child(5) { grid-row: span 1; } }
.speakers { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gutter); }
@media (max-width: 1000px) { .speakers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .speakers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.interest { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 48px; border-radius: var(--r-md); }
.interest h2 { font-size: var(--fs-headline); }
@media (max-width: 860px) { .interest { grid-template-columns: minmax(0, 1fr); padding: 28px; gap: 20px; } }
.replay { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.player { position: relative; }
.player .ph { aspect-ratio: 16 / 9; border-radius: var(--r-md); }
.player .play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: var(--r-pill); border: 0; background: var(--bg); color: var(--fg); cursor: pointer; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2); transition: transform var(--dur-1) var(--ease-out); z-index: 3; }
.player .play:hover { transform: scale(1.06); }
.player .play svg { width: 26px; height: 26px; margin-left: 4px; }
.player .ph .slot span { display: none; }
.facts2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin: 0; }
.facts2 dt { font-size: var(--fs-label); color: var(--muted); font-weight: 600; }
.facts2 dd { margin: 0; font-weight: 600; }
@media (max-width: 900px) { .replay { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.lib { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.lib .soon { border: 1px dashed var(--line); border-radius: var(--r-md); display: grid; place-items: center; text-align: center; padding: 32px; aspect-ratio: 16 / 9; color: var(--muted); font-weight: 600; font-size: var(--fs-small); }
@media (max-width: 860px) { .lib { grid-template-columns: minmax(0, 1fr); } }
.perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.perk { display: grid; gap: 12px; align-content: start; grid-template-columns: minmax(0, 1fr); }
.perk .ph { aspect-ratio: 4 / 3; }
.perk h3 { font-size: var(--fs-h5); }
.perk p { color: var(--muted); }
@media (max-width: 860px) { .perks { grid-template-columns: minmax(0, 1fr); } }
.signin-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.signin-card .opts { display: grid; gap: 10px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: var(--fs-small); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 860px) { .signin-card { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* ================= PUBLICATIONS ================= */
.annual { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; align-items: center; padding: 64px; border-radius: var(--r-md); }
.annual .book { max-width: 380px; margin: 0 auto; width: 100%; }
.annual .book .ph { aspect-ratio: 3 / 4; }
.annual h2 { font-size: var(--fs-display); line-height: 1; }
.annual .txt { display: grid; gap: 18px; }
.contents { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.contents li { padding: 10px 0; border-top: 1px solid color-mix(in srgb, var(--fg) 18%, transparent); font-weight: 600; font-size: var(--fs-small); display: flex; gap: 12px; }
.contents li span { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .annual { grid-template-columns: minmax(0, 1fr); padding: 32px 24px; gap: 40px; } .annual .book { max-width: 240px; } }
.shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px var(--gutter); }
.shelf .item { display: grid; gap: 16px; align-content: start; grid-template-columns: minmax(0, 1fr); }
.shelf .stage { background: var(--surface); padding: 40px 18%; border-radius: var(--r-md); }
.shelf .stage .ph { aspect-ratio: 3 / 4; }
.shelf h3 { font-size: var(--fs-h5); }
@media (max-width: 860px) { .shelf { grid-template-columns: minmax(0, 1fr); } }

/* ================= NEWSLETTERS ================= */
.nl-list { display: grid; gap: 0; border-top: 2px solid var(--fg); }
.nl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; padding-block: 48px; border-bottom: 1px solid var(--line); align-items: center; }
.nl .txt { display: grid; gap: 12px; align-content: start; }
.nl h2 { font-size: var(--fs-headline); }
.nl .when { font-weight: 600; font-size: var(--fs-small); }
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; font-size: var(--fs-small); margin-top: 8px; }
.switch input { appearance: none; -webkit-appearance: none; width: 48px; height: 28px; border-radius: var(--r-pill); background: var(--slot-2); position: relative; cursor: pointer; transition: background var(--dur-1) var(--ease-out); margin: 0; flex: none; }
.switch input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: var(--r-pill); background: var(--bg); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform var(--dur-1) var(--ease-out); }
.switch input:checked { background: var(--fg); }
.switch input:checked::after { transform: translateX(20px); }
.inbox { background: var(--surface); border-radius: var(--r-lg); padding: 18px; display: grid; gap: 12px; }
.inbox .hd { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.inbox .hd .avatar { width: 36px; height: 36px; font-size: var(--fs-xs); }
.inbox .hd strong { display: block; font-size: var(--fs-small); }
.inbox .hd span { font-size: var(--fs-label); color: var(--muted); }
.inbox .it { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; background: var(--bg); border-radius: var(--r-md); padding: 8px; }
.inbox .it .ph { aspect-ratio: 1; border-radius: var(--r-md); }
.inbox .it .ph .slot span { display: none; }
.inbox .it b { font-size: var(--fs-small); line-height: 1.3; display: block; }
.inbox .it span { font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 900px) { .nl { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.sub-bar { position: sticky; bottom: 0; z-index: 30; background: var(--fg); color: var(--bg); padding-bottom: env(safe-area-inset-bottom, 0px); }
.sub-bar .wrap { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding-block: 14px; flex-wrap: wrap; }
.sub-bar .sel { font-weight: 600; font-size: var(--fs-small); }
.sub-bar form { display: flex; gap: 8px; flex: 1 1 360px; max-width: 560px; }
.sub-bar input { flex: 1; min-width: 0; border: 0; border-radius: var(--r-pill); padding: 12px 18px; font-size: var(--fs-base); background: color-mix(in srgb, var(--bg) 14%, var(--fg)); color: var(--bg); }
.sub-bar input::placeholder { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.sub-bar .btn { background: var(--bg); color: var(--fg); border-color: var(--bg); }
.sub-bar .form-done { flex-basis: 100%; }

/* ================= ABOUT ================= */
.manifesto { padding-block: 48px 72px; }
.manifesto p.big { font-size: clamp(2rem, 1.2rem + 3vw, 4.25rem); font-weight: 700; line-height: 1.05; max-width: 20ch; text-wrap: balance; }
.manifesto p.big span { color: var(--muted); }
.what { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px var(--gutter); }
.what a { display: grid; gap: 12px; align-content: start; grid-template-columns: minmax(0, 1fr); }
.what .ph { aspect-ratio: 3 / 2; }
.what h3 { font-size: var(--fs-h5); }
.what p { color: var(--muted); font-size: var(--fs-base); }
.what a:hover h3 { text-decoration: underline; }
@media (max-width: 860px) { .what { grid-template-columns: minmax(0, 1fr); } }
.principles { counter-reset: p; display: grid; }
.principles li { counter-increment: p; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.principles li::before { content: counter(p, decimal-leading-zero); font-size: var(--fs-h4); font-weight: 700; line-height: 1.1; }
.principles strong { display: block; font-size: var(--fs-title); margin-bottom: 4px; }
.principles span { color: var(--muted); }
.labels6 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--gutter); }
.labels6 > div { display: grid; gap: 6px; padding: 18px 0; border-top: 1px solid var(--line); }
.labels6 b { display: flex; align-items: center; gap: 10px; font-size: var(--fs-body); }
@media (max-width: 760px) { .labels6 { grid-template-columns: minmax(0, 1fr); } }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; padding-block: 24px 88px; }
@media (max-width: 1000px) { .two-col { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.callout { background: var(--surface); padding: 28px; border-radius: var(--r-md); display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.callout b { font-size: var(--fs-title); }
.copy-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-weight: 600; }
.copy-row button { background: none; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 6px 12px; cursor: pointer; font-size: var(--fs-xs); font-weight: 600; color: var(--fg); }

/* Home event band */
.event-band { background: var(--tone); --knock: var(--tone); }
.event-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: center; padding-block: 72px; }
.event-band .copy { display: grid; gap: 20px; }
.event-band .submark { width: 150px; height: auto; color: var(--fg); }
.event-band h2 { font-size: var(--fs-display); line-height: 1.02; }
.event-band .ph { aspect-ratio: 16 / 11; border-radius: var(--r-md); }
.event-band .actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 900px) { .event-band .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 48px; } }

/* Motion */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
:root[data-motion="off"] *, :root[data-motion="off"] *::before, :root[data-motion="off"] *::after { animation: none !important; transition: none !important; }
html { scroll-behavior: smooth; }

/* Keep single-column grids from growing past the screen */
.f-sign, .copy, .txt, .body, .side-card, .box, .callout, .most, .rail, .ws-aside, .in-story, .story, .bp, .ri-body, .proj-head, .art-head, .mast .wrap, .dir-hero .grid > div, [style*="display:grid"] { grid-template-columns: minmax(0, 1fr); }
.searchbox input, .inline-form input, .f-sign input, .sub-bar input { width: 0; min-width: 0; }
.fh-more .count { white-space: normal; }

/* ================= DESIGN SYSTEM PAGE ================= */
.ds-sec { padding-block: 64px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.ds-sec > h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); margin-bottom: 10px; }
.ds-sec > p.lead { color: var(--muted); max-width: 60ch; margin-bottom: 36px; font-size: var(--fs-lead); }
.ds-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; }
.ds-nav { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: grid; gap: 2px; padding-top: 64px; }
.ds-nav a { padding: 7px 0 7px 14px; border-left: 2px solid var(--line); font-size: var(--fs-small); font-weight: 500; color: var(--muted); }
.ds-nav a.on, .ds-nav a:hover { border-color: var(--fg); color: var(--fg); font-weight: 700; }
@media (max-width: 900px) { .ds-layout { grid-template-columns: minmax(0, 1fr); gap: 0; } .ds-nav { display: none; } }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--gutter); }
.swatch { display: grid; gap: 8px; align-content: start; }
.swatch i { height: 96px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); background: var(--c); }
.swatch b { font-size: var(--fs-small); }
.swatch span { font-size: var(--fs-label); color: var(--muted); }
.typescale { display: grid; border-top: 2px solid var(--fg); }
.typescale > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; align-items: baseline; padding-block: 16px; border-bottom: 1px solid var(--line); }
.typescale .k { font-size: var(--fs-label); color: var(--muted); font-weight: 600; }
.typescale .k b { display: block; color: var(--fg); font-size: var(--fs-small); }
.typescale .s { font-weight: 700; line-height: 1.05; overflow-wrap: anywhere; }
@media (max-width: 640px) { .typescale > div { grid-template-columns: minmax(0, 1fr); gap: 6px; } }
.spaces { display: grid; gap: 10px; }
.spaces div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; align-items: center; font-size: var(--fs-label); color: var(--muted); font-weight: 600; }
.spaces i { display: block; height: 14px; background: var(--fg); border-radius: 2px; width: var(--w); max-width: 100%; }
.radii { display: flex; gap: var(--gutter); flex-wrap: wrap; }
.radii div { display: grid; gap: 8px; justify-items: start; font-size: var(--fs-label); color: var(--muted); font-weight: 600; }
.radii i { width: 120px; height: 84px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.motion-demos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--gutter); }
.mdemo { border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; display: grid; gap: 12px; align-content: start; }
.mdemo .stage { height: 96px; background: var(--surface); border-radius: var(--r-sm); position: relative; overflow: hidden; }
.mdemo .dot { position: absolute; left: 12px; top: 50%; width: 36px; height: 44px; margin-top: -22px; border-radius: var(--r-u); background: var(--fg); }
html.motion .mdemo:hover .dot { animation: ds-move var(--d) var(--e) both; }
@keyframes ds-move { to { transform: translateX(calc(100% + 140px)); } }
.mdemo b { font-size: var(--fs-md); }
.mdemo span { font-size: var(--fs-label); color: var(--muted); }
.patterns { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 var(--gutter); }
.patterns > div { padding-block: 16px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.patterns b { font-size: var(--fs-md); }
.patterns span { color: var(--muted); font-size: var(--fs-small); }
.specimen { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-md); }
.specimen + .cap { font-size: var(--fs-label); color: var(--muted); margin: 10px 0 32px; }
.audit { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--gutter); }
.audit > div { background: var(--surface); border-radius: var(--r-md); padding: 22px; display: grid; gap: 6px; align-content: start; }
.audit .big { font-size: 2.5rem; font-weight: 700; line-height: 1; }
.audit span { color: var(--muted); font-size: var(--fs-small); }

.site-footer { background: var(--black); color: var(--white); --knock: var(--black); padding-top: 88px; overflow: hidden; }
.f-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; padding-bottom: 72px; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.f-top h2 { font-size: var(--fs-display); line-height: 1.02; }
.f-sign { display: grid; gap: 14px; align-content: end; }
.f-sign .field { display: flex; gap: 8px; background: rgba(255, 255, 255, 0.08); border-radius: var(--r-pill); padding: 6px; }
.f-sign input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--white); padding: 10px 16px; outline: none; font-size: var(--fs-base); }
.f-sign input::placeholder { color: rgba(255, 255, 255, 0.55); }
.f-sign .opts { display: flex; gap: 18px; flex-wrap: wrap; font-size: var(--fs-small); color: rgba(255, 255, 255, 0.72); }
.f-sign .opts label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.f-sign .opts input { width: 16px; height: 16px; accent-color: var(--white); padding: 0; flex: none; }
.f-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-block: 56px; }
.f-links h3 { font-size: var(--fs-small); color: rgba(255, 255, 255, 0.55); font-weight: 600; margin-bottom: 14px; }
.f-links a { display: inline-block; padding: 5px 0; font-size: var(--fs-md); font-weight: 500; }
.f-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.f-mark { color: var(--white); padding-bottom: 28px; }
.f-mark svg { width: 100%; height: auto; }
.f-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: var(--fs-label); color: rgba(255, 255, 255, 0.6); }
.f-legal button { background: none; border: 0; color: inherit; cursor: pointer; font-size: inherit; padding: 0; text-decoration: underline; }
@media (max-width: 900px) { .f-top { grid-template-columns: minmax(0, 1fr); gap: 32px; } .f-links { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
:root[data-motion="off"] *, :root[data-motion="off"] *::before, :root[data-motion="off"] *::after { animation: none !important; transition: none !important; }


/* ================= MOTION =================
   Everything here runs only when <html> has .motion, which the script adds
   unless the viewer prefers reduced motion or paused animation in the footer. */

/* Page enter */
html.motion body { animation: page-in var(--dur-3) var(--ease-out) both; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

/* Reveal on scroll */
html.motion .rv { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity var(--dur-4) var(--ease-out), transform var(--dur-4) var(--ease-out); transition-delay: calc(var(--i, 0) * var(--stagger)); }
html.motion .rv.in { opacity: 1; transform: none; }

/* Image wipe: the frame opens upward, the picture settles */
html.motion .rv .ph, html.motion .ph.rv { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease-in-out); transition-delay: calc(var(--i, 0) * var(--stagger)); }
html.motion .rv.in .ph, html.motion .ph.rv.in { clip-path: inset(0 0 0 0); }
html.motion .rv .ph img { transform: scale(1.12); transition: transform 1.4s var(--ease-out); }
html.motion .rv.in .ph img { transform: scale(1); }
html.motion .rv.in a:hover .ph img, html.motion a.rv.in:hover .ph img { transform: scale(1.03); }

/* Headlines rise word by word */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split .w > span { display: inline-block; }
html.motion .split .w > span { transform: translate3d(0, 105%, 0); transition: transform 1s var(--ease-out); transition-delay: calc(var(--wi, 0) * 55ms + 80ms); }
html.motion .split.in .w > span { transform: none; }

/* The hero rule draws across */
html.motion .fh-head.rv, html.motion .day-h.rv { opacity: 1; transform: none; }
html.motion .fh-head { border-bottom-color: transparent; background: linear-gradient(var(--fg), var(--fg)) 0 100% / 0 1px no-repeat; transition: background-size 1.2s var(--ease-in-out) 0.15s; }
html.motion .fh-head.in { background-size: 100% 1px; }

/* Feed re-sort when a filter changes */
html.motion .feed.is-shuffling .f-item:not(.is-off) { animation: feed-in var(--dur-3) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes feed-in { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }

/* Marquee */
.marquee { overflow: hidden; background: var(--fg); color: var(--bg); border-block: 1px solid var(--fg); }
.marquee .track { display: flex; width: max-content; }
.marquee .run { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); padding-inline: clamp(10px, 1.5vw, 22px); flex: none; }
.marquee .word { font-size: clamp(2.75rem, 1.4rem + 5vw, 6.5rem); font-weight: 700; line-height: 1; padding-block: clamp(18px, 2.4vw, 34px); white-space: nowrap; }
.marquee .word.o { color: transparent; -webkit-text-stroke: 1.5px var(--bg); }
.marquee .u { width: clamp(28px, 3vw, 52px); height: clamp(34px, 3.6vw, 62px); border-radius: var(--r-u); background: var(--bg); flex: none; }
html.motion .marquee .track { animation: marquee 38s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
.marquee.light { background: var(--bg); color: var(--fg); border-color: var(--line); }
.marquee.light .u { background: var(--fg); }
.marquee.light .word.o { -webkit-text-stroke-color: var(--fg); }
.marquee.small .word { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); padding-block: 16px; }
.marquee.small .u { width: 14px; height: 18px; }
html.motion .marquee.rev .track { animation-direction: reverse; }

/* Live ticker in the hero head */
.tick { display: inline-flex; overflow: hidden; height: 1.6em; line-height: 1.6; vertical-align: bottom; }
.tick span { display: block; }
html.motion .tick > span { animation: tick 12s var(--ease-in-out) infinite; }
@keyframes tick { 0%, 28% { transform: none; } 33%, 61% { transform: translateY(-1.6em); } 66%, 95% { transform: translateY(-3.2em); } 100% { transform: translateY(-4.8em); } }

/* Mega menu, mobile menu and search */
html.motion .mega:not([hidden]) { animation: drop var(--dur-2) var(--ease-out) both; }
html.motion .mega:not([hidden]) .mega-links a, html.motion .mega:not([hidden]) .mega-card { animation: feed-in var(--dur-3) var(--ease-out) both; }
html.motion .mega:not([hidden]) .mega-links a:nth-child(2), html.motion .mega:not([hidden]) .mega-card:nth-child(2) { animation-delay: 50ms; }
html.motion .mega:not([hidden]) .mega-links a:nth-child(3), html.motion .mega:not([hidden]) .mega-card:nth-child(3) { animation-delay: 100ms; }
html.motion .mega:not([hidden]) .mega-links a:nth-child(4) { animation-delay: 150ms; }
@keyframes drop { from { opacity: 0; transform: translate3d(0, -10px, 0); } to { opacity: 1; transform: none; } }
html.motion .mmenu:not([hidden]) { animation: slide-in var(--dur-2) var(--ease-out) both; }
html.motion .mmenu:not([hidden]) nav > * { animation: feed-in var(--dur-3) var(--ease-out) both; }
html.motion .mmenu:not([hidden]) nav > *:nth-child(2) { animation-delay: 40ms; } html.motion .mmenu:not([hidden]) nav > *:nth-child(3) { animation-delay: 80ms; }
html.motion .mmenu:not([hidden]) nav > *:nth-child(4) { animation-delay: 120ms; } html.motion .mmenu:not([hidden]) nav > *:nth-child(5) { animation-delay: 160ms; }
html.motion .mmenu:not([hidden]) nav > *:nth-child(6) { animation-delay: 200ms; } html.motion .mmenu:not([hidden]) nav > *:nth-child(7) { animation-delay: 240ms; }
@keyframes slide-in { from { opacity: 0; transform: translate3d(0, -16px, 0); } to { opacity: 1; transform: none; } }
html.motion .search:not([hidden]) { animation: pop var(--dur-2) var(--ease-out) both; }
html.motion .scrim:not([hidden]) { animation: page-in var(--dur-2) var(--ease-out) both; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, 12px) scale(0.98); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Links and buttons */
.link { border-bottom: 0; padding-bottom: 2px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size var(--dur-2) var(--ease-out); }
.link:hover { background-size: 0 1px; background-position: 100% 100%; }
html.motion .btn { transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out); }
html.motion .btn:active { transform: scale(0.97); }
html.motion .chip { transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out); }
html.motion .card .ph, html.motion .ag-work .ph { transition-property: clip-path; }
html.motion .ag:hover .ag-work .ph:first-child img, html.motion .ag:hover .ag-work .ph:first-child { transform: scale(1.02); }
html.motion .ag .ag-work .ph:first-child { transition: transform var(--dur-3) var(--ease-out), clip-path 1.1s var(--ease-in-out); }

/* Cursor label on project imagery (pointer devices) */
.cursor-view { position: fixed; left: 0; top: 0; z-index: 96; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: var(--r-pill); background: var(--black); color: var(--white); display: grid; place-items: center; font-size: var(--fs-small); font-weight: 700; pointer-events: none; transform: scale(0); transition: transform var(--dur-2) var(--ease-out); }
.cursor-view.on { transform: scale(1); }

/* Before and after: a short sweep shows it can be dragged */
html.motion .ba-frame.hint { transition: none; }

/* Count-up numbers keep their width */
.mast-stats dd, .num { font-variant-numeric: tabular-nums; }

/* Footer mark rises */
html.motion .f-mark svg { transform: translate3d(0, 40%, 0); opacity: 0; transition: transform 1.2s var(--ease-out), opacity 1.2s var(--ease-out); }
html.motion .f-mark.in svg { transform: none; opacity: 1; }

/* Parallax frames */
[data-parallax] { overflow: hidden; }
[data-parallax] img { will-change: transform; }

/* Big section heads */
.sec-head h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); line-height: 1.02; }
.sec-head.small h2 { font-size: var(--fs-headline); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none !important; } .tick > span { animation: none !important; } }

/* Dark scheme: keep black panels distinct from the page */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .side-card.dark, :root:not([data-theme="light"]) .site-footer { box-shadow: inset 0 1px 0 var(--line); } :root:not([data-theme="light"]) .side-card.dark { box-shadow: inset 0 0 0 1px var(--line); } }
:root[data-theme="dark"] .side-card.dark { box-shadow: inset 0 0 0 1px var(--line); }
:root[data-theme="dark"] .site-footer { box-shadow: inset 0 1px 0 var(--line); }


/* ================= v4: centred masthead, categories drawer, cover hero, latest wall ================= */

/* Header: categories left, logo centred, tools right */
.site-header .bar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: center; height: var(--header-h); }
.site-header .logo { justify-self: center; }
.site-header .logo svg { height: 30px; }
.cat-btn { justify-self: start; display: inline-flex; align-items: center; gap: 12px; background: none; border: 0; padding: 8px 0; cursor: pointer; font-size: var(--fs-small); font-weight: 600; color: var(--fg); min-height: 44px; }
.lines { display: grid; gap: 6px; width: 24px; }
.lines i { display: block; height: 2px; background: currentColor; transition: transform var(--dur-2) var(--ease-out), width var(--dur-2) var(--ease-out); }
.lines i:last-child { width: 70%; }
.cat-btn:hover .lines i:last-child { width: 100%; }
.site-header .tools { justify-self: end; display: flex; align-items: center; gap: 6px; margin: 0; }
.search-ic { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 8px 10px; cursor: pointer; color: var(--fg); min-height: 44px; border-radius: var(--r-pill); }
.search-ic svg { width: 20px; height: 20px; }
.search-ic kbd { font-family: var(--font); font-size: var(--fs-xs); font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 2px 6px; }
.search-ic:hover { background: var(--surface); }
.site-header .signin { font-size: var(--fs-small); font-weight: 600; padding: 8px 10px; }
@media (max-width: 860px) {
  .cat-btn .t, .search-ic kbd, .site-header .signin, .site-header .tools .btn { display: none; }
  .site-header .logo svg { height: 22px; }
  :root { --header-h: 60px; }
}

/* Categories drawer */
.drawer { position: fixed; top: 0; bottom: 0; left: 0; z-index: 85; width: min(560px, 100%); background: var(--bg); overflow-y: auto; display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px)) 32px calc(28px + env(safe-area-inset-bottom, 0px)) max(32px, env(safe-area-inset-left, 0px)); box-shadow: 30px 0 80px -30px rgba(0, 0, 0, 0.35); }
@media (max-width: 560px) { .drawer { padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; min-height: var(--header-h); border-bottom: 1px solid var(--line); }
.drawer-head .close-x { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; font-size: var(--fs-small); font-weight: 600; color: var(--fg); min-height: 44px; padding: 0; }
.drawer-head .close-x svg { width: 16px; height: 16px; }
.drawer-head .logo svg { height: 22px; }
.drawer nav { display: grid; padding-block: 20px; }
.drawer .grp { padding-block: 14px; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.drawer .grp h2 { font-size: var(--fs-label); font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.drawer .big { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 6px 0; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem); font-weight: 700; line-height: 1.12; }
.drawer .big span { font-size: var(--fs-label); font-weight: 600; color: var(--muted); white-space: nowrap; }
.drawer .big:hover b { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.12em; }
.drawer .big b { font-weight: 700; }
.drawer .row { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 6px; }
.drawer .row a { font-size: var(--fs-md); font-weight: 600; }
.drawer .row a:hover { text-decoration: underline; }
.drawer .promo-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px; border-radius: var(--r-md); background: var(--tone); margin-top: 18px; }
.drawer .promo-card .ph { aspect-ratio: 1; border-radius: var(--r-sm); }
.drawer .promo-card .ph .slot span { display: none; }
.drawer .promo-card strong { display: block; font-size: var(--fs-md); line-height: 1.25; }
.drawer .foot { margin-top: auto; padding-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
html.motion .drawer:not([hidden]) { animation: drawer-in var(--dur-3) var(--ease-out) both; }
@keyframes drawer-in { from { transform: translate3d(-100%, 0, 0); } to { transform: none; } }
html.motion .drawer:not([hidden]) nav > * { animation: feed-in var(--dur-3) var(--ease-out) both; }
html.motion .drawer:not([hidden]) nav > *:nth-child(2) { animation-delay: 50ms; } html.motion .drawer:not([hidden]) nav > *:nth-child(3) { animation-delay: 100ms; }
html.motion .drawer:not([hidden]) nav > *:nth-child(4) { animation-delay: 150ms; } html.motion .drawer:not([hidden]) nav > *:nth-child(5) { animation-delay: 200ms; }
html.motion .drawer:not([hidden]) nav > *:nth-child(6) { animation-delay: 250ms; }

/* Category strip under the masthead (home) */
.cat-strip { border-bottom: 1px solid var(--line); }
.cat-strip .wrap { display: flex; justify-content: center; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 6px; }
.cat-strip .wrap::-webkit-scrollbar { display: none; }
.cat-strip a { flex: none; padding: 8px 14px; border-radius: var(--r-pill); font-size: var(--fs-small); font-weight: 500; color: var(--muted); }
.cat-strip a:hover, .cat-strip a[aria-current="page"] { color: var(--fg); background: var(--surface); }
@media (max-width: 860px) { .cat-strip .wrap { justify-content: flex-start; } }

/* Cover hero: rotating stories across every category */
.cover { position: relative; background: var(--black); color: var(--white); --knock: var(--black); overflow: hidden; }
.cover-stage { position: relative; height: clamp(520px, 78vh, 820px); }
.cover-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.9s var(--ease-in-out), visibility 0s linear 0.9s; }
.cover-slide.on { opacity: 1; visibility: visible; transition: opacity 0.9s var(--ease-in-out), visibility 0s; z-index: 1; }
.cover-slide .ph { position: absolute; inset: 0; aspect-ratio: auto; }
.cover-slide .ph.is-empty { background: color-mix(in srgb, var(--tint, #3A3634) 55%, #1E1C1B); }
.cover-slide .ph .slot { color: rgba(255, 255, 255, 0.55); left: auto; right: max(16px, env(safe-area-inset-right, 0px)); bottom: auto; top: 18px; }
.cover-slide .ph img { transform: scale(1.08); }
html.motion .cover-slide.on .ph img { transform: scale(1); transition: transform 7s linear; }
.cover-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 9, 9, 0.35) 0%, rgba(10, 9, 9, 0) 28%, rgba(10, 9, 9, 0) 45%, rgba(10, 9, 9, 0.78) 100%); pointer-events: none; z-index: 1; }
.cover-copy { position: absolute; left: 0; right: 0; bottom: 120px; z-index: 2; }
.cover-copy .wrap { display: grid; gap: 16px; justify-items: start; }
.cover-copy .pill { background: var(--white); color: var(--black); }
.cover-copy h2 { font-size: clamp(2.25rem, 1.3rem + 3.6vw, 5rem); line-height: 1; max-width: 18ch; }
.cover-copy p { font-size: var(--fs-lead); max-width: 52ch; color: rgba(255, 255, 255, 0.82); }
.cover-copy .meta { color: rgba(255, 255, 255, 0.7); font-size: var(--fs-small); }
.cover-copy .btn { background: var(--white); color: var(--black); border-color: var(--white); }
.cover-copy .btn:hover { background: transparent; color: var(--white); }
.cover-copy h2 a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.1em; }
html.motion .cover-slide .cover-copy > .wrap > * { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out); }
html.motion .cover-slide.on .cover-copy > .wrap > * { opacity: 1; transform: none; }
html.motion .cover-slide.on .cover-copy > .wrap > :nth-child(2) { transition-delay: 0.12s; }
html.motion .cover-slide.on .cover-copy > .wrap > :nth-child(3) { transition-delay: 0.22s; }
html.motion .cover-slide.on .cover-copy > .wrap > :nth-child(4) { transition-delay: 0.3s; }
.cover-tabs { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; }
.cover-tabs .wrap { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; padding-bottom: 22px; }
.cover-tab { display: grid; gap: 8px; text-align: left; background: none; border: 0; color: rgba(255, 255, 255, 0.6); cursor: pointer; padding: 0; font: inherit; min-width: 0; }
.cover-tab .bar { height: 2px; background: rgba(255, 255, 255, 0.25); overflow: hidden; display: block; }
.cover-tab .bar i { display: block; height: 100%; width: 100%; background: var(--white); transform: scaleX(0); transform-origin: 0 50%; }
.cover-tab.on .bar i { transform: scaleX(1); }
html.motion .cover-tab.on .bar i { animation: fill 7s linear both; }
html.motion .cover.paused .cover-tab.on .bar i { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.cover-tab .k { font-size: var(--fs-label); font-weight: 700; }
.cover-tab .t { font-size: var(--fs-small); font-weight: 500; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cover-tab.on, .cover-tab:hover { color: var(--white); }
@media (max-width: 860px) {
  .cover-stage { height: clamp(520px, 82svh, 720px); }
  .cover-copy { bottom: 92px; }
  .cover-tabs .wrap { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .cover-tab .t { display: none; }
  .cover-tab .k { font-size: var(--fs-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* The latest wall: masonry, newest first, left to right */
.latest-wall { padding-block: 56px 72px; }
.lw-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.lw-head h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); line-height: 1; display: flex; align-items: center; gap: 14px; }
.lw-head .fh-stamp { display: block; margin-top: 10px; }
.wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gutter); grid-auto-rows: 4px; align-items: start; }
.wall.no-js { grid-auto-rows: auto; row-gap: 36px; }
.tile { display: grid; gap: 10px; align-content: start; grid-template-columns: minmax(0, 1fr); padding-bottom: 32px; min-width: 0; }
.tile .f-meta { font-size: var(--fs-label); }
.tile h3 { font-size: var(--fs-md); line-height: 1.28; }
.tile.wide { grid-column: span 2; }
.tile.wide h3 { font-size: var(--fs-h4); line-height: 1.15; }
.tile .deck { color: var(--muted); font-size: var(--fs-small); }
.tile:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.14em; }
.tile.is-off { display: none; }
@media (max-width: 1100px) { .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; } .tile.wide { grid-column: span 2; } .tile .deck { display: none; } }

/* Browse by category */
.cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gutter); }
.cat { display: grid; gap: 10px; align-content: start; grid-template-columns: minmax(0, 1fr); }
.cat .ph { aspect-ratio: 1; border-radius: var(--r-md); }
.cat .ph .slot span { display: none; }
.cat .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cat h3 { font-size: var(--fs-title); }
.cat span.n { font-size: var(--fs-label); color: var(--muted); font-weight: 600; }
.cat:hover h3 { text-decoration: underline; }
@media (max-width: 1100px) { .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }

/* Marquee follows the theme so it stays visible in dark mode */
.marquee { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.marquee .word.o { -webkit-text-stroke-color: var(--bg); }
.marquee .u { background: var(--bg); }
.marquee.light { background: var(--bg); color: var(--fg); border-color: var(--line); }
.marquee.light .u { background: var(--fg); }
.marquee.light .word.o { -webkit-text-stroke-color: var(--fg); }

/* Dark scheme: keep black panels distinct from the page */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .side-card.dark { box-shadow: inset 0 0 0 1px var(--line); }
  :root:not([data-theme="light"]) .site-footer { box-shadow: inset 0 1px 0 var(--line); }
}
:root[data-theme="dark"] .side-card.dark { box-shadow: inset 0 0 0 1px var(--line); }
:root[data-theme="dark"] .site-footer { box-shadow: inset 0 1px 0 var(--line); }
html.motion .wall.is-shuffling .tile:not(.is-off) { animation: feed-in var(--dur-3) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms); }
.cover-pause { position: absolute; z-index: 4; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 96px; }
.tile:not(.wide) .deck { display: none; }


/* ================= v5: the first version's masthead and front page, refined ================= */

/* Header buttons: two-line icon with a word beside it */
.hbtn { display: inline-flex; align-items: center; gap: 12px; background: none; border: 0; padding: 8px 4px; cursor: pointer; font-size: var(--fs-small); font-weight: 600; color: var(--fg); min-height: 44px; }
.hbtn:hover .lines i:last-child { width: 100%; }
.init-btn .lines i:last-child { justify-self: end; }
.site-header .tools { gap: 10px; }
@media (max-width: 860px) { .hbtn .t { display: none; } }

/* Drawers: categories from the left, initiatives from the right */
.drawer.right { left: auto; right: 0; box-shadow: -30px 0 80px -30px rgba(0, 0, 0, 0.35); padding-inline: 32px max(32px, env(safe-area-inset-right, 0px)); }
@media (max-width: 560px) { .drawer.right { padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); } }
html.motion .drawer.right:not([hidden]) { animation-name: drawer-in-r; }
@keyframes drawer-in-r { from { transform: translate3d(100%, 0, 0); } to { transform: none; } }
.drawer-head .kicker { font-size: var(--fs-small); }
.panel-nav { display: grid; padding-block: 8px; }
.pn { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.pn-name { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); font-weight: 700; line-height: 1.1; }
.pn-teaser { font-size: var(--fs-small); color: var(--muted); line-height: 1.4; }
.pn:hover .pn-name, .pn[aria-current="page"] .pn-name { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.12em; }
html.motion .drawer:not([hidden]) .pn, html.motion .drawer:not([hidden]) .pm { animation: feed-in var(--dur-3) var(--ease-out) both; }
html.motion .drawer:not([hidden]) .pn:nth-child(2), html.motion .drawer:not([hidden]) .pm:nth-child(2) { animation-delay: 45ms; }
html.motion .drawer:not([hidden]) .pn:nth-child(3), html.motion .drawer:not([hidden]) .pm:nth-child(3) { animation-delay: 90ms; }
html.motion .drawer:not([hidden]) .pn:nth-child(4) { animation-delay: 135ms; } html.motion .drawer:not([hidden]) .pn:nth-child(5) { animation-delay: 180ms; }
html.motion .drawer:not([hidden]) .pn:nth-child(6) { animation-delay: 225ms; } html.motion .drawer:not([hidden]) .pn:nth-child(7) { animation-delay: 270ms; }
.panel-marks { display: grid; gap: 10px; padding-block: 20px 12px; }
.pm { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px; border-radius: var(--r-md); background: var(--tone); color: var(--fg); --knock: var(--tone); }
.pm .submark { width: 112px; height: auto; color: var(--fg); }
.pm-name { display: block; font-size: var(--fs-h4); font-weight: 700; line-height: 1.1; }
.pm-when { font-size: var(--fs-small); color: var(--muted); }
.pm:hover .pm-name { text-decoration: underline; }

/* Front page: mission and live Wire, lead story, mixed features */
.front { padding-block: 32px 24px; }
.front-grid { display: grid; grid-template-columns: minmax(0, 3.2fr) minmax(0, 5fr) minmax(0, 3.2fr); gap: 40px; align-items: start; }
.f-left { display: grid; gap: 32px; align-content: start; grid-template-columns: minmax(0, 1fr); }
.mission { font-size: clamp(2rem, 1.3rem + 1.9vw, 3.25rem); line-height: 1.02; }
.wire-mini { border-top: 2px solid var(--fg); }
.wm-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; }
.wm-head a { font-weight: 700; font-size: var(--fs-md); }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-label); font-weight: 600; color: var(--muted); }
.wire-mini ol { display: grid; margin-bottom: 14px; }
.wire-mini li a { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line); }
.wm-meta { display: flex; gap: 8px; font-size: var(--fs-label); color: var(--muted); font-weight: 500; }
.wm-meta b { color: var(--fg); font-variant-numeric: tabular-nums; }
.wm-h { font-size: var(--fs-base); font-weight: 600; line-height: 1.3; }
.wire-mini li a:hover .wm-h { text-decoration: underline; }
.f-lead > a { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.f-lead .ph { aspect-ratio: 4 / 5; }
.f-lead h2 { font-size: clamp(2rem, 1.3rem + 2vw, 3.25rem); line-height: 1.03; }
.f-lead .deck { font-size: var(--fs-lead); color: var(--muted); max-width: 46ch; }
.f-lead .f-meta b { display: inline-flex; align-items: center; gap: 6px; }
.f-side { display: grid; gap: 28px; align-content: start; grid-template-columns: minmax(0, 1fr); }
.fs-item { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.fs-item h3 { font-size: var(--fs-title); line-height: 1.22; }
.fs-item:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.14em; }
.also { padding-block: 56px 32px; }
.also-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding-top: 16px; border-top: 1px solid var(--fg); margin-bottom: 24px; }
.also-head h2 { font-size: var(--fs-h3); }
.also .card h3 { font-size: var(--fs-md); }
@media (max-width: 1100px) {
  .front-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .f-left { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 32px; }
  .f-lead { grid-column: 1; }
}
@media (max-width: 760px) {
  .front-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .f-left { grid-template-columns: minmax(0, 1fr); }
  .f-lead .ph { aspect-ratio: 4 / 4.4; }
  .f-side { grid-template-columns: minmax(0, 1fr); }
  .fs-item { grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr); column-gap: 14px; row-gap: 6px; align-items: start; }
  .fs-item .ph { grid-row: 1 / span 2; aspect-ratio: 1; }
  .fs-item .ph .slot span { display: none; }
  .fs-item h3 { font-size: var(--fs-md); }
}
@media (max-width: 760px) {
  .front-grid { display: flex; flex-direction: column; }
  .f-left { display: contents; }
  .mission { order: 1; }
  .f-lead { order: 2; }
  .f-side { order: 3; }
  .wire-mini { order: 4; }
  .also .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .also .card .pill, .also .card .slot span { display: none; }
}


/* ================= Refinement: a quieter, designer-led finish =================
   Medium weights, smaller interface text, images without overlays, text-only filters. */

body { font-size: var(--fs-md); }
h1, h2, h3, h4, .mission, .f-lead h2, .mast h1, .proj-head h1, .ag-ident h1, .prog-hero h1, .dir-hero h1, .art-head h1, .ws-head h1,
.lead-split h2, .next-proj h2, .manifesto .big, .edition .num, .arch-card .num, .mast-stats dd, .marquee .word, .pn-name, .pm-name,
.spec .big, .audit .big, .typescale .s, .feat h2, .up-next h2, .annual h2, .interest h2, .submit-band h2, .op-card q, .story .lede,
.story-quote p, .prose blockquote, .ws-blocks blockquote, .about-split .statement, .f-top h2, .sec-head h2, .also-head h2, .lw-head h2 { font-weight: 500; }
.steps3 > div::before, .principles li::before, .numlist a::before { font-weight: 500; }
strong, b, .kicker, .label-line, .f-meta b, .wm-meta b { font-weight: 600; }

/* Type scale, a step quieter */
.mast h1, .proj-head h1, .dir-hero h1 { font-size: clamp(2.75rem, 1.6rem + 4.4vw, 6rem); line-height: 0.98; }
.mast-deck, .proj-sub .deck { font-size: var(--fs-lead); }
.mast-stats dd { font-size: 1.75rem; }
.sec-head { margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(1.5rem, 1.15rem + 1vw, 2.125rem); line-height: 1.1; }
.sec-head p { font-size: var(--fs-small); margin-top: 6px; }
.card { gap: 10px; }
.card h3, .fs-item h3, .tile h3 { font-size: var(--fs-md); font-weight: 500; line-height: 1.32; }
.card .deck { font-size: var(--fs-small); }
.mission { font-size: clamp(1.875rem, 1.25rem + 1.7vw, 3rem); line-height: 1.06; }
.f-lead h2 { font-size: clamp(1.875rem, 1.25rem + 1.8vw, 3rem); line-height: 1.06; }
.wm-h { font-weight: 500; }
.pn-name { font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem); }
.mega-links a strong { font-weight: 500; }
.ri-body h3 { font-size: var(--fs-h5); }

/* Images speak first: no labels laid over them */
.ph .pill { display: none; }
.cover-copy .pill { display: inline-flex; }
.ph.is-empty .slot { opacity: 0.8; }

/* Filters as quiet text tabs */
.chip { border: 0; background: none; padding: 8px 10px; min-height: 40px; color: var(--muted); font-weight: 500; border-radius: 0; }
.chip:hover { color: var(--fg); border: 0; }
.chip[aria-pressed="true"] { background: none; color: var(--fg); box-shadow: inset 0 -1.5px 0 var(--fg); }
.chip .n { color: var(--muted); }
.toolbar .wrap { padding-block: 6px; }

/* Tags and badges as plain type */
.tag { background: none; color: var(--fg); padding: 0; font-weight: 600; font-size: var(--fs-label); }
.tag.plain { box-shadow: none; padding: 0; font-weight: 500; }
.badge { box-shadow: none; padding: 0; font-weight: 500; color: var(--muted); font-size: var(--fs-label); }
.badge.solid { background: none; color: var(--fg); font-weight: 600; }
.badge.solid::before { border-color: var(--fg); }
.disc span { background: none; padding: 0; color: var(--muted); font-size: var(--fs-label); }
.disc { gap: 4px 12px; }
.status span { font-weight: 500; }

/* Buttons a touch lighter */
.btn { font-weight: 500; min-height: 42px; padding: 9px 20px; }
.icon-txt { font-weight: 500; }
.link { font-weight: 500; }

/* More air, finer grids */
.section { padding-block: 96px; }
.grid-4, .grid-3 { gap: 48px 20px; }
.sc-grid { gap: 56px 20px; }
.sc-stack { gap: 40px 20px; }
.read-split { gap: 72px; }

/* Marquee: solid words, alternate ones muted */
.marquee .word { font-weight: 500; }
.marquee .word.o { color: color-mix(in srgb, var(--bg) 45%, var(--fg)); -webkit-text-stroke: 0; }
.marquee.light .word.o { color: var(--muted); -webkit-text-stroke: 0; }

/* Home sections: more images, cleaner rows */
.sc-home { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 20px; }
.sc-home .card .ph { aspect-ratio: 4 / 5; }
.sc-home .card .deck { display: none; }
@media (max-width: 1100px) { .sc-home { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .sc-home { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; } }

/* Front page Wire: thumbnails and short headlines */
.wire-mini li a { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 0; }
.wire-mini li .ph { aspect-ratio: 1; border-radius: var(--r-sm); }
.wire-mini li .ph .slot span { display: none; }
.wm-txt { display: grid; gap: 4px; }
.wire-mini .wm-h { font-size: var(--fs-base); font-weight: 500; line-height: 1.3; }
.wm-ago { font-size: var(--fs-label); color: var(--muted); }
.wire-mini li a:hover .wm-h { text-decoration: underline; }


/* ================= Collage grid for Showcase: mixed sizes, staggered, numbered ================= */
.collage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px 24px; align-items: start; grid-auto-flow: dense; counter-reset: proj; }
.collage > .card { counter-increment: proj; }
.collage > .card .deck { display: none; }
.collage > .card h3 { display: flex; align-items: baseline; gap: 12px; font-size: var(--fs-title); }
.collage > .card h3::before { content: counter(proj, decimal-leading-zero); font-size: var(--fs-label); font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.collage > .card .meta { padding-left: 28px; }
.collage > .card:nth-child(8n+1) { grid-column: span 7; }
.collage > .card:nth-child(8n+1) .ph { aspect-ratio: 4 / 3; }
.collage > .card:nth-child(8n+2) { grid-column: span 5; margin-top: 120px; }
.collage > .card:nth-child(8n+2) .ph { aspect-ratio: 4 / 5; }
.collage > .card:nth-child(8n+3) { grid-column: span 4; }
.collage > .card:nth-child(8n+3) .ph { aspect-ratio: 1 / 1; }
.collage > .card:nth-child(8n+4) { grid-column: span 3; margin-top: 160px; }
.collage > .card:nth-child(8n+4) .ph { aspect-ratio: 3 / 4; }
.collage > .card:nth-child(8n+5) { grid-column: span 5; margin-top: 56px; }
.collage > .card:nth-child(8n+5) .ph { aspect-ratio: 4 / 3; }
.collage > .card:nth-child(8n+6) { grid-column: 2 / span 4; }
.collage > .card:nth-child(8n+6) .ph { aspect-ratio: 4 / 5; }
.collage > .card:nth-child(8n+7) { grid-column: span 7; margin-top: 140px; }
.collage > .card:nth-child(8n+7) .ph { aspect-ratio: 16 / 10; }
.collage > .card:nth-child(8n+8) { grid-column: 4 / span 6; }
.collage > .card:nth-child(8n+8) .ph { aspect-ratio: 3 / 2; }
.collage > .card:nth-child(8n+1) h3, .collage > .card:nth-child(8n+7) h3 { font-size: var(--fs-h4); }

/* Focus on the one under the pointer */
@media (hover: hover) and (pointer: fine) {
  .collage > .card { transition: opacity var(--dur-2) var(--ease-out); }
  .collage:hover > .card:not(:hover) { opacity: 0.5; }
}

/* Tablet: six columns */
@media (max-width: 1100px) {
  .collage { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 44px 18px; }
  .collage > .card:nth-child(n) { grid-column: span 3; margin-top: 0; }
  .collage > .card:nth-child(8n+1), .collage > .card:nth-child(8n+7) { grid-column: span 4; }
  .collage > .card:nth-child(8n+2), .collage > .card:nth-child(8n+8) { grid-column: span 2; }
  .collage > .card:nth-child(8n+4) { margin-top: 72px; }
  .collage > .card:nth-child(8n+6) { grid-column: span 3; }
}

/* Phone: two columns with full-width moments */
@media (max-width: 760px) {
  .collage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 14px; }
  .collage > .card:nth-child(n) { grid-column: span 1; margin-top: 0; }
  .collage > .card:nth-child(8n+1), .collage > .card:nth-child(8n+4), .collage > .card:nth-child(8n+7), .collage > .card:nth-child(8n+8) { grid-column: span 2; }
  .collage > .card:nth-child(8n+4) .ph { aspect-ratio: 16 / 10; }
  .collage > .card:nth-child(8n+3), .collage > .card:nth-child(8n+6) { margin-top: 48px; }
  .collage > .card h3 { font-size: var(--fs-md); }
  .collage > .card:nth-child(8n+1) h3, .collage > .card:nth-child(8n+7) h3 { font-size: var(--fs-title); }
  .collage > .card .meta { padding-left: 0; }
}
.collage .ph .slot span { display: none; }

/* Big section titles on the home page */
.sec-head.big { align-items: end; margin-bottom: 40px; padding-top: 18px; border-top: 1px solid var(--fg); }
.sec-head.big h2 { font-size: clamp(3rem, 1.6rem + 5.4vw, 7.5rem); line-height: 0.95; font-weight: 500; }
.sec-head.big p { font-size: var(--fs-base); margin-top: 16px; max-width: 48ch; }
.surface .sec-head.big, .tone .sec-head.big { border-top-color: var(--fg); }



/* ================= Front page and Showcase, structured ================= */

/* Daily Wire card: one update at a time */
.wire-card { border-top: 2px solid var(--fg); display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.wire-card .wm-head { padding: 12px 0 0; }
.wc-stage { display: grid; }
.wc-item { grid-area: 1 / 1; display: grid; gap: 10px; align-content: start; grid-template-columns: minmax(0, 1fr); opacity: 0; visibility: hidden; transition: opacity 0.6s var(--ease-out), visibility 0s linear 0.6s; }
.wc-item.on { opacity: 1; visibility: visible; transition: opacity 0.6s var(--ease-out), visibility 0s; }
.wc-item .ph { aspect-ratio: 4 / 3; border-radius: var(--r-sm); }
.wc-item .ph .slot span { display: none; }
html.motion .wc-item.on .ph img { animation: wc-zoom 6s linear both; }
@keyframes wc-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.wc-meta { font-size: var(--fs-label); color: var(--muted); }
.wc-meta b { color: var(--fg); font-weight: 600; }
.wc-h { font-size: var(--fs-h5); font-weight: 500; line-height: 1.2; }
.wc-item:hover .wc-h { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.14em; }
html.motion .wc-item .wc-h, html.motion .wc-item .wc-meta { transform: translate3d(0, 10px, 0); transition: transform 0.6s var(--ease-out); }
html.motion .wc-item.on .wc-h, html.motion .wc-item.on .wc-meta { transform: none; }
.wc-foot { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.wc-count { font-size: var(--fs-label); color: var(--muted); font-variant-numeric: tabular-nums; }
.wc-count b { color: var(--fg); font-weight: 600; }
.wc-bars { display: flex; gap: 4px; }
.wc-bar { flex: 1; border: 0; background: none; padding: 9px 0; cursor: pointer; }
.wc-bar i { display: block; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.wc-bar i::after { content: ""; position: absolute; inset: 0; background: var(--fg); transform: scaleX(0); transform-origin: 0 50%; }
.wc-bar.done i::after, .wc-bar.on i::after { transform: scaleX(1); }
html.motion .wc-bar.on i::after { animation: fill 6s linear both; }
html.motion .wire-card.paused .wc-bar.on i::after { animation-play-state: paused; }
.wc-nav { display: flex; gap: 6px; }
.wc-nav .round { width: 36px; height: 36px; }

/* Right column: label, one picture-led story, then compact rows */
.f-side { gap: 0; }
.fs-label { font-size: var(--fs-label); font-weight: 600; padding-bottom: 12px; border-bottom: 2px solid var(--fg); margin-bottom: 18px; display: block; }
.fs-item { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); padding-bottom: 20px; }
.fs-txt { display: grid; gap: 6px; }
.fs-item h3 { font-size: var(--fs-title); font-weight: 500; }
.fs-item.compact { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; padding-block: 14px; border-top: 1px solid var(--line); }
.fs-item.compact .ph { aspect-ratio: 4 / 3; border-radius: var(--r-sm); }
.fs-item.compact .ph .slot span { display: none; }
.fs-item.compact h3 { font-size: var(--fs-base); line-height: 1.3; }
.f-lead .ph { aspect-ratio: 5 / 4; }
@media (max-width: 760px) {
  .fs-item:not(.compact) { grid-template-columns: minmax(0, 1fr); }
  .fs-item:not(.compact) .ph { grid-row: auto; aspect-ratio: 3 / 2; }
  .fs-item.compact { grid-template-columns: 96px minmax(0, 1fr); }
  .fs-item.compact .ph { grid-row: auto; }
}

/* Also today: one height, widths follow each picture's shape */
.also-head { align-items: center; }
.rail-tools { display: flex; align-items: center; gap: 10px; }
.rail-tools .link { margin-right: 10px; }
.rail { --rh: clamp(220px, 22vw, 340px); display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-bottom: 4px; }
.rail::-webkit-scrollbar { display: none; }
.rc { flex: none; display: grid; gap: 10px; align-content: start; scroll-snap-align: start; grid-template-columns: minmax(0, 1fr); }
.rc .ph { height: var(--rh); aspect-ratio: auto; }
.rc .ph .slot span { display: none; }
.rc h3 { font-size: var(--fs-md); font-weight: 500; line-height: 1.3; }
.rc:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.14em; }
.rc.l { width: calc(var(--rh) * 1.5); }
.rc.p { width: calc(var(--rh) * 0.8); }
.rc.s { width: var(--rh); }
@media (max-width: 760px) { .rail-tools .round { display: none; } .rail { --rh: 240px; gap: 14px; } }

/* Home Showcase: one feature, a 2 by 2 block, then a row of three */
.sc-feat { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 20px; }
.sc-feat > .card .deck { display: none; }
.sc-feat > .card:nth-child(1) { grid-column: 1 / span 6; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 10px; }
.sc-feat > .card:nth-child(1) > div:first-child { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.sc-feat > .card:nth-child(1) .ph { flex: 1; aspect-ratio: auto; min-height: 360px; }
.sc-feat > .card:nth-child(1) h3 { font-size: var(--fs-h4); }
.sc-feat > .card:nth-child(n+2):nth-child(-n+5) { grid-column: span 3; }
.sc-feat > .card:nth-child(n+2):nth-child(-n+5) .ph { aspect-ratio: 4 / 3; }
.sc-feat > .card:nth-child(n+6) { grid-column: span 4; }
.sc-feat > .card:nth-child(n+6) .ph { aspect-ratio: 3 / 2; }
.sc-feat .ph .slot span { display: none; }
@media (max-width: 1000px) {
  .sc-feat { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; }
  .sc-feat > .card:nth-child(n) { grid-column: span 1; grid-row: auto; }
  .sc-feat > .card:nth-child(1), .sc-feat > .card:nth-child(8) { grid-column: span 2; }
  .sc-feat > .card:nth-child(1) .ph { min-height: 0; aspect-ratio: 4 / 3; flex: none; }
  .sc-feat > .card:nth-child(1) h3 { font-size: var(--fs-title); }
}

/* Showcase page: rows that pair a wide and a narrow project at one height */
.rows { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px 20px; }
.rows > .card { --rowh: clamp(260px, 30vw, 500px); }
.rows > .card .ph { height: var(--rowh); aspect-ratio: auto; }
.rows > .card .ph .slot span { display: none; }
.rows > .card.w8 { grid-column: span 8; }
.rows > .card.w4 { grid-column: span 4; }
.rows > .card .deck { display: none; }
.rows > .card.w8 h3 { font-size: var(--fs-h4); }
@media (max-width: 760px) {
  .rows { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; }
  .rows > .card { --rowh: 220px; }
  .rows > .card.w8 { grid-column: span 2; }
  .rows > .card.w4 { grid-column: span 1; }
  .rows > .card.w8 h3 { font-size: var(--fs-title); }
}
@media (max-width: 760px) { .wire-card { order: 4; } }


/* ================= Type v2: Geist for reading and interface, DM Sans for display =================
   Geist is narrower and more even than DM Sans at small sizes, so body copy reads tighter and calmer.
   Letter-spacing stays at each font's default. */

:root {
  --font: "Geist", "Helvetica Neue", Arial, sans-serif;
  --font-display: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --fs-body: 1.0625rem;
  --fs-lead: 1.125rem;
  --fs-md: 1rem;
  --fs-base: 0.9375rem;
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;
  --fs-xs: 0.6875rem;
}
body { font-family: var(--font); font-size: var(--fs-body); line-height: 1.6; font-weight: 400; text-rendering: optimizeLegibility; }

/* Display faces: headlines and big numbers keep DM Sans */
h1, .mission, .f-lead h2, .mast h1, .proj-head h1, .ag-ident h1, .prog-hero h1, .dir-hero h1, .art-head h1, .ws-head h1,
.sec-head h2, .sec-head.big h2, .lead-split h2, .next-proj h2, .manifesto .big, .edition .num, .arch-card .num, .mast-stats dd,
.pn-name, .pm-name, .spec .big, .audit .big, .typescale .s, .feat h2, .up-next h2, .annual h2, .interest h2, .submit-band h2,
.story .lede, .story h2, .prose h2, .prose blockquote, .story-quote p, .ws-blocks blockquote, .about-split .statement, .logo-word { font-family: var(--font-display); }

/* Reading text: lighter colour step, steadier rhythm */
.prose { font-size: var(--fs-lead); line-height: 1.7; color: color-mix(in srgb, var(--fg) 86%, var(--bg)); max-width: 66ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { color: var(--fg); font-size: 1.625rem; font-weight: 500; line-height: 1.2; }
.prose strong { color: var(--fg); font-weight: 600; }
.story p.body { font-size: var(--fs-body); line-height: 1.7; }
.art-head .deck, .proj-sub .deck { font-size: 1.25rem; line-height: 1.45; font-weight: 400; }
.card h3, .fs-item h3, .tile h3 { font-weight: 500; line-height: 1.3; }
.card .deck { font-size: var(--fs-small); line-height: 1.5; }
.f-lead .deck, .mast-deck { font-size: var(--fs-lead); line-height: 1.5; }
.btn, .hbtn, .chip, .link, .icon-txt { font-weight: 500; }
.tag, .label-line, .kicker { font-weight: 500; }

/* In short: an editorial summary, numbered between hairlines */
.in-short { background: none; border-radius: 0; padding: 0; margin: 0 0 48px; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--fg); }
.in-short h2 { font-family: var(--font); font-size: var(--fs-label); font-weight: 500; color: var(--muted); margin: 0; padding: 14px 0 6px; }
.in-short ol { list-style: none; margin: 0; padding: 0; display: grid; }
.in-short li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); padding-left: 0; }
.in-short li::before { content: none; }
.in-short .n { font-size: var(--fs-label); color: var(--muted); font-variant-numeric: tabular-nums; }
.in-short p { margin: 0; font-size: 1.1875rem; line-height: 1.4; font-weight: 400; color: var(--fg); }
@media (min-width: 1000px) {
  .in-short { grid-template-columns: 160px minmax(0, 1fr); column-gap: 24px; }
  .in-short h2 { padding-top: 18px; }
}
@media (max-width: 560px) { .in-short li { grid-template-columns: 32px minmax(0, 1fr); } .in-short p { font-size: 1.0625rem; } }

/* Real photos: the Showcase feature fills its two rows instead of growing to the photo's own height */
.sc-feat > .card:nth-child(1) .ph { flex: 1 1 0; min-height: 360px; }
.sc-feat > .card:nth-child(1) .ph img { position: absolute; inset: 0; }
@media (max-width: 760px) { .sc-feat > .card:nth-child(1) .ph { flex: none; min-height: 0; } }

/* ================= Likes and comments ================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eng { display: inline-flex; gap: 14px; align-items: center; font-size: var(--fs-label); color: var(--muted); visibility: hidden; }
.eng.ready { visibility: visible; }
.eng > span { display: inline-flex; align-items: center; gap: 5px; }
.eng svg { width: 14px; height: 14px; }
.eng b { font-weight: 500; font-variant-numeric: tabular-nums; }
.eng.liked > span:first-child { color: var(--fg); --hf: currentColor; }
.card .eng, .ri-body .eng { margin-top: 2px; }

.like-btn svg { width: 18px; height: 18px; transition: transform var(--dur-2) var(--ease-out); }
.like-btn[aria-pressed="true"] { --hf: currentColor; }
.like-btn[aria-pressed="true"] svg { animation: like-pop 360ms var(--ease-out); }
.like-btn .lc { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--muted); }
.like-btn .lc:empty { display: none; }
@keyframes like-pop { 40% { transform: scale(1.28); } 100% { transform: scale(1); } }
.like-tip { flex-basis: 100%; font-size: var(--fs-label); color: var(--muted); }
.like-tip:empty { display: none; }
.art-actions { flex-wrap: wrap; }

.resp { padding-block: 64px 32px; display: grid; gap: 24px; max-width: 760px; margin-inline: auto; }
.resp-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--fg); padding-top: 16px; }
.resp-head h2 { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 500; display: flex; align-items: baseline; gap: 10px; }
.resp-head .rc { font-family: var(--font); font-size: var(--fs-base); color: var(--muted); font-weight: 400; }
.resp-form { display: grid; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.resp-form textarea { width: 100%; min-width: 0; resize: none; border: 0; background: none; color: var(--fg); font: inherit; font-size: var(--fs-lead); line-height: 1.5; padding: 4px 0; outline: none; min-height: 34px; }
.resp-form textarea::placeholder { color: var(--muted); }
.resp-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.resp-note { font-size: var(--fs-small); color: var(--muted); }
.resp-bar .btn[disabled] { opacity: 0.35; cursor: default; }
.resp-list { list-style: none; margin: 0; padding: 0; display: grid; }
.resp-item { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
html.motion .resp-item { animation: feed-in var(--dur-3) var(--ease-out) both; }
.resp-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--surface); }
.resp-body { display: grid; gap: 4px; min-width: 0; }
.resp-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: var(--fs-small); }
.resp-top strong { font-weight: 600; }
.resp-top span { color: var(--muted); }
.resp-del { margin-left: auto; background: none; border: 0; padding: 4px 0; color: var(--muted); font: inherit; font-size: var(--fs-label); cursor: pointer; }
.resp-del:hover { color: var(--fg); text-decoration: underline; }
.resp-body p { margin: 0; font-size: var(--fs-body); line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.resp-empty { color: var(--muted); font-size: var(--fs-small); margin: 0; }
.eng b:empty { display: none; }
.resp-av { display: grid; place-items: center; font-size: var(--fs-small); font-weight: 600; color: var(--fg); }
.like-btn[aria-pressed="true"] .lc { color: inherit; opacity: 0.6; }

/* ================= Video and the project gallery ================= */
.r-916 { aspect-ratio: 9 / 16; }
.ph video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ph.vid { background: #1a1512; }
.vid-btn { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(20, 18, 19, 0.55); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity var(--dur-2) var(--ease-out); }
.ph.vid:hover .vid-btn, .vid-btn:focus-visible, .vid-btn[aria-pressed="true"] { opacity: 1; }
.vid-btn i { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.vid-btn[aria-pressed="true"] i { width: 0; height: 0; border: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
@media (hover: none) { .vid-btn { opacity: 1; } }

.gal { display: grid; gap: 20px; padding-block: 24px 72px; }
.g-row { display: grid; gap: 20px; }
.g-row .ph img { position: absolute; inset: 0; }
.g-1 { grid-template-columns: minmax(0, 1fr); }
.g-2 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.g-stack { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; min-height: 0; }
.g-stack .ph { height: 100%; }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.g-4 .ph:last-child { height: 100%; }
.g-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gal > .meta { margin-top: -4px; }
@media (max-width: 760px) {
  .gal, .g-row, .g-stack { gap: 10px; }
  .g-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .g-3 .ph:last-child { display: block; }
  .g-4 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}

/* ================= Most read, with topic filters ================= */
.mr-sec { border-top: 1px solid var(--line); }
.mr-filters { margin: -8px 0 28px; overflow-x: auto; scrollbar-width: none; }
.mr-filters::-webkit-scrollbar { display: none; }
.mr-filters .filters { display: flex; gap: 4px; flex-wrap: nowrap; }
.mr-filters .chip { white-space: nowrap; }
.mr-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; counter-reset: mr; }
.mr-list li { counter-increment: mr; border-top: 1px solid var(--line); }
.mr-list li[hidden] { display: none; }
.mr-list a { display: grid; grid-template-columns: 56px 88px minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px 0; }
.mr-list a::before { content: counter(mr, decimal-leading-zero); font-family: var(--font-display); font-size: 2rem; font-weight: 500; line-height: 1; color: var(--muted); font-variant-numeric: tabular-nums; transition: color var(--dur-2) var(--ease-out); }
.mr-list a:hover::before { color: var(--fg); }
.mr-list .ph { border-radius: var(--r-sm); }
.mr-txt { display: grid; gap: 5px; min-width: 0; }
.mr-k { font-size: var(--fs-label); font-weight: 500; }
.mr-t { font-size: var(--fs-md); font-weight: 500; line-height: 1.3; }
.mr-r { font-size: var(--fs-label); color: var(--muted); font-variant-numeric: tabular-nums; }
.mr-list a:hover .mr-t { text-decoration: underline; text-underline-offset: 0.14em; }
html.motion .mr-list li:not([hidden]) { animation: feed-in var(--dur-3) var(--ease-out) both; }
@media (max-width: 860px) {
  .mr-list { grid-template-columns: minmax(0, 1fr); }
  .mr-list a { grid-template-columns: 40px 72px minmax(0, 1fr); gap: 14px; padding: 14px 0; }
  .mr-list a::before { font-size: 1.5rem; }
}

/* ================= Programme tones: hot colours =================
   Connect = hot orange, Talk = hot pink, Club = warm yellow. They stay the same in light and dark,
   and everything on them is set in dark ink. */
:root { --mist: #FF5A1F; --sand: #FF4D8D; --sage: #FFC633; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --mist: #FF5A1F; --sand: #FF4D8D; --sage: #FFC633; } }
:root[data-theme="dark"] { --mist: #FF5A1F; --sand: #FF4D8D; --sage: #FFC633; }
.t-mist, .t-sand, .t-sage { --fg: #141213; --ink: #141213; --bg: #FFFFFF; --muted: rgba(20, 18, 19, 0.74); --line: rgba(20, 18, 19, 0.18); color: #141213; }
.t-mist .btn-ghost, .t-sand .btn-ghost, .t-sage .btn-ghost { border-color: rgba(20, 18, 19, 0.35); }

/* ================= Header account icon (phones) ================= */
.acct-ic { display: none; width: 40px; height: 40px; place-items: center; color: var(--fg); }
.acct-ic svg { width: 22px; height: 22px; }
@media (max-width: 860px) { .acct-ic { display: grid; } }
.signin.is-in { display: inline-flex; align-items: center; gap: 8px; }
.signin .av { width: 24px; height: 24px; border-radius: 50%; background: var(--fg); color: var(--bg); display: grid; place-items: center; font-size: 0.6875rem; font-weight: 600; }

/* ================= Sign in and create account ================= */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - var(--header-h, 72px)); border-bottom: 1px solid var(--line); }
.auth-art { position: relative; overflow: hidden; background: var(--slot); }
.auth-art .ph { position: absolute; inset: 0; height: 100%; }
.auth-art .ph img { position: absolute; inset: 0; }
.auth-quote { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px; background: linear-gradient(to top, rgba(20, 18, 19, 0.72), rgba(20, 18, 19, 0)); }
.auth-quote p { margin: 0; color: #fff; font-family: var(--font-display); font-size: clamp(1.375rem, 1rem + 1vw, 2rem); font-weight: 500; line-height: 1.15; max-width: 22ch; }
.auth-main { display: grid; place-items: center; padding: 56px max(24px, env(safe-area-inset-right, 0px)) 56px 24px; }
.auth-box { width: 100%; max-width: 420px; display: grid; gap: 24px; }
.auth-forms { display: grid; gap: 22px; }
.auth-h { font-family: var(--font-display); font-size: clamp(2.25rem, 1.6rem + 2vw, 3.25rem); font-weight: 500; line-height: 1; margin: 0; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.auth-tabs button { background: none; border: 0; padding: 12px 0; font: inherit; font-size: var(--fs-base); font-weight: 500; color: var(--muted); cursor: pointer; box-shadow: inset 0 -1.5px 0 transparent; transition: color var(--dur-2), box-shadow var(--dur-2); }
.auth-tabs button[aria-selected="true"] { color: var(--fg); box-shadow: inset 0 -1.5px 0 var(--fg); }
.auth-form { display: grid; gap: 16px; }
.fld { display: grid; gap: 6px; }
.fld .lb { font-size: var(--fs-small); font-weight: 500; }
.fld .in { position: relative; display: block; }
.fld input { width: 100%; min-width: 0; box-sizing: border-box; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); color: var(--fg); font: inherit; font-size: var(--fs-base); transition: border-color var(--dur-2); }
.fld input:hover { border-color: color-mix(in srgb, var(--fg) 40%, var(--line)); }
.fld input:focus { outline: none; border-color: var(--fg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fg) 12%, transparent); }
.fld input[type="password"], .fld input[data-pw] { padding-right: 48px; }
.fld.bad input { border-color: #C2361B; }
.fld .err, .auth-form > .err { font-size: var(--fs-label); color: #C2361B; min-height: 0; }
.fld .err:empty, .auth-form > .err:empty { display: none; }
.fld .hint { font-size: var(--fs-label); color: var(--muted); }
.eye { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; border-radius: var(--r-sm); }
.eye svg { width: 20px; height: 20px; }
.eye[aria-pressed="true"], .eye:hover { color: var(--fg); }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: -8px; }
.pw-meter i { height: 3px; border-radius: 2px; background: var(--line); transition: background var(--dur-2); }
.pw-meter[data-s="1"] i:nth-child(-n+1), .pw-meter[data-s="2"] i:nth-child(-n+2), .pw-meter[data-s="3"] i:nth-child(-n+3), .pw-meter[data-s="4"] i { background: var(--fg); }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.auth-form .check { font-size: var(--fs-small); display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; }
.auth-form .check input { margin-top: 2px; accent-color: var(--fg); }
.auth-form .check a { text-decoration: underline; text-underline-offset: 0.14em; }
.auth-role { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.auth-role legend { font-size: var(--fs-small); font-weight: 500; margin-bottom: 8px; padding: 0; }
.auth-go { width: 100%; justify-content: center; min-height: 48px; }
.auth-go[aria-busy="true"] { opacity: 0.6; pointer-events: none; }
.form-note { margin: 0; font-size: var(--fs-small); color: var(--muted); }
.form-note:empty { display: none; }
.forgot { display: grid; gap: 8px; padding: 14px; border-radius: var(--r-md); background: var(--surface); }
.forgot p { margin: 0; }
.auth-alt { display: grid; gap: 14px; }
.auth-alt .or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: var(--fs-label); }
.auth-alt .or::before, .auth-alt .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-soc { display: grid; gap: 10px; }
.auth-soc .btn { justify-content: center; width: 100%; }
.auth-switch { margin: 0; font-size: var(--fs-small); color: var(--muted); }
.auth-switch .link, .auth-row .link, .auth-acts .link { background: none; border: 0; padding: 0; font: inherit; color: var(--fg); text-decoration: underline; text-underline-offset: 0.14em; cursor: pointer; }
.auth-fine { margin: 0; font-size: var(--fs-label); color: var(--muted); }
.auth-signed { display: grid; gap: 14px; }
.auth-signed p { margin: 0; }
.auth-acts { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
html.motion [role="tabpanel"]:not([hidden]) { animation: feed-in var(--dur-3) var(--ease-out) both; }
@media (max-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .auth-art { height: 220px; }
  .auth-main { padding: 32px max(16px, env(safe-area-inset-right, 0px)) 48px max(16px, env(safe-area-inset-left, 0px)); }
}

/* Most read, as a side list beside Articles */
.most-side { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: ms; }
.most-side li { counter-increment: ms; border-top: 1px solid var(--line); }
.most-side a { display: grid; grid-template-columns: 26px 56px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 0; }
.most-side a::before { content: counter(ms); font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; color: var(--muted); }
.most-side .ph { border-radius: var(--r-sm); }
.most-side a > span { display: grid; gap: 3px; min-width: 0; }
.ms-t { font-size: var(--fs-base); font-weight: 500; line-height: 1.3; }
.ms-r { font-size: var(--fs-label); color: var(--muted); font-variant-numeric: tabular-nums; }
.most-side a:hover .ms-t { text-decoration: underline; text-underline-offset: 0.14em; }
.most > h2 { font-size: var(--fs-small); font-weight: 600; margin: 0 0 8px; }

/* Agencies on the front page */
.home-ag-search { margin: -4px 0 32px; max-width: 560px; }

/* Reveal fix: a frame clipped to nothing is never "on screen" to the observer, so it never revealed.
   The frame stays measurable; its picture is what wipes in. */
html.motion .ph.rv { clip-path: none; opacity: 1; transform: none; }
html.motion .ph.rv > img, html.motion .ph.rv > video { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease-in-out); transition-delay: calc(var(--i, 0) * var(--stagger)); }
html.motion .ph.rv.in > img, html.motion .ph.rv.in > video { clip-path: inset(0 0 0 0); }

/* ================= Categories drawer: grouped, with thumbnails ================= */
#panel-cat .panel-nav { display: grid; gap: 28px; padding-block: 24px 16px; }
.pn-grp { display: grid; }
.pn-h { font-family: var(--font); font-size: var(--fs-label); font-weight: 500; color: var(--muted); margin: 0 0 6px; }
#panel-cat .pn { display: grid; grid-template-columns: 52px minmax(0, 1fr) 20px; gap: 16px; align-items: center; padding: 10px 8px; margin-inline: -8px; border: 0; border-radius: var(--r-md); transition: background var(--dur-2) var(--ease-out); }
#panel-cat .pn + .pn { box-shadow: 0 -1px 0 var(--line); }
#panel-cat .pn:hover, #panel-cat .pn:focus-visible { background: var(--surface); box-shadow: none; }
#panel-cat .pn:hover + .pn { box-shadow: none; }
#panel-cat .pn .ph { width: 52px; border-radius: var(--r-sm); }
.pn-txt { display: grid; gap: 3px; min-width: 0; }
#panel-cat .pn-name { font-family: var(--font-display); font-size: 1.375rem; font-weight: 500; line-height: 1.15; display: flex; align-items: center; gap: 10px; text-decoration: none; }
#panel-cat .pn:hover .pn-name, #panel-cat .pn[aria-current="page"] .pn-name { text-decoration: none; }
#panel-cat .pn-teaser { font-size: var(--fs-small); color: var(--muted); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-badge { font-family: var(--font); font-size: var(--fs-xs); font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line); }
.pn-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mist); }
.pn-arr { width: 18px; height: 18px; color: var(--muted); opacity: 0; transform: translateX(-6px); transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out); }
#panel-cat .pn:hover .pn-arr, #panel-cat .pn:focus-visible .pn-arr { opacity: 1; transform: none; color: var(--fg); }
#panel-cat .pn[aria-current="page"] .pn-name::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--fg); }
#panel-cat .foot { position: sticky; bottom: 0; margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-block: 16px max(16px, env(safe-area-inset-bottom, 0px)); background: var(--bg); border-top: 1px solid var(--line); }
#panel-cat .foot .btn { justify-content: center; }
@media (hover: none) { .pn-arr { opacity: 1; transform: none; } }

/* Reveal fix: a frame clipped to nothing never counts as on screen, so it never revealed.
   The frame stays measurable; its picture is what wipes in. */
html.motion .ph.rv { clip-path: none; opacity: 1; transform: none; }
html.motion .ph.rv > img, html.motion .ph.rv > video { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease-in-out); transition-delay: calc(var(--i, 0) * var(--stagger)); }
html.motion .ph.rv.in > img, html.motion .ph.rv.in > video { clip-path: inset(0 0 0 0); }

/* ================= Latest row: easier to move through ================= */
.rail { scrollbar-width: thin; scrollbar-color: var(--fg) var(--line); padding-bottom: 18px; cursor: grab; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: block; height: 3px; }
.rail::-webkit-scrollbar-track { background: var(--line); border-radius: 3px; }
.rail::-webkit-scrollbar-thumb { background: var(--fg); border-radius: 3px; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.rail.dragging a { pointer-events: none; }
.rail img { -webkit-user-drag: none; user-select: none; }
.rail-tools .round[disabled] { opacity: 0.3; cursor: default; }
.rail-tools .round { width: 44px; height: 44px; }

/* Generated detail pages */
.sample-note { margin-top: 24px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); color: var(--muted); font-size: var(--fs-small); }
.lede-p { font-size: 1.25rem; line-height: 1.55; color: var(--fg); }
.wi-media { margin-block: 8px 24px; }
.wi-media .ri-media { width: 100%; max-width: 900px; }
.wi-media .ri-media.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wi-media .ri-media .ph { aspect-ratio: 4 / 3; height: auto; }

/* ================= Calm motion =================
   No page fade, no scroll reveals or image wipes, no parallax. Hovers stay quick and quiet. */
html.motion body { animation: none; }
html.motion .rv, html.motion .rv.in { opacity: 1; transform: none; transition: none; }
html.motion .rv .ph, html.motion .ph.rv, html.motion .ph.rv > img, html.motion .ph.rv > video { clip-path: none; transition: none; }
html.motion .rv .ph img { transform: none; }
html.motion .mr-list li:not([hidden]), html.motion .resp-item, html.motion [role="tabpanel"]:not([hidden]) { animation: none; }
html.motion .fh-head { background: none; border-bottom-color: var(--fg); }

.search-close { border: 0; background: var(--surface); color: var(--fg); border-radius: 999px; padding: 8px 14px; font: 600 var(--fs-label) / 1 var(--font); cursor: pointer; flex: none; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
