:root {
  color-scheme: dark;
  --bg: #040404;
  --surface: #0d0d0d;
  --surface-soft: #151515;
  --ink: #f5f2ec;
  --muted: rgba(245, 242, 236, 0.64);
  --quiet: rgba(245, 242, 236, 0.36);
  --line: rgba(245, 242, 236, 0.12);
  --accent: #ff6a21;
  --accent-cool: #9db2c9;
  --max: 1280px;
  --text-xs: 11px;
  --text-sm: 12px;
  --text-md: 14px;
  --text-lg: 17px;
  --title-sm: clamp(22px, 2.2vw, 32px);
  --title-md: clamp(30px, 4.4vw, 58px);
  --title-lg: clamp(48px, 7.8vw, 132px);
  --font-cn: "Hiragino Sans GB", "Hiragino Sans", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  --font-en: Georgia, "Times New Roman", Times, serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
}

html:has(.card-home) {
  scroll-snap-type: none;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 74% 14%, rgba(157, 178, 201, 0.08), transparent 30vw),
    linear-gradient(180deg, #080808 0%, var(--bg) 38%, #020202 100%);
  color: var(--ink);
  font-family: var(--font-cn);
  font-size: var(--text-md);
  line-height: 1.65;
}

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

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

p,
h1,
h2,
h3,
strong,
span,
em,
a {
  overflow-wrap: break-word;
}

.contact-links a,
.intro-meta p {
  overflow-wrap: anywhere;
}

.floating-card strong,
.chapter-copy h2,
.resume-line h2,
.resume-degree,
.resume-date {
  word-break: keep-all;
  overflow-wrap: normal;
}

p,
li,
.intro-summary,
.method-copy,
.resume-line p,
.work-chapter span {
  text-wrap: pretty;
}

h1,
h2,
h3,
.chapter-copy h2,
.work-chapter h2 {
  text-wrap: balance;
}

.site-nav {
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 30;
  width: min(820px, calc(100% - 56px));
  display: grid;
  grid-template-columns: 132px 1fr;
  align-items: center;
  transform: translateX(-50%);
  color: var(--ink);
  mix-blend-mode: normal;
}

.site-mark {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.site-nav nav {
  justify-self: center;
  display: flex;
  gap: 46px;
  font-size: 13px;
}

.site-nav a {
  opacity: 0.78;
  transition: opacity 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  opacity: 1;
}

.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }

.cinema-page,
.home-page {
  min-height: 100vh;
  display: grid;
  gap: 0;
}

.cinema-hero,
.hero-landscape {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.scene-placeholder,
.hero-media-slot {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.42)),
    radial-gradient(ellipse at 62% 26%, rgba(157, 178, 201, 0.3), transparent 36%),
    linear-gradient(125deg, #171717 0%, #0a0a0a 48%, #27140c 100%);
}

.scene-placeholder::after,
.hero-media-slot::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(0, 0, 0, 0.25), transparent 52%);
}

.scene-placeholder span,
.hero-media-slot span {
  position: relative;
  z-index: 1;
  color: var(--quiet);
  font-family: var(--font-en);
  font-size: 14px;
}

.hero-title-block,
.hero-content {
  position: absolute;
  left: clamp(24px, 4vw, 58px);
  right: clamp(24px, 4vw, 58px);
  bottom: clamp(128px, 17vh, 190px);
}

.hero-title-block h1,
.hero-content h1,
.contact-screen h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(38px, 5.8vw, 78px);
  line-height: 1.02;
  font-weight: 560;
  letter-spacing: -0.04em;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-family: var(--font-en);
  font-size: 14px;
}

.hero-caption,
.hero-footer {
  position: absolute;
  left: clamp(24px, 4vw, 58px);
  right: clamp(24px, 4vw, 58px);
  bottom: clamp(26px, 4vw, 46px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding-top: 0;
}

.hero-caption p,
.hero-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.portfolio-home,
.single-cube-page {
  position: relative;
}

.portfolio-home {
  --assemble-progress: 0;
  --complete-opacity: 0;
  --wall-copy-opacity: 0;
  --cursor-x: 50vw;
  --cursor-y: 50vh;
}

.cursor-glow {
  position: fixed;
  left: var(--cursor-x);
  top: var(--cursor-y);
  z-index: 1;
  width: 32vw;
  max-width: 520px;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 106, 33, 0.1), rgba(157, 178, 201, 0.045) 34%, transparent 68%);
  opacity: 0.58;
  transform: translate(-50%, -50%);
  filter: blur(16px);
}

.card-continuum {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 100vh;
  margin-bottom: -100vh;
  overflow: hidden;
  cursor: grab;
  opacity: 1;
  pointer-events: auto;
}

