/* ============================================================
   AtoB Edge — editorial marketing site
   ============================================================ */

:root {
  /* Brand tokens */
  --bg: #FAFAF7;
  --bg-2: #F2EFEA;
  --surface: #FFFFFF;
  --border: rgba(15, 15, 15, 0.08);
  --border-soft: rgba(15, 15, 15, 0.06);
  --ink: #0F0F0F;
  --text-2: #4A4A4A;
  --text-3: #9A9A9A;
  --accent: #3D2E5C;          /* deep aubergine/plum */
  --accent-deep: #2C2143;     /* darker plum for hover */
  --accent-tint: #ECE7F1;     /* very light plum wash */
  --gold: #C4A574;            /* champagne */

  /* Type — tweakable */
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --scale: 1;                 /* type-scale multiplier (tweakable) */

  /* Rhythm */
  --radius: 10px;
  --radius-lg: 14px;
  --section-y: clamp(72px, 11vw, 148px);
  --shell: 1200px;
  --gutter: clamp(22px, 5vw, 64px);

  --shadow-sm: 0 1px 2px rgba(15,15,15,0.04);
  --shadow-card: 0 18px 40px -28px rgba(15,15,15,0.28);
  --shadow-btn: 0 10px 24px -12px rgba(61,46,92,0.55);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: calc(17px * var(--scale));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.012em;
  margin: 0;
  font-optical-sizing: auto;
}

p { margin: 0; }

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

/* ---------- layout helpers ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.eyebrow {
  font-family: var(--font-body);
  font-size: calc(12.5px * var(--scale));
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
}

.lead {
  color: var(--text-2);
  font-size: calc(20px * var(--scale));
  line-height: 1.55;
  max-width: 44ch;
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- focus rings ---------- */
:where(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav[data-stuck="true"] {
  border-bottom-color: var(--border);
  background: color-mix(in oklab, var(--bg) 92%, transparent);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.wordmark {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: calc(25px * var(--scale));
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
}
.wordmark .lc { font-style: italic; color: var(--accent); font-weight: 500; padding: 0 1px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  text-decoration: none;
  color: var(--text-2);
  font-size: calc(15px * var(--scale));
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1.5px; width: 0;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { width: 100%; }

.nav__right { display: flex; align-items: center; gap: 22px; }
.nav__phone {
  text-decoration: none;
  color: var(--text-2);
  font-size: calc(14.5px * var(--scale));
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.nav__phone:hover { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  --b-bg: var(--accent);
  --b-fg: #fff;
  font-family: var(--font-body);
  font-size: calc(15px * var(--scale));
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1;
  padding: 15px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--b-bg);
  color: var(--b-fg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
              background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn--primary { box-shadow: var(--shadow-sm); }
.btn--primary:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.btn--lg { padding: 18px 30px; font-size: calc(16px * var(--scale)); }
.btn__arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- mobile nav ---------- */
.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 44px; height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.nav__toggle svg { width: 22px; height: 22px; }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 26px var(--gutter);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  visibility: hidden;
}
.drawer[data-open="true"] { transform: translateX(0); visibility: visible; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; }
.drawer__links { list-style: none; margin: 48px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.drawer__links a {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
}
.drawer__foot { margin-top: auto; display: flex; flex-direction: column; gap: 16px; padding-top: 28px; }
.drawer__foot .btn { width: 100%; }
.drawer__phone { font-size: 18px; font-weight: 600; color: var(--accent); text-decoration: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: clamp(56px, 9vw, 104px); padding-bottom: var(--section-y); overflow: clip; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 92px);
  align-items: center;
}
.hero[data-layout="centered"] .hero__grid { grid-template-columns: 1fr; max-width: 920px; margin: 0 auto; text-align: center; }
.hero[data-layout="centered"] .hero__aside { display: none; }
.hero[data-layout="centered"] .lead { margin-inline: auto; }
.hero[data-layout="centered"] .hero__cta,
.hero[data-layout="centered"] .hero__trust { justify-content: center; }
.hero[data-layout="centered"] .eyebrow { justify-content: center; }

.hero h1 {
  font-size: calc(clamp(46px, 8vw, 88px) * var(--scale));
  letter-spacing: -0.025em;
  margin-top: 24px;
}
.hero h1 .accent { color: var(--accent); font-style: italic; font-weight: 500; }
.hero .lead { margin-top: 28px; font-size: calc(21px * var(--scale)); max-width: 50ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 36px;
  color: var(--text-3);
  font-size: calc(14px * var(--scale));
  font-weight: 500;
}
.hero__trust .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }

/* hero aside — editorial stat / portrait placeholder */
.hero__aside { position: relative; }
.hero__card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
}
.hero__portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.ph-tag {
  position: relative;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-2);
  background: color-mix(in oklab, var(--surface) 86%, transparent);
  backdrop-filter: blur(4px);
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
}
.hero__statline {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 22px;
}
.hero__statline .num { font-family: var(--font-head); font-size: 40px; font-weight: 600; color: var(--accent); }
.hero__statline .txt { font-size: 14.5px; color: var(--text-2); line-height: 1.4; }

/* ============================================================
   PAIN — "Sound familiar?"
   ============================================================ */
.pain { background: var(--bg-2); }
.pain__head { max-width: 720px; }
.pain h2 { font-size: calc(clamp(32px, 4.6vw, 52px) * var(--scale)); margin-top: 18px; }
.pain__grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pain__item { background: var(--bg-2); padding: 36px 32px; }
.pain__item .n {
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--gold);
  font-style: italic;
}
.pain__item h3 { font-size: calc(22px * var(--scale)); margin-top: 14px; }
.pain__item p { color: var(--text-2); margin-top: 12px; font-size: calc(16px * var(--scale)); }
.pain__turn {
  margin-top: 44px;
  font-family: var(--font-head);
  font-style: italic;
  font-size: calc(clamp(22px, 3vw, 30px) * var(--scale));
  color: var(--ink);
}

