:root {
    color-scheme: light;
    --brand-ink: #26303b;
    --brand-paper: #f3eee5;
    --brand-green: #598073;
    --brand-light: #d4e4bc;
    --brand-blue: #4b83a6;
    --brand-warm: #e3b185;
    --bg-0: #f3eee5;
    --bg-1: #eae4d8;
    --bg-2: #c8c4bb;
    --fg-0: #3e4b57;
    --fg-1: #26303b;
    --dim-0: #56626b;
    --highlight: #26303b;
    --focus-color: #4b83a6;
    --button-bg: #26303b;
    --button-fg: #f3eee5;
    --accent: #e3b185;
    --hero-em: #598073;
    --shadow: rgba(38, 48, 59, .45);
    --display: "Avenir Next", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}
[data-theme="dark"] {
    color-scheme: dark;
    --bg-0: #26303b;
    --bg-1: #2e3946;
    --bg-2: #526171;
    --fg-0: #d2d3cf;
    --fg-1: #f3eee5;
    --dim-0: #b0bbb9;
    --highlight: #d4e4bc;
    --focus-color: #d4e4bc;
    --button-bg: #d4e4bc;
    --button-fg: #26303b;
    --hero-em: #d4e4bc;
    --shadow: rgba(0, 0, 0, .55);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 128px; }
body { font-family: var(--display); font-size: 1rem; line-height: 1.75; color: var(--fg-0); background: var(--bg-0); -webkit-font-smoothing: antialiased; }
::selection { color: var(--brand-ink); background: var(--brand-light); }
[hidden] { display: none !important; }
a { color: var(--highlight); text-underline-offset: 0.3em; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--focus-color); outline-offset: 6px; }
.container { max-width: 1440px; margin-inline: auto; padding-inline: 64px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 200; padding: 12px 20px; background: var(--bg-0); transform: translateY(-180%); }
.skip-link:focus { transform: none; }

/* Header and the Pazu signature lockup */
header { position: sticky; top: 0; z-index: 100; background: var(--bg-0); border-bottom: 1px solid var(--bg-2); }
.navigation { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 16px; }
.brand { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-start; color: var(--fg-1); text-decoration: none; line-height: 1; }
.brand-signature { display: block; width: 135px; height: 50px; background-color: currentColor; -webkit-mask: url("pazu-logo.svg") left center / contain no-repeat; mask: url("pazu-logo.svg") left center / contain no-repeat; }
.brand-word { display: block; margin: 3px 0 0 3px; font: 600 12px/1 var(--display); letter-spacing: .52em; }
.brand-by { display: block; margin: 6px 0 0 3px; color: var(--dim-0); font: 500 9.5px/1 var(--display); letter-spacing: .1em; }
@media (forced-colors: active) { .brand-signature { forced-color-adjust: none; background-color: CanvasText; } }
.nav-links { display: flex; flex-wrap: wrap; gap: 12px 28px; list-style: none; }
.nav-links a { display: inline-block; color: var(--fg-0); text-decoration: none; padding-block: 8px; font-size: 0.82rem; font-weight: 550; }
.nav-links a:hover { color: var(--highlight); }
.nav-links a[aria-current="location"] { color: var(--highlight); text-decoration: underline; text-decoration-color: var(--brand-blue); text-underline-offset: .55em; }
.theme-toggle { display: flex; flex-shrink: 0; padding: 3px; border: 1px solid var(--bg-2); border-radius: 24px; gap: 2px; }
.theme-toggle button { cursor: pointer; border: 0; border-radius: 20px; padding: 6px 10px; background: transparent; color: var(--fg-0); font-size: 0.68rem; }
.theme-toggle button[aria-pressed="true"] { background: var(--button-bg); color: var(--button-fg); }

