/* ============================================================
   JA KŪ — stylesheet
   Brand book. Charcoal ground · warm off-white ink · titanium accent.
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --bg-2: #111110;
  --bg-3: #141413;
  --ink: #e8e4dc;
  --ink-dim: #8c8980;
  --ink-faint: #3a3833;
  --titanium: oklch(0.74 0.018 78);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --maxw: 1320px;
  --pad: clamp(20px, 4vw, 64px);
  /* Extra horizontal clearance so content never collides with the rotated
     side labels (FREQUENCY Hz, DOSSIER) sitting at var(--pad) from each
     edge. The labels' rotated bounding box is ~70-90px wide. */
  --side-clear: clamp(48px, 6vw, 110px);
  --content-pad: calc(var(--pad) + var(--side-clear));
  --tw: 0.32em;
  --tm: 0.18em;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}
::selection { background: var(--titanium); color: var(--bg); }
img { display: block; max-width: 100%; }

/* ------------------------------------------------------------
   Three.js canvas — fixed, behind everything
   ------------------------------------------------------------ */
#scene {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* ------------------------------------------------------------
   Fixed chrome
   ------------------------------------------------------------ */
.chrome {
  position: fixed;
  z-index: 10;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--tm);
  color: var(--ink-dim);
  text-transform: uppercase;
  pointer-events: none;
}
.chrome a { color: var(--ink); text-decoration: none; pointer-events: auto; transition: color .3s ease; }
.chrome a:hover { color: var(--titanium); }

.chrome.top {
  top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--pad);
  background: linear-gradient(to bottom, rgba(10,10,10,0.7), rgba(10,10,10,0));
  backdrop-filter: blur(2px);
}
.mark { display: flex; gap: 14px; align-items: baseline; color: var(--ink); font-size: 11px; }
.mark .m-en { letter-spacing: 0.4em; font-weight: 400; }
.mark .m-sep { color: var(--ink-faint); }
.mark .m-loc { color: var(--ink-dim); }
.nav { display: flex; gap: 22px; }
.nav a { font-size: 10.5px; letter-spacing: var(--tm); }

.chrome.left {
  top: 50%; left: var(--pad);
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  z-index: 9;
}
.chrome.right {
  top: 50%; right: var(--pad);
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  z-index: 9;
}
.chrome.left .freq-label,
.chrome.right .edition { display: flex; gap: 14px; align-items: baseline; white-space: nowrap; }
.chrome .lbl { color: var(--ink-faint); }
.chrome .val { color: var(--ink); font-variant-numeric: tabular-nums; }

.chrome.bottom {
  bottom: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--pad);
  background: linear-gradient(to top, rgba(10,10,10,0.7), rgba(10,10,10,0));
}
.scroll-hint { display: flex; align-items: center; gap: 10px; transition: opacity .6s ease; }
.scroll-hint .bar {
  width: 36px; height: 1px; background: var(--ink); display: inline-block;
  transform-origin: left center;
  animation: barPulse 2.4s ease-in-out infinite;
}
@keyframes barPulse {
  0%, 100% { transform: scaleX(0.3); opacity: 0.4; }
  50% { transform: scaleX(1); opacity: 1; }
}

/* ------------------------------------------------------------
   Story flow
   ------------------------------------------------------------ */
#story { position: relative; z-index: 2; }

/* ----------- HERO ----------- */
.hero { min-height: 220vh; position: relative; }
.hero-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: grid;
  grid-template-rows: 1fr auto auto 1fr;
  align-items: end;
  justify-items: center;
  padding: 14vh var(--content-pad) 12vh;
  pointer-events: none;
  gap: 24px;
}
.hero-meta, .hero-sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--tw);
  color: var(--ink-dim);
  text-align: center;
  text-transform: uppercase;
  display: flex; gap: 4px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.4s cubic-bezier(.6,0,.2,1), transform 1.4s cubic-bezier(.6,0,.2,1);
}
.hero-meta { grid-row: 1; align-self: start; flex-direction: column; gap: 6px; }
.hero-sub  { grid-row: 4; align-self: start; flex-direction: row; gap: 18px; flex-wrap: wrap; justify-content: center; }
body.hero-stage-1 .hero-meta { opacity: 1; transform: translateY(0); }
body.hero-stage-2 .hero-meta,
body.hero-stage-2 .hero-sub { opacity: 1; transform: translateY(0); }

