/* ============================================================
   Bio-totem · Brand Site V6
   Refined on real Logo: charcoal #21292D · crimson #BE113D · slate #567785
   Rebalanced type scale · stronger contrast · real pathology imagery
   Fonts: Noto Sans SC (body) · Space Grotesk (UI/labels)
   ============================================================ */

/* ---- Design Tokens ---- */
:root {
  /* Brand — from actual Logo */
  --brand-crimson: #BE113D;
  --brand-crimson-soft: rgba(190, 17, 61, .08);
  --brand-crimson-line: rgba(190, 17, 61, .20);
  --brand-crimson-hover: #9E0E32;
  --brand-charcoal: #21292D;
  --brand-charcoal-soft: rgba(33, 41, 45, .06);
  --brand-slate: #242D31;
  --brand-slate-soft: rgba(36, 45, 49, .08);

  /* Surfaces */
  --surface-white: #FFFFFF;
  --surface-soft: #F3F5F5;
  --surface-warm: #FBF4F6;
  --surface-warm-alt: #FFF0F3;

  /* Borders */
  --border-light: #E7EBED;
  --border-default: #D6DDE0;
  --border-deep: #C2CCD1;

  /* Text — deepened for AA contrast on small sizes */
  --text-primary: #1E2529;
  --text-secondary: #475159;
  --text-muted: #59666C;   /* darkened from #7B8790 for body/secondary */
  --text-faint: #9AA4AB;   /* decorative only */

  /* Accents */
  --accent-cool: #4E6B78;
  --accent-cool-soft: #EBF0F3;
  --accent-cool-line: rgba(86, 120, 133, .28);

  /* Semantic stage colors */
  --stage-rd: #BE113D;
  --stage-val: #B9831A;
  --stage-ok: #2E7D54;
  --stage-partner: #4E6B78;

  /* Radii */
  --r-1: 3px;
  --r-2: 6px;
  --r-3: 10px;
  --r-round: 50px;

  /* Layout */
  --maxw: 1160px;
  --pad-x: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 9vw, 96px);
  --nav-h: 66px;

  /* Typography tokens (rebalanced, clamp-based) */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --heading-card: clamp(1.125rem, 1.5vw, 1.35rem);   /* 18–21.6px */
  --heading-section: clamp(1.85rem, 3vw, 2.5rem);    /* 29.6–40px */
  --heading-page: clamp(2.25rem, 4.2vw, 3.25rem);    /* 36–52px */
  --heading-home: clamp(2.75rem, 5vw, 4.25rem);      /* 44–68px */

  /* Type families */
  --font-display: "Space Grotesk", "Noto Sans SC", -apple-system, sans-serif;
  --font-body: "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-label: "Space Grotesk", "Noto Sans SC", -apple-system, sans-serif;

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  background: var(--surface-white);
  color: var(--text-secondary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color .2s var(--ease-out); }
img { max-width: 100%; display: block; }
::selection { background: var(--brand-crimson); color: #fff; }

/* Visible focus for keyboard users */
:focus-visible {
  outline: 2px solid var(--brand-crimson);
  outline-offset: 2px;
  border-radius: var(--r-1);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 16px;
  top: -56px;
  z-index: 200;
  background: var(--brand-charcoal);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-2);
  font-size: .85rem;
  font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* ================================================================
   LAYOUT PRIMITIVES
   ================================================================ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  position: relative;
}
.section.sm { padding-top: clamp(52px, 7vw, 80px); padding-bottom: clamp(52px, 7vw, 80px); }
.section.tight { padding-top: clamp(40px, 6vw, 64px); padding-bottom: clamp(40px, 6vw, 64px); }
.section.alt { background: var(--surface-soft); }
.section.warm { background: var(--surface-warm); }
.section.dark { background: var(--brand-charcoal); color: #fff; }
.section.dark .text-secondary { color: rgba(255,255,255,.72); }
.section.dark .text-muted { color: rgba(255,255,255,.55); }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4.5vw, 52px); }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head .h-section, .section-head .lead { text-wrap: balance; }
.section-head .lead { max-width: 760px; }

.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: clamp(18px, 2.5vw, 28px); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(18px, 2.5vw, 28px); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(16px, 2vw, 24px); }

/* Home proof strip — compact evidence bar after hero */
.proof-strip {
  background: var(--surface-warm);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: 28px;
  padding-bottom: 28px;
}
.proof-item {
  padding: 4px clamp(16px, 2vw, 28px);
  text-align: center;
  border-right: 1px solid var(--border-default);
}
.proof-item:last-child { border-right: 0; }
.proof-item strong {
  display: block;
  color: var(--brand-crimson);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.1;
  margin-bottom: 8px;
}
.proof-item strong a { color: var(--brand-crimson); text-decoration: none; }
.proof-item strong a:hover { text-decoration: underline; }
.proof-item span {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-item { padding: 20px 14px; border-right: 0; border-bottom: 1px solid var(--border-light); }
  .proof-item:nth-last-child(-n + 2) { border-bottom: 0; }
}
.grid-23 { display: grid; grid-template-columns: 2fr 3fr; gap: clamp(24px, 3.5vw, 48px); align-items: start; }
.grid-32 { display: grid; grid-template-columns: 3fr 2fr; gap: clamp(24px, 3.5vw, 48px); align-items: start; }
.flex-row { display: flex; flex-wrap: wrap; gap: clamp(10px, 1.5vw, 18px); }

