/* ============================================================================
   Literature & Media Kar — Champhai Vengthlang Branch KTP
   Design system + components. Single stylesheet, no build step.
   ----------------------------------------------------------------------------
   1. Tokens          6. Hero
   2. Reset/base      7. Sections & cards
   3. Type            8. Photography / Articles / Results
   4. Utilities       9. Footer / Lightbox
   5. Header/nav     10. Motion & responsive
   ========================================================================== */

/* ------------------------------------------------------------- 1. tokens -- */
:root {
  /* surfaces */
  --paper: #faf7f2;
  --paper-2: #f3eee5;
  --paper-3: #ebe4d8;
  --card: #ffffff;

  /* ink */
  --ink: #17130f;
  --ink-2: #574f45;
  --ink-3: #8b8175;

  /* brand */
  --accent: #b5431f;
  --accent-soft: #f6e3da;
  --gold: #a9822f;
  --forest: #1e3a32;

  --line: color-mix(in srgb, var(--ink) 12%, transparent);
  --line-strong: color-mix(in srgb, var(--ink) 22%, transparent);

  --shadow-1: 0 1px 2px rgba(23, 19, 15, 0.04), 0 8px 22px -14px rgba(23, 19, 15, 0.22);
  --shadow-2: 0 2px 6px rgba(23, 19, 15, 0.06), 0 28px 60px -28px rgba(23, 19, 15, 0.35);
  --shadow-3: 0 40px 100px -40px rgba(23, 19, 15, 0.5);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 34px;

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);

  --ff-display: "Playfair Display", "Iowan Old Style", "Palatino Linotype",
    "Noto Serif", Georgia, serif;
  --ff-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans",
    Roboto, Helvetica, Arial, sans-serif;
  --ff-mono: "SF Mono", ui-monospace, "Cascadia Mono", Menlo, monospace;

  --ease: cubic-bezier(0.16, 0.84, 0.28, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.5s;

  --nav-h: 68px;
  color-scheme: light;
}

[data-theme="dark"] {
  --paper: #0e100f;
  --paper-2: #15181a;
  --paper-3: #1c2022;
  --card: #16191b;

  --ink: #f3efe8;
  --ink-2: #b6afa5;
  --ink-3: #7e7871;

  --accent: #e8794e;
  --accent-soft: #35211a;
  --gold: #d8ab5c;
  --forest: #9dc6b5;

  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  --line-strong: color-mix(in srgb, var(--ink) 26%, transparent);

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 26px -16px rgba(0, 0, 0, 0.7);
  --shadow-2: 0 2px 8px rgba(0, 0, 0, 0.45), 0 30px 70px -30px rgba(0, 0, 0, 0.8);
  --shadow-3: 0 40px 110px -40px rgba(0, 0, 0, 0.9);
  color-scheme: dark;
}

/* --------------------------------------------------------- 2. reset/base -- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1.5rem);
}

body {
  font-family: var(--ff-body);
  font-size: clamp(0.975rem, 0.94rem + 0.16vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease);
}

body.is-locked { overflow: hidden; }

/* Warm paper grain — very subtle, sits behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: #fff; }

/* ----------------------------------------------------------------- 3. type */
h1, h2, h3, h4, .display {
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.h-hero { font-size: clamp(2.6rem, 1.5rem + 6.4vw, 6.5rem); }
.h-1 { font-size: clamp(2.1rem, 1.4rem + 3.1vw, 3.9rem); }
.h-2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.35rem); }
.h-3 { font-size: clamp(1.2rem, 1.08rem + 0.55vw, 1.5rem); }