.logotype {
  grid-row: 2;
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 9vw, 132px);
  line-height: 1;
  letter-spacing: 0.36em;
  padding-left: 0.36em;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1.6s ease-out, letter-spacing 2.2s cubic-bezier(.6,0,.2,1), transform 1.6s ease-out;
  text-transform: uppercase;
}
.logotype.revealed { opacity: 1; letter-spacing: 0.5em; transform: translateY(0); }

/* ----------- CHAPTERS ----------- */
.chapter {
  position: relative;
  padding: 22vh var(--content-pad) 18vh;
  max-width: var(--maxw);
  margin: 0 auto;
}
.chapter.wide { max-width: 1480px; }

/* Full-bleed chapter — breaks the max-width cage so the section can run
   edge-to-edge. Inner content still uses --content-pad for safe sides. */
.chapter-full {
  max-width: none;
  width: 100%;
  margin: 0;
}

/* Meaning-section smoke layer — soft incense wisps. */
.section-smoke {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  mix-blend-mode: screen;
}
.section-smoke .smoke-svg {
  position: absolute;
  inset: -20%;
  width: 140%;
  height: 140%;
  opacity: 1;
}
.smoke-rect {
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}
.smoke-rect-1 { animation: smokeDrift1 90s ease-in-out infinite;   opacity: 0.95; }
.smoke-rect-2 { animation: smokeDrift2 120s ease-in-out infinite;  opacity: 0.85; }
.smoke-rect-3 { animation: smokeDrift3 150s ease-in-out infinite;  opacity: 0.70; }

@keyframes smokeDrift1 {
  0%   { transform: translate(0%, 0%) scale(1.02) rotate(0deg); }
  33%  { transform: translate(-1%, 1%) scale(1.06) rotate(4deg); }
  66%  { transform: translate(1%, -0.5%) scale(1.04) rotate(-3deg); }
  100% { transform: translate(0%, 0%) scale(1.02) rotate(0deg); }
}
@keyframes smokeDrift2 {
  0%   { transform: translate(-0.5%, 0.5%) scale(1.04) rotate(0deg); }
  50%  { transform: translate(0.5%, -1%) scale(1.08) rotate(-5deg); }
  100% { transform: translate(-0.5%, 0.5%) scale(1.04) rotate(0deg); }
}
@keyframes smokeDrift3 {
  0%   { transform: translate(0%, 0.5%) scale(1.06) rotate(0deg); }
  40%  { transform: translate(-0.8%, -0.3%) scale(1.02) rotate(6deg); }
  80%  { transform: translate(0.8%, 0.3%) scale(1.05) rotate(-2deg); }
  100% { transform: translate(0%, 0.5%) scale(1.06) rotate(0deg); }
}

/* Meaning-text — single column on the LEFT, no right column.
   Width capped for readability; smoke fills the rest of the width. */
.meaning-text {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin-left: 0;
  margin-right: auto;
}
.chapter-full .chapter-head {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--content-pad);
  padding-right: var(--content-pad);
  box-sizing: border-box;
}
.chapter-full .meaning-text {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--content-pad);
  box-sizing: border-box;
}
.chapter-full .meaning-text .text-col {
  max-width: 640px;
}
.chapter.dark {
  background: linear-gradient(to bottom, rgba(10,10,10,0), rgba(10,10,10,0.65) 14%, rgba(10,10,10,0.65) 86%, rgba(10,10,10,0));
}

/* Ritual chapter head — layered marks + giant ghost numeral.
   The whole head is a stack: tiny index label, hairline rule, an oversized
   translucent numeral behind, and a sticky vertical rail down the side. */
.chapter-head {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  padding: 0 0 32px 0;
  margin-bottom: 96px;
  min-height: 240px;
}
.chapter-head::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(to right,
    var(--ink-faint) 0%,
    var(--ink-faint) 30%,
    transparent 100%);
}
/* Ghost numeral — huge ceremonial "01" behind the index label.
   Set via data-num on the head; if absent we fall back to the index text. */
