/* ============================================================
   ARVO — Art + Vision · portfolio stylesheet
   Two-tone: near-black canvas + violet accent (from the logo)
   ============================================================ */

:root {
  --bg: #08080d;
  --bg-2: #0d0d15;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f2f1f7;
  --text-dim: #9c9aad;
  --accent: #8b5cf6;
  --accent-soft: #a78bfa;
  --accent-deep: #5b21b6;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 18px;
  --nav-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

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

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

img, svg, canvas, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.container {
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
}

.section { padding: clamp(90px, 12vw, 150px) 0; position: relative; }

/* ---------- shared bits ---------- */

.badge {
  display: inline-block;
  font: 600 11px/1 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-soft);
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.08);
  padding: 8px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.section__title em, .hero__title em, .cta-band__title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent-soft), var(--accent) 55%, var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section__copy { color: var(--text-dim); max-width: 46ch; margin-bottom: 16px; }
.section__copy--dim { font-size: 14.5px; opacity: 0.8; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 600 15px/1 var(--font-body);
  padding: 14px 26px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
              background 0.25s, border-color 0.25s;
  will-change: transform;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent-soft), var(--accent) 60%, #6d28d9);
  color: #fff;
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(139, 92, 246, 0.5); }
.btn--ghost {
  border-color: var(--line);
  color: var(--text);
  background: var(--surface);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: rgba(167, 139, 250, 0.6); transform: translateY(-2px); }
.btn--lg { padding: 17px 34px; font-size: 16px; }
.btn--sm { padding: 10px 18px; font-size: 13.5px; }

.dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #34d399; margin-right: 4px; vertical-align: 1px;
}
.dot--pulse { animation: pulse 2s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--accent-soft); margin-top: 10px;
}
.link-arrow span { transition: transform 0.3s var(--ease-out); }
.link-arrow:hover span { transform: translateX(5px); }

/* reveal defaults (GSAP animates these in; visible if JS fails) */
[data-reveal], [data-hero-reveal], [data-service-card] { opacity: 1; }
.js [data-reveal], .js [data-hero-reveal], .js [data-service-card] { opacity: 0; }

/* ============ NAV ============ */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(8, 8, 13, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav__inner {
  width: min(1240px, 100% - 40px);
  margin-inline: auto;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__logo { width: 34px; height: 34px; }
.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 700; font-size: 19px; letter-spacing: 0.34em;
  display: flex; flex-direction: column; line-height: 1.1;
}
.nav__wordmark small {
  font-family: var(--font-body);
  font-size: 7.5px; font-weight: 600; letter-spacing: 0.42em;
  color: var(--accent-soft);
}
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links > a:not(.btn) {
  font: 500 14.5px/1 var(--font-body);
  color: var(--text-dim);
  transition: color 0.25s;
  position: relative;
}
.nav__links > a:not(.btn):hover { color: var(--text); }
.nav__links > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; border-radius: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}
.nav__links > a:not(.btn):hover::after { width: 100%; }
.nav__cta { padding: 11px 22px; font-size: 14px; }
.nav__burger {
  display: none; flex-direction: column; gap: 6px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav__burger span {
  width: 24px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ============ HERO ============ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; background: #05050a; }
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s linear; /* crossfade window — matches FADE in js/main.js */
}
.hero__video:first-child, .hero__video.is-active { opacity: 1; }
.hero__video.is-fading { opacity: 0; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 80% at 22% 50%, rgba(8, 8, 13, 0.62), transparent 70%),
    linear-gradient(to bottom, rgba(8, 8, 13, 0.5), transparent 32%, transparent 58%, var(--bg));
}
.hero__content { position: relative; z-index: 2; padding-top: var(--nav-h); }
.hero__text { max-width: 640px; }
.hero__eyebrow {
  font: 600 12.5px/1 var(--font-body);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 26px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(46px, 6.6vw, 96px);
  font-weight: 700; line-height: 0.98; letter-spacing: -0.03em;
  margin-bottom: 26px;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.45);
}
.hero__sub { color: var(--text-dim); font-size: clamp(16px, 1.6vw, 19px); max-width: 52ch; margin-bottom: 40px; }
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; z-index: 2; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--text-dim);
}
.hero__scroll-label { font: 600 10.5px/1 var(--font-body); letter-spacing: 0.3em; text-transform: uppercase; }
.hero__scroll-track {
  width: 26px; height: 42px; border: 1.5px solid var(--line);
  border-radius: 100px; display: flex; justify-content: center; padding-top: 7px;
}
.hero__scroll-thumb {
  width: 4px; height: 8px; border-radius: 4px; background: var(--accent-soft);
  animation: scrollThumb 1.8s var(--ease-out) infinite;
}
@keyframes scrollThumb {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============ CREATIVE DIRECTION · gallery ============ */

.gallery__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) 1.3fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.gallery__stage { margin: 0; }