.eyebrow {
  font-family: var(--ff-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.eyebrow.no-rule::before { display: none; }

.lead {
  font-size: clamp(1.02rem, 0.98rem + 0.35vw, 1.24rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 56ch;
  text-wrap: pretty;
}

.muted { color: var(--ink-3); }
.small { font-size: 0.82rem; }

.mono {
  font-family: var(--ff-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------ 4. utilities */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}
.wrap-wide { max-width: 1420px; }

.section { padding-block: clamp(4rem, 9vw, 8.5rem); }
.section-tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section-alt { background: var(--paper-2); }

.rule { height: 1px; background: var(--line); border: 0; }

.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}
.section-head .h-1 { max-width: 22ch; }
@media (min-width: 900px) {
  .section-head.split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    align-items: end;
    gap: 2rem 4rem;
  }
  .section-head.split .head-side { padding-bottom: 0.35rem; }
}

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.5em;
  border-radius: 100px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.875rem;
  font-weight: 550;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    color 0.35s var(--ease);
  will-change: transform;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); color: #fff; }
.btn:hover::after { transform: translateY(0); }
.btn:active { transform: translateY(0); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn-ghost:hover { color: #fff; }

.btn svg { width: 16px; height: 16px; flex: none; }
.btn .arw { transition: transform 0.4s var(--ease); }
.btn:hover .arw { transform: translateX(3px); }

/* text link with animated underline */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--ink);
  position: relative;
  padding-bottom: 2px;
}
.tlink::before,
.tlink::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
}
.tlink::before { opacity: 0.25; }
.tlink::after {
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.5s var(--ease);
}
.tlink:hover { color: var(--accent); }
.tlink:hover::after { transform: scaleX(1); }
.tlink svg { width: 15px; height: 15px; flex: none; }
.tlink .arw { transition: transform 0.4s var(--ease); }
.tlink:hover .arw { transform: translateX(4px); }

.tag {
  display: inline-block;
  padding: 0.35em 0.75em;
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag-quiet {
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  color: var(--ink-2);
}

/* ---------------------------------------------------------- 5. header/nav */
.site-head {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
}
.site-head::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.site-head.stuck {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
}
.site-head.stuck::after { opacity: 1; }

.head-in {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  min-width: 0;
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--ff-display);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  transition: transform 0.5s var(--ease), background-color 0.4s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); background: var(--accent); }
.brand-txt { display: grid; line-height: 1.25; min-width: 0; }
.brand-txt b {
  font-weight: 600;
  font-size: 0.83rem;
  letter-spacing: 0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-txt span {
  font-size: 0.64rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.nav { display: none; align-items: center; gap: 0.35rem; }
.nav a {
  padding: 0.5rem 0.85rem;
  border-radius: 100px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::before { opacity: 1; transform: scale(1); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
}

.head-actions { display: flex; align-items: center; gap: 0.4rem; }

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.icon-btn:hover {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  color: var(--ink);
}
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 18px; height: 18px; stroke-width: 1.6; }

.theme-btn .i-moon { display: none; }
[data-theme="dark"] .theme-btn .i-sun { display: none; }
[data-theme="dark"] .theme-btn .i-moon { display: block; }

/* burger — flex, not grid: auto grid rows stretch to fill the button and the
   bars would no longer sit exactly 6px apart, breaking the X. */
.burger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4.5px;
}
.burger span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.42s var(--ease), opacity 0.25s var(--ease);
}
body.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; transform: scaleX(0.4); }
body.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* mobile menu overlay */
.menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--paper);
  padding: calc(var(--nav-h) + 2.5rem) var(--gutter) 3rem;
  display: flex;
  flex-direction: column;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-out);
  pointer-events: none;
}
body.menu-open .menu { clip-path: inset(0 0 0 0); pointer-events: auto; }

.menu-nav { display: grid; gap: 0.15rem; margin-bottom: auto; }
.menu-nav a {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 11vw, 3.1rem);
  line-height: 1.22;
  padding: 0.18em 0;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease-out),
    color 0.3s var(--ease);
}
body.menu-open .menu-nav a {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.1s + var(--i) * 0.065s);
}
.menu-nav a:hover { color: var(--accent); }
.menu-nav a i {
  font-family: var(--ff-mono);
  font-style: normal;
  font-size: 0.6rem;
  color: var(--ink-3);
  letter-spacing: 0.1em;
}
.menu-foot {
  display: grid;
  gap: 0.35rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-3);
  opacity: 0;
  transition: opacity 0.5s var(--ease) 0.35s;
}
body.menu-open .menu-foot { opacity: 1; }

