/* Deri by Novara Robotics — site styles
   Theme: light canvas, near-black type, single copper accent */

:root {
  --color-bg: #ffffff;
  --color-bg-muted: #f6f5f3;
  --color-surface: #ffffff;
  --color-text: #141414;
  --color-text-muted: #5c5c5c;
  --color-text-faint: #8a8a8a;
  --color-border: #e6e4e1;
  --color-border-strong: #d0cdc8;
  --color-accent: #a55b3c;
  --color-accent-hover: #8f4c31;
  --color-accent-soft: color-mix(in srgb, var(--color-accent) 12%, white);
  --color-hero-ink: #0f0f0f;

  --font-body: "Manrope", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --text-xs: 0.8125rem;
  --text-sm: 1rem;
  --text-base: 1.125rem;
  --text-lg: 1.35rem;
  --text-xl: clamp(1.75rem, 1.35rem + 1.2vw, 2.35rem);
  --text-2xl: clamp(2.25rem, 1.6rem + 2.2vw, 3.15rem);
  --text-hero: clamp(5.5rem, 14vw, 11rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --content: 1120px;
  --radius: 0.25rem;
  --header-h: 4.5rem;
  --transition: 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

h1, h2, h3 {
  text-wrap: balance;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
}

p, li { text-wrap: pretty; }

::selection {
  background: color-mix(in srgb, var(--color-accent) 35%, white);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 200;
  padding: var(--space-3) var(--space-4);
  background: var(--color-text);
  color: var(--color-bg);
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus { top: var(--space-4); }

.container {
  width: min(100% - 2.5rem, var(--content));
  margin-inline: auto;
}

/* ========== Header ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
}

.site-header.is-scrolled,
.site-header.nav-open {
  background: color-mix(in srgb, var(--color-bg) 94%, transparent);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: var(--header-h);
  position: relative;
  min-width: 0;
}

.nav-brand img {
  height: 46px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--color-text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius);
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--color-text);
}

.nav-open .nav-links {
  display: flex;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.7rem 1.15rem;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-accent:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 0.9rem 1.5rem;
  font-size: var(--text-sm);
}

/* ========== Hero — full-viewport landing slide ========== */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + var(--space-10)) var(--space-12);
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.95) 24%,
      rgba(255, 255, 255, 0.78) 50%,
      rgba(255, 255, 255, 0.55) 72%,
      rgba(255, 255, 255, 0.4) 100%
    ),
    url("./assets/hero-candidates/hero-bg-06b-robots-machines-clean.png"),
    linear-gradient(160deg, #faf9f7 0%, #f5f3f0 100%);
  background-size: auto, cover, auto;
  background-position: center, center bottom, center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--content));
  margin-inline: auto;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 40rem;
  margin: 0;
  padding: 0;
  text-align: left;
}

.hero-title,
.hero-category {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  text-align: left;
  text-wrap: auto;
}

.hero-title {
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: var(--color-hero-ink);
  margin-top: 0;
  margin-bottom: var(--space-5);
  margin-left: -0.05em; /* pull D left; T offset on category */
  padding: 0;
}

.hero-category {
  font-size: clamp(1.45rem, 1.15rem + 1.15vw, 1.95rem);
  font-weight: 500;
  color: var(--color-accent);
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 0.12rem; /* T: one tiny step right */
  padding: 0;
  max-width: none;
}

/* ========== Icons — thin copper marks, not decorative weight ========== */
.icon {
  display: inline-flex;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-inline {
  margin-bottom: 0;
  margin-right: var(--space-2);
  vertical-align: -0.15em;
}

.icon-inline svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.25;
}

.loop-stage .icon {
  display: flex;
}

.loop-stage .icon svg {
  width: 16px;
  height: 16px;
}

/* ========== Sections ========== */
.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  border-bottom: 1px solid var(--color-border);
}

.section-muted { background: var(--color-bg-muted); }

.section-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: var(--text-2xl);
  max-width: 22ch;
  margin-bottom: var(--space-5);
}

.section-lead {
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.4rem);
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 58ch;
  margin-bottom: var(--space-12);
}

/* ========== How Deri Works loop ========== */
.loop {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--color-border-strong);
  list-style: none;
}

.loop-stage {
  /* Match .outcome gutters so text clears dividers the same way */
  padding: var(--space-8) var(--space-5) var(--space-8) 0;
  border-right: 1px solid var(--color-border);
  padding-right: var(--space-6);
  padding-left: var(--space-6);
}

.loop-stage:first-child {
  padding-left: var(--space-2);
}

.loop-stage:last-child {
  border-right: none;
  padding-right: 0;
}

.loop-num {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}

.loop-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.loop-copy {
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.loop-stage .icon {
  display: flex;
}

.loop-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.loop-points li {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  padding-left: var(--space-4);
  position: relative;
}

.loop-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 1px;
  background: var(--color-accent);
}

/* ========== How Deri works — zigzag storyboard ========== */
.product-story {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin: 0;
}

.story-cell {
  display: grid;
  /* Equal columns so every media frame shares one width → one height */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: center;
  min-width: 0;
}

.story-row-reverse .story-media {
  order: 2;
}

