/* ==========================================================================
   BASE — tokens, type, buttons, nav, menu, hero, trust strip
   Colours come from site-config.js (theme). Mobile-first.
   ========================================================================== */

:root {
  --bg: #0A0B0A;
  --accent: #D2FF3C;
  --bg-2: color-mix(in srgb, var(--bg) 93%, white);
  --bg-3: color-mix(in srgb, var(--bg) 86%, white);
  --text: #EEEFEA;
  --muted: #92958E;
  --dim: #5F625C;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .2);
  --accent-ink: #0A0B0A;
  --red: #FF5A47;
  --wa: #25D366;

  --font: "Archivo", "Arial Narrow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, "Courier New", monospace;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.6; font-stretch: 100%;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul, ol, figure, dl { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.2em; height: 1.2em; flex-shrink: 0; }
.i { display: inline-flex; align-items: center; justify-content: center; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }

.skip-link { position: absolute; left: 12px; top: -80px; z-index: 1000; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* Film grain overlay — adds a subtle cinematic texture */
.grain {
  position: fixed; inset: 0; z-index: 300; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Type ---------- */
.display {
  font-weight: 800; font-stretch: 72%; text-transform: uppercase;
  line-height: .86; letter-spacing: -.01em; color: var(--text);
}
.display--lg { font-size: clamp(3.2rem, 9vw, 8.5rem); }
.display--md { font-size: clamp(2.8rem, 6.6vw, 6.2rem); }
.display--sm { font-size: clamp(2.2rem, 4.4vw, 4.2rem); line-height: .92; }
.line { display: block; overflow: hidden; padding-bottom: .05em; margin-bottom: -.05em; }
.line__inner { display: block; }
.line--accent { color: var(--accent); }

.label {
  display: flex; align-items: center; gap: 10px; margin-bottom: 22px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.label > span:first-child { color: var(--accent); }
.mono-title { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.lead { color: var(--muted); font-size: clamp(1.02rem, 1.1vw, 1.15rem); max-width: 50ch; margin-top: 22px; }

.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: live 2s ease-out infinite; }
.live-dot--red { background: var(--red); }
@keyframes live { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3.2); opacity: 0; } }

.stars { display: inline-flex; gap: 2px; color: var(--accent); }
.stars .icon { width: 14px; height: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1.1; white-space: nowrap; cursor: pointer;
  transition: background-color .35s, color .35s, border-color .35s, transform .5s var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: color-mix(in srgb, var(--accent) 75%, white); }
.btn--ghost { background: rgba(255, 255, 255, .05); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { min-height: 58px; padding: 0 28px; font-size: 16px; }
.btn--xl { min-height: 64px; padding: 0 32px; font-size: 17px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row--center { justify-content: center; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: 15px; }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Media (photo + placeholder art) ---------- */
.media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); isolation: isolate; }
.media__inner { position: absolute; inset: -8% 0; }
.media__art {
  position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent);
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%), var(--bg-2);
}
.media__art .icon { width: 64px; height: 64px; stroke-width: 1; opacity: .55; }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease, transform 1.4s var(--ease); }
.media img.is-loaded { opacity: 1; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: transform .6s var(--ease), background-color .4s, border-color .4s;
}
.nav.is-scrolled { background: rgba(10, 11, 10, .72); border-color: var(--line); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.brand__mark { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); flex-shrink: 0; }
.brand__mark .icon { width: 18px; height: 18px; fill: currentColor; }

.nav__links { display: none; }
.nav__links a { position: relative; font-size: 14px; color: rgba(238, 239, 234, .75); transition: color .3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__phone { display: none; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; padding-right: 8px; }
.nav__phone:hover { color: var(--accent); }
.nav__quote { display: none; }

.menu-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(10, 11, 10, .35); backdrop-filter: blur(10px); cursor: pointer; display: grid; place-content: center; gap: 6px; }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform .5s var(--ease); }
.menu-open .menu-btn span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* Full-screen menu */
.menu {
  position: fixed; inset: 0; z-index: 99; background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 96px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto; visibility: hidden; clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease), visibility 0s linear .8s;
}
.menu-open .menu { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path .8s var(--ease), visibility 0s; }
.menu__links a {
  display: flex; align-items: baseline; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line);
  font-weight: 800; font-stretch: 72%; text-transform: uppercase; font-size: clamp(2.6rem, 12vw, 4.6rem); line-height: 1;
  opacity: 0; transform: translateY(40px); transition: opacity .6s, transform .9s var(--ease), color .3s;
}
.menu__links a:hover { color: var(--accent); }
.menu__links small { font-family: var(--mono); font-size: 12px; font-weight: 400; font-stretch: 100%; color: var(--accent); }
.menu-open .menu__links a { opacity: 1; transform: none; }
.menu-open .menu__links a:nth-child(2) { transition-delay: .05s; }
.menu-open .menu__links a:nth-child(3) { transition-delay: .1s; }
.menu-open .menu__links a:nth-child(4) { transition-delay: .15s; }
.menu-open .menu__links a:nth-child(5) { transition-delay: .2s; }
.menu-open .menu__links a:nth-child(6) { transition-delay: .25s; }
.menu__foot { display: grid; gap: 10px; }

