/* RG Logic — design tokens */
:root {
  --bg: oklch(0.985 0.005 80);
  --bg-elev: oklch(0.97 0.006 80);
  --ink: oklch(0.18 0.01 250);
  --ink-2: oklch(0.38 0.01 250);
  --ink-3: oklch(0.55 0.01 250);
  --line: oklch(0.9 0.006 80);
  --line-strong: oklch(0.82 0.008 80);
  --accent-h: 255;
  --accent: oklch(0.52 0.18 var(--accent-h));
  --accent-2: oklch(0.65 0.16 var(--accent-h));
  --accent-soft: oklch(0.95 0.04 var(--accent-h));
  --warn: oklch(0.7 0.16 60);

  --serif: "Inter Tight", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1240px;
  --pad: clamp(20px, 4vw, 56px);
  --radius: 6px;
}

[data-theme="dark"] {
  --bg: oklch(0.16 0.01 250);
  --bg-elev: oklch(0.2 0.012 250);
  --ink: oklch(0.97 0.005 80);
  --ink-2: oklch(0.78 0.01 250);
  --ink-3: oklch(0.6 0.012 250);
  --line: oklch(0.28 0.01 250);
  --line-strong: oklch(0.38 0.012 250);
  --accent: oklch(0.7 0.16 var(--accent-h));
  --accent-2: oklch(0.78 0.14 var(--accent-h));
  --accent-soft: oklch(0.28 0.06 var(--accent-h));
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg, canvas, video { max-width: 100%; }
h1, h2, h3, p, .lede, .btn, .brand, .eyebrow {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 20%, transparent);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(48px, 7vw, 96px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 460; }
h2 { font-size: clamp(34px, 4.5vw, 56px); line-height: 1.02; letter-spacing: -0.028em; font-weight: 460; }
h3 { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.2; font-weight: 500; }

p { margin: 0; }
.lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 60ch; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: 160ms ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -8px color-mix(in oklab, var(--ink) 40%, transparent); }
.btn-ghost { color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: color-mix(in oklab, var(--ink) 4%, transparent); border-color: var(--ink); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { filter: brightness(1.05); transform: translateY(-1px); }

.btn .arrow { transition: transform 200ms ease; display: inline-block; }
.btn:hover .arrow { transform: translateX(3px); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 500; font-size: 16px; letter-spacing: -0.01em; }
.brand-mark {
  width: 24px; height: 24px;
  display: inline-block; position: relative;
}
.brand-mark::before, .brand-mark::after {
  content: ""; position: absolute; inset: 0;
  border: 1.5px solid var(--ink); border-radius: 50%;
}
.brand-mark::after { transform: translateX(8px); border-color: var(--accent); mix-blend-mode: multiply; }
[data-theme="dark"] .brand-mark::after { mix-blend-mode: screen; }
.brand small { font-family: var(--mono); color: var(--ink-3); font-size: 11px; font-weight: 400; letter-spacing: 0.04em; }

.nav-links { display: flex; gap: 28px; align-items: center; font-size: 14px; color: var(--ink-2); }
.nav-links a { transition: color 120ms; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* Section scaffolding */
section { padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
section.hero { border-top: 0; padding-top: clamp(60px, 8vw, 100px); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-bottom: 64px; align-items: end; }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; gap: 24px; } }

.section-head h2 { max-width: 16ch; }

/* HERO */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
.hero h1 .accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 380;
  color: var(--accent);
}
.hero h1 .strike { position: relative; display: inline-block; color: var(--ink-3); }
.hero h1 .strike::after {
  content: ""; position: absolute; left: -2%; right: -2%; top: 52%;
  height: 4px; background: var(--accent); transform: scaleX(0);
  transform-origin: left; animation: strike 1.6s 0.6s forwards cubic-bezier(.7,.1,.2,1);
}
@keyframes strike { to { transform: scaleX(1); } }

.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 56px; padding-top: 32px;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  font-family: var(--mono); font-size: 12px;
}
.hero-meta div { color: var(--ink-3); }
.hero-meta strong { display: block; color: var(--ink); font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: -0.02em; margin-bottom: 4px; }

/* Workflow diagram */
.workflow {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--bg-elev);
  overflow: hidden;
}
.workflow-label {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--mono); font-size: 10.5px; color: var(--ink-3);
  display: flex; gap: 8px; align-items: center;
}
.workflow-label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }

/* Logo strip */
.logos {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.logos-inner { display: flex; align-items: center; gap: 56px; flex-wrap: wrap; justify-content: center; }
.logo-chip {
  font-family: var(--mono); font-size: 12px; color: var(--ink-3);
  letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 8px;
  opacity: 0.85;
}
.logo-chip svg { opacity: 0.7; }

/* Process / pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; } }
.pillar { background: var(--bg); padding: 36px; min-height: 320px; display: flex; flex-direction: column; }
.pillar-num { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.08em; }
.pillar h3 { margin-top: 14px; margin-bottom: 12px; }
.pillar p { color: var(--ink-2); font-size: 15px; line-height: 1.55; max-width: 36ch; }
.pillar ul { list-style: none; padding: 0; margin-top: auto; padding-top: 24px; border-top: 1px dashed var(--line-strong); display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.pillar ul li::before { content: "→"; color: var(--accent); margin-right: 8px; }

/* How it works */
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--bg); padding: 36px; position: relative; }
.step-num { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.06em; }
.step h3 { margin: 16px 0 12px; font-size: 24px; }
.step-body { color: var(--ink-2); font-size: 15px; line-height: 1.55; max-width: 44ch; }
.step-tags { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.tag { font-family: var(--mono); font-size: 11px; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-2); background: var(--bg-elev); }