/* Sections and type */
section { padding-block: 112px; border-bottom: 1px solid var(--bg-2); position: relative; }
.surface { background: var(--bg-1); }
.eyebrow, .index { color: var(--highlight); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.66rem; font-weight: 500; letter-spacing: 0.15em; line-height: 1.7; text-transform: uppercase; margin-bottom: 28px; }
h1, h2, h3 { color: var(--fg-1); font-family: var(--display); font-weight: 500; line-height: 1.13; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 4.2vw, 4.6rem); letter-spacing: -0.065em; margin-bottom: 30px; }
h1 em { color: var(--hero-em); font-style: normal; }
h2 { font-size: clamp(2rem, 3.2vw, 3.3rem); letter-spacing: -0.05em; max-width: 940px; margin-bottom: 28px; }
h3 { font-size: 1.35rem; line-height: 1.3; margin-bottom: 18px; letter-spacing: -0.03em; }
.section-intro { max-width: 780px; margin-bottom: 46px; }
.prose { max-width: 760px; }
.hero-copy p + p, .prose p + p { margin-top: 20px; }
.closing { max-width: 880px; margin-top: 40px; }
.note { font-size: 0.85rem; color: var(--dim-0); margin-top: 24px; }

/* Hero: headline beside a short fleet loop */
.hero { padding-block: 64px 88px; overflow: clip; }
.hero-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); column-gap: 56px; align-items: center; }
.hero-main { position: relative; z-index: 1; padding-block: 30px; }
.hero .eyebrow { display: flex; align-items: center; gap: 10px; }
.hero .eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-green); flex-shrink: 0; }
.hero-copy { max-width: 590px; font-size: 0.99rem; }
.hero-copy p:first-child { color: var(--fg-1); font-size: 1.08rem; }
.hero-visual { position: relative; margin: 0; border: 1px solid var(--bg-2); background: var(--brand-ink); box-shadow: 0 24px 60px -30px var(--shadow); }
.hero-visual video, .hero-visual img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--brand-ink); }
.hero-chip { position: absolute; top: 14px; left: 14px; padding: 5px 10px; border-radius: 99px; background: rgba(38, 48, 59, .78); color: var(--brand-paper); font: 600 10px/1.4 ui-monospace, SFMono-Regular, monospace; letter-spacing: .12em; }
.hero-visual figcaption { padding: 12px 16px; color: #d2d3cf; background: var(--brand-ink); font-size: .78rem; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 32px; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 18px; background: var(--button-bg); color: var(--button-fg); font-weight: 650; font-size: 0.8rem; text-decoration: none; padding: 17px 20px; line-height: 1.5; border: 1px solid transparent; transition: transform 180ms ease, box-shadow 180ms ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--bg-2); }
.button span { font-size: 1.2rem; font-weight: 400; }
.text-link { font-size: 0.8rem; color: var(--fg-0); text-decoration-color: var(--brand-blue); }
.text-link span { color: var(--highlight); margin-left: 4px; }

/* Demos */
.perception-demo, .capability-demo { margin-top: 64px; border: 1px solid var(--bg-2); }
.fleet-demo { margin-top: 40px; margin-bottom: 32px; }
.demo-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding: 24px; }
.demo-heading .eyebrow { margin-bottom: 10px; }
.demo-heading h3 { margin-bottom: 0; }
.demo-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-controls button { cursor: pointer; border: 1px solid var(--bg-2); background: transparent; color: var(--fg-0); padding: 10px 14px; font-size: .8rem; }
.demo-controls button[aria-pressed="true"] { color: var(--button-fg); background: var(--button-bg); border-color: var(--button-bg); }
.demo-images { background: var(--brand-ink); }
.demo-images img, .demo-images video { display: block; width: 100%; height: auto; aspect-ratio: 8 / 7; object-fit: contain; background: var(--brand-ink); }
.demo-images-wide img, .demo-images-wide video { aspect-ratio: 16 / 9; }
.perception-demo figcaption, .capability-demo figcaption { padding: 18px 24px; }
.demo-images .reduced-motion-still, .perception-tile .reduced-motion-still, .hero-visual .reduced-motion-still { display: none; }
.demo-subhead { padding: 14px 24px; color: var(--fg-1); font-size: .85rem; border-top: 1px solid var(--bg-2); }
.demo-description { color: var(--fg-1); font-size: .85rem; }
.text-prompt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--bg-2); }
.text-prompt-grid > .perception-tile:first-child { grid-column: 1 / -1; }
.text-prompt-grid .perception-tile video, .text-prompt-grid .perception-tile img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.pose-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--bg-2); }
.pose-grid .perception-tile video, .pose-grid .perception-tile img { aspect-ratio: 16 / 9; }
.perception-scene { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--bg-2); }
.perception-tile { min-width: 0; margin: 0; background: var(--bg-0); }
.perception-tile img, .perception-tile video { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; background: var(--brand-ink); }
.perception-tile figcaption { padding: 12px 16px; color: var(--fg-1); font-size: .8rem; }
.scene-controls { align-items: center; }
.scene-controls [data-scene-motion] { display: inline-grid; place-items: center; padding: 10px; width: 42px; height: 42px; }
[data-scene-motion] svg { grid-area: 1 / 1; width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; }
[data-scene-motion] .scene-pause-icon { fill: none; }
[data-scene-motion] .scene-play-icon { display: none; fill: currentColor; stroke: none; }
[data-scene-motion][data-paused="true"] .scene-pause-icon { display: none; }
[data-scene-motion][data-paused="true"] .scene-play-icon { display: block; }
.scene-progress { height: 3px; background: var(--bg-2); overflow: hidden; }
.scene-progress span { display: block; height: 100%; background: var(--highlight); transform: scaleX(0); transform-origin: left center; }
[data-scene-count] { min-width: 3rem; text-align: center; font-size: .8rem; }
@media (prefers-reduced-motion: reduce) {
    .has-reduced-motion-still video { display: none; }
    .demo-images .reduced-motion-still, .perception-tile .reduced-motion-still, .hero-visual .reduced-motion-still { display: block; }
}

