/* Layout: dark single-brand site. Full-width bands, centered 1160px column, steel-grid hero, 2x2 business cards. */
:root {
  --onyx: #15191D;
  --graphite: #252B30;
  --steel: #1C2126;
  --gold: #C49A52;
  --gold-soft: rgba(196,154,82,.14);
  --silver: #B8BEC4;
  --ivory: #F4F2EC;
  --muted: #8F969D;
  --line: rgba(184,190,196,.14);
  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { background: var(--onyx); color: var(--ivory); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: 1160px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }



/* Header */
header.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(21,25,29,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.site .wrap { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 48px; height: 48px; flex: none; border-radius: 50%; display: block; }
.brand-name { font: 800 14px/1.05 var(--font-display); letter-spacing: .2em; }
.brand-name span { display: block; font-weight: 500; font-size: 10px; letter-spacing: .34em; color: var(--silver); margin-top: 4px; }
nav.main ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
nav.main a { font: 500 14px var(--font-display); text-decoration: none; color: var(--silver); letter-spacing: .04em; padding-block: 6px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
nav.main a:hover, nav.main a[aria-current] { color: var(--ivory); border-color: var(--gold); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--ivory); width: 44px; height: 44px; border-radius: 4px; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: currentColor; margin: auto; position: relative; content: ""; }
.menu-btn span::before { position: absolute; top: -6px; } .menu-btn span::after { position: absolute; top: 6px; }

/* Shared type */
.eyebrow { font: 600 12px/1.4 var(--font-display); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 0 0 16px; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; }
h2 { font-weight: 800; font-size: clamp(28px, 4vw, 40px); line-height: 1.12; letter-spacing: -.01em; text-transform: uppercase; }
.lede { color: var(--silver); max-width: 62ch; font-size: 17px; margin: 18px 0 0; }
section { padding-block: 96px; border-top: 1px solid var(--line); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; font: 600 14px var(--font-display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border-radius: 2px; transition: background .2s, color .2s, border-color .2s; cursor: pointer; border: 1px solid transparent; }
.btn-gold { background: var(--gold); color: var(--onyx); }
.btn-gold:hover { background: #d3ab66; }
.btn-line { border-color: rgba(184,190,196,.4); color: var(--ivory); background: transparent; }
.btn-line:hover { border-color: var(--gold); color: var(--gold); }

/* Hero */
.hero { position: relative; overflow: hidden; border-top: 0; padding-block: 112px 104px;
  background:
    radial-gradient(ellipse 60% 70% at 78% 40%, rgba(196,154,82,.16), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 119px, rgba(184,190,196,.05) 119px 120px),
    linear-gradient(180deg, var(--steel), var(--onyx)); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: center; }
.hero h1 { font-weight: 800; font-size: clamp(38px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -.02em; text-transform: uppercase; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .tag { font: 500 clamp(16px, 2vw, 19px)/1.5 var(--font-display); color: var(--ivory); margin: 24px 0 0; }
.hero .lede { margin-top: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.emblem { justify-self: end; width: 100%; max-width: 360px; }
.emblem img { width: 100%; height: auto; display: block; border-radius: 50%; box-shadow: 0 0 0 1px rgba(196,154,82,.25), 0 0 80px rgba(196,154,82,.22), 0 30px 60px rgba(0,0,0,.5); }

/* Businesses */
.biz-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; }
.biz-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.biz { position: relative; background: var(--graphite); border: 1px solid var(--line); padding: 32px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px; min-width: 0; overflow: hidden; transition: border-color .25s; }
.biz:hover { border-color: rgba(196,154,82,.5); }
.biz-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.biz-icon { width: 48px; height: 48px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--gold); flex: none; }
.biz-icon svg { width: 26px; height: 26px; }
.status { font: 600 11px/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; padding: 7px 10px; border-radius: 99px; border: 1px solid; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-active { color: #8FC79A; border-color: rgba(143,199,154,.4); }
.s-dev { color: var(--gold); border-color: rgba(196,154,82,.45); }
.s-plan { color: var(--silver); border-color: rgba(184,190,196,.35); }
.s-future { color: var(--muted); border-color: rgba(143,150,157,.3); border-style: dashed; }
.biz h3 { font-size: 22px; font-weight: 700; letter-spacing: .01em; }
.biz .industry { font: 500 12px var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.biz p { margin: 0; color: var(--silver); font-size: 15px; }
.biz .foot { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.biz .foot b { color: var(--ivory); font-weight: 600; }
.apps { display: flex; flex-wrap: wrap; gap: 8px; }
.app { font-size: 13px; padding: 6px 10px; background: var(--onyx); border: 1px solid var(--line); border-radius: 2px; }
.app b { color: var(--ivory); }
.honeycomb { position: absolute; right: -20px; bottom: -30px; width: 180px; opacity: .08; pointer-events: none; }

/* Xploreal: its own identity, taken from the app's theme.ts (not Horner gold) */
.xp { --xp-bg: #0A0D0C; --xp-surface: #141917; --xp-raised: #1B211E; --xp-text: #F1F5F3; --xp-muted: #8B9591; --xp-teal: #2DD4BF; --xp-green: #22C55E; --xp-blue: #3B82F6; --xp-border: #232B28;
  --xp-grad: linear-gradient(90deg, #22C55E, #2DD4BF, #3B82F6);
  position: relative; overflow: hidden; color: var(--xp-text); border-top: 0;
  background:
    radial-gradient(ellipse 50% 60% at 80% 50%, rgba(45,212,191,.14), transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 100%, rgba(59,130,246,.10), transparent 70%),
    linear-gradient(160deg, #050706, #0B1613 55%, #0A1A1F); }
.xp::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--xp-grad); }
.xp .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.xp-from { display: flex; align-items: center; gap: 10px; font: 600 12px var(--font-display); letter-spacing: .2em; text-transform: uppercase; color: var(--xp-muted); margin: 0 0 8px; }
.xp-from b { color: var(--gold); font-weight: 600; }
.xp-logo { display: block; width: 100%; max-width: 360px; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px rgba(45,212,191,.12), 0 20px 50px rgba(0,0,0,.45); margin-top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.xp-tag { font: 700 clamp(18px, 2.2vw, 22px)/1.35 var(--font-display); margin: 8px 0 0; background: var(--xp-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.emblems { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 14px 8px; margin-top: 28px; }
.emblems .stat { margin: 0; padding: 6px 0; display: grid; justify-items: center; gap: 6px; background: none; border: 0; border-radius: 10px; color: inherit; cursor: pointer; }
.emblems img { width: 48px; height: 48px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); transition: transform .2s; }
.emblems .stat:hover img, .emblems .stat:focus-visible img, .emblems .stat.on img { transform: translateY(-3px) scale(1.06); }
.emblems .stat span { font: 700 10px var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--xp-muted); }
.xp p.lede { color: var(--xp-muted); }
.xp-feats { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.xp-feats li { background: rgba(20,25,23,.75); border: 1px solid var(--xp-border); border-radius: 12px; padding: 16px; min-width: 0; }
.xp-feats b { display: block; font: 700 15px var(--font-display); margin-bottom: 4px; }
.xp-feats span { font-size: 14px; color: var(--xp-muted); }
.xp-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.xp-stats span { font: 700 11px var(--font-display); letter-spacing: .1em; text-transform: uppercase; padding: 7px 11px; border-radius: 999px; border: 1px solid rgba(45,212,191,.35); color: var(--xp-teal); }
.xp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 32px; }
.btn-xp { background: var(--xp-grad); color: #04110D; border-radius: 999px; box-shadow: 0 8px 24px rgba(45,212,191,.25); }
.btn-xp:hover { filter: brightness(1.08); }
.xp-soon { font-size: 14px; color: var(--xp-muted); }

/* Phone: a sample screen, made from the app's own tokens */
.phone-wrap { display: grid; justify-items: center; gap: 12px; }
.phone { width: 100%; max-width: 300px; aspect-ratio: 9 / 18.5; border-radius: 40px; padding: 12px; background: linear-gradient(145deg, #7B8593, #E8EDF0 45%, #5B6570); box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 60px rgba(45,212,191,.12); }
/* Recreates the app's Home screen (home-view.tsx): world backdrop, character right, pet left, progress top-left, quest button bottom */
.screen { position: relative; height: 100%; border-radius: 30px; overflow: hidden; background: #050706; container-type: inline-size; }
.scr-world { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scr-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,7,6,.62), rgba(5,7,6,.3) 45%, rgba(5,7,6,0) 75%), linear-gradient(180deg, rgba(5,7,6,.35), rgba(5,7,6,0) 30%, rgba(5,7,6,0) 65%, rgba(5,7,6,.7)); }
.scr-char { position: absolute; right: -4%; bottom: 0; top: 22%; width: 85%; height: 78%; object-fit: contain; object-position: bottom right; }
.scr-pet { position: absolute; left: -2%; bottom: 13%; width: 56%; height: 34%; display: flex; flex-direction: column; align-items: center; }
.scr-pet img { flex: 1; min-height: 0; width: 100%; object-fit: contain; object-position: bottom; }
.pet-tag { background: rgba(5,7,6,.6); border-radius: 10px; padding: 1px 8px; color: #FDE047; font: 900 4.4cqw/1.4 var(--font-display); letter-spacing: .08em; margin-bottom: 2px; }
.scr-ui { position: absolute; inset: 0; padding: 7cqw 6cqw 6cqw; display: flex; flex-direction: column; gap: 1cqw; }
.scr-brand { display: flex; align-items: center; gap: 2.5cqw; font: 900 5cqw var(--font-display); letter-spacing: .2em; }
.scr-brand img { width: 8cqw; height: 8cqw; }
.scr-prog { max-width: 72%; margin-top: 3cqw; display: grid; gap: 1cqw; }
.scr-hi { font: 700 3.6cqw var(--font-display); letter-spacing: .08em; color: rgba(255,255,255,.65); }
.scr-sub { font: 700 3.2cqw var(--font-display); letter-spacing: .05em; color: rgba(255,255,255,.45); margin-bottom: 1cqw; }
.scr-lvl { font: 900 11cqw/1 var(--font-display); color: #fff; }
.scr-rank { font: 800 4.6cqw var(--font-display); letter-spacing: .12em; color: var(--xp-teal); margin-bottom: 2cqw; }
.xpbar { height: 2cqw; border-radius: 99px; background: rgba(255,255,255,.18); overflow: hidden; }
.xpbar i { display: block; height: 100%; background: var(--xp-grad); border-radius: inherit; }
.scr-xp { font: 600 3.6cqw var(--font-body); color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }
.scr-streak { justify-self: start; margin-top: 2cqw; display: inline-flex; align-items: center; gap: 1.6cqw; background: rgba(5,7,6,.5); border: 1px solid rgba(255,255,255,.12); border-radius: 99px; padding: 1.4cqw 3.2cqw; font: 700 3.6cqw var(--font-body); }
.scr-streak::before { content: ""; width: 2.2cqw; height: 2.8cqw; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #F59E0B; }
.scr-quest { margin-top: auto; padding: 1.5px; border: 0; border-radius: 4.5cqw; background: var(--xp-grad); color: inherit; text-align: left; cursor: pointer; font: inherit; width: 100%; transition: transform .15s, filter .2s; }
.scr-quest:hover { filter: brightness(1.15); } .scr-quest:active { transform: scale(.97); }
.scr-quest-in { background: rgba(10,13,12,.94); border-radius: calc(4.5cqw - 1.5px); padding: 3.5cqw; display: flex; align-items: center; gap: 3cqw; }
.scr-quest i { width: 10cqw; height: 10cqw; border-radius: 50%; border: 1px solid rgba(45,212,191,.4); display: grid; place-items: center; color: var(--xp-teal); font-style: normal; font-size: 5cqw; flex: none; }
.scr-quest b { display: block; font: 900 4.4cqw var(--font-display); letter-spacing: .06em; }
.scr-quest small { font: 700 3cqw var(--font-display); letter-spacing: .06em; color: var(--xp-muted); }
.sample { font-size: 12px; color: var(--xp-muted); text-align: center; max-width: 300px; }

/* Story timeline */
.story { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.timeline li:first-child { padding-top: 0; }
.when { font: 700 13px/1.6 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--silver); font-size: 15px; }


/* Split band: opportunities + careers */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.panel { padding: 40px; background: var(--steel); border: 1px solid var(--line); display: grid; gap: 16px; align-content: start; min-width: 0; }
.panel h3 { font-size: 24px; font-weight: 800; text-transform: uppercase; line-height: 1.15; }
.panel p { margin: 0; color: var(--silver); }
.panel ul { margin: 0; padding-left: 18px; color: var(--silver); }
.panel .btn { justify-self: start; margin-top: 8px; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; }
.details { display: grid; gap: 18px; margin-top: 32px; }
.details div { border-left: 2px solid var(--gold); padding-left: 16px; }
.details dt { font: 600 11px var(--font-display); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.details dd { margin: 2px 0 0; }
form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
label { font: 600 12px var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--silver); }
input, select, textarea { width: 100%; background: var(--graphite); border: 1px solid var(--line); color: var(--ivory); font: 15px var(--font-body); padding: 13px 14px; border-radius: 2px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
textarea { min-height: 130px; resize: vertical; }
.form-msg { grid-column: 1 / -1; font-size: 14px; color: var(--gold); margin: 0; }

/* Footer */
footer { border-top: 1px solid var(--line); background: #101316; }
footer .wrap { padding-block: 48px 32px; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
footer p, footer li { color: var(--muted); font-size: 14px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer a { text-decoration: none; } footer a:hover { color: var(--gold); }
footer h4 { font: 600 12px var(--font-display); letter-spacing: .18em; text-transform: uppercase; color: var(--ivory); margin: 0 0 14px; }
.legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap, .story, .contact, .xp .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .emblem { justify-self: start; max-width: 170px; order: -1; }
  .split, .biz-grid { grid-template-columns: minmax(0, 1fr); }
  footer .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer .about { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .menu-btn { display: grid; place-items: center; }
  nav.main { position: absolute; left: 0; right: 0; top: 84px; background: var(--onyx); border-bottom: 1px solid var(--line); display: none; }
  nav.main.open { display: block; }
  nav.main ul { flex-direction: column; gap: 0; padding: 8px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px)); }
  nav.main a { display: block; padding-block: 14px; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  section { padding-block: 64px; }
  .hero { padding-block: 72px; }
  .biz, .panel { padding: 24px; }
  form { grid-template-columns: minmax(0, 1fr); }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .xp-feats { grid-template-columns: minmax(0, 1fr); }
  .phone { max-width: 260px; }
  .actions .btn { flex: 1 1 100%; }
}

/* Form extras: spam trap and the email link in contact details */
.trap { display: none; }
.details a { text-decoration: none; } .details a:hover { color: var(--gold); }

/* Simple pages (thanks, privacy, 404) */
.page { padding-block: 96px; border-top: 0; min-height: 60vh; }
.page .wrap { max-width: 760px; }
.page h1 { font-weight: 800; font-size: clamp(32px, 5vw, 48px); line-height: 1.08; text-transform: uppercase; }
.page h2 { font-size: 20px; margin-top: 40px; }
.page p, .page li { color: var(--silver); }
.page .actions { margin-top: 32px; }

/* Xploreal demo: quest card, XP gain, level up */
.xpbar i { transition: width .7s cubic-bezier(.2,.8,.2,1); }
.scr-card { position: absolute; left: 6cqw; right: 6cqw; bottom: 26cqw; background: rgba(10,13,12,.95); border: 1px solid rgba(45,212,191,.35); border-radius: 4.5cqw; padding: 4cqw; display: grid; gap: 3cqw; box-shadow: 0 10px 30px rgba(0,0,0,.6); animation: card-in .35s cubic-bezier(.2,.9,.3,1.2); }
.scr-card[hidden] { display: none; }
.scr-card.out { animation: card-out .35s ease-in forwards; }
.scr-card-top { display: flex; align-items: center; gap: 3cqw; }
.scr-card-top img { width: 13cqw; height: 13cqw; flex: none; }
.scr-card-top small { display: block; font: 800 3cqw var(--font-display); letter-spacing: .12em; color: var(--xp-teal); }
.scr-card-top b { display: block; font: 800 4.6cqw/1.25 var(--font-display); }
.scr-card-reward { font: 800 3.4cqw var(--font-display); letter-spacing: .08em; color: #FDE047; }
.scr-card-btns { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5cqw; }
.scr-card-btns button { border: 0; border-radius: 99px; padding: 2.8cqw 2cqw; font: 900 3.2cqw var(--font-display); letter-spacing: .08em; cursor: pointer; }
#xp-done { background: var(--xp-grad); color: #04110D; }
#xp-skip { background: rgba(255,255,255,.08); color: var(--xp-text); border: 1px solid rgba(255,255,255,.18); }
.scr-card-btns button:active { transform: scale(.96); }
.xp-float { position: absolute; left: 50%; bottom: 40cqw; transform: translateX(-50%); font: 900 7cqw var(--font-display); color: #FDE047; text-shadow: 0 2px 12px rgba(0,0,0,.8); pointer-events: none; animation: float-up 1.1s ease-out forwards; }
.scr-levelup { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1cqw; background: radial-gradient(circle at 50% 45%, rgba(45,212,191,.45), rgba(5,7,6,.88) 65%); animation: lvl-in .5s ease-out; z-index: 2; }
.scr-levelup[hidden] { display: none; }
.scr-levelup small { font: 900 6cqw var(--font-display); letter-spacing: .2em; color: #FDE047; }
.scr-levelup b { font: 900 30cqw/1 var(--font-display); color: #fff; text-shadow: 0 0 6cqw rgba(45,212,191,.9), 0 0 2cqw rgba(34,197,94,.8); }
.scr-levelup span { font: 800 5cqw var(--font-display); letter-spacing: .14em; color: var(--xp-text); }
.scr-levelup.out { animation: lvl-out .4s ease-in forwards; }
.hop { animation: hop .6s ease-out; }
.pop { animation: pop .5s ease-out; }
.emblems .stat.on { background: rgba(45,212,191,.1); }
@keyframes card-in { from { opacity: 0; transform: translateY(8cqw) scale(.94); } }
@keyframes card-out { to { opacity: 0; transform: translateY(-6cqw) scale(.94); } }
@keyframes float-up { 0% { opacity: 0; transform: translate(-50%, 4cqw); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -18cqw); } }
@keyframes lvl-in { from { opacity: 0; transform: scale(1.15); } }
@keyframes lvl-out { to { opacity: 0; } }
@keyframes hop { 30% { transform: translateY(-6cqw); } 55% { transform: translateY(0); } 70% { transform: translateY(-2cqw); } }
@keyframes pop { 40% { transform: scale(1.18); } }

/* Scroll reveal: only when JS is on and motion is allowed */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* Hero entrance and gold glow that follows the pointer */
.js .hero h1, .js .hero .eyebrow, .js .hero .tag, .js .hero .lede, .js .hero .actions, .js .emblem { animation: rise .8s cubic-bezier(.2,.8,.2,1) both; }
.js .hero .eyebrow { animation-delay: .05s; } .js .hero h1 { animation-delay: .15s; } .js .hero .tag { animation-delay: .35s; }
.js .hero .lede { animation-delay: .45s; } .js .hero .actions { animation-delay: .55s; } .js .emblem { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(400px circle at var(--mx, 70%) var(--my, 40%), rgba(196,154,82,.12), transparent 70%); }
.hero .wrap { position: relative; z-index: 1; }
.emblem img { transition: transform .4s ease-out; }

/* Header gets solid and slimmer after scrolling; nav shows the section you're in */
header.site .wrap { transition: height .3s; }
header.site.scrolled { background: rgba(21,25,29,.98); box-shadow: 0 6px 24px rgba(0,0,0,.35); }
header.site.scrolled .wrap { height: 68px; }
@media (max-width: 820px) { header.site.scrolled nav.main { top: 68px; } }

/* Business cards: soft spotlight under the pointer */
.biz::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(260px circle at var(--cx, 50%) var(--cy, 50%), rgba(196,154,82,.1), transparent 70%); }
.biz:hover::after { opacity: 1; }
.biz { transition: border-color .25s, transform .25s; }
.biz:hover { transform: translateY(-3px); }

/* Back to top */
.to-top { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 30; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(196,154,82,.5); background: rgba(21,25,29,.9); color: var(--gold); font-size: 20px; cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--gold); color: var(--onyx); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .js .hero *, .js .emblem, .scr-card, .xp-float, .scr-levelup, .hop, .pop { animation: none !important; }
  .biz:hover { transform: none; }
}

/* Business emblems (the owner's own logos) */
.biz-emblem { width: 96px; height: 96px; border-radius: 50%; flex: none; display: block; box-shadow: 0 0 0 1px rgba(196,154,82,.3), 0 6px 18px rgba(0,0,0,.45); transition: transform .3s ease, box-shadow .3s ease; }
.biz:hover .biz-emblem { transform: scale(1.06) rotate(-3deg); box-shadow: 0 0 0 1px rgba(196,154,82,.55), 0 0 24px rgba(196,154,82,.35); }
@media (prefers-reduced-motion: reduce) { .biz:hover .biz-emblem { transform: none; } }
