/* ════════════════════════════════════════════════════════
   THE GARDEN — standalone experience
   organic-brutalist · paper / ink / lime
   ════════════════════════════════════════════════════════ */

:root {
  --paper: #f0eee6;
  --ink: #0a0a0a;
  --lime: #c8ff00;
  --ink-40: rgba(10, 10, 10, 0.4);
  --ink-15: rgba(10, 10, 10, 0.15);
  --serif: "Fraunces", Georgia, serif;
  --mono: "Spline Sans Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-optical-sizing: auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--lime); color: var(--ink); }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

/* ─── Spore canvas + grain ─────────────────────────────── */
#field-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  z-index: 60; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

/* ─── Loader ───────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink); color: var(--lime);
  display: flex; align-items: center; justify-content: center;
}
.loader__inner { width: min(320px, 70vw); }
.loader__seed { width: 56px; height: 56px; margin-bottom: 28px; }
.loader__seed path {
  stroke-dasharray: 60; stroke-dashoffset: 60;
  animation: draw 1.4s var(--ease-out) forwards;
}
.loader__seed .seed-leaf { animation-delay: 0.35s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.loader__row {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid rgba(200, 255, 0, 0.3); padding-top: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em;
}

/* ─── Cursor ───────────────────────────────────────────── */
.cursor { position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none; }
.cursor__dot {
  position: fixed; top: -100px; left: -100px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink); transform: translate(-50%, -50%);
}
.cursor__ring {
  position: fixed; top: -100px; left: -100px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--ink); transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
    background-color 0.3s, border-color 0.3s;
}
.cursor__label {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em;
  opacity: 0; transition: opacity 0.2s;
}
.cursor--active .cursor__ring {
  width: 72px; height: 72px;
  background: rgba(200, 255, 0, 0.35); /* see-through — text behind stays readable */
  border-color: var(--lime);
}
.cursor--active .cursor__label { opacity: 1; }
.cursor--active .cursor__dot { opacity: 0; }
@media (hover: none) { .cursor { display: none; } }