/* Before / After */
.beforeafter {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elev);
  padding: clamp(24px, 3vw, 48px);
}
.ba-tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg); border-radius: 8px; border: 1px solid var(--line); width: fit-content; margin-bottom: 28px; }
.ba-tab { padding: 8px 16px; font-size: 13px; font-family: var(--mono); border-radius: 6px; color: var(--ink-3); transition: 120ms; }
.ba-tab.active { background: var(--ink); color: var(--bg); }
.ba-tab:not(.active):hover { color: var(--ink); }

.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
@media (max-width: 760px) { .ba-grid { grid-template-columns: 1fr; } }

.ba-col { display: flex; flex-direction: column; }
.ba-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.ba-head .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3); text-transform: uppercase; }
.ba-head .stat { font-family: var(--serif); font-size: 22px; letter-spacing: -0.02em; }
.ba-head .stat.bad { color: oklch(0.55 0.16 25); }
.ba-head .stat.good { color: var(--accent); }

.ba-card {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 8px;
  padding: 20px;
  flex: 1;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 320px;
}
.ba-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 4px; }
.ba-row .who { color: var(--ink-3); width: 96px; flex-shrink: 0; }
.ba-row .what { color: var(--ink); }
.ba-row.idle { color: var(--ink-3); }
.ba-row.active { background: color-mix(in oklab, var(--accent) 10%, transparent); border-left: 2px solid var(--accent); }
.ba-row.bad { color: oklch(0.45 0.12 25); }
.ba-time { margin-left: auto; color: var(--ink-3); font-size: 11px; }

/* CTA */
.cta {
  background: var(--ink);
  color: var(--bg);
  border-radius: 14px;
  padding: clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 36px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 800px) { .cta { grid-template-columns: 1fr; } }
.cta h2 { color: var(--bg); max-width: 16ch; }
.cta-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(100%, 720px);
}
.cta-form .row { display: flex; gap: 8px; }
.cta-form input {
  background: color-mix(in oklab, var(--bg) 8%, transparent);
  border: 1px solid color-mix(in oklab, var(--bg) 20%, transparent);
  color: var(--bg);
  padding: 14px 16px;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  flex: 1;
  outline: none;
}
.cta-form input::placeholder { color: color-mix(in oklab, var(--bg) 50%, transparent); }
.cta-form input:focus { border-color: var(--accent-2); }
.cta-form .btn { justify-content: center; }
.cta-meta { font-family: var(--mono); font-size: 11px; color: color-mix(in oklab, var(--bg) 55%, transparent); margin-top: 4px; }
.netlify-hidden { display: none; }
.cta-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.06;
  background-image: linear-gradient(var(--bg) 1px, transparent 1px), linear-gradient(90deg, var(--bg) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 80% 50%, black, transparent 70%);
}
.cta-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: min(100%, 900px);
}
.cta-copy h2 {
  max-width: 18ch;
}

/* Footer */
.footer {
  padding: 48px 0 64px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}
.footer .links { display: flex; gap: 24px; }

/* SEO service pages */
.service-hero {
  border-top: 0;
  padding-top: clamp(60px, 8vw, 100px);
}
.service-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.8fr;
  gap: 64px;
  align-items: center;
}
.service-hero h1 {
  max-width: 11ch;
}
.service-kicker {
  margin-top: 24px;
}
.service-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0) 0 0 / 24px 24px,
    var(--bg-elev);
  padding: clamp(28px, 4vw, 44px);
}
.service-card h2 {
  font-size: clamp(28px, 3vw, 42px);
  max-width: 12ch;
}
.service-card-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
}
.service-card-list li {
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
}
.service-card-list li::before {
  content: "->";
  color: var(--accent);
  margin-right: 8px;
}
.service-body {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.28fr);
  gap: 56px;
  align-items: start;
}
.service-main {
  display: grid;
  gap: 54px;
}
.service-copy {
  display: grid;
  gap: 16px;
}
.service-copy h2 {
  max-width: 15ch;
}
.service-copy p {
  color: var(--ink-2);
  max-width: 72ch;
}
.service-bullets {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.service-bullets li {
  background: var(--bg);
  padding: 22px;
  color: var(--ink-2);
}
.service-bullets strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.service-sidebar {
  position: sticky;
  top: 92px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elev);
  padding: 24px;
}
.service-sidebar h2 {
  font-size: 24px;
  margin-bottom: 14px;
}
.service-sidebar nav {
  display: grid;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
}
.service-sidebar a {
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
}
.service-sidebar a:hover {
  color: var(--accent);
}
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  padding: 22px;
}
.faq-item h3 {
  font-size: 21px;
  margin-bottom: 8px;
}
.faq-item p {
  color: var(--ink-2);
}
.mini-cta {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.related-pages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.related-pages a {
  background: var(--bg);
  padding: 24px;
  display: grid;
  gap: 8px;
}
.related-pages strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}
.related-pages span {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11px;
}
@media (max-width: 900px) {
  .service-hero-grid,
  .service-body {
    grid-template-columns: 1fr;
  }
  .service-sidebar {
    position: static;
  }
  .service-bullets,
  .related-pages {
    grid-template-columns: 1fr;
  }
}

