/* DESIGN.md styling promoted from the reviewed trial. Existing product layout and media remain.
   Montserrat static 400/500/600 assets are an explicit fallback: the handoff's
   variable font was not supplied. No monospace content needs an additional font. */
:root {
  --font-body: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-heading: Montserrat, sans-serif;
  --control-hover: var(--control-surface-hover);
  --sea: var(--foreground);
  --deep-sea: var(--card);
  --hero-accent: var(--primary);
  /* Fixed inverse pair for text over original photos and dark technical media. */
  --media-surface: oklch(0.255 0.013 242);
  --media-foreground: oklch(0.97 0.007 242);
}
/* The header scrolls away: section links should land flush with the viewport. */
html { scroll-padding-top: 0; }
body { font: 400 1rem/1.5rem var(--font-body); }
h1, h2, h3 { font-family: var(--font-heading); letter-spacing: 0; text-wrap: pretty; }
.hero h1, .projects-intro h1, h1 {
  font-size: 1.5rem; line-height: 2rem; font-weight: 600;
}
h2, .contact-title, .capabilities-section h2, .project-player .story-heading h2 {
  font-size: 1.125rem; line-height: 1.75rem; font-weight: 500;
}
h3, .hardware-column-heading h3, .model-copy h3, .tile-copy h3,
.contact-expanded form h3, .contact-copy .team-person h3, .architecture-copy h3 {
  font-size: 1rem; line-height: 1.5rem; font-weight: 500;
}
p, .teledrive-section .section-heading>p, .project-player .story-summary {
  font-size: 1rem; line-height: 1.5rem;
}
.architecture-copy p, .cap-grid p, .hardware-column-heading p,
.model-copy dl>div, .commander-features li, .project-player .story-content>p,
.team-email, .contact-copy .team-email, .contact-copy .team-phone,
.platform-links a, #nav, .footer-line p {
  font-family: var(--font-body); font-size: .875rem; line-height: 1.25rem;
}
.contact-copy .team-person .team-role, .story-heading>span,
.field-proof figcaption, .project-story figcaption, .project-story dt,
.contact-expanded .form-note, .contact-expanded #form-status,
.footer-bottom, .footer-bottom .inline-link, caption {
  font-size: .75rem; line-height: 1rem; font-weight: 400;
}
.contact-title em, .hero-accent { color: inherit; font-style: normal; }
a:hover { color: var(--foreground); }
a, button { transition: color 150ms cubic-bezier(.4,0,.2,1), background-color 150ms cubic-bezier(.4,0,.2,1), border-color 150ms cubic-bezier(.4,0,.2,1); }
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible,
.contact-expanded input:focus-visible, .contact-expanded textarea:focus-visible {
  outline: 1px solid var(--ring); outline-offset: 0;
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 50%, transparent);
}
.wrap { width: 100%; max-width: 80rem; padding-inline: 1rem; }
.site-header { gap: 1.5rem; padding-inline: 1rem; background: var(--background); }
.home .site-header { color: var(--media-foreground); }
#nav { gap: 1.5rem; }
#nav .button { font: 500 .875rem/1.25rem var(--font-body); }
#nav>a:not(.button) {
  border: 0; background: transparent; color: inherit;
  font: 500 .875rem/1.25rem var(--font-body);
  text-decoration-thickness: 1px; text-underline-offset: 4px;
}
#nav>a:not(.button):is(:hover,[aria-current=page]) {
  background: transparent; color: inherit; text-decoration-line: underline;
}
.section-heading { gap: 1.5rem; margin-bottom: 2rem; }
.section-heading>div p { margin-bottom: 1rem; }
.system-section, .models, .field-proof, .projects-overview,
.teledrive-section, .contact-expanded, .capabilities-section { padding-block: 2rem; }
.system-section, .models, .teledrive-section { background: var(--background); }
.field-proof, .projects-overview, .contact-expanded { background: var(--card); }
.capabilities-section { background: var(--muted); }
.capabilities-section h2 { margin-bottom: 1.5rem; }
.cap-grid { gap: 1.5rem; }
.cap-icon, .capabilities-section .cap-icon { color: var(--foreground); margin-bottom: 1rem; }
.cap-grid h3 { margin-bottom: .5rem; }
.hero-inner { padding-block: 3rem; gap: 1.5rem; }
.hero h1 { color: var(--media-foreground); }
.button, .menu {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .375rem; min-height: 2.25rem; height: 2.25rem;
  padding: 0 .625rem; border-radius: 8px; border: 1px solid transparent;
  font: 500 .875rem/1.25rem var(--font-body);
  letter-spacing: 0; max-width: 100%; flex-shrink: 0;
}
.button:has(>.icon) { padding-inline-end: .5rem; }
.button:has(>.model-check) { padding-inline-start: .5rem; padding-inline-end: .625rem; }
.button>.icon, .menu>.icon { width: 1rem; height: 1rem; margin: 0; flex: none; }
.button.primary {
  background: var(--primary); border-color: transparent; color: var(--primary-foreground);
  box-shadow: none;
}
.button.primary:is(:hover,[aria-expanded=true]) {
  background: var(--primary-hover); border-color: transparent; color: var(--primary-foreground);
}
.button.primary:active { background: var(--primary-pressed); }
.button.outline, .menu {
  border-color: var(--border); background: var(--control-surface); color: var(--foreground);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 5%);
}
.button.outline:is(:hover,[aria-expanded=true],[aria-pressed=true]),
.menu:is(:hover,[aria-expanded=true]), .project-tile:hover .tile-link {
  border-color: var(--border); background: var(--control-surface-hover); color: var(--foreground);
}
.button:is(.primary,.outline):focus-visible, .menu:focus-visible {
  border-color: var(--ring); outline: none;
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 50%, transparent);
}
.button:active:not([aria-haspopup]), .menu:active { transform: translateY(1px); }
.button[aria-haspopup]:active { transform: none; }
.button:is(:disabled,[aria-disabled=true]), .menu:is(:disabled,[aria-disabled=true]) {
  opacity: .5; pointer-events: none; transform: none;
}
.button.primary:is(:disabled,[aria-disabled=true]) { background: var(--primary); border-color: transparent; color: var(--primary-foreground); }
.button.outline:is(:disabled,[aria-disabled=true]), .menu:is(:disabled,[aria-disabled=true]) { background: var(--control-surface); border-color: var(--border); color: var(--foreground); }
.menu { display: none; width: 2.5rem; height: 2.5rem; padding: 0; }
.model-picker { gap: .5rem; min-height: 2.25rem; margin-top: 1rem; }
.model-picker .model-check { opacity: 0; }
.model-picker [aria-pressed=true] .model-check { opacity: 1; }
.inline-link { font: 500 .875rem/1.25rem var(--font-body); gap: .375rem; }
.inline-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.hardware-columns, .project-context { gap: 1.5rem; }
.onboard-models { padding-left: 1.5rem; }
.hardware-column-heading { min-height: 4rem; }
.hardware-column-heading h3 { margin-bottom: .5rem; }
.model-image, .commander-render { background: transparent; margin-block: 1.5rem; }
.commander-render { margin-top: 4.75rem; }
.model-image>img, .commander-render>img { filter: none; }
.commander-description p { margin-bottom: 1rem; }
.commander-features { margin: 1rem 0; }
.commander-features li { gap: .5rem; }
.commander-features .icon { color: var(--foreground); }
.model-copy h3 { margin-bottom: 1rem; }
.model-copy dl>div { padding-block: .5rem; }
.comparison { margin-top: 2rem; }
.comparison summary { padding-block: 1rem; font: 500 .875rem/1.25rem var(--font-body); }
table { font: 400 .875rem/1.25rem var(--font-body); }
td, th { padding: .5rem; }
thead th { height: 2.5rem; font-weight: 500; }
thead { background: var(--muted); }
.project-grid { border-color: var(--border); }
.project-tile { border-color: var(--border); background: var(--media-surface); color: var(--media-foreground); }
.project-tile:hover { color: var(--media-foreground); }
.tile-copy { inset-inline: 1.5rem; bottom: 1.5rem; }
.tile-copy h3 { color: var(--media-foreground); }
.tile-link { margin-top: 1rem; }
.projects-intro { padding-block: 2rem; }
.projects-intro>.inline-link, .projects-intro .section-heading { margin-bottom: 1.5rem; }
.platform-links { gap: .5rem 1.5rem; }
.platform-links a { padding-block: .5rem; color: var(--muted-foreground); }
.platform-links a[aria-current=true] { color: var(--foreground); border-bottom-color: var(--foreground); }
.photo-pending { background: var(--muted); }
.project-story .story-summary { margin-bottom: .75rem; }
.project-player .project-story dl { margin-top: 1.5rem; }
.project-player .project-story figcaption { width: 100%; max-width: 80rem; padding-inline: 1rem; }
.project-player .project-story .platform-photo figcaption { padding-inline: 0; }
.project-context { padding-top: 1.5rem; }
.contact-expanded .contact-inner { gap: 1.5rem; }
.contact-title { margin-bottom: 1rem; }
.contact-expanded .contact-inner p { margin-bottom: 1rem; }
.contact-copy .team-person { gap: 1rem; padding-block: 1rem; }
.contact-copy .team-person>img { border-radius: 6px; }
.contact-copy .team-person h3 { margin-bottom: .25rem; }
.contact-copy .team-person .team-role { margin: .25rem 0 .5rem; }
.contact-copy .team-email, .contact-copy .team-phone { min-height: 1.75rem; }
.team-email:hover, .team-phone:hover { color: var(--foreground); text-decoration: underline; text-underline-offset: 4px; }
.contact-expanded form { padding: 1.5rem; border: 0; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--border), 0 1px 2px 0 rgb(0 0 0 / 5%); }
.contact-expanded form h3 { margin-bottom: 1.5rem; }
.contact-expanded label { margin-bottom: 1.75rem; font: 500 .875rem/1.25rem var(--font-body); }
.contact-expanded input, .contact-expanded textarea {
  border-color: var(--control-boundary); background: var(--control-surface);
  color: var(--foreground); border-radius: 8px; margin-top: .75rem;
  padding: .25rem .625rem; font: 400 .875rem/1.25rem var(--font-body);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 5%);
}
.contact-expanded input { height: 2.25rem; }
.contact-expanded textarea { min-height: 4rem; padding-block: .5rem; resize: vertical; }
.contact-expanded :is(input,textarea):focus-visible { border-color: var(--ring); outline: none; }
.contact-expanded :is(input,textarea):is([aria-invalid=true],:user-invalid) {
  border-color: var(--destructive);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--destructive) 20%, transparent);
}
.contact-expanded :is(input,textarea):is([aria-invalid=true],:user-invalid):focus-visible {
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 50%, transparent);
}
.contact-expanded :is(input,textarea):disabled { opacity: .5; cursor: not-allowed; }
.footer-line { padding-block: 2rem; gap: 1.5rem; }
.footer-bottom { padding-block: 1.5rem; }
/* Keep source artwork legible in both themes, rather than recoloring its pixels. */
.architecture-interactive, .teledrive-media { background: var(--media-surface); }
.architecture-scroll { margin-bottom: 2rem; }
.architecture-copy { gap: 1.5rem; }
.architecture-copy h3 { margin-bottom: .5rem; }
.architecture-region, .architecture-base { transition: opacity 200ms cubic-bezier(.4,0,.2,1); filter: none; }
.architecture-ready .architecture-copy article { transition: opacity 200ms cubic-bezier(.4,0,.2,1), transform 200ms cubic-bezier(.4,0,.2,1); }
.architecture-signal { animation: none!important; }
.gateway-intro { animation-duration: 200ms; background: var(--media-surface); }
.intro-wordmark { animation-duration: 200ms; }
.intro-signal { display: none; }
::view-transition-old(root) { animation-duration: 100ms; }
::view-transition-new(root) { animation-duration: 200ms; }
html[data-theme=light] .site-header:not(.home .site-header) .brand img,
html[data-theme=light] footer .brand img { filter: brightness(0); }
@media(min-width:48rem) { .wrap, .site-header { padding-inline: 1.5rem; } .project-player .project-story figcaption { padding-inline: 1.5rem; } }
@media(min-width:80rem) { .wrap, .site-header { padding-inline: 2rem; } .project-player .project-story figcaption { padding-inline: 2rem; } }
@media(max-width:767px) { .contact-expanded input, .contact-expanded textarea { font-size: 1rem; line-height: 1.5rem; } }
@media(max-width:699px) { .architecture-copy { gap: 1.5rem; } .architecture-copy article { margin: 0; } }
@media(max-width:600px) {
  .section-heading>p, .section-heading>div { margin-top: 1rem; }
  .onboard-models { padding: 1.5rem 0 0; }
  .commander-render { margin-top: 1.5rem; }
  .model-picker { margin-top: 1rem; }
  .contact-expanded form { margin-top: 1.5rem; }
  .contact-expanded .contact-inner>div { margin-top: 0; }
  .project-context { gap: 1.5rem; }
  #nav.open { background: var(--popover); color: var(--popover-foreground); padding: .5rem; }
  #nav.open>a:not(.button) { min-height: 2.25rem; padding: .5rem; }
}
@media(prefers-reduced-motion:reduce) {
  a, button, .architecture-region, .architecture-base,
  .architecture-ready .architecture-copy article { transition: none; }
  .gateway-intro { display: none; }
  .button:active:not([aria-haspopup]), .menu:active { transform: none; }
}
@media(forced-colors:active) {
  a:focus-visible, button:focus-visible, summary:focus-visible,
  input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible,
  .button:is(.primary,.outline):focus-visible, .menu:focus-visible,
  .contact-expanded :is(input,textarea):focus-visible { outline: 3px solid Highlight; box-shadow: none; }
}
