/* ==========================================================================
   Team Rise · teamrise.win
   Shared stylesheet — gold / sunrise theme
   ========================================================================== */

/* --- 1. Design tokens --------------------------------------------------- */
:root {
  /* Gold ramp */
  --gold-50:  #FFFAEC;
  --gold-100: #FDF1CE;
  --gold-200: #F8E09B;
  --gold-300: #F2C962;
  --gold-400: #E9B23C;
  --gold-500: #D99A1E;
  --gold-600: #B87C12;
  --gold-700: #8E5C0C;
  --sun:      #FF9A3C;
  --ember:    #FF6B35;

  /* Ink ramp */
  --ink-900: #0A0C11;
  --ink-850: #0E1118;
  --ink-800: #131722;
  --ink-700: #1C2130;
  --ink-600: #2A3040;
  --ink-500: #3B4356;

  /* Neutrals */
  --cream:   #FFFCF3;
  --paper:   #FFFFFF;
  --sand:    #F6F1E4;
  --line:    #E8E0CD;
  --body:    #3A3B40;
  --muted:   #6E7180;
  --muted-d: #9AA0B2;

  /* Semantic */
  --bg:        var(--cream);
  --fg:        var(--ink-900);
  --accent:    var(--gold-600);
  --accent-on-dark: var(--gold-300);

  /* Type */
  --font-display: 'Playfair Display', 'Noto Serif SC', 'Songti SC', Georgia, serif;
  --font-body: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont,
               'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --wrap: 1200px;
  --wrap-narrow: 760px;
  --nav-h: 72px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* Elevation */
  --sh-sm: 0 1px 2px rgba(16, 18, 26, .06), 0 2px 8px rgba(16, 18, 26, .04);
  --sh-md: 0 4px 12px rgba(16, 18, 26, .07), 0 12px 32px rgba(16, 18, 26, .07);
  --sh-lg: 0 8px 24px rgba(16, 18, 26, .09), 0 24px 64px rgba(16, 18, 26, .10);
  --sh-gold: 0 10px 30px rgba(217, 154, 30, .22);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* --- 2. Reset ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img, svg, video, canvas { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-700); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--fg);
  line-height: 1.22;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
h4 { font-size: 1.12rem; }
p  { margin: 0 0 1.15em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.35em; }
li { margin-bottom: .45em; }
strong { color: var(--ink-800); font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.6rem 0; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; border-radius: 4px; }

/* --- 3. Bilingual switching -------------------------------------------- */
html[data-lang="zh"] [lang="en"],
html[data-lang="en"] [lang="zh"] { display: none !important; }
/* Before JS sets data-lang, avoid a flash of both languages. */
html:not([data-lang]) [lang="en"] { display: none !important; }

