/* exploration.rocks — the ES3D marketing site, in the EXPLORATION SITES brand (es-draft-1.vercel.app).
 *
 * The parent brand's system (V:\ESOS DESIGN.md / styles.css): Graphite #1A101F type and dark panels,
 * Quartz #F4F1EC paper (never pure white), Vellum for alternating sections, Slate for body, Graticule
 * hairlines, and Ore #B8823A as a restrained accent that earns its appearances (≤2%). Two type voices
 * only — Source Serif 4 (light, 300) for display, Inter for everything else; no monospace. Structure from
 * whitespace, hierarchy and 1px rules; no glow, no gradient text, no bouncy motion.
 * Fonts are self-hosted (Source Serif 4 variable in /site/fonts, Inter in /fonts) — no third-party requests.
 */

@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 200 900; font-display: swap; src: url('/site/fonts/source-serif-4.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter-500-latin.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-600-latin.woff2') format('woff2'); }


:root {
  /* Exploration Sites palette — 70 / 20 / 8 / 2 */
  --bg: #f4f1ec;          /* Quartz — the default paper */
  --bg-raised: #fbfaf7;   /* surface — cards, never pure white */
  --bg-well: #e8e2d5;     /* Vellum — alternating sections */
  --ink: #1a101f;         /* Graphite — type */
  --ink-soft: #2c3338;    /* Basalt */
  --dim: #5a5f63;         /* Slate — body */
  --faint: #6e685c;       /* muted captions (AA on Quartz) */
  --rule: #c8c2b4;        /* Graticule — hairlines */
  --rule-faint: #ded8cb;
  --gold: #815a20;        /* Ore, deepened for SMALL gold text (AA) */
  --ore: #b8823a;         /* Ore — large / decorative accent */
  --ore-em: #b07c35;      /* the headline italic */
  --gold-deep: #6b4a19;
  --night: #1a101f;       /* Graphite panels */
  --night-2: #2c3338;     /* Basalt */
  --night-ink: #f7f4ef;   /* on-dark */
  --night-dim: #bdb6ad;
  --night-rule: rgba(247, 244, 239, 0.14);
  --ok: #5f7052;          /* Moss — the "live / present" state */

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif; /* the brand retired its mono voice */

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --r: 10px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.62 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: rgba(184, 130, 58, 0.24); }
:focus-visible { outline: 2px solid var(--ore); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 820px; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }

/* ---------- type ---------- */
.eyebrow {
  font: 600 11px/1.5 var(--sans);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 22px;
}
.eyebrow.muted { color: var(--faint); }
.display, h1, h2, h3 { font-family: var(--serif); font-weight: 300; color: var(--ink); margin: 0; }
.display { font-size: clamp(44px, 6.2vw, 90px); line-height: 1.08; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 5vw, 72px); line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 3.4vw, 50px); line-height: 1.14; letter-spacing: -0.02em; }
h3 { font-size: clamp(22px, 1.8vw, 27px); line-height: 1.25; letter-spacing: -0.01em; font-weight: 400; }
.display em, h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--ore-em); }
.night .display em, .night h1 em, .night h2 em { color: #c89a55; }
/* The hero's second beat: "Or an evening. Or a morning. Or with your team." Serif, not a second
   headline — lighter and smaller than the display line it answers. */
.hero-alt { font: 300 clamp(22px, 2.4vw, 34px)/1.25 var(--serif); color: var(--dim); margin: 14px 0 0; letter-spacing: -0.01em; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--dim); max-width: 38em; margin: 26px 0 0; }
p { margin: 0 0 1em; }
.dim { color: var(--dim); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; }
.label { font: 600 11px/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.small { font-size: 14px; line-height: 1.55; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 241, 234, 0.9);
  backdrop-filter: saturate(1.1) blur(10px);
  -webkit-backdrop-filter: saturate(1.1) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--rule); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { width: 30px; height: 30px; flex: none; color: var(--ink); }