.chapter-head::before {
  content: attr(data-num);
  position: absolute;
  left: -0.06em;
  bottom: -0.05em;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(180px, 26vw, 380px);
  line-height: 0.78;
  letter-spacing: -0.04em;
  color: var(--ink);
  opacity: 0.045;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.chapter-index {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--tw);
  color: var(--titanium);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.chapter-index::before {
  content: "";
  display: inline-block;
  width: 38px; height: 1px;
  background: var(--titanium);
}

/* Vertical ritual rail — a sticky kanji/frequency mark running down
   the left edge of wide chapters. */
.ritual-rail {
  position: absolute;
  top: 0; bottom: 0;
  left: calc(var(--pad) + 4px);
  width: 1px;
  pointer-events: none;
  z-index: 1;
}
.ritual-rail::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 1px;
  background: linear-gradient(to bottom,
    transparent 0%,
    var(--ink-faint) 14%,
    var(--ink-faint) 86%,
    transparent 100%);
}
.ritual-rail .rail-kanji {
  position: sticky;
  top: 50vh;
  display: block;
  margin-left: -8px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--titanium);
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0.4em;
  white-space: nowrap;
  background: var(--bg);
  padding: 12px 4px;
  opacity: 0.6;
}
.ritual-rail .rail-tick {
  position: absolute;
  left: -4px;
  width: 9px; height: 1px;
  background: var(--ink-faint);
}
.ritual-rail .rail-tick:nth-child(2) { top: 22%; }
.ritual-rail .rail-tick:nth-child(3) { top: 50%; background: var(--titanium); width: 14px; left: -7px; }
.ritual-rail .rail-tick:nth-child(4) { top: 78%; }

/* ----------- GRIDS ----------- */
.grid {
  display: grid;
  gap: clamp(24px, 3vw, 48px);
  margin-bottom: clamp(48px, 6vh, 96px);
}
.grid.two       { grid-template-columns: 1fr 1fr; align-items: start; }
.grid.three     { grid-template-columns: repeat(3, 1fr); }
.grid.two-asym  { grid-template-columns: 1.1fr 1.6fr; align-items: start; }
.grid.equal-gap { gap: 32px; }
.grid.plates    { gap: 32px; }

@media (max-width: 900px) {
  .grid.two, .grid.three, .grid.two-asym { grid-template-columns: 1fr; }
}

/* Cymatic window — an intentional empty column that reveals the
   fixed 3D backdrop behind the page. Adds subtle inset hairlines
   so the negative space reads as composed, not missing.  */
.cymatic-window {
  aspect-ratio: 3 / 4;
  width: 100%;
  position: relative;
  background: transparent;
  /* Faint corner marks — like a viewfinder frame */
}
.cymatic-window::before,
.cymatic-window::after {
  content: "";
  position: absolute;
  pointer-events: none;
  width: 22px; height: 22px;
  border: 1px solid var(--ink-faint);
}
.cymatic-window::before {
  top: 0; left: 0;
  border-right: none; border-bottom: none;
}
.cymatic-window::after {
  bottom: 0; right: 0;
  border-left: none; border-top: none;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vh, 80px);
  margin: 0 auto clamp(56px, 8vh, 120px);
  max-width: 900px;
}
/* Bottom-aligned plates — product shots where the vessel base
   should sit on a shared baseline across the row. */
.grid.align-bottom .plate .plate-img img {
  object-position: center bottom;
}

/* Vision-stack wider for landscape plates. */
.vision-stack { max-width: 1200px; }
.stack .plate { max-width: 100%; }

/* ----------- IMAGE PLATES (Rick Owens / madetlen tone) ----------- */
.plate {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.plate-img {
  position: relative;
  width: 100%;
  background: transparent;
  overflow: hidden;
  /* No outline by default — transparent product shots float free.
     .plate.framed adds one back for tonal / scenic images. */
  aspect-ratio: var(--ar, 4/5);
}
.plate-img img {
  width: 100%;
  height: 100%;
  /* Default: contain — never crop a brand photo. */
  object-fit: contain;
  display: block;
  filter: saturate(0.85) contrast(1.04) brightness(0.97);
  transition: filter 1.2s ease, transform 8s cubic-bezier(.2,.6,.2,1);
  will-change: transform;
}
/* When a plate is .cover (editorial scenes), crop to fill. */
.plate.cover .plate-img img,
.bleed.cover .plate-img img,
.hero-plate.cover .plate-img img {
  object-fit: cover;
}
/* Explicit .contain override (default but kept for clarity) */
.plate.contain .plate-img img,
.bleed.contain .plate-img img,
.hero-plate.contain .plate-img img {
  object-fit: contain;
}

/* Vignette variant — soft radial mask fades edges into the page bg.
   Useful for product photos with non-transparent studio backgrounds
   (brushed concrete, grey paper) that can't be cleanly keyed out. */
.plate.vignette .plate-img {
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%,
    black 35%, rgba(0,0,0,0.7) 60%, transparent 92%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%,
    black 35%, rgba(0,0,0,0.7) 60%, transparent 92%);
}
.plate.vignette .plate-img img {
  filter: saturate(0.65) contrast(1.05) brightness(0.88);
}

