/* ═══════════════════════════════════════════════════════════════
   THE MOTION INDEX · 2026
   Editorial brutalism meets Pangram-style refinement.
   Type: Bricolage Grotesque (display) · Instrument Serif (italic accent)
         Inter Tight (body) · JetBrains Mono (meta)
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Light theme — warm cream */
  --bg:        #ffffff;
  --bg-alt:    #f5f2ea;
  --bg-card:   #ffffff;
  --fg:        #0d0d0c;
  --fg-dim:    #6b6860;
  --fg-mute:   #9a968c;
  --line:      #1a1a17;
  --line-soft: #b8b3a5;
  --accent:    #0000FF;
  --accent-2:  #0000FF;
  --hi:        #f0ec62;

  /* Type */
  --f-display: 'Bricolage Grotesque', 'Helvetica Neue', sans-serif;
  --f-serif:   'Instrument Serif', 'Times New Roman', serif;
  --f-body:    'Inter Tight', 'Helvetica Neue', sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --gutter:    24px;
  --line-w:    1px;
  --max-w:     1680px;
  --ease:      cubic-bezier(0.2, 0.9, 0.2, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
}

body.is-dark {
  --bg:        #0d0d0c;
  --bg-alt:    #141412;
  --bg-card:   #1a1a17;
  --fg:        #ebe7de;
  --fg-dim:    #8a8680;
  --fg-mute:   #5a5650;
  --line:      #ebe7de;
  --line-soft: #2a2a25;
  --accent:    #4d4dff;
  --accent-2:  #4d4dff;
  --hi:        #f0ec62;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.45;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  cursor: none;
}
body, body * { cursor: none !important; }
@media (max-width: 900px) {
  body, body * { cursor: auto !important; }
}

::selection { background: var(--fg); color: var(--bg); }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-soft); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--fg-dim); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }

/* ─────── GRAIN OVERLAY ─────── */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.25;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
body.is-dark .grain { mix-blend-mode: screen; opacity: 0.12; }

/* ─────── CUSTOM CURSOR ─────── */
.cursor {
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
  width: 34px; height: 34px;
  transition: width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              height 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cursor-dot {
  display: block;
  width: 100%; height: 100%;
  position: relative;
  background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCA2LjI0IDYuMjQiPgogIDxkZWZzPgogICAgPHN0eWxlPgogICAgICAuc3QwIHsKICAgICAgICBmaWxsOiAjMzk1M2E0OwogICAgICB9CiAgICA8L3N0eWxlPgogIDwvZGVmcz4KICA8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMy4xMi4zM0wuMzMsMy4xMmwyLjc5LDIuNzgsMi43OS0yLjc4TDMuMTIuMzNaTTMuMTIsMS4xN2wxLjk1LDEuOTUtMS45NSwxLjk1VjEuMTdaIi8+Cjwvc3ZnPg==");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: background-image 0s 0.12s,
              opacity 0.2s;
}
.cursor-dot::before { display: none; }
.cursor-label { display: none; }

/* Hover state: shrink + swap to Cursor02 (plain diamond) */
body.cursor-hover .cursor {
  width: 18px; height: 18px;
}
body.cursor-hover .cursor-dot {
  background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCA2LjI0IDYuMjQiPgogIDxkZWZzPgogICAgPHN0eWxlPgogICAgICAuc3QwIHsKICAgICAgICBmaWxsOiAjMzk1M2E0OwogICAgICB9CiAgICA8L3N0eWxlPgogIDwvZGVmcz4KICA8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMy4xMi4zM0wuMzMsMy4xMmwyLjc5LDIuNzgsMi43OS0yLjc4TDMuMTIuMzNaIi8+Cjwvc3ZnPg==");
  transition: background-image 0s, opacity 0.2s;
}

@media (max-width: 900px) { .cursor { display: none; } }

/* ─────── LOADER ─────── */
.loader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 998;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: var(--gutter);
  transition: transform 0.8s var(--ease-out), opacity 0.4s 0.4s;
}
.loader.is-done { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.loader-inner {
  display: flex; justify-content: space-between; align-items: flex-end;
  width: 100%;
}
.loader-count {
  font-family: var(--f-display);
  font-size: clamp(80px, 22vw, 320px);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 96;
}
.loader-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding-bottom: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: var(--line-w) solid var(--line);
  backdrop-filter: blur(8px);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand-mark {
  color: var(--accent);
  transition: transform 0.5s var(--ease);
  flex-shrink: 0;
}
.brand:hover .brand-mark { transform: rotate(180deg); }

.site-nav {
  display: flex; gap: 4px;
  justify-self: center;
  border: var(--line-w) solid var(--line);
  padding: 3px;
  background: var(--bg-alt);
}
.nav-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
  transition: color 0.15s, background 0.15s;
  position: relative;
}
.nav-item:hover { color: var(--fg); }
.nav-item.is-active {
  background: var(--fg);
  color: var(--bg);
}
.nav-n {
  font-size: 9px;
  opacity: 0.6;
  letter-spacing: 0.1em;
}