.card-continuum:active {
  cursor: grabbing;
}

.card-continuum::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, #050505 0%, rgba(5, 5, 5, 0.84) 3%, transparent 8%, transparent 92%, rgba(5, 5, 5, 0.84) 97%, #050505 100%);
  opacity: var(--wall-copy-opacity, 0);
}

.floating-card {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: clamp(124px, 9.6vw, 164px);
  aspect-ratio: 1;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: clamp(14px, 1.25vw, 20px);
  border: 1px solid rgba(245, 242, 236, 0.2);
  background:
    linear-gradient(135deg, rgba(245, 242, 236, 0.08), rgba(245, 242, 236, 0.02)),
    rgba(11, 11, 11, 0.88);
  color: var(--ink);
  cursor: grab;
  opacity: var(--card-opacity, 1);
  pointer-events: auto;
  touch-action: none;
  will-change: transform, opacity;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.card-home .floating-card {
  background:
    linear-gradient(135deg, rgba(245, 242, 236, 0.08), rgba(245, 242, 236, 0.02)),
    rgba(11, 11, 11, 0.88);
}

.card-home.is-wall .floating-card {
  background:
    linear-gradient(135deg, rgba(244, 241, 234, 0.12), rgba(244, 241, 234, 0.035)),
    rgba(12, 12, 12, 0.92);
  color: var(--ink);
}

.floating-card:active {
  cursor: grabbing;
}

.floating-card:hover {
  border-color: rgba(255, 106, 33, 0.76);
  background:
    linear-gradient(135deg, rgba(255, 106, 33, 0.16), rgba(244, 241, 234, 0.04)),
    rgba(16, 16, 16, 0.94);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 106, 33, 0.08);
}

.floating-card::after {
  position: absolute;
  right: 14px;
  top: 12px;
  content: "Open";
  color: rgba(255, 106, 33, 0.78);
  font-family: var(--font-en);
  font-size: 10px;
  line-height: 1;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.floating-card:hover::after,
.floating-card:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.floating-card.is-dragging {
  border-color: rgba(255, 106, 33, 0.9);
  box-shadow: 0 28px 90px rgba(255, 106, 33, 0.14), 0 16px 60px rgba(0, 0, 0, 0.46);
}

.floating-card span {
  color: var(--accent);
  font-family: var(--font-en);
  font-size: var(--text-xs);
  line-height: 1;
}

.floating-card strong {
  align-self: end;
  max-width: 7.5em;
  font-size: clamp(14px, 1.02vw, 17px);
  line-height: 1.18;
  font-weight: 520;
  letter-spacing: -0.02em;
}

.floating-card em {
  color: var(--quiet);
  font-family: var(--font-en);
  font-size: var(--text-xs);
  line-height: 1.25;
  font-style: normal;
}

.card-inspector {
  position: absolute;
  right: clamp(56px, 7vw, 132px);
  bottom: clamp(78px, 9vh, 124px);
  z-index: 32;
  width: min(360px, calc(100vw - 48px));
  display: grid;
  gap: 12px;
  padding: 16px 0 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.card-home.is-wall .card-inspector {
  opacity: 0;
  transform: translateY(12px);
}

.card-inspector span {
  color: var(--accent);
  font-family: var(--font-en);
  font-size: var(--text-xs);
}

.card-inspector strong {
  max-width: 280px;
  font-size: var(--title-sm);
  line-height: 1.12;
  font-weight: 520;
  letter-spacing: -0.03em;
}

.card-inspector p {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-md);
  line-height: 1.72;
}

.project-card-section {
  position: relative;
  min-height: 150vh;
  margin-top: 0;
  padding-top: 18vh;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0) 0%, #050505 20%, #050505 100%);
}

.wall-copy {
  position: sticky;
  top: 104px;
  z-index: 42;
  width: min(1120px, calc(100% - 112px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(320px, 0.5fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  padding: 10px 0 14px;
  pointer-events: none;
  opacity: var(--wall-copy-opacity, 0);
  transform: translateY(calc((1 - var(--wall-copy-opacity, 0)) * 8px));
  transition: opacity 220ms ease, transform 220ms ease;
}

.wall-copy::before {
  position: absolute;
  inset: -18px -28px -16px;
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.92), rgba(5, 5, 5, 0.58) 68%, transparent);
  filter: blur(10px);
}

.wall-copy .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.wall-copy h2 {
  max-width: 320px;
  margin: 0;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.15;
  font-weight: 540;
  letter-spacing: -0.03em;
}

.wall-copy p:last-child {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.cube-continuum {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 100vh;
  margin-bottom: -100vh;
  overflow: hidden;
  pointer-events: none;
}

.fixed-hero {
  position: relative;
  z-index: auto;
  min-height: 100vh;
  min-height: 100svh;
  width: min(100% - 64px, 1880px);
  margin: 0 auto;
  display: grid;
  align-items: center;
  overflow: hidden;
  pointer-events: none;
  padding: clamp(108px, 12vh, 148px) clamp(56px, 5.4vw, 104px) clamp(108px, 12vh, 148px);
  background:
    linear-gradient(90deg, rgba(168, 17, 12, 0.26), transparent 13%, transparent 87%, rgba(168, 17, 12, 0.22)),
    radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.06), transparent 40%),
    linear-gradient(180deg, #101010 0%, #050505 56%, #080808 100%);
}

.card-hero,
.project-card-section {
  scroll-snap-align: none;
}

.fixed-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 180px 180px, 220px 220px;
  opacity: 0.34;
}

