/* ============================================================
   Visual Index № 026
   ============================================================ */

:root {
  --bg: #0d0c0a;
  --bg-2: #131210;
  --ink: #ece7df;
  --ink-dim: #8a8478;
  --ink-mute: #5a544a;
  --line: rgba(236, 231, 223, 0.12);
  --accent: #d9c7a3;
  --accent-2: #ff5a3c;

  --serif:
    "Fraunces", "Zen Old Mincho", "Noto Serif TC", "Times New Roman", serif;
  --sans:
    "Inter Tight", "Zen Old Mincho", "Noto Serif TC", system-ui, -apple-system,
    sans-serif;
  --cjk: "Zen Old Mincho", "Noto Serif TC", "Times New Roman", serif;

  --ease: cubic-bezier(0.7, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --pad: clamp(20px, 3vw, 48px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  background: var(--bg);
  color: var(--ink);
}
html {
  scroll-behavior: auto;
}
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  cursor: none;
}
body.is-loading {
  overflow: hidden;
  height: 100vh;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
em {
  font-style: italic;
  font-family: var(--serif);
  font-weight: 300;
}

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

/* Grain texture — `mix-blend-mode: overlay` was forcing the browser to
   re-blend the grain against the page on every hover transition, which
   on first hover created a 1–2px edge artifact at the bottom of cells.
   Switched to plain alpha compositing — the grain still reads as ambient
   noise, no per-frame blend cost. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.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 .35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.06;
}

/* ============================================================
   CURSOR
   ============================================================ */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
}
.cursor__dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  will-change: transform;
  transition:
    width 0.25s var(--ease),
    height 0.25s var(--ease),
    opacity 0.25s;
}
.cursor__ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  will-change: transform;
  transition:
    width 0.35s var(--ease),
    height 0.35s var(--ease),
    border-color 0.25s,
    background 0.25s;
}
.cursor__label {
  position: fixed;
  top: 0;
  left: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: #fff;
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.25s;
  letter-spacing: 0.02em;
}
.cursor__label span {
  display: inline-block;
  transform: scale(0.6);
  transform-origin: center;
  transition: transform 0.35s var(--ease);
}
.cursor.is-hover .cursor__ring {
  width: 90px;
  height: 90px;
  background: rgba(255, 255, 255, 0.06);
}
.cursor.is-hover .cursor__dot {
  opacity: 0;
}
.cursor.is-hover .cursor__label {
  opacity: 1;
}
.cursor.is-hover .cursor__label span {
  transform: scale(1);
}
.cursor.is-link .cursor__ring {
  width: 60px;
  height: 60px;
}
.cursor.is-down .cursor__ring {
  width: 32px;
  height: 32px;
}

@media (hover: none) {
  body {
    cursor: auto;
  }
  .cursor {
    display: none;
  }
}

/* ============================================================
   LOADER
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--pad);
  transition:
    transform 1.1s var(--ease-out),
    opacity 0.6s;
}
.loader__inner {
  width: 100%;
  max-width: 1600px;
}
.loader__row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 24px;
}
.loader__logo {
  display: inline-block;
  width: 58px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask: url("hikaru-logo.svg") left center / contain no-repeat;
  mask: url("hikaru-logo.svg") left center / contain no-repeat;
}
.loader__count {
  font-family: var(--serif);
  font-size: clamp(40px, 8vw, 96px);
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.loader__pct {
  font-size: 0.4em;
  padding-top: 0.5em;
  color: var(--ink-dim);
}
.loader__bar {
  margin-top: 24px;
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.loader__bar i {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s linear;
}
.loader__title {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
  font-family: var(--serif);
  font-size: clamp(60px, 14vw, 220px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 300;
}
.loader__title em {
  color: var(--accent);
}
.loader__line {
  display: block;
  overflow: hidden;
  /* Same descender-safe trick as .hero__title .line. */
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}
.loader__line em {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
}
.loader.is-ready .loader__line:nth-child(1) em {
  transform: translateY(0);
  transition-delay: 0.05s;
}
.loader.is-ready .loader__line:nth-child(2) em {
  transform: translateY(0);
  transition-delay: 0.18s;
}

body:not(.is-loading) .loader {
  transform: translateY(-100%);
  pointer-events: none;
}

