/* ==========================================================================
   Sklaer Forge Studio — main stylesheet
   Mobile-first. No framework, no build step.
   Sections:
     1. Fonts (self-hosted)        6. Hero
     2. Design tokens              7. Game section
     3. Base / reset               8. About
     4. Layout helpers & buttons   9. Contact & newsletter
     5. Header                    10. Footer, legal pages
                                  11. Motion (embers, reveal) + reduced motion
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------
   Both families are under the SIL Open Font License (see /assets/fonts).
   Latin subset only (covers English + French, including œ, «, », …).      */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/assets/fonts/atkinson-hyperlegible-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/assets/fonts/atkinson-hyperlegible-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Design tokens -------------------------------------------------------- */
:root {
  /* Palette (from the brief) */
  --charcoal: #14110f;      /* page background */
  --charcoal-2: #1c1815;    /* raised surfaces */
  --charcoal-3: #262019;    /* hover / inputs */
  --ember: #ff6a1a;         /* primary accent */
  --gold: #ffb347;          /* secondary accent, small highlights */
  --cream: #fff4e0;         /* main text */
  --cream-muted: #d8c8ae;   /* secondary text (≈ 11:1 on charcoal) */
  --line: rgb(255 244 224 / 0.11);
  --line-strong: rgb(255 244 224 / 0.22);

  /* Glow — kept deliberately faint */
  --glow-ember: rgb(255 106 26 / 0.16);
  --glow-gold: rgb(255 179 71 / 0.10);

  /* Type */
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font-body: "Atkinson Hyperlegible", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.94rem);
  --step-0: clamp(1.0625rem, 1.03rem + 0.15vw, 1.15rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.35rem + 1.1vw, 2.25rem);
  --step-3: clamp(2rem, 1.5rem + 2.4vw, 3.4rem);
  --step-4: clamp(2.5rem, 1.6rem + 4.2vw, 5rem);

  /* Space & shape */
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(4.5rem, 10vw, 8rem);
  --radius: 14px;
  --radius-sm: 8px;
  --max: 72rem;

  color-scheme: dark;
}

/* 3. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem; /* keeps anchored titles clear of the sticky header */
}
body {
  margin: 0;
  background: var(--charcoal);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
a { color: var(--gold); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--cream); }
ul { margin: 0; padding: 0; }

/* Visible, consistent keyboard focus */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.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: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--cream); color: var(--charcoal);
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.skip-link:focus { top: 1rem; color: var(--charcoal); }

/* 4. Layout helpers & buttons -------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); position: relative; }
.section + .section { border-top: 1px solid var(--line); }

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.lead { font-size: var(--step-1); color: var(--cream-muted); line-height: 1.5; }

/* Section title with a faint warm halo behind it */
.section-title {
  position: relative;
  font-size: var(--step-3);
  isolation: isolate;
}
.section-title::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -40% auto auto -6%;
  width: min(32rem, 90%);
  height: 180%;
  background: radial-gradient(closest-side, var(--glow-ember), transparent);
  pointer-events: none;
}
.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head .lead { margin-top: 1rem; }

.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;               /* comfortable touch target */
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--btn-bg);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.btn:hover { border-color: var(--gold); color: var(--cream); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn--primary {
  --btn-bg: var(--ember);
  border-color: var(--ember);
  color: var(--charcoal);
  box-shadow: 0 8px 28px -12px rgb(255 106 26 / 0.7);
}
.btn--primary:hover {
  --btn-bg: #ff7c33;
  border-color: #ff7c33;
  color: var(--charcoal);
  box-shadow: 0 10px 34px -10px rgb(255 106 26 / 0.85);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* 5. Header --------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgb(20 17 15 / 0.92);
}
.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "brand lang" "nav nav";
  align-items: center;
  gap: 0.25rem 1rem;
  padding-block: 0.6rem;
}
.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--cream); }
.brand img { width: 28px; height: 28px; }
.brand span { font-weight: 400; color: var(--cream-muted); }

