/* 智道科技官网 demo 样式。token 来自 docs/design/zido-website/01-visual-system.md（T-017） */
:root {
  --color-navy: #0A386B;
  --color-orange: #F2A03C;
  --color-orange-on-navy: #F2A03C;
  --color-accent-on-light: #8A5A00;
  --color-on-orange: #0A386B;
  --color-bg-page: #F5F7FA;
  --color-bg-card: #FFFFFF;
  --color-bg-subtle: #EEF1F5;
  --color-bg-hero: #071F3A;
  --color-bg-band: #0A386B;
  --color-text: #122033;
  --color-text-secondary: #3D4C5C;
  --color-text-on-dark: #FFFFFF;
  --color-text-on-dark-secondary: #C5D0DC;
  --color-border: #D5DCE3;
  --color-border-strong: #B8C2CD;
  --color-overlay: rgba(8, 20, 36, 0.56);
  --color-mask-bg: #EEF1F5;
  --color-navy-hover: #082C54;
  --color-navy-active: #061F3D;
  --color-orange-hover: #E8942E;
  --color-orange-active: #E09030;
  --color-success-bg: #E8F6EE;
  --color-success: #0F6B3A;
  --color-warning-bg: #FFF6E5;
  --color-warning: #8A5A00;
  --color-danger-bg: #FDECEC;
  --color-danger: #B42318;
  --color-info-bg: #E8EEF4;
  --color-disabled-bg: #EEF1F5;
  --color-disabled-text: #5C6670;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 4px 16px rgba(18, 32, 51, 0.04);
  --shadow-card-hover: 0 8px 24px rgba(18, 32, 51, 0.08);
  --shadow-dialog: 0 16px 48px rgba(8, 20, 36, 0.28);
  --content-width: 1200px;
  --page-gutter: 48px;
  --header-h: 72px;
  --font-display: "Newsreader", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "PMingLiU", "SimSun", serif;
  --font-body: "Source Sans 3", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font: var(--font-body);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur-enter: 280ms;
  --dur-hero: 550ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: calc(var(--header-h) + 12px); }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg-page);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, .hero-title, .hero-index-label {
  font-family: var(--font-display);
  font-weight: 600;
}
button, input, select, textarea { font: inherit; }
a { color: var(--color-navy); text-decoration: none; }
a:hover { text-decoration: underline; }
a:visited { color: var(--color-navy-hover); }
:focus-visible { outline: 2px solid var(--color-navy); outline-offset: 2px; }
.tabular { font-variant-numeric: tabular-nums; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 1000;
  background: var(--color-bg-card); color: var(--color-navy);
  padding: 8px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

/* Header — solid sticky white bar. Explicit z-index above page content
   and below dialogs (80) / toasts (90). Narrow drawer stays in this
   stacking context. T-033 / 09 钩子约定 11:41. */
.site-header {
  position: sticky; top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  overflow: visible;
}
.header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0 var(--page-gutter);
  display: flex; align-items: center; gap: 24px;
  position: relative;
  background: #fff;
  overflow: visible;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--color-navy); font-weight: 700; font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none; min-height: 44px; flex: 0 0 auto;
}
.brand:hover, .brand:visited { text-decoration: none; color: var(--color-navy); }
.brand img { width: auto; height: 30px; }
.nav-pills {
  display: flex; align-items: center; gap: 4px;
  flex: 1; justify-content: center;
  background: none;
  border-radius: 0;
  padding: 0;
  margin: 0; list-style: none;
}
.nav-pills a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 12px;
  border-radius: var(--radius-md);
  color: var(--color-text); font-weight: 500; text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.nav-pills a:hover, .nav-pills a:visited { background: rgba(10,56,107,0.06); text-decoration: none; color: var(--color-text); }
.nav-pills a.is-current,
.nav-pills a.is-current:visited {
  background: transparent;
  color: var(--color-navy);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--color-navy);
  border-radius: 0;
}
.account-bar { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: 0 0 auto; }
.account-bar .skeleton {
  width: 120px; height: 36px; border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #eef1f5 0%, #f7f9fb 50%, #eef1f5 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}
@keyframes shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.menu-toggle {
  display: none; margin-left: auto;
  flex: 0 0 auto; white-space: nowrap;
  min-width: 44px; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--color-border); background: #fff;
  border-radius: var(--radius-md); color: var(--color-navy); cursor: pointer;
}
.nav-drawer {
  display: none; background: #fff; border-bottom: 1px solid var(--color-border);
  padding: 8px 16px 16px;
  position: relative;
  z-index: 55;
}
.nav-drawer a, .nav-drawer button {
  display: block; width: 100%; text-align: left;
  min-height: 44px; padding: 10px 12px;
  border: 0; background: none; color: var(--color-text);
  border-radius: var(--radius-md); text-decoration: none;
}
.nav-drawer a.is-current, .nav-drawer a.is-current:visited { background: var(--color-navy); color: #fff; font-weight: 700; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 12px 24px;
  border-radius: var(--radius-md); border: 1px solid transparent;
  font-weight: 600; cursor: pointer; text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn:hover, .btn:visited { text-decoration: none; }
.btn-primary, .btn-primary:visited { background: var(--color-orange); color: var(--color-on-orange); }
.btn-primary:hover { background: var(--color-orange-hover); color: var(--color-on-orange); }
.btn-primary:active { background: var(--color-orange-active); }
.btn-secondary, .btn-secondary:visited { background: #fff; color: var(--color-navy); border-color: var(--color-navy); }
.btn-secondary:hover { background: var(--color-info-bg); color: var(--color-navy); }
.btn-text, .btn-text:visited { background: none; color: var(--color-navy); padding-left: 12px; padding-right: 12px; }
.btn-text:hover { text-decoration: underline; }
.btn-danger, .btn-danger:visited { background: #fff; color: var(--color-danger); border-color: var(--color-danger); }
.btn-danger:hover { background: var(--color-danger-bg); color: var(--color-danger); }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--color-disabled-bg); color: var(--color-disabled-text);
  border-color: var(--color-border); cursor: not-allowed;
  transform: none; box-shadow: none;
}
.btn.is-loading { pointer-events: none; position: relative; }
.btn.is-loading > span { visibility: hidden; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px;
  border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.chip, .badge-member, .capsule {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 14px;
  border-radius: var(--radius-pill); font-weight: 600; font-size: 14px;
  text-decoration: none; border: 0; cursor: pointer; background: none;
}
.chip-points, .chip-points:visited { background: var(--color-info-bg); color: var(--color-navy); }
.chip-points:hover { text-decoration: none; background: #dce6f0; color: var(--color-navy); }
.badge-member { background: var(--color-navy); color: #fff; cursor: default; min-height: 32px; }
.capsule {
  min-height: 0; padding: 0;
  letter-spacing: 0.14em; font-size: 12px; font-weight: 600;
  border: 0; border-radius: 0;
  color: var(--color-navy); background: none; cursor: default;
  text-transform: none;
}
.capsule-on-dark { border: 0; color: var(--color-text-on-dark-secondary); background: transparent; }

/* Layout */
.site-main { flex: 1; overflow: visible; }
html, body { overflow-x: visible; }
.wrap { max-width: var(--content-width); margin: 0 auto; padding: 0 var(--page-gutter); }
.section {
  /* Vertical only. Horizontal gutter comes from .wrap / --page-gutter.
     padding: 112px 0 would zero left/right when .section shares a node with .wrap. */
  padding-top: 112px;
  padding-bottom: 112px;
}
.section-head { margin-bottom: 48px; }
.section-head h2 { margin: 12px 0 0; font-size: 36px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; }
.page-head {
  /* Vertical only. Horizontal gutter comes from .wrap / --page-gutter,
     so titles stay on the same axis as the header mark and body. */
  padding-top: 64px;
  padding-bottom: 8px;
  margin-bottom: 24px;
}
.page-head h1 {
  margin: 0 0 12px;
  font-size: 44px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.lead { font-size: 18px; line-height: 1.6; color: var(--color-text-secondary); text-wrap: pretty; }
.muted, .hint, .meta { color: var(--color-text-secondary); font-size: 14px; }
.demo-tag { font-size: 13px; color: var(--color-text-secondary); }
.page-head .demo-tag { font-size: 14px; }
.accent-line { box-shadow: inset 0 -3px 0 var(--color-orange); }

/* Hero */
.hero {
  background: var(--color-bg-hero); color: var(--color-text-on-dark);
  padding: 88px 0 104px; position: relative; overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 8% 18%, rgba(10,56,107,0.85), transparent 62%),
    radial-gradient(ellipse 50% 55% at 92% 88%, rgba(242,160,60,0.22), transparent 58%);
  pointer-events: none;
}
.hero-arc {
  position: absolute;
  width: min(72vw, 840px);
  height: min(72vw, 840px);
  right: -18%;
  top: 8%;
  border: 1px solid rgba(242,160,60,0.28);
  border-radius: 50%;
  pointer-events: none;
}
.hero-arc::after {
  content: "";
  position: absolute;
  inset: 48px;
  border: 1px solid rgba(10,56,107,0.45);
  border-radius: 50%;
}
.hero .wrap,
.hero .hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
  gap: 32px 64px;
  align-items: center;
  text-align: left;
  max-width: var(--content-width);
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--color-text-on-dark-secondary);
}
.logo-halo {
  width: 72px; height: 72px; margin: 0 0 28px;
  border-radius: 50%; background: #F5F7FA;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: 0 0 0 6px rgba(242,160,60,0.18), 0 0 0 12px rgba(10,56,107,0.4);
}
.logo-halo img { height: 36px; width: auto; }
.logo-halo--sm,
.hero-kicker .logo-halo {
  width: 48px; height: 48px; margin: 0;
  box-shadow: 0 0 0 4px rgba(242,160,60,0.18), 0 0 0 8px rgba(10,56,107,0.4);
}
.logo-halo--sm img,
.hero-kicker .logo-halo img { height: 24px; }
.hero h1,
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1.08;
  font-weight: 600;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero-title-line { display: block; }
.hero h1 .kw { color: var(--color-orange-on-navy); }
.hero .lead {
  color: var(--color-text-on-dark-secondary);
  max-width: 38em;
  margin: 0 0 32px;
}
.hero .lead .demo-tag {
  color: var(--color-text-on-dark-secondary);
  display: inline-block;
  white-space: nowrap;
  margin-left: 0.35em;
}
.hero-cta { display: flex; gap: 12px; justify-content: flex-start; flex-wrap: wrap; }
.hero-cta .btn-secondary, .hero-cta .btn-secondary:visited {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.72);
}
.hero-cta .btn-secondary:hover { background: rgba(255,255,255,0.16); color: #fff; }
.hero .hero-cta :focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--color-bg-hero);
}

/* Current hooks: place existing siblings into a 2-column stage */
.hero .wrap > .logo-halo { grid-column: 1; grid-row: 1; }
.hero .wrap > h1 { grid-column: 1; grid-row: 2; }
.hero .wrap > .lead { grid-column: 1; grid-row: 3; }
.hero .wrap > .hero-cta { grid-column: 1; grid-row: 4; }
.hero .wrap > .hero-cards,
.hero .wrap > .hero-index {
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: center;
  margin-top: 0;
}

/* Featured projects as a typographic index (not a 3-card wall) */
.hero-cards,
.hero-index {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0;
  text-align: left;
  counter-reset: hero-index;
  min-width: 0;
}
.hero-index { list-style: none; padding: 0; margin: 0; }
.hero-index-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--color-text-on-dark-secondary);
  font-family: var(--font-body);
}
.hero-index ol { list-style: none; margin: 0; padding: 0; }
.hero .project-card,
.hero-index li,
.hero-index-item {
  background: transparent;
  color: var(--color-text-on-dark);
  box-shadow: none;
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.16);
  border-radius: 0;
  padding: 20px 0 20px 52px;
  position: relative;
  display: block;
}
.hero .project-card:hover,
.hero-index li:hover,
.hero-index-item:hover {
  transform: none;
  box-shadow: none;
}
.hero .project-card::before {
  content: counter(hero-index, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 20px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-orange-on-navy);
  font-variant-numeric: tabular-nums;
}
.hero-index-num {
  position: absolute;
  left: 0;
  top: 20px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-orange-on-navy);
  font-variant-numeric: tabular-nums;
}
.hero .project-card h3,
.hero-index li h3,
.hero-index-item h3 {
  margin: 0 0 6px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}
