/* ============================================================
   Facto ME — Design tokens
   ============================================================ */

:root {
  --c-cream: #f6f6f1;
  --c-ink: #0a0a14;
  --c-ink-soft: #2a2a35;
  --c-white: #ffffff;
  --c-purple: #4b3bc5;
  --c-purple-light: #a392ff;
  --c-purple-deep: #2a1b8f;
  --c-night: #07061a;

  --font-display: 'Clash Display', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Playfair Display', 'Times New Roman', serif;
  --font-body: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --side: clamp(24px, 5vw, 80px);
  --section-y: clamp(80px, 12vw, 180px);
}

/* ============================================================
   Reset / base
   ============================================================ */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  background: var(--c-cream);
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--c-ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
}

/* ============================================================
   Loading intro (first visit only)
   ============================================================ */

.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--c-cream);
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: opacity 0.6s var(--ease-out);
}

.intro.is-hidden { opacity: 0; }

.intro__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.intro__mark {
  font-family: var(--font-serif);
  font-size: clamp(56px, 7vw, 112px);
  font-style: italic;
  font-weight: 700;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--c-ink);
}

.intro__mark b {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-size: 0.65em;
  letter-spacing: 0;
}

.intro__sub {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ============================================================
   Scroll progress bar
   ============================================================ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--c-purple);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 200;
  pointer-events: none;
}

/* ============================================================
   Custom cursor + glow
   ============================================================ */

.cursor-dot,
.cursor-ring,
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  will-change: transform;
}

.cursor-dot {
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  background: var(--c-ink);
  border-radius: 50%;
  mix-blend-mode: difference;
}

.cursor-ring {
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 1.25px solid var(--c-ink);
  border-radius: 50%;
  mix-blend-mode: difference;
  transition: width 0.25s var(--ease-out),
    height 0.25s var(--ease-out),
    margin 0.25s var(--ease-out),
    border-color 0.25s,
    background 0.25s;
}

.cursor-ring.is-hover {
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  background: var(--c-purple);
  border-color: var(--c-purple);
  mix-blend-mode: normal;
  opacity: 0.85;
}

.cursor-glow {
  width: 480px;
  height: 480px;
  margin: -240px 0 0 -240px;
  background: radial-gradient(circle, rgba(108, 92, 255, 0.35) 0%, transparent 60%);
  filter: blur(40px);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s;
}

body:hover .cursor-glow { opacity: 1; }

/* Hide custom cursor on touch / no-hover devices */
@media (hover: none) {
  .cursor-dot,
  .cursor-ring,
  .cursor-glow { display: none; }
}

/* Magnetic + tilt utility */
.magnetic { will-change: transform; display: inline-flex; }

.tilt-target {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 24px var(--side);
  color: var(--c-ink);
  transition: color 0.3s ease, transform 0.4s var(--ease-out);
}

/* Only the nav links hide on scroll past hero — logo and CTA stay sticky. */
.site-header__nav {
  transition: transform 0.45s var(--ease-out), opacity 0.3s var(--ease-out);
}

.site-header.is-hidden .site-header__nav {
  transform: translateY(-150%);
  opacity: 0;
  pointer-events: none;
}

.site-header.is-dark { color: var(--c-white); }

