/* ==========================================================
   Ethan Ruskin
   ========================================================== */

:root {
  --red: #d52b1e;
  --red-dark: #b0221a;
  --ink: #0e0f11;
  --ink-2: #17191c;
  --ink-3: #24272b;
  --paper: #f1f2f4;
  --tile: #ffffff;
  --line: #e1e3e7;
  --text: #121315;
  --muted: #6a6e75;
  --on-dark-muted: #9a9ea3;

  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 3.5vw, 40px);
  --r-lg: 24px;
  --r: 16px;
  --r-sm: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
em, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

.label {
  font: 500 11px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.label.red { color: var(--red); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 999px;
  background: var(--tile); color: var(--text); border: 1px solid var(--line);
  transition: background .2s, border-color .2s;
}
a.pill:hover { border-color: var(--text); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.pill.glass { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.22); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
a.pill.glass:hover { background: rgba(255,255,255,.26); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 999px; border: 0;
  background: var(--ink); color: #fff;
  font: 500 14px/1 var(--sans); cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(0,0,0,.35); }
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn.red { background: var(--red); }
.btn.red:hover { background: var(--red-dark); }
.btn.white { background: #fff; color: var(--ink); }
.btn.glass { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn.glass:hover { background: rgba(255,255,255,.22); }
.btn.sm { height: 38px; padding: 0 16px; font-size: 13px; }

.more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s; white-space: nowrap; }
.more:hover { color: var(--text); }
.more svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.more:hover svg { transform: translateX(3px); }

[data-icon] { display: inline-flex; }
[data-icon] svg { width: 100%; height: 100%; }
.btn [data-icon], .more [data-icon] { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--red); z-index: 60; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(241,242,244,.82);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; max-width: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; }
.brand .leaf { width: 22px; height: 24px; color: var(--red); transition: transform .5s var(--ease); }
.brand:hover .leaf { transform: rotate(-12deg) scale(1.08); }
.brand b { font: 600 17px/1 var(--display); letter-spacing: -.03em; }
.nav { display: flex; gap: 2px; }
.nav a { font-size: 14px; font-weight: 500; color: #50545b; padding: 9px 16px; border-radius: 999px; transition: background .2s, color .2s; }
.nav a:hover { color: var(--text); background: rgba(0,0,0,.05); }
.nav a[aria-current="page"] { background: var(--tile); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 0 0 1px var(--line); }
.head-actions { display: flex; align-items: center; gap: 8px; justify-self: end; }
.icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  border-radius: 50%; border: 1px solid var(--line); background: var(--tile);
  cursor: pointer; color: var(--text); transition: border-color .2s, background .2s, color .2s;
}
.icon-btn:hover { border-color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }

/* Floating pill nav (mobile) */
.dock {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 55;
  display: none; gap: 2px; padding: 5px;
  background: rgba(14,15,17,.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.08); border-radius: 999px;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.5);
}
.dock a { font: 500 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: #bfc3c7; padding: 12px 13px; border-radius: 999px; }
.dock a[aria-current="page"] { background: #fff; color: var(--ink); }

@media (max-width: 860px) {
  .site-header .wrap { grid-template-columns: 1fr auto; height: 64px; }
  .site-header .nav, .head-actions .btn { display: none; }
  .dock { display: flex; }
  body { padding-bottom: 76px; }
}

/* ---------- Hero (home) ---------- */
.hero-frame { padding: 0 12px; }
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-lg);
  min-height: min(calc(100svh - 84px), 880px);
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; background: var(--ink);
}
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: -2; transform: scale(1.08); animation: settle 2.6s var(--ease) forwards; }
@keyframes settle { to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(110% 70% at 0% 100%, rgba(8,9,11,.8) 0%, rgba(8,9,11,0) 60%),
    linear-gradient(180deg, rgba(8,9,11,.25) 0%, rgba(8,9,11,0) 30%, rgba(8,9,11,.5) 100%);
}
.hero-top { position: absolute; top: 22px; left: 24px; right: 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hero-top .topics-row { display: flex; gap: 6px; flex-wrap: wrap; }
.hero-body { padding: 110px clamp(24px, 4vw, 56px) clamp(28px, 4vw, 48px); }
.hero h1 {
  font-size: clamp(68px, 13vw, 208px);
  font-weight: 600; line-height: .84; letter-spacing: -.06em;
}
.hero h1 em { letter-spacing: -.035em; padding-right: .04em; }
.hero h1 .leaf { display: inline-block; width: .5em; height: .54em; color: var(--red); margin-left: .06em; vertical-align: .02em; animation: wave 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes wave { 50% { transform: rotate(-9deg); } }
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.hero-row p { max-width: 430px; margin: 0; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.5; color: rgba(255,255,255,.84); }
.hero-row .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.latest-strip {
  display: flex; align-items: center; gap: 14px; margin-top: 28px;
  padding: 8px 8px 8px 16px; border-radius: 999px; max-width: 580px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: background .25s;
}
.latest-strip:hover { background: rgba(255,255,255,.2); }
.latest-strip .label { color: var(--red); flex: none; }
.latest-strip .t { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.latest-strip .go { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--ink); flex: none; }
.latest-strip .go svg { width: 15px; height: 15px; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--red); color: #fff; margin: 12px 12px 0; border-radius: var(--r); }
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 30px; padding: 20px 30px; font: 600 clamp(18px, 2.2vw, 28px)/1 var(--display); letter-spacing: -.03em; text-transform: uppercase; white-space: nowrap; }
.marquee-track span i { display: inline-flex; width: 20px; height: 22px; }
.marquee-track span i svg { width: 100%; height: 100%; }
.marquee-track em { text-transform: none; font-size: 1.14em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.tight { padding-top: clamp(36px, 5vw, 56px); }
.section.flush { padding-bottom: 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(32px, 3.8vw, 50px); letter-spacing: -.045em; }
.sec-head h2 em { color: var(--red); }
.sec-head .label { display: block; margin-bottom: 14px; }

/* ---------- Featured (Kendi) ---------- */
.feature {
  position: relative; display: block; overflow: hidden; isolation: isolate;
  border-radius: var(--r-lg); aspect-ratio: 16 / 8; min-height: 400px; color: #fff; background: var(--ink);
}
.feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.feature:hover img { transform: scale(1.04); }
.feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.8) 100%); }
.feature .pill { position: absolute; top: 20px; left: 20px; }
.feature .body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(22px, 3.4vw, 40px); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.feature h3 { font-size: clamp(28px, 3.8vw, 52px); max-width: 800px; letter-spacing: -.045em; }
.feature .meta { color: rgba(255,255,255,.78); margin-bottom: 14px; }
.feature .go { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #fff; color: var(--ink); flex: none; transition: background .25s, color .25s; }
.feature .go svg { width: 22px; height: 22px; transform: rotate(-45deg); transition: transform .35s var(--ease); }
.feature:hover .go { background: var(--red); color: #fff; }
.feature:hover .go svg { transform: rotate(0); }
@media (max-width: 640px) { .feature { aspect-ratio: auto; min-height: 480px; } .feature .go { display: none; } }

.minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.mini { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: var(--r); background: var(--tile); border: 1px solid var(--line); transition: border-color .25s, transform .25s var(--ease); }
.mini:hover { border-color: #c9cdd3; transform: translateY(-2px); }
.mini .ph { width: 92px; height: 76px; flex: none; border-radius: var(--r-sm); overflow: hidden; background: var(--ink-3); }
.mini .ph img { width: 100%; height: 100%; object-fit: cover; }
.mini h4 { font-size: 15px; line-height: 1.3; letter-spacing: -.02em; margin-bottom: 7px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px) { .minis { grid-template-columns: 1fr; } }

.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.meta .sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }

/* ---------- Cards (Memoir card-in-card) ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 980px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; padding: 8px; border-radius: 20px; background: var(--tile); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(10,14,20,.4); border-color: #c9cdd3; }
.card .ph { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--ink-3); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .ph img { transform: scale(1.05); }
.card .ph .tag { position: absolute; left: 10px; top: 10px; }
.tag { font: 500 10.5px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; padding: 7px 10px; border-radius: 8px; color: var(--text); background: rgba(255,255,255,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.card .txt { padding: 16px 10px 10px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 20px; line-height: 1.2; letter-spacing: -.03em; }
.card p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.card .foot { margin-top: auto; padding-top: 6px; display: flex; justify-content: space-between; align-items: center; }
.card .arrow { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--paper); transition: background .25s, color .25s; }
.card .arrow svg { width: 14px; height: 14px; transform: rotate(-45deg); transition: transform .35s var(--ease); }
.card:hover .arrow { background: var(--red); color: #fff; }
.card:hover .arrow svg { transform: rotate(0); }

/* ---------- List rows (Noter) ---------- */
.rows { display: flex; flex-direction: column; gap: 6px; }
.row { display: grid; grid-template-columns: 230px 1fr; gap: 26px; align-items: center; padding: 8px; border-radius: 20px; transition: background .25s; }
.row:hover { background: var(--tile); }
.row .ph { aspect-ratio: 16 / 11; border-radius: 14px; overflow: hidden; background: var(--ink-3); }
.row .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.row:hover .ph img { transform: scale(1.05); }
.row h3 { font-size: clamp(20px, 2vw, 26px); line-height: 1.16; letter-spacing: -.035em; margin: 10px 0 8px; }
.row p { margin: 0 0 12px; color: var(--muted); font-size: 15px; max-width: 560px; }
@media (max-width: 640px) {
  .row { grid-template-columns: 112px 1fr; gap: 14px; }
  .row h3 { font-size: 16.5px; margin: 6px 0; }
  .row p { display: none; }
}

/* ---------- Layout with sidebar ---------- */
.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 980px) { .with-side { grid-template-columns: 1fr; } .side { position: static; } }

.widget { background: var(--tile); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.widget > .label { display: block; margin-bottom: 16px; }
.me { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.me img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.me b { display: block; font: italic 400 28px/1 var(--serif); }
.me span { font-size: 13px; color: var(--muted); }
.widget p { margin: 0 0 16px; font-size: 14.5px; color: #464a51; }
.socials { display: flex; gap: 8px; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--paper); color: var(--text); transition: background .2s, color .2s; }
.socials a:hover { background: var(--red); color: #fff; }
.socials svg { width: 17px; height: 17px; }

.topics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.topic { position: relative; display: grid; place-items: center; aspect-ratio: 1 / .82; border-radius: 14px; overflow: hidden; color: #fff; isolation: isolate; font: 600 15px/1 var(--display); letter-spacing: -.02em; }
.topic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.topic::before { content: ""; position: absolute; inset: 0; background: rgba(10,10,12,.48); z-index: -1; transition: background .3s; }
.topic:hover img { transform: scale(1.08); }
.topic:hover::before { background: rgba(213,43,30,.88); }
.topic.wide { grid-column: span 2; aspect-ratio: 2 / .7; }

.news input { width: 100%; height: 46px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); outline: none; font-size: 15px; transition: border-color .2s; }
.news input:focus { border-color: var(--text); }
.news .btn { width: 100%; margin-top: 8px; border-radius: 12px; }
.news small { display: block; margin-top: 10px; font-size: 12px; color: var(--muted); }

/* ---------- Mission (Memoir) ---------- */
.mission { text-align: center; background: var(--tile); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(56px, 8vw, 112px) var(--gutter); position: relative; overflow: hidden; isolation: isolate; }
.mission h2 { font-size: clamp(36px, 5.6vw, 76px); max-width: 1000px; margin: 22px auto 0; line-height: 1; letter-spacing: -.05em; }
.mission h2 em { color: var(--red); }
.mission p { max-width: 520px; margin: 22px auto 30px; color: var(--muted); font-size: 17px; }
.mission .ghost { position: absolute; width: 460px; height: 480px; right: -120px; bottom: -170px; color: rgba(18,19,21,.035); transform: rotate(-14deg); z-index: -1; }
.mission .ghost.l { left: -170px; top: -190px; right: auto; bottom: auto; transform: rotate(18deg); width: 380px; height: 400px; }

/* ---------- Dark section (QuantumInk) ---------- */
.dark { background: var(--ink); color: #fff; border-radius: var(--r-lg); margin: 0 12px; }
.dark .sec-head .label { color: var(--red); }
.dark .more { color: var(--on-dark-muted); }
.dark .more:hover { color: #fff; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(320px, auto); gap: 12px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 18px; overflow: hidden; isolation: isolate; padding: 22px; color: #fff; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease), filter .5s; filter: saturate(.85); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.05) 25%, rgba(0,0,0,.9) 100%); }
.tile:hover img { transform: scale(1.06); filter: saturate(1.05); }
.tile .tag { position: absolute; top: 16px; left: 16px; }
.tile h3 { font-size: 22px; line-height: 1.18; letter-spacing: -.03em; }
.tile p { margin: 8px 0 14px; font-size: 14px; color: #c3c6ca; }
.tile .meta { color: #a3a7ac; }
.tile.big { grid-row: span 2; }
.tile.big h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.045em; }
@media (max-width: 980px) { .tiles { grid-template-columns: 1fr 1fr; } .tile.big { grid-row: auto; grid-column: span 2; min-height: 440px; } }
@media (max-width: 600px) { .tiles { grid-template-columns: 1fr; } .tile.big { grid-column: auto; } }

/* ---------- Page header ---------- */
.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(28px, 4vw, 44px); }
.page-head h1 { font-size: clamp(56px, 9vw, 128px); line-height: .9; letter-spacing: -.06em; margin-top: 18px; }
.page-head h1 em { color: var(--red); }
.page-head p { font-size: 18px; color: var(--muted); max-width: 440px; margin: 0; }
.page-head .row-end { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter { font-size: 13.5px; font-weight: 500; padding: 10px 16px; border-radius: 999px; background: transparent; border: 1px solid var(--line); color: #464a51; cursor: pointer; transition: all .2s; }
.filter:hover { border-color: var(--text); color: var(--text); }
.filter.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter sup { font: 500 10px/1 var(--mono); margin-left: 4px; opacity: .6; }
.search-mini { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--tile); min-width: 260px; }
.search-mini:focus-within { border-color: var(--text); }
.search-mini svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.search-mini input { border: 0; outline: 0; background: none; width: 100%; font-size: 14.5px; }
@media (max-width: 600px) { .search-mini { min-width: 0; width: 100%; } }

/* Category hero */
.cat-hero { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-lg); margin: 0 12px; min-height: clamp(380px, 48vw, 560px); display: flex; align-items: flex-end; color: #fff; background: var(--ink); }
.cat-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cat-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.75)); }
.cat-hero .wrap { padding-bottom: clamp(28px, 4vw, 48px); max-width: none; padding-left: clamp(24px, 4vw, 56px); }
.cat-hero h1 { font-size: clamp(60px, 10vw, 150px); letter-spacing: -.06em; line-height: .88; margin-top: 18px; }
.cat-hero p { max-width: 480px; font-size: 18px; color: rgba(255,255,255,.84); margin: 18px 0 0; }
.cat-hero .count { position: absolute; right: 22px; top: 22px; }
.cat-hero .back { position: absolute; left: 22px; top: 22px; }

/* ---------- Article ---------- */
.a-head { text-align: center; padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 48px); }
.a-head .inner { max-width: 940px; margin: 0 auto; }
.a-head .top { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.a-head h1 { font-size: clamp(40px, 6vw, 80px); line-height: .98; letter-spacing: -.055em; margin: 24px 0 28px; }
.a-head .byline { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); flex-wrap: wrap; justify-content: center; }
.a-head .byline img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.a-head .byline b { color: var(--text); font-weight: 600; }
.a-hero { padding: 0 12px; }
.a-hero img { width: 100%; height: clamp(320px, 56vw, 700px); object-fit: cover; border-radius: var(--r-lg); background: var(--ink-3); }

.a-body { display: grid; grid-template-columns: 1fr minmax(0, 700px) 1fr; column-gap: 40px; padding: clamp(48px, 6vw, 88px) var(--gutter) 0; }
.share-rail { grid-column: 1; grid-row: 1 / span 2; justify-self: end; position: sticky; top: 100px; align-self: start; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.share-rail .label { writing-mode: vertical-rl; transform: rotate(180deg); margin-bottom: 8px; }
.prose { grid-column: 2; font-size: 18.5px; line-height: 1.75; color: #2a2c2f; }
.author-card { grid-column: 2; }
@media (max-width: 1000px) {
  .a-body { grid-template-columns: minmax(0, 1fr); max-width: 748px; margin: 0 auto; }
  .share-rail { grid-column: 1; grid-row: 3; position: static; flex-direction: row; justify-self: start; margin-top: 16px; }
  .share-rail .label { writing-mode: horizontal-tb; transform: none; margin: 0 6px 0 0; }
  .prose, .author-card { grid-column: 1; }
}
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.15em; }
.prose .lede { font-family: var(--display); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.38; letter-spacing: -.025em; font-weight: 500; color: var(--text); }
.prose > h2 { font-size: clamp(28px, 3vw, 38px); margin-top: 2em; letter-spacing: -.045em; color: var(--text); }
.prose h2 .num { font: 500 12px/1 var(--mono); color: var(--red); display: block; letter-spacing: .08em; margin-bottom: 14px; }
.prose > blockquote {
  margin: 2em 0; padding: 36px 40px; border-radius: 20px;
  background: var(--ink); color: #fff;
  font: italic 400 clamp(28px, 3.2vw, 40px)/1.12 var(--serif); letter-spacing: -.01em;
  position: relative; overflow: hidden;
}
.prose > blockquote::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--red); }
.prose ul { padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 30px; }
.prose li + li { margin-top: .5em; }
.prose li::before { content: ""; position: absolute; left: 4px; top: .8em; width: 12px; height: 2px; background: var(--red); }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

.author-card { margin-top: 56px; display: flex; gap: 18px; align-items: center; padding: 18px; background: var(--tile); border: 1px solid var(--line); border-radius: 20px; }
.author-card img { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; flex: none; }
.author-card b { display: block; font: italic 400 28px/1.05 var(--serif); }
.author-card p { margin: 4px 0 0; font-size: 14.5px; color: var(--muted); }
.author-card .btn { margin-left: auto; }
@media (max-width: 600px) { .author-card { flex-wrap: wrap; } .author-card .btn { margin-left: 0; } }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.post-nav a { padding: 24px; border-radius: 20px; background: var(--tile); border: 1px solid var(--line); transition: border-color .25s, transform .25s var(--ease); }
.post-nav a:hover { border-color: var(--text); transform: translateY(-2px); }
.post-nav .label { display: block; margin-bottom: 12px; }
.post-nav strong { font: 600 20px/1.2 var(--display); letter-spacing: -.03em; }
.post-nav .next { text-align: right; grid-column: 2; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { grid-column: 1; } }

/* ---------- About ---------- */
.split-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 12px; padding: 0 12px; }
.split-hero .copy { background: var(--tile); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 640px; }
.split-hero h1 { font-size: clamp(60px, 8.4vw, 128px); line-height: .88; letter-spacing: -.06em; margin-top: 22px; }
.split-hero h1 em { color: var(--red); }
.split-hero .copy p { font-size: 18px; color: #464a51; max-width: 480px; margin: 0 0 14px; }
.split-hero .copy .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.split-hero .photo { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 640px; background: var(--ink); }
.split-hero .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-hero .photo .pill { position: absolute; left: 20px; bottom: 20px; }
@media (max-width: 900px) { .split-hero { grid-template-columns: 1fr; } .split-hero .copy, .split-hero .photo { min-height: 0; } .split-hero .photo { aspect-ratio: 4/5; } }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.value { background: var(--tile); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 12px; min-height: 260px; transition: transform .3s var(--ease), border-color .3s; }
.value:hover { transform: translateY(-4px); border-color: #c9cdd3; }
.value .ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--red); color: #fff; margin-bottom: auto; }
.value .ic svg { width: 22px; height: 22px; }
.value h3 { font-size: 24px; letter-spacing: -.035em; }
.value p { margin: 0; color: var(--muted); font-size: 14.5px; }
.dark .value { background: var(--ink-2); border-color: #26292d; }
.dark .value p { color: var(--on-dark-muted); }
.dark .value .ic { background: var(--red); color: #fff; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } .value { min-height: 200px; } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } .value { min-height: 200px; } }

.story { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.story h2 { font-size: clamp(40px, 4.8vw, 68px); letter-spacing: -.055em; line-height: .95; position: sticky; top: 110px; }
.story h2 em { color: var(--red); }
.story .prose { font-size: 18px; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } .story h2 { position: static; } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { background: var(--ink); color: #fff; border-radius: 20px; padding: 28px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; }
.stat:nth-child(2) { background: var(--red); }
.stat .label { color: rgba(255,255,255,.6); }
.stat b { font: 600 clamp(64px, 8vw, 108px)/.9 var(--display); letter-spacing: -.06em; }
.stat span { font-size: 15px; color: rgba(255,255,255,.8); }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } .stat { min-height: 170px; } }

.strip { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; height: clamp(300px, 36vw, 480px); }
.strip div { position: relative; border-radius: 20px; overflow: hidden; background: var(--ink-3); }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.strip div:hover img { transform: scale(1.05); }
.strip .tag { position: absolute; left: 14px; bottom: 14px; }
@media (max-width: 700px) { .strip { grid-template-columns: 1fr 1fr; height: auto; } .strip div { aspect-ratio: 4/5; } .strip div:first-child { grid-column: span 2; aspect-ratio: 16/10; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 12px; }
.contact-visual { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-lg); color: #fff; padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 720px; background: var(--ink); }
.contact-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.contact-visual::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 60% at 0% 20%, rgba(0,0,0,.6), rgba(0,0,0,0) 70%), linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.25) 50%, rgba(0,0,0,.8)); }
.contact-visual h1 { font-size: clamp(60px, 7.6vw, 116px); line-height: .88; letter-spacing: -.06em; margin-top: 20px; }
.contact-visual p { font-size: 18px; color: rgba(255,255,255,.84); max-width: 400px; margin: 20px 0 0; }
.direct { display: flex; flex-direction: column; gap: 8px; }
.direct a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: background .25s; }
.direct a:hover { background: rgba(255,255,255,.22); }
.direct span { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.direct svg { width: 18px; height: 18px; }
.direct small { font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.65); }

