/* ============================================================
   RAGING AXE — BASE + COMPONENTS
   ============================================================ */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--ra-base);
  color: var(--ra-text);
  font-family: var(--ra-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--ra-green); color: var(--ra-base); }

/* ---------- TEXTURE OVERLAYS ---------- */
/* Concrete/steel grain — applied to body via fixed pseudo layer */
.ra-grain::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Scanline/scuff vignette */
.ra-vignette::before {
  content: "";
  position: fixed; inset: 0;
  z-index: 1; pointer-events: none;
  background: radial-gradient(120% 120% at 50% 0%, transparent 55%, rgba(0,0,0,0.55) 100%);
}

/* ---------- TYPOGRAPHY HELPERS ---------- */
.eyebrow {
  font-family: var(--ra-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: var(--ra-green);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--ra-green);
  display: inline-block;
}
.mono {
  font-family: var(--ra-mono);
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
}
.display {
  font-family: var(--ra-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-mega);
  text-transform: uppercase;
  font-weight: 400;
}
.text-spark { color: var(--ra-spark); }
.text-green { color: var(--ra-green); }
.text-grad {
  background: var(--ra-grad-green);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(44px, 7vw, 96px); position: relative; }

/* ---------- BUTTONS ---------- */
.btn {
  --b-bg: var(--ra-surface-2);
  --b-fg: var(--ra-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  font-family: var(--ra-mono);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 28px;
  background: var(--b-bg);
  color: var(--b-fg);
  border: 1px solid var(--ra-line-strong);
  border-radius: var(--r-pill);
  position: relative;
  overflow: hidden;
  /* Never let the label + arrow wrap to a 2nd row, and never get squished in a
     tight flex row (the nav) — the two bugs that made the nav CTA fat + 2-line. */
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }

.btn--green {
  --b-bg: var(--ra-grad-green);
  --b-fg: var(--ra-base);
  border-color: transparent;
  font-weight: 600;
  box-shadow: var(--glow-green);
}
.btn--green:hover { box-shadow: var(--glow-green-lg); }

.btn--ghost {
  --b-bg: transparent;
  border-color: var(--ra-line-strong);
}
.btn--ghost:hover { border-color: var(--ra-green); color: var(--ra-green); }

.btn--spark {
  --b-bg: var(--ra-spark);
  --b-fg: #fff;
  border-color: transparent;
  box-shadow: var(--glow-spark);
}

.btn--lg { padding: 22px 40px; font-size: var(--fs-body); }
.btn--block { width: 100%; }

/* arrow that nudges on hover */
.btn .arr { transition: transform var(--dur-base) var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* Nav CTA on phones: slimmer (less vertical bulk) and collapses to a single
   word — "Book Now →" becomes "Book →". The .btn__rest span wraps the extra
   word(s); it stays visible everywhere except narrow screens. */
.btn .btn__rest { display: inline; }
@media (max-width: 600px) {
  .nav .btn { padding: 10px 15px; letter-spacing: 0.04em; }
  .nav .btn .btn__rest { display: none; }
}

/* ---------- CARDS ---------- */
.card {
  background: var(--ra-surface-2);
  border: 1px solid var(--ra-line);
  border-radius: var(--r-3);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease);
}

/* chromatic-aberration flash on hover (handled w/ pseudo + js class) */
.card--chroma:hover { border-color: var(--ra-green-line); transform: translateY(-4px); }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--dur-base) var(--ease),
              backdrop-filter var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(10,11,10,0.72);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--ra-line);
}
/* Header grid: 1fr | auto | 1fr keeps the CENTER nav mathematically centered
   no matter what loads on either side. The header-actions buttons hydrate
   from the feed a beat after first paint — with flex space-between their
   arrival shoved the nav sideways; with this grid the middle column never
   moves. min-height on the right cell reserves the buttons' height so the
   bar doesn't grow when they pop in. */
.nav__inner {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  gap: var(--sp-6);
  height: 72px;
}
.nav__inner > .logo { justify-self: start; }
.nav__inner > :last-child { justify-self: end; min-height: 44px; display: flex; align-items: center; }
.nav__links {
  display: flex;
  gap: var(--sp-6);
  align-items: center;
}
.nav__link {
  font-family: var(--ra-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ra-muted);
  position: relative;
  padding-block: 6px;
  transition: color var(--dur-base) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--ra-green);
  transition: width var(--dur-base) var(--ease);
}
.nav__link:hover { color: var(--ra-text); }
.nav__link:hover::after { width: 100%; }

/* Nav single-source-of-truth: the in-HTML links are only a no-JS fallback.
   bxi-nav.js fetches the saved navigation, swaps it in, then adds
   .bxi-nav-ready to reveal — so the stale fallback nav never flashes.
   (The LOGO no longer hides: the operator's Branding logo is stamped into the
   HTML server-side, so it is already correct on the very first paint.) */
