:root {
  /* Edit the palette here. */
  --black: #030303;
  --charcoal: #0b0b0d;
  --graphite: #171719;
  --soft-white: #e8e4dc;
  --muted-white: #9f9b94;
  --purple: #8f5cff;
  --purple-soft: rgba(143, 92, 255, 0.35);
  --line: rgba(232, 228, 220, 0.13);
  --deep-line: rgba(232, 228, 220, 0.07);
  --signal: #ff3842;
  --vh: 1vh;
  --transition-ms: 1080ms;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  background: var(--black);
  overflow: hidden;
}

html.no-js,
html.no-js body {
  overflow: auto;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 78% 16%, rgba(143, 92, 255, 0.055), transparent 29%),
    radial-gradient(circle at 14% 84%, rgba(232, 228, 220, 0.035), transparent 24%),
    var(--black);
  color: var(--soft-white);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 1px solid var(--purple);
  outline-offset: 6px;
}

a {
  color: inherit;
  text-decoration: none;
}

.portfolio-back {
  position: fixed;
  left: clamp(20px, 4.8vw, 62px);
  bottom: clamp(20px, 4vh, 42px);
  z-index: 46;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: rgba(232, 228, 220, 0.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  transition: color 220ms ease, opacity 220ms ease, transform 220ms ease;
}

.portfolio-back:hover,
.portfolio-back:focus-visible {
  color: var(--soft-white);
  opacity: 1;
  transform: translateX(-2px);
}

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

.atmosphere,
.atmosphere span {
  position: fixed;
  inset: 0;
  z-index: 22;
  pointer-events: none;
}

.atmosphere-vignette {
  background:
    radial-gradient(circle at 50% 42%, rgba(232, 228, 220, 0.045), transparent 34%),
    radial-gradient(circle at 50% 50%, transparent 44%, rgba(0, 0, 0, 0.72) 100%);
  opacity: 0.86;
}

.atmosphere-noise {
  opacity: 0.095;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 320 320' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.93' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23n)' opacity='.44'/%3E%3C/svg%3E");
  background-size: 280px 280px;
}

.atmosphere-scanlines {
  opacity: 0.034;
  mix-blend-mode: overlay;
  background: repeating-linear-gradient(180deg, transparent 0 7px, rgba(232, 228, 220, 0.32) 8px);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 35;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 24px;
  padding: clamp(22px, 3vw, 42px) clamp(20px, 4.8vw, 62px) 0;
  pointer-events: none;
}

.site-header button,
.site-header nav {
  pointer-events: auto;
}

.brand-mark,
.primary-nav,
.menu-icon {
  letter-spacing: 0.46em;
  text-transform: uppercase;
  font-size: clamp(9px, 0.7vw, 12px);
  font-weight: 700;
}

.brand-mark {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 18px var(--purple);
  animation: pulse-dot 4.8s ease-in-out infinite;
}

.kanji-mark {
  justify-self: center;
  display: grid;
  place-items: center;
  gap: 9px;
  color: rgba(232, 228, 220, 0.7);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(22px, 2vw, 34px);
  line-height: 0.9;
}

.kanji-mark i,
.scroll-cue i {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 16px var(--purple);
}

.primary-nav {
  justify-self: end;
  display: flex;
  gap: clamp(22px, 3vw, 44px);
}

.primary-nav button {
  position: relative;
  opacity: 0.72;
  transition: opacity 220ms ease, color 220ms ease;
}

.primary-nav button::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  background: var(--purple);
  transition: transform 260ms ease;
}

.primary-nav button:hover,
.primary-nav button:focus-visible {
  opacity: 1;
}

.primary-nav button:hover::after,
.primary-nav button:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-icon {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  padding: 0;
}

.menu-icon span {
  display: block;
  width: 28px;
  height: 1px;
  margin-left: auto;
  background: var(--soft-white);
}

.menu-icon span + span {
  width: 18px;
  margin-top: 8px;
  background: var(--purple);
}

.deck {
  position: relative;
  width: 100%;
  height: calc(var(--vh) * 100);
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}

