/* ==========================================================================
   Phos Interactive
   The page starts in darkness; light spreads as you scroll.
   ========================================================================== */

:root {
  --navy: #0F1A2B;
  --navy-2: #13213A;
  --navy-3: #1A2944;
  --gold: #F4B942;
  --gold-soft: #F9D58A;
  --gold-deep: #E8962A;
  --cream: #FFF8EC;
  --sand: #F7EAD6;

  /* Text on dark: all pass WCAG AA (most AAA) against every navy above */
  --on-dark: #C5CEDC;
  --on-dark-strong: #F6F1E7;
  --on-dark-muted: #9AA6BA;
  /* Text on light */
  --ink: #0F1A2B;
  --ink-muted: #46536A;

  /* Marcellus: flared, monoline wedge serifs that echo the PHOS logo. Single weight, so never bold it. */
  --display: "Marcellus", "Optima", "Candara", Georgia, serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --gutter: clamp(1rem, 5vw, 4rem);
  --max: 1180px;
  --radius: 22px;

  /* Scroll progress 0 → 1, written by script.js */
  --p: 0;
}

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

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

body {
  margin: 0;
  background: var(--navy);
  color: var(--on-dark);
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--gold); color: var(--navy); }

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

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

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: .7rem 1rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

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

/* ---------- Type ---------- */

.eyebrow {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1.1rem;
}

h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 1.35rem + 4.4vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: .005em;
  color: var(--on-dark-strong);
  text-wrap: balance;
}

.section-head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head--light .eyebrow { color: #8A5A12; } /* deep amber, 5.6:1 on sand */
.section-head--light h2 { color: var(--ink); }

/* ==========================================================================
   Light layers
   ========================================================================== */

/* The flame's light: grows from a small glow into a wash as you scroll,
   then fades once the page is lit by its own colours. */
.sky {
  position: fixed;
  left: 50%; top: 42%;
  width: 160vmax; height: 160vmax;
  border-radius: 50%;
  pointer-events: none;
  z-index: 40;
  mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(244, 185, 66, .22) 0%, rgba(244, 185, 66, .08) 30%, rgba(244, 185, 66, 0) 62%);
  transform: translate(-50%, calc(-50% + var(--p) * 22vh)) scale(calc(.12 + var(--p) * 1.4));
  opacity: calc(1 - var(--p) * 1.25);
  will-change: transform, opacity;
}

/* Cursor lantern (desktop) / touch or drifting glow (mobile). Screen blending
   only ever brightens, so text underneath stays readable. */
.lantern {
  position: fixed;
  left: 0; top: 0;
  width: 560px; height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 41;
  mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(249, 213, 138, .26) 0%, rgba(244, 185, 66, .10) 32%, rgba(244, 185, 66, 0) 66%);
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  will-change: transform;
}
.lantern.is-on { opacity: calc(1 - var(--p) * 1.3); }

@media (max-width: 640px) {
  .lantern { width: 380px; height: 380px; margin: -190px 0 0 -190px; }
}

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

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter) 14px;
  color: var(--on-dark-strong);
  transition: color .8s var(--ease), background-color .8s var(--ease), opacity 1s var(--ease), transform 1s var(--ease);
}
.nav.is-scrolled {
  background: rgba(15, 26, 43, .72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.nav.is-light {
  color: var(--ink);
  background: rgba(255, 248, 236, .82);
}

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

.logo-mark { fill: currentColor; height: 1em; width: auto; aspect-ratio: 1876 / 496; overflow: visible; }
.logo-mark__flame { fill: var(--gold); }

.nav__logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-size: 20px;
}
.nav__logo .logo-mark__flame { filter: drop-shadow(0 0 30px rgba(244, 185, 66, .9)); }
.nav.is-light .nav__logo .logo-mark__flame { fill: var(--gold-deep); filter: none; }

.nav__links { display: flex; align-items: center; gap: clamp(.8rem, 2.4vw, 2rem); font-size: .9rem; font-weight: 500; }
.nav__links a { text-decoration: none; opacity: .86; transition: opacity .3s; }
.nav__links a:hover { opacity: 1; }
.nav__links li:not(:last-child) { display: none; }
@media (min-width: 720px) { .nav__links li:not(:last-child) { display: block; } }

.nav__cta {
  padding: .5rem 1rem;
  border: 1px solid rgba(244, 185, 66, .6);
  border-radius: 999px;
  opacity: 1 !important;
}
.nav__cta:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.nav.is-light .nav__cta { border-color: var(--ink); }
.nav.is-light .nav__cta:hover { border-color: var(--gold); }

/* Nav waits in the dark until the flame is lit */
.js .nav { opacity: 0; transform: translateY(-8px); animation: fade-down 1.6s var(--ease) 3.4s forwards; }

/* ==========================================================================
   1. Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 6rem var(--gutter) 7rem;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy);
}

.hero__inner { position: relative; text-align: center; display: grid; justify-items: center; }

/* Glow and rays are centred on the flame inside the O of the logo */
.hero__glow {
  position: absolute;
  left: 62.8%; top: 57.7%;
  width: min(120vw, 1100px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 185, 66, .28) 0%, rgba(244, 185, 66, .10) 22%, rgba(244, 185, 66, .03) 42%, transparent 62%);
  z-index: -1;
  animation: breathe 7s ease-in-out infinite;
}

