/* ==========================================================================
   TASOGARE — 誰そ彼
   palette sampled from the works: night ink / teal / horizon cream / ember
   ========================================================================== */

:root {
  --ink: #050b0e;
  --ink-2: #08141a;
  --deep: #0c232b;
  --teal: #1d4c57;
  --sea: #3d8a94;
  --mist: #8fa6ab;
  --haze: #c1cdcc;
  --paper: #ebe5d8;
  --ember: #e9a46a;
  --line: rgba(235, 229, 216, .13);

  --font-serif: "Cormorant Garamond", "Shippori Mincho", "Times New Roman", serif;
  --font-mincho: "Shippori Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --font-sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(20px, 4.2vw, 72px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);

  --sky-a: #0b2028;
  --sky-b: #0f2f3a;
  --glow: rgba(233, 219, 190, .14);
  --mirror: 58%;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--ink);
  color: var(--paper);
  scrollbar-gutter: stable;
  scrollbar-color: rgba(235, 229, 216, .22) var(--ink);
  scrollbar-width: thin;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

html.is-locked, html.is-locked body { overflow: hidden; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

img { max-width: 100%; display: block; }

/* Japanese: break lines at phrase boundaries (Chrome), avoid orphans */
p, h1, h2, h3, li, dd, legend, figcaption {
  word-break: auto-phrase;
  line-break: strict;
  text-wrap: pretty;
}
button { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--ember); color: var(--ink); }

:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

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

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 400;
  padding: 10px 18px; border-radius: 8px;
  background: var(--paper); color: var(--ink);
  text-decoration: none; font-size: 14px;
  transition: top .3s;
}
.skip-link:focus { top: 16px; }

/* --------------------------------------------------------------------------
   Ambience: sky / grain / flash
   -------------------------------------------------------------------------- */
.sky {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 60% at 50% 105%, var(--glow), transparent 62%),
    linear-gradient(180deg, var(--sky-a), var(--sky-b));
  pointer-events: none;
}

.grain {
  position: fixed; inset: -60%;
  z-index: 70;
  pointer-events: none;
  background-image: var(--grain-url, none);
  background-size: 180px 180px;
  opacity: .1;
  animation: grain 1.2s steps(7) infinite;
  will-change: transform;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  14% { transform: translate(-4%, -7%); }
  28% { transform: translate(-11%, 3%); }
  42% { transform: translate(6%, -12%); }
  57% { transform: translate(-3%, 11%); }
  71% { transform: translate(9%, 5%); }
  85% { transform: translate(2%, -4%); }
  100% { transform: translate(0, 0); }
}

.flash {
  position: fixed; inset: 0; z-index: 95;
  background: #fffaf0;
  opacity: 0;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Loader
   -------------------------------------------------------------------------- */
.loader {
  --split: 50%;
  position: fixed; inset: 0; z-index: 100;
  color: var(--paper);
}
.no-js .loader { display: none; }
.loader__panel {
  position: absolute; left: 0; right: 0;
  background: var(--ink);
  will-change: transform;
}
.loader__panel--top { top: 0; height: var(--split); }
.loader__panel--bottom { top: var(--split); bottom: 0; }
.loader__panel--top::after,
.loader__panel--bottom::before {
  content: ""; position: absolute; left: 0; right: 0; height: 40vh;
  pointer-events: none;
}
.loader__panel--top::after { bottom: 0; background: linear-gradient(to top, rgba(29, 76, 87, .16), transparent); }
.loader__panel--bottom::before { top: 0; background: linear-gradient(to bottom, rgba(29, 76, 87, .1), transparent); }

.loader__wave {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}

.loader__ui { position: absolute; inset: 0; }

.loader__brand,
.loader__note,
.loader__meta { position: absolute; margin: 0; }

.loader__brand {
  left: var(--gutter);
  bottom: calc(100% - var(--split) + 20px);
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .5em;
}
.loader__note {
  left: var(--gutter);
  top: calc(var(--split) + 18px);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--mist);
  letter-spacing: .04em;
}
.loader__meta {
  right: var(--gutter);
  bottom: calc(100% - var(--split) + 18px);
  display: flex; gap: 22px; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--haze);
}
.loader__rec { display: inline-flex; align-items: center; gap: 8px; color: var(--ember); }
.loader__rec i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ember);
  animation: blink 1s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }
.loader__tc { font-variant-numeric: tabular-nums; color: var(--paper); }
.loader__pct { min-width: 3.4em; text-align: right; font-variant-numeric: tabular-nums; }

.gate {
  position: absolute;
  left: 0; right: 0;
  top: calc(var(--split) + clamp(64px, 11vh, 120px));
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 14px 18px;
  padding: 0 var(--gutter);
  visibility: hidden;
}
.gate__btn {
  position: relative;
  display: inline-flex; flex-direction: column; align-items: center;
  gap: 2px;
  min-width: 230px;
  padding: 16px 30px 14px;
  border: 1px solid rgba(235, 229, 216, .3);
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: border-color .4s, color .4s;
}
.gate__btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--paper);
  transform: translateY(101%);
  transition: transform .6s var(--ease-out);
}
.gate__btn:hover::before, .gate__btn:focus-visible::before { transform: translateY(0); }
.gate__btn:hover, .gate__btn:focus-visible { color: var(--ink); border-color: var(--paper); }
.gate__btn--primary { border-color: rgba(233, 164, 106, .7); }
.gate__btn--primary::before { background: var(--ember); }
.gate__btn--primary:hover, .gate__btn--primary:focus-visible { border-color: var(--ember); }
.gate__ja { font-family: var(--font-mincho); font-size: 15px; letter-spacing: .18em; }
.gate__en { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; opacity: .7; }
.gate__hint {
  flex-basis: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--mist);
}
.gate__hint svg { width: 15px; height: 15px; }

/* --------------------------------------------------------------------------
   Cursor
   -------------------------------------------------------------------------- */