/* Floating 3D — slow continuous tilt + drift, like the object is
   suspended in the chamber. Subtle enough to read as ambient motion. */
.plate.float-3d {
  perspective: 1400px;
  perspective-origin: 50% 50%;
}
.plate.float-3d .plate-img {
  transform-style: preserve-3d;
  animation: floatTilt 14s ease-in-out infinite;
  will-change: transform;
}
.plate.float-3d .plate-img img {
  transform-style: preserve-3d;
  animation: floatBreathe 9s ease-in-out infinite;
}
@keyframes floatTilt {
  0%   { transform: rotateX( 2.5deg) rotateY(-3.5deg) translateZ(0); }
  25%  { transform: rotateX(-2.0deg) rotateY( 4.0deg) translateZ(10px); }
  50%  { transform: rotateX( 3.0deg) rotateY( 2.0deg) translateZ(20px); }
  75%  { transform: rotateX(-1.0deg) rotateY(-4.0deg) translateZ(8px); }
  100% { transform: rotateX( 2.5deg) rotateY(-3.5deg) translateZ(0); }
}
@keyframes floatBreathe {
  0%, 100% { transform: scale(1.00) translateY(0); }
  50%      { transform: scale(1.012) translateY(-6px); }
}
/* Pause hover transform; let the animation continue. */
.plate.float-3d:hover .plate-img img {
  transform: scale(1.012) translateY(-6px);
}

/* Candle 3D — cursor-driven perspective tilt revealing different facets
   of the titanium vessel. JS sets --rx / --ry / --rz (deg) on the figure
   based on mouse position; ambient idle drift continues without cursor. */
.hero-plate.candle-3d {
  perspective: 1600px;
  perspective-origin: 50% 50%;
}
.hero-plate.candle-3d .plate-img {
  background: transparent;
  outline: none;
  transform-style: preserve-3d;
  transform:
    rotateX(var(--rx, 6deg))
    rotateY(var(--ry, 0deg))
    rotateZ(var(--rz, 0deg))
    translateZ(0);
  transition: transform 1.4s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.hero-plate.candle-3d .plate-img::after {
  /* Floor shadow that grows + shifts as the vessel rotates. */
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -6%;
  height: 14%;
  background: radial-gradient(ellipse at center,
    rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.30) 35%, transparent 70%);
  filter: blur(28px);
  z-index: -1;
  transform:
    translateX(calc(var(--ry, 0deg) * 0.6))
    scaleY(calc(1 - 0.3 * (var(--rx-num, 6) / 30)));
}
.hero-plate.candle-3d .plate-img img {
  filter: drop-shadow(0 60px 80px rgba(0,0,0,0.7))
          drop-shadow(0 0 40px rgba(0,0,0,0.5));
  transform: translateZ(0);
}
.hero-plate.candle-3d:hover .plate-img {
  transition: transform 0.18s cubic-bezier(.4,0,.2,1);
}

/* Cymatic ripple — applies the SVG turbulence + displacement filter
   to the WITNESS image so the cymatic pattern visibly breathes and
   ripples, like the wax surface forming in real time. Combined with
   a slow CSS scale + brightness shimmer for added depth.            */
