:root {
  color-scheme: dark;
  --black: #000;
  --white: #fff;
  --blue: #6078ff;
  --violet: #7b49ff;
  --cyan: #92e9ff;
  --silver: rgba(231, 237, 255, 0.74);
  --line: rgba(255, 255, 255, 0.16);
  --line-soft: rgba(255, 255, 255, 0.07);
  --panel: rgba(10, 11, 19, 0.72);
  --page-progress: 0;
  --hero-progress: 0;
  --news-progress: 0;
  --works-progress: 0;
  --works-cards-visible: 0;
  --works-carousel-progress: 0;
  --about-progress: 0;
  --products-progress: 0;
  --work-accent: #6078ff;
  --work-accent-alt: #92e9ff;
  --material-accent: #88dfff;
  --material-accent-alt: #f7fbff;
  --stage-light: 0;
  --stage-dark: 1;
  --ambient-hue: 212;
  --ambient-shift: 0;
  --ambient-strength: 0.22;
  --stage-chroma: hsl(var(--ambient-hue) 82% 48%);
  --stage-chroma-alt: hsl(calc(var(--ambient-hue) + 58) 74% 56%);
  --work-accent-strength: 0;
  --work-accent-soft: 0%;
  --work-accent-mid: 0%;
  --work-accent-strong: 0%;
  --work-accent-max: 0%;
  --work-index-progress: 0;
  --work-stair-shift: 0;
  --work-stair-x: 0%;
  --work-stair-y: 0vh;
  --work-stair-rot: 0deg;
  --work-ghost-shift: 0vw;
  --work-symbol-x: 0px;
  --work-symbol-y: 0px;
  --work-symbol-x-alt: 0px;
  --work-symbol-y-alt: 0px;
  --work-symbol-x-wide: 0px;
  --work-symbol-x-rev: 0px;
  --work-symbol-y-neg: 0px;
  --work-symbol-y-soft: 0px;
  --work-symbol-y-deep: 0px;
  --font-main: "IBM Plex Sans JP", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", "SF Mono", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #000;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  background: #000;
  color: #fff;
  font-family: var(--font-main);
  overflow-x: hidden;
  animation: pageReveal 1600ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body[data-active-section="about"] {
  --stage-light: 1;
  --stage-dark: 0;
}

body[data-active-section="products"],
body[data-active-section="works"] {
  --stage-light: 0;
  --stage-dark: 1;
}

body.modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, rgba(104, 122, 255, 0.28), transparent 20%),
    #000;
  animation: introCurtain 1900ms cubic-bezier(0.16, 1, 0.3, 1) 220ms both;
}

img,
video,
canvas,
iframe {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
}

.webgl-space {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(rgba(223, 233, 233, calc(var(--stage-light) * 0.92)), rgba(223, 233, 233, calc(var(--stage-light) * 0.92))),
    radial-gradient(circle at calc(34% + var(--ambient-shift) * 18%) 28%, color-mix(in srgb, var(--stage-chroma) calc(var(--ambient-strength) * 74%), transparent), transparent 36%),
    radial-gradient(circle at calc(76% - var(--ambient-shift) * 14%) 64%, color-mix(in srgb, var(--stage-chroma-alt) calc(var(--ambient-strength) * 62%), transparent), transparent 38%),
    linear-gradient(115deg, color-mix(in srgb, var(--work-accent) var(--work-accent-soft), transparent), transparent 44%, color-mix(in srgb, var(--work-accent-alt) var(--work-accent-mid), transparent)),
    radial-gradient(circle at 50% 44%, color-mix(in srgb, var(--material-accent) 20%, transparent), transparent 30%),
    radial-gradient(circle at 74% 62%, color-mix(in srgb, var(--material-accent-alt) 12%, transparent), transparent 28%),
    radial-gradient(circle at 22% 36%, rgba(20, 25, 46, 0.82), transparent 34%),
    #000;
}

#prismCanvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.splash-cursor-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: calc(0.08 + var(--stage-dark) * 0.16 - var(--about-progress) * 0.06);
  mix-blend-mode: screen;
  pointer-events: none;
  filter: saturate(1.25) contrast(1.08);
}

#prismCanvas {
  z-index: 2;
}

.webgl-space::before {
  content: "";
  position: absolute;
  inset: -18% -8%;
  z-index: 3;
  background:
    linear-gradient(rgba(255,255,255,calc(0.052 + var(--stage-light) * 0.16)) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,calc(0.052 + var(--stage-light) * 0.16)) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 10%, rgba(255,255,255,0.08), transparent 54%);
  background-size: 58px 58px, 58px 58px, auto;
  transform: perspective(1020px) rotateX(64deg) translateY(-13%) scaleX(1.08);
  transform-origin: 50% 12%;
  opacity: calc(0.34 + var(--stage-light) * 0.42 - var(--products-progress) * 0.1);
}

.webgl-space::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background:
    linear-gradient(rgba(222, 234, 234, calc(var(--stage-light) * 0.42)), rgba(222, 234, 234, calc(var(--stage-light) * 0.42))),
    linear-gradient(90deg, rgba(0, 0, 0, calc(0.68 * var(--stage-dark))) 0%, rgba(0, 0, 0, calc(0.18 * var(--stage-dark))) 38%, rgba(0, 0, 0, calc(0.52 * var(--stage-dark))) 100%),
    linear-gradient(120deg, color-mix(in srgb, var(--stage-chroma) calc(var(--ambient-strength) * 22%), transparent), transparent 50%, color-mix(in srgb, var(--stage-chroma-alt) calc(var(--ambient-strength) * 18%), transparent)),
    radial-gradient(ellipse at 50% 48%, transparent 0 36%, rgba(0, 0, 0, 0.34) 72%, rgba(0, 0, 0, 0.74) 100%),
    linear-gradient(90deg, transparent 0 49.8%, rgba(255,255,255,0.08) 50%, transparent 50.2%),
    linear-gradient(transparent 0 49.8%, rgba(255,255,255,0.07) 50%, transparent 50.2%);
  opacity: calc(0.72 - var(--stage-light) * 0.18);
}

.depth-word {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  z-index: 0;
  color: rgba(255, 255, 255, 0.32);
  -webkit-text-stroke: 0;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  user-select: none;
  mix-blend-mode: screen;
  filter:
    drop-shadow(0 0 36px rgba(255, 255, 255, 0.12))
    blur(calc(var(--news-progress) * 1.4px));
  opacity: calc(0.5 - var(--news-progress) * 0.18 - var(--about-progress) * 0.08);
}

body[data-active-section="about"] .depth-word {
  color: rgba(0, 0, 0, 0.18);
  mix-blend-mode: multiply;
}

body[data-active-section="about"] .scanline-layer {
  opacity: 0.08;
}

body[data-active-section="works"] .webgl-space,
body[data-active-section="products"] .webgl-space {
  filter: saturate(1.18) contrast(1.08);
}

body.is-transitioning .webgl-space,
body.is-section-shifting .webgl-space {
  filter: saturate(1.7) contrast(1.22) brightness(1.08);
}

.depth-word-top {
  left: 39%;
  top: 52vh;
  font-size: clamp(116px, 26vw, 460px);
  transform: translateX(-50%) scaleX(0.94);
}

.depth-word-bottom {
  bottom: 9vh;
  font-size: clamp(96px, 20vw, 330px);
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.055);
  opacity: calc(var(--works-progress) * 0.78);
}

.scanline-layer {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.032) 4px);
  opacity: 0.2;
  mix-blend-mode: screen;
  z-index: 5;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 26px;
  left: clamp(18px, 3.2vw, 54px);
  right: clamp(18px, 3.2vw, 54px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0;
  mix-blend-mode: difference;
  animation: navReveal 1100ms cubic-bezier(0.16, 1, 0.3, 1) 920ms both;
}

.brand-lockup,
.site-nav,
.utility-nav {
  display: inline-flex;
  align-items: center;
}

.brand-lockup {
  justify-self: start;
  gap: 12px;
  font-weight: 800;
  transition: transform 180ms ease;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #000;
  font-size: 13px;
  clip-path: polygon(0 0, 100% 0, 100% 76%, 76% 100%, 0 100%);
}

.site-nav {
  justify-self: center;
  gap: clamp(24px, 4vw, 66px);
}

.utility-nav {
  justify-self: end;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(10px);
}

.utility-nav a {
  padding: 9px 14px;
  transition: background 180ms ease, transform 180ms ease;
}

.utility-nav a + a {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.utility-nav a:hover {
  background: rgba(255, 255, 255, 0.18);
}

.nav-link {
  position: relative;
  padding: 9px 0;
  opacity: 0.66;
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: currentColor;
  transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  opacity: 1;
}

.nav-link.is-active::after {
  transform: scaleX(1);
}

.section-rail {
  position: fixed;
  z-index: 16;
  left: clamp(18px, 3.2vw, 54px);
  top: 50%;
  display: grid;
  gap: 12px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--font-mono);
  font-size: 10px;
  writing-mode: vertical-rl;
  mix-blend-mode: difference;
}

.section-rail span {
  position: relative;
  opacity: 0.46;
  transition: opacity 220ms ease, transform 220ms ease;
}

.section-rail span::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 50%;
  width: 1px;
  height: 10px;
  background: currentColor;
  opacity: 0.42;
}

.section-rail span.is-active {
  opacity: 1;
  transform: translateY(-4px);
}

.stage-hud {
  position: fixed;
  z-index: 18;
  inset: 0;
  width: auto;
  display: block;
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--font-mono);
  font-size: 11px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, -12px, 0);
  transition: opacity 420ms ease, visibility 420ms ease, transform 420ms ease;
  animation: none;
}

body.hero-hud-visible .stage-hud {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  animation: hudReveal 1200ms cubic-bezier(0.16, 1, 0.3, 1) 1180ms both;
}