.site-header__logo {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.site-header__logo b {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0;
}

.site-header__nav {
  display: flex;
  gap: clamp(16px, 2.5vw, 36px);
  justify-content: center;
  font-weight: 500;
  font-size: 14px;
}

.site-header__nav a {
  position: relative;
  padding: 6px 2px;
}

.site-header__nav a.is-active { font-weight: 600; }

.site-header__nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.site-header__nav a:hover::after,
.site-header__nav a.is-active::after { transform: scaleX(1); }

.site-header__cta {
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(120deg, #c9bfff 0%, #8c79ff 50%, #4b3bc5 100%);
  color: var(--c-white);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  box-shadow: 0 6px 24px rgba(75, 59, 197, 0.35);
}

.site-header__cta:hover { box-shadow: 0 10px 32px rgba(75, 59, 197, 0.5); }

.site-header__cta:hover { transform: translateY(-2px); }

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

.hero {
  position: relative;
  min-height: 100vh;
  background: var(--c-cream);
  padding: clamp(140px, 18vh, 220px) var(--side) clamp(80px, 12vh, 140px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: visible;
}

.hero__title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 5.4vw, 84px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin: 0;
  text-transform: uppercase;
  z-index: 2;
}

.hero__title-row { display: block; }

.hero__title-row--serif {
  font-family: var(--font-serif);
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.02em;
  font-size: 1.85em;
  line-height: 0.95;
}

.hero__title-row--serif em { font-style: italic; }

.hero__word {
  color: var(--c-ink);
  transition: color 0.4s var(--ease-out);
}

.hero__word.is-active { color: var(--c-purple); }

.hero__sub {
  margin: 32px auto 0;
  max-width: 44ch;
  font-size: clamp(15px, 1.1vw, 18px);
  font-weight: 600;
  line-height: 1.45;
  color: var(--c-ink);
  position: relative;
  z-index: 2;
}

/* Orbit wrappers — invisible 0×0 anchors centered around the headline.
   Rotating the wrapper makes the child .hero__decor circle the headline. */
.hero__orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}

.hero__decor {
  position: absolute;
  pointer-events: none;
  will-change: transform;
  /* center on its own offset point; orbit wrapper handles position */
  transform: translate(-50%, -50%);
}

.hero__decor img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Each ornament sits offset from its orbit center via top/left.
   The orbit wrapper is at the headline center; rotating it traces a circle. */
.hero__decor--snake {
  width: clamp(160px, 18vw, 260px);
  aspect-ratio: 1;
  /* upper-right of headline */
  top: clamp(-260px, -22vh, -180px);
  left: clamp(220px, 26vw, 420px);
}

.hero__decor--hand {
  width: clamp(180px, 22vw, 320px);
  aspect-ratio: 1;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.2));
  /* lower-left of headline */
  top: clamp(40px, 8vh, 120px);
  left: clamp(-620px, -38vw, -340px);
}

/* ============================================================
   Portfolio preview (5-card row)
   ============================================================ */

.portfolio-preview {
  background: var(--c-cream);
  padding: 60px 0 0;
  overflow: hidden;
}

.portfolio-preview__row {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: portfolio-marquee 60s linear infinite;
}

.portfolio-preview__row:hover { animation-play-state: paused; }

@keyframes portfolio-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.portfolio-card {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: clamp(220px, 18vw, 320px);
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  background: #1a1a22;
  transition: transform 0.6s var(--ease-out);
}

.portfolio-card video,
.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--card-scale, 1));
  transform-origin: center;
}