.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: calc(var(--vh) * 100);
  height: 100dvh;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 1.6vh, 0) scale(1.008);
  clip-path: inset(4% 0 4% 0);
  transition:
    opacity var(--transition-ms) cubic-bezier(0.16, 1, 0.3, 1),
    transform var(--transition-ms) cubic-bezier(0.16, 1, 0.3, 1),
    clip-path var(--transition-ms) cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear var(--transition-ms);
}

.scene::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(232, 228, 220, 0.026) 1px, transparent 1px),
    linear-gradient(0deg, rgba(232, 228, 220, 0.02) 1px, transparent 1px);
  background-size: 25vw 50vh;
  opacity: 0.28;
}

.scene::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.62)),
    radial-gradient(circle at var(--scene-light-x, 64%) var(--scene-light-y, 44%), rgba(232, 228, 220, var(--scene-light, 0.035)), transparent 32%);
}

body[data-direction="up"] .scene {
  transform: translate3d(0, -1.6vh, 0) scale(1.008);
}

.scene.is-entering,
.scene.is-active,
.scene.is-exiting {
  visibility: visible;
  transition-delay: 0s;
}

.scene.is-active {
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
  clip-path: inset(0 0 0 0);
}

.scene.is-exiting {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, -1.8vh, 0) scale(0.992);
  clip-path: inset(3% 0 3% 0);
}

body[data-direction="up"] .scene.is-exiting {
  transform: translate3d(0, 1.8vh, 0) scale(0.992);
}

.scene-shell {
  position: relative;
  width: 100%;
  height: 100%;
  padding: clamp(84px, 10vh, 128px) clamp(24px, 5vw, 74px) clamp(34px, 5vw, 62px);
}

[data-motion-layer] {
  --enter-y: 34px;
  --exit-up: -34px;
  --exit-down: 34px;
  transition:
    opacity 880ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 1020ms cubic-bezier(0.16, 1, 0.3, 1),
    clip-path 920ms cubic-bezier(0.16, 1, 0.3, 1);
}

.scene:not(.is-active) [data-motion-layer] {
  opacity: 0;
  transform: translate3d(0, var(--enter-y), 0) scale(0.988);
  clip-path: inset(12% 0 12% 0);
}

body[data-direction="up"] .scene:not(.is-active) [data-motion-layer] {
  transform: translate3d(0, calc(var(--enter-y) * -1), 0) scale(0.988);
}

.scene.is-active [data-motion-layer] {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  clip-path: inset(0 0 0 0);
}

body[data-direction="down"] .scene.is-exiting [data-motion-layer] {
  opacity: 0;
  transform: translate3d(var(--exit-x, -16px), var(--exit-up), 0) scale(0.988);
}

body[data-direction="up"] .scene.is-exiting [data-motion-layer] {
  opacity: 0;
  transform: translate3d(var(--exit-x, 16px), var(--exit-down), 0) scale(0.988);
}

.scene.is-transitioning [data-motion-layer] {
  will-change: transform, opacity, clip-path;
}

.reveal {
  opacity: 0;
}

.is-active .reveal:nth-child(2),
.is-active [data-motion-layer]:nth-child(2) {
  transition-delay: 70ms;
}

.is-active .reveal:nth-child(3),
.is-active [data-motion-layer]:nth-child(3) {
  transition-delay: 150ms;
}

.is-active .reveal:nth-child(4),
.is-active [data-motion-layer]:nth-child(4) {
  transition-delay: 230ms;
}

.is-active .reveal:nth-child(5),
.is-active [data-motion-layer]:nth-child(5) {
  transition-delay: 300ms;
}

.section-kicker,
.hero-copy,
.number-label,
.craft-copy span,
.night-frame figcaption span,
.night-frame figcaption small,
.site-footer,
.vertical-folio,
.scroll-cue,
.progress-rail,
.signal-type,
.night-signal,
.kobayashi-plate,
.rim-caption {
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.scene-hero {
  --scene-light: 0.025;
  background: var(--black);
}

.hero-shell {
  display: flex;
  align-items: center;
}

.section-kicker {
  position: absolute;
  top: 28%;
  left: clamp(24px, 5vw, 74px);
  margin: 0;
  color: var(--purple);
  font-size: clamp(9px, 0.72vw, 12px);
}

.mega-title {
  position: absolute;
  top: 45%;
  left: -0.08em;
  width: 112vw;
  margin: 0;
  translate: 0 -50%;
  color: rgba(232, 228, 220, 0.068);
  font-family: "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
  font-size: clamp(92px, 23vw, 365px);
  font-stretch: condensed;
  font-weight: 900;
  line-height: 0.75;
  letter-spacing: 0;
  text-transform: uppercase;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.01)),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  mix-blend-mode: screen;
  user-select: none;
}