.main-nav { grid-area: nav; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  margin-inline: -0.75rem;   /* align first link text with the brand */
}
.main-nav a, .lang-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.75rem;
  color: var(--cream-muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  border-radius: var(--radius-sm);
}
.main-nav a:hover, .lang-switch a:hover { color: var(--cream); background: var(--charcoal-2); }

.lang-switch {
  grid-area: lang;
  display: flex;
  align-items: center;
  list-style: none;
  font-size: 0.95rem;
}
.lang-switch li + li::before {
  content: "/";
  color: var(--line-strong);
}
.lang-switch li { display: flex; align-items: center; }
.lang-switch a { padding-inline: 0.55rem; }
.lang-switch a[aria-current="page"] { color: var(--gold); }

@media (min-width: 48rem) {
  .site-header {
    position: sticky;
    top: 0;
    background: rgb(20 17 15 / 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  .site-header__inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav lang";
    padding-block: 0.5rem;
  }
  .main-nav ul { justify-content: flex-end; margin-inline: 0; }
  .lang-switch { padding-left: 1rem; border-left: 1px solid var(--line); }
}

/* 6. Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 14vw, 10rem) clamp(5rem, 12vw, 9rem);
  isolation: isolate;
}
/* Forge mouth: a warm light rising from the bottom of the screen */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 -10%;
  z-index: -2;
  background:
    radial-gradient(55% 60% at 50% 115%, rgb(255 106 26 / 0.30), transparent 70%),
    radial-gradient(30% 35% at 50% 115%, rgb(255 179 71 / 0.20), transparent 70%);
  pointer-events: none;
}
/* A thin glowing seam closes the hero, like light under a forge door */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(255 179 71 / 0.55) 50%, transparent);
  pointer-events: none;
}
.hero__content { max-width: 50rem; }
.hero h1 { font-size: var(--step-4); }
.hero h1 .accent {
  color: var(--gold);
  /* very soft heat around the accent word */
  text-shadow: 0 0 32px rgb(255 140 40 / 0.25);
}
.hero .lead { margin-top: 1.5rem; max-width: 40rem; }
.hero .btn-row { margin-top: 2.25rem; }
.hero__meta {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  font-size: var(--step--1);
  color: var(--cream-muted);
}
.hero__meta li { display: flex; align-items: center; gap: 0.5rem; }
.hero__meta li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 8px var(--ember);
}

/* Embers: purely decorative, see section 11 for the motion */
.embers {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.embers span {
  position: absolute;
  bottom: -10px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px 1px rgb(255 140 40 / 0.7);
  opacity: 0;
}

/* 7. Game section --------------------------------------------------------- */
.game-intro {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.game-logo { width: min(100%, 420px); margin-bottom: 1.5rem; }
.game-logo img { width: 100%; height: auto; }
.game-intro__text p + p { margin-top: 1rem; }
.game-intro__text .btn-row { margin-top: 2rem; }
.game-tagline {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.35;
  color: var(--cream);
  margin-bottom: 1rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 2rem 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}
.facts div { background: var(--charcoal); padding: 0.85rem 1rem; }
.facts dt { font-size: var(--step--1); color: var(--cream-muted); }
.facts dd { margin: 0.1rem 0 0; font-family: var(--font-display); font-weight: 600; }

.media-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--charcoal-2);
  box-shadow: 0 30px 80px -40px rgb(255 106 26 / 0.45);
}
.media-frame img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.features {
  list-style: none;
  display: grid;
  gap: 1rem;
  margin-top: clamp(3.5rem, 7vw, 5rem);
}
.feature {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--charcoal-2), var(--charcoal));
}
.feature svg {
  width: 32px; height: 32px;
  color: var(--gold);
  margin-bottom: 1rem;
}
.feature h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.feature p { color: var(--cream-muted); }

.subsection { margin-top: clamp(3.5rem, 7vw, 5rem); }
.subsection__title { font-size: var(--step-2); margin-bottom: 1.5rem; }