/* --- 4. Layout helpers -------------------------------------------------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--dark { background: var(--ink-900); color: #C9CEDC; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #FFF; }
.section--dark strong { color: var(--gold-200); }
.section--sand { background: var(--sand); }
.section--cream { background: var(--cream); }

.grid { display: grid; gap: clamp(1.1rem, 2.4vw, 1.9rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.center { text-align: center; }
.stack-sm > * + * { margin-top: .6rem; }

/* --- 5. Section headers ------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-600); margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-500), var(--sun));
}
.section--dark .eyebrow { color: var(--gold-300); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head.center { margin-inline: auto; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin-bottom: 0; }
.section--dark .section-head p { color: var(--muted-d); }

.lead { font-size: 1.15rem; line-height: 1.7; color: var(--ink-700); }
.section--dark .lead { color: #D6DAE6; }

/* --- 6. Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.7rem; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-body); font-size: .97rem; font-weight: 650;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600) 65%, var(--sun));
  color: #241902; box-shadow: var(--sh-gold);
}
.btn-primary:hover { color: #241902; box-shadow: 0 14px 38px rgba(217, 154, 30, .34); }
.btn-ghost { border-color: rgba(217, 154, 30, .45); color: var(--gold-700); background: transparent; }
.btn-ghost:hover { background: rgba(217, 154, 30, .09); color: var(--gold-700); }
.section--dark .btn-ghost,
.hero .btn-ghost { border-color: rgba(255, 255, 255, .3); color: #FFF; }
.section--dark .btn-ghost:hover,
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #FFF; }
.btn-sm { padding: .58rem 1.2rem; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn-row.center { justify-content: center; }

/* --- 7. Site header ----------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.site-header__inner {
  width: min(100% - 2.5rem, 1320px); margin-inline: auto;
  display: flex; align-items: center; gap: 1.4rem;
}
.site-header.is-solid {
  background: rgba(255, 252, 243, .92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 6px 24px rgba(0, 0, 0, .05);
}

.brand { display: flex; align-items: center; gap: .65rem; margin-right: auto; flex-shrink: 0; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle at 50% 62%, #FFF3C4 0%, var(--gold-300) 32%, var(--gold-500) 58%, var(--sun) 100%);
  box-shadow: 0 0 0 1px rgba(217, 154, 30, .35), 0 0 22px rgba(233, 178, 60, .55);
  position: relative;
}
.brand__mark::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 8%, rgba(233,178,60,.55) 9% 11%, transparent 12% 20%,
    rgba(233,178,60,.55) 21% 23%, transparent 24% 33%, rgba(233,178,60,.55) 34% 36%, transparent 37% 45%,
    rgba(233,178,60,.55) 46% 48%, transparent 49% 58%, rgba(233,178,60,.55) 59% 61%, transparent 62% 70%,
    rgba(233,178,60,.55) 71% 73%, transparent 74% 83%, rgba(233,178,60,.55) 84% 86%, transparent 87% 100%);
  animation: spin 24s linear infinite;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.22rem;
  color: var(--ink-900); letter-spacing: -.01em;
}
.brand__tag { font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-600); font-weight: 700; }
.site-header:not(.is-solid) .brand__name { color: #FFF; }
.site-header:not(.is-solid) .brand__tag { color: var(--gold-300); }
.site-header.on-light .brand__name { color: var(--ink-900); }
.site-header.on-light .brand__tag { color: var(--gold-600); }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav__item { position: relative; }
.nav__link {
  display: flex; align-items: center; gap: .3rem;
  padding: .55rem .78rem; border-radius: 999px;
  font-size: .93rem; font-weight: 550; color: var(--ink-700);
  transition: background .2s, color .2s;
}
.nav__link:hover { background: rgba(217, 154, 30, .12); color: var(--gold-700); }
.nav__link.is-active { color: var(--gold-700); background: rgba(217, 154, 30, .13); }
.site-header:not(.is-solid):not(.on-light) .nav__link { color: rgba(255, 255, 255, .88); }
.site-header:not(.is-solid):not(.on-light) .nav__link:hover,
.site-header:not(.is-solid):not(.on-light) .nav__link.is-active {
  background: rgba(255, 255, 255, .15); color: #FFF;
}
.nav__caret { width: 9px; height: 9px; opacity: .6; transition: transform .25s; }
.nav__item:hover .nav__caret { transform: rotate(180deg); }

.nav__menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 254px; padding: .5rem; border-radius: var(--r-md);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--sh-lg);
  opacity: 0; visibility: hidden; transition: opacity .22s, transform .22s var(--ease), visibility .22s;
}
.nav__item:hover .nav__menu, .nav__item:focus-within .nav__menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav__menu a {
  display: block; padding: .52rem .7rem; border-radius: var(--r-sm);
  font-size: .9rem; color: var(--ink-700); line-height: 1.45;
}
.nav__menu a:hover { background: var(--gold-50); color: var(--gold-700); }
.nav__menu a small { display: block; font-size: .76rem; color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }

.lang-toggle {
  display: inline-flex; padding: 3px; border-radius: 999px;
  background: rgba(120, 120, 130, .13); border: 1px solid transparent;
}
.site-header:not(.is-solid):not(.on-light) .lang-toggle { background: rgba(255, 255, 255, .16); }
.lang-toggle button {
  border: 0; background: transparent; cursor: pointer; border-radius: 999px;
  padding: .3rem .64rem; font-family: var(--font-body); font-size: .78rem; font-weight: 700;
  letter-spacing: .04em; color: var(--muted); transition: background .2s, color .2s;
}
.site-header:not(.is-solid):not(.on-light) .lang-toggle button { color: rgba(255, 255, 255, .75); }
/* The selected language must stay gold-on-white in every header state. The
   dark-header rule above is more specific than a bare [aria-pressed] selector,
   so match its specificity here. */
.lang-toggle button[aria-pressed="true"],
.site-header:not(.is-solid):not(.on-light) .lang-toggle button[aria-pressed="true"] {
  background: var(--paper); color: var(--gold-700); box-shadow: var(--sh-sm);
}

