/* ============================================================
   rankedbyshai.com — design system
   Fonts: Fraunces (display) + Inter (text)
   ============================================================ */

:root {
  --paper: #FAF6EF;
  --paper-2: #F2EBDE;
  --card: #FFFFFF;
  --ink: #1C1712;
  --ink-2: #60574A;
  --line: #E7DFD0;
  --accent: #E44D64;
  --accent-deep: #B22B44;
  --accent-soft: #FBE7E6;
  --green: #0E8A5C;
  --green-soft: #DFF2E8;
  --dark: #191411;
  --dark-2: #241D16;
  --cream: #F6EFE4;
  --radius: 20px;
  --radius-lg: 30px;
  --shadow: 0 1px 2px rgba(28,23,18,.05), 0 12px 34px -14px rgba(28,23,18,.16);
  --shadow-lg: 0 2px 4px rgba(28,23,18,.06), 0 30px 60px -22px rgba(28,23,18,.28);
  --font-display: "Fraunces", Georgia, serif;
  --font-text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: 1140px;
}

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

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

body {
  font-family: var(--font-text);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }
b, strong { font-weight: 650; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

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

/* ---------- a11y ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2.5px solid var(--accent-deep); outline-offset: 3px; border-radius: 4px; }

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 5.8vw, 4.35rem); }
h2 { font-size: clamp(2rem, 3.9vw, 2.95rem); margin-bottom: 1rem; }
h1 em, h2 em { font-style: italic; color: var(--accent-deep); }

.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-deep); margin-bottom: 1.1rem;
}
.eyebrow-light { color: #F0A9B4; }

.section-lede { max-width: 46ch; color: var(--ink-2); font-size: 1.1rem; margin-bottom: 2.6rem; }

.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons / badges / chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .97rem; text-decoration: none; cursor: pointer;
  padding: .82rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  font-family: var(--font-text);
}
.btn:hover { transform: translateY(-1.5px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px rgba(228,77,100,.55); }
.btn-accent:hover { background: var(--accent-deep); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }

.badge-up {
  display: inline-flex; align-items: center;
  font-style: normal; font-weight: 700; font-size: .72rem; letter-spacing: .02em;
  color: var(--green); background: var(--green-soft);
  padding: .18rem .55rem; border-radius: 999px; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.tag {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  color: var(--ink-2); background: var(--paper-2); border-radius: 999px; padding: .24rem .7rem;
}
.tag-accent { color: var(--accent-deep); background: var(--accent-soft); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
  font-size: .85rem; font-weight: 550; color: var(--ink-2);
  background: var(--card); border: 1px solid var(--line);
  padding: .38rem .85rem; border-radius: 999px;
}

/* ---------- progress bar ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120;
  background: var(--accent); transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.02em;
  text-decoration: none; color: var(--ink);
}
.wordmark span { color: var(--ink-2); font-weight: 500; font-style: italic; }
.wordmark em { color: var(--accent); font-style: normal; }
.wordmark-sm { font-size: 1.1rem; }

.site-nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.4vw, 2rem); }
.site-nav a:not(.btn) {
  text-decoration: none; font-weight: 550; font-size: .95rem; color: var(--ink-2);
  transition: color .15s ease;
}
.site-nav a:not(.btn):hover, .site-nav a.active { color: var(--ink); }
.nav-cta { padding: .6rem 1.25rem; font-size: .9rem; }

.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

.hero .lede { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 52ch; margin: 1.5rem 0 2rem; }
.hero .lede strong { color: var(--ink); }
.hero-ctas { display: flex; gap: .85rem; flex-wrap: wrap; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, auto); gap: clamp(1.2rem, 3vw, 2.4rem);
  margin-top: clamp(2.2rem, 4vw, 3.4rem); padding-top: 1.8rem; border-top: 1px solid var(--line);
}
.hero-stats dt { font-family: var(--font-display); font-weight: 650; font-size: 1.75rem; line-height: 1; letter-spacing: -.01em; }
.hero-stats dt.dt-text { font-size: 1.35rem; padding-top: .28rem; font-style: italic; color: var(--accent-deep); }
.hero-stats dd { font-size: .8rem; color: var(--ink-2); margin-top: .45rem; max-width: 15ch; line-height: 1.45; }
.hero-stats .foot { color: var(--accent-deep); text-decoration: none; font-weight: 700; }

/* hero visual */
.hero-visual { position: relative; min-height: 420px; }
.proof-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.4rem 1.15rem; box-shadow: var(--shadow-lg);
}
.proof-main { position: relative; z-index: 2; width: min(86%, 400px); margin-left: auto; }
.proof-back {
  position: absolute; z-index: 1; top: 52%; left: 0; width: min(62%, 280px);
  transform: rotate(-3.5deg);
  box-shadow: var(--shadow);
}
.proof-head {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 650; font-size: .95rem; letter-spacing: -.01em; margin-bottom: .9rem;
}
.proof-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3.5px var(--green-soft); }
.proof-metric {
  display: flex; align-items: baseline; gap: .6rem;
  padding-top: .7rem; margin-top: .7rem; border-top: 1px dashed var(--line);
}
.proof-metric span { font-size: .78rem; color: var(--ink-2); flex: 1; }
.proof-metric b { font-family: var(--font-display); font-size: 1.35rem; font-weight: 650; font-variant-numeric: tabular-nums; }

