/* ==========================================================
   Brilliant Madness — Fractional CMO (v3 editorial cream)
   ========================================================== */

/* --accent is the single brand colour; every highlight derives from it */
:root {
  --bg: #faf6ef;
  --bg-2: #f3ede2;
  --bg-3: #ebe3d5;
  --ink: #1c1917;
  --sand: var(--ink);
  --sand-hi: #0f0d0b;
  --sand-dim: rgba(28, 25, 23, 0.72);
  --sand-mute: rgba(28, 25, 23, 0.5);
  --sand-faint: rgba(28, 25, 23, 0.16);
  --line: rgba(28, 25, 23, 0.14);
  --light: #3a3430;
  --card: #ffffff;
  --grey: #6b6560;
  --accent: #e25c32;
  --accent-deep: color-mix(in srgb, var(--accent) 82%, #000);
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-alt: var(--font);

  --wrap: 1320px;
  --gutter: clamp(20px, 2.2vw, 32px);
  --radius: 25px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--sand);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--sand-hi);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--sand);
  color: var(--bg);
  font-weight: 700;
  border-radius: 4px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- Shared type ---------- */

.label {
  display: inline-block;
  font-size: clamp(20px, 1.95vw, 28px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--accent);
  white-space: nowrap;
}
.label--center { display: block; text-align: center; }

.giant {
  font-family: var(--font);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--sand);
}
.giant strong { font-weight: 600; }

.giant--section {
  font-size: clamp(64px, 9.7vw, 140px);
}

.fill-text {
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--sand);
}
.fill-text--lg { font-size: clamp(30px, 3.6vw, 52px); }

.fill-text .w {
  color: rgba(28, 25, 23, 0.16);
  transition: color 0.35s linear;
}
.fill-text .w.is-lit { color: var(--sand); }

.rule {
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(48px, 9vh, 120px);
}
.section-head .label { padding-bottom: 1.2vw; }

/* ---------- Glass tile ---------- */

.glass-tile {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px 14px 16px;
  background: var(--card);
  box-shadow: 0 14px 34px rgba(28, 25, 23, 0.08);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--sand-dim);
  vertical-align: middle;
}
.glass-tile span { max-width: 8ch; }
.glass-tile strong {
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border: 1px solid var(--accent);
  border-radius: 0;
  font-size: 16px;
  font-weight: 400;
  color: var(--sand);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.btn img { display: none; }
.btn--solid::after,
.dock-cta::after {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='black' stroke-width='1.4'%3E%3Cpath d='M2 12 12 2M4 2h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='black' stroke-width='1.4'%3E%3Cpath d='M2 12 12 2M4 2h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.btn--solid { background: var(--accent); color: #fff; }
.btn--solid:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn--ghost {
  border-color: var(--sand-faint);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--sand); transform: translateY(-2px); }

/* ---------- Top bar ---------- */

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 18px 0;
}
.topbar-logo img {
  width: 80px;
  height: auto;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
  margin-left: auto;
  margin-right: clamp(20px, 3vw, 44px);
}
.topbar-nav a {
  font-size: 16px;
  color: var(--sand-dim);
  transition: color 0.25s;
}
.topbar-nav a:hover,
.topbar-nav a.is-current { color: var(--accent); }
.topbar-cta { padding: 12px 18px; font-size: 15px; font-weight: 500; }

.wordmark {
  display: inline-flex;
  flex-direction: column;
  font-family: var(--font-alt);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.26em;
  color: var(--sand-hi);
}
.wordmark-line { display: flex; align-items: center; }
.wordmark-box {
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  margin-right: 0.26em;
  background: currentColor;
  border-radius: 1px;
}
.wordmark--xl {
  font-size: clamp(44px, 6.6vw, 100px);
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.02;
}
.wordmark--xl .wordmark-box { border-radius: 4px; }

/* ---------- Dock (floating nav) ---------- */

.dock {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: rgba(250, 246, 239, 0.88);
  border: 1px solid var(--line);
  border-radius: 0;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
  box-shadow: 0 18px 40px rgba(28, 25, 23, 0.12);
}
.dock-links { display: flex; align-items: center; }
.dock-links a {
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 400;
  color: var(--sand-dim);
  transition: color 0.25s;
}
.dock-links a:hover,
.dock-links a.is-current { color: var(--accent); }
.dock-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
  padding: 11px 18px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.25s;
}
.dock-cta:hover { background: var(--accent-deep); }
.dock-cta img { display: none; }
.dock { transition: opacity 0.35s var(--ease), translate 0.35s var(--ease), visibility 0.35s; }
.dock.is-hidden {
  opacity: 0;
  visibility: hidden;
  translate: 0 16px;
  pointer-events: none;
}

