/* ============================================================
   ZAKARI STUDIO — styles
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --bg-raise: #111111;
  --text: #f5f5f2;
  --text-dim: rgba(245, 245, 242, 0.6);
  --accent: #ff4d3d;
  --hero-pink: #f2a09a;
  --line: rgba(245, 245, 242, 0.12);
  --font-display: "Anybody", "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --container: 1280px;
  --pad: clamp(20px, 4vw, 48px);
}

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

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--text);
  /* Anybody is a variable-width font: stretch all display text to 125% */
  font-stretch: 125%;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: clamp(32px, 5vw, 64px);
}

/* ============ Buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 999px;
  border: 1px solid var(--text);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }

.btn--solid {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn--solid:hover {
  background: var(--text);
  border-color: var(--text);
  color: #0a0a0a;
}

.btn--lg { padding: 20px 44px; font-size: 16px; }

/* ============ Nav ============ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}
.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.nav__logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  line-height: 1;
}
.nav__logo-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.08em;
}
.nav__logo-tag {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.nav__links {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  position: relative;
  transition: color 0.3s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ============ Studio / Academy toggle ============ */

.mode-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.mode-toggle__pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--accent);
  z-index: 0;
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}
/* when the second option (Academy) is the active one, slide the pill right */
.mode-toggle:has(.mode-toggle__opt:last-child.is-active) .mode-toggle__pill {
  transform: translateX(100%);
}
.mode-toggle__opt {
  position: relative;
  z-index: 1;
  flex: 1;
  text-align: center;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 7px 18px;
  border-radius: 999px;
  transition: color 0.3s ease;
}
.mode-toggle__opt.is-active { color: #fff; }
.mode-toggle__opt:not(.is-active):hover { color: var(--text); }

/* ============ Hero ============ */

.hero {
  --hero-gap: clamp(10px, 1.3vh, 18px);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  padding: clamp(120px, 17vh, 200px) var(--pad) 80px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__bg picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.06);
  filter: brightness(0.84) saturate(0.95) contrast(1.02);
  will-change: transform;
}
/* light scrim: the photo stays present, just enough dark for type contrast */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10, 10, 10, 0.8) 0%, rgba(10, 10, 10, 0.26) 40%, rgba(10, 10, 10, 0.34) 100%),
    radial-gradient(120% 100% at 50% 50%, transparent 45%, rgba(10, 10, 10, 0.4) 100%);
}

.hero__inner {
  max-width: var(--container);
  margin: 0;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero__headline {
  font-family: var(--font-display);
  font-stretch: 130%;
  font-weight: 900;
  font-size: clamp(32px, 5.4vw, 82px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--hero-pink);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: var(--hero-gap);
}

.hero__line {
  display: block;
}
.hero__line-inner {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
}

/* WE CREATE and CAMPAIGNS run largest (CAMPAIGNS is matched to WE CREATE's width in JS) */
.hero__line--xl { font-size: 1.4em; }
/* THAT BRANDS a touch smaller */
.hero__line--md { font-size: 0.9em; }

/* these specific letters: white instead of pink, and dimmer than the rest.
   the headline parent isn't faded here (full opacity), so 0.6 = 60% as seen. */
.hero__faint { color: #fff; opacity: 0.6; }

/* the white punch line — smaller, centered under THAT BRANDS (offset set in JS) */
.hero__line--final {
  font-size: 0.5em;
  color: var(--text);
}

/* "See the work" sits centered under DON'T FORGET (offset set in JS) */
.hero__cta-wrap {
  width: fit-content;
  margin-top: var(--hero-gap);
}

.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-top: clamp(22px, 3.5vh, 48px);
  flex-wrap: wrap;
}

.hero__sub {
  max-width: 500px;
  color: var(--text-dim);
  font-size: clamp(16px, 1.4vw, 19px);
}
.hero__sub-lead {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 500;
  font-size: 1.06em;
}

/* "Coming soon" badge (Academy hero) */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: clamp(16px, 2vw, 26px);
  padding: 8px 16px;
  border: 1px solid rgba(255, 77, 61, 0.45);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.hero__badge-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: pulse 2s ease-out infinite;
}