/* Balanced flex grid: wraps and centers trailing rows (for odd card counts) */
.card-flex { display: flex; flex-wrap: wrap; gap: clamp(16px, 2vw, 24px); justify-content: center; }
.card-flex > * { flex: 0 1 330px; max-width: 360px; }

/* ================================================================
   TYPOGRAPHY SYSTEM
   ================================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-crimson);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px; height: 2px;
  background: var(--brand-crimson);
  border-radius: 1px;
}
.eyebrow.cool { color: var(--accent-cool); }
.eyebrow.cool::before { background: var(--accent-cool); }
.eyebrow.light { color: rgba(255,255,255,.65); }
.eyebrow.light::before { background: rgba(255,255,255,.45); }

h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.01em; color: var(--text-primary); }
.h-home { font-size: var(--heading-home); font-weight: 700; color: var(--brand-charcoal); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.h-page { font-size: var(--heading-page); font-weight: 650; color: var(--brand-charcoal); line-height: 1.12; text-wrap: balance; }
.h-section { font-size: var(--heading-section); font-weight: 650; color: var(--brand-charcoal); text-wrap: balance; }
.h-section-md { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 600; }
h4 { font-size: var(--text-lg); font-weight: 600; }
h5 {
  font-family: var(--font-label);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

p { line-height: 1.72; }
.lead {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 14px;
  max-width: 680px;
}
.sub-en {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--accent-cool);
  margin: 14px 0 20px;
}
.desc { color: var(--text-muted); margin: 16px 0 24px; font-size: var(--text-base); line-height: 1.72; }
.caption { font-size: var(--text-sm); color: var(--text-faint); margin-top: 18px; }

.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-crimson { color: var(--brand-crimson); }

/* ================================================================
   NAVIGATION
   ================================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border-light);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 11px; }
.logo-img { height: 46px; width: auto; flex-shrink: 0; object-fit: contain; }

.nav-links { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 32px); }
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color .2s var(--ease-out);
  padding: 6px 0;
}
.nav-links a:hover { color: var(--brand-charcoal); }
.nav-links a.active { color: var(--brand-crimson); font-weight: 600; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -22px;
  height: 2px;
  background: var(--brand-crimson);
  border-radius: 1px;
}

.nav-actions { display: flex; align-items: center; gap: 12px; }
.btn-nav {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--r-round);
  background: var(--brand-crimson);
  color: #fff;
  letter-spacing: .01em;
  transition: background .2s var(--ease-out), transform .15s var(--ease-out);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-nav:hover { background: var(--brand-crimson-hover); transform: translateY(-1px); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--brand-charcoal);
  padding: 4px;
}

/* ================================================================
   HERO — HOME (real pathology imagery)
   ================================================================ */
.hero {
  position: relative;
  padding: clamp(72px, 11vw, 108px) 0 clamp(60px, 9vw, 92px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 680px 460px at 78% 30%, var(--brand-crimson-soft) 0%, transparent 65%),
    radial-gradient(ellipse 560px 360px at 12% 72%, var(--accent-cool-soft) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 4vw, 60px);
  align-items: center;
}
.hero-content { max-width: 640px; }
.hero-content .eyebrow { margin-bottom: 18px; }
.hero-content .h-home { margin-bottom: 16px; white-space: nowrap; font-size: clamp(3rem, 4.5vw, 4rem); }
@media (max-width: 1024px) { .hero-content .h-home { white-space: normal; max-width: 10ch; } }
@media (max-width: 480px) { .hero-content .h-home { font-size: clamp(2.5rem, 12vw, 3rem); max-width: 8ch; } }
.hero-content .sub-en { margin: 12px 0 20px; }
.hero-content .desc { font-size: var(--text-lg); line-height: 1.72; margin-bottom: 26px; }

.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-tags span {
  font-family: var(--font-label);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 15px;
  border-radius: var(--r-round);
  background: var(--surface-soft);
  border: 1px solid var(--border-light);
}

/* Real pathology image on the right — light container */
.hero-media { position: relative; z-index: 1; }
.hero-media .figure {
  position: relative;
  border-radius: var(--r-3);
  overflow: hidden;
  border: 1px solid var(--border-default);
  background: #fff;
  box-shadow: 0 18px 48px rgba(33,41,45,.08);
  aspect-ratio: 3 / 2;
}
.hero-media .figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Tags below the image, not overlaid */
.hero-media .figure-cap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 12px 0 0;
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-muted);
}
.hero-media .figure-cap span { display: inline-flex; align-items: center; gap: 6px; }
.hero-media .figure-cap span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-crimson); }

/* ================================================================
   INNER PAGE HERO — distinct compositions per page
   ================================================================ */