.hero .project-card .muted,
.hero-index li .muted, .hero-index-item .muted { color: var(--color-text-on-dark-secondary); }
.hero .project-card .price-tag,
.hero-index li .price-tag, .hero-index-item .price-tag {
  color: #fff;
  margin: 8px 0 4px;
}
.hero .project-card .demo-tag,
.hero-index li .demo-tag, .hero-index-item .demo-tag,
.hero .project-card .demo-tag {
  color: var(--color-text-on-dark-secondary);
}
.hero .project-card .corner-tag {
  background: rgba(255,255,255,0.1);
  color: var(--color-text-on-dark-secondary);
}
.hero .project-card .btn-secondary,
.hero .project-card .btn-secondary:visited,
.hero-index .btn-secondary, .hero-index-item .btn-secondary,
.hero-index .btn-secondary:visited, .hero-index-item .btn-secondary:visited {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.72);
}
.hero .project-card .btn-secondary:hover,
.hero-index .btn-secondary:hover, .hero-index-item .btn-secondary:hover {
  background: rgba(255,255,255,0.16);
  color: #fff;
}

/* Steps — editorial timeline, not equal rounded cards */
.steps, .steps-line { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; position: relative; }
.steps::before, .steps-line::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(10,56,107,0.28);
  z-index: 0;
  pointer-events: none;
  transform-origin: left center;
}
.step-card, .step-row {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 28px 0 0;
  position: relative;
  z-index: 1;
}
.step-n, .step-no {
  width: auto; height: auto; border-radius: 0;
  background: none; color: var(--color-navy);
  display: block;
  font-family: var(--font-display);
  font-weight: 600; font-size: 32px; line-height: 1;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}
.step-card h3, .step-row h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600; line-height: 1.35;
}
.step-card p, .step-row p { margin: 0; color: var(--color-text-secondary); font-size: 14px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 64px; align-items: center; }
.atmos {
  min-height: 320px; border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
  background:
    linear-gradient(rgba(242,160,60,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px),
    radial-gradient(circle at 30% 40%, rgba(242,160,60,0.28), transparent 45%),
    radial-gradient(circle at 70% 60%, rgba(10,56,107,0.5), transparent 50%),
    var(--color-bg-hero);
  background-size: 48px 48px, 48px 48px, auto, auto, auto;
}
.atmos::before,
.atmos::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.atmos::before {
  width: 14px; height: 14px;
  left: 22%; top: 58%;
  background: rgba(242,160,60,0.7);
  box-shadow:
    46px -72px 0 3px rgba(255,255,255,0.28),
    120px -28px 0 -2px rgba(197,208,220,0.55),
    88px 64px 0 1px rgba(242,160,60,0.35);
  animation: atmosFloat 14s var(--ease-out) infinite;
}
.atmos::after {
  width: 10px; height: 10px;
  right: 24%; top: 32%;
  background: rgba(255,255,255,0.45);
  box-shadow:
    -64px 48px 0 2px rgba(242,160,60,0.32),
    36px 80px 0 -1px rgba(197,208,220,0.4);
  animation: atmosFloat 18s var(--ease-out) infinite reverse;
}
@keyframes atmosFloat {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  50% { transform: translateY(-10px); opacity: 1; }
}
.news-tease { list-style: none; margin: 0 0 24px; padding: 0; }
.news-tease li, .news-tease-item { padding: 16px 0; border-bottom: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 4px; }
.news-tease .meta,
.news-date {
  order: -1;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.04em;
}
.news-tease a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  color: var(--color-text);
}
.news-tease a:hover, .news-tease a:visited { color: var(--color-navy); }

/* Member band */
.band-member {
  background: var(--color-bg-band); color: var(--color-text-on-dark);
  padding: 96px 0;
}
.band-inner { display: grid; grid-template-columns: 0.7fr 1fr auto; gap: 32px 48px; align-items: center; }
.band-member h2 { margin: 8px 0 0; font-size: 36px; line-height: 1.2; font-weight: 600; }
.band-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.band-list li {
  background: none;
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.2);
  border-radius: 0;
  padding: 16px 0;
}
.band-member .btn-primary { justify-self: end; }
.band-member :focus-visible {
  outline: 2px solid var(--color-orange); outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--color-bg-hero);
}

/* Cards / grids */
.card, .project-card, .news-card, .sku-card, .panel {
  background: var(--color-bg-card); border-radius: var(--radius-lg);
  box-shadow: none; padding: 24px;
  border: 1px solid var(--color-border);
}
.project-card, .news-card, .sku-card {
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.project-card {
  display: flex; flex-direction: column; align-items: flex-start; height: 100%;
}
.project-card .muted { flex: 1; }
.project-card .btn { margin-top: 8px; }
.news-card + .news-card { margin-top: 20px; }
.project-card:hover, .news-card:hover, .sku-card:hover {
  border-color: var(--color-navy); box-shadow: var(--shadow-card);
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.project-card h3, .news-card h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.35; }
.price-tag { color: var(--color-navy); font-weight: 600; margin: 12px 0; font-variant-numeric: tabular-nums; }
.corner-tag {
  display: inline-block; font-size: 13px; font-weight: 600;
  background: var(--color-bg-subtle); color: var(--color-text-secondary);
  border-radius: var(--radius-sm); padding: 4px 8px; margin-bottom: 8px;
}
.sku-card { cursor: pointer; text-align: left; width: 100%; }
.sku-card.is-selected {
  border-color: var(--color-navy);
  background: #E8EEF4;
  box-shadow: 0 0 0 2px var(--color-navy);
}
.sku-card.is-selected:hover { transform: none; }

/* 资讯列表改为刊式目录行，避免与通用白卡抢样式 */
.news-card {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--color-border);
  border-radius: 0;
  box-shadow: none;
  padding: 28px 0;
}
.news-card + .news-card { margin-top: 0; }
.news-card:last-child { border-bottom: 1px solid var(--color-border); }
.news-card:hover {
  border-color: var(--color-border);
  box-shadow: none;
}
.news-card h3 { font-size: 26px; margin: 0 0 8px; }
.news-card .meta {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}
.news-card p { margin: 0; color: var(--color-text-secondary); }

/* 企业文化：刊式目录行，不与个人中心 .panel 共用 */
.culture-index {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 24px;
}
.culture-row {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--color-border);
  border-radius: 0;
  box-shadow: none;
  padding: 28px 0;
}
.culture-row:last-child { border-bottom: 1px solid var(--color-border); }
.culture-row h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
}
.culture-row p {
  margin: 0;
  color: var(--color-text-secondary);
  max-width: 40rem;
}
.culture-index + .hint { margin: 8px 0 64px; }

/* Project listing (editorial rows, not a card wall) */
.project-index {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 64px;
}
.project-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "tag tag cta"
    "title title cta"
    "desc desc cta"
    "meta meta cta";
  column-gap: 32px;
  row-gap: 4px;
  align-items: start;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--color-border);
  border-radius: 0;
  box-shadow: none;
  padding: 28px 0;
}
.project-row:hover { border-color: var(--color-border); box-shadow: none; }
.project-row .corner-tag {
  grid-area: tag;
  justify-self: start;
  width: auto;
  max-width: max-content;
  margin: 0 0 4px;
  background: none;
  padding: 0;
  border-radius: 0;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
}
.project-row h3 {
  grid-area: title;
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
}
.project-row .muted { grid-area: desc; margin: 0; }
.project-row .price-tag { display: inline; margin: 8px 12px 0 0; }
.project-row .demo-tag { display: inline; margin: 8px 0 0; color: var(--color-text-secondary); }
.project-row .price-tag,
.project-row .demo-tag { grid-area: meta; }
.project-row .btn { grid-area: cta; margin: 0; align-self: center; justify-self: end; }
@media (max-width: 767px) {
  .project-row {
    grid-template-columns: 1fr;
    grid-template-areas: "tag" "title" "desc" "meta" "cta";
  }
  .project-row .btn { justify-self: start; margin-top: 12px; }
}

/* Forms */
.auth-card, .form-card {
  max-width: 480px; margin: 24px auto 80px;
  background: #fff; padding: 32px; border-radius: var(--radius-lg);
  box-shadow: none; border: 1px solid var(--color-border);
}
.auth-card h1, .form-card h1 {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 4px;
}
#demo-hints {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  margin-top: 16px;
}
#demo-hints .btn-text {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  height: auto;
  min-height: 44px;
  padding: 10px 12px;
  text-align: left;
  white-space: normal;
  line-height: 1.45;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 44px; padding: 12px 16px;
  border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: #fff;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--color-border-strong); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible {
  outline: 2px solid var(--color-navy); outline-offset: 2px;
}
.field.is-error input, .field.is-error textarea { border-color: var(--color-danger); }
.field-error { color: var(--color-danger); font-size: 14px; margin-top: 4px; }
.help { color: var(--color-text-secondary); font-size: 14px; margin: 0 0 8px; }
.alert {
  border-radius: var(--radius-sm); padding: 12px 16px; margin: 12px 0;
}
.alert-success { background: var(--color-success-bg); color: var(--color-success); }
.alert-warning { background: var(--color-warning-bg); color: var(--color-warning); }
.alert-danger { background: var(--color-danger-bg); color: var(--color-danger); }
.alert-info { background: var(--color-info-bg); color: var(--color-navy); }

/* Account */
.account-grid { display: grid; gap: 24px; padding-bottom: 64px; }
.panel h2 { margin: 0 0 16px; font-size: 22px; font-weight: 600; }
.ledger { width: 100%; border-collapse: collapse; font-size: 14px; }
.ledger th, .ledger td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--color-border); }
.ledger th { color: var(--color-text-secondary); font-weight: 600; }
.ledger .ledger-project { white-space: nowrap; }
.ledger .neg { color: var(--color-danger); }
.ledger .pos { color: var(--color-success); }
.mask-chip {
  display: inline-block; background: var(--color-mask-bg); color: var(--color-text-secondary);
  border-radius: var(--radius-sm); padding: 2px 8px; margin-right: 6px; font-variant-numeric: tabular-nums;
}
.menu { position: relative; }
.menu-list {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-dialog);
  min-width: 200px; padding: 8px; z-index: 50;
  animation: rise 200ms var(--ease-out) both;
}
.menu-list a, .menu-list button {
  display: block; width: 100%; text-align: left;
  background: none; border: 0; padding: 10px 12px; min-height: 44px;
  border-radius: var(--radius-sm); color: var(--color-text); cursor: pointer;
}
.menu-list a:hover, .menu-list button:hover { background: var(--color-bg-subtle); text-decoration: none; }