body:not(.hero-hud-visible) .stage-hud {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, -12px, 0);
  pointer-events: none;
  animation: none;
}

.hud-block {
  position: fixed;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  pointer-events: auto;
}

.hud-quaternion {
  right: clamp(20px, 3.2vw, 54px);
  top: 108px;
  width: min(252px, 22vw);
}

.hud-material {
  left: clamp(24px, 6vw, 92px);
  bottom: clamp(150px, 18vh, 184px);
  width: min(286px, 27vw);
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.15);
}

.hud-block p,
.hud-block dl {
  margin: 0;
}

.hud-block p {
  margin-bottom: 13px;
  color: rgba(255, 255, 255, 0.94);
  font-weight: 800;
}

.hud-block dt,
.hud-block dd,
.hud-reset {
  letter-spacing: 0.02em;
}

.hud-block div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 3px 0;
}

.hud-block dt {
  color: rgba(255, 255, 255, 0.45);
}

.hud-block dd {
  margin: 0;
  color: rgba(172, 190, 255, 0.92);
}

.material-palette {
  display: flex !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  padding: 12px 0 0 !important;
}

.material-swatch {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 0;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.34), 0 0 18px transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.material-swatch[data-material="ice"] {
  background: linear-gradient(135deg, #e9fcff, #75dcff 54%, #6882ff);
}

.material-swatch[data-material="white"] {
  background: linear-gradient(135deg, #fff, #e8eefc 60%, #a9bbff);
}

.material-swatch[data-material="violet"] {
  background: linear-gradient(135deg, #f7eaff, #8f6dff 52%, #24e7ff);
}

.material-swatch[data-material="carbon"] {
  background: linear-gradient(135deg, #0c1220, #35518e 58%, #75f4ff);
}

.material-swatch.is-active {
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.5),
    0 0 18px color-mix(in srgb, var(--material-accent) 62%, transparent);
}

.hud-orbit {
  position: relative;
  width: 132px;
  height: 132px;
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(118, 134, 255, 0.18), transparent 42%),
    rgba(255, 255, 255, 0.025);
  pointer-events: none;
}

.hud-quaternion-orbit {
  position: fixed;
  right: clamp(44px, 5vw, 86px);
  top: 260px;
}

.hud-axis {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 112px;
  background: rgba(255, 255, 255, 0.2);
  transform-origin: 50% 0;
}

.hud-axis-x { transform: rotate(90deg); }
.hud-axis-y { transform: rotate(0deg); }
.hud-axis-z { transform: rotate(42deg); background: rgba(126, 147, 255, 0.42); }

.hud-orbit i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 24px rgba(129, 155, 255, 0.92);
  transform: translate(-50%, -50%);
}

.hud-orbit b {
  position: absolute;
  right: 13px;
  bottom: 13px;
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--font-mono);
  font-size: 10px;
}

.hud-reset {
  position: fixed;
  right: clamp(20px, 3.2vw, 54px);
  top: 412px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  pointer-events: auto;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

body[data-active-section="about"] .hud-block,
body[data-active-section="about"] .hud-reset,
body[data-active-section="about"] .hud-orbit {
  color: rgba(12, 20, 24, 0.68);
  border-color: rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.16);
}

body[data-active-section="about"] .hud-block p,
body[data-active-section="about"] .hud-orbit b,
body[data-active-section="about"] .hud-reset {
  color: rgba(0, 0, 0, 0.74);
}

.stage-flow {
  position: relative;
  z-index: 2;
}

.stage-section {
  position: relative;
  min-height: 100vh;
}

.hero-section {
  height: 168vh;
  display: block;
  padding: 0;
  overflow: hidden;
}

.hero-section::before {
  content: none;
}

body:not([data-active-section="hero"]) .hero-section::before {
  opacity: 0;
}

.hero-lockup {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: grid;
  align-content: end;
  justify-items: start;
  padding: 0 clamp(24px, 7vw, 112px) clamp(120px, 18vh, 190px);
  transition: transform 180ms ease;
  animation: heroCopyReveal 1300ms cubic-bezier(0.16, 1, 0.3, 1) 780ms both;
  pointer-events: none;
}

.system-label {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-mono);
  font-size: clamp(10px, 1vw, 12px);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body[data-active-section="about"] .system-label {
  color: rgba(0, 0, 0, 0.62);
}

.hero-word {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.hero-particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: crosshair;
  transform: translateY(calc(var(--page-progress) * -20px));
  transition: opacity 520ms ease;
}

body.hero-particles-ready .hero-particle-canvas {
  opacity: 0.76;
}

.hero-word span {
  display: block;
  transform: translateY(calc(var(--page-progress) * -18px));
  transition: opacity 260ms ease;
}

body.hero-particles-ready .hero-word span {
  opacity: 0;
}

.hero-line {
  margin: 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.4vw, 18px);
  justify-self: start;
  transform: none;
}

.hero-caption {
  display: none;
}

.hero-news {
  position: fixed;
  z-index: 17;
  left: clamp(24px, 6vw, 92px);
  bottom: clamp(48px, 9vh, 88px);
  display: grid;
  gap: 8px;
  width: min(310px, 42vw);
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-mono);
  font-size: 12px;
  text-shadow: 0 2px 18px #000;
  transition: opacity 360ms ease, transform 360ms ease, visibility 360ms ease;
  animation: navReveal 1100ms cubic-bezier(0.16, 1, 0.3, 1) 1320ms both;
}

body:not([data-active-section="hero"]) .hero-news {
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  pointer-events: none;
}

.hero-news p,
.hero-news time,
.hero-news span {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-news a {
  color: #fff;
  font-size: 13px;
  line-height: 1.45;
}

.scroll-cue {
  position: fixed;
  right: clamp(18px, 3.2vw, 54px);
  bottom: clamp(44px, 8vh, 86px);
  z-index: 18;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-mono);
  font-size: 11px;
  writing-mode: vertical-rl;
  mix-blend-mode: difference;
}

.news-section {
  min-height: 118vh;
  padding: 22vh clamp(24px, 8vw, 140px) 18vh;
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(360px, 0.78fr);
  gap: clamp(36px, 8vw, 142px);
  align-items: center;
}

.section-copy {
  position: sticky;
  top: 18vh;
}

.section-copy h2,
.products-copy h2 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(46px, 7.8vw, 122px);
  line-height: 0.86;
  font-weight: 950;
  letter-spacing: 0;
}

.news-section .section-copy h2 {
  max-width: 640px;
  font-size: clamp(48px, 8vw, 128px);
  line-height: 0.82;
}

.news-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.news-list article {
  min-height: 146px;
  padding: clamp(18px, 2.3vw, 30px);
  background: rgba(5, 6, 14, 0.58);
  backdrop-filter: blur(12px);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.news-list time,
.experience-tag,
.experience-strip span,
.product-panel span {
  color: rgba(166, 183, 255, 0.86);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.experience-tag {
  display: inline-block;
  text-transform: uppercase;
}

.news-list h3 {
  margin: 22px 0 0;
  font-size: clamp(22px, 2.4vw, 42px);
  line-height: 0.98;
  letter-spacing: 0;
}

.news-list p {
  max-width: 470px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
}

.works-section {
  height: 620vh;
}

.works-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  perspective: 1900px;
  transform-style: preserve-3d;
  z-index: 1;
  background:
    radial-gradient(circle at calc(44% + var(--work-stair-x)) 42%, color-mix(in srgb, var(--work-accent) var(--work-accent-strong), transparent), transparent 34%),
    radial-gradient(circle at calc(76% - var(--work-stair-x)) 48%, color-mix(in srgb, var(--work-accent-alt) var(--work-accent-mid), transparent), transparent 30%),
    linear-gradient(105deg, color-mix(in srgb, var(--work-accent) var(--work-accent-soft), transparent), transparent 34%, color-mix(in srgb, var(--work-accent-alt) var(--work-accent-soft), transparent));
}

body[data-active-section="works"] .works-sticky {
  position: fixed;
  inset: 0;
  height: 100vh;
}

.works-sticky::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 13%, rgba(255,255,255,0.13) 13.05%, transparent 13.1%),
    linear-gradient(transparent 0 27%, rgba(255,255,255,0.1) 27.05%, transparent 27.1%);
  opacity: calc(0.42 + var(--work-accent-strength) * 0.26);
}

.works-sticky::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 16%, color-mix(in srgb, var(--work-accent) var(--work-accent-soft), transparent) 45%, transparent 76%),
    repeating-linear-gradient(0deg, transparent 0 5px, rgba(255,255,255,0.026) 6px);
  opacity: calc(0.18 + var(--work-accent-strength) * 0.34);
  mix-blend-mode: screen;
  pointer-events: none;
}

.works-ghost-strip {
  position: absolute;
  z-index: 0;
  inset: -9vh -18vw;
  display: flex;
  align-items: center;
  gap: clamp(42px, 8vw, 116px);
  color: rgba(255, 255, 255, 0.13);
  font-family: var(--font-main);
  font-size: clamp(140px, 23vw, 360px);
  font-weight: 900;
  line-height: 0.72;
  white-space: nowrap;
  transform:
    translate3d(var(--work-ghost-shift), var(--work-stair-y), -620px)
    rotateY(calc(-12deg + var(--work-stair-rot)))
    rotateZ(-0.8deg);
  transform-style: preserve-3d;
  opacity: calc(0.12 + var(--work-accent-strength) * 0.18);
  filter: blur(0.2px);
  mix-blend-mode: screen;
  pointer-events: none;
}

.works-ghost-strip span {
  color: rgba(255,255,255,0.06);
  -webkit-text-stroke: 1px rgba(255,255,255,0.22);
  text-shadow: 0 0 52px color-mix(in srgb, var(--work-accent) 34%, transparent);
}