.brand-mark .ore { fill: var(--ore); }
.brand-word { font: 600 16px/1 var(--sans); letter-spacing: 0.1em; text-transform: lowercase; white-space: nowrap; }
.brand-rule { width: 1px; height: 20px; background: var(--rule); }
.brand-product { font: 600 11px/1 var(--sans); letter-spacing: 0.2em; color: var(--gold); white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink); opacity: 0.78; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }
.nav-links a:hover, .nav-links a[aria-current='page'] { color: var(--ink); }
.nav-links a[aria-current='page'] { opacity: 1; text-decoration: underline; text-decoration-color: var(--ore); text-underline-offset: 7px; text-decoration-thickness: 1px; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--rule); border-radius: 6px; width: 44px; height: 44px; color: var(--ink); cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 4px auto; transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
@media (max-width: 960px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-open .nav-links {
    display: flex; position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 22px;
  }
  .nav-open .nav-links a { font-size: 19px; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--rule-faint); }
}
.nav-links .mobile-only { display: none; }
@media (max-width: 960px) { .nav-open .nav-links .mobile-only { display: block; } }
/* PHONES KEEP THE WHOLE LOGO — the parent brand's wordmark outranks a header button, and both
   actions live in the menu instead. */
@media (max-width: 560px) {
  .nav-cta .btn-primary { display: none; }
  .brand { gap: 10px; }
  .brand-mark { width: 26px; height: 26px; }
  .brand-word { font-size: 14.5px; letter-spacing: 0.08em; }
}
@media (max-width: 340px) { .brand-rule, .brand-product { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 15px/1 var(--sans); letter-spacing: 0;
  padding: 0 30px; height: 50px; border-radius: 6px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color 0.2s var(--ease), color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn-sm { height: 40px; padding: 0 20px; font-size: 14px; border-radius: 4px; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--ink-soft); }
.btn-primary { background: var(--ink); color: #fbfaf7; }
.btn-ghost { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-gold { background: var(--ore); color: #fbfaf7; }
.btn-gold:hover { background: var(--gold-deep); }
.btn .arw { transition: transform 0.25s var(--ease); }
.btn:hover .arw { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.tlink { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 5px; text-decoration-thickness: 1px; transition: text-decoration-color 0.2s; }
.tlink:hover { text-decoration-color: var(--gold); }

/* ---------- sections ---------- */
.section { padding-block: clamp(80px, 11vw, 150px); }
.section-sm { padding-block: clamp(56px, 7vw, 96px); }
.rule-top { border-top: 1px solid var(--rule); }
.night { background: var(--night); color: var(--night-ink); }
.night h1, .night h2, .night h3 { color: var(--night-ink); }
.night .lede, .night .dim { color: var(--night-dim); }
.night .eyebrow { color: #c89a55; }
.night .label { color: var(--night-dim); }
.night .rule-top { border-color: var(--night-rule); }
.well { background: var(--bg-well); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(44px, 6vw, 80px); }
.section-head .lede { margin: 0; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- hero ---------- */
.hero { padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(40px, 5vw, 64px); }
.hero .display { max-width: 12.5em; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 44px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--dim); }
.hero-meta span::before { content: ''; width: 18px; height: 1px; background: var(--ore); }

/* ---------- media frames ---------- */
.frame {
  position: relative; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--rule); background: var(--bg-raised);
}
.frame img { width: 100%; }
.frame-cap { display: flex; justify-content: space-between; gap: 16px; padding: 14px 4px 0; }
.stage { margin-top: clamp(48px, 6vw, 84px); }
.stage .frame { aspect-ratio: 16 / 10; }
.stage .frame img, .stage .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.live-cta {
  position: absolute; inset: auto 24px 24px auto; display: flex; gap: 10px; align-items: center;
}
.live-badge {
  position: absolute; left: 24px; bottom: 24px;
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(251, 250, 247, 0.92); border: 1px solid var(--rule); border-radius: 4px;
  padding: 9px 16px; font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim);
}
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; }
.frame.is-live .live-cta, .frame.is-live .live-badge, .frame.is-live > img { display: none; }
@media (max-width: 640px) {
  .stage .frame { aspect-ratio: 4 / 5; }
  .live-cta { inset: auto 16px 16px 16px; justify-content: stretch; }
  .live-cta .btn { flex: 1; }
  .live-badge { display: none; }
}

/* phone mockup */
.phone {
  width: min(300px, 78vw); aspect-ratio: 9 / 18; border-radius: 42px;
  border: 10px solid var(--night); background: var(--night); overflow: hidden; position: relative;
  box-shadow: 0 1px 0 rgba(21, 51, 63, 0.06);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 32px; }

/* ---------- facts strip ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.fact { padding: 30px 28px 32px 0; }
.fact + .fact { padding-left: 28px; border-left: 1px solid var(--rule); }
.fact b { display: block; font: 300 clamp(26px, 2.4vw, 34px)/1.15 var(--serif); color: var(--ink); margin-bottom: 8px; letter-spacing: -0.01em; }
.fact span { font-size: 14.5px; color: var(--dim); }
@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } .fact + .fact { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); } }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 36px; }
.step { border-top: 1px solid var(--rule); padding-top: 26px; }
.step .n { font: 600 12px/1 var(--sans); color: var(--gold); letter-spacing: 0.14em; text-transform: uppercase; }
.step h3 { margin: 22px 0 12px; }
.step p { color: var(--dim); font-size: 16px; }
.step ul { list-style: none; margin: 18px 0 0; padding: 0; }
.step li { font: 400 13.5px/1.9 var(--sans); color: var(--faint); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; gap: 44px 36px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.night .step { border-color: var(--night-rule); }
.night .step p { color: var(--night-dim); }
.night .step li { color: #9a938a; }

/* ---------- split feature rows ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split + .split { margin-top: clamp(80px, 10vw, 140px); }
.split h2 { margin-bottom: 22px; }
.split .lede { margin-top: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.ticks { list-style: none; padding: 0; margin: 30px 0 0; border-top: 1px solid var(--rule); }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 16px; color: var(--ink-soft); }
.ticks li::before { content: ''; width: 14px; height: 1px; background: var(--ore); margin-top: 13px; }
.night .ticks, .night .ticks li { border-color: var(--night-rule); color: var(--night-ink); }
.phone-pair { display: flex; gap: 22px; justify-content: center; align-items: flex-end; }
.phone-pair .phone:nth-child(2) { width: min(260px, 60vw); margin-bottom: 40px; }
@media (max-width: 560px) { .phone-pair .phone:nth-child(2) { display: none; } }

/* ---------- feature grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.cell { padding: 34px 30px 38px 0; border-bottom: 1px solid var(--rule); }
.cell:not(:nth-child(3n + 1)) { padding-left: 30px; border-left: 1px solid var(--rule); }
/* The icon set (site/icons.svg): one line style, ink not Ore, so the accent budget stays for the
   one thing on a screen that earns it. */
.ic { display: block; width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; color: var(--ink-soft); }
.night .ic { color: var(--night-ink); }
.cell .ic { margin-bottom: 20px; }
.fact .ic { margin-bottom: 16px; color: var(--dim); }
.step .ic { margin-bottom: 14px; }
.cell h3 { font-size: 22px; margin-bottom: 10px; }
.cell p { color: var(--dim); font-size: 15.5px; margin: 0; }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .cell:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .cell:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--rule); }
}
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr; } .cell:nth-child(2n) { padding-left: 0; border-left: 0; } }

