/* ==========================================================================
   VentureGame — foundation
   ========================================================================== */

@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/fonts/instrument-sans-400-700-normal.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/fonts/instrument-serif-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/fonts/instrument-serif-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono-400-normal.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #080807;
  --bg-soft: #0c0c0a;
  --bg-elev: #11110e;
  --ink: #f2efe6;
  --ink-soft: #cecabe;
  --muted: #a4a096;
  --faint: #858178;
  --line: rgba(242, 239, 230, 0.12);
  --line-soft: rgba(242, 239, 230, 0.065);
  --line-strong: rgba(242, 239, 230, 0.24);
  --accent: #ff5a36;
  --accent-bright: #ff7455;
  --accent-ink: #190702;
  --accent-soft: rgba(255, 90, 54, 0.12);
  --serif: 'Instrument Serif', 'Songti TC', 'Songti SC', 'Noto Serif TC', 'Noto Serif CJK TC', 'PMingLiU', 'MingLiU', 'STSong', serif;
  --sans: 'Instrument Sans', 'PingFang TC', 'Noto Sans TC', 'Noto Sans CJK TC', 'Microsoft JhengHei', 'Heiti TC', sans-serif;
  --mono: 'JetBrains Mono', 'SFMono-Regular', 'Cascadia Mono', Consolas, monospace;
  --header-h: 78px;
  --gutter: clamp(20px, 4.2vw, 56px);
  --max: 1392px;
  --ease: cubic-bezier(0.22, 0.72, 0.24, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

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

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

button {
  font: inherit;
  color: inherit;
}

strong {
  color: var(--ink);
  font-weight: 600;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--ink);
  background: rgba(242, 239, 230, 0.06);
  border: 1px solid var(--line-soft);
  padding: 0.08em 0.35em;
}

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  transform: translateY(-200%);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.18s var(--ease);
}

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

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   Typography helpers
   ========================================================================== */

.display,
.h2,
.hero-title,
.page-title,
.cta-title,
.legal-title {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
}

.display em,
.h2 em,
.hero-title em,
.page-title em,
.cta-title em,
.legal-title em {
  font-style: italic;
  color: var(--accent);
}

html[lang='zh-Hant'] .display em,
html[lang='zh-Hant'] .hero-title em,
html[lang='zh-Hant'] .page-title em,
html[lang='zh-Hant'] .cta-title em {
  font-style: normal;
}

.h2 {
  font-size: clamp(2.7rem, 4.6vw, 4.9rem);
  line-height: 1.02;
  max-width: 18ch;
}

html[lang='zh-Hant'] .h2 {
  font-size: clamp(2.05rem, 3.3vw, 3.4rem);
  line-height: 1.28;
  letter-spacing: 0.01em;
  max-width: 22ch;
}

.lede {
  max-width: 56ch;
  font-size: clamp(1rem, 1.18vw, 1.11rem);
  line-height: 1.75;
  color: var(--ink-soft);
}

html[lang='zh-Hant'] .lede {
  font-size: 1.02rem;
  line-height: 1.95;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(20px, 3vw, 30px);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
}

html[lang='zh-Hant'] .kicker {
  letter-spacing: 0.11em;
}

.kicker-dot {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(255, 90, 54, 0.5);
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
}

.mono {
  font-family: var(--mono);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: 26px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--accent);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s var(--ease), gap 0.25s var(--ease);
}

.text-link .icon {
  width: 17px;
  height: 13px;
  transition: transform 0.25s var(--ease);
}

.text-link:hover {
  color: var(--accent);
}

.text-link:hover .icon {
  transform: translateX(4px);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 1px;
  font-size: 13.5px;
  font-weight: 550;
  line-height: 1;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease), color 0.22s var(--ease),
    transform 0.22s var(--ease);
}

.btn .icon {
  width: 14px;
  height: 14px;
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn--primary:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(242, 239, 230, 0.035);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  color: var(--ink);
}

.btn--dark:hover {
  background: #000;
  border-color: #000;
  transform: translateY(-2px);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}

.site-header.is-scrolled,
body.menu-open .site-header {
  background: rgba(8, 8, 7, 0.86);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  color: var(--ink);
}

.mark-inner {
  color: var(--accent);
}

.brand-name {
  font-size: 25.5px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.brand:hover .mark-inner {
  transform: translateY(1px);
}

.mark-inner {
  transition: transform 0.25s var(--ease);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.5vw, 36px);
  margin-left: auto;
}

.nav-link {
  position: relative;
  padding: 6px 0;
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}

.nav-link:hover,
.nav-link[aria-current='page'] {
  color: var(--ink);
}

.nav-link:hover::after,
.nav-link[aria-current='page']::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 8px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.lang-current,
.lang-alt {
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 2px;
}

.lang-current {
  color: var(--ink);
}

