/* ══════════════════════════════════════════════════════════
   CALVIN JEAN — landing page, CoWorlds Night mode, black & gold
   Spec: creator-sprint-v2/brand/COWORLDS-NIGHT.md
   Near-black canvas, one gold accent, hairline cards,
   glow only where it means something.
   ══════════════════════════════════════════════════════════ */

:root {
  --canvas: #06070c;
  --text: #f2f4f9;
  --text-dim: rgba(242, 244, 249, 0.62);
  --text-faint: rgba(242, 244, 249, 0.38);
  --hairline: rgba(255, 255, 255, 0.08);
  --card-fill: rgba(255, 255, 255, 0.028);
  --accent: #f2c14e;
  --accent-ink: #140d03;
  --grad-italic: linear-gradient(100deg, #ffe6ae, #f2c14e 50%, #d98e2b);

  --font-display: 'Inter Tight', ui-sans-serif, system-ui, sans-serif;
  --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;

  --radius-card: 26px;
  --radius-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.lenis { height: auto; scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 40px);
  padding-right: clamp(20px, 4vw, 40px);
}

/* ══════════ CANVAS LAYERS (globe · beam · vignette) ══════════ */
.canvas { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

.canvas__beam {
  position: absolute; top: -220px; right: -180px;
  width: 780px; height: 900px;
  background: linear-gradient(205deg, rgba(242, 193, 78, 0.34), rgba(217, 142, 43, 0.16) 45%, transparent 72%);
  filter: blur(70px);
  transform: rotate(8deg);
}

.canvas__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 38%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

/* ══════════ TYPE ══════════ */
.section-title {
  font-family: var(--font-display);
  font-weight: 720;
  font-size: clamp(1.9rem, 3.4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 22ch;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section-title--center { margin-left: auto; margin-right: auto; text-align: center; }

.grad {
  font-style: normal;
  background: var(--grad-italic);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}

/* section rhythm */
.work, .process, .cta { padding-top: clamp(80px, 10vw, 150px); }

/* ══════════ PILLS ══════════ */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem;
  padding: 0.9rem 1.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.01em;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.pill:hover { transform: scale(1.02); }
.pill--accent {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 0 32px rgba(242, 193, 78, 0.22);
}
.pill--accent:hover { background: #ffe6ae; box-shadow: 0 0 44px rgba(242, 193, 78, 0.32); }
.pill--ghost { border: 1px solid rgba(255, 255, 255, 0.18); color: var(--text); }
.pill--ghost:hover { border-color: rgba(255, 255, 255, 0.5); }

/* ══════════ CARDS ══════════ */
.card {
  background: var(--card-fill);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-card);
  padding: clamp(24px, 3vw, 36px);
}
.card__label {
  font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.chip {
  display: inline-flex; align-items: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--card-fill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 550; font-size: 0.9375rem;
  color: var(--text-dim);
}

/* ══════════ SCROLL PROGRESS ══════════ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--grad-italic);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 60;
  pointer-events: none;
}

/* ══════════ NAV — centered collapsing pill ══════════ */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
}
.nav__pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 20px);
  height: 54px;
  padding: 0 12px;
  background: rgba(6, 7, 12, 0.62);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  white-space: nowrap;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.nav__pill.is-collapsed {
  cursor: pointer;
  justify-content: center;
  padding: 0;
}
.nav__pill.is-collapsed:hover {
  transform: scale(1.08);
  border-color: rgba(242, 193, 78, 0.45);
  box-shadow: 0 0 30px rgba(242, 193, 78, 0.25);
}
.nav__divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.14);
  flex: none;
}
.nav__links { display: flex; align-items: center; gap: clamp(4px, 0.8vw, 12px); }
.nav__links a {
  padding: 6px 10px;
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--text-dim);
  border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
/* .nav prefix beats the later footer .social rules on specificity */
.nav .social--nav { margin: 0; gap: 8px; }
.nav .social--nav .social__btn { width: 36px; height: 36px; border-color: transparent; background: transparent; color: var(--text-dim); }
/* hover matches the text links: same quiet pill, same brighten */
.nav .social--nav .social__btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  transform: none; box-shadow: none; border-color: transparent;
}
.nav__burger {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--text);
  opacity: 0;
  pointer-events: none;
}
.nav__burger svg { width: 22px; height: 22px; }
@media (max-width: 1020px) {
  .nav__links, .nav__divider { display: none; }
}