/* ============================================================
   SCROLL WRAPPER (smooth scroll via JS transform)
   ============================================================ */
.scroll {
  position: fixed;
  inset: 0;
  overflow: hidden;
}
.scroll__inner {
  will-change: transform;
}

/* When JS smooth scroll is disabled (e.g., reduce-motion or fallback) */
.no-smooth .scroll {
  position: static;
  overflow: visible;
}
.no-smooth .scroll__inner {
  transform: none !important;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad);
  mix-blend-mode: difference;
  color: #fff;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 18px;
}
.nav__logo {
  display: inline-block;
  width: 104px;
  height: 22px; /* keeps the 1272:264 (~4.82:1) ratio */
  background-color: currentColor;
  -webkit-mask: url("hikaru-logo.svg") left center / contain no-repeat;
  mask: url("hikaru-logo.svg") left center / contain no-repeat;
  transform-origin: left center;
  transition: transform 0.5s var(--ease-out);
}
.nav__brand:hover .nav__logo {
  transform: scale(1.06);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav__links {
  display: flex;
  gap: 32px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav__links a {
  position: relative;
  padding-bottom: 4px;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav__links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__meta {
  display: flex;
  gap: 24px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

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

/* ============================================================
   HERO
   ============================================================ */
.hero {
  /* Cap the hero so it doesn't balloon when the browser is zoomed out
     (CSS-pixel `vh` grows with zoom-out even though the screen doesn't,
     which previously left the bottom-anchored content stranded in a vast
     empty viewport). */
  min-height: min(100vh, 1040px);
  padding: 140px var(--pad) 80px;
  display: flex;
  align-items: flex-end;
  position: relative;
  /* Clip the off-canvas watermark so it can't create horizontal scroll
     on mobile when the smooth-scroll fallback is active. */
  overflow: hidden;
}
.hero__grid {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 48px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* Title + right aside share a 2-column grid row so they have the same
   vertical span — aside top aligns with title top, aside bottom aligns
   with title bottom. */
.hero__main {
  display: grid;
  grid-template-columns: 1fr clamp(280px, 26vw, 380px);
  gap: clamp(40px, 4vw, 80px);
  align-items: stretch;
  margin-bottom: 60px;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(54px, 11vw, 184px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin-bottom: 0; /* margin lives on .hero__main now */
}
.hero__title .line {
  display: block;
  overflow: hidden;
  /* Give the clipping box room for descenders (g, y) — without this,
     overflow:hidden chops the bottom of the glyph. The negative margin
     keeps the original visual line spacing intact. */
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}
.hero__title .word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition:
    transform 1.2s var(--ease-out),
    opacity 1.2s var(--ease-out);
}
.is-revealed .hero__title .word {
  transform: translateY(0);
  opacity: 1;
}
.hero__title .line:nth-child(1) .word {
  transition-delay: 0.1s;
}
.hero__title .line:nth-child(2) .word {
  transition-delay: 0.22s;
}
.hero__title .line:nth-child(3) .word {
  transition-delay: 0.34s;
}
.hero__title .line:nth-child(3) .word + .word {
  transition-delay: 0.44s;
}
.hero__title em {
  color: var(--accent);
}

.hero__lede {
  max-width: 520px;
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--ink-dim);
  line-height: 1.55;
  margin-bottom: 80px;
}

/* ============================================================
   HERO RIGHT ASIDE — tag · seal · quote
   Lives in the right column of .hero__main, so its height
   is dictated by the title's height (grid align-items:stretch).
   ============================================================ */
.hero__aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
  min-width: 0; /* allow the column to shrink properly */
}

/* Seal sits at the top of the column (aligned with title's first line),
   sized by the available column height. */
.seal {
  align-self: center;
  flex: 1 1 0;
  min-height: 0;
  width: auto;
  height: 100%;
  aspect-ratio: 1;
  max-width: 100%;
  pointer-events: none;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  opacity: 0;
  transform: scale(0.86) rotate(-12deg);
  transition:
    opacity 1.4s var(--ease-out) 1.1s,
    transform 1.6s var(--ease-out) 1.1s;
}
.is-revealed .seal {
  opacity: 1;
  transform: scale(1) rotate(0);
}

/* Soft radial light bleed behind the seal — reinforces the 光 brand metaphor.
   Sits below the rotating ring so the text stays crisp. */
.seal__halo {
  position: absolute;
  inset: -22%;
  background: radial-gradient(
    circle at center,
    rgba(217, 199, 163, 0.22) 0%,
    rgba(217, 199, 163, 0.08) 28%,
    rgba(217, 199, 163, 0.02) 50%,
    transparent 72%
  );
  pointer-events: none;
  z-index: -1;
  filter: blur(2px);
  animation: halo 4.4s var(--ease) infinite alternate;
}
@keyframes halo {
  from {
    opacity: 0.85;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

/* ============================================================
   HERO BACKGROUND ATMOSPHERE — layered watermarks
   ============================================================ */

/* Shared base for both 光 layers */
.hero__watermark {
  position: absolute;
  top: 50%;
  right: -12vw;
  font-family: var(--cjk);
  font-weight: 300;
  font-size: clamp(360px, 70vh, 880px);
  line-height: 0.78;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  will-change: transform;
}

/* Filled main mark — slowly drifts down-right */
.hero__watermark--main {
  color: rgba(236, 231, 223, 0.05);
  transform: translateY(-50%);
  animation: wmDrift 28s ease-in-out infinite alternate;
}

/* Stroked ghost — offset opposite the main, drifts the other way.
   Together they read like a misregistered print impression. */
.hero__watermark--ghost {
  right: -10.5vw;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(217, 199, 163, 0.11);
  text-stroke: 1.5px rgba(217, 199, 163, 0.11);
  transform: translateY(-50%) translate(-22px, 14px);
  animation: wmDriftGhost 32s ease-in-out infinite alternate;
}

@keyframes wmDrift {
  from {
    transform: translateY(-50%) translate(0, 0) rotate(0deg);
  }
  to {
    transform: translateY(-50%) translate(20px, -14px) rotate(0.6deg);
  }
}
@keyframes wmDriftGhost {
  from {
    transform: translateY(-50%) translate(-22px, 14px) rotate(0deg);
  }
  to {
    transform: translateY(-50%) translate(-4px, -2px) rotate(-0.5deg);
  }
}

@media (max-width: 1100px) {
  /* Keep the watermark visible on tablets/phones, just scaled down
     and pushed further off-canvas so it reads as background, not
     content. */
  .hero__watermark {
    font-size: clamp(320px, 95vw, 620px);
    right: -22vw;
  }
}
@media (max-width: 560px) {
  .hero__watermark {
    font-size: clamp(280px, 110vw, 520px);
    right: -28vw;
    opacity: 0.85; /* a touch softer on tiny screens */
  }
}

/* Make sure interactive content sits above the watermarks */
.hero__grid {
  position: relative;
  z-index: 1;
}
.seal {
  z-index: 2;
} /* keep the seal above the watermark layers */

.hero__quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 1.8vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-align: right;
  color: var(--ink);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 1.2s var(--ease-out) 1.3s,
    transform 1.2s var(--ease-out) 1.3s;
}
.hero__quote em {
  display: block;
}
.hero__quote-mark {
  color: var(--accent);
  font-style: italic;
  font-family: inherit;
}
.hero__quote-rule {
  display: block;
  margin-top: 18px;
  margin-left: auto;
  width: 48px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent));
}
.is-revealed .hero__quote {
  opacity: 1;
  transform: translateY(0);
}

.seal__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: sealSpin 30s linear infinite;
}
.seal__ring text {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  fill: currentColor;
  font-weight: 500;
}

.seal__ticks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--ink-mute);
  opacity: 0.7;
}