/* Dialog / toast */
.dialog-overlay {
  position: fixed; inset: 0; background: var(--color-overlay);
  display: flex; align-items: center; justify-content: center;
  z-index: 80; padding: 16px;
  animation: fadeIn var(--dur-enter) var(--ease-out) both;
}
.dialog {
  background: #fff; border-radius: var(--radius-xl); padding: 32px;
  max-width: 480px; width: 100%; box-shadow: var(--shadow-dialog);
  animation: dialogIn var(--dur-enter) var(--ease-out) both;
}
.dialog h2 { margin: 0 0 12px; font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.dialog-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 24px; flex-wrap: wrap; }
.toast-root { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-dialog);
  padding: 12px 16px; min-width: 240px; max-width: 360px; border-left: 4px solid var(--color-navy);
  animation: toastIn var(--dur-enter) var(--ease-out) both;
}
.toast-success { border-left-color: var(--color-success); }
.toast-error { border-left-color: var(--color-danger); }
.toast-warning { border-left-color: var(--color-warning); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes dialogIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.order-steps { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.order-steps span {
  padding: 4px 10px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 600;
  background: var(--color-bg-subtle); color: var(--color-text-secondary);
}
.order-steps span.is-current { background: var(--color-navy); color: #fff; }
.order-steps span.is-done { background: var(--color-success-bg); color: var(--color-success); }
.order-steps span.is-failed,
.order-steps span.is-current.is-failed {
  background: var(--color-danger-bg); color: var(--color-danger);
}

/* Footer */
.site-footer {
  background: #fff; border-top: 1px solid var(--color-border);
  padding: 40px 0 24px; margin-top: auto;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer img { height: 44px; width: auto; }
.fine-print { font-size: 14px; font-weight: 500; color: var(--color-text-secondary); margin-top: 16px; }

.empty { text-align: center; padding: 32px 16px; color: var(--color-text-secondary); }
.asset-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.asset-list button, .asset-list .asset {
  width: 100%; text-align: left; background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 16px 20px; min-height: 44px; cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.asset-list button:hover, .asset-list .asset:hover {
  border-color: var(--color-navy); box-shadow: var(--shadow-card);
}
.lock-note { font-size: 14px; color: var(--color-text-secondary); }

pre.asset-body {
  display: block;
  margin: 16px 0 0;
  padding: 16px;
  max-height: 320px;
  overflow: auto;
  background: var(--color-bg-card);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.alert .asset-body { margin-top: 16px; }
.alert-success a { color: var(--color-navy); font-weight: 600; }
.alert-success a:hover { color: var(--color-navy-hover); }


/* Motion: hero entrance (load), below-fold reveal (scroll / view timeline) */
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes slidein { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes kwIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes haloPulse {
  0% { box-shadow: 0 0 0 10px rgba(242,160,60,0.16), 0 0 0 18px rgba(10,56,107,0.35); }
  42% { box-shadow: 0 0 0 14px rgba(242,160,60,0.28), 0 0 0 28px rgba(10,56,107,0.22), 0 0 40px rgba(242,160,60,0.22); }
  100% { box-shadow: 0 0 0 10px rgba(242,160,60,0.16), 0 0 0 18px rgba(10,56,107,0.35); }
}
@keyframes drawLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.logo-halo {
  opacity: 0;
  animation: rise var(--dur-hero) var(--ease-out) both, haloPulse 2.2s var(--ease-out) 550ms 1 both;
}
.hero h1, .hero .lead, .hero .hero-cta { opacity: 0; animation: rise var(--dur-hero) var(--ease-out) both; }
.hero h1 { animation-delay: 80ms; }
.hero h1 .kw { animation: kwIn 420ms var(--ease-out) 260ms both; }
.hero .lead { animation-delay: 180ms; }
.hero .hero-cta { animation-delay: 280ms; }

/* Above-the-fold hero cards: staggered slide-up after CTA */
.hero-cards .reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 500ms var(--ease-out) both;
}
.hero-cards .reveal-d1 { animation-delay: 380ms; }
.hero-cards .reveal-d2 { animation-delay: 480ms; }
.hero-cards .reveal-d3 { animation-delay: 580ms; }
.hero-cards .reveal-d4 { animation-delay: 680ms; }

/* Below-fold and inner pages: wait until in view when supported */
.reveal {
  opacity: 0;
  transform: translateY(16px);
}
.slide-in { opacity: 0; transform: translateX(-24px); }
.reveal.is-inview { animation: rise 520ms var(--ease-out) both; }
.slide-in.is-inview { animation: slidein 550ms var(--ease-out) both; }
.reveal-d1.is-inview, .news-tease li:nth-child(1) { animation-delay: 80ms; }
.reveal-d2.is-inview, .news-tease li:nth-child(2) { animation-delay: 160ms; }
.reveal-d3.is-inview, .news-tease li:nth-child(3) { animation-delay: 240ms; }
.reveal-d4.is-inview { animation-delay: 320ms; }

@supports (animation-timeline: view()) {
  .section-head,
  .split > div:last-child > .capsule,
  .split > div:last-child > h2,
  .split > div:last-child > .lead,
  .split > div:last-child > .btn,
  .news-tease li,
  .atmos {
    animation: rise 520ms var(--ease-out) both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
  .news-tease li:nth-child(2) { animation-range: entry 4% entry 44%; }
  .news-tease li:nth-child(3) { animation-range: entry 8% entry 48%; }
  .split > div:last-child > .btn { animation-range: entry 12% entry 50%; }
  .reveal:not(.hero-cards .reveal) {
    animation: rise 520ms var(--ease-out) both;
    animation-timeline: view();
    animation-range: entry 0% entry 36%;
  }
  .steps .reveal-d2, .steps-line .reveal-d2 { animation-range: entry 6% entry 40%; }
  .steps .reveal-d3, .steps-line .reveal-d3 { animation-range: entry 12% entry 44%; }
  .steps .reveal-d4, .steps-line .reveal-d4 { animation-range: entry 18% entry 48%; }
  .slide-in {
    animation: slidein 600ms var(--ease-out) both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
  .steps::before, .steps-line::before {
    animation: drawLine 600ms var(--ease-out) both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}

@supports not (animation-timeline: view()) {
  .reveal:not(.hero-cards .reveal),
  .slide-in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal, .hero h1, .hero-title, .hero-kicker, .hero .lead, .hero-cta, .logo-halo, .slide-in,
  .hero-index,
  .hero h1 .kw, .section-head, .news-tease li, .atmos,
  .split > div:last-child > .capsule,
  .split > div:last-child > h2,
  .split > div:last-child > .lead,
  .split > div:last-child > .btn {
    opacity: 1; transform: none;
  }
  .btn.is-loading::after { animation: spin 0.7s linear infinite !important; }
  .atmos::before, .atmos::after { animation: none !important; }
}

@media (max-width: 1199px) {
  :root { --page-gutter: 32px; }
  .steps, .steps-line, .grid-3 { grid-template-columns: 1fr 1fr; }
  .band-inner { grid-template-columns: 1fr; }
  .band-member .btn-primary { justify-self: start; }
  .steps::before, .steps-line::before { display: none; }
}
@media (max-width: 960px) {
  .nav-pills { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-drawer.is-open { display: block; }
  .hero h1, .hero-title { font-size: 40px; }
  :root { --page-gutter: 16px; }
  .header-inner { gap: 8px; }
  .account-bar { gap: 6px; }
  .account-bar .btn { padding-left: 12px; padding-right: 12px; white-space: nowrap; flex-shrink: 0; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .hero .wrap,
  .hero .hero-stage {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero .wrap > .logo-halo,
  .hero .wrap > h1,
  .hero .wrap > .lead,
  .hero .wrap > .hero-cta,
  .hero .wrap > .hero-cards,
  .hero .wrap > .hero-index {
    grid-column: 1;
    grid-row: auto;
  }
  .page-head { padding-top: 48px; }
  .page-head h1 { font-size: 36px; }
}
@media (max-width: 767px) {
  :root { --page-gutter: 16px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .steps, .steps-line, .grid-3, .grid-2, .split, .band-list { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 32px; }
  .hero { padding: 56px 0 64px; }
  .hero h1, .hero-title { font-size: 36px; }
  .logo-halo { width: 64px; height: 64px; }
  .logo-halo img { height: 32px; }
  .news-tease a { font-size: 20px; }
}
@media (max-width: 480px) {
  :root { --page-gutter: 16px; }
  .header-inner { gap: 6px; }
  .brand { gap: 6px; font-size: 18px; }
  .brand img { height: 26px; }
  .account-bar { gap: 4px; }
  .account-bar .btn,
  .menu-toggle { padding-left: 10px; padding-right: 10px; }
}

/* T-017 钩子与弹层锁定。版式、字体与英雄区气质由设计师在上文主规范中落地，请勿把这段当成视觉定稿。 */
html.is-dialog-open,
html.is-dialog-open body {
  overflow: hidden;
}
.dialog {
  max-height: min(86vh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dialog-body {
  overflow: auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: anywhere;
}
.page-rule {
  height: 1px;
  border: 0;
  background: var(--color-border);
  margin: 12px 0 20px;
  max-width: 7rem;
}

.hero-atmos {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(242, 160, 60, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 56, 107, 0.10) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 18% 30%, #000 12%, transparent 76%);
  mask-image: radial-gradient(ellipse 80% 70% at 18% 30%, #000 12%, transparent 76%);
}
html.has-js-motion .hero-title .split-char,
html.has-js-motion .hero h1 .split-char,
html.has-js-motion .hero h1 .split-word {
  display: inline-block;
}
html.has-js-motion .hero h1 .split-word {
  white-space: normal;
}
html.has-js-motion .logo-halo,
html.has-js-motion .hero-kicker,
html.has-js-motion .hero-title,
html.has-js-motion .hero-title-line,
html.has-js-motion .hero h1,
html.has-js-motion .hero .lead,
html.has-js-motion .hero-cta,
html.has-js-motion .hero h1 .kw,
html.has-js-motion .hero-index,
html.has-js-motion .hero-index-item,
html.has-js-motion .hero-cards .reveal,
html.has-js-motion .reveal,
html.has-js-motion .step-row,
html.has-js-motion .slide-in,
html.has-js-motion .section-head,
html.has-js-motion .news-tease li,
html.has-js-motion .news-tease-item,
html.has-js-motion .atmos,
html.has-js-motion .band-member,
html.has-js-motion .split > div:last-child > .capsule,
html.has-js-motion .split > div:last-child > h2,
html.has-js-motion .split > div:last-child > .lead,
html.has-js-motion .split > div:last-child > .btn {
  animation: none;
  opacity: 1;
  transform: none;
}
@supports (animation-timeline: view()) {
  html.has-js-motion .section-head,
  html.has-js-motion .split > div:last-child > .capsule,
  html.has-js-motion .split > div:last-child > h2,
  html.has-js-motion .split > div:last-child > .lead,
  html.has-js-motion .split > div:last-child > .btn,
  html.has-js-motion .news-tease li,
  html.has-js-motion .news-tease-item,
  html.has-js-motion .atmos,
  html.has-js-motion .reveal:not(.hero-cards .reveal),
  html.has-js-motion .slide-in,
  html.has-js-motion .band-member,
  html.has-js-motion .step-row,
  html.has-js-motion .steps::before,
  html.has-js-motion .steps-line::before {
    animation: none;
    animation-timeline: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-atmos, .hero-grid, .hero-arc { display: none; }
}


/* ========================================================================
   T-025 orderly homepage
   浅色刊头 + 单张主视觉；能力用刊式发丝网格；官方项目规整四宫格。
   默认即完整静态版。不用扇形、叠压、Flip 换布局或跑马灯。
   ======================================================================== */

body {
  background-color: var(--color-bg-page);
  background-image:
    linear-gradient(rgba(245, 247, 250, 0.94), rgba(245, 247, 250, 0.94)),
    url("../assets/decor/paper-texture.jpg");
  background-size: auto, 720px;
  background-repeat: repeat;
}

#projects-hot,
#home-projects,
#home-capabilities,
#home-atmos,
#home-plans {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

/* ---- Masthead: light editorial, one main visual ---- */
.home-page { position: relative; }

.home-masthead {
  background: transparent;
  color: var(--color-text);
  padding: 32px 0 24px;
  position: relative;
  overflow: visible;
}

.home-masthead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(16rem, 0.95fr);
  gap: 48px 64px;
  align-items: center;
  padding: 48px 0 64px;
}

.home-masthead-copy { min-width: 0; }

.home-masthead .hero-kicker {
  color: var(--color-text-secondary);
}

.home-masthead .hero-title,
.home-masthead h1 {
  color: var(--color-text);
  font-size: clamp(44px, 6vw, 80px);
  margin: 0 0 20px;
}

.home-masthead .hero-title .kw,
.home-masthead .kw {
  color: var(--color-accent-on-light);
}

/* T-017 leftover entrance hiding / halo pulse must not apply on the new masthead.
   Default is a complete static layout; JS grid reveals handle motion. */
.home-masthead .logo-halo,
.home-masthead .hero-cta {
  opacity: 1;
  animation: none;
}

.home-masthead .lead {
  color: var(--color-text-secondary);
  max-width: 38em;
  margin: 0 0 28px;
}

.home-masthead .lead .demo-tag { color: var(--color-text-secondary); }

.home-masthead .hero-cta .btn-secondary,
.home-masthead .hero-cta .btn-secondary:visited {
  background: #fff;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.home-masthead .hero-cta .btn-secondary:hover {
  background: var(--color-info-bg);
  color: var(--color-navy);
}

.home-masthead .hero-cta :focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px #fff;
}

.home-masthead-visual {
  margin: 0;
  min-width: 0;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.home-masthead-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center top;
  max-width: none;
  display: block;
}

.home-masthead-visual figcaption {
  margin: 0;
  padding: 10px 14px 12px;
  font-size: 13px;
  color: var(--color-text-secondary);
  background: #fff;
  border-top: 1px solid var(--color-border);
}

/* ---- Capabilities: typographic 2×2 with hairlines, not white cards ---- */
.capability-index {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--color-border);
}

.capability-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  grid-template-areas:
    "num title"
    "num body";
  column-gap: 8px;
  row-gap: 6px;
  align-items: start;
  padding: 28px 36px 28px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  box-shadow: none;
}

.capability-index .capability-row:nth-child(odd) {
  padding-right: 40px;
  border-right: 1px solid var(--color-border);
}

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

.capability-num {
  grid-area: num;
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-navy);
  font-variant-numeric: tabular-nums;
}

.capability-row h3 {
  grid-area: title;
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
}

.capability-row p:not(.capability-num) {
  grid-area: body;
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.65;
  max-width: 36em;
}

/* ---- One full-bleed navy chapter, copy only ---- */
.home-atmos {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--color-text-on-dark);
  background: var(--color-bg-hero);
}

.home-atmos-frame {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-atmos-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-atmos::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 31, 58, 0.35) 0%, rgba(7, 31, 58, 0.72) 100%);
}

.home-atmos-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 96px;
  padding-bottom: 96px;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.home-atmos-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
}

.home-atmos-copy p {
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
  color: var(--color-text-on-dark-secondary);
}

.home-atmos :focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 2px;
}

/* ---- Official projects: editorial catalog grid (aligned plates + captions) ---- */
.home-projects .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.home-projects .section-head .btn-text {
  padding-left: 0;
  padding-right: 0;
  flex: 0 0 auto;
}

.home-project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 32px;
}

.home-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  color: var(--color-text);
  text-decoration: none;
}

.home-card-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}

.home-card:hover {
  transform: none;
  box-shadow: none;
}

.home-card:hover .home-card-media {
  border-color: var(--color-navy);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.home-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  max-width: none;
}

/* Mid/far: fill the plate like neighboring covers — do not use a 10%
   inset (that value makes chrome readable at desktop grid width).
   Soften with blur so hallucinated micro-copy stays illegible.
   Image is oversized (not transform) to hide the blur fringe;
   reduced-motion `transform: none` cannot undo the inset or blur. */
.home-card.is-mid .home-card-media,
.home-card-media.is-mid {
  background: #e8eef4;
}

.home-card.is-mid .home-card-media img,
.home-card-media.is-mid img {
  width: 108%;
  height: 108%;
  max-width: none;
  margin: -4%;
  object-fit: cover;
  object-position: center 20%;
  filter: blur(3.5px);
}

.home-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px 0 0;
  flex: 1;
}

.home-card-body h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.home-card-body h3 a,
.home-card-body h3 a:visited {
  color: var(--color-text);
  text-decoration: none;
}

.home-card-body h3 a:hover { color: var(--color-navy); text-decoration: none; }

.home-card-body .muted { margin: 0; }

.home-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin: 10px 0 4px;
}

.home-card-body .price-tag { margin: 0; font-size: 13px; }

.home-card-body .demo-tag { margin: 0; }

.home-card-body .btn-text {
  margin-top: 4px;
  padding-left: 0;
  padding-right: 0;
}

/* ---- Closing entries: aligned editorial plates, not poster tiles ---- */
.home-close { padding-top: 48px; }

.home-close-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 32px;
}

.close-entry {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  background: none;
  min-height: 0;
}

.close-entry:hover,
.close-entry:visited {
  text-decoration: none;
  color: inherit;
}

.close-entry-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}