.is-active .mega-title {
  animation: title-focus 1.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-copy {
  position: absolute;
  bottom: clamp(54px, 9vh, 92px);
  left: clamp(24px, 5vw, 74px);
}

.hero-copy p,
.craft-copy h2,
.final-copy h2,
.spec-panel h2 {
  margin: 0;
  font-family: "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.hero-copy p {
  font-size: clamp(18px, 2vw, 32px);
}

.hero-copy span {
  display: block;
  margin-top: 18px;
  color: var(--purple);
  font-size: clamp(10px, 0.75vw, 13px);
}

.signal-type {
  position: absolute;
  right: clamp(24px, 7vw, 98px);
  bottom: clamp(76px, 12vh, 128px);
  margin: 0;
  color: rgba(232, 228, 220, 0.46);
  font-family: "Courier New", monospace;
  font-size: clamp(10px, 0.8vw, 13px);
  letter-spacing: 0.18em;
}

.signal-type::first-letter {
  color: var(--purple);
}

.metal-arc {
  position: absolute;
  right: -11vw;
  bottom: 10vh;
  width: min(82vw, 1120px);
  aspect-ratio: 2.95 / 1;
  border-top: 1px solid rgba(232, 228, 220, 0.74);
  border-radius: 100% 100% 0 0;
  box-shadow:
    0 -10px 34px rgba(255, 255, 255, 0.1),
    0 -2px 22px rgba(143, 92, 255, 0.16),
    inset 0 16px 28px rgba(255, 255, 255, 0.06);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.is-active .metal-arc {
  animation: arc-reveal 1.15s cubic-bezier(0.16, 1, 0.3, 1) 210ms both;
}

.vertical-folio {
  position: absolute;
  right: clamp(22px, 3.6vw, 58px);
  bottom: clamp(44px, 8vh, 90px);
  writing-mode: vertical-rl;
  color: rgba(232, 228, 220, 0.45);
  font-size: 9px;
}

.vertical-folio::before {
  display: block;
  width: 4px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 50%;
  content: "";
  background: var(--purple);
  box-shadow: 0 0 16px var(--purple);
}

.scene-night {
  --scene-light-x: 50%;
  --scene-light-y: 56%;
  --scene-light: 0.055;
}

.night-shell {
  display: grid;
  place-items: center;
  padding-top: clamp(92px, 11vh, 132px);
}

.night-frame {
  position: relative;
  width: min(88vw, 1320px);
  height: min(68vh, 720px);
  margin: 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #050505;
}

.night-frame::before,
.night-frame::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  pointer-events: none;
}

.night-frame::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 36%, rgba(0, 0, 0, 0.34)),
    radial-gradient(circle at 48% 50%, transparent 0 35%, rgba(0, 0, 0, 0.58) 76%);
}

.night-frame::after {
  opacity: 0.22;
  background: repeating-linear-gradient(0deg, transparent 0 9px, rgba(232, 228, 220, 0.08) 10px);
  mix-blend-mode: overlay;
}

.night-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 44%;
  filter: contrast(1.18) brightness(0.72) saturate(0.72);
  transform: scale(1.08) translateX(var(--night-pan, 0));
}

.is-active .night-image {
  animation: night-zoom 6.2s ease-out both;
}

.light-drift {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.26;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  mix-blend-mode: screen;
  transform: translateX(-28%);
}

.is-active .light-drift {
  animation: light-drift 9s linear infinite;
}

.night-frame figcaption {
  position: absolute;
  top: 10.5%;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 12px;
  width: min(740px, 88%);
  margin: 0;
  translate: -50% 0;
  text-align: center;
}