.seal__glyph {
  position: relative;
  z-index: 1;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--cjk);
  font-size: clamp(48px, 4.4vw, 68px);
  font-weight: 500;
  color: var(--accent);
  background: rgba(217, 199, 163, 0.04);
  box-shadow:
    0 0 60px rgba(217, 199, 163, 0.08),
    inset 0 0 0 1px rgba(217, 199, 163, 0.18);
}
.seal__pulse {
  position: absolute;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.5;
  animation: sealPulse 2.6s var(--ease-out) infinite;
}
@keyframes sealSpin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes sealPulse {
  0% {
    transform: scale(1);
    opacity: 0.45;
  }
  70% {
    transform: scale(1.9);
    opacity: 0;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

/* Collapse the hero's 2-column row on tablets/phones — the aside
   is moved above the title as a centered "stamp", giving the seal
   its own breathing room instead of competing with the title. */
@media (max-width: 1100px) {
  .hero {
    padding-top: 96px;
  }
  .hero__main {
    grid-template-columns: 1fr;
  }
  .hero__aside {
    order: -1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(220px, 48vw, 360px);
    height: clamp(220px, 48vw, 360px);
    margin: 0 auto 48px;
    align-self: center;
  }
  .hero__aside .hero__quote {
    display: none;
  }
  .seal {
    width: 100%;
    height: 100%;
    flex: none;
    align-self: center;
  }
}
@media (max-width: 560px) {
  .hero {
    padding-top: 72px;
  }
  .hero__aside {
    width: clamp(200px, 62vw, 300px);
    height: clamp(200px, 62vw, 300px);
    margin-bottom: 36px;
  }
}

.hero__foot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.hero__col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero__k {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hero__v {
  font-family: var(--serif);
  font-size: clamp(15px, 1.3vw, 19px);
}

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

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
  background: var(--bg-2);
}
.marquee__track {
  display: flex;
  white-space: nowrap;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 4vw, 56px);
  color: var(--ink);
  letter-spacing: -0.01em;
  width: max-content;
  animation: marquee 36s linear infinite;
}
/* Spacing baked into each copy via padding instead of `gap`, so every
   copy is exactly the same width and `-33.333%` lands cleanly on the
   next copy with no visible jump on loop. */
.marquee__track > span {
  padding-right: 60px;
}
@keyframes marquee {
  to {
    transform: translate3d(-33.333%, 0, 0);
  }
}

@media (max-width: 900px) {
  .marquee__track {
    animation-duration: 20s;
  }
  .marquee__track > span {
    padding-right: 40px;
  }
}
@media (max-width: 560px) {
  .marquee__track {
    animation-duration: 14s;
  }
  .marquee__track > span {
    padding-right: 32px;
  }
}

/* ============================================================
   INDEX / GRID
   ============================================================ */
.index {
  padding: 140px var(--pad) 120px;
  max-width: 1700px;
  margin: 0 auto;
}

.index__head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: 100px;
  align-items: end;
}
.index__k {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.index__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 7vw, 110px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.index__title em {
  color: var(--accent);
}
.index__sub {
  color: var(--ink-dim);
  font-size: 13px;
  letter-spacing: 0.04em;
}
@media (max-width: 720px) {
  .index__head {
    grid-template-columns: 1fr;
  }
}

/* Editorial grid. Each cell's `grid-column` and `aspect-ratio` are set
   inline from JS based on the image's natural pixel dimensions. */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: min-content;
  align-items: start;
  gap: clamp(16px, 1.6vw, 28px);
}