/* ─── Header ───────────────────────────────────────────── */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px clamp(20px, 4vw, 56px);
  mix-blend-mode: darken;
}
.site-head a {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.14em; font-weight: 600;
}
.site-head__brand { position: relative; }
.site-head__nav { display: flex; gap: clamp(16px, 3vw, 40px); }
.site-head a::after {
  content: ""; display: block; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.site-head a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ─── Hero ─────────────────────────────────────────────── */
main { position: relative; z-index: 1; }

.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(20px, 4vw, 56px);
  position: relative;
}
.hero__kicker { color: var(--ink-40); margin-bottom: 3vh; }
.hero__title {
  font-weight: 580; line-height: 0.92;
  font-size: clamp(64px, 14.5vw, 220px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero__line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__line--accent {
  position: relative; display: inline-block;
  padding-right: 0.14em; /* italic N overhang would clip on overflow:hidden */
}
.split { display: inline-block; }
.split .ch { display: inline-block; will-change: transform; }
.split--italic { font-style: italic; font-weight: 480; }
.hero__swipe {
  position: absolute; inset: 0.04em 0 -0.02em -0.08em;
  background: var(--lime); z-index: -1;
  transform: scaleX(0); transform-origin: left;
}
.hero__foot {
  margin-top: 5vh;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; flex-wrap: wrap;
}
.hero__sub {
  font-size: clamp(16px, 1.6vw, 21px); line-height: 1.5;
  font-weight: 420; max-width: 46ch;
}
.hero__cta {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid var(--ink); border-radius: 999px;
  padding: 16px 28px; font-weight: 600;
  transition: background-color 0.35s var(--ease-out), color 0.35s;
}
.hero__cta:hover { background: var(--ink); color: var(--lime); }
.hero__cta-arrow { display: inline-block; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

.hero__badge {
  position: absolute; right: clamp(20px, 5vw, 70px); top: 16vh;
  width: clamp(90px, 10vw, 130px); height: clamp(90px, 10vw, 130px);
}
.hero__badge svg:first-child { width: 100%; height: 100%; animation: spin 18s linear infinite; }
.hero__badge text {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.22em;
  fill: var(--ink);
}
.hero__badge-glyph {
  position: absolute; inset: 0; margin: auto;
  width: 34%; height: 34%;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 860px) { .hero__badge { display: none; } }

/* ─── Marquee ──────────────────────────────────────────── */
.marquee {
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  overflow: hidden; padding: 14px 0; background: var(--paper);
  position: relative; z-index: 2;
}
.marquee__track {
  display: flex; gap: 48px; width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em;
  text-transform: uppercase; white-space: nowrap;
}
.marquee__track span { display: flex; align-items: center; gap: 48px; }
.marquee__track i { font-style: normal; color: var(--lime); -webkit-text-stroke: 1px var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── Manifesto ────────────────────────────────────────── */
.manifesto { padding: clamp(80px, 16vh, 180px) clamp(20px, 4vw, 56px); }
.manifesto__text {
  font-size: clamp(28px, 4.6vw, 64px);
  line-height: 1.18; font-weight: 500; letter-spacing: -0.01em;
  max-width: 22ch; text-transform: uppercase;
}
.manifesto__text .w { display: inline-block; opacity: 0.1; }
.manifesto__text .w--hl { font-style: italic; background: var(--lime); padding: 0 0.12em; }

/* ─── The Field ────────────────────────────────────────── */
.field { padding: 0 clamp(20px, 4vw, 56px) clamp(80px, 12vh, 160px); }
.field__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 24px;
  border-bottom: 2px solid var(--ink); padding-bottom: 24px;
}
.field__title {
  font-size: clamp(40px, 7vw, 96px); font-weight: 600;
  letter-spacing: -0.015em; line-height: 1; text-transform: uppercase;
  display: flex; align-items: baseline; gap: 18px;
}
.field__count { color: var(--ink-40); font-weight: 400; }
.field__legend { display: flex; gap: 18px; color: var(--ink); flex-wrap: wrap; }
.field__legend span { display: inline-flex; align-items: center; gap: 10px; }
.field__legend em {
  font-style: normal;
  background: var(--lime); padding: 8px 14px;
}
.field__legend svg { width: 32px; height: 32px; stroke: var(--ink); flex-shrink: 0; }

.field__filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 22px 0 36px;
}
.filter {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; cursor: pointer;
  border: 1px solid var(--ink-40); border-radius: 999px;
  background: transparent; color: var(--ink);
  padding: 8px 16px;
  transition: border-color 0.25s, background-color 0.25s, transform 0.25s var(--ease-out);
}
.filter:hover { border-color: var(--ink); transform: translateY(-2px); }
.filter--on { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.filter--sep { border: none; padding: 8px 4px; color: var(--ink-40); cursor: default; }

/* grid */
.field__grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.plot {
  position: relative; overflow: hidden;
  border: 1px solid var(--ink);
  padding: clamp(18px, 2vw, 30px);
  min-height: 270px;
  display: flex; flex-direction: column; justify-content: space-between;
  cursor: pointer; background: var(--paper);
  transition: transform 0.5s var(--ease-out);
}
.plot:hover { transform: translateY(-4px); }
.plot::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--lime);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.55s var(--ease-out);
}
.plot:hover::after { transform: scaleY(1); }
.plot > * { position: relative; z-index: 1; }
.plot--hidden { display: none; }

.plot__top { display: flex; justify-content: space-between; align-items: flex-start; }
.plot__idx { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--ink-40); }
.plot:hover .plot__idx { color: var(--ink); }
.plot__glyph { width: 26px; height: 26px; stroke: var(--ink); }
.plot__glyph path, .plot__glyph circle { stroke-dasharray: 80; stroke-dashoffset: 0; }
.plot:hover .plot__glyph { animation: regrow 0.9s var(--ease-out); }
@keyframes regrow {
  from { stroke-dashoffset: 80; opacity: 0.4; }
  to { stroke-dashoffset: 0; opacity: 1; }
}