.plate.cymatic-ripple .plate-img img {
  filter: url(#cymaticRipple) saturate(0.9) contrast(1.08) brightness(0.96);
  animation: cymaticBreathe 11s ease-in-out infinite;
  transform-origin: center center;
  will-change: filter, transform;
}
.plate.cymatic-ripple:hover .plate-img img {
  filter: url(#cymaticRipple) saturate(1.0) contrast(1.12) brightness(1.02);
}
@keyframes cymaticBreathe {
  0%, 100% { transform: scale(1.00); }
  50%      { transform: scale(1.03); }
}
.plate.yakisugi .plate-img img {
  filter: saturate(0.92) contrast(1.18) brightness(1.18);
}
.plate.yakisugi:hover .plate-img img {
  filter: saturate(1.0) contrast(1.22) brightness(1.25);
}
.plate:hover .plate-img img,
.bleed:hover .plate-img img,
.hero-plate:hover .plate-img img {
  filter: saturate(0.95) contrast(1.06) brightness(1.0);
  transform: scale(1.02);
}

/* Read aspect-ratio from inline --ar; falls back to per-class default. */
.plate .plate-img            { aspect-ratio: var(--ar, 4/5); }
.plate.landscape .plate-img  { aspect-ratio: var(--ar, 16/10); }
.plate.portrait  .plate-img  { aspect-ratio: var(--ar, 3/4); }
.plate.tall      .plate-img  { aspect-ratio: var(--ar, 4/6); }
.plate.square    .plate-img  { aspect-ratio: var(--ar, 1/1); }

.plate figcaption {
  display: flex; flex-direction: column; gap: 2px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: var(--tm);
  text-transform: uppercase;
}
.cap-k { color: var(--titanium); }
.cap-v { color: var(--ink-dim); }

/* Bleed image — full width within chapter */
.bleed { margin: 0 0 clamp(48px, 6vw, 96px); position: relative; }
.bleed .plate-img { aspect-ratio: var(--ar, 21/9); }
.bleed figcaption {
  display: flex; gap: 14px; align-items: baseline;
  padding-top: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: var(--tm);
  text-transform: uppercase;
}
.bleed .cap-k { color: var(--titanium); }
.bleed .cap-v { color: var(--ink-dim); }

/* Hero plate (object section) */
.hero-plate { position: relative; margin-bottom: clamp(48px, 6vw, 96px); }
.hero-plate .plate-img { aspect-ratio: var(--ar, 16/9); }

/* Cutout variant — legacy, no longer used. */
.hero-plate-meta {
  display: flex; justify-content: space-between; gap: 18px;
  padding-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--tm);
  text-transform: uppercase;
}
.hpm-k { color: var(--titanium); }
.hpm-v { color: var(--ink-dim); text-align: right; }

/* ----------- TEXT BLOCKS ----------- */
.text-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  padding: 32px 36px 36px;
  background: #0a0a0a;
  border: 1px solid rgba(232, 228, 220, 0.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.02) inset,
    0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
/* Corner register marks on text panels — ritual framing. */
.text-col::before,
.text-col::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border: 1px solid var(--titanium);
  pointer-events: none;
  opacity: 0.5;
}
.text-col::before {
  top: -1px; left: -1px;
  border-right: none; border-bottom: none;
}
.text-col::after {
  bottom: -1px; right: -1px;
  border-left: none; border-top: none;
}

.lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
  text-wrap: pretty;
}
.lede .char {
  font-family: var(--mono);
  font-size: 0.42em;
  letter-spacing: 0.3em;
  color: var(--titanium);
  vertical-align: middle;
  margin-right: 0.6em;
}
.note {
  font-family: var(--serif);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 58ch;
  margin: 0;
}
.note em { color: var(--ink); font-style: normal; letter-spacing: 0.04em; }

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 6.5vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.005em;
  margin: 0 0 56px;
  color: var(--ink);
  text-wrap: balance;
}
.display.small { font-size: clamp(32px, 4.5vw, 56px); margin-bottom: 36px; }
.display.center { text-align: center; margin: 0 auto 64px; }

.pull {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.3;
  margin: clamp(48px, 6vw, 96px) auto;
  color: var(--ink);
  text-wrap: balance;
  text-align: center;
  max-width: 26ch;
}

.aside {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--ink-dim);
  max-width: 60ch;
  text-transform: uppercase;
}
.aside.center { margin: 24px auto 0; text-align: center; }

.credit {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--tm);
  color: var(--ink-dim);
  text-transform: uppercase;
}
.credit.center { text-align: center; margin: 32px auto 0; }
.credit .cap { color: var(--ink); }