.wordmark {
  font-family: "Old English Text MT", "UnifrakturMaguntia", Georgia, serif;
  font-size: clamp(54px, 9vw, 138px);
  font-weight: 500;
  line-height: 0.82;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232, 228, 220, 0.92);
  text-shadow:
    0 0 15px rgba(232, 228, 220, 0.42),
    0 0 30px rgba(143, 92, 255, 0.2);
  filter: drop-shadow(0 0 14px rgba(143, 92, 255, 0.18));
}

.is-active .wordmark {
  animation: wordmark-flicker 1.7s steps(2, end) 320ms 1 both;
}

.night-frame span,
.night-frame small {
  font-size: clamp(9px, 0.74vw, 12px);
}

.night-signal {
  position: absolute;
  right: 5%;
  bottom: 9%;
  z-index: 3;
  margin: 0;
  color: rgba(232, 228, 220, 0.54);
  font-family: "Courier New", monospace;
  font-size: clamp(10px, 0.78vw, 13px);
  letter-spacing: 0.22em;
}

.product-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.8fr);
  align-items: center;
  gap: clamp(34px, 6.5vw, 96px);
  border-top: 1px solid var(--deep-line);
}

.scene-matte {
  --scene-light-x: 35%;
  --scene-light-y: 38%;
  --scene-light: 0.025;
}

.wheel-stage {
  position: absolute;
  inset: 0;
  min-height: 100%;
  margin: 0;
  pointer-events: none;
}

.wheel-stage-matte {
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  margin-left: 0;
  border-right: 0;
  mask-image: none;
}

.wheel-stage-matte::before,
.chrome-sculpture::before,
.ghost-wheel::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  pointer-events: none;
}

.wheel-stage-matte::before {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.04), transparent 30%, rgba(0, 0, 0, 0.26) 52%, rgba(0, 0, 0, 0.88) 78%, rgba(0, 0, 0, 0.96) 100%),
    radial-gradient(circle at 27% 48%, transparent 0 34%, rgba(0, 0, 0, 0.18) 50%, rgba(0, 0, 0, 0.58) 82%);
}

.wheel-photo {
  position: absolute;
  max-width: none;
  user-select: none;
}

.wheel-photo-matte {
  top: 50%;
  left: -25vw;
  width: min(84vw, 1280px);
  height: 112vh;
  object-fit: cover;
  object-position: 38% 50%;
  transform: translateY(-50%) rotate(-3deg) scale(1.04);
  filter: grayscale(1) contrast(1.12) brightness(0.62);
}