/* ----------------------------------------------------------------- 6. hero */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 7vw, 5.5rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -28vh;
  left: 50%;
  width: min(150vw, 1500px);
  aspect-ratio: 1;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    color-mix(in srgb, var(--accent) 16%, transparent) 0%,
    transparent 62%
  );
  pointer-events: none;
  z-index: 0;
  animation: breathe 14s var(--ease) infinite alternate;
}
@keyframes breathe {
  from { transform: scale(1); opacity: 0.85; }
  to { transform: scale(1.14); opacity: 1; }
}

.hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 940px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 5vw, 5rem);
  }
}

.hero-copy > * { opacity: 0; transform: translateY(22px); }
.hero-copy > *:nth-child(1) { animation: rise 0.9s var(--ease-out) 0.15s forwards; }
.hero-copy > *:nth-child(2) { animation: rise 0.9s var(--ease-out) 0.26s forwards; }
.hero-copy > *:nth-child(3) { animation: rise 0.9s var(--ease-out) 0.37s forwards; }
.hero-copy > *:nth-child(4) { animation: rise 0.9s var(--ease-out) 0.48s forwards; }
.hero-copy > *:nth-child(5) { animation: rise 0.9s var(--ease-out) 0.58s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero h1 {
  margin: 0.55rem 0 0;
  font-size: clamp(2.5rem, 1.2rem + 5.2vw, 5.2rem);
}
.hero h1 span,
.hero h1 em { display: block; white-space: nowrap; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead { margin-top: 1.4rem; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-2);
}
.hero-meta div { display: flex; align-items: center; gap: 0.5rem; }
.hero-meta svg { width: 15px; height: 15px; color: var(--ink-3); flex: none; }

/* single hero photo — the file itself is set in content.js (week.hero.photo) */
.hero-art {
  position: relative;
  max-width: 520px;
  margin-inline: auto;
  width: 100%;
}
.hero-figure {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--paper-3);
  box-shadow: var(--shadow-3), var(--shadow-1);
  opacity: 0;
  animation: pop 1.1s var(--ease-out) 0.3s forwards;
}
.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.hero-figure:hover img { transform: scale(1.04); }
.hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  border-radius: inherit;
  pointer-events: none;
}
@keyframes pop {
  from { opacity: 0; transform: translateY(28px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

/* stats */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (min-width: 620px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat {
  background: var(--paper);
  padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1rem, 2vw, 1.6rem);
  transition: background-color 0.4s var(--ease);
}
.stat:hover { background: var(--card); }
.stat b {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem);
  font-weight: 500;
  line-height: 1;
  display: block;
  letter-spacing: -0.02em;
}
.stat p { font-size: 0.9rem; font-weight: 550; margin-top: 0.5rem; }
.stat span { font-size: 0.72rem; color: var(--ink-3); letter-spacing: 0.04em; }

/* --------------------------------------------------- 7. sections & cards -- */
/* theme banner */
.theme-band {
  border-radius: var(--r-xl);
  background: var(--forest);
  color: #f4f0e8;
  padding: clamp(2.25rem, 5vw, 4.5rem);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
[data-theme="dark"] .theme-band { background: #14241f; }
.theme-band::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 171, 92, 0.22), transparent 65%);
  z-index: -1;
}
.theme-band .eyebrow { color: var(--gold); }
.theme-band blockquote {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 1.1rem + 2.6vw, 3.1rem);
  line-height: 1.16;
  font-style: italic;
  margin: 1rem 0 0;
  max-width: 30ch;
  text-wrap: balance;
}
.theme-band p { color: rgba(244, 240, 232, 0.7); margin-top: 1.4rem; max-width: 48ch; }

/* generic card */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease),
    border-color 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: transparent;
}