.page-hero {
  position: relative;
  background: var(--surface-soft);
  padding: clamp(60px, 8vw, 88px) 0 clamp(44px, 6vw, 64px);
  border-bottom: 1px solid var(--border-light);
}
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero .h-page { margin-bottom: 16px; max-width: 18ch; }
.page-model-factory .page-hero .h-page { max-width: 22ch; }
@media (max-width: 768px) {
  .page-model-factory .page-hero .h-page { max-width: 13ch; }
}
.page-products .page-hero .h-page { max-width: none; white-space: nowrap; }
@media (max-width: 768px) {
  .page-products .page-hero .h-page { white-space: normal; max-width: 9ch; }
}
.page-hero .lead { margin-top: 0; }
.ph-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}
.ph-aside { position: relative; }

/* Right-visual: real pathology image */
.ph-figure {
  border-radius: var(--r-3);
  overflow: hidden;
  border: 1px solid var(--border-deep);
  aspect-ratio: 4 / 3;
  background: var(--brand-charcoal);
  box-shadow: 0 12px 40px rgba(33,41,45,.10);
}
.ph-figure img { width: 100%; height: 100%; object-fit: cover; }

/* Right-visual: 3-stage flow (model factory) — 干净白框，同科研转化 hero */
.ph-flow { display: flex; flex-direction: column; gap: 12px; }
.ph-stage {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-2);
  padding: 18px 22px;
}
.ph-stage h4 { font-size: var(--text-base); color: var(--brand-crimson); margin-bottom: 4px; }
.ph-stage p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.55; }

/* Right-visual: editorial stack (research) */
.ph-edit { display: flex; flex-direction: column; gap: 12px; }
.ph-edit .ph-edit-row {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-2);
  padding: 18px 22px;
}
.ph-edit .ph-edit-row h4 { font-size: var(--text-base); color: var(--brand-crimson); margin-bottom: 4px; }
.ph-edit .ph-edit-row p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.55; }

/* Right-visual: solution categories (products) — 干净白框，同科研转化 hero */
.ph-products { display: flex; flex-direction: column; gap: 12px; }
.ph-products .ph-prod {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-2);
  padding: 18px 22px;
}
.ph-products .ph-prod h4 { font-size: var(--text-base); color: var(--brand-crimson); margin-bottom: 4px; }
.ph-products .ph-prod p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.55; margin: 0; }

/* Right-visual: stat panel (cases) */
.ph-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ph-stats .ph-stat {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-2);
  padding: 20px 22px;
}
.ph-stats .ph-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--brand-crimson);
  line-height: 1.1;
  margin-bottom: 4px;
}
.ph-stats .ph-stat span { font-size: var(--text-sm); color: var(--text-muted); }

/* Right-visual: brand motif (about) */
.ph-brand {
  background: var(--brand-charcoal);
  border-radius: var(--r-3);
  padding: clamp(28px, 4vw, 44px);
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ph-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 360px 240px at 80% 20%, rgba(190,17,61,.18) 0%, transparent 60%);
}
.ph-brand .ph-brand-en {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.2;
}
.ph-brand .ph-brand-zh { color: rgba(255,255,255,.7); margin-top: 10px; font-size: var(--text-base); }
.ph-brand .ph-brand-marks { display: flex; gap: 8px; margin-top: 24px; }
.ph-brand .ph-brand-marks i {
  width: 14px; height: 14px; border-radius: 3px;
  background: var(--brand-crimson); opacity: .55;
}
.ph-brand .ph-brand-marks i:nth-child(2) { background: var(--accent-cool); opacity: .5; }
.ph-brand .ph-brand-marks i:nth-child(3) { background: #fff; opacity: .25; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: var(--r-round);
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: all .22s var(--ease-out);
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand-crimson); color: #fff; border-color: var(--brand-crimson); }
.btn-primary:hover { background: var(--brand-crimson-hover); border-color: var(--brand-crimson-hover); box-shadow: 0 4px 16px rgba(190,17,61,.25); }
.btn-secondary { background: var(--surface-white); color: var(--brand-charcoal); border-color: var(--border-default); }
.btn-secondary:hover { border-color: var(--brand-charcoal); background: var(--surface-soft); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }
.btn-sm { min-height: 40px; padding: 8px 20px; font-size: var(--text-sm); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.more-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--brand-crimson);
  letter-spacing: .01em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 12px;
  transition: gap .2s var(--ease-out), color .2s var(--ease-out);
}
.more-link:hover { gap: 9px; color: var(--brand-crimson-hover); }

/* ================================================================
   CARD SYSTEM
   ================================================================ */
.card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-2);
  padding: clamp(24px, 3vw, 32px);
  transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out), transform .25s var(--ease-out);
}
.card:hover { border-color: var(--border-deep); box-shadow: 0 4px 16px rgba(33,41,45,.05); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: .95rem; }

.value-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-2);
  padding: clamp(28px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  transition: all .25s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.value-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--brand-crimson); opacity: 0; transition: opacity .25s var(--ease-out);
}
.value-card:hover { border-color: var(--border-deep); transform: translateY(-3px); box-shadow: 0 8px 28px rgba(33,41,45,.07); }
.value-card:hover::before { opacity: 1; }
.value-card h3 { margin-bottom: 10px; }
.value-card p { color: var(--text-muted); font-size: .95rem; line-height: 1.68; flex-grow: 1; }
.value-card .more-link { margin-top: 16px; }