.works-symbol-field {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  transform-style: preserve-3d;
  opacity: calc(0.2 + var(--work-accent-strength) * 0.28);
}

.works-symbol-field span {
  position: absolute;
  display: grid;
  place-items: center;
  width: clamp(62px, 9vw, 130px);
  aspect-ratio: 1;
  color: transparent;
  font-family: var(--font-main);
  font-size: clamp(54px, 8vw, 118px);
  font-weight: 900;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--work-accent-alt) 46%, rgba(255,255,255,0.28));
  filter: blur(0.2px);
  transform:
    translate3d(var(--work-symbol-x), var(--work-symbol-y), -420px)
    rotateY(-28deg)
    rotateZ(-4deg);
}

.works-symbol-field span:nth-child(1) { left: 9%; top: 18%; }
.works-symbol-field span:nth-child(2) { left: 68%; top: 12%; transform: translate3d(var(--work-symbol-x-alt), var(--work-symbol-y-neg), -520px) rotateY(-34deg) rotateZ(8deg); }
.works-symbol-field span:nth-child(3) { left: 82%; top: 54%; transform: translate3d(var(--work-symbol-x-wide), var(--work-symbol-y-soft), -360px) rotateY(-24deg) rotateZ(-12deg); }
.works-symbol-field span:nth-child(4) { left: 24%; top: 66%; transform: translate3d(var(--work-symbol-y-alt), var(--work-symbol-y-alt), -600px) rotateY(26deg) rotateZ(5deg); }
.works-symbol-field span:nth-child(5) { left: 48%; top: 30%; transform: translate3d(var(--work-symbol-x-rev), var(--work-symbol-y-deep), -700px) rotateY(-18deg) rotateZ(2deg); }
.works-symbol-field span:nth-child(6) { left: 4%; top: 48%; transform: translate3d(var(--work-symbol-y-deep), var(--work-symbol-y-soft), -460px) rotateY(32deg) rotateZ(-10deg); }

.works-title {
  position: absolute;
  z-index: 150;
  left: max(28px, calc(50% - min(60vw, 900px) / 2));
  top: calc(46% - min(33.75vw, 506px) / 2 - clamp(118px, 14vh, 150px));
  max-width: min(340px, 34vw);
  pointer-events: none;
  opacity: 1;
  transform: translate3d(0, 0, 140px);
  transform-origin: left center;
  filter:
    drop-shadow(0 16px 36px rgba(0, 0, 0, 0.48))
    drop-shadow(0 0 34px color-mix(in srgb, var(--work-accent) 22%, transparent));
  transition: filter 180ms ease;
}

.works-title h2 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(26px, 3.6vw, 56px);
  line-height: 0.94;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.82);
  text-shadow:
    0 0 24px rgba(255, 255, 255, 0.12),
    0 0 48px color-mix(in srgb, var(--work-accent-alt) 20%, transparent);
}

.work-track {
  position: absolute;
  inset: 0;
  z-index: 8;
  transform-style: preserve-3d;
  transform: translate3d(0, 0, 0);
  opacity: 1;
  transition: none;
}

.work-hitbox {
  position: absolute;
  z-index: 12;
  left: 50%;
  top: 46%;
  width: min(60vw, 900px);
  min-width: 320px;
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 1;
  pointer-events: none;
}

body.works-cards-ready .work-hitbox {
  pointer-events: auto;
}

.work-hitbox:focus-visible {
  outline: 1px solid color-mix(in srgb, var(--work-accent-alt) 70%, #fff);
  outline-offset: 8px;
}

.work-card {
  position: absolute;
  top: 46%;
  left: 50%;
  width: min(60vw, 900px);
  min-width: 320px;
  aspect-ratio: 16 / 9;
  transform-origin: 50% 50%;
  border: 1px solid color-mix(in srgb, var(--work-accent) 34%, rgba(255, 255, 255, 0.22));
  background:
    linear-gradient(145deg, rgba(255,255,255,0.05), rgba(0,0,0,0.14)),
    rgba(2, 3, 9, 0.84);
  box-shadow:
    0 44px 140px rgba(0, 0, 0, 0.64),
    0 16px 0 rgba(0, 0, 0, 0.32),
    0 0 58px color-mix(in srgb, var(--work-accent) var(--work-accent-mid), transparent);
  transform-style: preserve-3d;
  cursor: pointer;
  transition: opacity 180ms ease, filter 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  overflow: hidden;
}

.work-card::before,
.work-card::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: rgba(255, 255, 255, 0.54);
  z-index: 2;
}

.work-card::before {
  top: 14px;
  left: 14px;
  border-top: 1px solid;
  border-left: 1px solid;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.42), transparent 54%),
    repeating-linear-gradient(90deg, transparent 0 5px, rgba(255,255,255,0.09) 6px);
  mix-blend-mode: screen;
}

.work-card::after {
  right: 14px;
  bottom: 14px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.work-card .work-media::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: -2px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.7),
    inset 0 0 52px rgba(255,255,255,0.08);
  pointer-events: none;
}

.work-card:hover,
.work-card.is-front {
  border-color: color-mix(in srgb, var(--work-accent-alt) 54%, rgba(255, 255, 255, 0.7));
}

.work-card.is-front {
  box-shadow:
    0 42px 120px rgba(0, 0, 0, 0.72),
    0 22px 0 rgba(0, 0, 0, 0.34),
    0 0 95px color-mix(in srgb, var(--work-accent) var(--work-accent-strong), transparent);
}

.work-card.is-next,
.work-card.is-prev {
  box-shadow:
    0 22px 80px rgba(0, 0, 0, 0.72),
    0 14px 0 rgba(0, 0, 0, 0.44),
    inset 0 0 0 1px rgba(255,255,255,0.08);
}

.work-media {
  position: absolute;
  inset: 0;
  background: #03040a;
}

.work-media video,
.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.08);
}

.portrait-media video {
  object-fit: contain;
  background: #020208;
}

.work-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.42)),
    radial-gradient(circle at 48% 44%, color-mix(in srgb, var(--work-accent-alt) var(--work-accent-mid), transparent), transparent 36%),
    linear-gradient(90deg, transparent 0 22%, rgba(255,255,255,0.18) 23%, transparent 25%),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,0.035) 4px);
  mix-blend-mode: screen;
}

.work-meta {
  position: absolute;
  z-index: 3;
  left: clamp(20px, 2.8vw, 46px);
  bottom: clamp(20px, 2.8vw, 46px);
  max-width: 82%;
  color: #fff;
  text-shadow: 0 2px 18px #000;
}

.work-meta span {
  display: block;
  margin-bottom: 9px;
  color: rgba(205, 213, 255, 0.78);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.work-meta h3 {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 74px);
  line-height: 0.92;
  letter-spacing: 0;
}

.work-meta p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--font-mono);
  font-size: 12px;
}

.works-hint {
  position: absolute;
  z-index: 3;
  right: clamp(24px, 4vw, 54px);
  bottom: clamp(44px, 8vh, 82px);
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  font-size: 15px;
  opacity: var(--works-cards-visible);
}

.works-hint::after {
  content: " ↗";
}

.works-current {
  position: absolute;
  z-index: 4;
  left: clamp(28px, 6.8vw, 104px);
  bottom: clamp(56px, 9vh, 92px);
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-mono);
  text-shadow: 0 2px 24px #000;
  opacity: min(1, calc(var(--works-progress) * 3.4));
  pointer-events: none;
}

.works-current span {
  color: color-mix(in srgb, var(--work-accent-alt) 72%, white);
  font-size: 12px;
}

.works-current strong {
  max-width: min(48vw, 720px);
  font-family: var(--font-main);
  font-size: clamp(36px, 4.8vw, 72px);
  line-height: 0.9;
  letter-spacing: 0;
}

.experience-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: rgba(0, 0, 0, 0.14);
}

.experience-strip article {
  min-height: 260px;
  padding: clamp(24px, 3vw, 42px);
  display: grid;
  align-content: space-between;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.experience-strip h3 {
  margin: 24px 0 18px;
  font-size: clamp(24px, 2.6vw, 44px);
  line-height: 0.98;
}

.experience-strip p {
  margin: 0;
  color: rgba(0, 0, 0, 0.56);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}

.about-section {
  min-height: 190vh;
  padding: 18vh clamp(24px, 8vw, 140px) 14vh;
  overflow: hidden;
  color: #0b0e10;
}

.about-section::before,
.products-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 92px 92px;
  opacity: 0.28;
}

.about-section::after {
  content: "VISION";
  position: fixed;
  left: clamp(92px, 10vw, 140px);
  top: 18vh;
  z-index: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.38);
  font-size: clamp(58px, 8vw, 132px);
  font-weight: 900;
  line-height: 0.9;
  opacity: calc(var(--about-progress) * 0.85);
  pointer-events: none;
}

.product-panel p {
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-mono);
  line-height: 1.75;
}

