@import url('https://fonts.googleapis.com/css2?family=Dela+Gothic+One&text=%E3%83%AF%E3%82%AF%E3%83%89%E3%83%B3%E2%80%BC&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Geist:wght@300..800&family=Geist+Mono:wght@400;500&family=Instrument+Serif:ital@0;1&display=swap');

/* ─────────────────────────────  Tokens  ───────────────────────────── */
:root {
  --bg: #0b0b0a;
  --bg-2: #121210;
  --bg-3: #1a1a17;
  --fg: #eeebe3;
  --muted: #9a978d;
  --dim: #5d5b54;
  --line: rgba(238, 235, 227, .11);
  --line-strong: rgba(238, 235, 227, .22);
  --accent: #d4f25c;
  --accent-ink: #0b0b0a;

  --sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --serif: 'Instrument Serif', Georgia, serif;
  --comic: 'Bangers', 'Impact', sans-serif;
  --jp: 'Dela Gothic One', 'Yu Gothic', 'Hiragino Sans', sans-serif;
  --paper: #eeebe3;
  --ink: #0b0b0a;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --radius: clamp(18px, 2vw, 28px);
}

/* ─────────────────────────────  Base  ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--fg);
  background: var(--bg);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { color: var(--accent-ink); background: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

main { overflow-x: clip; }
.shell { width: calc(100% - var(--gutter) * 2); max-width: 1480px; margin: 0 auto; }
.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.02em; }
.accent { color: var(--accent); }
.mono { font-family: var(--mono); }
.label {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--muted);
  font: 500 11px/1 var(--mono);
  letter-spacing: .14em; text-transform: uppercase;
}
.label::before { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); content: ''; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Film grain */
.grain {
  position: fixed; z-index: 90; inset: -50%;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .07;
  pointer-events: none;
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
}

/* ─────────────────────────────  Preloader  ───────────────────────────── */
.loader {
  position: fixed; z-index: 100; inset: 0;
  display: grid; place-items: center;
  background: var(--bg);
  transition: transform 1s var(--ease-io);
}
.loader.done { transform: translateY(-100%); }
.loader.gone { display: none; }
.loader-name {
  display: flex; overflow: hidden;
  font: 400 clamp(2.4rem, 7vw, 5.5rem)/1 var(--serif);
  font-style: italic;
  letter-spacing: -.02em;
}
.loader-name span { display: inline-block; transform: translateY(110%); animation: rise .9s var(--ease) forwards; }
.loader-count {
  position: absolute; right: var(--gutter); bottom: var(--gutter);
  font: 400 clamp(3rem, 10vw, 9rem)/.8 var(--sans);
  letter-spacing: -.06em;
  font-variant-numeric: tabular-nums;
}
.loader-meta { position: absolute; left: var(--gutter); bottom: var(--gutter); }
.loader-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); }
@keyframes rise { to { transform: translateY(0); } }

/* ─────────────────────────────  Cursor  ───────────────────────────── */
.cursor, .cursor-dot {
  position: fixed; z-index: 95; top: 0; left: 0;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transition: opacity .3s;
}
.cursor-on .cursor, .cursor-on .cursor-dot { opacity: 1; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); }
.cursor {
  display: grid; place-items: center;
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1px solid rgba(238, 235, 227, .45);
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s, opacity .3s;
}
.cursor span { color: var(--accent-ink); font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; opacity: 0; transition: opacity .2s; }
.cursor.is-link { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: transparent; background: rgba(212, 242, 92, .14); }
.cursor.is-view { width: 96px; height: 96px; margin: -48px 0 0 -48px; border-color: transparent; background: var(--accent); }
.cursor.is-view span { opacity: 1; }
.cursor-on.cursor-hide .cursor, .cursor-on.cursor-hide .cursor-dot { opacity: 0; }

/* ─────────────────────────────  Navigation  ───────────────────────────── */
.nav {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0;
  padding: 18px 0;
  transition: transform .6s var(--ease);
}
.nav.hidden { transform: translateY(-110%); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 500 13px/1.05 var(--sans); letter-spacing: -.01em; }
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--fg); color: var(--bg);
  font: 400 italic 20px/1 var(--serif);
  transition: background .3s, transform .6s var(--ease);
}
.brand:hover .brand-mark { background: var(--accent); transform: rotate(-12deg); }
.brand-text small { display: block; color: var(--muted); font-size: 12px; }

