:root {
  --ink: #16181d;
  --muted: #55606e;
  --faint: #8a939f;
  --rule: #d9dee5;
  --bg: #ffffff;
  --panel: #f5f7fa;
  --panel-2: #eef2f7;
  --accent: #1f3a5f;
  --accent-2: #2f6f9e;
  --accent-soft: #e8eef6;
  --max: 44rem;
  --wide: 68rem;
  --scan-dot: #6f8fb5;
  --scan-lit: #1f6fbf;
  --grid: rgba(31, 58, 95, 0.055);
  --grid-strong: rgba(31, 58, 95, 0.10);
}





*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.68;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.wrap.wide { max-width: var(--wide); }

/* ---------- masthead ---------- */
header.site {
  border-bottom: 1px solid var(--rule);
  padding: 1.1rem 0;
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 700; font-size: 1.45rem; letter-spacing: -0.015em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  position: absolute; left: 50%; transform: translateX(-50%);
}
header.site .wrap.wide:first-child { position: relative; justify-content: flex-end; min-height: 2.4rem; }
nav.site { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.875rem; }
nav.site > ul { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; align-items: center; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover { color: var(--accent-2); }

/* dropdown */
.menu { position: relative; }
.menu > button {
  font: inherit; color: var(--muted); background: none; border: 0;
  cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: 0.35rem;
}
.menu > button:hover { color: var(--accent-2); }
.menu > button::after {
  content: ""; width: 0.4em; height: 0.4em; border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-0.1em);
}
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 0.9rem);
  background: var(--bg); border: 1px solid var(--rule); border-radius: 10px;
  padding: 0.5rem; min-width: 21rem; display: none;
  box-shadow: 0 12px 40px rgba(0,0,0,0.14);
}
.menu[open] .menu-panel, .menu-panel:hover { display: block; }
.menu:hover .menu-panel { display: block; }
.menu-panel a {
  display: block; padding: 0.6rem 0.75rem; border-radius: 6px;
  color: var(--ink); line-height: 1.35;
}
.menu-panel a:hover { background: var(--panel); color: var(--ink); }
.menu-panel a small { display: block; color: var(--faint); font-size: 0.78rem; margin-top: 0.1rem; }

@media (max-width: 46rem) {
  /* The six areas are reachable from the home grid; the dropdown would only
     unfold into an unreadable column at this width. */
  nav.site > ul { gap: 1.25rem; font-size: 0.875rem; }
  .menu { display: none; }
  header.site { position: static; padding: 0.9rem 0; }
  .hero { padding: 2.75rem 0 2rem; }
  .areas { grid-template-columns: 1fr; margin: 2rem 0; }
  main.wrap { padding-top: 2.5rem; }
  .standards li { flex-direction: column; gap: 0.15rem; }
  .standards li b { min-width: 0; }
}

/* ---------- hero ---------- */
.hero { padding: 4.5rem 0 3rem; border-bottom: 1px solid var(--rule); }
.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.1rem); line-height: 1.1;
  letter-spacing: -0.025em; margin: 0.75rem 0 1.25rem; max-width: 20ch;
}
.hero .lede { font-size: 1.2rem; line-height: 1.55; color: var(--muted); max-width: 46ch; margin: 0; }

/* ---------- type ---------- */
h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); line-height: 1.08; letter-spacing: -0.038em; font-weight: 680; margin: 0 0 1rem; }
h2 { font-size: 1.45rem; line-height: 1.22; font-weight: 650; margin: 3.2rem 0 0.75rem; letter-spacing: -0.026em; }
h3 { font-size: 1rem; font-weight: 620; margin: 2rem 0 0.5rem; letter-spacing: -0.012em; text-transform: none; }
p { margin: 0 0 1.1rem; }
a { color: var(--accent-2); text-underline-offset: 2px; }
.lede { font-size: 1.18rem; line-height: 1.5; color: var(--muted); margin-bottom: 2rem; letter-spacing: -0.016em; }
.kicker {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-2); margin: 0 0 0.6rem; font-weight: 500;
}
.hero-full .kicker { font-size: clamp(1.1rem, 1.9vw, 1.35rem); letter-spacing: 0.18em; font-weight: 650; }
main.wrap { padding-top: 3.5rem; }
main.wrap.wide { padding-top: 0; }