.story-row-reverse .story-copy {
  order: 1;
}

.story-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1138 / 821;
  overflow: hidden;
  background: transparent;
}

.story-media:not(.story-media-phone) {
  border: 1px solid var(--color-border-strong);
  border-radius: 0;
}

.story-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0;
  padding: 0;
  background: transparent;
}

.story-media-phone {
  border: none;
}

.story-media-phone img {
  width: auto;
  height: 100%;
  max-width: none;
  max-height: 100%;
  margin: auto;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  object-fit: contain;
}

.story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-inline: var(--space-2);
}

.story-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 var(--space-2);
  line-height: 1.2;
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}

.story-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text-faint);
}

.story-copy p {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0;
  max-width: 28rem;
}

/* ========== Deployment — boxy flow ========== */
.deploy-flow {
  display: grid;
  grid-template-columns: 1fr 40px 1.35fr 40px 1fr;
  gap: var(--space-4);
  align-items: center; /* shared horizontal midline across all three columns */
  margin-bottom: 0;
}

.deploy-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.deploy-pill {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #ebe9e6;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0;
}

.deploy-pill-accent {
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.deploy-cards {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
  width: 100%;
  min-width: 0;
}

.deploy-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.7rem 0.85rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: 0.65rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

.deploy-card .icon {
  margin-bottom: 0;
  color: var(--color-text-faint);
  flex-shrink: 0;
}

.deploy-card .icon svg {
  width: 18px;
  height: 18px;
}

.deploy-core {
  background: var(--color-surface);
  border: 2px solid var(--color-accent);
  border-radius: 0.85rem;
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  text-align: center;
}

.deploy-core-name {
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-accent);
  line-height: 1;
  margin: 0;
}

.deploy-choice {
  width: 100%;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.deploy-choice-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin: 0 0 var(--space-3);
}

.deploy-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}

.deploy-modes-two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 14rem;
  margin-inline: auto;
  width: 100%;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: 0.55rem;
  overflow: hidden;
}

.deploy-mode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: var(--space-3) var(--space-2);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.deploy-modes-two .deploy-mode + .deploy-mode {
  border-left: 1px solid var(--color-border);
}

.deploy-mode .icon {
  margin-bottom: 0;
  color: var(--color-accent);
}

.deploy-mode .icon svg {
  width: 20px;
  height: 20px;
}

.deploy-secure {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-accent-soft);
  border-radius: 0.55rem;
  text-align: left;
  width: 100%;
}

.deploy-secure .icon {
  margin-bottom: 0;
  color: var(--color-accent);
  flex-shrink: 0;
}

.deploy-secure .icon svg {
  width: 16px;
  height: 16px;
}

.deploy-secure p {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--color-text);
  margin: 0;
}

.deploy-connector {
  position: relative;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  opacity: 0.55;
  border-radius: 1px;
}

.deploy-connector::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid var(--color-accent);
  transform: translateY(-50%);
  opacity: 1;
}

/* ========== Outcomes — 2×2 measurement board ========== */
.outcome-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  margin-bottom: 0;
  overflow: hidden;
  border-radius: 0.75rem;
}

.board-cell {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-8) var(--space-6);
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.board-cell:nth-child(2n) { border-right: none; }
.board-cell:nth-child(n + 3) { border-bottom: none; }

.board-dir {
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 0.1rem;
}

.board-dir svg {
  width: 40px;
  height: 40px;
  display: block;
  stroke: #a55b3c;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.board-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin: 0 0 var(--space-3);
  line-height: 1.2;
}

.board-copy p {
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0;
}

/* ========== Pilot ========== */
.section-pilot {
  background: var(--color-text);
  color: #f5f5f5;
  border-bottom: none;
}

.section-pilot .section-label { color: color-mix(in srgb, var(--color-accent) 80%, white); }

.pilot-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-10);
}

.pilot-title {
  font-size: var(--text-2xl);
  color: #fff;
  max-width: 22ch;
  margin-bottom: 0;
}

.section-pilot .btn-accent:hover { transform: translateY(-1px); }

/* ========== Footer ========== */
.site-footer {
  padding-block: var(--space-12);
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-10);
}

.footer-brand img {
  height: 36px;
  width: auto;
  margin-bottom: var(--space-4);
}

.footer-tag {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 28ch;
  margin-bottom: var(--space-5);
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-2);
}

.footer-meta a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer-meta a:hover { color: var(--color-text); }

.footer-heading {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}

.footer-nav ul,
.footer-legal ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-nav a,
.footer-legal a {
  text-decoration: none;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer-nav a:hover,
.footer-legal a:hover { color: var(--color-text); }

/* ========== Legal / doc pages ========== */
.page-doc .site-header {
  background: color-mix(in srgb, var(--color-bg) 94%, transparent);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--color-border);
}

/* Needs two classes to outrank the `.section { padding-block }` override in
   the max-width: 768px block, which lands later in the file and would
   otherwise drop this header offset and slide the label under the header. */
.page-doc .doc-section {
  padding-top: calc(var(--header-h) + var(--space-12));
}

.doc-section {
  border-bottom: none;
}