/* ---------- 1. Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-x: clip;
  background:
    radial-gradient(ellipse 60% 50% at 85% 10%, var(--accent-soft), transparent 70%),
    var(--bg);
}

.hero-type {
  position: relative;
  z-index: 3;
  padding-top: clamp(130px, 18vh, 200px);
  padding-bottom: clamp(80px, 12vh, 140px);
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.04em;
  font-size: clamp(48px, 11.2vw, 184px);
}
.hero-row {
  will-change: transform;
  display: flex;
  align-items: center;
  gap: 0.18em;
}
.hero-row--split { justify-content: center; }
.hero-row:first-child { padding-left: 4%; }
.hero-row--offset {
  justify-content: flex-end;
  align-items: flex-start;
  gap: clamp(20px, 4vw, 64px);
}
.hero-amp { font-weight: 300; color: var(--accent); }
.hero-word strong { font-weight: 600; }
.hero-intro {
  max-width: 340px;
  margin-top: 0.3em;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--light);
}
.hero-row .glass-tile { flex: none; }

/* ---------- Reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- What is a Fractional CMO ---------- */

.meaning {
  position: relative;
  z-index: 4;
  padding: clamp(40px, 8vh, 100px) 0 clamp(40px, 6vh, 80px);
  background: var(--bg);
  overflow-x: hidden;
  overflow-x: clip;
}
.meaning-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: start;
  padding-top: clamp(40px, 7vh, 80px);
  border-top: 1px solid var(--line);
}
.meaning-body { grid-column: 1 / 7; }
.meaning-body > h2.label { margin: 0; }
.meaning-def {
  position: relative;
  margin-top: 32px;
  padding-left: 28px;
  font-size: clamp(24px, 2.3vw, 34px);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--sand);
}
.meaning-def::before {
  content: "1.";
  position: absolute;
  left: 0;
  top: 0.15em;
  font-size: 0.55em;
  font-weight: 500;
  color: var(--accent);
}
.meaning-copy {
  margin-top: 24px;
  max-width: 52ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--sand-dim);
}
.meaning-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.meaning-points li {
  position: relative;
  padding-top: 14px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--sand-dim);
}
.meaning-points span {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
}
.meaning-copy { padding-left: 28px; }
.meaning-points { padding-left: 28px; }
.meaning-media {
  grid-column: 8 / 13;
  margin-top: clamp(40px, 8vh, 110px);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  rotate: 1.5deg;
  box-shadow: 0 30px 60px rgba(28, 25, 23, 0.12);
}
.meaning-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: 1.12;
  will-change: transform;
}
.meaning-points li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
  transform-origin: left;
}

/* Entrance — only armed when JS + motion are available */
.meaning.is-armed .label,
.meaning.is-armed .meaning-def,
.meaning.is-armed .meaning-copy,
.meaning.is-armed .meaning-points li {
  opacity: 0;
  translate: 0 24px;
  transition: opacity 0.9s var(--ease), translate 0.9s var(--ease);
}
.meaning.is-armed .meaning-points li::before {
  transform: scaleX(0);
  transition: transform 1s var(--ease);
  transition-delay: inherit;
}
.meaning.is-armed .meaning-media {
  clip-path: inset(100% 0 0 0 round var(--radius));
  transition: clip-path 1.3s var(--ease) 0.2s;
}
.meaning.is-armed .meaning-media img {
  scale: 1.3;
  transition: scale 1.6s var(--ease) 0.2s;
}