.is-active .wheel-photo-matte {
  animation: wheel-photo-nudge 1.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.kobayashi-plate {
  position: absolute;
  left: clamp(30px, 8vw, 118px);
  bottom: clamp(24px, 6vh, 58px);
  z-index: 3;
  padding: 10px 0;
  color: rgba(232, 228, 220, 0.58);
  border-top: 1px solid var(--purple-soft);
  font-size: 10px;
}

.spec-panel {
  position: relative;
  z-index: 3;
  grid-column: 2;
  align-self: center;
  justify-self: start;
  max-width: 560px;
}

.number-label {
  margin: 0 0 32px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 800;
}

.spec-panel h2,
.craft-copy h2,
.final-copy h2 {
  font-size: clamp(34px, 4.6vw, 78px);
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: clamp(34px, 6vh, 70px);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.spec-grid section {
  position: relative;
  min-height: 168px;
  padding: clamp(24px, 3vw, 38px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.spec-grid section::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  background: rgba(143, 92, 255, 0.28);
}

.is-active .spec-grid section::before {
  animation: line-draw 780ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.spec-icon {
  display: block;
  width: 20px;
  height: 20px;
  margin-bottom: 24px;
  border: 1px solid var(--purple-soft);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 45%, var(--purple-soft) 46% 54%, transparent 55%),
    linear-gradient(0deg, transparent 45%, var(--purple-soft) 46% 54%, transparent 55%);
  box-shadow: 0 0 18px rgba(143, 92, 255, 0.13);
}

.spec-grid h3 {
  margin: 0 0 12px;
  color: var(--soft-white);
  font-size: 12px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
}

.spec-grid p,
.final-copy p,
.craft-copy span {
  color: var(--muted-white);
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.7;
}

.spec-grid p {
  max-width: 220px;
  margin: 0;
}

.scene-chrome {
  --scene-light-x: 78%;
  --scene-light-y: 44%;
  --scene-light: 0.05;
}

.craft-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(20px, 4vw, 70px);
  border-top: 1px solid var(--deep-line);
}

.craft-copy {
  position: relative;
  z-index: 4;
  align-self: center;
  max-width: 420px;
}

.craft-copy span {
  display: block;
  margin-top: 34px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
}

.chrome-sculpture {
  position: absolute;
  inset: 0;
  z-index: 0;
  min-height: 100%;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: visible;
  border-left: 0;
  pointer-events: none;
  mask-image: none;
}

.chrome-sculpture::before {
  background:
    linear-gradient(90deg, rgba(3, 3, 3, 1) 0%, rgba(3, 3, 3, 0.985) 14%, rgba(3, 3, 3, 0.93) 28%, rgba(3, 3, 3, 0.78) 42%, rgba(3, 3, 3, 0.52) 56%, rgba(3, 3, 3, 0.22) 70%, rgba(3, 3, 3, 0.06) 80%, rgba(3, 3, 3, 0) 88%),
    radial-gradient(ellipse at 24% 50%, rgba(3, 3, 3, 0.78), rgba(3, 3, 3, 0.34) 34%, rgba(3, 3, 3, 0) 64%),
    radial-gradient(circle at 76% 51%, transparent 0 44%, rgba(0, 0, 0, 0.42) 88%);
}

.chrome-sculpture::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 3, 3, 0.36) 0%, rgba(3, 3, 3, 0.22) 24%, rgba(3, 3, 3, 0.08) 46%, rgba(3, 3, 3, 0) 66%);
}

.wheel-photo-purple {
  top: 50%;
  right: -11vw;
  width: min(86vw, 1320px);
  height: 116vh;
  object-fit: cover;
  object-position: 59% 49%;
  transform: translateY(-50%) scale(1.04);
  filter: contrast(1.04) brightness(0.78) saturate(0.88);
}

.is-active .wheel-photo-purple {
  animation: purple-wheel-reveal 1.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.shimmer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(105deg, transparent 18%, rgba(232, 228, 220, 0.13) 44%, transparent 58%);
  transform: translateX(-72%);
  mix-blend-mode: screen;
}

.is-active .shimmer {
  animation: none;
}

.rim-caption {
  position: absolute;
  right: clamp(26px, 5vw, 68px);
  bottom: clamp(22px, 5vh, 56px);
  z-index: 4;
  color: rgba(232, 228, 220, 0.5);
  font-size: 10px;
}

.scene-final {
  --scene-light-x: 72%;
  --scene-light-y: 70%;
  --scene-light: 0.035;
}

.final-shell {
  display: grid;
  align-items: center;
  min-height: 100%;
  border-top: 1px solid var(--deep-line);
}

