/* =====================================================================
   Agmova — website design & redesign studio
   Brand: Earth #1A1A17 · Depth #0B0F13 · Momentum #FF6A3D · Clarity #F4F1E9
   ===================================================================== */

:root {
  --earth: #1a1a17;
  --depth: #0b0f13;
  --momentum: #ff6a3d;
  --clarity: #f4f1e9;

  --bg: var(--clarity);
  --bg-2: #ebe7dc;
  --fg: var(--earth);
  --fg-muted: #5f5c54;
  --fg-subtle: #8f8b80;
  --line: rgba(26, 26, 23, 0.12);
  --line-2: rgba(26, 26, 23, 0.22);

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-brand: "Comfortaa", var(--font-sans);

  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --container: 1240px;
  --gutter: 32px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--momentum); color: var(--clarity); }

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }

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

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 8px 14px; border-radius: 8px; background: var(--earth); color: var(--clarity);
  transform: translateY(-200%); transition: transform 0.2s var(--ease);
}
.skip:focus { transform: none; }

:focus-visible { outline: 2px solid var(--momentum); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ------------------------------------------------------------ type kit --- */
.label {
  font: 500 11px/1.75 var(--font-sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(46px, 6.6vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.display em { font-style: italic; color: var(--fg-subtle); }
.dash { display: block; width: 32px; height: 3px; background: var(--momentum); }
.lede { font-size: 18px; line-height: 1.6; color: var(--fg-muted); max-width: 520px; text-wrap: pretty; }

/* ------------------------------------------------------------- actions --- */
/* Purely typographic: the label, a hairline beneath it, and a fine arrow.
   On hover the hairline fills from left to right and the arrow draws forward. */
.act {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--earth); font: 400 16px/1 var(--font-sans); letter-spacing: 0.005em; white-space: nowrap;
}
.act-label {
  position: relative; padding: 6px 0;
  background:
    linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat,
    linear-gradient(color-mix(in srgb, currentColor 22%, transparent), color-mix(in srgb, currentColor 22%, transparent)) left bottom / 100% 1px no-repeat;
  transition: background-size 0.6s var(--ease);
}
.act:hover .act-label, .act:focus-visible .act-label { background-size: 100% 1px, 100% 1px; }
.act-arrow {
  width: 26px; height: 12px; flex: none; color: var(--momentum); overflow: visible;
  transition: transform 0.6s var(--ease);
}
.act:hover .act-arrow, .act:focus-visible .act-arrow { transform: translateX(6px); }
.act:focus-visible { outline: none; }
.act--sm { gap: 9px; font-size: 14px; }
.act--sm .act-label { padding: 4px 0; }
.act--sm .act-arrow { width: 20px; }
.act--send { gap: 16px; font-family: var(--font-serif); font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -0.015em; }
.act--send .act-arrow { width: 36px; height: 14px; }

.act-link {
  padding: 6px 0; color: var(--earth); opacity: 0.66;
  font: 400 16px/1 var(--font-sans); letter-spacing: 0.005em;
  transition: opacity 0.3s var(--ease);
}
.act-link:hover { opacity: 1; }

/* ----------------------------------------------------------------- nav --- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.is-scrolled, .nav.is-open {
  background: rgba(244, 241, 233, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 40px;
  height: 68px; max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto; padding: 0 var(--gutter);
}
.brand { display: inline-flex; align-items: flex-end; gap: 0.16em; font-size: 22px; color: var(--earth); }
.brand-mark { width: 0.876em; height: 1em; fill: currentColor; flex: none; }
.brand-word {
  font: 700 0.86em/1 var(--font-brand); letter-spacing: -0.01em;
  -webkit-text-stroke: 0.045em currentColor;
  transform: translateY(-0.08em);
}
.nav-links { display: flex; gap: 2px; margin-right: auto; }
.nav-links a {
  padding: 6px 12px; border-radius: 999px;
  font-size: 14px; color: var(--earth); opacity: 0.72;
  transition: opacity 0.2s, background-color 0.2s;
}
.nav-links a:hover { opacity: 1; background: rgba(26, 26, 23, 0.06); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; position: relative; width: 38px; height: 38px; margin-left: 4px;
  border: 1px solid var(--line-2); border-radius: 999px; background: transparent; cursor: pointer;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--earth);
  transition: transform 0.3s var(--ease);
}
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 21px; }
.nav.is-open .nav-toggle span:first-child { transform: translateY(3px) rotate(45deg); }
.nav.is-open .nav-toggle span:last-child { transform: translateY(-3px) rotate(-45deg); }
.mobile-menu { display: grid; padding: 8px var(--gutter) 20px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--font-serif); font-size: 24px; }

/* ---------------------------------------------------------------- hero --- */
.hero {
  position: relative; isolation: isolate;
  /* taller than the screen: the lower part of the scene (where the clouds
     rise) scrolls into view as the sequence plays */
  min-height: 125vh; min-height: 125svh;
  display: flex; flex-direction: column;
  padding: 68px 0 56px;
  overflow: hidden;
  touch-action: pan-y;
  background: #b9c2c9;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }

.hero-inner {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-top: clamp(40px, 13vh, 150px);
}
.hero-logo-slot {
  width: min(300px, 70%);
  height: clamp(48px, 7vh, 64px);
}
.hero-title {
  margin-top: clamp(16px, 3vh, 28px);
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(40px, 5.4vw, 76px); line-height: 1; letter-spacing: -0.03em;
  color: var(--earth);
  text-wrap: balance;
}
.hero-title em { font-style: italic; color: var(--momentum); }
.hero-sub {
  max-width: 560px; margin-top: 18px;
  font-size: clamp(16px, 1.35vw, 18px); line-height: 1.55; color: #2f2e2a;
  text-wrap: balance;
}
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 44px; margin-top: 32px; }
.hero-proof { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: 500; color: #2f2e2a; }
.hero-proof li { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof svg { width: 16px; height: 16px; color: var(--momentum); flex: none; }
.hero-proof b { color: var(--earth); }
.hero-proof .sep { margin: 0 4px; opacity: 0.5; }
.stars { color: var(--momentum); letter-spacing: 0.1em; }
.avatars { display: inline-flex; }
.avatars i {
  display: grid; place-items: center; width: 28px; height: 28px; margin-left: -8px;
  border-radius: 50%; border: 2px solid var(--clarity);
  background: #d9d3c4; color: var(--earth); font: 600 9px/1 var(--font-sans); font-style: normal; letter-spacing: 0.02em;
}
.avatars i:first-child { margin-left: 0; }
.avatars i:nth-child(2) { background: #c7cfd3; }
.avatars i:nth-child(3) { background: #e8c8b8; }
.avatars i:nth-child(4) { background: var(--earth); color: var(--clarity); }
.hero-sub, .hero-proof { text-shadow: 0 0 14px rgba(244, 241, 233, 0.9), 0 0 4px rgba(244, 241, 233, 0.8); }


/* ---------------------------------------------------------- atmosphere --- */
/* The hero's sky, mist and dot texture carried down the page. */
:root {
  --mist-sky: rgba(176, 192, 202, 0.42);
  --mist-sun: rgba(246, 196, 128, 0.3);
  --ink-dot: rgba(26, 26, 23, 0.2);
}
.mist {
  position: relative; isolation: isolate;
  background:
    radial-gradient(70% 55% at 8% 30%, var(--mist-sky), transparent 70%),
    radial-gradient(55% 50% at 94% 92%, var(--mist-sun), transparent 72%),
    var(--bg);
}
.mist-b {
  background:
    radial-gradient(60% 50% at 92% 8%, var(--mist-sun), transparent 70%),
    radial-gradient(70% 55% at 4% 96%, var(--mist-sky), transparent 70%),
    var(--bg);
}
.dotfield {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, var(--ink-dot) 1.1px, transparent 1.7px);
  background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(55% 60% at 86% 22%, #000 0%, transparent 72%);
          mask-image: radial-gradient(55% 60% at 86% 22%, #000 0%, transparent 72%);
}
.mist-b .dotfield {
  -webkit-mask-image: radial-gradient(55% 60% at 12% 78%, #000 0%, transparent 72%);
          mask-image: radial-gradient(55% 60% at 12% 78%, #000 0%, transparent 72%);
}

/* ------------------------------------------------------------ sections --- */
.section { padding: clamp(110px, 12vw, 180px) 0; }
.section-head { margin-bottom: clamp(56px, 7vw, 96px); }
.section-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; flex-wrap: wrap; }
.section-head.center { max-width: 920px; margin-inline: auto; text-align: center; }
.section-head.center .lede { margin: 28px auto 0; }
.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; color: var(--fg-muted); }
.eyebrow .dash { width: 22px; height: 2px; }
.eyebrow-center { justify-content: center; }
.display em { color: var(--momentum); }

/* ----------------------------------------------------------- statement --- */
.statement { padding: clamp(150px, 20vw, 300px) 0; }
.statement-text {
  max-width: 1180px; margin: 0 auto; text-align: center;
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(36px, 5.4vw, 84px); line-height: 1.06; letter-spacing: -0.03em;
  text-wrap: balance; color: var(--earth);
}
.statement-text em { font-style: italic; color: var(--momentum); }
.js .statement-text .w { opacity: 0.12; transition: opacity 0.45s var(--ease); }
.js .statement-text .w.on { opacity: 1; }

/* ------------------------------------------------------- work: gallery --- */
.gallery { position: relative; background: var(--bg); color: var(--earth); }
.gallery-sticky {
  position: relative; isolation: isolate; padding: clamp(110px, 12vw, 170px) 0; overflow: hidden;
  background:
    radial-gradient(60% 55% at 90% 10%, var(--mist-sun), transparent 70%),
    radial-gradient(65% 60% at 6% 92%, var(--mist-sky), transparent 70%),
    var(--bg);
}
.gallery .stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.gallery-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.gallery .display { font-size: clamp(44px, 5.6vw, 88px); }
.gallery .display em { color: var(--fg-subtle); }
.gallery-count { display: none; color: var(--fg-subtle); }
.gallery-count b { color: var(--earth); font-weight: 500; }

.gallery-track {
  display: grid; gap: 64px; list-style: none; margin: 64px auto 0; padding: 0 var(--gutter);
  max-width: calc(var(--container) + var(--gutter) * 2);
}
.slide { transition: opacity 0.6s var(--ease); }
.slide-link { display: block; }
.slide-frame {
  display: block;
  box-shadow: 0 50px 100px -50px rgba(26, 26, 23, 0.5), 0 0 0 1px rgba(26, 26, 23, 0.04);
  transition: transform 0.8s var(--ease), box-shadow 0.8s var(--ease);
}
.slide-link:hover .slide-frame { transform: translateY(-8px) scale(1.01); }
.slide-link:focus-visible { outline: none; }
.slide-link:focus-visible .slide-frame { box-shadow: 0 0 0 2px var(--momentum), 0 50px 100px -50px rgba(26, 26, 23, 0.5); }
.frame-bar > span { display: block; }
.slide-meta { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; margin-top: 22px; }
.slide-name { font-family: var(--font-serif); font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -0.015em; }
.slide-goal { margin-left: auto; font-size: 14px; color: var(--fg-muted); text-align: right; }
.slide-goal::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 10px; border-radius: 50%; background: var(--momentum); vertical-align: middle; }
.gallery-foot { display: flex; align-items: center; gap: 32px; margin-top: 48px; }
.gallery-progress { display: none; position: relative; flex: 1; height: 1px; background: var(--line-2); }
.gallery-progress i { position: absolute; inset: 0; background: var(--momentum); transform-origin: left; transform: scaleX(0); }
.gallery-note { font-size: 13px; color: var(--fg-subtle); }

.gallery.is-h .gallery-sticky {
  position: sticky; top: 0; height: 100vh; min-height: 620px;
  display: flex; flex-direction: column; justify-content: center;
  padding: 84px 0 32px;
}
.gallery.is-h .gallery-count { display: block; }
.gallery.is-h .display { font-size: clamp(40px, 4.4vw, 68px); }
.gallery.is-h .gallery-track {
  display: flex; width: max-content; max-width: none; margin: clamp(24px, 4vh, 44px) 0 0;
  gap: clamp(40px, 5vw, 88px);
  padding: 0 max(var(--gutter), calc((100vw - var(--container)) / 2));
  will-change: transform;
}
.gallery.is-h .slide { width: min(64vw, 1040px, calc((100vh - 370px) * 1.6)); opacity: 0.45; }
.gallery.is-h .slide.is-active { opacity: 1; }
.gallery.is-h .gallery-progress { display: block; }
.gallery.is-h .gallery-foot { margin-top: clamp(20px, 3.5vh, 40px); }

/* "View" label that trails the cursor over slides (fine pointers only) */
.view-cursor {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px 0 13px; border-radius: 999px;
  background: rgba(250, 248, 243, 0.62); color: var(--earth);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 10px 24px -14px rgba(26, 26, 23, 0.45);
  font-size: 12px; font-weight: 500; letter-spacing: 0.02em; white-space: nowrap;
  opacity: 0; transform: translate3d(var(--x, -200px), var(--y, -200px), 0) translate(16px, 14px) scale(0.92);
  transition: opacity 0.25s var(--ease), transform 0.3s var(--ease);
}
.view-cursor svg { width: 11px; height: 11px; color: var(--momentum); }
.view-cursor.is-on { opacity: 1; transform: translate3d(var(--x), var(--y), 0) translate(16px, 14px); }
[data-theme="dark"] .view-cursor { background: rgba(16, 32, 56, 0.6); border-color: rgba(190, 210, 240, 0.16); color: var(--earth); box-shadow: 0 10px 24px -14px rgba(2, 8, 20, 0.7); }

/* ---------------------------------------------------------- LED board --- */
.board-section {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(120px, 14vw, 200px) 0;
  background: var(--bg); color: var(--earth);
  --led-off: rgba(26, 26, 23, 0.085);
  --led-glow: rgba(255, 106, 61, 0.4);
}
.board-section::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(55% 45% at 50% 30%, rgba(255, 106, 61, 0.07), transparent 70%);
}
.board-title {
  display: grid; gap: 18px; justify-items: center; text-align: center;
  font-family: var(--font-serif); font-weight: 400; font-size: clamp(34px, 3.6vw, 52px); letter-spacing: -0.02em;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.board-title .label { font-family: var(--font-sans); font-size: 11px; color: var(--fg-muted); }
.board {
  list-style: none; margin: 0 auto; padding: clamp(18px, 2.5vw, 34px);
  max-width: 1060px; border-radius: 22px;
  background: linear-gradient(180deg, #ece7db, #e5e0d3);
  border: 1px solid rgba(26, 26, 23, 0.07);
  box-shadow: inset 0 2px 8px rgba(26, 26, 23, 0.07), inset 0 -1px 0 rgba(255, 255, 255, 0.6), 0 50px 100px -60px rgba(26, 26, 23, 0.45);
}
.board-row {
  display: grid; grid-template-columns: 44px auto 1fr; align-items: center; gap: clamp(18px, 3vw, 40px);
  padding: clamp(14px, 2vw, 22px) clamp(8px, 1.5vw, 18px);
}
.board-row + .board-row { border-top: 1px solid var(--line); }
.board-n { font: 13px var(--font-mono); color: var(--momentum); }
.led { display: block; }
.board-text { font-size: clamp(14px, 1.25vw, 17px); color: var(--fg-muted); text-align: right; }
.board-foot { margin-top: 40px; text-align: center; font-family: var(--font-serif); font-size: clamp(20px, 1.8vw, 24px); color: var(--fg-muted); }

/* -------------------------------------------------------------- finale --- */

/* ---------------------------------------------------------------- frame --- */
.frame {
  border-radius: 12px; overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px -34px rgba(26, 26, 23, 0.35);
}
.frame-bar {
  display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  background: #f7f5ef; border-bottom: 1px solid var(--line);
}
.frame-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d9d4c7; }
.frame-bar span {
  margin: 0 auto; transform: translateX(-20px);
  padding: 3px 14px; border-radius: 6px; background: #ece8de;
  font: 11px/1.4 var(--font-mono); color: var(--fg-muted);
}
.shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; background: #1a1f25; }

/* -------------------------------------------------------------- finale --- */
.finale {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(120px, 13vw, 190px) 0 calc(clamp(220px, 24vw, 340px) + var(--foot-h, 0px));
  background: #b9c2c9; color: var(--earth);
}
.finale-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.finale-inner { text-align: center; }
.finale-title { text-wrap: balance; }
.finale .display { font-size: clamp(48px, 6vw, 92px); }
/* ---------------------------------------------------------------- form --- */
/* The brief is one sentence written on the sky: serif prose with underlined
   blanks to fill in, rather than a boxed form. */
.madlib { position: relative; max-width: 1040px; margin: clamp(40px, 6vw, 72px) auto 0; text-align: center; }
.madlib-text {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(24px, 2.7vw, 40px); line-height: 1.6; letter-spacing: -0.015em;
  color: var(--earth); text-wrap: balance;
}
.slot { position: relative; display: inline-block; vertical-align: baseline; }
.blank {
  font: inherit; letter-spacing: inherit; color: var(--momentum);
  background: none; border: 0; border-radius: 0; padding: 0 2px; margin: 0;
  border-bottom: 1.5px solid currentColor;
  padding-right: 0.06em;
  -webkit-appearance: none; appearance: none;
  min-width: 3ch; max-width: 70vw;
  transition: border-color 0.25s, color 0.25s;
}
input.blank { field-sizing: content; }
@supports not (field-sizing: content) { input.blank { width: 7ch; } }
.blank::placeholder { color: color-mix(in srgb, var(--earth) 36%, transparent); }
.blank:focus { outline: none; border-bottom-color: var(--momentum); }
.blank:focus::placeholder { color: color-mix(in srgb, var(--earth) 22%, transparent); }
input.blank:placeholder-shown:not(:focus) { border-bottom-color: color-mix(in srgb, var(--earth) 30%, transparent); }
.blank[aria-invalid="true"] { border-bottom-color: #d6452a; }
.blank[aria-invalid="true"]::placeholder { color: #d6452a; }
.blank:-webkit-autofill { -webkit-text-fill-color: var(--momentum); transition: background-color 9999s; }

.pick-btn { display: inline-flex; align-items: baseline; gap: 0.18em; cursor: pointer; font-style: italic; }
.pick-btn svg { width: 0.42em; height: 0.42em; align-self: center; transition: transform 0.3s var(--ease); }
.pick-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.pick-btn:focus-visible { outline: 2px solid var(--momentum); outline-offset: 4px; border-radius: 4px; }
.pick-list {
  position: absolute; left: 50%; top: calc(100% + 10px); z-index: 5;
  min-width: 240px; margin: 0; padding: 6px; list-style: none; text-align: left;
  transform: translateX(-50%);
  border-radius: 16px;
  background: rgba(250, 248, 243, 0.72); border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 30px 60px -30px rgba(26, 26, 23, 0.45);
  font-family: var(--font-sans); font-size: 15px; line-height: 1.3; letter-spacing: 0;
  animation: pickIn 0.25s var(--ease);
}
.pick-list[hidden] { display: none; }
.pick-list:focus { outline: none; }
@keyframes pickIn { from { opacity: 0; transform: translate(-50%, -6px); } }
.pick-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 14px; border-radius: 10px; cursor: pointer; color: var(--earth); }
.pick-list li:hover, .pick-list li.is-active { background: rgba(26, 26, 23, 0.06); }
.pick-list li[aria-selected="true"] { color: var(--momentum); }
.pick-list li[aria-selected="true"]::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--momentum); }

.madlib-foot { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: clamp(28px, 4vw, 44px); }
.madlib-note { font-size: 14px; color: #3c3a35; }
.madlib .rf-error { margin-top: 14px; font-size: 14px; color: #c23a20; }
.madlib-done { outline: none; }
.madlib-done[hidden], .madlib-body[hidden] { display: none; }
.madlib-done em { color: var(--momentum); }
.madlib-text, .madlib-note, .finale-title { text-shadow: 0 0 24px rgba(244, 241, 233, 0.85), 0 0 8px rgba(244, 241, 233, 0.6); }

[data-theme="dark"] .madlib-note { color: #c7cfdc; }
[data-theme="dark"] .madlib-text, [data-theme="dark"] .madlib-note, [data-theme="dark"] .finale-title { text-shadow: 0 0 24px rgba(10, 22, 40, 0.9), 0 0 8px rgba(10, 22, 40, 0.7); }
[data-theme="dark"] .pick-list { background: rgba(16, 32, 56, 0.78); border-color: rgba(190, 210, 240, 0.14); box-shadow: 0 30px 60px -30px rgba(2, 8, 20, 0.8); }
[data-theme="dark"] .pick-list li:hover, [data-theme="dark"] .pick-list li.is-active { background: rgba(214, 226, 245, 0.08); }
[data-theme="dark"] .madlib .rf-error { color: #ff8a63; }

/* ----------------------------------------------------------- sticky cta --- */
.sticky-cta {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: none; align-items: center; gap: 10px;
  height: 44px; padding: 0 18px; border-radius: 999px;
  background: rgba(250, 248, 243, 0.66); color: var(--earth);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  font-size: 14px; letter-spacing: 0.005em;
  box-shadow: 0 12px 30px -16px rgba(26, 26, 23, 0.45);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}
.sticky-cta.is-on { opacity: 1; transform: none; pointer-events: auto; }
.sticky-cta .act-arrow { width: 20px; transition: transform 0.5s var(--ease); }
.sticky-cta:active .act-arrow { transform: translateX(4px); }
[data-theme="dark"] .sticky-cta { background: rgba(16, 32, 56, 0.62); border-color: rgba(190, 210, 240, 0.16); box-shadow: 0 12px 30px -16px rgba(2, 8, 20, 0.7); }

/* -------------------------------------------------------------- footer --- */
/* The footer sits on the bottom of the finale's mountain scene: the finale
   reserves --foot-h of space and the footer is pulled up into it. */
.footer {
  position: relative; z-index: 1;
  margin-top: calc(-1 * var(--foot-h, 0px));
  padding: 40px 0 28px; color: var(--earth);
}
.footer-top {
  display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap;
  padding-bottom: 26px; border-bottom: 1px solid var(--line-2);
}
.footer-brand { font-size: 26px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-links a { font-size: 15px; opacity: 0.78; transition: opacity 0.2s, color 0.2s; }
.footer-links a:hover { opacity: 1; color: var(--momentum); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 20px; }
.footer-bottom .label { color: var(--fg-muted); }

/* -------------------------------------------------------------- theme --- */
.theme-toggle {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--earth); cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.theme-toggle:hover { border-color: var(--earth); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* Dark: the night photo's palette. Navy base taken from its sky and rock
   (#0a203f / #0c1c30), moonlit cream for text, cool hairlines. The brand pair is
   swapped so every earth-on-clarity element inverts. */
[data-theme="dark"] {
  color-scheme: dark;
  --earth: #f4f1e9;
  --clarity: #0a1628;
  --bg: #0a1628;
  --bg-2: #0e1c32;
  --fg: #f4f1e9;
  --fg-muted: #a3adbe;
  --fg-subtle: #66728b;
  --line: rgba(190, 210, 240, 0.1);
  --line-2: rgba(190, 210, 240, 0.18);
  --mist-sky: rgba(60, 100, 160, 0.28);
  --mist-sun: rgba(150, 180, 225, 0.12);
  --ink-dot: rgba(214, 226, 245, 0.13);
}
[data-theme="dark"] .nav.is-scrolled, [data-theme="dark"] .nav.is-open { background: rgba(10, 22, 40, 0.78); }
[data-theme="dark"] .hero, [data-theme="dark"] .finale { background: #0f2340; }
[data-theme="dark"] .hero-sub, [data-theme="dark"] .hero-proof { color: #d6dbe4; }
[data-theme="dark"] .hero-sub, [data-theme="dark"] .hero-proof { text-shadow: 0 0 18px rgba(10, 22, 40, 0.85), 0 0 5px rgba(10, 22, 40, 0.7); }
[data-theme="dark"] .frame { background: #0f1d33; border-color: rgba(190, 210, 240, 0.1); }
[data-theme="dark"] .frame-bar { background: #13233c; border-bottom-color: rgba(190, 210, 240, 0.08); }
[data-theme="dark"] .frame-bar i { background: rgba(214, 226, 245, 0.18); }
[data-theme="dark"] .frame-bar span { background: rgba(214, 226, 245, 0.07); color: rgba(214, 226, 245, 0.55); }
[data-theme="dark"] .slide-frame { box-shadow: 0 60px 120px -50px rgba(2, 8, 20, 0.85), 0 0 0 1px rgba(190, 210, 240, 0.06); }
[data-theme="dark"] .board-section { --led-off: rgba(214, 226, 245, 0.08); --led-glow: rgba(255, 106, 61, 0.7); }
[data-theme="dark"] .board-section::before { background: radial-gradient(55% 45% at 50% 30%, rgba(90, 130, 200, 0.12), transparent 70%); }
[data-theme="dark"] .board {
  background: linear-gradient(180deg, #0d1b31, #091424);
  border-color: rgba(190, 210, 240, 0.08);
  box-shadow: inset 0 1px 0 rgba(214, 226, 245, 0.06), 0 40px 120px -40px rgba(2, 8, 20, 0.9);
}

/* -------------------------------------------------------------- reveal --- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ----------------------------------------------------------- responsive --- */
@media (max-width: 1080px) {
}

@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .nav-toggle { display: block; }
  .sticky-cta { display: flex; }
}

@media (max-width: 640px) {
  .board-row { grid-template-columns: 1fr; gap: 10px; }
  .board-n { display: none; }
  .board-text { text-align: left; }
  :root { --gutter: 18px; }
  .nav-actions .act { display: none; }
  .br-lg { display: none; }
  .hero-logo-slot { width: 64px; height: 72px; }
  .hero-inner { padding-top: 32px; }
  .hero-proof { font-size: 13px; }
  .finale { padding-bottom: calc(180px + var(--foot-h, 0px)); }
  .footer-links { gap: 6px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .statement-text .w { opacity: 1; }
}

/* actions sitting on the photo scenes get the same soft halo as the copy */
.hero .act-label, .hero .act-link, .finale .act-label { text-shadow: 0 0 16px rgba(244, 241, 233, 0.9), 0 0 5px rgba(244, 241, 233, 0.75); }
[data-theme="dark"] .hero .act-label, [data-theme="dark"] .hero .act-link, [data-theme="dark"] .finale .act-label { text-shadow: 0 0 16px rgba(10, 22, 40, 0.9), 0 0 5px rgba(10, 22, 40, 0.75); }