.meaning.is-in .label,
.meaning.is-in .meaning-def,
.meaning.is-in .meaning-copy,
.meaning.is-in .meaning-points li {
  opacity: 1;
  translate: 0;
}
.meaning.is-in .meaning-points li::before { transform: scaleX(1); }
.meaning.is-in .meaning-media { clip-path: inset(0 0 0 0 round var(--radius)); }
.meaning.is-in .meaning-media img { scale: 1.12; }

.meaning.is-armed .meaning-def { transition-delay: 0.15s; }
.meaning.is-armed .meaning-copy { transition-delay: 0.3s; }
.meaning.is-armed .meaning-points li:nth-child(1) { transition-delay: 0.45s; }
.meaning.is-armed .meaning-points li:nth-child(2) { transition-delay: 0.58s; }
.meaning.is-armed .meaning-points li:nth-child(3) { transition-delay: 0.71s; }

/* ---------- 2. Statement ---------- */

.statement {
  position: relative;
  z-index: 4;
  padding: clamp(100px, 18vh, 200px) 0 clamp(100px, 18vh, 200px);
  background: var(--bg);
  overflow: hidden;
}
.statement-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.statement-grid > .label { grid-column: 1 / 4; padding-top: 0.4em; white-space: normal; }
.statement-body { grid-column: 4 / 12; }

.statement-grid > h2.label { margin: 0; }
.reason-list li {
  display: grid;
  grid-template-columns: clamp(64px, 7vw, 110px) 1fr;
  align-items: baseline;
  gap: 24px;
  padding: clamp(28px, 4.5vh, 44px) 0;
  border-top: 1px solid var(--line);
}
.reason-list li:first-child { padding-top: 0; border-top: 0; }
.reason-list li:nth-child(2) { transition-delay: 0.1s; }
.reason-list li:nth-child(3) { transition-delay: 0.2s; }
.reason-num {
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.reason-list p {
  max-width: 30ch;
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--sand-dim);
}
.reason-list strong {
  font-weight: 500;
  color: var(--sand);
}

/* ---------- 3. Focus ---------- */

.focus {
  position: relative;
  z-index: 4;
  padding: clamp(60px, 10vh, 120px) 0 0;
  background: var(--bg);
}
.focus-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  row-gap: clamp(48px, 8vh, 96px);
  padding-bottom: clamp(48px, 8vh, 96px);
}
.focus-copy { grid-column: 1 / 8; align-self: center; }
.focus-media {
  grid-column: 9 / 13;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
}
.focus-media img { width: 100%; height: 100%; object-fit: cover; }
.focus-lead {
  max-width: 44ch;
  margin-top: clamp(20px, 3vh, 32px);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
  color: var(--sand-dim);
}
.focus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(28px, 4vh, 40px);
  transition-delay: 0.1s;
}
.focus-tags li {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--sand);
}

/* ---------- 4. Process ---------- */