.plot__mid { padding: 18px 0; }
.plot__title {
  font-size: clamp(26px, 2.6vw, 42px); font-weight: 560;
  line-height: 1.02; letter-spacing: -0.015em; text-transform: uppercase;
  transition: transform 0.45s var(--ease-out);
}
.plot:hover .plot__title { transform: translateX(8px); }
.plot__desc {
  margin-top: 12px; font-size: 15.5px; line-height: 1.45;
  font-weight: 420; color: rgba(10, 10, 10, 0.72); max-width: 42ch;
}
.plot:hover .plot__desc { color: var(--ink); }

.plot__bot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
}
.plot__topics { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.13em; text-transform: uppercase; }
.plot__year {
  font-size: clamp(36px, 4vw, 60px); font-weight: 600; font-style: italic;
  line-height: 0.8; color: transparent;
  -webkit-text-stroke: 1px var(--ink-40);
}
.plot:hover .plot__year { -webkit-text-stroke: 1px var(--ink); }
.plot__open {
  position: absolute; right: clamp(18px, 2vw, 30px); bottom: clamp(18px, 2vw, 30px);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s, transform 0.4s var(--ease-out);
}

/* ─── Cover cards: noir photo by default, revert to the paper look on hover ─ */
.plot--cover::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.5)),
    var(--cover) center / cover no-repeat;
  filter: grayscale(1) contrast(1.12);
  transition: opacity 0.55s var(--ease-out);
}
.plot--cover:hover::before { opacity: 0; }
/* text white over the noir photo */
.plot--cover .plot__idx { color: rgba(255, 255, 255, 0.85); }
.plot--cover .plot__title,
.plot--cover .plot__desc,
.plot--cover .plot__topics { color: #fff; }
.plot--cover .plot__glyph { stroke: #fff; }
.plot--cover .plot__year { -webkit-text-stroke-color: rgba(255, 255, 255, 0.75); }
/* hover → back to exactly the normal card (ink text, lime sweep) */
.plot--cover:hover .plot__idx,
.plot--cover:hover .plot__title,
.plot--cover:hover .plot__desc,
.plot--cover:hover .plot__topics { color: var(--ink); }
.plot--cover:hover .plot__glyph { stroke: var(--ink); }
.plot--cover:hover .plot__year { -webkit-text-stroke-color: var(--ink); }

/* spans (desktop) */
@media (min-width: 861px) {
  .plot[data-span="7"] { grid-column: span 7; }
  .plot[data-span="5"] { grid-column: span 5; }
  .plot[data-span="4"] { grid-column: span 4; }
  .plot[data-span="8"] { grid-column: span 8; }
  .plot[data-span="6"] { grid-column: span 6; }
  .plot--tall { min-height: 380px; }
}
@media (max-width: 860px) {
  .field__grid .plot { grid-column: 1 / -1; min-height: 220px; }
}

/* floating hover image */
.peek {
  position: fixed; z-index: 40; pointer-events: none;
  width: clamp(200px, 22vw, 320px); aspect-ratio: 4 / 3;
  overflow: hidden;
  opacity: 0; transform: translate(-50%, -55%) scale(0.85) rotate(-3deg);
  transition: opacity 0.3s, transform 0.45s var(--ease-out);
}
.peek--on { opacity: 1; transform: translate(-50%, -55%) scale(1) rotate(-3deg); }
.peek img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ─── Shelves (what watered me) ─────────────────────────── */
.shelves {
  padding: clamp(40px, 7vh, 90px) clamp(20px, 4vw, 56px) clamp(60px, 10vh, 120px);
  display: flex; flex-direction: column; gap: clamp(36px, 5vh, 60px);
  border-top: 2px solid var(--ink);
}
.shelves__head { margin-bottom: clamp(4px, 1vh, 12px); }
.shelves__title {
  font-size: clamp(40px, 7vw, 92px); font-weight: 600;
  letter-spacing: -0.02em; line-height: 0.98; text-transform: uppercase;
}
.shelves__intro {
  margin-top: 18px; max-width: 46ch;
  font-size: clamp(16px, 1.5vw, 20px); line-height: 1.5; font-weight: 420;
  color: rgba(10, 10, 10, 0.7);
}
.shelf__title {
  font-size: clamp(20px, 2.6vw, 34px); font-weight: 580;
  letter-spacing: -0.01em; line-height: 1; text-transform: uppercase;
  border-bottom: 1px solid var(--ink); padding-bottom: 14px; margin-bottom: 22px;
}
.shelf__title em { font-style: italic; font-weight: 400; color: var(--ink-40); }
.shelf__track {
  display: flex; gap: clamp(14px, 1.6vw, 22px);
  overflow-x: auto; padding-bottom: 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;       /* momentum scroll on iOS */
  scroll-snap-type: x proximity;
  touch-action: pan-x pan-y;               /* let the page scroll vertically too */
  overscroll-behavior-x: contain;
}
.shelf__track > .mcard { scroll-snap-align: start; }
.shelf__track::-webkit-scrollbar { display: none; }
@media (hover: hover) { .shelf__track { cursor: grab; } }
.shelf__track.dragging { cursor: grabbing; }

/* scroll progress line */
.shelf__rail {
  position: relative; height: 3px; margin-top: 14px;
  background: var(--ink-15); border-radius: 999px;
  transition: opacity 0.3s;
}
.shelf__thumb {
  position: absolute; top: 0; height: 100%; left: 0; width: 30%;
  background: var(--ink); border-radius: 999px;
}

.mcard { flex: 0 0 auto; width: clamp(129px, 13.76vw, 172px); }
.mcard--album .mcard__poster { aspect-ratio: 1 / 1; }  /* album covers are square */
.mcard__poster {
  aspect-ratio: 2 / 3; width: 100%;
  border: 1px solid var(--ink); border-radius: 12px;
  background: rgba(10, 10, 10, 0.06) center / cover no-repeat;
  margin-bottom: 14px; overflow: hidden;
  transition: transform 0.45s var(--ease-out);
}
@media (hover: hover) {
  .mcard:hover .mcard__poster { transform: translateY(-6px); }
}
.mcard__poster img, .mcard__poster *[draggable] { pointer-events: none; }
.mcard__poster--empty {
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(10,10,10,0.04) 0 10px, transparent 10px 20px),
    var(--paper);
}
.mcard__poster--empty svg { width: 38px; height: 38px; stroke: var(--ink-40); }
.mcard__title {
  font-size: clamp(18px, 1.8vw, 24px); font-weight: 560;
  line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 4px;
}
.mcard__by {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-40);
}

