/* Graphite studio panels with yellow actions and a cool inspection light. */
:root {
  --night: #0c1119;
  --chalk: #f5f7fa;
  --gold: #ffda43;
  --muted: #c1c9d0;
  --line: #354550;
  --ice: #99e5e1;
}
.mast { background:#0c1119; border-bottom-color:#354550; }
.mast .brand { color:#f6f7f2; }
.mast nav a { color:#dce2e7; }
.mast a:focus-visible, .mast button:focus-visible, .mast summary:focus-visible,
.firstlook a:focus-visible, .firstlook button:focus-visible, .offer button:focus-visible,
.structure :focus-visible, .launch :focus-visible { outline-color:var(--ice); }

.firstlook {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #f5f7fa;
  background: #0c1119;
}
.firstlook-film {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 clamp(80px, 15vw, 310px);
}
.firstlook-film video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.firstlook-film::after {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background: linear-gradient(90deg, #0c1119 0%, rgba(12, 17, 25, .91) 7%, rgba(12, 17, 25, .48) 23%, transparent 52%),
              linear-gradient(0deg, rgba(8, 14, 22, .48), transparent 48%);
}
.firstlook-inner { min-height: clamp(490px, calc(88svh - 69px), 830px); display: flex; align-items: end; }
.firstlook-copy { width: min(49%, 620px); padding-block: clamp(38px, 5vw, 82px); }
.firstlook h1 {
  margin: clamp(15px, 1.6vw, 24px) 0 clamp(20px, 2vw, 32px);
  font: 730 clamp(53px, 6.9vw, 116px)/.9 var(--sans);
  letter-spacing: -.068em;
  text-shadow:0 2px 20px #050b1566;
}
.firstlook h1 em { display: inline; margin-left: -.015em; font: italic 400 1.075em/.93 var(--serif); letter-spacing: -.075em; color: #ffe5a9; white-space: nowrap; }
.firstlook-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px clamp(18px, 2vw, 32px); margin-top: clamp(22px, 2.55vw, 40px); }
.firstlook-actions a { display: inline-flex; align-items: center; min-height: 46px; font: 650 .9375rem/1.2 var(--sans); text-decoration: none; }
.firstlook-play { gap:9px; color:#edf3f6; }
.firstlook-play:hover { text-decoration:underline; text-underline-offset:4px; }
.firstlook-play i, .firstlook-toggle.is-paused span { width: 0; height: 0; border: 0; border-block: 5px solid transparent; border-left: 8px solid currentColor; }
.firstlook-actions .firstlook-build { color: #edf3f6; text-decoration: underline; text-decoration-color: #8da1ae; text-underline-offset: 5px; }
.firstlook-build:hover { text-decoration-color: currentColor; }
.firstlook-controls { position:absolute; z-index:2; right:clamp(14px,3vw,50px); bottom:clamp(15px,2vw,30px); display:flex; align-items:center; gap:8px; }
.firstlook-sound:not([hidden]) { display:inline-flex; justify-content:center; align-items:center; min-height:46px; padding:8px 14px; border:1px solid #ffffff8c; border-radius:24px; background:#101821ec; color:white; font:650 .875rem/1.2 var(--sans); }
.firstlook-sound:hover { background:#192633; }
.firstlook-toggle:not([hidden]) { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid #ffffff8c; border-radius: 50%; color: white; background: #101821e6; }
.firstlook-toggle:hover { background: #192633; }
.firstlook-toggle span { width: 10px; height: 13px; border-inline: 3px solid currentColor; }
.firstlook-toggle.is-paused span { margin-left: 2px; }

.duckstudio { overflow: hidden; color: #2d2225; background: radial-gradient(ellipse at 60% 65%, #fffcf5 0%, #faf4e8 53%, #f3ecdb 100%); }
.duckstudio-inner { padding-block: clamp(36px, 5vw, 79px) clamp(26px, 3.5vw, 56px); }
.duckstudio-title { display: flex; align-items: end; justify-content: space-between; gap: 2rem; border-bottom: 1px solid #d8cdb9; padding-bottom: clamp(17px, 2vw, 33px); }
.duckstudio-title h2 { margin: 0; font-size: clamp(42px, 5.5vw, 85px); line-height: .98; }
.duckstudio-title h2 em { white-space: nowrap; color: #6d4130; }
.duckstudio-title p { max-width: 29ch; font-size: clamp(1rem, 1.19vw, 1.16rem); line-height: 1.46; color: #62534a; text-wrap: pretty; }
.lineup-reference { margin-top: clamp(16px, 2.7vw, 42px); }
.lineup-reference img { display: block; width: 100%; height: auto; max-height: 490px; object-fit: contain; }

@media (max-width: 680px) {
  .firstlook { display: grid; }
  .firstlook-film { position: relative; z-index: 0; inset: auto; width: 100%; aspect-ratio: 1.68; }
  .firstlook-film::after { background: linear-gradient(0deg, #0c1119, transparent 20%); }
  .firstlook-inner { min-height: 0; align-items: start; }
  .firstlook-copy { width: 100%; padding: 6px 0 clamp(28px, 6vw, 36px); }
  .firstlook h1 { margin: 9px 0 14px; font-size: clamp(43px, 11vw, 69px); line-height: 1; }
  .firstlook-actions { margin-top: 16px; gap: 6px clamp(12px, 4vw, 24px); }
  .firstlook-actions a { font-size: .875rem; min-height: 44px; }
  .firstlook-film { grid-area:1 / 1; }
  .firstlook-inner { grid-area:3 / 1; }
  .firstlook-controls { position:static; grid-area:2 / 1; justify-self:end; gap:6px; margin:2px 14px 0; }
  .duckstudio-title { display: block; }
  .duckstudio-title h2 { font-size: clamp(37px, 9vw, 58px); }
  .duckstudio-title p { margin-top: 10px; max-width: 39ch; }
  .lineup-reference { margin: 17px -6px 4px; }
}
@media (min-width: 681px) and (max-height: 600px) {
  .firstlook-inner { min-height: clamp(290px, calc(100svh - 58px), 490px); }
  .firstlook-copy { width: min(50%, 610px); padding-block: clamp(20px, 5vh, 36px); }
  .firstlook h1 { margin: 9px 0 13px; font-size: clamp(54px, 11svh, 74px); }
  .firstlook-actions { margin-top: 12px; }
}
@media (min-width: 480px) and (max-width: 680px) and (max-height: 460px) and (orientation: landscape) {
  .firstlook { display: block; }
  .firstlook-film { position: absolute; z-index: -1; inset: 0 0 0 19%; width: auto; aspect-ratio: auto; }
  .firstlook-film::after { background: linear-gradient(90deg, #0c1119 0%, rgba(12,17,25,.87) 22%, transparent 69%); }
  .firstlook-inner { min-height: max(235px, calc(100svh - 58px)); align-items: center; }
  .firstlook-copy { width: 60%; padding-block: 14px; }
  .firstlook h1 { margin-block: 5px 9px; font-size: clamp(34px, 7.2vw, 47px); }
  .firstlook-actions { margin-top: 8px; gap: 4px 10px; }
  .firstlook-controls { position:absolute; top:10px; right:10px; bottom:auto; margin:0; }
}

.launch { background:#101720; }
.cinema-screen { border-color:#43525d; box-shadow:3px 3px 0 #627780; }
.cinema-head h2 em, .build-copy h2 em { color:var(--ice); }
#launch-play:not([hidden]) { border-color:#a6b7bc; background:#0e1720ee; color:#f5f6ec; }
.structure { background:radial-gradient(ellipse at 68% 41%,#1e303c, #121b25 52%,#0c131b 85%); }
.build-copy .section-intro, .build-copy .label { color:#cfdae0; }
.build-copy .guide { color:var(--ice); }
.build-board { border-color:#465964; background:#121c25; }
.part-filters, .model-controls { border-color:#3b505d; }
.part-filters button, #reset-view { color:#d9e3e8; }
.part-filters button[aria-pressed="true"] { background:var(--ice); color:#10222a; }
.canvas-area {
  background:radial-gradient(ellipse at 48% 46%,transparent 18%,#15212ed9 92%),
    repeating-linear-gradient(0deg,#98d1de18 0 1px,transparent 1px 32px),
    repeating-linear-gradient(90deg,#98d1de18 0 1px,transparent 1px 32px),#1d2c37;
}
.zoom-tools { border-color:#576e7a; background:#121b25ed; }
.build-board #auto-spread { background:#d4edec; color:#172830; border-color:#97b4b7; }
.build-board #auto-spread[aria-pressed="true"] { background:var(--gold); color:#211c0e; }
#spread { accent-color:var(--ice); }
#xray { color:#d8e6eb; border-color:#697c89; }
#xray[aria-pressed="true"] i { background:var(--ice); border-color:var(--ice); }
.offer { background:#121d28; color:#f5f7f8; }
.offer .print-label { color:#c4d2d9; }
.offer .status-dot { background:var(--gold); }
.offer h2 em { color:var(--ice); }
.offer-art::before { background:#22323f; border-color:#536874; }