.portfolio-card__title {
  position: absolute;
  left: 16px;
  bottom: 14px;
  color: var(--c-white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 2;
}

.portfolio-card:hover { transform: translateY(-6px); }

/* "A FEW PROJECTS LATER..." */
.highlight-line {
  margin: clamp(48px, 6vw, 96px) auto 0;
  padding: 0 var(--side);
  max-width: 1200px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(14px, 1.4vw, 22px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--c-ink);
  line-height: 1.25;
}

.highlight-line__char {
  display: inline-block;
  transition: color 0.05s linear;
}

.highlight-line__char--on { color: var(--c-ink); }

.highlight-line .accent {
  color: var(--c-purple);
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.highlight-line .underline-arrow {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -0.55em;
  width: 108%;
  height: 0.7em;
  color: var(--c-purple);
  pointer-events: none;
  overflow: visible;
}

.highlight-line .underline-arrow path { stroke-width: 4; }

/* ============================================================
   Stats — cream, 2-column (headline left, stat stack right)
   ============================================================ */

.stats {
  background: var(--c-cream);
  padding: var(--section-y) var(--side);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  position: relative;
}

.stats__left {
  position: relative;
}

/* Orbit anchor — 0×0 point at the CENTER of the stats section. Rotating
   the wrapper makes the curl (offset from this center) trace a big circle
   around the entire section. */
.stats__orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.stats__decor {
  position: absolute;
  /* Offset from orbit center — start position is upper-right of section.
     This becomes the orbit radius. */
  top: clamp(-340px, -36vh, -240px);
  left: clamp(120px, 18vw, 320px);
  width: clamp(120px, 14vw, 220px);
  /* Override the global img { max-width: 100% } — parent is 0×0. */
  max-width: none;
  height: auto;
  pointer-events: none;
  will-change: transform;
}

.stats__headline {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(48px, 6.6vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin: 0;
  position: relative;
  z-index: 1;
}

.stats__headline em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  color: var(--c-ink);
  display: inline-block;
  letter-spacing: -0.02em;
  font-size: 1.05em;
  line-height: 1;
}

.stats__note {
  max-width: 44ch;
  margin: clamp(48px, 6vw, 80px) 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-ink-soft);
  position: relative;
  z-index: 1;
}

.stats__note b { font-weight: 700; color: var(--c-ink); }

.stats__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.stats__list .stat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  padding: clamp(28px, 3.5vw, 48px) 0;
  border-bottom: 1px solid rgba(10, 10, 20, 0.18);
}

.stats__list .stat:first-child { border-top: 1px solid rgba(10, 10, 20, 0.18); }

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 120px);
  font-weight: 700;
  line-height: 1;
  color: var(--c-ink);
  margin: 0;
}

.stat__label strong {
  display: block;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 4px;
  color: var(--c-ink);
}

.stat__label span {
  display: block;
  font-size: 13px;
  color: var(--c-ink-soft);
  line-height: 1.5;
}

/* ============================================================
   Marquee bridge — text marquee + photo marquee on cream,
   sits between Stats and Industries
   ============================================================ */

.marquee-bridge {
  background: var(--c-cream);
  padding: clamp(32px, 4vw, 60px) 0 0;
  overflow: hidden;
}

/* Text marquee (italic serif on cream) */
.text-marquee {
  overflow: hidden;
  padding: 0 0 clamp(28px, 3vw, 48px);
}

.text-marquee__track {
  display: flex;
  gap: clamp(28px, 3vw, 56px);
  white-space: nowrap;
  width: max-content;
  animation: marquee 60s linear infinite;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 56px);
  color: var(--c-ink);
  line-height: 1;
}

.text-marquee__track em { font-style: italic; }

.text-marquee__track .dot {
  font-style: normal;
  opacity: 0.6;
}

/* Photo marquee — tall poster cards */
.photo-marquee {
  overflow: hidden;
  padding-bottom: clamp(0px, 1vw, 8px);
}

.photo-marquee__track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee 70s linear infinite;
}

.photo-marquee__track img {
  height: clamp(280px, 32vw, 460px);
  width: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 14px;
  flex: none;
}

/* ============================================================
   Industries — full purple block
   ============================================================ */

.industries {
  background:
    radial-gradient(120% 80% at 100% 0%, var(--c-purple-light) 0%, transparent 55%),
    var(--c-purple);
  color: var(--c-white);
  padding: clamp(60px, 8vw, 120px) 0 var(--section-y);
  position: relative;
  overflow: hidden;
}

/* (text marquee was moved to .marquee-bridge above industries) */

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* (parallax B disabled — changing animation-duration mid-loop caused a
   visible jump on the marquees. Re-introduce later via JS-driven transform
   instead of CSS animation when we want this back.) */

.industries__feature {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--side);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
  align-content: center;
  min-height: 100vh;
}

.industries__image {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #1a1a22;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.industries__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s var(--ease-out);
}

.industries__list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.15;
}

.industries__list li { padding: 4px 0; }