.lang-alt {
  transition: color 0.2s var(--ease);
}

.lang-alt:hover {
  color: var(--accent);
}

.lang-divider {
  color: var(--faint);
  font-size: 8px;
  transform: translateY(-0.5px);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border: 0;
  background: none;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 12px;
}

.menu-toggle-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 0.22s var(--ease), top 0.22s var(--ease);
}

.menu-toggle-icon span:first-child {
  top: 2px;
}

.menu-toggle-icon span:last-child {
  top: 9px;
}

.menu-toggle[aria-expanded='true'] .menu-toggle-icon span:first-child {
  top: 5.5px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded='true'] .menu-toggle-icon span:last-child {
  top: 5.5px;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 55;
  background: var(--bg);
  border-top: 1px solid var(--line);
  overflow-y: auto;
  animation: menu-in 0.25s var(--ease);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-top: clamp(24px, 7vh, 64px);
  padding-bottom: 32px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
}

.mobile-nav-link {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(2.1rem, 8vw, 3.1rem);
  line-height: 1.15;
  color: var(--ink);
}

html[lang='zh-Hant'] .mobile-nav-link {
  font-size: clamp(1.85rem, 7vw, 2.6rem);
}

.mobile-nav-index {
  width: 24px;
  flex: none;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.mobile-nav-link .icon {
  width: 20px;
  height: 20px;
  margin-left: auto;
  color: var(--faint);
}

.mobile-menu-foot {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: auto;
  padding-top: 48px;
}

.mobile-email {
  font-size: 15px;
  color: var(--ink-soft);
}

.mobile-lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

body.menu-open {
  overflow: hidden;
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Home hero
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(44px, 6vh, 74px));
  padding-bottom: 24px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 92px 92px;
  -webkit-mask-image: radial-gradient(ellipse 82% 78% at 64% 38%, #000 0%, transparent 76%);
  mask-image: radial-gradient(ellipse 82% 78% at 64% 38%, #000 0%, transparent 76%);
  opacity: 0.55;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(ellipse 44% 42% at 78% 42%, rgba(255, 90, 54, 0.09), transparent 70%),
    radial-gradient(ellipse 40% 50% at 18% 20%, rgba(242, 239, 230, 0.028), transparent 70%);
}

.hero-grid-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex: 1;
  padding-top: clamp(12px, 2vh, 28px);
  padding-bottom: clamp(24px, 4vh, 48px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  width: 100%;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-title {
  max-width: none;
  font-size: clamp(3.2rem, 6.3vw, 6.4rem);
  line-height: 0.93;
  letter-spacing: -0.025em;
}

html[lang='zh-Hant'] .hero-title {
  max-width: none;
  font-size: clamp(2.55rem, 5.3vw, 5.15rem);
  line-height: 1.16;
  letter-spacing: 0.01em;
}

.hero-line {
  display: block;
  white-space: nowrap;
}

.br-mobile {
  display: none;
}

.hero-lede {
  max-width: 52ch;
  margin-top: clamp(26px, 3.4vw, 38px);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.72;
  color: var(--ink-soft);
}

html[lang='zh-Hant'] .hero-lede {
  max-width: 36em;
  font-size: 1.03rem;
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(30px, 4vw, 44px);
}

.lang-note {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--faint);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-rail {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.rail-items {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
}

.rail-item {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  font-size: 12.5px;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.rail-item:hover {
  color: var(--ink);
}

.rail-index {
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.rail-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.rail-scroll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  transition: color 0.2s var(--ease);
}

.rail-scroll .icon {
  width: 10px;
  height: 14px;
  color: var(--accent);
}

.rail-scroll:hover {
  color: var(--ink);
}

/* Entrance motion */
.hero .kicker,
.hero-title,
.hero-lede,
.hero-actions,
.hero-visual {
  animation: rise 0.85s var(--ease) both;
}

.hero .kicker {
  animation-delay: 0.04s;
}

.hero-title {
  animation-delay: 0.1s;
}

.hero-lede {
  animation-delay: 0.22s;
}

.hero-actions {
  animation-delay: 0.3s;
}

.hero-visual {
  animation-delay: 0.16s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Instrument artwork
   ========================================================================== */

.instrument {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0;
  aspect-ratio: 640 / 680;
}

.instrument::before {
  content: '';
  position: absolute;
  inset: -14%;
  z-index: -1;
  background: radial-gradient(circle at 50% 48%, rgba(255, 90, 54, 0.115), transparent 62%);
  filter: blur(12px);
}

.instrument svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.instr-frame {
  fill: rgba(10, 10, 8, 0.35);
  stroke: var(--line);
  stroke-width: 1;
}

.instr-corners path {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
}

.s-line {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
}

.s-faint {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

.s-dash {
  stroke-dasharray: 2 8;
}

.s-dash-2 {
  stroke-dasharray: 1 16;
}

.s-dash-3 {
  stroke-dasharray: 1 26;
  opacity: 0.65;
}

.s-accent {
  stroke: var(--accent);
}

.s-arc {
  stroke-width: 1.5;
  stroke-dasharray: 148 690;
  stroke-linecap: butt;
}

.instr-ticks line {
  stroke: var(--line);
  stroke-width: 1;
}

.instr-cross line {
  stroke: var(--line-soft);
  stroke-dasharray: 3 8;
}

.core-disc {
  fill: var(--accent);
  transform-origin: 320px 330px;
  transform-box: view-box;
  animation: core-pulse 7s ease-in-out infinite;
}

.core-inner {
  fill: var(--bg);
}

.sweep-line {
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0.35;
}

.sweep-dot {
  fill: var(--accent);
}

.dot-accent {
  fill: var(--accent);
}

.dot-faint {
  fill: var(--faint);
}

.instr-label {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  fill: var(--muted);
}

html[lang='zh-Hant'] .instr-label {
  letter-spacing: 0.08em;
}

.instr-label--accent {
  fill: var(--accent);
}

.instr-micro {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.18em;
  fill: var(--faint);
}

.ring-rotate-slow,
.ring-rotate-rev,
.ring-rotate-fast {
  transform-origin: 320px 330px;
  transform-box: view-box;
}

.ring-rotate-slow {
  animation: spin 130s linear infinite;
}

.ring-rotate-rev {
  animation: spin-rev 85s linear infinite;
}

.ring-rotate-fast {
  animation: spin 22s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-rev {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes core-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.07);
  }
}

/* ==========================================================================
   Sections and shared blocks
   ========================================================================== */

.section {
  position: relative;
  padding-block: clamp(76px, 10vw, 144px);
}

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

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: end;
  gap: clamp(28px, 5vw, 80px);
  margin-bottom: clamp(42px, 6vw, 74px);
}

.section-head-main {
  min-width: 0;
}

.section-head-lede {
  padding-bottom: 8px;
  max-width: 46ch;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.intro-side {
  padding-top: clamp(30px, 4vw, 48px);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 48px);
  margin-top: clamp(52px, 7vw, 92px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fact-value {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.15vw, 2.1rem);
  line-height: 1.15;
}

html[lang='zh-Hant'] .fact-value {
  font-size: clamp(1.35rem, 1.9vw, 1.8rem);
}

.fact-label {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--faint);
}

html[lang='zh-Hant'] .fact-label {
  letter-spacing: 0.04em;
}

/* Focus rows */
.focus-list {
  border-top: 1px solid var(--line);
}

.focus-row {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1.25fr) minmax(180px, 0.65fr);
  align-items: start;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(26px, 3.6vw, 40px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s var(--ease);
}

.focus-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s var(--ease);
}

.focus-row:hover {
  padding-left: 16px;
}

.focus-row:hover::before {
  transform: scaleY(1);
}

.focus-row--static:hover {
  padding-left: 0;
}

.focus-row--static:hover::before {
  transform: scaleY(0);
}

.focus-row--static:hover .focus-headline {
  color: inherit;
}

.focus-index {
  padding-top: 5px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.focus-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.focus-category {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
}

html[lang='zh-Hant'] .focus-category {
  letter-spacing: 0.08em;
}

.focus-headline {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.7vw, 2.65rem);
  line-height: 1.12;
  transition: color 0.25s var(--ease);
}

html[lang='zh-Hant'] .focus-headline {
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  line-height: 1.3;
}

.focus-row:hover .focus-headline {
  color: var(--accent-bright);
}

.focus-description {
  max-width: 48ch;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}

html[lang='zh-Hant'] .focus-description {
  font-size: 14px;
  line-height: 1.85;
}

.focus-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding-top: 6px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.07em;
  color: var(--faint);
}

.focus-tags span {
  padding: 3px 0;
}

.focus-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.focus-arrow .icon {
  width: 14px;
  height: 14px;
}

.focus-row:hover .focus-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  transform: rotate(45deg);
}

/* Pipeline panel */
.pipeline-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(36px, 6vw, 80px);
  padding: clamp(28px, 5vw, 72px);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #11110d 0%, #0a0a08 58%, #0b0b09 100%);
  overflow: hidden;
}

.pipeline-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 60% at 88% 12%, rgba(255, 90, 54, 0.1), transparent 70%);
  pointer-events: none;
}