.skill-marquee {
  position: relative;
  z-index: 2;
  min-height: max(680px, 100vh);
  display: grid;
  align-content: center;
  gap: clamp(14px, 2.2vw, 26px);
  margin-inline: calc(var(--page-gutter) * -0.65);
  overflow: hidden;
  border: 0;
  background:
    radial-gradient(circle at 18% 36%, rgba(31, 111, 255, 0.2), transparent 30%),
    radial-gradient(circle at 80% 62%, rgba(122, 56, 255, 0.18), transparent 32%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.skill-marquee .system-label {
  position: absolute;
  left: clamp(24px, 6vw, 92px);
  top: clamp(24px, 5vw, 78px);
  color: rgba(18, 28, 42, 0.58);
}

.skill-marquee-row {
  display: flex;
  width: max-content;
  gap: clamp(10px, 1.35vw, 18px);
  padding-block: 3px;
  will-change: transform;
  animation: skillMarquee 22s linear infinite;
}

.skill-marquee-row-b,
.skill-marquee-row-d {
  animation-name: skillMarqueeReverse;
}

.skill-marquee-row-b {
  animation-duration: 18s;
  transform: translateX(-22vw);
}

.skill-marquee-row-c {
  animation-duration: 24s;
  transform: translateX(-8vw);
}

.skill-marquee-row-d {
  animation-duration: 20s;
  transform: translateX(-36vw);
}

.skill-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: clamp(50px, 6.2vw, 84px);
  padding: 0 clamp(18px, 2.4vw, 34px);
  border: 1px solid color-mix(in srgb, var(--skill-color) 28%, rgba(15, 25, 36, 0.16));
  border-radius: 999px;
  color: color-mix(in srgb, var(--skill-color) 86%, #08111f);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.62), rgba(255,255,255,0.2)),
    color-mix(in srgb, var(--skill-color) 10%, rgba(255,255,255,0.56));
  box-shadow:
    0 16px 44px rgba(18, 30, 42, 0.08),
    inset 0 0 0 1px rgba(255,255,255,0.45);
  font-family: var(--font-main);
  font-size: clamp(26px, 3.6vw, 62px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.skill-ai { --skill-color: #178dff; }
.skill-content { --skill-color: #4c63ff; }
.skill-ue { --skill-color: #7d49ff; }
.skill-web { --skill-color: #0ba9a2; }
.skill-research { --skill-color: #5c6675; }

.rb-shiny {
  color: inherit;
  background-image:
    linear-gradient(
      108deg,
      currentColor 0%,
      currentColor 32%,
      rgba(255, 255, 255, 0.98) 47%,
      color-mix(in srgb, var(--material-accent) 72%, #fff) 52%,
      currentColor 68%,
      currentColor 100%
    );
  background-size: 240% auto;
  background-position: 150% center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rbShinyText 3.2s linear infinite;
}

.hero-word.rb-shiny {
  color: rgba(255, 255, 255, 0.92);
  -webkit-text-fill-color: inherit;
}

.hero-word.rb-shiny > span.rb-shiny {
  color: rgba(255, 255, 255, 0.9);
}

.rb-scroll-velocity {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  contain: paint;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.rb-velocity-track {
  display: inline-flex;
  width: max-content;
  min-width: 220%;
  will-change: transform;
  animation: rbScrollVelocity var(--rb-scroll-duration, 16s) linear infinite;
}

.rb-velocity-track span {
  display: inline-block;
  flex: 0 0 auto;
}

.rb-text-type {
  min-height: 1lh;
}

.rb-type-cursor {
  display: inline-block;
  width: 0.55em;
  margin-left: 0.08em;
  color: currentColor;
  animation: rbCursorBlink 620ms steps(2, end) infinite;
}

.rb-type-cursor::before {
  content: "_";
}

.rb-shuffle {
  display: inline-block;
  will-change: contents;
}

.capability-matrix {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 34px);
  margin-top: clamp(70px, 10vw, 132px);
  border: 0;
  background: transparent;
}

.capability-matrix article {
  min-width: 0;
  min-height: 188px;
  padding: 0;
  display: grid;
  align-content: space-between;
  background: transparent;
  backdrop-filter: none;
}

.capability-matrix h3 {
  margin: 0;
  font-size: clamp(18px, 1.5vw, 29px);
  line-height: 0.98;
}

.capability-matrix p {
  margin: 24px 0 0;
  color: color-mix(in srgb, var(--skill-accent, #1f6fff) 76%, #172331);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
}

.capability-matrix article:nth-child(1) { --skill-accent: #1f6fff; }
.capability-matrix article:nth-child(2) { --skill-accent: #00a87a; }
.capability-matrix article:nth-child(3) { --skill-accent: #d48600; }
.capability-matrix article:nth-child(4) { --skill-accent: #7a38ff; }
.capability-matrix article:nth-child(5) { --skill-accent: #d9368b; }
.capability-matrix article:nth-child(6) { --skill-accent: #0b83a5; }

.resume-entry {
  position: relative;
  z-index: 2;
  margin-top: 76px;
}

.resume-link {
  display: inline-grid;
  gap: 9px;
  min-width: min(420px, 100%);
  padding: 18px 20px;
  border: 1px solid rgba(0, 0, 0, 0.28);
  color: #000;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.38);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  transition: background 160ms ease, transform 160ms ease;
}

.resume-link:hover {
  background: #000;
  color: #fff;
}

.resume-link span {
  color: inherit;
  opacity: 0.62;
  text-transform: none;
}

.products-section {
  min-height: 210vh;
  padding: 16vh clamp(24px, 6vw, 96px) 22vh;
  display: grid;
  align-content: center;
  color: #fff;
}

.products-section::after {
  content: none;
}

.products-section .products-copy {
  max-width: min(760px, 58vw);
}

.products-copy,
.product-showcase {
  position: relative;
  z-index: 2;
}

.product-showcase {
  display: grid;
  grid-template-columns: 1.36fr 0.88fr 0.88fr;
  gap: clamp(16px, 2.4vw, 34px);
  margin-top: clamp(28px, 5vw, 70px);
  border: 0;
  background: transparent;
  min-height: clamp(460px, 48vw, 680px);
  overflow: visible;
  box-shadow: 0 44px 140px rgba(0, 0, 0, 0.48);
}

.product-panel {
  position: relative;
  min-height: 100%;
  padding: clamp(24px, 4vw, 54px);
  display: grid;
  align-content: end;
  text-align: left;
  border: 0;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.62)),
    radial-gradient(circle at 72% 18%, color-mix(in srgb, var(--work-accent) 28%, transparent), transparent 34%),
    rgba(4, 5, 14, 0.82);
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease, color 180ms ease;
}

.product-panel:first-child {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.7)),
    url("assets/cases/zhitou-main.jpg") center / cover,
    rgba(4, 5, 14, 0.82);
}

.product-panel:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.72)),
    url("assets/cases/loan-home.jpg") center / cover,
    rgba(4, 5, 14, 0.82);
}

.product-panel:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.72)),
    url("assets/media/ue5-poster.jpg") center / cover,
    rgba(4, 5, 14, 0.82);
}

.product-panel::before,
.product-panel::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  opacity: 0.62;
}

.product-panel > span,
.product-panel h3,
.product-panel p {
  position: relative;
  z-index: 2;
}

.product-panel > span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.product-panel::before {
  left: 18px;
  top: 18px;
  border-left: 1px solid #fff;
  border-top: 1px solid #fff;
}

.product-panel::after {
  right: 18px;
  bottom: 18px;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
}

.product-panel:hover {
  filter: brightness(1.18) saturate(1.12);
  color: #fff;
  transform: translateY(-4px);
}

.product-panel:hover p,
.product-panel:hover span {
  color: rgba(255, 255, 255, 0.76);
}

.product-panel h3 {
  margin: 22px 0 16px;
  font-size: clamp(34px, 4.8vw, 78px);
  line-height: 0.9;
  letter-spacing: 0;
}

.products-copy h2 {
  max-width: 920px;
  font-size: clamp(36px, 5.2vw, 76px);
  line-height: 0.94;
}

.product-panel p {
  max-width: 540px;
  margin: 0;
  color: color-mix(in srgb, currentColor 64%, transparent);
  font-size: 13px;
}

.final-section {
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.outro-screen {
  position: absolute;
  inset: clamp(28px, 5vw, 76px);
  border: 1px solid rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(120deg, rgba(122, 232, 255, 0.22), rgba(13, 18, 28, 0.78) 42%, rgba(169, 100, 255, 0.25)),
    rgba(255, 255, 255, 0.035);
  overflow: hidden;
  opacity: calc(0.58 + var(--page-progress) * 0.22);
}

.outro-screen::before {
  content: "";
  position: absolute;
  inset: -16%;
  background:
    linear-gradient(72deg, transparent 0 28%, rgba(255,255,255,0.22) 30%, transparent 34%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 16px);
  transform: translateX(calc((var(--page-progress) - 0.82) * 160px)) skewX(-10deg);
  mix-blend-mode: screen;
  opacity: 0.62;
}

.outro-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.78;
  mix-blend-mode: screen;
}

.outro-corner {
  position: absolute;
  width: 30px;
  height: 30px;
}

.outro-corner::before,
.outro-corner::after {
  content: "";
  position: absolute;
  background: #fff;
}

.outro-corner::before {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
}

.outro-corner::after {
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
}

.outro-corner-a { left: -15px; top: -15px; }
.outro-corner-b { right: -15px; top: -15px; }
.outro-corner-c { left: -15px; bottom: -15px; }
.outro-corner-d { right: -15px; bottom: -15px; }

.final-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(18px, 3vw, 30px);
  place-items: center;
  text-align: center;
  padding-inline: 24px;
}

.final-section .system-label {
  position: static;
  margin: 0;
}

.final-section h2 {
  margin: 0;
  font-size: clamp(92px, 25vw, 420px);
  line-height: 0.78;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow:
    0 0 36px rgba(255, 255, 255, 0.2),
    0 0 110px color-mix(in srgb, var(--material-accent) 46%, transparent),
    0 0 160px color-mix(in srgb, var(--work-accent) 34%, transparent);
}

.final-contact {
  position: static;
  z-index: 3;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(10px);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.final-contact:hover {
  background: #fff;
  color: #000;
}

.copyright {
  position: static;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  font-size: 12px;
}

.case-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

.case-modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
}

.modal-panel {
  position: absolute;
  inset: clamp(18px, 4vw, 54px);
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 0.66fr);
  gap: clamp(20px, 4vw, 58px);
  padding: clamp(24px, 4vw, 56px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(0, 0, 0, 0.9);
  overflow: auto;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.modal-close {
  position: fixed;
  z-index: 3;
  right: clamp(32px, 6vw, 82px);
  top: clamp(30px, 6vw, 76px);
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
}

.modal-content {
  display: contents;
}

.modal-hero {
  grid-column: 1;
  align-self: start;
}

.modal-hero h2 {
  margin: 0;
  font-size: clamp(42px, 6vw, 96px);
  line-height: 0.92;
  letter-spacing: 0;
}

.modal-hero p:not(.system-label) {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.modal-tags span,
.modal-action {
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--font-mono);
  font-size: 11px;
}

.modal-media {
  grid-column: 2;
  min-height: 48vh;
  align-self: start;
  background: #05050a;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.modal-media video,
.modal-media img,
.modal-media iframe {
  width: 100%;
  height: 100%;
  min-height: 48vh;
  object-fit: contain;
  border: 0;
}

.modal-iframe,
.modal-iframe iframe {
  min-height: 68vh;
}

.modal-breakdown {
  grid-column: 1;
  display: grid;
  gap: 1px;
  align-self: start;
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.12);
}

.modal-breakdown article {
  padding: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.modal-breakdown span {
  color: rgba(156, 174, 255, 0.86);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.modal-breakdown p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
}

.modal-video-grid,
.modal-gallery,
.modal-actions {
  grid-column: 2;
  display: grid;
  gap: 14px;
}

.modal-video-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.modal-video-grid article {
  display: grid;
  gap: 10px;
}

.modal-video-grid video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #05050a;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.modal-video-grid h3 {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  letter-spacing: 0;
}

.modal-video-grid p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--font-mono);
  font-size: 11px;
}

.modal-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.modal-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
}

.transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
  mix-blend-mode: screen;
}

.transition-overlay.is-active {
  opacity: 1;
  animation: stageFade 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.transition-overlay.is-section {
  animation-duration: 640ms;
}

.transition-overlay.is-section::before,
.transition-overlay.is-section::after,
.transition-overlay.is-section .transition-grid::before,
.transition-overlay.is-section .transition-grid::after {
  animation-duration: 640ms;
}

.transition-overlay::before,
.transition-overlay::after {
  content: "";
  position: absolute;
  inset: -10%;
  opacity: 0;
  pointer-events: none;
}

.transition-overlay.is-active::before {
  background:
    linear-gradient(98deg, transparent 0 18%, rgba(255,255,255,0.68) 22%, transparent 26%),
    linear-gradient(105deg, color-mix(in srgb, var(--stage-chroma) 38%, transparent), transparent 44%, color-mix(in srgb, var(--stage-chroma-alt) 34%, transparent)),
    radial-gradient(circle at 62% 46%, color-mix(in srgb, var(--work-accent) 32%, transparent), transparent 34%);
  mix-blend-mode: screen;
  animation: stageWipe 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.transition-overlay.is-active::after {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.26) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg, transparent 0 118px, color-mix(in srgb, var(--work-accent) 34%, transparent) 120px, transparent 128px);
  mix-blend-mode: screen;
  animation: stageScan 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.transition-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.12), transparent 24%, rgba(0,0,0,0.18) 50%, transparent 76%, rgba(255,255,255,0.08)),
    repeating-linear-gradient(90deg, transparent 0 58px, rgba(255,255,255,0.22) 59px, transparent 62px),
    repeating-linear-gradient(0deg, transparent 0 34px, color-mix(in srgb, var(--stage-chroma) 24%, transparent) 35px, transparent 37px);
  mix-blend-mode: screen;
  filter: contrast(1.08) saturate(1.2);
  opacity: 0.78;
}

.transition-grid::before,
.transition-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 28%, rgba(255,255,255,0.38) 31%, transparent 36%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.12) 0 1px, transparent 1px 10px);
  transform: translateX(-12vw);
  animation: stageGridSettle 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.transition-grid::after {
  background:
    linear-gradient(90deg, transparent 0 56%, color-mix(in srgb, var(--material-accent) 46%, transparent) 60%, transparent 65%);
  mix-blend-mode: screen;
  animation-delay: 90ms;
}