.nav-burger {
  display: none; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer;
  border-radius: 50%; align-items: center; justify-content: center;
}
.nav-burger span {
  display: block; position: relative; width: 20px; height: 2px; border-radius: 2px;
  background: var(--ink-800); transition: background .2s;
}
.nav-burger span::before, .nav-burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; border-radius: 2px;
  background: inherit; transition: transform .28s var(--ease);
}
.nav-burger span::before { top: -6px; } .nav-burger span::after { top: 6px; }
.site-header:not(.is-solid):not(.on-light) .nav-burger span { background: #FFF; }
body.nav-open .nav-burger span { background: transparent !important; }
body.nav-open .nav-burger span::before { transform: translateY(6px) rotate(45deg); background: var(--ink-800); }
body.nav-open .nav-burger span::after  { transform: translateY(-6px) rotate(-45deg); background: var(--ink-800); }

@media (max-width: 1024px) {
  .nav-burger { display: flex; }
  .nav {
    position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1.2rem 1.5rem 3rem; overflow-y: auto;
    background: var(--cream);
    transform: translateX(100%); transition: transform .35s var(--ease);
  }
  body.nav-open .nav { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-header { background: var(--cream); box-shadow: none; }
  .nav__link { color: var(--ink-800) !important; font-size: 1.05rem; padding: .8rem .6rem; border-radius: var(--r-sm); }
  .nav__menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: 0; border-left: 2px solid var(--line);
    border-radius: 0; margin: 0 0 .5rem .7rem; padding: 0 0 0 .6rem; min-width: 0;
  }
  .nav__caret { display: none; }
  .header-actions .btn { display: none; }
}

/* --- 8. Hero ------------------------------------------------------------ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  overflow: hidden; background: var(--ink-900); isolation: isolate;
}
.hero__sky {
  position: absolute; inset: 0; z-index: -5;
  background:
    radial-gradient(120% 78% at 50% 108%, #FFD27A 0%, #FF9A3C 17%, #E4702E 31%, #8E3A34 48%, #3A2340 66%, #131A2E 82%, #0A0C11 100%);
}
.hero__glow {
  position: absolute; left: 50%; bottom: -34vh; z-index: -4;
  width: min(150vw, 1500px); aspect-ratio: 1; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 219, 140, .55) 0%, rgba(255, 154, 60, .24) 34%, transparent 66%);
  filter: blur(14px); animation: breathe 9s ease-in-out infinite;
}
.hero__sun {
  position: absolute; left: 50%; bottom: -14vmin; z-index: -3;
  width: 46vmin; height: 46vmin; border-radius: 50%;
  transform: translate(-50%, 100%);
  background: radial-gradient(circle at 50% 42%, #FFFDF2 0%, #FFF0B8 26%, var(--gold-300) 52%, var(--sun) 82%, rgba(255,107,53,0) 100%);
  box-shadow: 0 0 120px 40px rgba(255, 176, 74, .42);
  animation: sunrise 2.6s var(--ease) .25s forwards;
}
.hero__rays {
  position: absolute; left: 50%; bottom: -14vmin; z-index: -4;
  width: 165vmin; height: 165vmin; transform: translate(-50%, 50%);
  background: conic-gradient(from 0deg,
    rgba(255, 214, 138, .16) 0deg 3deg, transparent 3deg 26deg,
    rgba(255, 214, 138, .11) 26deg 28deg, transparent 28deg 51deg,
    rgba(255, 214, 138, .16) 51deg 55deg, transparent 55deg 78deg,
    rgba(255, 214, 138, .10) 78deg 80deg, transparent 80deg 104deg,
    rgba(255, 214, 138, .15) 104deg 108deg, transparent 108deg 131deg,
    rgba(255, 214, 138, .11) 131deg 133deg, transparent 133deg 157deg,
    rgba(255, 214, 138, .16) 157deg 161deg, transparent 161deg 184deg,
    rgba(255, 214, 138, .10) 184deg 186deg, transparent 186deg 210deg,
    rgba(255, 214, 138, .15) 210deg 214deg, transparent 214deg 237deg,
    rgba(255, 214, 138, .11) 237deg 239deg, transparent 239deg 263deg,
    rgba(255, 214, 138, .16) 263deg 267deg, transparent 267deg 290deg,
    rgba(255, 214, 138, .10) 290deg 292deg, transparent 292deg 316deg,
    rgba(255, 214, 138, .15) 316deg 320deg, transparent 320deg 343deg,
    rgba(255, 214, 138, .11) 343deg 345deg, transparent 345deg 360deg);
  mask-image: radial-gradient(circle, #000 8%, rgba(0,0,0,.65) 30%, transparent 62%);
  -webkit-mask-image: radial-gradient(circle, #000 8%, rgba(0,0,0,.65) 30%, transparent 62%);
  opacity: 0; animation: raysIn 3s ease-out 1s forwards, spin 90s linear infinite;
}
#hero-canvas { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero__horizon {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: 22vh; min-height: 120px;
  background: linear-gradient(180deg, transparent, rgba(10, 12, 17, .55) 55%, var(--cream) 99%);
}
.hero__ridge { position: absolute; left: 0; right: 0; bottom: -1px; z-index: -1; width: 100%; height: auto; }

.hero__inner { position: relative; padding: calc(var(--nav-h) + 4rem) 0 6rem; width: 100%; }
.hero__content { max-width: 840px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; padding: .42rem 1rem;
  border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #FFF0CC;
}
.hero__eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold-300);
  box-shadow: 0 0 0 0 rgba(242, 201, 98, .7); animation: pulse 2.4s infinite;
}
.hero h1 {
  font-size: clamp(2.7rem, 8vw, 5.6rem); line-height: 1.04; color: #FFF;
  margin: 1.4rem 0 .5rem; letter-spacing: -.025em; text-wrap: balance;
}
.hero__shine {
  background: linear-gradient(100deg, var(--gold-200) 8%, #FFF8DF 28%, var(--gold-300) 46%, var(--sun) 66%, var(--gold-200) 88%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shine 7s linear infinite;
}
.hero__sub {
  font-size: clamp(1.02rem, 2.1vw, 1.32rem); line-height: 1.68; color: rgba(255, 255, 255, .84);
  max-width: 620px; margin: 0 0 2.2rem; text-wrap: pretty;
}
.hero .btn-row { margin-bottom: 3.2rem; }

.hero__stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 1rem 1.6rem; max-width: 760px;
  padding-top: 1.8rem; border-top: 1px solid rgba(255, 255, 255, .18);
  /* The rising sun sits directly behind this row — keep the text readable
     against the brightest part of the gradient. */
  text-shadow: 0 1px 12px rgba(10, 12, 17, .75), 0 1px 3px rgba(10, 12, 17, .6);
}
.hero__stat b {
  display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 3.3vw, 2.25rem);
  font-weight: 800; color: var(--gold-200); line-height: 1.1;
  white-space: nowrap;
}
/* Spans *inside* <b> are part of the number and must inherit its size — only
   direct children of .hero__stat are captions. */