/* ---- photo card ---- */
.photo-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.6rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
}
.photo-grid .span-2 { grid-column: span 1; }
@media (min-width: 760px) { .photo-grid .span-2 { grid-column: span 2; } }

.pcard {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper-3);
  box-shadow: var(--shadow-1);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.pcard-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-3);
}
.span-2 .pcard-media { aspect-ratio: 16 / 10; }
.pcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter 0.6s var(--ease);
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.pcard:hover .pcard-media img { transform: scale(1.055); }

.pcard-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 8, 6, 0.88) 0%,
    rgba(10, 8, 6, 0.45) 32%,
    rgba(10, 8, 6, 0.05) 60%,
    transparent 100%
  );
  opacity: 0.92;
  transition: opacity 0.5s var(--ease);
}
.pcard-body {
  position: absolute;
  inset: auto 0 0;
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  color: #fff;
  display: grid;
  gap: 0.7rem;
}
.pcard-cat {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.pcard-title {
  font-family: var(--ff-display);
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.6rem);
  line-height: 1.14;
}
.pcard-quote {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease), opacity 0.45s var(--ease),
    margin 0.6s var(--ease);
}
.pcard:hover .pcard-quote,
.pcard:focus-visible .pcard-quote { max-height: 5.2em; opacity: 1; }