/* ─── Footer ───────────────────────────────────────────── */
.foot { border-top: 2px solid var(--ink); position: relative; z-index: 2; background: var(--paper); }
.foot__cols {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 18px;
  padding: clamp(28px, 5vh, 48px) clamp(20px, 4vw, 56px);
}
.foot__time { color: var(--ink-40); }
.foot__links { display: flex; gap: clamp(16px, 3vw, 36px); }
.foot__links a { font-weight: 600; }
.foot__links a:hover { background: var(--lime); }

/* ─── Note overlay ─────────────────────────────────────── */
.note {
  position: fixed; inset: 0; z-index: 70;
  background: var(--paper);
  clip-path: inset(100% 0 0 0);
  visibility: hidden;
  display: flex; flex-direction: column;
}
.note--open { visibility: visible; }
.note__bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--ink-15);
  background: var(--paper); z-index: 2;
}
.note__bar button {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  background: none; border: none; cursor: pointer; color: var(--ink);
  font-weight: 600; padding: 6px 0;
}
.note__bar button:hover { background: var(--lime); }
.note__scroll { overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.note__article {
  max-width: 880px; margin: 0 auto;
  padding: clamp(40px, 8vh, 90px) clamp(20px, 4vw, 56px) 40px;
}

.note__meta {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 30px;
}
.note__meta svg { width: 20px; height: 20px; stroke: var(--ink); }
.note__meta .dim { color: var(--ink-40); }
.note__title {
  font-size: clamp(48px, 9vw, 120px); font-weight: 600;
  line-height: 0.95; letter-spacing: -0.02em; text-transform: uppercase;
  margin-bottom: 28px;
}
.note__title em { font-style: italic; font-weight: 480; background: var(--lime); padding: 0 0.1em; }
.note__lead {
  font-size: clamp(22px, 2.6vw, 32px); line-height: 1.3;
  font-weight: 500; margin-bottom: 36px; max-width: 30ch;
}
.note__visit {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  font-weight: 600; text-transform: uppercase;
  border: 1px solid var(--ink); border-radius: 999px;
  padding: 14px 26px; margin-bottom: 48px;
  transition: background-color 0.35s var(--ease-out), color 0.35s;
}
.note__visit:hover { background: var(--ink); color: var(--lime); }

.note__body { font-size: 19px; line-height: 1.65; font-weight: 420; }
.note__body p { margin-bottom: 1.4em; max-width: 64ch; }
.note__body h2 {
  font-size: clamp(24px, 3vw, 34px); font-weight: 580;
  text-transform: uppercase; letter-spacing: -0.01em;
  margin: 1.8em 0 0.8em;
  display: flex; align-items: center; gap: 14px;
}
.note__body h2::before { content: ""; width: 34px; height: 2px; background: var(--lime); outline: 1px solid var(--ink); }
.note__body ul { margin: 0 0 1.4em 1.2em; max-width: 60ch; }
.note__body li { margin-bottom: 0.5em; }
.note__body li::marker { content: "→ "; font-size: 0.85em; }
.note__body a.wl {
  background: var(--lime); padding: 0 0.18em; cursor: pointer;
  border-bottom: 1.5px dashed var(--ink);
  transition: background-color 0.2s;
}
.note__body a.wl:hover { background: var(--ink); color: var(--lime); }
.note__body a.ext { border-bottom: 1.5px solid var(--ink); }
.note__body a.ext:hover { background: var(--lime); }
.note__body figure { margin: 2.2em 0; }
.note__body figure img { width: 100%; height: auto; display: block; border: 1px solid var(--ink); }
.note__body figure img[src*="sotkis"] { border-radius: 0 0 32px 32px; }

/* TikTok embeds */
.tiktoks {
  display: flex; flex-wrap: wrap; gap: 18px;
  margin: 1.6em 0; justify-content: flex-start;
}
.tiktok-player {
  flex: 0 0 auto;
  width: 325px; max-width: 100%;
  aspect-ratio: 9 / 16;
  border: 0; border-radius: 10px;
  background: #000;
}

/* gallery */
.gal { margin: 2.4em calc(-1 * clamp(20px, 4vw, 56px)) 1em; }
.gal__head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0 clamp(20px, 4vw, 56px) 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-40);
}
.gal__track {
  display: flex; gap: 14px; overflow-x: auto;
  padding: 4px clamp(20px, 4vw, 56px) 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
}
.gal__track::-webkit-scrollbar { display: none; }
@media (hover: hover) { .gal__track { cursor: grab; user-select: none; -webkit-user-select: none; } }
.gal__track.dragging { cursor: grabbing; }
/* each photo shown whole, as a smaller thumbnail; tap to enlarge */
.gal__item {
  flex: 0 0 auto;
  height: clamp(180px, 30vh, 280px);
  position: relative; cursor: zoom-in;
}
.gal__item img {
  height: 100%; width: auto; display: block;
  border: 1px solid var(--ink);
  pointer-events: none;
}
.gal__item span {
  position: absolute; left: 10px; bottom: 10px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  background: var(--paper); padding: 3px 8px; border: 1px solid var(--ink);
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(10, 10, 10, 0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease-out);
  cursor: zoom-out;
}
.lightbox--open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: 90vw; max-height: 88vh;
  object-fit: contain; border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lightbox__close {
  position: fixed; top: 20px; right: clamp(16px, 4vw, 40px);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  color: #fff; background: none; border: none; cursor: pointer; font-weight: 600;
}
.lightbox__close:hover { color: var(--lime); }
.lightbox__nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3); cursor: pointer;
  font-size: 26px; line-height: 1; display: grid; place-items: center;
  transition: background-color 0.2s;
}
.lightbox__nav:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.lightbox__nav--prev { left: clamp(10px, 3vw, 32px); }
.lightbox__nav--next { right: clamp(10px, 3vw, 32px); }
@media (max-width: 600px) { .lightbox__nav { width: 42px; height: 42px; font-size: 22px; } }