/* ══════════ HERO ══════════ */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
  padding-top: clamp(118px, 14vh, 150px);
  padding-bottom: clamp(16px, 3vh, 40px);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 3.5vw + 0.4rem, 4.3rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 26px;
}

.hero__lead {
  font-size: clamp(1rem, 1vw + 0.75rem, 1.2rem);
  color: var(--text-dim);
  max-width: 50ch;
  margin-bottom: 34px;
}

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }

.hero__anchor {
  font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-faint);
}

.hero__frame {
  position: relative;
  border-radius: var(--radius-card);
  border: 1.5px solid rgba(242, 193, 78, 0.55);
  box-shadow: 0 0 40px rgba(242, 193, 78, 0.16);
  overflow: hidden;
}
.hero__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 12%;
}

/* ══════════ BRAND SLIDER ══════════ */
.brands { padding-top: clamp(56px, 7vw, 96px); }
.brands__line {
  text-align: center;
  font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: clamp(24px, 3vw, 40px);
}
.brands__viewport {
  overflow: hidden;
  max-width: min(1080px, 92%);
  margin: 0 auto;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.brands__track {
  display: flex;
  align-items: center;
  gap: clamp(48px, 6vw, 84px);
  width: max-content;
  will-change: transform;
}
.brands__item { flex: none; display: grid; place-items: center; }
.brands__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 10px 26px;
  white-space: nowrap;
}
.brands__logo-img {
  height: 30px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  /* normalize any logo color to dimmed white for the night canvas */
  filter: brightness(0) invert(1);
  opacity: 0.5;
  transition: opacity 0.3s;
}
.brands__item:hover .brands__logo-img { opacity: 0.9; }

/* ══════════ STATS BAND — dot cards ══════════ */
.stats { padding-top: clamp(70px, 9vw, 120px); }
.stats__row {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
}
.stat__card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(26px, 3vw, 36px) 12px clamp(22px, 2.5vw, 30px);
  border-radius: 16px;
  background: linear-gradient(160deg, #0c0e17, #06070c);
}
/* soft light ray falling from the top */
.stat__ray {
  position: absolute;
  top: -34px; left: 18%;
  width: 64%; height: 70px;
  background: rgba(242, 193, 78, 0.28);
  filter: blur(34px);
  border-radius: 100px;
  transform: rotate(-8deg);
  opacity: 0.55;
  animation: rayBreathe 6s ease-in-out infinite alternate;
}
@keyframes rayBreathe { from { opacity: 0.35; } to { opacity: 0.7; } }
/* hairline gradient edges */
.stat__line { position: absolute; }
.stat__line--top, .stat__line--bottom {
  left: 6%; right: 6%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}
.stat__line--top { top: 0; }
.stat__line--bottom { bottom: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent); }
.stat__line--left, .stat__line--right {
  top: 8%; bottom: 8%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}