.cap-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-2);
  padding: clamp(26px, 3vw, 32px);
  transition: all .25s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.cap-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 3px; height: 100%;
  background: var(--brand-crimson); opacity: 0; transition: opacity .25s var(--ease-out);
}
.cap-card:hover { border-color: var(--brand-crimson-line); }
.cap-card:hover::before { opacity: 1; }
.cap-icon {
  width: 44px; height: 44px; border-radius: var(--r-2);
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--brand-crimson-soft); border: 1px solid var(--brand-crimson-line);
  font-size: 1rem; font-weight: 700; letter-spacing: .02em;
  color: var(--brand-crimson); font-family: var(--font-label); flex-shrink: 0;
}
.cap-card h3 { margin-bottom: 8px; }
.cap-card p { color: var(--text-muted); font-size: .9375rem; line-height: 1.65; }

.cap-detail {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-2);
  padding: clamp(28px, 3.5vw, 40px);
  transition: border-color .25s var(--ease-out);
}
.cap-detail:hover { border-color: var(--border-deep); }
.cap-detail h3 { font-size: clamp(1.15rem, 1.8vw, 1.3rem); margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.cap-detail h3 .num {
  font-family: var(--font-label); font-size: var(--text-sm); font-weight: 700;
  color: var(--brand-crimson); background: var(--brand-crimson-soft);
  padding: 3px 10px; border-radius: var(--r-1); letter-spacing: .05em; flex-shrink: 0;
}
.cap-detail p { color: var(--text-secondary); font-size: var(--text-base); line-height: 1.7; margin-bottom: 12px; }
.cap-detail .outcome {
  margin-top: 16px; padding: 14px 18px;
  background: var(--surface-warm); border-left: 3px solid var(--brand-crimson);
  border-radius: 0 var(--r-1) var(--r-1) 0;
  font-size: var(--text-sm); font-weight: 500; color: var(--brand-charcoal);
}

.partner-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-2);
  padding: clamp(26px, 3vw, 34px);
  display: flex; flex-direction: column;
  transition: all .25s var(--ease-out);
}
.partner-card:hover { border-color: var(--brand-crimson-line); transform: translateY(-2px); }
.partner-card h3 { margin-bottom: 8px; }
.partner-card p { color: var(--text-muted); font-size: .9375rem; line-height: 1.65; flex-grow: 1; }
.partner-card .more-link { margin-top: 14px; }

.product-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-2);
  padding: clamp(24px, 2.5vw, 30px);
  display: flex; flex-direction: column;
  transition: all .25s var(--ease-out);
  position: relative;
}
.product-card:hover { border-color: var(--border-deep); box-shadow: 0 4px 20px rgba(33,41,45,.06); transform: translateY(-2px); }

.product-card h3 { font-size: clamp(1.05rem, 1.5vw, 1.2rem); font-weight: 600; margin-bottom: 10px; }
.product-card .desc { color: var(--text-muted); font-size: .9375rem; line-height: 1.65; margin-bottom: 12px; flex-grow: 1; }
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.product-tags span {
  font-size: var(--text-xs); font-weight: 600; color: var(--accent-cool);
  padding: 3px 10px; border-radius: var(--r-1);
  background: var(--accent-cool-soft); border: 1px solid var(--accent-cool-line);
}

.metric-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-2);
  padding: clamp(26px, 3vw, 34px);
  text-align: center;
  position: relative; overflow: hidden;
  transition: all .25s var(--ease-out);
}
.metric-card:hover { border-color: var(--border-deep); }
.metric-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  font-weight: 800; color: var(--brand-crimson);
  line-height: 1.1; display: block; margin-bottom: 6px;
}
.metric-label { font-size: var(--text-base); font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.metric-desc { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.6; }

.step-card {
  flex: 1 1 150px; min-width: 150px;
  background: var(--surface-white); border: 1px solid var(--border-light);
  border-radius: var(--r-2); padding: 24px 18px; text-align: center;
  transition: border-color .25s var(--ease-out);
  display: flex; flex-direction: column; align-items: center;
}
.step-card:hover { border-color: var(--accent-cool); }
.step-num {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px;
  background: var(--brand-charcoal); color: #fff; font-family: var(--font-label);
  font-weight: 700; font-size: var(--text-sm); flex-shrink: 0;
}
.step-card h4 { font-size: var(--text-base); margin-bottom: 8px; }
.step-card p { color: var(--text-muted); font-size: 0.9375rem; }

/* Research workflow cards — left aligned, one action + one result */
.workflow .step-card { text-align: left; align-items: flex-start; }
.workflow .step-num { margin: 0 0 14px; }
.workflow .step-action { font-size: var(--text-base); color: var(--text-secondary); line-height: 1.6; margin: 0 0 10px; }
.workflow .step-result {
  font-size: var(--text-base); font-weight: 600; color: var(--brand-crimson);
  background: var(--surface-warm); border-left: 3px solid var(--brand-crimson);
  border-radius: var(--r-1); padding: 10px 12px; margin: 0; line-height: 1.5;
}

.scenario-card {
  background: var(--surface-white); border: 1px solid var(--border-light);
  border-radius: var(--r-2); padding: clamp(26px, 3vw, 34px);
  transition: all .25s var(--ease-out);
  display: flex; flex-direction: column;
}
.scenario-card:hover { border-color: var(--border-deep); }
.scenario-card h3 { margin-bottom: 8px; color: var(--brand-crimson); min-height: 2.7em; }
.scenario-card .scenario-desc { color: var(--text-muted); font-size: .9375rem; line-height: 1.65; flex: 1 1 0%; }
.scenario-card .support { font-size: 0.9375rem; color: var(--text-secondary); padding-top: 14px; margin-top: 14px; border-top: 1px dashed var(--border-light); line-height: 1.65; min-height: 90px; }
.scenario-card .support::before { content: "→"; color: var(--brand-crimson); font-weight: 700; margin-right: 8px; }

.direction-card {
  background: var(--surface-white); border: 1px solid var(--border-light);
  border-radius: var(--r-2); padding: 24px 26px;
  transition: border-color .25s var(--ease-out);
  display: flex; align-items: flex-start; gap: 14px;
}
.direction-card:hover { border-color: var(--accent-cool-line); }
.dir-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-crimson); flex-shrink: 0; margin-top: 7px; }
.direction-card h4 { font-size: var(--text-base); margin-bottom: 4px; }
.direction-card p { font-size: 0.9375rem; color: var(--text-muted); }