.pipeline-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 80% 20%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse 80% 80% at 80% 20%, #000, transparent 72%);
}

.pipeline-copy,
.pipeline-visual {
  position: relative;
  z-index: 1;
}

.pipeline-copy .lede {
  margin-top: 24px;
  max-width: 42ch;
}

.terminal {
  border: 1px solid rgba(242, 239, 230, 0.15);
  background: #060605;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.11em;
  color: var(--faint);
}

.terminal-dots {
  display: flex;
  gap: 5px;
}

.terminal-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}

.terminal-body {
  padding: 18px 16px 20px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 2.05;
  color: var(--muted);
}

.log-row {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.log-row--prompt {
  color: var(--ink);
  margin-bottom: 4px;
}

.log-prompt,
.log-row--done .log-mark {
  color: var(--accent);
}

.log-mark {
  width: 12px;
  color: var(--faint);
}

.log-meta {
  margin-left: auto;
  color: var(--faint);
}

.log-row--done {
  color: var(--accent);
}

.log-row--done .log-meta {
  color: var(--accent);
}

.log-cursor {
  width: 6px;
  height: 12px;
  background: var(--accent);
  animation: blink 1.2s steps(2, start) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.terminal-caption {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.7;
  letter-spacing: 0.05em;
  color: var(--faint);
}

/* Principles */
.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}

.principle {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.principle-index {
  display: block;
  margin-bottom: clamp(32px, 5vw, 54px);
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 0.8;
  color: var(--faint);
}

html[lang='zh-Hant'] .principle h3 {
  max-width: 22em;
}

.principle h3 {
  max-width: 18ch;
  margin-bottom: 12px;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.principle p {
  max-width: 36ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  position: relative;
  padding-block: clamp(90px, 13vw, 190px);
  border-top: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(ellipse 50% 70% at 80% 55%, rgba(255, 90, 54, 0.11), transparent 70%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
}

.cta-rings {
  position: absolute;
  right: -14%;
  top: 50%;
  z-index: -1;
  width: min(760px, 70vw);
  aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
}

.cta-rings span {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.cta-rings span:nth-child(2) {
  inset: 14%;
  border-color: var(--line-soft);
}

.cta-rings span:nth-child(3) {
  inset: 30%;
  border-color: rgba(255, 90, 54, 0.22);
}

.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.cta-title {
  max-width: 18ch;
  font-size: clamp(3rem, 6.2vw, 6.4rem);
  line-height: 0.98;
}

html[lang='zh-Hant'] .cta-title {
  max-width: 16ch;
  font-size: clamp(2.45rem, 5.2vw, 5.1rem);
  line-height: 1.18;
}

.cta-body {
  max-width: 50ch;
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.cta-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  margin-top: clamp(34px, 4.5vw, 54px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.cta-email {
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.cta-email:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ==========================================================================
   Page hero
   ========================================================================== */

.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(64px, 9vw, 118px));
  padding-bottom: clamp(56px, 7.5vw, 96px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 82px 82px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
  opacity: 0.55;
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  right: -10%;
  bottom: -40%;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 54, 0.075), transparent 62%);
  pointer-events: none;
}

.page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: clamp(30px, 5vw, 80px);
}

.page-title {
  max-width: none;
  font-size: clamp(3.4rem, 7.2vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

html[lang='zh-Hant'] .page-title {
  max-width: none;
  font-size: clamp(2.7rem, 5.6vw, 5.3rem);
  line-height: 1.18;
  letter-spacing: 0.01em;
}

.page-hero-side {
  padding-bottom: 6px;
}

.page-hero-side .lede {
  max-width: 38ch;
}

.page-aside {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.7;
  letter-spacing: 0.07em;
  color: var(--faint);
}

html[lang='zh-Hant'] .page-aside {
  letter-spacing: 0.03em;
}

/* ==========================================================================
   Capability grids
   ========================================================================== */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.cap {
  display: flex;
  flex-direction: column;
  min-height: clamp(240px, 26vw, 320px);
  padding: clamp(26px, 3.8vw, 46px);
  background: var(--bg);
  transition: background 0.3s var(--ease);
}

.cap:hover {
  background: #0d0d0b;
}

.cap-index {
  margin-bottom: clamp(32px, 5vw, 58px);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  color: var(--accent);
}

.cap h3 {
  max-width: 22ch;
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.35vw, 2.2rem);
  font-weight: 400;
  line-height: 1.15;
}

html[lang='zh-Hant'] .cap h3 {
  font-size: clamp(1.35rem, 1.9vw, 1.75rem);
  line-height: 1.35;
}

.cap p {
  max-width: 44ch;
  margin-bottom: 28px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.cap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tag {
  padding: 4px 8px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--faint);
}

/* ==========================================================================
   Games — world art + quote
   ========================================================================== */

.world-band {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  border-block: 1px solid var(--line);
  background: #0a0a08;
}

.world-figure {
  position: relative;
  min-height: clamp(380px, 44vw, 540px);
  margin: 0;
  overflow: hidden;
}

.world-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.world-figure figcaption {
  position: absolute;
  left: clamp(20px, 3vw, 36px);
  bottom: 18px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.world-quote {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 82px);
  border-left: 1px solid var(--line);
  overflow: hidden;
}

.quote-mark {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: var(--serif);
  font-size: 8rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.16;
  pointer-events: none;
}

.world-quote blockquote {
  position: relative;
  z-index: 1;
  max-width: 20ch;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.15vw, 3.15rem);
  line-height: 1.14;
}

html[lang='zh-Hant'] .world-quote blockquote {
  max-width: 18ch;
  font-size: clamp(1.5rem, 2.45vw, 2.4rem);
  line-height: 1.45;
}

.quote-source {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

/* Process */
.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.process-step {
  position: relative;
  padding-top: 32px;
}

.process-step::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 0;
  width: 9px;
  height: 9px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
}

.process-index {
  display: block;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.09em;
  color: var(--accent);
}

.process-step h3 {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.process-step p {
  max-width: 30ch;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* Fit block */
.fit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  border: 1px solid var(--line);
}

.fit-copy {
  padding: clamp(28px, 4.6vw, 64px);
}

.fit-list {
  list-style: none;
  margin-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
}

.fit-list li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.fit-index {
  padding-top: 2px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--faint);
}

.fit-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(28px, 4.6vw, 64px);
  background: var(--accent);
  color: var(--accent-ink);
}

.fit-cta h3 {
  max-width: 12ch;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.02;
}

html[lang='zh-Hant'] .fit-cta h3 {
  max-width: 12ch;
  font-size: clamp(1.7rem, 2.7vw, 2.5rem);
  line-height: 1.25;
}

.fit-cta p {
  max-width: 30ch;
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(25, 7, 2, 0.78);
}

.fit-cta .btn {
  margin-top: 32px;
}

/* ==========================================================================
   Tools — system panel
   ========================================================================== */

.system-panel {
  position: relative;
  padding: clamp(28px, 4.6vw, 64px);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #0e0e0b, #090907 72%);
  overflow: hidden;
}

.system-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, var(--line-soft) 1px, transparent 1px);
  background-size: 25% 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 75%);
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
  pointer-events: none;
}