.hero__stat > span { font-size: .83rem; color: rgba(255, 255, 255, .66); line-height: 1.45; display: block; }
.hero__stat b span { font-size: inherit; color: inherit; }
.hero__stat b sup { font-size: .55em; }

.hero__scroll {
  position: absolute; right: 2.5rem; bottom: 2rem;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .45);
}
.hero__scroll i {
  display: block; width: 1px; height: 46px; background: linear-gradient(180deg, transparent, rgba(255,255,255,.7));
  animation: scrollHint 2.2s ease-in-out infinite;
}
@media (max-width: 720px) {
  .hero__scroll { display: none; }
  .hero__inner { padding-top: calc(var(--nav-h) + 2.5rem); padding-bottom: 4rem; }
}

/* Page hero (inner pages) */
.page-hero {
  position: relative; padding: calc(var(--nav-h) + 4.5rem) 0 3.6rem;
  background: linear-gradient(165deg, var(--ink-900) 0%, #2A1B2E 46%, #6B3524 78%, #B2591F 100%);
  overflow: hidden; isolation: isolate;
}
.page-hero::after {
  content: ""; position: absolute; z-index: -1; right: -12vw; bottom: -46vh;
  width: min(85vw, 820px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(255,243,196,.8) 0%, rgba(233,178,60,.45) 28%, rgba(255,154,60,.18) 52%, transparent 72%);
  filter: blur(8px); animation: breathe 11s ease-in-out infinite;
}
.page-hero h1 { color: #FFF; margin-bottom: .7rem; max-width: 900px; text-wrap: balance; }
.page-hero p { color: rgba(255, 255, 255, .8); max-width: 680px; font-size: 1.08rem; margin-bottom: 0; }
.page-hero .eyebrow { color: var(--gold-300); }

.crumbs { font-size: .82rem; color: rgba(255, 255, 255, .55); margin-bottom: 1.3rem; }
.crumbs a { color: rgba(255, 255, 255, .78); }
.crumbs a:hover { color: var(--gold-300); }
.crumbs span { margin: 0 .45rem; opacity: .5; }

/* --- 9. Cards ----------------------------------------------------------- */
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 1.8rem; border-radius: var(--r-lg);
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--sh-sm); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-400), var(--sun));
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
a.card:hover, .card--hover:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--gold-200); }
a.card:hover::before, .card--hover:hover::before { transform: scaleX(1); }
.card h3 { margin-bottom: .55rem; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.card__icon {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 1.15rem;
  display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(140deg, var(--gold-100), var(--gold-200));
  color: var(--gold-700); font-size: 1.35rem;
}
.card__meta {
  margin-top: auto; padding-top: 1.2rem;
  display: flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 650; color: var(--gold-600);
}
.card__num {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 800;
  line-height: 1; color: var(--gold-200); margin-bottom: .7rem;
}
.card--dark {
  background: linear-gradient(160deg, var(--ink-800), var(--ink-900));
  border-color: rgba(255, 255, 255, .09); color: #B9BFD0;
}
.card--dark h3 { color: #FFF; } .card--dark p { color: var(--muted-d); }
.card--flat { background: transparent; border: 0; box-shadow: none; padding: 0; }
.card--flat::before { display: none; }

.tag {
  display: inline-block; padding: .22rem .68rem; border-radius: 999px;
  font-size: .73rem; font-weight: 700; letter-spacing: .05em;
  background: var(--gold-50); color: var(--gold-700); border: 1px solid var(--gold-200);
  margin-bottom: .9rem; align-self: flex-start;
}
.tag--lock { background: #F2F3F7; color: var(--ink-600); border-color: #DFE2EA; }

/* --- 10. Stats / numbers ------------------------------------------------ */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.4rem; }
.stat {
  padding: 1.7rem 1.4rem; border-radius: var(--r-lg); text-align: center;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--sh-sm);
}
.section--dark .stat { background: rgba(255, 255, 255, .045); border-color: rgba(255, 255, 255, .1); }
.stat b {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 2.9rem); line-height: 1;
  background: linear-gradient(135deg, var(--gold-500), var(--sun));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: .5rem;
}
.section--dark .stat b { background: linear-gradient(135deg, var(--gold-200), var(--sun)); -webkit-background-clip: text; background-clip: text; }
.stat span { font-size: .87rem; color: var(--muted); line-height: 1.5; }
.section--dark .stat span { color: var(--muted-d); }