.nav-pill {
  position: relative;
  display: flex; gap: 2px; padding: 5px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(18, 18, 16, .6);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.nav-pill a {
  position: relative; z-index: 1;
  padding: 10px 16px;
  border-radius: 99px;
  color: var(--muted);
  font-size: 13px; font-weight: 500;
  transition: color .3s;
}
.nav-pill a:hover, .nav-pill a.active { color: var(--fg); }
.nav-pill a.active { color: var(--accent-ink); }
.nav-indicator {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0;
  width: 0; border-radius: 99px;
  background: var(--accent);
  opacity: 0;
  transition: transform .55s var(--ease), width .55s var(--ease), opacity .3s;
}

.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; }
.roll > span { display: block; transition: transform .5s var(--ease); }
.roll > span::after { position: absolute; left: 0; top: 100%; content: attr(data-text); }
a:hover .roll > span, button:hover .roll > span { transform: translateY(-100%); }

.status { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font: 500 12px var(--mono); letter-spacing: .04em; }
.status i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.status i::after { position: absolute; inset: -4px; border: 1px solid var(--accent); border-radius: 50%; content: ''; animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

.menu-btn { display: none; width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 50%; background: rgba(18, 18, 16, .6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.menu-btn i { display: block; width: 16px; height: 1.5px; margin: 4px auto; background: var(--fg); transition: transform .45s var(--ease); }
.menu-open .menu-btn i:first-child { transform: translateY(2.75px) rotate(45deg); }
.menu-open .menu-btn i:last-child { transform: translateY(-2.75px) rotate(-45deg); }

.mobile-menu {
  position: fixed; z-index: 45; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--gutter) 40px;
  background: var(--bg);
  clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path .8s var(--ease-io);
  visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.mobile-menu a { display: flex; align-items: baseline; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: clamp(2.6rem, 12vw, 4rem); font-weight: 500; letter-spacing: -.05em; }
.mobile-menu a small { color: var(--dim); font: 500 11px var(--mono); letter-spacing: .1em; }
.mobile-menu .label { margin-top: 32px; }

/* ─────────────────────────────  Buttons  ───────────────────────────── */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 8px 0 26px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  font-size: 14px; font-weight: 500;
  isolation: isolate;
  transition: border-color .4s, color .4s;
}
.btn::before {
  position: absolute; z-index: -1; inset: 0;
  border-radius: inherit;
  background: var(--fg);
  content: '';
  transform: translateY(101%);
  transition: transform .55s var(--ease);
}
.btn:hover { color: var(--bg); border-color: var(--fg); }
.btn:hover::before { transform: translateY(0); }
.btn-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--fg); color: var(--bg); transition: transform .5s var(--ease), background .4s; }
.btn:hover .btn-icon { background: var(--accent); transform: rotate(-45deg); }
.btn-icon svg { width: 16px; height: 16px; }
.btn.solid { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.btn.solid::before { background: var(--fg); }
.btn.solid .btn-icon { background: var(--accent-ink); color: var(--accent); }
.btn.solid:hover .btn-icon { background: var(--accent-ink); color: var(--accent); }
.btn.plain { padding: 0 26px; }

.magnetic { display: inline-block; will-change: transform; }

/* ─────────────────────────────  Hero  ───────────────────────────── */
.hero {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 100svh;
  padding: 130px 0 40px;
  overflow: hidden;
}
.flow { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero::after {
  position: absolute; z-index: -1; inset: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 45%, transparent 30%, var(--bg) 100%);
  content: '';
  pointer-events: none;
}
.hero-meta { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.hero-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 3vw; align-items: center; }
.hero-title {
  margin: 4vh 0 3vh;
  font-size: clamp(3.1rem, 6.9vw, 7.8rem);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: .88;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.3s var(--ease); }
.is-ready .hero-title .line > span { transform: translateY(0); }
.hero-title .line:nth-child(2) > span { transition-delay: .08s; }
.hero-title .line:nth-child(3) > span { transition-delay: .16s; }
.hero-title .line:nth-child(4) > span { transition-delay: .24s; }
.hero-title .serif { font-size: 1.08em; letter-spacing: -.035em; padding-right: .04em; }
.hero-title .indent { padding-left: 8vw; }

/* ───────── Manga panel ───────── */
.manga { position: relative; justify-self: end; width: min(100%, 420px); margin: 56px 10px 0 0; }
.manga-panel {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 0 6px var(--paper), inset 0 0 0 3px var(--ink), 18px 22px 0 -2px var(--accent);
  transform: rotate(2.5deg) scale(.92);
  opacity: 0;
  transition: transform 1.2s var(--ease) .35s, opacity .8s var(--ease) .35s;
}
.is-ready .manga-panel { transform: rotate(2.5deg); opacity: 1; }
.speed {
  position: absolute; inset: -40%;
  background: repeating-conic-gradient(from 0deg at 50% 50%, var(--ink) 0deg .55deg, transparent .55deg 3.2deg, var(--ink) 3.2deg 3.5deg, transparent 3.5deg 7deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 17%, #000 38%);
  mask-image: radial-gradient(circle at 50% 50%, transparent 17%, #000 38%);
  animation: jitter .3s steps(2) infinite;
}
.manga:hover .speed { animation-duration: .12s; }
@keyframes jitter { 50% { transform: rotate(1.6deg) scale(1.02); } }
.manga-panel img {
  position: absolute; left: 50%; bottom: -6%;
  width: 104%; max-width: none;
  filter: url(#manga-ink) contrast(1.05);
  transform: translateX(-50%);
  transition: transform 1s var(--ease);
}
.manga:hover .manga-panel img { transform: translateX(-50%) scale(1.05); }
.tone {
  position: absolute; inset: 0;
  background: radial-gradient(circle, var(--ink) 32%, transparent 36%) 0 0 / 6px 6px;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 38%);
  mask-image: linear-gradient(to top, #000 0%, transparent 38%);
  opacity: .55;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.narration {
  position: absolute; top: 14px; left: 14px;
  padding: 7px 10px;
  background: var(--ink); color: var(--paper);
  font: 500 10px/1 var(--mono);
  letter-spacing: .14em; text-transform: uppercase;
}
.sfx {
  position: absolute; top: 12%; right: 6%;
  color: var(--accent);
  font: 400 clamp(2.4rem, 4.2vw, 3.8rem)/.95 var(--jp);
  writing-mode: vertical-rl;
  text-orientation: upright;
  -webkit-text-stroke: 1.5px var(--ink);
  paint-order: stroke fill;
  transform: rotate(8deg);
  text-shadow: 3px 3px 0 var(--ink);
  animation: shake 1.6s steps(1) infinite;
}
@keyframes shake { 0%, 100% { translate: 0 0; } 25% { translate: 2px -1px; } 50% { translate: -1px 2px; } 75% { translate: 1px 1px; } }
.bubble {
  position: absolute; left: -16%; bottom: 20%;
  padding: 20px 26px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--paper); color: var(--ink);
  font: 400 clamp(1.1rem, 1.6vw, 1.45rem)/1.05 var(--comic);
  letter-spacing: .03em;
  text-align: center;
  transform: rotate(-6deg) scale(0);
  transform-origin: 85% 90%;
  transition: transform .7s cubic-bezier(.34, 1.56, .64, 1) 1.4s;
  box-shadow: 5px 5px 0 var(--ink);
}
.bubble::after {
  position: absolute; right: 14%; bottom: -21px;
  width: 26px; height: 24px;
  background: var(--paper);
  border-right: 3px solid var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  box-shadow: inset -3px 0 0 var(--ink);
  content: '';
  transform: skewX(-25deg);
}
.is-ready .bubble { transform: rotate(-6deg) scale(1); }
.manga-caption { display: flex; justify-content: space-between; margin-top: 26px; color: var(--muted); font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; }

.portrait-pill {
  position: relative;
  display: inline-block;
  width: 1.75em; height: .78em;
  margin: 0 .12em;
  overflow: hidden;
  border-radius: 99px;
  background: var(--accent);
  vertical-align: -.02em;
  transition: width .8s var(--ease);
}
.portrait-pill:hover { width: 2.3em; }
.portrait-pill img {
  position: absolute; left: 50%; top: 4%;
  width: 1.05em; height: auto;
  transform: translateX(-50%);
  filter: grayscale(1) contrast(1.15);
  mix-blend-mode: multiply;
}

.scribble { position: relative; display: inline-block; }
.scribble svg {
  position: absolute; left: -3%; bottom: -.1em;
  width: 106%; height: .32em;
  overflow: visible;
  pointer-events: none;
}
.scribble path { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease) 1.1s; }
.is-ready .scribble path { stroke-dashoffset: 0; }

.hero-foot { display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 40px; align-items: end; }
.hero-lede { max-width: 440px; margin: 0; color: var(--muted); font-size: clamp(15px, 1.2vw, 17px); line-height: 1.6; }
.hero-lede strong { color: var(--fg); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease) .5s, transform 1s var(--ease) .5s; }
.is-ready .fade-up { opacity: 1; transform: none; }

.badge {
  position: relative;
  display: grid; place-items: center;
  width: 124px; height: 124px;
}
.badge svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite; }
.badge text { fill: var(--muted); font: 500 10.5px var(--mono); letter-spacing: .22em; text-transform: uppercase; }
.badge-core { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--fg); color: var(--bg); transition: background .3s, transform .5s var(--ease); }
.badge:hover .badge-core { background: var(--accent); transform: scale(1.12); }
.badge-core svg { width: 18px; height: 18px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─────────────────────────────  Marquee  ───────────────────────────── */
.marquee {
  position: relative;
  display: flex; overflow: hidden;
  padding: clamp(18px, 3vw, 34px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  user-select: none;
}
.marquee-track { display: flex; flex-shrink: 0; will-change: transform; }
.marquee-item {
  display: inline-flex; align-items: center; gap: clamp(20px, 3vw, 44px);
  padding-right: clamp(20px, 3vw, 44px);
  font-size: clamp(2.4rem, 6.4vw, 6.4rem);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: 1;
}
.marquee-item .outline { color: transparent; -webkit-text-stroke: 1px var(--line-strong); }
.marquee-item .serif { color: var(--muted); }
.marquee-item svg { width: .45em; height: .45em; color: var(--accent); flex: 0 0 auto; }

/* ─────────────────────────────  Sections  ───────────────────────────── */
.section { position: relative; padding: clamp(96px, 14vw, 200px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: clamp(48px, 7vw, 96px); }
.section-title {
  margin: 22px 0 0;
  font-size: clamp(2.6rem, 6.2vw, 6.4rem);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: .92;
}
.section-title .serif { font-size: 1.08em; }
.section-note { max-width: 380px; margin: 0 0 6px auto; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* Split-line reveal */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 28ms); }
.split.visible .w > span { transform: translateY(0); }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.visible { opacity: 1; transform: none; }

/* ─────────────────────────────  About  ───────────────────────────── */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.about-visual { position: sticky; top: 110px; }
.arch {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 999px 999px var(--radius) var(--radius);
  background: var(--bg-3);
}
.arch::before {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 38%, rgba(212, 242, 92, .95), rgba(212, 242, 92, .35) 42%, transparent 70%);
  content: '';
  opacity: .0;
  transition: opacity 1s var(--ease);
}
.arch:hover::before { opacity: .55; }
.arch img {
  position: absolute; left: 50%; bottom: -2%;
  width: 118%; max-width: none;
  transform: translate(-50%, var(--py, 0px));
  filter: grayscale(1) contrast(1.08) brightness(.95);
  transition: filter 1s var(--ease);
}
.arch:hover img { filter: grayscale(0) contrast(1.02); }
.arch::after {
  position: absolute; inset: 0;
  background: radial-gradient(circle, rgba(11, 11, 10, .9) 30%, transparent 34%) 0 0 / 5px 5px;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 45%);
  mask-image: linear-gradient(to top, #000, transparent 45%);
  content: '';
  pointer-events: none;
}
.arch-caption { display: flex; justify-content: space-between; margin-top: 16px; color: var(--muted); font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.about-visual .badge { position: absolute; top: 14%; right: -44px; }
.about-visual .badge .badge-core { background: var(--accent); }
.about-visual .badge-core svg { width: 22px; height: 22px; }

.scrub {
  margin: 28px 0 0;
  font-size: clamp(1.7rem, 3.2vw, 3.3rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.14;
}
.scrub .sw { opacity: .16; transition: opacity .25s; }
.scrub .sw.on { opacity: 1; }
.scrub .serif { color: var(--accent); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line); }
.stat { padding: 26px 20px 0 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
.stat-num { font-size: clamp(2.8rem, 5vw, 4.8rem); font-weight: 400; letter-spacing: -.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-num sup { color: var(--accent); font-size: .4em; vertical-align: top; }
.stat p { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.pill { padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 99px; color: var(--muted); font-size: 13px; transition: color .3s, border-color .3s, background .3s; }
.pill:hover { color: var(--accent-ink); border-color: var(--accent); background: var(--accent); }

/* ─────────────────────────────  Work (stacked cards)  ───────────────────────────── */
.stack-cards { position: relative; }
.card {
  --p: 0;
  position: sticky;
  top: calc(100px + var(--n) * 14px);
  margin-bottom: 7vh;
  transform-origin: 50% 0;
  transform: scale(calc(1 - var(--p) * .06));
}
.card:last-child { margin-bottom: 0; }
.card-inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 64px);
  min-height: min(76vh, 680px);
  padding: clamp(22px, 3vw, 40px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  box-shadow: 0 -30px 60px -20px rgba(0, 0, 0, .7);
}
.card-inner::after {
  position: absolute; inset: 0;
  background: #000;
  content: '';
  opacity: calc(var(--p) * .55);
  pointer-events: none;
}
.card-info { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.card-top b { color: var(--fg); font-weight: 500; }
.card-title {
  margin: 0;
  font-size: clamp(3rem, 7vw, 7.4rem);
  font-weight: 500;
  letter-spacing: -.07em;
  line-height: .85;
}
.card-desc { max-width: 400px; margin: 22px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 99px; color: var(--muted); font: 500 11px var(--mono); letter-spacing: .04em; }
.card-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }

.card-media {
  position: relative;
  display: block;
  min-height: 300px;
  overflow: hidden;
  border-radius: calc(var(--radius) - 8px);
  background: var(--bg-3);
}
.card-media img {
  position: absolute; inset: 0;
  width: 100%; height: 115%;
  object-fit: cover; object-position: top center;
  transform: translateY(var(--iy, 0%)) scale(1.02);
  transition: transform 1.2s var(--ease), filter .8s;
  filter: saturate(.85);
}
.card-media:hover img { transform: translateY(var(--iy, 0%)) scale(1.07); filter: saturate(1.05); }
.card-media::after { position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); content: ''; }
.card-index {
  position: absolute; z-index: 2; left: 18px; bottom: 12px;
  color: var(--fg);
  font: 400 italic clamp(3rem, 7vw, 6rem)/1 var(--serif);
  mix-blend-mode: difference;
  pointer-events: none;
}

.work-more { display: flex; justify-content: center; margin-top: clamp(56px, 8vw, 110px); }

/* ─────────────────────────────  Capabilities  ───────────────────────────── */
.caps { border-top: 1px solid var(--line); }
.cap {
  position: relative;
  display: grid; grid-template-columns: 90px minmax(0, 1.1fr) minmax(0, 1fr) 150px;
  gap: 24px; align-items: center;
  padding: clamp(24px, 3vw, 38px) clamp(8px, 1.4vw, 20px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
  transition: color .5s var(--ease);
}
.cap::before {
  position: absolute; z-index: -1; inset: 0;
  background: var(--accent);
  content: '';
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform .6s var(--ease);
}
.cap:hover { color: var(--accent-ink); }
.cap:hover::before { transform: scaleY(1); }
.cap-no { color: var(--dim); font: 500 12px var(--mono); transition: color .5s; }
.cap h3 { margin: 0; font-size: clamp(1.8rem, 3.6vw, 3.4rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; transition: transform .6s var(--ease); }
.cap:hover h3 { transform: translateX(12px); }
.cap h3 .serif { font-size: 1.08em; }
.cap p { margin: 0; max-width: 420px; color: var(--muted); font-size: 15px; line-height: 1.55; transition: color .5s; }
.cap-kind { justify-self: end; color: var(--muted); font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; transition: color .5s; }
.cap:hover .cap-no, .cap:hover p, .cap:hover .cap-kind { color: rgba(11, 11, 10, .7); }

/* ─────────────────────────────  Stack  ───────────────────────────── */
.stack-rows { display: grid; gap: 14px; margin-top: clamp(48px, 6vw, 80px); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.chip-row { display: flex; overflow: hidden; }
.chip-track { display: flex; flex-shrink: 0; gap: 14px; padding-right: 14px; animation: slide 40s linear infinite; }
.chip-row.rev .chip-track { animation-direction: reverse; }
.stack-rows:hover .chip-track { animation-play-state: paused; }
.chip {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 26px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--bg-2);
  font-size: clamp(16px, 1.6vw, 22px); font-weight: 500;
  letter-spacing: -.02em;
  white-space: nowrap;
  transition: border-color .3s, background .3s, color .3s;
}
.chip small { color: var(--dim); font: 500 10px var(--mono); letter-spacing: .12em; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
@keyframes slide { to { transform: translateX(-100%); } }

/* ─────────────────────────────  Quote  ───────────────────────────── */
.quote { padding: clamp(80px, 12vw, 180px) 0; text-align: center; }
.quote blockquote {
  max-width: 1200px;
  margin: 0 auto;
  font: 400 clamp(2.6rem, 7vw, 7.6rem)/.98 var(--serif);
  letter-spacing: -.035em;
}
.quote blockquote .ch { color: rgba(238, 235, 227, .12); transition: color .3s; }
.quote blockquote .ch.on { color: var(--fg); }
.quote blockquote em .ch.on { color: var(--accent); }
.quote cite { display: block; margin-top: 40px; color: var(--muted); font: 500 11px var(--mono); letter-spacing: .14em; font-style: normal; text-transform: uppercase; }
.quote-mark { display: block; width: 44px; margin: 0 auto 34px; color: var(--accent); }

/* ─────────────────────────────  Footer  ───────────────────────────── */
.footer { position: relative; padding: clamp(90px, 12vw, 160px) 0 0; overflow: hidden; border-top: 1px solid var(--line); background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 60px; align-items: end; }
.footer-title { margin: 24px 0 0; font-size: clamp(3.2rem, 9vw, 9.5rem); font-weight: 500; letter-spacing: -.07em; line-height: .86; }
.footer-title .serif { color: var(--accent); font-size: 1.06em; }
.footer-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 34px; }
.footer-copy { max-width: 380px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.hello {
  display: grid; place-items: center;
  width: clamp(150px, 15vw, 190px); height: clamp(150px, 15vw, 190px);
  clip-path: polygon(50.0% 0.0%, 56.1% 7.4%, 64.1% 2.0%, 67.9% 10.9%, 77.0% 7.9%, 78.2% 17.5%, 87.8% 17.3%, 86.2% 26.8%, 95.5% 29.2%, 91.3% 37.9%, 99.5% 42.9%, 93.0% 50.0%, 99.5% 57.1%, 91.3% 62.1%, 95.5% 70.8%, 86.2% 73.2%, 87.8% 82.7%, 78.2% 82.5%, 77.0% 92.1%, 67.9% 89.1%, 64.1% 98.0%, 56.1% 92.6%, 50.0% 100.0%, 43.9% 92.6%, 35.9% 98.0%, 32.1% 89.1%, 23.0% 92.1%, 21.8% 82.5%, 12.2% 82.7%, 13.8% 73.2%, 4.5% 70.8%, 8.7% 62.1%, 0.5% 57.1%, 7.0% 50.0%, 0.5% 42.9%, 8.7% 37.9%, 4.5% 29.2%, 13.8% 26.8%, 12.2% 17.3%, 21.8% 17.5%, 23.0% 7.9%, 32.1% 10.9%, 35.9% 2.0%, 43.9% 7.4%);
  background: var(--accent); color: var(--accent-ink);
  font: 400 24px/1 var(--comic); letter-spacing: .04em;
  animation: burst 6s linear infinite;
  text-align: center;
  transition: transform .6s var(--ease);
}
.hello svg { display: block; width: 22px; margin: 8px auto 0; transition: transform .5s var(--ease); }
.hello:hover svg { transform: rotate(-45deg); }
.hello > span { display: block; animation: burst 6s linear infinite reverse; }
@keyframes burst { to { transform: rotate(360deg); } }
.email {
  position: relative;
  display: inline-block;
  font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 400;
  letter-spacing: -.03em;
}
.email::after { position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; content: ''; transform-origin: right; transition: transform .6s var(--ease); }
.email:hover { color: var(--accent); }
.email:hover::after { transform: scaleX(0); transform-origin: left; animation: line-in .6s var(--ease) .35s forwards; }
@keyframes line-in { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }

.footer-links { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 30px; margin-top: clamp(70px, 9vw, 130px); padding: 28px 0; border-top: 1px solid var(--line); }
.footer-links h4 { margin: 0 0 14px; color: var(--dim); font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.footer-links ul { margin: 0; padding: 0; list-style: none; }
.footer-links li + li { margin-top: 8px; }
.footer-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 15px; transition: color .3s; }
.footer-links a:hover { color: var(--fg); }
.footer-links a svg { width: 12px; opacity: 0; transform: translate(-4px, 4px); transition: opacity .3s, transform .4s var(--ease); }
.footer-links a:hover svg { opacity: 1; transform: none; }
.to-top { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; transition: color .3s; }
.to-top:hover { color: var(--accent); }

.wordmark {
  display: block;
  width: max-content;
  margin: 10px auto -.2em;
  color: transparent;
  font-size: 19.2vw;
  font-weight: 600;
  letter-spacing: -.075em;
  line-height: .8;
  text-align: center;
  white-space: nowrap;
  -webkit-text-stroke: 1px var(--line-strong);
  background: linear-gradient(180deg, rgba(238, 235, 227, .14), transparent 80%);
  -webkit-background-clip: text; background-clip: text;
  user-select: none;
}

/* ─────────────────────────────  Archive page  ───────────────────────────── */
.archive-hero { position: relative; padding: clamp(150px, 20vh, 230px) 0 clamp(60px, 8vw, 110px); }
.archive-title {
  margin: 26px 0 0;
  font-size: clamp(4rem, 15vw, 16rem);
  font-weight: 500;
  letter-spacing: -.075em;
  line-height: .8;
}
.archive-title sup { color: var(--accent); font: 400 .16em/1 var(--mono); letter-spacing: 0; vertical-align: top; margin-left: .2em; }
.archive-title .serif { font-size: 1.05em; }
.archive-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: clamp(40px, 5vw, 70px); }
.archive-intro p { max-width: 460px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.archive-intro .hint { justify-self: end; align-self: end; }

.fan { position: absolute; top: 30%; right: 4%; width: min(38vw, 520px); aspect-ratio: 16 / 10; }
.fan img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55);
  transition: transform 1s var(--ease), filter .6s;
  filter: grayscale(.6) brightness(.7);
}
.fan img:nth-child(1) { transform: rotate(-9deg) translate(-16%, 6%); }
.fan img:nth-child(2) { transform: rotate(5deg) translate(10%, -8%); }
.fan img:nth-child(3) { transform: rotate(-1deg); filter: none; }
.fan:hover img:nth-child(1) { transform: rotate(-14deg) translate(-34%, 10%); }
.fan:hover img:nth-child(2) { transform: rotate(10deg) translate(26%, -14%); }
.fan:hover img:nth-child(3) { transform: rotate(0) scale(1.04); }

.index-head, .row { display: grid; grid-template-columns: 70px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) 56px; gap: 24px; align-items: center; }
.index-head { padding: 0 0 16px; border-bottom: 1px solid var(--line); color: var(--dim); font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.row {
  position: relative;
  padding: clamp(22px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  transition: color .4s;
}
.row::before { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--accent); content: ''; transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.row:hover::before { transform: scaleX(1); }
.row-no { color: var(--dim); font: 500 12px var(--mono); }
.row h3 { margin: 0; font-size: clamp(2.2rem, 5.4vw, 5.6rem); font-weight: 500; letter-spacing: -.065em; line-height: .95; transition: transform .7s var(--ease), color .4s; }
.row:hover h3 { transform: translateX(20px); color: var(--accent); }
.row-kind { color: var(--fg); font-size: 15px; }
.row-kind small { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.row .tags { gap: 6px; }
.row-go { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--line-strong); border-radius: 50%; transition: background .4s, color .4s, border-color .4s, transform .6s var(--ease); }
.row-go svg { width: 16px; }
.row:hover .row-go { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); transform: rotate(45deg); }
.row-link { position: absolute; inset: 0; z-index: 1; }
.row-thumb { display: none; }

.preview {
  position: fixed; z-index: 40; top: 0; left: 0;
  width: clamp(280px, 26vw, 420px); aspect-ratio: 16 / 10;
  margin: calc(clamp(280px, 26vw, 420px) * -.3125) 0 0 calc(clamp(280px, 26vw, 420px) * -.5);
  overflow: hidden;
  border-radius: 16px;
  pointer-events: none;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .4s var(--ease), transform .5s var(--ease);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.preview.on { opacity: 1; transform: scale(1); }
.preview-inner { position: absolute; inset: 0; transition: transform .6s var(--ease-io); }
.preview img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* Page curtain transition */
.curtain { position: fixed; z-index: 99; inset: 0; background: var(--accent); transform: translateY(100%); pointer-events: none; }
.curtain.in { transform: translateY(0); transition: transform .7s var(--ease-io); }

/* ─────────────────────────────  Responsive  ───────────────────────────── */
@media (max-width: 1100px) {
  .hero-foot { grid-template-columns: 1fr auto; }
  .hero-foot .badge { display: none; }
  .bubble { left: -8%; }
  .cap { grid-template-columns: 60px minmax(0, 1fr) minmax(0, 1fr); }
  .cap-kind { display: none; }
  .about-visual .badge { right: -20px; }
}

@media (max-width: 860px) {
  .nav-pill, .nav .status { display: none; }
  .menu-btn { display: block; }
  .hero { padding-top: 120px; }
  .hero-title .indent { padding-left: 0; }
  .hero-body { grid-template-columns: 1fr; }
  .manga { justify-self: center; width: min(78%, 380px); margin: 10px 0 48px; }
  .bubble { left: -12%; bottom: 14%; }
  .hero-foot { grid-template-columns: 1fr; gap: 28px; }
  .section-head { grid-template-columns: 1fr; }
  .section-note { margin: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { position: relative; top: 0; max-width: 420px; }
  .about-visual .badge { right: -10px; width: 104px; height: 104px; }
  .card { position: relative; top: 0; transform: none; margin-bottom: 24px; }
  .card-inner { grid-template-columns: 1fr; min-height: 0; }
  .card-inner::after { display: none; }
  .card-media { order: -1; aspect-ratio: 16 / 10; min-height: 0; }
  .cap { grid-template-columns: 44px minmax(0, 1fr); }
  .cap p { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, auto); justify-content: start; column-gap: 60px; }
  .archive-intro { grid-template-columns: 1fr; }
  .fan { display: none; }
  .archive-intro .hint { justify-self: start; }
  .index-head { display: none; }
  .row { grid-template-columns: 1fr auto; gap: 14px 18px; }
  .row-no { grid-column: 1 / -1; }
  .row h3 { grid-column: 1; }
  .row-go { grid-column: 2; grid-row: 2; }
  .row-kind, .row .tags { grid-column: 1 / -1; }
  .row-thumb { display: block; grid-column: 1 / -1; grid-row: 1; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: var(--bg-3); }
  .row-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
  .preview { display: none; }
}

@media (max-width: 560px) {
  .brand-text { display: none; }
  .hero-meta .label:nth-child(2) { display: none; }
  .hero-title { font-size: clamp(2.7rem, 13.4vw, 4.4rem); }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .btn { height: 52px; }
  .card-top span:last-child { display: none; }
  .footer-links { grid-template-columns: 1fr 1fr; column-gap: 24px; }
}

@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-dot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .grain { animation: none; }
}
