/* ============================================================
   HOME PAGE
   ============================================================ */

/* ----------------------------------------------------------
   PRELOADER
   ---------------------------------------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--navy-900);
  display: grid;
  place-items: center;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}
.preloader.is-done {
  opacity: 0;
  visibility: hidden;
}
.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}
.preloader__mark {
  width: 64px;
  height: 64px;
  animation: preFloat 2.4s var(--ease-in-out) infinite;
}
@keyframes preFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.04); }
}
.preloader__bar {
  width: 160px;
  height: 2px;
  background: rgba(227, 192, 116, 0.16);
  border-radius: 999px;
  overflow: hidden;
}
.preloader__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad-gold);
  transition: width 0.3s var(--ease-out);
}
.preloader__pct {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--ink-400);
}
@media (prefers-reduced-motion: reduce) {
  .preloader__mark { animation: none; }
}

/* ----------------------------------------------------------
   HERO with WebGL canvas
   ---------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: 6rem;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: var(--z-canvas);
  width: 100%;
  height: 100%;
}
/* Static fallback when WebGL unavailable: layered gold aura */
#hero-canvas.is-fallback {
  background:
    radial-gradient(40% 50% at 62% 42%, rgba(204, 125, 81, 0.4), transparent 70%),
    radial-gradient(34% 44% at 50% 50%, rgba(227, 192, 116, 0.28), transparent 72%),
    radial-gradient(60% 70% at 50% 60%, rgba(8, 23, 46, 0.9), transparent);
  animation: fallbackPulse 8s var(--ease-in-out) infinite;
}
@keyframes fallbackPulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(80% 60% at 50% 40%, transparent, rgba(5, 11, 24, 0.4) 100%),
    linear-gradient(180deg, rgba(5, 11, 24, 0.55) 0%, transparent 30%, rgba(5, 11, 24, 0.85) 100%);
}

.hero__inner {
  position: relative;
  z-index: var(--z-content);
  width: 100%;
}

.hero__top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-mega);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink-100);
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-out);
}
.hero.is-ready .hero__title .line > span { transform: translateY(0); }
.hero.is-ready .hero__title .line:nth-child(2) > span { transition-delay: 0.08s; }
.hero.is-ready .hero__title .line:nth-child(3) > span { transition-delay: 0.16s; }
.hero__title em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__meta {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--ease-out) 0.5s, transform 1s var(--ease-out) 0.5s;
}
.hero.is-ready .hero__meta { opacity: 1; transform: translateY(0); }
.hero__desc { max-width: 44ch; color: var(--ink-300); font-size: var(--fs-h4); line-height: 1.5; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Floating social icons — join the stat badges in the right-hand space */
.hero__float {
  position: absolute;
  z-index: var(--z-content);
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--gold-300);
  opacity: 0;
  transition: color var(--d-mid) var(--ease-out),
              border-color var(--d-mid) var(--ease-out),
              box-shadow var(--d-mid) var(--ease-out),
              opacity 1s var(--ease-out);
}
.hero.is-ready .hero__float {
  opacity: 1;
  animation: heroBob 6s var(--ease-in-out) infinite;
}
.hero__float svg { width: 22px; height: 22px; display: block; }
.hero__float:hover,
.hero__float:focus-visible {
  color: var(--copper-500);
  border-color: var(--copper-500);
  box-shadow: var(--glow-copper);
  outline: none;
}

/* Scattered through the right-hand negative space, woven around the badges */
.hero__float--yt { top: 22%;  right: 16%; transition-delay: 0.95s;  animation-delay: 0s;    }
.hero__float--ig { top: 42%;  right: 30%; transition-delay: 1.05s;  animation-delay: 1.1s;  }
.hero__float--li { top: 64%;  right: 18%; transition-delay: 1.15s;  animation-delay: 1.7s;  }

@keyframes heroBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero.is-ready .hero__float { animation: none; }
}

/* Tight viewports: the right-hand space collapses — hide the floaters
   (mirrors how .hero__badge--2 is dropped here too) */
@media (max-width: 1100px) {
  .hero__float--ig { display: none; }
  .hero__float--yt { top: 14%; right: 5%; }
  .hero__float--li { top: 30%; right: 5%; }
}

@media (max-width: 768px) {
  .hero__float { display: none; }
}

/* Floating stat badge in hero */
.hero__badge {
  position: absolute;
  z-index: var(--z-content);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 1rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  opacity: 0;
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.hero.is-ready .hero__badge { opacity: 1; }
.hero__badge strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.8rem;
  color: var(--gold-300);
  line-height: 1;
}
.hero__badge span { font-size: 0.72rem; color: var(--ink-400); letter-spacing: 0.05em; }
/* Both badges live in the right-hand negative space, stacked —
   clear of the left-aligned title, description and buttons. */
.hero__badge--1 { top: 30%; right: 4%; transition-delay: 0.7s; }
.hero__badge--2 { top: 49%; right: 8%; transition-delay: 0.85s; }

