/* ==========================================================================
   xLights Around The World — redesign prototype
   Palette is sampled from XATW_Logo.png: the rainbow skyline ring supplies the
   "string light" accents, the silver-lavender globe supplies the neutrals.
   ========================================================================== */

:root {
  /* Logo ring, in the order it wraps the globe */
  --c-red: #e91d63;
  --c-orange: #f15a29;
  --c-yellow: #f8c912;
  --c-lime: #a6ce38;
  --c-green: #3baf4a;
  --c-blue: #1771ba;
  --c-indigo: #2e3e98;
  --c-purple: #70278d;
  --c-magenta: #bd1a89;
  --globe: #c9c8dc;

  /* Midnight (default direction) */
  --bg: #0a1030;
  --bg-2: #101947;
  --sky-top: #060a22;
  --sky-bottom: #17246a;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --surface-solid: #131c4f;
  --border: rgba(201, 200, 226, 0.16);
  --text: #f2f4ff;
  --muted: #b0b7de;
  --primary: #d81b5a;
  --primary-hover: #c81657;
  --on-primary: #ffffff;
  --accent: #6fd0ff;
  --ridge-stroke: rgba(255, 255, 255, 0.45);
  --ridge-back: #121c52;
  --snow: 255, 255, 255;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --glow-strength: 1;

  --font-display: "Literata", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --header-h: 68px;

  color-scheme: dark;
}

/* ---------- Base ---------- */
/* Accent colors used as text or icons are mixed with 45% white so the darker
   hues (indigo, purple) still clear 4.5:1 on the night background. Borders,
   glows and decorative marks keep the full-strength --tone. */
