/* =========================================================
   Xelf Business Development
   ========================================================= */

:root {
  --cream: #f1f0ee;
  --ink: #000;
  --accent: #8eb2ff;
  --gray: #b0aeac;
  --dark: #3f3d3c;
  --line: rgba(0, 0, 0, 0.1);
  --line-light: rgba(241, 240, 238, 0.14);

  --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(16px, 2vw, 28px);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --fs-mega: clamp(96px, 22vw, 360px);
  --fs-display: clamp(44px, 5vw, 76px);
  --fs-h3: clamp(24px, 2.4vw, 34px);
}

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }

h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }

.container { padding-inline: var(--pad); max-width: 1680px; margin-inline: auto; }
.muted { color: #6f6d6b; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6f6d6b;
}
.eyebrow--light { color: rgba(241, 240, 238, 0.6); }

.display {
  font-size: var(--fs-display);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 500;
}

/* line reveal helpers (JS wraps lines) */
.line { display: block; overflow: hidden; padding: 0.04em 0 0.2em; margin: -0.04em 0 -0.2em; }
.line > span { display: block; will-change: transform; }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.pill:hover { transform: translateY(-1px); }
.pill__arrow { transition: transform 0.3s var(--ease); }
.pill:hover .pill__arrow { transform: translateX(3px); }
.pill--light { background: var(--cream); color: var(--ink); }
.pill--light:hover { background: var(--accent); }
.pill--dark { background: var(--ink); color: var(--cream); }
.pill--accent { background: var(--accent); color: var(--ink); height: 48px; padding: 0 24px; font-size: 13px; }
.pill--accent:hover { background: var(--cream); }
.pill--ghost { border: 1px solid var(--line-light); color: var(--cream); height: 48px; padding: 0 24px; font-size: 13px; text-transform: none; letter-spacing: 0; }
.pill--ghost:hover { background: rgba(241, 240, 238, 0.08); }

/* ---------- Grain + blobs ---------- */
.grain {
  position: absolute;
  inset: -50%;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-6%, 4%); }
  40% { transform: translate(5%, -7%); }
  60% { transform: translate(-3%, 8%); }
  80% { transform: translate(7%, -2%); }
  100% { transform: translate(0, 0); }
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}
.blob--1 { width: 55vw; height: 55vw; left: -10vw; top: 25%; background: #2b3f8f; animation: float1 16s ease-in-out infinite alternate; }
.blob--2 { width: 40vw; height: 40vw; right: -8vw; top: -10%; background: #8eb2ff; opacity: 0.35; animation: float2 20s ease-in-out infinite alternate; }
.blob--3 { width: 35vw; height: 35vw; left: 40%; bottom: -20%; background: #5a3d8a; opacity: 0.45; animation: float1 22s ease-in-out infinite alternate-reverse; }
@keyframes float1 { to { transform: translate(12vw, -8vh) scale(1.15); } }
@keyframes float2 { to { transform: translate(-10vw, 14vh) scale(0.9); } }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: -0.04em;
}
.preloader__word { opacity: 0; transform: translateY(30%); display: inline-block; }

/* ---------- Floating navbar ---------- */
.navbar {
  position: fixed;
  z-index: 50;
  top: 12px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: var(--accent);
  transform: translate(-50%, -140%);
  transition: transform 0.6s var(--ease);
}
.navbar.is-visible, body.menu-open .navbar { transform: translate(-50%, 0); }
.navbar__logo {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.04em;
  padding: 0 14px 0 10px;
  text-transform: uppercase;
}
.navbar__menu,
.navbar__cta {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.3s var(--ease);
}
.navbar__menu { min-width: 150px; justify-content: space-between; }
.navbar__menu:hover, .navbar__cta:hover { background: rgba(255, 255, 255, 0.35); }
.navbar__dots { width: 10px; height: 10px; position: relative; }
.navbar__dots::before,
.navbar__dots::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}
.navbar__dots::before { top: 2px; }
.navbar__dots::after { bottom: 2px; }
body.menu-open .navbar__dots::before { transform: translateY(2.5px) rotate(45deg); }
body.menu-open .navbar__dots::after { transform: translateY(-2.5px) rotate(-45deg); }

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  align-items: flex-end;
  padding: var(--pad);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease);
  pointer-events: none;
}
body.menu-open .menu { clip-path: inset(0 0 0 0); pointer-events: auto; }
.menu ul { width: 100%; }
.menu li { border-top: 1px solid var(--line-light); }
.menu a {
  display: flex;
  align-items: baseline;
  gap: 24px;
  font-size: clamp(48px, 9vw, 140px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  transition: color 0.3s var(--ease), padding 0.4s var(--ease);
}
.menu a span { font-size: 12px; letter-spacing: 0.1em; color: var(--gray); }
.menu a:hover { color: var(--accent); padding-left: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  color: var(--cream);
  background: #07070a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: var(--pad);
}
.hero__bg { position: absolute; inset: 0; overflow: hidden; }
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
}
.hero__wordmark {
  position: relative;
  font-size: 36vw; /* refined by fitText() in main.js */
  line-height: 0.74;
  letter-spacing: -0.05em;
  font-weight: 600;
  margin-left: -0.06em;
  margin-top: -0.02em;
  white-space: nowrap;
  width: max-content;
}
.hero__wordmark .char { display: inline-block; will-change: transform; }

