/* ═══════════════════════════════════════════════════════════════════
   Lasso360 — shared stylesheet
   Design System: Deep Navy / Bone grounds · Lasso Gold brand ·
   Ember action · Fence Green state. Cartographic language:
   perimeters, radius rings, map planes, coordinate ticks, pins.
   ONE stylesheet for every page. Never duplicate per page.
   ═══════════════════════════════════════════════════════════════════ */

/* ─── tokens ──────────────────────────────────────────────────────── */
:root {
  /* core */
  --navy:      #0B1424;
  --slate:     #1C2C44;
  --bone:      #F6F2EA;
  /* signature */
  --gold:      #D9A441;
  --ember:     #D4621A;
  --fence:     #3F7D6A;

  /* always-dark chrome + map plane — never re-bound by a light band */
  --line-dark:  #2A3B54;
  --muted-dark: #A8B6C9;
  --map-parcel: #172742;
  --map-grid:   #22334E;

  /* dark band (default) */
  --bg:      var(--navy);
  --surface: var(--slate);
  --fg:      var(--bone);
  --muted:   var(--muted-dark);
  --border:  #2A3B54;
  --accent:  var(--gold);
  --accent-ink: var(--gold);   /* accent as *text* on this band */
  --fence-ink:  #7FC3AA;       /* fence green as text on this band */
  --panel:   #12203A;
  --field-bg: #0F1B31;

  /* derived */
  --accent-soft: color-mix(in oklch, var(--accent) 14%, transparent);
  --grid-line:   color-mix(in oklch, var(--border) 62%, transparent);

  /* type */
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --fs-h1: clamp(38px, 5.1vw, 66px);
  --fs-h2: clamp(28px, 3.4vw, 44px);
  --fs-h3: 20px;
  --fs-lead: 18px;
  --fs-body: 16px;
  --fs-meta: 13px;

  --gap-xs: 8px;
  --gap-sm: 12px;
  --gap-md: 20px;
  --gap-lg: 32px;
  --gap-xl: 56px;
  --gap-2xl: 96px;
  --container: 1160px;
  --gutter: 28px;

  --radius: 8px;
  --radius-lg: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* light band — Bone ground */
.band-light {
  --bg:      var(--bone);
  --surface: #FDFBF6;
  --fg:      var(--navy);
  --muted:   #5A6577;
  --border:  #DFD6C6;
  --accent-ink: #8A6212;  /* gold, darkened only so text clears AA on Bone */
  --fence-ink:  #2F5F51;
  --panel:   #FFFFFF;
  --field-bg: #FFFFFF;
  --grid-line: color-mix(in oklch, var(--border) 70%, transparent);
}

/* ─── reset & base ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.skiplink {
  position: absolute; left: -9999px; top: 0; z-index: 60;
  background: var(--ember); color: var(--navy);
  padding: 10px 16px; border-radius: var(--radius);
  font-weight: 600; font-size: 14px;
}
.skiplink:focus { left: 12px; top: 8px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ─── layout primitives ───────────────────────────────────────────── */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section {
  position: relative;
  background: var(--bg);
  color: var(--fg);
  padding-block: clamp(64px, 8vw, var(--gap-2xl));
}
.section-tight { padding-block: clamp(48px, 5.5vw, 72px); }
.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--gap-md); }
.row { display: flex; align-items: center; gap: var(--gap-md); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--gap-md); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-md); }
.grid-2-1 { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--gap-xl); align-items: start; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--gap-xl); align-items: start; }
@media (max-width: 920px) {
  .grid-2, .grid-3, .grid-4, .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; gap: var(--gap-lg); }
}
.rule { border: 0; border-top: 1px solid var(--border); margin: 0; }

/* ─── the map plane ───────────────────────────────────────────────── */
.map-plane::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, var(--grid-line) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(to bottom, var(--grid-line) 0 1px, transparent 1px 64px);
  mask-image: linear-gradient(to bottom, black, transparent 88%);
  opacity: 0.55;
}
.map-plane > * { position: relative; }

/* coordinate rail — a thin row of survey ticks under a heading block */
.coord-rail {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 0;
  width: 100%; max-width: 340px;
  height: 14px; margin-top: 26px;
}
.coord-rail span { flex: 0 0 1px; background: var(--border); height: 6px; }
.coord-rail span:nth-child(5n + 1) { height: 14px; background: var(--accent-ink); }

