/* HUADAN official site — ink world.
   Default ground is brand ink #2A1714, not office paper.
   Light is a second theme. Red capsules, story orb, official wordmark remain. */

:root {
  /* Token-aligned: brand.primary #E8331F, ink #2A1714. Default is the ink world. */
  color: #f5f5f7;
  --bg: #2a1714;
  --bg-lift: #351c18;
  --card: #3a221e;
  --text: #f5f5f7;
  --ink: #2a1714;
  --body: #f0e4df;
  --muted: #c4b0aa;
  --tertiary: #a8928c;
  --border: rgba(255, 243, 240, 0.12);
  --border-strong: rgba(255, 243, 240, 0.22);
  --accent: #e8331f;
  --accent-hover: #c92614;
  --accent-muted: rgba(232, 51, 31, 0.2);
  --blush: rgba(232, 51, 31, 0.16);
  --visual: transparent;
  --soft: #321c18;
  --hover: #432822;
  --frame: #1a0e0c;
  --skyline: #7a524c;
  --focus: var(--accent);
  --ease: ease;
  --dur: 180ms;
  --ease-enter: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-enter: 560ms;
  --field: #2a1714;
  color-scheme: dark;
  background: var(--bg);
  font-family: Inter, "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
}

/* Second theme: warm story paper, not office #fafafa / OS #F2F2F7.
   The first screen stays an ink stage so the opening still has weight. */
html.light {
  --bg: #ede4dc;
  --bg-lift: #f6efe9;
  --card: #f8f3ee;
  --text: #2a1714;
  --ink: #2a1714;
  --body: #2a1714;
  --muted: #6b534e;
  --tertiary: #8a706a;
  --border: #e2d4ce;
  --border-strong: #cbb8b1;
  --visual: transparent;
  --soft: #e8ddd6;
  --hover: #e3d5ce;
  --frame: #201412;
  --skyline: #8d6f68;
  --blush: rgba(232, 51, 31, 0.12);
  --accent-muted: rgba(232, 51, 31, 0.14);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
  background:
    radial-gradient(70% 70% at 74% 46%, rgba(232, 51, 31, 0.3), transparent 58%),
    radial-gradient(90% 70% at 12% 100%, rgba(255, 243, 240, 0.08), transparent 50%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

html.light body {
  /* First screen stays the ink stage so dust and the orb remain in space.
     Mid-page sections paint their own full-bleed paper band. */
  background:
    radial-gradient(70% 70% at 74% 46%, rgba(232, 51, 31, 0.3), transparent 58%),
    radial-gradient(90% 70% at 12% 100%, rgba(255, 243, 240, 0.08), transparent 50%),
    #2a1714;
}

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

button {
  font: inherit;
  cursor: pointer;
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

/* Focus rings: visible, but the logo link uses a tighter offset so the ring
   does not paint over the wordmark. */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.logo-link:focus-visible {
  outline-offset: 2px;
  border-radius: 8px;
}

.logo-link:focus:not(:focus-visible) {
  outline: none;
}

a:hover:not(.button, .logo-link, .email, .workbench-link),
.legal-links button:hover {
  color: var(--accent);
}

a,
.legal-links button {
  transition: color var(--dur) var(--ease);
}

.container {
  max-width: 1240px;
  margin: auto;
  padding-left: 36px;
  padding-right: 36px;
}

header {
  border-bottom: 1px solid rgba(255, 243, 240, 0.12);
  background: #2a1714;
  color: #f5f5f7;
  position: sticky;
  top: 0;
  z-index: 40;
  isolation: isolate;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.nav {
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  height: 92px;
  display: flex;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: 8px;
}

.logo {
  object-fit: contain;
  width: 166px;
  height: 61px;
  margin-left: -15px;
  display: block;
}

.nav-links,
.nav-actions {
  align-items: center;
  gap: 28px;
  display: flex;
}

.nav-links {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 243, 240, 0.78);
}

.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color var(--dur) var(--ease);
}

.nav-links a:hover {
  color: #fff3f0;
}

.nav-actions {
  gap: 12px;
}

.language,
.theme,
.menu-toggle {
  color: #f5f5f7;
  background: transparent;
  border: 0;
  height: 44px;
  min-width: 44px;
  padding: 0 6px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  position: relative;
  --mx: 50%;
  --my: 50%;
  transition: background 280ms var(--ease), color 280ms var(--ease), transform 420ms cubic-bezier(0.22, 1.4, 0.36, 1);
}

.language:hover,
.theme:hover,
.menu-toggle:hover,
.language.is-lit,
.theme.is-lit,
.menu-toggle.is-lit {
  background: rgba(255, 243, 240, 0.08);
}

.language:active,
.theme:active,
.menu-toggle:active,
.language.is-pressed,
.theme.is-pressed,
.menu-toggle.is-pressed {
  background: rgba(255, 243, 240, 0.14);
  transform: scale(0.96);
  transition-duration: 80ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0.2, 1);
}

.language {
  min-width: 72px;
  padding: 0 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.lang-track,
.theme-track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 64px;
  height: 28px;
  border-radius: 999px;
  background: rgba(16, 8, 7, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 243, 240, 0.12);
}

.lang-opt {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  color: rgba(255, 243, 240, 0.7);
  line-height: 28px;
  transition: color 280ms var(--ease);
}

html[lang="zh"] .lang-opt-zh,
html[lang="en"] .lang-opt-en {
  color: #fff3f0;
}

.lang-thumb,
.theme-thumb {
  position: absolute;
  z-index: 0;
  top: 2px;
  left: 2px;
  width: 30px;
  height: 24px;
  border-radius: 999px;
  background: #e8331f;
  box-shadow: 0 4px 12px rgba(232, 51, 31, 0.35);
  transition: transform 420ms cubic-bezier(0.22, 1.4, 0.36, 1);
}

html[lang="en"] .lang-thumb {
  transform: translateX(30px);
}

.theme-track {
  width: 48px;
  height: 28px;
  grid-template-columns: 1fr;
}

.theme-thumb {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  left: 2px;
}

html.light .theme-thumb {
  transform: translateX(20px);
}

.theme svg,
.menu-toggle svg {
  fill: none;
  stroke: #fff3f0;
  stroke-width: 1.6px;
  width: 14px;
  height: 14px;
}

.menu-toggle {
  display: none;
}

.button {
  --mx: 50%;
  --my: 50%;
  border: 1px solid transparent;
  border-radius: 9px;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 550;
  letter-spacing: 0.02em;
  transition:
    background 280ms var(--ease),
    border-color 280ms var(--ease),
    color 280ms var(--ease),
    transform 420ms cubic-bezier(0.22, 1.4, 0.36, 1),
    box-shadow 280ms var(--ease);
  display: inline-flex;
  line-height: 1.2;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transform: translateZ(0);
}

.button > * {
  position: relative;
  z-index: 1;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    180px 120px at var(--mx) var(--my),
    rgba(255, 243, 240, 0.7),
    rgba(255, 196, 170, 0.28) 38%,
    transparent 66%
  );
  opacity: 0;
  transition: opacity 280ms var(--ease);
}

.button.is-lit::after,
.button:hover::after,
.button:focus-visible::after {
  opacity: 1;
}

.button:active,
.button.is-pressed {
  transform: scale(0.96);
  transition-duration: 80ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0.2, 1);
}

.button .arrow {
  flex-shrink: 0;
}

.primary {
  background: var(--accent);
  color: #fff;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.hero-actions .primary,
#join .primary {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0.04em;
  padding: 13px 22px;
  min-height: 50px;
}

.primary:hover,
.primary.is-lit {
  background: var(--accent-hover);
  box-shadow:
    inset 0 1px 0 rgba(255, 243, 240, 0.45),
    0 12px 32px rgba(232, 51, 31, 0.42);
}

.primary:active,
.primary.is-pressed {
  background: #c92614; /* brand press, locked */
  box-shadow: 0 2px 10px rgba(232, 51, 31, 0.2);
}

.secondary {
  background: var(--card);
  border-color: var(--border-strong);
  color: var(--text);
}

.secondary::after {
  background: radial-gradient(
    140px 90px at var(--mx) var(--my),
    rgba(232, 51, 31, 0.28),
    transparent 62%
  );
}

.secondary:hover,
.secondary.is-lit {
  border-color: color-mix(in srgb, var(--border-strong) 40%, var(--text) 30%);
  background: var(--hover);
}

.secondary:active,
.secondary.is-pressed {
  background: var(--soft);
}

.nav-drawer {
  display: none;
}

/* ---------- Hero ---------- */

.hero {
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: auto;
  align-items: center;
  gap: 28px 48px;
  /* Fill the first desktop viewport so About starts below the fold. */
  min-height: calc(100vh - 93px);
  padding-top: 32px;
  padding-bottom: 32px;
  display: grid;
}

.hero-copy {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  margin-top: 0;
  margin-bottom: 0;
}

/* Hero intro paragraph removed (t442u); note stays on desktop. */
.hero-desc,
.hero-desc-long,
.hero-desc-short {
  display: none;
}

/* Kickers and the principles strip were removed (t426u / t438u). */
.hero .kicker,
.principles {
  display: none;
}

/* Light second theme: the opening stays an ink stage (full-bleed). */
html.light header {
  background: #2a1714;
  color: #f5f5f7;
}

html.light .hero {
  color: #fff3f0;
  position: relative;
}

html.light .hero::before {
  display: none;
}

/* Light mid-page: full-bleed warm paper, so scrolling leaves the ink stage without ink gutters. */
html.light #about::before,
html.light .vision::before,
html.light #capabilities::before,
html.light #culture::before,
html.light .culture::before,
html.light .offices::before,
html.light #contact::before,
html.light #join::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--bg);
  z-index: -1;
  pointer-events: none;
}

html.light .hero h1,
html.light .hero .hero-line-2 {
  color: #fff3f0;
}

html.light .hero .hero-desc {
  color: #f0e4df;
}

html.light .hero .kicker,
html.light .hero .hero-note,
html.light .hero .hero-note-text {
  color: #c4b0aa;
}

html.light .hero .secondary {
  background: #3a221e;
  border-color: rgba(255, 243, 240, 0.22);
  color: #fff3f0;
}

html.light .hero .principles {
  color: #c4b0aa;
  border-top-color: rgba(255, 243, 240, 0.12);
  border-bottom-color: rgba(255, 243, 240, 0.12);
}

.eyebrow {
  letter-spacing: 0.08em;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  display: flex;
}

.dot {
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  display: inline-block;
}

h1 {
  letter-spacing: -0.025em;
  margin: 12px 0 12px;
  font-size: 40px;
  font-weight: 650;
  line-height: 1.2;
  color: #fff3f0;
}

h1 .hero-line-1,
h1 .hero-line-2 {
  display: block;
  color: #fff3f0;
}

h1 .hero-line-2 {
  margin-top: 0.08em;
  font-weight: 600;
}

html[lang="zh"] h1 {
  font-family: "Noto Sans SC", Inter, sans-serif;
  font-weight: 650;
}

html[lang="en"] h1 {
  letter-spacing: -0.02em;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 650;
  white-space: normal;
}

html[lang="en"] h1 .hero-line-1,
html[lang="en"] h1 .hero-line-2 {
  white-space: pre-line;
}

html[lang="en"] h1 .hero-line-2 {
  margin-top: 0.3em;
  font-weight: 600;
}

.hero-desc {
  max-width: 34em;
  color: var(--body);
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}

.hero-desc-short {
  display: none;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  display: flex;
}

.hero-note {
  color: #d2c0b8;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 15px;
  display: flex;
}