.header-right {
  display: flex; align-items: center; gap: 14px;
  justify-self: end;
}
.theme-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px;
  border: var(--line-w) solid var(--line);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
}
.theme-btn:hover { background: var(--fg); color: var(--bg); }
.theme-dot {
  width: 10px; height: 10px;
  border: var(--line-w) solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px var(--gutter) 80px;
  position: relative;
  border-bottom: var(--line-w) solid var(--line);
}

.hero-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(56px, 11vw, 180px);
  line-height: 0.88;
  letter-spacing: -0.045em;
  font-variation-settings: "opsz" 96;
  margin-bottom: 64px;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.hero-title .line:nth-child(2) { padding-left: 8vw; }
.hero-title .line:nth-child(3) { padding-left: 3vw; }
.hero-title .word {
  display: inline-block;
  margin-right: 0.24em;
  transform: translateY(100%);
  opacity: 0;
}
.hero-title .word.italic {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-right: 0.2em;
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-lead {
  max-width: 520px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-dim);
}
.hero-lead em {
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--fg);
  font-size: 1.05em;
  font-weight: 400;
}
.hero-arrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.arrow-glyph {
  display: inline-block;
  font-size: 16px;
  color: var(--fg);
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ═══════════════════════════════════════════════════════════════
   MARQUEE
   ═══════════════════════════════════════════════════════════════ */
.marquee {
  overflow: hidden;
  border-bottom: var(--line-w) solid var(--line);
  padding: 14px 0;
  background: var(--bg-alt);
}
.marquee-track {
  display: flex; align-items: center; gap: 24px;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.marquee-track .dot { color: var(--accent); font-size: 10px; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════════════
   FILTER SECTION (centered, simplified)
   ═══════════════════════════════════════════════════════════════ */
.filter-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px var(--gutter) 40px;
  border-bottom: var(--line-w) solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.search-wrap {
  display: flex; align-items: center;
  border: var(--line-w) solid var(--line);
  padding: 0 16px;
  background: var(--bg-card);
  transition: background 0.15s, border-color 0.15s;
  width: 100%;
  max-width: 520px;
}
.search-wrap:focus-within {
  background: var(--bg);
  border-color: var(--accent);
}
.search-glyph {
  font-size: 18px;
  color: var(--fg-dim);
  margin-right: 12px;
}
.search-wrap:focus-within .search-glyph { color: var(--accent); }
.search-input {
  flex: 1;
  padding: 14px 0;
  background: none;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: var(--f-body);
  font-weight: 500;
  text-align: center;
  color: var(--accent);
}
.search-input::placeholder { color: var(--fg-mute); }
.search-clear {
  font-size: 20px;
  color: var(--fg-dim);
  padding: 0 4px;
  opacity: 0;
  transition: opacity 0.15s;
}
.search-wrap.has-value .search-clear { opacity: 1; }
.search-clear:hover { color: var(--accent); }

/* Centered filter columns */
.filter-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
}

/* Technique = checkbox list, displayed in 4-column grid, centered */
.check-group {
  display: grid;
  grid-template-columns: repeat(4, auto);
  column-gap: 40px;
  row-gap: 6px;
  justify-content: center;
}
@media (max-width: 860px) { .check-group { grid-template-columns: repeat(3, auto); column-gap: 24px; } }
@media (max-width: 560px) { .check-group { grid-template-columns: repeat(2, auto); column-gap: 20px; } }

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 0;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--fg);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.12s;
  white-space: nowrap;
}
.check-row:hover { color: var(--accent); }
.check-row.is-on { color: var(--accent); }

