/* ============================================================
   FirstPoint — marketing/site shell styles
   Self-contained: matches the game's look (team.css) but does
   NOT inherit it — these are scrolling, selectable pages.
   ============================================================ */

:root {
  --paper: #faf6ee;
  --paper-deep: #f3ecdd;
  --card: #fff;
  --line: #e5dcc8;
  --line-strong: #d3c7ab;
  --ink: #2a2d3a;
  --ink2: #5d6373;
  --ink3: #8b90a0;
  --brand: #1fa08c;
  --brand-deep: #157a6a;
  --sun: #f5b840;
  --sun-deep: #c98f1d;
  --good: #2f9d63;
  --bad: #d4564e;
  --font: 'Nunito', 'Segoe UI', system-ui, Arial, sans-serif;

  /* future-specialty accents (cohesive, muted) */
  --acc-em: #d4564e;
  --acc-gs: #4b7bb5;
  --acc-og: #b15c9c;
  --acc-an: #5a8f7d;
  --acc-pa: #e0913b;

  --maxw: 1080px;
  --radius: 18px;
  --radius-lg: 26px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand-deep);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
  cursor: pointer;
}

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

/* skip link for keyboard users */
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
}
.skip:focus {
  left: 0;
}

/* ---------- shared layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 56px 0;
}
.section--tight {
  padding: 36px 0;
}

h1,
h2,
h3 {
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.4px;
  margin: 0 0 14px;
}
h1 {
  font-size: clamp(28px, 5vw, 44px);
}
h2 {
  font-size: clamp(22px, 3.4vw, 30px);
}
h3 {
  font-size: 18px;
}
p {
  margin: 0 0 14px;
  color: var(--ink2);
}
.lead {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--ink2);
  max-width: 60ch;
}
.lead--center {
  margin-left: auto;
  margin-right: auto;
}
.lead--subtle {
  color: var(--ink3);
}

/* ---------- logo wordmark ---------- */
.logo {
  font-weight: 900;
  font-size: 21px;
  color: var(--ink);
  letter-spacing: -0.3px;
  display: inline-flex;
  align-items: center;
}
.logo b {
  color: var(--brand);
  font-weight: 900;
}
.logo .logo-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sun);
  margin-left: 7px;
}

/* ---------- buttons (match the game's lift) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: none;
  border-bottom: 4px solid var(--brand-deep);
  font-size: 15px;
  font-weight: 800;
  padding: 13px 24px;
  background: var(--brand);
  color: #fff;
  transition:
    transform 0.06s ease,
    border-bottom-width 0.06s ease,
    background 0.12s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  background: var(--brand-deep);
  text-decoration: none;
}
.btn:active {
  transform: translateY(3px);
  border-bottom-width: 1px;
}
.btn--sun {
  background: var(--sun);
  border-bottom-color: var(--sun-deep);
  color: #4a3508;
}
.btn--sun:hover {
  background: var(--sun-deep);
  color: #fff;
}
.btn--ghost {
  background: #fff;
  border: 2px solid var(--line-strong);
  border-bottom-width: 4px;
  color: var(--ink);
}
.btn--ghost:hover {
  background: #fff;
  border-color: var(--brand);
}
.btn--lg {
  font-size: 16px;
  padding: 15px 28px;
}
.btn--block {
  width: 100%;
}
.btn[aria-disabled='true'],
.btn:disabled {
  background: var(--paper-deep);
  color: var(--ink3);
  border-bottom-color: var(--line-strong);
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 12px;
  border: 2px solid var(--line);
  color: var(--ink2);
  background: #fff;
}
.chip--brand {
  color: var(--brand-deep);
  background: #d9efe9;
  border-color: transparent;
}
.chip--good {
  color: #fff;
  background: var(--good);
  border-color: transparent;
}
.chip--soon {
  color: var(--ink3);
  background: var(--paper-deep);
  border-color: var(--line);
}

/* ---------- cards ---------- */
.card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px;
  box-shadow: 0 6px 20px rgba(94, 78, 43, 0.07);
}
.card--center-cta {
  text-align: center;
  padding: 34px 24px;
}
.cta-lead {
  margin: 0 auto 4px;
}

/* ============================================================
   Header / site nav
   ============================================================ */