.stat__line--left { left: 0; }
.stat__line--right { right: 0; }
.stat__num {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  position: relative;
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
@media (max-width: 760px) {
  .stats__row { grid-template-columns: 1fr 1fr; }
}

/* ══════════ THE WORK — fan/deck of Drive embeds ══════════ */
/* ── coverflow carousel shell ── */
.carousel { position: relative; }

.carousel .swiper {
  width: 100%;
  /* generous vertical padding so the active card's glow fades out
     before the container clips it (negative margins keep the layout
     rhythm unchanged) */
  padding: 90px 0 130px;
  margin: -66px 0 -66px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.carousel .swiper-slide {
  width: min(300px, 74vw);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transform: scale(0.8);
}
.carousel .swiper-slide-active { transform: scale(1); }

/* dots */
.carousel .swiper-pagination-bullet {
  width: 8px; height: 8px;
  background: rgba(255, 255, 255, 0.22);
  opacity: 1;
  transition: background 0.3s, width 0.3s;
  border-radius: 999px;
}
.carousel .swiper-pagination-bullet-active {
  background: var(--accent);
  width: 22px;
}

/* arrows */
.carousel .swiper-button-prev,
.carousel .swiper-button-next,
.gallery__shell .swiper-button-prev,
.gallery__shell .swiper-button-next {
  top: calc(50% - 32px);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(6, 7, 12, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-dim);
  transition: color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.carousel .swiper-button-prev:hover,
.carousel .swiper-button-next:hover,
.gallery__shell .swiper-button-prev:hover,
.gallery__shell .swiper-button-next:hover {
  color: var(--text);
  border-color: rgba(242, 193, 78, 0.55);
  box-shadow: 0 0 24px rgba(242, 193, 78, 0.2);
}
.carousel .swiper-button-prev::after,
.carousel .swiper-button-next::after,
.gallery__shell .swiper-button-prev::after,
.gallery__shell .swiper-button-next::after {
  font-size: 15px;
  font-weight: 800;
}

.fan-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  background: #0a0c14;
  cursor: pointer;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, filter 0.4s ease;
}
/* side slides recede slightly; the active one carries the glow */
.carousel .swiper-slide:not(.swiper-slide-active) .fan-card {
  filter: brightness(0.62);
}
.carousel .swiper-slide-active .fan-card {
  border: 1.5px solid rgba(242, 193, 78, 0.55);
  box-shadow: 0 0 40px rgba(242, 193, 78, 0.18), 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: glowBreathe 6s ease-in-out infinite alternate;
}
.fan-card.is-live { cursor: default; }
.fan-card--empty .work__play { display: none; }

.fan-card__label {
  position: absolute;
  left: 50%; bottom: 14px;
  transform: translateX(-50%);
  z-index: 4;
  max-width: calc(100% - 24px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(6, 7, 12, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text);
  pointer-events: none;
}
.fan-card.is-live .fan-card__label { display: none; }
.fan-card--empty .fan-card__label { color: var(--text-dim); }

.work__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fan-card iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  background: #000;
}

.work__play {
  position: absolute; z-index: 3;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  display: grid; place-items: center;
  background: rgba(6, 7, 12, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  color: #f2f4f9;
  border-radius: 50%;
  transition: transform 0.25s ease, background 0.25s ease;
  pointer-events: none;
}
.fan-card:not(.is-live):hover .work__play {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(242, 193, 78, 0.85);
  color: #14060d;
}

.work__title {
  font-family: var(--font-display);
  font-weight: 720;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.work__brief { color: var(--text-dim); font-size: 0.9375rem; }


/* ══════════ POSITIONING — icon feature grid ══════════ */
.positioning { position: relative; padding-top: clamp(80px, 10vw, 150px); }
.positioning::before {
  content: '';
  position: absolute;
  top: 40px; left: 50%;
  transform: translateX(-50%);
  width: min(560px, 70%);
  aspect-ratio: 1.4;
  border-radius: 50%;
  background: rgba(242, 193, 78, 0.05);
  filter: blur(140px);
  pointer-events: none;
  z-index: -1;
}
.positioning__sub {
  text-align: center;
  color: var(--text-dim);
  max-width: 52ch;
  margin: calc(-1 * clamp(24px, 3.5vw, 48px)) auto clamp(26px, 3vw, 40px);
}
.pos__grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.2vw, 28px);
}
.pos__icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(242, 193, 78, 0.1);
  border: 1px solid rgba(242, 193, 78, 0.3);
  color: var(--accent);
  margin-bottom: 18px;
}
.pos__icon svg { width: 20px; height: 20px; }
.pos__item {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: clamp(22px, 2.5vw, 30px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.35s, box-shadow 0.35s, background 0.35s;
}
.pos__item:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(242, 193, 78, 0.35);
  box-shadow: 0 0 44px rgba(242, 193, 78, 0.12), 0 20px 44px rgba(0, 0, 0, 0.4);
}
.pos__item h3 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.pos__item p { color: var(--text-dim); font-size: 0.9375rem; max-width: 36ch; }

/* ── read-more tail + expand modal ── */
.pos__more-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.8438rem;
  font-weight: 600;
  color: rgba(242, 193, 78, 0.65);
  transition: color 0.3s;
}
.pos__item:hover .pos__more-link { color: var(--accent); }