/* ============================================================
   APPROACH
   ============================================================ */
.approach__head { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: end; }
.approach__head h2 { font-size: calc(clamp(32px, 4.6vw, 52px) * var(--scale)); margin-top: 18px; }
.approach__head p { color: var(--text-2); font-size: calc(17px * var(--scale)); }
.approach__grid {
  margin-top: 58px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(15,15,15,0.16);
  box-shadow: var(--shadow-card);
}
.card__index {
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.card__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.card__icon svg { width: 23px; height: 23px; }
.card h3 { font-size: calc(23px * var(--scale)); margin-bottom: 12px; }
.card p { color: var(--text-2); font-size: calc(16px * var(--scale)); }
.approach__cta { margin-top: 48px; display: flex; justify-content: center; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--bg-2); }
.services__head { max-width: 680px; }
.services h2 { font-size: calc(clamp(32px, 4.6vw, 52px) * var(--scale)); margin-top: 18px; }
.services__head p { color: var(--text-2); margin-top: 18px; font-size: calc(18px * var(--scale)); }
.services__grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.svc {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.svc:hover {
  transform: translateY(-5px);
  border-color: rgba(15,15,15,0.16);
  box-shadow: var(--shadow-card);
}
.svc__icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--accent-tint);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.svc__icon svg { width: 22px; height: 22px; }
.svc h3 { font-size: calc(21px * var(--scale)); margin-bottom: 11px; }
.svc p { color: var(--text-2); font-size: calc(15.5px * var(--scale)); flex: 1; }
.services__cta { margin-top: 50px; display: flex; justify-content: center; }

/* ============================================================
   WHO WE WORK WITH
   ============================================================ */