[style*="--tone"] { --tone-text: color-mix(in srgb, var(--tone) 55%, #fff); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}
img, svg, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); }
p { margin: 0 0 1em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(56px, 8vw, 104px); position: relative; }
.section--tint { background: var(--bg-2); }
.section__head { text-align: center; max-width: 780px; margin: 0 auto clamp(28px, 4vw, 48px); }
.eyebrow { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; color: var(--accent); margin-bottom: .75em; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .7em 1.35em; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.1;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--primary) 70%, transparent); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--ghost { border-color: var(--border); background: var(--surface); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--sm { min-height: 40px; padding: .5em 1em; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 52px; height: 52px; filter: drop-shadow(0 0 10px rgba(255,255,255,calc(.18 * var(--glow-strength)))); }
.brand span { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.1; }
.brand small { display: block; font-size: .78rem; color: var(--muted); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav button {
  font-family: var(--font-display); font-weight: 500; font-size: 1rem;
  text-decoration: none; background: none; border: 0; cursor: pointer;
  padding: 10px 14px; border-radius: 999px; color: var(--text); position: relative;
}
.nav a:hover, .nav button:hover { background: var(--surface-strong); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); transform: translateX(-50%);
  box-shadow: 0 0 8px var(--primary);
}
.social { display: flex; align-items: center; gap: 4px; padding-left: 8px; margin-left: 4px; border-left: 1px solid var(--border); }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--muted); transition: color .2s, background-color .2s; }
.social a:hover { color: var(--text); background: var(--surface-strong); }
.social svg { width: 20px; height: 20px; }
.social a[data-brand="facebook"]:hover { color: #4a8cff; }
.social a[data-brand="youtube"]:hover { color: #ff3b3b; }
.social a[data-brand="xlights"]:hover { color: var(--c-yellow); }

.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; place-items: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s ease, background-color .25s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-toggle { display: grid; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 12px var(--gutter) 20px; box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav { flex-direction: column; align-items: stretch; }
  .nav a, .nav button { font-size: 1.2rem; padding: 14px 12px; border-radius: 12px; text-align: left; }
  .nav a[aria-current="page"] { background: var(--surface-strong); }
  .nav a[aria-current="page"]::after { left: auto; right: 16px; top: 50%; transform: translateY(-50%); }
  .social { border-left: 0; border-top: 1px solid var(--border); margin: 12px 0 0; padding: 14px 0 0; justify-content: center; gap: 12px; }
  .social a { width: 48px; height: 48px; background: var(--surface); }
  .brand span { display: none; }
}
@media (min-width: 861px) { .site-nav { display: flex; align-items: center; } }

/* ---------- Hero / winter sky ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 70% -10%, color-mix(in srgb, var(--c-purple) 35%, transparent), transparent 70%),
    radial-gradient(900px 420px at 10% 10%, color-mix(in srgb, var(--c-blue) 30%, transparent), transparent 70%),
    linear-gradient(180deg, var(--sky-top), var(--sky-bottom) 85%, var(--bg));
  padding: clamp(40px, 7vw, 96px) 0 clamp(120px, 14vw, 190px);
}
.hero__snow { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero__ridge { position: absolute; left: 0; right: 0; bottom: -1px; z-index: -1; width: 100%; height: clamp(104px, 13vw, 170px); }
.hero__ridge .ridge-back { fill: var(--ridge-back); stroke: color-mix(in srgb, var(--ridge-stroke) 55%, transparent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.hero__ridge .ridge-front { fill: var(--bg); stroke: var(--ridge-stroke); stroke-width: 2; vector-effect: non-scaling-stroke; }
/* Moonlit edge so the dark pines read against the night sky */
.hero__ridge .tree { fill: var(--tree-fill, #1c2a70); stroke: var(--ridge-stroke); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hero__ridge .tree-light { animation: twinkle 2.6s ease-in-out infinite; }

.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(32px, 6vw, 88px); }
.hero__logo { position: relative; justify-self: center; width: min(420px, 78vw); aspect-ratio: 1; }
.hero__logo::before {
  /* Rainbow halo echoing the skyline ring, blurred into a glow */
  content: ""; position: absolute; inset: 6%; border-radius: 50%; z-index: -1;
  background: conic-gradient(var(--c-red), var(--c-orange), var(--c-yellow), var(--c-lime), var(--c-green), var(--c-blue), var(--c-indigo), var(--c-purple), var(--c-magenta), var(--c-red));
  filter: blur(46px); opacity: calc(.55 * var(--glow-strength));
  animation: spin 40s linear infinite;
}
.hero__logo img, .spin-logo { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 30px rgba(0,0,0,.35)); }
/* Tallest building tips reach ~49px past the image edge when rotated */
.spin-logo { overflow: visible; }
.spin-logo__ring { transform-box: view-box; transform-origin: 514.5px 520px; animation: spin 80s linear infinite; }
.hero__copy h1 { margin-bottom: clamp(24px, 3vw, 36px); line-height: 1.08; }
.hero__copy p { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); color: var(--muted); max-width: 34ch; }
.hero__copy .btn { margin-top: 0; }
.hero__actions { gap: 12px; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .hero__logo { width: min(300px, 72vw); }
  .hero__copy p { margin-inline: auto; }
  .hero__actions { justify-content: center; }
}

/* Compact hero used on interior pages */
.hero--page { padding: clamp(36px, 6vw, 72px) 0 clamp(120px, 14vw, 190px); text-align: center; }
.hero--page h1 { max-width: 20ch; margin-inline: auto; }
/* Prev/Next year cards: the neighbouring year's final-video thumbnail and songs */
.pager { display: flex; justify-content: space-between; gap: 14px; margin-top: 28px; }
.pcard { display: flex; align-items: center; gap: 14px; width: min(100%, 420px); padding: 10px; border-radius: var(--radius); text-decoration: none; background: var(--surface); border: 1px solid var(--border); transition: border-color .2s, transform .2s; }
.pcard--next { flex-direction: row-reverse; text-align: right; margin-left: auto; }
.pcard:hover { border-color: var(--tone); transform: translateY(-2px); }
.pcard__img { position: relative; flex: none; width: 150px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border-bottom: 3px solid var(--tone); background: #000; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.75); }
.pcard__play { position: absolute; inset: 0; display: grid; place-items: center; }
.pcard__play svg { width: 34px; height: 34px; padding: 8px; border-radius: 50%; color: #fff; background: color-mix(in srgb, var(--tone) 80%, #000); }
.pcard__img--now { display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--tone) 35%, transparent), transparent 70%), var(--surface-solid); }
.pcard__img--now .c9 { box-shadow: 0 0 14px var(--tone), 0 0 34px color-mix(in srgb, var(--tone) 50%, transparent); }
.pcard__text { display: grid; gap: 2px; min-width: 0; }
.pcard small { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.pcard--next small { justify-content: flex-end; }
.pcard small svg { width: 14px; height: 14px; }
.pcard strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.pcard__songs { font-size: .9rem; color: var(--tone-text, var(--muted)); }
@media (max-width: 640px) {
  .pager { gap: 10px; margin-top: 20px; }
  .pcard, .pcard--next { flex: 0 1 calc(50% - 5px); flex-direction: column; align-items: stretch; gap: 8px; }
  .pcard__img { width: 100%; }
  .pcard__songs { display: none; }
  .pcard strong { font-size: 1.1rem; }
}

/* C9 bulb hanging from its socket (year bar, Prev/Next "in progress" card) */
.c9 {
  --c: var(--tone); position: relative; display: block; width: 16px; height: 23px; margin-top: 6px; flex: none;
  border-radius: 50% 50% 50% 50% / 38% 38% 62% 62%;
  background: radial-gradient(circle at 50% 38%, #fff 0 14%, color-mix(in srgb, var(--c) 45%, #fff) 28%, var(--c) 58%, color-mix(in srgb, var(--c) 65%, #000) 100%);
}
.c9::before { content: ""; position: absolute; left: 50%; top: -6px; width: 9px; height: 7px; transform: translateX(-50%); border-radius: 2px 2px 1px 1px; background: linear-gradient(#3a4170, #1a1f45); }

/* ---------- Pixel nodes ----------
   Lights are drawn as round RGB pixel nodes (what xLights drives) rather than
   C9 pear bulbs: a white-hot LED core inside the colour, a dark housing ring,
   and a two-layer glow. --c is the node colour. */
.light-string i, .timeline .is-done .bulb, .step-head .bulb-dot, .coming .bulb-dot, .announce .bulb-dot {
  background: radial-gradient(circle, #fff 0 20%, color-mix(in srgb, var(--c) 45%, #fff) 34%, var(--c) 60%, color-mix(in srgb, var(--c) 70%, #000) 100%);
  box-shadow: 0 0 calc(10px * var(--glow-strength)) var(--c), 0 0 calc(26px * var(--glow-strength)) color-mix(in srgb, var(--c) 45%, transparent);
}

/* ---------- String of lights (logo's dotted rainbow underline) ---------- */
.light-string { position: relative; display: flex; align-items: center; justify-content: space-between; height: 24px; margin: 0 auto; max-width: 520px; }
.light-string::before { /* the cable */
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; transform: translateY(-50%);
  background: color-mix(in srgb, var(--muted) 35%, transparent); border-radius: 1px;
}
.light-string i {
  --c: var(--bulb); position: relative; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid rgba(4, 7, 24, .65);
  /* A chase ripple runs along the string, like an xLights sequence */
  animation: chase 2.4s ease-in-out infinite; animation-delay: var(--d, 0s);
}
@keyframes chase { 0%, 100% { opacity: .55; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.12); } }

/* ---------- Timeline ---------- */
.timeline-wrap { position: relative; z-index: 2; margin-top: calc(-1 * clamp(10px, 2vw, 28px)); }
.timeline-card { background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 36px); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.timeline::before { /* the cable */
  content: ""; position: absolute; left: 10%; right: 10%; top: 12px; height: 2px;
  background: color-mix(in srgb, var(--muted) 40%, transparent);
}
.timeline li { position: relative; text-align: center; padding: 0 6px; }
/* Unlit nodes are a coloured ring with a dark core; finished steps light up */
.timeline .bulb {
  --c: var(--bulb); display: block; margin: 0 auto 14px; width: 26px; height: 26px; position: relative; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 22%, var(--surface-solid)) 0 40%, color-mix(in srgb, var(--c) 10%, var(--surface-solid)) 100%);
  border: 3px solid color-mix(in srgb, var(--c) 75%, transparent);
}
.timeline .is-done .bulb { border-color: color-mix(in srgb, var(--c) 55%, #fff); }
.timeline .t-label { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; line-height: 1.25; }
.timeline .t-status { display: inline-block; margin-top: 6px; font-size: .88rem; font-weight: 700; padding: 2px 10px; white-space: nowrap; border-radius: 999px; background: var(--surface-strong); color: var(--muted); }
.timeline .is-done .t-status { color: var(--text); background: color-mix(in srgb, var(--bulb) 26%, transparent); }
/* Stacked below 900px: dates (e.g. "Due Dec 17th, 2026") sit under their label
   at full width instead of squeezing into a fifth of the card */
@media (max-width: 900px) {
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .timeline::before { left: 15px; right: auto; top: 13px; bottom: 13px; width: 2px; height: auto; }
  .timeline li { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; row-gap: 4px; align-items: center; text-align: left; padding: 0; }
  .timeline .bulb { grid-row: span 2; margin: 0 0 0 3px; }
  .timeline .t-status { justify-self: start; margin: 0; }
}

/* ---------- Video facade ---------- */
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt__link { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; }
.yt__link img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s ease; }
.yt__link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45), transparent 35%, transparent 55%, rgba(0,0,0,.55)); }
.yt__title { position: absolute; z-index: 1; left: 16px; right: 16px; top: 12px; font-family: var(--font-display); font-weight: 500; font-size: clamp(.9rem, .8rem + .4vw, 1.1rem); text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.yt__play {
  position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: clamp(58px, 9vw, 84px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--primary) 92%, transparent); color: #fff;
  box-shadow: 0 0 0 8px rgba(255,255,255,.16), 0 10px 30px rgba(0,0,0,.4);
  transition: transform .2s ease, box-shadow .2s ease;
}
.yt__play svg { width: 42%; height: 42%; margin-left: 6%; }
.yt__link:hover img, .yt__link:focus-visible img { transform: scale(1.035); filter: brightness(1.08); }
.yt__link:hover .yt__play, .yt__link:focus-visible .yt__play { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 0 12px rgba(255,255,255,.2), 0 10px 30px rgba(0,0,0,.45); }
.yt__link:focus-visible { outline-offset: -4px; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(18px, 2.5vw, 28px); }