.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 2px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  text-decoration: none;
}
.nav-brand:hover {
  text-decoration: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink2);
}
.nav-links a:hover {
  background: var(--paper-deep);
  color: var(--ink);
  text-decoration: none;
}
.nav-links a[aria-current='page'] {
  color: var(--brand-deep);
  background: #d9efe9;
}
.nav-cta {
  margin-left: 4px;
  padding: 10px 20px !important;
  font-size: 14px !important;
}
.nav-links a.nav-cta {
  color: #fff;
}
.nav-links a.nav-cta:hover {
  background: var(--brand-deep);
  color: #fff;
}

/* mobile nav toggle */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
}

@media (max-width: 760px) {
  html.site-nav-open,
  body.site-nav-open {
    overflow: hidden;
  }
  .nav-brand {
    min-height: 44px;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px 20px 20px;
    background: var(--paper);
    border-bottom: 2px solid var(--line);
    box-shadow: 0 14px 30px rgba(94, 78, 43, 0.14);
    display: none;
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-links a {
    padding: 12px 14px;
    font-size: 15px;
  }
  .nav-links .nav-cta {
    text-align: center;
    margin-top: 4px;
  }
  .foot-top {
    align-items: flex-start;
  }
  .foot-nav {
    margin-left: 0;
  }
  .foot-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 9px;
  }
  .specialties-note a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: radial-gradient(900px 520px at 50% -10%, #fffdf6, var(--paper) 70%);
  text-align: center;
  padding: 64px 0 52px;
}
.hero .logo {
  font-size: 30px;
  margin-bottom: 18px;
}
.hero-tag {
  font-size: clamp(26px, 5.2vw, 46px);
  font-weight: 900;
  letter-spacing: -0.8px;
  line-height: 1.12;
  margin: 0 auto 18px;
  max-width: 16ch;
}
.hero-tag .em {
  color: var(--brand);
}
.hero p {
  margin-left: auto;
  margin-right: auto;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
}
.hero-cta--left {
  justify-content: flex-start;
  margin-top: 28px;
}

/* ============================================================
   Feature blurbs
   ============================================================ */
.grid {
  display: grid;
  gap: 18px;
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid--auto {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
@media (max-width: 760px) {
  .grid--3 {
    grid-template-columns: 1fr;
  }
}

.feature {
  text-align: left;
}
.feature .ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #d9efe9;
  color: var(--brand-deep);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.feature h3 {
  margin-bottom: 7px;
}
.feature p {
  margin: 0;
  font-size: 14.5px;
}

/* generic eyebrow / section heading block */
.eyebrow {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 8px;
}
.section-head {
  max-width: 62ch;
  margin-bottom: 28px;
}
.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ============================================================
   Prose (About / Instructions body)
   ============================================================ */
.prose {
  max-width: 70ch;
}
.prose p {
  font-size: 15.5px;
  line-height: 1.7;
}
.prose h2 {
  margin-top: 34px;
}
.prose ul {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--ink2);
}
.prose li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.6;
}
.prose strong {
  color: var(--ink);
  font-weight: 900;
}

/* steps / controls list */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.steps .num {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  display: grid;
  place-items: center;
}
.steps .body {
  font-size: 14.5px;
  color: var(--ink2);
  line-height: 1.55;
}
.steps .body b {
  color: var(--ink);
}

/* keyboard key */
.key {
  display: inline-block;
  border: 1.5px solid var(--ink3);
  border-bottom-width: 3px;
  border-radius: 6px;
  padding: 0 7px;
  font-size: 12.5px;
  font-weight: 800;
  background: #fff;
  color: var(--ink);
  line-height: 1.7;
}

/* ring legend (green/blue/purple) */
.rings {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 4px 0 8px;
}
.ring {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink2);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px 7px 9px;
}
.ring .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid currentColor;
  flex: none;
}
.ring--scenario {
  color: var(--good);
}
.ring--lessons {
  color: #2f6fb0;
}
.ring--resources {
  color: #9a4fb5;
}

/* ============================================================
   Content note (sensitive content)
   ============================================================ */
.note {
  border: 2px solid var(--line-strong);
  border-left: 6px solid var(--sun-deep);
  background: #fffaf0;
  border-radius: 14px;
  padding: 18px 20px;
  margin: 24px 0;
}
.note h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  color: var(--ink);
}
.note p {
  font-size: 14.5px;
  line-height: 1.65;
  margin-bottom: 10px;
}
.note p:last-child {
  margin-bottom: 0;
}
.note .support {
  font-weight: 900;
  color: var(--ink);
}