/* ---------- quote / case band ---------- */
.case { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.case .frame { aspect-ratio: 16 / 10; }
.case .frame img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; margin: 30px 0 0; padding: 22px 0 0; border-top: 1px solid var(--rule); }
.kv dt { font: 500 11px/1.8 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.kv dd { margin: 0; font-size: 15.5px; color: var(--ink-soft); }
.night .kv { border-color: var(--night-rule); }
.night .kv dd { color: var(--night-ink); }

/* scene strip */
.scenes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.scene { margin: 0; }
.scene .frame { aspect-ratio: 16 / 10; }
.scene .frame img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.scene figcaption { display: flex; gap: 12px; padding-top: 12px; font-size: 14px; color: var(--dim); }
.scene figcaption .mono { color: var(--gold); }
@media (max-width: 900px) { .scenes { grid-template-columns: 1fr 1fr; } }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--bg-raised); border: 1px solid var(--rule); border-radius: 10px; padding: 34px 30px 30px; }
.plan.featured { border-color: var(--ink); position: relative; }
.plan .tag { position: absolute; top: -12px; left: 30px; background: var(--ink); color: var(--bg); font: 600 11px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; padding: 7px 12px; border-radius: 4px; }
.plan h3 { font-size: 26px; }
.plan .for { color: var(--dim); font-size: 15px; margin: 8px 0 26px; min-height: 3.1em; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price b { font: 300 clamp(40px, 3.6vw, 52px)/1 var(--serif); letter-spacing: -0.02em; }
.price span { color: var(--faint); font-size: 14px; }
.price-note { font: 400 13px/1.5 var(--sans); color: var(--faint); margin: 10px 0 26px; }
.plan ul { list-style: none; margin: 0 0 30px; padding: 0; border-top: 1px solid var(--rule); flex: 1; }
.plan li { padding: 11px 0 11px 24px; border-bottom: 1px solid var(--rule-faint); font-size: 15px; color: var(--ink-soft); position: relative; }
.plan li::before { content: ''; position: absolute; left: 0; top: 21px; width: 12px; height: 1px; background: var(--ore); }
.plan .btn { width: 100%; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 560px; } }
.addons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); margin-top: 22px; }
.addon { padding: 28px 28px 30px 0; border-bottom: 1px solid var(--rule); }
.addon + .addon { padding-left: 28px; border-left: 1px solid var(--rule); }
.addon .price b { font-size: 34px; }
.addon h3 { font-size: 21px; margin: 0 0 8px; }
.addon p { color: var(--dim); font-size: 15px; margin: 14px 0 0; }
@media (max-width: 900px) { .addons { grid-template-columns: 1fr; } .addon + .addon { padding-left: 0; border-left: 0; } }