/* ─── type ────────────────────────────────────────────────────────── */
h1, .h1 { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -0.02em; margin: 0; }
h2, .h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -0.02em; margin: 0; }
h3, .h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.01em; margin: 0; }
h4 { font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; margin: 0; }
.lead { font-size: var(--fs-lead); line-height: 1.62; color: var(--muted); max-width: 62ch; margin: 0; }
p { max-width: 62ch; }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-ink); margin: 0 0 var(--gap-md);
}
.eyebrow::before {
  content: ''; display: inline-block;
  width: 22px; height: 1px; background: currentColor;
  vertical-align: middle; margin-right: 10px;
}
.meta { font-family: var(--font-mono); font-size: var(--fs-meta); color: var(--muted); letter-spacing: 0.04em; }
.mono-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ─── topnav ──────────────────────────────────────────────────────── */
.topnav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklch, var(--navy) 90%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
}
.topnav-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--gap-md); padding-block: 12px; }
.brandmark { display: inline-flex; align-items: center; min-height: 44px; }
.brandmark img { height: 26px; width: auto; }
.navlinks { display: flex; align-items: center; gap: 28px; }
.navlinks a {
  font-size: 14px; color: var(--muted-dark); padding: 10px 0;
  position: relative; transition: color 0.18s ease;
}
.navlinks a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 4px; height: 1px;
  background: var(--gold); transition: right 0.24s var(--ease);
}
.navlinks a:hover { color: var(--bone); }
.navlinks a:hover::after { right: 0; }
/* active page — the fence is already drawn */
.navlinks a[aria-current="page"] { color: var(--bone); }
.navlinks a[aria-current="page"]::after { right: 0; height: 2px; }
.nav-cta { display: inline-flex; }
.navtoggle {
  display: none;
  width: 46px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-dark); border-radius: var(--radius);
  color: var(--bone);
}
.navtoggle svg { width: 20px; height: 20px; }
.navtoggle .ico-close { display: none; }
.navtoggle[aria-expanded="true"] .ico-open { display: none; }
.navtoggle[aria-expanded="true"] .ico-close { display: block; }
.mobilenav {
  display: none;
  border-top: 1px solid var(--line-dark);
  background: var(--navy);
  padding: 12px var(--gutter) 24px;
}
.mobilenav.open { display: block; }
.mobilenav a {
  display: flex; align-items: center; min-height: 48px;
  font-size: 16px; color: var(--bone);
  border-bottom: 1px solid var(--line-dark);
}
.mobilenav a[aria-current="page"] { color: var(--gold); }
.mobilenav .btn { width: 100%; justify-content: center; margin-top: 18px; min-height: 48px; }
@media (max-width: 900px) {
  .navlinks, .nav-cta { display: none; }
  .navtoggle { display: inline-flex; }
}

/* ─── buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
  transition: transform 0.16s var(--ease), background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
/* Ember is the action. Navy label keeps it above 4.5:1 — Bone would not. */
.btn-primary {
  background: var(--ember); color: var(--navy); border-color: var(--ember);
  box-shadow: 0 1px 0 color-mix(in oklch, var(--ember) 55%, black),
              0 6px 18px color-mix(in oklch, var(--ember) 28%, transparent);
}
.btn-primary:hover {
  background: color-mix(in oklch, var(--ember) 88%, black);
  border-color: color-mix(in oklch, var(--ember) 88%, black);
  transform: translateY(-1px);
  box-shadow: 0 2px 0 color-mix(in oklch, var(--ember) 45%, black),
              0 10px 24px color-mix(in oklch, var(--ember) 34%, transparent);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent-ink); color: var(--fg); }
.btn-ghost { background: transparent; color: var(--fg); border-color: transparent; padding-inline: 4px; }
.btn-ghost:hover { color: var(--accent-ink); }
.btn-arrow::after { content: '→'; transition: transform 0.18s var(--ease); }
.btn-arrow:hover::after { transform: translateX(3px); }