/* floating glass display — a plinth for a living artwork, not a video player */
.artwork {
  position: relative;
  animation: artworkFloat 8s ease-in-out infinite;
}
@keyframes artworkFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.artwork__glow {
  position: absolute; inset: -14%; z-index: 0;
  pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%,
    rgba(139, 92, 246, 0.28), rgba(96, 165, 250, 0.07) 55%, transparent 72%);
  filter: blur(16px);
  animation: artworkGlow 6s ease-in-out infinite;
}
@keyframes artworkGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.05); }
}
.artwork__frame {
  position: relative; z-index: 1;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background: #06050c;
  border: 1px solid rgba(167, 139, 250, 0.3);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), 0 0 70px rgba(139, 92, 246, 0.2),
              inset 0 0 60px rgba(91, 33, 182, 0.10);
}
.artwork__frame video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.artwork__sheen {
  position: absolute; inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  background: linear-gradient(115deg,
    transparent 32%, rgba(255, 255, 255, 0.09) 44%,
    rgba(255, 255, 255, 0.02) 52%, transparent 62%);
  background-size: 260% 100%;
  animation: sheenSweep 10s linear infinite;
}
@keyframes sheenSweep {
  0%   { background-position: 130% 0; }
  100% { background-position: -130% 0; }
}
.gallery__caption {
  margin-top: 18px; text-align: center;
  font: 500 12.5px/1 var(--font-body); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-dim);
}

/* ============ SERVICES ============ */

/* Bento layout: one tall flagship tile on the left, four supporting tiles.
   4-col grid — featured spans 2×2, the rest span 2×1. */
.services__grid--bento {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 18px;
}
.service-card--featured { grid-column: span 2; grid-row: span 2; }
.services__grid--bento > .service-card:not(.service-card--featured) { grid-column: span 2; }

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  backdrop-filter: blur(6px);
  transition: transform 0.45s var(--ease-out), border-color 0.35s, background 0.35s;
  overflow: hidden;
  min-height: 210px;
}
/* ghost index number, watermarked in the corner */
.service-card[data-num]::after {
  content: attr(data-num);
  position: absolute; top: 14px; right: 22px;
  font-family: var(--font-display);
  font-size: 46px; font-weight: 700; line-height: 1;
  color: rgba(255, 255, 255, 0.045);
  transition: color 0.35s;
  pointer-events: none;
}
.service-card[data-num]:hover::after { color: rgba(167, 139, 250, 0.14); }
.service-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(139, 92, 246, 0.16), transparent 65%);
  opacity: 0; transition: opacity 0.35s;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(139, 92, 246, 0.45); background: var(--surface-2); }