.ghost-wheel {
  position: absolute;
  right: max(-12vw, -180px);
  bottom: 5vh;
  width: min(59vw, 780px);
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border-radius: 50%;
  opacity: 0.26;
  mix-blend-mode: screen;
  mask-image: radial-gradient(circle, #000 0 54%, transparent 74%);
  transform: translateZ(0);
}

.ghost-wheel::before {
  z-index: 2;
  background:
    radial-gradient(circle, transparent 0 42%, rgba(0, 0, 0, 0.36) 58%, rgba(0, 0, 0, 0.8) 100%),
    linear-gradient(180deg, transparent 0 74%, #000 92%);
}

.ghost-wheel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  filter: grayscale(0.6) contrast(1.08) brightness(0.62) saturate(0.75);
  transform: scale(1.14);
}

.is-active .ghost-wheel {
  animation: slow-spin 46s linear infinite;
}

.final-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.final-copy h2 {
  margin-bottom: 28px;
}

.final-copy p {
  max-width: 390px;
  margin: 0 0 42px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.bracket-button {
  position: relative;
  display: inline-grid;
  min-width: 190px;
  min-height: 48px;
  place-items: center;
  padding: 15px 22px;
  color: var(--soft-white);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-size: 11px;
}

.bracket-button::before,
.bracket-button::after {
  position: absolute;
  width: 14px;
  height: 14px;
  content: "";
  opacity: 0.72;
  transition: transform 260ms ease, opacity 260ms ease;
}

.bracket-button::before {
  top: 0;
  left: 0;
  border-top: 1px solid var(--purple);
  border-left: 1px solid var(--purple);
}

.bracket-button::after {
  right: 0;
  bottom: 0;
  border-right: 1px solid var(--purple);
  border-bottom: 1px solid var(--purple);
}

.is-active .bracket-button::before,
.is-active .bracket-button::after {
  animation: bracket-arrive 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.bracket-button:hover::before,
.bracket-button:focus-visible::before {
  opacity: 1;
  transform: translate(-4px, -4px);
}

.bracket-button:hover::after,
.bracket-button:focus-visible::after {
  opacity: 1;
  transform: translate(4px, 4px);
}

.bracket-button.secondary {
  color: var(--muted-white);
}

.vertical-japanese {
  position: absolute;
  top: 26vh;
  right: clamp(30px, 6vw, 86px);
  margin: 0;
  color: rgba(232, 228, 220, 0.55);
  writing-mode: vertical-rl;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(17px, 1.4vw, 24px);
  letter-spacing: 0.24em;
}

.vertical-japanese::after {
  display: block;
  width: 1px;
  height: 80px;
  margin: 24px auto 0;
  content: "";
  background: linear-gradient(180deg, var(--purple), transparent);
}

.site-footer {
  position: absolute;
  right: clamp(24px, 5vw, 74px);
  bottom: clamp(22px, 3.2vw, 38px);
  left: clamp(24px, 5vw, 74px);
  display: grid;
  grid-template-columns: 1.5fr 1fr auto auto;
  gap: 24px;
  color: rgba(232, 228, 220, 0.48);
  font-size: 10px;
}

.progress-rail {
  position: fixed;
  top: 50%;
  left: clamp(18px, 2.8vw, 42px);
  z-index: 36;
  display: grid;
  gap: 12px;
  transform: translateY(-50%);
  color: rgba(232, 228, 220, 0.42);
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.progress-rail::before {
  position: absolute;
  top: -52px;
  left: 50%;
  width: 1px;
  height: 38px;
  content: "";
  background: linear-gradient(180deg, transparent, var(--purple));
}

.progress-rail button {
  position: relative;
  width: 34px;
  height: 28px;
  padding: 0;
  color: inherit;
  letter-spacing: 0.22em;
}

.progress-rail button::after {
  position: absolute;
  top: 50%;
  right: -18px;
  width: 10px;
  height: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  background: var(--purple);
  transition: transform 240ms ease;
}

.progress-rail button.is-active {
  color: var(--purple);
}

.progress-rail button.is-active::after {
  transform: scaleX(1);
}

.scroll-cue {
  position: fixed;
  right: clamp(20px, 3.6vw, 58px);
  top: 50%;
  z-index: 36;
  display: grid;
  place-items: center;
  gap: 16px;
  transform: translateY(-50%);
  color: rgba(232, 228, 220, 0.46);
  font-size: 9px;
  writing-mode: vertical-rl;
}

.transition-wipe {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  visibility: hidden;
  overflow: hidden;
}

.wipe-panel {
  position: absolute;
  inset: -16vh -8vw;
  display: block;
  transform: translateY(112%) skewY(-4deg);
  will-change: transform;
}

.wipe-panel-main {
  background:
    linear-gradient(105deg, rgba(143, 92, 255, 0.08), transparent 28%, rgba(232, 228, 220, 0.04) 52%, transparent 78%),
    #050505;
}

.wipe-panel-accent {
  opacity: 0.68;
  background: linear-gradient(90deg, transparent, rgba(143, 92, 255, 0.16), transparent), #010101;
  animation-delay: 70ms !important;
}

.wipe-panel-edge {
  opacity: 0.46;
  background: linear-gradient(180deg, transparent 0 42%, rgba(232, 228, 220, 0.14) 50%, transparent 58%);
  mix-blend-mode: screen;
  animation-delay: 115ms !important;
}

.transition-wipe.is-active {
  visibility: visible;
}

.transition-wipe.is-active .wipe-panel {
  animation: wipe-pass var(--transition-ms) cubic-bezier(0.76, 0, 0.24, 1) both;
}

body[data-direction="up"] .transition-wipe.is-active .wipe-panel {
  animation-name: wipe-pass-up;
}

.no-js .deck {
  height: auto;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}

.no-js .scene {
  position: relative;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  clip-path: none;
  scroll-snap-align: start;
}

.no-js [data-motion-layer],
.no-js .reveal {
  opacity: 1;
  transform: none;
  clip-path: none;
}

@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.32);
    opacity: 1;
  }
}

@keyframes title-focus {
  0% {
    opacity: 0;
    letter-spacing: 0.018em;
  }
  100% {
    opacity: 1;
    letter-spacing: 0;
  }
}

@keyframes arc-reveal {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

@keyframes night-zoom {
  from {
    transform: scale(1.11) translateX(-1.2%);
  }
  to {
    transform: scale(1.055) translateX(1.2%);
  }
}

@keyframes light-drift {
  from {
    transform: translateX(-28%);
  }
  to {
    transform: translateX(24%);
  }
}

@keyframes wordmark-flicker {
  0% {
    opacity: 0;
    text-shadow: none;
  }
  16% {
    opacity: 0.76;
  }
  18% {
    opacity: 0.3;
  }
  24%,
  100% {
    opacity: 1;
  }
}

@keyframes wheel-photo-nudge {
  from {
    transform: translateY(-50%) rotate(-5deg) scale(1.08);
  }
  to {
    transform: translateY(-50%) rotate(-3deg) scale(1.04);
  }
}

@keyframes purple-wheel-reveal {
  from {
    clip-path: inset(0 0 0 28%);
    transform: translateY(-50%) translateX(4%) scale(1.07);
  }
  to {
    clip-path: inset(0 0 0 0);
    transform: translateY(-50%) translateX(0) scale(1.04);
  }
}

@keyframes line-draw {
  to {
    transform: scaleX(1);
  }
}

@keyframes chrome-shimmer {
  0%,
  70%,
  100% {
    transform: translateX(-72%);
    opacity: 0;
  }
  82% {
    transform: translateX(58%);
    opacity: 1;
  }
}

@keyframes bracket-arrive {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 0.72;
    transform: scale(1);
  }
}

@keyframes slow-spin {
  to {
    transform: translateZ(0) rotate(360deg);
  }
}

@keyframes wipe-pass {
  0% {
    transform: translateY(112%) skewY(-4deg);
  }
  45% {
    transform: translateY(0) skewY(-4deg);
  }
  100% {
    transform: translateY(-112%) skewY(-4deg);
  }
}

@keyframes wipe-pass-up {
  0% {
    transform: translateY(-112%) skewY(4deg);
  }
  45% {
    transform: translateY(0) skewY(4deg);
  }
  100% {
    transform: translateY(112%) skewY(4deg);
  }
}

@media (max-width: 860px) {
  .atmosphere-noise {
    opacity: 0.055;
    background-size: 220px 220px;
  }

  .atmosphere-scanlines {
    opacity: 0.022;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    align-items: start;
    padding: 20px 18px 0;
  }

  .kanji-mark {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 22px;
  }

  .primary-nav {
    display: none;
  }

  .menu-icon {
    display: block;
  }

  .scene-shell {
    padding: 82px 22px 30px;
  }

  .section-kicker {
    top: 26%;
    left: 22px;
    max-width: 240px;
  }

  .mega-title {
    top: 39%;
    width: 145vw;
    font-size: clamp(78px, 28vw, 150px);
  }

  .hero-copy {
    right: 22px;
    bottom: 82px;
    left: 22px;
  }

  .signal-type {
    right: 22px;
    bottom: 155px;
    max-width: 210px;
    line-height: 1.6;
    text-align: right;
  }

  .metal-arc {
    right: -34vw;
    bottom: 16vh;
    width: 118vw;
  }

  .vertical-folio,
  .scroll-cue {
    display: none;
  }

  .night-frame {
    width: 100%;
    height: 72vh;
  }

  .night-image {
    object-position: 50% 44%;
  }

  .night-frame figcaption {
    top: 13%;
  }

  .wordmark {
    font-size: clamp(48px, 17vw, 88px);
  }

  .night-signal {
    right: 18px;
    bottom: 22px;
    max-width: 220px;
    text-align: right;
  }

  .product-shell,
  .craft-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
  }

  .wheel-stage-matte {
    inset: 0;
    min-height: 100%;
    height: 100%;
    opacity: 0.42;
    mask-image: none;
  }

  .wheel-photo-matte {
    top: 50%;
    left: -78vw;
    width: 174vw;
    height: 112vh;
    object-position: 42% 50%;
    transform: translateY(-50%) rotate(-3deg) scale(1.04);
  }

  .kobayashi-plate {
    left: 58vw;
    bottom: 34px;
    max-width: 190px;
  }

  .spec-panel {
    position: relative;
    z-index: 2;
    grid-column: 1;
    align-self: center;
    justify-self: stretch;
    width: min(100%, calc(100vw - 44px));
    max-width: calc(100vw - 44px);
    min-width: 0;
  }

  .spec-panel h2,
  .craft-copy h2,
  .final-copy h2 {
    font-size: clamp(34px, 10vw, 54px);
  }

  .spec-grid {
    margin-top: 30px;
  }

  .spec-grid section {
    min-height: 130px;
    padding: 20px 16px;
  }

  .spec-icon {
    margin-bottom: 16px;
  }

  .craft-copy {
    position: relative;
    z-index: 2;
    align-self: start;
    margin-top: 6vh;
  }

  .chrome-sculpture {
    inset: 0;
    min-height: 100%;
    height: 100%;
    border-left: 0;
    opacity: 0.52;
  }

  .wheel-photo-purple {
    top: 50%;
    right: -70vw;
    width: 176vw;
    height: 112vh;
    object-position: 60% 50%;
    transform: translateY(-50%) scale(1.04);
  }

  .rim-caption {
    display: none;
  }

  .final-copy {
    max-width: 92%;
  }

  .ghost-wheel {
    right: -46vw;
    bottom: 14vh;
    width: 118vw;
    opacity: 0.18;
  }

  .vertical-japanese {
    top: 18vh;
    right: 18px;
    font-size: 17px;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
    font-size: 9px;
    letter-spacing: 0.26em;
  }

  .progress-rail {
    left: 8px;
    gap: 6px;
    transform: translateY(-50%) scale(0.86);
    transform-origin: left center;
  }
}

