/* ════════════════════════════════════════════
   ANTONIO LOMBARDO — scroll-cinematic portfolio
   ink black · emerald · cream · bitcoin orange
   ════════════════════════════════════════════ */

@font-face {
  font-family: 'Anton';
  src: url('../assets/fonts/anton-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: block;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../assets/fonts/space-grotesk-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --ink: #0a0a08;
  --ink-2: #111110;
  --cream: #f4eee1;
  --cream-dim: rgba(244, 238, 225, 0.55);
  --emerald: #00e08e;
  --emerald-deep: #0c4a33;
  --btc: #f7931a;
  --display: 'Anton', Impact, sans-serif;
  --body: 'Space Grotesk', system-ui, sans-serif;
}

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

html { background: var(--ink); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--body);
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--emerald); color: var(--ink); }

.bolt { color: var(--btc); text-shadow: 0 0 14px rgba(247, 147, 26, 0.8); font-style: normal; }

/* ── LOADER ────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px;
  transition: opacity 0.7s ease, visibility 0.7s;
}
body:not(.is-loading) .loader { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__mark {
  font-family: var(--display);
  font-size: 64px; letter-spacing: 0.05em;
  color: var(--emerald);
  text-shadow: 0 0 40px rgba(0, 224, 142, 0.5);
}
.loader__bar {
  width: min(320px, 60vw); height: 2px;
  background: rgba(244, 238, 225, 0.12);
  overflow: hidden;
}
.loader__bar span {
  display: block; height: 100%; width: 0%;
  background: var(--emerald);
  box-shadow: 0 0 12px var(--emerald);
}
.loader__label {
  font-size: 11px; letter-spacing: 0.35em;
  color: var(--cream-dim);
}

/* ── GRAIN ─────────────────────────────── */
.grain {
  position: fixed; inset: -100px; z-index: 900;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-40px, 30px); }
  50% { transform: translate(30px, -50px); }
  75% { transform: translate(-30px, -20px); }
  100% { transform: translate(0, 0); }
}

/* ── NAV ───────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 56px);
  mix-blend-mode: normal;
  transition: transform 0.4s ease;
}
.nav__mark {
  font-family: var(--display);
  font-size: 26px; color: var(--cream); text-decoration: none;
  letter-spacing: 0.04em;
}
.nav__dot { color: var(--emerald); }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  color: var(--cream-dim); text-decoration: none;
  font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
  transition: color 0.25s;
}
.nav__links a:hover { color: var(--emerald); }
.nav__cta {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink); background: var(--emerald);
  padding: 10px 18px; text-decoration: none; font-weight: 700;
  border-radius: 2px;
  box-shadow: 0 0 24px rgba(0, 224, 142, 0.35);
  transition: transform 0.25s, box-shadow 0.25s;
}
.nav__cta:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(0, 224, 142, 0.6); }

/* ── HERO ──────────────────────────────── */
.hero { position: relative; }
.hero__stage {
  position: relative; height: 100vh; height: 100svh;
  overflow: hidden;
}
#orbitCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  background: var(--ink);
}
.hero__vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(10, 10, 8, 0.75) 100%),
    linear-gradient(to bottom, rgba(10, 10, 8, 0.5), transparent 22%, transparent 75%, var(--ink) 100%);
  pointer-events: none;
}
.hero__content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  pointer-events: none;
}
.hero__title {
  font-family: var(--display);
  font-weight: 400;
  text-align: center;
  line-height: 0.86;
  user-select: none;
}
.hero__line {
  display: block;
  font-size: clamp(64px, 17vw, 260px);
  letter-spacing: 0.01em;
  color: var(--cream);
  text-shadow: 0 4px 60px rgba(0, 0, 0, 0.65);
}
.hero__line--accent .char { color: transparent; -webkit-text-stroke: 2px var(--cream); }
.char { display: inline-block; will-change: transform, opacity; }
.hero__sub {
  margin-top: 4vh;
  font-size: clamp(13px, 1.4vw, 19px);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream-dim);
  text-align: center;
  padding: 0 20px;
}
.hero__sub em { font-style: normal; color: var(--emerald); }
.hero__sub em.btc { color: var(--btc); }
.hero__hint {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: 0.4em; color: var(--cream-dim);
}
.hero__hint i {
  width: 1px; height: 44px;
  background: linear-gradient(var(--emerald), transparent);
  animation: drip 1.6s ease-in-out infinite;
}
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── STATS ─────────────────────────────── */
.stats {
  position: relative;
  background: var(--ink);
  padding: clamp(90px, 14vh, 180px) clamp(20px, 5vw, 72px);
}
.stats__kicker, .work__kicker {
  font-size: 12px; letter-spacing: 0.4em;
  color: var(--emerald);
  margin-bottom: 44px;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(244, 238, 225, 0.08);
  border: 1px solid rgba(244, 238, 225, 0.08);
}
.stat {
  background: var(--ink);
  padding: clamp(28px, 4vw, 56px);
  position: relative;
  overflow: hidden;
}
.stat--wide { grid-column: span 3; display: flex; align-items: center; gap: 28px; }
@media (min-width: 900px) {
  .stats__grid { grid-template-columns: repeat(6, 1fr); }
  .stat { grid-column: span 2; }
  .stat--wide { grid-column: span 3; }
}
.stat__num {
  font-family: var(--display);
  font-size: clamp(64px, 8vw, 128px);
  color: var(--cream);
  line-height: 1;
}
.stat__num::after { content: ''; }
.stat__label {
  margin-top: 12px;
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--cream-dim);
}
.stat--wide .stat__label { margin-top: 0; font-size: 13px; }
.stat__badge {
  font-family: var(--display);
  font-size: clamp(40px, 4vw, 64px);
  color: var(--btc);
  text-shadow: 0 0 32px rgba(247, 147, 26, 0.55);
}
.stat--btc .stat__label { color: var(--btc); }
.stat__badge--live {
  font-size: 20px; letter-spacing: 0.3em; color: var(--emerald);
  display: flex; align-items: center; gap: 12px;
  text-shadow: 0 0 24px rgba(0, 224, 142, 0.6);
}
.pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(0, 224, 142, 0.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 224, 142, 0.7); }
  70% { box-shadow: 0 0 0 14px rgba(0, 224, 142, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 224, 142, 0); }
}