/* ---------- area cards ---------- */
.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin: 3rem 0; }
.area {
  background: var(--bg); padding: 1.6rem 1.5rem; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; transition: background 0.15s;
}
.area:hover { background: var(--panel); }
.area .n {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.75rem;
  color: var(--accent-2); margin-bottom: 0.6rem; letter-spacing: 0.05em;
}
.area h3 {  font-size: 1.125rem; margin: 0 0 0.5rem; line-height: 1.25; }
.area p { font-size: 0.9rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* ---------- doc meta ---------- */
.docmeta {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.8125rem; color: var(--faint);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 0.75rem 0; margin: 0 0 2.5rem;
  display: flex; gap: 1.5rem; flex-wrap: wrap;
}

/* ---------- entries ---------- */
.entry { border-top: 1px solid var(--rule); padding: 1.5rem 0; }
.entry:last-of-type { border-bottom: 1px solid var(--rule); }
.entry h3 { margin: 0 0 0.35rem; font-size: 1.08rem; letter-spacing: -0.018em; }
.entry h3 a { text-decoration: none; color: var(--ink); }
.entry h3 a:hover { color: var(--accent-2); }
.entry p { margin: 0 0 0.5rem; color: var(--muted); font-size: 0.9375rem; }
.entry .tag { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.75rem; color: var(--faint); }

/* ---------- blocks ---------- */
.note {
  background: var(--panel); border-left: 3px solid var(--accent-2);
  padding: 1rem 1.25rem; margin: 1.75rem 0; font-size: 0.9375rem;
}
.note p:last-child { margin-bottom: 0; }
.note .lbl {
  font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 600;
  font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-2); display: block; margin-bottom: 0.4rem;
}

.tablewrap { overflow-x: auto; margin: 1.5rem 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th {
  text-align: left; font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1.5px solid var(--accent-2);
  padding: 0.5rem 0.75rem 0.4rem; vertical-align: bottom;
}
td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--rule); vertical-align: top; }

ol, ul { margin: 0 0 1.1rem; padding-left: 1.4rem; }
li { margin-bottom: 0.45rem; }

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.875em; background: var(--panel); padding: 0.1em 0.35em; border-radius: 3px;
}

/* ---------- figures / diagrams ---------- */
figure.diagram { margin: 2.5rem 0; }
figure.diagram svg { display: block; width: 100%; height: auto; }
figure.diagram figcaption {
  font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.8125rem;
  color: var(--faint); margin-top: 0.85rem; line-height: 1.5;
}
.svg-bg { fill: var(--panel); }
.svg-box { fill: var(--bg); stroke: var(--rule); }
.svg-accent { fill: var(--accent-soft); stroke: var(--accent-2); }
.svg-line { stroke: var(--faint); fill: none; }
.svg-line-a { stroke: var(--accent-2); fill: none; }
.svg-t { fill: var(--ink); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 12px; }
.svg-t-sm { fill: var(--muted); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 10.5px; }
.svg-t-a { fill: var(--accent-2); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 11px; font-weight: 600; }

.refs { font-size: 0.875rem; color: var(--muted); }
.refs li { margin-bottom: 0.6rem; }

.standards { list-style: none; padding: 0; font-size: 0.9rem; }
.standards li {
  padding: 0.5rem 0; border-bottom: 1px solid var(--rule);
  display: flex; gap: 1rem; align-items: baseline;
}
.standards li b { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.8125rem; min-width: 9rem; color: var(--accent-2); }

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--rule); margin-top: 5rem;
  padding: 2.5rem 0 3.5rem; font-size: 0.8125rem; color: var(--faint);
  font-family: ui-sans-serif, system-ui, sans-serif;
}
footer.site p { margin: 0 0 0.5rem; }
footer.site a { color: var(--muted); }

