/* ==========================================================================
   nami nami — impact site
   Muted editorial palette taken from the staff sheet; the art carries the colour.
   ========================================================================== */

:root {
  --paper: #f2eee5;
  --paper-2: #ebe6db;
  --ink: #1e1d1a;
  --ink-2: #4a4740;
  --ink-3: #8a857a;
  --line: #cfc8b8;
  --gold: #977a45;
  --sea: #262b2a;        /* impact section */
  --sea-ink: #e9e5dc;
  --sea-ink-2: #a9aaa3;
  --sea-line: #3e4442;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --jp: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-slow: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(17px, 1.05vw + 10px, 19px);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
::selection { background: var(--ink); color: var(--paper); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: clamp(96px, 14vw, 200px) 0; }
.jp { font-family: var(--jp); letter-spacing: .3em; }

/* film grain: barely there, just enough to take the digital edge off */
.grain {
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 100;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- type primitives ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-style: italic; font-size: 15px; letter-spacing: .02em;
  color: var(--gold);
  margin-bottom: clamp(28px, 4vw, 48px);
}
.eyebrow--light { color: #b89c66; }
.rule { display: inline-block; width: 44px; height: 1px; background: currentColor; }

.display {
  font-weight: 300; font-style: italic;
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: 1.02; letter-spacing: -.02em;
}
.display--light { color: var(--sea-ink); }

.lede {
  font-weight: 300;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.18; letter-spacing: -.012em;
  max-width: 22ch;
}
.lede em { font-style: italic; color: var(--ink); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px var(--gutter);
  transition: background .6s var(--ease), padding .6s var(--ease), transform .6s var(--ease), border-color .6s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-color: color-mix(in srgb, var(--line) 60%, transparent);
  padding-top: 14px; padding-bottom: 14px;
}
.nav.is-hidden { transform: translateY(-100%); }
.nav.is-dark { color: var(--sea-ink); }
.nav.is-dark.is-scrolled { background: color-mix(in srgb, var(--sea) 82%, transparent); border-color: var(--sea-line); }
.nav__mark { font-size: 19px; letter-spacing: .32em; font-weight: 400; }
.nav__links { display: flex; gap: clamp(18px, 3vw, 40px); font-size: 15px; }
.nav__links a { position: relative; opacity: .75; transition: opacity .3s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.stamp {
  font-family: var(--jp); font-size: 13px; line-height: 1.15; letter-spacing: .08em;
  border: 1px solid currentColor; border-radius: 7px;
  padding: 5px 6px 4px; text-align: center;
}

@media (max-width: 720px) {
  .nav__links { display: none; }
}

/* ---------- hero ---------- */
/* The hero is exactly one window tall; the photo takes whatever height is left
   after the title, so the cans and the scroll cue are always on screen. */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 560px; max-height: 1200px;
  display: flex; flex-direction: column;
  padding: clamp(88px, 13vh, 150px) 0 clamp(96px, 13vh, 130px);
  overflow: hidden;
}
.hero__waves, .sea__waves {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 1;
  text-align: center; padding: 0 var(--gutter);
}
.hero .eyebrow { justify-content: center; margin-bottom: 20px; }
.hero__title {
  font-weight: 300;
  font-size: clamp(56px, 13vw, 210px);
  line-height: .95;
  letter-spacing: .14em;
  margin-right: -.14em; /* optically recentre tracked type */
}
.hero__gloss {
  display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap;
  gap: 8px 22px; margin-top: 22px;
  color: var(--ink-3); font-size: clamp(15px, 1.3vw, 18px);
}
.hero__gloss .jp { color: var(--ink-2); }

.hero__figure {
  position: relative; z-index: 1;
  flex: 1 1 0; min-height: 0;
  display: flex; justify-content: center;
  margin-top: clamp(24px, 5vh, 64px);
  padding: 0 var(--gutter);
}
.hero__figure img {
  height: 100%; width: auto;
  max-width: min(1100px, 100%);
  object-fit: cover;
  border-radius: 2px;
}

.hero__scroll {
  position: absolute; z-index: 2; left: 50%; bottom: clamp(12px, 2.5vh, 24px); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--ink-3);
}
.hero__scroll i { width: 1px; height: clamp(24px, 4vh, 44px); background: var(--line); position: relative; overflow: hidden; }
.hero__scroll i::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
  background: var(--ink-2); animation: drip 2.4s var(--ease) infinite;
}
@keyframes drip { to { top: 100%; } }
@media (max-height: 620px) { .hero__scroll { display: none; } }

/* ---------- story ---------- */
.story__layout {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 8vw, 128px);
  align-items: start;
}
.story__can {
  position: sticky; top: 96px;
  margin: 0;
}
.story__can img { width: 100%; border-radius: 2px; }
.story__can figcaption {
  margin-top: 14px; font-size: 13px; letter-spacing: .08em; color: var(--ink-3);
}
.story__body { display: grid; gap: clamp(40px, 5vw, 64px); }
.story__text p { color: var(--ink-2); max-width: 42ch; }
.story__text p + p { margin-top: 1.1em; }

