/* One noninteractive, viewport-fixed stage; only the hero input surface accepts gestures. */
body { isolation:isolate; }
.core-flight {
  position:fixed;
  inset:0;
  z-index:1;
  pointer-events:none;
  visibility:hidden;
  opacity:0;
  overflow:hidden;
}
.core-flight__viewport { position:absolute; inset:0 auto auto 0; overflow:hidden; width:0; height:0; }
.core-flight__viewport canvas { display:block; position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
#main > section > .wrap { position:relative; z-index:2; }
.site-footer { position:relative; z-index:2; }
[data-core-slot]:not([data-core-slot="hero"]) { pointer-events:none; }

.hero-scene { isolation:isolate; }
.hero-copy { width:43%; margin-top:clamp(2rem,3vw,3.3rem); }
.core-story, .core-readout { min-height:10.5rem; }
.hero-copy p.part-label { margin:0 0 .55rem; color:var(--orange); font:650 .82rem/1.35 var(--body); letter-spacing:.075em; }
.hero-copy .part-title { font-size:clamp(1.65rem,2.8vw,3rem); }
.hero-copy .part-text { margin-top:.7rem; max-width:31rem; }
.core-parts { display:flex; flex-wrap:wrap; gap:0 .85rem; margin-top:.55rem; }
.core-parts button { min-height:44px; border:0; padding:0; color:#c9c5bb; background:none; font-size:.86rem; }
.core-parts button[aria-pressed="true"], .core-parts button:hover { color:var(--type); text-decoration:underline; text-underline-offset:.45em; text-decoration-color:var(--orange); }
.hero-actions { margin-top:.85rem; }

.core-display {
  z-index:1;
  position:absolute;
  width:55%;
  top:22%;
  right:0;
  bottom:3.5rem;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:minmax(0,1fr) auto auto;
  justify-items:center;
  align-items:center;
}
.core-stage {
  position:relative;
  width:100%;
  height:100%;
  min-height:0;
  touch-action:pan-y pinch-zoom;
  user-select:none;
}
.core-stage.is-ready { cursor:grab; }
.core-stage.is-ready[data-dragging] { cursor:grabbing; }
.core-poster { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:contain; pointer-events:none; }
.core-stage.is-ready .core-poster { visibility:hidden; }
.core-stage.device-static .core-poster { visibility:visible; }
.core-stage.device-static { cursor:default; }
.device-callout { position:absolute; z-index:2; bottom:.35rem; right:0; padding:.24rem .55rem; border-left:2px solid var(--orange); background:var(--ink); color:var(--type); font:600 .75rem/1.4 var(--body); letter-spacing:.04em; pointer-events:none; }
.hero-eyeline { column-gap:.38rem; }
.hero-eyeline::before { margin-right:.3rem; }
@media (prefers-reduced-motion:no-preference) {
  .hero-eyeline > span { animation:device-signature .42s both; }
  .hero-eyeline > span:nth-child(2) { animation-delay:.09s; }
  .hero-eyeline > span:nth-child(3) { animation-delay:.18s; }
  @keyframes device-signature { from { opacity:0; transform:translateY(.35em); } to { opacity:1; transform:none; } }
}
.core-status { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.core-tools {
  display:grid;
  grid-template-columns:2.75rem minmax(0,1fr) 2.75rem auto;
  align-items:center;
  gap:.2rem;
  width:min(100%,20rem);
  margin-top:.4rem;
  padding:.25rem;
  border:1px solid rgb(233 222 208 / .19);
  border-top-color:rgb(255 244 231 / .38);
  border-radius:2rem;
  background:
    radial-gradient(ellipse at 24% 0%,rgb(255 224 195 / .15),transparent 65%),
    linear-gradient(165deg,rgb(76 67 61 / .77),rgb(26 24 23 / .88) 66%);
  -webkit-backdrop-filter:blur(18px) saturate(145%);
  backdrop-filter:blur(18px) saturate(145%);
  box-shadow:inset 0 1px 1px rgb(255 248 238 / .12),inset 0 -1px 1px rgb(0 0 0 / .35),0 8px 24px rgb(0 0 0 / .29);
}
.core-tools button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.35rem;
  min-height:44px;
  min-width:44px;
  padding:0;
  border:1px solid transparent;
  border-radius:1.5rem;
  background:transparent;
  color:var(--type);
  font:600 .85rem/1.2 var(--body);
}
.core-tools button:focus-visible { outline-offset:1px; }
.core-tools svg, .core-hint svg {
  flex:none;
  width:1.15rem;
  height:1.15rem;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.core-tools .core-cycle {
  padding-inline:.35rem;
  border-color:rgb(255 229 204 / .23);
  border-top-color:rgb(255 241 227 / .45);
  background:linear-gradient(165deg,rgb(255 228 208 / .21),rgb(255 228 208 / .05));
  box-shadow:inset 0 1px 1px rgb(255 245 232 / .12),0 2px 6px rgb(12 8 7 / .24);
}
.core-tools .core-cycle[aria-pressed="true"] {
  border-color:rgb(255 165 122 / .42);
  background:linear-gradient(165deg,rgb(255 152 105 / .27),rgb(255 152 105 / .09));
  color:#ffd4be;
}
.core-tools .device-reset { padding-inline:.55rem .7rem; color:#ddd5cc; }
.device-reset svg { width:1rem; height:1rem; }
@media (hover:hover) {
  .core-tools button:hover { background-color:rgb(255 237 221 / .12); color:var(--type); }
}
@media (prefers-reduced-motion:no-preference) {
  .core-tools button { transition:background-color .18s,color .18s,border-color .18s,transform .18s; }
  .core-tools button:active { transform:scale(.96); }
}
.core-hint {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.45rem;
  max-width:100%;
  margin-top:.6rem;
  padding:.33rem .68rem;
  border:1px solid rgb(233 222 208 / .13);
  border-radius:1.5rem;
  background:linear-gradient(170deg,rgb(245 221 200 / .09),rgb(245 221 200 / .025));
  color:#d1c9bf;
  font:500 .78rem/1.35 var(--body);
}
.core-hint svg { width:.95rem; height:.95rem; color:#e7a98d; }
[data-core-ready][hidden] { display:none !important; }

@media (min-width:701px) {
  .hero-scene { display:grid; grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr); align-items:start; padding-bottom:clamp(1.6rem,3vw,3rem); }
  .hero-eyeline,.masthead { grid-column:1/-1; }
  .hero .hero-copy { width:100%; align-self:center; margin:1.5rem 0; }
  .hero .core-display { position:relative; inset:auto; width:100%; min-height:0; grid-template-rows:clamp(275px,26vw,416px) auto auto; }
}
@media (max-width:1000px) and (min-width:701px) {
  .core-display { width:51%; top:23%; bottom:3.6rem; }
  .hero-copy { width:47%; }
  .core-parts { column-gap:.57rem; }
}
@media (max-width:700px) {
  .core-display { position:relative; inset:auto; width:100%; grid-area:object; margin:.45rem 0 .75rem; grid-template-rows:clamp(218px,62vw,305px) auto auto; }
  .hero-copy { width:100%; margin:0; }
  .core-story, .core-readout { min-height:0; }
  .core-parts { margin-top:.25rem; gap:0 .85rem; }
  .hero-actions { margin-top:.65rem; }
  .hero-scene { padding-bottom:1.65rem; }
}
@media (max-width:365px) {
  .core-tools button { font-size:.78rem; }
  .core-tools .core-cycle { padding-inline:.2rem; }
  .core-tools .device-reset { padding-inline:.4rem; }
  .device-reset svg { display:none; }
}
@media (max-width:305px) {
  .core-tools { grid-template-columns:2.75rem minmax(0,1fr) 2.75rem; }
  .core-tools .device-reset { grid-column:1/-1; justify-self:center; }
}

/* The live architecture preview shares the real notebook photo with the gallery. */
.mock-scene--architecture .mock-laptop {
  width:76%; left:8%; bottom:18%; aspect-ratio:1200 / 715;
  background:center / 100% 100% no-repeat url("assets/laptop.webp");
  background-image:image-set(url("assets/laptop-small.webp") 1x, url("assets/laptop.webp") 2x);
}
.mock-scene--architecture .mock-laptop__lid {
  position:absolute; inset:7.2% 13.9% 20.2% 14.5%; padding:0; border:0;
  aspect-ratio:auto; box-shadow:none; background:none; border-radius:.2cqi; overflow:hidden;
}
.mock-scene--architecture .mock-laptop__lid::after, .mock-scene--architecture .mock-laptop__base { display:none; }
.mock-scene--architecture .mock-laptop__screen { border:0; border-radius:0; }