.close-entry-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.close-entry:hover .close-entry-media {
  border-color: var(--color-navy);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.close-entry-body {
  display: block;
  padding: 16px 0 0;
}

.close-entry-body .capsule { display: inline-flex; margin-bottom: 8px; }

.close-entry-body h2 {
  margin: 0 0 6px;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text);
}

.close-entry-body p {
  margin: 0;
  color: var(--color-text-secondary);
}

/* ---- Membership: two paid tiers, 3-year emphasized; note is not a plan ---- */
.plan-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  padding-bottom: 8px;
}

.plan-card,
.member-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.plan-card h3,
.member-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
}

.plan-price {
  margin: 0 0 16px;
  color: var(--color-navy);
  font-variant-numeric: tabular-nums;
}

.plan-price strong {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
}

.plan-price span { font-size: 16px; font-weight: 600; }

.plan-card ul,
.member-card ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  color: var(--color-text-secondary);
  font-size: 14px;
  flex: 1;
}

.plan-card li,
.member-card li {
  padding: 8px 0;
  border-top: 1px solid var(--color-border);
}

.plan-card .btn,
.member-card .btn { margin-top: auto; }

.plan-card.is-featured,
.plan-card.is-popular,
.member-card.is-featured,
.member-card.is-popular {
  border-color: var(--color-navy);
  box-shadow: 0 0 0 2px var(--color-navy), var(--shadow-card);
}

.plan-flag {
  position: absolute;
  top: 12px;
  right: 16px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-navy);
}

.plan-card-note {
  background: var(--color-bg-subtle);
  border-style: dashed;
  box-shadow: none;
}

.plan-card-note .plan-price { color: var(--color-text); }

.plan-card-note .plan-price strong { font-size: 36px; }

/* ---- Reduced motion / no-JS: complete static layout, nothing left at opacity 0 ---- */
html.is-reduced-motion .home-masthead,
html.is-reduced-motion .home-masthead .hero-kicker,
html.is-reduced-motion .home-masthead .hero-title,
html.is-reduced-motion .home-masthead .hero-title-line,
html.is-reduced-motion .home-masthead .lead,
html.is-reduced-motion .home-masthead .hero-cta,
html.is-reduced-motion .home-masthead-visual,
html.is-reduced-motion .home-page .reveal-item,
html.is-reduced-motion .capability-row,
html.is-reduced-motion .home-card,
html.is-reduced-motion .plan-card,
html.is-reduced-motion .member-card,
html.is-reduced-motion .close-tile,
html.is-reduced-motion .close-entry,
html.is-reduced-motion .close-entry-media,
html.is-reduced-motion .home-card-media,
html.is-reduced-motion .page-head {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .home-masthead,
  .home-masthead .hero-kicker,
  .home-masthead .hero-title,
  .home-masthead .hero-title-line,
  .home-masthead .lead,
  .home-masthead .hero-cta,
  .home-masthead-visual,
  .home-page .reveal-item,
  .capability-row,
  .home-card,
  .plan-card,
  .member-card,
  .close-tile,
  .close-entry,
  .close-entry-media,
  .home-card-media,
  .page-head {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  .home-card:hover,
  .home-card:hover .home-card-media,
  .close-tile:hover,
  .close-entry:hover,
  .close-entry:hover .close-entry-media { transform: none; }
}

@media (max-width: 960px) {
  .home-masthead-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 24px 0 40px;
  }
  .home-masthead .hero-title,
  .home-masthead h1 { font-size: 40px; }
  .capability-index { grid-template-columns: 1fr; }
  .capability-index .capability-row:nth-child(odd),
  .capability-index .capability-row:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-right: 0;
  }
  .plan-cards,
  .home-close-grid,
  .home-project-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .home-masthead .hero-title,
  .home-masthead h1 { font-size: 36px; }
  .home-atmos-copy { padding-top: 72px; padding-bottom: 72px; }
  .capability-row h3 { font-size: 22px; }
}

/* ========================================================================
   T-029 craft homepage
   还原八种手法：逐词对比、顶栏穿过与余韵、同组卡 Flip、字上叠卡、
   带宽展开、围合跑马灯、色带变主推卡。默认仍是完整静态版。
   不是视觉冻结。
   ======================================================================== */

#projects-hot,
#home-reveal,
#home-band,
#home-capabilities,
#home-enclose,
#home-editorial,
#home-plans,
#home-close {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.is-flythrough,
.is-remnant,
.close-icons,
.close-icon,
.featured-color-band {
  pointer-events: none;
}
.is-flythrough,
.is-remnant {
  position: relative;
  z-index: 30;
}

/* T-033: withdraw the 11:09 #main pointer-yield scheme. Restore document
   default hit-testing. Decorative leftovers may stay inert on their own. */
.site-main,
#main {
  pointer-events: auto;
}

/* Motion-only / static-clone swap */
.is-motion-only { display: none; }
html.has-js-motion .is-motion-only { display: block; }
html.has-js-motion [data-static-clone] { display: none !important; }

/* T-033: do not pre-hide CTAs at opacity 0 waiting for arrival tweens. */

.split-word, .split-char, [data-unit] { display: inline-block; will-change: opacity, transform; }
.home-hero .kw,
.home-capabilities .kw,
.cap-title .kw,
.home-band-copy .kw {
  color: var(--color-accent-on-light);
}
.kw-on-dark { color: var(--color-orange); }

/* ---- A. Hero ---- */
.home-hero {
  position: relative;
  overflow: visible;
  color: var(--color-text);
  padding: 12px 0 8px;
}
.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 1fr);
  gap: 32px 40px;
  align-items: center;
  min-height: calc(100vh - var(--header-h) - 32px);
  padding: 24px 0 56px;
}
.home-hero-copy { min-width: 0; position: relative; z-index: 2; }
.home-hero .hero-kicker {
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}
.home-hero .hero-title,
.home-hero h1 {
  color: var(--color-text);
  font-size: clamp(44px, 6vw, 80px);
  margin: 0 0 20px;
}
.home-hero .lead {
  color: var(--color-text-secondary);
  max-width: 38em;
  margin: 0 0 28px;
}
.home-hero .lead .demo-tag { color: var(--color-text-secondary); }
.home-hero .hero-cta .btn-secondary,
.home-hero .hero-cta .btn-secondary:visited {
  background: #fff;
  color: var(--color-navy);
  border-color: var(--color-navy);
}
.home-hero .hero-cta .btn-secondary:hover {
  background: var(--color-info-bg);
  color: var(--color-navy);
}
.home-hero .hero-cta :focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px #fff;
}
.home-hero-stage { position: relative; min-width: 0; min-height: 420px; }

.flip-cards.is-fan {
  position: relative;
  min-height: 440px;
}
.flip-cards.is-fan .flip-card {
  position: absolute;
  width: min(68%, 280px);
}
.flip-cards.is-fan .flip-card:nth-child(1) {
  left: 22%; top: 4%; z-index: 4;
  transform: rotate(2deg);
}
.flip-cards.is-fan .flip-card:nth-child(2) {
  left: 0; top: 20%; z-index: 3;
  transform: rotate(-3.5deg);
}
.flip-cards.is-fan .flip-card:nth-child(3) {
  right: 0; left: auto; top: 16%; z-index: 2;
  transform: rotate(3.5deg);
}
.flip-cards.is-fan .flip-card:nth-child(4) {
  left: 26%; top: 50%; z-index: 1;
  transform: rotate(-2deg);
}
.flip-cards.is-fan .home-card-chrome .muted,
.flip-cards.is-fan .home-card-chrome .btn-text { display: none; }
.flip-cards.is-fan .home-card-body { padding-top: 10px; }
.flip-cards.is-fan .home-card-body h3 { font-size: 16px; }

/* ---- B. Reveal cascade ---- */
.home-reveal {
  position: relative;
  overflow: visible;
  padding-top: 72px;
}
.home-reveal-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.1fr);
  gap: 32px 48px;
  align-items: start;
}
.home-reveal-copy h2 {
  margin: 12px 0 16px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.2;
}
.home-reveal-stage { position: relative; min-height: 520px; }

.flip-cards.is-cascade {
  position: relative;
  min-height: 520px;
}
.flip-cards.is-cascade .flip-card {
  position: absolute;
  width: 54%;
}
.flip-cards.is-cascade .flip-card:nth-child(1) { top: 0; left: 0; z-index: 4; }
.flip-cards.is-cascade .flip-card:nth-child(2) { top: 72px; left: 16%; z-index: 3; }
.flip-cards.is-cascade .flip-card:nth-child(3) { top: 144px; left: 32%; z-index: 2; }
.flip-cards.is-cascade .flip-card:nth-child(4) { top: 216px; left: 48%; z-index: 1; }
.flip-cards.is-cascade .home-card-chrome .muted,
.flip-cards.is-cascade .home-card-chrome .btn-text { display: none; }