.thank-you-page {
  min-height: calc(100vh - 64px);
  border-top: 0;
  padding-top: clamp(60px, 8vw, 100px);
}
.thank-you-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.thank-you-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.thank-you-copy h1 {
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.98;
  max-width: 10ch;
}
.thank-you-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.thank-you-flow {
  min-height: 430px;
}
.thank-you-stage {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 56px 1fr 56px 1fr;
  gap: 0;
  align-items: center;
  padding: 34px 28px 24px;
  background-image: radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0);
  background-size: 24px 24px;
}
.thank-you-node {
  min-height: 154px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.thank-you-node.active {
  background: var(--ink);
  border-color: var(--ink);
}
.thank-you-node span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.thank-you-node strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.thank-you-node small {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-3);
}
.thank-you-node.active strong {
  color: var(--bg);
}
.thank-you-node.active small {
  color: color-mix(in oklab, white 70%, transparent);
}
.thank-you-rail {
  height: 1px;
  background: var(--line-strong);
  position: relative;
}
.thank-you-rail span {
  position: absolute;
  left: 0;
  top: -1px;
  height: 3px;
  width: 48%;
  border-radius: 999px;
  background: var(--accent);
  animation: thank-you-flow 2.2s ease-in-out infinite;
}
@keyframes thank-you-flow {
  0% { transform: translateX(0); opacity: 0; }
  25% { opacity: 1; }
  75% { opacity: 1; }
  100% { transform: translateX(110%); opacity: 0; }
}
@media (max-width: 900px) {
  .thank-you-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .thank-you-copy h1 { max-width: 13ch; }
  .thank-you-stage {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px;
  }
  .thank-you-node { min-height: 0; }
  .thank-you-rail {
    width: 1px;
    height: 36px;
    margin: 0 auto;
  }
  .thank-you-rail span {
    width: 3px;
    height: 45%;
    left: -1px;
    top: 0;
    animation-name: thank-you-flow-mobile;
  }
  @keyframes thank-you-flow-mobile {
    0% { transform: translateY(0); opacity: 0; }
    25% { opacity: 1; }
    75% { opacity: 1; }
    100% { transform: translateY(120%); opacity: 0; }
  }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Density */
[data-density="cozy"] section { padding: clamp(60px, 7vw, 100px) 0; }
[data-density="cozy"] .pillar, [data-density="cozy"] .step { padding: 28px; }

/* Hero flow */
.hf-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elev);
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 460px;
}
.hf-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  gap: 12px; flex-wrap: wrap;
}
.hf-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  display: flex; align-items: center; gap: 8px;
}
.hf-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 20%, transparent);
  animation: hf-pulse 2s ease-in-out infinite;
}
@keyframes hf-pulse { 50% { opacity: 0.45; } }
.hf-legend {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hf-leg-dot {
  width: 7px; height: 7px; border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}
.hf-leg-dot.in { background: var(--ink-3); }
.hf-leg-dot.ai { background: var(--ink); }
.hf-leg-dot.out { background: var(--accent); }

.hf-stage {
  flex: 1;
  padding: 16px;
  display: flex; align-items: center; justify-content: center;
  min-width: 0;
  overflow: hidden;
}
.hf-svg { width: 100%; height: 100%; max-width: 100%; max-height: 460px; min-width: 0; display: block; }

.hf-foot {
  border-top: 1px solid var(--line);
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  background: var(--bg);
  text-align: center;
}
.hc-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elev);
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 460px;
}
@media (max-width: 720px) { .hc-card { grid-template-columns: 1fr; } }

.hc-portrait {
  position: relative;
  background: var(--bg);
  border-right: 1px solid var(--line);
  min-height: 220px;
}
@media (max-width: 720px) {
  .hc-portrait { border-right: 0; border-bottom: 1px solid var(--line); aspect-ratio: 16/10; }
}
.hc-portrait svg { width: 100%; height: 100%; display: block; }
.hc-portrait-tag {
  position: absolute;
  bottom: 10px; left: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  padding: 3px 8px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.hc-body {
  padding: 26px 26px 24px;
  display: flex; flex-direction: column;
  gap: 16px;
}
.hc-greeting {
  display: flex; align-items: baseline; gap: 12px;
  flex-wrap: wrap;
}
.hc-name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hc-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.hc-note {
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  font-style: italic;
}
.hc-divider {
  height: 1px;
  background: var(--line);
  margin: 0;
}
.hc-section { display: flex; flex-direction: column; gap: 10px; }
.hc-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hc-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex; flex-direction: column;
  gap: 7px;
}
.hc-checklist li {
  font-size: 14px;
  color: var(--ink-2);
  padding-left: 22px;
  position: relative;
  line-height: 1.4;
}
.hc-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.hc-avail-head { display: flex; align-items: center; gap: 8px; }
.hc-avail-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: oklch(0.65 0.18 145);
  box-shadow: 0 0 0 3px color-mix(in oklab, oklch(0.65 0.18 145) 22%, transparent);
  animation: hv-pulse 2s ease-in-out infinite;
}
@keyframes hv-pulse { 50% { opacity: 0.45; } }