.check-box {
  width: 14px; height: 14px;
  border: 1.3px solid currentColor;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  transition: background 0.12s, color 0.12s;
  color: currentColor;
  position: relative;
}
.check-row.is-on .check-box {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.check-row.is-on .check-box::after {
  content: '';
  position: absolute;
  left: 3px; top: 1px;
  width: 5px; height: 8px;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(45deg);
}
.check-box svg { display: none; }

/* Mood = chip row, centered, wrapping */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 860px;
}
.chip {
  padding: 7px 14px;
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  color: var(--fg);
  border: var(--line-w) solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s var(--ease);
  white-space: nowrap;
}
.chip:hover {
  background: var(--fg);
  color: var(--bg);
  transform: translateY(-1px);
}
.chip.is-on {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.filter-count {
  display: flex; align-items: baseline; gap: 4px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  margin-top: 8px;
}
.filter-count #filter-count { color: var(--accent); font-weight: 700; }
.filter-count .slash { color: var(--fg-mute); margin: 0 2px; }
.filter-count .filter-label {
  text-transform: uppercase;
  font-size: 10px;
  margin-left: 8px;
  letter-spacing: 0.12em;
}

/* ═══════════════════════════════════════════════════════════════
   INDEX GRID (simplified — GIF + tags only)
   ═══════════════════════════════════════════════════════════════ */
.index-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px var(--gutter) 120px;
}

.grid-container {
  columns: 4;
  column-gap: 12px;
  position: relative;
}
@media (max-width: 1280px) { .grid-container { columns: 3; } }
@media (max-width: 860px)  { .grid-container { columns: 2; } }
@media (max-width: 520px)  { .grid-container { columns: 1; } }

.grid-container .card {
  break-inside: avoid;
  margin-bottom: 12px;
  display: block;
}

/* ─────── CARD (just the GIF) ─────── */
.card {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
  border: var(--line-w) solid var(--line);
  transition: border-color 0.2s;
  cursor: pointer;
}
.card:hover { border-color: var(--accent); }

.card-media {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}
.card.p .card-media  { aspect-ratio: 3/4; }
.card.l .card-media  { aspect-ratio: 16/10; }
.card.sq .card-media { aspect-ratio: 1/1; }
.card.w .card-media  { aspect-ratio: 4/3; }

.card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
  color: transparent;
  font-size: 0;
}
.card:hover .card-img { transform: scale(1.04); }

/* ─────── EMPTY STATE ─────── */
.empty-state {
  display: none;
  padding: 80px 20px;
  text-align: center;
}
.empty-state.is-visible { display: block; }
.empty-glyph {
  font-family: var(--f-serif);
  font-size: 96px;
  color: var(--fg-mute);
  line-height: 1;
  margin-bottom: 20px;
}
.empty-title {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.empty-sub {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER — blue gradient flipped (blue at bottom)
   ═══════════════════════════════════════════════════════════════ */
.site-footer {
  position: relative;
  border-top: var(--line-w) solid var(--line);
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
  isolation: isolate;
}
.footer-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 340px;
  background:
    radial-gradient(ellipse 70% 100% at 50% 100%,
      rgba(0, 0, 255, 0.45) 0%,
      rgba(0, 0, 255, 0.25) 30%,
      rgba(0, 0, 255, 0.08) 60%,
      transparent 100%);
  z-index: 0;
  pointer-events: none;
}
.footer-content {
  position: relative;
  z-index: 1;
}
.footer-top {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px var(--gutter) 60px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
}
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; gap: 40px; } }

.footer-brand { color: var(--fg); }
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--fg);
}
.footer-logo svg { color: var(--accent); }
.footer-tag {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.2;
  color: var(--fg-dim);
  letter-spacing: -0.01em;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 640px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-head {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-soft);
}
.footer-col a {
  font-size: 14px;
  color: var(--fg);
  transition: color 0.15s, transform 0.15s;
  display: inline-block;
}
.footer-col a:hover { color: var(--accent); transform: translateX(4px); }

.footer-credit {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter) 20px;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--fg-dim);
  text-align: center;
}
.footer-credit a {
  color: var(--fg);
  border-bottom: 1px solid var(--accent);
  transition: color 0.15s;
}
.footer-credit a:hover { color: var(--accent); }

.footer-bottom {
  padding: 20px var(--gutter) 80px;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}
.footer-huge {
  font-family: var(--f-display);
  font-size: clamp(48px, 9vw, 120px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 96;
  margin-bottom: 20px;
  color: var(--accent);
  position: relative;
  z-index: 2;
  text-align: center;
}
.footer-huge span { display: block; }
.footer-legal { display: none; }

/* ═══════════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════════ */
.modal-wrap {
  position: fixed; inset: 0;
  z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.modal-wrap.is-open { display: flex; }

.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(13, 13, 12, 0.88);
  backdrop-filter: blur(8px);
}

.modal {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  max-height: 92vh;
  background: var(--bg);
  border: var(--line-w) solid var(--line);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  overflow: hidden;
}
@media (max-width: 900px) {
  .modal { grid-template-columns: 1fr; max-height: 94vh; overflow-y: auto; }
}

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 5;
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px 6px 12px;
  border: var(--line-w) solid var(--bg);
  background: rgba(13,13,12,0.6);
  color: #fff;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  transition: background 0.15s;
}
.modal-close:hover { background: var(--accent); }
.close-x { font-size: 16px; line-height: 1; }

