/* ==========================================================================
   ZNELK — design tokens
   ========================================================================== */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../assets/fonts/space-grotesk-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../assets/fonts/inter-variable.woff2') format('woff2');
}

:root {
  /* color tokens */
  --cirrus: #0a0f1f;
  --cirrus-2: #111a31;
  --cirrus-3: #1a2542;
  --frost: #f5f6fa;
  --frost-dim: #b9bed1;
  --corona: #93a8ff;
  --corona-soft: rgba(147, 168, 255, 0.28);
  --ember: #e3a853;
  --ember-soft: rgba(227, 168, 83, 0.35);
  --line: rgba(245, 246, 250, 0.14);

  /* type */
  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  /* layout */
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-pad: clamp(72px, 11vw, 148px);
  --radius-sm: 3px;

  color-scheme: dark;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--cirrus);
  color: var(--frost);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* A faint paper grain over everything, for a hand-painted rather than digital finish. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.035;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

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

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
}

/* ==========================================================================
   Accessibility helpers
   ========================================================================== */

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--frost);
  color: var(--cirrus);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 1000;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 16px;
}

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

:focus-visible {
  outline: 2px solid var(--corona);
  outline-offset: 3px;
}

/* ==========================================================================
   Layout utilities
   ========================================================================== */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  border-top: 1px solid var(--line);
}

.section-alt {
  background: var(--cirrus-2);
}

.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 20px;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--frost-dim);
  max-width: 720px;
  margin-top: 18px;
}

/* ==========================================================================
   Buttons — angular, not pill-shaped
   ========================================================================== */

.btn {
  --clip: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  text-decoration: none;
  clip-path: polygon(
    0 0,
    calc(100% - var(--clip)) 0,
    100% var(--clip),
    100% 100%,
    var(--clip) 100%,
    0 calc(100% - var(--clip))
  );
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--ember);
  color: var(--cirrus);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #f0bb75;
}

.btn-secondary {
  border-color: var(--line);
  color: var(--frost);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--corona);
  color: var(--corona);
}

.btn-small {
  padding: 9px 18px;
  font-size: 0.82rem;
  --clip: 8px;
}

/* ==========================================================================
   Nav
   ========================================================================== */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  background: rgba(10, 15, 31, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease, visibility 0s linear 0.25s;
}

.site-nav.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  border-bottom-color: var(--line);
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease, visibility 0s linear 0s;
}

.site-nav .wordmark-small {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--frost);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
}

.nav-links a:not(.btn) {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--frost-dim);
  transition: color 0.15s ease;
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn):focus-visible {
  color: var(--frost);
}

.nav-links-list {
  display: flex;
  gap: clamp(14px, 2.4vw, 28px);
}

@media (max-width: 720px) {
  .nav-links-list {
    display: none;
  }
}

/* ==========================================================================
   Hero: a harbor town at night, the lights, the sky
   ========================================================================== */

.hero {
  position: relative;
  height: 270vh;
  background: var(--cirrus);
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  overflow: clip;
  container-type: size;
  --ring: min(80cqw, 460px, 56cqh);
  --pan-max: 0px;
}

.hero-defs {
  position: absolute;
}

.hero-world {
  position: absolute;
  left: 0;
  right: 0;
  top: -30%;
  height: 130%;
  will-change: transform;
  --water-h: 13cqh;
  --quay-h: 2.4cqh;
  --shore: calc(var(--water-h) + var(--quay-h));
  --lamp-h: clamp(120px, 30cqh, 300px);
}

@media (max-width: 600px) {
  .hero-world {
    --lamp-h: clamp(100px, 22cqh, 190px);
  }
}

.sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #050917 0%, #081030 35%, #10204a 60%, #1a3259 74%, #1a3259 100%);
}

