/* Daylight is its own artwork and palette. Dawn, dusk and night retain their own illustrations. */
body[data-edition-route][data-tone="frost"] {
  color-scheme:light;
  --page:#edf2f7; --surface:#f6f8fd; --card:#e2e8f1;
  --ink:#1d2b44; --muted:#4d5d77; --accent:#395a83;
  --button-bg:#2f4d72; --button-ink:#f7faff; --line:#546e9350;
}
body[data-page="home"][data-tone="frost"] .masthead {
  background:linear-gradient(180deg,#edf4fbe8,#edf4fb62);
  --ink:#1d2b44; --muted:#354966; --accent:#395883; --line:#546e9350;
}
body[data-edition-route][data-tone="frost"] .brand img { filter:brightness(0) opacity(.85); }
body[data-page="home"][data-tone="frost"] .mobile-nav { background:#edf2f9; }
body[data-page="home"] .hero[data-layout="day"] { --veil:#edf2f7; --h1:#172746; }
body[data-page="home"] .hero[data-layout="day"] .hero-shade {
  background:linear-gradient(90deg,#ecf3fbde,#edf3fb57 38%,transparent 61%),
             linear-gradient(0deg,var(--veil),transparent 17%);
}
body[data-page="home"] .hero[data-layout="day"] h1 { filter:none; text-shadow:none; }
body[data-page="home"] .hero[data-layout="day"] :is(.hero-lead,.hero-overline,.hero-caption) { color:#213b5c; }
body[data-page="home"] .hero[data-layout="day"] .hero-caption {
  background:linear-gradient(90deg,#dfeaf3e8,#dfeaf346); text-shadow:none;
}
body[data-page="home"] .hero[data-layout="day"] .button-scene {
  background:#f6faff9e; border-color:#546e937f; color:#203b5f;
}
body[data-page="home"][data-tone="frost"] .showcase .tile:not(.tile-archive) {
  border-color:#8ea1bd80; background:#f7faffeb; color:#1d2b44;
  box-shadow:0 12px 30px #3e5a7440;
}
body[data-page="home"][data-tone="frost"] .showcase .tile-live .tile-portrait {
  opacity:.55; mask-image:linear-gradient(90deg,transparent,#000 80%);
}
body[data-page="home"][data-tone="frost"] .showcase .tile-archive { border-color:#6e7898; }

.atmosphere .atmosphere-copy { display:grid; gap:2px; text-align:left; line-height:1.18; color:var(--ink); }
.atmosphere-copy small { font-size:.67rem; font-weight:600; color:var(--muted); white-space:nowrap; }
#theme-status { margin:12px 0 0; color:var(--muted); font-size:.86rem; }
.motion-option { display:flex; gap:8px; align-items:center; min-height:40px; }
.motion-option input { width:17px; height:17px; accent-color:var(--accent); }

.site-weather {
  position:fixed; z-index:4; inset:0; width:100%; height:100%; pointer-events:none;
  opacity:.72; transition:opacity .4s ease;
}
body[data-snow-over-hero="true"] .site-weather { opacity:1; }
body[data-winter-effects="off"] .site-weather { visibility:hidden; }
.scene-dialog canvas { pointer-events:none; }
.chapter .contact-email { max-width:100%; overflow-wrap:anywhere; }

/* Movement of the panorama pauses when the hero leaves the viewport. */
.hero .winter-glow {
  position:absolute; z-index:-1; inset:0; pointer-events:none; opacity:0;
  background:radial-gradient(ellipse at 80% 0%,#f9dcfd47,transparent 34%),
             radial-gradient(ellipse at 13% 100%,#d3e1ff32,transparent 42%);
}
.hero[data-weather="window"] .winter-glow {
  background:radial-gradient(ellipse at 80% 84%,#ffd1a249,transparent 34%),
             radial-gradient(ellipse at 92% 0%,#bfb3ff30,transparent 40%);
}
.hero[data-layout="day"] .winter-glow {
  background:radial-gradient(ellipse at 83% 8%,#fffaf2ae,transparent 37%),
             radial-gradient(ellipse at 6% 95%,#fff9fea0,transparent 30%);
}
body[data-winter-effects="on"] .hero .winter-glow { animation:winter-light 9s ease-in-out infinite alternate; animation-play-state:paused; }
body[data-winter-effects="on"] .hero .hero-portrait { animation:winter-drift 24s ease-in-out infinite alternate; animation-play-state:paused; }
body[data-winter-effects="on"] .hero[data-winter-in-view="true"] :is(.winter-glow,.hero-portrait) { animation-play-state:running; }
body[data-winter-effects="on"] .showcase .tile:hover .tile-art { transition:opacity .35s ease, scale .45s ease; scale:1.025; }
@keyframes winter-drift { from { scale:1; } to { scale:1.035; } }
@keyframes winter-light { from { opacity:.19; } to { opacity:.63; } }

/* Original Huawei product renders and a registered aperture per SKU. */
.hardware-watch { position:relative; display:block; aspect-ratio:378/480; isolation:isolate; flex:none; }
.hardware-watch img.hardware-body {
  display:block; width:100%; height:100%; aspect-ratio:auto; object-fit:contain;
  border-radius:0; background:none; transform:none;
}
.hardware-screen {
  position:absolute; z-index:1; overflow:hidden;
  left:var(--screen-x); top:var(--screen-y); width:var(--screen-w); height:var(--screen-h);
  border-radius:var(--screen-radius); background:#06070b;
}
.hardware-screen img,.hardware-screen video {
  display:block; width:100%; height:100%; object-fit:cover;
  border-radius:0; transform:none; background:none; aspect-ratio:auto;
}
.banner-faces .hardware-watch { width:clamp(84px,13vw,210px); filter:drop-shadow(0 20px 15px #10112393); }
.banner-faces .hardware-watch:first-child { rotate:-8deg; }
.banner-faces .hardware-watch:nth-child(2) { scale:1.12; z-index:2; }
.banner-faces .hardware-watch:last-child { rotate:10deg; }
body[data-page="home"] .showcase .watch-reel .hardware-watch { width:clamp(43px,6vw,103px); filter:drop-shadow(0 8px 7px #140f2350); }
body[data-page="home"] .showcase .watch-reel .hardware-watch:nth-child(2) { scale:1.09; z-index:2; }
body[data-page="home"] .showcase .watch-reel .hardware-watch img { width:100%; height:100%; }
body[data-page="home"] .showcase .watch-reel .hardware-watch:nth-child(2) img { transform:none; }
.fitting-stage {
  display:grid; min-height:clamp(385px,42vw,620px); align-items:center; padding:22px 10px 17px;
  background:radial-gradient(ellipse at 50% 69%,#a7b2c34a,transparent 56%),
             radial-gradient(ellipse at 40% 92%,#5e7c9c5c,transparent 54%),var(--surface);
}
.fitting-figure { display:grid; width:100%; max-width:540px; justify-items:center; margin:0; gap:14px; }
.fitting-watch {
  width:min(90%,375px);
  filter:drop-shadow(0 20px 15px #11162d89);
}
.hardware-watch[data-loading] { visibility:hidden; }
.fitting-figure figcaption { color:var(--ink); text-align:center; font-size:clamp(.69rem,1.4vw,.9rem); }
.legacy-fitting-watch { width:min(100%,400px); margin-inline:auto; filter:drop-shadow(0 15px 13px #08091085); }
.legacy-content .legacy-fitting-watch .watch-customizer-face {
  width:100%; height:100%; border:0; border-radius:0; box-shadow:none; outline:0; margin:0;
}
.legacy-content .watch-customizer-intro p,.legacy-content .watch-customizer-controls fieldset legend { color:var(--muted); }
.device-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.device-choice:has(input:checked),.device-choice:has(input:focus-visible) { border-color:var(--accent); outline:1px solid var(--accent); }
.device-choice input {
  position:absolute; opacity:0; width:1px; height:1px; inset:auto;
}
.device-swatch { width:17px; height:17px; flex:0 0 auto; border:1px solid #8795af; border-radius:50%; background:#22252b; }
.device-swatch[data-swatch="titanium"] { background:linear-gradient(135deg,#f7f6f3,#848a93); }
.device-swatch[data-swatch="ceramic"] { background:#f7eee7; }
.device-swatch[data-swatch="grey"] { background:#b0b3b7; }
.device-swatch[data-swatch="pink"] { background:#f3c7c9; }
.device-swatch[data-swatch="gold"] { background:linear-gradient(135deg,#f9f3e7 45%,#bd9863 75%); }
.device-swatch[data-swatch="green"] { background:#bccaa9; }

.winter-gallery > h2 { margin-bottom:20px; }
.winter-gallery .art-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.winter-gallery .art-grid a { grid-column:auto; aspect-ratio:1; }
.winter-gallery .art-grid a img { object-position:center; transition:scale .4s ease; }
body[data-winter-effects="on"] .winter-gallery .art-grid a:hover img { scale:1.035; }
#art-caption { text-align:center; font-size:.84rem; color:var(--muted); margin:9px auto 0; }
.art-dialog img { max-height:calc(100dvh - 160px); }
.world-december.world-banner figure img { object-position:center 32%; }
.collection-december .cover img { object-position:center 30%; }
.device-controls select { display:block; width:100%; margin-top:7px; }
.device-controls .device-variants { min-width:0; margin:0; padding:9px 0 12px; border:0; }
.device-controls .device-variants legend { margin-bottom:4px; color:var(--ink); font-size:.95rem; }
.device-controls .device-choice {
  position:relative; display:flex; align-items:center; gap:7px; min-height:44px; padding:9px 7px;
  color:var(--ink); border:1px solid var(--line); background:var(--page); cursor:pointer;
}
.device-controls .device-options { margin:0; }
.watch-customizer-preview [data-hardware-caption] { display:inline-block; margin-bottom:5px; color:var(--ink); }
.scene-dialog #scene-line { right:var(--gutter); bottom:82px; }

/* Entrance and scroll motion keep the document available to keyboard and screen reader users. */
body[data-winter-effects="on"] [data-arrival] { animation:studio-entrance .68s cubic-bezier(.22,.66,.24,1) both; }
body[data-winter-effects="on"] [data-reveal="pending"] {
  opacity:0; translate:0 24px; transition:opacity .66s ease, translate .66s cubic-bezier(.18,.68,.18,1);
}
body[data-winter-effects="on"] [data-reveal="visible"] {
  opacity:1; translate:0 0; transition:opacity .66s ease, translate .66s cubic-bezier(.18,.68,.18,1);
}
body[data-winter-effects="on"] [data-reveal]:focus-within { opacity:1; translate:none; }
body[data-winter-effects="on"] [data-drift] { animation:winter-drift 28s ease-in-out infinite alternate paused; }
body[data-winter-effects="on"] [data-drift="playing"] { animation-play-state:running; }
@keyframes studio-entrance { from { opacity:0; translate:0 13px; } to { opacity:1; translate:0 0; } }
body[data-winter-effects="on"] .site-weather { transition:opacity .4s ease; }
body[data-winter-effects="on"] .hero-portrait img { transition:filter .7s ease; }
.motion-anchor { position:relative; }
body[data-winter-effects="on"] [data-lustre] {
  isolation:isolate; transition:transform .3s ease, box-shadow .32s ease, border-color .3s ease;
}
body[data-winter-effects="on"] [data-lustre]::after {
  content:""; position:absolute; inset:0; z-index:3; pointer-events:none; overflow:hidden; border-radius:inherit; opacity:0;
  background:linear-gradient(110deg,transparent 34%,#fff5 48%,#e2d2ff7a 52%,transparent 66%),
             radial-gradient(ellipse at var(--light-x,50%) var(--light-y,50%),#d6c8ff5e,transparent 56%);
  background-size:240% 100%,100% 100%; background-position:100% 50%,center;
  transition:opacity .24s ease, background-position .68s cubic-bezier(.16,.68,.22,1);
}
body[data-winter-effects="on"] [data-lustre]:is(:hover,:focus-visible)::after {
  opacity:1; background-position:0% 50%,center;
}
body[data-winter-effects="on"] [data-lustre]:focus-visible {
  box-shadow:0 0 0 2px var(--accent),0 12px 25px #21193f45;
}
@media (hover:hover) and (pointer:fine) {
  body[data-winter-effects="on"] [data-lustre]:hover {
    transform:translateY(-4px);
    border-color:var(--accent); box-shadow:0 14px 28px #26203b44,0 0 17px #8f78cc38;
  }
  body[data-winter-effects="on"] :is(.primary-nav a,.site-footer nav a):hover {
    text-shadow:0 0 9px var(--accent); color:var(--accent);
  }
}
.iris-light {
  position:absolute; z-index:2; pointer-events:none; display:block; aspect-ratio:1;
  transform:translate(-50%,-50%); filter:drop-shadow(0 0 1.5px #e45bff);
}
.iris-light::before {
  content:""; display:block; width:100%; height:100%;
  background:radial-gradient(circle,#fff9ff 8%,#ffc5ff 41%,#ef70ff 80%);
  clip-path:polygon(50% 0%,56% 38%,93% 25%,64% 50%,93% 75%,56% 62%,50% 100%,44% 62%,7% 75%,36% 50%,7% 25%,44% 38%);
}
body[data-winter-effects="on"] .iris-light:not([hidden])::before { animation:iris-glimmer 5.2s ease-in-out infinite alternate; }
@keyframes iris-glimmer { 0%,25%,100% { opacity:.84; scale:1; } 54%,68% { opacity:1; scale:1.08; } }
.collection-card .cover:has(.iris-light) img { transform:none; }
body[data-winter-effects="on"] .winter-gallery .art-grid a:has(.iris-light):hover img { scale:1; }

@media(max-width:780px) {
  body[data-page="home"] .hero[data-layout="day"] .hero-shade {
    background:linear-gradient(0deg,var(--veil) 0%,var(--veil) 27%,#edf2f7d4 41%,transparent 74%);
  }
  body[data-page="home"] .hero[data-layout="day"] .hero-portrait { top:var(--header-height); height:calc(84% - var(--header-height)); }
  body[data-page="home"] .hero[data-layout="day"] .hero-caption { background:none; }
  .winter-gallery .art-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .fitting-watch { width:min(86%,295px); }
  .watch-bank { padding-block:14px 24px; }
  .banner-faces .hardware-watch { width:clamp(73px,21vw,140px); }
  .panel-foot { align-items:flex-start; flex-direction:column; gap:4px; }
}
@media(prefers-reduced-motion:reduce) {
  body[data-winter-effects] .hero :is(.winter-glow,.hero-portrait) { animation:none; }
}