.byline { display: flex; align-items: center; gap: 0.65rem; min-width: 0; }
.byline img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.byline-txt { min-width: 0; line-height: 1.3; }
.byline-txt b {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.byline-txt span {
  font-size: 0.7rem;
  opacity: 0.72;
  letter-spacing: 0.03em;
}
.byline.on-ink img { box-shadow: 0 0 0 1px var(--line-strong); }

.rank-chip {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem 0.4rem 0.45rem;
  border-radius: 100px;
  background: rgba(16, 13, 10, 0.42);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.rank-chip b {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #1a1508;
  font-family: var(--ff-display);
  font-size: 0.78rem;
}
.rank-chip.r2 b { background: #d8d3ca; }
.rank-chip.r3 b { background: #d1a37f; }

/* winner spotlight (first place) */
.spotlight { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 900px) {
  .spotlight {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
  }
}
.spotlight-media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-3), var(--shadow-1);
  aspect-ratio: 3 / 2;
  background: var(--paper-3);
}
.spotlight-media img { width: 100%; height: 100%; object-fit: cover; }
.spotlight-media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  border-radius: inherit;
}
.spot-quote {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(1.35rem, 1rem + 1.9vw, 2.3rem);
  line-height: 1.24;
  margin: 1.1rem 0 0;
  text-wrap: balance;
}
.spot-quote::before { content: "“"; color: var(--accent); }
.spot-quote::after { content: "”"; color: var(--accent); }
.spotlight-body .byline { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.spotlight-body .byline img { width: 46px; height: 46px; }
.spotlight-body .byline-txt b { font-size: 0.95rem; }
.spot-note { margin-top: 1.1rem; color: var(--ink-2); font-size: 0.92rem; max-width: 46ch; }

/* filter chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}
/* `.chips` sets display:flex, which would otherwise beat the UA [hidden] rule */
.chips[hidden] { display: none; }
.chip {
  padding: 0.55em 1.05em;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: color 0.3s var(--ease), background-color 0.35s var(--ease),
    box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.chip:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  box-shadow: none;
}
.chip:active { transform: scale(0.97); }

/* ---- article card ---- */
.art-grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.acard { display: flex; flex-direction: column; height: 100%; }
.acard-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-3); }
.acard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.acard:hover .acard-media img { transform: scale(1.05); }
.acard-body {
  padding: clamp(1.15rem, 2.2vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
.acard-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.acard-meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.acard h3 { font-size: clamp(1.12rem, 1rem + 0.5vw, 1.35rem); }
.acard:hover h3 { color: var(--accent); }
.acard h3 { transition: color 0.35s var(--ease); }
.acard p { font-size: 0.9rem; color: var(--ink-2); }
.acard .byline { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }

/* featured article row */
.art-feature { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 880px) {
  .art-feature { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; }
}
.art-feature .fm {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: var(--paper-3);
  box-shadow: var(--shadow-2);
}
.art-feature .fm img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.art-feature:hover .fm img { transform: scale(1.04); }

/* ---- slogan card ---- */
.slogan-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.6rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
}
.slogan-grid .span-2 { grid-column: span 1; }
@media (min-width: 760px) { .slogan-grid .span-2 { grid-column: span 2; } }
/* home tease: the three podium slogans hold one row on desktop */
@media (min-width: 880px) {
  .slogan-grid.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.scard {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.4rem, 2.8vw, 2.1rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease),
    border-color 0.4s var(--ease);
}
/* `.reveal.in` sets `transform: none` further down the sheet at equal
   specificity, so the hover lift needs the extra `.in` class to win. */
.scard:hover,
.scard.in:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: transparent;
}
/* oversized quote glyph, purely decorative */
.scard::before {
  content: "“";
  position: absolute;
  top: -0.42em;
  right: 0.1em;
  z-index: -1;
  font-family: var(--ff-display);
  font-size: 9rem;
  line-height: 1;
  color: color-mix(in srgb, var(--accent) 11%, transparent);
}
.scard-rank {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.scard-rank b {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--ff-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  color: var(--ink-2);
}
.scard.r1 .scard-rank b { background: var(--gold); color: #1a1508; }
.scard.r2 .scard-rank b { background: color-mix(in srgb, var(--ink) 14%, transparent); }
.scard.r3 .scard-rank b { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.scard-text {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(1.2rem, 1rem + 0.85vw, 1.6rem);
  line-height: 1.22;
  margin: 0;
  text-wrap: balance;
}
.scard.span-2 .scard-text { font-size: clamp(1.5rem, 1.1rem + 1.9vw, 2.5rem); }
.scard-note { font-size: 0.88rem; color: var(--ink-2); max-width: 46ch; }
.scard .byline {
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

/* ---- article reading view ---- */
.post-head { padding-top: calc(var(--nav-h) + clamp(2rem, 5vw, 4rem)); }
.post-head .h-1 { max-width: 26ch; margin-top: 0.75rem; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.25rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-3);
}
.post-hero {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--paper-3);
  box-shadow: var(--shadow-2);
}
.post-hero img { width: 100%; height: 100%; object-fit: cover; }

.prose {
  max-width: 68ch;
  margin-inline: auto;
  font-size: clamp(1.03rem, 1rem + 0.3vw, 1.16rem);
  line-height: 1.78;
}
.prose p + p { margin-top: 1.35em; }
.prose p:first-of-type::first-letter {
  font-family: var(--ff-display);
  float: left;
  font-size: 3.4em;
  line-height: 0.82;
  padding: 0.06em 0.12em 0 0;
  color: var(--accent);
}
.prose blockquote {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.3em;
  line-height: 1.4;
  margin: 1.8em 0;
  padding-left: 1.2em;
  border-left: 2px solid var(--accent);
  color: var(--ink);
}
/* subheads and lists, for the longer articles */
.prose h2,
.prose h3 {
  font-family: var(--ff-display);
  line-height: 1.2;
  margin: 1.9em 0 0.7em;
}
.prose h2 { font-size: 1.5em; }
.prose h3 { font-size: 1.2em; }
.prose h2:first-child,
.prose h3:first-child { margin-top: 0; }
.prose ul { margin: 1.35em 0; padding-left: 1.3em; list-style: disc; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.18em; }

.share-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 68ch;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

/* ---- results ---- */
.champ {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--ink);
  color: var(--paper);
  display: grid;
  gap: 1.5rem;
  isolation: isolate;
}
[data-theme="dark"] .champ { background: var(--paper-2); border: 1px solid var(--line); }
.champ::before {
  content: "";
  position: absolute;
  inset: auto -5% -60% auto;
  right: -5%;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold) 22%, transparent), transparent 66%);
  z-index: -1;
}
@media (min-width: 800px) {
  .champ { grid-template-columns: 1fr auto; align-items: center; gap: 3rem; }
}
.champ .eyebrow { color: var(--gold); }
.champ-name {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 1.6rem + 4.4vw, 5rem);
  line-height: 1;
  margin-top: 0.6rem;
  letter-spacing: -0.02em;
}
.champ-note { color: color-mix(in srgb, var(--paper) 62%, transparent); margin-top: 0.9rem; }
[data-theme="dark"] .champ-note { color: var(--ink-3); }
.champ-pts {
  text-align: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--paper) 10%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--paper) 18%, transparent);
}
[data-theme="dark"] .champ-pts {
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
}
.champ-pts b {
  display: block;
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 2rem + 2vw, 3.4rem);
  line-height: 1;
  color: var(--gold);
}
.champ-pts span { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; }

