/* ==========================================================================
   Aero Aqua — Frutiger Aero garden
   Sky, grass, glass orbs, glossy windows, blue glass buttons.
   ========================================================================== */

:root {
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Open Sans", "Segoe UI", system-ui, sans-serif;

  --sky-deep: #0f63c6;
  --sky: #2f9ae8;
  --sky-pale: #b9e7ff;
  --grass: #5fbf1e;
  --grass-dark: #1c6b16;
  --leaf: #a6f25f;
  --sun: #fff3b0;
  --glass-blue: #1d78c8;
  --glass-blue-dark: #0a4680;
  --ink: #063a5c;
  --ink-soft: #2c6b8e;

  --radius-lg: 16px;
  --radius-pill: 999px;
  --container: 1160px;
  --section-gap: clamp(4rem, 8vw, 7rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.62;
  color: #f2fbff;
  background: #2f9ae8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus-visible { transform: translateY(0); }

:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(15, 90, 150, .45);
}

/* --------------------------------------------------------------------------
   Landscape
   -------------------------------------------------------------------------- */

#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -5;
  filter: blur(1.6px) saturate(124%);
  transform: scale(1.03);
  pointer-events: none;
}

.sun {
  position: fixed;
  top: -24vh; right: -12vw;
  left: auto;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  z-index: -4;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,245,.95) 0%, rgba(255,248,200,.55) 26%, rgba(255,255,255,0) 62%);
  mix-blend-mode: screen;
  opacity: .9;
}

#fg {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 44vh;
  z-index: -2;
  pointer-events: none;
}

.plane {
  position: fixed;
  top: 14%;
  left: 0;
  width: 92px;
  z-index: -3;
  opacity: .8;
  filter: drop-shadow(0 8px 14px rgba(8, 60, 110, .25));
  animation: plane-fly 96s linear infinite;
  pointer-events: none;
}
@keyframes plane-fly {
  from { transform: translate3d(-16vw, 0, 0); }
  50%  { transform: translate3d(48vw, -22px, 0); }
  to   { transform: translate3d(116vw, -40px, 0); }
}

.orbs {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.75);
  background:
    radial-gradient(circle at 32% 26%, rgba(255,255,255,.98), rgba(226,250,255,.55) 22%, rgba(96,190,244,.35) 48%, rgba(14,82,150,.55) 100%);
  box-shadow:
    inset -10px -14px 26px rgba(6, 60, 120, .35),
    inset 8px 10px 22px rgba(255,255,255,.55),
    0 22px 46px -22px rgba(6, 50, 100, .7),
    0 0 50px rgba(140, 225, 255, .35);
  animation: orb-float 16s ease-in-out infinite;
  opacity: .9;
}

.orb--1 { width: 120px; height: 120px; top: 18%; right: 7%; animation-delay: -2s; }
.orb--2 { width: 62px; height: 62px; top: 40%; right: 22%; animation-delay: -6s; opacity: .75; }
.orb--3 { width: 156px; height: 156px; bottom: 6%; left: 4%; animation-delay: -9s; opacity: .8; }
.orb--4 { width: 44px; height: 44px; top: 66%; left: 12%; animation-delay: -12s; opacity: .65; }

@keyframes orb-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6px, -18px, 0) scale(1.03); }
}