.cursor { display: none; }
html.has-cursor .cursor { display: block; }
html.has-cursor body,
html.has-cursor a,
html.has-cursor button,
html.has-cursor label,
html.has-cursor [data-cursor] { cursor: none; }
html.has-cursor input,
html.has-cursor textarea { cursor: text; }

.cursor__dot,
.cursor__ring,
.cursor__label {
  position: fixed; left: 0; top: 0; z-index: 300;
  pointer-events: none;
  will-change: transform;
}
.cursor__dot {
  width: 6px; height: 6px; margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--paper);
  transition: opacity .3s, background-color .3s;
}
.cursor__ring {
  width: 38px; height: 38px;
  margin: -19px 0 0 -19px;
  border: 1px solid rgba(235, 229, 216, .45);
  border-radius: 50%;
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out),
              border-radius .45s var(--ease-out), border-color .3s, background-color .3s, opacity .3s;
}
.cursor__ring i {
  position: absolute; width: 14px; height: 14px;
  border: 0 solid var(--paper);
  opacity: 0;
  transition: opacity .25s, border-color .2s, transform .35s var(--ease-out);
}
.cursor__ring i:nth-child(1) { left: -1px; top: -1px; border-left-width: 1.5px; border-top-width: 1.5px; }
.cursor__ring i:nth-child(2) { right: -1px; top: -1px; border-right-width: 1.5px; border-top-width: 1.5px; }
.cursor__ring i:nth-child(3) { left: -1px; bottom: -1px; border-left-width: 1.5px; border-bottom-width: 1.5px; }
.cursor__ring i:nth-child(4) { right: -1px; bottom: -1px; border-right-width: 1.5px; border-bottom-width: 1.5px; }
.cursor__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--paper);
  opacity: 0;
  transition: opacity .3s, color .2s;
  white-space: nowrap;
}

.cursor.is-link .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(235, 229, 216, .07); border-color: rgba(235, 229, 216, .25); }
.cursor.is-link .cursor__dot { opacity: 0; }

.cursor.is-view .cursor__ring { width: 108px; height: 72px; margin: -36px 0 0 -54px; border-radius: 2px; border-color: transparent; }
.cursor.is-view .cursor__ring i { opacity: 1; }
.cursor.is-view .cursor__label { opacity: 1; }
.cursor.is-view .cursor__dot { background: var(--ember); }
.cursor.is-view.is-locked .cursor__ring i { border-color: var(--ember); }
.cursor.is-view.is-locked .cursor__ring i:nth-child(1) { transform: translate(8px, 6px); }
.cursor.is-view.is-locked .cursor__ring i:nth-child(2) { transform: translate(-8px, 6px); }
.cursor.is-view.is-locked .cursor__ring i:nth-child(3) { transform: translate(8px, -6px); }
.cursor.is-view.is-locked .cursor__ring i:nth-child(4) { transform: translate(-8px, -6px); }
.cursor.is-view.is-locked .cursor__label { color: var(--ember); }

.cursor.is-pad .cursor__ring { width: 14px; height: 14px; margin: -7px 0 0 -7px; border-color: var(--ember); }
.cursor.is-pad .cursor__dot { opacity: 0; }
.cursor.is-down .cursor__ring { transform-origin: center; }
.cursor.is-text .cursor__dot,
.cursor.is-text .cursor__ring,
.cursor.is-text .cursor__label,
.cursor.is-hidden .cursor__dot,
.cursor.is-hidden .cursor__ring,
.cursor.is-hidden .cursor__label { opacity: 0; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px);
  padding: calc(18px + env(safe-area-inset-top, 0px)) var(--gutter) 18px;
  transition: transform .7s var(--ease-out);
}
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -30px; z-index: -1;
  background: linear-gradient(to bottom, rgba(5, 11, 14, .82), rgba(5, 11, 14, 0));
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}
.site-header.is-solid::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-115%); }

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--paper);
  text-decoration: none;
}
.brand__mark { width: 30px; height: 30px; color: var(--paper); }
.brand__name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .34em;
}
.brand__ja {
  font-family: var(--font-mincho);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--mist);
}

.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); list-style: none; margin: 0; padding: 0; }
.nav a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
}
.nav a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav a.is-current { color: var(--ember); }
.nav__cta {
  padding: 8px 18px !important;
  border: 1px solid rgba(233, 164, 106, .6);
  border-radius: 999px;
  transition: background-color .4s, color .4s;
}
.nav__cta:hover { background: var(--ember); color: var(--ink) !important; }

.sound-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 0;
  background: none; border: 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.sound-toggle__bars { display: inline-flex; align-items: center; gap: 2.5px; height: 16px; }
.sound-toggle__bars i {
  display: block; width: 2px; height: 16px;
  border-radius: 1px;
  background: currentColor;
  transform: scaleY(.14);
}
.sound-toggle b { font-weight: 400; color: var(--mist); }
html.sound-on .sound-toggle b { color: var(--ember); }