.form-card { background: var(--tile); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 52px); display: flex; flex-direction: column; }
.form-card h2 { font-size: clamp(30px, 3.2vw, 44px); letter-spacing: -.045em; margin: 18px 0 10px; }
.form-card h2 em { color: var(--red); }
.form-card > p { color: var(--muted); margin: 0 0 28px; }
.form { display: grid; gap: 16px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form .two { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 8px; }
.form .label { color: var(--text); }
.form input:not([type=radio]), .form textarea {
  width: 100%; background: var(--paper); border: 1px solid transparent; border-radius: 12px;
  padding: 14px 16px; font-size: 15.5px; outline: none; transition: border-color .2s, background .2s;
}
.form input:not([type=radio]):focus, .form textarea:focus { border-color: var(--text); background: #fff; }
.form textarea { min-height: 170px; resize: vertical; }
.reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.reasons label { display: inline-flex; cursor: pointer; position: relative; }
.reasons input { position: absolute; opacity: 0; pointer-events: none; }
.reasons label span { font-size: 13.5px; font-weight: 500; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); transition: all .2s; }
.reasons label:hover span { border-color: var(--text); }
.reasons input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.reasons input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.form .btn { margin-top: 6px; height: 54px; }
.form .note { font-size: 13px; color: var(--muted); margin: 0; min-height: 1em; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-visual { min-height: 560px; } }

/* ---------- Search ---------- */
.search-big { display: flex; align-items: center; gap: 14px; height: 76px; padding: 0 12px 0 26px; border-radius: 999px; background: var(--tile); border: 1px solid var(--line); max-width: 860px; margin-top: 36px; transition: border-color .2s, box-shadow .2s; }
.search-big:focus-within { border-color: var(--text); box-shadow: 0 14px 34px -20px rgba(0,0,0,.4); }
.search-big > [data-icon] { width: 22px; height: 22px; color: var(--muted); flex: none; }
.search-big input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 500 22px/1 var(--display); letter-spacing: -.02em; }
.search-big input::-webkit-search-cancel-button { display: none; }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; align-items: center; }
.suggest .label { margin-right: 6px; }
.count { display: block; margin: 0 0 18px; }
.empty { padding: 72px 0; text-align: center; }
.empty h3 { font-size: 34px; letter-spacing: -.04em; margin-bottom: 8px; }
.empty p { color: var(--muted); margin: 0; }
mark { background: var(--red); color: #fff; padding: 0 3px; border-radius: 4px; }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; margin: 0 12px; border-radius: var(--r-lg); background: var(--red); color: #fff; padding: clamp(40px, 6vw, 84px) clamp(24px, 5vw, 72px); display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(40px, 6vw, 88px); line-height: .9; letter-spacing: -.06em; max-width: 800px; }
.cta p { margin: 18px 0 0; color: rgba(255,255,255,.85); font-size: 17px; }
.cta .ghost { position: absolute; right: -60px; top: -100px; width: 440px; height: 460px; color: rgba(255,255,255,.09); z-index: -1; transform: rotate(12deg); }

/* ---------- Footer ---------- */
.site-footer { margin: 12px; border-radius: var(--r-lg); background: var(--ink); color: #fff; overflow: hidden; position: relative; isolation: isolate; }
.site-footer > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .2; z-index: -1; }
.foot-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding: clamp(48px, 6vw, 84px) clamp(24px, 4vw, 56px) 48px; }
.foot-top h2 { font-size: clamp(38px, 4.4vw, 60px); line-height: .94; letter-spacing: -.055em; }
.foot-top h2 em { color: var(--red); }
.foot-top .col .label { display: block; color: #7f8388; margin-bottom: 16px; }
.foot-top .col a { display: block; width: fit-content; font-size: 15px; color: #cfd2d5; padding: 5px 0; transition: color .2s, transform .2s; }
.foot-top .col a:hover { color: #fff; transform: translateX(3px); }
.foot-top .socials { margin-top: 26px; }
.foot-top .socials a { background: rgba(255,255,255,.08); color: #fff; }
.foot-top .socials a:hover { background: var(--red); }
.wordmark { padding: 0 clamp(14px, 2.4vw, 36px); font: 600 clamp(52px, 14.2vw, 214px)/.78 var(--display); letter-spacing: -.07em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.25); user-select: none; display: flex; align-items: flex-end; gap: .05em; overflow: hidden; }
.wordmark i { display: inline-flex; flex: none; width: .5em; height: .54em; color: var(--red); margin-bottom: .04em; }
.wordmark i svg { width: 100%; height: 100%; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 20px clamp(24px, 4vw, 56px) 24px; border-top: 1px solid rgba(255,255,255,.08); font: 500 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #7f8388; position: relative; background: var(--ink); }
@media (max-width: 860px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-top > div:first-child { grid-column: span 2; } }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero > img, .marquee-track, .hero h1 .leaf { animation: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* Nested icon sizing */
.ghost [data-icon] { width: 100%; height: 100%; }
.value .ic [data-icon] { width: 22px; height: 22px; }
.contact-visual p, .hero-row p, .cat-hero p { text-shadow: 0 1px 14px rgba(0,0,0,.55); }

.brand img { height: 30px; width: auto; transition: opacity .2s; }
.brand:hover img { opacity: .8; }
@media (max-width: 860px) { .brand img { height: 24px; } }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