.delivery-card {
  background: var(--surface-white); border: 1px solid var(--border-light);
  border-radius: var(--r-2); padding: 24px 26px;
  transition: border-color .25s var(--ease-out);
}
.delivery-card:hover { border-color: var(--border-deep); }
.delivery-card h4 { font-size: var(--text-base); margin-bottom: 8px; }
.delivery-card p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.65; }

/* delivery as 2-column checklist */
.delivery-list { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 22px); }
.delivery-item { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-top: 1px solid var(--border-light); }
.delivery-list .delivery-item:first-child, .delivery-list .delivery-item:nth-child(2) { border-top: none; }
.di-check {
  flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; margin-top: 2px;
  font-family: var(--font-label); font-weight: 700; font-size: .8rem;
  color: #fff; background: var(--brand-crimson);
}
.delivery-item h4 { font-size: var(--text-base); color: var(--brand-charcoal); margin-bottom: 4px; }
.delivery-item p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.6; }
@media (max-width: 640px) {
  .delivery-list { grid-template-columns: 1fr; }
  .delivery-list .delivery-item:nth-child(2) { border-top: 1px solid var(--border-light); }
}

.mode-card {
  background: var(--surface-white); border: 1px solid var(--border-light);
  border-radius: var(--r-2); padding: clamp(26px, 3vw, 34px);
  text-align: center; transition: all .25s var(--ease-out);
  border-top: 3px solid var(--brand-crimson);
}
.mode-card:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(33,41,45,.06); }
.mode-card h4 { font-size: var(--text-lg); margin-bottom: 10px; }
.mode-card p { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.65; }

/* matrix variant for research directions */
.dir-matrix { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 24px); }
.dir-group h4 { font-size: var(--text-base); color: var(--brand-crimson); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border-light); }

/* representative research directions as compact 2-col list */
.research-list { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.5vw, 28px) clamp(20px, 3vw, 40px); }
.research-list .direction-card { background: transparent; border: none; padding: 0; border-radius: 0; }
.research-list .direction-card:hover { border-color: transparent; }
.research-list .direction-card h4 { font-size: var(--text-lg); }
.research-list .direction-card p { font-size: 0.9375rem; }
@media (max-width: 768px) { .research-list { grid-template-columns: 1fr; } }

.case-card {
  background: var(--surface-white); border: 1px solid var(--border-light);
  border-radius: var(--r-2); padding: clamp(26px, 3vw, 32px);
  display: flex; flex-direction: column; transition: all .25s var(--ease-out);
}
.case-card:hover { border-color: var(--brand-crimson-line); }
.case-card h4 { font-size: var(--text-lg); font-weight: 600; margin-bottom: 8px; }
.case-card .case-scenario { color: var(--text-muted); font-size: .9375rem; line-height: 1.65; margin-bottom: 12px; flex-grow: 1; }
.case-card .more-link { margin-top: 10px; }

.award-card {
  background: var(--surface-white); border: 1px solid var(--border-light);
  border-radius: var(--r-2); padding: 26px 28px;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: all .25s var(--ease-out);
}
.award-card:hover { border-color: var(--border-deep); box-shadow: 0 4px 16px rgba(33,41,45,.05); }
.award-result { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--brand-crimson); line-height: 1; margin-bottom: 10px; }
.award-card h4 { font-size: var(--text-base); margin-bottom: 6px; }
.award-org { font-size: var(--text-sm); color: var(--accent-cool); font-weight: 600; font-family: var(--font-label); margin-bottom: 10px; }
.award-card p { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.6; }

.paper-card {
  background: var(--surface-white); border: 1px solid var(--border-light);
  border-radius: var(--r-2); padding: 24px 28px;
  display: flex; flex-direction: column; transition: border-color .25s var(--ease-out);
}
.paper-card:hover { border-color: var(--border-deep); }
.paper-card h4 { font-size: var(--text-base); font-weight: 600; margin-bottom: 6px; line-height: 1.4; }
.paper-journal { font-size: var(--text-sm); color: var(--brand-crimson); font-weight: 600; font-family: var(--font-label); margin-bottom: 3px; }
.paper-year { font-size: var(--text-xs); color: var(--text-faint); margin-bottom: 10px; }
.paper-card p { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.6; }