/* backlinks */
.note__backs { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--ink-15); }
.note__backs-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-40); margin-bottom: 18px;
}
.note__backs a {
  display: flex; align-items: baseline; gap: 14px;
  padding: 12px 0; cursor: pointer;
  border-bottom: 1px solid var(--ink-15);
}
.note__backs a strong {
  font-size: clamp(20px, 2.4vw, 28px); font-weight: 580; text-transform: uppercase;
  background: var(--lime); padding: 0 0.15em;
  transition: background-color 0.2s;
}
.note__backs a:hover strong { background: var(--ink); color: var(--lime); }
.note__backs a span { color: var(--ink-40); font-size: 15px; }

/* pager */
.note__pager {
  display: flex; border-top: 2px solid var(--ink); margin-top: 40px;
}
.note__pager button {
  flex: 1; background: none; border: none; cursor: pointer;
  padding: clamp(24px, 4vh, 44px) clamp(20px, 4vw, 56px);
  font-family: var(--serif); color: var(--ink); text-align: left;
  display: flex; flex-direction: column; gap: 8px;
  transition: background-color 0.35s var(--ease-out);
}
.note__pager button:last-child { text-align: right; align-items: flex-end; border-left: 1px solid var(--ink-15); }
.note__pager button:hover { background: var(--lime); }
.note__pager .mono { color: var(--ink-40); font-size: 10px; }
.note__pager strong {
  font-size: clamp(20px, 3vw, 34px); font-weight: 580;
  text-transform: uppercase; letter-spacing: -0.01em;
}