/* Fleet results */
.results-strip { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; border-top: 1px solid var(--bg-2); }
.results-strip li { padding: 18px 20px 2px 0; color: var(--dim-0); font-size: .85rem; line-height: 1.45; }
.results-strip strong { display: block; margin-bottom: 6px; color: var(--fg-1); font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; }
.results-note { margin-top: 14px; color: var(--dim-0); font-size: .75rem; }

/* Capabilities and applications */
.research-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--bg-2); border-left: 1px solid var(--bg-2); }
.card { position: relative; padding: 36px; border-right: 1px solid var(--bg-2); border-bottom: 1px solid var(--bg-2); transition: background 180ms ease; }
.card:hover { background: var(--bg-0); }
.card h3 { max-width: 340px; }
.index { font-size: 0.62rem; margin-bottom: 30px; }
.card > p:not(.index):not(.objective) { max-width: 490px; }
.objective { margin-top: 26px; color: var(--dim-0); font-size: 0.85rem; line-height: 1.7; }
.application-label { color: var(--highlight); font: 0.67rem/1.7 ui-monospace, monospace; margin-bottom: 28px; }
.application-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.application { background: var(--bg-1); border: 1px solid var(--bg-2); border-top: 2px solid var(--brand-blue); padding: 30px; }
.application h3 { font-size: 1.2rem; }
.application > p { font-size: 0.9rem; }
.application .index { margin-bottom: 14px; color: var(--dim-0); font-size: 0.62rem; }
.application .application-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; }

/* How we work */
.stages { list-style: none; counter-reset: stage; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 60px; }
.stages li { counter-increment: stage; border-top: 1px solid var(--brand-blue); padding: 24px 28px 12px 0; }
.stages li::before { content: "0" counter(stage); display: block; color: var(--highlight); font: 0.75rem ui-monospace, monospace; margin-bottom: 32px; }
.stages h3 { font-size: 1.15rem; }
.stages p { font-size: 0.85rem; }

/* About */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 100px; }
.split h2 { margin-bottom: 0; }
#about .prose { padding-top: 40px; }
.role { color: var(--highlight); margin-top: -8px; margin-bottom: 24px; font-size: 0.9rem; }