.leaves { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.leaf {
  position: absolute;
  width: 220px;
  opacity: .75;
  filter: drop-shadow(0 16px 26px rgba(6, 60, 20, .35));
}
.leaf--l { top: -34px; left: -46px; transform: rotate(-8deg); }
.leaf--r { top: 34%; right: -80px; transform: rotate(160deg); width: 260px; opacity: .55; }

.bubbles {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bubble {
  position: absolute;
  bottom: -90px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.6);
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.95), rgba(255,255,255,.16) 34%, transparent 48%),
    radial-gradient(circle at 72% 78%, rgba(180,240,255,.5), transparent 62%);
  box-shadow: inset 0 0 12px rgba(255,255,255,.45), 0 0 18px rgba(160,235,255,.35);
  opacity: 0;
  animation: bubble-rise linear infinite;
}
@keyframes bubble-rise {
  0%   { transform: translate3d(0, 0, 0) scale(.85); opacity: 0; }
  12%  { opacity: .7; }
  55%  { transform: translate3d(16px, -55vh, 0) scale(1); }
  100% { transform: translate3d(-12px, -112vh, 0) scale(1.06); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Glass buttons — blue crystal with a specular top
   -------------------------------------------------------------------------- */

/* Liquid glass — refraction (SVG warp) + fresnel rim + frosted body. */
.glass {
  --tint-a: 205 230 245;
  --tint-b: 155 195 222;
  --tint-c: 195 232 255;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #093b57;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  background:
    radial-gradient(76% 122% at 18% -18%, rgba(255,255,255,.96), rgba(255,255,255,0) 56%) padding-box,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='150' height='150' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E") padding-box,
    linear-gradient(104deg, transparent 27%, rgba(255,255,255,.6) 40%, rgba(255,255,255,.08) 47%, transparent 57%) padding-box,
    linear-gradient(180deg, rgba(255,255,255,.52) 0%, rgba(255,255,255,.14) 44%, rgba(176,196,209,.22) 74%, rgba(255,255,255,.32) 100%) padding-box,
    linear-gradient(96deg, rgb(var(--tint-a) / .3), rgb(var(--tint-b) / .17) 58%, rgb(var(--tint-c) / .24)) padding-box,
    linear-gradient(180deg, #ffffff 0%, #f2f7fa 24%, #93a7b4 50%, #566c7c 62%, #eaf3f9 100%) border-box;
  background-blend-mode: normal, overlay, normal, normal, normal, normal;
  backdrop-filter: blur(16px) saturate(190%) brightness(1.08) contrast(1.02);
  -webkit-backdrop-filter: blur(16px) saturate(190%) brightness(1.08) contrast(1.02);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 1px 2px 2px -1px rgba(255, 255, 255, .95),
    inset 3px 7px 14px -7px rgba(255, 255, 255, .9),
    inset -2px -3px 7px -2px rgba(92, 120, 138, .42),
    inset -7px -13px 24px -15px rgba(66, 96, 118, .55),
    inset 0 0 0 1px rgba(255, 255, 255, .4),
    0 1px 0 rgba(255, 255, 255, .55),
    0 2px 3px -2px rgba(4, 45, 80, .5),
    0 18px 30px -20px rgba(4, 45, 80, .8),
    0 0 30px -14px rgb(var(--tint-c) / .6);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .7);
  transition: transform .2s cubic-bezier(.2,.8,.3,1), box-shadow .3s ease, filter .25s ease;
}

/* The liquid: a wide blurred band of light plus a second, tighter one. */
.glass::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -110%;
  left: -12%;
  width: 70%;
  height: 330%;
  background:
    linear-gradient(90deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,.95) 42%,
      rgba(255,255,255,.22) 66%,
      rgba(255,255,255,0) 100%),
    linear-gradient(90deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,.55) 55%,
      rgba(255,255,255,0) 72%);
  transform: rotate(28deg);
  filter: blur(10px) url(#liquid-warp);
  opacity: .95;
  pointer-events: none;
  transition: transform .6s ease, opacity .3s ease;
}

.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(140px 70px at var(--mx, 30%) var(--my, 0%), rgba(255,255,255,.7), transparent 70%);
  opacity: 0;
  transition: opacity .25s ease;
}
.glass:hover::after { opacity: 1; }

.glass:hover {
  filter: brightness(1.04) saturate(1.04);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, .78),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -10px 18px -12px rgba(52, 84, 104, .5),
    0 1px 0 rgba(255, 255, 255, .6),
    0 16px 30px -14px rgba(4, 45, 80, .65),
    0 0 30px -8px rgb(var(--tint-c) / .7);
}
.glass:hover::before { transform: rotate(28deg) translate3d(12px, -9px, 0); }