.system-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  align-items: end;
  gap: clamp(24px, 5vw, 72px);
  padding-bottom: clamp(36px, 4.5vw, 56px);
  border-bottom: 1px solid var(--line);
}

.system-head .lede {
  max-width: 44ch;
  padding-bottom: 6px;
}

.system-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.system-step {
  display: flex;
  flex-direction: column;
  min-height: clamp(180px, 18vw, 230px);
  padding: clamp(26px, 3.4vw, 44px) clamp(16px, 2vw, 28px);
  border-right: 1px solid var(--line);
}

.system-step:first-child {
  padding-left: 0;
}

.system-step:last-child {
  border-right: 0;
}

.system-index {
  margin-bottom: auto;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.system-label {
  margin: clamp(32px, 5vw, 56px) 0 8px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1;
}

html[lang='zh-Hant'] .system-label {
  font-size: clamp(1.7rem, 2.5vw, 2.3rem);
  line-height: 1.3;
}

.system-note {
  max-width: 20ch;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--faint);
}

html[lang='zh-Hant'] .system-note {
  line-height: 1.8;
}

.system-foot {
  position: relative;
  z-index: 1;
  margin-top: clamp(24px, 3vw, 36px);
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--faint);
}

/* ==========================================================================
   About
   ========================================================================== */

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(240px, 0.78fr);
  gap: clamp(36px, 6vw, 96px);
}