/* ============================================================
   Specialty grid
   ============================================================ */
.spec-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border: 2.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform 0.08s ease,
    border-color 0.12s ease,
    box-shadow 0.12s ease;
}
.spec-card.is-active:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 14px 32px rgba(94, 78, 43, 0.14);
}
.spec-card.is-soon {
  opacity: 0.78;
  background: #fdfbf6;
}
.spec-band {
  height: 7px;
  background: var(--brand);
}
.spec-band--brand,
.spec-ini--brand {
  background: var(--brand);
}
.spec-band--em,
.spec-ini--em {
  background: var(--acc-em);
}
.spec-band--gs,
.spec-ini--gs {
  background: var(--acc-gs);
}
.spec-band--og,
.spec-ini--og {
  background: var(--acc-og);
}
.spec-band--an,
.spec-ini--an {
  background: var(--acc-an);
}
.spec-band--pa,
.spec-ini--pa {
  background: var(--acc-pa);
}
.spec-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}
.spec-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.spec-ini {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 17px;
  color: #fff;
  flex: none;
}
.spec-card h3 {
  margin: 0;
  font-size: 18px;
}
.spec-focus {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.specialties-note {
  text-align: center;
  margin: 30px auto 0;
  color: var(--ink3);
  font-size: 14px;
}
.instructions-status {
  color: var(--ink3);
}
.spec-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.spec-foot .btn {
  margin-left: auto;
  padding: 10px 20px;
  font-size: 14px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-foot {
  border-top: 2px solid var(--line);
  background: var(--paper-deep);
  padding: 34px 0;
  margin-top: 24px;
}
.foot-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.foot-top {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.foot-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-left: auto;
}
.foot-nav a {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink2);
  padding: 5px 9px;
  border-radius: 8px;
}
.foot-nav a:hover {
  color: var(--ink);
  background: #fff;
  text-decoration: none;
}
.foot-fine {
  font-size: 12.5px;
  color: var(--ink3);
  line-height: 1.6;
  font-weight: 700;
}
.foot-fine p {
  margin: 0 0 4px;
  color: var(--ink3);
  font-size: 12.5px;
}

/* ============================================================
   Redesigned home HERO (namespaced fp-*, append-only — does NOT
   touch the shared .hero used elsewhere). Two-column on desktop,
   media-rich animated app preview on the right.
   ============================================================ */
.fp-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(720px 460px at 78% -8%, rgba(31, 160, 140, 0.1), transparent 60%),
    radial-gradient(900px 560px at 50% -14%, #fffdf6, var(--paper) 72%);
  padding: 56px 0 60px;
  isolation: isolate;
}

/* --- soft premium background: blurred blobs + faint grid --- */
.fp-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.fp-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  will-change: transform;
}
.fp-blob--a {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(31, 160, 140, 0.32), transparent 70%);
  animation: fp-drift 22s ease-in-out infinite;
}
.fp-blob--b {
  width: 360px;
  height: 360px;
  bottom: -150px;
  left: -100px;
  background: radial-gradient(circle, rgba(245, 184, 64, 0.26), transparent 70%);
  animation: fp-drift 26s ease-in-out infinite reverse;
}
.fp-blob--c {
  width: 300px;
  height: 300px;
  top: 40%;
  left: 52%;
  background: radial-gradient(circle, rgba(88, 104, 216, 0.16), transparent 70%);
  animation: fp-drift 30s ease-in-out infinite;
}
.fp-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 110, 90, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 110, 90, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(680px 480px at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(680px 480px at 50% 30%, #000 0%, transparent 78%);
}
@keyframes fp-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(26px, -22px) scale(1.06); }
  66% { transform: translate(-20px, 18px) scale(0.96); }
}

/* --- two-column layout --- */
.fp-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}
.fp-hero__copy {
  max-width: 38rem;
}
.fp-hero__logo {
  font-size: 28px;
  margin-bottom: 16px;
  opacity: 0;
  animation: fp-rise 0.7s 0.05s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* eyebrow badge */
.fp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-deep);
  background: #d9efe9;
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 16px;
  opacity: 0;
  animation: fp-rise 0.7s 0.12s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.fp-eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 0 rgba(245, 184, 64, 0.55);
  animation: fp-blip 2.4s ease-out infinite;
}