.stats { container: stats / inline-size; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
.stat svg { width: 34px; height: 34px; flex: none; color: var(--accent); }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.5rem); line-height: 1; font-weight: 600; }
.stat span { color: var(--muted); font-weight: 600; font-size: .92rem; text-transform: uppercase; letter-spacing: .08em; }

.song { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.song__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--tone, var(--c-red)) 22%, transparent); color: var(--tone, var(--c-red)); }
.song__icon svg { width: 24px; height: 24px; }
.song__title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin: 0; flex: 1 1 140px; }
.song__text { flex: 1 1 160px; min-width: 0; }
.song__artist { margin: 2px 0 0; font-size: .9rem; line-height: 1.35; color: var(--muted); font-weight: 600; }
.media-card .song__artist { margin-top: 4px; font-size: .95rem; }
.song__title a { text-decoration: none; }
.song__title a:hover { text-decoration: underline; text-decoration-color: var(--tone); text-underline-offset: 4px; }
.song .btn-row { flex: 0 1 auto; }
.songs { display: grid; gap: 12px; }

/* Last finished project (home) */
.feature { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.feature__side { display: grid; gap: 14px; }
@media (max-width: 920px) { .feature { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
@media (max-width: 760px) { .quotes { grid-template-columns: minmax(0, 1fr); } }
.quote { position: relative; display: flex; flex-direction: column; gap: 18px; margin: 0; }
.quote blockquote { margin: 0; font-size: 1.04rem; }
.quote blockquote::before { content: "\201C"; display: block; font-family: var(--font-display); font-size: 3.4rem; line-height: .6; height: .45em; color: var(--tone); }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; font-family: var(--font-display); font-weight: 600; }
.quote figcaption img { width: 46px; height: 46px; border-radius: 50%; padding: 6px; background: var(--globe); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tone) 60%, transparent); }
.quote { border-top: 3px solid var(--tone); }
/* Cards sway gently like hanging ornaments. Each card gets its own tempo and
   phase so they never move in lockstep. Hover uses the separate `translate`
   property so the lift doesn't fight the animated `transform`. */
