:root {
  --primary: #4338ca;
  --primary-strong: #312e81;
  --accent: #e4572e;
  --amber: #f2a93b;
  --bg-base: #f7f3eb;
  --bg-elevated: #fffdf8;
  --bg-subtle: #ede8de;
  --text-primary: #1c1917;
  --text-secondary: #57534e;
  --text-tertiary: #8b857d;
  --line: rgba(28, 25, 23, 0.16);
  --font-sans: "Avenir Next", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --font-display: "Syne", "Avenir Next", "Helvetica Neue", sans-serif;
  --font-mono: "SF Mono", SFMono-Regular, ui-monospace, monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-paper: 0 24px 70px rgba(74, 61, 41, 0.14);
  --page-pad: clamp(20px, 5vw, 72px);
  --max-width: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-primary);
  background: var(--bg-base);
  font-family: var(--font-sans);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--text-primary);
  color: var(--bg-elevated);
  transform: translateY(-160%);
  transition: transform 200ms var(--ease-smooth);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  width: min(calc(100% - (var(--page-pad) * 2)), var(--max-width));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.wordmark-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--text-primary);
  border-radius: 50%;
  color: var(--bg-elevated);
  background: var(--text-primary);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 22px;
}

.wordmark strong,
.wordmark small {
  display: block;
}

.wordmark strong {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.13em;
}

.wordmark small {
  margin-top: 1px;
  color: var(--text-tertiary);
  font-size: 11px;
}

.site-nav {
  display: flex;
  gap: clamp(18px, 3vw, 40px);
}

.site-nav a {
  position: relative;
  color: var(--text-secondary);
  font-size: 13px;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--text-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms var(--ease-smooth);
}

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