.hero-note-rule {
  background: var(--muted);
  width: 22px;
  height: 1px;
  flex-shrink: 0;
}

.hero-note-text {
  min-width: 0;
  white-space: nowrap;
}

/* ---------- Story visual / orb ---------- */

.story-visual {
  --px: 0;
  --py: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  height: 400px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  grid-template-areas: "stage";
  align-items: stretch;
  min-width: 0;
}

/* Caption and pagination dots were removed (t440u). */
.story-dots,
.visual-bottom,
.visual-bottom[data-story-caption] {
  display: none;
}

.visual-glow {
  position: absolute;
  width: 58%;
  height: 58%;
  left: calc(44% + var(--px) * 10%);
  top: calc(40% + var(--py) * 10%);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(232, 51, 31, 0.32), rgba(255, 196, 170, 0.18) 42%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

.visual-top,
.visual-bottom {
  letter-spacing: 0.04em;
  color: #d2c0b8;
  z-index: 3;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  padding: 4px 8px;
  margin: 0;
}

.visual-top {
  display: none !important;
}

.visual-top span {
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0;
  color: #c4b0aa;
}

.visual-bottom {
  grid-area: caption;
  padding-bottom: 2px;
}

.orbit {
  border: 1px solid rgba(255, 243, 240, 0.08);
  border-radius: 50%;
  width: 430px;
  height: 430px;
  position: absolute;
  top: 35px;
  left: 20px;
  pointer-events: none;
  opacity: 0.7;
  -webkit-mask-image: linear-gradient(transparent 6%, #000 16%, #000 84%, transparent 94%);
  mask-image: linear-gradient(transparent 6%, #000 16%, #000 84%, transparent 94%);
}

.orbit-one {
  animation: orbit-spin 56s linear infinite;
}

.orbit-two {
  width: 570px;
  height: 570px;
  top: -35px;
  left: -50px;
  animation: orbit-spin 84s linear infinite reverse;
  opacity: 0.9;
}

/* A single tick so the orbit’s slow rotation is readable.
   Starting angle sits in the mid band, away from the captions. */
.orbit::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  top: 72%;
  left: 8%;
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--visual) 70%, transparent),
    0 0 10px rgba(232, 51, 31, 0.7);
}

.orbit-two::before {
  width: 4px;
  height: 4px;
  opacity: 0.7;
  top: 22%;
  left: auto;
  right: 10%;
}

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

.story-visual {
  --poster-w: 200px;
  --poster-h: 328px;
  --ring-radius: 190px;
  --ring-rot: 0deg;
}

.story-frame {
  border-radius: 13px;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #1a0e0c;
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 243, 240, 0.12);
  transform: none;
}

.story-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  background: #2a1714;
  opacity: calc((1 - var(--face, 1)) * 0.48);
  box-shadow: inset 0 0 28px rgba(26, 14, 12, 0.2);
}

.frame-top {
  letter-spacing: 0.1em;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 9px;
  font-weight: 500;
  display: flex;
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.86);
}

.frame-top span {
  color: #e8331f;
}

.orb {
  background:
    radial-gradient(circle at 26% 20%, rgba(255, 255, 255, 0.55) 0 3%, rgba(255, 230, 220, 0.15) 12%, transparent 22%),
    radial-gradient(circle at 30% 26%, #ffad94, #e8331f 33%, #9a2118 56%, #282025 77%);
  border-radius: 50%;
  width: 245px;
  height: 245px;
  position: absolute;
  top: 54px;
  left: 42px;
  box-shadow:
    -12px 18px 45px rgba(0, 0, 0, 0.28),
    inset -10px -16px 28px rgba(60, 8, 6, 0.35),
    inset 8px 6px 14px rgba(255, 200, 180, 0.18),
    0 0 80px 28px rgba(232, 51, 31, 0.4),
    0 0 160px 56px rgba(232, 51, 31, 0.2);
  animation: orb-breathe 6.5s ease-in-out infinite;
}

.orb::after {
  content: "";
  position: absolute;
  width: 42%;
  height: 28%;
  left: calc(18% + var(--px) * 10%);
  top: calc(12% + var(--py) * 8%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent 70%);
  filter: blur(2px);
  pointer-events: none;
}

@keyframes orb-breathe {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      -12px 18px 45px rgba(0, 0, 0, 0.28),
      inset -10px -16px 28px rgba(60, 8, 6, 0.35),
      inset 8px 6px 14px rgba(255, 200, 180, 0.18),
      0 0 72px 24px rgba(232, 51, 31, 0.34),
      0 0 150px 50px rgba(232, 51, 31, 0.16);
  }
  42% {
    transform: scale(1.045);
    box-shadow:
      -10px 16px 50px rgba(0, 0, 0, 0.24),
      inset -10px -16px 28px rgba(60, 8, 6, 0.28),
      inset 10px 8px 18px rgba(255, 210, 190, 0.3),
      0 0 100px 36px rgba(232, 51, 31, 0.5),
      0 0 200px 70px rgba(232, 51, 31, 0.26);
  }
  58% {
    transform: scale(1.015);
  }
  72% {
    transform: scale(1.03);
  }
}

.frame-copy {
  background: linear-gradient(transparent, #1a0e0cf0 55%);
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
  padding: 60px 20px 24px;
  display: flex;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
}

.frame-copy h2 {
  letter-spacing: -0.035em;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.28;
  margin: 0;
  color: #fff;
}

.frame-copy > span {
  font-size: 20px;
  line-height: 1;
  padding-bottom: 4px;
  color: rgba(255, 255, 255, 0.88);
}

/* ---------- Principles ---------- */

.principles {
  grid-column: 1 / -1;
  border-top: 0;
  border-bottom: 0;
  color: #d2c0b8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 8px 0 4px;
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.6;
  align-self: end;
}

.principles-sep {
  margin: 0 18px;
  opacity: 0.5;
  font-weight: 400;
}

/* ---------- Sections ---------- */

.section {
  padding-top: 52px;
  padding-bottom: 40px;
}

#about,
#vision,
#capabilities,
#culture,
#offices,
#join {
  scroll-margin-top: 104px;
}

.kicker,
.section-kicker {
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: #f7856f;
  margin: 0 0 8px;
}

.join .section-kicker,
.culture .section-kicker,
#culture .section-kicker,
#capabilities .section-kicker,
.capabilities-intro .section-kicker,
#about .section-kicker,
.about .section-kicker,
#vision .section-kicker,
.vision .section-kicker,
#offices .section-kicker,
.offices .section-kicker {
  display: none;
}

html[lang="en"] .kicker,
html[lang="en"] .section-kicker,
html[lang="en"] .office-type,
html[lang="en"] .vision-col h3 {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h2 {
  letter-spacing: -0.025em;
  margin: 0;
  font-size: 32px;
  font-weight: 650;
  line-height: 1.25;
}

#about {
  padding-top: 40px;
  padding-bottom: 32px;
}

#about h2.about-headline,
.about-headline {
  margin: 0;
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--text);
}

.about-copy .about-close {
  margin: 20px 0 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.culture h2 {
  font-size: 32px;
}

.contact h2,
.join h2 {
  font-size: 30px;
}

h3 {
  letter-spacing: -0.02em;
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.35;
}

.about {
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.08fr);
  gap: 40px 64px;
  display: grid;
  align-items: start;
}

.about-head {
  margin: 0;
  padding-top: 2px;
}

.about-head .lead,
.about-copy .lead {
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
  margin: 20px 0 0;
}

.about-copy p,
.section-desc {
  color: var(--body);
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.75;
}

.about-copy .lead {
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 16px;
}

.cities {
  display: none;
}

.vision {
  padding-top: 16px;
  padding-bottom: 24px;
}

.section-desc {
  max-width: 36em;
  margin-top: 10px;
  margin-bottom: 0;
}

/* Vision — two voices across a hairline, not cloned cards. */
.vision-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
  margin-top: 16px;
  border-top: 0;
}

.vision-col {
  padding: 8px 0 8px 0;
  position: relative;
  overflow: hidden;
}

.vision-col + .vision-col {
  padding-left: 64px;
  padding-right: 0;
  border-left: 1px solid rgba(255, 243, 240, 0.14);
}

.vision-col h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #f7856f;
}

html[lang="en"] .vision-col h3 {
  text-transform: uppercase;
}

.vision-col p {
  max-width: 36em;
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--body);
}

.vision-col-sweep::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 32%,
    rgba(255, 243, 240, 0.5) 46%,
    rgba(232, 51, 31, 0.28) 50%,
    rgba(255, 243, 240, 0.35) 54%,
    transparent 68%,
    transparent 100%
  );
  background-size: 260% 100%;
  background-position: 130% 0;
  opacity: 0;
  z-index: 1;
}

html.light .vision-col-sweep::after {
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 32%,
    rgba(255, 243, 240, 0.92) 46%,
    rgba(232, 51, 31, 0.1) 50%,
    rgba(255, 243, 240, 0.55) 54%,
    transparent 68%,
    transparent 100%
  );
}

.card-number {
  letter-spacing: 0.12em;
  color: #f7856f;
  font-size: 13px;
  font-weight: 600;
}

/* Capabilities — typographic 2-up, not a left-rail index or 4 identical cards. */
#capabilities {
  padding-top: 40px;
  padding-bottom: 40px;
}

.capability-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 0;
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 0;
  row-gap: 0;
}

.capability-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  column-gap: 20px;
  row-gap: 6px;
  padding: 22px 0;
  border-bottom: 0;
  box-shadow: none;
  align-items: start;
  min-height: 0;
  justify-content: start;
}

.capability-mark {
  display: block;
  width: 64px;
  height: auto;
  object-fit: contain;
  object-position: center top;
  pointer-events: none;
}

.capability-row + .capability-row {
  box-shadow: inset 0 1px 0 rgba(255, 243, 240, 0.14);
}

.capability-row:nth-child(even) {
  padding-left: 0;
  padding-right: 0;
}

.capability-row:nth-child(n + 3),
.capability-row:nth-child(n + 3):nth-child(even) {
  box-shadow: inset 0 1px 0 rgba(255, 243, 240, 0.14);
}