.story-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 58ch;
  margin-top: 32px;
}

.story-copy p {
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  line-height: 1.8;
  color: var(--ink-soft);
}

html[lang='zh-Hant'] .story-copy p {
  line-height: 2;
}

.story-copy p:first-child {
  color: var(--ink);
}

.story-aside {
  align-self: start;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.aside-label {
  margin-bottom: 22px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.story-aside ul {
  list-style: none;
}

.story-aside li {
  position: relative;
  padding: 11px 0 11px 18px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.story-aside li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 5px;
  height: 1px;
  background: var(--accent);
}

.details-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.details-note {
  max-width: 32ch;
  margin-top: 24px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

.details-card {
  border: 1px solid var(--line);
  background: linear-gradient(150deg, #0e0e0b, #0a0a08);
}

.details-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 20px clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
}

.details-row:last-child {
  border-bottom: 0;
}

.details-row dt {
  padding-top: 3px;
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

html[lang='zh-Hant'] .details-row dt {
  letter-spacing: 0.03em;
}

.details-row dd {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink);
}

.details-row dd a {
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.details-row dd a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.details-row--address dd {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: 0.02em;
}

.details-row address {
  font-style: normal;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-section {
  padding-block: clamp(50px, 6.5vw, 84px);
}

.contact-email {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-email-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.contact-email-address {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-strong);
  font-size: clamp(1.8rem, 4.6vw, 4.4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.045em;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.contact-email-address .icon {
  width: clamp(26px, 3.4vw, 46px);
  height: clamp(26px, 3.4vw, 46px);
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}

.contact-email:hover .contact-email-address {
  color: var(--accent);
  border-color: var(--accent);
}

.contact-email:hover .contact-email-address .icon {
  transform: rotate(45deg);
}

.contact-email-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

.contact-privacy {
  margin-top: 8px;
  font-size: 12px;
  color: var(--faint);
}

.contact-privacy a {
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-strong);
}

.contact-privacy a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}

.guide-list {
  list-style: none;
  margin-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
}

.guide-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.guide-index {
  padding-top: 2px;
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--accent);
}

.guide-aside {
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
}

.guide-aside-body {
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.guide-aside-note {
  max-width: 34ch;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--faint);
}

.next-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 56px);
}

.next-step {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.next-index {
  display: block;
  margin-bottom: clamp(28px, 4vw, 46px);
  font-family: var(--mono);
  font-size: 9px;
  color: var(--accent);
}

.next-step h3 {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 500;
}

.next-step p {
  max-width: 30ch;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* ==========================================================================
   Legal
   ========================================================================== */

.legal-hero {
  padding-top: calc(var(--header-h) + clamp(56px, 8vw, 104px));
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 90, 54, 0.035), transparent 70%);
}

.legal-title {
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 1;
}

html[lang='zh-Hant'] .legal-title {
  font-size: clamp(2.5rem, 4.6vw, 4.4rem);
  line-height: 1.2;
}

.legal-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  margin-top: 28px;
}

.legal-intro {
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

html[lang='zh-Hant'] .legal-intro {
  line-height: 1.9;
}

.legal-updated {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.07em;
  color: var(--faint);
  white-space: nowrap;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(180px, 232px) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 100px);
  padding-block: clamp(48px, 6vw, 80px) clamp(80px, 10vw, 140px);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}

.legal-toc-label {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--faint);
}