/* Centered note (used for intro lines under display headings) */
.note.centered,
.text-col.centered-text {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.text-col.centered-text {
  max-width: 720px;
}
.note.centered { max-width: 60ch; margin-bottom: 64px; }

/* Frequency-edition list — large numerical readout, monastic register. */
.freq-list {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink-faint);
  border-left: 1px solid var(--ink-faint);
}
.freq-list li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 36px 28px;
  border-right: 1px solid var(--ink-faint);
  border-bottom: 1px solid var(--ink-faint);
  min-height: 160px;
  justify-content: flex-end;
  transition: background .5s ease;
}
.freq-list li:hover { background: rgba(232, 228, 220, 0.04); }
.freq-list .hz {
  font-family: var(--serif);
  font-size: clamp(44px, 4.2vw, 64px);
  font-weight: 300;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.freq-list .hz small {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: var(--tm);
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
}
.freq-list .state {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--tw);
  color: var(--titanium);
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .freq-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .freq-list { grid-template-columns: 1fr; }
}
.kana-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; border-top: 1px solid var(--ink-faint); padding-top: 20px; }
.kana-list li {
  display: grid; grid-template-columns: 64px 100px 1fr; gap: 16px;
  align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--ink-faint);
}
.kana-list li > :first-child { font-family: var(--serif); font-size: 26px; color: var(--ink); letter-spacing: 0.1em; }
.kana-list .rom { font-family: var(--mono); font-size: 11px; letter-spacing: var(--tm); color: var(--titanium); text-transform: uppercase; }
.kana-list .def { font-family: var(--serif); font-size: 16px; color: var(--ink-dim); line-height: 1.5; }

.manifest { list-style: none; margin: 0 auto; padding: 0; border-top: 1px solid var(--ink-faint); max-width: 900px; }
.manifest li {
  display: grid; grid-template-columns: 60px 1fr; gap: 24px;
  font-family: var(--serif); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5;
  color: var(--ink); padding: 18px 0; border-bottom: 1px solid var(--ink-faint);
}
.manifest .i { font-family: var(--mono); font-size: 11px; letter-spacing: var(--tm); color: var(--titanium); text-transform: uppercase; padding-top: 8px; }

.line-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--ink-faint); }
.line-list li {
  display: grid; grid-template-columns: 180px 1fr; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--ink-faint);
  font-family: var(--mono); font-size: 11px; letter-spacing: var(--tm); text-transform: uppercase;
}
.line-list li > :first-child { color: var(--titanium); }
.line-list li > :last-child  { color: var(--ink); }

.principles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink-faint); }
.principles li {
  display: grid; grid-template-columns: 60px 1fr 1fr; gap: 24px;
  align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--ink-faint);
}
.principles .np { font-family: var(--mono); font-size: 11px; letter-spacing: var(--tm); color: var(--titanium); }
.principles .nt { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 44px); font-weight: 300; color: var(--ink); letter-spacing: 0.01em; }
.principles .nd { font-family: var(--mono); font-size: 11px; letter-spacing: var(--tm); color: var(--ink-dim); text-transform: uppercase; }

/* ----------- SPEC GRID ----------- */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink-faint);
  border-left: 1px solid var(--ink-faint);
  align-self: start;
}
.spec-grid.two-col { grid-template-columns: repeat(2, 1fr); }
.spec {
  display: flex; flex-direction: column; gap: 8px;
  padding: 24px 20px;
  border-right: 1px solid var(--ink-faint);
  border-bottom: 1px solid var(--ink-faint);
  min-height: 100px;
}
.spec .k { font-family: var(--mono); font-size: 10px; letter-spacing: var(--tw); color: var(--ink-faint); text-transform: uppercase; }
.spec .v { font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); color: var(--ink); font-variant-numeric: tabular-nums; }
.spec .v small { font-family: var(--mono); font-size: 11px; color: var(--ink-dim); letter-spacing: var(--tm); margin-left: 4px; }