.glass:active {
  transform: translateY(1px) scale(.995);
  box-shadow:
    inset 0 3px 9px -3px rgba(38, 68, 88, .5),
    inset 0 1px 0 rgba(255, 255, 255, .55),
    0 4px 10px -8px rgba(4, 45, 80, .65);
}

.glass:active::before { opacity: .7; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: .8em 1.55em;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: .97rem;
  font-weight: 600;
  letter-spacing: -.005em;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.985); }

.btn--primary {
  background:
    linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.6) 34%, rgba(255,255,255,.12) 38%, rgba(255,255,255,0) 62%),
    linear-gradient(96deg, rgb(var(--tint-a) / .55), rgb(var(--tint-b) / .4)),
    linear-gradient(180deg, #8fd8ff 0%, #3596dd 46%, #0d5897 100%);
}

/* --------------------------------------------------------------------------
   Windows
   -------------------------------------------------------------------------- */

.window {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(226,246,255,.92));
  border: 1px solid rgba(255,255,255,.95);
  box-shadow:
    0 0 0 1px rgba(18, 78, 138, .3),
    inset 0 1px 0 #ffffff,
    0 30px 60px -26px rgba(6, 45, 85, .55);
  color: var(--ink);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.35) 42%, rgba(255,255,255,0) 44%),
    linear-gradient(180deg, #bfe9ff 0%, #7fc8f7 44%, #3f97dd 52%, #2779bf 100%);
  border-bottom: 1px solid rgba(255,255,255,.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(10, 70, 120, .35);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: .9rem;
  text-shadow: 0 1px 1px rgba(4, 50, 95, .55);
}

.window-title {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 400;
  letter-spacing: 0;
}

.win-dots { display: inline-flex; gap: 4px; }
.win-dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #ffffff, rgba(255,255,255,.55) 55%, rgba(255,255,255,.2));
  box-shadow: inset 0 0 3px rgba(255,255,255,.9), 0 0 4px rgba(255,255,255,.5);
}

.win-flag {
  margin-left: auto;
  font-size: .95rem;
  opacity: .9;
}

.win-close {
  margin-left: auto;
  width: 32px; height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.85);
  background:
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.1) 48%),
    linear-gradient(180deg, #ff8f9a, #e04a5c 55%, #b3283c);
  box-shadow: inset 0 1px 0 #fff, inset 0 -6px 10px -6px rgba(90, 10, 20, .8), 0 2px 6px rgba(60, 10, 20, .35);
  cursor: pointer;
}
.win-close svg {
  width: 14px; height: 14px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  filter: drop-shadow(0 1px 1px rgba(90, 10, 20, .5));
}

.window-body { padding: 16px; }

/* --------------------------------------------------------------------------
   Type & layout
   -------------------------------------------------------------------------- */

.container {
  width: min(var(--container), 100% - 40px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(var(--container), 100% - 32px);
  margin: 0 auto;
  padding: 16px 0 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  min-height: 46px;
  padding: .45em 1.1em .45em .8em;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 1.02rem;
  text-decoration: none;
}

.brand-orb {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.9);
  background:
    radial-gradient(circle at 32% 26%, #ffffff, rgba(220,248,255,.6) 30%, rgba(70,160,230,.7) 70%, rgba(12,70,130,.9));
  box-shadow: inset -3px -4px 8px rgba(4, 50, 100, .5), 0 0 10px rgba(180, 235, 255, .8);
}

.nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
  padding: 4px;
  border-radius: var(--radius-pill);
}
.nav a {
  padding: .5em .95em;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: .95rem;
  text-decoration: none;
  transition: background .2s ease;
}
.nav a:hover { background: rgba(255,255,255,.28); }