[data-bxi-nav] { opacity: 0; animation: bxiNavReveal 0s linear 1.5s forwards; }
[data-bxi-nav].bxi-nav-ready { opacity: 1; animation: none; }

/* Branding logo box — hard-sized so nothing shifts while/if the logo loads.
   A WIDE logo (stamped data-bxi-logo-variant="long") widens the box and hides
   the adjacent wordmark (a wide logo carries the name itself). */
/* !important: the logo__mark img carries inline width:30px (hard box). */
.logo__mark[data-bxi-logo-variant="long"] { width: 170px !important; object-position: left center; }
.logo:has(.logo__mark[data-bxi-logo-variant="long"]) > span { display: none; }
@keyframes bxiNavReveal { to { opacity: 1; } }

/* Center nav links wrap to a 2nd row from ~1100 down to 641 (like Unity),
   so they never overflow or vanish mid-range. Below 641 they fold into the
   hamburger. */
@media (max-width: 640px) {
  .nav__links { display: none; }
  /* With the center links display:none'd, grid auto-placement drops the
     actions cell (cart · CTA · burger) into the now-empty CENTER track —
     a hamburger floating mid-bar. Pin it to track 3 so it stays top-right
     (same fix as Unity). */
  .nav__inner > :last-child { grid-column: 3; }
}
@media (max-width: 1100px) and (min-width: 641px) {
  .nav__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "logo actions"
      "links links";
    height: auto;
    min-height: 72px;
    padding-block: 12px;
    row-gap: 12px;
    column-gap: var(--sp-5);
  }
  .nav__inner > .logo { grid-area: logo; }
  .nav__inner > .nav__links {
    grid-area: links;
    display: flex;
    justify-content: center;
    gap: clamp(18px, 3vw, var(--sp-6));
  }
  .nav__inner > div:last-child {
    grid-area: actions;
    justify-self: end;
    min-width: 0;
  }
}
/* At the hamburger breakpoint the CTA + cart move INTO the mobile menu (the
   widget clones them there), so hide them from the bar — but keep the account
   avatar, which stays a one-tap control top-right. */
@media (max-width: 640px) {
  [data-bxi-actions] [data-bxi-hdr-ctabtn],
  [data-bxi-actions] [data-bxi-hdr-cart],
  [data-bxi-actions] > a.btn { /* incl. the baked pre-hydration fallback CTA */
    display: none !important;
  }
}

/* The widget appends its mobile actions dock (Book Now · Sign in · cart) INSIDE
   .mobile-menu, where `.mobile-menu a { font-family: Anton; font-size: 2.5rem }`
   (the giant nav-link style, in experience.css / index.html) cascades onto the
   Sign-in / My-Account pill and blows its label up to ~40px. Restore the pill to
   the widget's intended compact label. Specificity (0,2,0) beats `.mobile-menu a`
   (0,1,1), so no !important needed; weight 600 is kept from the widget's own rule. */
.mobile-menu .bxi-hdr-macct {
  font-family: var(--ra-mono);
  font-size: 13px;
}

/* ---------- LOGO ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  /* !important so the app's globals.css (which sets font-family on headings/body
     on native pages like /merch + /blog) can't override the Anton display font —
     keeps the logo identical to the bucket home. */
  font-family: var(--ra-display) !important;
  text-transform: uppercase;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.logo span { font-family: inherit !important; }
.logo__mark {
  width: 30px; height: 30px;
  flex: none;
}

/* ---------- KINETIC MARQUEE ---------- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-block: 1px solid var(--ra-line);
  background: var(--ra-base);
  padding-block: var(--sp-5);
}
.marquee__track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: marquee-scroll 28s linear infinite;
  will-change: transform;
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  padding-right: var(--sp-6);
  flex: none;
  min-width: 100vw;
  justify-content: space-around;
}
.marquee__item {
  font-family: var(--ra-display);
  text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--ra-text);
}
.marquee__item.is-out { color: transparent; -webkit-text-stroke: 1.5px var(--ra-line-strong); }
.marquee__dot { color: var(--ra-green); font-size: clamp(1.5rem,4vw,3rem); }
.marquee--reverse .marquee__track { animation-direction: reverse; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- SPEC ROW (mono stats) ---------- */
.specrow {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  border-block: 1px solid var(--ra-line);
  padding-block: var(--sp-4);
}
.spec { display: flex; flex-direction: column; gap: 4px; }
.spec__k {
  font-family: var(--ra-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: var(--ra-muted);
}
.spec__v {
  font-family: var(--ra-display);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--ra-text);
}

