/* =========================================================
   Nordlys marketing site
   Single-page foundation — hero section.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg-0: #07070a;
  --bg-1: #0d0d13;
  --ink-1: #f5f5f7;
  --ink-2: rgba(245, 245, 247, 0.62);
  --ink-3: rgba(245, 245, 247, 0.38);
  --line: rgba(255, 255, 255, 0.09);

  --accent-orange: #ff9f3a;
  --accent-pink: #ff6f9c;
  --accent-blue: #5e9bff;
  --accent-violet: #a37bff;
  --gradient-brand: linear-gradient(90deg, var(--accent-orange), var(--accent-pink), var(--accent-blue), var(--accent-violet));

  --panel: rgba(10, 10, 14, 0.78);
  --panel-line: rgba(255, 255, 255, 0.1);

  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --nav-h: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--ink-1);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(94, 155, 255, 0.27); }

a { color: inherit; }

/* ---------- Backdrop ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(94, 155, 255, 0.14), transparent 60%),
    radial-gradient(45% 40% at 85% 90%, rgba(163, 123, 255, 0.1), transparent 60%),
    radial-gradient(45% 40% at 10% 85%, rgba(255, 111, 156, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 60%, var(--bg-0));
}
.noise {
  position: fixed; inset: 0; z-index: -1; opacity: 0.035; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Brand ---------- */
.brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--ink-1); text-decoration: none;
}
.brand-dot {
  position: relative;
  width: 19px; height: 19px; border-radius: 50%;
  flex: 0 0 19px;
  overflow: hidden;
  isolation: isolate;
  background: #001219;
  border: 0;
  box-shadow:
    0 0 5px rgba(39, 238, 183, 0.22),
    0 0 9px rgba(31, 156, 226, 0.14);
}
.brand-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 30% 22%, rgba(119,255,227,.12), transparent 22%);
}
.brand-static { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand-aurora {
  position: absolute;
  inset: -20%;
  width: 140%;
  height: 140%;
  max-width: none;
  object-fit: cover;
  object-position: 58% 50%;
  filter: saturate(1.38) contrast(1.12) brightness(1.08) hue-rotate(-3deg);
  pointer-events: none;
}
.brand-aurora::-webkit-media-controls,
.brand-aurora::-webkit-media-controls-panel,
.brand-aurora::-webkit-media-controls-play-button,
.brand-aurora::-webkit-media-controls-start-playback-button,
.nav-soundtrack-aurora::-webkit-media-controls,
.nav-soundtrack-aurora::-webkit-media-controls-panel,
.nav-soundtrack-aurora::-webkit-media-controls-play-button,
.nav-soundtrack-aurora::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0 !important;
  pointer-events: none !important;
}
.brand-dot.media-fallback {
  background: #001219 url("media/aurora-logo-instagram.gif") 58% 50% / auto 140% no-repeat;
}
.brand-dot.media-fallback .brand-aurora { display: none; }
.brand-dot.media-fallback .brand-infinity { display: block; }
.brand-infinity {
  position: absolute;
  z-index: 4;
  left: 50%; top: 50%;
  width: 69%;
  aspect-ratio: 72 / 32;
  transform: translate(-50%, -50%);
  background: rgba(59, 255, 203, 0.025);
  -webkit-backdrop-filter: brightness(1.75) saturate(1.65) contrast(1.08);
  backdrop-filter: brightness(1.75) saturate(1.65) contrast(1.08);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 32'%3E%3Cpath d='M5 16C5 8.1 10.8 3.5 18.3 3.5C27.2 3.5 32 10.4 36 16C40 21.6 44.8 28.5 53.7 28.5C61.2 28.5 67 23.9 67 16C67 8.1 61.2 3.5 53.7 3.5C44.8 3.5 40 10.4 36 16C32 21.6 27.2 28.5 18.3 28.5C10.8 28.5 5 23.9 5 16Z' fill='none' stroke='white' stroke-width='6.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 32'%3E%3Cpath d='M5 16C5 8.1 10.8 3.5 18.3 3.5C27.2 3.5 32 10.4 36 16C40 21.6 44.8 28.5 53.7 28.5C61.2 28.5 67 23.9 67 16C67 8.1 61.2 3.5 53.7 3.5C44.8 3.5 40 10.4 36 16C32 21.6 27.2 28.5 18.3 28.5C10.8 28.5 5 23.9 5 16Z' fill='none' stroke='white' stroke-width='6.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  filter: drop-shadow(0 0 1.5px rgba(44, 224, 191, 0.18));
}

