/* Bravo Capital — Senior Care Infrastructure Report */
:root {
  --navy-1000: #06132a;
  --navy-900:  #0a1f3d;
  --navy-800:  #122a4f;
  --navy-700:  #1c3866;
  --navy-600:  #2c4a7a;
  --steel-500: #5a7fb8;
  --steel-300: #98b2d4;
  --ink:       #0e1a2e;
  --slate-700: #34455c;
  --slate-500: #5a6878;
  --slate-400: #7c8a9c;
  --slate-300: #a7b3c2;
  --hairline:  #e4e8ee;
  --paper:     #f7f8fa;
  --paper-2:   #eef1f5;
  --white:     #ffffff;
  --accent:    #3fbdb5;       /* teal */
  --accent-2:  #2da59c;
  --accent-soft: rgba(63,189,181,0.12);
  --gold:      #c9a96e;
  --warn:      #d97757;
  --shadow-card: 0 1px 0 rgba(14,26,46,0.04), 0 8px 24px rgba(14,26,46,0.06);
  --shadow-lift: 0 1px 0 rgba(14,26,46,0.04), 0 16px 40px rgba(14,26,46,0.10);
  --shadow-row:  0 4px 16px rgba(14,26,46,0.06), 0 24px 48px rgba(14,26,46,0.08);
  --radius: 6px;
  --radius-lg: 10px;
  --headline-font: 'Source Serif 4', Georgia, serif;
  --headline-weight: 400;
  --headline-tracking: -0.02em;
  --section-pad: 96px;
  --card-pad: 24px;
}

body[data-density="compact"] {
  --section-pad: 56px;
  --card-pad: 18px;
  font-size: 14px;
}
body[data-density="compact"] .section { padding-top: 56px; padding-bottom: 56px; }
body[data-density="compact"] .capital-section,
body[data-density="compact"] .subs-section { padding-top: 56px; padding-bottom: 56px; }
body[data-density="compact"] .panel { padding: 18px; }
body[data-density="compact"] .profile-body { padding: 36px 32px 56px; gap: 48px; }

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-size: 16.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv11';
}

.serif { font-family: var(--headline-font); font-weight: var(--headline-weight); }
.mono  { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; }
.tnum  { font-variant-numeric: tabular-nums; }

/* ---------- TOP NAV (sticky) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.topbar-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 4px;
  background: var(--navy-900);
  display: grid; place-items: center;
  color: white; font-weight: 700; font-size: 12px; letter-spacing: 0.04em;
}
.brand-name { font-weight: 600; letter-spacing: -0.005em; font-size: 14px; }
.brand-sub  { color: var(--slate-500); font-size: 12px; margin-left: 6px; }

.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: var(--slate-700); text-decoration: none; font-size: 13px;
  letter-spacing: 0.01em; padding: 6px 0; position: relative;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -15px;
  height: 2px; background: var(--accent);
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 6px; font-size: 13px;
  font-weight: 500; letter-spacing: 0.01em; cursor: pointer;
  transition: transform 80ms ease, background 120ms ease, border-color 120ms ease;
  border: 1px solid transparent; text-decoration: none;
}
.btn-primary { background: var(--navy-900); color: white; }
.btn-primary:hover { background: var(--navy-800); }
.btn-ghost   { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn-ghost:hover { border-color: var(--slate-400); }
.btn-accent  { background: var(--accent); color: var(--navy-1000); }
.btn-accent:hover { background: var(--accent-2); color: white; }
.btn-dark    { background: rgba(255,255,255,0.08); color: white; border: 1px solid rgba(255,255,255,0.15); }
.btn-dark:hover { background: rgba(255,255,255,0.14); }

.btn-sm { padding: 7px 11px; font-size: 12px; }
.btn-lg { padding: 16px 26px; font-size: 16px; border-radius: 8px; font-weight: 500; }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1400px 700px at 80% -10%, rgba(63,189,181,0.20), transparent 60%),
    radial-gradient(1100px 600px at 5% 110%, rgba(90,127,184,0.18), transparent 60%),
    linear-gradient(180deg, #06132a 0%, #0a1f3d 60%, #0a1f3d 100%);
  color: white;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 35%, transparent 80%);
}
.hero-inner {
  position: relative; max-width: 1320px; margin: 0 auto;
  padding: 96px 32px 120px;
  display: flex; flex-direction: column; align-items: flex-start;
}
.hero-inner-split {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px; align-items: start;
}
.hero-inner-split .hero-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.hero-inner-split .hero-copy h1 { max-width: 14ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(63,189,181,0.18); }
.eyebrow .sep { color: rgba(255,255,255,0.3); }
.hero h1 {
  font-family: var(--headline-font);
  font-weight: var(--headline-weight);
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1.16;
  letter-spacing: -0.025em;
  margin: 28px 0 56px;
  text-wrap: balance;
  max-width: 16ch;
}
.hero h1 em { font-style: italic; color: var(--steel-300); }
.hero-sub {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
  color: rgba(255,255,255,0.85);
  max-width: 760px;
  margin: 0 0 28px;
  font-weight: 400;
  letter-spacing: -0.005em;
}
.hero-lede {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  max-width: 660px;
  margin: 0 0 44px;
  line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-meta {
  width: 100%;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; margin-top: 80px;
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 28px;
}
.hero-meta .item .k { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.hero-meta .item .v { font-size: 26px; font-weight: 500; margin-top: 8px; letter-spacing: -0.015em; font-family: var(--headline-font); }

.hero-scroll-cue {
  position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.4); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
}
.hero-scroll-cue .line {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, rgba(255,255,255,0.4), transparent);
  animation: scroll-pulse 2.4s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(0.6); opacity: 0.4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* hero report card */