.service-card:hover::before { opacity: 1; }
.service-card__icon {
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.2), rgba(91, 33, 182, 0.25));
  border: 1px solid rgba(139, 92, 246, 0.35);
  transition: transform 0.35s var(--ease-out);
}
.service-card:hover .service-card__icon { transform: translateY(-2px) scale(1.05); }
.service-card__icon svg {
  width: 22px; height: 22px;
  fill: none; stroke: var(--accent-soft); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.service-card h3 { font-family: var(--font-display); font-size: 19px; margin-bottom: 10px; }
.service-card p { color: var(--text-dim); font-size: 14.5px; }
/* "Explore →" reveal on hover */
.service-card__more {
  margin-top: auto; padding-top: 16px;
  display: inline-flex; align-items: center; gap: 7px;
  font: 600 13px/1 var(--font-body); color: var(--accent-soft);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.service-card__more span { transition: transform 0.3s var(--ease-out); }
.service-card:hover .service-card__more { opacity: 1; transform: translateY(0); }
.service-card:hover .service-card__more span { transform: translateX(4px); }

/* --- Flagship featured tile --- */
.service-card--featured {
  padding: 0;
  min-height: 440px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(109, 40, 217, 0.18), transparent 60%),
    var(--surface);
}
.service-card--featured .service-card__body {
  position: relative; z-index: 2;
  margin-top: auto;
  padding: 30px 32px 30px;
}
.service-card--featured h3 { font-size: 26px; margin-bottom: 12px; }
.service-card--featured p { font-size: 15px; max-width: 40ch; }
.service-card__tag {
  display: inline-block; margin-bottom: 18px;
  font: 600 10.5px/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-soft);
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.1);
  padding: 7px 12px; border-radius: 100px;
}
/* animated visual half of the flagship tile */
.service-card__visual {
  position: absolute; inset: 0; z-index: 1;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, #000 45%, transparent 82%);
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 82%);
}
.service-card__grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.10) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(400px) rotateX(38deg) scale(1.4);
  transform-origin: top center;
  opacity: 0.7;
}
.service-card__orb {
  position: absolute; border-radius: 50%; filter: blur(24px);
}
.service-card__orb--1 {
  width: 220px; height: 220px; top: -40px; right: -30px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.55), transparent 70%);
  animation: orbFloat 9s ease-in-out infinite;
}
.service-card__orb--2 {
  width: 160px; height: 160px; top: 60px; left: -20px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.4), transparent 70%);
  animation: orbFloat 7s ease-in-out infinite reverse;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(18px, 22px); }
}
.service-card__panels {
  position: absolute; top: 52px; left: 50%;
  display: flex; gap: 12px;
  transform: translateX(-50%) perspective(600px) rotateX(24deg) rotateZ(-4deg);
}
.service-card__panel {
  width: 70px; height: 96px; border-radius: 10px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(167, 139, 250, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  animation: panelFloat 6s ease-in-out infinite;
}
.service-card__panel:nth-child(2) { height: 116px; margin-top: -10px; animation-delay: -2s; }
.service-card__panel:nth-child(3) { animation-delay: -4s; }
@keyframes panelFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.service-card--featured:hover { transform: translateY(-6px); }

/* ============ PROCESS ============ */

.process { padding: 0; }
.process__pin {
  position: relative;
  padding: clamp(90px, 12vw, 150px) 0;
}
.process__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.process__intro .btn { margin-top: 6px; }

/* live progress readout — updates as the steps scrub past */
.process__progress { margin: 30px 0 28px; max-width: 340px; }
.process__progress-head {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px;
}
.process__progress-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 56px); font-weight: 700; line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--accent-soft), var(--accent) 60%, var(--accent-deep));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.process__progress-name {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 600; color: var(--text);
}
.process__progress-track {
  height: 4px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}
.process__progress-fill {
  display: block; width: 20%; height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.5);
  transition: width 0.5s var(--ease-out);
}
.process__progress-count {
  display: block; margin-top: 10px;
  font: 600 12px/1 var(--font-body); letter-spacing: 0.12em;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

/* Desktop: the pin holds the section still while the list glides through a
   masked window (js/main.js scrubs its y). No position:sticky here — sticky
   inside a pinned element resolves against the pin and jumps. */
@media (min-width: 981px) and (min-height: 640px) {
  .process__pin {
    height: 100vh;
    padding: 0;
    display: flex;
    align-items: center;
  }
  .process__viewport {
    height: min(620px, 76vh);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
  }
  .process__steps { will-change: transform; }
}
.process__steps { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.process__step {
  display: flex; gap: 22px; align-items: flex-start;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.4s, background 0.4s, opacity 0.4s, transform 0.4s var(--ease-out);
  opacity: 0.38;
}
.process__step.is-active {
  opacity: 1;
  border-color: rgba(139, 92, 246, 0.5);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.10), var(--surface-2));
  transform: translateX(6px);
}
.process__num {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700; color: var(--accent-soft);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 10px; padding: 8px 10px; line-height: 1;
  background: rgba(139, 92, 246, 0.08);
}
.process__step h3 { font-family: var(--font-display); font-size: 18px; margin-bottom: 6px; }
.process__step p { color: var(--text-dim); font-size: 14.5px; }

/* ============ ABOUT ============ */

