/*
 * home.css — Shieldwall Games homepage (Stage 10B, "One world, many games")
 *
 * Landscape-led layout: every major section sits on full-bleed artwork,
 * softened with layered fades so text stays readable. Loaded only by
 * index.html, after main.css (fonts, reset, tokens, skip link, reveal,
 * cookie banner). The legal pages keep using shieldwall.css.
 *
 * Motion is decorative and only runs with prefers-reduced-motion: no-preference.
 */

.hm {
  --hm-bg: #0c0f13;
  --hm-bg-2: #10141a;
  --hm-panel: rgba(9, 12, 16, 0.72);
  --hm-panel-soft: rgba(9, 12, 16, 0.56);
  --hm-line: rgba(220, 232, 248, 0.14);
  --hm-line-strong: rgba(220, 232, 248, 0.24);
  --hm-text: #eef3fb;
  --hm-text-2: #d5dde9;
  --hm-muted: #b9c4d3;
  --hm-accent: #e09a52;
  --hm-accent-soft: #f1be7f;
  --hm-frost: #9ab7d8;
  --hm-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  --hm-radius: 22px;
  --hm-content: 1180px;
  --hm-gutter: 20px;

  margin: 0;
  min-width: 320px;
  background: var(--hm-bg);
  color: var(--hm-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

.hm a { color: inherit; }
.hm p a,
.hm .hm-form-help a {
  color: var(--hm-accent-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.hm p a:hover,
.hm .hm-form-help a:hover { color: #fff; }

.hm :where(a, button):focus-visible {
  outline: 2px solid var(--hm-accent-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

.hm-wrap {
  width: min(var(--hm-content), calc(100% - 2 * var(--hm-gutter)));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

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

.hm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #dbe3ef;
}
.hm-eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--hm-accent-soft);
}

.hm-small-caps {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #ccd7e7;
}

.hm-h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.8vw, 4.1rem);
  line-height: 1;
  letter-spacing: 0.01em;
  margin-top: 14px;
  color: var(--hm-text);
  text-wrap: balance;
}

.hm h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  color: var(--hm-text);
}

/* --- Header ---------------------------------------------------------------- */

.hm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 13, 0.62);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hm-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  min-height: 76px;
}

.hm-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}
.hm-brand__mark {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}
.hm-brand__text { display: flex; flex-direction: column; min-width: 0; }
.hm-brand__name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--hm-text);
}
.hm-brand__tag {
  margin-top: 4px;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hm-muted);
}

