/* WestOS Colombiamoda landing — paper register + isometric blue.
   Tokens lifted from the one-pager system; cream/contour added for the
   park-map register. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../assets/fonts/inter-var-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2192, U+2193, U+2212, U+2215;
}

:root {
  --paper: #f2ede0;
  --ink: #10151d;
  --muted: #596372;
  --line: #ddd5c6;
  --panel: #fffdf8;
  --blue: #0786ff;
  --cyan: #35c7f5;
  --green: #16a66a;
  --amber: #cf8a2e;
  --red: #b94351;
  --navy: #0f1720;
  --navy-2: #162231;
  /* all-in cream register (v7): warm paper base, deeper paper sections,
     warm hairlines and grounds — blue/ink are the only cool elements */
  --cream: #f7f4ec;
  --cream-2: #ece5d4;
  --contour: #d8cfc0;
  --iso-top: #4fa3ff;
  --iso-left: #0786ff;
  --iso-right: #0554a8;
  --top-h: 104px;
  --radius: 14px;
  --wa: #25d366;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ---------- sticky top: banner + header ---------- */
.sitetop { position: sticky; top: 0; z-index: 100; view-transition-name: sitetop; }

/* cross-document view transitions (progressive enhancement) */
@view-transition { navigation: auto; }

.banner {
  background: var(--navy);
  color: var(--cream);
  position: relative;
  font-size: 14px;
}
.banner-inner[hidden] { display: none; }
.banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 9px 44px 9px 18px;
  min-height: 40px;
}
.banner-msg { font-weight: 700; letter-spacing: .01em; }
.banner-muted { color: #9fb0c2; font-weight: 600; }
.cd { display: inline-flex; gap: 6px; align-items: baseline; }
.cd-cell {
  font-variant-numeric: tabular-nums;
  color: #9fb0c2;
  font-size: 12px;
  font-weight: 600;
}
.cd-cell b {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  background: var(--navy-2);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  padding: 1px 6px;
  margin-right: 2px;
  font-variant-numeric: tabular-nums;
}
.banner-link {
  color: #fff;
  background: var(--blue);
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.banner-link:hover { background: #2b98ff; }
.banner-dismiss {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: #9fb0c2;
  font-size: 20px;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
}
.banner-dismiss:hover { color: #fff; }
.pulse-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(22,166,106,.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(22,166,106,.55); }
  70% { box-shadow: 0 0 0 9px rgba(22,166,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,166,106,0); }
}

.header {
  background: var(--cream);
  border-bottom: 1px solid var(--contour);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

/* language blocks: rich markup duplicated per language, toggled on <html lang> */
html[lang="es"] .lang-en { display: none; }
html[lang="en"] .lang-es { display: none; }
.brand .os { color: var(--blue); }
.header-right { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  display: inline-flex;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
}
.lang-toggle button, .lang-toggle a {
  border: 0;
  background: none;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 5px 12px;
  cursor: pointer;
  color: var(--muted);
  text-decoration: none;
}
.lang-toggle button[aria-pressed="true"],
.lang-toggle a[aria-current="true"] { background: var(--ink); color: var(--cream); }
.wa-icon-btn { width: 30px; height: 30px; }
.wa-icon-btn img { width: 100%; height: 100%; }

/* ---------- shared type ---------- */
.kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--blue); }
.on-dark .kicker { color: #9fb0c2; }

h1, h2 { line-height: 1.06; letter-spacing: -0.022em; margin: 0 0 18px; }
h1 { font-size: clamp(34px, 5.4vw, 58px); font-weight: 900; }
h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 900; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  padding: 13px 24px;
  border-radius: 11px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #056ee0; }
.btn-wa { border-color: var(--green); color: var(--green); background: transparent; }
.btn-wa:hover { background: rgba(22,166,106,.08); }
.btn-wa img { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(../assets/terrain-antioquia.svg) right -140px top -60px / 980px auto no-repeat;
  opacity: .28;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(100deg, transparent 34%, #000 72%);
  mask-image: linear-gradient(100deg, transparent 34%, #000 72%);
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 40px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 84px;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 16px;
}
.hero-thesis {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 10px;
}
.hero-deck {
  font-size: 16.5px;
  color: var(--muted);
  max-width: 54ch;
  margin: 0 0 30px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-qr { margin: 14px 0 0; font-size: 14px; }
.hero-qr a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.hero-qr a:hover { color: var(--blue); }
.hero-iso { padding: 10px 0; }

/* ---------- buyer hero: the ask ---------- */
/* The illustration used to sit here. It was the largest thing above the fold
   and it asked for nothing, so it is now the field and a way into the
   directory the page never linked to. */
.hero-ask { display: flex; flex-direction: column; gap: 16px; }

.ask-card {
  background: var(--panel);
  border: 1px solid var(--contour);
  border-radius: 16px;
  padding: 26px 26px 24px;
  box-shadow: 0 24px 60px -30px rgba(16, 21, 29, .45);
}
.ask-q { display: block; font-size: 21px; font-weight: 800; letter-spacing: -.025em; margin: 0 0 6px; }
.ask-sub { margin: 0 0 14px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.ask-card textarea {
  width: 100%;
  font: inherit;
  font-size: 15.5px;
  line-height: 1.5;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
  box-sizing: border-box;
}
.ask-card textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7, 134, 255, .18);
}
.ask-read { margin: 12px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.ask-read b { color: var(--ink); font-weight: 700; }
.ask-ctas { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.ask-ctas .btn-primary { font-size: 15px; }

.ask-dir {
  display: block;
  background: var(--panel);
  border: 1px solid var(--contour);
  border-radius: 16px;
  padding: 18px 20px 20px;
}
.dir-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.dir-head span { font-size: 15px; font-weight: 700; letter-spacing: -.015em; }
.dir-head a { font-size: 13.5px; font-weight: 700; white-space: nowrap; text-decoration: none; }
.dir-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dir-strip .fac { display: block; text-decoration: none; color: inherit; transition: opacity .18s ease; }
/* height:auto is load-bearing. The markup carries width/height attributes to
   reserve space, and this stylesheet has no global img height rule, so without
   this the attribute wins, aspect-ratio is ignored, and each photo renders as a
   108x1200 crop. */
.dir-strip .fac img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: 9px; display: block; }
.dir-strip .fac .nm { display: block; font-size: 12px; font-weight: 700; letter-spacing: -.01em; margin-top: 5px; }
.dir-strip .fac .ds { display: block; font-size: 11px; color: var(--muted); line-height: 1.35; }
.dir-strip .fac.dim { opacity: .32; }
.dir-strip .fac.lit .nm { color: var(--blue); }
.dir-note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }

@media (max-width: 860px) {
  .ask-ctas { flex-wrap: wrap; }
  .dir-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.hero-iso svg { width: 100%; height: auto; }

/* iso scene fills */
.i-t { fill: var(--iso-top); }
.i-l { fill: var(--iso-left); }
.i-r { fill: var(--iso-right); }
.i-rt { fill: #79b8ff; }
.i-rl { fill: #0872d8; }
.i-st { fill: var(--cream-2); }
.i-sl { fill: var(--contour); }
.i-sr { fill: #c4b8a3; }
.i-rim { fill: #2f8bef; }
.i-win { fill: #dff0ff; }
.i-door { fill: #063e63; }
.i-tape { fill: #dff0ff; }
.i-bt { fill: #fff; }
.i-line { fill: #d2c9b5; }
.i-bl { fill: #e9e2d3; }
.i-br { fill: #d2c9b5; }
.i-check-bg { fill: var(--green); }
.i-check { fill: none; stroke: #fff; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.iso-scene polygon, .iso-scene path, .iso-scene ellipse {
  stroke: rgba(16,21,29,.16);
  stroke-width: .8;
}
.iso-scene .i-check { stroke: #fff; }

@keyframes iso-in {
  from { opacity: 0; transform: translate(8px, 12px); }
  to { opacity: 1; transform: none; }
}
.hero-iso svg { animation: iso-in .7s cubic-bezier(.3,.7,.4,1) both .15s; }

/* ---------- sections ---------- */
.section { padding: 78px 0; }
.section-paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* audience split */
.aud-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 34px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 30px 26px;
  box-shadow: 0 1px 2px rgba(16,21,29,.04), 0 10px 28px -18px rgba(16,21,29,.14);
}
.card-k {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.card-k.k-factory { color: var(--green); }
.card-k.k-buyer { color: var(--cyan); }
.card h3 { font-size: 22px; font-weight: 900; letter-spacing: -0.015em; margin: 0 0 10px; }
.card p { color: var(--muted); margin: 0; font-size: 15.5px; }
.card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; }
.card-icon { height: 64px; margin-bottom: 18px; }
.card-icon svg { height: 100%; width: auto; }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.3,.7,.4,1); }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- blueprint chapter ---------- */
.bp-section {
  background: var(--cream);
  color: var(--ink);
  border-top: 1px solid var(--contour);
  border-bottom: 1px solid var(--contour);
}
.bp-section .kicker { color: var(--muted); }
.bp-track { height: 330vh; }
.bp-stage {
  position: sticky;
  top: var(--top-h);
  height: calc(100dvh - var(--top-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 26px 28px;
}
.bp-head { max-width: 1180px; margin: 0 auto 8px; width: 100%; }
.bp-sub { color: var(--muted); font-size: 14.5px; margin: 0 0 10px; }
.bp-svg-wrap { max-width: 1180px; margin: 0 auto; width: 100%; flex: 0 1 auto; overflow: hidden; }
.bp-svg { width: 100%; height: auto; }

.bp-guide { stroke: rgba(26,26,26,.1); stroke-width: 1.5; }
.bp-lane { font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.bp-lane-buyer { fill: #0a6d94; }
.bp-lane-westos { fill: var(--ink); }
.bp-lane-factory { fill: #0e7a4d; }

.bp-node { opacity: var(--lp, 0); transform: translateY(calc((1 - var(--lp, 0)) * 10px)); }
.bp-node .bp-box { fill: var(--panel); stroke-width: 1.6; }
.bp-buyer .bp-box { stroke: var(--cyan); }
.bp-westos .bp-box { fill: var(--blue); stroke: none; }
.bp-factory .bp-box { stroke: var(--green); }
.bp-label { fill: var(--ink); font-weight: 600; }
.bp-westos .bp-label { fill: #fff; font-weight: 700; }

.bp-conn {
  fill: none;
  stroke: rgba(26,26,26,.35);
  stroke-width: 2;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--lp, 0));
}
.bp-stall-line { stroke: var(--amber); stroke-width: 1.8; stroke-dasharray: 4 4; fill: none; }
.bp-stall-text { fill: var(--amber); font-weight: 700; font-style: italic; }

/* static fallbacks: reduced motion, no IO, or JS failure */
.bp-fallback { max-width: 720px; margin: 26px auto 0; padding: 0 0 0 22px; color: #4a5462; font-size: 15px; }
.bp-fallback li { margin: 8px 0; }
.bp-fallback .fb-lane { font-weight: 800; text-transform: uppercase; font-size: 11.5px; letter-spacing: .1em; margin-right: 8px; }
.fb-buyer { color: #0a6d94; }
.fb-westos { color: var(--blue); }
.fb-factory { color: #0e7a4d; }
.js-ready .bp-fallback { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bp-static .bp-track { height: auto; }
.bp-static .bp-stage { position: static; height: auto; padding: 64px 28px; }

/* ---------- proof layer ---------- */
.proof-intro { max-width: 62ch; color: var(--muted); font-size: 16.5px; margin: 0 0 36px; }
.proof-badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 40px; }
.badge-tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 18px 15px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.badge-dot {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green);
  position: relative;
  margin-top: 2px;
}
.badge-dot::after {
  content: "";
  position: absolute;
  left: 6px; top: 4.5px;
  width: 7px; height: 10px;
  border: solid #fff;
  border-width: 0 2.4px 2.4px 0;
  transform: rotate(42deg);
}
.badge-tile b { display: block; font-size: 14.5px; font-weight: 800; letter-spacing: -0.01em; }
.badge-tile span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.badge-amber .badge-dot { background: var(--amber); }
.badge-amber .badge-dot::after { border-color: #fff; }

.proof-rows { border-top: 1px solid var(--line); }
.proof-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.proof-row dt { font-weight: 800; font-size: 15px; margin: 0; }
.proof-row dd { color: var(--muted); margin: 0; font-size: 15.5px; }

/* ---------- map / trip ---------- */
.map-section {
  position: relative;
  background: var(--cream) url(../assets/terrain-antioquia.svg) center / cover no-repeat;
  border-top: 1px solid var(--contour);
  border-bottom: 1px solid var(--contour);
  padding: 110px 0;
}
.map-card {
  max-width: 480px;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--contour);
  border-radius: var(--radius);
  padding: 32px 34px 30px;
  box-shadow: 0 18px 44px -20px rgba(16,21,29,.28);
  backdrop-filter: blur(2px);
}
.map-card h2 { font-size: 25px; }
.map-dates {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 8px;
}
.map-card p { color: var(--muted); margin: 0 0 22px; font-size: 16px; }

/* ---------- form ---------- */
.apply-section { background: var(--blue); color: #fff; }
.apply-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 54px; align-items: start; }
.apply-section .kicker { color: rgba(255,255,255,.75); }
.apply-section .kicker::before { background: #fff; }
.apply-copy p { color: rgba(255,255,255,.85); font-size: 17px; max-width: 40ch; }
.apply-iso { margin-top: 26px; max-width: 200px; opacity: .95; }

.vform { background: var(--panel); border-radius: var(--radius); padding: 34px 34px 30px; color: var(--ink); box-shadow: 0 24px 60px -24px rgba(5,42,90,.5); }
.vform label { display: block; font-size: 13px; font-weight: 800; letter-spacing: .04em; margin: 0 0 6px; }
.vform .frow { margin-bottom: 18px; }
.vform input, .vform select, .vform textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
}
.vform input:focus, .vform select:focus, .vform textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7,134,255,.18);
}
.vform textarea { resize: vertical; min-height: 84px; }
.frow-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vform .btn-primary { width: 100%; justify-content: center; background: var(--green); font-size: 16px; }
.vform .btn-primary:hover { background: #128a57; }
.vform .btn-primary img { width: 19px; height: 19px; filter: brightness(0) invert(1); }
.form-alt { text-align: center; font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.form-tbd {
  background: #fdf3e3;
  border: 1px solid var(--amber);
  color: #7a5218;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 13px;
  margin: 14px 0 0;
}

/* ---------- buyer form: files, details, receipt ---------- */

/* Honeypot. Off-screen, not display:none — a bot that fills every input still
   fills this one, while nobody using the page or a screen reader reaches it. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.vform textarea { min-height: 96px; line-height: 1.55; }

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  padding: 28px 22px;
  border: 2px dashed var(--contour);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.dropzone:hover, .dropzone:focus-visible, .dropzone.over {
  border-color: var(--blue);
  background: rgba(7, 134, 255, .05);
  outline: none;
}
.dz-i { width: 30px; height: 30px; color: var(--blue); margin-bottom: 6px; }
.dz-h { font-size: 16px; font-weight: 700; letter-spacing: -.015em; line-height: 1.35; }
.dz-p { font-size: 13.5px; color: var(--muted); }
.dz-conf { margin: 10px 2px 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.filelist { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.filerow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  font-size: 13.5px;
}
.filerow .fn { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filerow .fs { color: var(--muted); font-size: 12.5px; flex: 0 0 auto; }
.filerow .fx {
  flex: 0 0 auto;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
}
.filerow .fx:hover { color: var(--red); }

.moredet { border: 1px solid var(--line); border-radius: 11px; background: var(--paper); margin-bottom: 18px; }
.moredet > summary { cursor: pointer; padding: 13px 16px; list-style: none; }
.moredet > summary::-webkit-details-marker { display: none; }
.moredet > summary::after { content: "+"; float: right; color: var(--muted); font-weight: 700; }
.moredet[open] > summary::after { content: "–"; }
.moredet .md-h { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.015em; }
.moredet .md-p { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; max-width: 46ch; }
.moredet > .frow-2 { padding: 0 16px; }
.moredet > .frow-2:first-of-type { padding-top: 14px; }
.md-why { margin: 0 16px 15px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.form-bad { color: var(--red); }

.receipt {
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid #bfe6d2;
  border-left: 4px solid var(--green);
  border-radius: 12px;
  background: #e7f6ee;
}
.rc-h { margin: 0 0 6px; font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: #0b5c3a; }
.rc-ref { margin: 0 0 10px; font-family: ui-monospace, Menlo, monospace; font-size: 13px; color: var(--ink); }
.rc-line { margin: 0 0 6px; font-size: 13.5px; color: var(--ink); line-height: 1.5; }
.rc-line.rc-bad { color: #9b1c1c; }
.rc-conf { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }


/* ---------- footer ---------- */
.footer { background: var(--navy); color: #9fb0c2; padding: 44px 0; }
.footer .container { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.footer .brand { color: var(--cream); font-size: 20px; }
.footer-nav { display: flex; gap: 22px; }
.footer-nav a {
  color: #cdd8e4;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}
.footer-nav a:hover { color: #fff; }
.footer-arc { font-size: 13.5px; font-weight: 700; letter-spacing: .04em; color: #7db9ff; margin: 0; }
.btn-secondary { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-secondary:hover { background: rgba(7, 134, 255, .07); }
.footer-mail { color: #cdd8e4; font-size: 14px; text-decoration: none; }
.footer-mail:hover { color: #fff; }
.buyer-home .footer-mail, .buyer-home .footer-mail:hover { color: var(--home-muted); }
.footer-copy { font-size: 12.5px; margin: 0; }
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: #cdd8e4; display: inline-flex; }
.footer-social a:hover { color: #fff; }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; }
  .hero-iso { max-width: 420px; margin: 0 auto; order: -1; }
  .hero::before { display: none; }
  .aud-grid, .apply-grid { grid-template-columns: 1fr; }
  .proof-badges { grid-template-columns: 1fr 1fr; }
  .proof-row { grid-template-columns: 1fr; gap: 4px; }
  .map-section { padding: 64px 0; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  .banner-inner { justify-content: flex-start; padding-right: 40px; font-size: 13px; }
  .frow-2 { grid-template-columns: 1fr; gap: 0; }
  .frow-2 .frow { margin-bottom: 18px; }
  .vform { padding: 24px 20px; }
  .proof-badges { grid-template-columns: 1fr; }
  .bp-stage { padding: 18px 14px; }
}

/* ---------- buyer page: nav + trust chip ---------- */
.header-nav { display: flex; gap: 24px; margin-left: 36px; margin-right: auto; }
.nav-link {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav-link:hover { color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--ink); border-bottom-color: var(--blue); }

.btn-wa-mini {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1.5px solid var(--green);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 800;
  color: var(--green);
  text-decoration: none;
  white-space: nowrap;
}
.btn-wa-mini:hover { background: rgba(22, 166, 106, .08); }
.btn-wa-mini img { width: 15px; height: 15px; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}
body.nav-open .nav-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--cream);
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 140px 34px 40px;
}
body.nav-open .nav-sheet { display: flex; }
body.nav-open { overflow: hidden; }
.nav-sheet a.sheet-link {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--contour);
}
.nav-sheet a.sheet-link[aria-current="page"] { color: var(--blue); }
.nav-sheet .btn-wa { margin-top: 26px; align-self: flex-start; }

/* four nav items don't fit between 640 and ~900px — burger takes over earlier */
@media (max-width: 900px) {
  .header-nav { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 640px) {
  .header .btn-wa-mini, .header .lang-toggle { display: none; }
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 7px 14px;
  border: 1px solid var(--contour);
  border-radius: 999px;
  background: var(--cream-2);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}
.trust-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }

/* ---------- buyer journey ---------- */
/* Default render is STATIC: finished world + stacked chapters (no-JS,
   reduced-motion, mobile). .js-scrub switches on the sticky scrub. */
.j-section {
  background: var(--cream);
  color: var(--ink);
  padding: 64px 0;
  border-top: 1px solid var(--contour);
  border-bottom: 1px solid var(--contour);
}
.j-section .kicker { color: var(--muted); }
.js-scrub.j-section { padding: 0; }
.js-scrub .j-track { height: 460vh; }
.js-scrub .j-stage > .container {
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
/* header (kicker/sub) stays in normal flow at the top; the grid fills the
   rest and chapter texts are confined to it — they can never paint over
   the header. */
.js-scrub .j-grid { flex: 1 1 auto; min-height: 0; }
.js-scrub .j-texts { align-self: stretch; min-height: 0; overflow: hidden; }
.js-scrub .j-scene-wrap svg { max-height: calc(100dvh - var(--top-h) - 150px); }
.js-frozen .j-track { height: auto !important; }
.js-frozen .j-stage { position: static !important; }
.js-scrub .j-stage {
  position: sticky;
  top: var(--top-h);
  height: calc(100dvh - var(--top-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 20px 0;
}
.j-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: center;
}
.j-texts { position: relative; }
.j-text { padding: 14px 0; }
.js-scrub .j-text {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  padding: 0;
  max-height: 100%;
  overflow: hidden;
  opacity: var(--cp, 1);
  transform: translateY(calc(-50% + (1 - var(--cp, 1)) * 14px));
}
.j-ch {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 10px;
}
.j-text h3 { font-size: 24px; font-weight: 900; letter-spacing: -0.015em; line-height: 1.12; margin: 0 0 12px; color: var(--ink); }
.j-text p { font-size: 15px; color: #3d4654; margin: 0; }
.j-text p strong { color: var(--ink); font-weight: 800; }

.j-scene-wrap svg { width: 100%; height: auto; }

/* scene element behaviors — --lp defaults to 1 (finished world) */
.j-el { --lp: 1; }
.j-fade { opacity: var(--lp); }
g.j-rise { opacity: var(--lp); transform: translateY(calc((1 - var(--lp)) * 8px)); }
.j-follow { opacity: min(calc(var(--lp) * 6), 1); } /* no CSS transform — JS drives the transform attribute */
.j-draw { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--lp)); fill: none; }
.j-drop { opacity: var(--lp); transform: translateY(calc((1 - var(--lp)) * -20px)); }
.j-dim { opacity: calc(1 - var(--lp) * 0.62); }

.j-route { stroke: rgba(26, 26, 26, .42); stroke-width: 2; stroke-linecap: round; }
.j-route-bad { stroke: var(--red); stroke-width: 2.4; stroke-linecap: round; }
.j-arc { stroke: var(--blue); stroke-width: 2.6; stroke-linecap: round; }
.j-conn2 { stroke: var(--blue); stroke-width: 1.6; stroke-dasharray: 1; stroke-linecap: round; }
.j-grat line { stroke: #1a1a1a; opacity: .05; stroke-width: 1; }

.j-scene polygon, .j-scene path.iso, .j-scene ellipse { stroke: rgba(16, 21, 29, .18); stroke-width: .8; }
.i-hull-t { fill: #33465e; }
.i-hull-l { fill: #243447; }
.i-hull-r { fill: #182534; }
.i-ct { fill: #57d2f8; }
.i-cl { fill: #2fb3de; }
.i-cr { fill: #1e87ab; }

.j-map-label { fill: #8b8172; font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.j-note-label { fill: #8b8172; font-size: 12.5px; font-weight: 600; font-style: italic; }
.j-badge2d rect { fill: var(--panel); stroke: var(--amber); stroke-width: 1.3; rx: 8; }
.j-badge2d text { fill: #7a5218; font-size: 12px; font-weight: 700; }
.j-chip3 rect { fill: var(--panel); stroke: var(--green); stroke-width: 1.3; rx: 8; }
.j-chip3 text { fill: #0e7a4d; font-size: 12px; font-weight: 700; }
.j-chip4 rect { fill: var(--panel); stroke: var(--cyan); stroke-width: 1.3; rx: 8; }
.j-chip4 text { fill: #0a6d94; font-size: 12px; font-weight: 700; }
.j-pill rect { fill: var(--blue); rx: 9; }
.j-pill text { fill: #fff; font-size: 13px; font-weight: 900; letter-spacing: .08em; }

/* walk + layer scrub specifics */
#walk.js-scrub .j-track { height: 560vh; }
#layer.js-scrub .j-track { height: 300vh; }
#stag.js-scrub .j-track { height: 500vh; }
.read-list { font-size: 13.5px; color: #4a5462; max-width: 720px; line-height: 1.7; }
.walk-ghost { fill: none; stroke: rgba(26, 26, 26, .2); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.walk-draw { stroke: var(--blue); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.walk-aud { fill: var(--blue); stroke: #fff; stroke-width: 2.5; }
.j-ck circle { fill: var(--blue); stroke: #fff; stroke-width: 2; }
.j-ck text { fill: #fff; font-size: 12px; font-weight: 900; }
.j-icon { height: 46px; margin-bottom: 12px; }
.j-icon svg { height: 100%; width: auto; }
.j-text ul { margin: 0 0 12px; padding: 0 0 0 18px; }
.j-text li { font-size: 13.5px; color: #3d4654; margin: 4px 0; }
.i-lyr-t { fill: var(--blue); }
.i-lyr-l { fill: #0565c4; }
.i-lyr-r { fill: #0554a8; }
.j-pill-txt { fill: #fff; font-size: 13px; font-weight: 900; letter-spacing: .1em; }

/* iso badge in proof tiles */
.badge-tile .badge-iso { flex: 0 0 46px; width: 46px; height: auto; margin-top: 2px; }
.badge-tile.badge-amber .i-check-bg { fill: var(--amber); }

/* door minis */
.door-icon { height: 54px; margin-bottom: 14px; }
.door-icon svg { height: 100%; width: auto; }
.door-icon .iso-scene polygon, .door-icon .iso-scene ellipse { stroke: rgba(255, 255, 255, .18); }

/* mobile keyframe snapshots — frames persist across mode flips; only
   .j-snaps shows them */
.j-section:not(.j-snaps) .j-frame { display: none; }
.j-snaps .j-scene-wrap { display: none; }
.j-frame { margin: 16px 0 34px; }
.j-frame svg { width: 100%; height: auto; }
.j-frame[data-frame="1"] .jc2, .j-frame[data-frame="1"] .jc3, .j-frame[data-frame="1"] .jc4,
.j-frame[data-frame="2"] .jc3, .j-frame[data-frame="2"] .jc4,
.j-frame[data-frame="3"] .jc4 { display: none; }
.j-frame[data-frame="1"] .j-dim, .j-frame[data-frame="2"] .j-dim { opacity: 1; }

@media (max-width: 880px) {
  .j-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- who we are (index) ---------- */
.who-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 280px)); gap: 32px; margin-top: 30px; }
.who-tile h3 { font-size: 20px; font-weight: 900; margin: 14px 0 4px; color: var(--ink); }
.who-tile p { font-size: 13.5px; color: #4a5462; margin: 0; }
.who-avatar { height: 96px; }
.who-avatar svg { height: 100%; width: auto; }
@media (max-width: 640px) { .who-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }

/* ---------- today vs the road (index) ---------- */
.tr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 28px; }
.tr-col h3 {
  font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 12px;
}
.tr-col p { font-size: 15.5px; line-height: 1.65; color: #3d4654; margin: 0; }
.tr-road { border-left: 1px solid var(--contour); padding-left: 40px; }
.tr-road h3 { color: #8b8172; }
@media (max-width: 720px) {
  .tr-grid { grid-template-columns: 1fr; gap: 26px; }
  .tr-road { border-left: 0; padding-left: 0; border-top: 1px solid var(--contour); padding-top: 22px; }
}

/* ---------- founding-buyers line (buyers hero) ---------- */
.found-line {
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  border-left: 3px solid var(--blue); padding-left: 14px;
  margin: 14px 0 4px; max-width: 520px;
}

/* ---------- what-we-check grid (buyers) ---------- */
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 40px;
  margin-top: 30px;
}
.check-tile { border-top: 1px solid var(--contour); padding-top: 18px; }
.check-tile .j-icon { height: 40px; margin-bottom: 10px; }
.check-tile h3 { font-size: 18px; font-weight: 900; letter-spacing: -0.01em; margin: 0 0 8px; color: var(--ink); }
.check-tile ul { margin: 0; padding: 0 0 0 18px; }
.check-tile li { font-size: 13.5px; color: #4a5462; margin: 4px 0; }
@media (max-width: 640px) { .check-grid { grid-template-columns: 1fr; } }

/* ---------- rules band ---------- */
.rules-band { border-top: 1px solid var(--contour); border-bottom: 1px solid var(--contour); background: var(--cream); }
.rules-band .rules-copy {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  border-left: 3px solid var(--blue);
  padding-left: 20px;
  margin: 18px 0 22px;
}

/* ---------- the letter (the-point) ---------- */
.ltr .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: center;
}
.ltr .ltr-copy h2 { max-width: 26ch; }
.ltr .ltr-copy p { font-size: 16.5px; line-height: 1.7; color: #4a5462; margin: 0 0 18px; max-width: 62ch; }
.ltr .ltr-copy p:last-child { margin-bottom: 0; }
.ltr .ltr-copy .read-list { font-size: 13.5px; }
.ltr-art svg { width: 100%; height: auto; }
.pt-sig { font-size: 15px; font-weight: 800; color: var(--ink); margin-top: 26px; }
.pt-sig::before { content: ""; display: block; width: 44px; height: 3px; background: var(--blue); margin-bottom: 12px; }
@media (max-width: 880px) {
  .ltr .container { grid-template-columns: 1fr; gap: 10px; }
  .ltr-art { max-width: 330px; margin: 10px auto 0; }
}

/* ---------- art-pop: choreographed reveal, mobile-safe ----------
   Pieces (.pp fade/rise, .pp-draw stroke draw) animate once when the art
   enters the viewport. Gated on html.artpop (set by JS) so no-JS renders
   the finished art. Sequenced via --d transition delays. */
html.artpop .art-pop .pp {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--d, 0s);
}
html.artpop .art-pop .pp-draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.1s ease;
  transition-delay: var(--d, 0s);
}
html.artpop .art-pop.on .pp { opacity: 1; transform: none; }
html.artpop .art-pop.on .pp-draw { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  html.artpop .art-pop .pp,
  html.artpop .art-pop .pp-draw {
    transition: none;
    opacity: 1;
    transform: none;
    stroke-dashoffset: 0;
  }
}

/* ---------- two-door CTA strip (index) ---------- */
.door-strip { background: var(--navy); color: #eaf1f8; padding: 56px 0; }
.door-strip .container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.door { border-left: 3px solid var(--blue); padding-left: 24px; }
.door h3 { font-size: 22px; font-weight: 900; margin: 0 0 14px; color: #fff; }
.door .btn-primary { font-size: 14px; padding: 11px 20px; }
@media (max-width: 640px) { .door-strip .container { grid-template-columns: 1fr; } }
.door-strip.doors-3 .container { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 880px) { .door-strip.doors-3 .container { grid-template-columns: 1fr; } }

/* ---------- standard page ---------- */
.std-hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.std-hero .container {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}
.std-hero .hero-deck { margin-bottom: 0; }
.std-iso { max-width: 300px; margin: 0 auto; }
.std-iso svg { width: 100%; height: auto; }
.std-iso .iso-scene polygon, .std-iso .iso-scene ellipse { stroke: rgba(16, 21, 29, .28); }

.scale-legend {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 26px 0 0;
  max-width: 760px;
}
.scale-cell {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 8px 9px;
  text-align: center;
}
.scale-cell b {
  display: block;
  font-size: 19px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.scale-cell span { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .03em; }
.scale-cell:nth-child(1) b { color: var(--red); }
.scale-cell:nth-child(2) b, .scale-cell:nth-child(3) b { color: var(--amber); }
.scale-cell:nth-child(4) b { color: var(--muted); }
.scale-cell:nth-child(5) b, .scale-cell:nth-child(6) b { color: var(--green); }

.rubric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 34px; }
.rec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0 20px; }
.rubric-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px 20px;
}
.rubric-card h3 { font-size: 18px; font-weight: 900; letter-spacing: -0.01em; margin: 0 0 12px; }
.rubric-card ul { margin: 0 0 14px; padding: 0 0 0 18px; }
.rubric-card li { font-size: 14px; color: var(--muted); margin: 6px 0; }
.feeds-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(7, 134, 255, .08);
  border-radius: 999px;
  padding: 4px 12px;
}
.band-map { max-width: 820px; margin: 40px auto 0; }
.band-map svg { width: 100%; height: auto; }
.bm-sec rect { fill: var(--panel); stroke: var(--line); stroke-width: 1.2; rx: 8; }
.bm-sec text { fill: var(--ink); font-size: 12.5px; font-weight: 700; }
.bm-band rect { stroke-width: 1.6; rx: 10; fill: var(--panel); }
.bm-band text { font-size: 13px; font-weight: 900; }
.bm-cap rect { stroke: var(--blue); } .bm-cap text { fill: #0554a8; }
.bm-q rect { stroke: var(--green); } .bm-q text { fill: #0e7a4d; }
.bm-sp rect { stroke: var(--amber); } .bm-sp text { fill: #7a5218; }
.bm-ot rect { stroke: var(--cyan); } .bm-ot text { fill: #0a6d94; }
.bm-line { stroke: rgba(16, 21, 29, .18); stroke-width: 1.4; fill: none; }

@media (max-width: 720px) {
  .std-hero .container { grid-template-columns: 1fr; }
  .rubric-grid { grid-template-columns: 1fr; }
  .rec-grid { grid-template-columns: 1fr; }
  .scale-legend { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-iso svg { animation: none; }
  .pulse-dot { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .bp-node { transform: none; }
  g.j-rise, .j-drop { transform: none; }
}

/* ---------- the point: parable + payoff game ---------- */
.parable-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.parable-art svg { width: 100%; max-width: 420px; height: auto; }
.point-hero-art svg { width: 100%; max-width: 260px; height: auto; margin: 0 auto; }
@media (max-width: 720px) { .parable-grid { grid-template-columns: 1fr; gap: 24px; } }

.game-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: start; margin-top: 26px; }
.game-round-h { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin: 0 0 10px; }
.game-prompt { font-size: 15.5px; color: #3d4654; margin: 0 0 18px; max-width: 52ch; }
.game-choices { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.game-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 7px;
  font: inherit; cursor: pointer; text-align: left;
  border: 2px solid var(--ink); background: var(--panel);
  border-radius: 12px; padding: 14px 18px; min-width: 208px;
  transition: border-color .15s, transform .15s;
}
.game-btn:hover:not(:disabled) { border-color: var(--blue); transform: translateY(-2px); }
.game-btn:disabled { opacity: .45; cursor: default; }
.game-btn svg { height: 44px; width: auto; }
.game-btn b { font-size: 15px; font-weight: 900; color: var(--ink); }
.game-btn span { font-size: 12.5px; color: var(--muted); }
.game-out { border-left: 3px solid var(--blue); padding-left: 16px; margin: 18px 0; }
.game-out p { font-size: 15px; color: var(--ink); margin: 0; }
.game-out .game-pay { font-weight: 900; font-variant-numeric: tabular-nums; margin-top: 8px; color: var(--blue); }
.game-insight { font-size: 14.5px; font-style: italic; color: var(--muted); margin: 0 0 16px; max-width: 50ch; }
.game-insight[hidden], .game-out[hidden],
.game-actions .btn[hidden], .game-takeaway[hidden] { display: none !important; }
.game-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.game-takeaway { font-size: 16.5px; font-weight: 800; color: var(--ink); margin: 0; max-width: 46ch; }
.btn-secondary { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }

.pg { display: grid; grid-template-columns: 34px 1fr 1fr; grid-template-rows: auto 1fr 1fr; gap: 8px; align-items: stretch; }
.pg-corner { grid-row: 1; grid-column: 1; }
.pg-head { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: center; align-self: end; padding-bottom: 2px; grid-row: 1; grid-column: 2 / 4; }
.pg-side { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; align-self: center; justify-self: center; grid-row: 2 / 4; grid-column: 1; }
.pg-cell {
  background: var(--panel); border: 1.5px solid var(--line); border-radius: 10px;
  padding: 14px 10px; text-align: center;
  transition: opacity .35s, border-color .35s, box-shadow .35s, transform .35s;
}
.pg-combo { font-size: 11.5px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.pg-nums { font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--ink); }
.pg-cell.pg-hit { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(7,134,255,.16); transform: scale(1.04); }
.pg-cell.pg-hit .pg-nums { color: var(--blue); }
.pg-cell.pg-dim { opacity: .35; }
.pg-note { font-size: 11px; color: var(--muted); text-align: center; margin: 10px 0 0; }
@media (max-width: 880px) { .game-wrap { grid-template-columns: 1fr; gap: 30px; } }
@media (prefers-reduced-motion: reduce) {
  .pg-cell, .game-btn { transition: none; }
  .pg-cell.pg-hit { transform: none; }
}

/* ---------- GIS register: faint contour texture behind story surfaces
   (kept last so it wins over earlier background shorthands).
   topo-sheet.svg is ONE continuous 2400×4800 survey sheet of real
   topography — the Cordillera Central N→S through the Aburrá Valley
   (AWS Terrain Tiles → tools/topo_colombia.py). 100m contours, labeled
   500m index contours. Each surface below crops a DIFFERENT region of
   the sheet (staggered background-position), so no two sections show
   the same terrain and no wrap seam is ever on screen. ---------- */
.section-paper, .j-section, .std-hero, .rules-band {
  background-image: url(../assets/topo-sheet.svg);
  background-size: 2400px 4800px;
}
.std-hero                        { background-position: -120px -260px; }
.j-section                       { background-position: -40px -1500px; }
.rules-band                      { background-position: -260px -2660px; }
.section-paper:nth-of-type(4n)   { background-position: -80px -700px; }
.section-paper:nth-of-type(4n+1) { background-position: -220px -1900px; }
.section-paper:nth-of-type(4n+2) { background-position: 0 -2500px; }
.section-paper:nth-of-type(4n+3) { background-position: -160px -3080px; }
/* mobile sections run taller: keep crops shallow so they never wrap
   past the sheet's bottom edge */
@media (max-width: 880px) {
  .rules-band                      { background-position: -260px -2200px; }
  .section-paper:nth-of-type(4n+2) { background-position: 0 -1800px; }
  .section-paper:nth-of-type(4n+3) { background-position: -160px -2300px; }
}
/* ultra-wide: scale the sheet to the viewport so the wrap seam stays
   off-screen (≤7% line-weight drift, invisible) */
@media (min-width: 2401px) {
  .section-paper, .j-section, .std-hero, .rules-band {
    background-size: 100vw auto;
  }
}
.std-iso img, .point-hero-art img { width: 78%; max-width: 260px; height: auto; margin: 0 auto; }

/* ---------- veils: cartographic knockouts over the topo sheet ----------
   Real survey sheets break contour lines where labels sit; we do the same.
   The veil lives on a ::before overlay (NOT in the background-image list —
   the per-instance background-position staggering above is single-layer
   shorthand and would mis-assign across a comma list). isolation traps the
   z-index:-1 pseudo above the section's own topo background but below every
   descendant. Terrain stays full-strength in the gutters. */
.section-paper, .j-section, .std-hero, .rules-band {
  position: relative;
  isolation: isolate;
}
.section-paper::before, .j-section::before,
.std-hero::before, .rules-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg,
    transparent                          calc(50% - var(--veil-l, 620px) - 200px),
    var(--veil-c, rgba(247,244,236,.9))  calc(50% - var(--veil-l, 620px)),
    var(--veil-c, rgba(247,244,236,.9))  calc(50% + var(--veil-r, 620px)),
    transparent                          calc(50% + var(--veil-r, 620px) + 200px));
}
/* tint matches each surface's base color */
.section-paper, .std-hero { --veil-c: rgba(242,237,224,.9); }  /* --paper */
.j-section, .rules-band   { --veil-c: rgba(247,244,236,.9); }  /* --cream */
/* layout-tuned right holds (hold distance from center; text-column right
   edges measured per layout — left default 620px covers the container) */
.j-section          { --veil-r: -140px; } /* 380px left text col */
.rules-band         { --veil-r: 190px; }  /* 720px rules-copy block */
.std-hero           { --veil-r: 90px; }   /* 1.2fr text column */
.section-paper.ltr  { --veil-r: 60px; }   /* letters: 320px art col keeps topo */

/* scene veils: soft ground behind the SVG diagrams so routes and labels
   read first-pass while terrain ghosts through at lower alpha */
.j-scene-wrap, .ltr-art, .parable-art, .j-frame { position: relative; }
.j-scene-wrap::before, .ltr-art::before, .parable-art::before, .j-frame::before {
  content: "";
  position: absolute;
  inset: -4% -6%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 62% at 50% 50%,
    var(--scene-c, rgba(247,244,236,.62)) 0%,
    var(--scene-c2, rgba(247,244,236,.5)) 55%,
    transparent 78%);
}
.section-paper .ltr-art::before, .section-paper .parable-art::before {
  --scene-c: rgba(242,237,224,.62);
  --scene-c2: rgba(242,237,224,.5);
}

/* darker paragraph ink over topo surfaces (scoped — --muted stays global) */
.section-paper .proof-intro, .section-paper .proof-row dd { color: #4a5462; }
.section-paper.ltr .ltr-copy p { color: #3d4654; }

/* single-column: one soft full-bleed wash (topo ghosts through) */
@media (max-width: 880px) {
  .section-paper::before, .j-section::before,
  .std-hero::before, .rules-band::before {
    background: var(--veil-m, rgba(247,244,236,.82));
  }
  .section-paper, .std-hero { --veil-m: rgba(242,237,224,.82); }
}

/* ---------- language hint chip (¿Prefiere español?) ---------- */
.langhint {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--panel);
  border: 1px solid var(--contour);
  border-radius: 999px;
  padding: 8px 8px 8px 18px;
  box-shadow: 0 10px 30px -12px rgba(16,21,29,.3);
  font-size: 14px;
  font-weight: 700;
  max-width: calc(100vw - 32px);
}
.langhint a { color: var(--blue); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.langhint a:hover { text-decoration: underline; }
.langhint button {
  border: 0;
  background: none;
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
  padding: 6px 10px;
  cursor: pointer;
}
.langhint button:hover { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin-top: 30px; }
.faq-item { border-top: 1px solid var(--contour); padding: 22px 0 18px; }
.faq-item h3 { font-size: 18px; font-weight: 900; letter-spacing: -0.01em; margin: 0 0 8px; }
.faq-item .faq-a { font-size: 15.5px; color: var(--ink); margin: 0 0 8px; }
.faq-item .faq-d { font-size: 14px; color: #4a5462; margin: 0; }

/* ---------- walk sheet (full instrument) ---------- */
.ws-station { max-width: 820px; margin: 0 0 44px; }
.ws-station:last-child { margin-bottom: 0; }
.ws-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  color: #fff;
  background: var(--blue);
  border-radius: 5px;
  padding: 3px 9px 2px;
  margin: 0 0 8px;
}
.ws-station h2 { font-size: 24px; letter-spacing: -0.018em; margin: 0 0 2px; }
.ws-meta { font-size: 13px; font-weight: 700; color: #596372; margin: 0 0 14px; }
.ws-list { list-style: none; margin: 0; padding: 0; counter-reset: wsitem; }
.ws-list li {
  counter-increment: wsitem;
  position: relative;
  padding: 10px 0 10px 40px;
  border-top: 1px dashed var(--contour);
  font-size: 15.5px;
  color: #3d4654;
}
.ws-list li:last-child { border-bottom: 1px dashed var(--contour); }
.ws-list li::before {
  content: counter(wsitem, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 11px;
  font-size: 12px;
  font-weight: 800;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.ws-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- focused quote view (?factory=<slug>) ----------
   A buyer arriving from a factory page has already been persuaded by the
   record; handing them the marketing page again reads as lead-gen. The head
   script sets html.fq before first paint; buyer-form.js confirms the slug,
   loads the factory's published facts and adds .fq-on, or removes .fq and
   the full page returns. */
html.fq .banner, html.fq .hero, html.fq .j-section,
html.fq #checklist, html.fq .section-paper, html.fq .rules-band { display: none; }
html.fq #fq-default { display: none; }

#fq-fac { display: flex; flex-direction: column; gap: 18px; }
.fq-name {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 400;
  font-size: 46px;
  line-height: 1;
  letter-spacing: -.015em;
  color: #fff;
}
.fq-where { margin-top: 8px; font-size: 13.5px; font-weight: 600; letter-spacing: .04em; color: rgba(255,255,255,.88); }
.fq-dateline { display: flex; align-items: flex-start; gap: 10px; }
.fq-dateline svg { flex: none; margin-top: 2px; }
.fq-dateline span {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
  line-height: 1.5;
}
.fq-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.fq-tile {
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  min-width: 0;
}
.fq-tile .cap { font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #fff; padding: 6px 5px; }
.fq-tile.seen .cap { background: var(--green); }
.fq-tile.said .cap { background: var(--amber); }
.fq-tile .val { font-size: 16px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; padding: 12px 8px 0; color: var(--ink); overflow-wrap: anywhere; }
.fq-tile .fine { font-size: 10.5px; color: var(--muted); line-height: 1.35; padding: 5px 9px 12px; }
.fq-key { display: flex; flex-direction: column; gap: 6px; }
.fq-key span { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: rgba(255,255,255,.85); }
.fq-key i { width: 11px; height: 11px; border-radius: 3px; flex: none; display: inline-block; }
.fq-record a { color: #fff; font-size: 13.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.fq-record a:hover { color: #fff; }
@media (max-width: 640px) {
  .fq-name { font-size: 38px; }
  .fq-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fq-tile:nth-child(3):last-child { grid-column: 1 / -1; }
}

/* ---------- the six answers strip on the buyer form ----------
   A floor prices from six answers, and the buyer sees the finite list at
   the dropzone: files cover the first three, three small inputs take the
   rest. The volume select and the details accordion this replaces asked
   the same questions with the requirement space hidden. */
.six-h { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.sixgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.six-tile {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.six-tile.six-ask { background: var(--panel); gap: 6px; }
.six-name { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; }
.six-name svg { flex: none; color: var(--blue); }
.six-hint { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.vform .six-tile label { margin: 0; font-size: 12.5px; }
.six-tile label .six-tag { font-weight: 700; color: var(--muted); }
.vform .six-tile input { font-size: 13.5px; padding: 8px 10px; border-radius: 7px; }
.six-p { margin: 10px 2px 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
@media (max-width: 640px) { .sixgrid { grid-template-columns: 1fr; } }

/* Factory reference chip on the buyer form (?factory=<slug>). */
.refchip { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.ref-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: #eaf1f8;
  border: 1.5px solid #b9d7f3;
  border-radius: 999px;
  padding: 7px 8px 7px 12px;
  color: #0554a8;
  font-size: 13px;
  font-weight: 700;
}
.ref-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: rgba(5, 84, 168, .12);
  color: #0554a8;
  cursor: pointer;
  padding: 0;
}
.ref-x:hover { background: rgba(5, 84, 168, .22); }
.ref-x:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.ref-note { margin: 0 2px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.rc-factory { color: #0554a8; font-weight: 600; }

/* ---------- intake: the front page as a request compiler ---------- */
/* Matched against the approved reference at 1650x900. The composition bands
   use a wide container; the request is one thin-outlined object; the process
   objects are supplied rendered assets, with SVG reserved for the map,
   routes, dots, states and labels. */

.container.xl { max-width: 1512px; }

.ann {
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; text-align: center;
  padding: 11px 56px; position: relative;
}
.ann button {
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: rgba(255,255,255,.6); font-size: 18px;
  cursor: pointer; line-height: 1; padding: 4px 8px;
}
.ann button:hover { color: #fff; }

.itop { border-bottom: 1px solid var(--contour); background: var(--cream); }
.itop .container { display: flex; align-items: center; gap: 40px; padding-top: 14px; padding-bottom: 14px; }
.itop .brand { font-size: 27px; }
.inav { display: flex; gap: 34px; margin-right: auto; }
.inav a {
  font-size: 13.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.inav a:hover { color: var(--blue); }

.intake { background: var(--cream); position: relative; overflow: hidden; }
.intake::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url(../assets/americas-lossless.webp) right -40px top -10px / 900px auto no-repeat;
  opacity: .9;
}
.intake .container { position: relative; }
.igrid {
  display: grid; grid-template-columns: 745px minmax(0, 1fr);
  gap: 44px; padding: 32px 0 24px; align-items: start;
}

.ieyebrow {
  font-size: 13.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 10px;
}
.ih1 {
  font-size: 60px; font-weight: 900; letter-spacing: -.038em;
  line-height: 1; margin: 0 0 8px; white-space: nowrap;
}
.isub { font-size: 17px; color: var(--muted); margin: 0 0 18px; line-height: 1.45; }

/* the request object */
.ibox { border: 1.6px solid var(--ink); border-radius: 7px; background: var(--panel); }
.ibox-row { padding: 10px 16px; border-top: 1px solid var(--contour); }
.ibox-row:first-child { border-top: 0; }
.ibox-write { padding: 14px 18px 9px; }
/* Once the request is interpreted, the write area yields its empty space to
   the follow-ups: the text stays fully visible and editable, just no larger
   than itself. */
.ibox.is-resolved .ibox-write { padding: 11px 18px 7px; }
.ibox.is-resolved textarea { min-height: 0; max-height: 86px; overflow-y: auto; }
.ibox.is-resolved.is-open textarea { max-height: 320px; }
.ibox.is-resolved #i-expand { display: inline-flex; }
.ibox.is-open #i-expand svg { transform: rotate(180deg); }
.ibox textarea {
  width: 100%; border: 0; outline: none; resize: none; background: transparent;
  font: inherit; font-size: 16.5px; line-height: 1.58; color: var(--ink);
  min-height: 46px; padding: 0; display: block;
}
.ibox textarea::placeholder { color: #a9b1bb; }
.ibox-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-top: -4px; }
.iclip { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 2px; display: inline-flex; }
.iclip[hidden] { display: none; } /* display would defeat the hidden attribute */
.iclip:hover { color: var(--blue); }
/* files ride as chips beside the paperclip that took them */
.ifchips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; margin: 0 2px 2px; }
.ifchip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 7px;
  border: 1.4px solid #d3dae3; border-radius: 6px; background: var(--panel);
  font-size: 12px; font-weight: 600; color: var(--ink); min-width: 0;
}
.ifchip img { width: 22px; height: 22px; border-radius: 3px; object-fit: cover; flex: none; }
.ifchip svg { flex: none; color: var(--muted); }
.ifchip .fn { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ifchip .fx {
  border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 1px;
  font-size: 15px; line-height: 1; flex: none;
}
.ifchip .fx:hover { color: var(--red); }
/* upload state: a file lands the moment it is attached */
.ifchip { position: relative; overflow: hidden; }
.ifchip.is-sending { color: var(--muted); }
.ifchip.is-sending::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 40%;
  background: var(--blue); animation: ifsend 1.1s ease-in-out infinite;
}
@keyframes ifsend { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.ifchip.is-failed { border-color: #e0a84a; color: #8a5a00; cursor: pointer; }
.ifchip.is-failed svg { color: #c98a1a; }
.ifchip.is-unreadable svg, .ifchip.is-unreadable .fn { color: #a9b1bb; }
@media (prefers-reduced-motion: reduce) { .ifchip.is-sending::after { animation: none; width: 100%; opacity: .5; } }
.icount { font-size: 11.5px; color: #a9b1bb; }
.igo-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.igo {
  width: 62px; height: 42px; border-radius: 8px; border: 0; background: var(--blue);
  color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.igo:hover { background: #056ee0; }
.igo:disabled { background: #c3cad3; cursor: default; }

/* the extracted chips */
.ichips-row { display: flex; align-items: flex-end; gap: 10px; }
.ichips { display: flex; flex-wrap: wrap; gap: 7px; flex: 1; }
/* display:flex would defeat the hidden attribute these rows rely on */
.ichips-row[hidden], .ireply[hidden] { display: none; }
.ichip { animation: chipin .22s ease-out both; }
@keyframes chipin { from { opacity: 0; transform: translateY(4px); } }
.ichip.e-confirmed { border-color: var(--green); }
.ichip.e-confirmed svg { color: var(--green); }
.iconfirm {
  flex: none; width: 34px; height: 30px; border: 1.4px solid var(--green);
  border-radius: 6px; background: none; color: var(--green); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; margin-top: 1px;
}
.iconfirm:hover { background: rgba(22,166,106,.1); }
.iconfirm.is-done { background: var(--green); color: #fff; cursor: default; }
.ichip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border: 1.4px solid #2a3442; border-radius: 6px; background: var(--panel);
  font-size: 12.5px; font-weight: 700; color: var(--ink); line-height: 1.15;
}
.ichip svg { flex: none; color: var(--ink); }
.ichip .cq { display: block; font-size: 10px; font-weight: 600; color: var(--muted); margin-top: 1px; }
.ichip.b-preferred { border-style: solid; }
.ichip.e-inferred { border-style: dashed; border-color: #9aa3ae; }
.ichip.e-inferred .idot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); flex: none; }
.ichip.e-conflicted { border-style: dashed; border-color: var(--red); }
.ichip.q-open { border-style: dashed; border-color: #b6bec8; color: var(--muted); }
/* a chip the buyer can take away */
.ichip .cx { border: 0; background: none; color: #a9b1bb; cursor: pointer; padding: 0 0 0 2px; margin: 0 -4px 0 0; font-size: 14px; line-height: 1; flex: none; }
.ichip .cx:hover { color: var(--red); }
/* the read, grouped by where each line came from, when files were read */
.ichips.is-grouped { flex-direction: column; align-items: stretch; gap: 10px; }
.igroup { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.igroup-h { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; color: var(--muted); min-width: 0; }
.igroup-h img { width: 36px; height: 36px; border-radius: 5px; object-fit: cover; border: 1px solid #d3dae3; flex: none; background: #fff; }
.igroup-h svg { flex: none; color: var(--muted); }
.igroup-h .ign { color: var(--ink); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.igroup-h .igp { color: var(--muted); font-weight: 600; white-space: nowrap; }
.igroup .ichips { flex: initial; }
/* the photo itself, with a numbered dot on each thing the model saw */
.iphoto { position: relative; display: inline-block; max-width: 100%; line-height: 0; }
.iphoto img { display: block; max-width: 100%; max-height: 260px; width: auto; height: auto; border-radius: 8px; border: 1px solid #d3dae3; background: #fff; }
.iphoto.is-live { cursor: crosshair; }
.ipin {
  position: absolute; transform: translate(-50%, -50%); width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #fff; background: var(--blue); color: #fff; font: 800 11px/18px var(--font, inherit);
  text-align: center; padding: 0; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.ipin.is-pinned { background: var(--green); }
.ipn { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--blue); color: #fff; font-style: normal; font-size: 10px; font-weight: 800; flex: none; }
.ichip.e-confirmed .ipn { background: var(--green); }
.ipin-hint { font-size: 11.5px; color: var(--muted); margin: 0; }
.ipop {
  position: absolute; z-index: 5; width: 240px; max-width: calc(100% - 12px); background: var(--panel);
  border: 1.4px solid #2a3442; border-radius: 8px; padding: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.18);
  line-height: 1.3; text-align: left;
}
.ipop-h { font-size: 12.5px; font-weight: 800; color: var(--ink); margin: 0 0 8px; display: flex; gap: 6px; align-items: baseline; }
.ipop-h .ipop-l { font-weight: 600; color: var(--muted); }
.ipop select, .ipop input { width: 100%; box-sizing: border-box; font: inherit; font-size: 12.5px; padding: 6px 8px; border: 1.4px solid #d3dae3; border-radius: 6px; background: #fff; color: var(--ink); margin-bottom: 8px; }
.ipop-b { display: flex; gap: 6px; margin-bottom: 8px; }
.ipop-b button { flex: 1; font: inherit; font-size: 12px; font-weight: 700; padding: 6px 4px; border: 1.4px solid #2a3442; border-radius: 6px; background: #fff; color: var(--ink); cursor: pointer; }
.ipop-b button.is-on { background: var(--ink); color: #fff; }
.ipop-f { display: flex; justify-content: flex-end; gap: 6px; }
.ipop-f button { font: inherit; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 6px; border: 1.4px solid transparent; cursor: pointer; }
.ipop-f .ipop-ok { background: var(--blue); color: #fff; }
.ipop-f .ipop-x { background: none; color: var(--muted); }
@media (max-width: 640px) {
  .ipop { position: fixed; left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; }
}

/* clarification rows inside the object */
.iq-h {
  display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 800;
  margin: 0 0 8px; letter-spacing: -.01em;
}
.iq-h svg { color: var(--ink); flex: none; }
/* One to three fields, decided per request: the grid adapts rather than
   reserving slots for questions nobody asked. */
.iq-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.ifield {
  position: relative; border: 1.4px solid #d3dae3; border-radius: 7px;
  background: #fff; padding: 6px 11px 7px;
}
.ifield label { display: block; font-size: 11.5px; font-weight: 700; color: var(--ink); margin: 0 0 1px; }
.ifield .itag { font-style: normal; font-weight: 600; font-size: 10px; color: var(--muted); }
.ifield input {
  width: 100%; border: 0; outline: none; background: transparent; font: inherit;
  font-size: 14px; color: var(--ink); padding: 0;
}
.ifield input::placeholder { color: #a9b1bb; }
.ifield.has-icon svg { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.ifield:focus-within { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(7,134,255,.14); }
.ifield.is-opts { padding-bottom: 8px; }
.iopts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.iopt {
  padding: 4px 11px; border: 1.4px solid #d3dae3; border-radius: 6px; background: #fff;
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink); cursor: pointer;
  line-height: 1.3;
}
.iopt:hover { border-color: var(--blue); }
.iopt.is-on { background: var(--blue); border-color: var(--blue); color: #fff; }

.ireply { display: flex; align-items: center; gap: 14px; }
.ireply .iq-h { margin: 0; flex: none; }
/* Name and company are asked for but only the email gates submission: a
   request we cannot answer is a request we lost; the rest we can recover
   in the reply thread. */
.ireply-fields { display: flex; gap: 9px; flex: 1; }
.ireply input {
  width: 100%; min-width: 0; font: inherit; font-size: 13.5px; padding: 8px 11px;
  border: 1.4px solid #d3dae3; border-radius: 7px; background: #fff; color: var(--ink);
}
.ireply input#i-email { flex: 1.35; }
.ireply input#i-name, .ireply input#i-company { flex: 1; }
.ireply input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 2px rgba(7,134,255,.14); }

/* the receipt: a reference worth keeping, presented like one */
.irec { border: 1.6px solid var(--green); border-radius: 7px; background: var(--panel); padding: 18px 20px 16px; margin-top: 14px; }
.irec-head { display: flex; align-items: center; gap: 13px; margin-bottom: 13px; }
.irec-badge { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--green); display: inline-flex; align-items: center; justify-content: center; }
.irec-h { margin: 0; font-size: 20px; font-weight: 900; letter-spacing: -.02em; }
.irec-p { margin: 1px 0 0; font-size: 13.5px; color: var(--muted); }
.irec-ref {
  display: flex; align-items: center; gap: 10px; border: 1.4px dashed var(--contour);
  border-radius: 6px; background: var(--cream); padding: 10px 13px;
}
.irec-ref code {
  flex: 1; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14.5px;
  font-weight: 600; letter-spacing: .02em; color: var(--ink); overflow-wrap: anywhere;
}
.irec-copy {
  flex: none; display: inline-flex; align-items: center; gap: 6px; border: 0;
  border-radius: 5px; background: var(--blue); color: #fff; font: inherit;
  font-size: 12.5px; font-weight: 800; padding: 7px 12px; cursor: pointer;
}
.irec-copy:hover { background: #056ee0; }
.irec-copy.is-copied { background: var(--green); }
.irec-mail { margin: 10px 2px 0; font-size: 12.5px; color: var(--muted); }
.irec-read { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--contour); }
.irec-read-h {
  margin: 0 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
.irec-read .ichip { font-size: 11.5px; padding: 3px 8px; }
.irec-files { display: flex; flex-direction: column; gap: 4px; margin: 12px 2px 0; }
.irec-files .frow { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink); }
.irec-files .frow.ok svg { color: var(--green); flex: none; }
.irec-files .frow .igp { color: var(--muted); font-weight: 500; }
.irec-note { margin: 10px 2px 0; font-size: 12.5px; color: var(--muted); }
.irec-keep { margin: 12px 2px 0; font-size: 12.5px; color: var(--muted); }

/* the timeline: five stages, reached ones lit and dated */
.irec-line {
  margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--contour);
  display: flex; flex-direction: column;
}
.tl-row { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); padding: 3px 0; }
.tl-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--contour); background: var(--panel); }
.tl-row.is-done { color: var(--ink); font-weight: 600; }
.tl-row.is-done .tl-dot { border-color: var(--green); background: var(--green); }
.tl-when { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 500; }

/* the tracker entrance: reference + email, then the same receipt */
.itrack { margin-top: 14px; }
.itrack-h { margin: 0; font-size: 20px; font-weight: 900; letter-spacing: -.02em; }
.itrack-p { margin: 4px 0 12px; font-size: 13.5px; color: var(--muted); }
.itrack-fields { display: flex; gap: 9px; }
.itrack-fields input {
  width: 100%; min-width: 0; font: inherit; font-size: 13.5px; padding: 9px 11px;
  border: 1.4px solid #d3dae3; border-radius: 7px; background: #fff; color: var(--ink);
}
.itrack-fields input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 2px rgba(7,134,255,.14); }
.itrack-fields input#i-tr-ref {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .02em;
}
.itrack-new { margin: 12px 2px 0; font-size: 12.5px; color: var(--muted); }
.itrack-new a { color: var(--blue); text-decoration: none; font-weight: 700; }
.itrack-new a:hover { text-decoration: underline; }

.isubmit {
  width: 100%; margin-top: 12px; background: var(--blue); color: #fff; border: 0;
  border-radius: 7px; padding: 10px 22px; font: inherit; font-size: 15px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  position: relative; text-align: center;
}
.isubmit svg { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); }
.isubmit:hover { background: #056ee0; }
.isubmit:disabled { background: #c3cad3; cursor: default; }

.itrust { display: flex; align-items: center; margin-top: 11px; flex-wrap: wrap; }
.itrust div { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: #3d4756; padding: 0 12px; }
.itrust div:first-child { padding-left: 2px; }
.itrust div + div { border-left: 1px solid var(--contour); }
.itrust svg { color: #3d4756; flex: none; }
.itrust .ifee { line-height: 1.35; max-width: 30ch; font-size: 11px; font-weight: 500; color: var(--muted); }

/* the possible production path */
.ipath { position: relative; }
.ipath-field { position: relative; width: 100%; aspect-ratio: 713 / 620; }
.pwires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pwires .wire { fill: none; stroke: var(--blue); stroke-width: 2.6; stroke-linecap: round; }
.ipath.is-thinking .wire {
  stroke-dasharray: 10 13; animation: wireflow 1s linear infinite;
}
@keyframes wireflow { to { stroke-dashoffset: -23; } }
.ipath.is-thinking .pobj { opacity: .55; transition: opacity .3s; }
.ipath.is-thinking .ptag span { opacity: .6; }
.pwires .jn circle, .pwires .jn-dot { fill: var(--blue); }
.pwires .term { fill: none; stroke: #a99f8d; stroke-width: 2; stroke-dasharray: 4 5; }
.pobj { position: absolute; height: auto; display: block; }
.ptag { position: absolute; transform: translateX(-50%); }
.ptag span {
  display: inline-block; background: var(--blue); color: #fff; font-size: 11.5px;
  font-weight: 800; letter-spacing: .1em; padding: 4px 11px; border-radius: 3px;
  border: 1.4px solid var(--blue); white-space: nowrap;
}
.pterm { position: absolute; transform: translateX(-50%); width: 90px; text-align: center; }
.pterm span { font-size: 12px; font-weight: 600; color: #7d7466; line-height: 1.25; display: inline-block; }

/* uncertainty states: solid settled, outlined likely, dashed possible, hollow unresolved */
.pobj.is-likely { opacity: .82; }
.ptag.is-likely span { background: var(--panel); color: var(--blue); border-color: var(--blue); }
.pobj.is-possible { opacity: .55; }
.ptag.is-possible span { background: var(--cream); color: var(--blue); border-color: var(--blue); border-style: dashed; }
.pobj.is-unresolved { opacity: .25; }
.ptag.is-unresolved span { background: none; color: #a9a091; border-color: #c4b8a3; }
.pobj.is-hidden, .ptag.is-hidden { display: none; }


/* evidence strip */
.iwalk { background: var(--cream); border-top: 1px solid var(--contour); padding: 15px 0 24px; }
.iwalk-h {
  font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 13px;
}
.iwalk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.iwalk-tile { position: relative; overflow: hidden; aspect-ratio: 365 / 130; background: var(--contour); display: block; }
.iwalk-tile img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.78); }
.iwalk-tile span {
  position: absolute; left: 14px; bottom: 9px; color: #fff; font-size: 15px; font-weight: 800;
  text-shadow: 0 1px 10px rgba(0,0,0,.65); letter-spacing: -.01em;
}

@media (max-width: 1240px) {
  .igrid { grid-template-columns: minmax(0, 1fr); }
  .ih1 { white-space: normal; font-size: clamp(40px, 6vw, 64px); }
  .ipath { display: none; }
}
@media (max-width: 1000px) {
  .iwalk-grid { grid-template-columns: repeat(2, 1fr); }
  .inav { display: none; }
  .iq-fields { grid-template-columns: 1fr; }
  .ireply { flex-direction: column; align-items: stretch; gap: 8px; }
  .itrust div { padding: 4px 12px 4px 0; }
  .itrust div + div { border-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ipath *, .ichip { animation: none !important; transition: none !important; }
}