.report-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 24px;
  position: relative;
}
.report-card .corner {
  position: absolute; top: -1px; right: -1px;
  background: var(--accent); color: var(--navy-1000);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 10px; font-weight: 600; border-radius: 0 10px 0 6px;
}
.report-card .doc-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.report-card .doc-title { font-family: 'Source Serif 4', Georgia, serif; font-size: 22px; line-height: 1.2; margin-top: 6px; }
.report-card .meta-row { display: flex; gap: 24px; margin-top: 18px; }
.report-card .meta-row .k { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.report-card .meta-row .v { font-size: 13px; color: rgba(255,255,255,0.85); margin-top: 4px; }
.toc { margin-top: 22px; border-top: 1px solid rgba(255,255,255,0.10); padding-top: 18px; display: grid; gap: 8px; }
.toc .row { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,0.65); }
.toc .row .num { color: rgba(255,255,255,0.35); font-variant-numeric: tabular-nums; }

/* ---------- TOP-10 LIST ---------- */
.section { max-width: 1320px; margin: 0 auto; padding: var(--section-pad) 32px; }
.section-rankings { padding-top: 120px; padding-bottom: 120px; }
.section-header { display: flex; align-items: end; justify-content: space-between; margin-bottom: 56px; gap: 64px; }
.section-eyebrow { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--slate-500); font-weight: 500; }
.section-eyebrow .accent { color: var(--accent-2); }
.section h2 {
  font-family: var(--headline-font);
  font-weight: var(--headline-weight); font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.02em;
  margin: 14px 0 0; max-width: 18ch;
  text-wrap: balance;
}
.section-sub { color: var(--slate-500); font-size: 16px; line-height: 1.55; max-width: 460px; }

/* Ranking list rows */
.rank-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  border-top: 1px solid var(--hairline);
}
.rank-row {
  display: grid;
  grid-template-columns: 80px 1fr 180px 280px auto;
  align-items: center;
  gap: 32px;
  padding: 28px 12px;
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
  position: relative;
  background: transparent;
  transition: background 200ms ease, padding 200ms ease, border-color 200ms ease;
}
.rank-row::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent); opacity: 0;
  transition: opacity 200ms ease;
}
.rank-row:hover { background: white; padding-left: 24px; padding-right: 24px; box-shadow: var(--shadow-row); border-color: transparent; z-index: 2; }
.rank-row:hover::before { opacity: 1; }
.rank-row:hover + .rank-row { border-top-color: transparent; }
.rank-row.active { background: white; box-shadow: var(--shadow-row); border-color: transparent; padding-left: 24px; padding-right: 24px; }
.rank-row.active::before { opacity: 1; }

.rr-rank { color: var(--slate-300); }
.rr-rank-num {
  font-family: var(--headline-font);
  font-size: 56px; line-height: 1; letter-spacing: -0.03em;
  color: var(--slate-300);
  transition: color 240ms ease;
}
.rank-row:hover .rr-rank-num,
.rank-row.active .rr-rank-num { color: var(--ink); }
.rank-row:hover .rr-rank-num::before,
.rank-row.active .rr-rank-num::before { color: var(--accent-2); }

.rr-main { min-width: 0; }
.rr-name {
  font-family: var(--headline-font);
  font-size: 28px; line-height: 1.1; letter-spacing: -0.015em;
  color: var(--ink);
}
.rr-name .rr-state { color: var(--slate-400); font-weight: 400; }
.rr-fullname { font-size: 13px; color: var(--slate-500); margin-top: 6px; letter-spacing: 0.005em; }

.rr-meta-label {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--slate-400); margin-bottom: 8px; font-weight: 500;
}