.hero__rays {
  position: absolute;
  left: 62.8%; top: 57.7%;
  width: 180vmax; height: 180vmax;
  transform: translate(-50%, -50%);
  z-index: -2;
  background: repeating-conic-gradient(from 0deg, rgba(244, 185, 66, .07) 0deg 2deg, transparent 2deg 15deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .5) 18%, transparent 42%);
  mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .5) 18%, transparent 42%);
  animation: spin 240s linear infinite;
  opacity: .9;
}

.hero__title { display: grid; justify-items: center; gap: clamp(.9rem, 2.4vw, 1.6rem); }

.wordmark {
  position: relative;
  display: block;
  width: min(84vw, 860px);
}
.wordmark__logo {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  fill: currentColor;
  color: var(--cream);
}
.wordmark__letter { filter: drop-shadow(0 0 22px rgba(244, 185, 66, .32)); }
.wordmark__flame {
  fill: var(--gold);
  transform-box: fill-box;
  transform-origin: 50% 90%;
  filter: drop-shadow(0 0 18px rgba(244, 185, 66, .95)) drop-shadow(0 0 70px rgba(244, 185, 66, .6));
  animation: flicker 4.5s ease-in-out infinite;
}

.wordmark__sub {
  font-family: var(--body);
  font-weight: 500;
  font-size: clamp(.75rem, .65rem + .5vw, 1rem);
  letter-spacing: .6em;
  margin-right: -.6em;
  text-transform: uppercase;
  color: var(--on-dark);
}

.hero__tagline {
  margin-top: clamp(1.6rem, 4vw, 2.4rem);
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.25rem, 1rem + 1.4vw, 2rem);
  color: var(--gold-soft);
  letter-spacing: .01em;
}

.hero__meta {
  margin-top: .8rem;
  font-size: .95rem;
  color: var(--on-dark-muted);
  max-width: 28ch;
}
@media (min-width: 560px) { .hero__meta { max-width: none; } }

.scroll-cue {
  position: absolute;
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  left: 0; right: 0;
  width: max-content;
  margin-inline: auto;
  display: grid;
  justify-items: center;
  gap: .7rem;
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--on-dark-muted);
  padding: .5rem;
}
.scroll-cue__line {
  position: relative;
  width: 1px; height: 44px;
  background: linear-gradient(rgba(197, 206, 220, .35), transparent);
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  left: -1px; top: -12px;
  width: 3px; height: 12px;
  border-radius: 2px;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: drip 2.8s var(--ease) infinite;
}

/* Lighting sequence (JS + motion only) */
.js .wordmark__flame { opacity: 0; animation: ignite 1.8s var(--ease) .3s forwards, flicker 4.5s ease-in-out 2.1s infinite; }
.js .hero__glow { opacity: 0; animation: glow-in 3.5s var(--ease) .6s forwards, breathe 7s ease-in-out 4.1s infinite; }
.js .hero__rays { opacity: 0; animation: rays-in 5s var(--ease) 1.4s forwards, spin 240s linear infinite; }
.js .wordmark__letter {
  color: #1C2840;
  filter: none;
  animation: letter-light 1.6s var(--ease) forwards;
  animation-delay: calc(1.3s + var(--i) * .38s);
}
.js .wordmark__sub,
.js .hero__tagline,
.js .hero__meta,
.js .scroll-cue { opacity: 0; animation: fade-up 1.6s var(--ease) forwards; }
.js .wordmark__sub { animation-delay: 2.9s; }
.js .hero__tagline { animation-delay: 3.3s; }
.js .hero__meta { animation-delay: 3.7s; }
.js .scroll-cue { animation-name: fade-in; animation-delay: 4.4s; }

/* ==========================================================================
   2. Games
   ========================================================================== */

.games {
  position: relative;
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 10vw, 7rem);
  background: linear-gradient(var(--navy), var(--navy-2));
}