.hc-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.hc-slot {
  display: flex; flex-direction: column;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  transition: 140ms;
  text-align: left;
}
.hc-slot:hover {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 6%, var(--bg));
  transform: translateY(-1px);
}
.hc-slot-date {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.hc-slot-time {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 3px;
}
.hc-other {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  margin-top: 2px;
  display: inline-block;
}
.hc-other:hover { text-decoration: underline; }
.ht-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elev);
  display: flex; flex-direction: column;
  overflow: hidden;
  min-height: 460px;
}
.ht-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.ht-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  display: flex; align-items: center; gap: 8px;
}
.ht-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 20%, transparent);
  animation: hv-pulse 2s ease-in-out infinite;
}
.ht-badge {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  padding: 3px 8px;
  border-radius: 4px;
}

.ht-form {
  padding: 24px 22px;
  display: flex; flex-direction: column;
  gap: 14px;
  flex: 1;
}
.ht-label {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.ht-textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  min-height: 84px;
  outline: none;
  transition: 120ms;
}
.ht-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 14%, transparent); }
.ht-textarea::placeholder { color: var(--ink-3); }
.ht-error {
  font-family: var(--mono);
  font-size: 11.5px;
  color: oklch(0.55 0.16 25);
}

.ht-presets { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ht-presets-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-right: 4px;
}
.ht-preset {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-2);
  transition: 120ms;
  cursor: pointer;
}
.ht-preset:hover { color: var(--ink); border-color: var(--ink-3); }
.ht-preset:disabled { opacity: 0.4; cursor: not-allowed; }

.ht-submit {
  width: 100%;
  justify-content: center;
  padding: 14px 18px;
  margin-top: 4px;
}
.ht-submit:disabled { opacity: 0.7; cursor: not-allowed; }
.ht-spinner {
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 1.5px solid color-mix(in oklab, white 35%, transparent);
  border-top-color: white;
  animation: ht-spin 700ms linear infinite;
}
@keyframes ht-spin { to { transform: rotate(360deg); } }

.ht-fineprint {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  text-align: center;
  margin-top: -4px;
}

.ht-results {
  padding: 22px 22px 24px;
  display: flex; flex-direction: column;
  gap: 14px;
  flex: 1;
}
.ht-results-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ht-results-head > span { color: var(--ink); font-weight: 500; }
.ht-reset {
  font: inherit;
  font-size: 11px;
  color: var(--accent);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ht-reset:hover { text-decoration: underline; }

.ht-results-list { display: flex; flex-direction: column; gap: 10px; }
.ht-result {
  display: flex; gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  align-items: flex-start;
  animation: ht-rise 420ms cubic-bezier(.2,.7,.2,1) backwards;
}
@keyframes ht-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.ht-result-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.06em;
  flex-shrink: 0;
  margin-top: 2px;
}
.ht-result-body { flex: 1; }
.ht-result-area {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.ht-result-idea {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.ht-cta {
  margin-top: 6px;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  text-align: center;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 500;
  transition: 160ms;
}
.ht-cta:hover { transform: translateY(-1px); }
.ht-cta .arrow { transition: 200ms; }
.ht-cta:hover .arrow { transform: translateX(3px); }
.possible-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
@media (max-width: 760px) { .possible-grid { grid-template-columns: 1fr; } }
.possible-card { background: var(--bg); padding: 36px; }
.possible-area {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.possible-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent);
}
.possible-card ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.possible-card li {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
  padding-left: 22px;
  position: relative;
}
.possible-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 12px; height: 1px;
  background: var(--ink-3);
}
.possible-foot {
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
}

/* Shift coda — the "more than automation" beat */
.shift-coda {
  margin-top: 56px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding: 0 24px;
}
.shift-coda p {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--ink-2);
  margin: 0;
  text-wrap: balance;
}

/* Shift v2 — minimal two-column statement */
.shift2 {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 0;
  align-items: stretch;
  margin-top: 16px;
}
.shift2-col {
  padding: 56px 48px;
  display: flex; flex-direction: column; gap: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-elev);
  position: relative;
}
.shift2-after {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.shift2-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex; align-items: center; gap: 10px;
}
.shift2-label::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--ink-3);
}
.shift2-after .shift2-label {
  color: color-mix(in oklab, white 60%, transparent);
}
.shift2-after .shift2-label::before {
  background: color-mix(in oklab, white 40%, transparent);
}
.shift2-headline {
  font-family: var(--serif);
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.shift2-after .shift2-headline { color: var(--bg); }

.shift2-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.shift2-list li {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink-2);
  line-height: 1.3;
}
.shift2-after .shift2-list li {
  color: color-mix(in oklab, white 78%, transparent);
}
.shift2-after .shift2-list li {
  position: relative;
  padding-left: 0;
}