.fixed-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 42%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-poster-copy {
  position: relative;
  z-index: 30;
  width: min(1120px, 70vw);
  max-width: none;
  pointer-events: none;
}

.hero-poster-copy::before {
  position: absolute;
  inset: -28px -34px;
  z-index: -1;
  content: "";
  background: radial-gradient(ellipse at 48% 50%, rgba(5, 5, 5, 0.84), rgba(5, 5, 5, 0.58) 54%, transparent 76%);
  filter: blur(2px);
}

.hero-poster-copy .eyebrow {
  margin-left: 6px;
  color: rgba(244, 241, 234, 0.74);
  font-family: var(--font-cn);
  letter-spacing: 0.08em;
}

.hero-poster-copy h1 {
  max-width: 1050px;
  font-size: clamp(56px, 6.3vw, 108px);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.065em;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero-poster-copy .intro-summary {
  max-width: 560px;
  margin: clamp(22px, 3.2vh, 34px) 0 0 6px;
  color: rgba(244, 241, 234, 0.78);
  text-align: left;
  font-size: 14px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin: 28px 0 0 6px;
  pointer-events: auto;
}

.hero-actions a,
.back-link {
  width: fit-content;
  color: var(--ink);
  font-size: var(--text-sm);
  line-height: 1.2;
  border-bottom: 1px solid rgba(255, 106, 33, 0.72);
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.hero-actions a:hover,
.back-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateX(4px);
}

.hero-cube-field {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  perspective: 1300px;
  perspective-origin: 50% 46%;
  pointer-events: none;
}

.scatter-cube {
  position: absolute;
  left: 50%;
  top: 50%;
  --scatter-size: clamp(50px, 5.2vw, 74px);
  --scatter-depth: calc(var(--scatter-size) / 2);
  width: var(--scatter-size);
  height: var(--scatter-size);
  cursor: grab;
  opacity: var(--scatter-opacity, 1);
  pointer-events: auto;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.scatter-cube:active { cursor: grabbing; }

.scatter-cube span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(244, 241, 234, 0.78);
  background: rgba(255, 255, 255, 0.025);
  backface-visibility: visible;
  box-shadow: none;
}

.scatter-cube span:nth-child(1) {
  transform: translateZ(var(--scatter-depth));
}

.scatter-cube span:nth-child(2) {
  transform: rotateY(180deg) translateZ(var(--scatter-depth));
}

.scatter-cube span:nth-child(3) {
  transform: rotateY(90deg) translateZ(var(--scatter-depth));
}

.scatter-cube span:nth-child(4) {
  transform: rotateY(-90deg) translateZ(var(--scatter-depth));
}

.scatter-cube span:nth-child(5) {
  transform: rotateX(90deg) translateZ(var(--scatter-depth));
}

.scatter-cube span:nth-child(6) {
  transform: rotateX(-90deg) translateZ(var(--scatter-depth));
}

.single-cube-page {
  min-height: 205vh;
  margin-top: -100vh;
  padding-top: 100vh;
}

.cube-flow {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 100vh;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: var(--complete-opacity, 0);
  transform: translateY(var(--flow-y, 0)) scale(var(--flow-scale, 1));
  transform-origin: center;
  transition: opacity 120ms linear, transform 160ms linear;
}

.single-cube-stage {
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
}

.single-cube-stage:active {
  cursor: grabbing;
}

.cube-step {
  position: relative;
  min-height: 100vh;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  z-index: 2;
  pointer-events: none;
}

.intro-step {
  display: grid;
  align-items: end;
  padding-bottom: clamp(80px, 13vh, 140px);
}

.step-copy {
  max-width: 620px;
}

.step-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.04;
  font-weight: 560;
  letter-spacing: -0.04em;
}

