:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #0e0e10;
  --mute: #6b6b72;
  --line: #e6e6ea;
  --purple: #c9a2fb;
  --pink: #ffb2e2;
  --cyan: #7ee9f8;
  --orange: #ffa64a;
  --gutter: clamp(16px, 4vw, 56px);
  --jp: "Zen Kaku Gothic New", system-ui, sans-serif;
  --en: "Inter Tight", "Zen Kaku Gothic New", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--jp);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--en);
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ---- nav ---- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gutter);
  mix-blend-mode: difference;
  color: #fff;
}
.nav a { text-decoration: none; }
.nav__logo { font-family: var(--en); font-weight: 900; font-size: 1.15rem; letter-spacing: -.02em; }
.nav__links { display: flex; gap: clamp(14px, 3vw, 32px); font-family: var(--en); font-weight: 500; font-size: .9rem; }
.nav__links a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---- hero ---- */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 2rem;
  padding: 88px var(--gutter) 48px;
}
.hero__title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(3.2rem, 9vw, 8.5rem);
  line-height: 1.1;
  letter-spacing: -.04em;
}
.slot-line { display: inline-block; white-space: nowrap; }
.slot {
  display: inline-block; vertical-align: top;
  width: 1em; height: 1.1em; overflow: hidden;
}
.slot__reel { display: block; will-change: transform; }
.slot__reel > span { display: block; height: 1.1em; text-align: center; }
.slot__punct { display: inline-block; }
.slot.is-miss + .slot__punct { color: #5d3fd3; }
.hero__lead span { display: inline-block; }
.hero__lead { margin: 1.6rem 0 0; max-width: 26em; color: var(--mute); font-size: 1rem; }

.stage { margin: 0; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.stage__canvas { position: relative; width: min(100%, calc(100svh - 190px)); aspect-ratio: 1; }
#portrait { width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: crosshair; }
.stage__fallback { width: 100%; height: 100%; object-fit: contain; }

/* ---- marquee ---- */
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; padding: .35em 0; border-block: 1px solid var(--ink); }
.marquee__track {
  display: flex; width: max-content; gap: .5em; align-items: center;
  font-family: var(--en); font-weight: 900; font-size: clamp(2.4rem, 7vw, 6rem); line-height: 1.1; letter-spacing: -.03em;
  animation: marquee 28s linear infinite;
}
.marquee__track span:nth-of-type(4n+2) { color: transparent; -webkit-text-stroke: 1.5px var(--paper); }
.marquee__track i { font-style: normal; font-size: .45em; color: var(--purple); }
.marquee__track i:nth-of-type(4n+2) { color: var(--pink); }
.marquee__track i:nth-of-type(4n+3) { color: var(--cyan); }
.marquee__track i:nth-of-type(4n+4) { color: var(--orange); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- sections ---- */
.section-title {
  margin: 0 0 clamp(2rem, 5vw, 4rem);
  font-family: var(--en); font-weight: 900;
  font-size: clamp(4rem, 15vw, 13rem); line-height: .85; letter-spacing: -.06em;
}

.works { background: var(--ink); color: var(--paper); padding: clamp(72px, 12vw, 160px) var(--gutter); }
.works .section-title { color: var(--paper); }
.work-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #2c2c31; }
.work {
  position: relative;
  display: grid; grid-template-columns: 4.5rem 1fr auto 2.5rem; align-items: center; gap: 1rem;
  padding: clamp(20px, 3vw, 36px) 0;
  border-bottom: 1px solid #2c2c31;
  text-decoration: none;
  transition: padding .3s, color .3s;
}
.work::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1);
  background: var(--accent, var(--purple)); transform: scaleY(0); transform-origin: bottom;
  transition: transform .35s cubic-bezier(.2,.7,.2,1); z-index: 0;
}
.work > * { position: relative; z-index: 1; }
.work-list li:nth-child(4n+1) .work { --accent: var(--purple); }
.work-list li:nth-child(4n+2) .work { --accent: var(--pink); }
.work-list li:nth-child(4n+3) .work { --accent: var(--orange); }
.work-list li:nth-child(4n+4) .work { --accent: var(--cyan); }
.work:hover, .work:focus-visible { color: var(--ink); padding-left: 1rem; }
.work:hover::before, .work:focus-visible::before { transform: scaleY(1); }
.work__no { font-family: var(--en); font-weight: 500; font-size: .9rem; color: #8a8a92; }
.work:hover .work__no { color: var(--ink); }
.work__body { display: flex; flex-direction: column; }
.work__name { font-weight: 900; font-size: clamp(1.6rem, 4.4vw, 3.4rem); line-height: 1.15; letter-spacing: -.02em; }
.work__desc { color: #a5a5ad; font-size: .95rem; }
.work:hover .work__desc { color: var(--ink); }
.work__url { font-family: var(--en); font-size: .85rem; color: #8a8a92; }
.work:hover .work__url { color: var(--ink); }
.work__arrow { font-size: 1.8rem; transition: transform .3s; }
.work:hover .work__arrow { transform: translate(4px, -4px); }

.about {
  padding: clamp(72px, 12vw, 160px) var(--gutter);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; align-items: end;
}
.about .section-title { grid-column: 1 / -1; }
.about__big { margin: 0; font-weight: 900; font-size: clamp(2.2rem, 5.5vw, 4.6rem); line-height: 1.15; letter-spacing: -.03em; }
.about__body { max-width: 34em; }
.about__name {
  margin: 0 0 .8rem;
  height: 1.25em; overflow: hidden;
  font-family: var(--en); font-weight: 900;
  font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.25; letter-spacing: -.03em;
}
.name-reel { display: block; will-change: transform; }
.name-reel > span { display: block; height: 1.25em; }
.about__word { display: inline-block; vertical-align: top; height: 1.15em; overflow: hidden; }
.about__word .name-reel > span { height: 1.15em; }
.about__likes { margin: 0; color: var(--mute); font-size: 1.05rem; }
.about__likes span { color: var(--ink); font-weight: 700; margin-right: 1em; }
.about__likes span:last-child { margin-right: 0; }

.contact {
  background: var(--purple); color: var(--ink);
  padding: clamp(72px, 12vw, 140px) var(--gutter) 32px;
}
.contact .eyebrow { color: var(--ink); }
.contact__links { list-style: none; margin: 0; padding: 0; }
.contact__big {
  display: inline-block; text-decoration: none;
  font-family: var(--en); font-weight: 900;
  font-size: clamp(3.6rem, 13vw, 11rem); line-height: .95; letter-spacing: -.05em;
  transition: transform .3s;
}
.contact__big:hover { transform: translateX(10px); }
.contact__small { margin: clamp(48px, 8vw, 96px) 0 0; font-family: var(--en); font-size: .8rem; }

/* ---- small screens ---- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 80px; gap: 1rem; }
  .stage { order: -1; }
  .stage__canvas { width: min(100%, 520px); }
  .work { grid-template-columns: 2.6rem 1fr 1.8rem; }
  .work__url { display: none; }
  .about { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  *, *::before { transition: none !important; }
}