.gallery {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
}
.gallery a {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--charcoal-2);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.gallery a:hover { border-color: var(--gold); }
.gallery img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* Trailer: lightweight "facade" — the YouTube player only loads on click */
.trailer { max-width: 60rem; }
.trailer__link { display: block; position: relative; color: var(--cream); text-decoration: none; }
.trailer__link img { transition: opacity 0.2s ease; }
.trailer__link:hover img { opacity: 0.85; }
.trailer__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.trailer__play span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: rgb(20 17 15 / 0.82);
  border: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-weight: 600;
}
.trailer__play svg { width: 1.3rem; height: 1.3rem; color: var(--ember); }
.trailer__link:hover .trailer__play span { border-color: var(--gold); }
.trailer iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.trailer__note { margin-top: 0.75rem; font-size: var(--step--1); color: var(--cream-muted); }

/* Final wishlist call-to-action */
.cta-band {
  position: relative;
  margin-top: clamp(3.5rem, 7vw, 5rem);
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(60% 120% at 50% 120%, var(--glow-ember), transparent 70%),
    var(--charcoal-2);
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
.cta-band h3 { font-size: var(--step-2); }
.cta-band p { color: var(--cream-muted); margin-top: 0.5rem; max-width: 36rem; }

@media (min-width: 48rem) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cta-band { grid-template-columns: 1fr auto; }
}
@media (min-width: 64rem) {
  .game-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 8. About ---------------------------------------------------------------- */
.about-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); }
.about-block + .about-block { margin-top: 2.5rem; }
.about-block h3 { font-size: var(--step-1); margin-bottom: 0.75rem; }
.about-block p + p { margin-top: 1rem; }
.about-block p { color: var(--cream-muted); }
.about-block strong { color: var(--cream); }
.principles { list-style: none; display: grid; gap: 1rem; margin-top: 1rem; }
.principles li { padding-left: 1.6rem; position: relative; color: var(--cream-muted); }
.principles li::before {
  content: "";
  position: absolute;
  left: 0.2rem; top: 0.6em;
  width: 8px; height: 8px;
  transform: rotate(45deg);
  background: var(--ember);
}
.principles strong { color: var(--cream); }

.studio-card {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  background: var(--charcoal-2);
}
.studio-card h3 { font-size: var(--step-1); margin-bottom: 1rem; }
.studio-card dl { margin: 0; display: grid; gap: 0.9rem; }
.studio-card div { display: grid; gap: 0.1rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); }
.studio-card div:last-child { border-bottom: 0; padding-bottom: 0; }
.studio-card dt { font-size: var(--step--1); color: var(--cream-muted); }
.studio-card dd { margin: 0; font-family: var(--font-display); font-weight: 600; }
.name-note { font-family: var(--font-display); color: var(--gold); font-weight: 600; }

@media (min-width: 64rem) {
  .about-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
}

/* 9. Contact & newsletter ------------------------------------------------- */
.contact-grid { display: grid; gap: 2rem; }
.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--cream);
  text-decoration-color: var(--ember);
  text-decoration-thickness: 2px;
  word-break: break-word;
  margin-top: 0.5rem;
}
.contact-email:hover { color: var(--gold); }
.socials { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
}
.socials a:hover { border-color: var(--gold); }
.socials svg { width: 0.95em; height: 0.95em; color: var(--gold); }

.newsletter {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2rem);
  background: var(--charcoal-2);
}
.newsletter h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.newsletter > p { color: var(--cream-muted); }
.newsletter form { margin-top: 1.25rem; display: grid; gap: 0.75rem; }
.newsletter label { font-weight: 700; font-size: var(--step--1); }
.newsletter input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--charcoal);
  color: var(--cream);
  font: inherit;
}
.newsletter input[type="email"]::placeholder { color: #a8987f; }
.newsletter input[type="email"]:focus-visible { border-color: var(--gold); }
.newsletter small { color: var(--cream-muted); font-size: var(--step--1); }

@media (min-width: 64rem) {
  .contact-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; gap: 4rem; }
  /* Newsletter hidden: the contact block takes the full width */
  .contact-grid > :only-child { grid-column: 1 / -1; }
}