.milky-way,
.starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.milky-way {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* ---- Stars ---- */

.starfield circle {
  fill: var(--frost);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.starfield .c { fill: #dde5ff; }
.starfield .w { fill: #ffefd6; }

.twinkles {
  position: absolute;
  inset: 0;
}

.tstar {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.tstar i {
  position: absolute;
  left: -9px;
  top: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, #fff 0 17%, rgba(245, 246, 250, 0.55) 30%, rgba(160, 182, 255, 0.16) 58%, transparent);
  animation: twinkle var(--tw, 4s) ease-in-out var(--tp, 0s) infinite;
}

.tstar.b i {
  left: -16px;
  top: -16px;
  width: 32px;
  height: 32px;
}

.tstar.b i::before,
.tstar.b i::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.tstar.b i::before {
  width: var(--spike, 42px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 246, 250, 0.85), transparent);
}

.tstar.b i::after {
  width: 1px;
  height: var(--spike, 42px);
  background: linear-gradient(180deg, transparent, rgba(245, 246, 250, 0.85), transparent);
}

@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.58; transform: scale(0.82); }
}

/* The few stars bright enough to show faintly through the haze from the start. */
.tstar.g0 {
  opacity: 0.3;
  transform: scale(0.8);
  transition: opacity 1.4s ease 0.5s, transform 1.4s ease 0.5s;
}
.hero.off-1 .tstar.g0 { opacity: 0.45; }
.hero.off-2 .tstar.g0 { opacity: 0.6; transform: scale(0.9); }
.hero.off-3 .tstar.g0 { opacity: 0.75; }
.hero.off-4 .tstar.g0 { opacity: 0.88; transform: scale(1); }
.hero.off-5 .tstar.g0 { opacity: 1; }

/* Each lamp's column of sky (and its reflection in the water) clears when that lamp goes dark. */
.hero.off-1 .g1,
.hero.off-2 .g2,
.hero.off-3 .g3,
.hero.off-4 .g4,
.hero.off-5 .g5,
.hero.off-5 .g6 {
  opacity: var(--m, 1);
  transition: opacity 1.2s ease var(--d, 0s);
}

.hero.off-1 .tstar.g1,
.hero.off-2 .tstar.g2,
.hero.off-3 .tstar.g3,
.hero.off-4 .tstar.g4,
.hero.off-5 .tstar.g5,
.hero.off-5 .tstar.g6 {
  transform: scale(1);
  transition: opacity 1.1s ease var(--d, 0s), transform 1.4s cubic-bezier(0.2, 1.6, 0.35, 1) var(--d, 0s);
}

/* ---- Pisces, drawn once the name has appeared ---- */

.pisces {
  position: absolute;
  left: 5cqw;
  top: calc(34cqh - var(--pan-max));
  width: clamp(170px, 26cqw, 380px);
  height: auto;
  overflow: visible;
}

.pisces-stars circle {
  fill: var(--frost);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.pisces-lines path {
  fill: none;
  stroke: var(--frost);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
  transition: stroke-dashoffset 0.4s ease, opacity 0.4s ease;
}

@media (max-width: 600px) {
  .pisces-lines path { stroke-width: 2.4; }
}

.hero.off-5 .pisces-stars circle {
  opacity: 0.9;
  transition: opacity 1.4s ease 1.2s;
}

.hero.off-5 .pisces-lines path {
  stroke-dashoffset: 0;
  opacity: 0.34;
  transition: stroke-dashoffset 3.2s cubic-bezier(0.45, 0, 0.2, 1) 4.4s, opacity 0.6s ease 4.4s;
}

/* ---- The halo: in the sky, behind the clouds and hills ---- */

.corona {
  position: absolute;
  left: 50%;
  top: calc(74cqh - var(--pan-max) - var(--ring) / 2);
  width: var(--ring);
  height: var(--ring);
  margin-left: calc(var(--ring) / -2);
  border-radius: 50%;
  background: radial-gradient(closest-side, transparent 78%, rgba(227, 168, 83, 0.2) 82%, rgba(127, 209, 199, 0.2) 85%, rgba(147, 168, 255, 0.6) 88.5%, rgba(210, 220, 255, 0.3) 92%, transparent 98%);
  box-shadow: 0 0 80px rgba(147, 168, 255, 0.08), inset 0 0 60px rgba(147, 168, 255, 0.05);
  filter: blur(1.5px);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ---- Clouds: moonlit on top, lit warm from below while the town's lamps are on ---- */

.cloud {
  position: absolute;
  animation: cloud-drift var(--dur, 90s) ease-in-out infinite alternate;
}

.cloud svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.cloud .rim {
  fill: #8da3d6;
  opacity: 0.55;
}

.cloud .warm {
  transition: opacity 1.6s ease 0.3s;
}

@keyframes cloud-drift {
  from { transform: translateX(0); }
  to { transform: translateX(var(--drift, 30px)); }
}

/* ---- Light pollution ---- */

.skyglow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--shore);
  height: 64cqh;
  background: linear-gradient(0deg, rgba(227, 168, 83, 0.3), rgba(227, 168, 83, 0.11) 45%, transparent);
  transition: opacity 1.6s ease 0.3s;
}

.hero.off-1 .skyglow, .hero.off-1 .cloud .warm { opacity: 0.8; }
.hero.off-2 .skyglow, .hero.off-2 .cloud .warm { opacity: 0.6; }
.hero.off-3 .skyglow, .hero.off-3 .cloud .warm { opacity: 0.4; }
.hero.off-4 .skyglow, .hero.off-4 .cloud .warm { opacity: 0.2; }
.hero.off-5 .skyglow, .hero.off-5 .cloud .warm { opacity: 0; }

.haze {
  position: absolute;
  bottom: var(--shore);
  left: var(--c);
  width: 46%;
  height: 118cqh;
  transform: translateX(-50%);
  transition: opacity 0.9s ease;
}

.haze::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(farthest-side at 50% 100%, rgba(227, 168, 83, 0.38), rgba(227, 168, 83, 0.17) 38%, rgba(227, 168, 83, 0.055) 68%, transparent);
  animation: haze-hum var(--hum, 3s) ease-in-out infinite alternate;
}

@keyframes haze-hum {
  from { opacity: 0.8; }
  to { opacity: 1; }
}

.hero.off-1 .haze.o1,
.hero.off-2 .haze.o2,
.hero.off-3 .haze.o3,
.hero.off-4 .haze.o4,
.hero.off-5 .haze.o5 {
  opacity: 0;
  transition: opacity 1.8s ease 0.35s;
}

/* ---- The town ---- */

.land {
  position: absolute;
  left: 0;
  bottom: calc(var(--shore) - 1px);
  width: 100%;
  height: 40cqh;
}

.land .far { fill: #13214a; }
.land .mid { fill: #0d1838; }
.land .town-back { fill: #0a1330; }
.land .town-front { fill: #070d22; }

.land .win {
  fill: #f3c47d;
  transition: opacity 0.6s ease;
}

/* A few windows go dark after the finale, as the town goes to sleep. */
.hero.off-5 .land .late { opacity: 0; transition: opacity 1.4s ease 3.4s; }
.hero.off-5 .land .late:nth-child(3n) { transition-delay: 5.2s; }
.hero.off-5 .land .late:nth-child(3n+1) { transition-delay: 7s; }

.railing {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--shore);
  height: 3.4cqh;
  border-top: 2px solid #060a18;
  background: repeating-linear-gradient(90deg, #060a18 0 2px, transparent 2px 15px);
}

.quay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--water-h);
  height: var(--quay-h);
  background:
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(0, 0, 0, 0.28) 46px 48px),
    linear-gradient(180deg, #111a33, #0a1126);
  border-top: 1px solid rgba(245, 246, 250, 0.07);
}

.water {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--water-h);
  overflow: hidden;
  overflow: clip;
  background: linear-gradient(180deg, #0c1a38 0%, #081329 55%, #050c1c 100%);
}

.ripples {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(100% + 240px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='120'%3E%3Cpath d='M72 75h16M35 20h22M150 15h17M98 99h23M74 55h12M65 53h9M35 75h28M112 96h19M181 48h24M164 61h17M23 44h30M65 110h15M67 73h29M138 79h16M173 45h27M75 95h18M23 79h8M168 39h10M175 45h15M114 83h20M105 26h27M114 15h11M158 99h20M42 115h25M39 70h23M159 28h14M161 14h30M148 83h14M125 40h24M143 110h15M137 37h19M41 74h29M31 65h11M82 66h13' stroke='%2396bde6' stroke-opacity='.12' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");
  animation: ripple-drift 16s linear infinite;
}

@keyframes ripple-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-240px); }
}

.wstar {
  position: absolute;
  width: 7px;
  height: 1.5px;
  margin-left: -3.5px;
  border-radius: 1px;
  background: var(--frost);
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* ---- Lamps and their reflections ---- */

.lamp-unit {
  position: absolute;
  left: var(--c);
  bottom: var(--shore);
  width: 0;
  height: 0;
}

.lamp {
  position: absolute;
  left: 0;
  bottom: calc(var(--lamp-h) * -0.0622);
  height: var(--lamp-h);
  width: auto;
  aspect-ratio: 120 / 450;
  transform: translateX(-50%);
  overflow: visible;
}

.lamp .metal { fill: #070a15; }
.lamp .glass { fill: #1b2036; }

.lamp .frame {
  fill: none;
  stroke: #070a15;
  stroke-width: 2.2;
  stroke-linejoin: round;
}

.reflect {
  position: absolute;
  left: 0;
  top: var(--quay-h);
  width: calc(var(--lamp-h) * 0.2);
  height: calc(var(--water-h) * 0.96);
  transform: translateX(-50%);
}

.reflect i {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255, 207, 135, 0.8) 0 2px, transparent 2px 5px);
  -webkit-mask-image: radial-gradient(50% 100% at 50% 0, #000 25%, transparent 100%);
  mask-image: radial-gradient(50% 100% at 50% 0, #000 25%, transparent 100%);
  animation: shimmer 2.6s ease-in-out infinite alternate;
}

@keyframes shimmer {
  from { transform: scaleX(0.78); }
  to { transform: scaleX(1.12); }
}

.lamp-unit.is-off .light {
  animation: lamp-die 1.1s ease-out forwards;
}

.lamp-unit.is-on .light {
  animation: lamp-warm 1.3s ease-in forwards;
}

@keyframes lamp-die {
  0% { opacity: 1; }
  8% { opacity: 0.3; }
  15% { opacity: 1; }
  24% { opacity: 0.15; }
  32% { opacity: 0.8; }
  40% { opacity: 0.08; }
  48% { opacity: 0.45; }
  100% { opacity: 0; }
}

@keyframes lamp-warm {
  0% { opacity: 0; }
  25% { opacity: 0.2; }
  100% { opacity: 1; }
}

/* ---- Hint, skip, wordmark ---- */

.hero-hint {
  position: absolute;
  left: 50%;
  top: 36%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--frost-dim);
  white-space: nowrap;
  pointer-events: none;
}

.hero-hint-arrow {
  font-size: 1.1rem;
  animation: hero-hint-bob 1.8s ease-in-out infinite;
}

@keyframes hero-hint-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@media (max-width: 600px) {
  .hero-hint { top: 28%; }
}

.hero-skip {
  position: absolute;
  right: clamp(16px, 3cqw, 32px);
  top: clamp(12px, 2.4cqh, 24px);
  padding: 8px 2px 4px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--frost-dim);
  text-decoration: none;
  border-bottom: 1px solid rgba(185, 190, 209, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease, opacity 0.6s ease, visibility 0s linear 0s;
}

.hero-skip:hover,
.hero-skip:focus-visible {
  color: var(--frost);
  border-bottom-color: var(--frost);
}

.hero.off-5 .hero-skip {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}

.hero-copy {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-wordmark {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  margin: 0;
  white-space: nowrap;
  font-size: calc(var(--ring) * 0.2);
  letter-spacing: 0.04em;
  color: var(--frost);
  text-shadow: 0 0 28px rgba(147, 168, 255, 0.28);
  opacity: 0;
  filter: blur(14px);
  transition: opacity 0.4s ease, filter 0.4s ease;
}

.hero-tagline {
  position: absolute;
  left: 50%;
  top: calc(44% + var(--ring) / 2 + clamp(10px, 2cqh, 22px));
  transform: translateX(-50%);
  width: min(34ch, calc(100% - 48px));
  margin: 0;
  text-align: center;
  font-size: clamp(0.95rem, 2.2cqh, 1.15rem);
  color: var(--frost-dim);
  text-shadow: 0 0 4px rgba(10, 15, 31, 0.9), 0 0 10px rgba(10, 15, 31, 0.9), 0 0 18px rgba(10, 15, 31, 0.8);
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* The finale plays out once the last light is out, without needing more scroll. */
.hero.off-5 .milky-way {
  opacity: 1;
  transition: opacity 3s ease 1s;
}

.hero.off-5 .corona {
  opacity: 1;
  transform: scale(1);
  transition: opacity 2.4s ease 1.4s, transform 3s cubic-bezier(0.16, 0.84, 0.3, 1) 1.4s;
}

.hero.off-5 .hero-wordmark {
  opacity: 1;
  filter: blur(0);
  transition: opacity 1.6s ease 2s, filter 2s ease 2s;
}

.hero.off-5 .hero-tagline {
  opacity: 1;
  transition: opacity 1.2s ease 2.9s;
}

.hero.is-paused .tstar i,
.hero.is-paused .haze::before,
.hero.is-paused .hero-hint-arrow,
.hero.is-paused .cloud,
.hero.is-paused .ripples,
.hero.is-paused .reflect i {
  animation-play-state: paused;
}

/* Reduced motion and no-JS: the resolved scene, static, no scroll pinning. */
@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .hero-sticky { position: relative; --pan-max: 14cqh; }
  .hero-world { transform: translateY(14cqh) !important; }
  .hero .light,
  .hero .haze,
  .hero .skyglow,
  .hero .cloud .warm,
  .hero .land .late { opacity: 0; animation: none; }
  .hero .starfield circle,
  .hero .tstar,
  .hero .wstar { opacity: var(--m, 1); transform: none; transition: none; }
  .hero .pisces-stars circle { opacity: 0.9; }
  .hero .pisces-lines path { opacity: 0.34; stroke-dashoffset: 0; }
  .hero .corona { opacity: 1; transform: none; transition: none; }
  .hero .milky-way,
  .hero .hero-wordmark,
  .hero .hero-tagline { opacity: 1; filter: none; transition: none; }
  .hero .hero-hint,
  .hero .hero-skip { display: none; }
}

html.no-js .hero { height: auto; }
html.no-js .hero-sticky { position: relative; --pan-max: 14cqh; }
html.no-js .hero-world { transform: translateY(14cqh); }
html.no-js .hero .light,
html.no-js .hero .haze,
html.no-js .hero .skyglow,
html.no-js .hero .cloud .warm,
html.no-js .hero .land .late { opacity: 0; animation: none; }
html.no-js .hero .starfield circle,
html.no-js .hero .tstar,
html.no-js .hero .wstar { opacity: var(--m, 1); transform: none; }
html.no-js .hero .pisces-stars circle { opacity: 0.9; }
html.no-js .hero .pisces-lines path { opacity: 0.34; stroke-dashoffset: 0; }
html.no-js .hero .corona { opacity: 1; transform: none; }
html.no-js .hero .milky-way,
html.no-js .hero .hero-wordmark,
html.no-js .hero .hero-tagline { opacity: 1; filter: none; }
html.no-js .hero .hero-hint,
html.no-js .hero .hero-skip { display: none; }

/* ==========================================================================
   Positioning
   ========================================================================== */

.positioning-text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.9vw, 2.1rem);
  line-height: 1.35;
  max-width: 880px;
  color: var(--frost);
}

.positioning-sub {
  margin-top: 32px;
  max-width: 680px;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--frost-dim);
}

/* ==========================================================================
   Services / pillars
   ========================================================================== */

.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (max-width: 820px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

.pillar {
  background: var(--cirrus);
  padding: clamp(28px, 4vw, 44px);
}

.pillar-index {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--ember);
  letter-spacing: 0.08em;
}

.pillar h3 {
  margin-top: 14px;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
}

.pillar p {
  margin-top: 14px;
  color: var(--frost-dim);
  max-width: 46ch;
}

/* ==========================================================================
   How we work
   ========================================================================== */

.process-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

@media (max-width: 820px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

.process-text p {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--frost-dim);
  max-width: 60ch;
}

.process-text p + p {
  margin-top: 20px;
}

.process-note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--ember);
  padding: 24px 26px;
}