.rr-tilt-pill {
  display: inline-block;
  font-size: 12px; letter-spacing: 0.04em;
  padding: 6px 12px; border-radius: 999px;
  font-weight: 500;
}
.rr-tilt-pill.tilt-snf      { background: rgba(90,127,184,0.14); color: var(--steel-500); }
.rr-tilt-pill.tilt-alf      { background: var(--accent-soft); color: var(--accent-2); }
.rr-tilt-pill.tilt-balanced { background: var(--paper-2); color: var(--slate-700); }
.rr-tilt-pill.tilt-future   { background: rgba(201,169,110,0.16); color: #8c7642; }

.rr-score-row { display: flex; align-items: center; gap: 16px; }
.rr-score {
  font-family: var(--headline-font);
  font-size: 38px; line-height: 1; letter-spacing: -0.02em;
  color: var(--ink);
}
.rr-denom { font-family: 'Inter Tight', sans-serif; font-size: 14px; color: var(--slate-400); margin-left: 2px; }
.rr-bar { flex: 1; height: 4px; background: var(--paper-2); border-radius: 2px; overflow: hidden; min-width: 60px; }
.rr-bar-fill {
  height: 100%; background: var(--navy-900);
  transition: width 600ms cubic-bezier(.2,.7,.2,1);
  width: 0%;
}
.rank-row:hover .rr-bar-fill,
.rank-row.active .rr-bar-fill { background: var(--accent); }

/* CTA on the right */
.rr-cta { display: flex; justify-content: flex-end; }
.rr-cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 8px;
  font-size: 14px; font-weight: 500; letter-spacing: -0.005em;
  background: var(--paper-2);
  color: var(--slate-700);
  border: 1px solid transparent;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease, gap 200ms ease;
  white-space: nowrap;
}
.rr-cta-btn svg { transition: transform 200ms ease; }
.rank-row:hover .rr-cta-btn { background: var(--navy-900); color: white; gap: 14px; }
.rank-row:hover .rr-cta-btn svg { transform: translateX(3px); }
.rank-row.active .rr-cta-btn { background: var(--accent); color: var(--navy-1000); }
.rr-cta-soon {
  background: transparent !important;
  color: var(--slate-400) !important;
  border-color: var(--hairline) !important;
}
.rank-row:hover .rr-cta-soon { background: white !important; color: var(--slate-700) !important; }

/* Hide any leftover old card styles by overriding (defensive) */
.rank-grid { display: none !important; }

/* ---------- PROFILE SHELL ---------- */
.profile-section { background: white; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

.profile-header {
  max-width: 1320px; margin: 0 auto;
  padding: 64px 32px 0;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 48px;
}
.ph-eyebrow { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-2); display: flex; gap: 10px; align-items: center; font-weight: 500; }
.ph-rank-badge {
  display: inline-block; background: var(--navy-900); color: white;
  padding: 4px 10px; border-radius: 4px; font-size: 11px; letter-spacing: 0.06em;
}
.ph-title { font-family: var(--headline-font); font-weight: var(--headline-weight);
  font-size: clamp(44px, 5.4vw, 76px); line-height: 1.0; letter-spacing: -0.025em; margin: 18px 0 14px;
  text-wrap: balance;
}
.ph-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--slate-500); font-size: 14px; align-items: center; }
.ph-meta .pill {
  background: var(--paper); border: 1px solid var(--hairline); padding: 6px 12px; border-radius: 999px;
  color: var(--slate-700); font-size: 13px;
}
.ph-meta .pill.accent { background: var(--accent-soft); color: var(--accent-2); border-color: transparent; }

.ph-score-block { text-align: right; }
.ph-score-block .label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate-500); font-weight: 500; }
.ph-score-block .num { font-family: 'Source Serif 4', Georgia, serif; font-size: 96px; line-height: 0.95; letter-spacing: -0.035em; color: var(--ink); }
.ph-score-block .num .denom { font-size: 26px; color: var(--slate-400); }
.ph-score-block .delta { font-size: 12px; color: var(--accent-2); margin-top: 6px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; }

/* ---------- SUB-NAV (sticky on profile) ---------- */
.subnav {
  position: sticky; top: 56px; z-index: 30;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hairline);
  margin-top: 36px;
}
.subnav-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 32px;
  display: flex; gap: 28px; overflow-x: auto;
}
.subnav a {
  padding: 16px 0; color: var(--slate-500); font-size: 13px; text-decoration: none;
  letter-spacing: 0.01em; white-space: nowrap; border-bottom: 2px solid transparent;
  transition: color 120ms ease;
}
.subnav a:hover { color: var(--ink); }
.subnav a.active { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- TWO-COL: NARRATIVE + SCORECARD ---------- */
.profile-body {
  max-width: 1320px; margin: 0 auto;
  padding: 64px 32px 96px;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 72px;
}
.narrative .lede {
  font-family: 'Source Serif 4', Georgia, serif; font-size: 26px; line-height: 1.4;
  color: var(--ink); margin: 0 0 32px; text-wrap: pretty; letter-spacing: -0.005em;
}
.narrative p { color: var(--slate-700); font-size: 17px; line-height: 1.7; margin: 0 0 20px; max-width: 60ch; }

.callout {
  margin: 44px 0; padding: 32px 36px;
  border-left: 3px solid var(--accent);
  background: linear-gradient(90deg, var(--accent-soft), transparent 70%);
}
.callout .q { font-family: 'Source Serif 4', Georgia, serif; font-size: 30px; line-height: 1.25; color: var(--ink); letter-spacing: -0.015em; }
.callout .by { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate-500); margin-top: 18px; font-weight: 500; }