.res-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.rcard { padding: clamp(1.35rem, 2.5vw, 1.9rem); }
.rcard h3 {
  font-size: 1.08rem;
  padding-bottom: 1rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
}
.rrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 0;
}
.rrow + .rrow { border-top: 1px dashed var(--line); }
.rrow .pl {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--ff-display);
  font-size: 0.8rem;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  color: var(--ink-2);
}
.rrow.p1 .pl { background: var(--gold); color: #1a1508; }
.rrow.p2 .pl { background: color-mix(in srgb, var(--ink) 14%, transparent); }
.rrow .nm { min-width: 0; line-height: 1.35; }
.rrow .nm b { display: block; font-size: 0.9rem; font-weight: 550; }
.rrow .nm span { font-size: 0.74rem; color: var(--ink-3); }

/* standings bars */
.stand { display: grid; gap: 0.4rem; }
.stand-row {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: var(--r);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: background-color 0.35s var(--ease);
}
.stand-row:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.stand-row .bar {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: -1;
  border-radius: var(--r);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  width: var(--w, 0%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(0.1s + var(--i, 0) * 0.08s);
}
.stand-row.in .bar { transform: scaleX(1); }
/* `.first`, not `.lead` — `.lead` is the paragraph utility above and its
   max-width would shrink the row. */
.stand-row.first .bar { background: color-mix(in srgb, var(--gold) 26%, transparent); }
.stand-row .no { font-family: var(--ff-mono); font-size: 0.72rem; color: var(--ink-3); }
.stand-row .gp { font-weight: 550; font-size: 0.95rem; }
.stand-row .pt { font-family: var(--ff-display); font-size: 1.15rem; }

/* programme timeline */
.tl { display: grid; gap: 0; }
.tl-row {
  display: grid;
  gap: 0.3rem 1.5rem;
  padding: clamp(1.1rem, 2.2vw, 1.5rem) 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
  position: relative;
  transition: padding-left 0.45s var(--ease);
}
@media (min-width: 720px) {
  .tl-row { grid-template-columns: 7.5rem minmax(0, 1fr) auto; }
  .tl-row:hover { padding-left: 0.75rem; }
}
.tl-row:last-child { border-bottom: 1px solid var(--line); }
.tl-row::before {
  content: "";
  position: absolute;
  left: -0.85rem;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.tl-row:hover::before { opacity: 1; }
.tl-date { font-family: var(--ff-mono); font-size: 0.74rem; color: var(--accent); }
.tl-date span { display: block; color: var(--ink-3); margin-top: 0.15rem; }
.tl-title { font-family: var(--ff-display); font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem); }
.tl-note { font-size: 0.82rem; color: var(--ink-3); }

/* judges */
.judge-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.judge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem 0.6rem 0.65rem;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--card);
}
.judge .ini {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 650;
  flex: none;
}
.judge b { font-size: 0.82rem; font-weight: 550; display: block; line-height: 1.3; }
.judge span { font-size: 0.7rem; color: var(--ink-3); }