.card {
  --cx: 50%;
  --cy: 30%;
  position: relative;
  display: grid;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(244, 185, 66, .10);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 1.8s var(--ease), box-shadow 1.8s var(--ease), background-color 1.8s var(--ease);
}
/* Gold edge that lights along the top */
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transform: scaleX(.2);
  transition: opacity 1.8s var(--ease), transform 2.2s var(--ease);
}
/* Local spotlight following the pointer inside the card */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--cx) var(--cy), rgba(244, 185, 66, .10), transparent 60%);
  opacity: 0;
  transition: opacity .8s var(--ease);
}
.card:hover::after { opacity: 1; }

.card.is-lit {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(244, 185, 66, .55);
  box-shadow:
    0 0 0 1px rgba(244, 185, 66, .12),
    0 0 36px -8px rgba(244, 185, 66, .35),
    0 40px 90px -50px rgba(244, 185, 66, .45);
}
.card.is-lit::before { opacity: 1; transform: none; }

.card__art {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 6vw, 3.5rem) 1.5rem;
  background: radial-gradient(circle at 50% 45%, rgba(244, 185, 66, .14), transparent 65%);
}
.card__art svg,
.card__art .phone {
  filter: brightness(.38) saturate(.5);
  transition: filter 2s var(--ease) .2s, transform 2s var(--ease) .2s;
  transform: scale(.97);
}
.card.is-lit .card__art svg,
.card.is-lit .card__art .phone { filter: none; transform: none; }
.card.is-lit .card__art .phone svg { filter: none; transform: none; }

.card__art--wide { padding: 0; }
.card__art--wide svg { width: 100%; height: auto; }

.phone {
  width: min(62vw, 250px);
  aspect-ratio: 280 / 600;
  border-radius: 34px;
  padding: 7px;
  background: linear-gradient(160deg, #26344F, #0A111D);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.phone svg { width: 100%; height: 100%; border-radius: 28px; filter: none !important; transform: none !important; }

.card__body {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  display: grid;
  align-content: start;
  gap: 1rem;
}

.card__tag {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.card__tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.card__tag--soon { color: var(--on-dark-muted); }
.card__tag--soon .dot { background: transparent; border: 1px solid var(--gold); box-shadow: none; }

.card__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem);
  line-height: 1.05;
  color: var(--on-dark-strong);
}
.card--featured .card__title { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 3.8rem); }

.card__lede { font-size: 1.15em; font-weight: 500; color: var(--on-dark-strong); }

.card__facts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .25rem; }
.card__facts li {
  font-size: .82rem;
  padding: .3rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(197, 206, 220, .22);
  color: var(--on-dark);
}

.stores { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .75rem; }
.store {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-height: 52px;
  padding: .55rem 1.25rem .55rem 1rem;
  border-radius: 14px;
  text-decoration: none;
  color: var(--navy);
  background: var(--gold);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.1;
  transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .6s var(--ease), transform .6s var(--ease);
}
.store + .store { background: transparent; color: var(--on-dark-strong); box-shadow: inset 0 0 0 1px rgba(244, 185, 66, .6); }
.store svg { width: 22px; height: 22px; flex: none; }
.store small { display: block; font-size: .68rem; font-weight: 500; letter-spacing: .04em; opacity: .85; }
.store:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(244, 185, 66, .7); }
.store + .store:hover { background: var(--gold); color: var(--navy); box-shadow: 0 10px 30px -10px rgba(244, 185, 66, .7); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .7rem 1.4rem;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .6s var(--ease), transform .6s var(--ease);
}
.btn--ghost {
  justify-self: start;
  margin-top: .5rem;
  color: var(--on-dark-strong);
  box-shadow: inset 0 0 0 1px rgba(244, 185, 66, .55);
}
.btn--ghost:hover { background: var(--gold); color: var(--navy); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { box-shadow: 0 10px 30px -10px rgba(232, 150, 42, .9); transform: translateY(-1px); }

.card-grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); margin-top: clamp(1.25rem, 3vw, 2rem); }