.quote { transform-origin: 50% 0; animation: sway var(--sway, 6.4s) ease-in-out var(--sway-delay, 0s) infinite; transition: translate .3s ease, box-shadow .3s ease; }
.quote:nth-child(2) { --sway: 7.3s; --sway-delay: -2.1s; }
.quote:nth-child(3) { --sway: 5.9s; --sway-delay: -4.2s; }
.quote:nth-child(4) { --sway: 6.9s; --sway-delay: -1.3s; }
@media (hover: hover) { .quote:hover { animation-play-state: paused; translate: 0 -4px; box-shadow: 0 14px 34px -14px color-mix(in srgb, var(--tone) 55%, transparent); } }
@keyframes sway { 0%, 100% { transform: rotate(-.7deg); } 50% { transform: rotate(.7deg) translateY(-3px); } }

/* ---------- Sub-navigation (current project) ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.subnav ul { list-style: none; display: flex; gap: 8px; margin: 0; padding: 10px 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; white-space: nowrap; text-decoration: none; padding: 8px 14px; border-radius: 999px; font-family: var(--font-display); font-weight: 500; font-size: .95rem; border: 1px solid var(--border); background: var(--surface); }
.subnav a:hover, .subnav a.is-active { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 18%, transparent); }

/* ---------- Project overview (current) ---------- */
.overview { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); }
@media (max-width: 920px) { .overview { grid-template-columns: minmax(0, 1fr); } }

.notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--tone, var(--accent)); }
.notice svg { width: 24px; height: 24px; color: var(--tone-text, var(--accent)); flex: none; margin-top: 2px; }
.notice p { margin: 0; }
.notice p + p { margin-top: .35em; }
.notice strong { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }

.step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.step-head .bulb-dot { --c: var(--tone); width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid rgba(4, 7, 24, .65); }
.step-head h2 { margin: 0; }

/* ---------- Generic grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
@media (max-width: 760px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.media-card { display: grid; gap: 14px; align-content: start; }
.media-card h3 { margin: 0; }
.media-card .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--tone-text, var(--accent)); margin-bottom: 4px; }

.figure-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #fff; }
.figure-img img { width: 100%; height: auto; }

/* ---------- Past projects ---------- */
.year-rail { position: sticky; top: var(--header-h); z-index: 40; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
/* Each year is a bulb hanging from its own scallop of wire; the years in view light up */
.year-rail ul { list-style: none; display: flex; margin: 0; padding: 0 0 8px; overflow-x: auto; scrollbar-width: none; }
.year-rail ul::-webkit-scrollbar { display: none; }
.year-rail li { flex: 1 0 70px; }
.year-rail a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 12px; text-decoration: none; }
.year-rail a::before { content: ""; position: absolute; inset: 0 0 auto; height: 12px; border-bottom: 2px solid #3a4378; border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.year-rail .c9 { filter: saturate(.85) brightness(.8); transform-origin: 50% -6px; transition: filter .25s, box-shadow .25s, transform .25s; }
.year-rail .yr { font-family: var(--font-display); font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.year-rail a:hover .c9, .year-rail a.is-active .c9 { filter: none; box-shadow: 0 0 12px var(--tone), 0 0 30px color-mix(in srgb, var(--tone) 50%, transparent); }
.year-rail a:hover .c9 { transform: rotate(-6deg); }
.year-rail a:hover .yr, .year-rail a.is-active .yr { color: var(--text); }
.year-rail a.is-active .yr { border-bottom-color: var(--tone); }

.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.5vw, 30px); }
.project { display: flex; flex-direction: column; gap: 16px; padding: clamp(14px, 1.8vw, 20px); border-top: 4px solid var(--tone); scroll-margin-top: 90px; }
.project--featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.project__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.project__head h2 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.project__head h2 a { text-decoration: none; }
.project__head h2 a:hover { color: var(--tone-text); }
.project__meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-weight: 700; }
.project__meta span { display: inline-flex; align-items: center; gap: 6px; }
.project__meta svg { width: 18px; height: 18px; color: var(--tone-text); }
.project__meta b { color: var(--text); font-family: var(--font-display); font-size: 1.15rem; }
.project__body { display: grid; gap: 14px; }
.project .song { padding: 12px 14px; }
.project .song__icon { width: 38px; height: 38px; }
.project .song__title { font-size: 1.08rem; }
@media (max-width: 920px) {
  .projects { grid-template-columns: minmax(0, 1fr); }
  .project--featured { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Submission form ---------- */
.submit-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 920px) { .submit-shell { grid-template-columns: minmax(0, 1fr); } }
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-family: var(--font-display); font-weight: 600; font-size: .98rem; padding: 0; }
.field .hint { font-size: .86rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--border); background: var(--surface-strong); color: var(--text);
  font: inherit; font-size: 1rem; /* 16px+ prevents iOS zoom on focus */
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.field input:user-invalid { border-color: var(--c-red); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.check { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); }
.check:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, transparent); }
.form__status { display: none; }
.form.is-sent .form__status { display: flex; }
.form.is-sent .form__fields { display: none; }
.placeholder-tag { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--c-yellow) 30%, transparent); color: var(--text); vertical-align: middle; margin-left: 6px; }
[data-submissions="closed"] .when-open, [data-submissions="open"] .when-closed { display: none !important; }