.takeaways { margin-top: 36px; }
.takeaways h4 { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate-500); margin: 0 0 16px; }
.takeaways ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.takeaways li {
  display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start;
  font-size: 14px; line-height: 1.55; color: var(--slate-700);
  padding-bottom: 14px; border-bottom: 1px solid var(--hairline);
}
.takeaways li:last-child { border-bottom: none; }
.takeaways li .num { font-family: 'Source Serif 4', Georgia, serif; color: var(--accent-2); font-size: 14px; font-variant-numeric: tabular-nums; }

/* ---------- DATA PANEL ---------- */
.data-panel { display: grid; gap: 20px; align-content: start; position: sticky; top: 124px; }
.panel {
  background: white; border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: 24px;
}
.panel.dark { background: var(--navy-900); color: white; border-color: var(--navy-800); }
.panel h3 { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate-500); margin: 0 0 18px; font-weight: 500; }
.panel.dark h3 { color: rgba(255,255,255,0.55); }

.scorecard { display: grid; gap: 14px; }
.score-row { display: grid; grid-template-columns: 1fr auto; row-gap: 6px; column-gap: 12px; }
.score-row .lbl { font-size: 13px; color: var(--ink); }
.score-row .val { font-size: 13px; color: var(--slate-700); font-variant-numeric: tabular-nums; }
.score-row .val .max { color: var(--slate-400); }
.score-bar { grid-column: 1 / -1; height: 5px; background: var(--paper-2); border-radius: 3px; overflow: hidden; position: relative; }
.score-bar-fill { height: 100%; background: var(--navy-900); border-radius: 3px; transition: width 900ms cubic-bezier(.2,.7,.2,1); }
.score-bar-fill.accent { background: var(--accent); }
.scorecard .total {
  border-top: 1px solid var(--hairline); margin-top: 6px; padding-top: 14px;
  display: flex; align-items: baseline; justify-content: space-between;
}
.scorecard .total .lbl { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-500); }
.scorecard .total .val { font-family: 'Source Serif 4', Georgia, serif; font-size: 36px; letter-spacing: -0.02em; }
.scorecard .total .val .denom { font-size: 16px; color: var(--slate-400); }

/* product type bars */
.product-bars { display: grid; gap: 12px; }
.pbar { display: grid; grid-template-columns: 110px 1fr 38px; gap: 12px; align-items: center; }
.pbar .lbl { font-size: 12px; color: rgba(255,255,255,0.78); }
.pbar .track { height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.pbar .fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width 900ms cubic-bezier(.2,.7,.2,1); }
.pbar .val { font-size: 12px; color: white; font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- TABS (Combined / SNF / ALF) ---------- */
.tabs {
  display: inline-flex; padding: 4px; background: var(--paper-2); border-radius: 8px;
  border: 1px solid var(--hairline);
}
.tabs button {
  border: 0; background: transparent; padding: 8px 14px; cursor: pointer;
  font-size: 12.5px; color: var(--slate-700); border-radius: 5px;
  font-family: inherit; letter-spacing: 0.005em;
  transition: background 140ms ease, color 140ms ease;
}
.tabs button:hover { color: var(--ink); }
.tabs button.active { background: white; color: var(--ink); box-shadow: 0 1px 2px rgba(14,26,46,0.06); }

/* ---------- DRIVER MATRIX ---------- */
.matrix-section { background: var(--paper); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.matrix-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr;
  border: 1px solid var(--hairline); background: white; border-radius: var(--radius-lg); overflow: hidden;
}
.matrix-grid .cell {
  padding: 18px 22px; border-bottom: 1px solid var(--hairline);
  font-size: 14px; color: var(--ink); display: flex; align-items: center; gap: 10px;
}
.matrix-grid .cell.head {
  background: var(--paper); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--slate-500); padding: 12px 22px;
}
.matrix-grid .cell.driver { color: var(--slate-700); font-size: 14px; }
.matrix-grid .row-end { border-bottom: none; }
.intensity {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--paper-2); color: var(--slate-700);
  font-variant-numeric: tabular-nums;
}
.intensity .dots { display: inline-flex; gap: 2px; }
.intensity .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--slate-300); }
.intensity .dot.on { background: var(--navy-900); }
.intensity.snf .dot.on { background: var(--steel-500); }
.intensity.alf .dot.on { background: var(--accent); }