.fragment {
  position: fixed;
  z-index: 91;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-mono);
  line-height: 1;
  mix-blend-mode: difference;
  animation: fragmentScatter 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.click-pulse {
  position: fixed;
  z-index: 92;
  width: 7px;
  height: 7px;
  margin: -3px 0 0 -3px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: difference;
  animation: clickPulse 520ms ease-out both;
}

@keyframes stageFade {
  0% { opacity: 0; filter: saturate(1) contrast(1); }
  18% { opacity: 0.9; filter: saturate(1.45) contrast(1.16); }
  54% { opacity: 0.42; filter: saturate(1.18) contrast(1.08); }
  100% { opacity: 0; filter: saturate(1) contrast(1); }
}

@keyframes rbShinyText {
  0% { background-position: 150% center; }
  100% { background-position: -70% center; }
}

@keyframes rbScrollVelocity {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(var(--rb-scroll-direction, 1) * -50%)); }
}

@keyframes rbCursorBlink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@keyframes skillMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes skillMarqueeReverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

@keyframes stageWipe {
  0% { opacity: 0; transform: translate3d(-42vw, 0, 0) skewX(-12deg) scaleX(0.8); }
  24% { opacity: 0.88; transform: translate3d(-6vw, 0, 0) skewX(-7deg) scaleX(1.02); }
  58% { opacity: 0.5; transform: translate3d(18vw, 0, 0) skewX(-3deg) scaleX(1); }
  100% { opacity: 0; transform: translate3d(46vw, 0, 0) skewX(0deg) scaleX(1.08); }
}

@keyframes stageScan {
  0% { opacity: 0; transform: translateY(-18px) scaleY(0.98); }
  20% { opacity: 0.72; transform: translateY(4px) scaleY(1); }
  64% { opacity: 0.36; transform: translateY(10px) scaleY(1.01); }
  100% { opacity: 0; transform: translateY(24px) scaleY(1); }
}

@keyframes stageGridSettle {
  0% { opacity: 0; transform: translateX(-16vw) scaleX(0.94); }
  26% { opacity: 0.7; transform: translateX(-2vw) scaleX(1.02); }
  72% { opacity: 0.34; transform: translateX(5vw) scaleX(1); }
  100% { opacity: 0; transform: translateX(14vw) scaleX(1.04); }
}

@keyframes fragmentScatter {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(0deg); filter: blur(0); }
  22% { opacity: 0.72; }
  100% { opacity: 0; transform: translate3d(var(--tx), var(--ty), 0) rotate(var(--rot)); filter: blur(5px); }
}

@keyframes clickPulse {
  0% { opacity: 0.9; transform: scale(0.4); }
  100% { opacity: 0; transform: scale(18); }
}

@keyframes introCurtain {
  0% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
  58% {
    opacity: 0.72;
    transform: scale(1.08);
    filter: blur(10px);
  }
  100% {
    opacity: 0;
    transform: scale(1.18);
    filter: blur(28px);
  }
}