.menu-toggle {
  display: none;
  align-items: center; gap: 10px;
  padding: 8px 0;
  background: none; border: 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.menu-toggle__lines { position: relative; width: 22px; height: 8px; }
.menu-toggle__lines i {
  position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  transition: transform .5s var(--ease-out), top .5s var(--ease-out);
}
.menu-toggle__lines i:first-child { top: 0; }
.menu-toggle__lines i:last-child { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines i:first-child { top: 4px; transform: rotate(20deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines i:last-child { top: 4px; transform: rotate(-20deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; align-items: center;
  padding: 110px var(--gutter) 60px;
  background: rgba(5, 11, 14, .96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.mobile-menu nav { width: 100%; }
.mobile-menu ol { list-style: none; margin: 0; padding: 0; width: 100%; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu a {
  display: flex; align-items: baseline; gap: 14px;
  padding: 14px 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(34px, 10vw, 52px);
  line-height: 1.1;
  text-decoration: none;
  color: var(--paper);
}
.mobile-menu a span { font-family: var(--font-mono); font-size: 11px; color: var(--mist); letter-spacing: .1em; }
.mobile-menu a em { margin-left: auto; font-style: normal; font-family: var(--font-mincho); font-size: 13px; color: var(--mist); }

/* --------------------------------------------------------------------------
   Shared
   -------------------------------------------------------------------------- */
.section {
  position: relative;
  padding: clamp(120px, 18vh, 220px) var(--gutter);
}

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mist);
}
.eyebrow__num { color: var(--ember); }
.eyebrow__line { width: clamp(32px, 5vw, 72px); height: 1px; background: currentColor; opacity: .6; }

.palt { font-feature-settings: "palt" 1; }

.btn-line {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 26px;
  border: 1px solid rgba(235, 229, 216, .4);
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  font-size: 14px;
  letter-spacing: .1em;
  overflow: hidden;
  isolation: isolate;
  transition: color .4s, border-color .4s;
}
.btn-line::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ember);
  transform: translateY(101%);
  transition: transform .5s var(--ease-out);
}
.btn-line:hover { color: var(--ink); border-color: var(--ember); }
.btn-line:hover::before { transform: translateY(0); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}
.hero__media { position: absolute; inset: 0; }
.hero__fallback {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 52%;
}
.hero__gl {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  touch-action: pan-y;
}
html.gl-ready .hero__fallback,
.hero__fallback:not([src]) { visibility: hidden; }

.hero__shade {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 11, 14, .5) 0%, rgba(5, 11, 14, 0) 20%),
    linear-gradient(0deg, rgba(5, 11, 14, .82) 0%, rgba(5, 11, 14, .35) 18%, rgba(5, 11, 14, 0) 34%);
}

.hero__title { margin: 0; }
.hero__title-fallback {
  position: absolute;
  left: var(--gutter);
  top: calc(var(--mirror) - 8vw);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(56px, 11vw, 190px);
  letter-spacing: .14em;
  line-height: 1;
  color: #071113;
}
html.gl-ready .hero__title-fallback { display: none; }

.hero__copy {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(92px, 15vh, 160px);
  max-width: min(36em, 80vw);
}
.hero__lead {
  margin: 0;
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: clamp(24px, 2.7vw, 42px);
  line-height: 1.55;
  letter-spacing: .14em;
  font-feature-settings: "palt" 1;
}
.hero__lead span { display: block; }
.hero__sub {
  margin: 14px 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(15px, 1.25vw, 19px);
  letter-spacing: .02em;
  color: var(--haze);
}

.hero__disciplines {
  position: absolute;
  left: var(--gutter);
  bottom: 30px;
  display: flex; flex-wrap: wrap; gap: 6px 26px;
  margin: 0; padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--haze);
}
.hero__disciplines span { margin-right: 8px; color: var(--ember); }

.hero__vertical {
  position: absolute;
  right: calc(var(--gutter) - 4px);
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  writing-mode: vertical-rl;
  font-family: var(--font-mincho);
  font-size: 12.5px;
  letter-spacing: .55em;
  color: rgba(235, 229, 216, .78);
  text-shadow: 0 0 18px rgba(5, 11, 14, .4);
}

.hero__clock {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(92px, 15vh, 160px);
  margin: 0;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--haze);
}
.hero__clock p { margin: 0; }
.clock__now { display: inline-flex; align-items: center; gap: 8px; color: var(--paper); }
.clock__now time { font-variant-numeric: tabular-nums; }
.clock__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sea); box-shadow: 0 0 10px var(--sea); }
.is-tasogare .clock__dot { background: var(--ember); box-shadow: 0 0 12px var(--ember); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.clock__sun { margin-top: 4px !important; font-family: var(--font-sans); letter-spacing: .08em; font-size: 12px; }

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 28px;
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--haze);
  text-decoration: none;
}
.hero__scroll-line {
  position: relative;
  width: 56px; height: 1px;
  background: rgba(235, 229, 216, .25);
  overflow: hidden;
}
.hero__scroll-line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--paper);
  transform: translateX(-100%);
  animation: scrollLine 2.6s var(--ease-io) infinite;
}
@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

.hero__hint {
  position: absolute;
  left: 50%;
  top: calc(var(--mirror) + 9%);
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .3em;
  color: rgba(235, 229, 216, .7);
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 1.2s;
}
.hero__hint.is-gone { opacity: 0 !important; }

/* --------------------------------------------------------------------------
   Statement
   -------------------------------------------------------------------------- */
.statement { padding-top: clamp(140px, 22vh, 260px); }

.verbs {
  display: grid;
  gap: .02em;
  margin: clamp(48px, 8vh, 96px) 0 0;
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: clamp(54px, 9.4vw, 158px);
  line-height: 1.12;
  letter-spacing: .02em;
  font-feature-settings: "palt" 1;
}
.verb { display: flex; align-items: baseline; gap: .35em; }
.verb:nth-child(3) { margin-left: 1.1em; }
.verb:nth-child(4) { margin-left: 2.2em; }
.verb:nth-child(5) { margin-left: 3.3em; }
.verb__ja { display: inline-block; overflow: hidden; padding: .04em .06em .1em 0; }
.verb__ja > span { display: inline-block; will-change: transform; }
.verb__en {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: .2em;
  letter-spacing: .04em;
  color: var(--mist);
}
.verb:last-child .verb__ja > span { color: var(--ember); }