@media (min-width: 860px) {
  .card--featured { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; }
  .card--featured .card__art { height: 100%; padding: 4rem 2rem; }
  .card--featured .card__body { padding: 3.5rem 3.5rem 3.5rem 1rem; }
  .card-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   3. About
   ========================================================================== */

.about {
  position: relative;
  padding-top: clamp(5rem, 12vw, 9rem);
  background: linear-gradient(var(--navy-2), var(--navy-3));
}

.about__inner { display: grid; gap: 0; }

.about__story {
  display: grid;
  gap: 1.6em;
  max-width: 44rem;
  font-size: clamp(1.15rem, 1rem + .8vw, 1.5rem);
  line-height: 1.6;
  color: var(--on-dark);
}
.about__story .line { display: block; }
@media (min-width: 900px) { .about__story { margin-left: 18%; } }

.pull {
  margin: clamp(4rem, 10vw, 7rem) 0 0;
  padding: 0;
  max-width: 24ch;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 1rem + 2.8vw, 3rem);
  line-height: 1.12;
  color: var(--on-dark-strong);
  text-wrap: balance;
}
.pull p::first-line { color: var(--gold-soft); }
@media (min-width: 900px) { .pull { margin-left: 18%; } }

/* The sunrise: a decorative band between night and day */
.dawn {
  --rise: 0;
  position: relative;
  height: clamp(320px, 70vh, 720px);
  margin-top: clamp(3rem, 8vw, 6rem);
  overflow: hidden;
  background: linear-gradient(
    var(--navy-3) 0%,
    #2B3352 22%,
    #5B4A60 42%,
    #A86F5C 60%,
    #E3A86E 76%,
    #F4D3A0 88%,
    var(--sand) 100%
  );
}
.dawn__sun {
  position: absolute;
  left: 50%; bottom: 0;
  width: min(140vw, 1200px); aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, calc(62% - var(--rise) * 22%));
  background: radial-gradient(circle, #FFF8EC 0%, rgba(255, 238, 200, .95) 9%, rgba(244, 185, 66, .55) 20%, rgba(244, 185, 66, 0) 50%);
}
.dawn__rays {
  position: absolute;
  left: 50%; bottom: -40%;
  width: 220vmax; height: 220vmax;
  transform: translate(-50%, 50%) rotate(calc(var(--rise) * 12deg));
  background: repeating-conic-gradient(from 0deg, rgba(255, 248, 236, .16) 0deg 1.5deg, transparent 1.5deg 9deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 38%);
  mask-image: radial-gradient(circle, #000 0%, transparent 38%);
  opacity: calc(.3 + var(--rise) * .7);
}

/* ==========================================================================
   4. Promise
   ========================================================================== */

.promise {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(5rem, 12vw, 9rem);
  background: linear-gradient(var(--sand), #FCF3E4);
  color: var(--ink-muted);
}

.principles { display: grid; gap: clamp(2.5rem, 5vw, 3rem); }
@media (min-width: 860px) { .principles { grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 4rem); } }

.principle { display: grid; align-content: start; gap: .9rem; }
.principle__icon {
  width: 56px; height: 56px;
  margin-bottom: .4rem;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.principle__icon .halo { fill: rgba(244, 185, 66, .32); stroke: none; transform-origin: center; }
.principle h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.8rem);
  line-height: 1.1;
  color: var(--ink);
}
.principle p { max-width: 34ch; }

/* ==========================================================================
   5. Contact / footer
   ========================================================================== */

.contact {
  position: relative;
  background: var(--cream);
  color: var(--ink-muted);
  padding: clamp(5rem, 12vw, 8rem) 0 calc(2rem + env(safe-area-inset-bottom));
  box-shadow: 0 -1px 0 rgba(15, 26, 43, .06);
}
.contact .eyebrow { color: #8A5A12; }
.contact h2 { color: var(--ink); font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem); }
.contact h3 {
  font-family: var(--body);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: .9rem;
}

.contact__grid { display: grid; gap: clamp(3.5rem, 8vw, 5rem); }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1.25fr 1fr; align-items: end; } }

.contact__lede { margin-top: 1.25rem; max-width: 40ch; }

.signup { margin-top: 2rem; max-width: 34rem; }
.signup label { display: block; font-weight: 700; font-size: .9rem; color: var(--ink); margin-bottom: .5rem; }
.signup__row { display: flex; flex-direction: column; gap: .6rem; }
@media (min-width: 480px) { .signup__row { flex-direction: row; } }
.signup input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: .75rem 1.15rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid rgba(15, 26, 43, .28);
  border-radius: 999px;
  transition: border-color .3s, box-shadow .3s;
}
.signup input::placeholder { color: #6B7588; }
.signup input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(244, 185, 66, .45); }
.signup input[aria-invalid="true"] { border-color: #B3261E; }
.signup .btn { min-height: 52px; padding-inline: 1.8rem; }
.signup__status { min-height: 1.6em; margin-top: .7rem; font-size: .92rem; color: var(--ink); }
.signup__status.is-error { color: #B3261E; }

.contact__info { display: grid; gap: 2.5rem; }
@media (min-width: 560px) and (max-width: 899px) { .contact__info { grid-template-columns: 1fr 1fr; } }
.contact__email {
  display: inline-block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.1rem, .95rem + .8vw, 1.45rem);
  color: var(--ink);
  text-decoration: none;
  margin-bottom: .6rem;
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 2px no-repeat;
  transition: background-size .5s var(--ease);
  word-break: break-word;
}
.contact__email:hover { background-size: 100% 40%; }

.socials { display: flex; flex-wrap: wrap; gap: .6rem; }
.socials a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .45rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 26, 43, .22);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: .92rem;
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
}
.socials a:hover { background: var(--gold); border-color: var(--gold); }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(4rem, 10vw, 6rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgba(15, 26, 43, .12);
  font-size: .85rem;
}
.footer__mark {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
}
.footer__mark .logo-mark__flame { fill: var(--gold-deep); }
.footer__mark span { font-size: .72rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; }