/* ---------- SUBMARKETS ---------- */
.subs-section { padding: 80px 32px; max-width: 1320px; margin: 0 auto; }
.subs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--hairline); margin-top: 28px; }
.sub-card {
  display: grid; grid-template-columns: 60px 1fr 110px; gap: 20px; align-items: start;
  padding: 24px 0; border-bottom: 1px solid var(--hairline); cursor: default;
  transition: background 120ms ease, padding 120ms ease;
}
.sub-card:nth-child(odd)  { padding-right: 28px; border-right: 1px solid var(--hairline); }
.sub-card:nth-child(even) { padding-left: 28px; }
.sub-card:hover { background: var(--paper); }
.sub-card .num { font-family: 'Source Serif 4', Georgia, serif; font-size: 22px; color: var(--slate-400); letter-spacing: -0.01em; }
.sub-card .body .name { font-size: 15px; font-weight: 500; color: var(--ink); }
.sub-card .body .places { font-size: 12px; color: var(--slate-500); margin-top: 3px; letter-spacing: 0.01em; }
.sub-card .body .thesis { font-size: 13.5px; color: var(--slate-700); margin-top: 10px; line-height: 1.55; max-width: 50ch; }
.sub-card .tilt { justify-self: end; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.tilt-snf      { background: rgba(90,127,184,0.12); color: var(--steel-500); }
.tilt-alf      { background: var(--accent-soft); color: var(--accent-2); }
.tilt-balanced { background: var(--paper-2); color: var(--slate-700); }
.tilt-future   { background: rgba(201,169,110,0.15); color: #8c7642; }

/* ---------- METHODOLOGY ---------- */
.method-section { background: var(--navy-900); color: white; padding: 120px 32px; }
.method-section h2 { color: white; font-size: clamp(36px, 4.4vw, 56px); }
.method-section .section-sub { color: rgba(255,255,255,0.6); }
.method-section .section-eyebrow { color: var(--accent); }
.method-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin-top: 32px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.10); border-radius: var(--radius-lg); overflow: hidden;
}
.method-card {
  background: var(--navy-900); padding: 24px 22px; min-height: 200px;
  display: flex; flex-direction: column; gap: 10px;
}
.method-card .pts {
  display: flex; align-items: baseline; justify-content: space-between;
}
.method-card .pts .num { font-family: 'Source Serif 4', Georgia, serif; font-size: 44px; line-height: 1; letter-spacing: -0.02em; }
.method-card .pts .ofmax { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.method-card .lbl { font-size: 14px; font-weight: 500; margin-top: 6px; letter-spacing: -0.005em; }
.method-card .desc { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.55; }
.method-card .accent-bar { height: 3px; background: rgba(255,255,255,0.1); margin-top: auto; border-radius: 2px; overflow: hidden; }
.method-card .accent-bar .fill { height: 100%; background: var(--accent); transition: width 1000ms cubic-bezier(.2,.7,.2,1); }

/* ---------- CAPITAL CARDS ---------- */
.capital-section { padding: 120px 32px; max-width: 1320px; margin: 0 auto; }
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; }
.cap-card {
  background: white; border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: 26px 24px 24px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 220px;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.cap-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); border-color: var(--steel-300); }
.cap-card .marker { width: 28px; height: 2px; background: var(--accent); }
.cap-card h4 { font-family: 'Source Serif 4', Georgia, serif; font-weight: 400; font-size: 20px; line-height: 1.25; margin: 0; letter-spacing: -0.01em; }
.cap-card p { font-size: 13.5px; color: var(--slate-700); line-height: 1.6; margin: 0; }
.cap-card .tag { margin-top: auto; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-500); }

.cap-bravo {
  margin-top: 32px; padding: 28px 32px;
  background: var(--navy-900); color: rgba(255,255,255,0.85); border-radius: var(--radius-lg);
  font-size: 15px; line-height: 1.6;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px;
}
.cap-bravo strong { color: white; font-weight: 500; }