.pos-modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 20px;
  visibility: hidden;
}
.pos-modal.is-open { visibility: visible; }
.pos-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(3, 4, 8, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s;
}
.pos-modal.is-open .pos-modal__backdrop { opacity: 1; }
.pos-modal__card {
  position: relative;
  width: min(560px, 94vw);
  max-height: 84vh;
  overflow-y: auto;
  background: rgba(20, 16, 22, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(242, 193, 78, 0.35);
  border-radius: 24px;
  box-shadow: 0 0 60px rgba(242, 193, 78, 0.14), 0 40px 80px rgba(0, 0, 0, 0.5);
  padding: clamp(28px, 4vw, 40px);
  will-change: transform;
}
.pos-modal__close {
  position: absolute; top: 16px; right: 18px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-dim);
  font-size: 15px;
  transition: background 0.25s, color 0.25s;
}
.pos-modal__close:hover { background: rgba(255, 255, 255, 0.12); color: var(--text); }
.pos-modal__content .pos__icon { margin-bottom: 20px; }
.pos-modal__content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.pos-modal__content > p { color: var(--text-dim); margin-bottom: 20px; }
.pos-modal__content ul { display: grid; gap: 12px; }
.pos-modal__content li {
  position: relative;
  padding-left: 22px;
  color: rgba(242, 244, 249, 0.85);
  font-size: 0.9688rem;
}
.pos-modal__content li::before {
  content: '';
  position: absolute; left: 0; top: 0.55em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

/* ══════════ PHOTO GALLERY — flat 4:5 row ══════════ */
.gallery { padding-top: clamp(80px, 10vw, 150px); }
.gallery__shell { position: relative; }
.gallery .swiper { overflow: hidden; border-radius: 4px; }
.gcard {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0c14;
}
.gcard img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.gcard:hover img { transform: scale(1.05); }
.gcard figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 34px 18px 14px;
  background: linear-gradient(180deg, transparent, rgba(6, 7, 12, 0.88) 55%);
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--text);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s;
  pointer-events: none;
}
.gcard:hover figcaption { transform: translateY(0); opacity: 1; }

/* ══════════ PROCESS STEPPER ══════════ */
.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 clamp(8px, 1.5vw, 20px);
}
.step { position: relative; text-align: center; padding: 0 clamp(8px, 1.5vw, 18px); }

/* connector spine between dots */
.step + .step::before {
  content: '';
  position: absolute;
  top: 19px;
  left: calc(-50% + 34px);
  right: calc(50% + 34px);
  height: 1.5px;
  background: var(--hairline);
  transition: background 0.4s ease;
}
.step.is-active::before,
.step.is-completed::before { background: rgba(242, 193, 78, 0.55); }

.step__trigger { display: inline-flex; padding: 4px; cursor: pointer; }
.step__dot {
  position: relative;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--card-fill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: background 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.step__num {
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.875rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  transition: color 0.35s, opacity 0.25s, transform 0.25s;
}
.step__check {
  position: absolute;
  width: 15px; height: 15px;
  color: var(--accent);
  opacity: 0; transform: scale(0.4);
  transition: opacity 0.25s, transform 0.25s ease;
}

.step.is-active .step__dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 26px rgba(242, 193, 78, 0.35);
}
.step.is-active .step__num { color: var(--accent-ink); }

.step.is-completed .step__dot { border-color: rgba(242, 193, 78, 0.55); }
.step.is-completed .step__num { opacity: 0; transform: scale(0.4); }
.step.is-completed .step__check { opacity: 1; transform: scale(1); }