.statement__body {
  max-width: 34em;
  margin: clamp(64px, 10vh, 120px) 0 0 auto;
}
.statement__text {
  margin: 0;
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: clamp(19px, 1.75vw, 27px);
  line-height: 2.15;
  letter-spacing: .1em;
  font-feature-settings: "palt" 1;
}
.statement__text .ch { opacity: .16; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.4vw, 56px);
  margin-top: clamp(96px, 14vh, 160px);
}
.pillar { position: relative; padding-top: 28px; border-top: 1px solid var(--line); }
.pillar__num { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: 18px; color: var(--ember); }
.pillar__title {
  margin: 18px 0 0;
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: clamp(21px, 1.8vw, 27px);
  letter-spacing: .1em;
  font-feature-settings: "palt" 1;
}
.pillar__en { margin: 4px 0 0; font-family: var(--font-serif); font-style: italic; font-size: 15px; color: var(--mist); }
.pillar__text { margin: 18px 0 0; font-size: 14.5px; line-height: 2.05; color: var(--haze); }

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 3vh, 36px) 0;
  border-block: 1px solid var(--line);
}
.marquee__track {
  display: flex; align-items: center; gap: .32em;
  width: max-content;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(64px, 11vw, 190px);
  line-height: 1.02;
  white-space: nowrap;
  will-change: transform;
}
.marquee__track span { color: transparent; -webkit-text-stroke: 1px rgba(235, 229, 216, .55); padding-right: .04em; }
.marquee__track span:nth-of-type(2n+1) { color: var(--paper); -webkit-text-stroke: 0; }
.marquee__track i {
  display: inline-block;
  width: .3em; height: .15em;
  margin: 0 .12em;
  border-radius: .3em .3em 0 0;
  background: var(--ember);
  transform: translateY(-.12em);
}

/* --------------------------------------------------------------------------
   Works — the timeline
   -------------------------------------------------------------------------- */
.works { position: relative; }
.works__stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(18px, 3.4vh, 40px);
  padding: clamp(84px, 11vh, 120px) 0 clamp(24px, 4vh, 48px);
  overflow: hidden;
}
.works__heading .eyebrow { margin-bottom: 4px; }
.works__head {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap;
  gap: 12px 32px;
  padding: 0 var(--gutter);
}
.works__title {
  margin: 14px 0 0;
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 54px);
  line-height: 1.3;
  letter-spacing: .1em;
  font-feature-settings: "palt" 1;
}
.works__hint {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--mist);
}
.works__hint span { margin: 0 .8em; opacity: .5; }

.tl {
  --ph: 30vw;
  --track-h: clamp(170px, 37vh, 430px);
  --ruler-h: 30px;
  --audio-h: clamp(38px, 6.5vh, 64px);
  --heads-w: 62px;
  position: relative;
  margin-top: 30px;
  border-block: 1px solid var(--line);
  background: rgba(3, 8, 10, .38);
}
.tl__heads {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 3;
  width: var(--heads-w);
  display: grid;
  grid-template-rows: var(--ruler-h) var(--track-h) var(--audio-h);
  background: rgba(5, 11, 14, .92);
  border-right: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--mist);
}
.tl__head { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 10px; }
.tl__head + .tl__head { border-top: 1px solid var(--line); }
.tl__head b { font-weight: 400; color: var(--paper); }
.tl__head--ruler { justify-content: center; }
.ico-eye { width: 14px; height: 8px; border: 1px solid currentColor; border-radius: 50% / 60%; position: relative; }
.ico-eye::after { content: ""; position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; margin: -1.5px; border-radius: 50%; background: currentColor; }
.tl__head--a { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.tl__head--a b { flex-basis: 100%; }
.ico-ms { display: inline-grid; place-items: center; width: 15px; height: 13px; border: 1px solid currentColor; border-radius: 2px; font-style: normal; font-size: 8px; }

.tl__viewport { position: relative; overflow: hidden; }
.tl__scroller {
  position: relative;
  display: grid;
  grid-template-rows: var(--ruler-h) var(--track-h) var(--audio-h);
  width: max-content;
  padding-left: var(--ph);
  padding-right: calc(100vw - var(--ph));
  will-change: transform;
}

.tl__ruler {
  position: relative;
  border-bottom: 1px solid var(--line);
  background-image:
    repeating-linear-gradient(90deg, rgba(235, 229, 216, .42) 0 1px, transparent 1px var(--sec, 120px)),
    repeating-linear-gradient(90deg, rgba(235, 229, 216, .16) 0 1px, transparent 1px calc(var(--sec, 120px) / 4));
  background-size: 100% 11px, 100% 6px;
  background-position: 0 100%, 0 100%;
  background-repeat: no-repeat;
}
.tl__ruler span {
  position: absolute; top: 5px;
  padding-left: 5px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .06em;
  color: var(--mist);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.tl__track--v {
  display: flex; gap: 3px;
  padding: 7px 0;
  height: var(--track-h);
}
.tl__track--a {
  position: relative;
  border-top: 1px solid var(--line);
}
.tl__audio { position: absolute; left: 0; top: 5px; height: calc(100% - 10px); display: block; }
.tl__audio-name {
  position: absolute; left: 8px; top: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .08em;
  color: rgba(235, 229, 216, .75);
  pointer-events: none;
  white-space: nowrap;
}

.clip {
  position: relative;
  flex: none;
  display: flex; flex-direction: column;
  width: calc((var(--track-h) - 14px) * var(--ar));
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 5px;
  overflow: hidden;
  background: #0d2027;
  color: var(--paper);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(235, 229, 216, .08);
  transition: box-shadow .4s;
}
.clip__bar {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; gap: 10px;
  padding: 5px 9px;
  background: rgba(29, 76, 87, .85);
  border-bottom: 1px solid rgba(235, 229, 216, .1);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  transition: background-color .4s;
}
.clip__fmt { color: rgba(235, 229, 216, .55); }
.clip__media {
  position: relative;
  flex: 1;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.clip__media img,
.clip__media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: translate3d(var(--px, 0px), 0, 0) scale(1.14);
  filter: saturate(.55) brightness(.62);
  transition: filter .7s var(--ease-out);
}
.clip.is-active { box-shadow: inset 0 0 0 1px rgba(233, 164, 106, .9); }
.clip.is-active .clip__bar { background: rgba(233, 164, 106, .92); color: var(--ink); }
.clip.is-active .clip__fmt { color: rgba(5, 11, 14, .6); }
.clip.is-active .clip__media img,
.clip.is-active .clip__media video,
.clip:hover .clip__media img,
.clip:hover .clip__media video { filter: none; }

.clip--next { background: transparent; box-shadow: none; }
.clip--next .clip__bar { background: rgba(235, 229, 216, .08); }
.clip__media--empty {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 10px;
  padding: 0 clamp(14px, 2vw, 28px);
  border: 1px dashed rgba(235, 229, 216, .3);
  border-top: 0;
  border-radius: 0 0 5px 5px;
  background: repeating-linear-gradient(135deg, rgba(235, 229, 216, .03) 0 10px, transparent 10px 20px);
}
.clip__next-en { font-family: var(--font-serif); font-style: italic; font-weight: 300; font-size: clamp(26px, 2.6vw, 42px); line-height: 1; }
.clip__next-ja { font-family: var(--font-mincho); font-size: clamp(12px, 1vw, 14px); line-height: 1.9; color: var(--haze); }
.clip__next-cta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--ember); }
.clip--next.is-active { box-shadow: none; }
.clip--next.is-active .clip__media--empty { border-color: var(--ember); }

