:root {
  --ink: #171716;
  --ink-soft: #232321;
  --ink-faint: #34332f;
  --paper: #f4f0e8;
  --paper-warm: #ebe5d9;
  --paper-muted: #b9b2a6;
  --line: rgba(244, 240, 232, .16);
  --line-dark: rgba(23, 23, 22, .16);
  --ember: #ef774f;
  --ember-deep: #bd4d30;
  --sage: #b8cfb5;
  --white: #fffdf8;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --display: "Arial Narrow", "Avenir Next Condensed", Inter, ui-sans-serif, sans-serif;
  --max: 1180px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.55; overflow-x: hidden; }
body.is-locked { overflow: hidden; }
a { color: inherit; }
img, svg, video { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 4px; }

.shell { width: min(var(--max), calc(100% - (var(--gutter) * 2))); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; padding: 10px 14px; background: var(--ember); color: var(--ink); font-weight: 800; }
.skip-link:focus { top: 16px; }
.eyebrow, .micro, .nav-label, .mono { font-family: var(--mono); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--ember); font-size: 12px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.micro { color: var(--ember-deep); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.muted { color: #746f66; }
.dark-muted { color: var(--paper-muted); }

.site-nav { position: sticky; top: 0; z-index: 50; color: var(--paper); background: rgba(23, 23, 22, .93); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; font-size: 17px; font-weight: 750; letter-spacing: -.03em; }
.brand-mark { width: 24px; height: 24px; color: var(--ember); }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 32px); }
.nav-links a { color: #cac4b9; text-decoration: none; font-size: 13px; font-weight: 650; }
.nav-links a:hover { color: var(--white); }
.nav-links .nav-cta { padding: 10px 15px; color: var(--ink); background: var(--paper); border-radius: 99px; }
.nav-links .nav-cta:hover { color: var(--ink); background: var(--ember); }
.nav-toggle { display: none; padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--paper); background: transparent; cursor: pointer; }