.capability-name {
  margin: 0 0 4px;
  padding-top: 0;
  color: #f7856f; /* brand 300 — small type on ink; primary #E8331F stays on buttons */
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

.capability-verb {
  grid-column: 1;
  grid-row: 1 / span 3;
  min-height: 0;
  align-items: start;
  padding-top: 4px;
}

.capability-copy {
  grid-column: 2;
}

html[lang="en"] .capability-name {
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.capability-copy h3 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 650;
}

.capability-copy p {
  margin: 0;
  max-width: 36em;
  font-size: 15px;
  line-height: 1.8;
  color: var(--body);
}

.workbench {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.workbench-link {
  --mx: 40%;
  --my: 50%;
  color: var(--text);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  border-radius: 9px;
  position: relative;
  transition: color 280ms var(--ease), transform 420ms cubic-bezier(0.22, 1.4, 0.36, 1);
}

.workbench-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #f7856f var(--mx, 40%), transparent 100%);
  opacity: 0;
  transform: scaleX(0.28);
  transform-origin: var(--mx) 50%;
  transition: opacity 280ms var(--ease), transform 420ms cubic-bezier(0.22, 1.4, 0.36, 1);
  pointer-events: none;
}

.workbench-link:hover,
.workbench-link:active,
.workbench-link.is-lit {
  color: var(--accent);
}

.workbench-link:hover::after,
.workbench-link.is-lit::after,
.workbench-link:focus-visible::after,
.workbench-link.is-pressed::after {
  opacity: 1;
  transform: scaleX(1);
}

.workbench-link:active,
.workbench-link.is-pressed {
  transform: scale(0.98);
  transition-duration: 80ms;
}

html.light .workbench-link::after {
  background: linear-gradient(90deg, transparent 0%, #a11d0f var(--mx, 40%), transparent 100%);
}

.workbench-note {
  color: var(--muted);
}

/* ---------- Culture ---------- */

.culture {
  background: transparent;
  border-top: 0;
  border-bottom: 0;
}

.culture > .container.section {
  padding-top: 36px;
  padding-bottom: 32px;
}

.culture-grid,
.credit-sheet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 0;
  row-gap: 0;
  margin-top: 28px;
  max-width: none;
}

.culture-grid article,
.credit-sheet .credit {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 8px;
  align-items: baseline;
  padding: 28px 0 26px;
  border-top: 0;
  box-shadow: inset 0 1px 0 rgba(255, 243, 240, 0.16);
}

.culture-grid article:nth-child(odd),
.credit-sheet .credit:nth-child(odd) {
  padding-right: 48px;
  box-shadow:
    inset 0 1px 0 rgba(255, 243, 240, 0.16),
    inset -1px 0 0 rgba(255, 243, 240, 0.16);
}

.culture-grid article:nth-child(even),
.credit-sheet .credit:nth-child(even) {
  padding-left: 48px;
}

.culture-grid .credit:nth-child(3) {
  box-shadow:
    inset 0 1px 0 rgba(255, 243, 240, 0.16),
    inset -1px 0 0 rgba(255, 243, 240, 0.16),
    0 1px 0 rgba(255, 243, 240, 0.16);
}

.culture-grid .credit:nth-child(4) {
  box-shadow:
    inset 0 1px 0 rgba(255, 243, 240, 0.16),
    0 1px 0 rgba(255, 243, 240, 0.16);
}

.credit-sheet .card-number,
.culture-grid .card-number {
  display: block;
  grid-column: 1;
  grid-row: 1;
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
  color: #f7856f;
  margin: 0;
  line-height: 1;
  transform: translateY(-0.05em);
  text-shadow: 0 0 14px rgba(232, 51, 31, 0.32);
}

.culture-grid h3,
.culture-grid .credit-word {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.3;
  color: #fff3f0;
}

html[lang="en"] .culture-grid h3,
html[lang="en"] .culture-grid .credit-word {
  font-size: 20px;
  letter-spacing: 0.01em;
  text-transform: none;
  font-weight: 500;
  line-height: 1.3;
}

.credit-word {
  overflow: hidden;
}

.credit-inner {
  display: block;
}

.culture-grid p {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  justify-self: start;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: #d2c0b8;
  max-width: 22em;
}

/* ---------- Offices — one plate, two columns ---------- */

.office-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 72px;
  margin-top: 32px;
  border-top: 0;
  padding-top: 0;
}