/* ─── Cover notes: noir photo backdrop + white text (matches the card) ─── */
.note--cover { background: #0a0a0a; }
.note--cover::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.66)),
    var(--cover) center / cover no-repeat;
  filter: grayscale(1) contrast(1.08);
}
.note--cover .note__bar,
.note--cover .note__scroll { position: relative; z-index: 1; }
.note--cover .note__bar {
  background: transparent; border-bottom-color: rgba(255, 255, 255, 0.18);
}
/* text → white */
.note--cover .note__bar button,
.note--cover .note__title,
.note--cover .note__lead,
.note--cover .note__meta,
.note--cover .note__body,
.note--cover .note__pager strong { color: #fff; }
.note--cover .note__meta svg { stroke: #fff; }
.note--cover .note__meta .dim,
.note--cover .gal__head,
.note--cover .note__backs-label,
.note--cover .note__backs a span,
.note--cover .note__pager .mono { color: rgba(255, 255, 255, 0.6); }
/* lime accents keep dark text for contrast */
.note--cover .note__title em,
.note--cover .note__body a.wl,
.note--cover .note__backs a strong { color: var(--ink); }
/* on hover the lime fill flips to ink, so the text must go lime (green) —
   otherwise the cover override above keeps it ink: black-on-black */
.note--cover .note__body a.wl:hover { color: var(--lime); }
.note--cover .note__backs a:hover strong { color: var(--lime); }
/* borders → translucent white */
.note--cover .note__backs,
.note--cover .note__backs a,
.note--cover .note__body figure img,
.note--cover .gal__item img { border-color: rgba(255, 255, 255, 0.22); }
.note--cover .note__pager { border-top-color: rgba(255, 255, 255, 0.4); }
.note--cover .note__pager button:last-child { border-left-color: rgba(255, 255, 255, 0.18); }
.note--cover .note__body a.ext { border-bottom-color: rgba(255, 255, 255, 0.7); }
/* a visit button (external link) reads as white on the dark backdrop */
.note--cover .note__visit { border-color: #fff; color: #fff; }
.note--cover .note__visit:hover { background: #fff; color: var(--ink); }
/* hover stays lime → dark text on it */
.note--cover .note__bar button:hover,
.note--cover .note__body a.ext:hover,
.note--cover .note__pager button:hover,
.note--cover .note__pager button:hover strong,
.note--cover .note__pager button:hover .mono { color: var(--ink); }

/* reveal helpers */
[data-reveal] { opacity: 0; transform: translateY(24px); }
.no-motion [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .grain, .hero__badge svg:first-child, .hero__cta-arrow,
  .marquee__track { animation: none !important; }
  .plot:hover .plot__glyph { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