/* ---- C. Media band ---- */
.home-band {
  position: relative;
  overflow: visible;
  padding: 48px 0 0;
  color: var(--color-text-on-dark);
}
.home-band-copy {
  position: relative;
  z-index: 2;
  padding: 24px 48px 32px;
}
.home-band-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 64px);
  color: var(--color-text);
}
.home-band-copy .lead { color: var(--color-text-secondary); max-width: 36em; }
.home-band-media {
  position: relative;
  z-index: 1;
  overflow: visible;
  height: min(62vh, 560px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.home-band-frame {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  height: 88px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-navy);
  position: sticky;
  bottom: 0;
  flex: 0 0 auto;
}
.home-band-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
html.is-reduced-motion .home-band-frame { height: 100%; }
@media (prefers-reduced-motion: reduce) {
  .home-band-frame { height: 100%; }
}

/* ---- E/F. Capabilities type-punch ---- */
.home-capabilities {
  position: relative;
  overflow: visible;
  padding: 48px 0 80px;
}
.cap-stage {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 48px 24px 24px;
}
.cap-title {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 16em;
  text-align: center;
  font-size: clamp(36px, 5.6vw, 76px);
  line-height: 1.15;
  color: var(--color-text);
}
.flip-cards.is-stack {
  position: absolute;
  inset: 8% 8% 6%;
  z-index: 2;
}
.flip-cards.is-stack .flip-card {
  position: absolute;
  width: min(320px, 56vw);
}
.flip-cards.is-stack .flip-card:nth-child(1) { left: 8%; top: 6%; transform: rotate(-2deg); }
.flip-cards.is-stack .flip-card:nth-child(2) { right: 10%; top: 10%; left: auto; transform: rotate(2.5deg); }
.flip-cards.is-stack .flip-card:nth-child(3) { left: 18%; bottom: 8%; top: auto; transform: rotate(1.5deg); }
.flip-cards.is-stack .flip-card:nth-child(4) { right: 16%; bottom: 4%; left: auto; top: auto; transform: rotate(-1.5deg); }
.flip-cards.is-stack .home-card-chrome { opacity: 0; }
.cap-pane { padding-top: 16px; padding-bottom: 8px; position: relative; z-index: 3; min-height: 920px; }
.flip-cards.is-pane {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
  min-height: 920px;
}
.flip-cards.is-pane .flip-card { position: relative; width: auto; }

/* ---- G. Enclose marquees ---- */
.home-enclose {
  position: relative;
  overflow: visible;
  padding: 72px 0;
  text-align: center;
}
.enclose-copy { position: relative; z-index: 2; padding: 28px 0; }
.enclose-copy h2 {
  margin: 12px 0 0;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.2;
}
.marquee {
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee--top { transform: translateY(6px); }
.marquee--bottom { transform: translateY(-6px); }
.marquee-track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  will-change: transform;
}
.marquee--top .marquee-item { width: 160px; height: 108px; }
.marquee--bottom .marquee-item { width: 132px; height: 90px; }
.marquee-item {
  flex: 0 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-subtle);
}
.marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.marquee-item.is-mid img {
  width: 108%;
  height: 108%;
  max-width: none;
  margin: -4%;
  object-fit: cover;
  object-position: center 20%;
  filter: blur(3.5px);
}

/* ---- H. Editorial news + culture ---- */
.home-editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 32px;
}

/* ---- J. Featured masonry ---- */
.home-featured .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.featured-stage {
  position: relative;
  min-height: 420px;
  overflow: visible;
}
.featured-color-band {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 72px;
  border-radius: var(--radius-xl);
  background: var(--color-orange);
  z-index: 0;
}
.featured-color-band.is-consumed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.featured-masonry {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1.2fr 0.9fr;
  grid-template-rows: auto auto;
  gap: 18px;
  align-items: start;
}
.featured-masonry .home-card:nth-child(1),
.featured-masonry .home-card.is-lifted {
  grid-column: 2;
  grid-row: 1 / span 2;
}
.featured-masonry .home-card.is-lifted,
.featured-masonry .home-card.is-featured {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 8px 8px 16px;
  box-shadow: 0 18px 40px rgba(18, 32, 51, 0.12);
  transform: translateY(-16px);
}
.masonry-fill {
  min-height: 96px;
  border-radius: var(--radius-md);
  background: var(--color-navy);
}
.masonry-fill.is-orange { background: rgba(242, 160, 60, 0.85); min-height: 72px; }

html.is-reduced-motion .featured-color-band { display: none; }
@media (prefers-reduced-motion: reduce) {
  .featured-color-band { display: none; }
}

/* ---- K. Membership fan ---- */
.plan-cards.is-fan {
  align-items: stretch;
}
.plan-cards.is-fan .member-card:nth-child(1) {
  transform: rotate(-2.5deg) translateY(14px);
}
.plan-cards.is-fan .member-card.is-featured,
.plan-cards.is-fan .member-card.is-popular {
  transform: rotate(1.8deg) translateY(-8px);
  z-index: 2;
}
.plan-cards.is-fan .plan-card-note {
  transform: none;
}
.plan-ticker {
  overflow: hidden;
  margin-top: 36px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
  pointer-events: none;
  color: var(--color-text-secondary);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.plan-ticker-track {
  display: flex;
  gap: 64px;
  width: max-content;
  will-change: transform;
}
.plan-ticker-track span { white-space: nowrap; }

/* ---- L. Close color field ---- */
.home-close {
  position: relative;
  overflow: visible;
  padding: 24px 0 0;
}
.close-band-frame {
  width: 100%;
  min-height: min(78vh, 720px);
  height: min(78vh, 720px);
  overflow: visible;
  background: transparent;
  color: var(--color-text-on-dark);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.close-band-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--color-navy);
  border-radius: inherit;
  z-index: 0;
}
html.has-js-motion .close-band-frame {
  height: 88px;
  min-height: 0;
}
html.has-js-motion .home-close {
  min-height: min(78vh, 720px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.close-field {
  min-height: 100%;
  padding: 72px 0 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}
.close-icons {
  position: absolute;
  inset: 12px 8% auto;
  display: flex;
  justify-content: center;
  gap: 18px;
  z-index: 30;
  pointer-events: none;
}
.close-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.close-icon img { width: 22px; height: auto; }
.close-icon.is-dot { background: #fff; }
.close-icon.is-mark { background: var(--color-orange); }
.close-icon.is-orange { background: var(--color-orange); }
.close-copy { position: relative; z-index: 2; text-align: center; }
.close-copy h2 {
  margin: 0 0 28px;
  color: #fff;
  font-size: clamp(32px, 5vw, 64px);
}
.close-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.close-cta .btn-secondary,
.close-cta .btn-secondary:visited {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.8);
}
.close-cta .btn-secondary:hover { background: rgba(255,255,255,0.12); color: #fff; }
html.is-reduced-motion .close-band-frame { height: auto; min-height: 56vh; }
@media (prefers-reduced-motion: reduce) {
  .close-band-frame { height: auto; min-height: 56vh; }
}

/* Mid-card illegibility also applies to flip / marquee / featured clones */
.featured-masonry .home-card.is-mid .home-card-media img,
.flip-card.is-mid .home-card-media img {
  width: 108%;
  height: 108%;
  max-width: none;
  margin: -4%;
  object-fit: cover;
  object-position: center 20%;
  filter: blur(3.5px);
}

/* Reduced motion / no-JS: complete static layout, nothing left at opacity 0.
   Do not undo mid-card blur / 108% cover. */
html.is-reduced-motion .js-arrive,
html.is-reduced-motion .split-word,
html.is-reduced-motion .split-char,
html.is-reduced-motion [data-unit],
html.is-reduced-motion .flip-card,
html.is-reduced-motion .home-card,
html.is-reduced-motion .plan-card,
html.is-reduced-motion .member-card,
html.is-reduced-motion .home-hero,
html.is-reduced-motion .home-hero .hero-kicker,
html.is-reduced-motion .home-hero .hero-title,
html.is-reduced-motion .home-hero .hero-title-line,
html.is-reduced-motion .home-hero .lead,
html.is-reduced-motion .home-hero .hero-cta,
html.is-reduced-motion .home-reveal-copy,
html.is-reduced-motion .home-band-copy,
html.is-reduced-motion .home-band-frame,
html.is-reduced-motion .cap-title,
html.is-reduced-motion .cap-pane,
html.is-reduced-motion .enclose-copy,
html.is-reduced-motion .marquee-track,
html.is-reduced-motion .marquee-item,
html.is-reduced-motion .editorial-entry,
html.is-reduced-motion .close-entry,
html.is-reduced-motion .close-entry-media,
html.is-reduced-motion .featured-masonry,
html.is-reduced-motion .featured-color-band,
html.is-reduced-motion .masonry-fill,
html.is-reduced-motion .home-card-media,
html.is-reduced-motion .home-card-chrome,
html.is-reduced-motion .home-card-body,
html.is-reduced-motion .plan-ticker,
html.is-reduced-motion .plan-ticker-track,
html.is-reduced-motion .close-band-frame,
html.is-reduced-motion .close-field,
html.is-reduced-motion .close-icons,
html.is-reduced-motion .close-icon,
html.is-reduced-motion .close-copy,
html.is-reduced-motion .close-cta,
html.is-reduced-motion .page-head,
html.is-reduced-motion .site-footer {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
html.is-reduced-motion .marquee-track,
html.is-reduced-motion .plan-ticker-track {
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .js-arrive,
  .split-word,
  .split-char,
  [data-unit],
  .flip-card,
  .home-card,
  .plan-card,
  .member-card,
  .home-hero,
  .home-hero .hero-kicker,
  .home-hero .hero-title,
  .home-hero .hero-title-line,
  .home-hero .lead,
  .home-hero .hero-cta,
  .home-reveal-copy,
  .home-band-copy,
  .home-band-frame,
  .cap-title,
  .cap-pane,
  .enclose-copy,
  .marquee-track,
  .marquee-item,
  .editorial-entry,
  .close-entry,
  .close-entry-media,
  .featured-masonry,
  .featured-color-band,
  .masonry-fill,
  .home-card-media,
  .home-card-chrome,
  .home-card-body,
  .plan-ticker,
  .plan-ticker-track,
  .close-band-frame,
  .close-field,
  .close-icons,
  .close-icon,
  .close-copy,
  .close-cta,
  .page-head,
  .site-footer {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  .marquee-track,
  .plan-ticker-track { will-change: auto; }
  .plan-cards.is-fan .member-card:nth-child(1),
  .plan-cards.is-fan .member-card.is-featured,
  .plan-cards.is-fan .member-card.is-popular,
  .plan-cards.is-fan .plan-card-note,
  .featured-masonry .home-card.is-lifted,
  .home-card:hover,
  .home-card:hover .home-card-media,
  .close-entry:hover,
  .close-entry:hover .close-entry-media { transform: none !important; }
}

@media (max-width: 960px) {
  .home-hero-grid,
  .home-reveal-grid,
  .home-editorial-grid,
  .flip-cards.is-pane,
  .featured-masonry {
    grid-template-columns: 1fr;
  }
  .home-hero-grid {
    min-height: 0;
    gap: 28px;
    padding: 16px 0 40px;
  }
  .home-hero .hero-title,
  .home-hero h1 { font-size: 40px; }
  .home-hero-stage { min-height: 0; }
  .flip-cards.is-fan,
  .flip-cards.is-cascade {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .flip-cards.is-fan .flip-card,
  .flip-cards.is-cascade .flip-card {
    position: relative;
    width: auto;
    left: auto; right: auto; top: auto;
    transform: none;
  }
  .home-reveal-stage { min-height: 0; }
  .cap-stage { min-height: 0; padding: 32px 16px; }
  .cap-title { font-size: 32px; }
  .featured-masonry .home-card:nth-child(1),
  .featured-masonry .home-card.is-lifted {
    grid-column: auto;
    grid-row: auto;
  }
  .featured-masonry .home-card.is-lifted,
  .featured-masonry .home-card.is-featured {
    transform: none;
  }
  .plan-cards.is-fan .member-card:nth-child(1),
  .plan-cards.is-fan .member-card.is-featured,
  .plan-cards.is-fan .member-card.is-popular {
    transform: none;
  }
  .plan-cards.is-fan { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .home-hero .hero-title,
  .home-hero h1 { font-size: 36px; }
  .flip-cards.is-fan,
  .flip-cards.is-cascade { grid-template-columns: 1fr; }
  .close-copy h2 { font-size: 32px; }
}


/* ========================================================================
   T-033 clear product site (09 brief, 11:41 hook + design sign-off)
   Light reading page. No fly-through, no #main pointer lock, no header
   sandwich for remnants. Existing T-029 rules above stay unused.
   ======================================================================== */

.site-header {
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}
.site-header::before {
  content: none;
  display: none;
}
.header-inner {
  z-index: auto;
  background: #fff;
}
.site-main,
#main,
#main.site-main {
  pointer-events: auto;
}

#home-masthead,
#projects-hot,
#home-capabilities,
#home-howto,
#home-plans,
#home-editorial,
#home-final {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.home-masthead .hero-title,
.home-masthead h1 {
  font-size: clamp(40px, 4.8vw, 64px);
  line-height: 1.2;
}
.home-masthead .hero-title .kw,
.home-masthead .kw {
  color: var(--color-accent-on-light);
}
.home-masthead-visual img {
  filter: none;
}

/* Hero / close CTAs stay visible; never start at opacity 0. */
.home-page .hero-cta,
.home-masthead .hero-cta,
.home-final .hero-cta,
html.has-js-motion .home-page .hero-cta,
html.has-js-motion .home-masthead .hero-cta,
html.has-js-motion .home-final .hero-cta {
  opacity: 1;
  visibility: visible;
  transform: none;
  animation: none;
}

/* Neutralize leftover T-029 tighter padding on the shared class name. */
.home-page .home-capabilities.section { padding-top: 112px; padding-bottom: 112px; }

/* Capabilities: 2×2 short what/how cards, not a second project entry grid. */
.home-cap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
}
.cap-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  min-width: 0;
}
.cap-card-media {
  display: block;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--color-bg-subtle);
}
.cap-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  max-width: none;
  display: block;
}
.cap-card-media.is-mid {
  background: #e8eef4;
}
.cap-card-media.is-mid img {
  width: 108%;
  height: 108%;
  max-width: none;
  margin: -4%;
  object-fit: cover;
  object-position: center 20%;
  filter: blur(3.5px);
}
.cap-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.cap-card-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
}
.cap-card-body p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.6;
}
.cap-label {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-navy);
}