.specs { border-top: 1px solid var(--line); }
.specs > div { padding: 16px 0 18px; border-bottom: 1px solid var(--line); }
.specs dt { font-size: 13px; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 4px; }
.specs dd { margin: 0; font-weight: 400; }
.specs__pair { display: grid; grid-template-columns: 1fr 1fr; }

@media (max-width: 860px) {
  .story__layout { grid-template-columns: 1fr; }
  .story__can { position: static; width: min(100%, 420px); }
}

/* ---------- artists ---------- */
.artists { background: var(--paper-2); }
.artists__head { margin-bottom: clamp(72px, 10vw, 140px); }
.artists__intro { color: var(--ink-2); margin-top: 28px; max-width: 40ch; }
.jp--lg { font-size: clamp(16px, 1.4vw, 20px); color: var(--ink-3); margin-top: 22px; }

.artist {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 8vw, 128px);
  align-items: center;
  padding: clamp(40px, 6vw, 80px) 0;
}
.artist + .artist { border-top: 1px solid var(--line); }
.artist--flip .artist__can { order: 2; }
.artist__can {
  overflow: hidden; border-radius: 2px;
  aspect-ratio: 1 / 2;
  max-height: 82vh;
  justify-self: center;
  width: min(100%, 360px);
}
.artist__can img { width: 100%; height: 100%; object-fit: cover; }
.artist__n { display: block; font-style: italic; color: var(--gold); font-size: 15px; margin-bottom: 18px; }
.artist__name {
  font-weight: 300; font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.05; letter-spacing: -.015em;
}
.artist__theme {
  font-style: italic; color: var(--ink-2);
  font-size: clamp(19px, 1.6vw, 23px); line-height: 1.4;
  margin: 18px 0 28px; max-width: 30ch;
}
.artist__bio { color: var(--ink-2); max-width: 52ch; }

@media (max-width: 860px) {
  .artist { grid-template-columns: 1fr; }
  .artist--flip .artist__can { order: 0; }
  .artist__can { width: min(70%, 300px); }
}

/* ---------- impact numbers ---------- */
.impact__intro {
  color: var(--ink-2); max-width: 50ch;
  font-size: clamp(19px, 1.5vw, 22px); line-height: 1.55;
  margin-top: clamp(28px, 4vw, 48px);
}
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(64px, 9vw, 120px);
  border-top: 1px solid var(--line);
}
.stat { padding: 32px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__value {
  display: block; font-weight: 300;
  font-size: clamp(56px, 7vw, 112px); line-height: 1; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums lining-nums;
}
.stat__value small { font-size: .38em; letter-spacing: 0; color: var(--ink-3); }
.stat__label { display: block; margin-top: 16px; font-size: 14px; letter-spacing: .06em; color: var(--ink-3); }
.stats__note { margin-top: 32px; font-size: 14px; font-style: italic; color: var(--ink-3); max-width: 60ch; }

@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- the coast (dark) ---------- */
.sea { background: var(--sea); color: var(--sea-ink); overflow: hidden; }
.sea .wrap { position: relative; z-index: 1; }
.coast {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 112px); align-items: center;
}
.coast__figure { margin: 0; }
.coast__figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.coast__figure figcaption { margin-top: 14px; font-size: 13px; letter-spacing: .08em; color: var(--sea-ink-2); }
.coast__jp { color: var(--sea-ink-2); margin-top: 18px; font-size: clamp(15px, 1.2vw, 18px); }
.coast__text { margin-top: clamp(32px, 4vw, 48px); }
.coast__text p { color: var(--sea-ink-2); max-width: 46ch; }
.coast__text p + p { margin-top: 1.1em; }
.coast__text em { color: var(--sea-ink); }

.facts { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--sea-line); }
.facts > div {
  display: grid; grid-template-columns: minmax(110px, 2fr) 5fr; gap: 24px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--sea-line);
}
.facts dt { font-size: clamp(24px, 2.2vw, 32px); font-weight: 300; letter-spacing: -.01em; color: var(--sea-ink); }
.facts dd { margin: 0; color: var(--sea-ink-2); font-size: .95em; }

@media (max-width: 860px) {
  .coast { grid-template-columns: 1fr; }
}

/* ---------- full-bleed photo band ---------- */
/* sits flush under the dark coast section; the image drifts inside a fixed frame */
.band { margin: 0; overflow: hidden; }
.band__frame { height: clamp(320px, 70vh, 760px); overflow: hidden; }
.js .band__frame.reveal-img { transform: none; } /* fade only, so the seam never opens */
.band__frame img { position: relative; top: -7.5%; width: 100%; height: 115%; object-fit: cover; }
.band__caption { display: block; margin-top: 14px; font-size: 13px; letter-spacing: .08em; color: var(--ink-3); }