.legal-toc ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.legal-toc a {
  display: block;
  padding: 5px 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  transition: color 0.18s var(--ease);
}

.legal-toc a:hover,
.legal-toc a.is-active {
  color: var(--accent);
}

.legal-body {
  max-width: 780px;
  min-width: 0;
}

.legal-section {
  padding-bottom: clamp(28px, 3.4vw, 40px);
  margin-bottom: clamp(28px, 3.4vw, 40px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 28px);
}

.legal-section h2 {
  margin-bottom: 18px;
  font-size: 1.12rem;
  font-weight: 550;
  line-height: 1.5;
  letter-spacing: -0.005em;
}

.legal-section p {
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.legal-section p:last-child {
  margin-bottom: 0;
}

html[lang='zh-Hant'] .legal-section p {
  font-size: 14.5px;
  line-height: 2;
}

.legal-section ul {
  margin: 0 0 16px;
  padding-left: 0;
  list-style: none;
}

.legal-section li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

html[lang='zh-Hant'] .legal-section li {
  font-size: 14.5px;
  line-height: 2;
}

.legal-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 6px;
  height: 1px;
  background: var(--faint);
}

.legal-section a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(255, 90, 54, 0.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.18s var(--ease), text-decoration-color 0.18s var(--ease);
}

.legal-section a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.table-wrap {
  margin: 20px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
}

.legal-section table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.6;
}

.legal-section th,
.legal-section td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-section th {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  background: rgba(242, 239, 230, 0.025);
}

.legal-section tbody th {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  background: transparent;
  white-space: nowrap;
}

.legal-section tr:last-child th,
.legal-section tr:last-child td {
  border-bottom: 0;
}

.legal-contact {
  padding-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.legal-contact a {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
}

/* ==========================================================================
   404
   ========================================================================== */

.not-found {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding-block: clamp(90px, 12vw, 160px);
  overflow: hidden;
}

.not-found-code {
  position: absolute;
  right: -2%;
  top: 45%;
  z-index: 0;
  transform: translateY(-50%);
  font-size: clamp(15rem, 38vw, 34rem);
  line-height: 0.7;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  pointer-events: none;
  user-select: none;
}

.not-found-inner {
  position: relative;
  z-index: 1;
}

.not-found-title {
  max-width: 14ch;
  font-size: clamp(2.8rem, 6.6vw, 6.2rem);
  line-height: 1;
}

html[lang='zh-Hant'] .not-found-title {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.25;
}

.not-found .lede {
  max-width: 42ch;
  margin-top: 24px;
}

.not-found-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.not-found-lang {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
}

.not-found-lang:hover {
  color: var(--accent);
}

.not-found-zh {
  max-width: min(100%, 540px);
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--muted);
}