/* How-to: three flat numbered steps, no timeline motion. */
.home-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-step {
  margin: 0;
  padding: 8px 0 0;
  border-top: 1px solid var(--color-border);
  min-width: 0;
}
.home-step-num {
  margin: 16px 0 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-navy);
  font-variant-numeric: tabular-nums;
}
.home-step h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}
.home-step p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

/* Pricing: two flat cards + a side note, no fan / ticker. */
.home-plans .plan-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
}
.plan-aside {
  margin: 24px 0 0;
  max-width: 46em;
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.65;
}
.plan-demo-note { margin-top: 12px; }

/* Close: simple solid navy band, same CTA pair as the hero. */
.home-final {
  background: var(--color-bg-band);
  color: var(--color-text-on-dark);
  padding: 88px 0;
}
.home-final-inner { text-align: center; }
.home-final h2 {
  margin: 0 0 28px;
  color: #fff;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.25;
  font-weight: 600;
}
.home-final .kw-on-dark { color: var(--color-orange); }
.home-final .hero-cta { justify-content: center; }
.home-final .btn-secondary,
.home-final .btn-secondary:visited {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.8);
}
.home-final .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.home-final :focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 2px;
}

html.is-reduced-motion .home-masthead,
html.is-reduced-motion .home-masthead .hero-kicker,
html.is-reduced-motion .home-masthead .hero-title,
html.is-reduced-motion .home-masthead .lead,
html.is-reduced-motion .home-masthead .hero-cta,
html.is-reduced-motion .home-masthead-visual,
html.is-reduced-motion .home-projects,
html.is-reduced-motion .home-capabilities,
html.is-reduced-motion .home-cap-grid,
html.is-reduced-motion .cap-card,
html.is-reduced-motion .cap-card-media,
html.is-reduced-motion .home-howto,
html.is-reduced-motion .home-steps,
html.is-reduced-motion .home-step,
html.is-reduced-motion .home-plans,
html.is-reduced-motion .plan-card,
html.is-reduced-motion .home-editorial,
html.is-reduced-motion .home-final,
html.is-reduced-motion .home-final h2,
html.is-reduced-motion .home-final .hero-cta,
html.is-reduced-motion .home-page .hero-cta,
html.is-reduced-motion .page-head {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .home-masthead,
  .home-masthead .hero-kicker,
  .home-masthead .hero-title,
  .home-masthead .lead,
  .home-masthead .hero-cta,
  .home-masthead-visual,
  .home-projects,
  .home-capabilities,
  .home-cap-grid,
  .cap-card,
  .cap-card-media,
  .home-howto,
  .home-steps,
  .home-step,
  .home-plans,
  .plan-card,
  .home-editorial,
  .home-final,
  .home-final h2,
  .home-final .hero-cta,
  .home-page .hero-cta,
  .page-head {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
  }
  /* Do not undo mid-card blur / 108% cover. */
}

@media (max-width: 960px) {
  .home-cap-grid,
  .home-steps,
  .home-plans .plan-cards {
    grid-template-columns: 1fr;
  }
  .home-page .home-capabilities.section { padding-top: 72px; padding-bottom: 72px; }
  .home-masthead .hero-title,
  .home-masthead h1 { font-size: 40px; }
  .home-final { padding: 64px 0; }
  .home-final h2 { font-size: 32px; }
}

@media (max-width: 767px) {
  .home-page .home-capabilities.section { padding-top: 56px; padding-bottom: 56px; }
  .home-masthead .hero-title,
  .home-masthead h1 { font-size: 36px; }
  .cap-card-body h3,
  .home-step h3 { font-size: 20px; }
}


/* ========================================================================
   T-038 visual concept (2026-11-13). Not a T-033 patch.
   Light wash, serif titles, static fan, concept illustrations, no fly-through.
   ======================================================================== */

body {
  background: #F4F7FB;
}

#main,
.site-main {
  pointer-events: auto;
}

/* Header remains solid white, z-index 40 (above page, below dialog 80 / toast 90). */
.site-header {
  background: #fff;
  z-index: 40;
}
.site-header .btn {
  border-radius: 10px;
}

.footer-brand,
.footer-brand:visited {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-navy);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}
.footer-brand:hover { text-decoration: none; color: var(--color-navy); }
.footer-brand img { height: 28px; width: auto; }
.footer-brand-block .fine-print { margin-top: 12px; }

.page-head h1,
.home-masthead .hero-title,
.projects-head h1,
.project-hero-copy h1,
.auth-card h1,
.home-page h2,
.projects-page h2,
.project-detail h2 {
  font-family: var(--font-display);
  color: var(--color-navy);
}

.page-head { padding-top: 72px; padding-bottom: 16px; }
.page-head h1 { font-size: 48px; letter-spacing: -0.03em; font-weight: 700; }
.auth-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(10, 56, 107, 0.06);
}

.title-accent { color: var(--color-accent-on-light); }

/* ---- Home masthead ---- */
.home-page { position: relative; background: transparent; }
.home-masthead {
  position: relative;
  padding: 64px 0 32px;
  overflow: hidden;
  z-index: auto;
}
.home-masthead-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 50% 55% at 88% 18%, rgba(242, 160, 60, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 8% 80%, rgba(10, 56, 107, 0.07), transparent 62%),
    linear-gradient(180deg, #F4F8FD 0%, #FFFFFF 72%);
}
.home-masthead-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.home-masthead .hero-title,
.home-masthead h1.hero-title {
  margin: 0 auto 12px;
  font-size: 64px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-navy);
  text-align: center;
  max-width: 18em;
}
.home-masthead .hero-sub {
  margin: 0 auto 36px;
  font-size: 22px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  text-align: center;
}

/* Reserved height keeps rotated cards from covering the CTA row.
   Stacking stays in the page context, always below .site-header (40). */
.hero-fan-shell {
  position: relative;
  z-index: 1;
  min-height: 420px;
  padding: 12px 0 80px;
  overflow: visible;
}
.hero-fan {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 360px;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-fan-slot {
  position: relative;
  flex: 0 0 248px;
  width: 248px;
  margin: 0 -36px;
  text-decoration: none;
  color: inherit;
  transform-origin: 50% 80%;
}
.hero-fan-slot,
.hero-fan-slot:hover,
.hero-fan-slot:visited { color: inherit; text-decoration: none; }
.hero-fan-slot.is-1 { transform: rotate(-8deg) translateY(30px); z-index: 1; }
.hero-fan-slot.is-2,
.hero-fan-slot.is-forward { transform: rotate(-2.5deg) translateY(-24px); z-index: 4; }
.hero-fan-slot.is-3 { transform: rotate(2.5deg) translateY(8px); z-index: 3; }
.hero-fan-slot.is-4 { transform: rotate(8deg) translateY(30px); z-index: 2; }

.hero-fan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 292px;
  padding: 22px 18px 16px;
  background: #fff;
  border: 1px solid rgba(10, 56, 107, 0.08);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(10, 56, 107, 0.10);
  text-align: left;
  overflow: hidden;
}
.hero-fan-slot.is-forward .hero-fan-card {
  background: #0A386B;
  border-color: transparent;
  box-shadow: 0 22px 48px rgba(10, 56, 107, 0.28);
  color: #fff;
}
.hero-fan-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-navy);
}
.hero-fan-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-text-secondary);
}
.hero-fan-slot.is-forward .hero-fan-card h3 { color: #fff; }
.hero-fan-slot.is-forward .hero-fan-card p { color: rgba(255, 255, 255, 0.84); }
.hero-fan-art {
  margin: 8px -6px -8px;
  height: 168px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-fan-art img,
.pick-card-art img,
.project-tile-art img,
.project-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: none;
}
.hero-fan-go {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(10, 56, 107, 0.08);
  color: var(--color-navy);
  pointer-events: none;
}
.hero-fan-slot.is-forward .hero-fan-go {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.hero-fan-slot:hover .hero-fan-card,
.hero-fan-slot:focus-visible .hero-fan-card {
  transform: translateY(-4px);
}
.hero-fan-slot:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 4px;
  border-radius: 24px;
}

/* CTAs sit under the fan, immediately visible, never opacity 0. */
.home-masthead .hero-cta {
  position: relative;
  z-index: 6;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 auto;
  padding: 8px 0 24px;
  opacity: 1 !important;
  visibility: visible !important;
}
.home-masthead .hero-cta .btn,
.project-cta-row .btn-primary {
  opacity: 1 !important;
  visibility: visible !important;
}
.home-masthead .hero-cta .btn-primary,
.home-masthead .hero-cta .btn-primary:visited,
.project-cta-row .btn-primary,
.project-cta-row .btn-primary:visited {
  background: var(--color-orange);
  color: var(--color-on-orange);
}
.home-masthead .hero-cta .btn-secondary,
.home-masthead .hero-cta .btn-secondary:visited,
.hero-cta .btn-secondary,
.hero-cta .btn-secondary:visited {
  background: #fff;
  color: var(--color-navy);
  border-color: var(--color-navy);
}
.home-masthead .hero-cta .btn-secondary:hover,
.hero-cta .btn-secondary:hover {
  background: var(--color-info-bg);
  color: var(--color-navy);
}
.home-masthead .hero-cta :focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 3px;
}

/* ---- Featured official projects (#projects-hot only here) ---- */
#projects-hot { scroll-margin-top: calc(var(--header-h) + 12px); }
.home-projects .section-head,
.home-capabilities .section-head,
.home-howto .section-head,
.home-plans .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.home-page .section-head h2 { margin: 8px 0 0; font-size: 36px; font-weight: 700; letter-spacing: -0.02em; }
.section-lead { margin: 8px 0 0; color: var(--color-text-secondary); font-size: 15px; }
.home-pick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pick-card,
.pick-card:visited {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(10, 56, 107, 0.08);
  border-radius: 18px;
  padding: 16px 16px 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 24px rgba(10, 56, 107, 0.05);
  min-height: 100%;
  transition: box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.pick-card:hover { text-decoration: none; color: inherit; box-shadow: 0 12px 28px rgba(10, 56, 107, 0.10); transform: translateY(-2px); }
.pick-card-art {
  display: block;
  height: 140px;
  margin-bottom: 14px;
  background: #F4F8FD;
  border-radius: 12px;
  overflow: hidden;
}
.pick-card-body h3 {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-navy);
}
.pick-card-body p { margin: 0; font-size: 14px; color: var(--color-text-secondary); }
.pick-card-go {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-navy);
}