.tl__playhead {
  position: absolute; top: 0; bottom: 0; z-index: 4;
  left: var(--ph);
  width: 1px;
  background: var(--ember);
  box-shadow: 0 0 14px rgba(233, 164, 106, .7);
  pointer-events: none;
}
.tl__playhead::before {
  content: ""; position: absolute; left: -6px; top: 0;
  border: 6px solid transparent;
  border-top: 8px solid var(--ember);
  border-bottom: 0;
}
.tl__tc {
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  padding: 4px 9px;
  border-radius: 4px;
  background: var(--ember);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.works__info {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 30em);
  align-items: end;
  gap: 12px clamp(20px, 3vw, 56px);
  padding: 0 var(--gutter);
  min-height: 92px;
}
.works__idx {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(44px, 5.4vw, 86px);
  line-height: .9;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
.works__idx-total { font-size: .3em; color: var(--mist); letter-spacing: .1em; }
.works__info-title {
  margin: 0;
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 34px);
  letter-spacing: .12em;
  line-height: 1.4;
  font-feature-settings: "palt" 1;
}
.works__info-en { margin: 4px 0 0; font-family: var(--font-serif); font-style: italic; font-size: 15px; color: var(--mist); }
.works__info-text { margin: 0; font-size: 14px; line-height: 2; color: var(--haze); }

/* fallback: native horizontal scroll (reduced motion / no GSAP) */
.tl--native .tl__viewport { overflow-x: auto; scrollbar-width: thin; }
.tl--native .tl__playhead { display: none; }

/* --------------------------------------------------------------------------
   Services — mixer
   -------------------------------------------------------------------------- */
.services__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px 48px;
}
.services__head .eyebrow { grid-column: 1 / -1; }
.services__title {
  margin: 0;
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: clamp(44px, 6.6vw, 108px);
  line-height: 1.15;
  letter-spacing: .06em;
  font-feature-settings: "palt" 1;
}
.services__lead { margin: 0; font-size: clamp(14.5px, 1.2vw, 17px); line-height: 2.1; color: var(--haze); }