/* --- 11. Timeline ------------------------------------------------------- */
.timeline { position: relative; padding-left: 2.2rem; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: .5rem; bottom: .5rem; width: 2px;
  background: linear-gradient(180deg, var(--gold-300), var(--sun), transparent);
}
.timeline__item { position: relative; padding-bottom: 2rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: -2.2rem; top: .45rem;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--cream); border: 3px solid var(--gold-400);
  box-shadow: 0 0 0 4px rgba(233, 178, 60, .16);
}
.section--dark .timeline__item::before { background: var(--ink-900); }
.timeline__year {
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  color: var(--gold-600); display: block; margin-bottom: .2rem;
}
.section--dark .timeline__year { color: var(--gold-300); }
.timeline__item h4 { margin-bottom: .3rem; }
.timeline__item p { margin-bottom: 0; font-size: .95rem; color: var(--muted); }
.section--dark .timeline__item p { color: var(--muted-d); }

/* --- 12. Tables --------------------------------------------------------- */
.table-wrap {
  overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--paper); box-shadow: var(--sh-sm); margin: 0 0 1.6rem;
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
thead th {
  background: linear-gradient(135deg, var(--gold-50), var(--gold-100));
  color: var(--gold-700); font-weight: 700; text-align: left;
  padding: .85rem 1rem; white-space: nowrap; border-bottom: 1px solid var(--gold-200);
}
tbody td { padding: .82rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.6; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--gold-50); }
td.num, th.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.t-hl { color: var(--gold-700); font-weight: 700; }