@keyframes pageReveal {
  0% { background-color: #000; }
  100% { background-color: #000; }
}

@keyframes navReveal {
  0% {
    opacity: 0;
    transform: translateY(-16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hudReveal {
  0% {
    opacity: 0;
    transform: translateX(34px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes heroCopyReveal {
  0% {
    opacity: 0;
    transform: translateY(44px) scale(0.96);
    filter: blur(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@media (max-width: 1060px) {
  .stage-hud {
    display: none;
  }

  .news-section,
  .product-showcase {
    grid-template-columns: 1fr;
  }

  .capability-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .site-header {
    top: 18px;
    grid-template-columns: auto 1fr;
    gap: 18px;
  }

  .utility-nav {
    display: none;
  }

  .site-nav {
    justify-self: end;
    gap: 16px;
    font-size: 11px;
  }

  .section-rail {
    display: none;
  }

  .news-section,
  .about-section,
  .products-section {
    padding-inline: 22px;
  }

  .hero-news {
    width: min(300px, calc(100vw - 44px));
    bottom: 82px;
  }

  .hero-caption {
    left: 22px;
    right: 22px;
  }

  .news-section {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 128px 90px;
  }

  .section-copy {
    position: relative;
    top: auto;
  }

  .work-card {
    width: min(78vw, 500px);
    min-width: 250px;
  }

  .work-hitbox {
    width: min(78vw, 500px);
    min-width: 250px;
    transform: translate(-50%, -52%);
  }

  .works-title {
    left: 32px;
    right: 22px;
    top: clamp(84px, 11vh, 104px);
    max-width: 58vw;
    bottom: auto;
  }

  .works-title h2 {
    max-width: 58vw;
    font-size: clamp(24px, 7.4vw, 38px);
  }

  .works-hint {
    left: 22px;
    right: auto;
    bottom: 28px;
    font-size: 10px;
  }

  .about-section {
    min-height: auto;
    padding-block: 120px 90px;
  }

  .capability-matrix,
  .experience-strip {
    grid-template-columns: 1fr;
  }

  .skill-marquee {
    min-height: 72vh;
    margin-inline: -22px;
    gap: 12px;
  }

  .skill-pill {
    min-height: 48px;
    padding-inline: 18px;
    font-size: clamp(24px, 8vw, 42px);
  }

  .capability-matrix article,
  .experience-strip article {
    min-height: 128px;
  }

  .products-section {
    min-height: auto;
    padding-block: 120px 90px;
  }

  .product-panel,
  .product-panel:first-child {
    min-height: 280px;
  }

  .modal-panel {
    grid-template-columns: 1fr;
    inset: 12px;
    padding: 22px;
  }

  .modal-hero,
  .modal-media,
  .modal-breakdown,
  .modal-video-grid,
  .modal-gallery,
  .modal-actions {
    grid-column: auto;
  }

  .modal-video-grid,
  .modal-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand-lockup span:last-child {
    display: none;
  }

  .site-nav {
    gap: 12px;
  }

  .hero-word {
    width: 100%;
    height: clamp(96px, 30vw, 148px);
    font-size: clamp(76px, 25vw, 138px);
  }

  .hero-line {
    max-width: 300px;
  }

  .work-card {
    aspect-ratio: 4 / 5;
  }

  .work-media video,
  .work-media img {
    object-fit: cover;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .scanline-layer {
    opacity: 0.18;
  }
}

/* NING fixed-stage translation */
:root {
  --stage-black: #050608;
  --stage-blue: #081529;
  --stage-foreground: #f5f7fb;
  --stage-muted: rgba(245, 247, 251, 0.58);
  --stage-grid: rgba(157, 190, 218, 0.16);
  --glass-ice: #bceeff;
  --skill-ai: #58d8ff;
  --skill-content: #6e86ff;
  --skill-ue: #9b72ff;
  --skill-product: #55d6a7;
  --skill-research: #c6ced9;
  --active-accent: var(--work-accent, #6e86ff);
  --active-accent-alt: var(--work-accent-alt, #bceeff);
  --stage-gutter: clamp(28px, 4vw, 72px);
  --header-height: 96px;
  color-scheme: dark;
}

html,
body {
  background: var(--stage-black);
  color: var(--stage-foreground);
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
}

body {
  animation: none;
}

body::before,
.transition-overlay,
.transition-grid,
.fragment,
.click-pulse {
  display: none !important;
  animation: none !important;
}

body.is-transitioning .webgl-space,
body.is-section-shifting .webgl-space {
  filter: none;
}

.webgl-space {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  filter: none !important;
  background:
    radial-gradient(circle at 50% 38%, rgba(188, 238, 255, 0.09), transparent 24%),
    radial-gradient(circle at 72% 52%, color-mix(in srgb, var(--active-accent) 10%, transparent), transparent 35%),
    linear-gradient(150deg, var(--stage-blue), var(--stage-black) 58%);
}

#prismCanvas,
.splash-cursor-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.splash-cursor-canvas {
  opacity: 0.13;
  mix-blend-mode: screen;
  filter: saturate(0.72) contrast(1.04);
}

.webgl-space::before {
  content: "";
  position: absolute;
  inset: -18% -9%;
  z-index: 1;
  background:
    linear-gradient(var(--stage-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--stage-grid) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(1050px) rotateX(64deg) translateY(-11%) scaleX(1.08);
  transform-origin: 50% 12%;
  opacity: 0.72;
}

.webgl-space::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.62), transparent 24% 72%, rgba(5, 6, 8, 0.55)),
    radial-gradient(ellipse at 50% 44%, transparent 0 31%, rgba(5, 6, 8, 0.24) 68%, rgba(5, 6, 8, 0.76) 100%);
  opacity: 1;
}

.scanline-layer {
  display: none;
}

.depth-word {
  z-index: -1;
  color: rgba(245, 247, 251, 0.08);
  opacity: 0.28;
  filter: none;
  mix-blend-mode: normal;
}

.depth-word-top {
  left: 50%;
  top: 42vh;
  font-size: clamp(112px, 24vw, 400px);
  transform: translateX(-50%);
}

.depth-word-bottom {
  display: none;
}

.site-header {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto;
  height: var(--header-height);
  padding: 0 var(--stage-gutter);
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 54px);
  background: transparent;
  border: 0;
  animation: none;
}

.brand-lockup,
.site-nav,
.utility-nav {
  opacity: 1;
  animation: none;
}

.brand-lockup {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--stage-foreground);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(188, 238, 255, 0.54);
  border-radius: 2px;
  color: var(--glass-ice);
}

.site-nav,
.utility-nav {
  font-family: var(--font-mono);
  font-size: 11px;
}

.site-nav {
  justify-self: center;
  display: flex;
  gap: clamp(20px, 2.5vw, 42px);
}

.utility-nav {
  justify-self: end;
  display: flex;
  gap: 0;
}

.nav-link,
.utility-nav a {
  position: relative;
  padding: 9px 0;
  color: var(--stage-muted);
  transition: color 220ms ease;
}

.utility-nav a {
  padding-inline: 12px;
  border: 0;
}

.utility-nav a + a {
  border-left: 1px solid var(--stage-grid);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 1px;
  background: var(--glass-ice);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.nav-link:hover,
.nav-link.is-active,
.utility-nav a:hover {
  color: var(--stage-foreground);
  background: transparent;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.stage-flow {
  position: relative;
  z-index: 2;
}

.stage-section {
  position: relative;
  z-index: 2;
  scroll-margin-top: var(--header-height);
}

.system-label {
  color: var(--stage-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-rail {
  position: fixed;
  z-index: 30;
  left: auto;
  top: 50%;
  right: max(18px, 1.8vw);
  width: auto;
  display: grid;
  gap: 12px;
  transform: translateY(-50%);
  color: var(--stage-muted);
  writing-mode: vertical-rl;
}

.section-rail span {
  font-size: 9px;
}

.section-rail span::before {
  background: var(--stage-grid);
}

.section-rail span.is-active {
  color: var(--glass-ice);
}

.stage-hud {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: block;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: none;
  animation: none;
  transition: opacity 260ms ease, visibility 260ms ease;
}

body.hero-hud-visible .stage-hud {
  opacity: 1;
  visibility: visible;
}

.stage-hud .hud-block,
.stage-hud .hud-orbit,
.stage-hud .hud-reset {
  pointer-events: auto;
}

.hud-block {
  position: absolute;
  width: 190px;
  padding: 14px;
  border: 1px solid var(--stage-grid);
  border-radius: 2px;
  color: var(--stage-muted);
  background: rgba(5, 6, 8, 0.22);
  backdrop-filter: blur(8px);
}

.hud-quaternion {
  left: var(--stage-gutter);
  right: auto;
  top: 27vh;
  width: 190px;
}

.hud-material {
  left: auto;
  right: var(--stage-gutter);
  top: 27vh;
  width: 190px;
}

.hud-orbit {
  right: calc(var(--stage-gutter) + 38px);
  bottom: 20vh;
  border-color: var(--stage-grid);
}

.hud-reset {
  position: absolute;
  right: var(--stage-gutter);
  bottom: 13vh;
  border: 1px solid var(--stage-grid);
  border-radius: 2px;
  color: var(--stage-muted);
  background: rgba(5, 6, 8, 0.28);
}

.material-swatch {
  width: 24px;
  height: 24px;
  border-radius: 2px;
}

.hero-section {
  min-height: 126svh;
  height: auto;
  padding: 0 var(--stage-gutter);
  display: block;
  overflow: clip;
}

.hero-section::before {
  content: none;
}

.hero-lockup {
  position: sticky;
  z-index: 2;
  top: 0;
  width: 100%;
  height: 100svh;
  display: grid;
  place-items: center;
  pointer-events: none;
  transform: none;
  animation: none;
}

.hero-lockup .system-label {
  position: absolute;
  left: 0;
  bottom: clamp(76px, 10vh, 112px);
  margin: 0;
}

.hero-word {
  position: relative;
  z-index: 0;
  width: min(64vw, 920px);
  height: auto;
  margin: 0;
  display: flex;
  justify-content: center;
  color: rgba(245, 247, 251, 0.16);
  font-size: clamp(96px, 15vw, 230px);
  font-weight: 750;
  line-height: 0.75;
  letter-spacing: 0;
  text-shadow: 0 0 42px rgba(188, 238, 255, 0.08);
  opacity: 0.34;
  animation: none;
}

.hero-word span {
  color: inherit;
  -webkit-text-stroke: 1px rgba(188, 238, 255, 0.24);
}

.hero-word.rb-shiny,
.hero-word.rb-shiny > span.rb-shiny {
  animation-duration: 12s;
  filter: none;
}

.news-list h3.rb-shiny,
.work-meta h3.rb-shiny,
.capability-matrix h3.rb-shiny,
.experience-strip h3.rb-shiny,
.product-panel h3.rb-shiny,
.modal-hero h2.rb-shiny {
  color: inherit;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  animation: none;
}

.rb-type-cursor {
  display: none;
}

.hero-particle-canvas {
  opacity: 0.18;
}

.hero-caption {
  position: absolute;
  z-index: 3;
  left: var(--stage-gutter);
  right: var(--stage-gutter);
  bottom: 26svh;
  display: flex;
  justify-content: flex-end;
  gap: 8px 18px;
  flex-wrap: wrap;
  color: var(--stage-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  pointer-events: none;
}

/* Light resume chapter */
.news-section {
  min-height: 118svh;
  padding: clamp(132px, 16vh, 190px) var(--stage-gutter) clamp(100px, 14vh, 160px);
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 0.62fr);
  align-items: start;
  gap: clamp(50px, 9vw, 150px);
  color: #0a1220;
  background:
    linear-gradient(rgba(8, 21, 41, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 21, 41, 0.08) 1px, transparent 1px),
    rgba(245, 247, 251, 0.94);
  background-size: 48px 48px;
}

.news-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0 39%, rgba(8, 21, 41, 0.13) 39%, transparent calc(39% + 1px));
}

.news-section .section-copy {
  position: sticky;
  top: calc(var(--header-height) + 56px);
  z-index: 2;
  max-width: 380px;
}

.news-section .section-copy .system-label {
  color: rgba(8, 21, 41, 0.56);
}

.news-section .section-copy h2 {
  margin: 16px 0 0;
  color: #081529;
  font-size: clamp(48px, 7vw, 104px);
  font-weight: 650;
  line-height: 0.92;
  letter-spacing: 0;
}

.news-list {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  border-left: 1px solid rgba(8, 21, 41, 0.28);
}

.news-list article {
  position: relative;
  min-height: 176px;
  padding: 12px 0 34px clamp(28px, 3vw, 48px);
  border: 0;
  border-bottom: 1px solid rgba(8, 21, 41, 0.18);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.news-list article::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 17px;
  width: 9px;
  height: 9px;
  border: 1px solid #081529;
  border-radius: 50%;
  background: #f5f7fb;
}

.news-list time {
  color: rgba(8, 21, 41, 0.5);
  font-size: 10px;
}

.news-list h3 {
  margin: 18px 0 0;
  color: #081529;
  font-size: clamp(25px, 3vw, 42px);
  line-height: 1.08;
}

.news-list p {
  max-width: 620px;
  margin: 15px 0 0;
  color: rgba(8, 21, 41, 0.64);
  line-height: 1.75;
}

.news-section .resume-entry {
  grid-column: 2;
  width: 100%;
  max-width: none;
  margin: 24px 0 0;
}

/* Works shared stage grid */
.works-section {
  position: relative;
  height: 580svh;
  min-height: 580svh;
  --works-card-width: min(62vw, 930px);
  --works-card-height: min(34.875vw, 523px);
  --works-grid-left: max(var(--stage-gutter), calc(50% - var(--works-card-width) / 2));
  --works-grid-right: max(var(--stage-gutter), calc(50% - var(--works-card-width) / 2));
  --works-grid-top: clamp(128px, 17vh, 172px);
  background: transparent;
}

.works-sticky,
body[data-active-section="works"] .works-sticky {
  position: sticky;
  inset: auto;
  top: 0;
  z-index: 2;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  perspective: 1800px;
  transform-style: preserve-3d;
  background:
    radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--active-accent) 16%, transparent), transparent 35%),
    linear-gradient(112deg, color-mix(in srgb, var(--active-accent-alt) 7%, transparent), transparent 42%),
    rgba(5, 6, 8, 0.16);
}

.works-sticky::before {
  content: "";
  position: absolute;
  inset: var(--works-grid-top) var(--works-grid-right) clamp(52px, 8vh, 88px) var(--works-grid-left);
  z-index: 1;
  border-top: 1px solid var(--stage-grid);
  border-bottom: 1px solid var(--stage-grid);
  background: none;
  opacity: 1;
  pointer-events: none;
}

.works-sticky::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, transparent 0 8%, color-mix(in srgb, var(--active-accent) 8%, transparent) 50%, transparent 92%);
  opacity: 1;
  mix-blend-mode: normal;
  pointer-events: none;
}

.works-stage-grid {
  position: absolute;
  inset: var(--works-grid-top) var(--works-grid-right) clamp(52px, 8vh, 88px) var(--works-grid-left);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  pointer-events: none;
}

.works-ghost-strip,
.works-symbol-field {
  display: none !important;
}

.work-track {
  position: absolute;
  inset: 0;
  z-index: 8;
  transform-style: preserve-3d;
}

.works-title {
  position: absolute;
  z-index: 7;
  left: 0;
  top: 0;
  max-width: min(360px, 30vw);
  padding-top: 18px;
  pointer-events: none;
  opacity: 1;
  transform: none;
  filter: none;
}

.works-title .system-label {
  margin: 0 0 9px;
  color: var(--stage-muted);
}

.works-title h2 {
  margin: 0;
  color: var(--stage-foreground);
  font-size: clamp(34px, 4.2vw, 64px);
  font-weight: 620;
  line-height: 0.94;
  letter-spacing: 0;
  text-shadow: 0 3px 24px rgba(5, 6, 8, 0.82);
}

.work-card,
.work-hitbox {
  top: 57%;
  left: 50%;
  width: var(--works-card-width);
  min-width: 0;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
}

.work-card {
  border: 1px solid color-mix(in srgb, var(--active-accent-alt) 34%, rgba(245, 247, 251, 0.24));
  background: #080b11;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.62);
  transition: border-color 240ms ease, box-shadow 240ms ease;
  overflow: hidden;
}

.work-card::before,
.work-card::after,
.work-card .work-media::before {
  content: none;
}

.work-card:hover,
.work-card.is-front {
  border-color: color-mix(in srgb, var(--active-accent-alt) 58%, rgba(245, 247, 251, 0.58));
}

.work-card.is-front {
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.7),
    0 0 64px color-mix(in srgb, var(--active-accent) 18%, transparent);
}

.work-card.is-next,
.work-card.is-prev {
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
}

.work-media {
  background: #080b11;
}

.work-media video,
.work-media img {
  filter: saturate(0.96) contrast(1.02);
}

.work-media::after {
  background: linear-gradient(180deg, transparent 46%, rgba(5, 6, 8, 0.82));
  mix-blend-mode: normal;
}

.work-meta {
  left: clamp(20px, 2.7vw, 42px);
  bottom: clamp(20px, 2.7vw, 42px);
  max-width: 78%;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.88);
}

.work-meta span {
  color: color-mix(in srgb, var(--active-accent-alt) 68%, var(--stage-foreground));
}

.work-meta h3 {
  font-size: clamp(32px, 4vw, 66px);
  font-weight: 620;
}

.work-hitbox {
  z-index: 180;
  border: 0;
  background: transparent;
}

.work-hitbox:focus-visible {
  outline: 2px solid var(--glass-ice);
  outline-offset: 7px;
}

.works-current {
  position: absolute;
  z-index: 190;
  left: var(--works-grid-left);
  bottom: 20px;
  display: grid;
  gap: 6px;
  opacity: var(--works-cards-visible);
}

.works-current span {
  color: color-mix(in srgb, var(--active-accent-alt) 74%, var(--stage-foreground));
}

.works-current strong {
  max-width: 42vw;
  font-size: clamp(24px, 3.1vw, 48px);
  font-weight: 600;
}

.works-hint {
  z-index: 190;
  right: var(--works-grid-right);
  bottom: 20px;
  color: var(--stage-muted);
  font-size: 11px;
}

/* Skills ticker and compact proof */
.about-section {
  min-height: 180svh;
  padding: clamp(118px, 15vh, 164px) 0 clamp(90px, 12vh, 140px);
  overflow: clip;
  color: var(--stage-foreground);
  background: rgba(5, 6, 8, 0.66);
}

.about-section::before,
.about-section::after {
  content: none;
}

.skill-marquee {
  position: relative;
  z-index: 2;
  min-height: 78svh;
  width: 100%;
  margin: 0;
  padding: 40px 0;
  display: grid;
  align-content: center;
  gap: clamp(13px, 2vh, 24px);
  border: 0;
  background: transparent;
  overflow: hidden;
}

.skill-marquee .system-label {
  position: absolute;
  left: var(--stage-gutter);
  top: 0;
  margin: 0;
}

.skill-marquee-row {
  width: max-content;
  min-width: 200%;
  display: flex;
  gap: clamp(24px, 4vw, 66px);
  padding: 0;
  border: 0;
  background: transparent;
  animation: skillMarquee 38s linear infinite;
  will-change: transform;
}

.skill-marquee-row-b,
.skill-marquee-row-d {
  animation-name: skillMarqueeReverse;
}

.skill-marquee-row-b { animation-duration: 44s; }
.skill-marquee-row-c { animation-duration: 34s; }
.skill-marquee-row-d { animation-duration: 48s; }

.skill-pill {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--stage-foreground);
  background: transparent;
  box-shadow: none;
  font-size: clamp(34px, 4.8vw, 74px);
  font-weight: 570;
  line-height: 1.08;
  white-space: nowrap;
}

.skill-pill::before {
  content: "";
  display: inline-block;
  width: 0.14em;
  height: 0.14em;
  margin-right: 0.32em;
  border-radius: 50%;
  vertical-align: 0.2em;
  background: currentColor;
}

.skill-ai { color: var(--skill-ai); }
.skill-content { color: var(--skill-content); }
.skill-ue { color: var(--skill-ue); }
.skill-web { color: var(--skill-product); }
.skill-research { color: var(--skill-research); }

.capability-matrix,
.experience-strip,
.resume-entry {
  position: relative;
  z-index: 2;
  width: calc(100% - var(--stage-gutter) * 2);
  max-width: 1280px;
  margin-inline: auto;
}

.capability-matrix {
  margin-top: clamp(48px, 8vh, 90px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--stage-grid);
  border-left: 1px solid var(--stage-grid);
  background: transparent;
}

.capability-matrix article {
  min-height: 116px;
  padding: 18px 20px;
  border: 0;
  border-right: 1px solid var(--stage-grid);
  border-bottom: 1px solid var(--stage-grid);
  border-radius: 0;
  color: var(--stage-foreground);
  background: rgba(8, 21, 41, 0.18);
  clip-path: none;
}

.capability-matrix h3 {
  margin: 0;
  color: color-mix(in srgb, var(--skill-accent) 72%, var(--stage-foreground));
  font-size: 15px;
}

.capability-matrix p {
  margin: 12px 0 0;
  color: var(--stage-muted);
  font-size: 11px;
  line-height: 1.55;
}

.experience-strip {
  margin-top: 1px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 0;
  background: transparent;
}

.experience-strip article {
  min-height: 190px;
  padding: 24px 20px;
  border-right: 1px solid var(--stage-grid);
  border-bottom: 1px solid var(--stage-grid);
  border-radius: 0;
  color: var(--stage-foreground);
  background: transparent;
  backdrop-filter: none;
  clip-path: none;
}

.experience-strip article:first-child {
  border-left: 1px solid var(--stage-grid);
}

.experience-strip h3 {
  margin: 18px 0 12px;
  font-size: clamp(20px, 2vw, 30px);
}

.experience-strip p {
  color: var(--stage-muted);
  font-size: 11px;
  line-height: 1.65;
}

.resume-entry {
  margin-top: 32px;
}

.resume-link {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--stage-grid);
  border-radius: 2px;
  color: var(--stage-foreground);
  background: transparent;
  clip-path: none;
}

.resume-link:hover {
  color: var(--stage-black);
  background: var(--stage-foreground);
}

/* One primary product with two supporting entries */
.products-section {
  min-height: 150svh;
  padding: clamp(128px, 16vh, 186px) var(--stage-gutter) clamp(100px, 14vh, 160px);
  display: block;
  color: var(--stage-foreground);
  background: linear-gradient(180deg, rgba(5, 6, 8, 0.22), rgba(8, 21, 41, 0.34));
}

.products-section::before,
.products-section::after {
  content: none;
}

.products-section .products-copy {
  max-width: min(900px, 76vw);
}

.products-copy h2 {
  max-width: 900px;
  margin: 14px 0 0;
  color: var(--stage-foreground);
  font-size: clamp(44px, 6vw, 88px);
  font-weight: 620;
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.product-showcase {
  height: min(62vw, 720px);
  min-height: 560px;
  margin-top: clamp(42px, 7vw, 92px);
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.8fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 22px);
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.product-panel,
.product-panel:first-child {
  min-height: 0;
  padding: clamp(24px, 3.4vw, 50px);
  border: 1px solid rgba(245, 247, 251, 0.24);
  border-radius: 4px;
  color: var(--stage-foreground);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 240ms ease, transform 240ms ease, filter 240ms ease;
}

.product-panel:first-child {
  grid-row: 1 / 3;
}

.product-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  width: auto;
  height: auto;
  border: 0;
  background: linear-gradient(180deg, transparent 32%, rgba(5, 6, 8, 0.78) 100%);
  opacity: 1;
}

.product-panel::after {
  content: none;
}

.product-panel > span {
  color: rgba(245, 247, 251, 0.72);
  font-size: 10px;
}

.product-panel h3 {
  max-width: 100%;
  margin: 14px 0 12px;
  font-size: clamp(30px, 3.8vw, 62px);
  font-weight: 620;
  line-height: 0.96;
  overflow-wrap: anywhere;
}

.product-panel:not(:first-child) h3 {
  font-size: clamp(25px, 2.5vw, 40px);
}

.product-panel p {
  max-width: 560px;
  color: rgba(245, 247, 251, 0.72);
  font-size: 12px;
  line-height: 1.6;
}

.product-panel:hover {
  transform: translateY(-3px);
  border-color: rgba(188, 238, 255, 0.64);
  filter: brightness(1.06) saturate(1.03);
}

/* Contact reuses the fixed WebGL scene */
.final-section {
  min-height: 112svh;
  padding: var(--header-height) var(--stage-gutter) clamp(36px, 5vh, 60px);
  display: grid;
  align-items: stretch;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(5, 6, 8, 0.12), rgba(5, 6, 8, 0.58));
}

.outro-screen,
.outro-canvas {
  display: none !important;
}

.final-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 0;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  grid-template-columns: 1fr 1fr;
  place-items: initial;
  text-align: left;
}

.final-section .system-label {
  grid-column: 1;
  align-self: start;
  margin-top: 7vh;
}

.final-section h2 {
  grid-column: 1 / 3;
  align-self: center;
  margin: 0;
  color: var(--stage-foreground);
  font-size: clamp(96px, 24vw, 360px);
  font-weight: 700;
  line-height: 0.76;
  text-shadow: 0 0 52px rgba(188, 238, 255, 0.14);
}

.final-contact {
  grid-column: 1;
  align-self: end;
  justify-self: start;
  padding: 0 0 8px;
  border: 0;
  border-bottom: 1px solid var(--glass-ice);
  border-radius: 0;
  color: var(--stage-foreground);
  background: transparent;
  backdrop-filter: none;
}

.final-contact:hover {
  color: var(--glass-ice);
  background: transparent;
}

.copyright {
  grid-column: 2;
  align-self: end;
  justify-self: end;
  margin: 0;
  color: var(--stage-muted);
}

.case-modal {
  z-index: 90;
}

.modal-panel,
.modal-media,
.modal-video-grid video,
.modal-gallery img,
.modal-action,
.modal-close {
  border-radius: 4px;
}

@media (max-width: 1060px) {
  :root {
    --stage-gutter: clamp(24px, 4vw, 42px);
  }

  .stage-hud,
  .section-rail {
    display: none !important;
  }

  .works-section {
    --works-card-width: min(72vw, 700px);
    --works-card-height: min(40.5vw, 394px);
  }

  .capability-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-showcase {
    min-height: 520px;
    grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.85fr);
  }
}