/* page header (interior pages) */
.page-head {
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(2rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}
.page-head .h-hero { font-size: clamp(2.4rem, 1.5rem + 5vw, 5rem); margin-top: 0.6rem; }
.page-head .lead { margin-top: 1.25rem; }
.crumbs { font-size: 0.78rem; color: var(--ink-3); display: flex; gap: 0.5rem; align-items: center; }
.crumbs a:hover { color: var(--accent); }

/* CTA band */
.cta-band {
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--card);
  padding: clamp(2rem, 5vw, 3.75rem);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1.1rem;
}
.cta-band .h-2 { max-width: 26ch; }
.cta-band p { max-width: 52ch; color: var(--ink-2); }

/* ------------------------------------------------------- 9. footer/lightbox */
.site-foot {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
  margin-top: clamp(3rem, 7vw, 6rem);
}
.foot-grid { display: grid; gap: 2.5rem; }
@media (min-width: 800px) {
  .foot-grid { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 3rem; }
}
.foot-brand .h-3 { margin-top: 0.9rem; max-width: 20ch; }
.foot-brand p { margin-top: 0.75rem; color: var(--ink-3); font-size: 0.88rem; max-width: 34ch; }
.foot-col h4 {
  font-family: var(--ff-body);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1rem;
}
.foot-col ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.foot-col a { font-size: 0.9rem; color: var(--ink-2); transition: color 0.3s var(--ease); }
.foot-col a:hover { color: var(--accent); }
.foot-bot {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--ink-3);
}

/* lightbox */
.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
[data-theme="dark"] .lb { background: rgba(6, 7, 7, 0.88); }
.lb.open { opacity: 1; visibility: visible; }
.lb-inner {
  width: min(1040px, 100%);
  max-height: 100%;
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  transform: scale(0.965) translateY(14px);
  transition: transform 0.55s var(--ease-out);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.lb.open .lb-inner { transform: none; }
@media (min-width: 880px) {
  .lb-inner { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; }
}
.lb-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper-3);
  box-shadow: var(--shadow-3);
  max-height: 78vh;
}
.lb-media img { width: 100%; height: 100%; max-height: 78vh; object-fit: contain; }
.lb-quote {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(1.2rem, 1rem + 1.2vw, 1.8rem);
  line-height: 1.28;
  margin-top: 0.8rem;
}
.lb-body .byline { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.lb-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
  display: grid;
  place-items: center;
  transition: transform 0.35s var(--ease);
}
.lb-close:hover { transform: rotate(90deg); }
.lb-nav { display: flex; gap: 0.5rem; margin-top: 1.5rem; }
.lb-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--ink-2);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.lb-nav button:hover { background: var(--ink); color: var(--paper); }

/* scroll progress (article page) */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: var(--accent);
  z-index: 101;
}

/* to-top */
.totop {
  position: fixed;
  right: clamp(1rem, 2vw, 1.75rem);
  bottom: clamp(1rem, 2vw, 1.75rem);
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.totop svg { width: 18px; height: 18px; }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--ink); color: var(--paper); }

/* empty state */
.empty {
  padding: clamp(2.5rem, 6vw, 4.5rem) 1rem;
  text-align: center;
  color: var(--ink-3);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
}

/* ------------------------------------------------- 10. motion & responsive */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease-out), transform 0.85s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 0.07s);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* Image reveal: never clip the observed element itself — a fully clipped node
   reports a zero intersection rect, so IntersectionObserver would never fire.
   The clip lives on the inner <img> instead. */
.reveal-img { overflow: hidden; }
.reveal-img > img {
  transform: scale(1.07);
  opacity: 0;
  transition: transform 1.4s var(--ease-out), opacity 0.9s var(--ease);
}
.reveal-img.in > img { transform: none; opacity: 1; }

@media (min-width: 880px) {
  .nav { display: flex; }
  .burger { display: none; }
}

@media (max-width: 879px) {
  .menu { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  .reveal, .hero-copy > *, .hero-art figure { opacity: 1 !important; transform: none !important; }
  .reveal-img { clip-path: none !important; }
  .menu { transition: none; }
}

@media print {
  .site-head, .menu, .totop, .lb { display: none !important; }
  body { background: #fff; color: #000; }
}