.not-found-zh p:first-child {
  margin-bottom: 4px;
  color: var(--ink-soft);
}

.not-found-zh a {
  color: var(--ink);
  border-bottom: 1px solid rgba(255, 90, 54, 0.6);
}

.not-found-zh a:hover {
  color: var(--accent);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  position: relative;
  padding-top: clamp(56px, 7vw, 88px);
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
  background: #060605;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  right: -8%;
  top: -40%;
  width: 44vw;
  height: 44vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 54, 0.05), transparent 65%);
  pointer-events: none;
}

.footer-top {
  position: relative;
}

.footer-cols {
  display: flex;
  justify-content: space-between;
  gap: clamp(24px, 6vw, 80px);
}

.footer-col {
  width: min(220px, 42%);
}

.footer-heading {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--faint);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.footer-links a {
  padding: 4px 0;
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.7;
  color: var(--faint);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: none;
}

.footer-meta a {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.footer-meta a:hover {
  color: var(--accent);
}

.footer-top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.03fr) minmax(330px, 0.97fr);
    gap: 32px;
  }

  .hero-title {
    font-size: clamp(3.3rem, 7vw, 6.1rem);
  }

  .instrument {
    max-width: 490px;
  }

  .focus-row {
    grid-template-columns: 42px minmax(0, 1.25fr) minmax(150px, 0.6fr) 44px;
  }
}

@media (max-width: 1024px) {
  :root {
    --header-h: 72px;
  }

  .primary-nav {
    gap: 22px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
  }

  .instrument {
    max-width: 440px;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-head-lede {
    padding-bottom: 0;
  }

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

  .pipeline-copy .lede {
    max-width: 55ch;
  }

  .cta-inner {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.55fr);
  }

  .page-hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
  }
}