.process-note .eyebrow {
  margin-bottom: 10px;
}

.process-note p {
  color: var(--frost-dim);
}

/* ==========================================================================
   Difference
   ========================================================================== */

.difference-text {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  line-height: 1.4;
  max-width: 900px;
  color: var(--frost);
}

/* ==========================================================================
   Team
   ========================================================================== */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 56px);
}

@media (max-width: 720px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.team-card {
  display: flex;
  gap: 22px;
}

.team-initial {
  flex: none;
  width: 64px;
  height: 64px;
  border: 1px solid var(--corona);
  color: var(--corona);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-name {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.team-role {
  color: var(--ember);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.team-bio {
  color: var(--frost-dim);
  max-width: 46ch;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-section {
  background: var(--cirrus-2);
  position: relative;
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
}

/* The same night as the hero: lights out, a quiet scatter of stars, the halo just in view. */
.contact-section::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: min(1100px, 150vw);
  aspect-ratio: 1;
  right: max(-520px, -60vw);
  top: -40%;
  border-radius: 50%;
  background: radial-gradient(closest-side, transparent 80%, rgba(227, 168, 83, 0.08) 84%, rgba(127, 209, 199, 0.07) 87%, rgba(147, 168, 255, 0.2) 90%, rgba(210, 220, 255, 0.08) 94%, transparent 99%);
  filter: blur(2px);
}

.contact-section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(1.5px 1.5px at 24.7% 13.5%, rgba(245, 246, 250, 0.8) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 16.9% 10.1%, rgba(245, 246, 250, 0.65) 50%, transparent 100%),
    radial-gradient(1px 1px at 78.8% 74.4%, rgba(245, 246, 250, 0.65) 50%, transparent 100%),
    radial-gradient(1px 1px at 28.6% 19.9%, rgba(245, 246, 250, 0.65) 50%, transparent 100%),
    radial-gradient(1.2px 1.2px at 22.6% 89.3%, rgba(245, 246, 250, 0.65) 50%, transparent 100%),
    radial-gradient(1.2px 1.2px at 20.6% 32.5%, rgba(245, 246, 250, 0.35) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 83.1% 35.0%, rgba(245, 246, 250, 0.5) 50%, transparent 100%),
    radial-gradient(1px 1px at 19.1% 47.6%, rgba(245, 246, 250, 0.65) 50%, transparent 100%),
    radial-gradient(1.2px 1.2px at 2.7% 30.9%, rgba(245, 246, 250, 0.5) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 41.7% 59.1%, rgba(245, 246, 250, 0.8) 50%, transparent 100%),
    radial-gradient(1px 1px at 17.5% 32.1%, rgba(245, 246, 250, 0.35) 50%, transparent 100%),
    radial-gradient(1.2px 1.2px at 6.4% 61.6%, rgba(245, 246, 250, 0.8) 50%, transparent 100%),
    radial-gradient(1px 1px at 69.3% 17.3%, rgba(245, 246, 250, 0.35) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 41.6% 22.6%, rgba(245, 246, 250, 0.65) 50%, transparent 100%),
    radial-gradient(1.2px 1.2px at 19.6% 44.1%, rgba(245, 246, 250, 0.5) 50%, transparent 100%),
    radial-gradient(1px 1px at 88.8% 13.3%, rgba(245, 246, 250, 0.5) 50%, transparent 100%),
    radial-gradient(1px 1px at 28.6% 57.6%, rgba(245, 246, 250, 0.35) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 33.8% 20.3%, rgba(245, 246, 250, 0.35) 50%, transparent 100%),
    radial-gradient(1.2px 1.2px at 6.1% 68.2%, rgba(245, 246, 250, 0.65) 50%, transparent 100%),
    radial-gradient(1px 1px at 3.7% 30.6%, rgba(245, 246, 250, 0.8) 50%, transparent 100%),
    radial-gradient(1px 1px at 84.7% 84.0%, rgba(245, 246, 250, 0.65) 50%, transparent 100%),
    radial-gradient(1.2px 1.2px at 61.3% 86.3%, rgba(245, 246, 250, 0.5) 50%, transparent 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 72px);
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-intro h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
}

.contact-intro p {
  margin-top: 18px;
  color: var(--frost-dim);
  max-width: 46ch;
}

.contact-email {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  color: var(--corona);
  text-decoration: none;
  border-bottom: 1px solid var(--corona-soft);
  padding-bottom: 4px;
}

.contact-email:hover,
.contact-email:focus-visible {
  border-bottom-color: var(--corona);
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  color: var(--frost-dim);
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--cirrus);
  border: 1px solid var(--line);
  color: var(--frost);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--corona);
  outline-offset: 1px;
  border-color: var(--corona);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
}

.form-consent input[type='checkbox'] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--corona);
}