/* compare table */
.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.compare thead th { font: 500 11px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.compare tbody th { font-weight: 400; color: var(--ink-soft); width: 40%; }
.compare td { color: var(--dim); }
.compare .yes::before { content: ''; display: inline-block; width: 12px; height: 1px; background: var(--ore); vertical-align: middle; margin-right: 8px; }
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-group th { font: 500 11px/1.4 var(--mono) !important; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold) !important; padding-top: 30px !important; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font: 400 clamp(19px, 1.6vw, 22px)/1.35 var(--serif); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 300 26px/1 var(--sans); color: var(--ore); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 26px; color: var(--dim); max-width: 46em; }

/* ---------- CTA band ---------- */
.cta-band { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 36px 64px; align-items: end; }
.cta-band h2 { max-width: 13em; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 22px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field.full { grid-column: 1 / -1; }
.field label { font: 500 11px/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.field input, .field select, .field textarea {
  font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--bg-raised);
  border: 1px solid var(--rule); border-radius: 6px; padding: 14px 15px; width: 100%;
  transition: border-color 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field .hint { font-size: 13px; color: var(--faint); }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 14.5px; color: var(--dim); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; font-size: 15px; min-height: 1.4em; margin: 0; }
.form-status.err { color: #9b2f2f; }
.form-done { border: 1px solid var(--rule); border-radius: 10px; background: var(--bg-raised); padding: clamp(28px, 4vw, 48px); }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.aside-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.aside-list li { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.aside-list b { display: block; font: 400 20px/1.3 var(--serif); margin-bottom: 4px; }
.aside-list span { color: var(--dim); font-size: 15px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- prose (trust page) ---------- */
.prose h2 { font-size: clamp(28px, 2.6vw, 38px); margin: 64px 0 18px; }
.prose h3 { margin: 34px 0 10px; font-size: 22px; }
.prose p, .prose li { color: var(--dim); }
.prose ul { padding-left: 1.1em; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.principles { counter-reset: p; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.principles li { counter-increment: p; display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.principles li::before { content: counter(p, decimal-leading-zero); font: 600 12px/2.2 var(--sans); color: var(--gold); letter-spacing: 0.14em; }
.principles b { display: block; font: 400 21px/1.35 var(--serif); color: var(--ink); margin-bottom: 6px; }
.principles span { color: var(--dim); }

/* ---------- footer ---------- */
.footer { background: var(--night); color: var(--night-dim); padding: 80px 0 40px; font-size: 14.5px; }
.footer a { color: var(--night-ink); text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.foot-grid .foot-h { font: 600 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: #9a938a; margin: 0 0 18px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin: 0 0 10px; }
.footer .brand { color: var(--night-ink); }
.footer .brand-mark { color: var(--night-ink); }
.footer .brand-rule { background: var(--night-rule); }
.footer .brand-product { color: #c89a55; }
.foot-note { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--night-rule); display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; color: #9a938a; font-size: 13px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
/* Phones: every footer link and the lockup get a 44px tap target (audit 2026-09-27 measured 17px). */
@media (max-width: 720px) {
  .foot-grid li { margin: 0; }
  .foot-grid li a, .foot-note a { display: inline-flex; align-items: center; min-height: 44px; }
  .brand { min-height: 44px; }
}
/* Visually hidden, still read by screen readers (keeps the heading outline whole). */
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- flow: the one scroll-linked sequence (product page) ----------
   Without JS: a plain list, every picture shown after the steps. With JS (.js): the stage sticks and
   shows one picture at a time; site.js marks the step nearest the middle of the screen. The change is
   an opacity cross-fade, slow and linear-feeling; reduced motion keeps the swap and drops the fade. */
.flow-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); margin-top: clamp(40px, 5vw, 64px); }
.flow-steps { list-style: none; margin: 0; padding: 0; }
.flow-step { padding: 28px 0 32px; border-top: 1px solid var(--rule); }
.js .flow-step { border-top: 0; padding-left: 24px; border-left: 1px solid var(--rule); }
.js .flow-step.on { border-left-color: var(--ink); }
.flow-step h3 { margin: 12px 0 10px; }
.flow-step p:last-child { color: var(--dim); margin: 0; max-width: 30em; }
.flow-stage { display: grid; gap: 24px; align-content: start; }
.flow-files { background: var(--bg-raised); border: 1px solid var(--rule); border-radius: var(--r); padding: 26px 28px; }
.flow-files ul { list-style: none; margin: 16px 0 0; padding: 0; }
.flow-files li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--rule-faint); font-size: 15px; color: var(--ink); }
.flow-files li span + span { color: var(--faint); font-size: 13.5px; }
.flow-ok { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: 14px; color: var(--dim); }
.flow-ok i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.flow-pic.frame { aspect-ratio: 16 / 10; }
.flow-pic.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.flow-phone { display: flex; justify-content: center; }
.flow-phone .phone { width: min(250px, 60vw); }
.js .flow-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.38; transition: opacity 0.6s var(--ease); }
.js .flow-step.on { opacity: 1; }
.js .flow-stage { position: sticky; top: 96px; height: min(560px, calc(100vh - 140px)); display: block; }
.js .flow-pic { position: absolute; inset: 0; margin: auto; height: fit-content; max-height: 100%; opacity: 0; transition: opacity 0.9s ease-in-out; }
.js .flow-pic.on { opacity: 1; }
@media (max-width: 860px) {
  .flow-grid { grid-template-columns: 1fr; }
  .js .flow-grid { display: flex; flex-direction: column-reverse; gap: 0; }
  .js .flow-stage { top: 72px; height: 46vh; z-index: 1; background: var(--bg); border-bottom: 1px solid var(--rule); overflow: hidden; }
  .js .flow-pic { inset: 12px 0; }
  .js .flow-pic.frame { aspect-ratio: auto; height: calc(100% - 24px); }
  .js .flow-files { padding: 16px 18px; overflow: hidden; }
  .js .flow-files ul { margin-top: 8px; }
  .js .flow-files li { padding: 5px 0; font-size: 13px; }
  .js .flow-ok { margin-top: 8px; }
  .js .flow-phone .phone { width: auto; height: calc(46vh - 24px); }
  .js .flow-step { min-height: 52vh; }
}
@media (prefers-reduced-motion: reduce) { .js .flow-pic, .js .flow-step { transition: none; } }

/* ---------- reveal (JS adds .js to <html>; without JS everything is simply visible) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* returning-user bar (site.js) */
.return-bar { background: var(--bg-well); border-bottom: 1px solid var(--rule); font-size: 14.5px; color: var(--dim); }
.return-bar .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; padding-block: 11px; }

/* page header for inner pages */
.page-head { padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(36px, 4vw, 56px); }
.page-head h1 { max-width: 14em; }
.crumbs { margin-bottom: 26px; }

/* ---------- deck view report (/r/<token>, report.html + report.js) ----------
   Read by a client who has never seen ES3D: big serif numbers, plain sentences, one chart, one
   table. Prints cleanly on one or two pages. */
.report .nav .label { margin-left: auto; }
.report .section-sm { padding-block: clamp(36px, 5vw, 64px); }
.rpt-head { padding-bottom: 8px; }
.rpt-facts { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.rpt-summary { max-width: 46em; margin-top: 30px; }
.rpt-summary p { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--ink-soft); margin: 0 0 0.6em; }
.rpt-h { font-size: clamp(24px, 2.2vw, 30px); margin-bottom: 18px; }
.rpt-note { margin: -8px 0 16px; }
.rpt-chart svg { display: block; width: 100%; height: 180px; }
.rpt-chart .bar { fill: var(--ink-soft); }
.rpt-chart .base { stroke: var(--rule); stroke-width: 1; vector-effect: non-scaling-stroke; }
.rpt-axis { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 13px; color: var(--faint); }
.rpt-table-wrap { overflow-x: auto; }
.rpt-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rpt-table th { font: 600 11px/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); text-align: left; padding: 0 12px 10px 0; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.rpt-table td { padding: 13px 12px 13px 0; border-bottom: 1px solid var(--rule-faint); vertical-align: top; }
.rpt-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rpt-scene span { display: block; color: var(--ink); }
.rpt-scene small { display: block; margin-top: 2px; font-size: 13px; }
.rpt-reach { min-width: 150px; }
.rpt-bar { display: block; height: 6px; background: var(--rule-faint); border-radius: 3px; overflow: hidden; margin: 7px 0 6px; }
.rpt-bar i { display: block; height: 100%; background: var(--ink-soft); }
.rpt-reach-n { font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.rpt-foot { padding: 40px 0 56px; border-top: 1px solid var(--rule); margin-top: 40px; }
@media (max-width: 640px) {
  .rpt-table th:nth-child(5), .rpt-table td:nth-child(5), .rpt-table th:nth-child(6), .rpt-table td:nth-child(6) { display: none; }
}
@media print {
  .report .nav { position: static; backdrop-filter: none; }
  .report .section-sm { padding: 18px 0; }
  .rpt-table tr { break-inside: avoid; }
}