/* ---------- FINAL CTA ---------- */
.cta-section {
  background:
    radial-gradient(900px 500px at 80% 0%, rgba(63,189,181,0.18), transparent 60%),
    linear-gradient(180deg, #06132a, #0a1f3d);
  color: white; padding: 140px 32px;
}
.cta-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.cta-inner h2 { font-family: var(--headline-font); font-weight: var(--headline-weight); font-size: clamp(40px, 5.2vw, 72px); line-height: 1.05; letter-spacing: -0.025em; color: white; margin: 24px 0 22px; text-wrap: balance; }
.cta-inner p { font-size: 19px; color: rgba(255,255,255,0.72); max-width: 740px; margin: 0 auto 40px; line-height: 1.6; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- SOURCES ---------- */
.sources {
  padding: 56px 32px; background: var(--paper-2); color: var(--slate-700);
  border-top: 1px solid var(--hairline);
}
.sources-inner { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.sources h3 { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate-500); margin: 0 0 12px; }
.sources .list { display: flex; flex-wrap: wrap; gap: 8px 8px; }
.sources .src {
  background: white; border: 1px solid var(--hairline); border-radius: 999px;
  padding: 6px 12px; font-size: 12px; color: var(--slate-700);
}
.sources p { font-size: 12px; color: var(--slate-500); line-height: 1.6; margin: 0; max-width: 60ch; }

/* footer */
.foot { padding: 32px; text-align: center; color: var(--slate-400); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; background: var(--navy-1000); }
.foot .sep { color: rgba(255,255,255,0.18); margin: 0 8px; }

/* misc */
hr.rule { border: 0; border-top: 1px solid var(--hairline); margin: 0; }

/* Light hero variant */
.hero.hero-light {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(63,189,181,0.10), transparent 60%),
    radial-gradient(700px 400px at 10% 110%, rgba(90,127,184,0.10), transparent 60%),
    linear-gradient(180deg, #f7f8fa 0%, #ffffff 100%);
  color: var(--ink);
}
.hero.hero-light .hero-grid-bg {
  background-image:
    linear-gradient(rgba(14,26,46,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,26,46,0.05) 1px, transparent 1px);
}
.hero.hero-light h1 em { color: var(--steel-500); }
.hero.hero-light .hero-sub { color: var(--slate-700); }
.hero.hero-light .hero-lede { color: var(--slate-500); }
.hero.hero-light .hero-meta { border-top-color: var(--hairline); }
.hero.hero-light .hero-meta .item .k { color: var(--slate-500); }
.hero.hero-light .hero-meta .item .v { color: var(--ink); }
.hero.hero-light .eyebrow { color: var(--accent-2); }
.hero.hero-light .eyebrow .sep { color: var(--slate-300); }
.hero.hero-light .btn-dark { background: var(--ink); color: white; border-color: transparent; }
.hero.hero-light .btn-dark:hover { background: var(--navy-700); }
.hero.hero-light .report-card {
  background: white;
  border-color: var(--hairline);
  box-shadow: var(--shadow-card);
}
.hero.hero-light .report-card .doc-label,
.hero.hero-light .report-card .meta-row .k,
.hero.hero-light .toc .row { color: var(--slate-500); }
.hero.hero-light .report-card .doc-title,
.hero.hero-light .report-card .meta-row .v { color: var(--ink); }
.hero.hero-light .toc { border-top-color: var(--hairline); }
.hero.hero-light .toc .row .num { color: var(--slate-300); }
.kbd { font-family: 'JetBrains Mono', monospace; font-size: 11px; padding: 2px 6px; background: var(--paper-2); border: 1px solid var(--hairline); border-radius: 4px; color: var(--slate-700); }

/* responsive */
@media (max-width: 1100px) {
  .hero-inner { padding: 80px 32px 100px; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .rank-row { grid-template-columns: 56px 1fr 220px auto; gap: 24px; }
  .rank-row .rr-tilt-col { display: none; }
  .profile-body { grid-template-columns: 1fr; }
  .data-panel { position: static; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .matrix-grid { grid-template-columns: 1fr; }
  .matrix-grid .cell.head { display: none; }
  .matrix-grid .cell.driver { font-weight: 500; padding-bottom: 4px; }
  .subs-grid { grid-template-columns: 1fr; }
  .sub-card:nth-child(odd) { padding-right: 0; border-right: none; }
  .sub-card:nth-child(even) { padding-left: 0; }
  .profile-header { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .ph-score-block { text-align: left; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 40px; }
}
@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .nav-links { display: none; }
  .rank-row { grid-template-columns: 48px 1fr; gap: 16px; padding: 24px 12px; }
  .rank-row .rr-score-col { grid-column: 1 / -1; padding-left: 64px; }
  .rank-row .rr-cta { grid-column: 1 / -1; padding-left: 64px; justify-content: flex-start; margin-top: -8px; }
  .rr-rank-num { font-size: 40px; }
  .rr-name { font-size: 22px; }
  .rr-fullname { display: none; }
  .cap-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 20px; }
  .section-rankings { padding: 80px 20px; }
  .hero-inner { padding: 56px 20px 96px; }
  .topbar-inner { padding: 12px 20px; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .cap-bravo { grid-template-columns: 1fr; }
}


/* ============================================================
   HERO TOP-10 SIDEBAR
   ============================================================ */
.hero-top10 {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 22px 22px 18px;
  backdrop-filter: blur(6px);
  width: 100%;
  position: sticky; top: 80px;
}
.hero-top10 .ht-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px;
}
.hero-top10 .ht-eyebrow {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); font-weight: 500;
}
.hero-top10 .ht-viewall {
  font-size: 12px; color: rgba(255,255,255,0.7);
  text-decoration: none; letter-spacing: 0.02em;
  transition: color 160ms ease;
}
.hero-top10 .ht-viewall:hover { color: var(--accent); }
.hero-top10 .ht-list {
  list-style: none; padding: 0; margin: 0;
}
.hero-top10 .ht-item {
  display: grid;
  grid-template-columns: 24px 1fr auto 14px;
  align-items: center; gap: 14px;
  padding: 10px 4px;
  border-top: 1px solid rgba(255,255,255,0.07);
  cursor: pointer;
  transition: background 140ms ease, padding 140ms ease, color 140ms ease;
  position: relative;
}
.hero-top10 .ht-item:first-child { border-top: 0; }
.hero-top10 .ht-item:hover { background: rgba(255,255,255,0.04); padding-left: 8px; padding-right: 8px; }
.hero-top10 .ht-rank {
  font-size: 12px; color: rgba(255,255,255,0.4); font-weight: 500;
  font-feature-settings: "tnum";
}
.hero-top10 .ht-name {
  color: white; font-size: 14px; letter-spacing: -0.005em;
  font-family: 'Source Serif 4', Georgia, serif;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero-top10 .ht-state {
  color: rgba(255,255,255,0.45); font-size: 12px; margin-left: 4px;
  font-family: 'Inter', sans-serif;
}
.hero-top10 .ht-score {
  color: rgba(255,255,255,0.85); font-size: 13px; font-weight: 500;
}
.hero-top10 .ht-icon { color: rgba(255,255,255,0.35); transition: color 140ms ease, transform 140ms ease; }
.hero-top10 .ht-item:hover .ht-icon { color: var(--accent); transform: translateX(2px); }
.hero-top10 .ht-foot {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: rgba(255,255,255,0.5);
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.07);
  letter-spacing: 0.01em;
}
.hero-top10 .ht-foot svg { color: var(--accent); flex-shrink: 0; }

/* light hero variant */
.hero.hero-light .hero-top10 {
  background: white;
  border-color: var(--hairline);
  box-shadow: 0 1px 2px rgba(14,26,46,0.04), 0 12px 32px rgba(14,26,46,0.06);
}
.hero.hero-light .hero-top10 .ht-item { border-top-color: var(--hairline); }
.hero.hero-light .hero-top10 .ht-item:hover { background: var(--paper-2); }
.hero.hero-light .hero-top10 .ht-name { color: var(--ink); }
.hero.hero-light .hero-top10 .ht-state { color: var(--slate-500); }
.hero.hero-light .hero-top10 .ht-score { color: var(--ink); }
.hero.hero-light .hero-top10 .ht-rank { color: var(--slate-400); }
.hero.hero-light .hero-top10 .ht-icon { color: var(--slate-400); }
.hero.hero-light .hero-top10 .ht-viewall { color: var(--slate-700); }
.hero.hero-light .hero-top10 .ht-foot { color: var(--slate-500); border-top-color: var(--hairline); }

/* ============================================================
   LOCK STATES on rank rows
   ============================================================ */
.rr-name-lock { margin-left: 8px; color: var(--slate-400); vertical-align: -2px; }
.rank-row.is-locked { cursor: pointer; }
.rank-row.is-locked .rr-name { color: var(--slate-700); }
.rank-row.is-locked .rr-score { color: var(--slate-500); }
.rank-row.is-locked .rr-bar-fill { background: var(--slate-300); }
.rank-row.is-locked:hover .rr-name { color: var(--ink); }
.rank-row.is-locked:hover .rr-score { color: var(--ink); }
.rank-row.is-locked:hover .rr-name-lock { color: var(--accent-2); }

.rr-cta-locked {
  background: transparent !important; color: var(--slate-500) !important;
  border-color: var(--hairline) !important;
}
.rank-row.is-locked:hover .rr-cta-locked {
  background: var(--accent) !important;
  color: var(--navy-1000) !important;
  border-color: transparent !important;
}
.rank-row.is-locked:hover .rr-cta-locked svg { color: var(--navy-1000) !important; }

/* ============================================================
   EMAIL GATE MODAL
   ============================================================ */
.gate-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6,12,28,0.74);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 32px 20px;
  animation: gate-fade 200ms ease both;
}
@keyframes gate-fade { from { opacity: 0; } to { opacity: 1; } }