/* ==========================================================================
   Full-bleed hero with point-cloud canvas
   ========================================================================== */
.hero-full {
  position: relative; min-height: 86vh; display: flex; align-items: center;
  border-bottom: 1px solid var(--rule); overflow: hidden;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 100% 40px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 40px 100%,
    linear-gradient(var(--grid-strong) 1px, transparent 1px) 0 0 / 100% 200px,
    linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px) 0 0 / 200px 100%,
    radial-gradient(130% 90% at 76% 16%, var(--accent-soft) 0%, transparent 64%),
    var(--bg);
}
/* corner ticks, like the margin of a drawing sheet */
.hero-full::before, .hero-full::after {
  content: ""; position: absolute; width: 26px; height: 26px; z-index: 1;
  border-color: var(--accent-2); opacity: 0.5;
}
.hero-full::before { top: 22px; left: 22px; border-top: 1.5px solid; border-left: 1.5px solid; }
.hero-full::after { bottom: 22px; right: 22px; border-bottom: 1.5px solid; border-right: 1.5px solid; }
#scan { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-full .wrap { position: relative; z-index: 2; padding-top: 4rem; padding-bottom: 4rem; }
.hero-full h1 {
  font-size: clamp(2.4rem, 5.8vw, 4.2rem); line-height: 1.02;
  letter-spacing: -0.045em; font-weight: 700; max-width: 17ch; margin: 0.9rem 0 1.4rem;
}
.hero-full .lede { font-size: clamp(1.05rem, 1.7vw, 1.3rem); max-width: 50ch; color: var(--muted); }
.hero-cta {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.8rem;
  font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.9375rem; font-weight: 500;
  color: var(--bg); background: var(--ink); text-decoration: none;
  padding: 0.8rem 1.5rem; border-radius: 999px; transition: transform 0.15s, opacity 0.15s;
}
.hero-cta:hover { transform: translateY(-1px); opacity: 0.9; }
.hero-cta.ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule); margin-left: 0.5rem; }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border-top: 1px solid var(--rule); }
.pillar { background: var(--bg); padding: 2.2rem 1.75rem 2rem; }
.pillar h3 { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 1.0625rem; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
.pillar p { font-size: 0.9rem; color: var(--muted); margin: 0 0 1rem; line-height: 1.55; }
.pillar ul { list-style: none; padding: 0; margin: 0; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.8125rem; }
.pillar li { margin: 0; padding: 0.4rem 0; border-top: 1px solid var(--rule); }
.pillar li a { color: var(--muted); text-decoration: none; display: block; }
.pillar li a:hover { color: var(--accent-2); }

/* band */
.band { background: var(--panel); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 4rem 0; margin-top: 0; }
.band h2 { margin-top: 0; }

/* credentials */
.creds { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem; margin: 2.5rem 0 0; }
.cred .v { font-size: 1.02rem; font-weight: 650; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.cred p { font-size: 0.9rem; color: var(--muted); margin: 0; line-height: 1.55; }

/* work */
.work { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin: 2.5rem 0; }
.work-item { background: var(--bg); padding: 1.75rem 1.6rem; }
.work-item .n { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.72rem; color: var(--accent-2); letter-spacing: 0.06em; }
.work-item h3 {  font-size: 1.0625rem; margin: 0.5rem 0 0.5rem; }
.work-item p { font-size: 0.875rem; color: var(--muted); margin: 0; line-height: 1.55; }

@media (max-width: 46rem) {
  .hero-full { min-height: 72vh; }
  .pillars { grid-template-columns: 1fr; }
  .hero-cta.ghost { margin-left: 0; margin-top: 0.6rem; }
}

/* ==========================================================================
   Full-bleed showcase image
   ========================================================================== */
.showcase { position: relative; border-bottom: 1px solid var(--rule); background: var(--panel); }
.showcase > img { display: block; width: 100%; height: clamp(20rem, 46vh, 34rem); object-fit: cover; object-position: center 42%; }
.showcase-cap { padding: 1.6rem 1.5rem 2rem; }
.showcase-cap .lbl {
  font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 600;
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-2); display: block; margin-bottom: 0.5rem;
}
.showcase-cap p { max-width: 58ch; color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- work grid with images ---------- */
.workgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; margin: 2rem 0 1rem; }
figure.wk { margin: 0; }
figure.wk img {
  display: block; width: 100%; height: 15rem; object-fit: cover;
  border: 1px solid var(--rule); border-radius: 6px; background: var(--panel);
}
figure.wk figcaption { padding-top: 1rem; }
figure.wk h3 { font-size: 1.1rem; margin: 0 0 0.4rem; letter-spacing: -0.02em; font-weight: 640; }
figure.wk p { font-size: 0.9rem; color: var(--muted); margin: 0 0 0.6rem; line-height: 1.55; }
figure.wk .src {
  font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.75rem;
  color: var(--faint); letter-spacing: 0.02em;
}

.band figure.diagram { margin: 3rem 0; }
.band figure.diagram figcaption { max-width: 62ch; }

@media (max-width: 46rem) {
  .workgrid { grid-template-columns: 1fr; gap: 2rem; }
  figure.wk img { height: 12rem; }
  .showcase > img { height: 15rem; }
}
.svg-bar { fill: var(--accent-2); opacity: 0.82; }
.svg-fill-strong { stroke: var(--faint); }

/* ==========================================================================
   Always-visible area navigation — no dropdown, no hidden destinations
   ========================================================================== */
.arearow { padding-top: 0.85rem; padding-bottom: 0.15rem; }
.areanav {
  display: flex; gap: 0.45rem; flex-wrap: nowrap;
  overflow-x: auto; scrollbar-width: none;
}
.areanav::-webkit-scrollbar { display: none; }
.areanav a {
  display: inline-flex; align-items: center;
  color: var(--ink); text-decoration: none;
  padding: 0.72rem 1.15rem; border-radius: 8px;
  background: var(--panel); border: 1px solid transparent;
  font-size: 1rem; font-weight: 560; letter-spacing: -0.018em;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
  white-space: nowrap; flex: 0 0 auto;
}
.areanav a:hover {
  background: var(--accent-soft); border-color: var(--accent-2); color: var(--ink);
}

header.site { padding: 0.9rem 0 0.7rem; }
header.site .wrap.wide:first-child { display: flex; align-items: center; justify-content: flex-end; gap: 1.5rem; position: relative; min-height: 2.4rem; }

@media (max-width: 46rem) {
  .areanav { gap: 0.35rem; }
  .areanav a { padding: 0.55rem 0.85rem; font-size: 0.88rem; }
}

figure.areashot { margin: 2.75rem 0; }
figure.areashot img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--rule); border-radius: 6px; background: var(--panel);
}
figure.areashot figcaption {
  font-size: 0.85rem; color: var(--muted); margin-top: 0.9rem; line-height: 1.55;
  padding-left: 0.9rem; border-left: 2px solid var(--accent-2);
}