.office-col,
.office-card {
  border: 0;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.city-art,
.city-night {
  background: transparent;
  border-bottom: 0;
  height: 176px;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  overflow: visible;
}

.city-art svg,
.city-night svg {
  width: 100%;
  height: 180px;
  display: block;
}

.city-wash {
  fill: transparent;
}

.city-horizon {
  fill: none;
  stroke: rgba(255, 243, 240, 0.16);
  stroke-width: 1;
}

.office-copy {
  padding: 28px 0 8px;
}

html.light .capability-name,
html.light .office-type {
  color: #a11d0f; /* brand 700 — small type on warm paper */
}

.office-type {
  color: #f7856f;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

html[lang="en"] .office-type {
  text-transform: uppercase;
}

.office-copy h3 {
  margin: 8px 0 12px;
  font-size: 24px;
}

.office-copy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  max-width: 32em;
}

/* ---------- Contact / join / footer ---------- */

.contact {
  border-top: 0;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  display: grid;
  padding-bottom: 48px;
}

.contact-detail {
  align-self: center;
  min-width: 0;
}

.contact-detail .section-kicker {
  color: var(--muted);
}

.email {
  letter-spacing: -0.04em;
  align-items: center;
  gap: 28px;
  margin: 16px 0 8px;
  font-size: 36px;
  font-weight: 550;
  display: inline-flex;
  min-height: 44px;
  color: var(--text);
  transition: color var(--dur) var(--ease);
}

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

.email svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.contact-info p {
  overflow-wrap: anywhere;
  align-items: baseline;
  gap: 14px;
  margin: 12px 0;
  display: flex;
  color: var(--body);
  font-size: 13px;
}

.contact-info p > span {
  flex-shrink: 0;
  color: var(--muted);
  min-width: 3em;
}

.contact-detail > p:last-child {
  color: var(--muted);
  font-size: 13px;
  margin: 20px 0 0;
}

.closer-field {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #f5f5f7;
  /* Radials only — no solid plate — so the page sky continues through join into the footer. */
  background:
    radial-gradient(120% 85% at 14% 100%, rgba(232, 51, 31, 0.2), transparent 54%),
    radial-gradient(90% 70% at 70% 90%, rgba(255, 243, 240, 0.1), transparent 52%);
}

footer {
  border-top: 0;
}

.site-footer {
  position: relative;
  isolation: auto;
  overflow: visible;
  border-top: 0;
  color: #f5f5f7;
  background: transparent;
  /* Height follows content so legal/ICP are not clipped and the closer is not a tall empty field. */
  min-height: 0;
  padding: 8px 0 28px;
}

.footer-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

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

.site-footer .footer-contact,
.site-footer .footer-bottom,
.site-footer .legal-links button,
.site-footer .legal-links a {
  color: rgba(245, 245, 247, 0.9);
}

.site-footer .filings,
.site-footer .filings a {
  color: #d2c0b8;
}

.site-footer .footer-bottom {
  border-top-color: rgba(255, 243, 240, 0.12);
}

.site-footer .footer-contact a:hover,
.site-footer .legal-links button:hover,
.site-footer .legal-links a:hover,
.site-footer .filings a:hover {
  color: #fff3f0;
}

.site-footer .footer-contact {
  font-size: 13px;
}

.site-footer .footer-bottom {
  font-size: 13px;
}

.site-footer .filings {
  font-size: 13px;
}

.footer-top,
.footer-bottom {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.footer-top {
  justify-content: flex-start;
  padding: 12px 0 8px;
}

.footer-top .logo-link {
  display: inline-flex;
  align-items: center;
}

.footer-top .logo {
  width: 142px;
  height: 52px;
}

.footer-contact {
  color: #d2c0b8;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.8;
}

.footer-contact p {
  margin: 8px 0 20px;
}

.footer-contact a {
  color: inherit;
}

.join {
  position: relative;
  z-index: 1;
  border-top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 56px;
  row-gap: 0;
  padding-top: 40px;
  padding-bottom: 28px;
}

.join > div {
  min-width: 0;
  max-width: 34em;
}

.join > .button {
  flex-shrink: 0;
  justify-self: end;
}

.join .section-desc {
  margin-bottom: 0;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  color: #d2c0b8;
  gap: 20px;
  padding: 20px 0 14px;
  font-size: 13px;
}

.legal-links {
  flex-wrap: wrap;
  gap: 8px 24px;
  display: flex;
  align-items: center;
}

.legal-links button,
.legal-links a {
  color: inherit;
  font-size: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.filings {
  color: #d2c0b8;
  flex-wrap: wrap;
  gap: 22px;
  padding-bottom: 32px;
  font-size: 13px;
  letter-spacing: 0.02em;
  display: flex;
}

.filings a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ---------- Legal modal ---------- */

.modal-backdrop {
  z-index: 50;
  background: rgba(0, 0, 0, 0.5);
  place-items: center;
  padding: 24px;
  display: none;
  position: fixed;
  inset: 0;
}

.modal-backdrop.is-open {
  display: grid;
}

.legal-modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: min(100%, 550px);
  max-height: 85dvh;
  padding: 38px;
  position: relative;
  overflow: auto;
}

.legal-modal h2 {
  margin-top: 16px;
}

.legal-modal p {
  color: var(--body);
  margin: 18px 0 24px;
  font-size: 14px;
  line-height: 1.85;
}

.close {
  color: var(--text);
  background: transparent;
  border: 0;
  font-size: 26px;
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  line-height: 1;
  transition: background var(--dur) var(--ease);
}

.close:hover {
  background: var(--hover);
}

/* Contractions must not wrap or pick up CJK punctuation metrics. */
.nowrap {
  white-space: nowrap;
  font-family: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.nowrap-zh {
  white-space: nowrap;
}

/* ---------- Breakpoints ---------- */

@media (max-width: 1100px) {
  .hero {
    gap: 30px;
  }

  h1 {
    font-size: 36px;
  }

  html[lang="en"] h1 {
    font-size: 32px;
  }

  .about {
    gap: 40px;
  }

  h2,
  .culture h2 {
    font-size: 28px;
  }

  .contact h2,
  .join h2 {
    font-size: 28px;
  }

  .capability-row {
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 14px;
    padding: 20px 0;
  }

  .capability-mark {
    width: 56px;
  }

  .capability-row:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
  }

  .vision-col {
    padding-right: 28px;
  }

  .vision-col + .vision-col {
    padding-left: 28px;
  }

  .culture-grid article,
  .credit-sheet .credit {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    column-gap: 14px;
    padding-top: 24px;
    padding-bottom: 22px;
  }

  .culture-grid article:nth-child(odd),
  .credit-sheet .credit:nth-child(odd) {
    padding-right: 32px;
  }

  .culture-grid article:nth-child(even),
  .credit-sheet .credit:nth-child(even) {
    padding-left: 32px;
  }

  .culture-grid h3,
  .culture-grid .credit-word {
    font-size: 20px;
  }

  html[lang="en"] .culture-grid h3,
  html[lang="en"] .culture-grid .credit-word {
    font-size: 18px;
  }

  .contact {
    gap: 32px;
  }
}

@media (max-width: 700px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .nav {
    gap: 8px;
    height: 76px;
  }

  .logo {
    width: 122px;
    height: 48px;
    margin-left: -12px;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    gap: 4px;
  }

  .menu-toggle {
    display: grid;
  }

  header.is-open {
    border-bottom-color: var(--border);
  }

  .nav-drawer {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px 16px 20px;
    border-top: 1px solid var(--border);
    background: #2a1714;
    color: #f5f5f7;
  }

  header.is-open .nav-drawer {
    display: flex;
  }

  .nav-drawer a {
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
  }

  .hero {
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: center;
    gap: 28px;
    min-height: calc(100vh - 76px);
    min-height: calc(100svh - 76px);
    padding-top: 28px;
    padding-bottom: 32px;
    text-align: center;
  }

  .hero-copy {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .kicker,
  .section-kicker {
    letter-spacing: 0.08em;
    font-size: 13px;
  }

  .hero .kicker,
  .hero-note,
  .principles {
    display: none;
  }

  .hero-desc-long,
  .hero-desc-short,
  .hero-desc {
    display: none;
  }

  h1,
  .hero-copy h1 {
    letter-spacing: -0.02em;
    margin: 0;
    font-size: 22px;
    line-height: 1.28;
    text-align: center;
  }

  html[lang="zh"] h1 {
    font-weight: 650;
  }

  html[lang="en"] h1 {
    font-size: 20px;
    line-height: 1.28;
  }

  .hero-desc,
  .hero-desc-short {
    font-size: 15px;
    line-height: 1.55;
    max-width: 28em;
  }

  .hero-actions {
    width: auto;
    max-width: 280px;
    display: flex;
    justify-content: center;
    grid-template-columns: none;
    gap: 0;
    margin-top: 20px;
  }

  .hero-actions .secondary {
    display: none;
  }

  .hero-actions .button,
  .hero-actions .primary {
    width: auto;
    min-width: 200px;
    justify-content: center;
    box-sizing: border-box;
    gap: 8px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    min-height: 44px;
  }

  #join .primary {
    font-size: 14px;
    min-height: 44px;
    padding: 11px 18px;
    width: auto;
  }

  .hero-note {
    margin-top: 20px;
    font-size: 14px;
  }

  .hero-note-text {
    white-space: normal;
  }

  .story-visual {
    border-radius: 0;
    width: 100%;
    height: clamp(260px, calc(100svh - 330px), 380px);
    margin: 0 auto;
    overflow: hidden;
    justify-self: center;
  }

  .hero {
    overflow: hidden;
  }

  .orb {
    width: 160px;
    height: 160px;
    top: 32px;
    left: 42px;
  }

  .frame-copy {
    padding: 36px 14px 16px;
  }

  .frame-copy h2 {
    font-size: 20px;
  }

  .frame-top {
    padding: 17px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .visual-top,
  .visual-bottom {
    font-size: 13px;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    padding: 2px 4px;
  }

  .orbit-one {
    width: 340px;
    height: 340px;
    top: 30px;
    left: 10px;
  }

  .orbit-two {
    width: 460px;
    height: 460px;
    top: -30px;
    left: -40px;
  }

  .principles {
    padding: 12px 0 4px;
    font-size: 13px;
    letter-spacing: 0.08em;
  }

  .principles-sep {
    margin: 0 10px;
  }

  .section {
    padding-top: 36px;
    padding-bottom: 28px;
  }

  #about {
    padding-top: 32px;
    padding-bottom: 28px;
    text-align: center;
  }

  #capabilities {
    padding-top: 28px;
    padding-bottom: 32px;
    text-align: center;
  }

  #about h2.about-headline,
  .about-headline {
    font-size: 22px;
    line-height: 1.32;
  }

  .products-intro,
  .products-intro h2,
  .products-headline,
  .products-lead {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .products-lead {
    max-width: 22em;
  }

  h2,
  .culture h2,
  .contact h2,
  .join h2 {
    font-size: 22px;
    line-height: 1.28;
  }

  .about,
  .contact {
    grid-template-columns: 1fr;
    gap: 12px;
    justify-items: center;
  }

  .about-head .lead,
  .about-copy .lead {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.65;
    margin: 14px auto 0;
    max-width: 20em;
    color: #d2c0b8;
  }

  .about-copy .about-body,
  .about-body {
    display: block;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    max-width: 22em;
  }

  .about-copy .about-body:first-child {
    margin-top: 18px;
  }

  .about-body-2 {
    margin-top: 12px;
  }

  .about-close {
    margin-top: 18px;
    text-align: center;
    font-size: 15px;
  }

  .capability-row {
    min-height: 0;
    padding: 18px 0;
    justify-content: start;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 12px;
  }

  .capability-row:nth-child(even) {
    padding-left: 0;
  }

  .capability-mark {
    width: 56px;
  }

  .about-copy p,
  .section-desc,
  .vision-col p,
  .capability-copy p,
  .office-copy p {
    font-size: 15px;
  }

  .vision {
    padding-top: 12px;
    padding-bottom: 20px;
  }

  .vision-pair {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 32px;
  }

  .office-pair {
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
    margin-top: 28px;
  }

  .vision-col,
  .vision-col + .vision-col {
    padding: 28px 0;
    border-left: 0;
  }

  .vision-col + .vision-col {
    border-top: 1px solid var(--border);
  }

  .capability-list {
    margin-top: 24px;
    grid-template-columns: 1fr;
  }

  .capability-row,
  .capability-row:nth-child(even),
  .capability-row:nth-child(n + 3),
  .capability-row:nth-child(n + 3):nth-child(even) {
    display: grid;
    justify-content: start;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 12px;
    padding: 18px 0;
    box-shadow: none;
  }

  .capability-row:not(:last-child) {
    box-shadow: inset 0 -1px 0 rgba(255, 243, 240, 0.14);
  }

  .capability-name {
    grid-column: 2;
    padding-top: 0;
  }

  .capability-verb {
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: start;
  }

  .capability-copy {
    grid-column: 2;
  }

  .capability-name {
    padding-top: 0;
  }

  .capability-copy h3 {
    font-size: 20px;
  }

  .culture-grid,
  .credit-sheet {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 28px;
    max-width: none;
  }

  .culture-grid article,
  .credit-sheet .credit {
    grid-template-columns: 1.7rem minmax(0, 1fr);
    column-gap: 8px;
    row-gap: 4px;
    padding: 16px 0 14px;
  }

  .culture-grid article:nth-child(odd),
  .credit-sheet .credit:nth-child(odd) {
    padding-right: 10px;
    padding-left: 0;
    box-shadow:
      inset 0 1px 0 rgba(255, 243, 240, 0.16),
      inset -1px 0 0 rgba(255, 243, 240, 0.16);
  }

  .culture-grid article:nth-child(even),
  .credit-sheet .credit:nth-child(even) {
    padding-left: 10px;
    padding-right: 0;
    box-shadow: inset 0 1px 0 rgba(255, 243, 240, 0.16);
  }

  .culture-grid .credit:nth-child(3) {
    box-shadow:
      inset 0 1px 0 rgba(255, 243, 240, 0.16),
      inset -1px 0 0 rgba(255, 243, 240, 0.16),
      0 1px 0 rgba(255, 243, 240, 0.16);
  }

  .culture-grid .credit:nth-child(4) {
    box-shadow:
      inset 0 1px 0 rgba(255, 243, 240, 0.16),
      0 1px 0 rgba(255, 243, 240, 0.16);
  }

  .culture-grid .card-number,
  .credit-sheet .card-number {
    font-size: 11px;
    transform: none;
  }

  .culture-grid h3,
  .culture-grid .credit-word {
    font-size: 17px;
    letter-spacing: 0.02em;
    line-height: 1.3;
  }

  html[lang="en"] .culture-grid h3,
  html[lang="en"] .culture-grid .credit-word {
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.3;
    min-height: 2.6em;
  }

  .culture-grid p {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    text-align: left;
    font-size: 13px;
    letter-spacing: 0;
    line-height: 1.35;
  }

  .office-copy {
    padding: 10px 0 0;
  }

  .office-type {
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .office-copy h3 {
    margin: 4px 0 8px;
    font-size: 20px;
    letter-spacing: -0.03em;
  }

  .office-copy p {
    font-size: 13px;
    line-height: 1.45;
  }

  .city-art,
  .city-night {
    height: 108px;
  }

  .city-art svg,
  .city-night svg {
    height: 112px;
  }

  .contact .section-desc {
    margin-bottom: 0;
  }

  .contact-detail {
    padding-top: 4px;
  }

  .email {
    gap: 20px;
    font-size: 28px;
  }

  .join {
    grid-template-columns: 1fr;
    justify-items: start;
    align-items: start;
    gap: 24px;
    padding-top: 40px;
    padding-bottom: 32px;
  }

  .join > .button {
    justify-self: start;
  }

  .site-footer {
    min-height: 0;
    padding: 8px 0 24px;
  }

  .footer-contact {
    font-size: 13px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
  }

  .legal-links {
    gap: 8px 20px;
  }

  .filings {
    flex-direction: column;
    gap: 0;
    padding-top: 8px;
    font-size: 13px;
    letter-spacing: 0.02em;
  }

  .legal-modal {
    padding: 30px 24px;
  }

  .legal-modal h2 {
    font-size: 27px;
  }
}

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

  .button,
  .language,
  .theme,
  .menu-toggle,
  .lang-thumb,
  .theme-thumb,
  .workbench-link {
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease) !important;
    transform: none !important;
  }

  .button::after,
  .workbench-link::after {
    display: none !important;
  }

  .button:hover,
  .button:active,
  .button.is-pressed,
  .language:active,
  .theme:active {
    transform: none !important;
  }

  .orbit,
  .orbit-one,
  .orbit-two,
  .orb,
  .vision-col-sweep::after,
  .city-lights .win,
  html.js-motion .office-card.is-in .city-lights .win,
  html.js-motion .vision-col-sweep.is-in::after {
    animation: none !important;
  }

  .story-visual {
    --px: 0 !important;
    --py: 0 !important;
  }

  html.js-motion .reveal,
  html.js-motion .reveal.is-in,
  html.js-motion .wipe-line,
  html.js-motion .wipe-inner,
  html.js-motion .soft-in,
  html.js-motion .vision-enter,
  html.js-motion .scene-enter,
  html.js-motion .credit,
  html.js-motion .credit-inner,
  html.js-motion .credit .card-number,
  html.js-motion .credit p,
  html.js-motion .office-enter,
  html.js-motion .quiet-enter,
  html.js-motion .culture .credit-rule {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
    animation: none !important;
  }

  html.js-motion .city-lights .win,
  .city-lights .win {
    opacity: 0.6 !important;
  }
}

/* hidden attribute is the source of truth for drawers and dialogs */
[hidden] {
  display: none !important;
}

@media (max-width: 700px) {
  header.is-open .nav-drawer:not([hidden]) {
    display: flex !important;
  }
}

@media (min-width: 701px) {
  .nav-drawer {
    display: none !important;
  }
}

.modal-backdrop:not([hidden]) {
  display: grid !important;
}

/* Header and footer stay on ink in both themes, so always the light-on-ink wordmark. */
.logo-light { display: none; }
.logo-dark { display: block; }
.site-footer .logo-light { display: none; }
.site-footer .logo-dark { display: block; }
.logo-link { position: relative; }

/* Page ambient field sits behind paper; sections are transparent so motes show around type. */
.page-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

.hero,
.section,
.culture,
.site-footer,
.modal-backdrop {
  position: relative;
  z-index: 1;
}


/* Scroll verbs: JS opts in via html.js-motion so no-JS and first paint stay visible. */

/* About — credit-style wipe, line by line. */
html.js-motion .wipe-line {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

html.js-motion .wipe-inner {
  display: block;
  transform: translate3d(-108%, 0, 0);
}

html.js-motion #about:not(.is-in) .wipe-inner {
  transition: none;
}

html.js-motion #about.is-in .wipe-inner,
html.js-motion .wipe-line.is-in .wipe-inner {
  transform: none;
  transition: transform 920ms var(--ease-enter) var(--wipe-delay, 0ms);
}

html.js-motion .soft-in {
  opacity: 0;
  transition: opacity 720ms var(--ease-enter) var(--enter-delay, 0ms);
}

html.js-motion .soft-in.is-in {
  opacity: 1;
}

/* Vision — opposing entrance + warm curtain wash. */
html.js-motion .vision-enter {
  opacity: 0;
  transition:
    opacity 700ms var(--ease-enter) var(--enter-delay, 0ms),
    transform 700ms var(--ease-enter) var(--enter-delay, 0ms);
}

html.js-motion .vision-enter:nth-child(1) {
  transform: translate3d(-22px, 0, 0);
}

html.js-motion .vision-enter:nth-child(2) {
  transform: translate3d(22px, 0, 0);
}

html.js-motion .vision-enter.is-in {
  opacity: 1;
  transform: none;
}

html.js-motion .vision-col-sweep.is-in::after {
  animation: vision-sweep 1.85s var(--ease-enter) 0.38s both;
}

@keyframes vision-sweep {
  0% {
    background-position: 130% 0;
    opacity: 1;
  }
  100% {
    background-position: -30% 0;
    opacity: 0;
  }
}

/* Capabilities — each card like a scene rising into frame. */
html.js-motion .scene-enter {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity 680ms var(--ease-enter) var(--enter-delay, 0ms),
    transform 680ms var(--ease-enter) var(--enter-delay, 0ms);
}

html.js-motion .scene-enter.is-in {
  opacity: 1;
  transform: none;
}

/* Culture — end-credit beats, one word per measure. */
html.js-motion .credit .card-number {
  opacity: 0;
  transition: opacity 480ms var(--ease-enter) var(--credit-num-delay, 0ms);
}

html.js-motion .credit.is-in .card-number {
  opacity: 1;
}

html.js-motion .credit-inner {
  transform: translate3d(0, 108%, 0);
  transition: transform 880ms var(--ease-enter) var(--credit-delay, 0ms);
}

html.js-motion .credit.is-in .credit-inner {
  transform: none;
}

html.js-motion .credit p {
  opacity: 0;
  transition: opacity 560ms var(--ease-enter) var(--credit-sub-delay, 0ms);
}

html.js-motion .credit.is-in p {
  opacity: 1;
}

html.js-motion .culture-grid .credit:nth-child(1) {
  --credit-num-delay: 0ms;
  --credit-delay: 80ms;
  --credit-sub-delay: 360ms;
}

html.js-motion .culture-grid .credit:nth-child(2) {
  --credit-num-delay: 80ms;
  --credit-delay: 160ms;
  --credit-sub-delay: 440ms;
}

html.js-motion .culture-grid .credit:nth-child(3) {
  --credit-num-delay: 200ms;
  --credit-delay: 280ms;
  --credit-sub-delay: 560ms;
}

html.js-motion .culture-grid .credit:nth-child(4) {
  --credit-num-delay: 280ms;
  --credit-delay: 360ms;
  --credit-sub-delay: 640ms;
}

html.js-motion .culture-grid .credit,
html.js-motion .credit {
  position: relative;
}

/* Offices — cards settle, then windows kindle. */
html.js-motion .office-enter {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity 640ms var(--ease-enter) var(--enter-delay, 0ms),
    transform 640ms var(--ease-enter) var(--enter-delay, 0ms);
}

html.js-motion .office-enter.is-in {
  opacity: 1;
  transform: none;
}

.city-lights .win {
  fill: #fff3f0;
  opacity: 0.55;
}

.city-lights .win-cinna {
  fill: #e8331f;
}

html.js-motion .city-lights .win {
  opacity: 0;
}

html.js-motion .office-card.is-kindling .city-lights .win,
html.js-motion .office-card.is-in .city-lights .win {
  animation: kindle var(--kindle-dur, 4.2s) var(--ease-enter) var(--kindle-delay, 0s) both;
}

/* After kindle (and if the animation hook is cleared), panes stay lit. */
html.js-motion .office-card.is-lit:not(.is-kindling) .city-lights .win {
  opacity: 0.6;
}

/* After dusk cascade, a very quiet occasional twinkle on a few panes. */
html.js-motion .office-card.is-kindling .city-lights .win:nth-child(7n),
html.js-motion .office-card.is-in .city-lights .win:nth-child(7n) {
  animation:
    kindle var(--kindle-dur, 4.2s) var(--ease-enter) var(--kindle-delay, 0s) both,
    twinkle 9.5s calc(var(--kindle-delay, 0s) + var(--kindle-dur, 4.2s) + 0.4s) ease-in-out infinite;
}

html.js-motion .office-card:nth-child(2) .city-lights .win,
html.js-motion .office-col:nth-child(2) .city-lights .win {
  --kindle-delay: 0.7s;
}

@keyframes kindle {
  0% { opacity: 0; }
  18% { opacity: 0; }
  62% { opacity: 0.82; }
  100% { opacity: 0.6; }
}

@keyframes twinkle {
  0%, 72%, 100% { opacity: 0.6; }
  78% { opacity: 0.22; }
  84% { opacity: 0.78; }
  90% { opacity: 0.58; }
}

.city-lights .win, html.light .city-lights .win {
  fill: #fff3f0;
}

/* Contact / join — quieter, no travel, hand off to the footer field. */
html.js-motion .quiet-enter {
  opacity: 0;
  transition: opacity 420ms ease var(--enter-delay, 0ms);
}

html.js-motion .quiet-enter.is-in {
  opacity: 1;
}

/* Legacy hook kept so older marks still resolve visible. */
html.js-motion .reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity var(--dur-enter) var(--ease-enter) var(--reveal-delay, 0ms),
    transform var(--dur-enter) var(--ease-enter) var(--reveal-delay, 0ms);
}

