:root {
  color-scheme: dark;
  --paper: #080f19;
  --ink: #eef4ff;
  --soft: #afbdd1;
  --edge: #273951;
  --accent: #63b6ff;
  --deep-accent: #85c8ff;
  --dark: #0c1726;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --heading: "Arial Black", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 "Helvetica Neue", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
img { display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--heading); font-weight: 850; letter-spacing: -.083em; line-height: .94; }
h1 em, h2 em { font-style: normal; }
h1 em span, h2 em span { color: var(--deep-accent); }
:focus-visible { outline: 2px solid var(--deep-accent); outline-offset: 5px; }
.wrap { width: min(1392px, calc(100% - 112px)); margin-inline: auto; }
.skip { position: absolute; z-index: 3; left: 1rem; top: 1rem; background: var(--dark); padding: .5rem 1rem; transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }
.site-header { background: #0a1320; border-bottom: 1px solid var(--edge); }
.header-inner { min-height: 79px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { position: relative; display: inline-flex; align-items: center; flex-shrink: 0; isolation: isolate; }
.brand img { width: clamp(158px, 17vw, 238px); height: auto; clip-path: inset(0 84% 0 0); }
/* Fill the circuit cutout without adding a plate behind the transparent logo. */
.brand::before, .brand::after { content: ""; position: absolute; inset: 0; background: #fff; pointer-events: none; }
.brand::before { z-index: -1; clip-path: polygon(6.4% 15%, 8.7% 15%, 13% 28%, 13% 67%, 8.3% 83%, 8% 95%, 7% 95%, 6.7% 83%, 2.2% 67%, 2.2% 28%); }
.brand::after { mask: url("./biobot-logo.png") center / 100% 100% no-repeat; clip-path: inset(0 0 0 17%); }
nav { display: flex; gap: clamp(17px, 3vw, 48px); font-size: .87rem; font-weight: 650; }
nav a:hover, .footer-inner a:hover { color: var(--deep-accent); }
.header-action { border: 1px solid #567fa9; padding: 9px 13px 9px 16px; font-size: .83rem; font-weight: 750; white-space: nowrap; }
.header-action span { margin-left: 13px; }
.header-action:hover { background: var(--ink); color: var(--paper); }
.hero { position: relative; isolation: isolate; min-height: min(730px, 55vw); display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: center; gap: 20px; padding-block: clamp(34px, 5vw, 78px); }
.hero::before { content: ""; position: absolute; z-index: -1; pointer-events: none; inset: 0 -28px; background: radial-gradient(ellipse at 76% 46%, #16457d50, transparent 65%), repeating-linear-gradient(124deg, transparent 0 91px, #568db209 92px 93px); }
.hero-copy { position: relative; padding-block: 32px 62px; }
.eyebrow, .hero-foot { font: 700 .68rem/1.5 var(--mono); letter-spacing: .105em; }
.eyebrow { display: flex; align-items: center; gap: .65rem; }
.status-dot { width: 8px; height: 8px; background: var(--accent); display: inline-block; border-radius: 50%; flex: none; }
.slash { color: #7793b4; }
.hero h1 { font-size: clamp(3.25rem, 5.55vw, 5.95rem); margin-block: 23px 25px; }
.hero h1 em { color: #8fcdff; }
.hero h1 em span { color: #338dff; }
.hero-description { max-width: 27rem; font-size: clamp(1.04rem, 1.5vw, 1.3rem); color: var(--soft); margin-bottom: 28px; }
.button { min-height: 52px; width: max-content; max-width: 100%; padding: 12px 16px; display: inline-flex; justify-content: space-between; align-items: center; gap: 23px; font-weight: 800; font-size: .94rem; }
.primary { background: var(--accent); color: #07111d; border: 1px solid #a8daff; box-shadow: 0 0 28px #2488fa35; border-radius: 0 13px 0 0; }
.primary:hover { background: #a0d5ff; }
.hero-foot { position: absolute; bottom: 10px; color: var(--soft); letter-spacing: .085em; }
.hero-foot span:first-child { margin-right: .25rem; color: var(--deep-accent); }
.lab { position: relative; min-width: 0; background: #0a1422; color: #f1f6ff; border-block: 1px solid #476e99; scroll-margin-top: 20px; box-shadow: 0 26px 70px #02060bb0; clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px)); }
.lab-header { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 13px 31px 13px 16px; font: 650 .64rem/1.4 var(--mono); letter-spacing: .13em; border-bottom: 1px solid var(--edge); background: linear-gradient(90deg,#122741,#0a1422); }
.lab-header h2 { display: flex; gap: 8px; align-items: center; font: inherit; letter-spacing: inherit; }
.lab-header > span, .muted { color: #a5bdd8; }
.lab-header .status-dot { width: 6px; height: 6px; box-shadow: 0 0 10px #63b6ffad; }
.lab-viewport { position: relative; min-height: 160px; }
#robot-cell.has-3d .robot-cell-art { visibility: hidden; }
#robot-cell .robot-cell-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.lab-controls { display: flex; justify-content: space-between; border-top: 1px solid var(--edge); }
.modes { display: flex; flex: 1; }
.modes button, .motion { min-height: 45px; background: transparent; color: #b4c9df; border: 0; border-right: 1px solid var(--edge); padding: 8px clamp(6px, 1vw, 14px); font: 650 .67rem/1.2 var(--mono); }
.modes button span { color: #edf5ff; padding-left: 4px; }
.modes button[aria-pressed="true"] { color: var(--accent); background: #399bff21; box-shadow: inset 0 2px var(--accent); }
.modes button:hover, .motion:hover { background-color: #74b7ff29; }
.motion { min-width: 44px; border-right: 0; border-left: 1px solid var(--edge); font-size: 1rem; }
.lab :focus-visible { outline-color: var(--accent); outline-offset: -4px; }
.lab-caption { min-height: 39px; color: #bbd0e8; border-top: 1px solid var(--edge); font: .69rem/1.45 var(--mono); padding: 10px 16px 10px 28px; }
.strip { background: #101f32; color: var(--ink); border-block: 1px solid #284c72; }
.strip > div { min-height: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding-block: 11px; font: 700 .71rem/1.5 var(--mono); letter-spacing: .11em; }
.strip b { color: var(--accent); font-size: .9rem; }
.capabilities, .contact { padding-block: clamp(65px, 8vw, 119px); }
.index { color: var(--deep-accent); }
.section-intro, .contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 24px; margin-block: 19px 39px; }
.section-intro h2, .contact-grid h2, .process-grid h2 { font-size: clamp(3rem, 5.9vw, 6.1rem); }
.section-intro p, .contact-grid p, .process-grid > div > p:last-child { color: var(--soft); max-width: 29rem; font-size: 1.1rem; }
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(17px, 3vw, 42px); }
.cap-card { min-width: 0; min-height: 283px; display: flex; flex-direction: column; padding: 22px 0; border-top: 1px solid #486a91; }
.cap-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 4px; min-height: 66px; }
.cap-top span, .connected dt { font: 700 .67rem/1.3 var(--mono); letter-spacing: .07em; color: var(--deep-accent); }
.cap-top svg { width: 48px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cap-card h3, .connected h3 { font-size: clamp(1.28rem, 2vw, 1.77rem); line-height: 1.07; letter-spacing: -.05em; }
.cap-card p { color: var(--soft); margin-block: 12px 22px; }
.cap-card a { margin-top: auto; width: fit-content; font-size: .86rem; font-weight: 750; text-decoration: underline; text-underline-offset: 4px; }
.cap-card a:hover { color: var(--deep-accent); }
.connected { display: grid; grid-template-columns: .85fr 2.15fr; gap: 18px; margin-bottom: 25px; border: 1px solid var(--edge); background: linear-gradient(112deg, #132943, #0d1b2c 65%); clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); padding: 23px clamp(15px, 2.3vw, 34px); }
.connected h3 { display: inline; margin-left: 5px; }
.connected p { margin-top: 6px; color: var(--soft); }
.connected dl { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; gap: 13px; margin: 0; }
.connected dl > div { border-left: 1px solid #355371; padding-left: 12px; }
.connected dd { margin: 7px 0 0; font-size: .86rem; }
.process { background: radial-gradient(ellipse at 12% 75%, #15365a, transparent 65%), #0c1726; border-block: 1px solid var(--edge); padding-block: clamp(63px, 7.7vw, 111px); }
.process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(23px, 6vw, 80px); align-items: center; }
.process-grid h2 { margin-block: 19px 22px; }
.process-grid ol { list-style: none; padding: 0; margin: 0; border-top: 1px solid #3b5473; }
.process-grid li { display: grid; grid-template-columns: 31px 1fr; gap: 13px; align-items: baseline; border-bottom: 1px solid #3b5473; padding-block: 15px; }
.process-grid li > span { color: var(--deep-accent); font: 700 .79rem/1 var(--mono); }
.process-grid h3 { font-size: 1.2rem; letter-spacing: -.035em; }
.process-grid li p { color: var(--soft); font-size: .94rem; }
.contact-grid { margin-bottom: 0; }
.contact-grid .button { margin-block: 17px 12px; }
.email { display: block; width: fit-content; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 4px; font-size: .94rem; }
footer { border-top: 1px solid var(--edge); }
.footer-inner { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 650 .65rem/1.5 var(--mono); letter-spacing: .1em; }
.footer-inner .brand img { width: 136px; }
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 64px); }
  .hero { gap: 24px; }
  .hero h1 { font-size: clamp(2.55rem, 5.2vw, 5.7rem); }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  nav { display: none; }
  .header-inner { min-height: 65px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 22px 34px; gap: 16px; }
  .hero-copy { padding-block: 18px 15px; }
  .hero::before { inset-inline: -16px; }
  .hero h1 { font-size: clamp(2.52rem, 11.6vw, 5.1rem); margin-block: 16px; }
  .hero-description { margin-bottom: 19px; }
  .hero-foot { display: none; }
  .strip > div { justify-content: center; gap: 5px 11px; font-size: .58rem; }
  .section-intro, .contact-grid, .process-grid { grid-template-columns: 1fr; gap: 17px; }
  .cap-grid { grid-template-columns: 1fr; }
  .cap-card { min-height: 0; padding: 19px 0; }
  .cap-top { min-height: 54px; }
  .connected { grid-template-columns: 1fr; }
}
@media (max-width: 410px) {
  .lab-header { padding-inline: 9px 24px; }
  .modes button, .lab-caption { font-size: .63rem; }
  .modes button span { padding-left: 1px; }
  .connected dl { grid-template-columns: 1fr; }
  .footer-inner > span { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 410px) {
  .header-inner { gap: 8px; }
  .header-action { padding-inline: 10px; }
  .header-action span { margin-left: 5px; }
  .lab-caption { padding-left: 27px; }
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 13px 19px; align-items: center; }
.sim-link { color: var(--deep-accent); font-size: .87rem; font-weight: 750; text-underline-offset: 4px; text-decoration: underline; }
.factory-film { margin: 0; }
.factory-film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #080f19; }
.factory-film figcaption { padding: 11px 16px 11px 28px; border-top: 1px solid var(--edge); color: #bbd0e8; font: .68rem/1.5 var(--mono); }
.factory-film figcaption a { text-decoration: underline; text-underline-offset: 3px; }
.sim-section { padding-bottom: clamp(65px, 8vw, 119px); scroll-margin-top: 20px; }
#simulator { width: min(100%, 760px); }
#simulator > summary { cursor: pointer; width: fit-content; border: 1px solid #567fa9; padding: 12px 16px; color: var(--deep-accent); font-weight: 750; }
#simulator[open] > summary { margin-bottom: 18px; }