/* --- 13. Article -------------------------------------------------------- */
.article { padding: clamp(2.6rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.article__body { font-size: 1.06rem; line-height: 1.85; }
.article__body h2 {
  margin-top: 2.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  font-size: clamp(1.45rem, 2.8vw, 1.95rem);
}
.article__body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.article__body h3 { margin-top: 2rem; color: var(--ink-800); }
.article__body ul { padding-left: 1.2em; }
.article__body li::marker { color: var(--gold-500); }
.article__body img { border-radius: var(--r-md); margin: 1.6rem 0; }

.callout {
  position: relative; padding: 1.3rem 1.5rem 1.3rem 1.65rem; margin: 1.8rem 0;
  border-radius: var(--r-md); background: var(--gold-50);
  border: 1px solid var(--gold-200); border-left: 4px solid var(--gold-400);
  font-size: .98rem; line-height: 1.72;
}
.callout > *:last-child { margin-bottom: 0; }
.callout__title {
  display: flex; align-items: center; gap: .5rem; font-weight: 700;
  color: var(--gold-700); margin-bottom: .5rem; font-size: .95rem;
}
.callout--note { background: #F4F6FA; border-color: #DEE3EC; border-left-color: #9AA6BE; }
.callout--note .callout__title { color: var(--ink-600); }
.callout--warn { background: #FEF6F1; border-color: #F6DCC9; border-left-color: var(--ember); }
.callout--warn .callout__title { color: #C1481C; }

.keyline {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem; margin: 1.8rem 0;
}
.keyline > div {
  padding: 1.1rem 1.2rem; border-radius: var(--r-md);
  background: var(--paper); border: 1px solid var(--line);
}
.keyline b { display: block; color: var(--gold-700); font-size: 1.28rem; font-family: var(--font-display); margin-bottom: .2rem; }
.keyline span { font-size: .87rem; color: var(--muted); line-height: 1.5; }

.pro-con { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.2rem; margin: 1.6rem 0; }
.pro-con > div { padding: 1.3rem 1.45rem; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--paper); }
.pro-con h4 { display: flex; align-items: center; gap: .45rem; margin-bottom: .7rem; font-size: 1rem; }
.pro-con ul { margin-bottom: 0; padding-left: 1.15em; font-size: .94rem; }
.pro-con .pros { border-left: 4px solid #3F9E6B; }
.pro-con .pros h4 { color: #2E7A52; }
.pro-con .cons { border-left: 4px solid var(--ember); }
.pro-con .cons h4 { color: #C1481C; }

.toc {
  padding: 1.35rem 1.5rem; border-radius: var(--r-md);
  background: var(--sand); border: 1px solid var(--line); margin-bottom: 2.4rem;
}
.toc strong { display: block; margin-bottom: .6rem; font-size: .88rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-700); }
.toc ol { margin: 0; padding-left: 1.2em; font-size: .95rem; }
.toc li { margin-bottom: .3rem; }
.toc a { color: var(--ink-700); } .toc a:hover { color: var(--gold-700); }

.article-nav {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  margin-top: 3.4rem; padding-top: 1.8rem; border-top: 1px solid var(--line);
}
.article-nav a { display: flex; flex-direction: column; gap: .15rem; font-size: .95rem; max-width: 46%; }
.article-nav a span { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 620px) { .article-nav a { max-width: 100%; } }

.disclaimer {
  margin-top: 3rem; padding: 1.2rem 1.4rem; border-radius: var(--r-md);
  background: #F4F5F8; border: 1px solid #E3E6EC;
  font-size: .82rem; line-height: 1.68; color: var(--muted);
}
.disclaimer > *:last-child { margin-bottom: 0; }

/* --- 14. Feature rows --------------------------------------------------- */
.feature-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1.8rem, 4vw, 3.4rem); align-items: center;
}
.feature-row + .feature-row { margin-top: clamp(3rem, 6vw, 5rem); }
.feature-row--flip > *:first-child { order: 2; }
@media (max-width: 760px) { .feature-row--flip > *:first-child { order: 0; } }

.visual {
  position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, var(--ink-800), #46261F 55%, var(--gold-600));
  display: grid; place-items: center; box-shadow: var(--sh-lg);
}
.visual::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 82%, rgba(255, 214, 138, .5), transparent 58%);
}
.visual__label {
  position: relative; z-index: 1; text-align: center; padding: 1.5rem;
  font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 2rem); color: #FFF6DC;
}
.visual__label small { display: block; font-family: var(--font-body); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-300); margin-top: .6rem; }