.hm-nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.hm-nav__links a {
  position: relative;
  font-size: 0.9rem;
  color: #dce5f2;
  text-decoration: none;
  padding: 6px 0;
}
.hm-nav__links a:not(.hm-nav__cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--hm-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.hm-nav__links a:hover::after,
.hm-nav__links a:focus-visible::after { transform: scaleX(1); }
.hm-nav__links a:hover { color: #fff; }
.hm-nav__cta {
  padding: 10px 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.hm-nav__cta:hover {
  background: rgba(224, 154, 82, 0.16);
  border-color: rgba(241, 190, 127, 0.5);
}

/* Mobile menu: wired by scripts/main.js (.sw-hamburger -> .sw-drawer). */
.hm-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  cursor: pointer;
}
.hm-hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--hm-text);
  border-radius: 2px;
}
.hm-drawer {
  display: none;
  flex-basis: 100%;
  flex-direction: column;
  padding: 4px 0 18px;
}
.hm-drawer.is-open { display: flex; }
.hm-drawer a {
  padding: 13px 2px;
  font-size: 1rem;
  color: var(--hm-text-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.hm-drawer a:last-child { border-bottom: 0; }
.hm-drawer a:hover { color: #fff; }

/* --- Scenes: full-bleed artwork with soft fades -------------------------- */

.hm-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hm-scene picture,
.hm-scene img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hm-scene img {
  object-fit: cover;
  object-position: center;
  max-width: none;
}
/* Fade the top and bottom of every scene into the page, so sections blend. */
.hm-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      var(--hm-bg) 0%,
      rgba(12, 15, 19, 0.55) 10%,
      rgba(12, 15, 19, 0.42) 50%,
      rgba(12, 15, 19, 0.62) 80%,
      var(--hm-bg) 100%),
    radial-gradient(ellipse at 15% 40%, rgba(12, 15, 19, 0.55), transparent 60%);
}
.hm-scene--dark::after {
  background:
    linear-gradient(to bottom,
      var(--hm-bg) 0%,
      rgba(12, 15, 19, 0.7) 10%,
      rgba(12, 15, 19, 0.58) 50%,
      rgba(12, 15, 19, 0.74) 80%,
      var(--hm-bg) 100%),
    radial-gradient(ellipse at 15% 40%, rgba(12, 15, 19, 0.5), transparent 60%);
}

/* --- Hero ------------------------------------------------------------------ */

.hm-hero {
  position: relative;
  min-height: calc(100svh - 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
  margin-top: -1px;
}
.hm-scene--hero::after {
  background:
    linear-gradient(to bottom,
      rgba(7, 9, 13, 0.5) 0%,
      rgba(7, 9, 13, 0.18) 30%,
      rgba(7, 9, 13, 0.3) 62%,
      var(--hm-bg) 100%),
    linear-gradient(to right, rgba(7, 9, 13, 0.72) 0%, rgba(7, 9, 13, 0.25) 55%, rgba(7, 9, 13, 0.4) 100%);
}

/* Slow drifting mist over the hero landscape. */
.hm-mist {
  position: absolute;
  inset: -10% -20%;
  z-index: 1;
  background:
    radial-gradient(ellipse 40% 22% at 30% 70%, rgba(220, 230, 245, 0.10), transparent 70%),
    radial-gradient(ellipse 35% 18% at 75% 62%, rgba(241, 190, 127, 0.08), transparent 70%),
    radial-gradient(ellipse 50% 25% at 55% 85%, rgba(200, 215, 235, 0.08), transparent 70%);
}

.hm-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 40px;
  align-items: end;
  padding: 72px 0 56px;
}

.hm-hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 6.4vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: 0;
  margin: 18px 0 24px;
  color: var(--hm-text);
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.45);
}
.hm-hero__title em {
  font-style: normal;
  color: var(--hm-accent-soft);
}

.hm-lede {
  max-width: 52ch;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.6;
  color: #e9eef6;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.hm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.hm-btn--primary {
  background: linear-gradient(180deg, #ecae6a, #d08236);
  color: #12151a !important;
  box-shadow: 0 16px 36px rgba(208, 130, 54, 0.3);
}
.hm-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(208, 130, 54, 0.4);
}
.hm-btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--hm-text);
}
.hm-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.36);
}

.hm-hero__side { display: grid; gap: 18px; }

.hm-glass {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 22px 24px;
  border-radius: var(--hm-radius);
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: var(--hm-panel);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--hm-shadow);
}
.hm-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 45%);
  pointer-events: none;
}