.gate-modal {
  position: relative;
  width: min(100%, 1080px);
  max-height: calc(100vh - 64px);
  background: white;
  border-radius: 14px;
  display: grid; grid-template-columns: 1.4fr 1fr;
  overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(6,12,28,0.5);
  animation: gate-rise 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes gate-rise {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.gate-close {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(6,19,42,0.06); border: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--slate-700);
  transition: background 140ms ease, color 140ms ease;
}
.gate-close:hover { background: rgba(6,19,42,0.1); color: var(--ink); }

.gate-side { padding: 56px 56px 48px; overflow-y: auto; }
.gate-side-form {
  display: flex; flex-direction: column;
}
.gate-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-2); font-weight: 500;
  margin-bottom: 18px;
}
.gate-eyebrow svg { color: var(--accent-2); }
.gate-title {
  font-family: var(--headline-font); font-weight: var(--headline-weight);
  font-size: clamp(28px, 3vw, 40px); line-height: 1.08;
  letter-spacing: -0.02em; color: var(--ink);
  margin: 0 0 16px; text-wrap: balance;
}
.gate-title em { font-style: italic; color: var(--accent-2); }
.gate-sub {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 16px; line-height: 1.55; color: var(--slate-700);
  margin: 0 0 28px; max-width: 50ch;
}