.process {
  position: relative;
  z-index: 4;
  padding: clamp(100px, 18vh, 200px) 0 clamp(80px, 14vh, 160px);
  background: var(--bg);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.process-aside {
  grid-column: 1 / 5;
  position: sticky;
  top: 14vh;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.process-lead {
  max-width: 340px;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.35;
  color: var(--light);
}
.process-count {
  font-size: clamp(72px, 9vw, 140px);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--sand);
}
.process-count .process-count-cur { color: var(--accent); }
.process-count span:last-child { color: var(--sand-faint); }

.steps { grid-column: 6 / 13; }
.step {
  position: sticky;
  top: 14vh;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: start;
  gap: 24px;
  min-height: 220px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
  opacity: 0.38;
  transition: opacity 0.5s var(--ease);
}
.step + .step { margin-top: 8vh; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step.is-active { opacity: 1; }
.step-num {
  font-size: 16px;
  font-weight: 500;
  color: var(--accent);
  padding-top: 8px;
}
.step-body h3 {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.3;
  color: var(--sand-hi);
}
.step-body p {
  margin-top: 8px;
  max-width: 46ch;
  font-size: 16px;
  color: var(--sand-dim);
}
.step-tag {
  padding: 6px 12px;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 400;
  color: var(--sand-dim);
  white-space: nowrap;
}
.step--final .step-tag { border-color: var(--accent); color: var(--accent); }

/* ---------- 5. Work ---------- */

.work {
  position: relative;
  z-index: 4;
  padding: clamp(80px, 14vh, 160px) 0 clamp(60px, 10vh, 120px);
  background: var(--bg);
}
.case-stack { position: relative; }
.case {
  position: sticky;
  top: 6vh;
  display: grid;
  grid-template-columns: 7fr 6fr;
  gap: clamp(24px, 2.4vw, 40px);
  min-height: 82vh;
  padding: 5vh 0;
  background: var(--bg);
}
.case + .case { margin-top: 12vh; }

.case-media {
  position: relative;
  align-self: start;
  aspect-ratio: 1;
  max-height: 72vh;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}
.case-media > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.case:hover .case-media > img:first-child { transform: scale(1.03); }.case-media--ovolite { background: #1b2fa8; }
.case-media--hangover {
  background:
    radial-gradient(circle at 30% 20%, rgba(226, 92, 50, 0.12), transparent 55%),
    var(--card);
}
.case-media--hangover > img:first-child { object-fit: contain; padding: 12% 22%; }
.case-media--mh { background: #0b1626; }
.case-logo {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: auto;
  max-width: 160px;
  height: 44px;
  padding: 8px 14px;
  object-fit: contain;
  background: #fff;
  border-radius: 999px;
}
.case-logo--ovolite { background: #0f1d7a; }

.case-info {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.case-num {
  font-size: clamp(48px, 4.6vw, 70px);
  font-weight: 300;
  line-height: 1;
  color: var(--accent);
}
.case-title {
  margin-top: 24px;
  max-width: 22ch;
  font-size: clamp(24px, 2.4vw, 35px);
  font-weight: 300;
  line-height: 1.25;
  color: var(--sand-hi);
}
.case-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  margin-top: 36px;
}
.case-stats div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.case-stats dt {
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--sand);
}
.case-stats dd {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--sand-dim);
}

.case-story { margin-top: 28px; }
.case-story summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 400;
  color: var(--accent);
  cursor: pointer;
  list-style: none;
}
.case-story summary::-webkit-details-marker { display: none; }
.case-story summary::after { content: "+"; font-size: 20px; line-height: 1; }
.case-story[open] summary::after { content: "\2212"; }
.case-story p {
  margin-top: 14px;
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.5;
  color: var(--sand-dim);
}
.case-story strong { color: var(--sand-hi); font-weight: 600; }

.case-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 32px;
}
.case-tags {
  max-width: 26ch;
  font-size: 15px;
  line-height: 1.4;
  color: var(--sand-dim);
}
.case-next {
  font-size: 15px;
  color: var(--light);
  white-space: nowrap;
  transition: color 0.25s;
}
.case-next:hover { color: var(--accent); }

/* ---------- Clients ---------- */

.clients {
  position: relative;
  z-index: 4;
  padding: clamp(80px, 14vh, 160px) 0;
  background: var(--bg-2);
  overflow: hidden;
}
.clients-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-bottom: clamp(40px, 7vh, 80px);
}
.clients-head .label { grid-column: 1 / 5; white-space: normal; }
.clients-title {
  grid-column: 5 / 12;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--sand);
}
.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee + .marquee { margin-top: 28px; }
.marquee-track {
  display: flex;
  flex: none;
  align-items: center;
  gap: 20px;
  padding-right: 20px;
}
.marquee.is-ready .marquee-track { animation: marquee 60s linear infinite; }
.marquee--reverse.is-ready .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 180px;
  height: 92px;
  padding: 18px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.marquee-track img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0);
  opacity: 0.72;
  transition: opacity 0.3s;
}
.marquee-track li:hover img { opacity: 1; }
@keyframes marquee {
  to { transform: translateX(-100%); }
}

