/* v2.0 refinement: quieter typography, useful media, one clear primary action. */
.rx-scene { --green: #137548; }
html { scroll-padding-top: 110px; }
header { position: sticky; top: 0; z-index: 10; }
.nav-row { min-height: 86px; gap: 24px; }
.brand { font-size: 22px; }
.brand .mark { display: block; width: 32px; height: 32px; flex: 0 0 32px; padding: 0; border-radius: 0; background: none; color: var(--ink); }
.brand .mark svg { display: block; width: 100%; height: 100%; }
.brand .mark .mark-v { fill: #3d8bff; }
nav { gap: 21px; }
nav a { min-height: 44px; display: inline-flex; align-items: center; }
.nav-interest { font-size: 13px; }
.section { padding-top: 72px; padding-bottom: 72px; }
.intro { padding-top: 58px; padding-bottom: 30px; }
.intro .eyebrow { display: none; }
h1 { letter-spacing: -.045em; }
h2 { letter-spacing: -.04em; }
.intro h1 { max-width: 18ch; }
.lead { font-size: 19px; max-width: 58ch; }
.actions { align-items: center; gap: 16px; }
.intro .actions .link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border: 1px solid var(--blue);
  border-radius: 5px;
  font-size: 14px;
  line-height: 1.65;
}
.intro .actions .link:hover { background: var(--surface); }
@media (max-width: 480px) {
  .intro .actions { flex-direction: column; align-items: stretch; }
  .intro .actions > a { width: 100%; text-align: center; }
}
.card { box-shadow: none; border: 1px solid var(--line); }
.card > div { padding: 24px; }
.card > img { aspect-ratio: 16/9; height: auto; object-fit: contain; background: var(--surface); }
.card .link, .heading .link { padding-top: 8px; padding-bottom: 8px; }
.service-card h2 { font-size: 24px; }
.service-card p { max-width: 40ch; }
.service-card-text { background: var(--surface); }
.cta h2 { font-size: 32px; }
.cta { padding: 40px; margin-top: 40px; margin-bottom: 40px; }
.checkout-panel { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.checkout-panel p { color: var(--muted); }
.checkout-panel .link { color: var(--blue); }
.checkout-panel .button { background: var(--blue); color: white; }
.checkout-panel .button:disabled { background: #d5dfe9; color: #506477; cursor: not-allowed; opacity: 1; }
.form-panel { border: 1px solid var(--line); }
input, textarea { min-height: 48px; }
.form-status { min-height: 3.3em; }
#interest-form, #repair-form, #repair-inquiries, #checkout { scroll-margin-top: 110px; }
.repair-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.footer-grid p { max-width: 30ch; }
.legal p { font-size: 12px; }
.parts-coming { min-height: 54vh; }
.tutorial-tag { background: #ffffffed; }
.tutorial-image::after { content: '\25b6'; position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #102b46e6; color: white; font-size: 14px; }
.video-facade { position: relative; display: block; padding: 0; width: 100%; background: var(--ink); border: 0; border-radius: 8px; overflow: hidden; color: white; cursor: pointer; aspect-ratio: 16/9; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.video-facade span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-weight: 600; gap: 12px; }
.video-facade b { display: block; font-size: 40px; line-height: 1; }
.rx-driving { background: var(--surface); padding: 64px 0; }
.rx-drive-grid { display: grid; grid-template-columns: .8fr 1.4fr; gap: 56px; align-items: center; }
.rx-drive-copy h2 { font-size: clamp(32px, 3vw, 44px); }
.rx-drive-copy p { color: var(--muted); }
.rx-driving video { display: block; width: 100%; aspect-ratio: 16/9; object-fit: contain; background: var(--ink); border-radius: 8px; }
.rx-drive-footer { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 16px; }
.rx-drive-footer p { font-size: 12px; color: var(--muted); margin: 0; }
.text-button { background: none; border: 0; color: var(--blue); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; padding: 12px 0; min-height: 44px; white-space: nowrap; }
.rx-drive-grid.is-expanded { grid-template-columns: 1fr; }
.rx-drive-grid.is-expanded .rx-drive-copy { max-width: 740px; }
.rx-driving:has(.is-expanded) { padding-top: 40px; }
.rx-experience { padding-top: 64px; padding-bottom: 64px; }
.rx-experience > p { color: var(--muted); max-width: 65ch; }
.rx-scene-view { position: relative; background: linear-gradient(180deg, #f4f7fa, #edf2f6); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; height: clamp(360px, 42vw, 540px); margin-top: 30px; }
.rx-scene-view canvas { display: block; width: 100%; height: 100%; }
.rx-scene-view canvas[hidden] { display: none; }
.rx-scene-view > img { width: 100%; height: 100%; object-fit: cover; }
.is-live .rx-scene-view > img { display: none; }
.rx-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 24px; }
.rx-steps button { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; color: var(--muted); border: 0; border-top: 2px solid var(--line); padding: 20px 0; text-align: left; cursor: pointer; background: transparent; }
.rx-steps button[aria-pressed="true"] { color: var(--ink); }
.rx-steps button[aria-pressed="true"]::before { content: ''; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--green); transform: scaleX(var(--rx-progress, 1)); transform-origin: left; }
.rx-steps button[aria-pressed="true"] strong { color: var(--green); }
.rx-steps button:hover strong { color: var(--green); }
.rx-steps button:disabled { cursor: default; }
.rx-steps strong { display: block; font-size: 19px; margin-bottom: 8px; line-height: 1.2; color: var(--ink); }
.rx-steps span { display: block; font-size: 14px; line-height: 1.6; }
.project-overview { max-width: 940px; }
.not-found { min-height: 55vh; display: grid; align-content: center; }
@media (max-width: 1100px) and (min-width: 1001px) {
  .nav-row { flex-wrap: nowrap; gap: 14px; padding: 0; }
  .brand { font-size: 19px; }
  .brand small { display: none; }
  nav { gap: 14px; }
  nav a { font-size: 13px; }
}
@media (max-width: 1000px) {
  .nav-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; min-height: 76px; padding: 12px 0; }
  .brand { font-size: 20px; gap: 9px; }
  .brand small { display: none; }
  .mark { padding: 6px 8px; font-size: 21px; }
  .nav-interest { order: 1; padding: 9px 12px; font-size: 12px; min-height: 44px; }
  .menu { order: 2; display: block; padding: 9px 12px; min-height: 44px; }
  nav { display: none; order: 3; grid-column: 1 / -1; margin: 0; padding: 8px 0; gap: 0; flex-direction: column; }
  nav.open { display: flex; }
  html:not(.has-js) .menu { display: none; }
  html:not(.has-js) nav { display: flex; }
  nav a { display: block; padding: 10px 12px; border-bottom: 0; border-radius: 4px; }
  nav a[aria-current] { background: var(--surface); border-bottom: 0; }
  .rx-drive-grid { gap: 32px; }
  .rx-steps { grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 90px; }
  .wrap { width: calc(100% - 40px); }
  .brand { font-size: 17px; letter-spacing: -.4px; }
  .nav-row { gap: 8px; }
  .nav-interest, .menu { font-size: 12px; padding: 8px 10px; }
  .section { padding-top: 48px; padding-bottom: 48px; }
  .intro { padding-top: 36px; padding-bottom: 24px; }
  .intro h1 { font-size: 42px; }
  .lead { font-size: 17px; }
  .cta { padding: 28px; }
  .cta h2 { font-size: 28px; }
  .form-panel { padding: 24px; }
  #interest-form, #repair-inquiries, #checkout { scroll-margin-top: 95px; }
  .rx-driving { padding: 44px 0; }
  .rx-drive-grid { grid-template-columns: 1fr; gap: 22px; }
  .rx-drive-footer { flex-wrap: wrap; gap: 0; }
  .rx-drive-footer p { flex-basis: 100%; }
  .rx-experience { padding-top: 44px; padding-bottom: 44px; }
  .rx-scene-view { height: min(118vw, 460px); margin-top: 24px; }
  .rx-steps { grid-template-columns: 1fr; gap: 0; }
  .rx-steps button { padding: 16px 0; }
  .rx-steps strong { font-size: 19px; margin-bottom: 0; }
  .rx-steps span { max-width: 50ch; margin-top: 8px; }
  .rx-steps button[aria-pressed="false"] span { display: none; }
  .rx-scene { --rx-stacked: 1; }
}
@media (max-width: 360px) {
  .brand { gap: 6px; font-size: 16px; }
  .mark { padding: 5px 6px; font-size: 18px; }
  .nav-interest, .menu { padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media:has(.hero-video.is-playing) > img { visibility: visible; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
input.is-invalid, textarea.is-invalid { border-color: #9f1b1b; box-shadow: 0 0 0 1px #9f1b1b; }
.field-error { display: block; color: #9f1b1b; font-size: 13px; font-weight: 650; line-height: 1.4; margin-top: 6px; }
.field-error:empty { display: none; }
#interest-form .privacy { width: 100%; max-width: none; margin-top: 18px; color: var(--ink); font-size: 15px; line-height: 1.6; }
.form-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 22px; padding: 4px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.form-switch a { display: block; text-align: center; padding: 12px 8px; border-radius: 6px; font-size: 14px; font-weight: 650; line-height: 1.3; }
.form-switch a[aria-current="page"] { background: var(--ink); color: white; }
.form-switch a[aria-current="page"]:hover { color: white; }
#repair-form.is-unavailable input,
#repair-form.is-unavailable textarea,
#repair-form.is-unavailable button[type="submit"] { background: #e4ebf2; color: #6d7d8d; border-color: #c5d0db; cursor: not-allowed; opacity: 1; }
#repair-form .form-unavailable { margin: 0 0 18px; color: var(--ink); font-size: 16px; font-weight: 650; line-height: 1.45; }
#interest, #repair { row-gap: 28px; }
#interest > h1, #repair > h1 { grid-column: 1 / -1; grid-row: 1; margin-bottom: 0; }
#interest .form-panel, #interest aside, #repair .form-panel, #repair aside { grid-row: 2; }
@media (max-width: 760px) {
  #interest aside, #repair aside { grid-row: 3; }
}
/* Form hashes open the page top. A margin taller than the form offset clamps the scroll there. */
.interest-first #interest-form,
.interest-first #repair-form { scroll-margin-top: 8000px; }

/* v2.1 mobile: persistent top navigation. Desktop and tablet are unchanged. */
@supports (padding: env(safe-area-inset-left)) {
  body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
}
.tabbar, .tabbar-scrim { display: none; }
@media (max-width: 760px) {
  html.has-tabbar { scroll-padding-top: calc(112px + env(safe-area-inset-top)); }
  html.has-tabbar header { position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top); }
  html.has-tabbar .nav-row { display: flex; min-height: 52px; padding: 4px 0; }
  html.has-tabbar .menu, html.has-tabbar .nav-interest, html.has-tabbar #nav { display: none; }
  html.has-tabbar #checkout, html.has-tabbar #repair-inquiries { scroll-margin-top: 16px; }
  html.has-tabbar footer { padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
  .brand { min-height: 44px; }

  html.has-tabbar .tabbar { display: block; position: relative; margin: 0; padding: 0; background: white; border-top: 1px solid var(--line); box-shadow: 0 3px 12px #102b4608; }
  .tabbar ul { list-style: none; margin: 0; padding: 0; }
  .tabbar .tabbar-list { display: grid; grid-template-columns: repeat(5, 1fr); max-width: 560px; margin: 0 auto; padding: 0 4px; }
  .tabbar .tabbar-item { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; padding: 10px 2px; margin: 0; border: 0; border-radius: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; line-height: 1.2; text-align: center; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .tabbar-list .tabbar-item > svg { display: none; }
  .tabbar .tabbar-item:focus-visible { outline-offset: -4px; }
  .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
  .tabbar .tabbar-item::before { content: ''; position: absolute; bottom: 0; left: 50%; width: 28px; height: 2px; margin-left: -14px; background: var(--blue); transform: scaleX(0); transition: transform .18s ease; }
  .tabbar .tabbar-item[aria-current], .tabbar .tabbar-item.is-section, .tabbar .tabbar-item[aria-expanded="true"] { color: var(--blue); background: none; border-bottom: 0; }
  .tabbar .tabbar-item[aria-current]::before, .tabbar .tabbar-item.is-section::before { transform: scaleX(1); }

  html.has-tabbar .tabbar-scrim { position: fixed; inset: 0; z-index: 29; display: block; background: #05172a52; }
  html.has-tabbar .tabbar-scrim[hidden], .tabbar-sheet[hidden] { display: none; }
  .tabbar-sheet { position: absolute; left: 0; right: 0; top: 100%; max-width: 560px; max-height: calc(100dvh - 112px - env(safe-area-inset-top)); overflow-y: auto; margin: 0 auto; padding: 8px 12px 10px; background: white; border-radius: 0 0 12px 12px; box-shadow: 0 10px 28px #102b461f; animation: tabbar-sheet-in .18s ease-out; }
  .tabbar-sheet li:last-child { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
  .tabbar .tabbar-sheet a { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 14px; min-height: 52px; padding: 0 12px; border: 0; border-radius: 8px; color: var(--ink); font-size: 16px; font-weight: 600; }
  .tabbar .tabbar-sheet a[aria-current] { background: var(--surface); color: var(--blue); border-bottom: 0; }
  .tabbar-sheet small { color: var(--muted); font-size: 13px; font-weight: 500; }
  .tabbar-sheet svg { color: var(--muted); }
  .tabbar-sheet a[aria-current] svg { color: var(--blue); }
}
@keyframes tabbar-sheet-in { from { transform: translateY(12px); opacity: 0; } }
@media (max-width: 360px) {
  .tabbar .tabbar-item { font-size: 11px; }
}

/* v2.1 phone rhythm: one consistent scale for headings, sections, actions and forms. */
.team-bios:empty { min-height: clamp(120px, 14vw, 240px); }
@media (max-width: 760px) {
  h1, h2, h3 { text-wrap: balance; }
  h1 { font-size: clamp(30px, 9.4vw, 40px); letter-spacing: -.04em; margin-bottom: 16px; }
  .intro h1 { font-size: clamp(30px, 9.4vw, 40px); }
  h2 { font-size: clamp(26px, 7.4vw, 32px); margin-bottom: 16px; }
  .section { padding-top: 44px; padding-bottom: 44px; }
  .intro { padding-top: 32px; padding-bottom: 24px; }
  .intro .lead:last-child { margin-bottom: 0; }
  .intro .actions { margin-top: 24px; }
  .intro + .about-team { padding-top: 8px; }
  .about-team { gap: 24px; }
  .about-team h2 { font-size: clamp(26px, 7.4vw, 30px); }
  .rx-experience { padding-top: 36px; }
  .cards { gap: 20px; }
  .card > div { padding: 20px; }
  .card h3 { font-size: 20px; margin-bottom: 10px; }
  .service-card h2 { font-size: 22px; margin-bottom: 12px; }
  .gallery { gap: 18px 12px; }
  .gallery figcaption { font-size: 12.5px; line-height: 1.45; padding-top: 8px; }
  .team-portrait figcaption { padding-top: 10px; }

  .cta { padding: 24px 20px; }
  .cta h2 { font-size: 24px; }
  .cta .button { display: flex; width: 100%; margin-top: 22px; }
  .light { white-space: normal; text-align: center; }

  input, textarea { font-size: 16px; padding: 12px 14px; }
  label { font-size: 15px; }
  .form-panel h2 { font-size: 24px; }
  .form-panel .button[type="submit"] { width: 100%; }
  .form-switch a { display: flex; align-items: center; justify-content: center; min-height: 48px; }
  .contact-grid aside img { height: 200px; margin-top: 24px; }

  .parts-coming, .not-found, .payment-success { min-height: 0; }
  .parts-status { margin-bottom: 20px; }

  footer { padding-top: 36px; }
  .footer-grid { gap: 22px; }
  .footer-grid h3 { margin-bottom: 6px; }
  .footer-grid a:not(.footer-brand) { display: flex; align-items: center; min-height: 44px; margin: 0; }
  .footer-grid p { max-width: none; margin-top: 10px; }
  .legal { margin-top: 26px; }
}
@media (max-width: 560px) {
  .intro .actions, .parts-coming .actions, .payment-success .actions, .not-found .actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .actions > .button, .actions > .link { width: 100%; text-align: center; }
  .actions > .link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 13px 24px; border: 1px solid var(--blue); border-radius: 5px; font-size: 14px; }
  .form-panel { margin-inline: -20px; padding: 24px 20px; border-radius: 0; border-width: 1px 0; }
}

/* Supplied photos: CSS crop trims bench clutter and CAD ribbon while keeping the hardware whole. */
.photo-crop.bench-wiring, .photo-crop.cad-workspace { aspect-ratio: 16/9; height: auto; object-fit: cover; }
.photo-crop.bench-wiring { object-position: 50% 75%; }
.photo-crop.cad-workspace { object-position: 50% 45%; }

/* Products: visual-first Project Delta. Real drive, then the lane view, then the hardware. */
[data-delta-hardware] .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.delta-price { margin: 22px 0 0; color: var(--muted); }
.delta-price strong { margin-right: 4px; color: var(--ink); font-size: 24px; letter-spacing: -.02em; }
.delta-price + .pricing-note { margin-top: 2px; }
.checkout-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
@media (max-width: 760px) {
  [data-delta-hardware] .cards { grid-template-columns: 1fr; }
  .rx-drive-grid > :last-child { order: -1; }
  .rx-drive-copy h2 { margin-bottom: 8px; }
  .checkout-actions { flex-direction: column; align-items: stretch; margin-top: 22px; }
  .cta .checkout-actions .button { width: 100%; margin-top: 0; }
}

/* v3 Home: a composed first screen, then one pinned hand-off as Project Delta slides over it. */
.home { --night: #071a2e; --night-text: #a9bfd4; --sheet: 28px; }
.home h2 { text-wrap: balance; }
.home-index { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; color: var(--blue); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.home-index span { font-variant-numeric: tabular-nums; padding-right: 12px; border-right: 1px solid currentColor; }
.home-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.home-head h2 { margin: 0; font-size: clamp(32px, 4vw, 56px); line-height: 1.04; letter-spacing: -.045em; }
.home-head > p, .home-head > .link { flex-shrink: 0; margin: 0; }

.home .hero { display: flex; align-items: center; min-height: clamp(600px, calc(100svh - 86px), 1000px); padding: 48px 0 calc(48px + var(--sheet)); color: white; isolation: isolate;
  background: radial-gradient(60% 80% at 82% 18%, #11406f 0%, #11406f00 70%), linear-gradient(180deg, #08203a, var(--night)); }
.home .hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(90deg, #ffffff0a 0 1px, transparent 1px 80px), repeating-linear-gradient(0deg, #ffffff0a 0 1px, transparent 1px 80px);
  -webkit-mask-image: radial-gradient(70% 70% at 70% 40%, #000, transparent); mask-image: radial-gradient(70% 70% at 70% 40%, #000, transparent); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.home .hero-content { padding: 0; }
.home .hero-content > .hero-kicker { display: flex; align-items: center; gap: 14px; margin: 0 0 28px; color: #8fbaea; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.home .hero-kicker::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.home .hero h1 { margin: 0 0 24px; font-size: clamp(40px, 4.2vw, 64px); font-weight: 700; line-height: 1; letter-spacing: -.05em; max-width: none; text-wrap: balance; }
.home .hero-copy { max-width: 34ch; margin: 0; color: #d4e2ef; font-size: 19px; line-height: 1.55; text-wrap: pretty; }
.home .hero .actions { margin-top: 36px; }
.home .hero .outline { border-color: #ffffff4d; }
.hero-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 28px; margin: 52px 0 0; padding: 20px 0 0; list-style: none; border-top: 1px solid #ffffff1f; color: var(--night-text); font-size: 13px; line-height: 1.45; }
.hero-facts strong { display: block; color: white; font-size: 17px; letter-spacing: -.01em; }

.hero-media { position: relative; margin: 0; aspect-ratio: 5 / 4; overflow: hidden; border-radius: 18px; background: #0b2238; box-shadow: 0 0 0 1px #ffffff14, 0 40px 80px -36px #000c; }
.hero-media > img, .home .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: none; transform: none; }
.home .hero-video { transition: opacity .8s ease; }
.hero-media > img { transition: visibility 0s; }
.hero-media:has(.hero-video.is-playing) > img { visibility: hidden; transition-delay: .8s; }
.hero-media figcaption { position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 86px); padding: 7px 13px; border-radius: 999px; background: #071a2ea6; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #c7d7e8; font-size: 12px; line-height: 1.4; }
.hero-media figcaption span { color: white; font-weight: 600; margin-right: 4px; }
.home .video-toggle { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #ffffff40; border-radius: 50%; background: #071a2ea6; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.home .video-toggle::before { content: ''; width: 12px; height: 14px; background: linear-gradient(90deg, white 0 4px, transparent 4px 8px, white 8px); }
.home .video-toggle[data-state="paused"]::before { width: 12px; background: white; clip-path: polygon(0 0, 100% 50%, 0 100%); margin-left: 3px; }
.home .video-toggle[hidden] { display: none; }

.home-delta { position: relative; z-index: 1; margin-top: calc(-1 * var(--sheet)); padding: clamp(64px, 8vw, 120px) 0; background: white; border-radius: var(--sheet) var(--sheet) 0 0; box-shadow: 0 -28px 60px -32px #000a; }
.delta-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.delta-copy h2 { margin: 0 0 20px; font-size: clamp(44px, 5.4vw, 80px); line-height: .98; letter-spacing: -.055em; }
.delta-copy p:not(.home-index) { max-width: 34ch; color: var(--muted); font-size: 19px; line-height: 1.55; }
.delta-visual { margin: 0; }
.delta-visual img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; }

.home-repair { padding: clamp(64px, 8vw, 112px) 0; background: var(--surface); }
.repair-mosaic { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-auto-rows: clamp(210px, 21vw, 300px); gap: 16px; }
.repair-tile { position: relative; display: block; overflow: hidden; border-radius: 14px; background: var(--ink); color: white; }
.repair-tile:first-child { grid-row: span 2; }
.repair-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.repair-tile:nth-child(2) img { object-position: 50% 35%; }
.repair-tile::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, #071a2ee0); pointer-events: none; }
.repair-tile > span { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 22px 24px; color: #d4e2ef; font-size: 14px; line-height: 1.45; }
.repair-tile strong { display: block; margin-bottom: 4px; color: white; font-size: 21px; letter-spacing: -.02em; }
.repair-tile strong::after { content: ' \2197'; content: ' \2197' / ''; color: #8fbaea; font-weight: 500; }
.repair-tile:hover { color: white; }
.repair-tile:hover img { transform: scale(1.03); }

.home-engineering { padding: clamp(64px, 8vw, 112px) 0; background: var(--night); color: white; }
.home-engineering .home-index { color: #8fbaea; }
.home-engineering .home-head > p { color: var(--night-text); font-size: 17px; }
.home .engineering-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; }
.home .engineering-grid figure { margin: 0; }
.home .engineering-grid img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: #0b2238; }
.home .engineering-grid figcaption { padding: 20px 0 0; border: 0; }
.home .engineering-grid h3 { margin: 0 0 6px; font-size: 20px; color: white; }
.home .engineering-grid p { margin: 0; color: var(--night-text); font-size: 15px; }

.home-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px 48px; padding: clamp(72px, 9vw, 128px) 0; }
.home-cta h2 { grid-column: 1; margin: 0; font-size: clamp(36px, 5vw, 72px); line-height: 1; letter-spacing: -.05em; }
.home-cta p { grid-column: 1; margin: 0; color: var(--muted); font-size: 18px; }
.home-cta .actions { grid-column: 2; grid-row: 1 / span 2; margin: 0; }

@media (max-width: 1000px) {
  .home .hero { min-height: 0; padding: 40px 0 calc(40px + var(--sheet)); }
  .hero-grid, .delta-grid { grid-template-columns: 1fr; }
  .home .hero h1 { font-size: clamp(38px, 7vw, 60px); }
  .hero-media { aspect-ratio: 16 / 9; }
  .home .engineering-grid { gap: 16px; }
}
@media (max-width: 760px) {
  .home { --sheet: 22px; }
  .home .hero { padding: 28px 0 calc(28px + var(--sheet)); }
  .hero-grid { gap: 28px; }
  .home .hero-content > .hero-kicker, .hero-facts { display: none; }
  .home .hero h1 { font-size: clamp(36px, 11.5vw, 52px); margin-bottom: 14px; }
  .home .hero-copy { font-size: 16px; color: #e3edf7; }
  .home .hero .actions { flex-direction: column; align-items: stretch; gap: 4px; margin-top: 24px; }
  .home .hero .actions > .button { width: 100%; min-height: 50px; border-radius: 8px; }
  .home .hero .actions > .outline { border-color: transparent; }
  .hero-media { aspect-ratio: 4 / 3; border-radius: 14px; }
  .hero-media figcaption { left: 10px; bottom: 10px; font-size: 11.5px; }
  .home .video-toggle { right: 8px; bottom: 8px; }
  .home-index { font-size: 11px; margin-bottom: 12px; }
  .home-head { display: block; }
  .home-head h2 { font-size: clamp(28px, 8.4vw, 36px); }
  .home-head > p, .home-head > .link { margin-top: 14px; }
  .home-delta { padding: 44px 0 52px; }
  .delta-grid { gap: 28px; }
  .delta-copy h2 { font-size: clamp(40px, 12vw, 52px); margin-bottom: 12px; }
  .delta-copy p:not(.home-index) { font-size: 16px; }
  .delta-visual img { border-radius: 12px; }
  .home-repair, .home-engineering { padding: 48px 0; }
  .repair-mosaic { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 12px; }
  .repair-tile:first-child { grid-row: auto; }
  .repair-tile img { height: auto; aspect-ratio: 16 / 10; }
  .repair-tile:first-child img { aspect-ratio: 4 / 3; }
  .repair-tile > span { padding: 16px 18px; font-size: 13px; }
  .repair-tile strong { font-size: 18px; }
  .home .engineering-grid { grid-template-columns: 1fr; gap: 18px; }
  .home .engineering-grid figure { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); gap: 14px; align-items: center; }
  .home .engineering-grid figcaption { padding: 0; }
  .home .engineering-grid h3 { font-size: 17px; margin-bottom: 4px; }
  .home .engineering-grid p { font-size: 13.5px; line-height: 1.45; }
  .home-cta { display: block; padding: 52px 0 56px; }
  .home-cta h2 { font-size: clamp(32px, 9.6vw, 40px); margin-bottom: 12px; }
  .home-cta p { font-size: 16px; }
  .home-cta .actions { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 24px; }
}

/* The pinned hand-off: native scroll, no runway. The hero holds under the header while the
   Project Delta sheet rises over it. Wide, tall, motion-allowed screens only; everything else scrolls normally. */
@media screen and (prefers-reduced-motion: no-preference) and (min-width: 1001px) and (min-height: 700px) {
  .home .hero { position: sticky; top: 86px; }
  .home .hero:focus-within { z-index: 2; }
  .home .hero:focus-within::after, .home .hero:focus-within .hero-grid { animation: none; }
  .home-delta { display: flex; align-items: center; min-height: calc(100svh - 86px + var(--sheet)); }
  @supports (animation-timeline: scroll()) {
    .home .hero-grid { animation: hero-content-recede linear both; animation-timeline: scroll(root); animation-range: 0 80svh; }
    .home .hero::after { content: ''; position: absolute; inset: 0; background: var(--night); opacity: 0; pointer-events: none; animation: hero-dim linear both; animation-timeline: scroll(root); animation-range: 10svh 90svh; }
    .home-delta { animation: sheet-settle linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  }
}
@keyframes hero-content-recede { to { transform: translateY(-4svh) scale(.96); } }
@keyframes hero-dim { to { opacity: .7; } }
@keyframes sheet-settle { to { border-radius: 0; } }
@media print {
  .home .hero { position: static; color: var(--ink); background: none; }
  .home-delta { margin-top: 0; box-shadow: none; }
}