/* Hide badges earlier (below ~1100px) where the right column gets tight */
@media (max-width: 1100px) {
  .hero__badge--2 { display: none; }
  .hero__badge--1 { top: 22%; right: 4%; }
}

/* ----------------------------------------------------------
   CREATORS SLIDER — coverflow-style infinite strip
   Center items read full-size; items shrink as they approach
   the left/right edges (JS-driven scale via --scale per item).
   ---------------------------------------------------------- */
.creators {
  position: relative;
  z-index: var(--z-content);
  padding-block: clamp(2.2rem, 5vw, 3.5rem);
}
.creators__slider {
  position: relative;
  overflow: hidden;
  padding-top: clamp(1.4rem, 3vw, 2.2rem);
  padding-bottom: clamp(3.6rem, 7vw, 5.6rem);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.creators__track {
  display: flex;
  align-items: flex-start;
  gap: clamp(1.75rem, 3.4vw, 3rem);
  width: max-content;
  will-change: transform;
}

.creators__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  width: clamp(84px, 8vw, 118px);
  flex-shrink: 0;
  transform: translate(var(--pull, 0px), var(--lift, 0px)) scale(var(--scale, 0.42));
  transition: transform var(--d-fast) linear;
}
.creators__avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(43, 61, 91, 0.4), rgba(13, 29, 54, 0.6));
  border: 1px solid var(--line);
  padding: 4px;
  transition: border-color var(--d-mid) var(--ease-out),
    box-shadow var(--d-mid) var(--ease-out);
}
.creators__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.creators__avatar--contain {
  border-radius: var(--r-md);
  background: #fff;
}
.creators__avatar--contain img { object-fit: contain; }
.creators__item:hover .creators__avatar {
  border-color: var(--gold-300);
  box-shadow: var(--glow-gold);
}
.creators__name {
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-400);
  text-align: center;
  line-height: 1.3;
  opacity: var(--name-opacity, 0.5);
  transition: color var(--d-mid) var(--ease-out), opacity var(--d-fast) linear;
  white-space: nowrap;
}
.creators__item:hover .creators__name { color: var(--gold-200); }

@media (prefers-reduced-motion: reduce) {
  .creators__slider { overflow-x: auto; }
  .creators__item { transform: none !important; }
  .creators__name { opacity: 1 !important; }
}

/* ----------------------------------------------------------
   INTRO / MANIFESTO
   ---------------------------------------------------------- */
.manifesto { text-align: left; }
.manifesto__text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink-300);
  max-width: 24ch;
}
.manifesto__text b {
  font-weight: 600;
  color: var(--ink-100);
}
.manifesto__text em {
  font-family: var(--font-accent);
  font-style: italic;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.manifesto__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}
.manifesto__aside { display: flex; flex-direction: column; gap: 1.6rem; }
.manifesto__aside p { color: var(--ink-400); }

/* ----------------------------------------------------------
   SERVICES
   ---------------------------------------------------------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  perspective: 1400px;
}
.svc {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}
.svc__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--copper-500);
  letter-spacing: 0.1em;
}
.svc__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: rgba(227, 192, 116, 0.06);
  color: var(--gold-300);
  margin-bottom: auto;
}
.svc__icon svg { width: 28px; height: 28px; }
.svc h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h3);
  color: var(--ink-100);
  line-height: 1.05;
}
.svc p { color: var(--ink-400); font-size: var(--fs-small); }
.svc__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.svc__tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  padding: 0.4em 0.8em;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  color: var(--ink-300);
}
.svc--feature {
  grid-row: span 2;
  background: linear-gradient(160deg, rgba(204, 125, 81, 0.18), rgba(13, 29, 54, 0.6));
}

/* ----------------------------------------------------------
   STATS
   ---------------------------------------------------------- */
.stats {
  position: relative;
  border-block: 1px solid var(--line);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat {
  background: var(--navy-900);
  padding: clamp(1.8rem, 4vw, 3rem) clamp(1.4rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
}
.stat::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--grad-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease-out);
}
.stat.is-in::after { transform: scaleX(1); }
.stat__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1;
  color: var(--ink-100);
  letter-spacing: -0.03em;
}
.stat__num .suffix { color: var(--gold-300); }
.stat__label { font-size: var(--fs-small); color: var(--ink-400); }

/* ----------------------------------------------------------
   PROCESS
   ---------------------------------------------------------- */
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.process__step {
  position: relative;
  padding-top: 2.6rem;
  border-top: 1px solid var(--line);
}
.process__step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: -0.1rem;
  left: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--copper-500);
}
.process__step::after {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 0; height: 2px;
  background: var(--grad-gold);
  transition: width 1s var(--ease-out);
}
.process__step.is-in::after { width: 100%; }
.process__step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h4);
  color: var(--ink-100);
  margin-bottom: 0.7rem;
}
.process__step p { color: var(--ink-400); font-size: var(--fs-small); }

/* ----------------------------------------------------------
   SHOWCASE / WORK PREVIEW
   ---------------------------------------------------------- */