.insight-card {
  background: var(--surface-white); border: 1px solid var(--border-light);
  border-radius: var(--r-2); padding: 24px 28px;
  display: flex; flex-direction: column; transition: border-color .25s var(--ease-out), transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
  text-decoration: none; color: inherit;
}
.insight-card:hover { border-color: var(--brand-crimson-line); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(33,41,45,.08); }
.insight-date { font-size: var(--text-sm); color: var(--brand-crimson); font-weight: 600; font-family: var(--font-label); margin-bottom: 8px; letter-spacing: .04em; }
.insight-card h4 { font-size: var(--text-base); font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.insight-card p { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.6; }
.insight-card .read-more { margin-top: auto; padding-top: 16px; font-size: var(--text-xs); font-weight: 700; font-family: var(--font-label); letter-spacing: .04em; color: var(--brand-crimson); display: inline-flex; align-items: center; gap: 6px; }
.insight-card .read-more::after { content: "\2192"; }

/* Team — honest placeholder (no fabricated people) */
.team-note {
  background: var(--surface-white); border: 1px solid var(--border-light);
  border-radius: var(--r-2); padding: clamp(28px, 3.5vw, 40px);
}
.team-note h4 { font-size: var(--text-lg); margin-bottom: 10px; }
.team-note p { font-size: var(--text-base); color: var(--text-muted); line-height: 1.7; }

.location-card {
  background: var(--surface-white); border: 1px solid var(--border-light);
  border-radius: var(--r-2); padding: 28px 30px; text-align: center;
  transition: border-color .25s var(--ease-out); border-top: 3px solid var(--accent-cool);
}
.location-card:hover { border-color: var(--border-deep); }
.location-city { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.location-role { font-size: var(--text-sm); color: var(--accent-cool); font-weight: 500; margin-bottom: 10px; }
.location-card p { font-size: var(--text-sm); color: var(--text-muted); }

.principle-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 22px); max-width: 860px; margin: 32px auto 0; }
.principle-card { display: flex; align-items: flex-start; gap: 14px; padding: 24px 26px; border: 1px solid var(--border-light); border-radius: var(--r-2); background: var(--surface-white); transition: border-color .25s var(--ease-out); }
.principle-card:hover { border-color: var(--border-deep); }
.principle-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-crimson); flex-shrink: 0; margin-top: 7px; }
.principle-card h4 { font-size: var(--text-base); margin-bottom: 4px; }
.principle-card p { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.65; }
@media (max-width: 768px) { .principle-grid { grid-template-columns: 1fr; } }

/* ================================================================
   COMPARE PANELS
   ================================================================ */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); }
.compare .panel { border-radius: var(--r-2); border: 1px solid var(--border-light); background: var(--surface-white); padding: clamp(30px, 4vw, 42px); }
.compare .panel:first-child { border-left: 3px solid var(--text-faint); }
.compare .panel:last-child { border-left: 3px solid var(--brand-crimson); }
.compare .panel h3 { font-size: var(--text-lg); margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border-light); }
.compare ul { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.compare li { display: flex; align-items: flex-start; gap: 12px; font-size: var(--text-sm); color: var(--text-secondary); }
.compare .mark { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; margin-top: 1px; font-family: var(--font-display); }
.compare .mark.x { background: var(--brand-crimson-soft); color: var(--brand-crimson); }
.compare .mark.check { background: rgba(46,125,84,.12); color: var(--stage-ok); }

/* ================================================================
   PIPELINE STAGE BAR
   ================================================================ */
.pipeline { display: flex; align-items: center; gap: 0; margin-bottom: 32px; flex-wrap: wrap; }
.pipeline-stage {
  flex: 1; min-width: 130px; text-align: center; padding: 20px 16px;
  background: var(--surface-white); border: 1px solid var(--border-light);
  border-top: 3px solid var(--accent-cool); position: relative;
}
.pipeline-stage:first-child { border-radius: var(--r-2) 0 0 var(--r-2); }
.pipeline-stage:last-child { border-radius: 0 var(--r-2) var(--r-2) 0; }
.pipeline-stage h4 { font-size: var(--text-base); margin-bottom: 6px; }
.pipeline-stage p { font-size: var(--text-sm); color: var(--text-muted); }
.pipeline-arrow { flex: 0 0 auto; color: var(--border-deep); font-size: 1.2rem; padding: 0 4px; font-family: var(--font-display); }

/* ---- Model factory: horizontal 5-card production line ---- */
.io-label {
  font-family: var(--font-label); font-size: var(--text-sm);
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 10px;
}
.io-chips { display: flex; flex-wrap: wrap; gap: 8px; }
/* ---- Five production stations (vertical line) ---- */
.factory-line { display: grid; gap: 16px; margin: 26px 0; }
.station-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-3);
  padding: 26px 30px;
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px;
  align-items: start;
  position: relative; overflow: hidden;
  transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.station-card:hover { border-color: var(--border-deep); box-shadow: 0 6px 22px rgba(33,41,45,.07); }