/* ── MARQUEE ───────────────────────────── */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 26px 0;
  border-top: 1px solid rgba(244, 238, 225, 0.1);
  border-bottom: 1px solid rgba(244, 238, 225, 0.1);
  background: var(--ink-2);
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 38px;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 26s linear infinite;
}
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee__track span {
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 52px);
  color: var(--cream);
  letter-spacing: 0.03em;
}
.marquee__track span.hollow {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--emerald);
}
.marquee__track i { font-style: normal; color: var(--emerald); font-size: 14px; }
.marquee__track i.bolt { font-size: clamp(22px, 2.6vw, 40px); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── PILLARS ───────────────────────────── */
.pillars { position: relative; }
.pillars__stage {
  position: relative; height: 100vh; height: 100svh;
  overflow: hidden;
}
.pillars__video, .work__video, .finale__video {
  position: absolute; top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%) scale(1.06);
  object-fit: cover;
  filter: saturate(0.9);
}
.pillars__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(10, 10, 8, 0.92) 0%, rgba(10, 10, 8, 0.55) 46%, rgba(10, 10, 8, 0.25) 100%),
    linear-gradient(to bottom, var(--ink) 0%, transparent 18%, transparent 82%, var(--ink) 100%);
}
.pillars__content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(20px, 6vw, 96px);
  max-width: 1080px;
}
.pillars__heading {
  font-family: var(--display);
  font-size: clamp(40px, 7vw, 110px);
  color: var(--cream);
  letter-spacing: 0.01em;
  line-height: 0.9;
  margin-bottom: 6vh;
}
.pillar {
  position: absolute;
  left: clamp(20px, 6vw, 96px); right: clamp(20px, 6vw, 96px);
  top: 52%;
  max-width: 720px;
  opacity: 0;
  visibility: hidden;
}
.pillar__index {
  font-family: var(--display);
  font-size: clamp(15px, 1.6vw, 22px);
  color: var(--emerald);
  letter-spacing: 0.3em;
  text-shadow: 0 0 18px rgba(0, 224, 142, 0.6);
  margin-bottom: 10px;
}
.pillar__name {
  font-family: var(--display);
  font-size: clamp(44px, 6.5vw, 96px);
  line-height: 0.95;
  color: var(--cream);
  margin-bottom: 18px;
}
.pillar__desc {
  font-size: clamp(15px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--cream-dim);
  max-width: 560px;
}
.pillars__progress {
  position: absolute; bottom: 7vh;
  left: clamp(20px, 6vw, 96px);
  width: min(280px, 40vw); height: 2px;
  background: rgba(244, 238, 225, 0.15);
}
.pillars__progress span {
  display: block; width: 0%; height: 100%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}