.industries__list button {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.industries__list button {
  pointer-events: none;
  cursor: default;
}

.industries__list button.is-active {
  color: var(--c-white);
}

.industries__list button.is-active { transform: translateX(8px); }

.industries__cta-row {
  margin: clamp(48px, 6vw, 80px) auto 0;
  padding: 0 var(--side);
  max-width: 1200px;
  display: flex;
  justify-content: center;
}

.btn--pill {
  display: inline-flex;
  align-items: center;
  background: var(--c-ink);
  color: var(--c-cream);
  border: 0;
  border-radius: 999px;
  padding: 18px 40px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.btn--pill:hover {
  background: var(--c-cream);
  color: var(--c-ink);
  transform: translateY(-2px);
}

/* ============================================================
   Trust — Brands That Trust Us
   ============================================================ */

.trust {
  background: var(--c-night);
  color: var(--c-white);
  padding: var(--section-y) 0 calc(var(--section-y) * 0.6);
  text-align: center;
  overflow: hidden;
}

.trust__head { padding: 0 var(--side); }

.trust__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5.6vw, 88px);
  text-transform: uppercase;
  line-height: 0.95;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
  color: var(--c-white);
}

.trust__brands {
  position: relative;
  display: inline-block;
  padding: 0 0.4em;
}

.trust__ellipse {
  position: absolute;
  inset: -8% -2%;
  width: 104%;
  height: 116%;
  pointer-events: none;
  z-index: 0;
}

.trust__brands em {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  font-size: 0.78em;
  display: inline-block;
  line-height: 1;
}

.trust__second-line {
  display: block;
  margin-top: 0.05em;
}

.trust__sub {
  max-width: 60ch;
  margin: 0 auto clamp(48px, 7vw, 80px);
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.6;
}

.trust__marquee { overflow: hidden; }

.trust__marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(48px, 6vw, 96px);
  width: max-content;
  animation: marquee 45s linear infinite;
}

.trust__marquee-track img {
  height: clamp(32px, 3.4vw, 56px);
  width: auto;
  max-width: 180px;
  object-fit: contain;
  flex: none;
  transition: transform 0.3s var(--ease-out);
}

.trust__marquee-track img:hover { transform: scale(1.05); }

/* ============================================================
   Insights — dark bg, staggered 3-card layout
   ============================================================ */

.insights {
  background: var(--c-night);
  color: var(--c-white);
  padding: clamp(80px, 10vh, 140px) var(--side);
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(24px, 4vh, 56px);
  overflow: hidden;
}

.insights__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin: 0 auto 8px;
  max-width: 1200px;
}

.insights__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 112px);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
  line-height: 0.9;
  letter-spacing: -0.01em;
}

.insights__sub {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-white);
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.insights__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.insights__lede {
  grid-column: 1;
  grid-row: 2;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  max-width: 28ch;
  margin: 0;
  align-self: end;
  padding-bottom: 8px;
}

.insight-card {
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-origin: center center;
  will-change: transform;
}

.insight-card--white {
  background: var(--c-white);
  color: var(--c-ink);
}

.insight-card--purple {
  background: #6c5cff;
  color: var(--c-white);
}

/* Staggered vertical positions per Figma — disabled during pin so cards stay
   visible in viewport. */
.insight-card--left   { grid-column: 1; grid-row: 1; margin-top: 0; }
.insight-card--center { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
.insight-card--right  { grid-column: 3; grid-row: 1 / span 2; margin-top: 0; }

.insight-card__media {
  aspect-ratio: 4 / 5;
  background: #1a1a22;
  overflow: hidden;
}

.insight-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.insight-card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.insight-card__body h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  margin: 0;
  line-height: 1.2;
}

.insight-card__date {
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0.65;
}

.insight-card__body p {
  font-size: 13px;
  line-height: 1.5;
  margin: 4px 0 0;
  opacity: 0.75;
}

.insight-card__body a {
  font-size: 13px;
  text-decoration: underline;
  font-weight: 600;
  margin-top: 6px;
  color: inherit;
}

/* Purple card "pull quote" headline */
.insight-card--purple .insight-card__pull {
  background: var(--c-white);
  color: var(--c-ink);
  margin: 18px;
  padding: 22px;
  border-radius: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.1;
  text-transform: lowercase;
  letter-spacing: -0.01em;
}