.step__title {
  font-family: var(--font-display);
  font-weight: 650; font-size: 1.05rem; letter-spacing: -0.01em;
  margin: 14px 0 6px;
  color: var(--text-dim);
  transition: color 0.35s;
}
.step.is-active .step__title,
.step.is-completed .step__title,
.step:hover .step__title { color: var(--text); }
.step__desc { color: var(--text-faint); font-size: 0.9rem; max-width: 26ch; margin: 0 auto; transition: color 0.35s; }
.step.is-active .step__desc { color: var(--text-dim); }

@media (max-width: 760px) {
  .pos__grid { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr; gap: 0; }
  .step {
    display: grid;
    grid-template-columns: 46px 1fr;
    text-align: left;
    padding: 0 0 30px;
    column-gap: 16px;
  }
  .step__trigger { grid-row: 1 / span 2; align-self: start; }
  .step__title { margin-top: 8px; grid-column: 2; }
  .step__desc { grid-column: 2; margin: 0; max-width: none; }
  .step + .step::before {
    top: auto; bottom: calc(100% - 8px);
    left: 22px; right: auto;
    width: 1.5px; height: 22px;
  }
}

/* ══════════ TESTIMONIALS ══════════ */
.testis { padding-top: clamp(80px, 10vw, 150px); }
.testis__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.testis__track {
  display: flex;
  gap: clamp(16px, 2vw, 26px);
  width: max-content;
  will-change: transform;
}
.testis__track .testi { width: min(420px, 82vw); flex: none; }

.testi {
  background: var(--card-fill);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.testi__body { padding: 20px clamp(18px, 2vw, 26px) clamp(20px, 2vw, 26px); }
.testi__stars { display: flex; gap: 4px; margin-bottom: 14px; }
.testi__stars svg { width: 15px; height: 15px; fill: var(--accent); }
.testi__quote {
  font-weight: 500;
  color: rgba(242, 244, 249, 0.88);
  line-height: 1.55;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline);
}
.testi__person { display: flex; align-items: center; gap: 12px; padding-top: 16px; }
.testi__avatar {
  width: 44px; height: 44px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(242, 193, 78, 0.12);
  border: 1px solid rgba(242, 193, 78, 0.35);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
img.testi__avatar { object-fit: cover; }
.testi__name { font-weight: 650; font-family: var(--font-display); letter-spacing: -0.01em; }
.testi__role {
  font-size: 0.8125rem; font-weight: 600;
  background: var(--grad-italic);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
}

/* ══════════ CTA — connect panel ══════════ */
.cta { text-align: center; }
.cta__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 3.6vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 20ch;
  margin: 0 auto 14px;
}
.cta__body { color: var(--text-dim); margin: 0 auto 40px; max-width: 46ch; font-size: 1.0625rem; }

.cta__panel {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(242, 193, 78, 0.35);
  border-radius: 28px;
  padding: clamp(32px, 4.5vw, 52px);
  box-shadow: 0 0 50px rgba(242, 193, 78, 0.18), 0 0 90px rgba(217, 142, 43, 0.1);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}
.cta__panel:hover {
  transform: scale(1.02);
  box-shadow: 0 0 64px rgba(242, 193, 78, 0.26), 0 0 110px rgba(217, 142, 43, 0.14);
}

.connect {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(24px, 4vw, 48px);
}
.connect__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.connect__circle {
  width: 76px; height: 76px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  color: var(--text);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.35s, border-color 0.35s, box-shadow 0.35s, color 0.35s;
}
.connect__circle svg { width: 28px; height: 28px; }
.connect__item:hover .connect__circle {
  transform: translateY(-9px) scale(1.09);
  background: rgba(242, 193, 78, 0.16);
  border-color: rgba(242, 193, 78, 0.55);
  box-shadow: 0 0 26px rgba(242, 193, 78, 0.4);
  color: #ffcfe6;
}
.connect__label {
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--text-faint);
  transition: color 0.3s, transform 0.3s;
}
.connect__item:hover .connect__label { color: var(--text); transform: translateY(3px); }

