/* Ridgemont design system — shared by ridgemontenergycapital.com and ridgemontcharging.com.
   Each site sets --accent / --accent-ink / --accent-soft in its own site.css. */

:root {
  --ink: #0a0e13;
  --ink-2: #0f151c;
  --ink-3: #161e27;
  --ink-4: #1f2933;
  --line: rgba(233, 228, 218, 0.09);
  --line-2: rgba(233, 228, 218, 0.17);
  --text: #ebe6dc;
  --muted: #a1a9b2;
  --dim: #7c8691;

  --paper: #f3f0e9;
  --paper-2: #e9e4da;
  --paper-line: rgba(18, 23, 29, 0.12);
  --paper-text: #12171d;
  --paper-muted: #545d67;

  --accent: #d4a15e;
  --accent-ink: #8a5a1f;
  --accent-soft: rgba(212, 161, 94, 0.14);

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(88px, 12vw, 168px);
  --radius: 4px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--accent); color: var(--ink); padding: 10px 16px; font-weight: 600; border-radius: var(--radius); }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.display, h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; line-height: 1.02; margin: 0; }
h1, .display { font-size: clamp(48px, 7.6vw, 112px); }
h2 { font-size: clamp(38px, 5vw, 72px); line-height: 1.04; }
h3 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.12; }
h4 { font-family: var(--sans); font-size: 17px; font-weight: 600; letter-spacing: -0.005em; margin: 0; }
em, .it { font-style: italic; }
h1 em, h2 em, .display em { color: var(--accent); }
p { margin: 0; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--muted); max-width: 62ch; }
.body-copy { color: var(--muted); max-width: 64ch; }
.body-copy + .body-copy { margin-top: 1em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.eyebrow .n { color: var(--accent); }

.mono { font-family: var(--mono); font-feature-settings: "tnum"; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Buttons & links ---------- */
.btn {
  --b: var(--accent);
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 26px;
  border: 1px solid var(--b); background: var(--b); color: var(--ink);
  font-size: 15px; font-weight: 600; letter-spacing: 0.005em; border-radius: var(--radius);
  cursor: pointer; transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
  touch-action: manipulation;
}
.btn:hover { transform: translateY(-1px); background: var(--text); border-color: var(--text); }
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { background: rgba(233, 228, 218, 0.06); color: var(--text); border-color: var(--text); }
.on-paper .btn--ghost { color: var(--paper-text); border-color: var(--paper-line); }
.on-paper .btn--ghost:hover { border-color: var(--paper-text); background: rgba(18, 23, 29, 0.04); }
.on-paper .btn:not(.btn--ghost):hover { background: var(--paper-text); border-color: var(--paper-text); color: var(--paper); }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--text); border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: border-color 0.25s, gap 0.25s var(--ease); }
.link-arrow:hover { border-color: var(--accent); gap: 14px; }
.on-paper .link-arrow { color: var(--paper-text); border-color: var(--paper-line); }
.on-paper .link-arrow:hover { border-color: var(--accent-ink); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled, .nav.is-open { background: rgba(10, 14, 19, 0.82); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; min-height: 44px; }
.brand svg.mark { width: 46px; height: auto; color: var(--text); }
.brand .wm { display: flex; flex-direction: column; line-height: 1; }
.brand .wm b { font-family: var(--sans); font-weight: 700; font-size: 17px; letter-spacing: 0.2em; }
.brand .wm span { font-family: var(--sans); font-size: 9.5px; letter-spacing: 0.34em; color: var(--muted); margin-top: 5px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 14.5px; color: var(--muted); transition: color 0.2s; position: relative; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 1px; background: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { min-height: 44px; padding: 0 20px; font-size: 14px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); background: transparent; border-radius: var(--radius); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 1.5px; background: var(--text); position: relative; transition: transform 0.3s var(--ease), background 0.3s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav.is-open .nav-toggle span { background: transparent; }
.nav.is-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { display: none; }

@media (max-width: 1060px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu {
    display: block; position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99; background: var(--ink);
    padding: 24px var(--gutter) 40px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav.is-open + .mobile-menu { opacity: 1; visibility: visible; transform: none; }
  .mobile-menu a.m-link { display: flex; justify-content: space-between; align-items: center; min-height: 64px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 32px; }
  .mobile-menu a.m-link[aria-current="page"] { color: var(--accent); }
  .mobile-menu .btn { margin-top: 32px; width: 100%; justify-content: center; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; position: relative; }
.section--tight { padding: clamp(64px, 8vw, 112px) 0; }
.section--ink2 { background: var(--ink-2); }
.on-paper { background: var(--paper); color: var(--paper-text); }
.on-paper .lede, .on-paper .body-copy { color: var(--paper-muted); }
.on-paper .eyebrow { color: var(--paper-muted); }
.on-paper .eyebrow::before { background: var(--accent-ink); }
.on-paper .eyebrow .n { color: var(--accent-ink); }
.on-paper h1 em, .on-paper h2 em { color: var(--accent-ink); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.on-paper .rule { background: var(--paper-line); }

.sec-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.sec-head .eyebrow { margin-bottom: 28px; }
.sec-head--stack { display: block; max-width: 900px; }
.sec-head--stack .lede { margin-top: 28px; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: flex-end; padding: calc(var(--nav-h) + 72px) 0 clamp(56px, 7vw, 96px); overflow: hidden; isolation: isolate; }
.hero canvas.field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(120% 80% at 80% 10%, transparent 30%, var(--ink) 85%),
  linear-gradient(to bottom, rgba(10,14,19,0.2), rgba(10,14,19,0) 30%, rgba(10,14,19,0.6) 75%, var(--ink)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.hero h1 { margin: 28px 0 32px; max-width: 17ch; font-size: clamp(46px, 6.4vw, 100px); }
.hero .lede { max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero--page { min-height: min(72svh, 760px); }
.hero--page h1 { font-size: clamp(46px, 6.4vw, 96px); max-width: 16ch; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

/* Spec plate: a compact, instrument-style data card */
.plate { border: 1px solid var(--line-2); background: rgba(15, 21, 28, 0.66); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: var(--radius); }
.plate-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.plate-head .live { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.plate-head .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--accent-soft); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.plate-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--line); align-items: baseline; }
.plate-row:last-child { border-bottom: 0; }
.plate-row dt { font-size: 13.5px; color: var(--muted); }
.plate-row dd { margin: 0; font-family: var(--mono); font-size: 15px; color: var(--text); font-feature-settings: "tnum"; white-space: nowrap; }
.plate-row dd .up { color: var(--accent); }
.plate-foot { padding: 12px 18px; font-size: 11.5px; color: var(--dim); border-top: 1px solid var(--line); }

/* ---------- Proof strip ---------- */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proof-item { padding: 36px 28px 34px 0; border-right: 1px solid var(--line); }
.proof-item + .proof-item { padding-left: 28px; }
.proof-item:last-child { border-right: 0; }
.proof-item .v { font-family: var(--serif); font-size: clamp(40px, 4.2vw, 60px); line-height: 1; color: var(--text); font-variant-numeric: lining-nums; }
.proof-item .v small { font-size: 0.5em; color: var(--accent); margin-left: 2px; }
.proof-item .k { margin-top: 14px; font-size: 14px; color: var(--muted); line-height: 1.45; max-width: 26ch; }
@media (max-width: 960px) {
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-item { padding: 28px 20px 28px 0; }
  .proof-item:nth-child(2) { border-right: 0; }
  .proof-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .proof-item:nth-child(3) { padding-left: 0; }
}
@media (max-width: 520px) { .proof-grid { grid-template-columns: 1fr; } .proof-item, .proof-item + .proof-item { padding: 26px 0; border-right: 0; } .proof-item + .proof-item { border-top: 1px solid var(--line); } }

/* ---------- Business lines (index cards) ---------- */
.lines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.line-card { position: relative; display: flex; flex-direction: column; min-height: 380px; padding: 40px 40px 36px 0; border-bottom: 1px solid var(--line); transition: background 0.4s; }
.line-card:nth-child(odd) { border-right: 1px solid var(--line); }
.line-card:nth-child(even) { padding-left: 40px; padding-right: 0; }
.line-card .idx { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--accent); }
.line-card h3 { margin: 28px 0 18px; max-width: 16ch; }
.line-card p { color: var(--muted); max-width: 46ch; }
.line-card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.line-card .tags li { font-family: var(--mono); font-size: 11.5px; color: var(--muted); border: 1px solid var(--line-2); padding: 5px 10px; border-radius: 999px; }
.line-card .go { margin-top: auto; padding-top: 36px; display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; }
.line-card .go .arr { display: inline-flex; width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 50%; align-items: center; justify-content: center; transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease); }
.line-card:hover .go .arr { background: var(--accent); border-color: var(--accent); color: var(--ink); transform: rotate(-45deg); }
.line-card::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 1px; background: var(--accent); transition: width 0.6s var(--ease); }
.line-card:nth-child(even)::before { left: 40px; }
.line-card:hover::before { width: calc(100% - 40px); }
@media (max-width: 860px) {
  .lines { grid-template-columns: 1fr; }
  .line-card, .line-card:nth-child(even) { padding: 36px 0; border-right: 0; min-height: 0; }
  .line-card:nth-child(even)::before { left: 0; }
}

/* ---------- Generic grids & cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 80px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.on-paper .grid-3, .on-paper .grid-4 { border-color: var(--paper-line); }
.cell { padding: 36px 32px 40px 0; border-right: 1px solid var(--line); }
.cell + .cell { padding-left: 32px; }
.grid-3 .cell:nth-child(3n), .grid-4 .cell:nth-child(4n) { border-right: 0; }
.grid-3 .cell:nth-child(3n+1), .grid-4 .cell:nth-child(4n+1) { padding-left: 0; }
.on-paper .cell { border-color: var(--paper-line); }
.cell .k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--accent); text-transform: uppercase; }
.on-paper .cell .k { color: var(--accent-ink); }
.cell h4 { margin: 22px 0 12px; font-size: 19px; }
.cell p { color: var(--muted); font-size: 15.5px; }
.on-paper .cell p { color: var(--paper-muted); }
.cell .ref { margin-top: 18px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 .cell:nth-child(2n) { border-right: 0; }
  .grid-4 .cell:nth-child(2n+1) { padding-left: 0; }
  .grid-4 .cell:nth-child(2n) { padding-left: 32px; }
  .grid-4 .cell:nth-child(n+3) { border-top: 1px solid var(--line); }
  .on-paper .grid-4 .cell:nth-child(n+3) { border-top-color: var(--paper-line); }
}
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-3 .cell { padding: 32px 0; border-right: 0; }
  .grid-3 .cell + .cell { border-top: 1px solid var(--line); }
  .on-paper .grid-3 .cell + .cell { border-top-color: var(--paper-line); }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .grid-4 .cell, .grid-4 .cell:nth-child(2n) { padding: 28px 0; border-right: 0; }
  .grid-4 .cell + .cell { border-top: 1px solid var(--line); }
  .on-paper .grid-4 .cell + .cell { border-top-color: var(--paper-line); }
}

/* ---------- Big statement ---------- */
.statement { font-family: var(--serif); font-size: clamp(34px, 4.4vw, 64px); line-height: 1.12; letter-spacing: -0.01em; max-width: 22ch; }
.statement .dim { color: var(--dim); }
.on-paper .statement .dim { color: #9aa1a8; }

/* ---------- Chart (headroom) ---------- */
.chart-card { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--ink-2); }
.chart-top { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.chart-top .t { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; }
.seg button { min-height: 38px; padding: 0 16px; border: 0; background: transparent; border-radius: 999px; font-size: 13.5px; color: var(--muted); cursor: pointer; transition: background 0.25s, color 0.25s; }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--ink); }
.chart-body { padding: 18px 10px 8px 6px; }
.chart-body svg { width: 100%; height: auto; overflow: visible; }
.chart-body .grid line { stroke: var(--line); }
.chart-body .axis text { fill: var(--dim); font-family: var(--mono); font-size: 11px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 22px; padding: 4px 22px 18px; font-size: 13px; color: var(--muted); }
.chart-legend i { display: inline-block; width: 18px; height: 8px; margin-right: 8px; border-radius: 1px; vertical-align: middle; }
.chart-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.chart-stats > div { padding: 20px 22px; border-right: 1px solid var(--line); }
.chart-stats > div:last-child { border-right: 0; }
.chart-stats .k { font-size: 12.5px; color: var(--dim); }
.chart-stats .v { font-family: var(--mono); font-size: clamp(22px, 2.4vw, 30px); margin-top: 6px; font-feature-settings: "tnum"; transition: color 0.3s; }
.chart-stats .v.hl { color: var(--accent); }
.chart-note { padding: 14px 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }
@media (max-width: 560px) { .chart-stats { grid-template-columns: 1fr; } .chart-stats > div { border-right: 0; border-bottom: 1px solid var(--line); } }

/* ---------- Steps / timeline ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.step { display: grid; grid-template-columns: 120px minmax(0, 3fr) minmax(0, 5fr); gap: 32px; padding: 32px 0; border-top: 1px solid var(--line); align-items: baseline; }
.on-paper .step { border-color: var(--paper-line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.on-paper .step:last-child { border-bottom-color: var(--paper-line); }
.step .when { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase; }
.on-paper .step .when { color: var(--accent-ink); }
.step h4 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; }
.step p { color: var(--muted); }
.on-paper .step p { color: var(--paper-muted); }
@media (max-width: 760px) { .step { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Tile map ---------- */
.tilemap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; max-width: 440px; }
.tile { aspect-ratio: 1 / 1; border: 1px solid var(--line); border-radius: 3px; display: flex; flex-direction: column; justify-content: space-between; padding: 10px; font-family: var(--mono); font-size: 13px; color: var(--dim); }
.tile.empty { border-color: transparent; }
.tile small { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; }
.tile.active { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.tile.hq { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.tile.eval { border-style: dashed; border-color: var(--line-2); color: var(--muted); }
.map-key { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 24px; font-size: 13px; color: var(--muted); }
.map-key i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 8px; vertical-align: -1px; border: 1px solid var(--line-2); }
.map-key .k-hq { background: var(--accent); border-color: var(--accent); }
.map-key .k-act { background: var(--accent-soft); border-color: var(--accent); }
.map-key .k-ev { border-style: dashed; }

/* ---------- Diagram blocks ---------- */
.diagram { border: 1px solid var(--line-2); border-radius: var(--radius); padding: clamp(18px, 3vw, 36px); background: var(--ink-2); }
.diagram svg text { font-family: var(--mono); }

/* ---------- People ---------- */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--paper-line); }
.person { padding: 40px 40px 44px 0; border-right: 1px solid var(--paper-line); }
.person + .person { padding: 40px 0 44px 40px; border-right: 0; }
.person .mono-av, .person .av-photo { width: 112px; height: 112px; border-radius: 50%; }
.person .mono-av { display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 40px; background: var(--paper-text); color: var(--paper); }
.person .av-photo { overflow: hidden; background: #111; box-shadow: 0 0 0 1px var(--paper-line); }
.person .av-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person h3 { margin: 26px 0 6px; }
.person .role { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); }
.person p { margin-top: 18px; color: var(--paper-muted); max-width: 52ch; }
.person a.mail { display: inline-block; margin-top: 20px; font-size: 14.5px; font-weight: 600; border-bottom: 1px solid var(--paper-line); padding-bottom: 3px; }
@media (max-width: 760px) { .people { grid-template-columns: 1fr; } .person, .person + .person { padding: 36px 0; border-right: 0; } .person + .person { border-top: 1px solid var(--paper-line); } }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.on-paper .faq details { border-color: var(--paper-line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 26px 0; cursor: pointer; font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.2; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex-shrink: 0; width: 32px; height: 32px; border: 1px solid var(--line-2); border-radius: 50%; position: relative; transition: transform 0.3s var(--ease); }
.on-paper .faq summary .pm { border-color: var(--paper-line); }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.3s var(--ease); }
.faq details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq details p { padding: 0 0 28px; color: var(--muted); max-width: 70ch; }
.on-paper .faq details p { color: var(--paper-muted); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; }
.cta-band canvas.field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.55; }
.cta-band .inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.cta-band h2 { max-width: 14ch; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
@media (max-width: 860px) { .cta-band .inner { grid-template-columns: 1fr; } }

/* ---------- Form ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; background: var(--ink-2); color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--radius); font: inherit; font-size: 16px; transition: border-color 0.2s, background 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--ink-3); }
.field .help { font-size: 12.5px; color: var(--dim); margin-top: 6px; }
.field .err { display: none; font-size: 13px; color: #f2a07b; margin-top: 6px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #f2a07b; }
.field.invalid .err { display: block; }
.form-status { grid-column: 1 / -1; font-size: 15px; }
.form-status.ok { color: var(--accent); }
.hp { position: absolute; left: -9999px; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); border-top: 1px solid var(--line); padding: clamp(64px, 8vw, 104px) 0 40px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 40px; }
.foot-top .about p { color: var(--muted); font-size: 14.5px; max-width: 36ch; margin-top: 22px; }
.foot-col h5 { margin: 0 0 18px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li a { display: inline-flex; min-height: 36px; align-items: center; font-size: 14.5px; color: var(--muted); transition: color 0.2s; }
.foot-col li a:hover { color: var(--text); }
.foot-big { margin-top: clamp(56px, 7vw, 96px); padding-top: 32px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--dim); }
.foot-big a:hover { color: var(--text); }
@media (max-width: 900px) { .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-top .about { grid-column: 1 / -1; } }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Utilities ---------- */
.mt-s { margin-top: 20px; } .mt-m { margin-top: 40px; } .mt-l { margin-top: 72px; }
.center { text-align: center; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split--rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.sticky { position: sticky; top: calc(var(--nav-h) + 40px); }
@media (max-width: 960px) { .split, .split--rev { grid-template-columns: 1fr; } .sticky { position: static; } }
.check-list { list-style: none; margin: 28px 0 0; padding: 0; }
.check-list li { position: relative; padding: 14px 0 14px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15.5px; }
.on-paper .check-list li { border-color: var(--paper-line); color: var(--paper-muted); }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 12px; height: 6px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }
.on-paper .check-list li::before { border-color: var(--accent-ink); }
.badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); padding: 6px 12px; border-radius: 999px; }
.on-paper .badge { color: var(--accent-ink); border-color: var(--accent-ink); }
.note { font-size: 12.5px; color: var(--dim); margin-top: 18px; max-width: 70ch; }
.on-paper .note { color: #5f6873; }

/* Steps inside a narrow column: label left, title + copy stacked right */
.split .step, .steps--stack .step { grid-template-columns: 110px minmax(0, 1fr); row-gap: 10px; }
.split .step p, .steps--stack .step p { grid-column: 2; }
@media (max-width: 760px) { .split .step, .steps--stack .step { grid-template-columns: 1fr; } .split .step p, .steps--stack .step p { grid-column: 1; } }
.line-card h3 { max-width: 20ch; }
.tilemap { max-width: 480px; width: 100%; }

/* Uptime calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--ink-2); }
.calc .in { padding: 28px; border-right: 1px solid var(--line); display: grid; gap: 20px; align-content: start; }
.calc .outp { padding: 28px; display: grid; gap: 18px; align-content: start; }
.calc .formula { font-family: var(--mono); font-size: 13.5px; color: var(--muted); padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: var(--radius); line-height: 1.7; }
.calc .formula b { color: var(--text); font-weight: 500; }
.calc .big { font-family: var(--mono); font-size: clamp(40px, 5vw, 64px); line-height: 1; font-feature-settings: "tnum"; }
.calc .big.hl { color: var(--accent); }
.calc .pass { font-size: 14px; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }
.calc .pass::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.calc .pass.bad { color: #f2a07b; }
.calc .kv { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; font-size: 14px; color: var(--muted); }
.calc .kv b { font-family: var(--mono); font-weight: 500; color: var(--text); }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; } .calc .in { border-right: 0; border-bottom: 1px solid var(--line); } }

/* Hero content animates on first paint (no JS dependency, better LCP) */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero .reveal, .hero .reveal.in { opacity: 1; transform: none; transition: none; animation: rise 0.8s var(--ease) both; animation-delay: var(--d, 0s); }
@media (prefers-reduced-motion: reduce) { .hero .reveal { animation: none; } }

/* Diagrams keep legible labels on phones: scroll inside the frame */
@media (max-width: 760px) {
  .diagram { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 16px; }
  .diagram svg { min-width: 720px; }
  .diagram::after { content: "Scroll to see the full diagram →"; display: block; margin-top: 10px; font-family: var(--mono); font-size: 11px; color: var(--dim); position: sticky; left: 0; }
  .chart-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .chart-body svg { min-width: 640px; }
}

/* ---------- Photography ---------- */
.media-band { position: relative; overflow: hidden; isolation: isolate; height: clamp(420px, 68vh, 720px); background: var(--ink-2); }
.media-band img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; z-index: -2; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.media-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,14,19,.78) 0%, rgba(10,14,19,.35) 38%, rgba(10,14,19,0) 62%), linear-gradient(180deg, rgba(10,14,19,.55) 0%, rgba(10,14,19,0) 28%, rgba(10,14,19,.15) 55%, rgba(10,14,19,.9) 100%); }
.media-band .wrap { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(36px, 6vw, 80px); }
.media-band .statement { max-width: 20ch; text-shadow: 0 2px 30px rgba(0,0,0,.4); }
.media-band .kicker { margin-top: 22px; color: var(--muted); max-width: 52ch; font-size: 16px; }
.media-tag { position: absolute; right: var(--gutter); top: 24px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(233,228,218,.75); background: rgba(10,14,19,.55); border: 1px solid var(--line-2); padding: 6px 10px; border-radius: 999px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.figure { margin: 0; }
.figure .frame { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--ink-2); }
.on-paper .figure .frame { border-color: var(--paper-line); }
.figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; transition: transform 1.4s var(--ease); }
.figure--wide img { aspect-ratio: 16 / 9; }
.figure--tall img { aspect-ratio: 4 / 5; }
.figure:hover img { transform: scale(1.03); }
.figure figcaption { margin-top: 12px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--dim); display: flex; justify-content: space-between; gap: 16px; }
.on-paper .figure figcaption { color: #5f6873; }
.line-card .thumb { overflow: hidden; border-radius: var(--radius); margin: 0 0 30px; aspect-ratio: 16 / 9; background: var(--ink-2); }
.line-card .thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.88); transition: transform 1.2s var(--ease), filter .6s; }
.line-card:hover .thumb img { transform: scale(1.04); filter: saturate(1) brightness(1); }
.line-card .thumb + .idx { display: block; }
.line-card .thumb ~ h3 { margin-top: 18px; }
.audience { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.audience > div { padding: 32px 28px 36px 0; border-right: 1px solid var(--line); }
.audience > div + div { padding-left: 28px; }
.audience > div:last-child { border-right: 0; }
.audience h4 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 18px 0 10px; }
.audience p { color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .audience { grid-template-columns: repeat(2, minmax(0, 1fr)); } .audience > div:nth-child(2) { border-right: 0; } .audience > div:nth-child(n+3) { border-top: 1px solid var(--line); } .audience > div:nth-child(3) { padding-left: 0; } }
@media (max-width: 560px) { .audience { grid-template-columns: 1fr; } .audience > div, .audience > div + div { padding: 26px 0; border-right: 0; } .audience > div + div { border-top: 1px solid var(--line); } }
@media (prefers-reduced-motion: reduce) { .media-band img { transform: none; } }