/* ---------- Loader ---------- */
.fsh-loader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: var(--bg-0);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.no-js .fsh-loader { display: none; }
.fsh-loader-done { opacity: 0; visibility: hidden; }
.fsh-loader-text { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.fsh-loader-track { width: 220px; height: 2px; background: rgba(255, 255, 255, 0.08); border-radius: 2px; overflow: hidden; }
.fsh-loader-fill { display: block; height: 100%; width: 0%; background: var(--gradient-brand); transition: width 0.18s ease; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
.nav-scrolled {
  padding: 12px 32px;
  background: rgba(9, 9, 12, 0.62);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.nav-soundtrack {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 9px;
  height: 34px;
}
.nav-soundtrack-infinity {
  position: relative;
  width: 92px; height: 32px;
  overflow: hidden;
  isolation: isolate;
  opacity: .9;
  filter: drop-shadow(0 0 8px rgba(37, 238, 190, .18));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 32'%3E%3Cpath d='M5 16C5 8.1 10.8 3.5 18.3 3.5C27.2 3.5 32 10.4 36 16C40 21.6 44.8 28.5 53.7 28.5C61.2 28.5 67 23.9 67 16C67 8.1 61.2 3.5 53.7 3.5C44.8 3.5 40 10.4 36 16C32 21.6 27.2 28.5 18.3 28.5C10.8 28.5 5 23.9 5 16Z' fill='none' stroke='white' stroke-width='6.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 32'%3E%3Cpath d='M5 16C5 8.1 10.8 3.5 18.3 3.5C27.2 3.5 32 10.4 36 16C40 21.6 44.8 28.5 53.7 28.5C61.2 28.5 67 23.9 67 16C67 8.1 61.2 3.5 53.7 3.5C44.8 3.5 40 10.4 36 16C32 21.6 27.2 28.5 18.3 28.5C10.8 28.5 5 23.9 5 16Z' fill='none' stroke='white' stroke-width='6.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.nav-soundtrack-aurora {
  position: absolute; inset: -55% -20%;
  width: 140%; height: 210%; max-width: none;
  object-fit: cover; object-position: 58% 50%;
  filter: saturate(1.5) contrast(1.15) brightness(1.12) hue-rotate(-4deg);
  transform: scale(1.08);
  pointer-events: none;
}
.nav-soundtrack-infinity.media-fallback {
  background: #002126 url("media/aurora-logo-instagram.gif") 58% 50% / auto 210% no-repeat;
}
.nav-soundtrack-infinity.media-fallback .nav-soundtrack-aurora { display: none; }
.nav-soundtrack-sheen {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(105deg, transparent 20%, rgba(155,255,234,.24) 48%, transparent 76%);
  transform: translateX(-110%);
  animation: soundtrack-sheen 4.8s ease-in-out infinite;
}
.nav-soundtrack-wave {
  position: absolute; z-index: 3; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 3px;
  opacity: .28;
}
.nav-soundtrack-wave i {
  width: 1px; height: 7px; border-radius: 1px;
  background: rgba(205,255,245,.88);
  transform-origin: center;
}
.nav-soundtrack.is-playing .nav-soundtrack-wave i { animation: soundtrack-wave .85s ease-in-out infinite alternate; }
.nav-soundtrack.is-playing .nav-soundtrack-wave i:nth-child(2) { animation-delay: -.42s; }
.nav-soundtrack.is-playing .nav-soundtrack-wave i:nth-child(3) { animation-delay: -.18s; }
.nav-soundtrack.is-playing .nav-soundtrack-wave i:nth-child(4) { animation-delay: -.58s; }
.nav-soundtrack.is-playing .nav-soundtrack-wave i:nth-child(5) { animation-delay: -.29s; }
.nav-soundtrack-toggle {
  position: relative;
  display: grid; place-items: center;
  width: 29px; height: 29px; padding: 0;
  border: 1px solid rgba(184, 255, 239, .16);
  border-radius: 50%;
  color: rgba(218, 255, 247, .76);
  background: rgba(255,255,255,.035);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 12px rgba(34,225,185,.07);
  cursor: pointer;
  transition: color .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease, transform .25s ease;
}
.nav-soundtrack-toggle:hover,
.nav-soundtrack-toggle:focus-visible {
  color: rgba(233,255,251,.96);
  border-color: rgba(120,255,226,.36);
  background: rgba(94,255,218,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 18px rgba(34,225,185,.15);
  transform: scale(1.04);
}
.nav-soundtrack-toggle:focus-visible { outline: 1px solid rgba(129,255,228,.65); outline-offset: 3px; }
.nav-soundtrack-icon { position: absolute; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; transition: opacity .2s ease, transform .2s ease; }
.nav-soundtrack-icon-live { opacity: 0; transform: scale(.82); }
.nav-soundtrack.is-playing .nav-soundtrack-icon-muted { opacity: 0; transform: scale(.82); }
.nav-soundtrack.is-playing .nav-soundtrack-icon-live { opacity: 1; transform: scale(1); }
.nav-soundtrack.is-playing .nav-soundtrack-infinity { opacity: 1; filter: drop-shadow(0 0 11px rgba(37,238,190,.3)); }
@keyframes soundtrack-sheen { 0%, 58%, 100% { transform: translateX(-110%); } 78% { transform: translateX(110%); } }
@keyframes soundtrack-wave { from { transform: scaleY(.45); } to { transform: scaleY(1.65); } }
.nav-actions { position: relative; }
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 0; font: inherit; cursor: pointer;
  font-size: 12.5px; font-weight: 600; padding: 8px 16px; border-radius: 100px;
  background: var(--ink-1); color: #0a0a0d; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover, .nav-cta:focus-visible, .nav-actions.is-open .nav-cta { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255, 255, 255, 0.18); }
.nav-cta-chevron { font-size: 13px; line-height: 1; transform: translateY(-1px); transition: transform .2s ease; }
.nav-actions.is-open .nav-cta-chevron { transform: translateY(1px) rotate(180deg); }
.nav-menu {
  position: absolute; top: calc(100% + 10px); right: 0; width: 184px; padding: 6px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 14px;
  background: rgba(12,12,16,.92); box-shadow: 0 18px 50px rgba(0,0,0,.42);
  -webkit-backdrop-filter: blur(20px) saturate(145%); backdrop-filter: blur(20px) saturate(145%);
}
.nav-menu[hidden] { display: none; }
.nav-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 11px 12px; border-radius: 9px; color: var(--ink-2);
  font-size: 12.5px; font-weight: 600; text-decoration: none;
  transition: color .18s ease, background .18s ease;
}
.nav-menu a:hover, .nav-menu a:focus-visible { color: var(--ink-1); background: rgba(255,255,255,.075); outline: none; }
@media (max-width: 640px) {
  .nav { padding-left: 16px; padding-right: 16px; }
  .nav-scrolled { padding-left: 16px; padding-right: 16px; }
  .nav-soundtrack { gap: 5px; }
  .nav-soundtrack-infinity { width: 66px; height: 25px; }
  .nav-soundtrack-toggle { width: 25px; height: 25px; }
  .nav-soundtrack-icon { width: 11px; height: 11px; }
}
@media (max-width: 390px) {
  .brand { font-size: 14px; gap: 6px; }
  .brand-dot { width: 17px; height: 17px; flex-basis: 17px; }
  .nav-soundtrack { left: 49%; }
  .nav-soundtrack-infinity { width: 56px; }
  .nav-cta { padding-left: 12px; padding-right: 12px; }
}

/* ---------- Hero (cinematic: big laptop, floating card, in-screen overlays) ---------- */
.hero { position: relative; height: 500vh; }
.no-js .hero { height: auto; }

.hero-stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}
.no-js .hero-stage { position: relative; height: auto; min-height: 100vh; padding-bottom: 40px; }

/* Laptop centered in the stage */
.fsh-canvas-wrap {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  padding-top: 60px;
}
.laptop { width: min(58vw, 860px); display: flex; flex-direction: column; align-items: center; filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.55)); }
.laptop-screen {
  position: relative; width: 100%; aspect-ratio: 16 / 10.2;
  background: #050507; border-radius: 16px 16px 5px 5px;
  padding: 9px; border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.laptop-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 22%; height: 9px; background: #050507; border-radius: 0 0 10px 10px; z-index: 3; }
.laptop-cam { position: absolute; top: 3px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: #1a1a1e; box-shadow: 0 0 3px 1px #2a2a30; z-index: 4; }
.screen-inner { position: relative; width: 100%; height: 100%; border-radius: 10px; overflow: hidden; background: radial-gradient(120% 100% at 50% 0%, #14141c, #060608 70%); display: flex; flex-direction: column; }
.laptop-base { width: 112%; height: 14px; margin-top: -1px; background: linear-gradient(180deg, #2a2a30, #111114); border-radius: 0 0 10px 10px; box-shadow: 0 10px 18px -6px rgba(0, 0, 0, 0.6); clip-path: polygon(2% 0, 98% 0, 100% 100%, 0% 100%); }
.laptop-base::after { content: ""; display: block; width: 70px; height: 4px; margin: 0 auto; background: #000; border-radius: 0 0 6px 6px; opacity: 0.5; }

/* Copy */
.fsh-copy { position: absolute; top: 9%; left: 0; right: 0; z-index: 5; text-align: center; padding: 0 20px; transition: opacity 0.4s ease, transform 0.4s ease; }
.fsh-title { margin: 0; font-size: clamp(2.1rem, 6vw, 4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; }
.fsh-title-dark { color: var(--ink-1); }
.fsh-title-rainbow {
  background: var(--gradient-brand); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradient-shift 6s ease infinite;
}
@keyframes gradient-shift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.fsh-sub { margin: 14px 0 0; font-size: 14.5px; color: var(--ink-3); letter-spacing: 0.02em; transition: opacity 0.4s ease, transform 0.4s ease; }
.fsh-sub-hidden { opacity: 0; transform: translateY(-6px); }
.no-js .fsh-sub { display: none; }

/* Screen content */
.call-header { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 10.5px; color: var(--ink-3); }
.win-dots { display: flex; gap: 5px; }
.win-dots span { width: 7px; height: 7px; border-radius: 50%; display: block; }
.win-dots span:nth-child(1) { background: #ff5f57; }
.win-dots span:nth-child(2) { background: #febc2e; }
.win-dots span:nth-child(3) { background: #28c840; }
.call-mid { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.rec-dot { width: 6px; height: 6px; border-radius: 50%; background: #ff5f57; animation: rec-pulse 1.6s infinite; }
@keyframes rec-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 95, 87, 0.55); } 70% { box-shadow: 0 0 0 6px rgba(255, 95, 87, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 95, 87, 0); } }
.waveform { display: flex; align-items: center; gap: 2px; height: 20px; padding: 0 2px; min-width: 40px; }
.waveform i { width: 2.5px; border-radius: 2px; height: 30%; background: linear-gradient(180deg, var(--accent-blue), var(--accent-violet)); animation: wf 1s infinite ease-in-out; }
@keyframes wf { 0%, 100% { height: 20%; } 50% { height: 100%; } }

.screen-body { position: relative; flex: 1; padding: 14px 16px 10px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.transcript-panel { flex: 1; display: flex; flex-direction: column; gap: 8px; overflow: hidden; justify-content: flex-end; }
.msg { max-width: 78%; font-size: clamp(9.5px, 1.05vw, 12px); line-height: 1.4; padding: 7px 10px; border-radius: 11px; animation: msg-in 0.35s ease; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.msg-tag { display: block; font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.55; margin-bottom: 2px; }
.msg-prospect { align-self: flex-start; background: rgba(255, 255, 255, 0.06); color: var(--ink-1); border: 1px solid rgba(255, 255, 255, 0.06); }
.msg-rep { align-self: flex-end; background: linear-gradient(135deg, #3d63ff, var(--accent-blue)); color: #fff; }

/* In-screen overlays */
.overlay { position: absolute; z-index: 5; padding: 10px 12px; border-radius: 12px; background: rgba(10, 10, 14, 0.78); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transform: translateY(8px) scale(0.96); transition: opacity 0.45s ease, transform 0.45s ease; pointer-events: none; font-size: 10.5px; }
.overlay.active { opacity: 1; transform: translateY(0) scale(1); }
.overlay-transcribe { top: 12px; left: 50%; transform: translateX(-50%) translateY(8px); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: #ff9f3a; display: flex; gap: 6px; align-items: center; }
.overlay-transcribe.active { transform: translateX(-50%) translateY(0); }
.overlay-coaching { top: 14%; right: 5%; width: 56%; max-width: 260px; color: #ffd7a8; }
.overlay-coaching b { color: #fff; display: block; font-size: 10.5px; margin-bottom: 2px; }
.overlay-sentiment { bottom: 14%; left: 5%; width: 60%; max-width: 230px; }
.sent-row { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 9px; color: var(--ink-2); }
.sent-bar { flex: 1; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.sent-bar span { display: block; height: 100%; border-radius: 3px; }
.overlay-score { top: 12%; left: 5%; width: auto; display: flex; align-items: center; gap: 10px; }
.gauge { width: 44px; height: 44px; border-radius: 50%; background: conic-gradient(#5e9bff var(--pct, 74%), rgba(255, 255, 255, 0.08) 0); display: flex; align-items: center; justify-content: center; position: relative; }
.gauge::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #0a0a0e; }
.gauge span { position: relative; z-index: 2; font-size: 10px; font-weight: 700; }

/* Floating side cards */
.fsh-cards { position: absolute; z-index: 6; right: 4vw; top: 50%; transform: translateY(-50%); width: 340px; height: 220px; }
.fsh-card { position: absolute; inset: 0; opacity: 0; transform: translateY(30px) scale(0.95); transition: opacity 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); pointer-events: none; }
.fsh-card-active { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.fsh-card-prev { opacity: 0; transform: translateY(-30px) scale(0.95); }
.fsh-card-inner { position: relative; height: 100%; padding: 22px 22px 18px; border-radius: 20px; overflow: hidden; background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6); display: flex; flex-direction: column; justify-content: space-between; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.fsh-card-glow { position: absolute; inset: -40% -20% auto auto; width: 60%; height: 140%; background: var(--c); filter: blur(50px); opacity: 0.35; pointer-events: none; }
.fsh-card-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em; }
.fsh-card-num strong { color: var(--ink-1); }
.fsh-card-icon { font-size: 15px; color: var(--c); }
.fsh-card-title { margin: 14px 0 6px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink-1); }
.fsh-card-desc { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.fsh-card-foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.fsh-ticks { display: flex; gap: 5px; flex: 1; }
.fsh-tick { position: relative; flex: 1; height: 3px; background: rgba(255, 255, 255, 0.1); border-radius: 2px; overflow: hidden; }
.fsh-tick span { position: absolute; inset: 0; background: var(--c); transform-origin: left; transform: scaleX(0); }
.fsh-card-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c); font-weight: 700; white-space: nowrap; }
.no-js .fsh-card { position: relative; opacity: 1; transform: none; margin-bottom: 14px; }
.no-js .fsh-cards { position: relative; right: auto; top: auto; transform: none; height: auto; width: min(100%, 340px); margin: 24px auto 0; }

/* Progress */
.fsh-progress { position: absolute; left: 0; right: 0; bottom: 0; z-index: 20; height: 2px; background: rgba(255, 255, 255, 0.06); }
.fsh-progress-fill { display: block; height: 100%; width: 0%; background: var(--gradient-brand); }
.no-js .fsh-progress { display: none; }

/* Responsive (from reference) */
@media (max-width: 900px) {
  .fsh-canvas-wrap { align-items: flex-start; padding-top: 64px; }
  .laptop { width: 82vw; max-width: 360px; }
  /* Clear the fixed 64px navigation on short phone viewports without moving
     the rest of the hero composition. */
  .fsh-copy { top: calc(var(--nav-h) + 10px); }
  .fsh-cards {
    right: auto; left: 0; top: auto; bottom: 0; transform: none;
    width: 100%; max-width: none; height: auto; min-height: 160px; max-height: 34vh;
    padding: 0 16px 14px;
    background: linear-gradient(180deg, rgba(7, 7, 10, 0) 0%, rgba(7, 7, 10, 0.85) 30%, rgba(7, 7, 10, 0.98) 100%);
  }
  .fsh-card-inner { max-height: 100%; overflow: hidden; }
}
@media (max-width: 520px) {
  .fsh-canvas-wrap { padding-top: 164px; }
  .fsh-title { font-size: 2rem; }
  /* Keep all four live-intelligence moments visible inside the phone-sized
     laptop. These were previously hidden outright below 520px. */
  .overlay-coaching {
    display: block;
    top: 10%; right: 3%;
    width: 76%; max-width: none;
    padding: 7px 8px;
    border-radius: 8px;
    font-size: 8px; line-height: 1.35;
  }
  .overlay-coaching b { font-size: 8.5px; margin-bottom: 2px; }
  .overlay-sentiment {
    display: block;
    bottom: 6%; left: 3%;
    width: 78%; max-width: none;
    padding: 7px 8px;
    border-radius: 8px;
  }
  .overlay-sentiment > b { font-size: 8.5px !important; }
  .overlay-sentiment .sent-row { gap: 4px; margin-top: 3px; font-size: 7.5px; }
  .overlay-sentiment .sent-row > span:first-child { width: 36px !important; }
  .overlay-sentiment .sent-bar { height: 3px; }
  .fsh-cards { max-height: 40vh; }
  .fsh-card-inner { padding: 16px 18px 14px; }
  .fsh-card-title { font-size: 17px; margin: 10px 0 4px; }
  .fsh-card-desc { font-size: 12px; }
}

/* ---------- Footer ---------- */
.footer {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 48px 24px 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-0);
}
.footer p { margin: 0; font-size: 12.5px; color: var(--ink-3); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fsh-title-rainbow, .rec-dot, .waveform i, .msg { animation: none; }
  .waveform i { height: 55%; }
  .overlay, .fsh-card, .fsh-sub, .fsh-copy { transition: none; }
}

/* =========================================================
   "Powered by Nordlys" — Three.js shader band (below hero)
   Ports the reference's Tailwind utilities to scoped .pbn-* CSS.
   Reference class → CSS:
     body        → .pbn (slate-950 backdrop, centered, responsive pad)
     section     → .pbn-card (max-w-6xl, 70vh clamp, rounded-2xl,
                    slate-800/50 border, blue-700 fallback, shadow)
     #shader-…   → .pbn-shader (absolute inset-0, black)
     h1/span     → .pbn-title / .pbn-subtitle (white / blue-200)
   ========================================================= */
.pbn {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  padding: 0;                 /* full-bleed — no gutter */
  background: #000;
}
.pbn-card {
  position: relative; width: 100%;
  height: 100vh; height: 100svh;   /* cover the whole screen */
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: #000;                 /* fallback if WebGL/Three fails */
  /* no border / radius / shadow — full-bleed shader */
}
.pbn-shader { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.pbn-shader canvas { display: block; }
.pbn-overlay {
  position: absolute; inset: 0; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  padding: 0 1rem; text-align: center; pointer-events: none;
}
.pbn-title {
  margin: 0; color: #fff; font-weight: 600;
  font-size: clamp(2.25rem, 6vw, 4.5rem); /* text-4xl → text-7xl */
  line-height: 1; letter-spacing: -0.04em; /* tracking-tighter */
  text-shadow: 0 10px 15px rgba(0, 0, 0, 0.3); /* drop-shadow-lg */
}
.pbn-subtitle { color: #bfdbfe; } /* blue-200 */

/* =========================================================
   Vision — "One Intelligence. Infinite Applications."
   Ports the 21st.dev Spline demo styling to scoped .vsn-* CSS:
     Card  bg-black/[0.96] rounded-lg border, h-[500px], overflow-hidden
     Spotlight  white blurred glow, animated fade-in
     Heading  bg-gradient-to-b from-neutral-50 to-neutral-400 (clip-text)
     Copy  text-neutral-300 max-w-lg
   Capability cards, the Nordlys Brain block and the closing quote
   follow in the same neutral-on-black palette.
   ========================================================= */
.vsn {
  position: relative; z-index: 2;
  background: #060608;
  padding: 0 0 clamp(64px, 10vw, 120px);
}
.vsn-inner { width: 100%; }

/* ---------- Spline showcase card — full-bleed, borderless ---------- */
.vsn-card {
  position: relative; width: 100%;
  min-height: 100vh; min-height: 100svh; /* cover the whole screen */
  overflow: hidden;
  background: #000; /* fallback if WebGL/Three fails */
  /* no border / radius — edge to edge */
}
.vsn-spotlight {
  position: absolute; top: -22%; left: -10%; z-index: 1;
  width: 60%; height: 130%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.16), transparent 72%);
  filter: blur(30px);
  opacity: 0; transform: translateY(-24px);
  animation: vsn-spotlight 1.4s ease 0.15s forwards;
}
@media (min-width: 768px) { .vsn-spotlight { left: 12%; top: -18%; } }
@keyframes vsn-spotlight { to { opacity: 1; transform: translateY(0); } }

.vsn-card-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; min-height: 100vh; min-height: 100svh; }
/* Give the robot the larger share so it fills more of the screen */
@media (min-width: 768px) { .vsn-card-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }

.vsn-card-copy {
  padding: clamp(28px, 6vw, 80px);
  display: flex; flex-direction: column; justify-content: center;
}
/* Heading — matches the shader band's size, in light sky blue */
.vsn-title {
  margin: 0; font-weight: 700; letter-spacing: -0.04em; line-height: 1.02;
  font-size: clamp(2.25rem, 6vw, 4.5rem); /* same scale as .pbn-title */
  color: #bfdbfe; /* light sky blue (blue-200) */
}
/* Body — white, bold, smaller (same colorway as the shader text) */
.vsn-sub { margin: 18px 0 0; max-width: 36rem; color: #fff; font-weight: 600; font-size: 17px; line-height: 1.6; }
/* On mobile the copy sits at the top of the stacked card — clear the fixed nav */
@media (max-width: 767.98px) { .vsn-card-copy { padding-top: calc(var(--nav-h) + 24px); } }

/* ---------- 3D stage (Spline canvas) — bigger ---------- */
.vsn-stage { position: relative; min-height: 56svh; }
@media (min-width: 768px) { .vsn-stage { min-height: 100svh; } }
.vsn-canvas { display: block; width: 100%; height: 100%; position: absolute; inset: 0; }
/* Loader (reference used a .loader spinner in the Suspense fallback) */
.vsn-loader {
  position: absolute; top: 50%; left: 50%; width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  animation: vsn-spin 0.8s linear infinite;
}
@keyframes vsn-spin { to { transform: rotate(360deg); } }
/* If Spline can't load, drop the spinner and show a subtle placeholder glow */
.vsn-stage-fallback .vsn-loader { display: none; }
.vsn-stage-fallback::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 60% 45%, rgba(94, 155, 255, 0.14), transparent 70%);
}

/* ---------- Capability cards ---------- */
.vsn-cards {
  margin: clamp(56px, 9vw, 110px) auto 0;
  max-width: 72rem; padding: 0 clamp(16px, 4vw, 32px);
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 720px) { .vsn-cards { grid-template-columns: 1fr 1fr; } }
.vsn-cap {
  padding: 22px 22px 20px; border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}
.vsn-cap-current {
  border-color: rgba(191, 219, 254, 0.3);
  background: linear-gradient(135deg, rgba(191, 219, 254, 0.09), rgba(191, 219, 254, 0.025) 62%);
  box-shadow: 0 22px 60px -44px rgba(147, 197, 253, 0.85);
}
.vsn-cap-horizon { opacity: 0.78; }
@media (min-width: 720px) { .vsn-cap-current { grid-column: 1 / -1; } }
.vsn-cap-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
/* Card heading — sky blue; body — white bold */
.vsn-cap-title { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: #bfdbfe; }
.vsn-cap-desc { margin: 0; font-size: 14px; line-height: 1.55; color: #fff; font-weight: 600; }
.vsn-badge {
  flex-shrink: 0; font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em;
  padding: 4px 10px; border-radius: 100px; white-space: nowrap;
  color: #fff; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
}
.vsn-badge-live {
  color: #bfdbfe; background: rgba(191, 219, 254, 0.14); border-color: rgba(191, 219, 254, 0.36);
}

/* ---------- The Nordlys Brain ---------- */
.vsn-brain { margin: clamp(56px, 9vw, 110px) auto 0; max-width: 72rem; padding: 0 clamp(16px, 4vw, 32px); text-align: center; }
.vsn-brain-title {
  margin: 0; font-weight: 700; letter-spacing: -0.03em;
  font-size: clamp(1.8rem, 5vw, 2.75rem);
  color: #bfdbfe; /* sky blue */
}
.vsn-brain-lead { margin: 16px auto 0; max-width: 40rem; color: #fff; font-weight: 600; font-size: 16.5px; }
.vsn-brain-list {
  list-style: none; margin: 22px auto 0; padding: 0; max-width: 46rem;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.vsn-brain-list li {
  font-size: 13.5px; font-weight: 700; color: #fff;
  padding: 7px 14px; border-radius: 100px;
  background: rgba(191, 219, 254, 0.1); border: 1px solid rgba(191, 219, 254, 0.24);
}
.vsn-brain-body { margin: 24px auto 0; max-width: 42rem; color: #fff; font-weight: 600; font-size: 15px; line-height: 1.6; }

/* ---------- Closing quote ---------- */
.vsn-quote {
  margin: clamp(56px, 9vw, 110px) auto 0; max-width: 72rem; padding: 0 clamp(16px, 4vw, 32px);
  text-align: center; font-weight: 700; letter-spacing: -0.03em;
  font-size: clamp(1.8rem, 5vw, 2.75rem);
  color: #bfdbfe; /* sky blue */
}

@media (prefers-reduced-motion: reduce) {
  .vsn-spotlight { animation: none; opacity: 1; transform: none; }
  .vsn-loader { animation-duration: 1.6s; }
}

/* =========================================================
   Regions — interactive 3D globe section (Three.js/WebGL)
   Matte night-earth globe, violet rim, two launch markers.
   Premium/minimal: metallic heading, muted body, violet badge.
   ========================================================= */
.glb {
  position: relative; z-index: 2;
  background: #050507;
  padding: clamp(56px, 9vw, 120px) clamp(16px, 4vw, 32px) clamp(64px, 10vw, 128px);
  display: flex; flex-direction: column; align-items: center;
  overflow: hidden;
}

/* 3D stage */
.glb-stage {
  position: relative;
  width: min(76vw, 480px); aspect-ratio: 1 / 1;
  /* entrance: fade in + slight scale, set .in when scrolled into view */
  opacity: 0; transform: scale(0.965);
  transition: opacity 1.1s ease, transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.glb-stage.in { opacity: 1; transform: scale(1); }
.glb-canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.glb-canvas:active { cursor: grabbing; }

.glb-loader {
  position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border: 2px solid rgba(163, 123, 255, 0.18);
  border-top-color: rgba(163, 123, 255, 0.8);
  border-radius: 50%; animation: glb-spin 0.8s linear infinite; pointer-events: none;
}
@keyframes glb-spin { to { transform: rotate(360deg); } }

/* Hover tooltip — same language as site panels */
.glb-tooltip {
  position: absolute; top: 0; left: 0; z-index: 5; pointer-events: none;
  padding: 6px 11px; border-radius: 8px; white-space: nowrap;
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.01em; color: var(--ink-1);
  background: rgba(14, 12, 20, 0.82); border: 1px solid rgba(163, 123, 255, 0.45);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transform: translate(-50%, -140%);
  transition: opacity 0.18s ease;
}
.glb-tooltip.show { opacity: 1; }

/* Copy below the globe */
.glb-copy {
  margin-top: clamp(20px, 4vw, 44px); text-align: center; max-width: 46rem;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.9s ease 0.15s, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s;
}
.glb-copy.in { opacity: 1; transform: translateY(0); }
.glb-title {
  margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.08;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  background-image: linear-gradient(180deg, #f5f5f7, #b6b6bd);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.glb-desc { margin: 16px auto 0; max-width: 40rem; color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.glb-desc + .glb-desc { margin-top: 10px; }

/* Badge — understated, framed by hairlines */
.glb-badge { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: clamp(24px, 4vw, 40px); width: 100%; }
.glb-badge-line { height: 1px; width: min(22vw, 120px); background: linear-gradient(90deg, transparent, rgba(163, 123, 255, 0.35)); }
.glb-badge-line:last-child { background: linear-gradient(90deg, rgba(163, 123, 255, 0.35), transparent); }
.glb-badge-pill {
  flex-shrink: 0; font-size: 11.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: #c7b3ff; padding: 8px 18px; border-radius: 100px;
  border: 1px solid rgba(163, 123, 255, 0.4); background: rgba(163, 123, 255, 0.06);
}

@media (max-width: 520px) {
  .glb-stage { width: min(82vw, 360px); }
  .glb-badge-pill { letter-spacing: 0.14em; font-size: 10.5px; padding: 7px 14px; }
  .glb-desc { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .glb-stage, .glb-copy { transition: none; opacity: 1; transform: none; }
}

/* =========================================================
   Waitlist — request early access (dot-matrix WebGL backdrop)
   Nordlys-styled adaptation of the reference login/signup:
   dark card, minimal inputs, premium light submit button.
   ========================================================= */
.wl {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; min-height: 100svh;
  padding: clamp(72px, 12vh, 140px) clamp(16px, 4vw, 32px);
  background: #000; overflow: hidden;
}
.wl-dots { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; }
.wl-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0) 62%);
}

.wl-card {
  position: relative; z-index: 2; width: 100%; max-width: 420px;
  background: #0e0e11; border: 1px solid #212127; border-radius: 14px;
  padding: clamp(24px, 4vw, 34px);
  box-shadow: 0 24px 70px -20px rgba(0, 0, 0, 0.85);
  /* entrance */
  opacity: 0; transform: translateY(16px) scale(0.99);
  transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.wl-card.in { opacity: 1; transform: none; }

.wl-view { display: flex; flex-direction: column; align-items: center; text-align: center; }
.wl-view[hidden] { display: none; }

.wl-mark {
  width: 68px; height: 30px; margin-bottom: 17px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
}
.wl-infinity {
  width: 64px; height: 28px;
  opacity: 1;
  filter: drop-shadow(0 0 9px rgba(37, 238, 190, .22));
}

.wl-title { margin: 0; font-size: 1.4rem; font-weight: 600; letter-spacing: -0.025em; color: var(--ink-1); }
.wl-sub { margin: 8px 0 20px; font-size: 0.9rem; line-height: 1.55; color: var(--ink-2); max-width: 32ch; }

#wlForm { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.wl-input {
  width: 100%; padding: 0.7rem 0.85rem; border-radius: 8px;
  border: 1px solid #2a2a31; background: #050506; color: var(--ink-1);
  font-family: inherit; font-size: 0.9rem; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.wl-input::placeholder { color: var(--ink-3); }
.wl-input:focus { border-color: var(--accent-violet); box-shadow: 0 0 0 3px rgba(163, 123, 255, 0.16); }
.wl-select { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2rem;
}
.wl-select:invalid { color: var(--ink-3); }
.wl-select option { color: #fff; background: #0e0e11; }

.wl-submit {
  width: 100%; margin-top: 4px; padding: 0.72rem; border-radius: 8px; border: none;
  background: #ededed; color: #0a0a0d; font-family: inherit; font-weight: 600; font-size: 0.9rem;
  cursor: pointer; transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
}
.wl-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(255, 255, 255, 0.16); }
.wl-submit:disabled { opacity: 0.6; cursor: default; }

.wl-error { margin: 2px 0 0; font-size: 0.8rem; color: var(--error, #ff6f9c); }
.wl-error[hidden] { display: none; }
.wl-direct { margin: 16px 0 0; font-size: 0.8rem; line-height: 1.5; color: var(--ink-2); }
.wl-direct a { color: var(--ink-1); font-weight: 600; text-underline-offset: 3px; }
.wl-legal { margin: 16px 0 0; font-size: 0.72rem; line-height: 1.5; color: var(--ink-3); }
.wl-legal a { color: var(--ink-2); text-decoration: none; }
.wl-legal a:hover { color: var(--ink-1); }

/* Success view */
.wl-check {
  width: 46px; height: 46px; border-radius: 50%; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff;
  background: rgba(163, 123, 255, 0.14); border: 1px solid rgba(163, 123, 255, 0.4);
}
.wl-applicant { margin: 10px 0 18px; font-size: 0.95rem; color: var(--ink-2); }
.wl-applicant strong {
  color: var(--accent-violet); font-weight: 700; letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.wl-record {
  width: 100%; margin: 0 0 18px; display: grid; grid-template-columns: auto 1fr; gap: 9px 14px;
  text-align: left; padding: 16px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.02); border: 1px solid #1f1f25;
}
.wl-record dt { margin: 0; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); align-self: center; }
.wl-record dd {
  margin: 0; font-size: 0.85rem; color: var(--ink-1); word-break: break-word;
  font-variant-numeric: tabular-nums; text-align: right;
}
.wl-reach { margin-top: 2px; }

.footer-legal { display: flex; align-items: center; justify-content: center; gap: 10px; }
.footer-legal a { color: var(--ink-2); text-decoration: none; }
.footer-legal a:hover, .footer-legal a:focus-visible { color: var(--ink-1); }
.footer .footer-client { margin-top: 2px; color: rgba(255,255,255,.34); font-size: 11.5px; }
.footer-client a { color: var(--ink-2); text-decoration: none; transition: color .18s ease; }
.footer-client a:hover, .footer-client a:focus-visible { color: var(--ink-1); }

@media (prefers-reduced-motion: reduce) {
  .wl-card { transition: none; opacity: 1; transform: none; }
}

/* =========================================================
   Trailer — cinematic centerpiece (aurora composition).
   Aurora-borealis backdrop, split copy flanking the trailer card,
   NORDLYS thumbnail cover with play affordance, tagline + feature
   bullets + provenance line beneath, then the story panel with the
   Pre-Alpha strip. Teal accent #3fe0a5 (matches the product app).
   Scroll: sides slide apart, thumbnail dissolves, card expands.
   ========================================================= */
.tr { position: relative; z-index: 2; background: #060a09; }

.tr-scroll { position: relative; height: 300vh; }
.no-js .tr-scroll { height: auto; }

.tr-stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.no-js .tr-stage { position: relative; height: auto; min-height: 60vh; padding: 96px 0; }

/* ---------- Aurora backdrop ---------- */
.tr-bg {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(75% 55% at 30% 15%, rgba(63, 224, 165, 0.2), transparent 62%),
    radial-gradient(60% 45% at 74% 8%, rgba(94, 155, 255, 0.14), transparent 60%),
    linear-gradient(180deg, #071310, #060a09 80%);
  will-change: opacity;
}
.tr-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.tr-bg-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 10, 9, 0.35), rgba(6, 10, 9, 0.15) 40%, rgba(6, 10, 9, 0.78)); }

/* ---------- Split copy flanking the card ---------- */
.tr-side {
  position: absolute; z-index: 3; top: 34%; margin: 0;
  width: clamp(190px, 22vw, 330px);
  font-size: clamp(1.15rem, 2.1vw, 1.75rem); font-weight: 700; line-height: 1.32;
  letter-spacing: -0.02em; color: #fff;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.6);
  will-change: transform;
}
.tr-side-l { left: 5vw; }
.tr-side-r { right: 5vw; }

/* ---------- Trailer card ---------- */
.tr-card {
  position: relative; z-index: 2;
  height: min(84svh, 56vw); aspect-ratio: 16 / 10;
  border-radius: 22px; overflow: hidden;
  background: #04070a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9);
  transform: translateY(-9vh) scale(0.38);  /* JS drives → translateY(0) scale(1) */
  transform-origin: center center;
  will-change: transform, border-radius;
}
.tr-frame {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; display: block; background: #050507;
  pointer-events: none;   /* scroll always passes through to the page */
}

/* Thumbnail cover — NORDLYS + play + caption */
.tr-thumb {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3.2vh;
  background: radial-gradient(120% 90% at 50% 100%, #0a1a16 0%, #04070a 55%);
  border: 0; padding: 0; cursor: pointer; font-family: inherit;
  will-change: opacity;
}
.tr-thumb-glow {
  position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%);
  width: 88%; height: 46%; pointer-events: none;
  background:
    radial-gradient(58% 58% at 50% 92%, rgba(63, 224, 165, 0.34), transparent 65%),
    radial-gradient(42% 40% at 38% 96%, rgba(94, 155, 255, 0.2), transparent 70%);
  filter: blur(6px);
}
.tr-thumb-brand {
  position: relative; color: #f5f5f7; font-weight: 600;
  font-size: clamp(1.2rem, 3.4vw, 2.6rem); letter-spacing: 0.42em; text-indent: 0.42em;
}
.tr-thumb-play {
  position: relative; width: clamp(44px, 5.4vw, 62px); height: clamp(44px, 5.4vw, 62px);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform 0.25s, background 0.25s;
}
.tr-thumb-play svg { margin-left: 3px; }
.tr-thumb:hover .tr-thumb-play { transform: scale(1.07); background: rgba(255, 255, 255, 0.18); }
.tr-thumb-caption {
  position: relative; font-size: clamp(9px, 1vw, 12px); font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-2);
}

/* ---------- Beneath the card ---------- */
.tr-below {
  position: absolute; left: 0; right: 0; bottom: 3.2vh; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 2.6vh;
  padding: 0 20px; text-align: center;
  will-change: opacity;
}
.tr-tag { margin: 0; font-size: clamp(12.5px, 1.35vw, 15.5px); line-height: 1.6; color: var(--ink-2); text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6); }
.tr-feats { display: flex; align-items: stretch; justify-content: center; gap: clamp(18px, 3.4vw, 44px); }
.tr-feat { display: flex; align-items: center; gap: 12px; text-align: left; }
.tr-feat + .tr-feat { border-left: 1px solid rgba(255, 255, 255, 0.12); padding-left: clamp(18px, 3.4vw, 44px); }
.tr-feat-icon { width: clamp(24px, 2.6vw, 30px); height: clamp(24px, 2.6vw, 30px); flex-shrink: 0; }
.tr-feat-copy { display: flex; flex-direction: column; gap: 2px; }
.tr-feat-copy b { font-size: clamp(12px, 1.25vw, 14px); font-weight: 700; color: var(--ink-1); letter-spacing: -0.01em; }
.tr-feat-copy span { font-size: clamp(10.5px, 1.1vw, 12.5px); line-height: 1.45; color: var(--ink-2); max-width: 21ch; }
.tr-built {
  display: flex; align-items: center; gap: 16px;
  font-size: clamp(9.5px, 1vw, 11.5px); font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-3);
}
.tr-built-line { width: clamp(28px, 4vw, 56px); height: 1px; background: linear-gradient(90deg, transparent, rgba(63, 224, 165, 0.5)); }
.tr-built-line:last-child { background: linear-gradient(90deg, rgba(63, 224, 165, 0.5), transparent); }

/* ---------- Story panel — aurora video with see-through copy ---------- */
.tr-story {
  position: relative; overflow: hidden;
  max-width: 74rem; margin: 0 auto;
  margin-left: clamp(12px, 2vw, 24px); margin-right: clamp(12px, 2vw, 24px);
  min-height: min(92svh, 860px);
  padding: clamp(24px, 4vw, 48px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 24px;
  background: #05070a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (min-width: 74rem) { .tr-story { margin-left: auto; margin-right: auto; } }
.tr-story.in { opacity: 1; transform: translateY(0); }
.tr { padding-bottom: clamp(48px, 7vw, 96px); }

.tr-story-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}

/* See-through copy — text sits directly over the video (no glass, no scrim);
   colours match the section below: sky-blue headings, white bold body. */
.tr-story-glass {
  position: relative; z-index: 2;
  width: min(100%, 36rem); margin: auto 0;
  padding: clamp(8px, 2vw, 20px);
  text-align: center;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.75), 0 1px 3px rgba(0, 0, 0, 0.6);
}
.tr-eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #bfdbfe; }
.tr-name { margin: 8px 0 0; font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 700; letter-spacing: -0.03em; color: #bfdbfe; line-height: 1; }
.tr-accent { color: #bfdbfe; }
.tr-story-glass p.tr-sub2 { margin: 12px 0 6px; font-size: clamp(1rem, 1.5vw, 1.2rem); font-weight: 600; color: #fff; }
.tr-story-glass > p { margin: 16px 0 0; font-size: 15px; line-height: 1.65; font-weight: 600; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  /* Keep the complete 21st.dev scroll choreography on phones. svh makes the
     journey length stable when Instagram/Safari hides or reveals browser UI. */
  .tr-scroll { height: 300svh; }
  .tr-stage { flex-direction: column; justify-content: center; gap: 2.4svh; padding: calc(var(--nav-h) + 8px) 18px 14px; touch-action: pan-y; }
  .tr-bg, .tr-below { position: absolute; }
  .tr-side { position: static; width: min(88vw, 30rem); text-align: center; font-size: clamp(1.05rem, 4.6vw, 1.3rem); }
  .tr-card { height: min(46svh, 52vw); transform: translateY(0) scale(0.72); touch-action: pan-y; }
  .tr-below { position: static; bottom: auto; gap: 1.8svh; }
  .tr-feats { display: none; }           /* bullets don't fit a phone stage */
  .tr-built { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tr-story { transition: none; opacity: 1; transform: none; }
  .tr-thumb { transition: none; }
}
