/* ==========================================================================
   Deepmerid Capital — public site
   Design system: institutional quant, paper-light foundation, terminal accents
   ========================================================================== */

:root {
  /* Palette — light */
  --bg: #F7F7F4;
  --bg-elev: #FDFCFA;
  --surface: #FFFFFF;
  --surface-2: #F2F1ED;
  --surface-sunken: #EFEEEA;
  --border: rgba(15, 18, 24, 0.08);
  --border-strong: rgba(15, 18, 24, 0.16);
  --hairline: rgba(15, 18, 24, 0.06);

  --ink: #0B0E14;
  --ink-2: #1F242D;
  --muted: #5B6470;
  --muted-2: #8A929B;
  --whisper: #B6BCC4;

  /* Accent — blue default */
  --accent: #0B3A75;
  --accent-2: #082E60;
  --accent-soft: rgba(11, 58, 117, 0.08);
  --accent-tint: rgba(11, 58, 117, 0.16);
  --accent-ink: #FFFFFF;

  /* Semantic finance */
  --up: #0E8C5B;
  --up-soft: rgba(14, 140, 91, 0.10);
  --up-tint: rgba(14, 140, 91, 0.18);
  --down: #C82E2E;
  --down-soft: rgba(200, 46, 46, 0.09);
  --down-tint: rgba(200, 46, 46, 0.16);
  --warn: #B7791F;

  /* Type */
  --font-sans: "Geist", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-cjk:  "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-serif: "Instrument Serif", "Source Han Serif SC", "Songti SC", "STSong", serif;

  /* Type scale — defaults tuned for Latin */
  --t-hero: clamp(48px, 6.8vw, 96px);
  --t-display: clamp(32px, 4.0vw, 56px);
  --t-h1: 44px;
  --t-h2: 32px;
  --t-h3: 22px;
  --t-body: 16px;
  --t-meta: 13px;
  --t-mono-s: 11px;
  --t-mono-xs: 10px;

  /* Spacing & shape */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-soft: 0 1px 0 rgba(15, 18, 24, 0.03), 0 10px 30px -16px rgba(15, 18, 24, 0.10);
  --shadow-card: 0 1px 2px rgba(15, 18, 24, 0.04), 0 12px 36px -20px rgba(15, 18, 24, 0.14);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --d-fast: 140ms;
  --d-mid: 260ms;
}