@media (max-width: 900px) {
  .primary-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + clamp(42px, 7vh, 64px));
    padding-bottom: 28px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: clamp(40px, 7vw, 64px);
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-title {
    max-width: none;
    font-size: clamp(3.35rem, 9vw, 5.4rem);
  }

  .hero-line {
    white-space: normal;
  }

  html[lang='zh-Hant'] .hero-title {
    font-size: clamp(2.7rem, 8.2vw, 4.8rem);
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .instrument {
    max-width: 500px;
  }

  .hero-rail {
    margin-top: 20px;
  }

  .intro-grid,
  .story-grid,
  .details-grid,
  .guide-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .intro-side {
    padding-top: 0;
  }

  .facts {
    margin-top: 52px;
  }

  .focus-row {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 18px;
  }

  .focus-tags {
    grid-column: 2;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 0;
  }


  .principles,
  .next-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .principle,
  .next-step {
    padding-block: 22px;
  }

  .principle-index,
  .next-index {
    margin-bottom: 22px;
  }

  .world-band {
    grid-template-columns: 1fr;
  }

  .world-quote {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .process-grid::before {
    display: none;
  }

  .process-step {
    padding-top: 22px;
    border-top: 1px solid var(--line);
  }

  .process-step::before {
    top: -5px;
  }

  .system-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .system-step {
    border-bottom: 1px solid var(--line);
    min-height: 180px;
  }

  .system-step:nth-child(2) {
    border-right: 0;
  }

  .system-step:nth-child(3) {
    padding-left: 0;
  }

  .system-step:nth-child(3),
  .system-step:nth-child(4) {
    border-bottom: 0;
  }

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

  .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .page-title {
    max-width: 13ch;
  }

  .page-hero-side .lede {
    max-width: 52ch;
  }

  .cta-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .cta-actions {
    align-items: flex-start;
  }

  .cta-rings {
    right: -35%;
    width: 90vw;
    opacity: 0.6;
  }




  .legal-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .legal-toc {
    position: static;
    padding: 20px;
    border: 1px solid var(--line);
  }

  .legal-toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
  }

  .legal-meta {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .not-found-code {
    opacity: 0.7;
  }
}

@media (max-width: 600px) {
  :root {
    --header-h: 66px;
    --gutter: 20px;
  }

  .header-inner {
    gap: 16px;
  }

  .brand-name {
    font-size: 24px;
  }

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

  .header-actions {
    gap: 12px;
  }

  .lang-switch {
    padding: 3px 5px;
  }

  .lang-current,
  .lang-alt {
    min-width: 18px;
    height: 19px;
  }

  .menu-toggle-label {
    display: none;
  }

  .hero-title {
    font-size: clamp(3rem, 12vw, 4.4rem);
    line-height: 0.98;
  }

  html[lang='zh-Hant'] .hero-title {
    font-size: clamp(2.35rem, 10.4vw, 3.5rem);
  }

  .hero-lede {
    margin-top: 24px;
    font-size: 0.98rem;
    line-height: 1.8;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn {
    min-height: 47px;
    padding: 0 18px;
    font-size: 12.5px;
  }

  .hero-visual {
    margin-top: 4px;
  }

  .instrument {
    max-width: 100%;
  }

  .hero-rail {
    gap: 16px;
  }

  .rail-items {
    gap: 18px;
  }

  .rail-scroll {
    display: none;
  }

  .rail-line {
    display: none;
  }

  .rail-item {
    font-size: 11.5px;
  }

  .section {
    padding-block: clamp(58px, 14vw, 82px);
  }

  .h2 {
    font-size: clamp(2.2rem, 9.5vw, 3.2rem);
  }

  html[lang='zh-Hant'] .h2 {
    font-size: clamp(1.8rem, 7.6vw, 2.5rem);
  }

  .facts {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .fact {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line-soft);
  }

  .fact-value {
    font-size: 1.4rem;
  }

  .fact-label {
    text-align: right;
  }

  .focus-row {
    grid-template-columns: 28px minmax(0, 1fr);
    padding-block: 24px;
  }

  .focus-row:hover {
    padding-left: 0;
  }

  .focus-headline {
    font-size: 1.55rem;
  }

  .focus-description {
    font-size: 13.5px;
  }


  .focus-tags {
    font-size: 8px;
  }

  .pipeline-panel {
    padding: 22px;
  }

  .terminal {
    margin-inline: -8px;
  }

  .terminal-body {
    font-size: 10.5px;
    line-height: 2;
  }

  .terminal-caption {
    font-size: 7.5px;
  }

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

  .cap {
    min-height: 0;
  }

  .cap-index {
    margin-bottom: 28px;
  }

  .world-figure {
    min-height: 300px;
  }

  .world-quote {
    padding: 30px 20px 36px;
  }

  .world-quote blockquote {
    font-size: 1.7rem;
  }

  html[lang='zh-Hant'] .world-quote blockquote {
    font-size: 1.4rem;
  }

  .quote-mark {
    font-size: 6rem;
    top: 10px;
    right: 18px;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .process-step {
    padding-block: 20px;
  }

  .fit-copy,
  .fit-cta {
    padding: 24px;
  }

  .system-panel {
    padding: 22px;
  }

  .system-steps {
    grid-template-columns: 1fr;
  }

  .system-step {
    min-height: 0;
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .system-step:nth-child(3),
  .system-step:nth-child(4) {
    border-bottom: 1px solid var(--line);
  }

  .system-step:last-child {
    border-bottom: 0;
  }

  .system-label {
    margin-top: 22px;
  }

  .page-hero {
    padding-top: calc(var(--header-h) + 54px);
  }

  .page-title {
    font-size: clamp(2.85rem, 12vw, 4.1rem);
  }

  html[lang='zh-Hant'] .page-title {
    font-size: clamp(2.15rem, 8.8vw, 3rem);
  }

  .contact-email-address {
    font-size: clamp(1.32rem, 6.6vw, 2rem);
    letter-spacing: -0.03em;
    padding-bottom: 18px;
  }

  .contact-email-address .icon {
    width: 20px;
    height: 20px;
  }

  .guide-list li {
    font-size: 14px;
  }

  .details-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 20px;
  }

  .details-row--address dd {
    font-size: 11px;
  }

  .legal-title {
    font-size: clamp(2.6rem, 12vw, 3.6rem);
  }

  html[lang='zh-Hant'] .legal-title {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

  .legal-toc ol {
    grid-template-columns: 1fr;
  }

  .legal-section p,
  .legal-section li {
    font-size: 14.5px;
  }

  html[lang='zh-Hant'] .legal-section p,
  html[lang='zh-Hant'] .legal-section li {
    font-size: 14px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-meta {
    width: 100%;
    justify-content: space-between;
  }

  .footer-cols {
    gap: 24px;
  }

  .br-mobile {
    display: inline;
  }

  .not-found-code {
    right: -18%;
    font-size: 60vw;
    opacity: 0.5;
  }

  .cta-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .not-found-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .not-found-lang {
    margin-left: 0;
  }
}

@media (max-width: 380px) {
  .lang-switch {
    display: none;
  }

  .hero-title {
    font-size: clamp(2.75rem, 12.6vw, 3.4rem);
  }

  html[lang='zh-Hant'] .hero-title {
    font-size: clamp(2.05rem, 9.8vw, 2.6rem);
  }
}

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

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

  .ring-rotate-slow,
  .ring-rotate-rev,
  .ring-rotate-fast,
  .core-disc,
  .log-cursor {
    animation: none !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .legal-toc,
  .skip-link,
  .legal-contact {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .legal-hero,
  .legal-layout {
    padding: 0;
  }

  .legal-title,
  .legal-section h2 {
    color: #111;
  }

  .legal-section p,
  .legal-section li,
  .legal-intro {
    color: #222;
  }
}