/* Mobile: collapse the desktop spans, but keep cinematic full-bleed cells
   the full row width (they read as features). */
@media (max-width: 900px) {
  .grid {
    gap: 14px;
  }
  .cell {
    grid-column: span 6 !important;
  }
  .cell--full {
    grid-column: span 12 !important;
  }
}
@media (max-width: 560px) {
  .cell,
  .cell--full {
    grid-column: span 12 !important;
  }
}

/* Cell card */
.cell {
  overflow: hidden;
  background: var(--bg-2);
  opacity: 0;
  transform: translateY(60px);
  transition:
    opacity 1.1s var(--ease-out),
    transform 1.1s var(--ease-out);
}
.cell.is-in {
  opacity: 1;
  transform: translateY(0);
}

.cell__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.cell__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(0, 0, 0) scale(1.05);
  transition: transform 1.6s var(--ease-out);
}
.cell:hover .cell__img {
  transform: translate3d(0, 0, 0) scale(1.16);
}

/* No more veil/shadow at all. The meta sits directly on the image and uses
   mix-blend-mode: difference so it's always readable against any pixel
   value beneath it — light text on dark area, dark text on light area. */
.cell__meta {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}
.cell__num {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
/* Title is hidden by default via clip-path (revealed left → right on hover).
   clip-path animates within the title's own bounds — small text element,
   no compositor edges anywhere near the cell border. */
.cell__title {
  position: relative;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.1vw, 30px);
  line-height: 1;
  letter-spacing: -0.02em;
  padding-bottom: 6px;
  font-variation-settings:
    "opsz" 144,
    "SOFT" 70,
    "WONK" 1;
  /* Hide via clip-path inset — fully clipped from the right side */
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.75s var(--ease-out);
}
.cell:hover .cell__title {
  clip-path: inset(0 0 0 0);
}
/* Gold rule that draws under the title on hover */
.cell__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.7s var(--ease-out) 0.25s;
}
.cell:hover .cell__title::after {
  width: 100%;
}
.cell__year {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* Top-left index sticker */
.cell__index {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  mix-blend-mode: difference;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cell__index::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  display: inline-block;
  transition: width 0.5s var(--ease-out);
}
/* The leading rule on the index sticker grows on hover — small kinetic
   counterpoint to the title underline that draws on the other corner. */
.cell:hover .cell__index::before {
  width: 32px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: 80px var(--pad);
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}
.about__k {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.about__copy {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 56px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.about__copy em {
  color: var(--accent);
}
.about__rows {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.about__rows > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.about__rows span {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.about__rows b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
}
@media (max-width: 720px) {
  .about__rows {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  padding: 80px var(--pad) 60px;
  max-width: 1700px;
  margin: 0 auto;
}
.foot__big {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(60px, 12vw, 200px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  margin-bottom: 80px;
}
.foot__big .line {
  display: block;
}
.foot__big em {
  color: var(--accent);
}
.foot__rows {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 20px;
}
.foot__mail {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 34px);
  position: relative;
}
.foot__mail:hover {
  color: var(--accent);
}
.foot__social {
  display: flex;
  gap: 24px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.foot__social a {
  position: relative;
}
.foot__social a:hover {
  color: var(--ink);
}

/* Traditional Chinese / CJK display run.
   Zen Old Mincho carries the artistic kanji glyphs; Noto Serif TC fills
   in any TC-only codepoints the JP font lacks. */
.zh {
  font-family: var(--cjk);
  font-weight: 500;
  letter-spacing: 0.04em;
  font-style: normal;
}
.zh--display {
  font-weight: 500;
  letter-spacing: 0.06em;
}

.foot__base {
  margin-top: 48px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  flex-wrap: wrap;
  gap: 14px;
}
.foot__dev {
  color: var(--ink-dim);
  position: relative;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition:
    color 0.3s,
    border-color 0.3s;
}
.foot__dev:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.foot__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.foot__logo {
  display: inline-block;
  width: 64px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask: url("hikaru-logo.svg") left center / contain no-repeat;
  mask: url("hikaru-logo.svg") left center / contain no-repeat;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lb {
  position: fixed;
  inset: 0;
  z-index: 9800;
  background: rgba(8, 7, 5, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6vh 6vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.lb.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lb__stage {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  transform: scale(0.96);
  transition: transform 0.7s var(--ease-out);
}
.lb.is-open .lb__stage {
  transform: scale(1);
}

#lbImg {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lb__cap {
  display: flex;
  gap: 24px;
  align-items: baseline;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.lb__title {
  font-family: var(--serif);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-size: 16px;
  color: var(--ink);
}

.lb__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.3s,
    border-color 0.3s,
    transform 0.4s var(--ease);
}
.lb__close span {
  position: absolute;
  width: 16px;
  height: 1px;
  background: var(--ink);
  transform-origin: center;
}
.lb__close span:nth-child(1) {
  transform: rotate(45deg);
}
.lb__close span:nth-child(2) {
  transform: rotate(-45deg);
}
.lb__close:hover {
  background: var(--ink);
  transform: rotate(90deg);
}
.lb__close:hover span {
  background: var(--bg);
}

.lb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  cursor: none;
  transition:
    background 0.3s,
    color 0.3s;
}
.lb__nav--prev {
  left: 24px;
}
.lb__nav--next {
  right: 24px;
}
.lb__nav:hover {
  background: var(--ink);
  color: var(--bg);
}

@media (max-width: 720px) {
  .lb__nav {
    width: 46px;
    height: 46px;
  }
  .lb__nav--prev {
    left: 12px;
  }
  .lb__nav--next {
    right: 12px;
  }
}