/* Accent options */
[data-accent="cyan"]   { --accent: #0B3A75; --accent-2: #082E60; --accent-soft: rgba(11, 58, 117, 0.08); --accent-tint: rgba(11, 58, 117, 0.16); }
[data-accent="blue"]   { --accent: #0B3A75; --accent-2: #082E60; --accent-soft: rgba(11, 58, 117, 0.08); --accent-tint: rgba(11, 58, 117, 0.16); }
[data-accent="mono"]   { --accent: #0B0E14; --accent-2: #1F242D; --accent-soft: rgba(11, 14, 20, 0.06); --accent-tint: rgba(11, 14, 20, 0.10); }
[data-accent="emerald"]{ --accent: #0E8C5B; --accent-2: #0A6E47; --accent-soft: rgba(14, 140, 91, 0.10); --accent-tint: rgba(14, 140, 91, 0.18); }

/* Dark theme */
[data-theme="dark"] {
  --bg: #0A0C10;
  --bg-elev: #0E1218;
  --surface: #11151C;
  --surface-2: #161B23;
  --surface-sunken: #0B0F15;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --hairline: rgba(255, 255, 255, 0.05);

  --ink: #F4F5F7;
  --ink-2: #D9DCE2;
  --muted: #8B919B;
  --muted-2: #5F6670;
  --whisper: #3F454F;

  --up: #2EC988;
  --up-soft: rgba(46, 201, 136, 0.12);
  --up-tint: rgba(46, 201, 136, 0.22);
  --down: #F25555;
  --down-soft: rgba(242, 85, 85, 0.10);
  --down-tint: rgba(242, 85, 85, 0.20);
  --shadow-soft: none;
  --shadow-card: 0 1px 0 rgba(255,255,255,0.04), 0 18px 48px -28px rgba(0,0,0,0.65);
}
[data-theme="dark"][data-accent="blue"]   { --accent: #6E9CFF; --accent-2: #4D7FE8; --accent-soft: rgba(110, 156, 255, 0.10); --accent-tint: rgba(110, 156, 255, 0.22); }
[data-theme="dark"][data-accent="cyan"]   { --accent: #6E9CFF; --accent-2: #4D7FE8; --accent-soft: rgba(110, 156, 255, 0.10); --accent-tint: rgba(110, 156, 255, 0.22); }
[data-theme="dark"][data-accent="mono"]   { --accent: #F4F5F7; --accent-2: #D9DCE2; --accent-soft: rgba(255,255,255,0.06); --accent-tint: rgba(255,255,255,0.12); --accent-ink: #0A0C10; }
[data-theme="dark"][data-accent="emerald"]{ --accent: #2EC988; --accent-2: #1FA470; --accent-soft: rgba(46, 201, 136, 0.12); --accent-tint: rgba(46, 201, 136, 0.22); --accent-ink: #0A0C10; }

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11", "cv02";
  letter-spacing: -0.005em;
}
::selection { background: var(--accent-tint); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img, svg { display: block; max-width: 100%; }

/* ---------- CJK-specific typography overrides ---------- */
:lang(zh) {
  font-family: var(--font-cjk);
  font-feature-settings: normal;
  letter-spacing: 0;
}
:lang(zh) .mono { font-family: var(--font-mono); letter-spacing: 0; }
:lang(zh) .hero-title { font-weight: 600; letter-spacing: -0.02em; }
:lang(zh) .hero-title .cn { font-weight: 500; font-size: 0.38em; line-height: 1.18; }
:lang(zh) .section-head h2 {
  font-weight: 600;
  letter-spacing: -0.005em;
  font-size: clamp(26px, 2.8vw, 40px);
  max-width: none;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.18;
}
:lang(zh) .price-name,
:lang(zh) .team-name,
:lang(zh) .method h4,
:lang(zh) .faq-q { letter-spacing: 0; }
:lang(zh) .hero-lead,
:lang(zh) .section-head .lead { letter-spacing: 0; }

/* keep numerics on Geist Mono even inside zh */
:lang(zh) .num,
:lang(zh) .pill,
:lang(zh) .chip,
:lang(zh) .eyebrow,
:lang(zh) .kicker { font-family: var(--font-mono); letter-spacing: 0.02em; }
:lang(zh) .eyebrow { letter-spacing: 0.12em; }



.mono { font-family: var(--font-mono); font-feature-settings: "zero", "ss01"; letter-spacing: 0; }
.serif { font-family: var(--font-serif); letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-mono-s);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow .hash { color: var(--accent); }
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 99px;
  background: var(--accent);
  margin-right: 4px;
}
.eyebrow.no-dot::before { display: none; }
.kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ---------- layout ---------- */
.shell { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .shell { padding: 0 20px; } }

.section { padding: 96px 0; border-top: 1px solid var(--hairline); }
.section:first-of-type { border-top: none; }
@media (max-width: 720px) { .section { padding: 64px 0; } }

/* Grid background overlay */
.gridbg {
  background-image:
    linear-gradient(to right, var(--hairline) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hairline) 1px, transparent 1px);
  background-size: 88px 88px;
  background-position: -1px -1px;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex; align-items: center; gap: 20px;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 7px;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.02em;
  position: relative;
  flex-shrink: 0;
}
.brand-name {
  font-size: 16px; font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
}
.brand-sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0;
  line-height: 1.2;
  margin-top: 2px;
}
.nav-links { display: flex; gap: 4px; margin-left: 16px; }
.nav-link {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink-2);
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: color var(--d-fast) var(--ease), background var(--d-fast) var(--ease);
  background: none; border: none;
}
.nav-link:hover { color: var(--ink); background: var(--surface-2); }
.nav-link[aria-current="true"] { color: var(--accent); }
.nav-spacer { flex: 1; }
.nav-meta {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.nav-meta .dot { width: 7px; height: 7px; border-radius: 99px; background: var(--up); box-shadow: 0 0 0 3px var(--up-soft); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.icon-btn {
  height: 32px; min-width: 32px; padding: 0 10px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all var(--d-fast) var(--ease);
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--border-strong); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: all var(--d-fast) var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); transform: translateY(-1px); }
.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn-accent:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn .arrow { transition: transform var(--d-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- card ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
}
.card-pad { padding: 24px; }
.card-pad-lg { padding: 32px; }
.card-head {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
}
.card-head .spacer { flex: 1; }
.card-foot {
  padding: 14px 24px;
  border-top: 1px solid var(--hairline);
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* ---------- numeric ---------- */
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum", "zero";
  letter-spacing: -0.01em;
}
.num.up { color: var(--up); }
.num.down { color: var(--down); }
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
}
.pill.up { background: var(--up-soft); color: var(--up); }
.pill.down { background: var(--down-soft); color: var(--down); }
.pill.neutral { background: var(--surface-2); color: var(--muted); }
.pill.accent { background: var(--accent-soft); color: var(--accent); }

/* ---------- segmented control ---------- */
.seg {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 3px;
  background: var(--surface-2);
  gap: 2px;
}
.seg button {
  border: none;
  background: transparent;
  padding: 5px 11px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--d-fast) var(--ease);
}
.seg button:hover { color: var(--ink-2); }
.seg button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15,18,24,0.06), 0 0 0 1px var(--border);
}
[data-theme="dark"] .seg button[aria-pressed="true"] { background: var(--surface-2); box-shadow: 0 0 0 1px var(--border-strong); }

/* ---------- chip ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--surface);
  white-space: nowrap;
  max-width: 100%;
}
.chip .dot { width: 6px; height: 6px; border-radius: 99px; background: currentColor; }

/* ---------- hero ---------- */
.hero {
  padding-top: 64px;
  padding-bottom: 72px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr);
  gap: 48px;
  align-items: start;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }
@media (min-width: 981px) {
  .hero-grid { align-items: stretch; }
  .hero-chart-card {
    min-height: 100%;
    display: flex;
    flex-direction: column;
  }
  .hero-chart-card > svg {
    flex: 1 1 auto;
    min-height: 360px;
  }
  .hero-chart-card > svg.equity-chart-svg {
    flex: 0 0 auto;
    min-height: 0;
    height: auto;
  }
}

.hero-title {
  font-size: var(--t-hero);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 24px 0 16px;
  text-wrap: balance;
}
.hero-title .cn {
  display: block;
  font-family: var(--font-cjk);
  font-weight: 500;
  font-size: 0.62em;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1.05;
  margin-top: 12px;
  word-break: keep-all;
  overflow-wrap: normal;
}
.hero-title .dot { color: var(--accent); }
.hero-lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 36ch;
  line-height: 1.55;
  letter-spacing: -0.005em;
  margin-bottom: 28px;
}
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-stats {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.hero-stat .v { font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 500; }
.hero-stat .l {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
@media (max-width: 560px) { .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.hero-risk-metrics {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 18px;
}
.hero-risk-metric {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.hero-risk-metric:has(.k:empty) { visibility: hidden; }
.hero-risk-metric .k {
  color: var(--muted);
  white-space: nowrap;
}
.hero-risk-metric .v {
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-align: left;
  white-space: nowrap;
}
@media (max-width: 560px) { .hero-risk-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* hero chart card */
.hero-chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

/* ---------- metric grid ---------- */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 900px) { .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: transform var(--d-mid) var(--ease), border-color var(--d-mid) var(--ease);
}
.metric:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.metric .label {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: -0.005em;
}
.metric .value {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.metric .sub {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.metric .spark {
  position: absolute; right: -1px; top: -1px; opacity: 0.85;
  pointer-events: none;
}

/* ---------- section header ---------- */
.section-head {
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
}
@media (max-width: 720px) { .section-head { grid-template-columns: 1fr; } }
.section-head h2 {
  font-size: var(--t-display);
  margin: 14px 0 0;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.06;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.section-head .lead {
  color: var(--muted);
  font-size: 15.5px;
  max-width: 52ch;
  line-height: 1.55;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 56px 0 32px;
  margin-top: 64px;
  background: var(--bg-elev);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 14px;
}
.footer a {
  display: block;
  padding: 4px 0;
  font-size: 14px;
  color: var(--ink-2);
  transition: color var(--d-fast) var(--ease);
}
.footer a:hover { color: var(--accent); }
.footer .legal {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
}

/* ---------- strategy tabs ---------- */
.strat-tabs {
  display: flex;
  border-bottom: 1px solid var(--hairline);
  gap: 0;
  overflow-x: auto;
  margin-bottom: 24px;
}
.strat-tab {
  background: none;
  border: none;
  padding: 14px 20px 14px 0;
  margin-right: 24px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  position: relative;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.strat-tab .num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-2);
  letter-spacing: 0.06em;
}
.strat-tab[aria-current="true"] {
  color: var(--ink);
}
.strat-tab[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 0; right: 24px; bottom: -1px;
  height: 2px;
  background: var(--accent);
}
.strat-tab:hover { color: var(--ink-2); }

/* ---------- monthly heatmap ---------- */
.heatmap {
  display: grid;
  grid-template-columns: 56px repeat(12, minmax(0, 1fr)) 64px;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.heatmap .yh { color: var(--muted); padding: 6px 4px; }
.heatmap .mh { color: var(--muted-2); text-align: center; padding: 6px 0; letter-spacing: 0.04em; }
.heatmap .cell {
  aspect-ratio: 1.4 / 1;
  display: grid; place-items: center;
  border-radius: 4px;
  border: 1px solid var(--hairline);
  color: var(--ink-2);
  font-size: 10.5px;
  letter-spacing: -0.01em;
  transition: transform var(--d-fast) var(--ease);
}
.heatmap .cell:hover { transform: scale(1.06); border-color: var(--border-strong); z-index: 1; position: relative; }
.heatmap .cell.empty { background: var(--surface-2); color: var(--whisper); }
.heatmap .total { color: var(--ink); font-weight: 500; padding-left: 8px; }

/* ---------- multi-strategy table ---------- */
.strat-table { width: 100%; border-collapse: collapse; }
.strat-table th, .strat-table td {
  padding: 14px 12px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: -0.005em;
  border-bottom: 1px solid var(--hairline);
}
.strat-table th {
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding-top: 0;
}
.strat-table th:first-child, .strat-table td:first-child { text-align: left; padding-left: 0; }
.strat-table th:last-child, .strat-table td:last-child { padding-right: 0; }
.strat-table tbody tr { cursor: pointer; transition: background var(--d-fast) var(--ease); }
.strat-table tbody tr:hover { background: var(--surface-2); }
.strat-table .name { display: flex; align-items: center; gap: 12px; font-family: var(--font-sans); font-size: 13.5px; }
.strat-table .name .swatch {
  width: 10px; height: 10px; border-radius: 3px; background: var(--accent);
}
.strat-table .badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  padding: 2px 5px;
  border-radius: 3px;
  color: var(--muted);
  border: 1px solid var(--border);
}

/* ---------- stress table ---------- */
.stress {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0;
  border-top: 1px solid var(--hairline);
}
.stress-row {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  border-bottom: 1px solid var(--hairline);
}
.stress-row > * { padding: 16px 0; }
.stress-name { font-size: 14px; }
.stress-name .meta { display: block; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted-2); margin-top: 2px; letter-spacing: 0.04em; }
.stress-val {
  font-family: var(--font-mono);
  font-size: 14px;
  display: flex; align-items: center; gap: 14px;
}
.stress-bar {
  flex: 1;
  height: 6px;
  background: var(--surface-2);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}
.stress-bar > i {
  display: block; height: 100%;
  background: var(--accent);
  border-radius: 99px;
}
.stress-bar.danger > i { background: var(--down); }
.stress-bar.warn > i { background: var(--warn); }
.stress-bar.ok > i { background: var(--up); }

/* ---------- strategy: system characteristics strip ---------- */
.syscard {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
@media (max-width: 980px) { .syscard { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .syscard { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sysitem {
  padding: 18px 20px;
  border-right: 1px solid var(--hairline);
  position: relative;
}
.sysitem:last-child { border-right: none; }
@media (max-width: 980px) { .sysitem:nth-child(3n) { border-right: none; } }
@media (max-width: 560px) { .sysitem:nth-child(2n) { border-right: none; } }
.sysitem-k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  text-transform: uppercase;
}
.sysitem-v {
  font-family: var(--font-mono);
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin-top: 4px;
}
.sysitem-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 2px;
  letter-spacing: 0.04em;
}

/* ---------- strategy: shared curve grid (chart + stats column) ---------- */
.curve-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 24px;
}
@media (max-width: 880px) { .curve-grid { grid-template-columns: 1fr; } }

/* ---------- factor exposure bar ---------- */
.exp-bar {
  position: relative;
  width: 100%;
  height: 18px;
}
.exp-axis {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--border-strong);
}
.exp-fill {
  position: absolute;
  top: 4px; bottom: 4px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.85;
}
.exp-fill.neg { /* anchor to right of center, growing leftwards */ }

.factor-table tbody td { padding: 12px 12px; }
.factor-table .badge { padding: 1px 5px; }


.terminal {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
}
.term-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.term-bar .lights { display: flex; gap: 6px; }
.term-bar .light { width: 10px; height: 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); }
.term-bar .light.r { background: #FF5F57; border-color: transparent; }
.term-bar .light.y { background: #FEBC2E; border-color: transparent; }
.term-bar .light.g { background: #28C840; border-color: transparent; }
.term-bar .url {
  flex: 1;
  text-align: center;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.term-bar .blob {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted-2);
}
.term-bar .blob .dot { width: 6px; height: 6px; border-radius: 99px; background: var(--up); }

.term-top {
  display: flex; align-items: center; gap: 14px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--hairline);
  background: var(--bg);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  flex-wrap: wrap;
}
.term-top .Q {
  width: 18px; height: 18px;
  display: grid; place-items: center;
  border-radius: 4px;
  background: var(--ink); color: var(--bg);
  font-weight: 600;
  margin-right: 2px;
}
.term-top .crumb { color: var(--ink); letter-spacing: 0.08em; }
.term-top .tab {
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
}
.term-top .tab[aria-pressed="true"] { background: var(--surface); color: var(--ink); border-color: var(--border); }
.term-top .spacer { flex: 1; }
.term-top .input {
  flex: 1; min-width: 220px; max-width: 360px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
  color: var(--muted);
}
.term-top .kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 4px;
}
.term-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid var(--hairline);
}
.term-strip > div {
  padding: 6px 10px;
  border-right: 1px solid var(--hairline);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.term-strip > div:last-child { border-right: none; }
.term-strip .label { color: var(--muted-2); letter-spacing: 0.08em; }
.term-strip .v { color: var(--ink); }
.term-strip .triangle { color: var(--up); }
.term-strip .triangle.down { color: var(--down); }

.term-kpis {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  border-bottom: 1px solid var(--hairline);
}
.term-kpis > div {
  padding: 12px 12px;
  border-right: 1px solid var(--hairline);
  position: relative;
}
.term-kpis > div:last-child { border-right: none; }
.term-kpi-label {
  color: var(--muted-2);
  letter-spacing: 0.1em;
  font-size: 9.5px;
  text-transform: uppercase;
}
.term-kpi-v {
  font-size: 18px;
  letter-spacing: -0.015em;
  margin-top: 4px;
  font-weight: 500;
}
.term-kpi-sub {
  font-size: 10.5px;
  color: var(--muted-2);
  margin-top: 2px;
}

.term-grid {
  display: grid;
  grid-template-columns: 248px 1fr 232px;
  min-height: 320px;
}
.term-col {
  border-right: 1px solid var(--hairline);
  padding: 10px 12px;
  font-size: 10.5px;
}
.term-col:last-child { border-right: none; }
.term-col-title {
  display: flex; align-items: center; gap: 8px;
  color: var(--muted-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 9.5px;
  margin-bottom: 8px;
}
.term-col-title .hash { color: var(--accent); }
.term-col-title .pill { margin-left: auto; padding: 0 6px; font-size: 9.5px; }

/* positions list */
.pos-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--hairline);
}
.pos-row:last-child { border-bottom: none; }
.pos-sym { font-weight: 500; font-size: 11.5px; }
.pos-meta { color: var(--muted-2); font-size: 9.5px; letter-spacing: 0.04em; margin-top: 2px; }
.pos-num { text-align: right; font-size: 11px; }
.pos-num .v { display: block; }
.pos-num .sub { color: var(--muted-2); font-size: 9.5px; }

/* treemap */
.tmap {
  display: grid;
  grid-template-columns: 4fr 1.4fr 1fr 0.6fr;
  gap: 4px;
  height: 160px;
}
.tmap .tile {
  border-radius: 4px;
  padding: 8px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--up-soft);
  color: var(--up);
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--up) 25%, transparent);
}
.tmap .tile.down { background: var(--down-soft); border-color: color-mix(in srgb, var(--down) 25%, transparent); color: var(--down); }
.tmap .tile.split { display: grid; grid-template-rows: 1fr 1fr; gap: 4px; padding: 0; background: transparent; border: none; }
.tmap .tile.split > * {
  padding: 8px;
  background: var(--down-soft);
  border: 1px solid color-mix(in srgb, var(--down) 25%, transparent);
  border-radius: 4px;
  color: var(--down);
}
.tmap-name { font-size: 12px; letter-spacing: 0.02em; }
.tmap-pct { font-size: 13px; opacity: 0.9; }
.tmap-foot { font-size: 9.5px; opacity: 0.85; }

/* heat grid */
.heat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.heat-tile {
  border-radius: 4px;
  padding: 8px 10px;
  background: var(--up-soft);
  border: 1px solid color-mix(in srgb, var(--up) 22%, transparent);
  color: var(--up);
}
.heat-tile.down { background: var(--down-soft); border-color: color-mix(in srgb, var(--down) 22%, transparent); color: var(--down); }
.heat-tile .sym { font-size: 11.5px; font-weight: 500; display: flex; justify-content: space-between; }
.heat-tile .sym .w { color: var(--muted-2); font-weight: 400; font-size: 10px; }
.heat-tile .pl { font-size: 13px; margin-top: 2px; }
.heat-tile .pct { font-size: 9.5px; color: var(--muted-2); margin-top: 2px; }

/* ---------- pricing ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 880px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  display: flex; flex-direction: column;
}
.price-card.featured {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.price-card.featured .muted { color: rgba(255,255,255,0.55); }
.price-card.featured .price-tier { color: var(--bg); }
.price-card.featured .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.price-card.featured .btn:hover { background: var(--surface-2); }
.price-tier {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.price-name {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 12px 0 4px;
}
.price-amount {
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 18px 0 6px;
  display: flex; align-items: baseline; gap: 6px;
}
.price-amount .per { font-size: 13px; color: var(--muted-2); letter-spacing: 0; }
.price-features {
  list-style: none; padding: 0; margin: 24px 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px;
  flex: 1;
}
.price-features li { display: flex; gap: 10px; align-items: flex-start; }
.price-features li::before {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent);
  width: 14px;
}
.price-card.featured .price-features li::before { color: var(--bg); opacity: 0.6; }

/* ---------- team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 980px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.team-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  background: var(--surface);
  transition: transform var(--d-mid) var(--ease);
}
.team-card:hover { transform: translateY(-2px); }
.avatar {
  width: 56px; height: 56px;
  border-radius: 99px;
  background: var(--accent-tint);
  color: var(--accent);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  margin-bottom: 16px;
}
.team-name { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.team-role { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; margin-top: 4px; }
.team-bio { color: var(--muted); font-size: 13.5px; margin-top: 10px; line-height: 1.6; }
.team-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 14px; }
.team-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 99px;
  background: var(--surface-2);
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---------- methodology ---------- */
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 880px) { .method-grid { grid-template-columns: 1fr; } }
.method {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  position: relative;
}
.method .step {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  text-transform: uppercase;
  display: flex; gap: 12px; align-items: center;
}
.method .step .n {
  width: 22px; height: 22px;
  border-radius: 5px;
  background: var(--ink);
  color: var(--bg);
  display: grid; place-items: center;
  font-size: 11px;
}
.method h4 {
  margin: 14px 0 6px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.method p { color: var(--muted); margin: 0; font-size: 14px; line-height: 1.6; }

/* ---------- faq ---------- */
.faq-list { border-top: 1px solid var(--hairline); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-trigger {
  width: 100%;
  text-align: left;
  background: none; border: none;
  padding: 22px 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-sans);
}
.faq-q { font-size: 17px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.faq-meta { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted-2); letter-spacing: 0.08em; }
.faq-icon {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  color: var(--muted);
  transition: transform var(--d-mid) var(--ease);
}
.faq-item[data-open="true"] .faq-icon { transform: rotate(45deg); color: var(--accent); }
.faq-body {
  padding: 0 8px 22px;
  color: var(--muted);
  max-width: 80ch;
  font-size: 14.5px;
  line-height: 1.65;
  display: none;
}
.faq-item[data-open="true"] .faq-body { display: block; }

/* ---------- contact ---------- */
.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
@media (max-width: 880px) { .contact-card { grid-template-columns: 1fr; } }
.contact-side {
  padding: 36px;
  background: var(--surface-2);
  border-right: 1px solid var(--hairline);
}
[data-theme="dark"] .contact-side { background: var(--bg-elev); }
.contact-form { padding: 36px; }
.contact-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.contact-form .field { margin-bottom: 18px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  padding: 10px 12px;
  min-height: 44px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 540px) { .contact-form .row { grid-template-columns: 1fr; } }
.contact-form textarea { min-height: 96px; resize: vertical; }

/* ---------- compact, scrolly bits ---------- */
.ticker {
  display: flex; align-items: center; gap: 32px;
  padding: 10px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
  mask-image: linear-gradient(to right, transparent, #000 64px, #000 calc(100% - 64px), transparent);
}
.ticker-track {
  display: inline-flex;
  gap: 32px;
  animation: tick 60s linear infinite;
}
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item { display: inline-flex; align-items: center; gap: 8px; }
.ticker-item .sym { color: var(--ink); }
.ticker-item .v { color: var(--ink-2); }
.ticker-item .pct.up { color: var(--up); }
.ticker-item .pct.down { color: var(--down); }

/* utility */
.split-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.row-gap-lg { gap: 32px; }
.muted { color: var(--muted); }
.hr { height: 1px; background: var(--hairline); margin: 24px 0; border: none; }

/* small underwater plot */
.underwater-tooltip {
  position: absolute;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 4px 8px;
  border-radius: 4px;
  pointer-events: none;
  transform: translate(-50%, -130%);
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--d-fast) var(--ease);
}
.underwater-tooltip.show { opacity: 1; }

/* ---------- print/responsive guards ---------- */
@media (max-width: 720px) {
  :root { --t-display: 36px; }
  .nav-links { display: none; }
}

/* ---------- mobile composition fixes ---------- */
@media (max-width: 640px) {
  :root { --t-hero: clamp(46px, 14vw, 58px); }

  .shell { padding: 0 16px; }
  .section { padding: 60px 0; }

  .nav-inner {
    height: 64px;
    gap: 8px;
  }
  .brand { min-width: 0; gap: 8px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 7px; }
  .brand-name { font-size: 13px; }
  .brand-sub { display: none; }
  .nav-meta { gap: 6px; }
  .nav .icon-btn {
    height: 44px;
    min-width: 44px;
    justify-content: center;
    padding: 0 8px;
  }
  .nav .btn-primary {
    min-width: 64px;
    padding: 0 12px;
    justify-content: center;
    font-size: 0;
  }
  .nav .btn-primary::after {
    content: "登录";
    font-size: 12px;
    letter-spacing: 0;
  }

  .hero {
    padding-top: 48px;
    padding-bottom: 52px;
  }
  .hero-grid { gap: 28px; }
  .hero-title {
    margin-top: 20px;
    line-height: 1.04;
    letter-spacing: -0.025em;
  }
  .hero-title .cn {
    font-size: 0.34em;
    line-height: 1.2;
    margin-top: 10px;
  }
  .hero-lead {
    max-width: 100%;
    font-size: 15.5px;
  }
  .hero-chart-card {
    padding: 16px;
    border-radius: 10px;
  }

  .card-head {
    padding: 16px;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .card-head > .eyebrow {
    flex: 1 1 100%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: keep-all;
    line-height: 1.45;
    letter-spacing: 0.08em;
  }
  .card-head > .chip {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
  }
  .card-head .spacer {
    display: none;
  }
  .card-head > .mono {
    flex: 1 1 100%;
    min-width: 0;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .card-pad {
    padding: 16px;
  }
  .curve-grid {
    gap: 16px;
  }

  .strat-tabs {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .strat-tab {
    min-height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .seg button {
    min-height: 44px;
    padding-inline: 12px;
  }

  .terminal {
    max-width: 100%;
    border-radius: 10px;
    font-size: 10.5px;
  }
  .term-bar {
    padding: 8px 10px;
    gap: 8px;
  }
  .term-bar .url {
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .term-bar .blob { display: none; }
  .term-top {
    gap: 8px;
    padding: 8px 10px;
  }
  .term-top .tab { display: none; }
  .term-top .tab[aria-pressed="true"] {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 10px;
  }
  .term-top .input,
  .term-top .kbd {
    display: none;
  }
  .term-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .term-strip > div {
    min-height: 44px;
    padding: 8px 10px;
  }
  .term-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .term-kpis > div {
    min-height: 72px;
    padding: 10px;
  }
  .term-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .term-col {
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }
  .term-col:last-child { border-bottom: none; }
  .term-col-title {
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.45;
  }
  .term-col-title .pill { margin-left: 0; }
  .tmap {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    height: auto;
  }
  .tmap .tile {
    min-height: 92px;
    padding: 10px;
  }
  .tmap .tile.split {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }
  .terminal [style*="repeat(8"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .method-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  .method {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 14px;
    padding: 18px;
  }
  .method .step {
    grid-row: 1 / span 2;
    display: block;
  }
  .method .step .n {
    width: 28px;
    height: 28px;
  }
  .method .step span:not(.n) { display: none; }
  .method h4 { margin: 0 0 6px; }

  .team-grid { grid-template-columns: 1fr 1fr; }
  .contact-side,
  .contact-form { padding: 24px; }
}

@media (max-width: 420px) {
  .nav .icon-btn:first-of-type { display: none; }
  .team-grid { grid-template-columns: 1fr; }
}