/* ---- Capabilities: icon + short copy, not entry cards ---- */
.home-cap-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.cap-item { text-align: center; padding: 8px 8px 0; }
.cap-icon { width: 64px; height: 64px; margin: 0 auto 16px; }
.cap-item h3 {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-navy);
}
.cap-item p { margin: 0; font-size: 14px; color: var(--color-text-secondary); line-height: 1.65; }

/* ---- News band ---- */
.home-news {
  background: var(--color-navy);
  color: var(--color-text-on-dark);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.home-news::before {
  content: "";
  position: absolute;
  left: -40px;
  bottom: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 160, 60, 0.35), transparent 68%);
  pointer-events: none;
}
.home-news-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.home-news-intro h2 {
  margin: 8px 0 12px;
  font-size: 36px;
  color: #fff;
}
.home-news-intro p { margin: 0 0 24px; color: var(--color-text-on-dark-secondary); max-width: 28em; }
.btn-on-navy,
.btn-on-navy:visited {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.btn-on-navy:hover { background: rgba(255, 255, 255, 0.12); color: #fff; text-decoration: none; }
.home-news-list { list-style: none; margin: 0; padding: 0; }
.home-news-list li { border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.home-news-list a,
.home-news-list a:visited {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
}
.home-news-list a:hover { text-decoration: underline; color: #fff; }
.home-news-list time {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-on-dark-secondary);
  font-variant-numeric: tabular-nums;
}

/* ---- How-to and membership, flat ---- */
.home-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.home-step {
  background: #fff;
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 8px 24px rgba(10, 56, 107, 0.05);
  border: 1px solid rgba(10, 56, 107, 0.06);
}
.home-step-num {
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-accent-on-light);
  font-size: 14px;
}
.home-step h3 {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--color-navy);
}
.home-step p { margin: 0; color: var(--color-text-secondary); font-size: 14px; }

.home-plans .plan-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
}
.home-plans .plan-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 28px 24px;
  border: 1px solid rgba(10, 56, 107, 0.08);
  box-shadow: 0 8px 24px rgba(10, 56, 107, 0.05);
  position: relative;
}
.home-plans .plan-card.is-featured {
  border-color: var(--color-navy);
  box-shadow: 0 12px 32px rgba(10, 56, 107, 0.10);
}
.plan-aside,
.plan-demo-note { max-width: 800px; margin-top: 16px; }

/* ---- Project list ---- */
.projects-page { position: relative; padding-bottom: 64px; }
.projects-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 88% 8%, rgba(242, 160, 60, 0.16), transparent 32%),
    radial-gradient(circle at 10% 70%, rgba(10, 56, 107, 0.06), transparent 36%);
}
.projects-page .wrap { position: relative; z-index: 1; }
.projects-head h1 { font-size: 56px; letter-spacing: -0.03em; }
.projects-gallery-wrap { padding-top: 16px; }
.project-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.project-tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 16px;
  align-items: center;
  min-height: 260px;
  padding: 28px 24px;
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(10, 56, 107, 0.08);
  box-shadow: 0 12px 32px rgba(10, 56, 107, 0.06);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.project-tile:hover { text-decoration: none; color: inherit; box-shadow: 0 16px 36px rgba(10, 56, 107, 0.10); transform: translateY(-2px); }
.project-tile-copy { min-width: 0; }
.project-tile-copy::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin-bottom: 16px;
  background: var(--color-orange);
  border-radius: 2px;
  pointer-events: none;
}
.project-tile h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.3;
}
.project-tile .muted { margin: 0 0 20px; }
.project-tile-art {
  display: block;
  height: 200px;
}
.project-tile a:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 4px;
}

/* ---- Project detail ---- */
.project-detail { position: relative; padding: 32px 0 64px; }
.project-detail-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 50% 45% at 88% 18%, rgba(242, 160, 60, 0.20), transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(10, 56, 107, 0.06), transparent 60%);
}
.project-detail .wrap { position: relative; z-index: 1; }
.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: center;
  padding-top: 24px;
}
.project-hero-copy .demo-tag { margin-bottom: 8px; color: var(--color-text-secondary); }
.project-hero-copy h1 {
  margin: 0 0 16px;
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.project-hero-copy h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 10px;
  background: var(--color-orange);
  border-radius: 2px;
  pointer-events: none;
}
.project-hero-copy .lead { margin: 0 0 12px; font-size: 20px; }
.cap-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 20px 0 28px;
  padding: 0;
}
.cap-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 14px 6px 10px;
  background: #E8EEF4;
  color: var(--color-navy);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
.project-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.exp-points {
  margin: 0;
  font-size: 15px;
  color: var(--color-text);
}
.exp-points strong {
  color: var(--color-accent-on-light);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.project-hero-visual {
  min-height: 320px;
  height: 380px;
}
.project-assets { padding-top: 48px; }
.project-assets h2 { font-size: 24px; margin: 0 0 8px; }
.project-detail .asset-list { display: grid; gap: 14px; }
.project-detail .asset-list .asset {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(10, 56, 107, 0.10);
  border-radius: 16px;
  padding: 18px 18px 18px 16px;
  min-height: 88px;
  cursor: pointer;
}
.project-detail .asset-list .asset:hover {
  border-color: var(--color-navy);
  box-shadow: 0 8px 20px rgba(10, 56, 107, 0.08);
}
.asset-doc-ico {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #E8EEF4;
  color: var(--color-navy);
}
.asset-copy { flex: 1; min-width: 0; }
.asset-copy strong { display: block; color: var(--color-navy); font-size: 16px; }
.asset-copy .lock-note { margin-top: 4px; }
.asset-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--color-text-secondary);
  font-size: 13px;
}
.asset-action .btn { pointer-events: none; min-height: 40px; padding: 8px 16px; }
.asset-lock-text { color: var(--color-text-secondary); }

/* Mid-width: single column, no overlapping fan, no header traps */
@media (max-width: 960px) {
  .home-masthead { padding-top: 40px; }
  .home-masthead .hero-title,
  .home-masthead h1.hero-title { font-size: 40px; }
  .home-masthead .hero-sub { font-size: 18px; margin-bottom: 24px; }
  .hero-fan-shell {
    min-height: 0;
    padding: 0 0 24px;
  }
  .hero-fan {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 16px;
    align-items: stretch;
  }
  .hero-fan-slot,
  .hero-fan-slot.is-1,
  .hero-fan-slot.is-2,
  .hero-fan-slot.is-3,
  .hero-fan-slot.is-4,
  .hero-fan-slot.is-forward {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    margin: 0;
    transform: none;
    z-index: 1;
  }
  .hero-fan-card { min-height: 0; }
  .hero-fan-slot:hover .hero-fan-card,
  .hero-fan-slot:focus-visible .hero-fan-card { transform: none; }
  .home-pick-grid,
  .home-cap-row,
  .home-news-grid,
  .home-steps,
  .home-plans .plan-cards,
  .project-gallery,
  .project-hero {
    grid-template-columns: 1fr;
  }
  .project-tile {
    grid-template-columns: 1fr;
  }
  .projects-head h1 { font-size: 40px; }
  .project-hero-copy h1 { font-size: 36px; }
  .project-hero-visual { height: 260px; min-height: 200px; }
  .home-news-list a { grid-template-columns: 1fr; gap: 4px; }
  .asset-action { flex-wrap: wrap; justify-content: flex-end; }
}

@media (max-width: 767px) {
  .home-masthead .hero-title,
  .home-masthead h1.hero-title { font-size: 32px; }
  .projects-head h1 { font-size: 32px; }
  .project-hero-copy h1 { font-size: 32px; }
  .home-page .section-head h2,
  .home-news-intro h2 { font-size: 28px; }
  .project-detail .asset-list .asset { flex-wrap: wrap; }
}

/* Reduced motion: complete static layout. Keep the resting fan CSS.
   Do not leave any module at opacity 0. Do not zero .hero-fan-slot transforms. */
@media (prefers-reduced-motion: reduce) {
  .hero-fan-card,
  .home-projects,
  .home-capabilities,
  .home-news,
  .home-howto,
  .home-plans,
  .page-head,
  .project-tile,
  .project-hero-visual,
  .project-assets,
  .home-masthead .hero-cta,
  .home-masthead .hero-cta .btn,
  .project-cta-row,
  .project-cta-row .btn {
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
  }
  .hero-fan-card {
    transform: none !important;
  }
}
html.is-reduced-motion .hero-fan-card,
html.is-reduced-motion .home-projects,
html.is-reduced-motion .home-capabilities,
html.is-reduced-motion .home-news,
html.is-reduced-motion .home-howto,
html.is-reduced-motion .home-plans,
html.is-reduced-motion .page-head,
html.is-reduced-motion .project-tile,
html.is-reduced-motion .project-hero-visual,
html.is-reduced-motion .project-assets,
html.is-reduced-motion .home-masthead .hero-cta,
html.is-reduced-motion .home-masthead .hero-cta .btn,
html.is-reduced-motion .project-cta-row,
html.is-reduced-motion .project-cta-row .btn {
  opacity: 1 !important;
  visibility: visible !important;
  animation: none !important;
}
html.is-reduced-motion .hero-fan-card {
  transform: none !important;
}


/* Language switch and fan-card hover (T-043).
   Wordmark switches 智道科技 / Zido. Current language is navy on white,
   never an orange selected state. Fan hover keeps each card’s resting
   rotate/offset, uses the workbench navy highlight, and lifts about 4px.
   No rotate(0), no 28px lift, no scale. Hover stacking stays below
   .site-header (40) and below .hero-cta (6). */
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 auto;
}
.account-bar { margin-left: 0; }
.menu-toggle { margin-left: 0; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  padding: 2px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
}
.lang-switch button {
  min-height: 32px;
  min-width: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.lang-switch button.is-current,
.lang-switch button[aria-pressed="true"] {
  background: var(--color-navy);
  color: #fff;
}
.lang-switch button:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 2px;
}

/* Fan hover (T-043) and keyboard mutex (T-049): keep resting rotate/offset;
   navy highlight matches the workbench/forward card; lift about 4px (max 8px).
   z-index 5 is above sibling cards (1–4) and below .hero-cta (6). The fan
   shell is z-index 1, under .site-header (40). Mid/narrow: highlight only,
   no lift. prefers-reduced-motion: may highlight and raise z-index, but keep
   the static fan pose (no lift). Default forward highlight is cleared when
   another slot is hovered or :focus-visible, not only when the fan is hovered. */
