@font-face {
  font-family: Veluwe;
  src: url("media/veluwe.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root { --paper: #f3e6c8; --forest: #123c32; --cobalt: #0756a6; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
body { background: var(--paper); color: var(--forest); font-family: system-ui, sans-serif; }
.hero { position: relative; width: 100%; height: 100%; overflow: hidden; isolation: isolate; }
/* The fixed 1672 × 941 registration matches the original Veluwe artboard. */
.hero-artboard {
  position: absolute; inset: 50% auto auto 50%;
  width: max(100vw, 177.6833vh);
  aspect-ratio: 1672 / 941;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.hero-poster, .hero-live, .hero-layer, canvas {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
}
.hero-poster, .hero-layer { object-fit: fill; }
.hero-live, .hero-animation { opacity: 0; }
[data-theme="day"] [data-live-theme="day"] .hero-live,
[data-theme="day"] [data-live-theme="day"] .hero-animation,
[data-theme="night"] [data-live-theme="night"] .hero-live { opacity: 1; }
.hero-night, .night-sky,
.sleeping-fox, .foliage-motion, .night-occlusion { visibility: hidden; }
[data-theme="night"] .hero-night,
[data-theme="night"] .night-sky,
[data-theme="night"] .sleeping-fox { visibility: visible; }
.hero__foreground { position: absolute; inset: 0; z-index: 3; }
.hero__foreground[data-moving-foliage="true"] .hero__behind,
.hero__foreground[data-moving-foliage="true"] .hero__front { visibility: hidden; }
[data-live-theme] .hero__foreground[data-moving-foliage="true"] .foliage-motion,
[data-theme="night"] [data-live-theme="night"] .night-occlusion { visibility: visible; }
.sleeping-fox { position: absolute; left: 56.83633135%; bottom: 0; width: 47.44292313%; height: auto; }
.sleeping-fox--live { visibility: hidden !important; }
[data-theme="night"] [data-sleeping="true"] .sleeping-fox--live { visibility: visible !important; }
[data-sleeping="true"] .sleeping-fox:not(.sleeping-fox--live) { visibility: hidden; }
[data-theme="night"] :is(.hero-landscape, .hero-edge, .hero__behind, .foliage-motion, .night-occlusion) {
  filter: brightness(.68) saturate(.88);
}
[data-theme="night"] .hero__front { visibility: hidden; }
/* Original landscape placement and edge blend from composition.js + site.css. */
.hero__landscape { transform: translate(-3.5885%, .12937%); }
.hero-edge {
  inset: 0 0 0 auto; width: 5.741626794%;
  transform: translateY(.12937%);
  mask-image: linear-gradient(to right, transparent, #000 37.5%);
}
.hero-animation { z-index: 2; }
video { position: absolute; width: 1px; height: 1px; opacity: 0; }
.hero-title {
  position: absolute; z-index: 1; inset: 42% auto auto 50%; width: max-content;
  margin: 0; transform: translate(-50%, -50%);
  color: var(--cobalt); font: 400 clamp(36px, 10.4vw, 160px)/.82 Veluwe, system-ui, sans-serif;
  text-align: center; text-transform: uppercase; pointer-events: none;
}
.hero-title span { display: block; margin-top: .24em; font-size: .4em; letter-spacing: .025em; }
[data-theme="night"] .hero-title { color: var(--paper); }
.hero-controls {
  position: absolute; z-index: 7; inset: clamp(10px, 2vw, 26px) clamp(10px, 2vw, 26px) auto auto;
  display: flex; gap: 8px; align-items: flex-start;
}
.theme-switch, .sound-toggle { border: 1px solid #123c3260; border-radius: 999px; background: var(--paper); }
.theme-switch { display: flex; padding: 3px; }
.theme-switch button, .sound-toggle {
  border-radius: 999px; color: var(--forest); font: 500 13px/1.3 system-ui, sans-serif;
  min-height: 32px; padding: 7px 13px; white-space: nowrap; cursor: pointer;
}
.theme-switch button { border: 0; background: transparent; }
.theme-switch button[aria-pressed="true"] { background: var(--forest); color: var(--paper); }
.sound-toggle { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; }
.sound-toggle[hidden] { display: none; }
.sound-mute { display: none; }
.sound-toggle[aria-pressed="false"] .sound-waves { display: none; }
.sound-toggle[aria-pressed="false"] .sound-mute { display: block; }
button:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 580px) {
  .hero-artboard { transform: translate(calc(-50% - (100% - 100vw) * .36), -50%); }
  .hero-title { inset: 42% auto auto 46%; font-size: clamp(36px, 13vw, 72px); }
}
@media (max-aspect-ratio: 1/1) {
  .hero-title { inset: 27% auto auto 50%; paint-order: stroke fill; -webkit-text-stroke: 2px var(--paper); }
  [data-theme="night"] .hero-title { -webkit-text-stroke-color: var(--forest); }
}
@media (max-width: 760px), (max-width: 1000px) and (pointer: coarse) {
  .hero__behind, .hero__front, .foliage-motion { clip-path: inset(53.13496281% 0 0); }
}