.intro-summary {
  max-width: 520px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.intro-meta {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  bottom: clamp(34px, 4vw, 62px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(120px, 0.7fr) auto auto;
  gap: clamp(18px, 4vw, 56px);
  align-items: end;
  padding-top: 0;
}

.intro-meta p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-en), var(--font-cn);
  font-size: 11px;
  line-height: 1.45;
}

.fixed-hero .intro-meta {
  left: clamp(28px, 4vw, 76px);
  right: clamp(28px, 4vw, 76px);
}

.scroll-note {
  position: absolute;
  right: clamp(24px, 5vw, 72px);
  bottom: clamp(32px, 5vw, 56px);
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.cube-stage {
  width: min(46vw, 420px);
  min-width: 280px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  perspective: 1100px;
}

.magic-cube {
  position: relative;
  width: 178px;
  height: 178px;
  transform-style: preserve-3d;
  transform: rotateX(var(--cube-x, -24deg)) rotateY(var(--cube-y, 34deg));
}

.auto-spin {
  animation: cubeSpin 12s linear infinite;
}

@keyframes cubeSpin {
  from { transform: rotateX(-20deg) rotateY(0deg); }
  to { transform: rotateX(-20deg) rotateY(360deg); }
}

.cube-face {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  border: 1px solid rgba(244, 241, 234, 0.76);
  background: rgba(255, 255, 255, 0.025);
  transform-style: preserve-3d;
}

.cube-face::before,
.cube-face::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(33.333% - 0.5px), var(--ink) calc(33.333% - 0.5px) calc(33.333% + 0.5px), transparent calc(33.333% + 0.5px), transparent calc(66.666% - 0.5px), var(--ink) calc(66.666% - 0.5px) calc(66.666% + 0.5px), transparent calc(66.666% + 0.5px)),
    linear-gradient(0deg, transparent calc(33.333% - 0.5px), var(--ink) calc(33.333% - 0.5px) calc(33.333% + 0.5px), transparent calc(33.333% + 0.5px), transparent calc(66.666% - 0.5px), var(--ink) calc(66.666% - 0.5px) calc(66.666% + 0.5px), transparent calc(66.666% + 0.5px));
  opacity: 0.76;
}

.cube-front { transform: translateZ(89px); }
.cube-back { transform: rotateY(180deg) translateZ(89px); }
.cube-right { transform: rotateY(90deg) translateZ(89px); }
.cube-left { transform: rotateY(-90deg) translateZ(89px); }
.cube-top { transform: rotateX(90deg) translateZ(89px); }
.cube-bottom { transform: rotateX(-90deg) translateZ(89px); }

.cube-face button {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.cube-face button:hover,
.cube-face button.is-active {
  background: var(--accent);
  color: #080808;
}

.interactive-cube {
  width: 220px;
  height: 220px;
}

.interactive-cube .cube-front { transform: translateZ(110px); }
.interactive-cube .cube-back { transform: rotateY(180deg) translateZ(110px); }
.interactive-cube .cube-right { transform: rotateY(90deg) translateZ(110px); }
.interactive-cube .cube-left { transform: rotateY(-90deg) translateZ(110px); }
.interactive-cube .cube-top { transform: rotateX(90deg) translateZ(110px); }
.interactive-cube .cube-bottom { transform: rotateX(-90deg) translateZ(110px); }

.project-panel {
  position: absolute;
  right: 0;
  top: 50%;
  min-height: 240px;
  width: min(360px, 34vw);
  display: grid;
  align-content: center;
  padding-left: clamp(24px, 4vw, 56px);
  transform: translateY(-50%);
  pointer-events: auto;
}

.connector-line {
  position: absolute;
  left: 0;
  top: 50%;
  width: clamp(36px, 6vw, 86px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ink));
  transform: translateY(-50%);
}

.project-index {
  margin: 0 0 16px;
  color: var(--accent);
  font-family: var(--font-en);
  font-size: 12px;
}

.project-panel h2 {
  margin: 0 0 16px;
  padding-bottom: 0;
  font-size: clamp(22px, 2.5vw, 34px);
  line-height: 1.12;
  font-weight: 520;
  letter-spacing: -0.03em;
}

.fade-layer {
  opacity: var(--layer-opacity, 1);
  transform: translateY(calc((1 - var(--layer-opacity, 1)) * 8px));
  transition: opacity 260ms ease, transform 260ms ease;
}

.project-panel p:not(.project-index) {
  max-width: 340px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.78;
}

.project-link {
  width: fit-content;
  border-bottom: 1px solid var(--accent);
  color: var(--ink);
  font-size: 13px;
}

.hero-subtitle { display: none; }
.hero-action { display: none; }

.statement-section,
.home-index,
.chapter-list {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 112px 0;
}