.toast {
  position: fixed; left: 50%; bottom: 36px; z-index: 90;
  transform: translate(-50%, 140%);
  background: var(--text); color: var(--canvas);
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem; font-weight: 600;
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  pointer-events: none;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* ══════════ FOOTER ══════════ */
.footer {
  margin-top: clamp(72px, 9vw, 140px);
  border-top: 1px solid var(--hairline);
  padding: 36px clamp(20px, 4vw, 40px) 44px;
  text-align: center;
}
.footer__lockup {
  font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.footer__fine { font-size: 0.8125rem; color: var(--text-faint); }
.footer__fine a { color: var(--text-dim); }
.footer__fine a:hover { color: var(--accent); }

.social {
  display: flex; justify-content: center; gap: 14px;
  margin: 4px 0 18px;
}
.social__btn {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--card-fill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-dim);
  transition: color 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.25s ease;
}
.social__btn:hover {
  color: var(--text);
  border-color: rgba(242, 193, 78, 0.55);
  box-shadow: 0 0 24px rgba(242, 193, 78, 0.2);
  transform: translateY(-2px);
}

/* ══════════ AMBIENT MOTION (the alive layer) ══════════ */
@keyframes beamDrift {
  from { transform: rotate(8deg) translate3d(0, 0, 0); opacity: 1; }
  to   { transform: rotate(3deg) translate3d(-46px, 34px, 0); opacity: 0.72; }
}
.canvas__beam { animation: beamDrift 16s ease-in-out infinite alternate; }

@keyframes glowBreathe {
  from { box-shadow: 0 0 34px rgba(242, 193, 78, 0.12), 0 24px 60px rgba(0, 0, 0, 0.4); }
  to   { box-shadow: 0 0 72px rgba(242, 193, 78, 0.30), 0 24px 60px rgba(0, 0, 0, 0.4); }
}
.hero__frame { animation: glowBreathe 7s ease-in-out infinite alternate; }
.cta__panel { animation: glowBreathe 8.5s ease-in-out infinite alternate; }

/* stage light behind the carousel */
.carousel::before {
  content: '';
  position: absolute;
  left: 50%; top: 44%;
  width: min(980px, 90%);
  aspect-ratio: 1.7;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(242, 193, 78, 0.10), rgba(217, 142, 43, 0.05) 45%, transparent 70%);
  animation: stageBreathe 9s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes stageBreathe {
  from { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  to   { opacity: 1;   transform: translate(-50%, -50%) scale(1.07); }
}

/* sheen sweep on accent pills */
.pill--accent { position: relative; overflow: hidden; }
.pill--accent::after {
  content: '';
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 60%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: translateX(-170%) skewX(-14deg);
  transition: transform 0.7s ease;
  pointer-events: none;
}
.pill--accent:hover::after { transform: translateX(300%) skewX(-14deg); }

/* hero word pull-up (spans injected by JS) */
.wp { display: inline-block; will-change: transform; }

/* masked word reveals (spans injected by JS) */
.tw { display: inline-block; overflow: hidden; vertical-align: bottom; }
.tw-inner { display: inline-block; transform: translateY(115%); will-change: transform; }

/* ══════════ VIDEO LIGHTBOX ══════════ */
.vid-modal {
  position: fixed; inset: 0; z-index: 210;
  display: grid; place-items: center;
  padding: 20px;
  visibility: hidden;
}
.vid-modal.is-open { visibility: visible; }
.vid-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(2, 3, 6, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.3s;
}
.vid-modal.is-open .vid-modal__backdrop { opacity: 1; }
.vid-modal__stage {
  position: relative;
  height: min(88vh, 940px);
  aspect-ratio: 9 / 16;
  max-width: 94vw;
}
.vid-modal__frame {
  width: 100%; height: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(242, 193, 78, 0.35);
  box-shadow: 0 0 60px rgba(242, 193, 78, 0.15);
  background: #000;
}
.vid-modal__frame iframe { width: 100%; height: 100%; border: 0; background: #000; }
.vid-modal__close {
  position: absolute;
  top: -8px; right: -52px;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-dim);
  font-size: 15px;
  transition: background 0.25s, color 0.25s;
}
.vid-modal__close:hover { background: rgba(255, 255, 255, 0.14); color: var(--text); }
@media (max-width: 700px) {
  .vid-modal__stage { height: auto; width: 94vw; max-height: 86vh; }
  .vid-modal__close { top: -50px; right: 0; }
}

/* ══════════ MOTION INITIAL STATES (JS-gated) ══════════ */
html.has-motion [data-rise] { opacity: 0; transform: translateY(26px); }

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: unset; padding-top: 40px; }
  .hero__media { order: -1; max-width: 400px; }
  .process__grid { grid-template-columns: 1fr 1fr; }
  .pos__grid { grid-template-columns: 1fr 1fr; }
  .testis__grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .canvas__beam { right: -320px; opacity: 0.8; }
}