.hero__scroll-hint {
  position: absolute;
  z-index: 1;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero__scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* ============ Sections shared ============ */

section { position: relative; }

.reel, .services, .work, .proof { padding: clamp(96px, 14vh, 180px) 0; }

/* ============ Reel ============ */

.reel__headline,
.work__headline,
.proof__headline,
.cta__headline,
.services__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5.6vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  max-width: 18ch;
}

/* "What we do." — big and centered, like the reel headline */
.services__headline {
  max-width: none;
  text-align: center;
  margin: 0 auto clamp(14px, 1.8vw, 22px);
}
.services__sub {
  text-align: center;
  max-width: 54ch;
  margin: 0 auto clamp(48px, 6vw, 88px);
  color: var(--text-dim);
  font-size: clamp(16px, 1.4vw, 19px);
}

/* word-split reveal targets */
.word-mask { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.word { display: inline-block; will-change: transform; }

/* reel intro is centered; the headline breaks across two lines via <br> */
.reel__intro { text-align: center; }
.reel__headline { max-width: none; margin-left: auto; margin-right: auto; }

/* "Recent work." centered above its grid */
.work__headline { max-width: none; text-align: center; margin-left: auto; margin-right: auto; }

.reel__body {
  margin: 28px auto 0;
  max-width: 520px;
  color: var(--text-dim);
  font-size: clamp(16px, 1.4vw, 19px);
}

.reel__media {
  margin-top: clamp(48px, 7vw, 96px);
  overflow: hidden;
}
.reel__media-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  will-change: transform;
}
.reel__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}
/* placeholder shows behind/instead of the video until reel.mp4 exists */
.reel__placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(255, 77, 61, 0.16), transparent 50%),
    radial-gradient(100% 80% at 85% 90%, rgba(255, 77, 61, 0.08), transparent 55%),
    linear-gradient(160deg, #161616 0%, #0d0d0d 55%, #131313 100%);
}
.reel__placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.012) 3px 4px);
}
.reel__placeholder-badge {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line);
  padding: 12px 22px;
  border-radius: 999px;
}

/* ============ Services ============ */

.services { border-top: 1px solid var(--line); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);   /* 2 rows of 4 */
  gap: clamp(28px, 2.6vw, 52px) clamp(24px, 2.4vw, 44px);
}

.service {
  padding-top: 32px;
  border-top: 1px solid var(--line);
  transition: border-color 0.4s ease;
}
.service:hover { border-color: var(--accent); }

.service__num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.12em;
}

.service__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 1.7vw, 26px);
  margin: 16px 0 14px;
}

.service__body { color: var(--text-dim); font-size: 15px; line-height: 1.55; }

/* ============ Work ============ */

.work { border-top: 1px solid var(--line); }

/* category filter pills */
.work__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 860px;
  margin: clamp(32px, 4vw, 52px) auto 0;
}
.work__filter {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.work__filter:hover { color: var(--text); border-color: var(--text-dim); }
.work__filter.is-active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

/* featured hero piece — a full-width cinematic showcase above the grid */
.work__featured {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  margin: clamp(32px, 4vw, 52px) 0 clamp(8px, 1vw, 16px);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}
.work__featured-media { position: absolute; inset: 0; }
.work__featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.work__featured:hover .work__featured-media img { transform: scale(1.03); }
.work__featured-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.25) 45%, transparent 72%);
}
.work__featured-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
  z-index: 2;
  width: clamp(62px, 6vw, 82px);
  height: clamp(62px, 6vw, 82px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(10, 10, 10, 0.35)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='white'/%3E%3C/svg%3E")
    no-repeat center / 26px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease;
}
.work__featured:hover .work__featured-play {
  transform: translate(-50%, -50%) scale(1.08);
  background-color: rgba(255, 77, 61, 0.85);
}
.work__featured-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: clamp(22px, 3.2vw, 52px);
  max-width: 640px;
}
.work__featured-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.work__featured-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 52px);
  margin: 10px 0 12px;
}
.work__featured-desc {
  color: rgba(245, 245, 242, 0.86);
  max-width: 560px;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.5;
}
.work__featured-cta {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}
.work__featured:hover .work__featured-cta { color: var(--accent); }