@media (max-width: 780px) {
  :root {
    --header-height: 72px;
    --stage-gutter: 22px;
  }

  .site-header {
    top: 0;
    height: var(--header-height);
    padding-inline: var(--stage-gutter);
    grid-template-columns: auto 1fr;
    gap: 16px;
  }

  .brand-lockup span:last-child,
  .utility-nav {
    display: none;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .site-nav {
    justify-self: end;
    gap: clamp(10px, 3.4vw, 20px);
    font-size: 10px;
  }

  .hero-section {
    min-height: 108svh;
    padding-inline: var(--stage-gutter);
  }

  .hero-word {
    width: 82%;
    font-size: clamp(66px, 20vw, 112px);
    opacity: 0.3;
  }

  .hero-lockup .system-label {
    bottom: 84px;
  }

  .hero-caption {
    display: none;
  }

  .depth-word {
    display: none;
  }

  .news-section {
    min-height: auto;
    padding: 112px var(--stage-gutter) 88px;
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .news-section::before {
    content: none;
  }

  .news-section .section-copy {
    position: static;
  }

  .news-section .resume-entry {
    grid-column: 1;
    margin-top: 6px;
  }

  .news-section .section-copy h2 {
    font-size: clamp(44px, 14vw, 76px);
  }

  .news-list article {
    min-height: 0;
    padding-bottom: 30px;
  }

  .works-section {
    height: 548svh;
    min-height: 548svh;
    --works-card-width: min(88vw, 620px);
    --works-card-height: min(49.5vw, 349px);
    --works-grid-left: var(--stage-gutter);
    --works-grid-right: var(--stage-gutter);
    --works-grid-top: 92px;
  }

  .works-sticky,
  body[data-active-section="works"] .works-sticky {
    height: 100svh;
    perspective: 1250px;
  }

  .works-title {
    left: 0;
    top: 0;
    max-width: 54vw;
    padding-top: 0;
  }

  .works-title h2 {
    font-size: clamp(27px, 8.5vw, 42px);
  }

  .work-card,
  .work-hitbox {
    top: 57%;
    width: var(--works-card-width);
  }

  .work-meta h3 {
    font-size: clamp(28px, 9vw, 46px);
  }

  .works-current {
    left: var(--stage-gutter);
    bottom: 20px;
  }

  .works-current strong {
    display: none;
  }

  .works-hint {
    left: auto;
    right: var(--stage-gutter);
    bottom: 20px;
  }

  .about-section {
    min-height: auto;
    padding: 108px 0 88px;
  }

  .skill-marquee {
    min-height: 66svh;
    margin: 0;
    padding: 36px 0;
    gap: 15px;
  }

  .skill-marquee .system-label {
    left: var(--stage-gutter);
  }

  .skill-pill {
    font-size: clamp(27px, 8vw, 42px);
  }

  .capability-matrix,
  .experience-strip,
  .resume-entry {
    width: calc(100% - var(--stage-gutter) * 2);
  }

  .capability-matrix {
    grid-template-columns: 1fr;
  }

  .experience-strip {
    grid-template-columns: 1fr;
  }

  .experience-strip article {
    min-height: 0;
    border-left: 1px solid var(--stage-grid);
  }

  .products-section {
    min-height: auto;
    padding: 112px var(--stage-gutter) 88px;
  }

  .products-section .products-copy {
    max-width: 100%;
  }

  .products-copy h2 {
    max-width: 100%;
    font-size: clamp(38px, 11.5vw, 62px);
    line-height: 1.02;
  }

  .product-showcase {
    height: auto;
    min-height: 0;
    margin-top: 44px;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 14px;
  }

  .product-panel,
  .product-panel:first-child {
    grid-row: auto;
    min-height: 52svh;
    padding: 24px;
  }

  .product-panel:not(:first-child) {
    min-height: 42svh;
  }

  .product-panel h3,
  .product-panel:not(:first-child) h3 {
    font-size: clamp(30px, 10vw, 48px);
  }

  .final-section {
    min-height: 100svh;
    padding: var(--header-height) var(--stage-gutter) 28px;
  }

  .final-copy {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto auto 1fr;
    text-align: center;
  }

  .final-section .system-label,
  .final-section h2,
  .final-contact,
  .copyright {
    grid-column: 1;
    justify-self: center;
  }

  .final-section .system-label {
    margin-top: 8vh;
  }

  .final-section h2 {
    align-self: end;
    font-size: clamp(82px, 30vw, 150px);
  }

  .final-contact {
    align-self: center;
    margin-top: 30px;
  }

  .copyright {
    align-self: end;
  }

  .modal-panel {
    border-radius: 4px;
  }
}

@media (max-width: 430px) {
  .site-nav {
    gap: 10px;
  }

  .site-nav .nav-link {
    font-size: 9px;
  }

  .hero-word {
    font-size: clamp(62px, 19vw, 82px);
  }

  .work-card,
  .work-hitbox {
    aspect-ratio: 4 / 5;
  }

  .work-meta {
    max-width: 90%;
  }

  .work-meta p {
    display: none;
  }

  .products-copy h2 {
    font-size: clamp(36px, 10.5vw, 46px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .splash-cursor-canvas,
  .hero-particle-canvas {
    display: none;
  }

  .skill-marquee-row,
  .hero-word.rb-shiny,
  .hero-word.rb-shiny > span.rb-shiny {
    animation: none !important;
  }

  .skill-marquee-row {
    transform: none !important;
  }

  .work-card,
  .product-panel,
  .nav-link,
  .stage-hud {
    transition: none !important;
  }
}