.who__grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.who__media { position: relative; }
.who__media img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
}
.who h2 { font-size: calc(clamp(30px, 4.2vw, 46px) * var(--scale)); }
.who__body { margin-top: 26px; }
.who__body p { color: var(--text-2); font-size: calc(18.5px * var(--scale)); line-height: 1.62; }
.who__body p + p { margin-top: 22px; }
.who__body .accent-line { color: var(--ink); font-weight: 500; }
.who__range {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.who__range .chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  font-weight: 500;
  color: var(--ink);
  font-size: calc(16px * var(--scale));
}
.who__range .chip .k { color: var(--gold); font-family: var(--font-head); font-style: italic; }

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(40px, 6vw, 84px); align-items: start; }
.about__media { position: sticky; top: 100px; }
.about__photo {
  aspect-ratio: 5 / 6;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.about__detail {
  position: absolute;
  right: -22px;
  bottom: -28px;
  width: 46%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 5px solid var(--bg);
  box-shadow: var(--shadow-card);
}
.about__detail img { width: 100%; height: 100%; object-fit: cover; }
.about__photo::after { content: none; }
.about__photo .ph-tag { position: relative; }
.about h2 { font-size: calc(clamp(32px, 4.6vw, 52px) * var(--scale)); margin-top: 18px; }
.about__body { margin-top: 26px; }
.about__body p { color: var(--text-2); font-size: calc(18px * var(--scale)); line-height: 1.64; }
.about__body p + p { margin-top: 20px; }
.about__body strong { color: var(--ink); font-weight: 600; }
.pullquote {
  margin: 40px 0 0;
  font-family: var(--font-head);
  font-style: italic;
  font-size: calc(clamp(24px, 3.2vw, 33px) * var(--scale));
  line-height: 1.28;
  color: var(--ink);
  padding-left: 26px;
  border-left: 2px solid var(--gold);
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.finalcta { background: var(--accent); color: #fff; }
.finalcta__inner { text-align: center; max-width: 820px; margin: 0 auto; }
.finalcta .eyebrow { color: var(--gold); }
.finalcta .eyebrow::before { background: var(--gold); }
.finalcta h2 {
  color: #fff;
  font-size: calc(clamp(36px, 5.4vw, 64px) * var(--scale));
  margin-top: 20px;
}
.finalcta p { color: rgba(255,255,255,0.82); font-size: calc(19px * var(--scale)); line-height: 1.55; margin: 26px auto 0; max-width: 60ch; }
.finalcta__actions { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.finalcta .btn--primary { background: #fff; color: var(--accent); }
.finalcta .btn--primary:hover { background: var(--gold); color: var(--ink); box-shadow: 0 14px 30px -12px rgba(0,0,0,0.4); }
.finalcta__phone {
  font-family: var(--font-head);
  font-size: calc(clamp(26px, 3.4vw, 36px) * var(--scale));
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.finalcta__phone:hover { color: var(--gold); }
.finalcta__phone svg { width: 24px; height: 24px; opacity: 0.7; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact h2 { font-size: calc(clamp(32px, 4.6vw, 52px) * var(--scale)); margin-top: 18px; }
.contact__intro p { color: var(--text-2); font-size: calc(18px * var(--scale)); margin-top: 20px; }
.contact__meta { margin-top: 34px; display: flex; flex-direction: column; gap: 18px; }
.contact__meta a, .contact__meta div { display: flex; align-items: center; gap: 13px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: calc(16px * var(--scale)); }
.contact__meta svg { width: 19px; height: 19px; color: var(--accent); flex: none; }
.contact__meta span.sub { color: var(--text-3); font-weight: 400; }

.form { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 42px); box-shadow: var(--shadow-card); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: calc(14px * var(--scale)); font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.field label .opt { color: var(--text-3); font-weight: 400; }
.field input, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: calc(16px * var(--scale));
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 15px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.field textarea { resize: vertical; min-height: 120px; }
.form .btn { width: 100%; margin-top: 4px; }
.form__note { margin-top: 16px; font-size: calc(13.5px * var(--scale)); color: var(--text-3); text-align: center; }
.form__success {
  display: none;
  text-align: center;
  padding: 30px 10px;
}
.form__success h3 { font-size: calc(26px * var(--scale)); color: var(--accent); }
.form__success p { color: var(--text-2); margin-top: 12px; font-size: calc(16px * var(--scale)); }
.form[data-sent="true"] .form__body { display: none; }
.form[data-sent="true"] .form__success { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: rgba(255,255,255,0.7); padding-block: clamp(54px, 7vw, 80px); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 40px; }
.footer .wordmark { color: #fff; font-size: 27px; }
.footer .wordmark .lc { color: var(--gold); }
.footer__tag { font-family: var(--font-head); font-style: italic; font-size: 19px; color: rgba(255,255,255,0.78); margin-top: 16px; }
.footer__col h4 { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 18px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer__col a { color: rgba(255,255,255,0.78); text-decoration: none; transition: color 0.2s var(--ease); font-size: 15.5px; }
.footer__col a:hover { color: #fff; }
.footer__meta { font-size: 15px; line-height: 1.7; }
.footer__meta a { color: #fff; text-decoration: none; font-weight: 500; }
.footer__bottom { margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: rgba(255,255,255,0.5); }
.footer__legal a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.2s var(--ease); }
.footer__legal a:hover { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   STICKY MOBILE CALL BAR
   ============================================================ */
.callbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.callbar .btn { flex: 1; }
.callbar .btn--ghost { flex: none; width: 52px; padding: 0; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* hero load animation */
.hero .animate-up { opacity: 0; transform: translateY(18px); }
.hero.loaded .animate-up { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.hero.loaded .animate-up[data-d="1"] { transition-delay: 0.1s; }
.hero.loaded .animate-up[data-d="2"] { transition-delay: 0.2s; }
.hero.loaded .animate-up[data-d="3"] { transition-delay: 0.3s; }
.hero.loaded .animate-up[data-d="4"] { transition-delay: 0.4s; }
.hero.loaded .animate-up[data-d="5"] { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero .animate-up { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .card, .svc { transition: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__aside { display: none; }
  .hero .lead { max-width: 60ch; }
  .approach__grid, .services__grid { grid-template-columns: repeat(2, 1fr); }
  .pain__grid { grid-template-columns: 1fr; }
  .approach__head { grid-template-columns: 1fr; gap: 16px; }
  .who__grid, .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media { position: relative; top: 0; max-width: 460px; }
  .about__detail { right: 0; bottom: -20px; width: 40%; }
  .who__media { max-width: 520px; margin-top: 12px; }
}

@media (max-width: 760px) {
  .nav__links, .nav__phone { display: none; }
  .nav__toggle { display: flex; }
  .nav__right .btn { display: none; }
  .callbar { display: flex; }
  body { padding-bottom: 74px; }
  .approach__grid, .services__grid { grid-template-columns: 1fr; }
  .about__detail { display: none; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; }
}

/* tweaks panel mount should never affect layout */
#tweaks-root:empty { display: none; }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-hero {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border-soft);
  padding-block: clamp(56px, 8vw, 96px);
}
.legal-hero .eyebrow { margin-bottom: 18px; }
.legal-hero h1 {
  font-size: calc(clamp(38px, 6vw, 64px) * var(--scale));
  letter-spacing: -0.022em;
  max-width: 18ch;
}
.legal-hero p { color: var(--text-2); margin-top: 18px; font-size: calc(17px * var(--scale)); }
.legal-hero .updated {
  margin-top: 26px;
  font-size: calc(13.5px * var(--scale));
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
}

.legal { padding-block: clamp(56px, 8vw, 96px); }
.legal__grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: start;
}

/* TOC */
.legal__toc {
  position: sticky;
  top: 100px;
  font-size: calc(14.5px * var(--scale));
}
.legal__toc h2 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}
.legal__toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; display: flex; flex-direction: column; gap: 2px; }
.legal__toc a {
  display: flex;
  gap: 10px;
  text-decoration: none;
  color: var(--text-2);
  padding: 7px 10px;
  border-radius: 7px;
  line-height: 1.35;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.legal__toc a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); color: var(--gold); font-family: var(--font-head); font-style: italic; font-size: 13px; }
.legal__toc a:hover { background: var(--accent-tint); color: var(--accent); }

/* body */
.legal__body { max-width: 760px; }
.legal__body .intro {
  font-size: calc(19px * var(--scale));
  line-height: 1.6;
  color: var(--ink);
  padding-bottom: 30px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}
.legal__section { padding-top: 38px; scroll-margin-top: 100px; }
.legal__section:first-of-type { padding-top: 14px; }
.legal__section h2 {
  font-size: calc(clamp(24px, 3vw, 30px) * var(--scale));
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.legal__section h2 .num { font-family: var(--font-head); font-style: italic; font-weight: 500; color: var(--gold); font-size: 0.7em; }
.legal__section h3 { font-size: calc(19px * var(--scale)); margin-top: 26px; }
.legal__section p,
.legal__section li { color: var(--text-2); font-size: calc(16.5px * var(--scale)); line-height: 1.66; }
.legal__section p { margin-top: 16px; }
.legal__section ul { margin: 16px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 9px; }
.legal__section ul li::marker { color: var(--gold); }
.legal__section a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.legal__section strong { color: var(--ink); font-weight: 600; }

.legal__callout {
  margin-top: 22px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.legal__callout p { margin-top: 0; font-size: calc(15.5px * var(--scale)); }

.legal__contactcard {
  margin-top: 30px;
  background: var(--accent-tint);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
}
.legal__contactcard h3 { margin-top: 0; font-family: var(--font-head); font-size: calc(20px * var(--scale)); color: var(--accent); }
.legal__contactcard p { margin-top: 8px; }
.legal__contactcard a { color: var(--accent); font-weight: 600; }

.legal__disclaimer {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  font-size: calc(13.5px * var(--scale));
  color: var(--text-3);
  font-style: italic;
  line-height: 1.6;
}

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
  font-size: calc(15px * var(--scale));
}
.legal__back:hover { gap: 12px; }

@media (max-width: 900px) {
  .legal__grid { grid-template-columns: 1fr; gap: 8px; }
  .legal__toc { position: relative; top: 0; display: none; }
}