/* ==========================================================================
   Scroll reveals (only when JS is running)
   ========================================================================== */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.6s var(--ease), transform 1.6s var(--ease);
  transition-delay: calc(var(--d, 0) * .18s);
}
.js [data-reveal].is-lit { opacity: 1; transform: none; }

/* About: each line warms up as the light reaches it */
.js [data-line] {
  opacity: .12;
  filter: blur(2px);
  transform: translateY(10px);
  transition: opacity 1.8s var(--ease), filter 1.8s var(--ease), transform 1.8s var(--ease), text-shadow 2.4s var(--ease);
}
.js [data-line].is-lit {
  opacity: 1;
  filter: none;
  transform: none;
  text-shadow: 0 0 28px rgba(244, 185, 66, .22);
}
.js .pull.is-lit { text-shadow: 0 0 40px rgba(244, 185, 66, .3); }

.principle.is-lit .halo { animation: halo 2.4s var(--ease) both; animation-delay: calc(var(--d, 0) * .18s + .2s); }

/* ==========================================================================
   Keyframes
   ========================================================================== */

@keyframes ignite {
  0%   { opacity: 0; transform: scale(.4); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes flicker {
  0%, 100% { transform: scale(1, 1) skewX(0deg); }
  25%      { transform: scale(.97, 1.05) skewX(-2deg); }
  50%      { transform: scale(1.02, .97) skewX(1deg); }
  75%      { transform: scale(.99, 1.03) skewX(-.6deg); }
}
@keyframes breathe {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: .8; transform: translate(-50%, -50%) scale(1.06); }
}
@keyframes glow-in { from { opacity: 0; transform: translate(-50%, -50%) scale(.3); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes rays-in { to { opacity: .9; } }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes letter-light {
  0%   { color: #1C2840; filter: drop-shadow(0 0 0 rgba(244, 185, 66, 0)); }
  45%  { color: #FFE7B0; filter: drop-shadow(0 0 40px rgba(244, 185, 66, .85)); }
  100% { color: var(--cream); filter: drop-shadow(0 0 22px rgba(244, 185, 66, .32)); }
}
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes fade-down { to { opacity: 1; transform: none; } }
@keyframes drip { 0% { top: -12px; } 70%, 100% { top: 48px; } }
@keyframes halo { 0% { transform: scale(.2); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* ==========================================================================
   Reduced motion: the page arrives fully lit; only gentle fades remain.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .sky, .lantern, .hero__rays, .scroll-cue__line::after { display: none; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
  }

  /* Hero: everything lit at once, with a single soft fade */
  .js .wordmark__flame,
  .js .hero__glow,
  .js .wordmark__sub,
  .js .hero__tagline,
  .js .hero__meta,
  .js .scroll-cue,
  .js .nav {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
  .js .hero__glow { transform: translate(-50%, -50%); }
  .js .wordmark__letter { animation: none !important; color: var(--cream); filter: drop-shadow(0 0 22px rgba(244, 185, 66, .32)); }

  /* Reveals become plain fades, no movement or blur */
  .js [data-reveal],
  .js [data-line] {
    transform: none !important;
    filter: none !important;
    transition: opacity .8s ease-out !important;
  }
  .js [data-line] { opacity: 0; }

  .card .card__art svg,
  .card .card__art .phone { filter: none; transform: none; transition: none; }
  .card { border-color: rgba(244, 185, 66, .55); }
  .card::before { opacity: 1; transform: none; }

  .dawn { --rise: 1; }
}

/* Windows High Contrast / forced colours */
@media (forced-colors: active) {
  .sky, .lantern, .hero__rays, .hero__glow, .dawn { display: none; }
  .card { border: 1px solid CanvasText; }
}