.about__grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) 1.25fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.about__visual { position: relative; }
.about__avatar {
  aspect-ratio: 1;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 90px rgba(139, 92, 246, 0.14);
}
.about__avatar canvas { width: 100%; height: 100%; }
.about__chip {
  position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  font: 600 13px/1 var(--font-body);
  background: rgba(13, 13, 21, 0.9);
  border: 1px solid var(--line);
  padding: 12px 18px; border-radius: 100px;
  backdrop-filter: blur(10px);
}
.about__stats {
  display: flex; gap: clamp(24px, 4vw, 56px);
  margin: 30px 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about__stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px); font-weight: 700;
  color: var(--accent-soft);
  line-height: 1;
  margin-bottom: 6px;
}
.about__stats span { font-size: 13px; color: var(--text-dim); }
.about__skills-label {
  font: 600 11px/1 var(--font-body);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.about__skills {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 34px;
}
.skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}
.skill__icon {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 15px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    var(--surface);
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}
.skill__icon svg {
  width: 42%; height: 42%;
  fill: var(--brand);
}
.skill:hover .skill__icon {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand) 55%, transparent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45),
              0 0 26px color-mix(in srgb, var(--brand) 30%, transparent);
}
.skill__label {
  font: 500 12.5px/1 var(--font-body);
  color: var(--text-dim);
  transition: color 0.25s;
}
.skill:hover .skill__label { color: var(--text); }

/* ============ TESTIMONIALS ============ */

.testimonials { overflow: hidden; }
.testimonials__bg {
  position: absolute; inset: -20% -10%;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(109, 40, 217, 0.16), transparent 70%),
    radial-gradient(35% 45% at 80% 70%, rgba(139, 92, 246, 0.12), transparent 70%),
    radial-gradient(30% 40% at 60% 20%, rgba(167, 139, 250, 0.08), transparent 70%);
  animation: drift 26s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.08); }
}
/* self-running marquee: cards drift horizontally, no manual controls.
   js/main.js clones the set enough times to always cover viewport + one set
   (so wide screens never run out of cards), measures the exact one-set shift
   into --marquee-shift, and sets animation-duration for a constant px/s speed. */
.carousel {
  --gap: 24px;
  margin-top: 46px;
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw); /* break out of .container, edge to edge */
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.carousel__track {
  display: flex;
  gap: var(--gap);
  width: max-content;
  animation: marquee 40s linear infinite;
  will-change: transform;
}
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(-1 * var(--marquee-shift, 50%)), 0, 0); }
}
.carousel:hover .carousel__track,
.carousel:focus-within .carousel__track { animation-play-state: paused; }

.quote-card {
  flex: 0 0 min(460px, 78vw);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 36px;
  backdrop-filter: blur(8px);
  transition: border-color 0.35s, background 0.35s;
}
.quote-card:hover { border-color: rgba(139, 92, 246, 0.4); background: var(--surface-2); }
.quote-card p {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.45;
  margin-bottom: 26px;
  flex: 1; /* keeps the attributions aligned along the bottom */
}
.quote-card footer { display: flex; flex-direction: column; gap: 2px; }
.quote-card footer strong { font-size: 15px; }
.quote-card footer span { font-size: 13px; color: var(--text-dim); }

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

.cta-band__inner {
  text-align: center;
  padding: clamp(60px, 8vw, 100px) clamp(24px, 6vw, 90px);
  border-radius: 30px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(139, 92, 246, 0.18), transparent 70%),
    var(--bg-2);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
}
.cta-band__status {
  font: 600 13px/1 var(--font-body);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 22px;
}
.cta-band__title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 700; line-height: 1.02; letter-spacing: -0.02em;
  margin-bottom: 34px;
}

/* ============ FOOTER ============ */

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding-top: clamp(60px, 8vw, 90px);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 84px);
  padding-bottom: 60px;
  align-items: start;
}