.form-consent label {
  font-size: 0.85rem;
  color: var(--frost-dim);
}

.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--corona);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px var(--gutter) 40px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--frost-dim);
}

.footer-links a {
  text-decoration: none;
  color: var(--frost-dim);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--frost);
}

.footer-links button.link-button {
  background: none;
  border: none;
  padding: 0;
  color: var(--frost-dim);
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links button.link-button:hover,
.footer-links button.link-button:focus-visible {
  color: var(--frost);
}

.footer-meta {
  width: 100%;
  margin-top: 24px;
  font-size: 0.78rem;
  color: rgba(185, 190, 209, 0.75);
}

/* ==========================================================================
   Cookie consent
   ========================================================================== */

.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 500;
  background: var(--cirrus-2);
  border-top: 1px solid var(--line);
  padding: 22px var(--gutter);
  transform: translateY(110%);
  transition: transform 0.4s ease;
}

.consent-banner.is-visible {
  transform: translateY(0);
}

.consent-banner[hidden] {
  display: none;
}

.consent-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.consent-copy {
  max-width: 620px;
  font-size: 0.9rem;
  color: var(--frost-dim);
}

.consent-copy a {
  color: var(--corona);
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.consent-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 6, 12, 0.7);
}

.consent-modal[hidden] {
  display: none;
}