.hero {
  width: min(calc(100% - (var(--page-pad) * 2)), var(--max-width));
  min-height: min(780px, calc(100vh - 92px));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 136px) 0 92px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(56px, 8vw, 128px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signal-dot {
  width: 8px;
  height: 8px;
  margin-right: 8px;
  display: inline-block;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(228, 87, 46, 0.12);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(48px, 6.2vw, 98px);
  font-weight: 620;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero h1 .hero-line {
  display: block;
  color: var(--text-primary);
}

.hero h1 .hero-line-accent {
  color: var(--primary);
}

.hero-intro {
  max-width: 620px;
  margin: 36px 0 0;
  color: var(--text-secondary);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.85;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.button {
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition:
    transform 300ms var(--ease-smooth),
    background 300ms var(--ease-smooth);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
}

.button-primary {
  color: var(--bg-elevated);
  background: var(--primary);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--primary-strong);
}

.button-dark {
  margin-top: 28px;
  color: var(--bg-elevated);
  background: var(--text-primary);
}

.project-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.project-actions .button-dark {
  margin-top: 0;
}

.button-outline {
  border: 1px solid var(--line);
  background: transparent;
}

.button-outline:hover,
.button-outline:focus-visible {
  border-color: var(--text-primary);
  background: rgba(255, 253, 248, 0.7);
}

.text-link {
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.story-stage {
  position: relative;
  min-height: 560px;
}

.stage-note {
  position: absolute;
  z-index: 8;
  top: 0;
  right: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(247, 243, 235, 0.86);
  backdrop-filter: blur(12px);
}

.stage-note span,
.stage-note strong {
  display: block;
}

.stage-note span {
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.11em;
}

.stage-note strong {
  margin-top: 3px;
  font-size: 13px;
}

.cover-card {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 8px solid var(--bg-elevated);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-paper);
}

.cover-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-card-left {
  z-index: 2;
  top: 72px;
  left: 0;
  width: 40%;
  height: 66%;
  transform: rotate(-8deg);
}

.cover-card-center {
  z-index: 4;
  top: 34px;
  left: 30%;
  width: 43%;
  height: 78%;
  transform: rotate(2deg);
}

.cover-card-right {
  z-index: 3;
  right: 0;
  bottom: 16px;
  width: 38%;
  height: 64%;
  transform: rotate(8deg);
}

.orbit {
  position: absolute;
  z-index: 1;
  border: 1px dashed rgba(67, 56, 202, 0.28);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  inset: 48px 11% 44px;
}

.orbit-two {
  top: 22%;
  right: 4%;
  bottom: 4%;
  left: 20%;
}

.portal-stage {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.portal-stage .stage-note {
  top: 22px;
  right: 0;
}

.portal-frame {
  position: relative;
  z-index: 2;
  width: min(84%, 500px);
  aspect-ratio: 4 / 5;
  margin: 0 4% 0 0;
  overflow: hidden;
  border: 8px solid var(--bg-elevated);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-paper);
  transform: rotate(1.5deg);
}

.portal-frame img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: right center;
  transition: transform 800ms var(--ease-smooth);
}

.portal-stage:hover .portal-frame img {
  transform: scale(1.025);
}

.portal-axis {
  position: absolute;
  z-index: 3;
  display: block;
  background: var(--amber);
  pointer-events: none;
}

.portal-axis-horizontal {
  right: 0;
  bottom: 80px;
  width: 38%;
  height: 2px;
}

.portal-axis-vertical {
  top: 0;
  right: 8%;
  width: 2px;
  height: 32%;
}

.manifesto {
  padding: clamp(56px, 7vw, 104px) var(--page-pad);
  color: var(--bg-elevated);
  background: var(--text-primary);
}

.manifesto p {
  max-width: 1080px;
  margin: 0 auto;
  font-size: clamp(25px, 3.3vw, 52px);
  letter-spacing: -0.035em;
  line-height: 1.4;
}

.manifesto span {
  color: var(--amber);
}

.section-shell {
  width: min(calc(100% - (var(--page-pad) * 2)), var(--max-width));
  margin: 0 auto;
  padding: clamp(96px, 10vw, 160px) 0;
}

.section-heading {
  margin-bottom: clamp(48px, 6vw, 88px);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(36px, 4.5vw, 70px);
  letter-spacing: -0.05em;
  line-height: 1;
}

.section-heading > p {
  max-width: 360px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.project {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
}

.project-featured {
  min-height: 680px;
  padding: clamp(28px, 4vw, 64px);
  display: grid;
  grid-template-columns: 52px minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: clamp(24px, 4vw, 64px);
  overflow: hidden;
}

.project-index {
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.project-copy {
  align-self: center;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-tertiary);
  font-size: 12px;
}

.status {
  padding: 5px 9px;
  display: inline-flex;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.status-live {
  color: #215e45;
  background: #d9f4e7;
}

.status-next {
  color: #7a4a05;
  background: #fae7bc;
}

.status-lab {
  color: #4338ca;
  background: #e2e0ff;
}

.project h3 {
  margin: 24px 0 20px;
  font-size: clamp(30px, 3.5vw, 56px);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.project-copy > p {
  max-width: 650px;
  margin: 0;
  color: var(--text-secondary);
}

.project-copy .project-claim {
  margin-bottom: 18px;
  color: var(--text-primary);
  font-size: clamp(19px, 2vw, 28px);
  font-weight: 620;
  line-height: 1.5;
}

.project-visual {
  position: relative;
  margin: 0;
  align-self: stretch;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #171d2a;
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-smooth);
}

.project-featured:hover .project-visual img {
  transform: scale(1.035);
}

.project-story-gallery {
  min-height: 520px;
  align-self: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(112px, 0.75fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 12px;
}

.project-story-gallery figure {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #171d2a;
}

.project-story-gallery .story-gallery-feature {
  grid-row: 1 / -1;
}

.project-story-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-smooth);
}

.project-story-gallery figure:hover img {
  transform: scale(1.035);
}

.project-story-gallery figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--bg-elevated);
  background: rgba(28, 25, 23, 0.78);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.project-visual figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--bg-elevated);
  background: rgba(28, 25, 23, 0.78);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.project-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project-upcoming,
.project-later {
  min-height: 580px;
  padding: clamp(28px, 4vw, 52px);
  overflow: hidden;
}

.project-grid h3 {
  max-width: 560px;
  margin-top: 30px;
}

.project-grid article > p:not(.availability) {
  max-width: 530px;
  color: var(--text-secondary);
}

.availability {
  position: absolute;
  right: 44px;
  bottom: 32px;
  left: 44px;
  margin: 0;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.07em;
}

.cube-placeholder {
  position: absolute;
  right: 34px;
  bottom: 70px;
  width: clamp(170px, 19vw, 280px);
  aspect-ratio: 1;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  transform: rotate(-7deg);
  border: 2px solid var(--text-primary);
  background: var(--text-primary);
  box-shadow: 18px 18px 0 var(--amber);
}

.cube-placeholder span {
  border-radius: 3px;
  background: var(--bg-elevated);
}

.cube-placeholder span:nth-child(2),
.cube-placeholder span:nth-child(4),
.cube-placeholder span:nth-child(9) {
  background: var(--accent);
}

.cube-placeholder span:nth-child(3),
.cube-placeholder span:nth-child(7) {
  background: var(--primary);
}

.motion-signal {
  position: absolute;
  right: 54px;
  bottom: 72px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(67, 56, 202, 0.28);
  border-radius: 50%;
}

.motion-head,
.motion-body,
.motion-arm,
.motion-wave {
  position: absolute;
  display: block;
}