.showcase__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: var(--sp-5);
}
.showcase__list { display: flex; flex-direction: column; }
.work-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.4rem, 3vw, 2.2rem) 0.5rem;
  border-top: 1px solid var(--line);
  position: relative;
  transition: padding var(--d-mid) var(--ease-out);
}
.work-row:last-child { border-bottom: 1px solid var(--line); }
.work-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(204, 125, 81, 0.08), transparent);
  opacity: 0;
  transition: opacity var(--d-mid) var(--ease-out);
}
.work-row:hover { padding-inline: 1.5rem; }
.work-row:hover::before { opacity: 1; }
.work-row__idx { font-family: var(--font-mono); font-size: 0.78rem; color: var(--copper-500); }
.work-row__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3.4vw, 2.4rem);
  color: var(--ink-200);
  line-height: 1.05;
  transition: color var(--d-mid) var(--ease-out);
}
.work-row:hover .work-row__title { color: var(--ink-100); }
.work-row__cat { font-size: var(--fs-small); color: var(--ink-400); }
.work-row__metric {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  color: var(--gold-300);
  white-space: nowrap;
}
/* floating image preview on hover (desktop) */
.work-preview {
  position: fixed;
  top: 0; left: 0;
  width: 320px;
  height: 220px;
  border-radius: var(--r-md);
  overflow: hidden;
  pointer-events: none;
  z-index: 60;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity var(--d-mid) var(--ease-out), transform var(--d-mid) var(--ease-out);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line-strong);
}
.work-preview.is-visible { opacity: 1; }
.work-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ----------------------------------------------------------
   PRICING TEASER
   ---------------------------------------------------------- */
.pricing-teaser__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: clamp(1.8rem, 3vw, 2.6rem);
}
.plan__name {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper-500);
}
.plan__price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--ink-100);
  line-height: 1;
  letter-spacing: -0.02em;
}
.plan__price small { font-size: 0.9rem; color: var(--ink-400); font-family: var(--font-sans); }
.plan__desc { color: var(--ink-400); font-size: var(--fs-small); }
.plan__list { display: flex; flex-direction: column; gap: 0.8rem; margin-top: auto; }
.plan__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: var(--fs-small);
  color: var(--ink-300);
}
.plan__list svg { color: var(--gold-300); flex-shrink: 0; margin-top: 3px; }
.plan--featured {
  background: linear-gradient(160deg, rgba(204, 125, 81, 0.2), rgba(13, 29, 54, 0.5));
  border-color: var(--line-strong);
  box-shadow: var(--glow-copper);
}
.plan__flag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  padding: 0.4em 0.9em;
  border-radius: var(--r-pill);
  background: var(--grad-gold);
  color: var(--navy-900);
  font-weight: 700;
}

/* ----------------------------------------------------------
   TESTIMONIAL FEATURE
   ---------------------------------------------------------- */
.quote {
  max-width: 980px;
  margin-inline: auto;
  text-align: center;
}
.quote__mark {
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 0.5;
  color: var(--copper-500);
  opacity: 0.4;
}
.quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.6vw, 2.8rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink-100);
  margin-block: 1.5rem 2.5rem;
}
.quote blockquote em {
  font-family: var(--font-accent);
  font-style: italic;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.quote__author { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.quote__avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--grad-gold-soft);
  display: grid; place-items: center;
  font-family: var(--font-display);
  color: var(--navy-900);
  font-size: 1.2rem;
}
.quote__meta { text-align: left; }
.quote__meta strong { color: var(--ink-100); display: block; }
.quote__meta span { font-size: var(--fs-small); color: var(--ink-400); }

/* ----------------------------------------------------------
   RESPONSIVE — HOME
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .svc--feature { grid-row: span 1; grid-column: span 2; min-height: auto; }
  .process__grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-teaser__grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}
@media (max-width: 760px) {
  .manifesto__grid { grid-template-columns: 1fr; align-items: start; }
  .hero__badge { display: none; }
  /* eyebrow: tighter spacing + clean wrap so the line never breaks mid-phrase */
  .hero__top { margin-bottom: 1.6rem; }
  .hero__top .eyebrow {
    flex-wrap: wrap;
    align-items: flex-start;
    letter-spacing: 0.2em;
    line-height: 1.7;
  }
  .hero__top .eyebrow::before { margin-top: 0.55em; }
  .hero__meta { flex-direction: column; align-items: stretch; }
  /* full-width, centered hero buttons on mobile */
  .hero__actions { width: 100%; flex-direction: column; gap: 0.8rem; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .showcase__head { flex-direction: column; align-items: flex-start; }
  .work-row { grid-template-columns: auto 1fr; gap: 0.8rem 1.2rem; }
  .work-row__cat, .work-row__metric { grid-column: 2; }
  .work-preview { display: none; }
}
@media (max-width: 560px) {
  .services__grid { grid-template-columns: 1fr; }
  .svc--feature { grid-column: span 1; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .process__grid { grid-template-columns: 1fr; }
}