/* ---------- 1. Hero ---------- */
.hero { position: relative; overflow: hidden; background: #000; }
.hero__media { position: absolute; inset: 0; }
.hero__img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__img { opacity: 0; transform: scale(1.18); transition: opacity 1.6s ease, transform 3.2s var(--ease); }
.hero__img.is-loaded { opacity: 1; transform: scale(1); }
.hero__video { opacity: 0; transition: opacity 1.2s ease; }
.hero__video.is-loaded { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 11, 10, .7) 0%, rgba(10, 11, 10, .2) 30%, rgba(10, 11, 10, .55) 62%, var(--bg) 100%),
    linear-gradient(90deg, rgba(10, 11, 10, .65) 0%, rgba(10, 11, 10, 0) 75%);
}
.hero__inner {
  position: relative; z-index: 1; min-height: 100vh; min-height: 100svh;
  max-width: 1440px; margin-inline: auto; padding: 104px var(--gutter) 24px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 28px;
 
}
.hero__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: auto; }
.hero__heading { font-family: var(--mono); font-weight: 400; font-size: 12px; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; max-width: 34ch; }
.status {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(10, 11, 10, .4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
}
.hero__display { font-size: clamp(3.6rem, min(17.5vw, 19vh), 16rem); line-height: .8; letter-spacing: -.015em; }
.hero__bottom { display: grid; gap: 24px; align-items: end; }
.hero__lead { font-size: clamp(1.02rem, 1.25vw, 1.22rem); color: rgba(238, 239, 234, .85); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__cta .btn { flex: 1 1 220px; }
.hero__meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line-2); font-size: 14px; color: rgba(238, 239, 234, .7); }
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rating strong { color: var(--text); }
.scroll-cue { display: none; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.scroll-cue i { position: relative; width: 1px; height: 38px; background: var(--line-2); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--accent); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 110%; } }

/* ---------- 2. Trust ---------- */
.trust { border-bottom: 1px solid var(--line); }
.ticker { overflow: hidden; background: var(--accent); color: var(--accent-ink); padding-block: 14px; }
.ticker__track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker__group { display: flex; align-items: center; gap: 28px; padding-right: 28px; }
.ticker__item { font-weight: 800; font-stretch: 72%; text-transform: uppercase; font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1; white-space: nowrap; }
.ticker__sep .icon { width: 16px; height: 16px; fill: currentColor; }
@keyframes ticker { to { transform: translateX(-50%); } }

.trust__grid { list-style: none; padding-block: 0; display: grid; grid-template-columns: repeat(2, 1fr); }
.trust__item { display: grid; gap: 8px; padding: 30px 16px 30px 0; border-bottom: 1px solid var(--line); }
.trust__item:nth-child(odd) { border-right: 1px solid var(--line); }
.trust__item:nth-child(even) { padding-left: 16px; }
.trust__item strong { font-weight: 800; font-stretch: 72%; text-transform: uppercase; font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: .95; }
.trust__item span { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ---------- Reveal animations (JS adds .is-in when scrolled into view) ---------- */
.js .reveal-fade { opacity: 0; transform: translateY(18px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms + .1s); }
.js .reveal-up { opacity: 0; transform: translateY(48px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal-clip { clip-path: inset(14% 6% 14% 6% round var(--radius)); transition: clip-path 1.6s var(--ease); }
.js .line__inner { transform: translateY(110%); transition: transform 1.3s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + .05s); }
.js .is-in.reveal-fade, .js .is-in.reveal-up { opacity: 1; transform: none; }
.js .is-in.reveal-clip { clip-path: inset(0 0 0 0 round var(--radius)); }
.js .is-in .line__inner { transform: none; }

/* ---------- Larger screens ---------- */
@media (min-width: 560px) {
  .nav__quote { display: inline-flex; }
}
@media (min-width: 900px) {
  .hero__bottom { grid-template-columns: 1fr auto; gap: 48px; }
  .hero__cta .btn { flex: 0 0 auto; }
  .scroll-cue { display: flex; }
  .trust__grid { grid-template-columns: repeat(4, 1fr); }
  .trust__item, .trust__item:nth-child(even) { padding: 40px 24px; border-bottom: 0; border-right: 1px solid var(--line); }
  .trust__item:first-child { padding-left: 0; }
  .trust__item:last-child { border-right: 0; }
}
@media (min-width: 1100px) {
  .nav__links { display: flex; gap: 34px; }
  .menu-btn, .menu { display: none; }
}
@media (min-width: 1240px) {
  .nav__phone { display: inline-flex; }
}
