/* ==========================================================================
   Cuts & Curves — custom styles
   Brand: ink/charcoal base · brand red · electric lime accent
   ========================================================================== */

:root {
  --ink: #0a0a0b;
  --surface: #141416;
  --surface-2: #1c1c20;
  --red: #ff2d2d;
  --red-deep: #d61f1f;
  --lime: #d6fb00;
  --line: rgba(255, 255, 255, 0.08);
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; background-color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none !important; }
}

body {
  background-color: var(--ink);
  color: #f4f4f5;
  overflow-x: hidden;
}

/* Selection */
::selection { background: var(--lime); color: #0a0a0b; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0a0a0b; }
::-webkit-scrollbar-thumb { background: #2a2a2e; border-radius: 99px; border: 2px solid #0a0a0b; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ---- Display type: tighten the condensed athletic feel ---- */
.font-display { letter-spacing: -0.01em; line-height: 0.92; }
.headline { text-wrap: balance; }

/* Outlined "stroke" headline variant */
.text-stroke {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.55);
}
.text-stroke-red { -webkit-text-stroke-color: var(--red); }

/* Gradient brand text */
.text-gradient {
  background: linear-gradient(100deg, #ffffff 0%, #ffffff 55%, var(--lime) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Film grain overlay for a gritty, modern texture ---- */
.grain::after {
  content: "";
  position: fixed;
  /* Oversized so the animated shift never reveals an edge */
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  will-change: transform;
  animation: grain 0.6s steps(8) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  10%  { transform: translate(-4%, -6%); }
  20%  { transform: translate(-9%, 3%); }
  30%  { transform: translate(5%, -8%); }
  40%  { transform: translate(-3%, 9%); }
  50%  { transform: translate(-8%, 4%); }
  60%  { transform: translate(6%, -2%); }
  70%  { transform: translate(-2%, -7%); }
  80%  { transform: translate(9%, 5%); }
  90%  { transform: translate(-6%, 1%); }
  100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .grain::after { animation: none; }
}

/* ---- Marquee ---- */
.marquee { display: flex; overflow: hidden; user-select: none; }
.marquee__track {
  display: flex;
  align-items: center;   /* vertically centre the text + star separators */
  line-height: 1;
  flex-shrink: 0;
  gap: 0;
  min-width: 100%;
  animation: marquee 28s linear infinite;
}
.marquee span, .marquee i { display: inline-flex; align-items: center; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ---- Glow / accents ---- */
.glow-red { box-shadow: 0 0 0 1px rgba(255,45,45,.25), 0 24px 60px -20px rgba(255,45,45,.45); }
.ring-hover { transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s, border-color .4s; }

/* Card hover lift */
.card-lift { transition: transform .45s cubic-bezier(.2,.7,.2,1), border-color .45s, background-color .45s; }
.card-lift:hover { transform: translateY(-6px); }

/* Animated underline links */
.link-underline { position: relative; }
.link-underline::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 100%;
  background: var(--lime); transform: scaleX(0); transform-origin: right; transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.link-underline:hover::after { transform: scaleX(1); transform-origin: left; }

/* Magnetic button base */
.btn-magnetic { will-change: transform; }

/* Section reveal init state (GSAP sets final) */
.reveal { opacity: 0; }
.no-js .reveal { opacity: 1; }

/* Hide split lines overflow before animation */
.line-mask { overflow: hidden; display: block; }

/* Custom cursor (desktop only) */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; border-radius: 9999px; pointer-events: none;
  z-index: 9998; mix-blend-mode: difference; will-change: transform;
}
.cursor-dot { width: 7px; height: 7px; background: #fff; margin: -3.5px 0 0 -3.5px; }
.cursor-ring { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.6); margin: -20px 0 0 -20px; transition: width .25s, height .25s, margin .25s, background-color .25s; }
.cursor-ring.is-active { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(214,251,0,.15); border-color: var(--lime); }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* Marquee separators */
.dot-sep { color: var(--lime); }

/* Noise-free focus states for accessibility */
a:focus-visible, button:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

/* Sticky nav blur */
.nav-blur { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* ---- iOS Safari viewport fixes ----
   No viewport-fit=cover: iOS auto-insets content below the notch, so the nav
   sits flush at the top with no empty strip. The remaining gremlin is that
   100vh = the LARGE viewport (toolbar hidden), so full-height boxes render
   taller than the visible area and leave dead space behind the address bar.
   Using 100dvh (dynamic viewport height) makes them match what's actually
   visible — fixes the menu bottom gap and any hero overscroll. */
@supports (height: 100dvh) {
  .min-h-screen { min-height: 100dvh; }
  #mobileMenu { height: 100dvh; }
}

/* Mobile menu: fill the visible viewport, links centred, footer pinned bottom */
#mobileMenu {
  height: 100vh;            /* fallback for browsers without dvh */
  padding: 5rem 2rem 2rem;
  overflow-y: auto;
}
#mobileMenu > nav { flex: 1 1 auto; justify-content: center; }

/* ---- Scroll cue (hero, bottom-right) ---- */
.scroll-cue { animation: scrollCueFloat 2.6s ease-in-out infinite; }
.scroll-cue__beam {
  position: absolute; left: 0; top: 0; width: 100%; height: 55%;
  border-radius: 99px;
  background: linear-gradient(to bottom, transparent, var(--lime));
  box-shadow: 0 0 8px rgba(214,251,0,.7);
  animation: scrollBeam 1.9s cubic-bezier(.45,0,.25,1) infinite;
}
.scroll-cue__arrow { animation: scrollArrow 1.9s cubic-bezier(.45,0,.25,1) infinite; }
@keyframes scrollBeam {
  0%   { transform: translateY(-100%); opacity: 0; }
  25%  { opacity: 1; }
  100% { transform: translateY(220%); opacity: 0; }
}
@keyframes scrollCueFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}
@keyframes scrollArrow {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50%      { transform: translateY(3px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue, .scroll-cue__arrow { animation: none !important; }
  .scroll-cue__beam { animation: none !important; height: 100%; opacity: .8; }
}

/* Gradient mesh hero backdrop */
.hero-mesh {
  background:
    radial-gradient(60% 60% at 80% 0%, rgba(255,45,45,.20) 0%, transparent 60%),
    radial-gradient(50% 50% at 0% 30%, rgba(214,251,0,.10) 0%, transparent 55%),
    radial-gradient(80% 80% at 50% 100%, rgba(0,0,0,.6) 0%, transparent 70%);
}

/* Image cover helper */
.img-cover { width: 100%; height: 100%; object-fit: cover; }

/* Tilt badge */
.badge-tilt { transform: rotate(-6deg); }

/* Phosphor icon alignment inside flex/text */
i[class^="ph"], i[class*=" ph"] { line-height: 1; display: inline-flex; }

/* Marquee icon sizing (keep separators proportional) */
.marquee i { font-size: 0.6em; }

/* Promo class cards keep a square-ish ratio for the real brand graphics */
.promo-card img { aspect-ratio: 1 / 1; }

/* Active nav link */
.nav-link.is-current { color: #fff; }
.nav-link.is-current::after { transform: scaleX(1); transform-origin: left; }

/* Subtle page-intro state for inner pages (no loader) */
.page-hero-line { will-change: transform; }

/* Pricing toggle pill */
.price-toggle button.is-active { background: var(--lime); color: var(--ink); }

/* Sticky section index number */
.idx { font-variant-numeric: tabular-nums; }

/* Image hover zoom wrapper */
.zoom-wrap { overflow: hidden; }
.zoom-wrap img { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.zoom-wrap:hover img { transform: scale(1.06); }

/* Marquee variant: reverse */
.marquee__track--rev { animation-direction: reverse; }

/* Language switcher */
.lang-menu { z-index: 60; }
.lang-option.is-active { color: var(--lime); border-color: var(--lime); }