.statement-section {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) minmax(220px, 320px);
  gap: clamp(32px, 6vw, 72px);
}

.statement-index,
.chapter-item span,
.chapter-number,
.resume-line span,
.section-title {
  margin: 0;
  color: var(--quiet);
  font-family: var(--font-en);
  font-size: 13px;
}

.statement-section h2 {
  margin: 0;
  font-size: clamp(26px, 3.8vw, 48px);
  line-height: 1.12;
  font-weight: 520;
  letter-spacing: -0.03em;
}

.statement-section p:last-child,
.chapter-item em,
.work-chapter span,
.resume-line p,
.method-copy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  font-style: normal;
}

.chapter-list {
  display: grid;
}

.chapter-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 0.9fr) minmax(220px, 320px);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
  padding: 30px 0;
  border-bottom: 0;
}

.chapter-item:first-child { border-top: 0; }

.chapter-item strong {
  font-size: clamp(30px, 4.5vw, 58px);
  line-height: 1.02;
  font-weight: 520;
  letter-spacing: -0.04em;
}

.content-page {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 156px 0 148px;
}

.page-hero {
  max-width: 920px;
  margin-bottom: 96px;
}

.page-intro,
.contact-intro {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: var(--text-md);
  line-height: 1.8;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.05;
  font-weight: 560;
  letter-spacing: -0.04em;
}

.work-chapters {
  display: grid;
  gap: 0;
}

.work-chapter {
  display: grid;
  grid-template-columns: 72px minmax(320px, 1fr) minmax(280px, 380px);
  gap: clamp(28px, 5.2vw, 72px);
  align-items: center;
  min-height: 252px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.work-chapter:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 6px;
}

.work-chapter:hover {
  border-color: rgba(245, 242, 236, 0.24);
  background: linear-gradient(90deg, rgba(245, 242, 236, 0.018), transparent 54%);
}

.work-chapter .chapter-number {
  transition: color 180ms ease, transform 180ms ease;
}

.work-chapter:hover .chapter-number {
  color: var(--accent);
  transform: translateX(4px);
}

.work-chapter:last-child {
  border-bottom: 1px solid var(--line);
}

.chapter-copy p {
  margin: 0 0 12px;
  color: var(--quiet);
  font-family: var(--font-en);
  font-size: 13px;
}

.chapter-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.08;
  font-weight: 520;
  letter-spacing: -0.04em;
}

.chapter-frame {
  position: relative;
  isolation: isolate;
  --spot-x: 50%;
  --spot-y: 50%;
  min-height: 176px;
  aspect-ratio: 1.72;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 24%, rgba(255, 106, 33, 0.24), transparent 32%),
    linear-gradient(135deg, var(--surface-soft), #050505 64%);
  border: 0;
  transition: transform 220ms ease, filter 220ms ease;
}

.chapter-frame::after,
.cover-panel::after,
.gallery-item::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(255, 106, 33, 0.22), rgba(245, 242, 236, 0.08) 18%, transparent 42%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.chapter-frame:hover::after,
.cover-panel:hover::after,
.gallery-item:hover::after {
  opacity: 1;
}

.work-chapter:hover .chapter-frame {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.work-chapter:nth-child(2n) .chapter-frame {
  background:
    radial-gradient(circle at 24% 72%, rgba(157, 178, 201, 0.42), transparent 34%),
    linear-gradient(135deg, #070707, #181818 68%);
}

.work-chapter:nth-child(3n) .chapter-frame {
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(244, 241, 234, 0.1) 18% 19%, transparent 19% 100%),
    radial-gradient(circle at 68% 28%, rgba(244, 241, 234, 0.18), transparent 30%),
    linear-gradient(140deg, #121212, #050505 72%);
}

.chapter-frame span {
  position: relative;
  z-index: 2;
  color: var(--quiet);
  font-family: var(--font-en);
  font-size: 14px;
}

.chapter-copy em {
  display: block;
  margin-top: 16px;
  color: rgba(244, 241, 234, 0.46);
  font-size: var(--text-sm);
  line-height: 1.5;
  font-style: normal;
}

.chapter-action {
  display: inline-flex;
  width: fit-content;
  margin-top: 20px;
  color: var(--ink);
  font-size: var(--text-sm);
  line-height: 1.2;
  border-bottom: 1px solid rgba(255, 106, 33, 0.72);
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.chapter-action:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateX(4px);
}

.project-detail {
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto;
  padding: 156px 0 148px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 42px;
}

.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: clamp(48px, 8vw, 112px);
  align-items: end;
  min-height: 54vh;
  padding-bottom: 72px;
}

.project-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(42px, 6.2vw, 92px);
  line-height: 0.98;
  font-weight: 560;
  letter-spacing: -0.055em;
}