.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(40px, 5vw, 64px);
}

.card { display: block; }

.card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.55), transparent 45%);
  transition: opacity 0.5s ease;
}
.card__media--1 { background: linear-gradient(150deg, #1d2410 0%, #11150a 55%, #0e0e0e 100%); }
.card__media--2 { background: linear-gradient(150deg, #1a1a22 0%, #101016 55%, #0e0e0e 100%); }
.card__media--3 { background: linear-gradient(150deg, #221710 0%, #15100b 55%, #0e0e0e 100%); }
.card__media--video { background: #0e0e0e; }

/* video thumbnail fills the card media; the ::after gradient sits on top of it */
.card__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* play affordance — signals the card opens the full video on click */
.card__media--video::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(10, 10, 10, 0.5) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='white'/%3E%3C/svg%3E") no-repeat center / 20px;
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover .card__media--video::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card__placeholder {
  position: relative;
  z-index: 1;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line);
  padding: 10px 18px;
  border-radius: 999px;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.card__media { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.card:hover .card__media { transform: scale(0.985); }
.card:hover .card__placeholder { transform: scale(1.06); }

.card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 22px;
}

.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 1.8vw, 26px);
}

.card__arrow {
  color: var(--accent);
  font-size: 22px;
  transform: translateX(-6px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.card:hover .card__arrow { transform: translateX(0); opacity: 1; }

.card__tag {
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ============ Social proof / marquee ============ */

.proof { border-top: 1px solid var(--line); padding-bottom: clamp(72px, 10vh, 140px); }

.proof__headline {
  max-width: none;
  text-align: center;
  margin: 0 auto clamp(48px, 6vw, 88px);
}

/* client logos scroll as a carousel; each logo card carries its name below */
.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: clamp(20px, 3vw, 44px);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.marquee__track {
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 3vw, 44px);
  flex-shrink: 0;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - clamp(20px, 3vw, 44px))); }
}
.marquee__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.marquee__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(300px, 32vw, 376px);
  height: clamp(168px, 18vw, 204px);
  background: #fff;
  border-radius: 16px;
  padding: clamp(28px, 3.2vw, 44px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.marquee__item:hover .marquee__logo { transform: translateY(-5px); }
.marquee__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
/* Ruby Mazur's logo is designed on black — give its card a dark face so it blends */
.marquee__logo--dark { background: #0d0d0d; border: 1px solid var(--line); }
.marquee__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 1.7vw, 24px);
  letter-spacing: 0.03em;
  color: var(--text-dim);
  white-space: nowrap;
}

/* ============ CTA ============ */

.cta {
  border-top: 1px solid var(--line);
  padding: clamp(120px, 20vh, 240px) 0;
  background:
    radial-gradient(90% 70% at 50% 110%, rgba(255, 77, 61, 0.07), transparent 60%),
    var(--bg);
}

.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta__headline {
  font-size: clamp(40px, 7vw, 104px);
  max-width: 14ch;
}

.cta__body {
  margin: 28px 0 44px;
  color: var(--text-dim);
  font-size: clamp(16px, 1.5vw, 20px);
}

/* ============ Footer ============ */

.footer {
  border-top: 1px solid var(--line);
  padding: clamp(64px, 8vw, 110px) 0 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
}

.footer__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer__tagline { color: var(--text-dim); font-size: 15px; }

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
}
.footer__col a {
  color: var(--text-dim);
  transition: color 0.3s ease;
  width: fit-content;
}
.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 13px;
}

/* ============ Floating widget ============ */

.float-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 15px 24px;
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(255, 77, 61, 0.22);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease, background 0.3s ease;
}
.float-cta.is-visible { transform: translateY(0); opacity: 1; }
.float-cta:hover { background: #ff6e5f; }

.float-cta__arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}
.float-cta:hover .float-cta__arrow { transform: translateX(4px); }

.float-cta__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  position: relative;
}
.float-cta__pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  from { transform: scale(0.6); opacity: 1; }
  to { transform: scale(1.8); opacity: 0; }
}

/* ============ Academy: course cards ============ */