/* Photo placeholder tiles (team events) */
.photo {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 3 / 2; display: grid; place-items: center; text-align: center;
  background: linear-gradient(145deg, var(--gold-100), var(--sand) 55%, var(--gold-200));
  border: 1px dashed var(--gold-300); color: var(--gold-700);
  font-size: .85rem; padding: 1rem; line-height: 1.5;
}
.photo--tall { aspect-ratio: 3 / 4; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* --- 15. Steps ---------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 1rem; }
.step {
  position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 1.1rem; align-items: start;
  padding: 1.25rem 1.4rem; border-radius: var(--r-md);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--sh-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover { transform: translateX(4px); box-shadow: var(--sh-md); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; color: #2C1F02;
  background: linear-gradient(140deg, var(--gold-300), var(--gold-500));
}
.step h4 { margin-bottom: .25rem; }
.step p { margin-bottom: 0; font-size: .94rem; color: var(--muted); }
.section--dark .step { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
.section--dark .step p { color: var(--muted-d); }

/* --- 16. Password gate -------------------------------------------------- */
html.gated body > *:not(.gate):not(.site-header) { display: none !important; }
html.gated .site-header { display: none !important; }
.gate {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center; padding: 1.5rem;
  background: radial-gradient(120% 90% at 50% 112%, #FFC46A 0%, #E4702E 22%, #7A3340 45%, #1A1C2B 72%, #0A0C11 100%);
}
.gate__card {
  width: min(100%, 430px); padding: clamp(1.8rem, 4vw, 2.6rem);
  border-radius: var(--r-xl); text-align: center;
  background: rgba(255, 252, 243, .97);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .45);
  animation: fadeUp .6s var(--ease) both;
}
.gate__mark {
  width: 56px; height: 56px; margin: 0 auto 1.2rem; border-radius: 50%;
  background: radial-gradient(circle at 50% 60%, #FFF6D6, var(--gold-300) 45%, var(--sun));
  box-shadow: 0 0 34px rgba(233, 178, 60, .6);
}
.gate__card h2 { font-size: 1.5rem; margin-bottom: .4rem; }
.gate__card p { font-size: .92rem; color: var(--muted); margin-bottom: 1.5rem; }
.gate__form { display: flex; flex-direction: column; gap: .7rem; }
.gate__form input {
  width: 100%; padding: .85rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper);
  font-family: var(--font-body); font-size: 1rem; text-align: center; color: var(--ink-800);
  transition: border-color .2s, box-shadow .2s;
}
.gate__form input:focus { outline: 0; border-color: var(--gold-400); box-shadow: 0 0 0 4px rgba(233, 178, 60, .2); }
.gate__err { font-size: .87rem; color: #C1481C; min-height: 1.3em; margin: 0; }
.gate__foot { margin-top: 1.3rem; font-size: .8rem; color: var(--muted); }
.gate.shake .gate__card { animation: shake .45s; }

/* --- 17. Library / training ------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.6rem; }
.chip {
  padding: .45rem 1rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--paper);
  font-family: var(--font-body); font-size: .86rem; font-weight: 600; color: var(--muted);
  transition: all .2s;
}
.chip:hover { border-color: var(--gold-300); color: var(--gold-700); }
.chip[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  border-color: transparent; color: #2C1F02; box-shadow: var(--sh-gold);
}
.search-box { position: relative; margin-bottom: 1.2rem; max-width: 420px; }
.search-box input {
  width: 100%; padding: .78rem 1.1rem .78rem 2.7rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper);
  font-family: var(--font-body); font-size: .95rem; color: var(--ink-800);
}
.search-box input:focus { outline: 0; border-color: var(--gold-400); box-shadow: 0 0 0 4px rgba(233, 178, 60, .18); }
.search-box::before {
  content: "⌕"; position: absolute; left: 1.05rem; top: 50%; transform: translateY(-50%);
  font-size: 1.25rem; color: var(--muted); pointer-events: none;
}

.file-row {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 1rem; align-items: center;
  padding: .95rem 1.2rem; border-radius: var(--r-md);
  background: var(--paper); border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.file-row + .file-row { margin-top: .6rem; }
.file-row:hover { border-color: var(--gold-300); box-shadow: var(--sh-md); transform: translateX(3px); }
.file-row__ext {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  font-size: .66rem; font-weight: 800; letter-spacing: .02em; color: #FFF;
  background: var(--ink-600);
}
.file-row__ext[data-ext="PDF"] { background: #C0392B; }
.file-row__ext[data-ext="XLSX"], .file-row__ext[data-ext="CSV"] { background: #217346; }
.file-row__ext[data-ext="DOCX"] { background: #2B5797; }
.file-row__ext[data-ext="PPTX"] { background: #C55A11; }
.file-row__ext[data-ext="LINK"] { background: var(--gold-600); }
.file-row__name { font-weight: 600; color: var(--ink-800); font-size: .97rem; line-height: 1.4; }
.file-row__meta { font-size: .8rem; color: var(--muted); }
.file-row__cta { font-size: .85rem; font-weight: 650; color: var(--gold-600); white-space: nowrap; }
.file-row.is-todo { border-style: dashed; opacity: .82; }
@media (max-width: 560px) {
  .file-row { grid-template-columns: 40px 1fr; }
  .file-row__cta { grid-column: 2; }
}

.video-card { padding: 0; overflow: hidden; }
.video-card__thumb {
  position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--ink-800), #4A2A20 60%, var(--gold-600));
}
.video-card__thumb::after {
  content: ""; width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255, 252, 243, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23B87C12'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/24px no-repeat;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .3); transition: transform .3s var(--ease);
}
.video-card:hover .video-card__thumb::after { transform: scale(1.12); }
.video-card__dur {
  position: absolute; right: .6rem; bottom: .6rem; padding: .12rem .5rem; border-radius: 5px;
  background: rgba(10, 12, 17, .78); color: #FFF; font-size: .74rem; font-variant-numeric: tabular-nums;
}
.video-card__body { padding: 1.1rem 1.3rem 1.3rem; }
.video-card__body h4 { margin-bottom: .3rem; font-size: 1rem; }
.video-card__body p { font-size: .84rem; color: var(--muted); margin-bottom: 0; }

.empty-note {
  padding: 2.5rem 1.5rem; text-align: center; border-radius: var(--r-md);
  border: 1px dashed var(--line); color: var(--muted); font-size: .92rem;
}

/* --- 18. Forms ---------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 650; color: var(--ink-700); }
.field input, .field select, .field textarea {
  padding: .75rem 1rem; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--paper); font-family: var(--font-body); font-size: .97rem; color: var(--ink-800);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--gold-400); box-shadow: 0 0 0 4px rgba(233, 178, 60, .18);
}
.form-note { font-size: .82rem; color: var(--muted); margin-top: .8rem; }

/* --- 19. CTA band ------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(3.2rem, 7vw, 5.5rem) 0; text-align: center;
  background: linear-gradient(140deg, var(--ink-900) 0%, #33203A 42%, #8A4322 74%, var(--gold-600) 100%);
}
.cta-band::after {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 120%;
  width: min(120vw, 1100px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 233, 176, .55), transparent 62%);
  animation: breathe 10s ease-in-out infinite;
}
.cta-band h2 { color: #FFF; margin-bottom: .8rem; }
.cta-band p { color: rgba(255, 255, 255, .82); max-width: 560px; margin: 0 auto 2rem; }

/* --- 20. Footer --------------------------------------------------------- */
.site-footer { background: var(--ink-900); color: var(--muted-d); padding: 3.6rem 0 2rem; font-size: .92rem; }
.site-footer a { color: rgba(255, 255, 255, .76); }
.site-footer a:hover { color: var(--gold-300); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(auto-fit, minmax(150px, 1fr)); gap: 2.2rem; }
.footer-brand .brand__name { color: #FFF; }
.footer-brand p { margin: 1rem 0 0; font-size: .9rem; max-width: 320px; color: var(--muted-d); line-height: 1.7; }
.footer-col h5 {
  font-family: var(--font-body); font-size: .76rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold-300); margin: 0 0 .9rem; font-weight: 700;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-bottom {
  margin-top: 2.8rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; justify-content: space-between;
  font-size: .82rem; color: #6E7383;
}
.footer-legal { max-width: 900px; margin-top: 1.4rem; font-size: .76rem; line-height: 1.7; color: #5D6272; }

/* --- 21. Reveal animations ---------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .09s; } .reveal-d2 { transition-delay: .18s; }
.reveal-d3 { transition-delay: .27s; } .reveal-d4 { transition-delay: .36s; }
.reveal-d5 { transition-delay: .45s; } .reveal-d6 { transition-delay: .54s; }

.anim-up { animation: fadeUp .9s var(--ease) both; }
.a-d1 { animation-delay: .15s; } .a-d2 { animation-delay: .3s; }
.a-d3 { animation-delay: .45s; } .a-d4 { animation-delay: .6s; } .a-d5 { animation-delay: .78s; }

/* --- 22. Keyframes ------------------------------------------------------ */
@keyframes sunrise {
  from { transform: translate(-50%, 100%); opacity: .2; }
  to   { transform: translate(-50%, 18%); opacity: 1; }
}
@keyframes raysIn { to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__rays { transform-origin: 50% 50%; }
@keyframes breathe { 0%, 100% { opacity: .78; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.07); } }
@keyframes shine { to { background-position: -250% 0; } }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(242, 201, 98, .65); }
  70%  { box-shadow: 0 0 0 11px rgba(242, 201, 98, 0); }
  100% { box-shadow: 0 0 0 0 rgba(242, 201, 98, 0); }
}
@keyframes scrollHint { 0%, 100% { opacity: .25; transform: scaleY(.5); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes shake {
  10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); }
}

/* The .hero__glow / .cta-band::after breathe keyframes use translateX(-50%); the
   cta variant needs its own to keep the Y offset. */
.cta-band::after { animation-name: breatheCta; }
@keyframes breatheCta {
  0%, 100% { opacity: .7; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;  transform: translate(-50%, -50%) scale(1.08); }
}

/* --- 23. Motion / print ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero__sun { transform: translate(-50%, 18%); }
  .hero__rays { opacity: 1; }
}

@media print {
  .site-header, .site-footer, .cta-band, .hero__scroll, .gate { display: none !important; }
  body { background: #FFF; color: #000; font-size: 11pt; }
  .page-hero { background: none !important; padding: 0 0 1rem; }
  .page-hero h1, .page-hero p { color: #000 !important; }
  .card, .table-wrap, .callout { break-inside: avoid; }
}