.shift2-bridge {
  display: flex; flex-direction: column; align-items: center;
  gap: 0;
  padding: 0 8px;
  align-self: stretch;
  justify-content: center;
}
.shift2-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line-strong), transparent);
  min-height: 40px;
}
.shift2-bridge .shift2-line:first-child {
  background: linear-gradient(to bottom, transparent, var(--line-strong));
}
.shift2-bridge .shift2-line:last-child {
  background: linear-gradient(to top, transparent, var(--line-strong));
}
.shift2-arrow {
  color: var(--accent);
  background: var(--bg);
  border-radius: 50%;
  margin: 12px 0;
  display: flex; align-items: center; justify-content: center;
}

@media (max-width: 820px) {
  .shift2 { grid-template-columns: 1fr; }
  .shift2-col { padding: 36px 28px; gap: 20px; }
  .shift2-bridge {
    flex-direction: row;
    padding: 12px 0;
  }
  .shift2-line {
    height: 1px; width: auto; min-height: 0; min-width: 30px; flex: 1;
    background: linear-gradient(to right, transparent, var(--line-strong), transparent);
  }
  .shift2-bridge .shift2-line:first-child {
    background: linear-gradient(to right, transparent, var(--line-strong));
  }
  .shift2-bridge .shift2-line:last-child {
    background: linear-gradient(to left, transparent, var(--line-strong));
  }
  .shift2-arrow {
    margin: 0 12px;
    transform: rotate(90deg);
  }
  .shift2-headline { font-size: clamp(48px, 12vw, 72px); }
}

@media (max-width: 480px) {
  :root { --pad: 20px; }
  section { padding: 64px 0; }
  h1 {
    font-size: clamp(42px, 15vw, 58px);
    line-height: 1;
    letter-spacing: -0.03em;
  }
  h2 {
    font-size: clamp(30px, 11vw, 42px);
    line-height: 1.04;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
  .hero-meta {
    grid-template-columns: 1fr;
  }
  .hf-card {
    min-height: 360px;
  }
  .hf-head,
  .hf-legend {
    align-items: flex-start;
  }
  .hf-legend {
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .hf-stage {
    padding: 10px;
  }
  .hf-foot {
    justify-content: center;
    text-align: center;
  }
  .possible-card,
  .pillar,
  .step,
  .cta {
    padding: 28px;
  }
  .shift2-col {
    padding: 30px 26px;
  }
  .shift2-headline {
    font-size: clamp(42px, 14vw, 56px);
  }
}

@media (max-width: 720px) {
  .btn {
    white-space: normal;
  }
  .dt-control-copy h2,
  .dt-scope-head h2,
  .dt-section-row h2,
  .dt-lane strong,
  .dt-control-list strong {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .dt-control-copy h2 {
    font-size: clamp(30px, 10.5vw, 42px);
  }
}

/* DriveTech private proposal page */
.dt-private {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.dt-hero {
  border-top: 0;
  padding-top: clamp(60px, 8vw, 96px);
}
.dt-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.78fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
}
.dt-hero-copy h1 {
  max-width: 12ch;
  margin-top: 22px;
}
.dt-hero-copy .lede {
  margin-top: 28px;
}
.dt-hero-stats {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
}
.dt-hero-stats div {
  background: var(--bg);
  padding: 22px;
}
.dt-hero-stats strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.dt-hero-stats span {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dt-flow-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0) 0 0 / 24px 24px,
    var(--bg-elev);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 24px 80px -60px color-mix(in oklab, var(--ink) 60%, transparent);
}
.dt-flow-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dt-flow-head span {
  color: var(--ink);
}
.dt-flow {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
}
.dt-flow li {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 16px;
  padding: 22px 0;
}
.dt-flow li:not(:last-child) {
  border-bottom: 1px dashed var(--line-strong);
}
.dt-flow li::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 54px;
  bottom: -14px;
  width: 1px;
  background: var(--line-strong);
}
.dt-flow li:last-child::before {
  display: none;
}
.dt-flow li span {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.dt-flow li strong {
  display: block;
  align-self: end;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.dt-flow li small {
  display: block;
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.45;
}

.dt-section-head h2 {
  max-width: 13ch;
}
.dt-outcomes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--line);
}
.dt-outcomes div,
.dt-stack div,
.dt-guardrails div {
  background: var(--bg);
  padding: 26px;
}
.dt-outcomes strong,
.dt-stack strong,
.dt-guardrails strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.18;
  color: var(--ink);
}
.dt-outcomes span,
.dt-stack span,
.dt-guardrails span {
  display: block;
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
}