.gate-form { display: flex; flex-direction: column; gap: 16px; }
.gate-row { display: grid; gap: 14px; }
.gate-row-2 { grid-template-columns: 1fr 1fr; }
.gate-field { display: flex; flex-direction: column; gap: 6px; }
.gate-label {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--slate-500); font-weight: 500;
}
.gate-field input,
.gate-field select {
  font-family: 'Inter', sans-serif;
  font-size: 14.5px; padding: 12px 14px;
  border: 1px solid var(--hairline); border-radius: 8px;
  background: white; color: var(--ink);
  transition: border-color 140ms ease, box-shadow 140ms ease;
  -webkit-appearance: none; appearance: none;
}
.gate-field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px;
}
.gate-field input:focus,
.gate-field select:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.gate-field input::placeholder { color: var(--slate-400); }

.gate-fineprint {
  font-size: 12.5px; line-height: 1.55; color: var(--slate-500);
  margin: 4px 0 8px;
}
.gate-fineprint strong { color: var(--slate-700); font-weight: 600; }
.gate-fineprint a { color: var(--accent-2); text-decoration: none; border-bottom: 1px dotted var(--accent-2); }

.gate-submit { width: 100%; justify-content: center; margin-top: 6px; }
.gate-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* Right aside */
.gate-side-aside {
  background: linear-gradient(180deg, var(--navy-900), #0a1f3d);
  color: white;
  padding: 56px 44px 48px;
}
.gate-aside-eyebrow {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); font-weight: 500;
  margin-bottom: 18px;
}
.gate-aside-list {
  list-style: none; padding: 0; margin: 0 0 32px;
  display: flex; flex-direction: column; gap: 16px;
}
.gate-aside-list li {
  display: grid; grid-template-columns: 36px 1fr; align-items: baseline; gap: 14px;
  font-size: 14px; line-height: 1.45; color: rgba(255,255,255,0.85);
  font-family: 'Source Serif 4', Georgia, serif;
}
.gate-aside-list li .num {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 26px; color: white; font-feature-settings: "tnum";
}
.gate-aside-mini {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
}
.gate-aside-toplist {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
}
.gate-aside-toplist li {
  display: grid; grid-template-columns: 24px 1fr auto;
  align-items: center; gap: 12px;
  padding: 7px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
}
.gate-aside-toplist li:first-child { border-top: 0; }
.gate-aside-toplist .rk { color: rgba(255,255,255,0.4); font-size: 11px; }
.gate-aside-toplist .nm { color: rgba(255,255,255,0.85); font-family: 'Source Serif 4', Georgia, serif; }
.gate-aside-toplist .sc { color: rgba(255,255,255,0.6); font-feature-settings: "tnum"; }

/* Confirm / verified states */
.gate-confirm {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 56px 64px;
  display: flex; flex-direction: column; align-items: center;
  max-width: 640px; margin: 0 auto;
}
.gate-confirm .gate-eyebrow { justify-content: center; }
.gate-confirm .gate-title,
.gate-confirm .gate-sub { text-align: center; }
.gate-confirm .gate-sub { max-width: 52ch; margin-left: auto; margin-right: auto; }
.gate-confirm .gate-fineprint { text-align: center; }
.gate-confirm .gate-submit { max-width: 320px; }

.gate-confirm-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-2);
  margin-bottom: 24px;
}
.gate-confirm-icon-success { background: rgba(63,189,181,0.18); color: var(--accent-2); }

.gate-dev-note {
  margin-top: 36px; padding: 22px 24px;
  background: var(--paper-2); border: 1px dashed var(--hairline);
  border-radius: 10px; text-align: left;
  width: 100%; max-width: 460px;
}
.gate-dev-eyebrow {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--slate-500); font-weight: 600;
  margin-bottom: 8px;
}
.gate-dev-note p { font-size: 13px; line-height: 1.5; color: var(--slate-700); margin: 0 0 14px; }
.gate-dev-btn { font-size: 13px; }

/* ============================================================
   RESPONSIVE — Hero split + Gate
   ============================================================ */
@media (max-width: 980px) {
  .hero-inner-split { grid-template-columns: 1fr; gap: 48px; }
  .hero-top10 { position: static; max-width: 540px; }
}
@media (max-width: 760px) {
  .gate-modal { grid-template-columns: 1fr; max-height: calc(100vh - 32px); }
  .gate-side { padding: 56px 28px 36px; }
  .gate-side-aside { padding: 36px 28px 40px; }
  .gate-row-2 { grid-template-columns: 1fr; }
  .gate-confirm { padding: 56px 28px 40px; }
}