/* --- left column --- */
.footer__status {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 28px 0 20px;
  font: 600 12px/1 var(--font-body); letter-spacing: 0.06em;
  color: var(--text-dim);
}
.footer__lead {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 700; line-height: 1.02; letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.footer__lead-sub {
  color: var(--text-dim); font-size: 15px; max-width: 40ch; margin-bottom: 28px;
}
.footer__contact {
  list-style: none; font-style: normal;
  display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px;
}
.footer__contact li { display: flex; align-items: center; gap: 12px; }
.footer__contact-ico {
  width: 34px; height: 34px; flex: none; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.25);
}
.footer__contact-ico svg {
  width: 17px; height: 17px;
  fill: none; stroke: var(--accent-soft); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.footer__contact a, .footer__contact span:not(.footer__contact-ico) {
  color: var(--text-dim); font-size: 15px; transition: color 0.25s;
}
.footer__contact a:hover { color: var(--accent-soft); }
.footer__socials { display: flex; flex-wrap: wrap; gap: 12px; }
.footer__socials a {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.footer__socials a svg { width: 18px; height: 18px; fill: var(--text-dim); transition: fill 0.25s; }
.footer__socials a:hover { border-color: rgba(139, 92, 246, 0.5); background: var(--surface-2); transform: translateY(-3px); }
.footer__socials a:hover svg { fill: var(--accent-soft); }

/* --- form card --- */
.footer__form-wrap { position: relative; }
.footer__form-glow {
  position: absolute; inset: -1px; z-index: 0;
  border-radius: 22px;
  background: radial-gradient(70% 60% at 50% 0%, rgba(139, 92, 246, 0.28), transparent 70%);
  filter: blur(20px); opacity: 0.7; pointer-events: none;
}
.footer__form {
  position: relative; z-index: 1;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(109, 40, 217, 0.12), transparent 55%),
    var(--surface-2);
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 22px;
  padding: 36px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.footer__form h3 { font-family: var(--font-display); font-size: 21px; margin-bottom: 24px; }
.footer__form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.footer__form label { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.footer__form label span {
  font: 600 11px/1 var(--font-body);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim);
}
.footer__form-honey { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.footer__form input, .footer__form select, .footer__form textarea {
  font: 400 15px/1.5 var(--font-body);
  color: var(--text);
  background: rgba(8, 8, 13, 0.6);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}
.footer__form input::placeholder, .footer__form textarea::placeholder { color: rgba(156, 154, 173, 0.6); }
.footer__form select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a78bfa' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
  padding-right: 42px;
}
.footer__form :is(input, select, textarea):focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}
.footer__form .btn { width: 100%; margin-top: 6px; position: relative; }
/* submit loading + success states */
.btn__spinner {
  position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff;
  opacity: 0; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.footer__form.is-sending .btn__label { opacity: 0; }
.footer__form.is-sending .btn__spinner { opacity: 1; }
.footer__form.is-sending .btn { pointer-events: none; }
.footer__form-note {
  margin-top: 16px; font-size: 13.5px; min-height: 1.2em;
  color: var(--text-dim);
}
.footer__form-note.is-success { color: #34d399; }
.footer__form-note.is-error { color: #fb7185; }

.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 24px 0 28px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--text-dim);
}
.footer__bottom a:hover { color: var(--accent-soft); }

/* ============ RESPONSIVE ============ */

@media (max-width: 980px) {
  .hero__content { padding: calc(var(--nav-h) + 46px) 0 90px; }
  .gallery__grid, .about__grid, .process__grid { grid-template-columns: 1fr; }
  /* bento → 2 columns; flagship goes full-width on top */
  .services__grid--bento { grid-template-columns: 1fr 1fr; }
  .service-card--featured { grid-column: 1 / -1; grid-row: auto; min-height: 400px; }
  .services__grid--bento > .service-card:not(.service-card--featured) { grid-column: span 1; }
  .footer__grid { grid-template-columns: 1fr; }
  .about__visual { max-width: 420px; }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: #08080d;
    border-bottom: 1px solid var(--line);
    padding: 18px 24px 26px;
    transform: translateY(-130%);
    transition: transform 0.4s var(--ease-out);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links > a:not(.btn) { padding: 12px 0; font-size: 17px; }
  .nav__cta { margin-top: 12px; }
  .nav__burger { display: flex; }
  .nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .services__grid--bento { grid-template-columns: 1fr; }
  .services__grid--bento > .service-card:not(.service-card--featured) { grid-column: 1 / -1; }
  .hero__ctas .btn { width: 100%; }
  .footer__form-row { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .quote-card { flex-basis: 82vw; padding: 28px 24px; }
  .hero__scroll { display: none; }
}

/* ============ MOTION SAFETY ============ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  /* the marquee can't "finish" — stop it and let the quotes be swiped instead */
  .carousel__track { animation: none !important; }
  .carousel { overflow-x: auto; }
}