.channels {
  list-style: none;
  margin: clamp(64px, 10vh, 110px) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.channel {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(170px, 1fr) minmax(0, 1.3fr) minmax(0, 1.15fr);
  gap: 20px clamp(20px, 2.6vw, 48px);
  align-items: start;
  padding: clamp(28px, 4vh, 44px) 0;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.channel::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1;
  background: linear-gradient(90deg, rgba(61, 138, 148, .14), rgba(61, 138, 148, 0) 75%);
  opacity: 0;
  transition: opacity .6s;
}
.channel:hover::before { opacity: 1; }
.channel__strip { display: flex; gap: 14px; align-self: stretch; min-height: 104px; }
.channel__no {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--mist);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.channel__meter {
  position: relative;
  width: 9px;
  border-radius: 2px;
  background: rgba(235, 229, 216, .07);
  overflow: hidden;
  -webkit-mask: repeating-linear-gradient(to top, #000 0 4px, transparent 4px 6px);
  mask: repeating-linear-gradient(to top, #000 0 4px, transparent 4px 6px);
}
.channel__fill {
  position: absolute; inset: 0;
  transform-origin: 50% 100%;
  transform: scaleY(.04);
  background: linear-gradient(to top, var(--sea) 0%, var(--haze) 62%, var(--paper) 80%, var(--ember) 92%);
}
.channel__peak {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--ember);
  transform: translateY(0);
}
.channel__en {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(46px, 5.6vw, 92px);
  line-height: .9;
  letter-spacing: -.005em;
  transition: transform .7s var(--ease-out), color .4s;
}
.channel:hover .channel__en { transform: translateX(.14em); font-style: italic; color: var(--paper); }
.channel__ja {
  margin: 14px 0 0;
  font-family: var(--font-mincho);
  font-size: 15px;
  letter-spacing: .12em;
  color: var(--haze);
}
.channel__desc { margin: 6px 0 0; font-size: 14.5px; line-height: 2.05; color: var(--haze); }
.channel__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.channel__tags li {
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--haze);
  transition: border-color .4s, color .4s;
}
.channel:hover .channel__tags li { border-color: rgba(235, 229, 216, .3); color: var(--paper); }

/* --------------------------------------------------------------------------
   Sound Lab
   -------------------------------------------------------------------------- */
.lab__grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: center;
  margin-top: clamp(40px, 6vh, 72px);
}
.lab__title {
  margin: 0;
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 88px);
  line-height: 1.3;
  letter-spacing: .06em;
  font-feature-settings: "palt" 1;
}
.lab__text { margin: 32px 0 0; max-width: 30em; color: var(--haze); line-height: 2.1; }
.lab__legend { display: grid; gap: 6px; margin: 26px 0 0; font-size: 13px; }
.lab__legend div { display: flex; gap: 18px; align-items: baseline; }
.lab__legend dt { width: 3.2em; font-family: var(--font-mono); color: var(--ember); }
.lab__legend dd { margin: 0; color: var(--haze); }
.lab__presets { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.lab__presets button {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px;
  min-width: 118px;
  padding: 11px 16px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(235, 229, 216, .025);
  cursor: pointer;
  text-align: left;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.lab__presets button:hover { border-color: rgba(235, 229, 216, .35); }
.lab__presets b { font-family: var(--font-mono); font-weight: 400; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.lab__presets span { font-size: 12px; color: var(--mist); }
.lab__presets .is-active { border-color: var(--ember); background: rgba(233, 164, 106, .08); box-shadow: 0 0 28px rgba(233, 164, 106, .12); }
.lab__presets .is-active b { color: var(--ember); }

.lab__device {
  position: relative;
  display: grid; gap: 14px;
  padding: clamp(14px, 1.6vw, 22px);
  border-radius: 20px;
  border: 1px solid rgba(235, 229, 216, .1);
  background: linear-gradient(180deg, rgba(14, 30, 37, .9), rgba(6, 14, 18, .92));
  box-shadow: 0 40px 100px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.lab__screen {
  position: relative;
  aspect-ratio: 16 / 7;
  border-radius: 12px;
  background: #02070a;
  border: 1px solid rgba(255, 255, 255, .05);
  overflow: hidden;
}
.lab__screen canvas { width: 100%; height: 100%; display: block; }
.lab__screen-hud {
  position: absolute; left: 14px; right: 14px; top: 10px;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  color: var(--mist);
  pointer-events: none;
}
#labState { color: var(--mist); }
html.sound-on #labState { color: var(--ember); }

.lab__pad {
  --x: 1; --y: .3;
  position: relative;
  aspect-ratio: 16 / 7.5;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .07);
  background:
    radial-gradient(circle at calc(var(--x) * 100%) calc((1 - var(--y)) * 100%), rgba(233, 164, 106, .16), transparent 40%),
    linear-gradient(rgba(235, 229, 216, .05) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, rgba(235, 229, 216, .05) 1px, transparent 1px) 0 0 / 12.5% 100%,
    #061015;
  overflow: hidden;
  touch-action: none;
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
}
.lab__pad:focus-visible { outline-offset: 2px; }
.lab__axis {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .2em;
  color: rgba(143, 166, 171, .8);
  pointer-events: none;
}
.lab__axis--x { right: 12px; bottom: 9px; }
.lab__axis--y { left: 12px; top: 10px; }
.lab__cross { position: absolute; background: rgba(233, 164, 106, .4); pointer-events: none; }
.lab__cross--x { left: 0; right: 0; height: 1px; top: calc((1 - var(--y)) * (100% - 28px) + 14px); }
.lab__cross--y { top: 0; bottom: 0; width: 1px; left: calc(var(--x) * (100% - 28px) + 14px); }
.lab__puck {
  position: absolute;
  left: calc(var(--x) * (100% - 28px) + 14px);
  top: calc((1 - var(--y)) * (100% - 28px) + 14px);
  width: 20px; height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 7px rgba(233, 164, 106, .16), 0 0 44px rgba(233, 164, 106, .7);
  pointer-events: none;
}
.lab__pad.is-bypassed .lab__puck { background: var(--mist); box-shadow: 0 0 0 7px rgba(143, 166, 171, .12); }

.lab__foot { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); flex-wrap: wrap; }
.lab__readout { margin: 0; display: flex; flex-direction: column; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em; color: var(--mist); }
.lab__readout b { font-weight: 400; font-size: 16px; letter-spacing: .04em; color: var(--paper); font-variant-numeric: tabular-nums; min-width: 6.5em; }
.lab__bypass {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(235, 229, 216, .03);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.lab__bypass i { width: 8px; height: 8px; border-radius: 50%; background: #1b3036; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.lab__bypass[aria-pressed="true"] i { background: var(--ember); box-shadow: 0 0 10px var(--ember); }

.lab__off {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px;
  border-radius: 20px;
  background: rgba(5, 11, 14, .66);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  text-align: center;
  transition: opacity .6s, visibility .6s;
}
.lab__off p { margin: 0; font-family: var(--font-mincho); letter-spacing: .14em; }
html.sound-on .lab__off { opacity: 0; visibility: hidden; }

/* --------------------------------------------------------------------------
   Process — signal flow
   -------------------------------------------------------------------------- */
.process {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 120px);
  align-items: start;
}
.process__head { position: sticky; top: clamp(100px, 16vh, 160px); }
.process__title {
  margin: 30px 0 0;
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 80px);
  line-height: 1.25;
  letter-spacing: .06em;
  font-feature-settings: "palt" 1;
}
.process__lead { margin: 28px 0 0; color: var(--haze); line-height: 2.1; }

.flow { --flow-x: 6px; position: relative; padding-left: 52px; }
.flow__cable {
  position: absolute; left: var(--flow-x); top: 46px; bottom: 46px;
  width: 2px;
  border-radius: 2px;
  background: rgba(235, 229, 216, .1);
}
.flow__signal {
  position: absolute; inset: 0;
  transform-origin: 50% 0;
  transform: scaleY(0);
  background: linear-gradient(to bottom, var(--sea), var(--haze) 70%, var(--ember));
  box-shadow: 0 0 14px rgba(233, 164, 106, .45);
}
.flow__spark {
  position: absolute; left: 50%; top: 0;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #fff6ea;
  box-shadow: 0 0 18px 5px rgba(233, 164, 106, .75);
  opacity: 0;
}
.flow__list { list-style: none; margin: 0; padding: 0; }
.flow__node {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px 18px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.flow__node:first-child { border-top: 1px solid var(--line); }
.flow__led {
  position: absolute;
  left: calc(var(--flow-x) - 52px - 5px);
  top: 41px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #0c1d23;
  border: 1px solid rgba(235, 229, 216, .25);
  transition: background-color .5s, box-shadow .5s, border-color .5s;
}
.flow__node.is-lit .flow__led {
  background: var(--ember);
  border-color: var(--ember);
  box-shadow: 0 0 0 5px rgba(233, 164, 106, .14), 0 0 22px rgba(233, 164, 106, .8);
}
.flow__no { margin: 4px 0 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: var(--mist); transition: color .5s; }
.flow__node.is-lit .flow__no { color: var(--ember); }
.flow__title {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px;
  margin: 0;
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: clamp(21px, 1.9vw, 28px);
  letter-spacing: .1em;
  font-feature-settings: "palt" 1;
}
.flow__title span { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 16px; letter-spacing: .02em; color: var(--mist); }
.flow__text { margin: 10px 0 0; max-width: 34em; font-size: 14.5px; line-height: 2.05; color: var(--haze); }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact { padding-bottom: clamp(100px, 16vh, 180px); overflow: hidden; }
.contact__stars { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.contact__inner { position: relative; z-index: 1; }
.contact__hero { display: flex; align-items: flex-end; gap: 12px clamp(20px, 4vw, 64px); flex-wrap: wrap; margin-top: clamp(40px, 6vh, 72px); }
.contact__title {
  margin: 0;
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: clamp(76px, 15vw, 250px);
  line-height: 1.12;
  letter-spacing: .02em;
}
.ct-ch { display: inline-block; }
.contact__title ruby { ruby-position: over; }
.contact__title rt {
  font-family: var(--font-mincho);
  font-size: .12em;
  letter-spacing: .3em;
  text-indent: .3em;
  color: var(--mist);
  text-align: center;
}
.contact__q { font-family: var(--font-serif); font-style: italic; font-weight: 300; color: var(--ember); margin-left: .04em; }
.contact__whisper {
  margin: 0 0 .9em;
  writing-mode: vertical-rl;
  font-family: var(--font-mincho);
  font-size: clamp(14px, 1.2vw, 17px);
  letter-spacing: .32em;
  color: var(--haze);
}
.contact__lead { max-width: 42em; margin: clamp(36px, 6vh, 64px) 0 0; font-size: clamp(15px, 1.2vw, 17.5px); line-height: 2.2; color: var(--haze); }

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 88px);
  margin-top: clamp(56px, 9vh, 96px);
  align-items: start;
}

.form {
  padding: clamp(22px, 3vw, 44px);
  border-radius: 22px;
  border: 1px solid rgba(235, 229, 216, .1);
  background: rgba(7, 17, 22, .6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.form__chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.form__chips legend {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
  margin-bottom: 14px; padding: 0;
  font-size: 13px; color: var(--haze);
}
.form__chips legend span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; color: var(--mist); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: 9px 17px;
  border: 1px solid rgba(235, 229, 216, .22);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
  user-select: none;
}
.chip span:hover { border-color: rgba(235, 229, 216, .5); }
.chip input:checked + span { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.chip input:focus-visible + span { outline: 2px solid var(--ember); outline-offset: 2px; }

.form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 26px; }
.field__label { font-size: 12px; letter-spacing: .1em; color: var(--mist); }
.field input,
.field textarea {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(235, 229, 216, .24);
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: 16px;
  line-height: 1.7;
  transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 128px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ember); }
.field textarea::placeholder { color: rgba(143, 166, 171, .6); font-size: 14px; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #e07a6a; }

.form__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-top: 34px; }
.btn-send {
  position: relative;
  display: inline-flex; align-items: center; gap: 16px;
  padding: 18px 30px;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .1em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  will-change: transform;
}
.btn-send::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ember);
  border-radius: inherit;
  transform: scale(0, 1);
  transform-origin: left;
  transition: transform .6s var(--ease-out);
}
.btn-send:hover::before, .btn-send:focus-visible::before { transform: scale(1, 1); }
.btn-send__arrow { transition: transform .5s var(--ease-out); }
.btn-send:hover .btn-send__arrow { transform: translateX(5px); }
.form__note { margin: 0; font-size: 12px; line-height: 1.8; color: var(--mist); }
.form__note.is-error { color: #f0a090; }

.direct__label {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mist);
}
.direct__label:not(:first-child) { margin-top: 44px; }
.direct__mail {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(26px, 2.5vw, 40px);
  line-height: 1.25;
  letter-spacing: .01em;
  text-decoration: none;
  word-break: break-all;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease-out), color .3s;
}
.direct__mail:hover { color: var(--ember); }
.direct__copy {
  display: block;
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--haze);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.direct__copy:hover { color: var(--paper); }
.direct__sns { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.direct__sns a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: 22px;
  text-decoration: none;
  transition: padding .5s var(--ease-out), color .3s;
}
.direct__sns a span { font-family: var(--font-mono); font-size: 13px; color: var(--mist); }
.direct__sns a:hover { padding-left: 10px; color: var(--ember); }
.direct__welcome-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.direct__welcome-list li {
  padding: 6px 13px;
  border: 1px dashed rgba(235, 229, 216, .26);
  border-radius: 999px;
  font-size: 12px;
  color: var(--haze);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { position: relative; padding: 0 var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px)); overflow: hidden; }