html.js-motion .reveal.is-in {
  opacity: 1;
  transform: none;
}

.drawer-cta {
  margin-top: 8px;
  align-self: flex-start;
}

@media (max-height: 700px) and (min-width: 701px) {
  .hero {
    min-height: 0;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 16px 40px;
  }

  h1 {
    font-size: 36px;
  }

  html[lang="en"] h1 {
    font-size: 30px;
  }

  .story-visual {
    height: 240px;
    overflow: hidden;
  }

  .orb {
    width: 140px;
    height: 140px;
    top: 28px;
    left: 58px;
  }

  .frame-copy {
    padding: 28px 14px 12px;
  }

  .frame-copy h2 {
    font-size: 18px;
    letter-spacing: -0.03em;
  }

  .visual-top,
  .visual-bottom {
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    padding: 2px 0;
    font-size: 13px;
  }

  .principles {
    padding: 8px 0 0;
    margin-top: 8px;
  }

  .hero {
    overflow: hidden;
  }
}

html.light .city-art,
html.light .city-night {
  background: transparent;
}

html.light .city-horizon {
  stroke: rgba(42, 23, 20, 0.2);
}

html.light .culture-grid p,
html.light .credit-sheet .card-number,
html.light .principles,
html.light .hero-note {
  color: #6b534e;
}


html.light .capability-row:not(:last-child) .capability-copy {
  box-shadow: inset 0 -1px 0 rgba(42, 23, 20, 0.14);
}

html.light .vision-col + .vision-col {
  border-left-color: rgba(42, 23, 20, 0.14);
}

html.light .culture-grid p,
html.light .filings,
html.light .filings a {
  color: #6b534e;
}

/* Footer stays ink, so filings on the footer keep the ink color even in the light theme. */
html.light .site-footer .filings,
html.light .site-footer .filings a {
  color: #d2c0b8;
}


/* ----- Reel pass: pointer field, abstract slideshow, capability verbs ----- */

.pointer-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 15;
  pointer-events: none;
  display: block;
}

.story-stage {
  grid-area: stage;
  position: relative;
  min-height: 280px;
  height: 100%;
  overflow: hidden;
  z-index: 2;
}

.poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--poster-pos, center center);
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

.back-frame .poster-img {
  /* Face crop, not a second readable title — a dim, soft support card. */
  object-position: center 40%;
  filter: brightness(0.55) saturate(0.78) blur(3.5px);
  transform: scale(1.22);
  transform-origin: center 40%;
}

.front-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  box-shadow: inset 0 0 36px rgba(26, 14, 12, 0.16);
}

.visual-bottom[data-story-caption] {
  letter-spacing: 0.04em;
  line-height: 1.45;
  min-height: 1.45em;
  transition: opacity 0.7s cubic-bezier(0.37, 0.02, 0.2, 1);
}

.visual-bottom[data-story-caption].is-swap {
  opacity: 0;
}

.capabilities-lockup {
  display: block;
  margin-top: 0;
}

.capabilities-intro .section-kicker {
  margin-bottom: 16px;
}

.capabilities-intro .section-desc {
  margin-top: 16px;
  max-width: 28em;
}

.capabilities-lockup .capability-list {
  margin-top: 2px;
}

.story-stage {
  perspective: 1280px;
  perspective-origin: 50% 48%;
  touch-action: pan-y;
}

.poster-ring,
.story-slides {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(11deg) rotateY(var(--ring-rot, 0deg));
  transform-origin: 50% 50%;
  pointer-events: none;
}

.story-slide {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--poster-w, 200px);
  height: var(--poster-h, 328px);
  margin-left: calc(var(--poster-w, 200px) / -2);
  margin-top: calc(var(--poster-h, 328px) / -2);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
  transform-origin: 50% 50%;
  transform:
    rotateY(calc(var(--i, 0) * 72deg))
    translateZ(var(--ring-radius, 190px))
    scale(var(--face-scale, 1));
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

.story-slide.is-front {
  z-index: 6;
}

.story-dots {
  grid-area: dots;
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 2px 0 0;
}

.story-dot {
  appearance: none;
  border: 0;
  background: transparent;
  width: 44px;
  height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: inherit;
}

.story-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(210, 192, 184, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 243, 240, 0.08);
  transition: width 0.35s var(--ease-enter, cubic-bezier(0.22, 1, 0.36, 1)), background 0.35s ease, box-shadow 0.35s ease;
}

.story-dot.is-active::before,
.story-dot[aria-selected="true"]::before {
  width: 18px;
  background: #e8331f;
  box-shadow: 0 0 10px rgba(232, 51, 31, 0.55);
}

.story-dot:focus-visible {
  outline: 2px solid #f7856f;
  outline-offset: 2px;
}

.cine-letterbox,
.cine-iris {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92%, 360px);
  height: min(100%, 300px);
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
}