.hero { position: relative; overflow: hidden; color: var(--paper); background: var(--ink); padding: clamp(64px, 8vw, 112px) 0 clamp(76px, 9vw, 128px); }
.hero::before { content: ""; position: absolute; width: min(64vw, 820px); height: min(64vw, 820px); top: -42%; right: -12%; border-radius: 50%; background: radial-gradient(circle, rgba(239,119,79,.24), rgba(239,119,79,0) 68%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, .78fr) minmax(520px, 1.22fr); align-items: center; gap: clamp(44px, 7vw, 96px); }
.hero-copy { max-width: 570px; }
.hero h1 { max-width: 680px; margin: 22px 0 24px; font-family: var(--display); font-size: clamp(52px, 6.4vw, 94px); font-weight: 800; letter-spacing: -.075em; line-height: .91; }
.hero h1 em { color: var(--ember); font-style: normal; }
.hero-lede { max-width: 520px; margin: 0; color: #cfc9bd; font-size: clamp(17px, 1.55vw, 20px); letter-spacing: -.01em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 12px 18px; border: 1px solid transparent; border-radius: 99px; text-decoration: none; font-size: 14px; font-weight: 800; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: var(--ink); background: var(--paper); }
.button.primary:hover { background: var(--ember); }
.button.ember { color: var(--ink); background: var(--ember); }
.button.ember:hover { background: #ff8c61; }
.button.ghost { color: var(--paper); border-color: var(--line); background: transparent; }
.button.ghost:hover { border-color: rgba(244, 240, 232, .5); background: rgba(244, 240, 232, .07); }
.button.dark { color: var(--paper); background: var(--ink); }
.button.dark:hover { background: var(--ink-soft); }
.hero-note { margin-top: 18px; color: #928c82; font-size: 12px; }

.preview-figure { min-width: 0; margin: 0; }
.preview-browser { padding: 17px 17px 0; border: 1px solid rgba(244,240,232,.22); border-radius: 22px; background: #242422; box-shadow: 0 36px 110px rgba(0,0,0,.38); }
.window-head { display: flex; align-items: center; gap: 11px; min-height: 26px; padding: 0 4px 15px; color: #8f8b83; font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #55534e; }
.window-label-right { margin-left: auto; color: #d88a70; }
.product-video { width: 100%; aspect-ratio: 16 / 10; border: 1px solid rgba(244,240,232,.13); border-radius: 13px 13px 0 0; background: #10100f; object-fit: cover; }
.preview-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 3px 0; color: #918b82; font-size: 11px; }
.preview-badge { color: #ffad8d; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }

.section { padding: clamp(76px, 10vw, 140px) 0; }
.section.dark { color: var(--paper); background: var(--ink); }
.section.cream { background: var(--paper-warm); }
.section-head { display: grid; grid-template-columns: minmax(230px, .7fr) minmax(0, 1.3fr); gap: 40px; align-items: start; margin-bottom: 48px; }
.section h2 { max-width: 750px; margin: 0; font-family: var(--display); font-size: clamp(38px, 5vw, 68px); font-weight: 800; letter-spacing: -.065em; line-height: .98; }
.section-intro { max-width: 550px; margin: 0; color: #69645c; font-size: 18px; }
.dark .section-intro { color: #b6afa3; }
.rule { height: 1px; margin: 30px 0; background: var(--line-dark); }
.dark .rule { background: var(--line); }

.visual-proof { background: var(--paper); }
.proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.proof-card { overflow: hidden; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--white); }
.still-frame { overflow: hidden; aspect-ratio: 1.28 / 1; background: #d8d0c3; }
.still-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.proof-card:hover .still-frame img { transform: scale(1.025); }
.proof-copy { padding: 24px 24px 28px; }
.story-index { color: var(--ember-deep); font-family: var(--mono); font-size: 11px; letter-spacing: .05em; }
.proof-copy h3 { margin: 19px 0 9px; font-family: var(--display); font-size: clamp(26px, 2.7vw, 35px); letter-spacing: -.05em; line-height: .98; }
.proof-copy p { margin: 0; color: #706b62; font-size: 14px; }
.media-note { max-width: 780px; margin: 28px 0 0; color: #746f66; font-size: 12px; }
.media-note .micro { margin-right: 10px; }

.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.pillar { padding: clamp(26px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--radius); background: #20201e; }
.pillar.light { border-color: var(--line-dark); background: var(--paper); }
.pillar .eyebrow { margin-bottom: 30px; }
.pillar h3 { margin: 0 0 14px; font-family: var(--display); font-size: clamp(29px, 3vw, 42px); letter-spacing: -.055em; line-height: .98; }
.pillar p { margin: 0; color: #b8b1a6; font-size: 15px; }
.pillar.light p { color: #716c63; }
.pillar ul { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.pillar li { position: relative; padding-left: 22px; color: #d4cec2; font-size: 14px; }
.pillar.light li { color: #5e5a53; }
.pillar li::before { content: "↳"; position: absolute; left: 0; color: var(--ember); font-family: var(--mono); }

.capability-strip { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: end; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.capability-strip h3 { margin: 0; font-family: var(--display); font-size: 31px; letter-spacing: -.045em; line-height: 1; }
.capability-strip p { margin: 10px 0 0; color: #aaa399; font-size: 14px; }
.capability-list { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.capability-list span { padding: 7px 9px; border: 1px solid var(--line); border-radius: 99px; color: #c8c1b6; font-family: var(--mono); font-size: 10px; }

.cloud-band { position: relative; overflow: hidden; color: var(--paper); background: var(--ink); }
.cloud-band::after { content: ""; position: absolute; right: -120px; bottom: -220px; width: 520px; height: 520px; border: 1px solid rgba(239,119,79,.28); border-radius: 50%; box-shadow: 0 0 0 30px rgba(239,119,79,.04), 0 0 0 60px rgba(239,119,79,.025); pointer-events: none; }
.cloud-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr); gap: 60px; align-items: center; }
.cloud-band h2 { max-width: 650px; }
.cloud-band .section-intro { max-width: 580px; }
.pilot-stamp { display: inline-flex; margin: 26px 0 0; padding: 9px 12px; border: 1px solid rgba(239,119,79,.55); border-radius: 99px; color: #ffac8c; font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.cloud-side { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.035); }
.cloud-side img { width: 100%; aspect-ratio: 1.65 / 1; object-fit: cover; border-bottom: 1px solid var(--line); }
.cloud-side-copy { padding: 25px 26px 26px; }
.cloud-side p { margin: 0; color: #bcb5aa; font-size: 13px; }
.cloud-side strong { display: block; margin-bottom: 10px; color: var(--paper); font-family: var(--display); font-size: 31px; letter-spacing: -.04em; line-height: 1; }
.cloud-side .button { margin-top: 22px; }

.faq { max-width: 850px; }
details { padding: 19px 0; border-top: 1px solid var(--line-dark); }
details:last-child { border-bottom: 1px solid var(--line-dark); }
summary { display: flex; justify-content: space-between; gap: 20px; cursor: pointer; font-size: 17px; font-weight: 750; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--ember-deep); font-family: var(--mono); font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { max-width: 720px; margin: 13px 0 3px; color: #706b62; font-size: 14px; }

.final-cta { color: var(--paper); background: var(--ember-deep); }
.final-cta .section-head { margin-bottom: 0; }
.final-cta h2 { color: var(--paper); }
.final-cta .section-intro { color: rgba(244,240,232,.8); }
.final-cta .button.primary { background: var(--paper); }
.final-cta .button.primary:hover { background: var(--ink); color: var(--paper); }

.site-footer { color: var(--paper); background: var(--ink); padding: 36px 0 44px; }
.footer-top { display: flex; justify-content: space-between; gap: 28px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.footer-note { max-width: 380px; margin: 13px 0 0; color: #948e84; font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; }
.footer-links a { color: #bbb4a8; font-size: 12px; text-decoration: none; }
.footer-links a:hover { color: var(--paper); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; color: #777168; font-family: var(--mono); font-size: 10px; }

/* Cloud route */
.page-hero { color: var(--paper); background: var(--ink); padding: clamp(58px, 9vw, 110px) 0 84px; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .58fr); gap: 70px; align-items: end; }
.page-hero h1 { max-width: 780px; margin: 20px 0; font-family: var(--display); font-size: clamp(50px, 7vw, 96px); letter-spacing: -.075em; line-height: .91; }
.page-hero h1 em { color: var(--ember); font-style: normal; }
.page-hero .lede { max-width: 620px; margin: 0; color: #c7c0b5; font-size: 19px; }
.page-aside { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.045); }
.page-aside .micro { color: var(--ember); }
.page-aside strong { display: block; margin: 18px 0 8px; font-family: var(--display); font-size: 34px; letter-spacing: -.05em; line-height: .95; }
.page-aside p { margin: 0; color: #a8a197; font-size: 13px; }
.cloud-section { padding: clamp(70px, 9vw, 120px) 0; }
.cloud-section h2 { margin: 0 0 16px; font-family: var(--display); font-size: clamp(38px, 5vw, 64px); letter-spacing: -.065em; line-height: .98; }
.cloud-section .lede { max-width: 680px; margin: 0; color: #6f6a61; font-size: 18px; }
.cloud-preview-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr); gap: clamp(34px, 6vw, 76px); align-items: center; }
.preview-inline { position: relative; max-width: 680px; margin-top: 34px; overflow: hidden; border: 1px solid var(--line-dark); border-radius: var(--radius); background: #d8d0c3; }
.preview-inline img { width: 100%; aspect-ratio: 1.52 / 1; object-fit: cover; }
.preview-inline-label { position: absolute; left: 14px; bottom: 12px; padding: 7px 9px; border: 1px solid rgba(23,23,22,.18); border-radius: 99px; color: var(--ink); background: rgba(244,240,232,.9); font-family: var(--mono); font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.pilot-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(190px, .9fr); gap: 28px; padding: clamp(25px, 4vw, 44px); border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--paper-warm); }
.pilot-card h3 { margin: 14px 0; font-family: var(--display); font-size: 36px; letter-spacing: -.055em; line-height: .98; }
.pilot-card p { margin: 0; color: #706b62; font-size: 14px; }
.pilot-points { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.pilot-points li { position: relative; padding: 11px 0 11px 27px; border-bottom: 1px solid var(--line-dark); color: #5e5a53; font-size: 14px; }
.pilot-points li::before { content: "✓"; position: absolute; left: 0; color: var(--ember-deep); font-family: var(--mono); }
.pilot-points li:last-child { border-bottom: 0; }
.boundary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 44px; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.boundary { padding: 24px 24px 28px 0; border-right: 1px solid var(--line-dark); }
.boundary + .boundary { padding-left: 24px; }
.boundary:last-child { border-right: 0; }
.boundary h3 { margin: 17px 0 9px; font-family: var(--display); font-size: 27px; letter-spacing: -.045em; line-height: 1; }
.boundary p { margin: 0; color: #706b62; font-size: 13px; }
.callout { padding: 22px 24px; border-left: 3px solid var(--ember); background: #e2dbcf; }
.callout p { margin: 0; color: #5f5a52; font-size: 14px; }
.callout strong { color: var(--ink); }
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 44px; }
.process-step { padding: 20px; border: 1px solid var(--line-dark); border-radius: 14px; background: var(--paper); }
.process-step b { color: var(--ember-deep); font-family: var(--mono); font-size: 11px; }
.process-step h3 { margin: 25px 0 8px; font-size: 16px; }
.process-step p { margin: 0; color: #706b62; font-size: 13px; }

/* Gateway route */
.gateway-hero { padding-bottom: 74px; }
.matrix-wrap { overflow-x: auto; margin-top: 42px; border: 1px solid var(--line-dark); border-radius: 16px; }
.matrix { width: 100%; min-width: 800px; border-collapse: collapse; font-size: 13px; }
.matrix th { padding: 14px 16px; color: #777168; background: #e2dbcf; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.matrix td { padding: 14px 16px; border-top: 1px solid var(--line-dark); vertical-align: top; color: #5f5a52; }
.matrix td:first-child { color: var(--ember-deep); font-family: var(--mono); font-weight: 700; }
.matrix strong { color: var(--ink); }
.gateway-intro { max-width: 680px; margin: 20px 0 0; color: #746f66; font-size: 18px; }
.gateway-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 42px; }
.note-card { padding: 22px; border: 1px solid var(--line-dark); border-radius: 14px; }
.note-card h3 { margin: 0 0 8px; font-family: var(--display); font-size: 24px; letter-spacing: -.04em; }
.note-card p { margin: 0; color: #706b62; font-size: 13px; }

@media (max-width: 1060px) {
  .hero-grid { grid-template-columns: minmax(0, .78fr) minmax(440px, 1.22fr); gap: 42px; }
}
@media (max-width: 900px) {
  .hero-grid, .cloud-grid, .page-hero-grid, .cloud-preview-grid { grid-template-columns: 1fr; gap: 48px; }
  .preview-figure { max-width: 760px; }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .proof-grid { grid-template-columns: 1fr; max-width: 720px; }
  .proof-card { display: grid; grid-template-columns: minmax(230px, .85fr) 1fr; }
  .still-frame { aspect-ratio: auto; min-height: 100%; }
  .capability-strip { grid-template-columns: 1fr; }
  .capability-list { justify-content: flex-start; }
  .page-hero-grid { align-items: start; }
  .process { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-inner { min-height: 65px; }
  .site-nav.nav-enhanced .nav-toggle { display: inline-flex; }
  .nav-links { position: absolute; display: flex; left: var(--gutter); right: var(--gutter); top: calc(100% + 8px); flex-direction: column; align-items: stretch; gap: 0; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #272725; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
  .site-nav.nav-enhanced .nav-links { display: none; }
  .site-nav.nav-enhanced .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 10px; }
  .nav-links .nav-cta { margin-top: 6px; text-align: center; }
  .hero h1, .page-hero h1 { font-size: clamp(49px, 15vw, 76px); }
  .preview-caption { align-items: flex-start; flex-direction: column; gap: 7px; }
  .proof-card { display: block; }
  .still-frame { aspect-ratio: 1.35 / 1; min-height: 0; }
  .pillars, .pilot-card { grid-template-columns: 1fr; }
  .boundary-grid, .gateway-notes { grid-template-columns: 1fr; }
  .boundary, .boundary + .boundary { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .boundary:last-child { border-bottom: 0; }
  .footer-top, .footer-bottom { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 420px) {
  .actions .button { width: 100%; }
  .preview-browser { padding: 12px 12px 0; }
  .window-head { padding-bottom: 10px; font-size: 8px; }
  .window-label-right { display: none; }
  .process { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(244,240,232,.35); --line-dark: rgba(23,23,22,.38); }
}