.fp-hero__tag {
  font-size: clamp(30px, 4.6vw, 50px);
  font-weight: 900;
  letter-spacing: -0.9px;
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--ink);
  opacity: 0;
  animation: fp-rise 0.75s 0.18s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.fp-hero__tag .em {
  color: var(--brand);
}
.fp-hero__lead {
  margin: 0 0 4px;
  max-width: 46ch;
  opacity: 0;
  animation: fp-rise 0.75s 0.26s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.fp-hero__cta {
  justify-content: flex-start;
  margin-top: 26px;
  opacity: 0;
  animation: fp-rise 0.75s 0.34s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes fp-rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fp-blip {
  0% { box-shadow: 0 0 0 0 rgba(245, 184, 64, 0.55); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(245, 184, 64, 0); }
}

/* ============================================================
   The animated app preview (browser window frame + SVG ward)
   ============================================================ */
.fp-hero__preview {
  opacity: 0;
  animation: fp-rise 0.85s 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.fp-window {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(33, 45, 58, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset,
    0 0 46px rgba(31, 160, 140, 0.16);
  transform: translateZ(0);
  animation: fp-float 7s ease-in-out infinite;
  will-change: transform;
}
@keyframes fp-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-0.25deg); }
}

/* browser top bar */
.fp-window__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: linear-gradient(#fbfaf6, #f3ecdd);
  border-bottom: 1px solid var(--line);
}
.fp-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex: none;
}
.fp-dot--r { background: #ec6a5e; }
.fp-dot--y { background: #f5bf4f; }
.fp-dot--g { background: #61c454; }
.fp-url {
  margin-left: 10px;
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  text-align: center;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* screen holding the SVG ward */
.fp-window__screen {
  position: relative;
  aspect-ratio: 480 / 320;
  background: var(--paper);
}
.fp-ward {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* room label text */
.fp-room__label {
  font-family: var(--font);
  font-weight: 900;
  font-size: 7px;
  letter-spacing: 0.02em;
  fill: var(--ink);
}

/* corridor dashed guide drifts like the game's marching dashes */
.fp-corridor-guide {
  animation: fp-march 2.4s linear infinite;
}
@keyframes fp-march {
  to { stroke-dashoffset: -46; }
}

/* ===== glowing pulsing rings =====
   transform-box: fill-box makes each shape scale/spin around its OWN
   centre (its local 0,0) rather than the SVG origin. */
.fp-ring__glow,
.fp-ring__dash,
.fp-ring__play {
  transform-box: fill-box;
  transform-origin: center;
}
.fp-ring__glow {
  animation: fp-glow 3s ease-in-out infinite;
}
/* dash slowly rotates (single transform animation — no conflict) */
.fp-ring__dash {
  animation: fp-spin 9s linear infinite;
}
.fp-ring--lessons .fp-ring__glow { animation-delay: 0.6s; }
.fp-ring--lessons .fp-ring__dash { animation-delay: 0.6s; }
.fp-ring--resources .fp-ring__glow { animation-delay: 1.2s; }
.fp-ring--resources .fp-ring__dash { animation-delay: 1.2s; }
.fp-ring__label {
  font-family: var(--font);
  font-weight: 900;
  font-size: 7px;
  text-anchor: middle;
  letter-spacing: 0.04em;
}
.fp-ring__play {
  animation: fp-glow 3s ease-in-out infinite;
}
@keyframes fp-glow {
  0%, 100% { opacity: 0.55; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes fp-spin {
  to { transform: rotate(360deg); }
}

/* ===== teal avatar — walks the looping path via CSS offset-path =====
   Path: corridor center -> up-left into the theatre SCENARIO ring,
   dwell, then back out to the corridor. Pure CSS so the global
   reduced-motion rule disables it (SMIL would not be covered). */
.fp-avatar {
  /* Symmetric out-and-back path: it ENDS where it BEGINS (300,160) so the
     loop is seamless — no teleport on wrap. The ring apex (86,80) sits at
     exactly 50% of the path. */
  offset-path: path('M 300 160 L 150 160 L 110 120 L 86 80 L 110 120 L 150 160 L 300 160');
  offset-rotate: 0deg;
  offset-distance: 0%;
  animation:
    fp-walk 11s ease-in-out infinite,
    fp-bob 0.42s ease-in-out infinite;
  will-change: offset-distance;
}
.fp-avatar__shadow {
  animation: fp-shadow 0.42s ease-in-out infinite;
}
@keyframes fp-walk {
  0% { offset-distance: 0%; }
  /* walk in to the SCENARIO ring (apex is exactly halfway along the path) */
  40% { offset-distance: 50%; }
  /* dwell inside the green ring */
  56% { offset-distance: 50%; }
  /* walk back out the same way to where we started — seamless loop */
  100% { offset-distance: 100%; }
}
@keyframes fp-bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -1.6px; }
}
@keyframes fp-shadow {
  0%, 100% { opacity: 0.22; }
  50% { opacity: 0.12; }
}

/* soft sweeping highlight / scanline */
.fp-scan {
  animation: fp-sweep 6.5s ease-in-out infinite;
  mix-blend-mode: overlay;
}
@keyframes fp-sweep {
  0%, 12% { transform: translateX(-160px); opacity: 0; }
  40% { opacity: 0.5; }
  70%, 100% { transform: translateX(520px); opacity: 0; }
}

/* cycling caption pill, bottom-left of the preview */
.fp-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  height: 26px;
  min-width: 168px;
  padding: 0 14px;
  display: grid;
  align-items: center;
  background: rgba(42, 45, 58, 0.92);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(33, 45, 58, 0.22);
  overflow: hidden;
}
.fp-caption__line {
  grid-area: 1 / 1;
  font-size: 11.5px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  animation: fp-cycle 10.5s linear infinite;
}
.fp-caption__line:nth-child(1) { animation-delay: 0s; }
.fp-caption__line:nth-child(2) { animation-delay: 3.5s; }
.fp-caption__line:nth-child(3) { animation-delay: 7s; }
@keyframes fp-cycle {
  0% { opacity: 0; transform: translateY(8px); }
  4%, 28% { opacity: 1; transform: translateY(0); }
  33%, 100% { opacity: 0; transform: translateY(-8px); }
}

/* ============================================================
   Restyled feature cards (cohesion with the new hero)
   ============================================================ */
.fp-feature {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}
.fp-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), #5868d8);
  opacity: 0;
  transition: opacity 0.16s ease;
}
.fp-feature:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: 0 16px 34px rgba(94, 78, 43, 0.13);
}
.fp-feature:hover::before {
  opacity: 1;
}

/* ============================================================
   Hero responsive — stack on tablet/phone (preview below copy)
   ============================================================ */
@media (max-width: 900px) {
  .fp-hero {
    padding: 40px 0 48px;
  }
  .fp-hero__inner {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .fp-hero__copy {
    max-width: 100%;
  }
  .fp-hero__lead {
    margin-left: auto;
    margin-right: auto;
  }
  .fp-hero__cta {
    justify-content: center;
  }
  .fp-hero__preview {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }
}
@media (max-width: 480px) {
  .fp-hero__tag {
    font-size: clamp(26px, 8vw, 34px);
  }
  .fp-url {
    font-size: 11px;
    padding: 4px 10px;
  }
  .fp-caption {
    min-width: 0;
  }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
  /* ensure entrance-animated hero content is visible when motion is off */
  .fp-hero__logo,
  .fp-eyebrow,
  .fp-hero__tag,
  .fp-hero__lead,
  .fp-hero__cta,
  .fp-hero__preview {
    opacity: 1 !important;
    transform: none !important;
  }
  /* show the first caption line statically */
  .fp-caption__line:nth-child(1) {
    opacity: 1 !important;
    transform: none !important;
  }
  /* park the avatar inside the SCENARIO ring (apex = 50% of the path) */
  .fp-avatar {
    offset-distance: 50% !important;
  }
}

/* ===== real gameplay GIF in the hero (primary media; SVG = reduced-motion fallback) ===== */
.fp-window__screen { aspect-ratio: auto; }
.fp-gif { display: block; width: 100%; height: auto; }
.fp-window .fp-ward { display: none; }
@media (prefers-reduced-motion: reduce) {
  .fp-gif { display: none; }
  .fp-window .fp-ward { display: block; }
  .fp-window__screen { aspect-ratio: 480 / 320; }
}

/* ===== "See it in action" play-through gallery (instructions page) ===== */
.howto-shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 18px 0 8px;
}
.howto-shots figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(33, 45, 58, 0.07);
}
.howto-shots img { display: block; width: 100%; height: auto; }
.howto-shots figcaption {
  padding: 9px 13px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--ink2);
  font-weight: 700;
}
@media (max-width: 640px) {
  .howto-shots { grid-template-columns: 1fr; }
}