@media (max-width: 540px) {
  .brand-mark {
    max-width: 170px;
    gap: 10px;
    letter-spacing: 0.34em;
  }

  .section-kicker {
    display: none;
  }

  .hero-copy p {
    font-size: 19px;
    letter-spacing: 0.24em;
  }

  .hero-copy span {
    max-width: 250px;
    line-height: 1.7;
  }

  .night-frame {
    height: 68vh;
  }

  .spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
  }

  .spec-grid section {
    min-height: 112px;
    padding: 14px 12px;
  }

  .spec-grid h3 {
    font-size: 10px;
    letter-spacing: 0.22em;
  }

  .spec-grid p {
    font-size: 12px;
    line-height: 1.45;
  }

  .spec-icon {
    display: none;
  }

  .cta-row {
    display: grid;
    max-width: 230px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-ms: 260ms;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .scene,
  [data-motion-layer],
  .transition-wipe .wipe-panel {
    transition-duration: 260ms !important;
  }

  .scene,
  .scene.is-exiting,
  .scene:not(.is-active) [data-motion-layer],
  body[data-direction="up"] .scene:not(.is-active) [data-motion-layer],
  body[data-direction="down"] .scene.is-exiting [data-motion-layer],
  body[data-direction="up"] .scene.is-exiting [data-motion-layer] {
    transform: none !important;
    clip-path: inset(0 0 0 0) !important;
  }

  .light-drift,
  .shimmer,
  .atmosphere-scanlines {
    display: none !important;
  }

  .ghost-wheel,
  .wheel-photo-matte,
  .wheel-photo-purple {
    animation: none !important;
  }
}