/* ─── cards — precise, flat, small radius ─────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.card-flat { background: transparent; border: 0; padding: 0; }
.card-rule { background: transparent; border: 0; border-top: 1px solid var(--border); border-radius: 0; padding: 22px 0 0; }

/* survey brackets — two corners, drawn like a fence tick */
.fenced { position: relative; }
.fenced::before, .fenced::after {
  content: ''; position: absolute; width: 12px; height: 12px;
  border: 2px solid var(--gold); pointer-events: none;
}
.fenced::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.fenced::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* full 4-corner perimeter frame */
.perim { position: relative; border: 1px solid color-mix(in oklch, var(--gold) 40%, transparent); border-radius: var(--radius); }
.perim .tick { position: absolute; width: 14px; height: 14px; border: 2px solid var(--gold); }
.perim .tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.perim .tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.perim .bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.perim .br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* ─── hero ────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(56px, 8vw, 116px) clamp(64px, 8vw, 110px); overflow: hidden; }
.hero-split { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (max-width: 980px) { .hero-split { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: var(--gap-md); max-width: 15ch; }
.hero .lead { margin-bottom: var(--gap-lg); max-width: 54ch; }
.hero-cta { display: flex; gap: var(--gap-sm); flex-wrap: wrap; }
.hero-strip {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 10px 26px;
}
.hero-strip span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.hero-strip a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--muted); border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.hero-strip a:hover { color: var(--accent-ink); border-bottom-color: var(--accent-ink); }

/* interior page hero — shorter, still cartographic */
.page-hero { padding-block: clamp(48px, 6vw, 84px) clamp(48px, 6vw, 80px); overflow: hidden; }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 56px); margin-bottom: var(--gap-md); max-width: 17ch; }
.page-hero .lead { max-width: 58ch; }
.crumb { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.crumb a { color: var(--muted); border-bottom: 1px solid transparent; }
.crumb a:hover { color: var(--accent-ink); border-bottom-color: var(--accent-ink); }
.crumb .sep { margin: 0 8px; opacity: 0.55; }

/* ─── map figure ──────────────────────────────────────────────────── */
.mapfig { position: relative; border-radius: var(--radius); }
.mapfig svg { width: 100%; height: auto; }
.mf-panel     { fill: var(--panel); }
.mf-grid      { stroke: var(--map-grid); stroke-width: 1; }
.mf-street    { stroke: var(--slate); stroke-width: 9; stroke-linecap: square; }
.mf-street-thin { stroke: var(--slate); stroke-width: 6; stroke-linecap: square; }
.mf-parcel    { fill: var(--map-parcel); }
.mf-target    { fill: color-mix(in oklch, var(--gold) 20%, transparent); stroke: color-mix(in oklch, var(--gold) 55%, transparent); stroke-width: 1; }
.mf-sat       { fill: color-mix(in oklch, var(--fence) 26%, transparent); stroke: color-mix(in oklch, var(--fence) 62%, transparent); stroke-width: 1; }
.mf-tick      { stroke: var(--line-dark); stroke-width: 1.5; }
.mf-text      { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; fill: var(--muted-dark); text-transform: uppercase; }
.mf-text-gold { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; fill: var(--gold); }
.mf-text-fence{ font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; fill: #7FC3AA; text-transform: uppercase; }
.mf-pin-stem  { stroke: var(--gold); stroke-width: 2; }
.mf-pin-head  { fill: var(--gold); }
.mf-ring      { fill: none; stroke: var(--gold); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.mf-dot       { fill: var(--muted-dark); opacity: 0; transform-box: fill-box; transform-origin: center; }
.mf-dot.live  { fill: var(--fence); }
.mf-perimeter {
  fill: color-mix(in oklch, var(--gold) 7%, transparent);
  stroke: var(--gold); stroke-width: 2.4; stroke-linejoin: round;
  stroke-dasharray: 1000; stroke-dashoffset: 1000;
}
.mf-perimeter-2 {
  fill: color-mix(in oklch, var(--gold) 5%, transparent);
  stroke: var(--gold); stroke-width: 1.8; stroke-linejoin: round;
  stroke-dasharray: 1000; stroke-dashoffset: 1000; opacity: 0.8;
}
.mf-corner { stroke: var(--gold); stroke-width: 2; fill: none; opacity: 0; }

.anim-on .mf-perimeter   { animation: trace 2000ms var(--ease) 260ms forwards; }
.anim-on .mf-perimeter-2 { animation: trace 1700ms var(--ease) 900ms forwards; }
.anim-on .mf-corner      { animation: fadein 420ms ease 2100ms forwards; }
.anim-on .mf-dot         { animation: pop 520ms var(--ease) forwards; }
.anim-on .mf-ring        { animation: pulse 3200ms ease-out infinite; }

@keyframes trace  { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@keyframes pop    { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse  {
  0%   { opacity: 0; transform: scale(0.25); }
  12%  { opacity: 0.75; }
  70%  { opacity: 0; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}

/* ─── numbered step ───────────────────────────────────────────────── */
.step { padding-top: 22px; border-top: 1px solid var(--border); }
.step .idx {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  color: var(--accent-ink); display: block; margin-bottom: 14px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }

/* ─── vertical cards ──────────────────────────────────────────────── */
.vcard { transition: border-color 0.24s ease, transform 0.24s var(--ease); }
.vcard:hover { border-color: color-mix(in oklch, var(--gold) 50%, var(--border)); transform: translateY(-2px); }
.vcard .mono-label { display: block; margin-bottom: 12px; color: var(--accent-ink); }
.vcard h3 { margin-bottom: 8px; }
.vcard p { color: var(--muted); font-size: 15px; margin: 0; }
.vcard.lead-card { background: var(--surface); }

/* ═══ audience switcher — a segmented control drawn as fence runs ═══ */
.switcher { margin-top: 4px; }
.tablist {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.tablist::-webkit-scrollbar { display: none; }
.tab {
  position: relative;
  flex: 1 1 0; min-width: max-content;
  background: transparent; border: 0;
  padding: 22px 30px 24px; min-height: 72px;
  text-align: left;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}
.tab:first-child { padding-left: 0; }
.tab .tab-idx {
  display: block;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 9px; color: inherit; opacity: 0.85;
}
.tab .tab-name {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(17px, 2vw, 23px); line-height: 1.1; letter-spacing: -0.02em;
  color: inherit; white-space: nowrap;
}
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { color: var(--fg); }
.tab[aria-selected="true"] .tab-idx { color: var(--accent-ink); opacity: 1; }
/* the drawn boundary line under the active segment */
.tab::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.34s var(--ease);
}
.tab[aria-selected="true"]::after { transform: scaleX(1); }
/* survey ticks at the ends of that line */
.tab .tab-ticks { position: absolute; left: 0; right: 0; bottom: -1px; height: 0; pointer-events: none; }
.tab .tab-ticks::before, .tab .tab-ticks::after {
  content: ''; position: absolute; bottom: 0; width: 2px; height: 12px;
  background: var(--gold); opacity: 0;
  transition: opacity 0.2s ease 0.28s;
}
.tab .tab-ticks::before { left: 0; }
.tab .tab-ticks::after  { right: 0; }
.tab[aria-selected="true"] .tab-ticks::before,
.tab[aria-selected="true"] .tab-ticks::after { opacity: 1; }

.tabpanel { padding-top: clamp(30px, 4vw, 46px); }
.tabpanel[hidden] { display: none; }
.tabpanel:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.panel-intro { color: var(--muted); font-size: var(--fs-lead); line-height: 1.62; max-width: 62ch; margin: 0 0 var(--gap-lg); }
.tabpanel.swap > * { animation: panelin 380ms var(--ease) both; }
@keyframes panelin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) {
  .tab { padding: 18px 20px 20px; flex: 0 0 auto; }
  .tab:first-child { padding-left: 0; }
}

/* the substantial item list inside each audience panel */
.aud-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(28px, 4vw, 56px);
  border-top: 1px solid var(--border);
}
@media (max-width: 860px) { .aud-grid { grid-template-columns: 1fr; } }
.aud-item {
  display: grid; grid-template-columns: 40px 1fr; gap: 4px 16px;
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
.aud-item .aud-idx {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--accent-ink); padding-top: 3px;
}
.aud-item h3 { font-size: 18px; }
.aud-item p { grid-column: 2; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.panel-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap-sm) var(--gap-lg);
  margin-top: var(--gap-lg);
}

/* ═══ capability modules — grouped, scannable, never a bullet wall ══ */
.capmod { padding-top: clamp(34px, 4vw, 48px); }
.capmod + .capmod { margin-top: clamp(44px, 5vw, 64px); }
.capmod-head {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: var(--gap-lg);
  align-items: baseline;
  border-top: 2px solid var(--accent-ink);
  padding-top: 20px; margin-bottom: clamp(24px, 3vw, 34px);
}
@media (max-width: 860px) { .capmod-head { grid-template-columns: 1fr; gap: 10px; } }
.capmod-head .mono-label { display: block; margin-bottom: 10px; color: var(--accent-ink); }
.capmod-head h3 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -0.02em; }
.capmod-head p { margin: 0; color: var(--muted); font-size: 16px; }

.capgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 900px) { .capgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .capgrid { grid-template-columns: 1fr; } }
.capcell {
  background: var(--bg);
  padding: 22px 22px 24px;
  transition: background 0.22s ease;
}
.capcell:hover { background: var(--surface); }
.capcell .capcell-code {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-ink);
  display: block; margin-bottom: 12px;
}
.capcell h4 { margin-bottom: 7px; }
.capcell p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; max-width: 40ch; }