.station-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--brand-crimson);
}
.station-index { display: flex; align-items: flex-start; gap: 14px; }
.station-no {
  font-family: var(--font-label); font-weight: 700; font-size: var(--text-sm);
  color: #fff; background: var(--brand-crimson);
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
}
.station-index h3 { font-size: var(--text-lg); margin: 0; line-height: 1.35; padding-top: 4px; }
.station-body { display: flex; flex-direction: column; gap: 12px; }
.station-action { font-size: 1rem; line-height: 1.7; color: var(--text-secondary); margin: 0; }
.station-outcome {
  margin: 0; padding: 12px 14px; border-left: 3px solid var(--brand-crimson);
  background: var(--surface-warm); border-radius: var(--r-1);
  font-size: 0.9375rem; color: var(--brand-charcoal); font-weight: 500; line-height: 1.6;
}
.station-outcome b { color: var(--brand-crimson); }
.factory-loop {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 4px 0 20px; padding: 14px; text-align: center;
  border: 1px dashed var(--border-default); border-radius: var(--r-2);
  background: var(--surface-soft); color: var(--text-secondary); font-size: var(--text-sm);
}
.factory-loop b { color: var(--brand-crimson); }
@media (max-width: 768px) {
  .station-card { grid-template-columns: 1fr; gap: 14px; padding: 22px 20px; }
}

/* ================================================================
   CHIPS & TAGS
   ================================================================ */
.chip {
  display: inline-flex; align-items: center; padding: 8px 18px;
  border-radius: var(--r-round); border: 1px solid var(--border-default);
  font-size: var(--text-sm); font-weight: 500; color: var(--text-secondary);
  background: var(--surface-white); transition: all .2s var(--ease-out);
}
.chip:hover { border-color: var(--brand-crimson); color: var(--brand-crimson); background: var(--brand-crimson-soft); }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tag {
  font-size: var(--text-xs); font-weight: 600; color: var(--accent-cool);
  padding: 4px 11px; border-radius: var(--r-1);
  border: 1px solid var(--accent-cool-line); background: var(--accent-cool-soft);
}

/* ================================================================
   IN-PAGE NAV (sticky category tabs for products)
   ================================================================ */
.subnav {
  position: sticky; top: var(--nav-h); z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}
.subnav-inner { max-width: var(--maxw); margin: 0 auto; padding: 12px var(--pad-x); display: flex; gap: 8px; overflow-x: auto; }
.subnav a {
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600;
  color: var(--text-secondary); padding: 7px 16px; border-radius: var(--r-round);
  border: 1px solid var(--border-light); white-space: nowrap; transition: all .2s var(--ease-out);
}
.subnav a:hover { border-color: var(--brand-crimson); color: var(--brand-crimson); }
.subnav a.active { background: var(--brand-crimson); color: #fff; border-color: var(--brand-crimson); }

/* ================================================================
   CONTACT FORM
   ================================================================ */
.contact-block {
  background: var(--surface-soft); border: 1px solid var(--border-default);
  border-radius: var(--r-3); padding: clamp(36px, 5vw, 52px);
  max-width: 760px; margin: 0 auto; position: relative; overflow: hidden;
}
.contact-block::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(to right, var(--brand-crimson), var(--accent-cool)); }
.contact-block h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-bottom: 6px; }
.contact-block .sub { color: var(--text-muted); margin-bottom: 24px; font-size: var(--text-sm); }