/* Contact */
#contact { padding-block: 100px; background: var(--brand-warm); color: var(--brand-ink); }
#contact h2 { color: var(--brand-ink); font-size: clamp(2.5rem, 4vw, 4.2rem); }
#contact .eyebrow, #contact .note, #contact a { color: var(--brand-ink); }
#contact :focus-visible { outline-color: var(--brand-ink); }
.contact-email { display: inline-block; margin-block: 22px 8px; font-size: clamp(1.15rem, 2.5vw, 1.7rem); letter-spacing: -0.03em; overflow-wrap: anywhere; }
.contact-email span { margin-left: 14px; }
.contact-investors { margin-top: 18px; }

/* Footer */
[id] { scroll-margin-top: 20px; }
footer { padding-block: 30px; color: var(--dim-0); font-size: 0.7rem; }
footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer a { color: var(--fg-1); }
footer .container.media-notes { display: block; padding-top: 22px; }
.media-notes p { max-width: 120ch; font-size: .65rem; line-height: 1.7; color: var(--dim-0); }

/* Responsive */
@media (min-width: 1600px) { .hero { padding-top: 90px; } }
@media (max-width: 1100px) {
    .container { padding-inline: 36px; }
    .nav-links { gap: 10px 18px; }
    .brand-signature { width: 122px; height: 45px; }
    .hero-layout { column-gap: 36px; }
    .split { gap: 50px; }
    .application { padding: 20px; }
}
@media (max-width: 900px) {
    .hero-layout { grid-template-columns: 1fr; row-gap: 32px; }
    .hero-main { max-width: 660px; padding-block: 12px 0; }
    h1 { font-size: clamp(2.8rem, 8vw, 4.4rem); }
}
@media (max-width: 850px) {
    .navigation { flex-wrap: wrap; gap: 14px 20px; min-height: 80px; }
    .nav-links { order: 3; width: 100%; justify-content: space-between; gap: 4px 14px; }
    .split { grid-template-columns: 1fr; gap: 28px; }
    #about .prose { padding-top: 0; }
    .application-grid { gap: 20px; }
    .application { padding: 28px; }
    .application .index { margin-bottom: 8px; }
    .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
    html { scroll-padding-top: 170px; }
}
@media (max-width: 720px) { .pose-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
    .container { padding-inline: 22px; }
    section { padding-block: 68px; }
    .navigation { padding-block: 12px 8px; gap: 8px; }
    .brand-signature { width: 108px; height: 40px; }
    .brand-word { font-size: 10px; }
    .brand-by { font-size: 8.5px; margin-top: 5px; }
    .nav-links a { font-size: 0.68rem; padding-block: 8px; }
    .nav-links { gap: 2px 10px; }
    .theme-toggle button { font-size: 0.6rem; padding: 7px 8px; }
    .hero { padding-block: 25px 56px; }
    h1 { font-size: clamp(2.5rem, 10.5vw, 3.6rem); }
    h2 { font-size: 2.15rem; }
    .hero-copy, .hero-copy p:first-child { font-size: 0.95rem; }
    .eyebrow { font-size: 0.58rem; letter-spacing: 0.1em; }
    .actions { align-items: stretch; flex-direction: column; gap: 24px; }
    .button { font-size: 0.73rem; padding: 16px; }
    .text-prompt-grid { grid-template-columns: 1fr; }
    .results-strip { grid-template-columns: 1fr; }
    .results-strip li { padding-top: 14px; }
    .research-grid { grid-template-columns: 1fr; }
    .card { padding: 28px; }
    .card h3 { max-width: 250px; }
    .application-grid { grid-template-columns: 1fr; }
    .application { padding: 26px; }
    .stages { grid-template-columns: 1fr; margin-top: 36px; }
    .stages li { padding-right: 0; }
    .stages li::before { margin-bottom: 18px; }
    #contact { padding-block: 64px; }
    #contact h2 { font-size: 2.6rem; }
    .contact-email span { margin-left: 6px; }
}
@media (max-width: 480px) {
    .perception-tile figcaption { padding: 9px 10px; font-size: .75rem; }
}
/* Short screens (phones held sideways): let the header scroll away instead of covering the page. */
@media (max-height: 520px) {
    header { position: static; }
    html { scroll-padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