.dt-work-grid,
.dt-two-col {
  display: grid;
  grid-template-columns: minmax(220px, 0.28fr) minmax(0, 0.72fr);
  gap: 56px;
  align-items: start;
}
.dt-work-intro {
  position: sticky;
  top: 92px;
}
.dt-work-intro h2,
.dt-two-col h2 {
  max-width: 12ch;
}
.dt-task-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--line);
}
.dt-task {
  background: var(--bg);
  padding: 28px;
  min-height: 250px;
}
.dt-task span {
  display: block;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.dt-task h3 {
  margin-bottom: 12px;
}
.dt-task p {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.55;
}

.dt-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(300px, 0.28fr);
  gap: 56px;
  align-items: start;
}
.dt-main {
  display: grid;
  gap: 28px;
}
.dt-impact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
  overflow: hidden;
}
.dt-impact-strip div {
  background: var(--ink);
  color: var(--bg);
  padding: 24px;
}
.dt-impact-strip strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.dt-impact-strip span {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: color-mix(in oklab, var(--bg) 68%, transparent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dt-table-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
  background: var(--bg);
}
.dt-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.dt-table th,
.dt-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.dt-table th {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  background: var(--bg-elev);
}
.dt-table td {
  color: var(--ink-2);
  font-size: 14px;
}
.dt-table td:first-child,
.dt-table td:last-child {
  color: var(--ink);
  font-weight: 500;
}
.dt-table tr:last-child td {
  border-bottom: 0;
}
.dt-side-card {
  position: sticky;
  top: 92px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elev);
  padding: 26px;
}
.dt-side-card h2 {
  font-size: 26px;
  margin-bottom: 12px;
}
.dt-side-card p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}
.dt-side-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-strong);
}
.dt-side-note strong,
.dt-side-note span {
  display: block;
}
.dt-side-note strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}
.dt-side-note span {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}

.dt-stack,
.dt-guardrails {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--line);
}
.dt-demo-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.45;
}
.dt-demo-list li {
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
}
.dt-demo-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.dt-pricing {
  display: grid;
  gap: 36px;
}
.dt-pricing-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--line);
}
.dt-price-card {
  background: var(--bg);
  padding: clamp(24px, 3vw, 34px);
  min-height: 260px;
}
.dt-price-card.primary {
  background: var(--ink);
  color: var(--bg);
}
.dt-price-card span {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dt-price-card.primary span {
  color: color-mix(in oklab, var(--bg) 60%, transparent);
}
.dt-price-card strong {
  display: block;
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(38px, 4vw, 60px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.dt-price-card p {
  margin-top: 22px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}
.dt-price-card.primary p {
  color: color-mix(in oklab, var(--bg) 72%, transparent);
}
.dt-positioning {
  max-width: 920px;
  margin: 12px auto 0;
  text-align: center;
}
.dt-positioning p {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink-2);
}

@media (max-width: 980px) {
  .dt-hero-grid,
  .dt-work-grid,
  .dt-two-col,
  .dt-body-grid {
    grid-template-columns: 1fr;
  }
  .dt-work-intro,
  .dt-side-card {
    position: static;
  }
  .dt-outcomes,
  .dt-pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .dt-hero-stats,
  .dt-task-grid,
  .dt-impact-strip,
  .dt-stack,
  .dt-guardrails,
  .dt-outcomes,
  .dt-pricing-grid {
    grid-template-columns: 1fr;
  }
  .dt-flow li {
    grid-template-columns: 42px 1fr;
    column-gap: 14px;
  }
  .dt-flow li span {
    width: 42px;
    height: 42px;
  }
  .dt-flow li::before {
    left: 20px;
    top: 50px;
  }
  .dt-task {
    min-height: 0;
  }
}

/* DriveTech v2 layout refinements */
.drivetech-page {
  overflow-x: hidden;
}
.drivetech-page .container {
  width: min(calc(var(--maxw) - (var(--pad) * 2)), calc(100vw - (var(--pad) * 2)));
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.drivetech-page section {
  padding: clamp(72px, 8vw, 108px) 0;
}
.drivetech-page .dt-hero {
  padding-top: clamp(58px, 7vw, 96px);
  padding-bottom: clamp(72px, 8vw, 108px);
}
.drivetech-page .dt-hero-grid > *,
.drivetech-page .dt-shift > *,
.drivetech-page .dt-section-row > *,
.drivetech-page .dt-control-grid > * {
  min-width: 0;
}
.drivetech-page p,
.drivetech-page .lede {
  max-width: 100%;
  overflow-wrap: break-word;
}
.dt-scope-section,
.dt-control-section {
  background: color-mix(in oklab, var(--bg-elev) 42%, var(--bg));
}

.dt-hero-note {
  margin-top: 18px;
  max-width: 58ch;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
}
.dt-hero-note span {
  display: block;
}

.dt-command-card {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(135deg, color-mix(in oklab, var(--accent-soft) 44%, transparent), transparent 46%),
    radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0) 0 0 / 24px 24px,
    var(--bg-elev);
  padding: clamp(24px, 3.4vw, 40px);
}
.dt-role-card {
  display: grid;
  gap: 18px;
  background: var(--bg-elev);
}
.dt-role-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dt-role-top span {
  color: var(--ink);
}
.dt-role-stack {
  display: grid;
  gap: 12px;
}
.dt-role-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  padding: clamp(22px, 2.8vw, 30px);
}
.dt-role-panel span {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dt-role-panel strong {
  display: block;
  margin-top: 28px;
  max-width: 12ch;
  font-family: var(--serif);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.dt-role-panel p {
  margin-top: 16px;
  max-width: 34ch;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}
.dt-role-panel.after {
  background: var(--ink);
  border-color: var(--ink);
}
.dt-role-panel.after strong,
.dt-role-panel.after span {
  color: var(--bg);
}
.dt-role-panel.after p {
  color: color-mix(in oklab, var(--bg) 72%, transparent);
}
.dt-role-arrow {
  width: 1px;
  height: 28px;
  background: var(--line-strong);
  justify-self: center;
  position: relative;
}
.dt-role-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  transform: translateX(-50%) rotate(45deg);
  background: transparent;
}
.dt-role-note {
  margin: 0;
  padding-top: 2px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}
.dt-scope-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 44px;
  text-align: center;
}
.dt-scope-head h2 {
  max-width: 820px;
}
.dt-scope-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--line);
}
.dt-scope-grid div {
  min-height: 280px;
  background: var(--bg);
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
}
.dt-scope-grid span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dt-scope-grid strong {
  display: block;
  margin-top: 28px;
  font-family: var(--serif);
  font-size: clamp(26px, 2.5vw, 36px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.dt-scope-grid p {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}

.dt-shift {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr);
  align-items: stretch;
}
.dt-shift-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elev);
  padding: clamp(30px, 5vw, 56px);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.dt-shift-panel h2 {
  margin-top: 18px;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 0.95;
  max-width: 8ch;
}
.dt-shift-panel p {
  margin-top: 32px;
  max-width: 38ch;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
}
.dt-shift-panel.after {
  background: var(--ink);
  border-color: var(--ink);
}
.dt-shift-panel.after h2,
.dt-shift-panel.after .eyebrow {
  color: var(--bg);
}
.dt-shift-panel.after .eyebrow::before {
  background: var(--accent-2);
}
.dt-shift-panel.after p {
  color: color-mix(in oklab, var(--bg) 76%, transparent);
}
.dt-shift-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}
.dt-shift-arrow span {
  width: 44px;
  height: 44px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
  position: relative;
}
.dt-shift-arrow span::before,
.dt-shift-arrow span::after {
  content: "";
  position: absolute;
  top: 50%;
  background: var(--accent);
}
.dt-shift-arrow span::before {
  left: 12px;
  right: 12px;
  height: 1px;
}
.dt-shift-arrow span::after {
  right: 12px;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  background: transparent;
  transform: translateY(-50%) rotate(45deg);
}

