/* The workspace palette, type stack and saved appearance come from studio.css. */
html:has(.home), body.home {
  height: auto;
  min-height: 100%;
  overflow: visible;
}
.home {
  --page-gutter: clamp(24px, 5.8vw, 96px);
  --subtext: #526b61;
  --art-surface: #eaf1ed;
  --hero-paper: #f3f6f2;
  --hero-map: #d8e6dc;
  --terrain-filter: grayscale(1) invert(1) brightness(1.04);
  --terrain-blend: multiply;
  --figure-shadow: rgb(44 66 51 / 22%);
  --button-fill: #206951;
  --button-ink: #fff;
  --button-hover: #16543e;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0;
}
[data-theme=dark] .home {
  --subtext: #a2b9b0;
  --art-surface: #20332f;
  --hero-paper: #142321;
  --hero-map: #223d34;
  --terrain-filter: brightness(.85);
  --terrain-blend: normal;
  --figure-shadow: rgb(3 16 12 / 43%);
  --button-fill: #c8e5d1;
  --button-ink: #163b2c;
  --button-hover: #e2f0e6;
}
.home [hidden] { display: none !important; }
.home h1, .home h2, .home h3, .home p, .home figure, .home dl, .home dd { margin: 0; }
.home-wrap { width: min(calc(100% - 2 * var(--page-gutter)), 1392px); margin-inline: auto; }
.skip-link {
  position: fixed; top: 6px; left: 10px; z-index: 100;
  padding: 8px 14px; background: var(--panel); transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
.home-header {
  position: sticky; top: 0; display: block; height: auto; padding: 0;
  backdrop-filter: none; background: var(--panel); border-bottom: 1px solid var(--line);
}
.home main section[id] { scroll-margin-top: 70px; }
.header-inner { height: 70px; display: flex; align-items: center; gap: 36px; }
.home-brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.home-brand img { width: 115px; height: auto; display: block; }
[data-theme=dark] .home-brand img { filter: brightness(1.55); }
.home-brand span { font-size: 19px; font-weight: 400; line-height: 1; color: var(--text); letter-spacing: -.7px; }
.home-nav { display: flex; align-self: stretch; align-items: stretch; gap: 32px; margin: 0 auto; }
.home-nav a {
  position: relative; display: inline-flex; align-items: center;
  color: var(--subtext); font-size: 13px; font-weight: 540;
}
.home-nav a:hover, .home-nav [aria-current] { color: var(--cyan); }
.home-nav [aria-current]::after {
  content: ""; position: absolute; bottom: 0; left: 50%; translate: -50% 0;
  width: 22px; height: 2px; background: var(--cyan);
}
.header-actions { display: flex; align-items: center; gap: 20px; }
.appearance {
  display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%;
  color: var(--text); width: 36px; height: 36px; background: var(--panel);
}
.appearance:hover { background: var(--hover); border-color: var(--line2); }
.appearance svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.appearance .sun-icon, [data-theme=dark] .appearance .moon-icon { display: none; }
[data-theme=dark] .appearance .sun-icon { display: block; }
.header-enter { display: inline-flex; align-items: center; gap: 11px; font-size: 13px; font-weight: 600; color: var(--cyan); }
.arrow-ne { position: relative; display: inline-block; width: .88em; height: .88em; flex: none; }
.arrow-ne::before, .arrow-ne::after { content: ""; position: absolute; }
.arrow-ne::before { width: 91%; height: 1.35px; background: currentColor; transform: rotate(-45deg); top: 48%; left: 3%; }
.arrow-ne::after { width: 62%; height: 62%; top: 8%; right: 8%; border-top: 1.35px solid; border-right: 1.35px solid; }

.home-hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--text);
  background: var(--hero-paper);
  background-image: radial-gradient(ellipse at 83% 51%, var(--hero-map), transparent 67%);
  border-bottom: 1px solid var(--line);
}
.home-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../instrument/terrain-relief.webp") 54% 48% / cover no-repeat;
  filter: var(--terrain-filter); mix-blend-mode: var(--terrain-blend);
  mask-image: linear-gradient(90deg, transparent 6%, rgb(0 0 0 / 12%) 33%, #000 74%);
}
.hero-grid {
  min-height: clamp(472px, 38vw, 570px); display: grid;
  grid-template-columns: 1.02fr 1fr; align-items: center; gap: clamp(20px, 4vw, 72px);
}
.hero-copy { padding: 36px 0 40px; }
.home .section-kicker {
  color: var(--cyan); font-family: "IBM Plex Mono", Consolas, monospace; font-size: 11px;
  font-weight: 600; line-height: 1.3; letter-spacing: .16em; text-transform: uppercase;
}
.home .hero-kicker { display: flex; align-items: center; gap: 12px; }
.hero-kicker::before { content: ""; height: 2px; width: 30px; background: currentColor; }
.home .hero-copy h1 {
  margin: 22px 0 8px -4px; font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: clamp(64px, 6.9vw, 111px); letter-spacing: -.069em; line-height: 1.03;
  font-weight: 645; white-space: nowrap; color: var(--text);
}
.home .hero-copy h2 { font-size: clamp(23px, 2.1vw, 35px); font-weight: 560; line-height: 1.5; letter-spacing: .035em; }
.home .hero-description { margin-top: 19px; max-width: 30em; color: var(--subtext); font-size: 15px; line-height: 1.95; text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 31px; }
.hero-primary, .hero-secondary { display: inline-flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 600; }
.hero-primary { padding: 13px 20px; border-radius: 5px; background: var(--button-fill); color: var(--button-ink); }
.hero-primary:hover { background: var(--button-hover); }
.hero-secondary { color: var(--subtext); gap: 8px; }
.hero-secondary:hover { color: var(--cyan); }
.arrow-down { font-family: Arial, sans-serif; font-size: 18px; font-weight: 400; }
.home-hero :focus-visible { outline-color: var(--cyan); }
.instrument-figure { position: relative; display: grid; grid-template-rows: 1fr auto; height: 100%; padding: 27px 0 23px; }
.model-stage { position: relative; min-height: 0; }
.stage-corner { position: absolute; width: 12px; height: 12px; opacity: .55; color: var(--cyan); }
.corner-tl { top: 8px; left: 0; border-top: 1px solid; border-left: 1px solid; }
.corner-tr { top: 8px; right: 0; border-top: 1px solid; border-right: 1px solid; }
.corner-bl { bottom: 0; left: 0; border-bottom: 1px solid; border-left: 1px solid; }
.corner-br { bottom: 0; right: 0; border-bottom: 1px solid; border-right: 1px solid; }
.hero-model {
  position: absolute; left: 50%; top: 50%; width: 77%; height: 92%;
  object-fit: contain; transform: translate(-50%, -50%);
  filter: drop-shadow(13px 18px 15px var(--figure-shadow));
}
.ground-ring {
  position: absolute; left: 50%; bottom: 1%; transform: translateX(-50%);
  width: 44%; height: 11%; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--cyan) 35%, transparent);
  background: radial-gradient(ellipse, var(--figure-shadow), transparent 66%);
}
.instrument-finish {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 32px; margin-top: 6px; font-size: 12px; color: var(--subtext);
}
.instrument-finish::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: #e2d4ad; border: 1px solid rgb(87 75 54 / 35%);
}