.cine-letterbox {
  background:
    linear-gradient(#120907, #120907) top / 100% 26px no-repeat,
    linear-gradient(#120907, #120907) bottom / 100% 26px no-repeat,
    radial-gradient(80% 50% at 50% 56%, rgba(255, 196, 170, 0.16), transparent 58%),
    radial-gradient(120% 80% at 50% 62%, rgba(232, 51, 31, 0.42), transparent 58%),
    linear-gradient(180deg, #2a1714 0%, #1a0e0c 56%, #120907 100%);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 243, 240, 0.12),
    inset 0 26px 0 #120907,
    inset 0 -26px 0 #120907;
}

.cine-letterbox::before {
  content: "";
  position: absolute;
  inset: 26px 0;
  background:
    radial-gradient(120% 90% at 50% 110%, rgba(232, 51, 31, 0.18), transparent 46%),
    linear-gradient(180deg, rgba(18, 9, 7, 0.15), transparent 30%, transparent 70%, rgba(18, 9, 7, 0.55));
  pointer-events: none;
  z-index: 0;
}

.cine-letterbox::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  top: 48%;
  height: 28px;
  background: linear-gradient(90deg, transparent 5%, rgba(255, 196, 170, 0.18) 35%, rgba(232, 51, 31, 0.28) 50%, rgba(255, 196, 170, 0.14) 65%, transparent 95%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
}

.letter-horizon {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 56%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 196, 170, 0.55), #e8331f, rgba(255, 196, 170, 0.7), #e8331f, rgba(255, 196, 170, 0.4), transparent);
  box-shadow: 0 0 22px 2px rgba(232, 51, 31, 0.7);
  z-index: 2;
}

.letter-floor {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 56%;
  bottom: 26px;
  background:
    linear-gradient(180deg, rgba(232, 51, 31, 0.16), transparent 42%),
    repeating-linear-gradient(90deg, rgba(255, 243, 240, 0.05) 0 1px, transparent 1px 18%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 75%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 75%);
  transform: perspective(220px) rotateX(62deg);
  transform-origin: top center;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

.letter-beam {
  position: absolute;
  left: 38%;
  top: 26px;
  width: 24%;
  height: 48%;
  background: linear-gradient(180deg, rgba(255, 243, 240, 0.0), rgba(255, 196, 170, 0.28), rgba(232, 51, 31, 0.22), transparent);
  filter: blur(12px);
  pointer-events: none;
  z-index: 1;
}

.letter-mote,
.letter-mote-b,
.letter-mote-c,
.letter-mote-d {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e8331f;
  box-shadow: 0 0 12px rgba(232, 51, 31, 0.85);
  top: 42%;
  left: 20%;
  opacity: 0.85;
  z-index: 2;
}

.letter-mote-b {
  width: 3px;
  height: 3px;
  top: 50%;
  left: 76%;
  background: #ffc4aa;
}

.letter-mote-c {
  width: 2px;
  height: 2px;
  top: 38%;
  left: 62%;
  background: #fff3f0;
  opacity: 0.7;
}

.letter-mote-d {
  width: 4px;
  height: 4px;
  top: 46%;
  left: 34%;
  opacity: 0.65;
}

.cine-iris {
  background:
    radial-gradient(circle at 50% 46%, rgba(232, 51, 31, 0.22), transparent 42%),
    #1a0e0c;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 243, 240, 0.1);
}

.iris-ring {
  position: absolute;
  left: 50%;
  top: 46%;
  border-radius: 50%;
  border: 1px solid rgba(255, 243, 240, 0.14);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.iris-ring-a {
  width: 58%;
  padding-bottom: 58%;
  height: 0;
  width: 170px;
  height: 170px;
  padding: 0;
}

.iris-ring-b {
  width: 250px;
  height: 250px;
  border-color: rgba(232, 51, 31, 0.28);
  opacity: 0.85;
}

.iris-core {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 86px;
  height: 86px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 243, 240, 0.55), transparent 32%),
    radial-gradient(circle at 50% 50%, #ffad94, #e8331f 40%, #6a1610 72%, #1a0e0c 100%);
  box-shadow: 0 0 36px 10px rgba(232, 51, 31, 0.4);
}

.cine-kicker {
  position: absolute;
  top: 38px;
  left: 22px;
  letter-spacing: 0.12em;
  font-size: 10px;
  font-weight: 500;
  color: #e8331f;
  z-index: 3;
}

.cine-title {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 38px;
  margin: 0;
  z-index: 3;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.28;
  color: #fff3f0;
}


/* Capabilities — four distinct verbs, not repeated modules. */
.capability-verb {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.verb-type {
  width: 100%;
  max-width: 108px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.verb-type span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: rgba(255, 243, 240, 0.38);
}

.verb-type span.is-cinna {
  background: #e8331f;
  box-shadow: 0 0 8px rgba(232, 51, 31, 0.45);
  height: 3px;
}

.verb-frame {
  display: flex;
  align-items: center;
}

.frame-window {
  position: relative;
  width: 64px;
  height: 84px;
  border-radius: 8px;
  border: 1px solid rgba(255, 243, 240, 0.22);
  background:
    radial-gradient(circle at 50% 46%, rgba(232, 51, 31, 0.45), rgba(26, 14, 12, 0.2) 62%),
    #1a0e0c;
  box-shadow:
    inset 0 0 0 4px rgba(42, 23, 20, 0.85),
    0 10px 20px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.frame-glow {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, #ffc4aa, #e8331f 55%, transparent 70%);
  filter: blur(1px);
}

.frame-bar {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 10px;
  height: 2px;
  background: rgba(255, 243, 240, 0.35);
  border-radius: 1px;
}

.verb-flow {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 112px;
  gap: 0;
}

.flow-node {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 243, 240, 0.55);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(42, 23, 20, 0.6);
}

.flow-node.is-mid {
  background: #e8331f;
  box-shadow: 0 0 0 3px rgba(232, 51, 31, 0.2), 0 0 10px rgba(232, 51, 31, 0.55);
}

.flow-node.is-end {
  background: #ffc4aa;
}

.flow-path {
  position: relative;
  flex: 1;
  height: 1px;
  background: rgba(255, 243, 240, 0.22);
  overflow: hidden;
}

.flow-pulse {
  position: absolute;
  top: -1px;
  left: -30%;
  width: 30%;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #e8331f, #ffc4aa);
  animation: flow-run 2.4s var(--ease-enter, cubic-bezier(0.22, 1, 0.36, 1)) infinite;
}

@keyframes flow-run {
  from { left: -30%; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  to { left: 100%; opacity: 0; }
}

.verb-reach {
  position: relative;
  width: 96px;
  height: 64px;
}

.reach-core {
  position: absolute;
  left: 10px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: #e8331f;
  box-shadow: 0 0 12px rgba(232, 51, 31, 0.7);
}

.reach-mote {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 196, 170, 0.85);
  box-shadow: 0 0 6px rgba(232, 51, 31, 0.45);
}

.reach-mote.m1 { left: 28px; top: 18px; width: 4px; height: 4px; }
.reach-mote.m2 { left: 46px; top: 10px; opacity: 0.7; }
.reach-mote.m3 { left: 62px; top: 22px; width: 5px; height: 5px; background: #e8331f; }
.reach-mote.m4 { left: 78px; top: 14px; opacity: 0.5; }
.reach-mote.m5 { left: 52px; top: 40px; opacity: 0.8; }
.reach-mote.m6 { left: 74px; top: 46px; width: 2px; height: 2px; opacity: 0.6; }

@media (max-width: 700px) {
  .cine-letterbox,
  .cine-iris {
    width: min(94%, 300px);
    height: min(100%, 220px);
  }

  .cine-title {
    font-size: 18px;
    bottom: 20px;
    left: 16px;
    right: 16px;
  }

  .cine-kicker {
    top: 16px;
    left: 16px;
  }


  .iris-ring-a { width: 120px; height: 120px; }
  .iris-ring-b { width: 180px; height: 180px; }
  .iris-core { width: 64px; height: 64px; }

  .capability-verb {
    min-height: 48px;
    justify-content: center;
  }

  .verb-type { max-width: 64px; gap: 5px; }
  .frame-window { width: 44px; height: 58px; }
  .verb-flow { max-width: 64px; }
  .verb-reach { width: 64px; height: 48px; transform: scale(0.86); transform-origin: left center; }
}

@media (max-height: 700px) and (min-width: 701px) {
  .cine-letterbox,
  .cine-iris {
    height: min(100%, 196px);
    width: min(92%, 300px);
  }

  .cine-title {
    font-size: 18px;
    bottom: 18px;
  }


  .story-dots {
    padding: 0;
  }

  .story-dot {
    height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow-pulse,
  .orbit-one,
  .orbit-two,
  .orb {
    animation: none !important;
  }

  .story-slide {
    transition: none;
  }

  .visual-bottom[data-story-caption] {
    transition: none;
  }
}



@media (max-width: 980px) {
  .product-chapter-head {
    column-gap: 28px;
  }
}
/* compact verbs inside the 2-up — marks stay distinct, they must not add height */
.capability-list .capability-verb {
  min-height: 0;
  justify-content: flex-start;
}
.capability-list .verb-type {
  max-width: 40px;
  gap: 5px;
}
.capability-list .frame-window {
  width: 34px;
  height: 46px;
}
.capability-list .verb-flow {
  max-width: 40px;
  flex-direction: column;
  align-items: center;
  height: 46px;
  justify-content: space-between;
}
.capability-list .flow-path {
  width: 1px;
  flex: 1;
  height: auto;
}
.capability-list .verb-reach {
  width: 44px;
  height: 44px;
  transform: scale(0.72);
  transform-origin: top left;
}
@media (max-width: 700px) {
  .capability-list .frame-window {
    width: 30px;
    height: 40px;
  }
  .capability-list .verb-reach {
    transform: scale(0.62);
  }
}


/* ----- Poster orbit (desktop) and folded stack (mobile) ----- */

.back-frame .poster-img {
  filter: none;
  transform: none;
}

@media (max-width: 1100px) {
  .story-visual {
    --poster-w: 176px;
    --poster-h: 289px;
    --ring-radius: 132px;
  }
}

@media (max-width: 700px) {
  .story-visual {
    --poster-w: 156px;
    --poster-h: 256px;
    height: clamp(260px, calc(100svh - 330px), 380px);
  }

  .story-stage {
    perspective: none;
  }

  .poster-ring,
  .story-slides {
    transform: none !important;
    transform-style: flat;
    pointer-events: auto;
  }

  .story-slide {
    left: 50%;
    top: 50%;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    will-change: transform, opacity;
    transform:
      translate3d(var(--sx, 0px), var(--sy, 0px), 0)
      rotateY(var(--sr, 0deg))
      scale(var(--ss, 1));
    opacity: var(--so, 1);
  }

  /* First-paint / no-JS folded peek */
  .story-slide:nth-child(1) { --sx: 0px; --sy: 0px; --ss: 1; --sr: 0deg; --face: 1; --so: 1; z-index: 5; }
  .story-slide:nth-child(2) { --sx: 28px; --sy: 6px; --ss: 0.9; --sr: -8deg; --face: 0.7; --so: 1; z-index: 4; }
  .story-slide:nth-child(3) { --sx: 48px; --sy: 10px; --ss: 0.8; --sr: -12deg; --face: 0.48; --so: 0.95; z-index: 2; }
  .story-slide:nth-child(4) { --sx: 0px; --sy: 10px; --ss: 0.7; --sr: 0deg; --face: 0.2; --so: 0; z-index: 0; }
  .story-slide:nth-child(5) { --sx: -30px; --sy: 6px; --ss: 0.88; --sr: 8deg; --face: 0.55; --so: 0.85; z-index: 3; }

  .orbit {
    opacity: 0.28;
    width: 280px;
    height: 280px;
    top: 8px;
    left: 50%;
    margin-left: -140px;
  }

  .orbit-two {
    width: 360px;
    height: 360px;
    top: -28px;
    left: 50%;
    margin-left: -180px;
    opacity: 0.32;
  }
}

@media (prefers-reduced-motion: reduce) {
  .poster-ring,
  .story-slides,
  .story-slide {
    transition: none;
  }
}

@media (max-width: 374px) {
  .office-copy h3 {
    font-size: 20px;
  }

  .office-copy p {
    font-size: 15px;
    line-height: 1.5;
  }

  .city-art,
  .city-night {
    height: 96px;
  }

  .city-art svg,
  .city-night svg {
    height: 100px;
  }
}


/* ----- Capability cycle: 剧本引擎 → 花镜 → 投放引擎 closed loop ----- */
.vis-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.capability-cycle {
  position: relative;
  --cycle-rot: 0deg;
  --orbit-r: 100px;
  --orbit-cy: 118px;
  --ember-ang: 0deg;
  --ember-a: 0;
}

.capability-orbit-path {
  display: none;
}

/* 花镜: official smoke-mirror mark, presentation only.
   The SVG is not redrawn or recolored. A static warm/cinnabar setting
   wraps the dark disc so it belongs on the ink field; the lens (the
   mark itself) may spin around its own center via --lens-rot. */
.capability-mark-wrap.mark-huajing {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  pointer-events: none;
  flex-shrink: 0;
  background: radial-gradient(
    circle,
    rgba(232, 51, 31, 0) 54%,
    rgba(232, 51, 31, 0.1) 74%,
    rgba(255, 196, 170, 0.22) 100%
  );
  box-shadow:
    0 0 0 1px rgba(255, 203, 171, 0.34),
    0 0 0 2px rgba(232, 51, 31, 0.16),
    0 0 14px 3px rgba(232, 51, 31, calc(0.12 + var(--halo, 0) * 0.24));
}

.capability-mark-wrap.mark-huajing::after {
  content: "";
  position: absolute;
  inset: 9.5%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  box-shadow:
    inset 0 0 0 1px rgba(255, 203, 171, calc(0.26 + var(--halo, 0) * 0.22)),
    inset 0 0 7px 1px rgba(232, 51, 31, calc(0.12 + var(--halo, 0) * 0.18));
}

.capability-mark-wrap.mark-huajing .capability-mark {
  width: 72px;
  height: auto;
  position: relative;
  z-index: 1;
  transform: rotate(var(--lens-rot, 0deg));
  transform-origin: 50% 50%;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .capability-mark-wrap.mark-huajing .capability-mark {
    transform: none;
    will-change: auto;
  }
}

/* Desktop + tablet: marks circulate on a quiet ring, copy sits below.
   Angles, scale, fade, halo and ember are driven by JS (interruptible,
   lagged follow-through). CSS holds the geometry and settled fallbacks. */
@media (prefers-reduced-motion: no-preference) and (min-width: 701px) {
  .capability-cycle {
    min-height: 520px;
    padding-top: 0;
  }

  .capability-orbit-path {
    display: block;
    position: absolute;
    left: 50%;
    top: var(--orbit-cy);
    width: calc(var(--orbit-r) * 2);
    height: calc(var(--orbit-r) * 2);
    margin: calc(var(--orbit-r) * -1) 0 0 calc(var(--orbit-r) * -1);
    pointer-events: none;
    z-index: 0;
    overflow: visible;
  }

  .capability-orbit-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
  }

  .capability-orbit-svg .orbit-base {
    stroke: rgba(255, 243, 240, 0.14);
    stroke-width: 1;
  }

  .capability-orbit-svg .orbit-travel {
    stroke: rgba(232, 51, 31, 0.5);
    stroke-width: 1.45;
    stroke-linecap: round;
    fill: none;
    filter: drop-shadow(0 0 2.5px rgba(232, 51, 31, 0.38));
    opacity: 0;
  }

  .capability-orbit-path .orbit-ember {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7px;
    height: 7px;
    margin: 0;
    border-radius: 50%;
    background: #E8331F;
    box-shadow:
      0 0 5px 1.5px rgba(232, 51, 31, 0.75),
      0 0 14px 5px rgba(232, 51, 31, 0.28),
      0 0 26px 10px rgba(255, 196, 170, 0.14);
    transform:
      translate(-50%, -50%)
      rotate(var(--ember-ang, 0deg))
      translateY(var(--orbit-r))
      rotate(calc(-1 * var(--ember-ang, 0deg)));
    opacity: var(--ember-a, 0);
    pointer-events: none;
    z-index: 2;
    will-change: transform, opacity;
  }

  .capability-orbit-path .orbit-motes {
    position: absolute;
    inset: -28px;
    width: calc(100% + 56px);
    height: calc(100% + 56px);
    pointer-events: none;
    z-index: 1;
  }

  .capability-cycle .capability-list {
    display: block;
    position: relative;
    min-height: 520px;
    margin: 0;
  }

  .capability-cycle .capability-row {
    display: block;
    padding: 0;
    box-shadow: none;
    grid-template-columns: none;
    --mark-ang: 0deg;
    --mark-scale: 0.72;
    --mark-fade: 0.48;
    --halo: 0;
    --copy-a: 0;
    --copy-y: 8px;
  }

  .capability-cycle .capability-row:nth-child(1) { --mark-ang: 0deg; }
  .capability-cycle .capability-row:nth-child(2) { --mark-ang: 120deg; }
  .capability-cycle .capability-row:nth-child(3) { --mark-ang: 240deg; }

  .capability-cycle .capability-row.is-current {
    --mark-scale: 1;
    --mark-fade: 1;
    --halo: 0.22;
    --copy-a: 1;
    --copy-y: 0px;
  }

  .capability-cycle .capability-row + .capability-row,
  .capability-cycle .capability-row:nth-child(n + 3),
  .capability-cycle .capability-row:nth-child(n + 3):nth-child(even) {
    box-shadow: none;
  }

  .capability-cycle .capability-verb {
    position: absolute;
    left: 50%;
    top: var(--orbit-cy);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    pointer-events: auto;
    opacity: var(--mark-fade, 0.48);
    transform:
      translate(-50%, -50%)
      rotate(var(--mark-ang, 0deg))
      translateY(var(--orbit-r))
      rotate(calc(-1 * var(--mark-ang, 0deg)))
      scale(var(--mark-scale, 0.72));
    transform-origin: 50% 50%;
  }

  .capability-cycle .capability-verb::after {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(
      circle,
      rgba(232, 51, 31, calc(var(--halo, 0) * 0.34)) 0%,
      rgba(232, 51, 31, calc(var(--halo, 0) * 0.12)) 40%,
      rgba(255, 196, 170, calc(var(--halo, 0) * 0.06)) 58%,
      rgba(232, 51, 31, 0) 72%
    );
    box-shadow: 0 0 16px calc(var(--halo, 0) * 8px) rgba(232, 51, 31, calc(var(--halo, 0) * 0.22));
  }

  .capability-cycle .capability-row.is-current .capability-verb {
    z-index: 4;
  }

  .capability-cycle .capability-mark {
    width: 68px;
    height: auto;
    opacity: 1;
    position: relative;
    z-index: 1;
  }

  .capability-cycle .mark-huajing,
  .capability-cycle .mark-huajing .capability-mark {
    width: 72px;
  }

  .capability-cycle .mark-huajing {
    height: 72px;
  }

  .capability-cycle .capability-copy {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--orbit-cy) + var(--orbit-r) + 28px);
    margin: 0 auto;
    max-width: 28em;
    text-align: center;
    opacity: var(--copy-a, 0);
    visibility: hidden;
    transform: translateY(var(--copy-y, 8px));
    pointer-events: none;
    grid-column: auto;
  }

  .capability-cycle .capability-row.is-current .capability-copy,
  .capability-cycle.is-cycling .capability-copy {
    visibility: visible;
  }

  .capability-cycle .capability-row.is-current .capability-copy {
    pointer-events: auto;
    position: absolute;
  }

  .capability-cycle .capability-name {
    text-align: center;
  }

  .capability-cycle .capability-copy h3 {
    font-size: 22px;
  }

  .capability-cycle .capability-copy p {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Phone: horizontal closed loop — current mark in the middle,
   previous and next at the sides — not a squeezed desktop ring.
   Same slower, softer language; quiet ember under the current mark. */
@media (prefers-reduced-motion: no-preference) and (max-width: 700px) {
  .capability-cycle {
    --stage-h: 104px;
    margin-top: 8px;
  }

  .capability-orbit-path {
    display: none;
  }

  .capability-cycle .capability-list {
    display: block;
    position: relative;
    margin: 0;
    min-height: calc(var(--stage-h) + 240px);
    padding-top: var(--stage-h);
    padding-bottom: 0;
  }

  .capability-cycle .capability-list .capability-row,
  .capability-cycle .capability-list .capability-row:nth-child(even),
  .capability-cycle .capability-list .capability-row:nth-child(n + 3),
  .capability-cycle .capability-list .capability-row:nth-child(n + 3):nth-child(even) {
    display: contents;
    padding: 0;
    box-shadow: none;
    grid-template-columns: none;
    min-height: 0;
    --mark-scale: 0.7;
    --mark-fade: 0.42;
    --halo: 0;
    --copy-a: 0;
    --copy-y: 8px;
    --slot-x: 50%;
  }

  .capability-cycle .capability-list .capability-row.is-current {
    --mark-scale: 1;
    --mark-fade: 1;
    --halo: 0.26;
    --copy-a: 1;
    --copy-y: 0px;
    --slot-x: 50%;
  }

  .capability-cycle .capability-list .capability-row.is-prev {
    --slot-x: 16%;
  }

  .capability-cycle .capability-list .capability-row.is-next {
    --slot-x: 84%;
  }

  .capability-cycle .capability-list .capability-verb,
  .capability-cycle .capability-list .capability-row .capability-verb,
  .capability-cycle .capability-list .capability-row.is-current .capability-verb,
  .capability-cycle .capability-list .capability-row.is-prev .capability-verb,
  .capability-cycle .capability-list .capability-row.is-next .capability-verb {
    position: absolute;
    top: 12px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    padding: 0;
    margin: 0;
    cursor: pointer;
    pointer-events: auto;
    left: var(--slot-x, 50%);
    transform: translateX(-50%) scale(var(--mark-scale, 0.7));
    opacity: var(--mark-fade, 0.42);
  }

  .capability-cycle .capability-list .capability-verb::after {
    content: "";
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(
      circle,
      rgba(232, 51, 31, calc(var(--halo, 0) * 0.4)) 0%,
      rgba(232, 51, 31, calc(var(--halo, 0) * 0.14)) 44%,
      rgba(255, 196, 170, calc(var(--halo, 0) * 0.06)) 62%,
      rgba(232, 51, 31, 0) 74%
    );
    box-shadow: 0 0 14px calc(var(--halo, 0) * 8px) rgba(232, 51, 31, calc(var(--halo, 0) * 0.24));
  }

  .capability-cycle .capability-list .capability-row.is-current .capability-verb {
    z-index: 3;
  }

  .capability-cycle .capability-list .capability-mark {
    width: 64px;
    height: auto;
    opacity: 1;
    object-position: center;
    position: relative;
    z-index: 1;
  }

  .capability-cycle .capability-list .mark-huajing,
  .capability-cycle .capability-list .mark-huajing .capability-mark {
    width: 70px;
  }

  .capability-cycle .capability-list .mark-huajing {
    height: 70px;
  }

  .capability-cycle .capability-list .capability-copy {
    position: absolute;
    display: block;
    left: 0;
    right: 0;
    top: var(--stage-h);
    margin: 8px auto 0;
    max-width: 22em;
    text-align: center;
    padding: 0 4px;
    grid-column: auto;
    opacity: var(--copy-a, 0);
    visibility: hidden;
    transform: translateY(var(--copy-y, 8px));
    pointer-events: none;
  }

  .capability-cycle .capability-list .capability-row.is-current .capability-copy,
  .capability-cycle.is-cycling .capability-list .capability-copy {
    visibility: visible;
  }

  .capability-cycle .capability-list .capability-row.is-current .capability-copy {
    pointer-events: auto;
  }

  .capability-cycle .capability-name {
    text-align: center;
  }

  .capability-cycle .capability-copy h3 {
    font-size: 20px;
  }
}

/* Reduced motion / no-js: still 3-row stack, intro already vertically centered on desktop. */
@media (prefers-reduced-motion: reduce) {
  .capability-orbit-path { display: none; }
}


@media (max-width: 700px) and (prefers-reduced-motion: reduce) {
  .product-os,
  .product-ai {
    width: 100%;
    max-width: 22em;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }
  .product-lockup {
    height: 32px;
    object-position: left center;
    margin-left: 0;
    margin-right: 0;
  }
  .product-os h3,
  .product-ai > h3,
  .product-os p {
    text-align: left;
  }
  .capability-orbit-path,
  .capability-orbit-svg,
  .orbit-ember,
  .orbit-motes {
    display: none !important;
  }
  .capability-cycle {
    width: 100%;
    min-height: 0;
    height: auto;
  }
  .capability-cycle .capability-list,
  .capability-cycle ol.capability-list {
    display: flex;
    flex-direction: column;
    position: static;
    width: 100%;
    max-width: 22em;
    margin: 20px auto 0;
    min-height: 0;
    height: auto;
    padding: 0;
    gap: 22px;
  }
  .capability-cycle .capability-list .capability-row,
  .capability-cycle .capability-row,
  .capability-cycle .capability-list .capability-row:nth-child(even),
  .capability-cycle .capability-list .capability-row:nth-child(n + 3),
  .capability-cycle .capability-list .capability-row:nth-child(n + 3):nth-child(even) {
    display: grid !important;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 14px;
    position: static !important;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
  }
  .capability-cycle .capability-verb,
  .capability-cycle .capability-list .capability-verb {
    display: flex;
    position: static !important;
    width: 56px;
    height: auto;
    transform: none !important;
    opacity: 1 !important;
  }
  .capability-cycle .capability-copy,
  .capability-cycle .capability-list .capability-copy,
  .capability-cycle .capability-list .capability-row.is-current .capability-copy,
  .capability-cycle.is-cycling .capability-list .capability-copy {
    display: block;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    text-align: left;
    width: auto;
    max-width: none;
    left: auto;
    right: auto;
    top: auto;
    pointer-events: auto;
  }
}



/* ---------- Products: lead, HUADAN AI header, then 戏本 / 花镜 / 投桃 rows ---------- */
#capabilities.products {
  padding-top: 36px;
  padding-bottom: 56px;
}

.products-intro {
  max-width: 34em;
  margin: 0 0 40px;
}

.products-lead {
  margin: 0;
  max-width: 34em;
  color: var(--body);
  font-size: 18px;
  line-height: 1.7;
}

.product-chapter {
  width: 100%;
  margin: 0;
}

/* Shared lockup language: official mark or wordmark on the left, copy on the right, tight gap. */
.product-chapter-head,
.product-tool {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 36px;
  align-items: start;
}

.product-chapter-head {
  align-items: center;
}

.product-lockup {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(100%, 248px);
  margin: 0;
  object-fit: contain;
  object-position: left center;
}

.product-chapter-copy h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.product-ai .product-chapter-head {
  column-gap: 32px;
}

.product-ai .product-chapter-copy h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.product-tools {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
}

.product-tool {
  padding: 28px 0;
  align-items: start;
}

.product-tool + .product-tool {
  box-shadow: inset 0 1px 0 rgba(255, 243, 240, 0.14);
}

.product-tool-mark {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 0;
  padding-top: 2px;
}

.product-tool-icon {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

/* 花镜: official wordmark (circular smoke-mirror + 「花镜」).
   Use the official PNG as an image; do not redraw, recolor, stretch,
   filter, or spin the lockup (spinning it would rotate the letters). */
.product-tool-huajing .product-tool-mark,
.product-tool-toutao .product-tool-mark,
.product-tool-xiben .product-tool-mark {
  padding-top: 0;
}

/* 投桃 uses the shared .product-tool-wordmark 40px height after the ink SVG viewBox was tightened to the artwork. */

.product-tool-wordmark {
  display: block;
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  pointer-events: none;
  flex-shrink: 0;
}

.product-tool-copy {
  min-width: 0;
}

.product-tool-ident {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  min-width: 0;
}

.product-tool-name {
  margin: 0;
  color: #f7856f;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
  white-space: nowrap;
}

.product-tool-sep {
  display: block;
  width: 10px;
  height: 1px;
  flex-shrink: 0;
  background: rgba(247, 133, 111, 0.5);
}

.product-tool-system {
  margin: 0;
  color: #f7856f;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
  white-space: nowrap;
}

html[lang="en"] .product-tool-name {
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.product-tool-copy h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.product-tool-copy p:not(.product-tool-name):not(.product-tool-system) {
  margin: 0;
  max-width: none;
  color: var(--body);
  font-size: 16px;
  line-height: 1.75;
}

/* Mobile-only sentence break in the 花镜 body. Hidden on desktop so the
   paragraph stays one flowing line. */
br.product-tool-break {
  display: none;
}

/* Mobile-only couplet break in product slogans. Hidden on desktop. */
br.product-slogan-break {
  display: none;
}

@media (max-width: 980px) {
  .product-chapter-head,
  .product-tool {
    column-gap: 28px;
  }

  .product-ai .product-chapter-copy h3 {
    font-size: 20px;
  }
}

@media (max-width: 700px) {
  /* aj: left-led editorial products, not a centered app stack.
     New display face and scale apply only here. Desktop typography
     and 300×150 frame math stay untouched. */
  #capabilities.products {
    text-align: left;
  }

  .products-intro {
    margin: 0 0 28px;
    max-width: none;
  }

  .products-intro,
  .products-lead {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  .products-lead {
    font-size: 16px;
    line-height: 1.7;
    max-width: 22em;
  }

  .product-chapter {
    margin: 0;
    max-width: none;
    width: 100%;
  }

  .product-chapter-head {
    grid-template-columns: 1fr;
    justify-items: start;
    row-gap: 10px;
    column-gap: 0;
    padding: 0 26px;
  }

  .product-lockup {
    height: 32px;
    max-width: min(100%, 220px);
    margin-left: 0;
    margin-right: 0;
    object-position: left center;
  }

  .product-chapter-copy,
  .product-chapter-copy h3,
  .product-ai .product-chapter-copy h3 {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  .product-ai .product-chapter-head {
    row-gap: 10px;
  }

  .product-ai .product-chapter-copy h3 {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.02em;
    max-width: 22em;
    color: var(--body);
  }

  html[lang="en"] .product-ai .product-chapter-copy h3 {
    max-width: 22em;
    font-size: 15px;
  }

  .product-tools {
    margin-top: 16px;
    width: 100%;
  }

  /* Each product is one typographic module: mark + ident as a quiet
     signature, a literary couplet as the voice, then a pause into the body. */
  .product-tool {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "mark ident"
      "slogan slogan"
      "body body";
    justify-items: start;
    align-items: center;
    column-gap: 12px;
    row-gap: 0;
    padding: 26px 26px 34px;
    width: 100%;
    box-shadow: none;
  }

  .product-tool + .product-tool {
    padding-top: 32px;
    box-shadow: none;
  }

  .product-tool-copy {
    display: contents;
    text-align: left;
    width: auto;
  }

  .product-tool-mark {
    grid-area: mark;
    position: relative;
    isolation: isolate;
    justify-content: flex-start;
    align-self: center;
    padding-top: 0;
  }

  /* Quiet cinnabar ink bloom behind the mark / 花镜 lockup.
     Static atmosphere; motion only explains its arrival. */
  .product-tool-mark::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 92px;
    height: 92px;
    transform: translate(-50%, -50%);
    background: radial-gradient(
      ellipse at center,
      rgba(247, 133, 111, 0.28) 0%,
      rgba(140, 28, 24, 0.12) 44%,
      transparent 72%
    );
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
  }

  .product-tool-mark > * {
    position: relative;
    z-index: 1;
  }

  .product-tool-icon {
    width: 48px;
    height: 48px;
  }

  .product-tool-ident {
    grid-area: ident;
    justify-content: flex-start;
    margin: 0;
    align-self: center;
  }

  .product-tool-name,
  .product-tool-system {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  .product-tool-name {
    letter-spacing: 0.2em;
  }

  .product-tool-system {
    letter-spacing: 0.1em;
  }

  .product-tool-copy h3 {
    grid-area: slogan;
    margin: 10px 0 0;
    max-width: 100%;
    color: #f7856f;
    font-family: "Noto Serif SC", "Noto Serif", "Source Han Serif SC", "Songti SC", serif;
    font-weight: 500;
    font-size: 17px;
    font-synthesis: none;
    font-kerning: normal;
    line-height: 1.4;
    letter-spacing: 0.06em;
    text-align: left;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  html[lang="en"] .product-tool-copy h3 {
    font-size: 16px;
    letter-spacing: 0.01em;
    line-height: 1.4;
    max-width: none;
    white-space: nowrap;
  }

  .product-tool-copy p:not(.product-tool-name):not(.product-tool-system) {
    grid-area: body;
    text-align: left;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.9;
    letter-spacing: 0.02em;
    max-width: min(23em, 100%);
    margin: 22px 0 0;
    color: var(--body);
    word-break: keep-all;
    line-break: strict;
    overflow-wrap: normal;
    text-wrap: pretty;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  /* 花镜 / 投桃: official wordmark + slogan as one left-led lockup, then a pause. */
  .product-tool-huajing,
  .product-tool-toutao,
  .product-tool-xiben {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "mark"
      "slogan"
      "body";
    align-items: start;
  }

  .product-tool-huajing .product-tool-wordmark,
  .product-tool-toutao .product-tool-wordmark,
  .product-tool-xiben .product-tool-wordmark {
    height: 44px;
    width: auto;
    max-width: min(100%, 220px);
    margin: 0;
    object-position: left center;
  }

  .product-tool-huajing .product-tool-mark::before,
  .product-tool-toutao .product-tool-mark::before,
  .product-tool-xiben .product-tool-mark::before {
    width: 210px;
    height: 96px;
    left: 72px;
    top: 50%;
  }

  .product-tool-huajing .product-tool-copy h3,
  .product-tool-toutao .product-tool-copy h3,
  .product-tool-xiben .product-tool-copy h3 {
    margin-top: 6px;
  }

  br.product-tool-break {
    display: inline;
  }

  br.product-slogan-break {
    display: none;
  }

  /* Staggered enter: mark, ident, slogan, then body.
     The card itself no longer fades as one block. */
  html.js-motion .product-tool.scene-enter {
    opacity: 1;
    transform: none;
  }

  html.js-motion .product-tool.scene-enter .product-tool-mark,
  html.js-motion .product-tool.scene-enter .product-tool-ident,
  html.js-motion .product-tool.scene-enter .product-tool-copy h3,
  html.js-motion .product-tool.scene-enter .product-tool-copy p:not(.product-tool-name):not(.product-tool-system) {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
    transition:
      opacity 600ms var(--ease-enter),
      transform 600ms var(--ease-enter);
  }

  html.js-motion .product-tool.scene-enter .product-tool-mark::before {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition:
      opacity 820ms var(--ease-enter),
      transform 820ms var(--ease-enter);
  }

  html.js-motion .product-tool.scene-enter.is-in .product-tool-mark {
    opacity: 1;
    transform: none;
    transition-delay: var(--enter-delay, 0ms);
  }

  html.js-motion .product-tool.scene-enter.is-in .product-tool-mark::before {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1);
    transition-delay: var(--enter-delay, 0ms);
  }

  html.js-motion .product-tool.scene-enter.is-in .product-tool-ident {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--enter-delay, 0ms) + 50ms);
  }

  html.js-motion .product-tool.scene-enter.is-in .product-tool-copy h3 {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--enter-delay, 0ms) + 90ms);
  }

  html.js-motion .product-tool.scene-enter.is-in .product-tool-copy p:not(.product-tool-name):not(.product-tool-system) {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--enter-delay, 0ms) + 180ms);
  }
}

@media (max-width: 700px) and (prefers-reduced-motion: reduce) {
  html.js-motion .product-tool.scene-enter,
  html.js-motion .product-tool.scene-enter .product-tool-mark,
  html.js-motion .product-tool.scene-enter .product-tool-ident,
  html.js-motion .product-tool.scene-enter .product-tool-copy h3,
  html.js-motion .product-tool.scene-enter .product-tool-copy p:not(.product-tool-name):not(.product-tool-system) {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  html.js-motion .product-tool.scene-enter .product-tool-mark::before,
  .product-tool-mark::before {
    opacity: 0.9 !important;
    transform: translate(-50%, -50%) !important;
    transition: none !important;
  }
}
