/* ANC 3D Showroom — homepage-only visual layer */
.hero {
  background:
    radial-gradient(ellipse at 73% 50%, rgba(48, 214, 230, .13), transparent 38%),
    radial-gradient(ellipse at 78% 70%, rgba(241, 90, 53, .09), transparent 32%),
    #12161b;
}
.hero__image {
  opacity: .42;
  background-image:
    radial-gradient(circle at 72% 48%, rgba(44, 177, 198, .22), transparent 28%),
    linear-gradient(90deg, rgba(17,18,21,.76) 0%, rgba(17,18,21,.48) 38%, rgba(18,18,20,.08) 100%);
}
.hero::after {
  border-color: rgba(117, 227, 237, .18);
  box-shadow: 0 0 0 34px rgba(117, 227, 237, .035), 0 0 0 82px rgba(255,255,255,.014), 0 0 70px rgba(34, 194, 213, .12);
}
.anc3d-showroom {
  position: absolute;
  z-index: 0;
  right: 5.5%;
  top: 7%;
  width: min(50%, 650px);
  height: 86%;
  display: grid;
  place-items: center;
  perspective: 1300px;
  perspective-origin: 50% 45%;
  isolation: isolate;
  user-select: none;
  -webkit-user-select: none;
}
.anc3d-showroom__glow {
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,198,218,.2), rgba(45,198,218,.06) 38%, transparent 70%);
  filter: blur(16px);
  transform: translate(2%, 6%);
  pointer-events: none;
}
.anc3d-showroom__ring {
  position: absolute;
  width: 82%;
  aspect-ratio: 1;
  border: 1px solid rgba(184,244,249,.13);
  border-radius: 50%;
  transform: rotateX(69deg) rotateZ(-14deg) translateZ(-30px);
  box-shadow: 0 0 0 23px rgba(184,244,249,.025), inset 0 0 55px rgba(45,198,218,.08);
  pointer-events: none;
}
.anc3d-showroom__orbit {
  position: absolute;
  width: 69%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(177,242,246,.62), transparent);
  transform: rotate(-28deg) translateY(112px);
  filter: drop-shadow(0 0 8px #55d9e7);
  pointer-events: none;
}
.anc3d-showroom__label {
  position: absolute;
  top: 7%;
  right: 2%;
  color: rgba(219,239,241,.68);
  font: 700 8px/1.5 var(--font-body, sans-serif);
  letter-spacing: .18em;
  text-align: right;
  pointer-events: none;
}
.anc3d-model-button {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 520px);
  height: min(78%, 390px);
  min-height: 260px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: grab;
  touch-action: pan-y;
  transform: translateY(var(--scroll-drop, 0px));
  transition: transform .1s linear;
}
.anc3d-model-button:active { cursor: grabbing; }
.anc3d-model-button:focus-visible { outline: 2px solid #7ae3eb; outline-offset: 9px; border-radius: 18px; }
.anc3d-model-float {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  animation: anc3d-float 5.6s ease-in-out infinite;
}
.anc3d-laptop {
  position: relative;
  width: min(90%, 420px);
  height: min(88%, 330px);
  transform-style: preserve-3d;
  transform: rotateX(calc(54deg + var(--pitch, 0deg))) rotateY(var(--yaw, -24deg)) rotateZ(-7deg);
  transition: transform .32s cubic-bezier(.2,.7,.2,1);
  filter: drop-shadow(0 24px 24px rgba(0,0,0,.38));
}
.anc3d-model-button.is-dragging .anc3d-laptop,
.anc3d-model-button.is-spinning .anc3d-laptop { transition: none; }
.anc3d-lid {
  position: absolute;
  z-index: 2;
  left: 14%;
  bottom: 45%;
  width: 72%;
  height: 62%;
  transform-style: preserve-3d;
  transform-origin: 50% 100%;
  transform: rotateX(var(--lid-angle, -64deg));
  transition: transform .7s cubic-bezier(.2,.75,.2,1);
  border: 1px solid rgba(220,252,255,.7);
  border-radius: 13px 13px 7px 7px;
  padding: 8px;
  background: linear-gradient(145deg, #a8bac0 0%, #2d3940 13%, #111820 76%, #060b10 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.76), 0 0 28px rgba(53,198,216,.18);
  backface-visibility: hidden;
}
.anc3d-lid::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 9px 9px 4px 4px;
  pointer-events: none;
}
.anc3d-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 7px 7px 3px 3px;
  background:
    radial-gradient(ellipse at 74% 25%, rgba(150,249,255,.95), transparent 4%),
    radial-gradient(ellipse at 63% 42%, rgba(39,218,226,.72), transparent 26%),
    radial-gradient(ellipse at 35% 65%, rgba(73,110,239,.6), transparent 38%),
    linear-gradient(137deg, #0a1721 0%, #0a303d 43%, #080c19 100%);
  box-shadow: inset 0 0 36px rgba(43,214,226,.17);
}
.anc3d-screen::before,
.anc3d-screen::after {
  content: "";
  position: absolute;
  width: 80%;
  height: 95%;
  left: 10%;
  top: 25%;
  border: 1px solid rgba(192,250,255,.37);
  border-radius: 50%;
  transform: rotate(-28deg);
  box-shadow: 0 0 25px rgba(72,228,240,.15), inset 0 0 25px rgba(72,228,240,.11);
  animation: anc3d-screen-wave 6s ease-in-out infinite alternate;
}
.anc3d-screen::after {
  width: 57%; height: 78%; left: 22%; top: 34%; border-color: rgba(255,255,255,.25);
  animation-delay: -2.8s; transform: rotate(33deg);
}
.anc3d-screen-ui {
  position: absolute;
  inset: 9% 9% auto;
  display: flex;
  justify-content: space-between;
  color: rgba(223,249,250,.8);
  font: 600 7px var(--font-body, sans-serif);
  letter-spacing: .14em;
  text-shadow: 0 0 12px rgba(94,222,233,.7);
}
.anc3d-screen-dot { width: 4px; height: 4px; border-radius: 50%; background: #8af4f4; box-shadow: 0 0 8px #8af4f4; }
.anc3d-base {
  position: absolute;
  z-index: 3;
  left: 1%;
  top: 53%;
  width: 98%;
  height: 38%;
  transform: rotateX(2deg) translateZ(2px);
  transform-origin: 50% 0;
  border: 1px solid rgba(245,252,255,.77);
  border-radius: 4px 4px 22px 22px;
  background: linear-gradient(180deg, #aab8bc 0%, #53656b 8%, #202c32 23%, #10181e 70%, #53646a 94%, #c5d0d1 100%);
  box-shadow: inset 0 2px 3px rgba(255,255,255,.65), 0 13px 20px rgba(0,0,0,.4);
  clip-path: polygon(4% 0, 96% 0, 100% 77%, 93% 100%, 7% 100%, 0 77%);
}
.anc3d-keyboard {
  position: absolute;
  left: 16%;
  top: 15%;
  width: 68%;
  height: 47%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 5px 7px;
  border-radius: 4px;
  background: linear-gradient(135deg, #10151a, #2b393e);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.22);
}
.anc3d-key-row { display: flex; gap: 3px; flex: 1; }
.anc3d-key-row i { flex: 1; border-radius: 2px; background: linear-gradient(180deg, #53636a, #1a2227 70%); box-shadow: 0 1px 0 rgba(255,255,255,.16), 0 1px 2px #05080a; }
.anc3d-key-row i.key-wide { flex: 1.8; }
.anc3d-trackpad {
  position: absolute;
  top: 70%; left: 39%; width: 22%; height: 20%;
  border: 1px solid rgba(213,233,236,.43);
  border-radius: 2px 2px 8px 8px;
  background: linear-gradient(145deg, rgba(212,230,232,.22), rgba(45,58,63,.28));
  box-shadow: inset 0 1px 1px rgba(255,255,255,.16);
}
.anc3d-front-lip {
  position: absolute;
  left: 12%; right: 12%; bottom: 4%; height: 5px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(157,239,243,.7), rgba(255,255,255,.86), rgba(157,239,243,.6), transparent);
  filter: blur(.5px);
}
.anc3d-model-button.is-closed { --lid-angle: 0deg; }
.anc3d-model-button.is-spinning .anc3d-model-float { animation: anc3d-spin 2.2s cubic-bezier(.45,.05,.55,.95) 1; }
.anc3d-controls {
  position: absolute;
  z-index: 4;
  bottom: 1%;
  right: 2%;
  display: flex;
  align-items: center;
  gap: 10px;
}
.anc3d-control-button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(198,240,242,.43);
  border-radius: 99px;
  padding: 0 12px;
  background: rgba(8,17,21,.65);
  color: #ecfbfc;
  font: 700 8px var(--font-body, sans-serif);
  letter-spacing: .12em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background .2s, border-color .2s, transform .2s;
}
.anc3d-control-button:hover { background: rgba(30,119,129,.45); border-color: #9ef4f7; transform: translateY(-2px); }
.anc3d-control-button:focus-visible { outline: 2px solid #9ef4f7; outline-offset: 3px; }
.anc3d-control-button svg { width: 13px; height: 13px; }
.anc3d-drag-hint {
  color: rgba(224,246,247,.65);
  font: 700 7px var(--font-body, sans-serif);
  letter-spacing: .15em;
  white-space: nowrap;
}
.anc3d-showroom__foot {
  position: absolute;
  left: 5%;
  bottom: 2%;
  color: rgba(224,246,247,.55);
  font: 700 7px var(--font-body, sans-serif);
  letter-spacing: .16em;
}
.hero__copy { z-index: 2; }
/* The new 3D stage takes over the right-side visual slot. */
.hero-sticker { display: none !important; }

/* Restrained reveal motion below the hero; the content remains visible if JS is unavailable. */
.anc-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.anc-reveal.anc-in-view { opacity: 1; transform: translateY(0); }

@keyframes anc3d-float {
  0%, 100% { transform: translateY(-5px) rotateZ(-1deg); }
  50% { transform: translateY(7px) rotateZ(1deg); }
}
@keyframes anc3d-screen-wave {
  from { transform: rotate(-28deg) translateY(0) scale(.96); opacity: .55; }
  to { transform: rotate(-22deg) translateY(-7px) scale(1.04); opacity: .95; }
}
@keyframes anc3d-spin {
  0% { transform: rotateY(0deg) rotateZ(0deg); }
  45% { transform: rotateY(190deg) rotateZ(9deg); }
  100% { transform: rotateY(360deg) rotateZ(0deg); }
}
@media (max-width: 1080px) {
  .anc3d-showroom { right: 1%; width: 48%; }
  .anc3d-model-button { width: 100%; }
  .anc3d-showroom__label { right: 3%; }
  .anc3d-controls { right: 3%; }
  .hero__copy { width: 52%; }
}
@media (max-width: 760px) {
  .hero { height: 760px; }
  .hero__copy { top: 7%; left: 7%; width: 86%; }
  .hero h1 { font-size: clamp(55px, 14vw, 76px); }
  .hero__footnote { margin-top: 30px; }
  .anc3d-showroom { top: auto; bottom: 3%; right: 2%; width: 96%; height: 42%; }
  .anc3d-model-button { width: 100%; height: 100%; min-height: 220px; }
  .anc3d-laptop { width: min(83%, 360px); height: min(82%, 270px); }
  .anc3d-showroom__label { top: 0; right: 7%; font-size: 7px; }
  .anc3d-showroom__ring { width: 72%; }
  .anc3d-controls { right: 6%; bottom: 0; }
  .anc3d-showroom__foot { left: 6%; bottom: 1%; }
  .hero-sticker { display: none; }
}
@media (max-width: 430px) {
  .hero { height: 790px; }
  .hero__copy { top: 6%; }
  .hero__copy > p { max-width: 320px; font-size: 13px; }
  .hero__buttons { margin-top: 20px; }
  .hero__footnote { font-size: 7px; }
  .anc3d-showroom { height: 39%; bottom: 4%; }
  .anc3d-laptop { width: 89%; height: 82%; }
  .anc3d-controls { gap: 6px; }
  .anc3d-control-button { min-height: 30px; padding-inline: 9px; }
  .anc3d-drag-hint { font-size: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .anc3d-model-float, .anc3d-screen::before, .anc3d-screen::after { animation: none !important; }
  .anc-reveal { opacity: 1; transform: none; transition: none; }
  .anc3d-lid, .anc3d-laptop, .anc3d-model-button, .anc3d-control-button { transition: none !important; }
}


/* Photographic laptop views replace the old vector laptop. */
.anc3d-model-button{appearance:none;-webkit-appearance:none;border:0!important;background:transparent!important;color:inherit;padding:0;box-shadow:none!important;outline-offset:8px;transform:translate3d(0,var(--scroll-drop,0px),0) rotateZ(var(--scroll-rotate,0deg));}
.anc3d-model-button:focus-visible{outline:2px solid #ff8b69!important;outline-offset:8px;border-radius:18px}
.anc3d-laptop{width:min(100%,590px);height:min(100%,460px);transform:rotateX(calc(var(--pitch,0deg) - 3deg)) rotateY(var(--yaw,-18deg)) rotateZ(-5deg);transition:transform .45s cubic-bezier(.2,.7,.2,1);filter:drop-shadow(0 34px 35px rgba(0,0,0,.48)) drop-shadow(0 0 27px rgba(255,112,77,.11))}
.anc3d-laptop-view{position:absolute;inset:0;display:grid;place-items:center;transform-style:preserve-3d;backface-visibility:hidden;-webkit-backface-visibility:hidden;overflow:visible}
.anc3d-laptop-view--front{transform:translateZ(5px)}
.anc3d-laptop-view--back{transform:rotateY(180deg) translateZ(5px)}
.anc3d-laptop-view img{display:block;width:112%;height:112%;max-width:none;max-height:none;object-fit:contain;pointer-events:none;user-select:none;-webkit-user-drag:none;mix-blend-mode:normal;filter:drop-shadow(0 10px 12px rgba(0,0,0,.18))}
.anc3d-laptop{transform:rotateX(calc(var(--pitch,0deg) - 3deg)) rotateY(var(--yaw,0deg)) rotateZ(-5deg)}
.anc3d-laptop{transform:rotateX(calc(var(--pitch,0deg) - 3deg)) rotateY(var(--yaw,0deg)) rotateZ(-5deg)}
.anc3d-model-button.is-dragging .anc3d-laptop{transition:none;cursor:grabbing}
.anc3d-model-float.is-spinning{animation:anc3d-spin 3.4s cubic-bezier(.22,.61,.36,1) 1}
.anc3d-controls{gap:12px}
.anc3d-control-button{border-color:rgba(255,112,77,.72);color:#fff2ed;background:rgba(22,16,15,.86);box-shadow:0 8px 24px rgba(0,0,0,.25)}
.anc3d-control-button:hover,.anc3d-control-button[aria-pressed="true"]{background:#ff704d;border-color:#ff9b80;color:#16110f;transform:translateY(-2px)}
.anc3d-control-button:focus-visible{outline:2px solid #ff9273;outline-offset:3px}
.anc3d-drag-hint{color:rgba(255,241,236,.8)}
.anc3d-showroom--collection .anc3d-laptop{width:min(99%,550px);height:min(97%,430px)}
.anc3d-showroom--about{position:absolute;inset:0;width:100%;height:100%;top:auto;right:auto;perspective:1500px;perspective-origin:50% 45%}
.anc3d-showroom--about .anc3d-model-button{width:100%;height:88%;min-height:0}
.anc3d-showroom--about .anc3d-laptop{width:min(112%,640px);height:100%}
@keyframes anc3d-spin{0%{transform:rotateY(0deg) rotateZ(0deg)}35%{transform:rotateY(150deg) rotateZ(5deg)}68%{transform:rotateY(270deg) rotateZ(-2deg)}100%{transform:rotateY(360deg) rotateZ(0deg)}}
@media(max-width:760px){.anc3d-laptop{width:min(100%,440px);height:min(92%,360px)}.anc3d-laptop-view img{width:108%;height:108%}.anc3d-showroom--collection .anc3d-laptop{width:min(98%,380px);height:90%}.anc3d-showroom--about{height:100%}.anc3d-showroom--about .anc3d-model-button{width:100%;height:90%}.anc3d-showroom--about .anc3d-laptop{width:min(107%,430px);height:100%}}
