.hardware-chapter {
  --reveal-top: 56px;
  position: relative;
  height: calc(100svh - var(--reveal-top) + var(--story-travel));
}
.story-anchor { position: absolute; top: var(--at); width: 1px; height: 1px; scroll-margin-top: var(--reveal-top); pointer-events: none; }
.hardware-stage {
  position: sticky; top: var(--reveal-top); height: calc(100svh - var(--reveal-top));
  min-height: 250px; width: 100%; overflow: hidden; overflow-anchor: none; isolation: isolate; container-type: size; background: #000;
}
.hero-plate > img, .ear-plate > img, .ear-plate > video, .sensing-flow {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
}
.ear-background, .story-frames, .case-stage, .case-mesh, .case-poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.ear-background, .story-frames, .case-mesh, .case-poster { pointer-events: none; }
.ear-plate {
  position: absolute;
  mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 77%, transparent),
              radial-gradient(ellipse 84% 88% at 52% 45%, #000 57%, transparent 100%);
  mask-composite: intersect;
}
.sensing-flow { pointer-events: none; }
.ear-plate > video, .ear-plate .ear-fitted { opacity: 0; }
.ear-plate > video { transition: opacity .18s ease-out; }
.ear-plate.playing > video { opacity: var(--contact,1); transition:none; }
.ear-plate::after {content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse 19% 32% at 29% 39%,black 38%,transparent 100%);opacity:var(--ear-shade,0);}
.assembly-labels span:nth-child(n+4) {color:#ffcf88;}
.case-stage { pointer-events: none; }
.case-poster { object-fit: contain; max-width: none; filter: none; }
.hardware-caption, .assembly-labels { position: absolute; z-index: 2; pointer-events: none; }
.hardware-caption { width: min(35cqw, 510px); left: 6.2cqw; top: 51%; transform: translateY(-50%); }
.hardware-caption h2 { max-width: 11em; margin: 0; font-size: clamp(36px,4.55cqw,80px); line-height: 1.015; letter-spacing: -.061em; text-wrap: balance; }
.hardware-caption p { max-width: 27ch; margin-top: 1.05em; font-size: clamp(17px,1.55cqw,26px); line-height: 1.38; letter-spacing: -.029em; color: #b1b1b5; }
.beam-copy, .chip-copy, .overview-copy, .companion-copy { left: auto; right: 5.2cqw; width: 32cqw; }
.beam-copy { width: 30cqw; }
.chip-copy h2 { max-width: 10em; }
.assembly-labels { inset: 0; color: #e4e4e6; }
.assembly-labels span {
  position: absolute; white-space: nowrap; font-size: clamp(11px,1cqw,16px); line-height: 1.2;
  letter-spacing: -.015em; transform: translate(-50%, -50%);
}
.device-face { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; }
.device-display { position: absolute; overflow: hidden; background: #07080a; }
.device-display iframe { display: block; width: 100%; height: 100%; border: 0; background: #07080a; }
.case-stage[data-live="true"] .device-display, .case-stage[data-live="true"] .physical-wheel { pointer-events: auto; }
.physical-wheel { position: absolute; border-radius: 50%; touch-action: none; pointer-events: none; }
.wheel-action { position: absolute; padding: 0; border: 0; background: transparent; -webkit-tap-highlight-color: transparent; }
.wheel-prev, .wheel-next { top: 22%; width: 28%; height: 55%; border-radius: 50%; }
.wheel-prev { left: 0; }
.wheel-next { right: 0; }
.wheel-select { left: 28%; top: 28%; width: 44%; height: 44%; border-radius: 50%; }
/* Match the original simulator's capacitive keys on either side of the wheel. */
.device-face .case-key {position:absolute;top:80.18%;transform:translate(-50%,-50%);display:none;place-items:center;width:max(9%,var(--key-touch));height:max(6.5%,var(--key-touch));background:transparent;color:#cad0d5;border:0;padding:0;border-radius:9px;touch-action:manipulation;cursor:pointer;}
.case-stage[data-live="true"] .case-key {display:grid;pointer-events:auto;}
.device-face .case-back {left:14.5%;}
.device-face .case-home {left:85.5%;}
.device-face .case-key svg {width:30px;height:30px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5;}
.device-face .case-key:focus-visible {outline:2px solid currentColor;}
.device-face .case-key:active {background:#0002;}
.wheel-action:focus-visible, .wheel-action:active { outline: 1px solid #bdbfc3; background: #ffffff12; }
.orbit-surface { position: absolute; pointer-events: auto; cursor: grab; touch-action: pan-y; }
.orbit-surface:active { cursor: grabbing; }
.orbit-surface:focus-visible { outline: 1px solid #80828a; outline-offset: 3px; border-radius: 8px; }
.orbit-surface[data-pointer-focus]:focus { outline: none; }
.slide-switch {
  position: absolute; z-index: 2; border: 0; padding: 0; cursor: pointer; pointer-events: auto;
  background: transparent; display: grid; place-items: center; touch-action: manipulation; transform: translate(-50%,-50%);
}
.slide-switch span {
  display: grid; place-items: center; width: var(--switch-width); height: var(--switch-height);
  border-radius: 35%; background: linear-gradient(90deg,#525354,#b5b8ba 48%,#676a6c 80%,#262729);
  box-shadow: inset 0 0 0 1px #ffffff25, 0 1px 3px #0009;
  color: #101114; font: 700 clamp(8px,.9vw,13px)/1 var(--body);
}
.slide-switch[aria-pressed="true"] span { transform: rotate(180deg); }
.slide-switch:focus-visible span, .slide-switch:hover span { filter: brightness(1.35); }
.product-brand { position: absolute; inset: 0 0 auto; border: 0; background: transparent; backdrop-filter: none; pointer-events: none; }
.product-brand .wordmark { pointer-events: auto; }
.product-page .hardware-chapter { --reveal-top: 0px; }
.product-page section[id] { scroll-margin-top: 0; }
.product-page { overflow-anchor: none; }
html:has(.product-page #dpad:target) { scroll-behavior: auto; }
.product-page .footer-inner { color: var(--soft); font-size: 13px; }
.overview-copy p, .chip-copy p { max-width: 31ch; }
.dpad-section { position: relative; padding: clamp(64px, 8vw, 128px) 0 0; }
#wired-prototype { position: absolute; top: 0; }
.mili-intro { margin-bottom: clamp(24px, 3.5vw, 48px); }
.mili-intro h2 { margin: 0; font-size: clamp(42px, 5.7vw, 84px); line-height: 1.04; letter-spacing: -.06em; }
.mili-intro p { margin: .65em 0 0; color: #b1b1b5; font-size: clamp(17px, 1.65vw, 25px); line-height: 1.4; }
.render-gallery { container-type: inline-size; }
.render-panels { display: flex; gap: clamp(6px,1cqw,14px); padding: 0; margin: 0; list-style: none;
  --panel-height: clamp(260px,54cqw,720px); height: var(--panel-height); overflow-x: auto; scroll-snap-type: x mandatory; }
.render-panels li { flex: 0 0 min(82%, 650px); min-width: 0; min-height: 0; overflow: hidden; border-radius: clamp(12px,2cqw,26px); scroll-snap-align: center; }
.render-panel { display: block; padding: 0; border: 0; margin: 0; width: 100%; height: 100%; overflow: hidden; position: relative; container-type: size; cursor: pointer; background: #0b0907; }
.render-panel img { display: block; width: 100%; height: 100%; object-fit: contain; filter: none; }
.render-panel:focus-visible { outline: 2px solid white; outline-offset: -4px; }
.render-gallery[data-ready] .render-panels { overflow: hidden; scroll-snap-type: none; touch-action: pan-y pinch-zoom; }
.render-gallery[data-ready] li { flex: 1 1 0; transition: flex-grow .42s cubic-bezier(.2,.7,.25,1); }
.render-gallery[data-ready] li.is-active { flex-grow: 7; }
.render-gallery[data-ready] .render-panel img { object-fit: cover; }
/* Keep the whole portrait render visible inside the wide panel. Extend the studio backdrop at its edges. */
.render-gallery[data-ready] .portrait img { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: calc(100cqh * var(--ratio)); max-width: none; }
.portrait .render-panel::before, .portrait .render-panel::after {
  content: ""; position: absolute; inset-block: 0; width: max(0px,calc((100cqw - 100cqh * var(--ratio)) / 2 + 1px));
  pointer-events: none; background-image: var(--photo); background-repeat: no-repeat; background-size: 5000% 100%; transform: scaleX(-1);
}
.portrait .render-panel::before { left: 0; background-position: left; }
.portrait .render-panel::after { right: 0; background-position: right; }
.gallery-controls { display: flex; align-items: center; justify-content: end; gap: 13px; margin: 15px 0 0; color: #f5f5f5; }
.gallery-controls button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0 0 2px; border-radius: 50%; border: 1px solid #ffffff42; background: transparent; color: inherit; font: inherit; font-size: 22px; cursor: pointer; }
.gallery-controls button:hover, .gallery-controls button:focus-visible { background: #222; color: white; }
.gallery-position { min-width: 6ch; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; color: #b7b7bb; }
.dpad-studio { position: relative; height: 100svh; width: 100%; background: #000; }
.dpad-studio iframe { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.dpad-studio p { position: absolute; bottom: max(14px,4svh); width: 100%; text-align: center; margin: 0; padding: 0 18px; color: #aaa; font-size: 14px; pointer-events: none; }
@media (max-width: 680px) {
  .render-gallery[data-ready] .render-panels { flex-direction: column; height: clamp(300px,112vw,540px); }
  .render-gallery[data-ready] li { border-radius: 12px; }
  .render-gallery[data-ready] li.is-active { flex-grow: 6; }
  .gallery-controls { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .render-gallery[data-ready] li { transition: none; }
}
.still-story { max-width: 900px; padding: 35px 24px; margin: auto; }
.still-story img { width: 100%; filter: none; }

@container (max-aspect-ratio: 1.1) {
  .hardware-caption { width: auto; left: 7%; right: 7%; top: 7%; transform: none; }
  .hardware-caption h2 { font-size: clamp(32px,6.6cqw,60px); max-width: 14em; }
  .hardware-caption p { margin-top: .65em; font-size: clamp(16px,2.8cqw,22px); max-width: 38ch; }
  .beam-copy { top: auto; bottom: 7%; }
  .assembly-labels span { font-size: clamp(12px,2.35cqw,15px); }
}
@media (max-width:480px) { .hardware-chapter { --reveal-top: 54px; } }
@media (scripting: none) {
  .hardware-chapter { height: auto; }
  .hardware-stage { position: relative; top: 0; }
  .hero-copy { opacity: 1; }
}

.intro-copy { width:min(34cqw,480px); }
.intro-copy p:first-child { font-size:clamp(22px,2.3cqw,40px); line-height:1.24; letter-spacing:-.04em; }
.intro-copy strong,.beam-copy strong {color:white}
.beam-copy p:first-child {margin-top:0}
.assembly-copy h2,.interface-copy p:first-child {font-size:clamp(22px,2.3cqw,40px);line-height:1.24;letter-spacing:-.04em;}
.interface-copy strong {color:white;}
.assembly-copy.sensors h2 {font-weight:450;}
.assembly-copy.sensors .audio-features {display:none;}
.settings-sheet {position:absolute;inset:0;z-index:4;background:rgba(3,4,5,.79);pointer-events:none;overflow:hidden;}
.settings-sheet h2 {position:absolute;top:43%;inset-inline:6%;margin:0;text-align:center;font-size:clamp(34px,4.6cqw,76px);line-height:1.05;letter-spacing:-.055em;text-wrap:balance;}
.settings-content {position:absolute;inset:0 6%;display:grid;align-items:center;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:6%;}
.settings-photos {position:relative;aspect-ratio:1.6;background:#101010;border-radius:16px;overflow:hidden;}
.settings-photos img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:none;opacity:0;}
.settings-photos img:first-child {opacity:1;}
.settings-window {height:50cqh;overflow:hidden;}
.settings-track p {margin:0;height:50cqh;display:grid;align-content:center;font-size:clamp(24px,3.1cqw,52px);letter-spacing:-.045em;line-height:1.1;text-wrap:balance;}
@container (max-aspect-ratio:1.1) {
  .settings-content {display:flex;flex-direction:column;justify-content:center;gap:4cqh;}
  .settings-photos {width:100%;aspect-ratio:1.5;}
  .settings-window,.settings-track p {height:20cqh;width:100%;text-align:center;}
}
.bud-portrait {position:absolute;inset:0;background:#08090a;pointer-events:none;}
.bud-portrait i {position:absolute;top:35%;left:26%;width:11%;height:19%;background:white;border-radius:28%;animation:bud-blink 4.3s infinite;}
.bud-portrait i+i {left:63%;}
.bud-portrait b {position:absolute;left:43%;width:14%;height:5%;top:55%;border-bottom:5px solid white;border-radius:50%;}
@keyframes bud-blink {0%,45%,50%,100%{transform:scaleY(1)}47%{transform:scaleY(.10)}}
@media(prefers-reduced-motion:reduce){.bud-portrait i{animation:none}}
@container (max-aspect-ratio:1.1) {

  .intro-copy {width:auto;top:5%;}
  .intro-copy p {max-width:43ch;font-size:clamp(15px,2.3cqh,21px);}
  .intro-copy p:first-child {font-size:clamp(19px,3.4cqh,30px);}
}