/* two-column definition layout — mono label left, prose right */
.deflist { border-top: 1px solid var(--border); }
.defrow {
  display: grid; grid-template-columns: minmax(150px, 0.8fr) 2fr; gap: var(--gap-md) var(--gap-lg);
  padding: 18px 0; border-bottom: 1px solid var(--border);
  align-items: baseline;
}
@media (max-width: 720px) { .defrow { grid-template-columns: 1fr; gap: 6px; } }
.defrow dt {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-ink);
}
.defrow dd { margin: 0; color: var(--muted); font-size: 15px; }
.defrow dd strong { color: var(--fg); font-weight: 600; }

/* ─── arc: before / on-site / after ───────────────────────────────── */
.arc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); }
@media (max-width: 900px) { .arc { grid-template-columns: 1fr; } }
.arc-col { background: var(--bg); padding: 28px 24px 30px; position: relative; }
.arc-col .arc-when {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-ink); display: block; margin-bottom: 8px;
}
.arc-col h3 { margin-bottom: 12px; }
.arc-col p { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.arc-col ul li {
  padding: 9px 0 9px 18px; border-top: 1px solid var(--border);
  font-size: 14.5px; color: var(--muted); position: relative;
}
.arc-col ul li::before {
  content: ''; position: absolute; left: 0; top: 18px;
  width: 7px; height: 7px; border: 1.5px solid var(--accent-ink); border-radius: 50%;
}

/* ─── fence-target chips (what we draw a boundary around) ─────────── */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 9px 14px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em;
  color: var(--fg); background: var(--surface);
}
.chip::before {
  content: ''; width: 8px; height: 8px; flex: 0 0 8px;
  border: 1.5px solid var(--accent-ink); border-radius: 50%;
}
.chip.chip-live::before { border-color: var(--fence-ink); background: color-mix(in oklch, var(--fence) 45%, transparent); }