/* ---------- Contact dialog ---------- */
dialog.contact {
  width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--border);
  border-radius: 22px; background: var(--surface-solid); color: var(--text); box-shadow: 0 40px 80px -20px rgba(0,0,0,.6);
}
dialog.contact::backdrop { background: rgba(4, 8, 30, .65); backdrop-filter: blur(6px); }
dialog.contact[open] { animation: pop .22s ease-out; }
.contact__head { position: relative; padding: 26px 26px 8px; text-align: center; }
.contact__head img { width: 84px; height: 84px; margin: 0 auto 10px; }
.contact__head h2 { font-size: 1.5rem; }
.contact__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.contact__close svg { width: 18px; height: 18px; }
.team { list-style: none; margin: 0; padding: 8px 18px 24px; display: grid; gap: 10px; }
.team a { display: grid; grid-template-columns: 48px 1fr 24px; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; text-decoration: none; background: var(--surface); border: 1px solid var(--border); transition: border-color .2s, transform .15s; }
.team a:hover { border-color: var(--tone); transform: translateY(-1px); }
.team .avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; color: #fff; background: var(--tone); box-shadow: 0 0 14px color-mix(in srgb, var(--tone) 50%, transparent); }
.team b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; }
.team span { color: var(--muted); font-size: .92rem; }
.team svg { width: 22px; height: 22px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: 40px; padding: 70px 0 40px; background: var(--bg-2); }
.site-footer__ridge { position: absolute; left: 0; right: 0; top: -59px; width: 100%; height: 60px; }
.site-footer__ridge path { fill: var(--bg-2); stroke: var(--ridge-stroke); stroke-width: 2; }
.site-footer__inner { display: grid; justify-items: center; gap: 22px; text-align: center; }
.site-footer img { width: 120px; height: 120px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; }
.footer-nav a, .footer-nav button { text-decoration: none; background: none; border: 0; cursor: pointer; font-family: var(--font-display); font-weight: 500; padding: 8px 12px; border-radius: 999px; }
.footer-nav a:hover, .footer-nav button:hover { background: var(--surface-strong); }
.site-footer .social { border: 0; padding: 0; margin: 0; gap: 10px; }
.site-footer .social a { background: var(--surface); }

/* ---------- Motion ---------- */
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.t-status-inline { display: inline-block; margin: 6px 0 0; font-weight: 700; font-size: .9rem; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--c-blue) 24%, transparent); }
.hero__copy .tagline { font-family: var(--font-display); font-weight: 500; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: var(--accent); max-width: 40ch; margin-bottom: clamp(18px, 2.4vw, 28px); line-height: 1.5; }
@media (max-width: 860px) { .hero__copy .tagline { margin-inline: auto; } }
.stat { min-width: 0; }
/* When the stats row itself is narrow (phones, or the side column on small
   laptops) the icon, number and label stack, so a long single word like
   "PARTICIPANTS" gets the card's full width instead of a squeezed column.
   Keyed to the row's width, not the screen's, because the same row is narrow
   at very different screen sizes. */