/* ── WORK ──────────────────────────────── */
.work {
  position: relative;
  overflow: hidden;
  padding: clamp(100px, 16vh, 200px) clamp(20px, 5vw, 72px);
}
.work__video { position: absolute; opacity: 0.55; }
.work__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, var(--ink) 0%, rgba(10, 10, 8, 0.72) 30%, rgba(10, 10, 8, 0.72) 70%, var(--ink) 100%);
}
.work__inner { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; }
.work__heading {
  font-family: var(--display);
  font-size: clamp(48px, 9vw, 150px);
  color: var(--cream);
  line-height: 0.9;
  margin-bottom: clamp(40px, 7vh, 80px);
}
.work__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.card {
  position: relative;
  background: rgba(17, 17, 16, 0.82);
  border: 1px solid rgba(244, 238, 225, 0.12);
  padding: clamp(26px, 3vw, 44px);
  min-height: 320px;
  display: flex; flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(6px);
  transition: border-color 0.35s, transform 0.35s ease, box-shadow 0.35s;
  transform-style: preserve-3d;
  will-change: transform;
}
.card:hover {
  border-color: var(--emerald);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(0, 224, 142, 0.15);
}
.card--btc:hover {
  border-color: var(--btc);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 46px rgba(247, 147, 26, 0.22);
}
.card__tag {
  font-size: 10px; letter-spacing: 0.32em;
  color: var(--emerald);
  margin-bottom: 22px;
}
.card--btc .card__tag { color: var(--btc); }
.card__title {
  font-family: var(--display);
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1;
  color: var(--cream);
  margin-bottom: 16px;
}
.card__pitch {
  font-size: 15px; line-height: 1.65;
  color: var(--cream-dim);
  max-width: 40ch;
}
.card__glyph {
  position: absolute; right: -10px; bottom: -30px;
  font-family: var(--display);
  font-size: 150px; line-height: 1;
  color: rgba(244, 238, 225, 0.05);
  transition: color 0.35s, transform 0.35s;
  pointer-events: none;
}
.card:hover .card__glyph { color: rgba(0, 224, 142, 0.14); transform: translateY(-8px); }
.card--btc:hover .card__glyph { color: rgba(247, 147, 26, 0.16); }

/* ── FINALE ────────────────────────────── */
.finale { position: relative; }
.finale__stage {
  position: relative; height: 100vh; height: 100svh;
  overflow: hidden;
}
.finale__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center 40%, transparent 30%, rgba(10, 10, 8, 0.6) 100%),
    linear-gradient(to bottom, var(--ink) 0%, transparent 15%, transparent 70%, rgba(10, 10, 8, 0.9) 100%);
}
.finale__content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  padding-bottom: 12vh;
  text-align: center;
}
.finale__heading {
  font-family: var(--display);
  line-height: 0.92;
  margin-bottom: 5vh;
}
.finale__line {
  display: block;
  font-size: clamp(34px, 6.4vw, 104px);
  color: var(--cream);
  text-shadow: 0 4px 50px rgba(0, 0, 0, 0.8);
}
.finale__line--accent .char { color: var(--emerald); text-shadow: 0 0 44px rgba(0, 224, 142, 0.45); }
.finale__cta { display: flex; gap: 18px; align-items: center; }
.btn {
  font-family: var(--body); font-weight: 700;
  font-size: clamp(13px, 1.2vw, 16px);
  letter-spacing: 0.22em;
  text-decoration: none;
  padding: 20px 42px;
  border-radius: 2px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn--primary {
  color: var(--ink);
  background: var(--emerald);
  box-shadow: 0 0 40px rgba(0, 224, 142, 0.45), 0 12px 34px rgba(0, 0, 0, 0.5);
}
.btn--primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 70px rgba(0, 224, 142, 0.7), 0 18px 40px rgba(0, 0, 0, 0.5);
}

/* ── FOOTER ────────────────────────────── */
.footer {
  position: relative;
  background: var(--ink);
  border-top: 1px solid rgba(244, 238, 225, 0.1);
  padding: 60px clamp(20px, 5vw, 72px) 80px;
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: baseline; justify-content: space-between;
}
.footer__name {
  font-family: var(--display);
  font-size: clamp(22px, 2.6vw, 40px);
  color: var(--cream);
}
.footer__meta {
  display: flex; flex-wrap: wrap; gap: 26px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cream-dim);
}
.footer__meta a { color: var(--emerald); text-decoration: none; }
.footer__meta a:hover { text-decoration: underline; }

/* ── RESPONSIVE / MOTION ───────────────── */
@media (max-width: 720px) {
  .nav__links { display: none; }
  .stat--wide { grid-column: span 3; }
}
@media (prefers-reduced-motion: reduce) {
  .grain, .marquee__track, .hero__hint i, .pulse { animation: none !important; }
}