/* ─── contact form ────────────────────────────────────────────────── */
.formgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap-md); }
@media (max-width: 720px) { .formgrid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-wide { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
.field .req { color: var(--accent-ink); }
.input, .textarea, .select {
  width: 100%; min-height: 48px;
  background: var(--field-bg);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--fg);
  font-family: var(--font-body); font-size: 15px; line-height: 1.5;
  padding: 12px 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  appearance: none;
}
.textarea { min-height: 132px; resize: vertical; }
.select {
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 18px center, right 12px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
}
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: 0.9; }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--accent-ink);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--gold) 22%, transparent);
}
.input:user-invalid, .textarea:user-invalid, .select:user-invalid { border-color: var(--ember); }
.form-note {
  font-family: var(--font-mono); font-size: 12px; line-height: 1.6;
  color: var(--muted); letter-spacing: 0.02em;
  border-left: 2px solid var(--accent-ink); padding-left: 14px;
  margin: 0; max-width: 62ch;
}
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap-md); margin-top: var(--gap-lg); }
.form-status {
  font-family: var(--font-mono); font-size: 13px; color: var(--fence-ink);
  margin: 0; max-width: 46ch;
}
.form-status:empty { display: none; }

/* ─── direct contact card ─────────────────────────────────────────── */
.contactcard .btn-primary { width: 100%; }
.contact-lines { margin: 22px 0 0; }
.contact-lines li { padding: 14px 0; border-top: 1px solid var(--border); }
.contact-lines li:first-child { border-top: 0; padding-top: 0; }
.contact-lines .mono-label { display: block; margin-bottom: 5px; }
.contact-lines a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.02em;
  color: var(--fg); border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
  word-break: break-word;
}
.contact-lines a:hover { color: var(--accent-ink); border-bottom-color: var(--accent-ink); }

/* ─── closing CTA band ────────────────────────────────────────────── */
.cta-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .cta-split { grid-template-columns: 1fr; } }

/* ─── footer ──────────────────────────────────────────────────────── */
.pagefoot { background: var(--navy); color: var(--muted-dark); border-top: 1px solid var(--line-dark); padding-block: var(--gap-xl) var(--gap-lg); }
.foot-top { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: var(--gap-lg); align-items: start; }
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr; } }
.pagefoot img { height: 30px; width: auto; margin-bottom: 16px; }
.pagefoot h2 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-dark); margin: 0 0 14px; font-weight: 500; line-height: 1.4; }
.pagefoot li a { display: inline-flex; min-height: 34px; align-items: center; font-size: 14px; color: var(--bone); }
.pagefoot li a:hover { color: var(--gold); }
.foot-bottom { margin-top: var(--gap-xl); padding-top: 22px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 10px var(--gap-lg); justify-content: space-between; }
.foot-bottom p { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted-dark); margin: 0; max-width: 68ch; }

/* ─── scroll reveal ───────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ─── reduced motion — perimeters render already closed ───────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
  .mf-perimeter, .mf-perimeter-2 { stroke-dashoffset: 0; }
  .mf-dot, .mf-corner { opacity: 1; }
  .mf-ring { display: none; }
}