.chip {
  position: absolute; z-index: 3;
  background: var(--ink); color: var(--cream);
  font-size: .8rem; font-weight: 600; padding: .55rem 1rem; border-radius: 999px;
  box-shadow: var(--shadow-lg); white-space: nowrap;
}
.chip-1 { top: -14px; right: 6%; background: var(--accent); color: #fff; animation: floaty 5.5s ease-in-out infinite alternate; }
.chip-2 { bottom: 7%; right: 0; animation: floaty 6.5s .8s ease-in-out infinite alternate; }
@keyframes floaty { from { transform: translateY(0); } to { transform: translateY(-9px); } }

/* ---------- sparklines ---------- */
.spark { height: 52px; }
.spark-tall { height: 64px; }
.case.featured .spark { height: 96px; }
.spark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.sp-line { fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.sp-area { fill: rgba(228, 77, 100, .12); }

/* ---------- clients ---------- */
.clients { padding: 1.6rem 0 0; }
.clients-label {
  text-align: center; font-size: .74rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-2); margin-bottom: 1.6rem;
}
.client-groups {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem);
  border-block: 1px solid var(--line); padding: 1.8rem 0;
}
.client-group h3 {
  font-family: var(--font-text); font-size: .72rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--accent-deep); margin-bottom: .9rem; text-align: center;
}
.logo-chips { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; }
.logo-chips li {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: .42rem 1rem .42rem .55rem; font-weight: 600; font-size: .9rem; color: var(--ink);
}
.logo-chips img { width: 18px; height: 18px; padding: 2px; border-radius: 6px; background: #F1EBDF; }
.logo-chips img.logo-dark { filter: brightness(.4) contrast(1.5); }
.clients-note {
  text-align: center; font-size: .85rem; font-style: italic; color: var(--ink-2);
  margin-top: 1.3rem; max-width: 62ch; margin-inline: auto;
}

/* ---------- sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-tight { padding-top: 0; padding-bottom: 0; }
.section-alt { background: var(--paper-2); }

/* ---------- results ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.case {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.2rem;
  transition: transform .22s ease, box-shadow .22s ease;
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.case.featured { grid-column: span 2; background: linear-gradient(135deg, #fff 55%, #FDF3EE); }
.case header { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; flex-wrap: wrap; }
.case h3 { font-family: var(--font-text); font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; }
.case.featured h3 { font-size: 1.25rem; }

.metrics { margin-top: 1rem; display: grid; gap: .55rem; }
.metrics > div { display: flex; align-items: baseline; gap: .65rem; }
.metrics dt { font-size: .8rem; color: var(--ink-2); flex: 1; }
.metrics dd { display: flex; align-items: baseline; gap: .5rem; }
.metrics b { font-family: var(--font-display); font-weight: 650; font-size: 1.45rem; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.case.featured .metrics b { font-size: 1.8rem; }

.more-sites { margin-top: 1.6rem; }
.more-sites summary {
  cursor: pointer; font-weight: 650; font-size: 1rem; list-style: none;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .8rem 1.4rem; border: 1.5px solid var(--ink); border-radius: 999px;
  transition: background .18s ease, color .18s ease;
}
.more-sites summary::-webkit-details-marker { display: none; }
.more-sites summary:hover { background: var(--ink); color: #fff; }
.more-sites summary .count { color: var(--accent); font-weight: 700; }
.more-sites summary::after { content: "↓"; transition: transform .2s ease; }
.more-sites[open] summary::after { transform: rotate(180deg); }
.more-grid { columns: 3; gap: 2.6rem; margin-top: 1.6rem; }
.more-grid li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  break-inside: avoid; padding: .58rem 0; border-bottom: 1px solid var(--line);
  font-size: .88rem;
}
.more-grid li span { color: var(--ink); font-weight: 550; overflow-wrap: anywhere; }
.more-grid li b { color: var(--ink-2); font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; font-size: .82rem; }

.disclaimer { margin-top: 2rem; font-size: .84rem; color: var(--ink-2); font-style: italic; max-width: 72ch; }

/* ---------- GEO / AI Overview ---------- */
.geo {
  background: var(--dark); color: var(--cream); border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 5vw, 4.2rem);
}
.geo h2 { color: #FDFAF4; max-width: 22ch; }
.geo h2 em { color: #F2848F; }
.geo p { color: #CDC3B4; }
.geo p strong { color: #FDFAF4; }
.geo-copy > p { max-width: 72ch; }
.geo-points { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .6rem 2rem; }
.geo-points li { display: flex; gap: .7rem; align-items: baseline; color: #E9E0D2; font-size: .95rem; }
.geo-points li::before { content: "✓"; color: #6FD3A7; font-weight: 700; }

.aio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-top: 2.4rem; }
.aio {
  display: flex; flex-direction: column;
  background: var(--dark-2); border: 1px solid rgba(246,239,228,.14); border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.3rem; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.aio-head { display: flex; align-items: center; gap: .55rem; font-weight: 650; font-size: .95rem; color: #FDFAF4; margin-bottom: .7rem; }
.aio-q {
  font-size: .82rem; font-weight: 600; color: #A99D8B; margin-bottom: .6rem;
  letter-spacing: .01em;
}
.aio-q::before { content: "🔍 "; font-size: .78rem; }
.aio-text { font-size: .9rem; line-height: 1.65; }
.aio-text mark { background: rgba(138,180,248,.22); color: #CFE0FD; border-radius: 4px; padding: .05em .3em; }
.aio-text { margin-bottom: 1rem; }
.aio-src {
  display: block; position: relative; text-decoration: none;
  background: rgba(246,239,228,.06); border: 1px solid rgba(246,239,228,.16);
  border-radius: 14px; padding: .85rem 2.4rem .85rem 1rem; margin-top: auto;
}
a.aio-src { transition: background .18s ease, border-color .18s ease; }
a.aio-src:hover { background: rgba(246,239,228,.11); border-color: rgba(246,239,228,.3); }
.aio-src-title { display: block; font-weight: 650; font-size: .9rem; color: #FDFAF4; line-height: 1.4; }
.aio-src-meta { display: block; font-size: .77rem; color: #A99D8B; margin-top: .3rem; }
.aio-src-meta b { color: #6FD3A7; font-weight: 650; }
.aio-arrow { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: #F2848F; font-size: 1.05rem; }
.aio-nda { font-size: .78rem; color: #8D8271; margin-top: 1.3rem; font-style: italic; }

.blur {
  filter: blur(5px); user-select: none; pointer-events: none;
  opacity: .9;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.service {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.5rem;
  transition: transform .22s ease, box-shadow .22s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.s-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-deep); margin-bottom: 1.1rem;
}
.s-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-family: var(--font-text); font-size: 1.08rem; font-weight: 700; margin-bottom: .7rem; letter-spacing: -.01em; }
.service ul { display: grid; gap: .38rem; }
.service li { font-size: .9rem; color: var(--ink-2); display: flex; gap: .55rem; }
.service li::before { content: "—"; color: var(--accent); flex: none; }

.service-wide {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 1.5rem clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  background: linear-gradient(135deg, #fff 55%, #FDF3EE);
}
.service-wide .sw-left h3 { font-size: 1.25rem; }
.service-wide .sw-left p { font-size: .95rem; color: var(--ink-2); max-width: 44ch; }
.service-wide ul { gap: .55rem; }
.also { margin-top: 1.8rem; font-size: .88rem; color: var(--ink-2); }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4rem; margin-top: 2.4rem; list-style: none; }
.steps li { position: relative; padding-top: .4rem; }
.step-n {
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: 2.4rem; color: var(--accent); line-height: 1; display: block; margin-bottom: .8rem;
}
.steps h3 { font-family: var(--font-text); font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.steps p { font-size: .88rem; color: var(--ink-2); }

/* ---------- samples ---------- */
.samples { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.sample {
  display: flex; flex-direction: column; gap: .8rem; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.4rem;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.sample:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.sample-tags { display: flex; gap: .5rem; flex-wrap: wrap; }
.sample h3 { font-size: 1.35rem; line-height: 1.25; }
.sample p { font-size: .92rem; color: var(--ink-2); }
.sample-meta { margin-top: auto; font-size: .82rem; font-weight: 650; color: var(--accent-deep); display: flex; align-items: center; gap: .4rem; }
.sample-meta i { font-style: normal; transition: transform .18s ease; }
.sample:hover .sample-meta i { transform: translate(2px, -2px); }

.authored { margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.authored h3 { font-family: var(--font-text); font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 1rem; }
.authored .note { margin-top: 1.4rem; font-size: .86rem; color: var(--ink-2); font-style: italic; }
.authored.toolbox-block { margin-top: 1.9rem; padding-top: 0; border-top: 0; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #F7DCD6, #EFC9C9 60%, #E7B8C2);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.monogram {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: clamp(5rem, 12vw, 8.5rem); color: var(--accent-deep); opacity: .85;
}
.portrait-caption { margin-top: 1rem; font-size: .84rem; color: var(--ink-2); text-align: center; }
.about-copy p + p { margin-top: 1rem; }
.about-copy > p { max-width: 58ch; color: var(--ink-2); }
.about-copy > p strong { color: var(--ink); }

.facts { margin: 1.8rem 0; display: grid; gap: .9rem; }
.facts > div { display: grid; grid-template-columns: 190px 1fr; gap: 1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); padding-top: .15rem; }
.facts dd { font-size: .95rem; }

/* ---------- contact ---------- */
.contact-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); text-align: center;
  padding: clamp(2.6rem, 6vw, 4.5rem) clamp(1.4rem, 5vw, 4rem);
}
.contact-card h2 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); }
.contact-lede { color: var(--ink-2); max-width: 52ch; margin: .9rem auto 2rem; }
.contact-ctas { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.contact-hook { margin-top: 1.4rem; font-size: .9rem; color: var(--ink-2); }
.profiles { display: flex; gap: 1.6rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.profiles a { font-weight: 650; font-size: .92rem; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--accent-soft); padding-bottom: 2px; transition: border-color .18s ease; }
.profiles a:hover { border-color: var(--accent); }
.contact-meta { margin-top: 1.6rem; font-size: .85rem; color: var(--ink-2); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2.2rem 0 2.6rem; }
.footer-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer p { font-size: .84rem; color: var(--ink-2); }
.footer-joke { font-style: italic; }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 80px); z-index: 150;
  background: var(--ink); color: #fff; font-size: .9rem; font-weight: 600;
  padding: .75rem 1.4rem; border-radius: 999px; box-shadow: var(--shadow-lg);
  opacity: 0; transition: transform .3s cubic-bezier(.2,.9,.3,1.2), opacity .3s ease;
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease var(--d, 0s), transform .65s cubic-bezier(.2,.7,.2,1) var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .chip-1, .chip-2 { animation: none; }
  .progress { display: none; }
}

/* ============================================================
   Subpages: service pages, case studies, blog
   ============================================================ */
.page-hero { padding: clamp(2.8rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.breadcrumbs { font-size: .8rem; color: var(--ink-2); display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-deep); }
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.3rem); max-width: 26ch; }
.page-hero .lede { font-size: 1.1rem; color: var(--ink-2); max-width: 62ch; margin-top: 1.2rem; }
.page-hero .lede strong { color: var(--ink); }
.hero-ctas.compact { margin-top: 1.6rem; }

.prose { max-width: 740px; }
.prose h2 { margin: 2.6rem 0 1rem; font-size: clamp(1.55rem, 2.6vw, 2.05rem); }
.prose h3 { font-family: var(--font-text); font-weight: 700; font-size: 1.08rem; margin: 1.9rem 0 .6rem; }
.prose p { margin: .9rem 0; color: #4A4237; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { margin: .9rem 0 .9rem 1.3rem; color: #4A4237; display: block; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: .4rem 0; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2.5px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--accent); }

.prose table, .cmp-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .92rem; background: var(--card); border: 1px solid var(--line); }
.prose th, .cmp-table th { text-align: left; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); background: var(--paper-2); padding: .7rem .9rem; }
.prose td, .cmp-table td { padding: .75rem .9rem; border-top: 1px solid var(--line); vertical-align: top; color: #4A4237; }
.prose td b { color: var(--ink); }

.callout {
  background: var(--card); border-left: 4px solid var(--accent);
  padding: 1.1rem 1.3rem; border-radius: 0 14px 14px 0; margin: 1.5rem 0;
  box-shadow: var(--shadow);
}
.callout p { margin: 0; }
.callout p + p { margin-top: .6rem; }

/* FAQ accordions (used with FAQPage schema) */
.faq { max-width: 740px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.25rem; margin-bottom: .7rem; }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: .7rem; color: var(--ink-2); font-size: .95rem; }

/* case studies */
.study { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3.5vw, 2.5rem); margin-bottom: 1.4rem; }
.study .tag { margin-bottom: .9rem; }
.study h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .8rem; }
.study-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 1.4rem; }
.study-grid h3 { font-family: var(--font-text); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: .5rem; }
.study-grid p { font-size: .92rem; color: var(--ink-2); }
.study-result { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.2rem; }

/* blog */
.blog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.post-meta { font-size: .85rem; color: var(--ink-2); display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.1rem; }
.author-box { display: flex; gap: 1rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.3rem; margin-top: 2.8rem; max-width: 740px; }
.author-box img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.author-box p { font-size: .88rem; color: var(--ink-2); margin: 0; }
.author-box b { display: block; font-size: .95rem; color: var(--ink); }

/* end-of-page CTA */
.cta-panel { background: var(--dark); color: var(--cream); border-radius: var(--radius-lg); padding: clamp(2rem, 4.5vw, 3.2rem); text-align: center; margin-top: 3rem; }
.cta-panel h2 { color: #FDFAF4; }
.cta-panel h2 em { color: #F2848F; }
.cta-panel p { color: #CDC3B4; max-width: 56ch; margin: .8rem auto 1.5rem; }

.service-link { display: inline-block; margin-top: .9rem; font-size: .86rem; font-weight: 650; color: var(--accent-deep); text-decoration: none; }
.service-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; justify-content: center; margin-top: .4rem; }
.footer-links a { font-size: .82rem; color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--accent-deep); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .cases { grid-template-columns: 1fr 1fr; }
  .case.featured { grid-column: span 2; }
  .services { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 2.2rem; }
  .more-grid { columns: 2; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; margin-top: 1.4rem; padding-bottom: 2.2rem; }
  .proof-back { top: auto; bottom: -18px; }
  .service-wide { grid-template-columns: 1fr; }
  .aio-grid { grid-template-columns: 1fr; }
  .client-groups { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .portrait-col { max-width: 380px; }
  .samples { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .study-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: grid; place-items: center; gap: 5px;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
    background: var(--card); cursor: pointer; padding: 13px 11px;
  }
  .nav-toggle span { display: block; width: 100%; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
  .open .nav-toggle span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
  .open .nav-toggle span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .6rem 1.4rem 1.4rem;
  }
  .open .site-nav { display: flex; }
  .site-nav a:not(.btn) { padding: .85rem .2rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 1rem; justify-content: center; }

  .cases, .services { grid-template-columns: 1fr; }
  .case.featured { grid-column: auto; }
  .steps { grid-template-columns: 1fr; gap: 1.8rem; }
  .more-grid { columns: 1; }
  .facts > div { grid-template-columns: 1fr; gap: .2rem; }
  .footer-wrap { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-stats { gap: 1.2rem; }
  .proof-main { width: 100%; }
  .chip-2 { display: none; }
  .contact-ctas .btn { width: 100%; justify-content: center; }
}

/* ============ Services nav dropdown ============ */
.nav-item { position: relative; }
.nav-item > a .caret { display: inline-block; margin-left: .3em; font-size: .62em; opacity: .55; transform: translateY(-1px); }
.nav-sub {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 250px; padding-top: .6rem; display: none; z-index: 60;
}
.nav-sub-inner {
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: .5rem; overflow: hidden;
}
.nav-item:hover .nav-sub, .nav-item:focus-within .nav-sub { display: block; }
.site-nav .nav-sub a:not(.btn) { padding: .55rem .8rem; border-radius: 9px; font-size: .92rem; border-bottom: 0; }
.site-nav .nav-sub a:not(.btn):hover { background: var(--paper-2); }

/* ============ Real metric screenshots ============ */
.case-shot {
  display: block; width: 100%; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; padding: .45rem; margin: .2rem 0 .95rem;
}
.case-shot img { display: block; width: 100%; height: auto; border-radius: 8px; }
.proof-card .case-shot { margin: .5rem 0 .6rem; }

/* ============ Toolbox groups ============ */
.toolbox-groups { display: grid; gap: 1.05rem; margin-top: 1rem; }
.toolbox-groups h4 {
  font-family: var(--font-text); font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em; color: var(--ink-2); margin-bottom: .5rem;
}

@media (max-width: 760px) {
  .nav-sub { position: static; display: block; transform: none; padding-top: 0; }
  .nav-sub-inner { border: 0; box-shadow: none; background: transparent; padding: 0 0 0 .9rem; }
  .site-nav .nav-sub a:not(.btn) { border-bottom: 1px solid var(--line); border-radius: 0; padding: .7rem .2rem; font-size: .98rem; }
  .nav-item > a .caret { display: none; }
}