/* ---------- theme toggle ---------- */
.themetoggle {
  background: none; border: 1px solid var(--rule); border-radius: 6px;
  color: var(--muted); cursor: pointer; padding: 0.34rem 0.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.14s, color 0.14s;
  margin-left: 0.35rem;
}
.themetoggle:hover { color: var(--ink); border-color: var(--accent-2); }
.themetoggle svg { width: 15px; height: 15px; display: block; }
.themetoggle .moon { display: none; }

nav.site > ul { align-items: center; }

/* ---------- peer-reviewed band ---------- */
.peerbar { border-bottom: 1px solid var(--rule); background: var(--panel); padding: 2.4rem 0; }
.peerbar .wrap { display: grid; grid-template-columns: 1.7fr 1fr; gap: 2.5rem; align-items: start; }
.pb-main h3 { font-size: 1.2rem; margin: 0.4rem 0 0.6rem; letter-spacing: -0.022em; line-height: 1.28; }
.pb-main p { font-size: 0.92rem; color: var(--muted); margin: 0; max-width: 56ch; }
.pb-meta { display: flex; flex-direction: column; gap: 0.9rem; padding-top: 1.9rem; }
.pb-meta div { display: flex; flex-direction: column; gap: 0.1rem; }
.pb-meta b { font-size: 0.95rem; letter-spacing: -0.015em; }
.pb-meta span { font-size: 0.8rem; color: var(--faint); }
.pb-meta a { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.78rem; }
@media (max-width: 46rem) {
  .peerbar .wrap { grid-template-columns: 1fr; gap: 1.5rem; }
  .pb-meta { padding-top: 0; }
}