/* ---------- 6. Results ---------- */

.results {
  position: relative;
  z-index: 4;
  background: var(--bg);
}
.results-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2vh;
  overflow: hidden;
}
.results-giant {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: clamp(76px, 15vw, 250px);
  line-height: 0.95;
  text-align: center;
}
.results-cards {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26vh;
  margin-top: -62vh;
  padding: 0 var(--gutter) 34vh;
}
.result-card {
  width: min(420px, 100%);
  padding: 30px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(28, 25, 23, 0.1);
}
.result-num {
  display: block;
  font-size: 60px;
  font-weight: 300;
  line-height: 1;
  color: var(--accent);
}
.result-card p {
  margin-top: 32px;
  font-size: 18px;
  line-height: 1.4;
  color: #000;
}
.result-who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
}
.result-who img {
  flex: none;
  width: 72px;
  height: 40px;
  padding: 6px 10px;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
}
.result-who strong {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #000;
}
.result-who span { font-size: 13px; color: var(--grey); }
.result-who img.result-logo--ovolite { background: #1b2fa8; border-color: #1b2fa8; }
.result-link {
  display: inline-flex;
  gap: 6px;
  margin-top: 24px;
  padding-top: 18px;
  width: 100%;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s;
}
.result-link:hover { color: var(--accent); }

/* ---------- 7. About ---------- */

.about {
  position: relative;
  z-index: 4;
  padding: clamp(80px, 14vh, 160px) 0 0;
  background: var(--bg);
}
.about-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: start;
}
.about-row > .label { grid-column: 1 / 4; }
.about-photo { grid-column: 4 / 8; }
.about-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}
.about-photo figcaption {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 16px;
  color: var(--sand-dim);
}
.about-photo figcaption strong { font-weight: 500; color: var(--sand-hi); }
.about-photo figcaption span { color: var(--accent); }
.about-story {
  grid-column: 8 / 13;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 38px;
  font-size: clamp(26px, 2.5vw, 38px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--sand-dim);
}
.about-story strong { font-weight: 400; color: var(--sand); }
.about-story-end {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.4;
  color: var(--sand);
}

.about-focus {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  padding: clamp(100px, 18vh, 200px) 0 clamp(60px, 10vh, 110px);
}
.about-focus .fill-text { grid-column: 1 / 8; }
.about-side {
  grid-column: 9 / 13;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.stat-row { display: grid; gap: 22px; }
.stat-row div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.stat-row dt {
  font-size: 60px;
  font-weight: 300;
  line-height: 1;
  color: var(--sand);
}
.stat-row dd {
  margin-top: 8px;
  font-size: 16px;
  color: var(--sand-dim);
}
.about-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.about-contact .label { margin-bottom: 8px; }
.about-contact { align-items: flex-start; }

/* ---------- 8. FAQ ---------- */

.faq {
  position: relative;
  z-index: 4;
  padding: clamp(80px, 14vh, 160px) 0;
  background: var(--bg);
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.faq-head {
  grid-column: 1 / 5;
  position: sticky;
  top: 14vh;
  align-self: start;
}
.faq-title {
  margin-top: 18px;
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--sand);
}
.faq-head p {
  margin-top: 18px;
  max-width: 32ch;
  font-size: 16px;
  color: var(--sand-dim);
}
.faq-list { grid-column: 6 / 13; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 28px 0;
  text-align: left;
  font-size: clamp(18px, 1.55vw, 22px);
  font-weight: 400;
  line-height: 1.3;
  color: var(--sand-hi);
  transition: color 0.25s;
}
.faq-q:hover,
.faq-item.is-open .faq-q { color: var(--accent); }
.faq-q i {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}
.faq-q i::before,
.faq-q i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transition: transform 0.35s var(--ease);
}
.faq-q i::after { transform: rotate(90deg); }
.faq-item.is-open .faq-q i::after { transform: rotate(0deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}
.faq-a p {
  max-width: 60ch;
  padding-bottom: 28px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--sand-dim);
}