.doc {
  max-width: 720px;
}

.doc-title {
  font-size: var(--text-2xl);
  max-width: none;
  margin-bottom: var(--space-3);
}

.doc-updated {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-10);
}

.doc > p {
  margin-bottom: var(--space-5);
  color: var(--color-text-muted);
}

.doc h2 {
  font-size: var(--text-lg);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.doc ul {
  margin: 0 0 var(--space-5);
  padding-left: 1.25rem;
  color: var(--color-text-muted);
}

.doc li {
  margin-bottom: var(--space-2);
}

.doc a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.doc a:hover { color: var(--color-accent-hover); }

/* ========== Reveal ========== */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 650ms cubic-bezier(0.16, 1, 0.3, 1), transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .loop { grid-template-columns: repeat(2, 1fr); }
  .loop-stage:nth-child(2) { border-right: none; }
  .loop-stage:nth-child(1),
  .loop-stage:nth-child(2) { border-bottom: 1px solid var(--color-border); }
  .product-story { gap: var(--space-8); }
  .story-cell { gap: var(--space-6); }
  .deploy-flow {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    justify-items: center;
  }
  /* Vertical flow arrows — stacked layout only; desktop keeps horizontal connectors */
  .deploy-connector {
    display: block;
    width: 2px;
    height: 1.75rem;
    margin-inline: auto;
    background: var(--color-accent);
    opacity: 0.55;
    border-radius: 1px;
  }
  .deploy-connector::after {
    top: auto;
    right: auto;
    left: 50%;
    bottom: -1px;
    border-top: 8px solid var(--color-accent);
    border-bottom: none;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    transform: translateX(-50%);
  }
  .outcome-board { grid-template-columns: 1fr; }
  .board-cell {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  .board-cell:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 1.75rem, var(--content));
  }

  /* ---- Nav: hamburger ---- */
  .nav {
    gap: var(--space-3);
  }

  .nav-brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .nav-brand img {
    height: 36px;
    max-width: min(160px, 42vw);
  }

  .nav-toggle {
    display: flex;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
  }

  .nav-primary {
    position: static;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-2) var(--space-5) var(--space-5);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 12px 28px rgba(20, 20, 20, 0.06);
    z-index: 120;
  }

  .nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1.05rem;
  }

  .nav-actions {
    flex-shrink: 0;
    gap: var(--space-2);
  }

  .nav-actions .btn-partner {
    padding: 0.65rem 0.9rem;
    font-size: 0.8rem;
    min-height: 44px;
  }

  /* ---- Stack sections ---- */
  .loop {
    grid-template-columns: 1fr;
  }

  .loop-stage {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding-right: 0;
    padding-left: 0;
  }

  .loop-stage:first-child { padding-left: 0; }
  .loop-stage:last-child { border-bottom: none; }

  .product-story {
    gap: var(--space-10);
  }

  .story-cell {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .story-row-reverse .story-media,
  .story-row-reverse .story-copy {
    order: initial;
  }

  .story-media {
    order: 1;
  }

  .story-copy {
    order: 2;
    padding-inline: 0.15rem;
  }

  .story-media-phone img {
    height: 100%;
    max-width: none;
  }

  /* ---- Hero ---- */
  .hero {
    min-height: auto;
    padding-block: calc(var(--header-h) + var(--space-8)) var(--space-12);
  }

  .hero-content {
    width: min(100% - 1.75rem, var(--content));
  }

  .hero-bg {
    background-position: center, 70% bottom, center;
    opacity: 1;
  }

  .hero-title {
    font-size: clamp(3.75rem, 18vw, 5.5rem);
    margin-bottom: var(--space-4);
    margin-left: -0.025em; /* half of desktop optical offset */
  }

  .hero-category {
    font-size: clamp(1.2rem, 4.2vw, 1.45rem);
    margin-left: 0.06rem; /* half of desktop T offset */
  }

  /* ---- Type / section spacing ---- */
  .section {
    padding-block: var(--space-16);
  }

  .section-title {
    font-size: clamp(2rem, 7.2vw, 2.55rem);
    max-width: none;
  }

  .section-lead {
    font-size: clamp(1.2rem, 3.6vw, 1.35rem);
    max-width: none;
  }

  .board-cell {
    padding: var(--space-6) var(--space-5);
  }

  .board-title {
    font-size: var(--text-base);
  }

  .deploy-secure p {
    font-size: 0.9rem;
  }

  .deploy-card {
    font-size: var(--text-sm);
  }

  .pilot-inner {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-6);
  }

  .pilot-title {
    max-width: none;
    font-size: clamp(2rem, 7.2vw, 2.55rem);
  }

  .section-pilot .btn,
  .pilot-inner .btn {
    width: 100%;
    min-height: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 500px) {
  .nav-brand img {
    height: 32px;
    max-width: min(140px, 38vw);
  }

  .nav-actions .btn-partner {
    padding: 0.6rem 0.75rem;
    font-size: 0.72rem;
  }

  .story-title {
    font-size: 1.4rem;
  }

  .deploy-core {
    padding: var(--space-5) var(--space-4);
  }

  .deploy-modes-two {
    max-width: none;
  }
}