/* ---------- Video ---------- */
.video-card { margin: 0; }
.video-frame { position: relative; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.video-play { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start; flex-direction: row; gap: 16px; padding: clamp(16px, 2.6vw, 28px); border: 0; cursor: pointer; color: var(--text);
  background: linear-gradient(180deg, rgba(10,14,19,0) 70%, rgba(10,14,19,.55) 100%); transition: background .3s; }
.video-play:hover { background: linear-gradient(180deg, rgba(10,14,19,0) 60%, rgba(10,14,19,.45) 100%); }
.video-play .ring { width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--ink); box-shadow: 0 0 0 0 var(--accent-soft); transition: transform .3s var(--ease), box-shadow .3s; padding-left: 3px; }
.video-play .lbl { font-size: 15px; font-weight: 600; text-shadow: 0 1px 12px rgba(0,0,0,.6); line-height: 64px; height: 64px; }
.video-play .lbl b { font-family: var(--mono); font-weight: 500; color: var(--muted); margin-left: 8px; }
.video-play:hover .ring, .video-play:focus-visible .ring { transform: scale(1.06); box-shadow: 0 0 0 12px var(--accent-soft); }
.video-card.is-playing .video-play, .no-js .video-play { display: none; }
.video-card figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.video-card figcaption a { color: var(--muted); border-bottom: 1px solid var(--line-2); }
.video-card figcaption a:hover { color: var(--text); border-color: var(--accent); }
.transcript { margin-top: 18px; border-top: 1px solid var(--line); }
.transcript summary { cursor: pointer; list-style: none; padding: 16px 0; font-size: 14.5px; font-weight: 600; min-height: 44px; display: flex; align-items: center; gap: 10px; }
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary::before { content: "+"; font-family: var(--mono); color: var(--accent); width: 14px; }
.transcript[open] summary::before { content: "−"; }
.transcript-body { padding: 0 0 20px; max-width: 72ch; color: var(--muted); font-size: 15px; }
.transcript-body h4 { font-size: 13px; font-family: var(--mono); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 18px 0 6px; }
.transcript-body p + p { margin-top: 10px; }
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); margin-top: clamp(40px, 5vw, 64px); }
.paths .path { padding: 32px 32px 36px 0; border-right: 1px solid var(--line); }
.paths .path + .path { padding: 32px 0 36px 32px; border-right: 0; }
.paths .path h3 { margin: 18px 0 12px; }
.paths .path p { color: var(--muted); }
.paths .path .check-list li { font-size: 14.5px; padding-top: 11px; padding-bottom: 11px; }
@media (max-width: 860px) { .paths { grid-template-columns: 1fr; } .paths .path, .paths .path + .path { padding: 30px 0; border-right: 0; } .paths .path + .path { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .video-play .lbl { display: none; } .video-play .ring { width: 52px; height: 52px; } .video-play { padding: 14px; } }

/* ---------- Glowing site map ---------- */
.map-viz { position: relative; border: 1px solid var(--line-2); border-radius: var(--radius); background: radial-gradient(120% 90% at 40% 35%, #121a24 0%, #0a0e13 70%); padding: clamp(10px, 2vw, 24px); overflow: hidden; }
.map-viz .geo { width: 100%; height: auto; display: block; overflow: visible; }
.geo-ctx { fill: none; stroke: rgba(255,255,255,.07); stroke-width: .5; }
.geo-west { fill: rgba(255,255,255,.018); stroke: rgba(236,242,255,.78); stroke-width: .6; stroke-linejoin: round; }
.route { fill: none; stroke: rgba(255,255,255,.14); stroke-width: .6; stroke-dasharray: 100; stroke-dashoffset: 100; }
.route-flow { fill: none; stroke-width: .9; stroke-linecap: round; stroke-dasharray: 3 97; stroke-dashoffset: 100; opacity: 0; }
.route-flow--dcfc { stroke: var(--accent); }
.route-flow--compute { stroke: #9bd9ff; }
.site { cursor: default; outline: none; opacity: 0; transform: scale(0); transform-box: fill-box; transform-origin: center; }
.site .core { stroke: rgba(10,14,19,.9); stroke-width: .6; }
.site--dcfc .core, .site--dcfc .ping { fill: var(--accent); }
.site--compute .core, .site--compute .ping { fill: #9bd9ff; }
.site--hq .core { fill: #ffffff; }
.site--hq .ping { fill: rgba(255,255,255,.9); }
.site .ping { opacity: 0; transform-box: fill-box; transform-origin: center; }
.site:focus-visible .core { stroke: #fff; stroke-width: 1.2; }
.geo-label { font-family: var(--mono); font-size: 7.2px; letter-spacing: .12em; fill: rgba(236,242,255,.72); opacity: 0; transition: opacity .8s var(--ease) 1.6s; }
.map-viz.in .geo-label { opacity: 1; }
.map-viz.in .route { animation: draw 1.4s var(--ease) forwards; animation-delay: calc(.3s + var(--i) * .18s); }
.map-viz.in .route-flow { animation: flow 3.2s linear infinite; animation-delay: calc(1.6s + var(--i) * .4s); }
.map-viz.in .site:not(.future) { animation: drop .7s cubic-bezier(.2,1.4,.4,1) forwards; animation-delay: calc(.2s + var(--i) * .18s); }
.map-viz.in .site:not(.future) .ping { animation: ping 2.8s ease-out infinite; animation-delay: calc(1.2s + var(--i) * .35s); }
.map-viz.in .site:not(.future) .ping--2 { animation-delay: calc(2.6s + var(--i) * .35s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes flow { 0% { stroke-dashoffset: 100; opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes drop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes ping { 0% { opacity: .75; transform: scale(1); } 100% { opacity: 0; transform: scale(5); } }
@media (prefers-reduced-motion: reduce) {
  .site, .map-viz.in .site { opacity: 1; transform: none; animation: none; }
  .route, .map-viz.in .route { stroke-dashoffset: 0; animation: none; }
  .route-flow, .site .ping { display: none; }
  .geo-label { opacity: 1; transition: none; }
}
.map-legend { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; }
.map-legend li { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.map-legend li b { color: var(--text); font-weight: 500; }
.map-legend li span.st { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.map-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; box-shadow: 0 0 10px currentColor; }
.map-legend .k-dcfc { background: var(--accent); color: var(--accent); }
.map-legend .k-compute { background: #9bd9ff; color: #9bd9ff; }
.map-legend .k-hq { background: #fff; color: #fff; }
@media (max-width: 560px) { .geo-label { font-size: 9.5px; } }

/* ---------- Growth timeline on the map ---------- */
.map-scrolly { position: relative; }
.map-sticky { padding: var(--section) 0; }
.future { opacity: 0; transform: scale(0); transform-box: fill-box; transform-origin: center; transition: opacity .45s var(--ease), transform .6s cubic-bezier(.2,1.4,.4,1); transition-delay: calc(var(--j) * 24ms); }
.future .core { stroke: none; opacity: .9; }
.future .ping { opacity: 0; }
.map-viz[data-phase="1"] .future[data-phase="1"],
.map-viz[data-phase="2"] .future:is([data-phase="1"], [data-phase="2"]),
.map-viz[data-phase="3"] .future:is([data-phase="1"], [data-phase="2"], [data-phase="3"]),
.map-viz[data-phase="4"] .future { opacity: 1; transform: scale(1); }
.map-viz[data-phase="1"] .future[data-phase="1"] .ping,
.map-viz[data-phase="2"] .future[data-phase="2"] .ping,
.map-viz[data-phase="3"] .future[data-phase="3"] .ping,
.map-viz[data-phase="4"] .future[data-phase="4"] .ping { animation: ping 1.8s ease-out 2; animation-delay: calc(.3s + var(--j) * 24ms); }
.phase-tag { position: absolute; left: clamp(14px, 2vw, 26px); top: clamp(12px, 2vw, 22px); z-index: 2; display: grid; gap: 2px; pointer-events: none; }
.phase-tag .yr { font-family: var(--serif); font-size: clamp(34px, 3.6vw, 52px); line-height: 1; color: var(--text); transition: opacity .25s; }
.phase-tag .ct { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: .06em; }
.phase-tag .ct b { font-weight: 500; font-size: 18px; font-feature-settings: "tnum"; }
.phase-tag .lbl { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.phase-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.phase-steps button { min-height: 40px; min-width: 64px; padding: 0 14px; border: 1px solid var(--line-2); background: transparent; border-radius: 999px; font-family: var(--mono); font-size: 13px; color: var(--muted); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.phase-steps button:hover { border-color: var(--text); color: var(--text); }
.phase-steps button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.phase-progress { height: 2px; background: var(--line); margin-top: 14px; border-radius: 2px; overflow: hidden; max-width: 380px; }
.phase-progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .35s var(--ease); }
.map-legend .k-plan { background: transparent; border: 1.5px solid rgba(255,255,255,.85); color: rgba(255,255,255,.6); width: 9px; height: 9px; }
@media (prefers-reduced-motion: reduce) { .future { transition: none; } .future .ping { display: none; } }

/* Year-by-year pinned map (JS adds .is-pinned unless reduced motion) */
.map-scrolly.is-pinned { height: calc(var(--years, 7) * 75vh + 100vh); height: calc(var(--years, 7) * 75svh + 100svh); }
.map-scrolly.is-pinned .map-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 8px) 0 16px; overflow: hidden; }
.map-scrolly.is-pinned .map-sticky .wrap { width: 100%; }
.map-scrolly.is-pinned .map-viz { display: flex; justify-content: center; }
.map-scrolly.is-pinned .map-viz .geo { width: auto; max-width: 100%; height: calc(100svh - var(--nav-h) - 90px); }
@media (max-width: 960px) {
  .map-scrolly.is-pinned .split { gap: 14px; }
  .map-scrolly.is-pinned .lede, .map-scrolly.is-pinned .map-legend, .map-scrolly.is-pinned .note, .map-scrolly.is-pinned .phase-progress { display: none; }
  .map-scrolly.is-pinned h2 { font-size: 30px; margin-top: 12px !important; }
  .map-scrolly.is-pinned .phase-steps { margin-top: 12px; flex-wrap: nowrap; overflow-x: auto; }
  .map-scrolly.is-pinned .phase-steps button { min-width: 0; padding: 0 10px; font-size: 12px; min-height: 36px; }
  .map-scrolly.is-pinned .map-viz .geo { height: calc(100svh - var(--nav-h) - 230px); }
  .map-scrolly.is-pinned .phase-tag .yr { font-size: 30px; }
}
.fd { opacity: 0; transform: scale(0); transform-box: fill-box; transform-origin: center; transition: opacity .4s var(--ease), transform .55s cubic-bezier(.2,1.4,.4,1); transition-delay: calc(var(--j) * 16ms); }
.fd--dcfc { fill: var(--accent); }
.fd--compute { fill: #9bd9ff; }
.fd.on { opacity: .9; transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .fd { transition: none; } }
.map-legend-after { display: none; }
.phase-steps { gap: 5px; } .phase-steps button { min-width: 0; padding: 0 11px; font-size: 12px; }
@media (max-width: 960px) {
  .map-scrolly .split { grid-template-columns: minmax(0, 1fr); }
  .map-scrolly .split > * { min-width: 0; }
  .map-scrolly.is-pinned .map-viz { padding: 8px; }
}

/* Native year snapping (JS adds .has-snap to <html> and the year markers) */
html { scrollbar-gutter: stable; }
html.map-locked, html.map-locked body { overflow: hidden; overscroll-behavior: none; }
.map-scrolly.is-pinned { position: relative; }
.snap-marks { position: absolute; inset: 0; pointer-events: none; }
.snap-marks > div { position: absolute; left: 0; width: 1px; height: 1px; scroll-snap-align: start; scroll-snap-stop: always; scroll-margin-top: calc(-1 * (var(--nav-h) + 16px)); }

/* Host duty table (who handles what) */
.duty { border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.duty-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 0.9fr); gap: 24px; padding: 18px 24px; border-top: 1px solid var(--line); align-items: baseline; }
.duty-row:first-child { border-top: 0; }
.duty-head { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); background: rgba(255,255,255,0.02); }
.duty-row > span:first-child { color: var(--text); font-weight: 500; }
.duty-row .y { color: var(--accent); }
.duty-row .n { color: var(--muted); }
.duty-row .n:empty::before { content: "—"; }
@media (max-width: 760px) { .duty-row { grid-template-columns: 1fr; gap: 4px; padding: 16px 18px; } .duty-head { display: none; } .duty-row .n:not(:empty)::before { content: "You: "; color: var(--dim); } .duty-row .n:empty { display: none; } .duty-row .y::before { content: "Us: "; color: var(--dim); } }

/* Placeholder for Brian to fill: visible on preview only, must be cleared before production */
.ph { display: inline; padding: 1px 6px; border: 1px dashed #ff6b6b; border-radius: 4px; color: #ff8a8a; background: rgba(255,107,107,0.08); font-family: var(--mono); font-size: 0.85em; }

/* Host-first: address check form, owners, proof, downloads */
.niche { margin-top: 14px; font-size: 15px; color: var(--muted); }
.niche b { color: var(--text); font-weight: 600; }
.plate-row dd small { font-size: 0.72em; color: var(--muted); margin-left: 2px; }
.host-check { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--ink-2, rgba(255,255,255,0.02)); padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 20px clamp(24px, 4vw, 56px); align-items: start; }
.host-check .hc-head h3 { margin-top: 18px; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; }
.host-check .hc-form { grid-column: 2; grid-row: 1 / span 2; }
.host-check .hc-foot { grid-column: 1; font-size: 13.5px; color: var(--dim); }
.hc-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.hc-alt { font-size: 14px; color: var(--muted); }
.field label .opt { color: var(--dim); font-weight: 400; margin-left: 6px; font-size: 12px; }
@media (max-width: 860px) { .host-check { grid-template-columns: 1fr; } .host-check .hc-form, .host-check .hc-foot { grid-column: 1; grid-row: auto; } }
.owners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 32px; }
.owner { display: flex; gap: 18px; align-items: center; }
.owner .av-photo { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 1px var(--paper-line); }
.owner .av-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.owner h4 { margin: 0 0 6px; }
.owner .role { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); }
.proof-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--paper-line); }
.proof-list li { padding: 18px 24px 18px 0; border-bottom: 1px solid var(--paper-line); color: var(--paper-muted); font-size: 16px; }
.proof-list li b { font-family: var(--serif); font-size: 1.6em; font-weight: 400; color: var(--paper-text); margin-right: 6px; }
@media (max-width: 760px) { .owners, .proof-list { grid-template-columns: 1fr; } }
.downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.dl { display: block; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 28px; transition: border-color .2s, background .2s; }
.dl:hover { border-color: var(--accent); background: rgba(255,255,255,0.02); }
.dl .k { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.dl h4 { margin: 16px 0 8px; font-size: 20px; }
.dl p { color: var(--muted); font-size: 15px; }
.dl .go { display: inline-block; margin-top: 16px; font-weight: 600; font-size: 14.5px; }
@media (max-width: 760px) { .downloads { grid-template-columns: 1fr; } }

/* Ridgemont Energy Capital — parent brand: copper on ink. */
:root { --accent: #d4a15e; --accent-ink: #8a5a1f; --accent-soft: rgba(212, 161, 94, 0.14); }