.audio-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  min-height: 46px;
  padding: .45em 1.15em;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: .95rem;
  cursor: pointer;
}
.i-note { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
body.music-on .i-note { animation: note-bounce 1.4s ease-in-out infinite; }
@keyframes note-bounce { 50% { transform: translateY(-2px) rotate(-4deg); } }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  display: flex;
  align-items: center;
  min-height: min(88vh, 900px);
  padding: clamp(1rem, 3vw, 2rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: clamp(26px, 4vw, 52px);
}

.hero-copy {
  position: relative;
  isolation: isolate;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: -48px -64px -32px -64px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(72% 84% at 34% 48%, rgba(5, 58, 112, .55), rgba(5, 58, 112, .12) 62%, rgba(5, 58, 112, 0) 78%);
  filter: blur(10px);
}

.hero-kicker {
  display: inline-block;
  padding: .42em 1em;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: .82rem;
  letter-spacing: .02em;
}

.hero h1 {
  margin: .32em 0 .4em;
  font-weight: 700;
  font-size: clamp(2.9rem, 7.2vw, 5.3rem);
  line-height: .93;
  letter-spacing: -.045em;
  background: linear-gradient(180deg, #ffffff 0%, #e2f9ff 8%, #96d2f7 26%, #489cdb 52%, #0a5393 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 1px 0 rgba(255,255,255,.55))
    drop-shadow(0 2px 3px rgba(4, 52, 96, .55))
    drop-shadow(0 4px 2px rgba(8, 62, 116, .3))
    drop-shadow(0 16px 30px rgba(5, 55, 105, .7));
}

.hero-lede {
  max-width: 42ch;
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(4, 46, 92, .75), 0 10px 26px rgba(4, 46, 92, .45);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 14px;
}

.hero-note {
  font-size: .9rem;
  color: rgba(255,255,255,.9);
  text-shadow: 0 1px 3px rgba(4, 46, 92, .7);
}

/* Player window */

.player-window { border-radius: 18px; }

.yt-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(160deg, #0b3f68, #062a45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 8px 18px -12px rgba(4,40,70,.7);
}
.yt-shell iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.yt-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 18px;
  text-align: center;
  color: #eaf9ff;
  font-size: .9rem;
}
.yt-fallback[hidden] { display: none; }
.yt-fallback a {
  justify-self: center;
  padding: .5em 1em;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.6);
  text-decoration: none;
  font-family: var(--font-display);
}

.now { margin: 14px 2px 12px; }
.now-label {
  font-family: var(--font-display);
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.now-title {
  margin-top: .15em;
  font-family: var(--font-display);
  font-size: 1.16rem;
  color: #063a5c;
  line-height: 1.2;
}
.now-meta {
  margin-top: .2em;
  font-size: .86rem;
  color: #3a7d9c;
}

.transport {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(206,238,255,.65));
  box-shadow: inset 0 1px 0 #fff, inset 0 -8px 14px -10px rgba(10,70,120,.4);
}

.icon-btn {
  flex: none;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 12px;
  cursor: pointer;
}
.icon-btn svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }

.play {
  flex: none;
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
}
.play svg { width: 20px; height: 20px; fill: #0b4867; }
.play .i-pause { display: none; }
body.music-on .play .i-play { display: none; }
body.music-on .play .i-pause { display: block; }

.vol { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 80px; }
.vol svg {
  width: 17px; height: 17px;
  flex: none;
  fill: none;
  stroke: #1d6f96;
  stroke-width: 1.9;
  stroke-linecap: round;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 26px;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 9px;
  border-radius: 99px;
  background: linear-gradient(180deg, #9ddcff, #4aa5e0);
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: inset 0 1px 3px rgba(6, 60, 105, .45);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  margin-top: -6px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: radial-gradient(circle at 34% 28%, #ffffff, #cdefff 55%, #3f9fda);
  box-shadow: 0 2px 6px rgba(4, 45, 80, .45);
}
input[type="range"]::-moz-range-track {
  height: 9px;
  border-radius: 99px;
  background: linear-gradient(180deg, #9ddcff, #4aa5e0);
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: radial-gradient(circle at 34% 28%, #ffffff, #cdefff 55%, #3f9fda);
}

.vol-value {
  min-width: 3ch;
  font-family: var(--font-display);
  font-size: .82rem;
  color: #1d6f96;
}

.music-status {
  margin-top: 10px;
  font-size: .8rem;
  color: #3a7d9c;
  min-height: 1.2em;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding-block: var(--section-gap); }

section[id] { scroll-margin-top: clamp(96px, 16vw, 132px); }

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(24px, 3.5vw, 40px);
}
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  color: #fff;
  text-shadow: 0 2px 0 rgba(255,255,255,.35), 0 12px 28px rgba(5, 50, 95, .55);
}
.section-head p {
  margin-top: .75em;
  max-width: 52ch;
  color: #fff;
  text-shadow: 0 1px 3px rgba(4, 46, 92, .8);
}

.games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: clamp(16px, 2vw, 22px);
}

.game .window-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

.game-art {
  display: grid;
  place-items: center;
  height: 148px;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,0) 55%),
    linear-gradient(160deg, #9fe4ff, #3aa2e0 60%, #1c74b8);
  box-shadow: inset 0 1px 0 #fff, inset 0 -22px 34px -26px rgba(4, 50, 90, .8);
}
.game-art svg { width: 100%; height: 100%; }
.game-art .art-ico { fill: #0b5f86; }
.game-art--snake { background: linear-gradient(160deg, #a9f7e2, #38c3c9 55%, #10708f); }
.game-art--stack { background: linear-gradient(160deg, #d2f7ff, #61bdec 55%, #1a6cb0); }

.game h3 {
  margin-top: .2em;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -.02em;
  color: #063a5c;
}
.game p {
  font-size: .92rem;
  line-height: 1.5;
  color: #2f7290;
  flex: 1;
}

.game-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 6px;
}

.best {
  font-family: var(--font-display);
  font-size: .82rem;
  color: #3a7d9c;
}
.best strong { font-weight: 400; color: #063a5c; }

/* Music section */

.music-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(26px, 4vw, 52px);
  align-items: start;
}
.music-copy h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  color: #fff;
  text-shadow: 0 2px 0 rgba(255,255,255,.35), 0 12px 28px rgba(5, 50, 95, .55);
}
.music-copy p {
  margin-top: 1em;
  max-width: 44ch;
  color: #fff;
  text-shadow: 0 1px 3px rgba(4, 46, 92, .8);
}
.music-note {
  font-size: .86rem;
  opacity: .92;
}

.playlist {
  list-style: none;
  margin: 0;
  padding: 10px;
  display: grid;
  gap: 4px;
}

.playlist button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: #0a4568;
  transition: background .18s ease, box-shadow .18s ease;
}
.playlist button:hover {
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(206,238,255,.8));
  box-shadow: inset 0 1px 0 #fff, 0 6px 14px -10px rgba(6, 50, 100, .5);
}
.playlist button[aria-current="true"] {
  background: linear-gradient(180deg, #e6f8ff, #b7e2fb);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(120, 190, 235, .8);
}

.trk-num {
  width: 26px;
  flex: none;
  text-align: center;
  font-family: var(--font-display);
  font-size: .82rem;
  color: #4d8aa8;
}
.trk-text { display: grid; gap: 1px; min-width: 0; }
.trk-text strong {
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trk-text em {
  font-style: normal;
  font-size: .78rem;
  color: #4d8aa8;
}

.trk-badge {
  margin-left: auto;
  padding: .18em .55em;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: .66rem;
  letter-spacing: .02em;
  color: #1d6f96;
  background: linear-gradient(180deg, #eefaff, #cfeafc);
  border: 1px solid rgba(120, 190, 235, .8);
  box-shadow: inset 0 1px 0 #fff;
}

.trk-eq { margin-left: auto; display: none; gap: 2px; align-items: flex-end; height: 16px; }
.trk-eq i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: #2e9ad0;
  animation: eq 1s ease-in-out infinite;
}
.trk-eq i:nth-child(1) { height: 8px; animation-delay: -.2s; }
.trk-eq i:nth-child(2) { height: 14px; animation-delay: -.5s; }
.trk-eq i:nth-child(3) { height: 10px; animation-delay: -.8s; }
.playlist button[aria-current="true"] .trk-eq { display: flex; }
@keyframes eq { 50% { transform: scaleY(.4); } }

/* Glass note */

.section--narrow .container { max-width: 820px; }

.aero-body {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(20px, 3vw, 34px);
  padding: clamp(20px, 3vw, 32px);
  align-items: start;
}

.aero-copy h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  color: #063a5c;
}
.aero-copy p {
  margin-top: .85em;
  max-width: 62ch;
  color: #2f7290;
}

.aero-facts {
  margin: 0;
  display: grid;
  gap: 8px;
  align-content: start;
}
.aero-facts > div {
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #e8f7ff);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: inset 0 1px 0 #fff, 0 8px 16px -12px rgba(4, 50, 90, .5);
}
.aero-facts dt {
  font-family: var(--font-display);
  font-size: .7rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #4d8aa8;
}
.aero-facts dd {
  margin: 2px 0 0;
  font-size: .92rem;
  color: #0a4568;
}

/* Footer */

.site-footer { padding: 0 0 40px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.4);
  font-size: .9rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(4, 46, 92, .8);
}
.footer-link {
  padding: .5em 1.1em;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: .9rem;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Game dialog
   -------------------------------------------------------------------------- */

.game-dialog {
  width: min(900px, calc(100vw - 24px));
  max-height: min(92dvh, 880px);
  padding: 0;
  border-radius: 18px;
  overflow: auto;
}
.game-dialog[open] { animation: dialog-in .3s cubic-bezier(.2,.9,.3,1); }
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(.99); }
}
.game-dialog::backdrop {
  background: rgba(6, 52, 92, .45);
  backdrop-filter: blur(7px) saturate(130%);
}
body:has(dialog[open]) { overflow: hidden; }

.game-dialog .window-bar { position: sticky; top: 0; z-index: 2; }
.game-dialog .window-title { font-size: .95rem; }
.game-dialog > .stage { padding: 16px; }

.stage { position: relative; display: grid; gap: 14px; }

.hud { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hud-chip {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .45em .95em;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: .84rem;
}
.hud-chip strong { font-weight: 400; }
.hud-hint {
  margin-left: auto;
  font-size: .8rem;
  color: #2f7290;
}

.game-canvas-wrap {
  position: relative;
  height: clamp(300px, 52vh, 470px);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #4fb9e6, #0a4d74 70%, #06344f);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 10px 24px -18px rgba(4, 40, 70, .8);
  cursor: crosshair;
  touch-action: manipulation;
}
.game-canvas { width: 100%; height: 100%; display: block; }

.game-over {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 45, 78, .45);
  backdrop-filter: blur(5px);
}
.game-over[hidden] { display: none; }
.game-over .panel {
  width: min(340px, 100%);
  padding: 22px;
  text-align: center;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #e2f6ff);
  border: 1px solid #fff;
  box-shadow: 0 0 0 1px rgba(18, 78, 138, .3), 0 24px 40px -24px rgba(4, 40, 70, .7);
  color: var(--ink);
}
.game-over h3 { font-size: 1.3rem; color: #063a5c; }
.game-over p { margin: .5em 0 1.1em; font-size: .9rem; color: #2f7290; }
.over-kicker {
  font-family: var(--font-display);
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #4d8aa8;
  margin-bottom: .35em;
}

/* Memory */

.mem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.mem-card {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  perspective: 900px;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
}
.mem-card:disabled { cursor: default; }

.mem-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .45s cubic-bezier(.2,.8,.25,1);
}
.mem-card.is-flipped .mem-inner { transform: rotateY(180deg); }

.mem-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.mem-front {
  background:
    linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.4) 36%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, #8fd4ff, #3f9bdd 55%, #1c6bb0);
  border: 1.5px solid rgba(255,255,255,.92);
  box-shadow: inset 0 1px 0 #fff, inset 0 -12px 18px -10px rgba(4,46,92,.7), 0 8px 16px -12px rgba(4, 45, 80, .6);
  color: rgba(255,255,255,.75);
}
.mem-front svg { width: 34%; height: 34%; fill: currentColor; }

.mem-back {
  transform: rotateY(180deg);
  background: linear-gradient(180deg, #ffffff, #dff5ff);
  border: 1.5px solid #ffffff;
  box-shadow: inset 0 1px 0 #fff, 0 10px 20px -14px rgba(4, 40, 70, .6);
  color: #0b6a92;
}
.mem-back svg { width: 56%; height: 56%; }
.mem-back svg use { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.mem-card.is-matched .mem-back {
  background: linear-gradient(180deg, #f4fff0, #c8f7b4);
  color: #2b7d1c;
  box-shadow: inset 0 1px 0 #fff, 0 0 22px -2px rgba(150, 245, 120, .8);
}

/* Sequence */

.pads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
}
.pad {
  position: relative;
  aspect-ratio: 1;
  border-radius: 22px;
  border: 1.5px solid rgba(255,255,255,.9);
  background:
    linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.45) 34%, rgba(255,255,255,0) 58%),
    linear-gradient(180deg, rgb(var(--pad-a) / .95), rgb(var(--pad-b) / .95));
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -18px 28px -16px rgba(4, 46, 90, .75),
    0 12px 24px -16px rgba(4, 40, 70, .6);
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}
.pad:hover { transform: translateY(-2px); }
.pad.is-lit {
  filter: brightness(1.4) saturate(1.15);
  box-shadow:
    inset 0 1px 0 #fff,
    0 0 34px 2px rgb(var(--pad-a) / .9),
    0 0 70px 8px rgb(var(--pad-b) / .5);
  transform: scale(1.02);
}

.seq-wrap {
  display: grid;
  gap: 16px;
  place-items: center;
  padding: 6px 0 4px;
}
.seq-status {
  font-family: var(--font-display);
  font-size: .98rem;
  color: #0a4568;
  text-align: center;
  min-height: 1.5em;
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .bubble, .plane { display: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .player-window { max-width: 560px; }
  .games { grid-template-columns: 1fr 1fr; }
  .music-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header { flex-wrap: wrap; gap: 8px; padding: 10px 0; }
  .nav { order: 3; width: 100%; justify-content: space-between; margin-left: 0; }
  .nav a { flex: 1; text-align: center; padding: .5em .6em; }
  .audio-toggle { margin-left: auto; width: 46px; justify-content: center; padding: 0; }
  .audio-toggle [data-music-label] { display: none; }
  .hero h1 { font-size: clamp(2.7rem, 12vw, 3.7rem); }
  .games { grid-template-columns: 1fr; }
  .game-art { height: 136px; }
  .mem-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hud-hint { margin-left: 0; width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .aero-body { grid-template-columns: 1fr; }
  .leaf { width: 150px; }
  .orb--3 { width: 110px; }
}

@media (max-width: 420px) {
  .mem-grid { grid-template-columns: repeat(2, 1fr); }
  .game-canvas-wrap { height: 56vh; }
  .transport { flex-wrap: wrap; }
  .vol { order: 4; flex-basis: 100%; }
  .vol-value { order: 5; }
}