.consent-modal-panel {
  background: var(--cirrus);
  border: 1px solid var(--line);
  max-width: 560px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: clamp(24px, 4vw, 40px);
}

.consent-modal-panel h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.consent-modal-panel > p {
  color: var(--frost-dim);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.consent-category {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.consent-category:first-of-type {
  border-top: none;
}

.consent-category-text h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.consent-category-text p {
  font-size: 0.85rem;
  color: var(--frost-dim);
}

.consent-toggle {
  flex: none;
  position: relative;
  width: 44px;
  height: 24px;
}

.consent-toggle input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.consent-toggle .track {
  position: absolute;
  inset: 0;
  background: var(--cirrus-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background-color 0.15s ease;
}

.consent-toggle .thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: var(--frost-dim);
  border-radius: 50%;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.consent-toggle input:checked + .track {
  background: rgba(147, 168, 255, 0.35);
}

.consent-toggle input:checked + .track .thumb {
  transform: translateX(20px);
  background: var(--corona);
}

.consent-toggle input:disabled + .track {
  opacity: 0.6;
  cursor: not-allowed;
}

.consent-toggle input:focus-visible + .track {
  outline: 2px solid var(--corona);
  outline-offset: 2px;
}

.consent-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}

/* ==========================================================================
   Legal pages
   ========================================================================== */

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(120px, 14vw, 160px) var(--gutter) 120px;
}

.legal-page h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  margin-bottom: 12px;
}

.legal-updated {
  color: var(--frost-dim);
  font-size: 0.85rem;
  margin-bottom: 32px;
}

.legal-draft-banner {
  border: 1px solid var(--ember);
  background: rgba(227, 168, 83, 0.08);
  padding: 18px 22px;
  font-size: 0.9rem;
  color: var(--frost);
  margin-bottom: 40px;
}

.legal-draft-banner strong {
  color: var(--ember);
}

.legal-page h2 {
  font-size: 1.3rem;
  margin-top: 40px;
  margin-bottom: 14px;
}

.legal-page p,
.legal-page li {
  color: var(--frost-dim);
  margin-bottom: 14px;
}

.legal-page ul {
  padding-left: 20px;
  list-style: disc;
}

.legal-page a {
  color: var(--corona);
}

.legal-page .back-home {
  display: inline-block;
  margin-bottom: 40px;
  font-size: 0.9rem;
  color: var(--corona);
  text-decoration: none;
}

mark.placeholder {
  background: rgba(227, 168, 83, 0.18);
  color: var(--frost);
  padding: 0 4px;
  font-style: normal;
}