/* ---------- TAG / STAMP ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ra-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ra-green);
  border: 1px solid var(--ra-green-line);
  border-radius: var(--r-pill);
  padding: 6px 12px;
}

/* ---------- DIVIDER / FOOTER STRIP ---------- */
.strip {
  background: var(--ra-grad-green);
  color: var(--ra-base);
  overflow: hidden;
  white-space: nowrap;
}
.strip__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
  font-family: var(--ra-display);
  text-transform: uppercase;
  font-size: 1.5rem;
}
.strip__group {
  display: flex;
  gap: var(--sp-6);
  padding-right: var(--sp-6);
  padding-block: var(--sp-4);
  flex: none;
  min-width: 100vw;
  justify-content: space-around;
}

/* ---------- FOOTER ----------
   Single-sourced here (was inline in index.html only) so NATIVE pages — which
   inject account-footer.html and load THIS sheet but not index.html's inline
   <style> — render the footer identically to home (same heading size, grid,
   bottom bar). Without these, the injected footer fell back to default <h4>
   sizing (much larger) and an unstyled bottom bar. */
.footer { background: var(--ra-base); border-top: 1px solid var(--ra-line); }
.footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--sp-6);
  padding-block: var(--sp-9) var(--sp-7);
}
.footer h4 { font-family: var(--ra-mono) !important; font-size: var(--fs-micro) !important; letter-spacing: var(--ls-mono); text-transform: uppercase; color: var(--ra-muted); margin-bottom: var(--sp-4); }
.footer a { display: block; color: var(--ra-text); font-size: var(--fs-sm); padding: 5px 0; transition: color var(--dur-base) var(--ease); }
.footer a:hover { color: var(--ra-green); }
.footer__blurb { color: var(--ra-muted); font-size: var(--fs-sm); max-width: 34ch; margin-top: var(--sp-4); }
.footer__bottom { border-top: 1px solid var(--ra-line); padding-block: var(--sp-5); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); font-family: var(--ra-mono); font-size: var(--fs-micro); line-height: 1; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ra-faint); }
.footer__bottom span { display: inline-flex; align-items: center; }
.footer__bottom a { display: inline; font-size: inherit; line-height: inherit; letter-spacing: inherit; padding: 0; color: inherit; text-decoration: none; }
.footer__bottom a:hover { color: var(--ra-green); text-decoration: underline; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- IMPACT MOTION HOOKS ---------- */
/* scroll reveal: motion-blur + scale up */
.reveal {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  filter: blur(8px);
  transition: opacity var(--dur-rev) var(--ease),
              transform var(--dur-rev) var(--ease),
              filter var(--dur-rev) var(--ease);
  will-change: transform, opacity, filter;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }

/* screen shake — applied to root wrapper momentarily */
@keyframes ra-shake {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-3px, 2px); }
  40% { transform: translate(3px, -2px); }
  60% { transform: translate(-2px, -1px); }
  80% { transform: translate(2px, 1px); }
}
.ra-shaking { animation: ra-shake 180ms linear; }

/* chromatic aberration flash */
@keyframes ra-chroma {
  0%   { text-shadow: 0 0 0 transparent; }
  30%  { text-shadow: -3px 0 var(--ra-spark), 3px 0 var(--ra-teal); }
  100% { text-shadow: 0 0 0 transparent; }
}
.ra-chroma-flash { animation: ra-chroma 320ms steps(3,end); }

/* Reduce-motion suppression intentionally removed — this brand site forces
   its animations on (the JS guards in animate.js / impact.js are off too).
   Re-add a @media (prefers-reduced-motion: reduce) block here if you ever want
   to honor the OS accessibility setting again. */

/* ---------- FOCUS (accessibility) ---------- */
:focus-visible {
  outline: 2px solid var(--ra-green);
  outline-offset: 3px;
}

/* ---------- IMAGE PLACEHOLDER (action photography stand-in) ---------- */
.actionph {
  position: relative;
  background:
    radial-gradient(120% 90% at 70% 20%, rgba(34,224,106,0.22), transparent 55%),
    radial-gradient(100% 80% at 20% 90%, rgba(22,201,166,0.12), transparent 60%),
    linear-gradient(135deg, #141815, #0c0e0c);
  overflow: hidden;
}
.actionph::after {
  content: attr(data-label);
  position: absolute;
  left: 14px; bottom: 12px;
  font-family: var(--ra-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244,246,244,0.45);
}
/* motion-blur streaks inside placeholder */
.actionph__streak {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ra-green-bright), transparent);
  opacity: 0.5;
  filter: blur(1px);
}
/* Real photo in an actionph slot — covers the placeholder gradient, hides the
   data-label and the motion streaks. Set the image via inline background-image. */
.actionph--photo { background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; }
.actionph--photo::after { display: none !important; }
.actionph--photo .actionph__streak { display: none !important; }