.insight-card--purple .insight-card__pull .accent {
  background: #ff5fa3;
  color: var(--c-white);
  padding: 0 6px;
  border-radius: 4px;
  font-style: italic;
}

.insight-card--purple .insight-card__body { color: var(--c-white); }

.insights__cta {
  margin: clamp(40px, 5vw, 64px) auto 0;
  display: grid;
  place-items: center;
}

.btn--pill-dark {
  background: var(--c-night);
  color: var(--c-white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 14px 32px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.3s var(--ease-out);
}

.btn--pill-dark:hover { background: rgba(255, 255, 255, 0.08); }

/* ============================================================
   Testimonials — scattered bubbles around a centered title
   ============================================================ */

.testimonials {
  background: var(--c-night);
  color: var(--c-white);
  padding: var(--section-y) var(--side);
}

.testimonials__layout {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: clamp(32px, 4vw, 64px) clamp(24px, 3vw, 48px);
  align-items: start;
  justify-items: center;
}

.testimonials__title {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(26px, 3.2vw, 50px);
  line-height: 1;
  margin: clamp(40px, 6vw, 96px) 0 0;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.01em;
}

.testimonials__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
}

.bubble {
  position: relative;
  margin: 0;
  padding: 56px 22px 22px;
  border-radius: 22px;
  max-width: 320px;
  text-align: left;
  background:
    linear-gradient(180deg, #1a1830 0%, #1a1830 55%, #6c5cff 110%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(108, 92, 255, 0.18);
}

.bubble__avatar {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #5e8dff 0%, #1a4cd1 70%, #0d2c80 100%);
  border: 2px solid var(--c-white);
}

.bubble p {
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 14px;
  color: var(--c-white);
  font-weight: 600;
}

.bubble cite {
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

/* Layout positions */
.bubble--tl { grid-column: 1; grid-row: 1; justify-self: end; }
.bubble--tr { grid-column: 3; grid-row: 1; justify-self: start; }
.bubble--bc { grid-column: 2; grid-row: 2; }

@media (max-width: 900px) {
  .testimonials__layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .testimonials__title,
  .bubble--tl, .bubble--tr, .bubble--bc {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
  }
}

/* ============================================================
   Contact — dark, continues from testimonials
   ============================================================ */

.contact {
  background: var(--c-night);
  color: var(--c-white);
  padding: clamp(60px, 8vw, 120px) var(--side) clamp(80px, 10vw, 160px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.contact__head { position: relative; }

.contact__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(72px, 10vw, 168px);
  line-height: 0.9;
  margin: 0;
  font-weight: 700;
}

.contact__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  display: inline-block;
  color: var(--c-white);
}

.contact__sparkle {
  position: absolute;
  bottom: 6%;
  left: 38%;
  width: clamp(80px, 10vw, 140px);
  aspect-ratio: 1;
  pointer-events: none;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact__form input,
.contact__form textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding: 14px 0;
  font: inherit;
  color: var(--c-white);
  outline: none;
  resize: none;
}

.contact__form input:focus,
.contact__form textarea:focus {
  border-bottom-color: var(--c-purple-light);
}

.contact__form input::placeholder,
.contact__form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.contact__form .btn {
  align-self: flex-end;
  margin-top: 12px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  transition: transform 0.35s var(--ease-out), background 0.35s var(--ease-out);
}

.btn:hover { transform: translateY(-2px); }

.btn--ghost-light {
  color: var(--c-white);
  border-color: var(--c-white);
}

.btn--ghost-dark {
  color: var(--c-ink);
  border-color: var(--c-ink);
}

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

.site-footer {
  background:
    radial-gradient(120% 80% at 100% 100%, var(--c-purple-light) 0%, var(--c-purple) 50%, var(--c-purple-deep) 100%);
  color: var(--c-white);
  padding: 32px var(--side);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.site-footer__socials { display: flex; gap: 12px; }

.site-footer__socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-ink);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}

.site-footer__nav {
  display: flex;
  gap: 24px;
  justify-content: center;
  font-size: 14px;
}

.site-footer__legal {
  text-align: right;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.site-footer__legal p { margin: 0; }

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

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto auto;
    gap: 16px;
    padding: 18px var(--side);
  }

  .site-header__nav { display: none; }

  .portfolio-preview__row { grid-template-columns: repeat(2, 1fr); }

  .stats {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .insights__grid,
  .testimonials__chat {
    grid-template-columns: 1fr;
  }

  .insights__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .insight-card--text { margin: 0; }

  .industries__feature {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .industries__list { text-align: center; }

  .contact { grid-template-columns: 1fr; }

  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .site-footer__legal { text-align: center; }
}

/* ============================================================
   Mobile (≤ 700px) — phone-specific tuning
   ============================================================ */

@media (max-width: 700px) {
  :root {
    --side: 20px;
    --section-y: clamp(60px, 12vw, 100px);
  }

  /* Hero — shrink ornaments and tighten title sizing */
  .hero {
    padding: clamp(120px, 16vh, 160px) var(--side) clamp(60px, 10vh, 100px);
  }
  .hero__title { font-size: clamp(36px, 10vw, 56px); }
  .hero__title-row--serif { font-size: 1.4em; }
  .hero__decor--snake {
    width: 120px;
    top: clamp(-180px, -22vh, -140px);
    left: clamp(80px, 30vw, 140px);
  }
  .hero__decor--hand {
    width: 130px;
    top: clamp(20px, 6vh, 80px);
    left: clamp(-220px, -34vw, -150px);
  }

  /* Portfolio strip cards — narrower */
  .portfolio-card { width: clamp(160px, 60vw, 220px); }

  /* Stats — single column already (900px). Shrink curl + headline. */
  .stats__headline { font-size: clamp(36px, 10vw, 56px); }
  .stats__decor {
    width: 140px;
    top: clamp(-260px, -32vh, -220px);
    left: clamp(60px, 18vw, 140px);
  }
  .stats__list { gap: 24px; }
  .stat__value { font-size: clamp(56px, 16vw, 88px); }

  /* Industries — pin disabled in JS for mobile; show as a normal stacked grid */
  .industries__feature {
    min-height: auto;
    padding: clamp(40px, 10vw, 80px) var(--side);
  }
  .industries__list { font-size: clamp(28px, 8vw, 44px); }
  .industries__list button.is-active { transform: none; }

  /* Trust */
  .trust__headline { font-size: clamp(32px, 9vw, 56px); }

  /* Insights — also released from pin on mobile (see JS). Stack the cards. */
  .insights {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: var(--section-y) var(--side);
  }
  .insights__row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .insight-card--left,
  .insight-card--center,
  .insight-card--right {
    grid-column: 1;
    grid-row: auto;
    margin: 0;
  }
  .insights__lede {
    grid-column: 1;
    grid-row: auto;
    align-self: start;
    padding-bottom: 0;
  }
  .insights__title { font-size: clamp(48px, 14vw, 80px); }

  /* Testimonials */
  .testimonials__title { font-size: clamp(28px, 8vw, 44px); }
  .bubble { max-width: 100%; }

  /* Contact — stacked, sparkle smaller */
  .contact {
    padding: clamp(60px, 10vw, 100px) var(--side);
    gap: 32px;
  }
  .contact__title { font-size: clamp(56px, 16vw, 88px); }
  .contact__sparkle {
    width: 72px;
    bottom: 0;
    left: auto;
    right: 0;
  }

  /* Footer */
  .site-footer {
    padding: 24px var(--side);
    gap: 20px;
  }

  /* Marquees — shorter on mobile */
  .photo-marquee__track img { height: clamp(180px, 50vw, 260px); }
  .industries__marquee-track { font-size: clamp(20px, 6vw, 32px); }
  .text-marquee__track { font-size: clamp(24px, 7vw, 40px); }
}