.dt-section-row {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 0.58fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 42px;
}
.dt-section-row h2 {
  max-width: 12ch;
}
.dt-lane {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block;
  counter-reset: dt-lane;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--line);
}
.dt-lane li {
  position: relative;
  min-height: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg);
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  grid-template-columns: 150px minmax(0, 0.72fr) minmax(260px, 0.9fr);
  gap: 24px;
  align-items: center;
}
.dt-lane li:first-child {
  border-top: 0;
}
.dt-lane li:nth-child(even) {
  background: var(--bg-elev);
}
.dt-lane li:not(:last-child)::after {
  display: none;
}
.dt-lane li > span {
  display: inline-flex;
  align-self: flex-start;
  width: fit-content;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dt-lane strong {
  display: block;
  margin-top: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.dt-lane p {
  margin-top: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.55;
}

.dt-control-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 18px;
  align-items: stretch;
}
.dt-control-copy {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elev);
  padding: clamp(30px, 4vw, 50px);
}
.dt-control-copy h2 {
  margin-top: 16px;
  max-width: 13ch;
}
.dt-control-copy p {
  margin-top: 28px;
  max-width: 44ch;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
}
.dt-control-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--line);
}
.dt-control-list div {
  background: var(--bg);
  padding: 22px;
}
.dt-control-list strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.dt-control-list span {
  display: block;
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}
@media (max-width: 980px) {
  .drivetech-page .dt-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .dt-command-card,
  .dt-shift-panel,
  .dt-control-copy,
  .dt-control-list {
    width: 100%;
    max-width: 100%;
  }
  .dt-shift,
  .dt-scope-head,
  .dt-section-row,
  .dt-control-grid {
    grid-template-columns: 1fr;
  }
  .dt-scope-grid {
    grid-template-columns: 1fr;
  }
  .dt-scope-grid div {
    min-height: 0;
  }
  .dt-shift-arrow {
    min-height: 70px;
    transform: rotate(90deg);
  }
  .dt-lane {
    display: block;
  }
  .dt-lane li:not(:last-child)::after {
    display: none;
  }
  .dt-lane li {
    grid-template-columns: 110px minmax(0, 1fr);
  }
  .dt-lane p {
    grid-column: 2;
    margin-top: 8px;
  }
  .dt-control-copy {
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .drivetech-page .container {
    width: 100%;
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: auto;
    margin-right: auto;
  }
  .drivetech-page section,
  .drivetech-page .dt-hero {
    padding: 64px 0;
  }
  .dt-hero-grid {
    gap: 36px;
  }
  .dt-hero-copy h1 {
    max-width: 9ch;
  }
  .dt-scope-head {
    align-items: flex-start;
    text-align: left;
  }
  .dt-scope-head h2 {
    max-width: 100%;
  }
  .dt-hero-copy .lede,
  .dt-hero-note,
  .dt-shift-panel p,
  .dt-lane p,
  .dt-control-copy p {
    width: 100%;
    max-width: 100%;
  }
  .dt-command-card,
  .dt-scope-grid,
  .dt-lane,
  .dt-control-copy,
  .dt-control-list {
    width: 100%;
    max-width: 100%;
  }
  .dt-role-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .dt-shift-panel {
    min-height: 0;
  }
  .dt-lane li {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .dt-lane p {
    grid-column: auto;
    margin-top: 0;
  }
}

@media (max-width: 540px) {
  .drivetech-page .container,
  .dt-hero-copy .lede,
  .dt-hero-note,
  .dt-command-card,
  .dt-scope-grid,
  .dt-lane,
  .dt-control-copy,
  .dt-control-list {
    width: 100%;
    max-width: 100%;
  }
  .drivetech-page .container {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ── Subtle visual polish ─────────────────────────────────────────────────── */
/* All additive — designed to enhance presence without changing the design language. */

/* Hero italic accent gets a soft backlight glow */
.hero h1 .accent {
  text-shadow:
    0 0 1px color-mix(in oklab, var(--accent) 40%, transparent),
    0 0 32px color-mix(in oklab, var(--accent) 26%, transparent);
}
[data-theme="dark"] .hero h1 .accent {
  text-shadow:
    0 0 1px color-mix(in oklab, var(--accent) 50%, transparent),
    0 0 36px color-mix(in oklab, var(--accent) 36%, transparent);
}

/* Hero stat numbers — small accent tick under each big figure */
.hero-meta strong {
  position: relative;
  padding-bottom: 8px;
}
.hero-meta strong::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.55;
}

/* Section heads — small accent tab marker above each h2 group */
.section-head {
  position: relative;
}
.section-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: -28px;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.7;
}
@media (max-width: 800px) {
  .section-head::before { top: -18px; }
}

/* Pillars — accent edge slides in on hover, no layout shift */
.pillar {
  position: relative;
  transition: background 240ms ease;
  overflow: hidden;
}
.pillar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 360ms cubic-bezier(.2,.7,.2,1);
}
.pillar:hover {
  background: color-mix(in oklab, var(--accent) 2.5%, var(--bg));
}
.pillar:hover::after {
  transform: scaleY(1);
}
.pillar:hover .pillar-num {
  color: var(--accent);
  transition: color 200ms ease;
}

/* Shift v2 — tiny accent corner glint on the dark "Directing" panel */
.shift2-after {
  position: relative;
  isolation: isolate;
}
.shift2-after::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at 100% 0%,
    color-mix(in oklab, var(--accent) 22%, transparent),
    transparent 38%
  );
  pointer-events: none;
  z-index: 0;
}
.shift2-after > * { position: relative; z-index: 1; }