/* ----------- FRAGRANCE NOTES ----------- */
.notes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--ink-faint);
  margin-bottom: clamp(48px, 6vw, 96px);
}
.note-col {
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px 22px;
  border-bottom: 1px solid var(--ink-faint);
  border-right: 1px solid var(--ink-faint);
}
.note-k { font-family: var(--mono); font-size: 11px; letter-spacing: var(--tw); color: var(--titanium); text-transform: uppercase; }
.note-v { font-family: var(--serif); font-size: clamp(16px, 1.4vw, 20px); color: var(--ink); line-height: 1.5; }
@media (max-width: 720px) { .notes { grid-template-columns: 1fr; } }

/* ----------- CLOSING / COLOPHON ----------- */
.closing {
  padding-top: 14vh;
  padding-bottom: 18vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-block {
  display: flex; flex-direction: column; align-items: center; gap: 72px;
  width: 100%;
}
.cta {
  font-family: var(--mono); font-size: 12px; letter-spacing: var(--tw);
  color: var(--ink); text-decoration: none;
  padding: 18px 30px; border: 1px solid var(--ink);
  transition: all .4s ease; position: relative; overflow: hidden; z-index: 1;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: var(--ink); transform: translateY(101%);
  transition: transform .5s cubic-bezier(.7,0,.2,1); z-index: -1;
}
.cta:hover { color: var(--bg); }
.cta:hover::before { transform: translateY(0); }

.colophon {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  width: 100%; max-width: 1200px;
  border-top: 1px solid var(--ink-faint); padding-top: 28px;
}
.colophon.centered {
  grid-template-columns: auto 1px auto;
  justify-content: center;
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
  max-width: none;
  border-top: none;
  padding-top: 0;
  text-align: center;
}
.colophon .col-divider {
  width: 1px;
  height: 120px;
  background: var(--ink-faint);
}
.colophon .col { display: flex; flex-direction: column; gap: 16px; }
.colophon.centered .col { align-items: center; }
.colophon .ck {
  font-family: var(--mono); font-size: 10px; letter-spacing: var(--tw);
  color: var(--titanium); text-transform: uppercase;
}
.colophon .cv {
  font-family: var(--mono); font-size: 11px; letter-spacing: var(--tm);
  color: var(--ink-dim); text-transform: uppercase; line-height: 1.9;
}
.colophon.centered .cv {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink);
  line-height: 1.8;
}
.colophon .cv a { color: var(--ink); text-decoration: none; }
.colophon .cv a:hover { color: var(--titanium); }
@media (max-width: 900px) {
  .colophon { grid-template-columns: 1fr 1fr; }
  .colophon.centered {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .colophon.centered .col-divider {
    width: 60px; height: 1px;
    margin: 0 auto;
  }
}

/* ------------------------------------------------------------
   In-view reveal animation for chapter content
   ------------------------------------------------------------ */
.chapter .chapter-head,
.chapter .grid,
.chapter .display,
.chapter .pull,
.chapter .notes,
.chapter .manifest,
.chapter .principles,
.chapter .line-list,
.chapter .aside,
.chapter .credit,
.chapter .hero-plate,
.chapter .bleed,
.chapter .contact-block {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.2s cubic-bezier(.4,0,.2,1), transform 1.2s cubic-bezier(.4,0,.2,1);
}
.chapter.in-view .chapter-head,
.chapter.in-view .grid,
.chapter.in-view .display,
.chapter.in-view .pull,
.chapter.in-view .notes,
.chapter.in-view .manifest,
.chapter.in-view .principles,
.chapter.in-view .line-list,
.chapter.in-view .aside,
.chapter.in-view .credit,
.chapter.in-view .hero-plate,
.chapter.in-view .bleed,
.chapter.in-view .contact-block {
  opacity: 1;
  transform: translateY(0);
}
.chapter.in-view > *:nth-child(2) { transition-delay: .08s; }
.chapter.in-view > *:nth-child(3) { transition-delay: .18s; }
.chapter.in-view > *:nth-child(4) { transition-delay: .28s; }
.chapter.in-view > *:nth-child(5) { transition-delay: .38s; }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 720px) {
  .chrome.left, .chrome.right { display: none; }
  /* Without sidebars we can reclaim the side-clear space on mobile. */
  :root { --side-clear: 0px; }
  .nav { display: none; }
  .principles li { grid-template-columns: 48px 1fr; }
  .principles .nd { grid-column: 2; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .line-list li { grid-template-columns: 1fr; gap: 4px; }
}