/* ---------- 9. CTA ---------- */

.cta {
  position: relative;
  z-index: 4;
  padding: clamp(100px, 16vh, 180px) 0;
  background:
    radial-gradient(ellipse 50% 60% at 0% 100%, var(--accent-soft), transparent 70%),
    var(--bg);
}
.cta-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: start;
}
.cta-intro {
  grid-column: 1 / 6;
  position: sticky;
  top: 14vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.cta-title {
  margin-top: 22px;
  max-width: 14ch;
  font-size: clamp(44px, 4.9vw, 70px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--sand);
}
.cta-title strong { font-weight: 600; }
.cta-sub {
  margin: 20px 0 36px;
  max-width: 40ch;
  font-size: 18px;
  line-height: 1.5;
  color: var(--sand-dim);
}

.cta-card {
  grid-column: 7 / 13;
  padding: clamp(28px, 3vw, 44px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(28, 25, 23, 0.08);
}
.cta-card-head {
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.cta-card-head h3 {
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--sand);
}
.cta-card-head p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--sand-dim);
}
.cta-card-head p span { color: var(--accent); }
.call-form { display: grid; gap: 18px; }
.call-form[hidden] { display: none; }
.call-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.call-field { display: flex; flex-direction: column; gap: 8px; }
.call-field label {
  font-size: 14px;
  font-weight: 500;
  color: var(--sand);
}
.call-field label span { color: var(--accent); }
.call-field input,
.call-field select,
.call-field textarea {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.call-field textarea { resize: vertical; min-height: 92px; }
.call-field input::placeholder,
.call-field textarea::placeholder { color: var(--sand-mute); }
.call-field input:focus,
.call-field select:focus,
.call-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.call-field .is-invalid,
.call-field input.is-invalid { border-color: #c0392b; }
.call-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.call-submit {
  justify-content: center;
  width: 100%;
  margin-top: 6px;
  padding: 16px 20px;
  font-weight: 500;
}
.call-submit:disabled { opacity: 0.6; cursor: progress; transform: none; }
.call-form-error {
  padding: 12px 14px;
  font-size: 14px;
  color: #8a2a1d;
  background: #fbe9e5;
  border-radius: 10px;
}
.call-success {
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 8%, #fff);
}
.call-success[hidden] { display: none; }
.call-success:focus { outline: none; }
.call-success .call-success-title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--sand);
}
.call-success p {
  margin-top: 4px;
  font-size: 14px;
  color: var(--sand-dim);
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  z-index: 4;
  padding: clamp(80px, 14vh, 140px) 0 0;
  background: var(--bg);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-contact h2 {
  margin-bottom: 14px;
  font-size: clamp(32px, 3vw, 42px);
  font-weight: 400;
  color: var(--sand-hi);
}
.footer-contact { align-items: flex-start; }

.footer-giant {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-giant img { width: 120px; height: auto; }
.footer-giant span {
  font-size: clamp(56px, 9.7vw, 140px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--sand);
}
.footer-giant strong { font-weight: 600; color: var(--accent); }

.footer-mid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  padding: clamp(60px, 10vh, 100px) 0 clamp(40px, 6vh, 60px);
}
.footer-col {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-col:nth-child(2) { grid-column: 5 / 9; }
.footer-col:nth-child(3) { grid-column: 9 / 13; }
.footer-note {
  max-width: 28ch;
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--sand-dim);
}
.footer-label {
  margin-bottom: 14px;
  font-size: 20px;
  font-weight: 500;
  color: var(--accent);
}
.footer-col a {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 300;
  color: var(--sand-hi);
  transition: color 0.25s, transform 0.25s var(--ease);
}
.footer-col a:hover { color: var(--accent); transform: translateX(4px); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--sand-dim);
}
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .statement-grid > .label,
  .statement-body,
  .focus-copy,
  .focus-media,
  .process-aside,
  .steps,
  .about-row > .label,
  .about-photo,
  .about-story,
  .about-focus .fill-text,
  .about-side,
  .faq-head,
  .faq-list { grid-column: 1 / -1; }

  .statement-grid > .label { padding-top: 0; }
  .focus-media { max-width: 520px; }
  .process-aside,
  .faq-head { position: static; }
  .process-aside { flex-direction: row; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
  .about-photo { max-width: 520px; }
  .about-story { gap: 24px; padding-bottom: 0; font-size: clamp(22px, 4.5vw, 28px); }

  .meaning-body,
  .meaning-media,
  .clients-head .label,
  .clients-title,
  .cta-intro,
  .cta-card { grid-column: 1 / -1; }
  .meaning-media { aspect-ratio: 4 / 3; }
  .cta-intro { position: static; margin-bottom: 24px; }

  .case {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .case-media { max-height: none; max-width: 640px; }

  .footer-col,
  .footer-col:nth-child(2) { grid-column: span 4; }
  .footer-col:nth-child(3) { grid-column: span 4; }
}

@media (max-width: 760px) {
  .topbar { padding: 20px 0; }
  .topbar-nav { display: none; }
  .topbar-cta { padding: 10px 14px; font-size: 14px; }
  .topbar-logo img { width: 76px; }
  .footer-giant span { font-size: 15vw; }

  .dock {
    left: auto;
    right: 14px;
    transform: none;
  }
  .dock-links { display: none; }
  .dock { padding: 0; border: 0; }
  .dock-cta { margin-left: 0; padding: 14px 20px; font-size: 15px; }

  .hero { min-height: 0; }
  .hero-type { padding-top: 140px; padding-bottom: 80px; }
  .hero-title { font-size: 15.4vw; gap: 0.08em; }
  .hero-row:first-child { padding-left: 0; }
  .hero-row--split { justify-content: flex-start; }
  .hero-row--offset { display: contents; }
  .hero-intro { order: 1; max-width: 32ch; font-size: 16px; margin: 20px 0 0; }
  .hero-row .glass-tile { gap: 8px; padding: 8px 12px 8px 10px; font-size: 10px; border-radius: 10px; }
  .hero-row .glass-tile strong { font-size: 20px; }

  .meaning { padding-top: 0; }
  .meaning-def,
  .meaning-copy,
  .meaning-points { padding-left: 22px; }
  .meaning-points { grid-template-columns: 1fr; gap: 14px; }
  .meaning-media { margin-top: 16px; rotate: 0.6deg; }

  .marquee-track li { width: 140px; height: 76px; padding: 14px 18px; }

  .section-head { flex-direction: column-reverse; align-items: flex-start; gap: 16px; }
  .section-head .label { padding-bottom: 0; }
  .label { white-space: normal; }

  .reason-list li { grid-template-columns: 1fr; gap: 10px; }

  /* Counter pins to the top; steps unfold one over another beneath it */
  .process-grid { row-gap: 0; }
  .process-aside { display: contents; }
  .process-lead,
  .process-count { grid-column: 1 / -1; }
  .process-lead { margin-bottom: 20px; }
  .process-count {
    position: sticky;
    top: 0;
    z-index: 1;
    align-self: start;
    height: 96px;
    padding-top: 18px;
    font-size: 68px;
    line-height: 1;
    background: var(--bg);
  }
  .step {
    top: 96px;
    z-index: 2;
    min-height: var(--step-h, 0);
    grid-template-columns: 1fr;
    align-content: start;
    gap: 10px;
    padding: 26px 0;
    opacity: 1;
  }
  .step + .step { margin-top: 10vh; }
  .step > * { opacity: 0.38; transition: opacity 0.5s var(--ease); }
  .step.is-active > * { opacity: 1; }
  .step-num { padding-top: 0; }
  .step-tag { justify-self: start; order: -1; margin-top: 0; }

  /* Cards are taller than a phone screen: scroll normally, reveal on entry */
  .case { position: relative; top: auto; padding: 0; }
  .case-stack.is-armed .case-media {
    clip-path: inset(8% 7% round var(--radius));
    transition: clip-path 1.1s var(--ease);
  }
  .case-stack.is-armed .case-media > img:first-child {
    transform: scale(1.18);
    transition: transform 1.5s var(--ease);
  }
  .case-stack.is-armed .case-info > * {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  }
  .case-stack.is-armed .case-info > :nth-child(2) { transition-delay: 0.08s; }
  .case-stack.is-armed .case-info > :nth-child(3) { transition-delay: 0.16s; }
  .case-stack.is-armed .case-info > :nth-child(4) { transition-delay: 0.24s; }
  .case-stack.is-armed .case-info > :nth-child(5) { transition-delay: 0.32s; }
  .case-stack.is-armed .case.is-shown .case-media { clip-path: inset(0 round var(--radius)); }
  .case-stack.is-armed .case.is-shown .case-media > img:first-child { transform: none; }
  .case-stack.is-armed .case.is-shown .case-info > * { opacity: 1; transform: none; }
  .case + .case { margin-top: 80px; }
  .case-stats { grid-template-columns: 1fr 1fr; }
  .case-foot { flex-direction: column; align-items: flex-start; }

  .results-giant { font-size: 21vw; }
  .results-cards { gap: 18vh; margin-top: -55vh; padding-bottom: 14vh; }
  .result-card { padding: 24px; }
  .result-num { font-size: 48px; }
  .result-card p { margin-top: 20px; }
  .result-who { margin-top: 24px; }
  .result-card p { font-size: 16px; }

  .cta { padding: 80px 0 100px; }
  .call-row { grid-template-columns: 1fr; }
  .cta-card { padding: 24px 20px; }
  .btn { justify-content: center; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-col,
  .footer-col:nth-child(2) { grid-column: span 6; }
  .footer-col:nth-child(3) { grid-column: 1 / -1; }
  .footer-col a { font-size: 18px; padding: 3px 0; }
  .footer-bottom { padding-bottom: 28px; }

  /* Tighter vertical rhythm on phones */
  .statement { padding: 72px 0; }
  .focus { padding-top: 24px; }
  .focus-grid { row-gap: 36px; padding-bottom: 56px; }
  .process { padding: 72px 0 56px; }
  .work { padding: 56px 0 48px; }
  .clients { padding: 64px 0; }
  .about { padding-top: 56px; }
  .about-focus { padding: 72px 0 48px; }
  .faq { padding: 64px 0; }
  .cta { padding: 64px 0 72px; }
  .footer { padding-top: 64px; }
  .footer-mid { padding: 48px 0 32px; row-gap: 32px; }

  .case + .case { margin-top: 64px; }
  .case-next { display: none; }

  .call-field input,
  .call-field select,
  .call-field textarea { font-size: 16px; }
  .footer-contact .btn,
  .about-contact .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .fill-text .w { color: var(--sand); }
  .step,
  .step > * { opacity: 1; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track,
  .marquee.is-ready .marquee-track { flex-wrap: wrap; justify-content: center; flex: 1; animation: none; padding: 0 var(--gutter); }
  .marquee-track[aria-hidden="true"] { display: none; }
}