.modal-media {
  background: #000;
  overflow: hidden;
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
}
.modal-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.modal-info {
  padding: 40px 36px;
  display: flex; flex-direction: column;
  gap: 24px;
  overflow-y: auto;
}
.modal-n {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
}
.modal-title {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
  padding-bottom: 20px;
  border-bottom: var(--line-w) dashed var(--line-soft);
}

.modal-meta {
  display: flex; flex-direction: column;
  gap: 10px;
}
.modal-meta-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: var(--line-w) solid var(--line-soft);
}
.mmr-k {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.mmr-v {
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
}
.mmr-tag {
  display: inline-block;
  padding: 5px 12px;
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  color: var(--fg);
  border: var(--line-w) solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s var(--ease);
  text-align: left;
}
.mmr-tag:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.mmr-tag.is-mood {
  color: var(--accent);
  border-color: var(--accent);
}
.mmr-tag.is-mood:hover {
  background: var(--accent);
  color: #fff;
}

.modal-link {
  display: inline-flex; align-items: center; justify-content: space-between;
  margin-top: auto;
  padding: 16px 20px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.15s;
  width: 100%;
}
.modal-link:hover { background: var(--accent); color: #fff; }
.link-arrow { font-size: 16px; transition: transform 0.2s; }
.modal-link:hover .link-arrow { transform: translate(3px, -3px); }

/* ═══════════════════════════════════════════════════════════════
   PAGE (Learn / Give) — shared
   ═══════════════════════════════════════════════════════════════ */
.page-hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px var(--gutter) 60px;
  border-bottom: var(--line-w) solid var(--line);
}
.page-meta {
  display: flex; gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: var(--line-w) dashed var(--line-soft);
}
.page-title {
  font-family: var(--f-display);
  font-size: clamp(56px, 12vw, 180px);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.045em;
  font-variation-settings: "opsz" 96;
  margin-bottom: 20px;
}
.page-title em {
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.page-lead {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.3;
  color: var(--fg-dim);
  max-width: 640px;
  letter-spacing: -0.01em;
}

.item-grid-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px var(--gutter) 120px;
}
.item-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: start;
  grid-auto-rows: min-content;
}
.item-grid .item-card { align-self: start; margin: 0; }
@media (max-width: 1100px) { .item-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .item-grid { grid-template-columns: 1fr; } }

.item-card {
  background: var(--bg-card);
  border: var(--line-w) solid var(--line);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.2s, transform 0.3s var(--ease);
}
.item-card:hover { border-color: var(--accent); transform: translateY(-4px); }

.item-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-alt);
  position: relative;
}
.item-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
  color: transparent;
  font-size: 0;
}
.item-card:hover .item-thumb img { transform: scale(1.04); }

.item-body {
  padding: 20px 20px 24px;
  border-top: var(--line-w) solid var(--line);
  display: flex; flex-direction: column;
  gap: 12px;
  flex: 1;
}
.item-type {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.item-title {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.item-desc {
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.5;
}
.item-tags {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-top: auto;
}
.item-tag {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  background: var(--bg-alt);
  color: var(--fg-dim);
  border: var(--line-w) solid var(--line-soft);
}
.item-footer {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: var(--line-w) dashed var(--line-soft);
}
.item-meta {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.item-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--fg);
  color: var(--bg);
  transition: background 0.15s;
}
.item-btn:hover { background: var(--accent); color: #fff; }
.item-btn.free { background: transparent; color: var(--fg); border: var(--line-w) solid var(--fg); }
.item-btn.free:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 720px) {
  .header-inner { grid-template-columns: 1fr auto; gap: 12px; }
  .site-nav { grid-column: 1 / -1; order: 3; justify-self: stretch; justify-content: space-between; }
  .nav-item { flex: 1; justify-content: center; }
  .hero { padding: 40px var(--gutter) 60px; }
  .hero-meta { gap: 20px; flex-wrap: wrap; }
  .hero-title .line:nth-child(2), .hero-title .line:nth-child(3) { padding-left: 0; }
  .index-header { display: none; }
  .modal-info { padding: 24px 20px; }
}