.coop-types { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.coop-type {
  font-family: var(--font-label); font-size: var(--text-sm); font-weight: 600;
  padding: 9px 18px; border-radius: var(--r-round); border: 1px solid var(--border-default);
  color: var(--text-secondary); cursor: pointer; transition: all .2s var(--ease-out); background: var(--surface-white);
}
.coop-type:hover, .coop-type.selected { border-color: var(--brand-crimson); color: var(--brand-crimson); background: var(--brand-crimson-soft); }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.field-group { margin-bottom: 14px; display: flex; flex-direction: column; }
.field-group label { font-size: var(--text-sm); font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.field-group label .req { color: var(--brand-crimson); margin-left: 2px; }
.field-group .hint { font-size: var(--text-xs); color: var(--text-faint); margin-top: 5px; }
.field {
  width: 100%; background: var(--surface-white); border: 1px solid var(--border-default);
  border-radius: var(--r-2); padding: 13px 16px; color: var(--text-primary);
  font-family: var(--font-body); font-size: var(--text-base); outline: none;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.field::placeholder { color: var(--text-faint); }
.field:focus { border-color: var(--brand-crimson); box-shadow: 0 0 0 3px var(--brand-crimson-soft); }
.field.invalid { border-color: var(--brand-crimson); }
textarea.field { resize: vertical; min-height: 110px; }
.field-error { font-size: var(--text-xs); color: var(--brand-crimson); margin-top: 5px; display: none; }
.field-group.has-error .field-error { display: block; }
.field-group.has-error .field { border-color: var(--brand-crimson); }

.form-consent { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 8px; font-size: var(--text-sm); color: var(--text-muted); }
.form-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand-crimson); flex-shrink: 0; }
.form-consent a { color: var(--brand-crimson); font-weight: 600; }
.submit-row { margin-top: 14px; display: flex; justify-content: flex-end; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-note { font-size: var(--text-xs); color: var(--text-faint); }
.form-status {
  margin-top: 16px; padding: 14px 18px; border-radius: var(--r-2); font-size: var(--text-sm);
  display: none;
}
.form-status.show { display: block; }
.form-status.info { background: var(--accent-cool-soft); border: 1px solid var(--accent-cool-line); color: var(--accent-cool); }
.form-status.success { background: rgba(46,125,84,.10); border: 1px solid rgba(46,125,84,.24); color: var(--stage-ok); }
.form-status.error { background: var(--brand-crimson-soft); border: 1px solid var(--brand-crimson-line); color: var(--brand-crimson); }

.contact-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; text-align: center; }
.contact-info-item h4 { font-size: var(--text-base); margin-bottom: 6px; }
.contact-info-item p { font-size: var(--text-sm); color: var(--text-muted); }

/* ================================================================
   FOOTER
   ================================================================ */
.footer { background: var(--brand-charcoal); padding: clamp(52px, 7vw, 72px) 0 clamp(32px, 4vw, 42px); position: relative; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--brand-crimson); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); display: grid; grid-template-columns: 1.3fr 2fr; gap: clamp(36px, 5vw, 60px); }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-img { height: 42px; }
.footer-tagline { color: rgba(255,255,255,.7); font-size: var(--text-base); margin-bottom: 12px; font-family: var(--font-display); font-style: italic; }
.footer-copy { color: rgba(255,255,255,.45); font-size: var(--text-sm); line-height: 1.7; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.footer-col h5 { color: #fff; margin-bottom: 16px; font-size: var(--text-sm); font-family: var(--font-body); font-weight: 600; }
.footer-col a { display: block; color: rgba(255,255,255,.62); font-size: var(--text-sm); margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--brand-crimson); }
.footer-qr-card { }
.footer-qr-card h5 { margin-bottom: 10px; }
.footer-qr-card .qr-label { display: block; color: rgba(255,255,255,.62); font-size: var(--text-sm); margin-bottom: 10px; transition: color .2s; }
.footer-qr-card img { display: block; width: 120px; height: auto; margin: 8px auto; border-radius: var(--r-2); background: #fff; padding: 8px; box-sizing: content-box; }

.footer-bottom { max-width: var(--maxw); margin: 36px auto 0; padding: 20px var(--pad-x) 0; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { color: rgba(255,255,255,.4); font-size: var(--text-sm); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,.55); font-size: var(--text-sm); }
.footer-bottom-links a:hover { color: rgba(255,255,255,.85); }

/* ================================================================
   DECORATIVE ELEMENTS
   ================================================================ */
.divider { display: flex; align-items: center; justify-content: center; margin: 0 auto; width: 120px; opacity: .25; }
.divider svg { width: 100%; height: auto; color: var(--border-deep); }

.cta-section { background: var(--brand-charcoal); color: #fff; text-align: center; padding: clamp(60px, 8vw, 88px) 0; position: relative; overflow: hidden; }
.cta-section::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 500px 340px at 20% 50%, rgba(190,17,61,.12) 0%, transparent 60%),
              radial-gradient(ellipse 400px 280px at 80% 50%, rgba(86,120,133,.08) 0%, transparent 60%);
  pointer-events: none;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section .h-section { color: #fff; margin-bottom: 16px; }
.cta-section .lead { color: rgba(255,255,255,.7); max-width: 600px; margin: 0 auto 28px; }
.cta-section .btn-row { justify-content: center; }

/* notice banner for unverified content */
.verify-note {
  background: var(--surface-warm); border: 1px solid var(--brand-crimson-line);
  border-radius: var(--r-2); padding: 16px 22px; margin-bottom: 28px;
  font-size: var(--text-sm); color: var(--brand-charcoal); line-height: 1.6;
}
.verify-note b { color: var(--brand-crimson); }

/* ================================================================
   SCROLL REVEAL ANIMATIONS (no JS dependency for first screen)
   ================================================================ */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ================================================================
   RESPONSIVE DESIGN
   ================================================================ */

/* Nav collapses earlier to avoid crowding at 800–960px */
@media (max-width: 1024px) {
  .nav-links, .nav-actions .btn-nav { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: rgba(255,255,255,.97); backdrop-filter: blur(16px);
    padding: 20px var(--pad-x); border-bottom: 1px solid var(--border-light); z-index: 99;
  }
  .nav.open .nav-links a { font-size: var(--text-base); padding: 10px 0; border-bottom: 1px solid var(--border-light); }
  .nav.open .nav-links a:last-child { border-bottom: none; }
  .nav.open .nav-links a.active::after { display: none; }
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-23, .grid-32 { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 560px; margin: 0 auto; }
  .ph-grid { grid-template-columns: 1fr; }
  .ph-aside { max-width: 560px; margin: 0 auto; }
  .compare { grid-template-columns: 1fr; }
  .dir-matrix { grid-template-columns: 1fr; }
  .contact-info { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-y: clamp(48px, 8vw, 72px); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .pipeline { flex-direction: column; align-items: stretch; }
  .pipeline-arrow { transform: rotate(90deg); display: flex; justify-content: center; padding: 4px 0; }
  .contact-info { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .ph-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .contact-info { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .hero-tags { gap: 6px; }
  .hero-tags span { font-size: var(--text-xs); padding: 4px 10px; }
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; justify-content: center; }
}