.footer__mark { position: relative; display: flex; flex-direction: column; align-items: center; user-select: none; }
.footer__word {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(84px, 21vw, 380px);
  line-height: .86;
  letter-spacing: -.015em;
  color: var(--paper);
  white-space: nowrap;
}
.footer__word--reflect {
  margin-top: .02em;
  transform: scaleY(-1);
  opacity: .22;
  filter: blur(1.5px) url(#rippleFilter);
  -webkit-mask: linear-gradient(to top, #000 0%, transparent 62%);
  mask: linear-gradient(to top, #000 0%, transparent 62%);
}
.footer__row {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: -2vw;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--mist);
}
.footer__row p { margin: 0; }
.footer__sun { font-family: var(--font-sans); font-size: 12px; }
.footer__top { display: inline-flex; gap: 10px; color: var(--paper); text-decoration: none; }
.footer__top:hover { color: var(--ember); }

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 72px var(--gutter); }
.lightbox[hidden] { display: none; }
.lightbox__bg {
  position: absolute; inset: 0;
  background: rgba(3, 7, 9, .95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lightbox__figure {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(220px, 300px);
  align-items: end;
  gap: clamp(24px, 3vw, 48px);
  margin: 0;
  max-width: 100%;
}
.lightbox__frame { position: relative; justify-self: end; }
.lightbox__frame img {
  display: block;
  width: auto; height: auto;
  max-width: min(68vw, 1500px);
  max-height: calc(100vh - 150px);
  max-height: calc(100svh - 150px);
  border-radius: 3px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
}
.lightbox__af { position: absolute; inset: 14px; pointer-events: none; opacity: 0; }
.lightbox__af i { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(255, 250, 240, .9); }
.lightbox__af i:nth-child(1) { left: 0; top: 0; border-left-width: 1.5px; border-top-width: 1.5px; }
.lightbox__af i:nth-child(2) { right: 0; top: 0; border-right-width: 1.5px; border-top-width: 1.5px; }
.lightbox__af i:nth-child(3) { left: 0; bottom: 0; border-left-width: 1.5px; border-bottom-width: 1.5px; }
.lightbox__af i:nth-child(4) { right: 0; bottom: 0; border-right-width: 1.5px; border-bottom-width: 1.5px; }
.lightbox__cap p { margin: 0; }
.lightbox__idx { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--ember); }
.lightbox__title {
  margin: 14px 0 0;
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: clamp(26px, 2.4vw, 38px);
  letter-spacing: .12em;
  line-height: 1.4;
}
.lightbox__en { margin-top: 4px !important; font-family: var(--font-serif); font-style: italic; color: var(--mist); }
.lightbox__text { margin-top: 20px !important; font-size: 14px; line-height: 2.05; color: var(--haze); }
.lightbox__close {
  position: absolute; top: calc(20px + env(safe-area-inset-top, 0px)); right: var(--gutter);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 0;
  border: 0; background: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.lightbox__close i { position: relative; width: 22px; height: 22px; }
.lightbox__close i::before, .lightbox__close i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transform: rotate(45deg); }
.lightbox__close i::after { transform: rotate(-45deg); }
.lightbox__nav {
  position: absolute; top: 50%;
  width: 52px; height: 52px;
  margin-top: -26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(5, 11, 14, .5);
  cursor: pointer;
  font-size: 18px;
  transition: border-color .3s, background-color .3s;
}
.lightbox__nav:hover { border-color: var(--paper); }
.lightbox__nav--prev { left: calc(var(--gutter) * .5); }
.lightbox__nav--next { right: calc(var(--gutter) * .5); }

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); z-index: 120;
  transform: translate(-50%, 20px);
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  letter-spacing: .08em;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s, transform .5s var(--ease-out);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .channel { grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.4fr); }
  .channel__tags { grid-column: 2 / -1; }
  .lab__grid { grid-template-columns: minmax(0, 1fr); }
  .lab__intro { max-width: 40em; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .brand__ja { display: none; }
  .sound-toggle { margin-left: auto; }
  .menu-toggle { display: inline-flex; }

  .services__head { grid-template-columns: minmax(0, 1fr); }
  .process { grid-template-columns: minmax(0, 1fr); }
  .process__head { position: relative; top: 0; }
  .contact__grid { grid-template-columns: minmax(0, 1fr); }

  .lightbox__figure { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .lightbox__frame { justify-self: center; }
  .lightbox__frame img { max-width: 100%; max-height: 62vh; max-height: 62svh; }
  .lightbox__nav { top: auto; bottom: 24px; margin-top: 0; }
}

@media (max-width: 767px) {
  body { font-size: 14.5px; }
  .hero__vertical { display: none; }
  .hero__copy { bottom: 128px; }
  .hero__clock { left: var(--gutter); right: auto; bottom: 74px; text-align: left; }
  .hero__clock .clock__sun { display: inline; margin-left: 10px !important; }
  .hero__clock p { display: inline-flex; }
  .hero__disciplines { bottom: 26px; gap: 4px 14px; font-size: 10px; letter-spacing: .12em; right: var(--gutter); }
  .hero__disciplines span { margin-right: 4px; }
  .hero__scroll { display: none; }
  .hero__hint { top: calc(var(--mirror) + 6%); }

  .verb:nth-child(3) { margin-left: .5em; }
  .verb:nth-child(4) { margin-left: 1em; }
  .verb:nth-child(5) { margin-left: 1.5em; }
  .verb { flex-wrap: wrap; gap: 0 .3em; }
  .verb__en { font-size: .24em; }
  .statement__body { margin-left: 0; }
  .pillars { grid-template-columns: minmax(0, 1fr); gap: 40px; }

  .works__stage { gap: 18px; padding-top: 88px; }
  .works__hint { display: none; }
  .tl { --ph: 18vw; --track-h: clamp(150px, 31vh, 270px); --ruler-h: 26px; --audio-h: 40px; --heads-w: 40px; }
  .tl__head { padding: 0 6px; }
  .tl__head .ico-eye, .tl__head .ico-ms { display: none; }
  .clip__fmt { display: none; }
  .works__info { grid-template-columns: auto minmax(0, 1fr); }
  .works__info-text { grid-column: 1 / -1; font-size: 13px; line-height: 1.9; }

  .channel { grid-template-columns: 34px minmax(0, 1fr); gap: 14px 18px; }
  .channel__strip { grid-row: 1 / span 3; min-height: 0; flex-direction: column-reverse; align-items: center; gap: 10px; }
  .channel__meter { flex: 1; min-height: 90px; }
  .channel__desc, .channel__tags { grid-column: 2; }

  .lab__device { padding: 12px; }
  .lab__screen { aspect-ratio: 16 / 9; }
  .lab__pad { aspect-ratio: 4 / 3; }
  .lab__bypass { margin-left: 0; }

  .flow { padding-left: 34px; }
  .flow__node { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 26px 0; }
  .flow__led { left: calc(var(--flow-x) - 34px - 5px); top: 33px; }

  .contact__whisper { writing-mode: horizontal-tb; margin: 0; letter-spacing: .2em; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .btn-send { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .site-header { gap: 14px; }
  .brand { gap: 9px; }
  .brand__mark { width: 26px; height: 26px; }
  .brand__name { font-size: 13px; letter-spacing: .26em; }
  .sound-toggle__word { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .hero__scroll-line::after, .loader__rec i, .clock__dot { animation: none !important; }
  * { scroll-behavior: auto !important; }
}