/* ---------- credentials with a figure ---------- */
.cred .fig {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 2.6rem; font-weight: 600; line-height: 1;
  color: var(--accent-2); letter-spacing: -0.04em;
  display: flex; align-items: baseline; gap: 0.4rem; margin-bottom: 0.9rem;
}
.cred .fig span {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--faint);
}
.creds { gap: 2.5rem 2rem; }

/* ---------- area cards carry a live diagram ---------- */
.area { position: relative; overflow: hidden; padding-top: 1.4rem; }
.area .thumb {
  height: 4.6rem; margin: 0 0 1.1rem; overflow: hidden;
  display: flex; align-items: center; opacity: 0.55;
  transition: opacity 0.18s;
  mask-image: linear-gradient(90deg, #000 62%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 62%, transparent 100%);
}
.area .thumb svg { width: 150%; height: auto; flex-shrink: 0; }
.area:hover .thumb { opacity: 0.95; }

/* ---------- navigation preview ---------- */
.arearow { position: relative; padding-bottom: 0.15rem; }
.peek[hidden] { display: none; }
.peek {
  position: absolute; left: 1.5rem; right: 1.5rem; top: calc(100% - 0.1rem);
  z-index: 60; background: var(--bg);
  border: 1px solid var(--rule); border-radius: 12px; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  box-shadow: 0 22px 60px rgba(0,0,0,0.18);
  animation: peekin 0.16s ease-out;
}
@keyframes peekin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.peek-d {
  display: flex; align-items: center; padding: 1.6rem 2rem;
  background: var(--panel); border-right: 1px solid var(--rule); min-width: 0;
}
.peek-d svg { width: 100%; height: auto; max-height: 10rem; display: block; }
.peek-t { padding: 1.6rem 2rem; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.peek-t b {
  display: block; color: var(--ink); font-size: 1.12rem; font-weight: 650;
  letter-spacing: -0.024em; line-height: 1.22; margin-bottom: 0.55rem;
}
.peek-t p { font-size: 0.86rem; color: var(--muted); line-height: 1.5; margin: 0 0 0.95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chip {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.66rem; color: var(--muted);
  border: 1px solid var(--rule); border-radius: 4px;
  padding: 0.24rem 0.5rem; background: var(--panel); white-space: nowrap;
}
@media (max-width: 68rem) { .peek { display: none !important; } }

/* ---------------------------------------------------------------
   Applied case study, rendered inside a practice area
   --------------------------------------------------------------- */
hr.sep { border: 0; border-top: 1px solid var(--rule); margin: 4.5rem 0 2.75rem; }
h2.casetitle { font-size: 1.75rem; letter-spacing: -0.025em; margin: 0.4rem 0 1.4rem; line-height: 1.15; }

/* Model walkthroughs -------------------------------------------- */
figure.clip { margin: 2.75rem 0; }
figure.clip video {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--rule); border-radius: 6px; background: var(--panel);
}
figure.clip figcaption {
  font-size: 0.85rem; color: var(--muted); margin-top: 0.9rem; line-height: 1.55;
  padding-left: 0.9rem; border-left: 2px solid var(--accent-2);
}
.clipgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; margin: 2.75rem 0; align-items: start; }
.clipgrid figure.clip video { aspect-ratio: 32 / 15; object-fit: cover; }
.clipgrid figure.clip { margin: 0; }
.clipgrid figure.clip figcaption { font-size: 0.8rem; padding-left: 0.75rem; margin-top: 0.75rem; }
@media (max-width: 760px) { .clipgrid { grid-template-columns: 1fr; } }

/* Full-bleed feature band on the home page ---------------------- */
.feature { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--panel); }
.feature video {
  display: block; width: 100%; height: clamp(14rem, 34vh, 26rem);
  object-fit: cover; object-position: center; background: var(--panel);
}
.feature .cap { padding: 1.7rem 1.5rem 2.2rem; }
.feature .cap h3 { font-size: 1.35rem; letter-spacing: -0.02em; margin: 0.55rem 0 0.6rem; font-weight: 640; }
.feature .cap p { max-width: 62ch; color: var(--muted); font-size: 0.95rem; margin: 0 0 1rem; line-height: 1.6; }
.feature .cap a { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.875rem; font-weight: 600; }
@media (max-width: 760px) { .feature video { height: 11rem; } }