.hero__meta {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: start;
  gap: var(--pad);
  margin-top: 18px;
  font-size: 12px;
}
.hero__nav li { line-height: 1.45; }
.hero__nav a { opacity: 0.8; transition: opacity 0.2s; }
.hero__nav a:hover { opacity: 1; color: var(--accent); }
.hero__tag { text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.8; }

.hero__bottom {
  position: relative;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--pad);
}
.hero__title {
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 500;
}
.hero__actions { display: flex; align-items: center; gap: 24px; }
.hero__more { font-size: 14px; opacity: 0.85; }
.hero__more:hover { color: var(--accent); }

/* ---------- Preface ---------- */
.preface {
  position: relative;
  z-index: 2;
  height: 260vh;
  background: var(--cream);
  border-radius: var(--radius) var(--radius) 0 0;
  margin-top: -1px;
}
.preface__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.preface__left, .preface__right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(16px, 1.5vw, 22px);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.preface__left { right: calc(50% + min(160px, 30vw) + 2vw); }
.preface__right { left: calc(50% + min(160px, 30vw) + 2vw); }
.preface__media {
  position: relative;
  z-index: 1;
  width: min(320px, 60vw);
  height: min(420px, 70vh);
  will-change: width, height;
}
.preface__card {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(120% 80% at 20% 110%, #2b3f8f 0%, transparent 55%),
    radial-gradient(90% 70% at 90% 0%, #8eb2ff 0%, transparent 50%),
    #0a0a10;
  color: var(--cream);
  container-type: size; /* quote scales with the card, not the viewport */
}
.preface__card-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(16px, 2vw, 32px);
}
.preface__quote {
  font-size: clamp(20px, min(9cqw, 8cqh), 120px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

/* ---------- About ---------- */
.about { position: relative; z-index: 2; background: var(--cream); padding: 14vh 0 12vh; }
.about__lead {
  margin-top: 28px;
  max-width: 1200px;
  font-size: clamp(28px, 3.4vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.about__lead .word { opacity: 0.15; transition: opacity 0.2s; }
.about__grid {
  margin-top: 9vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--pad);
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.about__truths p { font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -0.03em; line-height: 1.25; color: #6f6d6b; }
.about__truths span { color: var(--ink); }
.about__list li {
  display: flex;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  letter-spacing: -0.02em;
}
.about__list li:first-child { padding-top: 0; }
.about__list span { font-size: 12px; color: #8a8886; padding-top: 4px; }

/* ---------- Stacking panels ---------- */
.stack { position: relative; z-index: 2; }
.panel {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 620px;
  padding: var(--pad);
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  transform-origin: 50% 0;
}
.panel:not(:last-child) { margin-bottom: 50vh; } /* dwell: each panel stays fully visible a bit */
.panel--cream { background: #e7e5e2; }
.panel--dark { background: var(--ink); color: var(--cream); }
.panel--accent { background: var(--accent); }
.panel__head {
  display: flex;
  justify-content: space-between;
  padding-top: 64px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.panel__word {
  align-self: center;
  font-size: clamp(110px, 21vw, 400px);
  line-height: 0.83;
  letter-spacing: -0.07em;
  font-weight: 500;
  margin-left: -0.05em;
}
.panel__body {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1.2fr;
  gap: var(--pad);
  align-items: end;
}
.panel__body h4 { font-size: var(--fs-h3); line-height: 1; letter-spacing: -0.04em; font-weight: 500; }
.panel__body p { font-size: 17px; line-height: 1.4; max-width: 46ch; opacity: 0.8; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.tags li {
  padding: 6px 12px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 999px;
  font-size: 13px;
}
.tags--light li { border-color: var(--line-light); }

/* ---------- Process ---------- */
.process { position: relative; z-index: 3; background: var(--cream); padding: 14vh 0; border-radius: var(--radius) var(--radius) 0 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--pad);
  margin-bottom: 8vh;
}
.section-head__sub { max-width: 34ch; font-size: 17px; color: #6f6d6b; }
.process__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  counter-reset: step;
}
.step {
  position: relative;
  min-height: 320px;
  padding: 22px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.step__num { font-size: clamp(48px, 4.4vw, 72px); line-height: 0.9; letter-spacing: -0.06em; color: #d9d7d4; transition: color 0.4s var(--ease); }
.step h3 { margin-top: auto; font-size: var(--fs-h3); letter-spacing: -0.04em; line-height: 1; font-weight: 500; }
.step p { margin-top: 14px; font-size: 15px; line-height: 1.4; color: #6f6d6b; }
.step--featured { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.step--featured p { color: var(--gray); }
.step--featured .step__num { color: var(--accent); }
.step:hover:not(.step--featured) { background: var(--accent); }
.step:hover:not(.step--featured) p { color: var(--ink); }
.step:hover:not(.step--featured) .step__num { color: rgba(0, 0, 0, 0.25); }

/* ---------- Mega type ---------- */
.mega {
  font-size: var(--fs-mega);
  line-height: 0.86;
  letter-spacing: -0.055em;
  font-weight: 500;
  padding: 0 var(--pad) 0.08em;
  overflow: hidden; /* fallback */
  overflow: clip;
  overflow-clip-margin: 0.15em;
}
.beyond, .proof { overflow-x: clip; } /* keep .mega's clip margin from widening the page */
.mega__line { display: block; white-space: nowrap; will-change: transform; }
.mega__line--paren { text-align: right; }
.mega--light { color: var(--cream); }
.mega__line--accent { color: var(--accent); text-align: right; }

/* ---------- Beyond ---------- */
.beyond { position: relative; z-index: 3; background: var(--cream); padding: 6vh 0 14vh; }
.beyond__grid {
  margin-top: 10vh;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6vw;
}
.beyond__intro { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 90px; align-self: start; }
.beyond__lead { font-size: var(--fs-h3); line-height: 1.05; letter-spacing: -0.04em; max-width: 18ch; }
.beyond__intro .muted { max-width: 42ch; font-size: 16px; }

/* ---------- Accordion ---------- */
.accordion__item { border-top: 1px solid var(--line); }
.accordion__item:last-child { border-bottom: 1px solid var(--line); }
.accordion__btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  text-align: left;
  font-size: clamp(18px, 1.6vw, 24px);
  letter-spacing: -0.03em;
}
.accordion__btn span { font-size: 12px; letter-spacing: 0.1em; color: #8a8886; min-width: 24px; }
.accordion__btn i {
  margin-left: auto;
  position: relative;
  width: 12px;
  height: 12px;
  flex: none;
}
.accordion__btn i::before,
.accordion__btn i::after {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}
.accordion__btn i::after { transform: rotate(90deg); }
.accordion__item.is-open .accordion__btn i::after { transform: rotate(0deg); }
.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}
.accordion__panel > p {
  overflow: hidden;
  max-width: 56ch;
  padding-left: 44px;
  font-size: 16px;
  line-height: 1.5;
  color: #6f6d6b;
}
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__item.is-open .accordion__panel > p { padding-bottom: 22px; }
.accordion--faq .accordion__panel > p { padding-left: 0; }

/* ---------- Clients ---------- */
.clients { position: relative; z-index: 3; background: var(--cream); padding: 0 0 14vh; }
.marquee { overflow: hidden; padding: 4px 0; }
.marquee__track { display: flex; gap: 8px; width: max-content; will-change: transform; }
.logo-tile {
  width: clamp(120px, 12vw, 180px);
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  flex: none;
}
.logo-tile img { width: 100%; height: 100%; object-fit: cover; }
.clients__more { padding: 24px var(--pad) 0; text-align: right; color: #6f6d6b; }

/* ---------- Why ---------- */
.why { position: relative; z-index: 3; background: var(--ink); color: var(--cream); padding: 14vh 0; border-radius: var(--radius) var(--radius) 0 0; }
.section-head--light .section-head__sub { color: var(--gray); }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.why__card {
  min-height: 330px;
  padding: 22px;
  border-radius: 12px;
  background: #121212;
  border: 1px solid var(--line-light);
  display: flex;
  flex-direction: column;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.why__card:hover { background: var(--accent); color: var(--ink); }
.why__card:hover p { color: var(--ink); }
.why__num {
  font-size: clamp(56px, 5vw, 84px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--accent);
  transition: color 0.4s var(--ease);
}
.why__card:hover .why__num { color: rgba(0, 0, 0, 0.25); }
.why__card h3 { margin-top: auto; font-size: clamp(22px, 2vw, 30px); line-height: 1; letter-spacing: -0.04em; font-weight: 500; }
.why__card p { margin-top: 14px; font-size: 15px; line-height: 1.45; color: var(--gray); transition: color 0.4s; }

/* ---------- Proof ---------- */
.proof { position: relative; z-index: 3; background: var(--ink); color: var(--cream); padding: 2vh 0 14vh; }
.proof__grid { margin-top: 10vh; display: grid; grid-template-columns: 1fr 1.4fr; gap: 6vw; }
.proof__lead { font-size: var(--fs-h3); line-height: 1.05; letter-spacing: -0.04em; max-width: 18ch; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.metric {
  padding: 22px;
  border-radius: 12px;
  border: 1px solid var(--line-light);
  min-height: 190px;
  display: flex;
  flex-direction: column;
}
.metric dt { font-size: 22px; letter-spacing: -0.03em; }
.metric dt::before { content: ""; display: block; width: 22px; height: 2px; background: var(--accent); margin-bottom: 18px; }
.metric dd { margin-top: auto; font-size: 15px; line-height: 1.45; color: var(--gray); }

/* ---------- Team ---------- */
.team { position: relative; z-index: 3; background: var(--cream); padding: 14vh 0; border-radius: var(--radius) var(--radius) 0 0; }
.team__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.person { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.person__top { display: flex; align-items: center; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.person__avatar {
  width: 64px; height: 64px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent);
  font-size: 20px;
  letter-spacing: -0.03em;
}
.person h3 { font-size: var(--fs-h3); letter-spacing: -0.04em; line-height: 1; font-weight: 500; }
.person__role { margin-top: 6px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: #8a8886; }
.person__years { white-space: nowrap; margin-left: auto; font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--cream); }
.timeline li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.4;
}
.timeline li:last-child { border-bottom: 0; padding-bottom: 0; }
.timeline span { font-size: 13px; color: #8a8886; }

/* ---------- FAQ ---------- */
.faq { position: relative; z-index: 3; background: var(--cream); padding: 4vh 0 14vh; }
.faq__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 6vw; }
.faq__title { font-size: clamp(36px, 3.6vw, 56px); line-height: 0.98; letter-spacing: -0.05em; letter-spacing: -0.04em; font-weight: 500; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  background: #07070a;
  color: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16vh var(--pad);
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.cta__bg { position: absolute; inset: 0; overflow: hidden; }
.blob--cta {
  width: 80vw; height: 60vw;
  left: 10vw; bottom: -30vw;
  background: radial-gradient(circle, #8eb2ff 0%, #4b3c9c 45%, transparent 70%);
  opacity: 0.8;
  filter: blur(60px);
  animation: float2 18s ease-in-out infinite alternate;
}
.cta__title {
  position: relative;
  font-size: clamp(96px, 16vw, 280px);
  line-height: 0.82;
  letter-spacing: -0.07em;
  font-weight: 500;
}
.cta__sub { position: relative; margin-top: 32px; font-size: 18px; max-width: 34ch; color: rgba(241, 240, 238, 0.75); }
.cta__actions { position: relative; margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 3;
  background: var(--accent);
  padding: var(--pad);
  overflow: hidden;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: var(--pad);
  font-size: 12px;
  padding-top: 8px;
}
.footer__nav li { line-height: 1.45; }
.footer__nav a:hover, .footer__contact a:hover { text-decoration: underline; }
.footer__tag { text-transform: uppercase; letter-spacing: 0.1em; }
.footer__mid {
  margin-top: 22vh;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--pad);
  font-size: clamp(18px, 1.6vw, 24px);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.footer__note { text-align: right; }
.footer__note span { color: rgba(0, 0, 0, 0.5); }
.footer__wordmark {
  margin-top: 24px;
  font-size: 36vw; /* refined by fitText() in main.js */
  line-height: 0.74;
  letter-spacing: -0.05em;
  font-weight: 600;
  margin-left: -0.06em;
  white-space: nowrap;
  width: max-content;
}
.footer__bottom {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.6);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .step { min-height: 240px; }
  .step--featured { grid-column: span 2; }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .why__card { min-height: 280px; }
  .panel__body { grid-template-columns: 1fr 1fr; }
  .panel__body .tags { grid-column: span 2; justify-content: flex-start; }
}

@media (max-width: 768px) {
  .hero__meta { grid-template-columns: 1fr 1fr; }
  .hero__meta .pill { display: none; }
  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 24px; }
  .preface__left { top: 12%; right: auto; left: 50%; transform: translateX(-50%); }
  .preface__right { top: auto; bottom: 12%; left: 50%; transform: translateX(-50%); }
  .about__grid, .beyond__grid, .proof__grid, .faq__grid, .team__grid { grid-template-columns: 1fr; gap: 40px; }
  .beyond__intro { position: static; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .process__grid, .why__grid, .metrics { grid-template-columns: 1fr; }
  .step--featured { grid-column: auto; }
  .panel { height: 100svh; min-height: 0; }
  .panel__head { padding-top: 56px; }
  .panel__word { font-size: 27vw; }
  .panel__body { grid-template-columns: 1fr; gap: 14px; }
  .panel__body p { font-size: 15px; }
  .panel__body .tags { grid-column: auto; justify-content: flex-start; }
  .tags li { font-size: 12px; padding: 5px 10px; }
  .navbar__menu { min-width: 96px; gap: 12px; }
  .navbar__logo { padding: 0 8px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__top .pill { display: none; }
  .footer__mid { flex-direction: column; align-items: flex-start; }
  .footer__note { text-align: left; }
  .navbar__menu { min-width: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Card text alignment: keep titles and copy on one baseline ---------- */
.step p { min-height: 4.2em; }
.why__card h3 { min-height: 2em; display: flex; align-items: flex-end; }
.why__card p { min-height: 2.9em; }
@media (max-width: 768px) {
  .step p, .why__card h3, .why__card p { min-height: 0; }
}