.motion-head {
  top: 42px;
  left: 111px;
  width: 38px;
  height: 38px;
  border: 6px solid var(--primary);
  border-radius: 50%;
}

.motion-body {
  top: 86px;
  left: 126px;
  width: 6px;
  height: 100px;
  border-radius: 99px;
  background: var(--primary);
  transform: rotate(-8deg);
}

.motion-arm {
  top: 105px;
  left: 128px;
  width: 84px;
  height: 6px;
  border-radius: 99px;
  background: var(--accent);
  transform-origin: left center;
}

.motion-arm-left {
  transform: rotate(205deg);
}

.motion-arm-right {
  transform: rotate(-28deg);
}

.motion-wave {
  border: 2px solid var(--amber);
  border-left-color: transparent;
  border-radius: 50%;
}

.wave-a {
  top: 72px;
  right: 36px;
  width: 70px;
  height: 70px;
  transform: rotate(-10deg);
}

.wave-b {
  top: 53px;
  right: 16px;
  width: 108px;
  height: 108px;
  opacity: 0.52;
  transform: rotate(-10deg);
}

.now {
  border-top: 1px solid var(--line);
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.timeline li {
  padding: 32px 0;
  display: grid;
  grid-template-columns: minmax(100px, 0.24fr) 1fr;
  gap: 40px;
  border-bottom: 1px solid var(--line);
}

.timeline-date {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.timeline strong {
  display: block;
  font-size: clamp(20px, 2.1vw, 30px);
}

.timeline p {
  margin: 6px 0 0;
  color: var(--text-secondary);
}

.about {
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.65fr);
  gap: clamp(64px, 10vw, 180px);
}

.about h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 78px);
  letter-spacing: -0.06em;
  line-height: 1.08;
}

.about-grid p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.9;
}

.about-grid .about-note {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.site-footer {
  padding: 48px var(--page-pad);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  color: var(--bg-elevated);
  background: var(--primary-strong);
}

.site-footer strong {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.11em;
}

.site-footer p {
  margin: 6px 0 0;
  color: rgba(255, 253, 248, 0.7);
  font-size: 13px;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 5px;
  color: rgba(255, 253, 248, 0.58);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.reveal {
  opacity: 1;
  transform: none;
}

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

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .story-stage {
    min-height: 620px;
  }

  .portal-stage {
    min-height: 600px;
    justify-content: center;
  }

  .portal-frame {
    width: min(74vw, 500px);
    margin-right: 0;
  }

  .project-featured {
    grid-template-columns: 32px 1fr;
  }

  .project-visual,
  .project-story-gallery {
    min-height: 520px;
    grid-column: 2;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-upcoming,
  .project-later {
    min-height: 540px;
  }
}

@media (max-width: 680px) {
  :root {
    --page-pad: 20px;
  }

  .site-header {
    padding: 16px 0;
  }

  .wordmark small,
  .site-nav a:not(:first-child) {
    display: none;
  }

  .hero {
    padding-top: 72px;
    gap: 56px;
  }

  .hero h1 {
    font-size: clamp(46px, 14vw, 66px);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .project-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .project-actions .button {
    width: 100%;
  }

  .story-stage {
    min-height: 440px;
  }

  .portal-stage {
    min-height: 520px;
  }

  .portal-stage .stage-note {
    top: -10px;
    right: 0;
  }

  .portal-frame {
    width: min(84vw, 420px);
    border-width: 5px;
  }

  .portal-axis-horizontal {
    bottom: 64px;
  }

  .stage-note {
    top: -20px;
  }

  .cover-card {
    border-width: 5px;
  }

  .cover-card-left {
    top: 82px;
    width: 42%;
    height: 58%;
  }

  .cover-card-center {
    top: 48px;
    left: 28%;
    width: 48%;
    height: 72%;
  }

  .cover-card-right {
    width: 40%;
    height: 55%;
  }

  .manifesto {
    padding-right: 24px;
    padding-left: 24px;
  }

  .section-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-featured {
    min-height: auto;
    padding: 26px;
    grid-template-columns: 1fr;
  }

  .project-visual,
  .project-story-gallery {
    min-height: 420px;
    grid-column: 1;
  }

  .project-story-gallery {
    grid-template-columns: minmax(0, 1.35fr) minmax(96px, 0.65fr);
    gap: 8px;
  }

  .project-upcoming,
  .project-later {
    min-height: 600px;
  }

  .project-grid h3 {
    font-size: 36px;
  }

  .cube-placeholder {
    right: 42px;
    width: 210px;
  }

  .motion-signal {
    right: 28px;
    transform: scale(0.88);
    transform-origin: right bottom;
  }

  .timeline li {
    grid-template-columns: 72px 1fr;
    gap: 18px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-meta {
    align-items: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