.courses { border-top: 1px solid var(--line); }
.courses__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 36px);
  margin-top: clamp(40px, 5vw, 64px);
}
.course {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 2.6vw, 40px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-raise);
  transition: border-color 0.4s ease, transform 0.4s ease;
}
.course:hover { border-color: var(--accent); transform: translateY(-4px); }
.course--featured { border-color: rgba(255, 77, 61, 0.5); }
.course__level {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.course__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2vw, 28px);
  margin: 14px 0 12px;
}
.course__body { color: var(--text-dim); font-size: 15px; line-height: 1.55; flex: 1; }
.course__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}
.course__price { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 2.2vw, 30px); }

/* ============ Academy: stat strip ============ */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(48px, 6vw, 80px);
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--pad);
  text-align: center;
}
.stats--two { grid-template-columns: repeat(2, 1fr); max-width: 620px; }
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 4.4vw, 64px);
  color: var(--accent);
  line-height: 1;
}
.stat__label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ============ Video lightbox ============ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(6, 6, 6, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  background: #000;
  border-radius: 6px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  transform: scale(0.96);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.lightbox.is-open .lightbox__video { transform: scale(1); }

.lightbox__close {
  position: absolute;
  top: clamp(16px, 3vw, 30px);
  right: clamp(16px, 3vw, 30px);
  z-index: 1;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.2); transform: rotate(90deg); }

/* ============ Reveal defaults (JS animates these in) ============ */

html.has-motion [data-reveal] { opacity: 0; }
html.has-motion .hero__line-inner { opacity: 0; transform: translateY(36px); }
html.has-motion .word { transform: translateY(110%); }

/* ============ Responsive ============ */

@media (max-width: 960px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .courses__grid { grid-template-columns: 1fr; gap: 20px; }

  .work__grid { grid-template-columns: 1fr; gap: 56px; }
  .card__media { aspect-ratio: 16 / 10; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  /* ease the stretch + allow wrapping so the long lines fit the narrow viewport */
  .hero__headline {
    font-stretch: 122%;
    font-size: clamp(30px, 8.6vw, 44px);
    line-height: 0.98;
  }
  .hero__line-inner { white-space: normal; }
  .hero__line--xl { font-size: 1.2em; }
}

@media (max-width: 600px) {
  .services__grid { grid-template-columns: 1fr; gap: 36px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .nav__logo-tag { display: none; }
  .nav__logo-mark { font-size: 17px; }
  /* on phones the toggle takes priority; section links drop out of the bar */
  .nav__links { display: none; }
  .mode-toggle__opt { padding: 6px 13px; font-size: 11px; letter-spacing: 0.05em; }
  .hero { padding-top: 100px; }
  .hero__bottom { flex-direction: column; align-items: flex-start; }
  .hero__scroll-hint { display: none; }
  .float-cta { right: 16px; bottom: 16px; padding: 13px 20px; font-size: 13px; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ============ Reduced motion ============ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee__track { animation: none; }
  .float-cta { transform: none; opacity: 1; }
}

/* ===========================================================================
   TEST — oversized, centered hero (DESKTOP ONLY). Mobile is left as-is.
   To revert: delete this whole block and restore the JS centerUnder branch.
   =========================================================================== */
@media (min-width: 701px) {
  .hero { padding-top: clamp(96px, 13vh, 150px); padding-bottom: 56px; }
  .hero__inner { max-width: none; }      /* let the type fill the full width */
  /* 60% applied as a per-line color alpha (not a group opacity) so DON'T FORGET
     can sit at its own, higher opacity than the white lines above it */
  .hero__headline {
    font-size: clamp(40px, 8.4vw, 200px);
    color: rgba(255, 255, 255, 0.6);      /* all hero text white at 60% */
  }
  .hero__faint { color: inherit; opacity: 1; }            /* uniform with the rest */
  .hero__line--final { color: rgba(255, 77, 61, 0.8); }   /* DON'T FORGET — site orange at 80% */
  .hero__cta-wrap { opacity: 0.8; }       /* "See the work" at 80%, keeps the base orange accent */
  /* subline sits centered directly under the button */
  .hero__bottom { justify-content: flex-start; margin-top: var(--hero-gap); }
  .hero__sub { text-align: center; }
}