.project-lead {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: var(--text-md);
  line-height: 1.85;
}

.project-cover {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  grid-template-rows: repeat(2, minmax(220px, 1fr));
  gap: 16px;
  min-height: 620px;
  margin-bottom: 96px;
}

.cover-panel,
.gallery-item {
  position: relative;
  isolation: isolate;
  --spot-x: 50%;
  --spot-y: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 24%, rgba(255, 106, 33, 0.22), transparent 30%),
    linear-gradient(135deg, #151515, #050505 68%);
  transition: transform 220ms ease, filter 220ms ease;
}

.cover-panel:hover,
.gallery-item:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.cover-panel::before,
.gallery-item::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(rgba(245, 242, 236, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 242, 236, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.42;
}

.cover-panel span,
.gallery-item span {
  position: relative;
  z-index: 2;
  color: var(--quiet);
  font-family: var(--font-en);
  font-size: var(--text-sm);
}

.cover-panel-large {
  grid-row: 1 / span 2;
  background:
    radial-gradient(circle at 62% 34%, rgba(157, 178, 201, 0.26), transparent 34%),
    radial-gradient(circle at 22% 78%, rgba(255, 106, 33, 0.18), transparent 28%),
    linear-gradient(135deg, #181818, #050505 72%);
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 112px;
}

.project-meta-grid div {
  display: grid;
  gap: 14px;
  align-content: start;
}

.project-meta-grid strong {
  max-width: 220px;
  font-size: var(--text-md);
  line-height: 1.65;
  font-weight: 430;
  color: var(--ink);
}

.project-principles {
  display: grid;
  grid-template-columns: 180px repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: -52px 0 112px;
}

.project-principles > div {
  position: relative;
  min-height: 188px;
  display: grid;
  align-content: space-between;
  gap: 20px;
  padding: 20px;
  overflow: hidden;
  background: rgba(245, 242, 236, 0.045);
  transition: background 180ms ease, transform 180ms ease;
}

.project-principles > div::before {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at 82% 18%, rgba(255, 106, 33, 0.16), transparent 34%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.project-principles > div:hover {
  background: rgba(245, 242, 236, 0.07);
  transform: translateY(-3px);
}

.project-principles > div:hover::before {
  opacity: 1;
}

.project-principles span,
.project-principles strong,
.project-principles p {
  position: relative;
  z-index: 1;
}

.project-principles span {
  color: var(--accent);
  font-family: var(--font-en);
  font-size: var(--text-xs);
}

.project-principles strong {
  max-width: 8em;
  font-size: 18px;
  line-height: 1.18;
  font-weight: 520;
  letter-spacing: -0.03em;
}

.project-principles p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.project-story {
  display: grid;
  gap: 0;
  margin-bottom: 112px;
}

.project-story article {
  display: grid;
  grid-template-columns: 180px minmax(260px, 0.72fr) minmax(320px, 1fr);
  gap: clamp(30px, 5vw, 76px);
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

.project-story article:last-child {
  border-bottom: 1px solid var(--line);
}

.project-story h2,
.project-outcome h2 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.08;
  font-weight: 520;
  letter-spacing: -0.04em;
}

.project-story p:last-child,
.project-outcome > p:last-of-type {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-md);
  line-height: 1.85;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 220px;
  gap: 16px;
  margin-bottom: 112px;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.project-outcome {
  display: grid;
  grid-template-columns: 180px minmax(0, 760px);
  gap: clamp(30px, 5vw, 76px);
  align-items: start;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.project-outcome .section-title {
  grid-row: span 3;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 18px;
}

.project-actions a {
  border-bottom: 1px solid rgba(255, 106, 33, 0.72);
  color: var(--ink);
  font-size: var(--text-sm);
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.project-actions a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateX(4px);
}

.resume-sections {
  display: grid;
  gap: 84px;
}

.resume-summary {
  align-items: start;
}

.resume-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 760px;
}

.resume-tags span {
  display: inline-flex;
  padding: 9px 12px;
  background: rgba(244, 241, 234, 0.07);
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1;
}

.resume-block {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}

.resume-block > :not(.section-title) {
  grid-column: 2;
}

.resume-block > .section-title {
  grid-column: 1;
  grid-row: 1 / -1;
}

.resume-line {
  display: grid;
  grid-template-columns: 138px minmax(0, 760px);
  gap: 32px;
  padding-bottom: 30px;
}

.resume-line + .resume-line {
  padding-top: 32px;
  border-top: 1px solid rgba(245, 242, 236, 0.08);
}

.resume-date {
  display: block;
  padding-top: 5px;
  white-space: nowrap;
}

.resume-main {
  max-width: 860px;
  min-width: 0;
}

.resume-line h2 {
  margin: 0 0 10px;
  font-size: clamp(21px, 2.3vw, 30px);
  line-height: 1.14;
  letter-spacing: -0.03em;
  max-width: 100%;
}

.resume-degree {
  margin: 0 0 10px !important;
  color: var(--ink) !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.methods-block {
  align-items: start;
}

.method-copy {
  max-width: 760px;
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.text-link {
  display: inline-flex;
  margin-top: 24px;
  border-bottom: 1px solid rgba(255, 106, 33, 0.72);
  color: var(--ink);
  font-size: 13px;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateX(4px);
}

.contact-screen {
  width: min(var(--max), calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  align-content: center;
  padding: 140px 0 96px;
}

.contact-screen h1 {
  max-width: 880px;
  margin: 0;
  line-height: 1.05;
}

.contact-intro {
  max-width: 560px;
}

.contact-links {
  display: grid;
  gap: 16px;
  margin-top: 52px;
}

.contact-links a {
  width: fit-content;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 28px);
  letter-spacing: -0.015em;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.contact-links a:hover {
  color: var(--ink);
  border-color: var(--accent);
  transform: translateX(4px);
}

.site-mark { font-size: var(--text-md); }
.site-nav nav { font-size: var(--text-sm); }
.eyebrow { font-size: var(--text-sm); }
.hero-poster-copy h1 { font-size: clamp(56px, 6.3vw, 108px); }
.intro-summary { font-size: var(--text-md); }
.intro-meta p { font-size: var(--text-xs); }
.page-hero h1 { font-size: var(--title-md); }
.statement-section h2 { font-size: clamp(26px, 3.1vw, 42px); }
.chapter-item strong { font-size: clamp(28px, 3.4vw, 46px); }
.chapter-copy h2 { font-size: clamp(24px, 3vw, 38px); }
.work-chapter span,
.resume-line p,
.chapter-copy p { font-size: var(--text-md); }
.resume-line h2 { font-size: var(--title-sm); }
.resume-degree { font-size: var(--text-md) !important; }
.contact-screen h1 { font-size: var(--title-md); }

.section-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.section-reveal.visible { opacity: 1; transform: translateY(0); }

.page-signal {
  position: fixed;
  right: clamp(18px, 2vw, 32px);
  bottom: clamp(18px, 2vw, 32px);
  z-index: 60;
  width: 42px;
  display: grid;
  gap: 8px;
  justify-items: end;
  pointer-events: none;
  color: rgba(245, 242, 236, 0.5);
  font-family: var(--font-en);
  font-size: 11px;
  line-height: 1;
}

.page-signal i {
  position: relative;
  width: 1px;
  height: 68px;
  overflow: hidden;
  background: rgba(245, 242, 236, 0.14);
}

.page-signal i::after {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: calc(var(--signal-progress, 0) * 100%);
  content: "";
  background: var(--accent);
}

@media (min-width: 1440px) {
  .site-nav {
    width: min(1040px, calc(100% - 96px));
    grid-template-columns: 160px 1fr;
  }

  .site-nav nav {
    gap: 64px;
  }

  .floating-card {
    width: clamp(146px, 8.4vw, 172px);
  }

  .card-inspector {
    right: clamp(88px, 8vw, 160px);
  }

}

@media (max-width: 900px) {
  .site-nav {
    position: sticky;
    top: 0;
    left: auto;
    transform: none;
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    padding: 18px 0;
    color: var(--ink);
    mix-blend-mode: normal;
    background: rgba(5, 5, 5, 0.78);
    backdrop-filter: blur(12px);
  }

  .statement-section,
  .chapter-item,
  .work-chapter,
  .resume-block,
  .resume-line,
  .project-hero,
  .project-story article,
  .project-outcome {
    grid-template-columns: 1fr;
  }

  .resume-block > :not(.section-title),
  .resume-block > .section-title {
    grid-column: auto;
    grid-row: auto;
  }

  .resume-block {
    gap: 22px;
  }

  .resume-line {
    gap: 10px;
  }

  .hero-title-block,
  .hero-content { bottom: 118px; }
  .chapter-item { gap: 14px; }
  .work-chapter { align-items: start; }

  .project-detail {
    width: min(100% - 32px, var(--max));
    padding-top: 122px;
  }

  .project-hero {
    min-height: auto;
    gap: 28px;
    padding-bottom: 56px;
  }

  .project-cover {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 0;
    margin-bottom: 72px;
  }

  .cover-panel,
  .cover-panel-large {
    grid-row: auto;
    min-height: 220px;
  }

  .project-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 72px;
  }

  .project-principles {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: -28px 0 72px;
  }

  .project-principles > div {
    min-height: 150px;
  }

  .project-story,
  .project-gallery {
    margin-bottom: 72px;
  }

  .project-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 180px;
  }

  .project-outcome .section-title {
    grid-row: auto;
  }
  .project-panel {
    right: auto;
    left: 0;
    top: auto;
    bottom: 10vh;
    width: min(460px, 100%);
    padding-left: 0;
    transform: none;
  }
  .connector-line { display: none; }

  .floating-card {
    width: clamp(104px, 18vw, 136px);
    padding: 12px;
  }

  .floating-card strong {
    max-width: 6.5em;
    font-size: 14px;
  }

  .project-card-section {
    min-height: 160vh;
  }

  .wall-copy {
    top: 88px;
    width: min(100% - 32px, var(--max));
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card-inspector {
    right: 16px;
    bottom: 96px;
    width: min(280px, calc(100vw - 32px));
  }

  .card-inspector strong {
    font-size: 22px;
  }

}

@media (max-width: 560px) {
  .site-nav {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .site-nav nav {
    justify-self: start;
    gap: 18px;
    font-size: 12px;
  }

  .hero-title-block h1,
  .hero-content h1 { font-size: 38px; }

  .hero-caption,
  .hero-footer {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .intro-step {
    padding-bottom: 118px;
  }

  .fixed-hero {
    width: min(100% - 28px, var(--max));
    padding: 96px 18px 126px;
  }

  .hero-poster-copy h1 {
    font-size: clamp(42px, 15vw, 76px);
    letter-spacing: -0.06em;
  }

  .floating-card {
    width: min(38vw, 132px);
  }

  .floating-card em {
    display: none;
  }

  .wall-copy h2 {
    font-size: 22px;
  }

  .wall-copy p:last-child {
    font-size: 13px;
  }

  .cursor-glow {
    display: none;
  }

  .card-inspector {
    bottom: 88px;
  }

  .card-inspector p {
    display: none;
  }

  .hero-poster-copy .intro-summary {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }

  .hero-actions {
    margin-left: 0;
    gap: 12px 20px;
  }

  .page-signal {
    display: none;
  }

  .scatter-cube {
    --scatter-size: 52px;
    --scatter-depth: 26px;
  }

  .fixed-hero .intro-meta {
    left: 18px;
    right: 18px;
  }

  .intro-summary {
    max-width: 360px;
    font-size: 13px;
    line-height: 1.75;
  }

  .intro-meta {
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
  }

  .statement-section,
  .chapter-list,
  .content-page,
  .contact-screen,
  .project-detail { width: min(100% - 28px, var(--max)); }
  .content-page { padding-top: 116px; }
  .page-hero { margin-bottom: 58px; }
  .statement-section h2,
  .page-hero h1 { font-size: 34px; }
  .chapter-item strong,
  .chapter-copy h2 { font-size: 30px; }

  .chapter-frame { min-height: 160px; }
  .work-chapter { min-height: auto; padding: 30px 0; }
  .resume-sections { gap: 54px; }
  .resume-block { padding-top: 22px; }
  .project-hero h1 { font-size: 40px; }
  .project-meta-grid { grid-template-columns: 1fr; }
  .project-principles > div { min-height: 132px; }
  .project-gallery { grid-template-columns: 1fr; }
  .gallery-item.wide { grid-column: auto; }
  .gallery-item.tall { grid-row: auto; }
  .step-copy h1 { font-size: 34px; }
  .cube-stage { min-width: 220px; }
  .magic-cube { width: 138px; height: 138px; }
  .interactive-cube { width: 168px; height: 168px; }
  .cube-front { transform: translateZ(69px); }
  .cube-back { transform: rotateY(180deg) translateZ(69px); }
  .cube-right { transform: rotateY(90deg) translateZ(69px); }
  .cube-left { transform: rotateY(-90deg) translateZ(69px); }
  .cube-top { transform: rotateX(90deg) translateZ(69px); }
  .cube-bottom { transform: rotateX(-90deg) translateZ(69px); }
  .interactive-cube .cube-front { transform: translateZ(84px); }
  .interactive-cube .cube-back { transform: rotateY(180deg) translateZ(84px); }
  .interactive-cube .cube-right { transform: rotateY(90deg) translateZ(84px); }
  .interactive-cube .cube-left { transform: rotateY(-90deg) translateZ(84px); }
  .interactive-cube .cube-top { transform: rotateX(90deg) translateZ(84px); }
  .interactive-cube .cube-bottom { transform: rotateX(-90deg) translateZ(84px); }
  .project-panel h2 { font-size: 30px; }
}

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