.hero-fan-slot {
  transition: transform 0.22s ease;
}
.hero-fan-slot.is-1:hover,
.hero-fan-slot.is-1:focus-visible {
  z-index: 5;
  transform: rotate(-8deg) translateY(26px);
}
.hero-fan-slot.is-2:hover,
.hero-fan-slot.is-2:focus-visible,
.hero-fan-slot.is-forward:hover,
.hero-fan-slot.is-forward:focus-visible {
  z-index: 5;
  transform: rotate(-2.5deg) translateY(-28px);
}
.hero-fan-slot.is-3:hover,
.hero-fan-slot.is-3:focus-visible {
  z-index: 5;
  transform: rotate(2.5deg) translateY(4px);
}
.hero-fan-slot.is-4:hover,
.hero-fan-slot.is-4:focus-visible {
  z-index: 5;
  transform: rotate(8deg) translateY(26px);
}
.hero-fan-slot:hover .hero-fan-card,
.hero-fan-slot:focus-visible .hero-fan-card {
  background: #0A386B;
  border-color: transparent;
  box-shadow: 0 22px 48px rgba(10, 56, 107, 0.28);
  color: #fff;
  transform: none;
}
.hero-fan-slot:hover .hero-fan-card h3,
.hero-fan-slot:focus-visible .hero-fan-card h3 { color: #fff; }
.hero-fan-slot:hover .hero-fan-card p,
.hero-fan-slot:focus-visible .hero-fan-card p { color: rgba(255, 255, 255, 0.84); }
.hero-fan-slot:hover .hero-fan-go,
.hero-fan-slot:focus-visible .hero-fan-go {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.hero-fan:is(:hover, :has(.hero-fan-slot:focus-visible)) .hero-fan-slot.is-forward:not(:hover):not(:focus-visible) .hero-fan-card {
  background: #fff;
  border-color: rgba(10, 56, 107, 0.08);
  box-shadow: 0 18px 40px rgba(10, 56, 107, 0.10);
  color: inherit;
}
.hero-fan:is(:hover, :has(.hero-fan-slot:focus-visible)) .hero-fan-slot.is-forward:not(:hover):not(:focus-visible) .hero-fan-card h3 {
  color: var(--color-navy);
}
.hero-fan:is(:hover, :has(.hero-fan-slot:focus-visible)) .hero-fan-slot.is-forward:not(:hover):not(:focus-visible) .hero-fan-card p {
  color: var(--color-text-secondary);
}
.hero-fan:is(:hover, :has(.hero-fan-slot:focus-visible)) .hero-fan-slot.is-forward:not(:hover):not(:focus-visible) .hero-fan-go {
  background: rgba(10, 56, 107, 0.08);
  color: var(--color-navy);
}

@media (max-width: 960px) {
  .hero-fan-slot:hover,
  .hero-fan-slot:focus-visible,
  .hero-fan-slot.is-1:hover,
  .hero-fan-slot.is-2:hover,
  .hero-fan-slot.is-3:hover,
  .hero-fan-slot.is-4:hover,
  .hero-fan-slot.is-forward:hover,
  .hero-fan-slot.is-1:focus-visible,
  .hero-fan-slot.is-2:focus-visible,
  .hero-fan-slot.is-3:focus-visible,
  .hero-fan-slot.is-4:focus-visible,
  .hero-fan-slot.is-forward:focus-visible {
    z-index: 1;
    transform: none;
  }
  .hero-fan-slot:hover .hero-fan-card,
  .hero-fan-slot:focus-visible .hero-fan-card { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-fan-slot.is-1:hover,
  .hero-fan-slot.is-1:focus-visible { z-index: 5; transform: rotate(-8deg) translateY(30px); }
  .hero-fan-slot.is-2:hover,
  .hero-fan-slot.is-2:focus-visible,
  .hero-fan-slot.is-forward:hover,
  .hero-fan-slot.is-forward:focus-visible { z-index: 5; transform: rotate(-2.5deg) translateY(-24px); }
  .hero-fan-slot.is-3:hover,
  .hero-fan-slot.is-3:focus-visible { z-index: 5; transform: rotate(2.5deg) translateY(8px); }
  .hero-fan-slot.is-4:hover,
  .hero-fan-slot.is-4:focus-visible { z-index: 5; transform: rotate(8deg) translateY(30px); }
}
html.is-reduced-motion .hero-fan-slot.is-1:hover,
html.is-reduced-motion .hero-fan-slot.is-1:focus-visible { z-index: 5; transform: rotate(-8deg) translateY(30px); }
html.is-reduced-motion .hero-fan-slot.is-2:hover,
html.is-reduced-motion .hero-fan-slot.is-2:focus-visible,
html.is-reduced-motion .hero-fan-slot.is-forward:hover,
html.is-reduced-motion .hero-fan-slot.is-forward:focus-visible { z-index: 5; transform: rotate(-2.5deg) translateY(-24px); }
html.is-reduced-motion .hero-fan-slot.is-3:hover,
html.is-reduced-motion .hero-fan-slot.is-3:focus-visible { z-index: 5; transform: rotate(2.5deg) translateY(8px); }
html.is-reduced-motion .hero-fan-slot.is-4:hover,
html.is-reduced-motion .hero-fan-slot.is-4:focus-visible { z-index: 5; transform: rotate(8deg) translateY(30px); }

@media (max-width: 720px) {
  .lang-switch button { min-width: 40px; padding: 0 8px; }
}

/* 模型市场（T-058）：沿用现有色板、卡片与顶栏，不另起一套。 */
@media (max-width: 1200px) and (min-width: 961px) {
  /* Keep header padding paired with .wrap (32px from the 1199px query). */
  .nav-pills a { padding: 0 8px; }
}

.models-toolbar {
  display: flex; flex-wrap: wrap; gap: 16px 24px;
  align-items: flex-end;
  margin: 8px 0 28px;
}
.models-filter { display: flex; flex-direction: column; gap: 6px; min-width: 160px; }
.models-filter label { font-size: 13px; font-weight: 600; color: var(--color-text-secondary); }
.models-filter select, .usage-filters select, .usage-filters input[type="date"] {
  min-height: 44px; padding: 0 12px;
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  background: #fff; color: var(--color-text); font: inherit;
}
.models-group { margin: 0 0 48px; }
.models-group-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 0 0 16px;
}
.models-group-head h2 { margin: 0; font-size: 24px; font-weight: 700; color: var(--color-navy); }
.models-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.model-card {
  display: flex; flex-direction: column;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-decoration: none; color: inherit;
  min-height: 100%;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.model-card:hover, .model-card:visited { text-decoration: none; color: inherit; }
.model-card:hover, .model-card:focus-visible {
  border-color: var(--color-navy);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.model-card:focus-visible { outline: 2px solid var(--color-navy); outline-offset: 3px; }
html.is-reduced-motion .model-card:hover,
html.is-reduced-motion .model-card:focus-visible { transform: none; }
.model-card-top { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.model-mark {
  flex: 0 0 64px; width: 64px; height: 64px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.model-mark img { width: 72%; height: 72%; object-fit: contain; display: block; }
.model-mark-lg { flex-basis: 96px; width: 96px; height: 96px; }
.model-card h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600; line-height: 1.35; color: var(--color-navy);
}
.model-provider { margin: 0; font-size: 14px; color: var(--color-text-secondary); }
.model-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.model-chip {
  display: inline-flex; align-items: center;
  min-height: 24px; padding: 0 8px;
  border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600;
  background: var(--color-bg-subtle); color: var(--color-navy);
}
.model-chip-preview { color: var(--color-warning); background: var(--color-warning-bg); }
.model-card .model-summary {
  margin: 0 0 16px; flex: 1;
  color: var(--color-text-secondary);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.model-date { margin: 0 0 12px; font-size: 13px; color: var(--color-text-secondary); }
.model-date .tabular { font-variant-numeric: tabular-nums; }
.pricing-draft {
  margin-top: auto;
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
}
.pricing-draft-banner {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--color-warning);
  background: var(--color-warning-bg);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}
.pricing-draft-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 0 0 6px; font-size: 14px;
}
.pricing-draft-row .tabular { font-variant-numeric: tabular-nums; font-weight: 600; }
.chip-pending {
  display: inline-flex; align-items: center;
  min-height: 24px; padding: 0 8px;
  border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600;
  color: var(--color-warning); background: var(--color-warning-bg);
}
.model-card-actions { margin-top: 12px; }
.model-detail {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 32px; padding-bottom: 64px;
}
.model-detail-main .model-lead, .model-detail-main .model-detail-copy { color: var(--color-text); }
.model-side {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  align-self: start;
}
.model-demo { margin-top: 24px; }
.model-demo textarea {
  width: 100%; min-height: 96px; padding: 12px;
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  font: inherit; resize: vertical;
}
.model-demo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.model-demo-result { margin-top: 16px; }
.usage-summary {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin: 0 0 20px;
}
.usage-summary-item {
  background: var(--color-bg-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.usage-summary-item .label { display: block; font-size: 13px; color: var(--color-text-secondary); }
.usage-summary-item .value { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--color-navy); }
.usage-filters {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
  margin: 0 0 16px;
}
.usage-filters .models-filter { min-width: 140px; }
.usage-table-wrap { overflow-x: auto; }
.usage-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.usage-table th, .usage-table td {
  text-align: left; vertical-align: top;
  padding: 10px 8px; border-bottom: 1px solid var(--color-border);
}
.usage-table th { font-size: 13px; color: var(--color-text-secondary); font-weight: 600; }
.usage-table .tabular { font-variant-numeric: tabular-nums; }
.usage-status {
  display: inline-flex; align-items: center;
  min-height: 24px; padding: 0 8px;
  border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600;
}
.usage-status-success { color: var(--color-success, #0B6B3A); background: var(--color-success-bg, #E8F6EE); }
.usage-status-failed { color: var(--color-danger, #A12626); background: var(--color-danger-bg, #FDECEC); }
.usage-status-insufficient_points { color: var(--color-warning); background: var(--color-warning-bg); }
.usage-status-cancelled { color: var(--color-text-secondary); background: var(--color-bg-subtle); }
.usage-details { font-size: 13px; color: var(--color-text-secondary); }
.usage-details p { margin: 4px 0; }
.usage-subtotals { margin: 0 0 16px; }
.usage-card-list { display: none; }

@media (max-width: 1199px) {
  .models-grid { grid-template-columns: repeat(2, 1fr); }
  .usage-summary { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .models-grid, .model-detail { grid-template-columns: 1fr; }
  .usage-table-wrap { display: none; }
  .usage-card-list { display: grid; gap: 12px; }
  .usage-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 14px;
    background: #fff;
  }
  .usage-card p { margin: 6px 0; }
}


/* First-look pass: one typographic axis, keys + usage, tool guides */
.page-back {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
}
.page-back a { font-weight: 500; }
.page-shell { padding-bottom: 64px; }
.page-shell > .page-head { padding-left: 0; padding-right: 0; }

.article-body { max-width: 40em; margin: 0 0 80px; padding: 0; }
.form-card.form-card-inpage {
  max-width: 640px;
  margin: 0 0 80px;
  padding: 8px 0 0;
  padding-left: 0;
  padding-right: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.auth-panel {
  max-width: 640px;
  margin: 0 0 80px;
}

.model-mark-bleed { padding: 0; overflow: hidden; }
.model-mark-bleed img { width: 100%; height: 100%; object-fit: cover; }

.pack-list { display: grid; gap: 12px; margin: 12px 0 24px; }
.pack-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px;
  background: #fff;
}
.pack-card h3 { margin: 0 0 6px; font-size: 16px; color: var(--color-navy); }
.pack-tokens { margin: 0 0 4px; font-weight: 600; }
.pack-cost { margin: 0 0 6px; }

.tool-guides { margin: 8px 0 0; }
.tool-guides h2,
.model-side h2 { color: var(--color-navy); font-size: 22px; }
.model-side h2 { margin: 20px 0 8px; }
.tool-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.tool-guide {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.tool-guide h3 { margin: 0 0 8px; color: var(--color-navy); font-size: 18px; }
.tool-guide ol { margin: 12px 0 0; padding-left: 1.2em; }
.tool-guide li { margin: 0 0 6px; }
.tool-guide code, .key-secret-value, .help code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  background: var(--color-bg-subtle);
  padding: 1px 6px;
  border-radius: 4px;
  word-break: break-all;
}

.key-secret-box { margin-top: 12px; }
.key-secret-value {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.5;
}

.models-page .models-toolbar,
.page-shell .models-toolbar {
  margin: 0 0 28px;
}

@media (max-width: 960px) {
  .tool-guide-grid { grid-template-columns: 1fr; }
  .models-toolbar { width: 100%; }
}

@media (max-width: 720px) {
  .pack-list { grid-template-columns: 1fr; }
}
.account-shell { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 64px; }
.account-nav { display: flex; flex-direction: column; gap: 4px; }
.account-nav a { color: #0A386B; text-decoration: none; min-height: 44px; display: flex; align-items: center; font-weight: 500; }
.account-nav a[aria-current="page"] { font-weight: 700; color: #0A386B; box-shadow: inset 0 -2px 0 #0A386B; }
@media (max-width: 960px) {
  .account-shell { grid-template-columns: 1fr; gap: 12px; }
  .account-nav { flex-direction: row; flex-wrap: wrap; }
}
.pay-code { margin: 12px 0; }
.pay-code p { margin: 8px 0 0; }
.pay-code svg { width: 180px; height: 180px; display: block; }


.site-footer .legal-footer { margin-top: 16px; overflow-wrap: anywhere; }
.site-footer .legal-footer .fine-print { margin: 6px 0; }
.article-body .article-cover { display: block; max-width: 100%; max-height: 480px; margin-bottom: 24px; object-fit: contain; }
.article-body :is(h2, h3, h4, p, ul, ol) { margin-block: 0 1em; }
.article-body :is(ul, ol) { padding-inline-start: 1.4em; }