/* Hero clip on the home feature: a little more room, and the pair beneath it */
.feature video { height: clamp(15rem, 40vh, 30rem); }
.feature .cap .clipgrid { margin: 1.6rem 0 1.5rem; gap: 1.5rem; }
.feature .cap .clipgrid figure.clip figcaption {
  font-size: 0.8rem; color: var(--faint); margin-top: 0.7rem; padding-left: 0.7rem;
}
.feature .cap .clipgrid video { height: auto; border-radius: 4px; }

/* Stacked walkthroughs inside a practice area read better with air around them */
figure.clip + figure.clip { margin-top: 2.25rem; }
.clipgrid figure.clip + figure.clip { margin-top: 0; }

@media (max-width: 760px) {
  .feature video { height: 11rem; }
  .feature .cap .clipgrid video { height: auto; }
}

/* Bridge statement between hero and the numbers ------------------ */
.bridge { max-width: 46rem; margin: 1.6rem auto 0; text-align: center; }
.bridge-lead { font-size: 1.05rem; color: var(--muted); margin: 0 0 0.7rem; }
.bridge-types {
  font-size: 1.28rem; letter-spacing: -0.015em; line-height: 1.7;
  margin: 0 0 1rem; color: var(--ink);
}
.bridge-types b { font-weight: 700; }
.bridge-last b { color: var(--accent-2); }
.bridge-turn { font-size: 0.98rem; line-height: 1.65; color: var(--muted); margin: 0; }
.bridge-turn b { color: var(--ink); }

/* Interior page hero: the home's grid and point cloud, in a shorter band -- */
.pagehero {
  position: relative; min-height: 42vh; display: flex; align-items: center;
  border-bottom: 1px solid var(--rule); overflow: hidden;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 100% 40px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 40px 100%,
    linear-gradient(var(--grid-strong) 1px, transparent 1px) 0 0 / 100% 200px,
    linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px) 0 0 / 200px 100%,
    radial-gradient(130% 90% at 76% 16%, var(--accent-soft) 0%, transparent 64%),
    var(--bg);
}
.pagehero::before, .pagehero::after {
  content: ""; position: absolute; width: 22px; height: 22px; z-index: 1;
  border-color: var(--accent-2); opacity: 0.5;
}
.pagehero::before { top: 18px; left: 18px; border-top: 1.5px solid; border-left: 1.5px solid; }
.pagehero::after { bottom: 18px; right: 18px; border-bottom: 1.5px solid; border-right: 1.5px solid; }
.pagehero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 3.2rem; padding-bottom: 3.2rem; }
.pagehero h1 { margin-bottom: 0.9rem; }
.pagehero .lede { margin-bottom: 0; }
@media (max-width: 760px) { .pagehero { min-height: 34vh; } }

/* Still image inside a feature band, same dress as the clips ------ */
.feature .cap figure.clip.still { margin: 0 0 1.5rem; }
.feature .cap figure.clip.still img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--rule); border-radius: 4px; background: var(--panel);
}
.feature .cap figure.clip.still figcaption {
  font-size: 0.8rem; color: var(--faint); margin-top: 0.7rem; padding-left: 0.7rem;
  border-left: 2px solid var(--accent-2); line-height: 1.55;
}