.hm-quote { border-left: 3px solid var(--hm-accent); }
.hm-quote blockquote p {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 1.1;
  color: #fff;
}
.hm-quote figcaption {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--hm-text-2);
}
.hm-now p:last-child {
  margin-top: 8px;
  color: var(--hm-text-2);
}
.hm-now strong { color: #fff; font-weight: 600; }

.hm-scroll-cue {
  position: relative;
  z-index: 2;
  align-self: center;
  margin-bottom: 26px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--hm-muted);
  text-decoration: none;
}
.hm-scroll-cue::after {
  content: "";
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, var(--hm-accent-soft), transparent);
}
.hm-scroll-cue:hover { color: #fff; }

/* --- Sections -------------------------------------------------------------- */

.hm-section {
  position: relative;
  isolation: isolate;
  padding: 120px 0;
  scroll-margin-top: 60px;
}
.hm-section--last { padding-bottom: 140px; }

.hm-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 40px;
}
.hm-head > p {
  max-width: 46ch;
  font-size: 1.12rem;
  color: #e4eaf3;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.hm-panel {
  padding: 30px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--hm-panel);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--hm-shadow);
}
.hm-panel p { color: #e6edf7; }
.hm-panel p + p { margin-top: 16px; }
.hm-panel strong { color: #fff; font-weight: 600; }

/* Studio */
.hm-story {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}
.hm-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  list-style: none;
}
.hm-badges li {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  color: #e4ecf7;
}
.hm-art {
  position: relative;
  margin: 0;
  min-height: 380px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(ellipse at 50% 30%, rgba(241, 190, 127, 0.18), transparent 60%),
    linear-gradient(170deg, #1b232e, #0b0e12);
  box-shadow: var(--hm-shadow);
}
.hm-art img {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

/* Vitus */
.hm-vitus {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 24px;
  align-items: start;
}
.hm-shot {
  margin: 0;
  padding: 10px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(9, 12, 16, 0.78);
  box-shadow: var(--hm-shadow);
}
.hm-shot img {
  width: 100%;
  height: auto;
  border-radius: 14px;
}
.hm-shot figcaption {
  padding: 12px 6px 4px;
  font-size: 0.85rem;
  color: var(--hm-muted);
}
.hm-points { list-style: none; display: grid; gap: 14px; }
.hm-points li {
  position: relative;
  padding-left: 22px;
  color: #dfe6f1;
}
.hm-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--hm-accent);
}
.hm-panel__note {
  margin-top: 20px !important;
  padding-top: 18px;
  border-top: 1px solid var(--hm-line);
  font-size: 0.95rem;
  color: var(--hm-text-2) !important;
}
.hm-vitus .hm-actions { margin-top: 22px; }

/* Roadmap */
.hm-timeline {
  list-style: none;
  display: grid;
  gap: 16px;
  position: relative;
}
.hm-milestone {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  align-items: start;
  padding: 26px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 9, 13, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.hm-milestone__when {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.08;
  color: var(--hm-accent-soft);
}
.hm-milestone__body h3 {
  font-size: clamp(1.7rem, 2.6vw, 2rem);
  margin-bottom: 8px;
}
.hm-milestone__body p { color: #e2e9f3; }
.hm-tag {
  display: inline-flex;
  margin-top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(224, 154, 82, 0.15);
  border: 1px solid rgba(241, 190, 127, 0.25);
  color: #f3cd99 !important;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Future worlds */
.hm-cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.hm-card {
  padding: 26px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 9, 13, 0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.hm-card:hover { transform: translateY(-4px); border-color: rgba(241, 190, 127, 0.32); }
.hm-card h3 { font-size: 1.85rem; margin: 10px 0 10px; }
.hm-card p:last-child { color: #d9e1ec; }

.hm-vision {
  margin-top: 26px;
  padding: 28px 30px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background:
    linear-gradient(90deg, rgba(224, 154, 82, 0.2), rgba(154, 183, 216, 0.12)),
    rgba(7, 9, 13, 0.66);
}
.hm-vision__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.1;
  color: #fff;
  margin-bottom: 10px;
}
.hm-vision p:last-child { max-width: 70ch; color: #e4ebf4; }

/* Newsletter */
.hm-signups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}
.hm-signup {
  padding: 28px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 9, 13, 0.76);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--hm-shadow);
}
.hm-signup h3 { font-size: 2rem; margin: 8px 0 10px; }
.hm-signup > p:not(.hm-small-caps) { color: #dce4ef; margin-bottom: 18px; }
.hm-signup .ml-embedded { min-height: 1px; }
.hm-form-help {
  margin-top: 22px;
  max-width: 75ch;
  font-size: 0.9rem;
  color: var(--hm-text-2);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* --- Footer ---------------------------------------------------------------- */

.hm-footer {
  position: relative;
  z-index: 2;
  padding: 40px 0 48px;
  background: #090b0f;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--hm-muted);
  font-size: 0.88rem;
}
.hm-footer__top,
.hm-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.hm-footer__bottom {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.hm-footer .hm-brand__mark { width: 40px; height: 40px; }
.hm-footer .hm-brand__name { font-size: 1.35rem; }
.hm-footer .social-icons { display: flex; gap: 8px; }
.hm-footer .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--hm-text-2);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.hm-footer .social-icons a:hover { color: #fff; border-color: rgba(241, 190, 127, 0.5); }
.hm-footer .footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hm-footer .footer-nav a {
  color: var(--hm-text-2);
  text-decoration: none;
  padding: 6px 0;
}
.hm-footer .footer-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* --- Sub-pages (legal pages, 404) ------------------------------------------ */

.hm-wrap--narrow { width: min(760px, calc(100% - 2 * var(--hm-gutter))); }

.hm-page {
  position: relative;
  isolation: isolate;
  padding: 120px 0 110px;
  min-height: 60vh;
}
.hm-scene--page { bottom: auto; height: min(520px, 70vh); }
.hm-scene--page::after {
  background: linear-gradient(to bottom,
    rgba(12, 15, 19, 0.55) 0%,
    rgba(12, 15, 19, 0.72) 45%,
    var(--hm-bg) 100%);
}

.hm .sw-legal { color: var(--hm-text-2); }
.hm .sw-legal h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.02;
  max-width: none;
  margin: 0 0 14px;
  color: var(--hm-text);
}
.hm .sw-legal h2,
.hm .sw-legal h3,
.hm .sw-legal strong,
.hm .sw-legal th { color: var(--hm-text); }
.hm .sw-legal-date { color: var(--hm-muted); }
.hm .sw-legal a { color: var(--hm-accent-soft); }
.hm .sw-legal a:hover { color: #fff; }

.hm-footer__bottom--solo { margin-top: 0; padding-top: 0; border-top: 0; }

.hm-404 {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 76px);
  display: flex;
  align-items: center;
  text-align: center;
  padding: 80px 0;
}
.hm-404 .hm-scene { bottom: 0; height: auto; }
.hm-404 .hm-404__code {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(4.5rem, 14vw, 9rem);
  line-height: 0.9;
  color: var(--hm-accent-soft);
}
.hm-404 h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 12px 0 14px;
  color: var(--hm-text);
}
.hm-404 p { color: var(--hm-text-2); max-width: 46ch; margin-inline: auto; }
.hm-404 .hm-actions { justify-content: center; }

/* --- Motion (decorative only) ---------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .hm-scene--hero img {
    animation: hm-drift 28s ease-in-out infinite alternate;
    transform-origin: 60% 50%;
  }
  .hm-mist { animation: hm-mist 34s ease-in-out infinite alternate; }

  .hm-hero__copy > * {
    opacity: 0;
    animation: hm-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  .hm-hero__copy > :nth-child(2) { animation-delay: 0.12s; }
  .hm-hero__copy > :nth-child(3) { animation-delay: 0.26s; }
  .hm-hero__copy > :nth-child(4) { animation-delay: 0.4s; }
  .hm-hero__side {
    opacity: 0;
    animation: hm-rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s forwards;
  }
  .hm-scroll-cue::after { animation: hm-cue 2.6s ease-in-out infinite; }

  .hm .reveal { transition-duration: 0.9s; }

  /* Gentle parallax where scroll-driven animations are supported. */
  @supports (animation-timeline: view()) {
    .hm-section .hm-scene img {
      animation: hm-parallax linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
  }
}

@keyframes hm-drift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to   { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}
@keyframes hm-mist {
  from { transform: translate3d(-4%, 0, 0); opacity: 0.7; }
  to   { transform: translate3d(5%, -2%, 0); opacity: 1; }
}
@keyframes hm-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes hm-cue {
  0%, 100% { transform: scaleY(0.6); transform-origin: top; opacity: 0.6; }
  50%      { transform: scaleY(1); transform-origin: top; opacity: 1; }
}
@keyframes hm-parallax {
  from { transform: scale(1.12) translate3d(0, -4%, 0); }
  to   { transform: scale(1.12) translate3d(0, 4%, 0); }
}

/* --- Responsive ------------------------------------------------------------ */

@media (max-width: 980px) {
  .hm-hero__grid,
  .hm-head,
  .hm-story,
  .hm-vitus,
  .hm-signups { grid-template-columns: 1fr; }
  .hm-cards { grid-template-columns: 1fr; }
  .hm-head { gap: 16px; }
  .hm-art { min-height: 340px; max-width: 520px; width: 100%; justify-self: center; }
  .hm-hero__grid { padding: 72px 0 48px; }
}

@media (max-width: 860px) {
  .hm-nav__links { display: none; }
  .hm-hamburger { display: inline-flex; }
}

@media (max-width: 720px) {
  .hm { --hm-gutter: 16px; }
  .hm-nav { min-height: 68px; gap: 12px; }
  .hm-hero { min-height: calc(100svh - 68px); }
  .hm-brand__mark { width: 40px; height: 40px; }
  .hm-brand__name { font-size: 1.35rem; }
  .hm-brand__tag { font-size: 0.6rem; letter-spacing: 0.18em; }
  .hm-section { padding: 88px 0; }
  .hm-milestone { grid-template-columns: 1fr; gap: 10px; padding: 22px; }
  .hm-panel,
  .hm-signup,
  .hm-card { padding: 22px; }
  .hm-vision { padding: 22px; }
  .hm-quote blockquote p { font-size: 1.6rem; }
  .hm-footer__bottom { flex-direction: column; align-items: flex-start; }
}