@media (max-width: 560px) {
  .nav__name { display: none; }
  .process__grid { grid-template-columns: 1fr; }
  .facts__row { flex-direction: column; gap: 2px; }
  .facts dd { text-align: left; }
  .hero__actions .pill { width: 100%; }
}

/* ══════════ MOBILE EXPERIENCE ══════════
   Not a shrunk desktop: its own composition. Full-height hero splash
   with copy over the portrait, circle nav that opens a dropdown sheet,
   swipe-first carousels, compact single-column positioning rows, and
   a sticky "Send me your brief" bar for thumb-level conversion. */
@media (max-width: 640px) {
  /* tighter section rhythm */
  .work, .process, .cta { padding-top: 72px; }
  .positioning, .gallery, .testis { padding-top: 72px; }
  .stats { padding-top: 56px; }
  .brands { padding-top: 52px; }
  .section-title { margin-bottom: 28px; }

  /* nav: fixed circle top-right; tap opens a dropdown sheet */
  .nav { left: auto; right: 14px; top: 14px; transform: none; }
  .nav__pill { width: 54px; padding: 0; justify-content: center; }
  .nav__burger { opacity: 1; pointer-events: none; }
  .nav .social--nav { display: none; }
  .nav.is-open .nav__pill {
    width: min(300px, calc(100vw - 28px));
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px;
    border-radius: 22px;
    overflow: visible;
    white-space: normal;
  }
  .nav.is-open .nav__burger { display: none; }
  .nav.is-open .nav__links { display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
  .nav.is-open .nav__links a { padding: 12px 14px; font-size: 1rem; }
  .nav.is-open .nav__divider { display: block; width: 100%; height: 1px; margin: 10px 0; }
  .nav.is-open .social--nav { display: flex; justify-content: space-between; padding: 0 6px; }
  .nav.is-open .social--nav .social__btn { width: 44px; height: 44px; }

  /* hero: full-height splash, copy over the portrait */
  .hero.container {
    grid-template-columns: 1fr;
    padding: 0;
    min-height: 100vh;
    min-height: 100svh;
  }
  .hero__media, .hero__content { grid-area: 1 / 1; }
  .hero__media { order: 0; max-width: none; z-index: 0; }
  .hero__frame {
    height: 100vh;
    height: 100svh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    animation: none;
  }
  .hero__img { height: 100%; aspect-ratio: auto; object-position: center 15%; }
  .hero__frame::after {
    content: '';
    position: absolute; inset: 0;
    /* two eased scrims: a soft cap for the nav circle, and a long
       ease-in ramp to canvas so the blend has no visible edge */
    background:
      linear-gradient(180deg, rgba(6, 7, 12, 0.36), rgba(6, 7, 12, 0.14) 12%, transparent 26%),
      linear-gradient(180deg,
        transparent 34%,
        rgba(6, 7, 12, 0.06) 42%,
        rgba(6, 7, 12, 0.18) 50%,
        rgba(6, 7, 12, 0.4) 58%,
        rgba(6, 7, 12, 0.62) 66%,
        rgba(6, 7, 12, 0.8) 75%,
        rgba(6, 7, 12, 0.93) 85%,
        rgba(6, 7, 12, 0.99) 94%,
        var(--canvas) 100%);
  }
  .hero__content {
    z-index: 1;
    align-self: end;
    padding: 0 20px calc(18px + env(safe-area-inset-bottom));
  }
  .hero__title { font-size: clamp(1.9rem, 8.6vw, 2.2rem); margin-bottom: 12px; }
  .hero__lead { font-size: 0.9688rem; margin-bottom: 18px; }
  .hero__actions { gap: 6px; margin-bottom: 0; }
  /* secondary action reads as a quiet text button, saving a row of chrome */
  .hero__actions .pill--ghost { border: 0; min-height: 44px; color: var(--text-dim); }
  .hero__anchor { display: none; }

  /* brands: smaller logos, attribution wraps clean */
  .brands__line { max-width: 30ch; margin-left: auto; margin-right: auto; }
  .brands__logo-img { height: 24px; max-width: 120px; }
  .brands__track { gap: 40px; }

  /* work carousel: whole card fits one screen, swipe-first */
  .carousel .swiper { padding: 40px 0 78px; margin: -18px 0 -26px; }
  .carousel .swiper-slide { width: min(68vw, 300px); }
  .carousel .swiper-button-prev, .carousel .swiper-button-next { display: none; }
  .work__play { width: 52px; height: 52px; }

  /* stats: compact 2x2 */
  .stats__row { gap: 10px; }
  .stat__card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 122px;
    padding: 22px 10px 16px;
    border-radius: 14px;
  }
  /* numbers share a baseline across the row: labels reserve two lines */
  .stat__num { font-size: 2rem; }
  .stat__label { font-size: 0.6563rem; letter-spacing: 0.08em; min-height: 2.9em; }

  /* positioning: single column of compact icon rows */
  .pos__grid { grid-template-columns: 1fr; gap: 12px; }
  .pos__item {
    display: grid;
    grid-template-columns: 42px 1fr;
    column-gap: 16px;
    align-items: start;
    padding: 18px;
    border-radius: 18px;
  }
  .pos__icon { margin-bottom: 0; grid-row: 1 / span 3; }
  .pos__item h3 { margin-bottom: 4px; }
  .pos__item p { max-width: none; font-size: 0.9063rem; }
  .pos__more-link { margin-top: 8px; }

  /* gallery: swipe only */
  .gallery__shell .swiper-button-prev, .gallery__shell .swiper-button-next { display: none; }

  /* testimonials: narrower drifting cards */
  .testis__track .testi { width: 78vw; }

  /* CTA: socials in a row, email becomes the full-width accent action */
  .cta__panel { padding: 26px 18px; border-radius: 24px; }
  .connect { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px 8px; }
  .connect__circle { width: 60px; height: 60px; }
  .connect__circle svg { width: 22px; height: 22px; }
  .connect__label { font-size: 0.75rem; }
  .connect__item--email {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    min-height: 52px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 32px rgba(242, 193, 78, 0.25);
  }
  .connect__item--email .connect__circle {
    width: auto; height: auto;
    background: none; border: 0; box-shadow: none;
    color: var(--accent-ink);
  }
  .connect__item--email .connect__circle svg { width: 19px; height: 19px; }
  .connect__item--email .connect__label { color: var(--accent-ink); font-weight: 650; font-size: 0.9375rem; }

  /* footer clears the sticky brief bar */
  .footer { padding-bottom: 110px; }
}

/* sticky brief bar (mobile only, JS-shown after the hero) */
.mobile-cta { display: none; }
@media (max-width: 640px) {
  .mobile-cta {
    display: inline-flex;
    position: fixed;
    left: 16px; right: 16px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 80;
    transform: translateY(160%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.5), 0 0 32px rgba(242, 193, 78, 0.3);
  }
  .mobile-cta.is-visible { transform: translateY(0); }
}

/* ══════════ REDUCED MOTION ══════════ */
@media (prefers-reduced-motion: reduce) {
  html.has-motion [data-rise] { opacity: 1; transform: none; }
  .canvas__beam, .hero__frame, .cta__panel,
  .stat__ray,
  .carousel .swiper-slide-active .fan-card,
  .carousel::before {
    animation: none !important;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