.workspace-band { padding: clamp(37px, 3.6vw, 58px) 0 clamp(40px, 4.1vw, 70px); background: var(--bg); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 23px; }
.home .section-heading h2, .home .scenario-heading h2, .home .design-copy h2 {
  margin-top: 6px; font-size: clamp(26px, 2.4vw, 39px); line-height: 1.4; font-weight: 620; letter-spacing: -.035em;
}
.workspace-note { color: var(--subtext); font-size: 13px; }
.workspace-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.workspace-link {
  display: block; min-width: 0; border: 1px solid var(--line2); border-radius: 9px;
  overflow: hidden; background: var(--panel); transition: border-color .18s, box-shadow .18s;
}
.workspace-link:hover { border-color: var(--cyan); box-shadow: var(--shadow); }
.workspace-art {
  display: block; width: 100%; height: auto; aspect-ratio: 740 / 285; object-fit: contain;
  background-color: var(--art-surface);
  background-image: radial-gradient(circle, color-mix(in srgb, var(--cyan) 13%, transparent) .8px, transparent .9px);
  background-size: 12px 12px;
}
.workspace-text { position: relative; padding: 18px 33px 19px 19px; border-top: 1px solid var(--line); }
.workspace-text h3 { font-size: 19px; line-height: 1.4; font-weight: 620; }
.workspace-text p { color: var(--subtext); font-size: 12.5px; line-height: 1.6; margin-top: 6px; }
.card-arrow { position: absolute; top: 23px; right: 17px; width: 13px; height: 13px; color: var(--cyan); }
.applications-band { padding-block: clamp(38px, 4vw, 68px); background: var(--panel); border-top: 1px solid var(--line); }
.scenario-atlas { display: grid; align-items: center; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(30px, 4.5vw, 78px); }
.scenario-choices { min-width: 0; padding: 0; margin: 22px 0 0; border: 0; }
.scenario-atlas .visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
  margin: -1px; padding: 0; border: 0; white-space: nowrap;
}
.scenario-options { display: grid; position: relative; border-bottom: 1px solid var(--line); }
.scenario-options label { display: block; cursor: pointer; }
.scenario-label {
  display: grid; align-items: center; grid-template-columns: 13px 1fr auto; gap: 11px; padding: 13px 12px 4px;
  border-top: 1px solid var(--line); color: var(--text);
}
.scenario-label::before {
  content: ""; width: 11px; height: 11px; box-sizing: border-box;
  border: 1px solid var(--muted); border-radius: 50%;
}
.scenario-label strong { font-size: clamp(17px, 1.3vw, 21px); line-height: 1.5; font-weight: 600; }
.scenario-label small { color: var(--subtext); font-size: 11px; letter-spacing: .04em; }
.scenario-options label:hover strong { color: var(--cyan); }
.scenario-options input:focus-visible + label .scenario-label { outline: 2px solid var(--cyan); outline-offset: -2px; }
.scenario-options input:checked + label .scenario-label { border-color: var(--cyan); color: var(--cyan); }
.scenario-options input:checked + label .scenario-label::before { border: 3px solid var(--cyan); background: var(--panel); }
.scenario-options input:checked + label { background: var(--soft-accent); }
.scenario-summary {
  display: block; padding: 0 14px 13px 36px; max-width: 40em;
  color: var(--subtext); font-size: 13px; line-height: 1.8; text-wrap: balance;
}
.scenario-map { min-width: 0; overflow: hidden; background: var(--panel2); border: 1px solid var(--line); border-radius: 9px; }
.scenario-terrain { position: relative; aspect-ratio: 3 / 2; background: var(--art-surface); }
.scenario-terrain img { display: block; width: 100%; height: 100%; }
.scenario-markers {
  position: absolute; inset: 0; pointer-events: none;
  background: url("../scenarios/array-plans.webp") left center / 300% 100% no-repeat;
}
.scenario-atlas:has(#scenario-field:checked) .scenario-markers { background-position-x: 50%; }
.scenario-atlas:has(#scenario-site:checked) .scenario-markers { background-position-x: 100%; }
.scenario-map figcaption {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 15px; font-size: 12px; color: var(--subtext); border-top: 1px solid var(--line);
}
.map-legend { display: inline-flex; align-items: center; gap: 6px; }
.map-legend::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #176a53; border: 1.5px solid #eff9ee; box-shadow: 0 0 0 1px #397768; }
.design-band { padding: clamp(36px, 4vw, 62px) 0; background: var(--panel); border-top: 1px solid var(--line); }
.design-grid { display: grid; grid-template-columns: 1.2fr .9fr; align-items: center; gap: clamp(32px, 5vw, 88px); }
.home .assembly-intro { margin-top: 13px; max-width: 31em; color: var(--subtext); font-size: 15px; line-height: 1.85; }
.assembly-viewer {
  min-width: 0; overflow: hidden; border: 1px solid var(--line2); border-radius: 9px;
  background: var(--panel2);
}
.assembly-topbar, #assembly-controls { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.assembly-topbar { min-height: 49px; padding: 6px 17px; border-bottom: 1px solid var(--line); }
.assembly-topbar > div { display: flex; align-items: center; gap: 12px; }
.assembly-topbar strong { font-size: 14px; font-weight: 620; }
#assembly-state { color: var(--cyan); padding-left: 12px; border-left: 1px solid var(--line2); font-size: 12px; }
.assembly-reset {
  border: 0; background: transparent; color: var(--subtext); font-size: 12px;
  min-height: 32px; padding: 4px; cursor: pointer;
}
.assembly-reset:hover { color: var(--cyan); }
.assembly-stage {
  position: relative; isolation: isolate; height: clamp(365px, 27vw, 440px);
  background-color: var(--art-surface);
  background-image: radial-gradient(circle, color-mix(in srgb, var(--cyan) 18%, transparent) .8px, transparent 1px),
    radial-gradient(ellipse at 47% 34%, var(--panel2), transparent 74%);
  background-size: 15px 15px, 100% 100%;
}
#assembly-canvas, .assembly-poster { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.assembly-poster { object-fit: contain; padding: 20px 0; }
#assembly-canvas { touch-action: none; visibility: hidden; }
.assembly-viewer[data-ready=true] #assembly-canvas { visibility: visible; cursor: grab; }
.assembly-viewer[data-ready=true] #assembly-canvas:active { cursor: grabbing; }
.assembly-viewer[data-ready=true] .assembly-poster { display: none; }
#assembly-canvas:focus-visible { outline-offset: -3px; }
.part-label {
  position: absolute; left: clamp(59%, calc(50% + 72px), 69%); transform: translateY(-50%);
  display: flex; align-items: center; gap: 6px; pointer-events: none; white-space: nowrap;
  font-size: 12px; font-weight: 550; color: var(--text); visibility: hidden;
}
.part-label::before { content: ""; width: clamp(12px, 2.8vw, 48px); height: 1px; background: var(--cyan); opacity: .65; }
.assembly-viewer[data-exploded=true] .part-label { visibility: visible; }
.assembly-tray { min-height: 86px; padding: 13px 17px; background: var(--panel); border-top: 1px solid var(--line); }
#assembly-toggle {
  flex: none; min-height: 38px; padding: 7px 16px; border: 0; border-radius: 5px;
  background: var(--button-fill); color: var(--button-ink); cursor: pointer; font-size: 13px; font-weight: 600;
}
#assembly-toggle:hover { background: var(--button-hover); }
.assembly-slider { flex: 1; max-width: 340px; display: flex; align-items: center; gap: 10px; min-width: 0; }
.assembly-slider span { flex: none; color: var(--subtext); font-size: 12px; }
#assembly-progress { margin: 0; width: 100%; min-width: 0; height: 26px; accent-color: var(--cyan); cursor: pointer; }
.home #assembly-hint, .assembly-tray noscript { color: var(--subtext); font-size: 12px; line-height: 1.6; margin-top: 6px; }
.home .design-specs { margin-top: 20px; }
.design-specs div { display: grid; grid-template-columns: 6em 1fr; gap: 18px; padding: 13px 0; border-top: 1px solid var(--line); }
.design-specs dt { font-size: 14px; font-weight: 600; }
.design-specs dd { color: var(--subtext); font-size: 13px; line-height: 1.8; }
.home-footer { background: var(--bg); border-top: 1px solid var(--line); }
.footer-inner { min-height: 74px; padding: 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.footer-brand { font-size: 15px; font-weight: 600; letter-spacing: -.04em; }
.back-top { font-size: 12px; color: var(--subtext); }
.back-top span { padding-left: 5px; }

@media (max-width: 1020px) {
  .home { --page-gutter: 4.3vw; }
  .header-inner { gap: 20px; }
  .home-nav { gap: 22px; }
  .hero-grid { gap: 18px; min-height: 445px; }
  .hero-copy h1 { font-size: clamp(59px, 7.3vw, 74px); }
  .workspace-links { gap: 10px; }
  .workspace-text { padding: 14px 24px 16px 13px; }
  .workspace-text h3 { font-size: 17px; }
  .card-arrow { right: 12px; top: 19px; }
}
@media (max-width: 760px) {
  .home { --page-gutter: 22px; }
  .home main section[id] { scroll-margin-top: 60px; }
  .header-inner { height: 60px; }
  .home-brand img { width: 98px; }
  .home-brand span { font-size: 17px; }
  .home-nav { display: none; }
  .header-actions { margin-left: auto; gap: 14px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding: 35px 0 8px; }
  .home .hero-copy h1 { font-size: clamp(57px, 10vw, 76px); margin: 14px 0 5px -2px; }
  .home .hero-copy h2 { font-size: 23px; }
  .home .hero-description { margin-top: 10px; font-size: 14px; line-height: 1.8; }
  .hero-actions { margin-top: 21px; gap: 21px; }
  .hero-primary { padding: 10px 15px; }
  .home-hero::before {
    background-position: 68% bottom; background-size: auto 86%;
    mask-image: linear-gradient(175deg, transparent 5%, rgb(0 0 0 / 10%) 30%, #000 73%);
  }
  .instrument-figure { height: auto; padding: 10px 0 16px; }
  .model-stage { height: clamp(230px, 53vw, 300px); }
  .hero-model { height: 94%; }
  .ground-ring { width: 40%; max-width: 200px; }
  .workspace-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .workspace-band, .applications-band, .design-band { padding-block: 32px; }
  .section-heading { margin-bottom: 18px; }
  .scenario-atlas { grid-template-columns: 1fr; gap: 10px; }
  .scenario-choices { margin-top: 15px; }
  .scenario-options { grid-template-columns: repeat(3, minmax(0, 1fr)); border: 0; column-gap: 3px; }
  .scenario-options label { display: contents; }
  .scenario-label {
    grid-row: 1; display: flex; flex-direction: column; justify-content: center; gap: 1px;
    padding: 7px 2px; border: 0; border-bottom: 2px solid var(--line); text-align: center;
  }
  .scenario-label::before { display: none; }
  .scenario-label strong { font-size: clamp(12px, 3.5vw, 16px); }
  .scenario-label small { font-size: 10px; }
  .scenario-options input:checked + label .scenario-label { background: var(--soft-accent); }
  .scenario-summary { display: none; grid-row: 2; grid-column: 1 / -1; padding: 10px 2px 0; }
  .scenario-options input:checked + label .scenario-summary { display: block; }
  .design-grid { gap: 18px; grid-template-columns: 1fr; }
  .design-copy { display: contents; }
  .design-heading { order: -1; }
  .home .design-specs { margin: 0; }
  .assembly-stage { height: clamp(315px, 67vw, 390px); }
  .footer-inner { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .home { --page-gutter: 19px; }
  .header-inner { gap: 10px; }
  .home-brand { gap: 7px; }
  .header-actions { gap: 11px; }
  .header-enter { font-size: 12px; gap: 7px; }
  .appearance { width: 34px; height: 34px; }
  .home .section-kicker { font-size: 10px; }
  .hero-actions a { font-size: 13px; }
  .hero-grid { gap: 5px; }
  .workspace-note { font-size: 11px; }
  .workspace-links { gap: 10px; }
  .workspace-text { padding: 12px 10px 14px; }
  .workspace-text h3 { font-size: 16px; }
  .workspace-text p { font-size: 12px; margin-top: 4px; }
  .card-arrow { width: 11px; height: 11px; top: 18px; right: 10px; }
  .design-specs div { display: grid; grid-template-columns: 5.6em 1fr; gap: 9px; padding: 11px 0; }
  .assembly-topbar { padding-inline: 12px; }
  .assembly-tray { padding-inline: 12px; }
  .assembly-slider { gap: 6px; }
  #assembly-controls { gap: 10px; }
  .footer-inner { display: grid; grid-template-columns: 1fr auto; padding: 19px 0; }
  .footer-inner .filing-links { grid-column: 1 / -1; grid-row: 2; align-items: start; }
}