/* 10. Footer & legal pages ------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 3rem 2.5rem;
  font-size: var(--step--1);
  color: var(--cream-muted);
}
.site-footer__grid { display: grid; gap: 2rem; }
.site-footer .brand { font-size: 1.05rem; }
.site-footer p { margin-top: 0.5rem; max-width: 30rem; }
.footer-nav ul { list-style: none; display: grid; gap: 0.1rem; }
.footer-nav h2 {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.footer-nav a { color: var(--cream-muted); text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.footer-nav a:hover { color: var(--cream); text-decoration: underline; }
.legal-line {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}
@media (min-width: 48rem) {
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

.legal-page { padding-block: clamp(3rem, 8vw, 6rem); max-width: 46rem; }
.legal-page h1 { font-size: var(--step-3); margin-bottom: 1.5rem; }
.legal-page h2 { font-size: var(--step-1); margin: 2.5rem 0 0.75rem; }
.legal-page p, .legal-page li { color: var(--cream-muted); }
.legal-page p + p { margin-top: 0.75rem; }
.legal-page ul { padding-left: 1.2rem; }
.legal-page strong { color: var(--cream); }

/* 11. Motion --------------------------------------------------------------
   Everything below only runs when the visitor has NOT asked for reduced
   motion. Only transform/opacity are animated (GPU-friendly, no layout). */
@media (prefers-reduced-motion: no-preference) {
  .embers span {
    animation: ember-rise var(--dur, 9s) linear var(--delay, 0s) infinite;
  }
  /* 12 embers, each with its own position, speed and drift */
  .embers span:nth-child(1)  { left: 8%;  --dur: 11s; --delay: -2s;  --drift: 30px; }
  .embers span:nth-child(2)  { left: 17%; --dur: 8s;  --delay: -6s;  --drift: -20px; width: 3px; height: 3px; }
  .embers span:nth-child(3)  { left: 26%; --dur: 13s; --delay: -1s;  --drift: 40px; }
  .embers span:nth-child(4)  { left: 35%; --dur: 9s;  --delay: -8s;  --drift: -35px; width: 2px; height: 2px; }
  .embers span:nth-child(5)  { left: 44%; --dur: 12s; --delay: -4s;  --drift: 25px; }
  .embers span:nth-child(6)  { left: 52%; --dur: 10s; --delay: -10s; --drift: -15px; width: 3px; height: 3px; }
  .embers span:nth-child(7)  { left: 60%; --dur: 14s; --delay: -3s;  --drift: 35px; }
  .embers span:nth-child(8)  { left: 68%; --dur: 9s;  --delay: -7s;  --drift: -30px; width: 2px; height: 2px; }
  .embers span:nth-child(9)  { left: 76%; --dur: 11s; --delay: -5s;  --drift: 20px; }
  .embers span:nth-child(10) { left: 84%; --dur: 13s; --delay: -9s;  --drift: -25px; width: 3px; height: 3px; }
  .embers span:nth-child(11) { left: 91%; --dur: 10s; --delay: -1.5s; --drift: 15px; }
  .embers span:nth-child(12) { left: 4%;  --dur: 15s; --delay: -11s; --drift: 45px; width: 2px; height: 2px; }

  @keyframes ember-rise {
    0%   { transform: translate3d(0, 0, 0); opacity: 0; }
    10%  { opacity: 0.9; }
    35%  { opacity: 0.45; }
    50%  { opacity: 0.8; }
    75%  { opacity: 0.3; }
    100% { transform: translate3d(var(--drift, 20px), -70vh, 0); opacity: 0; }
  }

  /* Soft reveal on scroll — pure CSS (scroll-driven animations).
     Browsers without support simply show the content: no JS, no flash. */
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
    @keyframes reveal {
      from { opacity: 0; transform: translateY(24px); }
      to   { opacity: 1; transform: none; }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .embers { display: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* Contact intro spacing (kept out of inline styles so a strict CSP works) */
.contact-grid .lead { margin-top: 1rem; }
.legal-page .btn-row { margin-top: 2rem; }

/* Text-styled button (e.g. "Cookie settings" in the footer) */
.link-button {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  cursor: pointer;
}
.link-button:hover { color: var(--cream); }
.legal-page .link-button { color: var(--gold); }
.legal-page .link-button:hover { color: var(--cream); }