@container stats (max-width: 460px) {
  .stat { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; }
  .stat svg { width: 26px; height: 26px; }
  .stat span { font-size: .8rem; letter-spacing: .05em; }
}
.subnav ~ .section { scroll-margin-top: 58px; }

/* ---------- Not-yet-released states (current project) ---------- */
.btn--soon { border: 2px dashed var(--border); background: transparent; color: var(--muted); cursor: default; }
.btn--soon:hover { transform: none; }
.coming {
  position: relative; max-width: 980px; margin-inline: auto; aspect-ratio: 16 / 9; border-radius: var(--radius);
  display: grid; place-items: center; text-align: center; overflow: hidden;
  border: 2px dashed color-mix(in srgb, var(--tone) 45%, var(--border));
  background:
    radial-gradient(600px 300px at 50% 120%, color-mix(in srgb, var(--tone) 22%, transparent), transparent 70%),
    var(--surface);
}
.coming .bulb-dot { --c: var(--tone); display: block; margin: 0 auto 14px; width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(4, 7, 24, .65); animation: twinkle 3s ease-in-out infinite; }
.coming__label { margin: 0 0 6px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem); }
.coming__date { display: inline-block; margin: 0; padding: 4px 14px; border-radius: 999px; font-weight: 700; background: color-mix(in srgb, var(--tone) 24%, transparent); }
@media (max-width: 560px) { .coming { aspect-ratio: 4 / 3; } }

/* ---------- Home: "sequences released" banner ---------- */
.announce-wrap { padding-bottom: 0; }
.announce {
  position: relative; text-align: center; border-radius: var(--radius); padding: clamp(24px, 4vw, 44px) clamp(18px, 4vw, 48px);
  border: 1px solid color-mix(in srgb, var(--tone) 45%, var(--border));
  background:
    radial-gradient(700px 260px at 50% 120%, color-mix(in srgb, var(--tone) 22%, transparent), transparent 70%),
    var(--surface);
}
.announce .bulb-dot { --c: var(--tone); display: block; margin: 0 auto 14px; width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(4, 7, 24, .65); animation: twinkle 3s ease-in-out infinite; }
.announce .eyebrow { color: var(--tone-text); }
.announce h2 { margin: 0 0 .4em; }
.announce p { max-width: 60ch; margin-inline: auto; }
.announce .btn-row { justify-content: center; margin-top: 18px; }
.submit-link .btn-row { margin-top: 12px; }
/* ---------- Year pages: participating countries ---------- */
.nc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.nc-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 10px 14px; text-align: center; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.25; transition: border-color .2s, transform .2s; }
.nc-card:hover { border-color: color-mix(in srgb, var(--c-blue) 60%, var(--border)); transform: translateY(-2px); }
.flag { display: block; width: 60px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 4px 12px -4px rgba(0, 0, 0, .6); }
@media (max-width: 560px) {
  .nc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .nc-card { padding: 12px 6px 10px; gap: 8px; font-size: .88rem; overflow-wrap: anywhere; }
  .nc-card .flag { width: 44px; }
}

/* Video tile for a render whose YouTube ID is still content.PLACEHOLDER */
.yt--placeholder { display: grid; place-content: center; justify-items: center; gap: 14px; padding: 16px; text-align: center;
  background: radial-gradient(70% 90% at 50% 110%, color-mix(in srgb, var(--tone, var(--c-blue)) 30%, transparent), transparent 70%), var(--surface-solid);
  border: 1px solid var(--border); }
.yt--placeholder .yt__play { position: static; transform: none; opacity: .35; box-shadow: none; }
.yt__ph-text { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; font-weight: 700; color: var(--muted); }

.submit-link > div { min-width: 0; }

/* Project pages: the sections under the sticky sub-nav are short (often a
   heading and one notice), so the home page's generous section spacing left
   ~200px voids between them. Tighter rhythm here; tinted bands still separate. */
.subnav ~ .section { padding-block: clamp(36px, 4.5vw, 60px); }
#overview { padding-bottom: clamp(32px, 4vw, 52px); }