/* Dark CTA — subtle accent wash in the upper-right + softened grid */
.cta { isolation: isolate; }
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 92% 8%,
    color-mix(in oklab, var(--accent) 22%, transparent),
    transparent 55%
  );
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
}
.cta > * { position: relative; z-index: 1; }
.cta-bg { z-index: 0; }

/* HeroFlow card — slight elevation hint */
.hf-card {
  box-shadow:
    0 1px 0 color-mix(in oklab, var(--ink) 4%, transparent),
    0 24px 48px -32px color-mix(in oklab, var(--ink) 18%, transparent);
}

/* BeforeAfter active row — soft glow on the leading edge */
.ba-row.active {
  box-shadow:
    inset 2px 0 0 var(--accent),
    0 0 0 1px color-mix(in oklab, var(--accent) 18%, transparent);
  border-left-color: transparent;
}

/* Brand mark — gentle ring glow on the accent circle */
.brand-mark::after {
  box-shadow: 0 0 12px color-mix(in oklab, var(--accent) 35%, transparent);
}

/* Buttons — primary picks up a faint accent rim on hover */
.btn-primary:hover {
  box-shadow:
    0 8px 24px -8px color-mix(in oklab, var(--ink) 40%, transparent),
    0 0 0 1px color-mix(in oklab, var(--accent) 28%, transparent);
}

/* Eyebrow dot — slightly stronger glow ring */
.eyebrow::before {
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent),
              0 0 10px color-mix(in oklab, var(--accent) 30%, transparent);
}

/* DriveTech command card — subtle inner glow on the dark panel */
.dt-command-card {
  position: relative;
  isolation: isolate;
}
.dt-command-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at 100% 0%,
    color-mix(in oklab, var(--accent) 18%, transparent),
    transparent 45%
  );
  pointer-events: none;
  z-index: 0;
}
.dt-command-card > * { position: relative; z-index: 1; }

/* Final phone-width hardening: keep headings and cards inside the viewport. */
@media (max-width: 720px) {
  .btn {
    white-space: normal;
  }
  .dt-control-copy h2,
  .dt-scope-head h2,
  .dt-section-row h2,
  .dt-lane strong,
  .dt-control-list strong {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .dt-control-copy h2 {
    font-size: clamp(30px, 10.5vw, 42px);
  }
}

/* Reduced-motion respect: disable hover transitions for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .pillar::after,
  .pillar,
  .pillar:hover .pillar-num,
  .btn .arrow,
  .btn:hover {
    transition: none !important;
    animation: none !important;
  }
}