/* ---------- evidence ---------- */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 48px);
  margin-top: clamp(56px, 8vw, 104px);
}
.steps li { border-top: 1px solid var(--line); padding-top: 22px; position: relative; }
.steps li::before {
  content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 1.6s var(--ease-slow) calc(var(--d, 0s) + .3s);
}
.steps li.is-in::before { transform: scaleX(1); }
.steps__n { font-size: 13px; color: var(--gold); letter-spacing: .1em; }
.steps h3 { font-weight: 400; font-size: 21px; margin: 12px 0 8px; }
.steps p { color: var(--ink-2); font-size: .92em; }

.qr {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px);
  margin-top: clamp(80px, 10vw, 140px);
  padding: clamp(32px, 4vw, 56px); background: var(--paper-2); border-radius: 2px;
}
.qr__title { font-weight: 300; font-style: italic; font-size: clamp(28px, 2.6vw, 38px); }
.qr__note { margin-top: 12px; color: var(--ink-3); font-size: .92em; }
.qr__note em { color: var(--ink-2); }
.qr__text { color: var(--ink-2); max-width: 52ch; }

.partners {
  display: flex; flex-wrap: wrap; gap: 14px 40px;
  margin-top: clamp(64px, 8vw, 104px);
  padding-top: 28px; border-top: 1px solid var(--line);
  font-size: 15px; letter-spacing: .04em; color: var(--ink-3);
}

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .qr { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- venues ---------- */
.venues__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.venue {
  aspect-ratio: 3 / 2;
  display: grid; place-items: center;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 12%;
}
.venue img {
  max-height: 64px; width: auto; object-fit: contain;
  filter: grayscale(1) contrast(.9); opacity: .7;
  transition: opacity .5s var(--ease), filter .5s var(--ease);
}
.venue:hover img { opacity: 1; filter: grayscale(0); }
.venue--empty span { font-style: italic; color: var(--line); font-size: 15px; }

@media (max-width: 720px) { .venues__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(72px, 10vw, 120px) 0 40px; }
.footer__inner { display: grid; gap: 10px; }
.footer__mark { font-size: clamp(44px, 9vw, 140px); letter-spacing: .14em; font-weight: 300; line-height: 1; }
.footer__jp { color: var(--ink-3); }
.footer__meta {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: clamp(48px, 8vw, 96px); padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink-3); letter-spacing: .04em;
}
.footer__meta a:hover { color: var(--ink); }

/* ==========================================================================
   Motion
   Content is visible by default; `.js` on <html> opts into the reveal states,
   so nothing is hidden if the script fails.
   ========================================================================== */
.js .reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 1.2s var(--ease-slow) var(--d, 0s), transform 1.4s var(--ease-slow) var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

.js .reveal-img {
  opacity: 0; transform: translateY(14px);
  transition: opacity .9s var(--ease) var(--d, 0s), transform 1.1s var(--ease-slow) var(--d, 0s);
}
.js .reveal-img.is-in { opacity: 1; transform: none; }

/* per-character rise for headlines */
.split .ch { display: inline-block; white-space: pre; }
.js .split .ch {
  opacity: 0; transform: translateY(.45em); filter: blur(6px);
  transition: opacity 1.1s var(--ease-slow), transform 1.3s var(--ease-slow), filter 1.1s var(--ease-slow);
  transition-delay: calc(var(--i) * 32ms + var(--d, 0s));
}
.js .split.is-in .ch { opacity: 1; transform: none; filter: none; }
.split .word { display: inline-block; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  .hero__scroll i::after { animation: none; }
  .js .reveal, .js .reveal-img, .js .split .ch,
  .hero__figure img, .artist__can img {
    opacity: 1 !important; transform: none !important; filter: none !important;
    clip-path: none !important; transition: none !important;
  }
}

/* liquid hero title (assets/liquid-title.js) */
.hero__liquid { position: absolute; pointer-events: none; }
.hero__title.is-liquid .ch { color: transparent; }

/* documentary photos are toned down slightly to sit with the muted palette */
.coast__figure img, .band__frame img { filter: saturate(.78) contrast(.97); }
.inline-link { color: var(--ink); border-bottom: 1px solid var(--line); transition: border-color .3s; }
.inline-link:hover { border-color: var(--ink); }
.impact .wrap { border-top: 1px solid var(--line); padding-top: clamp(64px, 8vw, 104px); }
.impact { padding-top: 0; }

/* PocketSeed slots on the page */
.ps-slot { margin-top: -8px; }
.ps-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 16px 24px; margin-top: clamp(48px, 6vw, 72px); }
@media (max-width: 860px) { .ps-cards { grid-template-columns: 1fr; } }
.ps-note {
  margin-top: 28px; max-width: 62ch; font-size: 14px; color: var(--ink-3);
}
.ps-note__mark { color: var(--ink-2); text-decoration: underline dotted #4caf50 1.5px; text-underline-offset: 3px; }
.ps-note__by { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; vertical-align: middle; font-size: 12px; letter-spacing: .04em; color: var(--ink-3); }
