/* ==========================================================================
   Riberson Studio — stylesheet
   Design system per docs/06-design-direction.md
   ========================================================================== */

:root {
  --ink: #14161b;
  --ink-soft: #20232c;
  --paper: #fbf9f6;
  --surface: #ffffff;
  --brand: #2e5bff;
  --brand-ink: #1e3fb8;
  --brand-tint: #eaefff;
  --muted: #5b6170;
  --muted-on-dark: #aab0c0;
  --line: #e8e2d9;
  --line-on-dark: #343845;
  --gold: #c8a24b;

  --container: 1200px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(20, 22, 27, .06), 0 4px 12px rgba(20, 22, 27, .05);
  --shadow-md: 0 8px 30px rgba(20, 22, 27, .10);
  --shadow-brand: 0 12px 30px rgba(46, 91, 255, .28);

  /* One typeface, top to bottom — swap the family here to retheme the whole site */
  --font-display: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

/* ---------- type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.6rem, 5.5vw, 4.25rem); }
h2 { font-size: clamp(2rem, 4vw, 2.85rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); font-weight: 600; }
p { color: var(--ink); }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--muted); line-height: 1.55; }
.eyebrow {
  font-family: var(--font-body);
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand);
}
.muted { color: var(--muted); }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { display: block; margin-bottom: 16px; }
.section-head p { margin-top: 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .98rem; line-height: 1;
  transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
  white-space: nowrap;
}
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-ink); transform: translateY(-2px); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn-ghost { color: var(--brand); padding-inline: 4px; }
.btn-ghost:hover { color: var(--brand-ink); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 17px 32px; font-size: 1.05rem; }
.on-dark.btn-outline { border-color: rgba(255,255,255,.4); color: #fff; }
.on-dark.btn-outline:hover { background: #fff; color: var(--ink); }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; font-weight: 600;
  padding: 12px 20px; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  isolation: isolate;
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; color: var(--ink); }
.brand .mark { width: 30px; height: 30px; color: #6f8bff; flex: none; }
.brand .tm { font-size: 0.95rem; font-weight: 700; color: var(--brand); align-self: center; transform: translateY(-0.35em); margin-left: 2px; font-family: var(--font-body); }
.site-footer .brand .tm, .site-footer .tm { color: #fff; }
.brand-logo { height: 58px; width: auto; display: block; }
@media (max-width: 520px) { .brand-logo { height: 46px; } }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 9px 14px; border-radius: 999px; font-size: .96rem; font-weight: 500; color: var(--ink); transition: background .15s var(--ease), color .15s var(--ease); }
.nav-links a:hover { background: var(--brand-tint); color: var(--brand-ink); }
.nav-links a.active { color: var(--brand); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-mobile-cta { display: none; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(56px, 8vw, 110px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 32px; max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-trust { margin-top: 28px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .92rem; }
.hero-trust .dots { display: flex; }
.hero-trust .dots span { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-tint); border: 2px solid var(--paper); margin-left: -8px; display: grid; place-items: center; color: var(--brand-ink); font-size: .7rem; font-weight: 700; }
.hero-trust .dots span:first-child { margin-left: 0; }

/* hero visual (pure CSS/SVG browser mock) */
.hero-visual { position: relative; }
.browser {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); overflow: hidden;
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); display: block; }
.browser-bar .url { margin-left: 12px; flex: 1; height: 22px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.browser-body { padding: 22px; background: linear-gradient(180deg, #fff, #fbfbfd); }
.skeleton { border-radius: 8px; background: var(--brand-tint); }
.sk-hero { height: 70px; margin-bottom: 16px; background: linear-gradient(110deg, var(--brand), #6f8bff); }
.sk-line { height: 12px; background: var(--line); margin-bottom: 10px; }
.sk-line.w70 { width: 70%; } .sk-line.w50 { width: 50%; } .sk-line.w90 { width: 90%; }
.sk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.sk-card { height: 84px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.sk-card.feature { border-color: var(--brand); box-shadow: 0 6px 16px rgba(46,91,255,.18); }
.hero-badge {
  position: absolute; bottom: -18px; left: -18px; background: var(--ink); color: #fff;
  padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow-md); font-size: .85rem; font-weight: 600;
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
}
.hero-badge b { color: #8fe3b0; }

/* ---------- trust strip ---------- */
.trust-strip { padding: 36px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-strip .container { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 5vw, 64px); flex-wrap: wrap; }
.trust-strip .label { color: var(--muted); font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.trust-logo { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--muted); opacity: .65; }

/* ---------- generic grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #dcd5ca; }
.card .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-tint); color: var(--brand-ink); display: grid; place-items: center; margin-bottom: 18px; }
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); }

/* teaser cards (home "what I do") */
.teaser { display: flex; flex-direction: column; }
.teaser .tier-tag { font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--brand); margin-bottom: 6px; }
.teaser .price { margin-top: auto; padding-top: 16px; font-weight: 600; color: var(--ink); }
.teaser .price span { color: var(--muted); font-weight: 400; font-size: .9rem; }

/* ---------- process ---------- */
.process { counter-reset: step; }
.step { position: relative; }
.step .num {
  width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; margin-bottom: 18px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); }

/* ---------- value props (icon list) ---------- */
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature .ico { flex: none; }

/* ---------- dark sections ---------- */
.dark { background: var(--ink); color: #fff; }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark p, .dark .lead { color: var(--muted-on-dark); }
.dark .eyebrow { color: #8fa6ff; }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat .n { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 600; color: #fff; line-height: 1; }
.stat .l { color: var(--muted-on-dark); margin-top: 10px; }

/* testimonials */
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.quote .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 14px; }
.quote blockquote { font-size: 1.08rem; line-height: 1.55; }
.quote .who { margin-top: 20px; display: flex; align-items: center; gap: 12px; }
.quote .who .av { width: 42px; height: 42px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; }
.quote .who .name { font-weight: 600; font-size: .95rem; }
.quote .who .role { color: var(--muted); font-size: .85rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .inner { max-width: 720px; margin: 0 auto; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band .actions { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- pricing / service cards ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.tier {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; display: flex; flex-direction: column; position: relative;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.tier:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tier.popular { border: 2px solid var(--brand); box-shadow: var(--shadow-brand); }
.tier .badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  padding: 6px 16px; border-radius: 999px; white-space: nowrap;
}
.tier .name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.tier .tagline { color: var(--muted); margin-top: 4px; }
.tier .price { margin: 22px 0 4px; font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; }
.tier .price small { font-size: .95rem; color: var(--muted); font-weight: 400; font-family: var(--font-body); }
.tier .range { color: var(--muted); font-size: .88rem; }
.tier .who { margin: 18px 0; padding: 14px 16px; background: var(--paper); border-radius: 12px; font-size: .92rem; }
.tier .who b { color: var(--ink); }
.tier ul.includes { display: flex; flex-direction: column; gap: 11px; margin: 8px 0 26px; }
.tier ul.includes li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--ink); }
.tier ul.includes li svg { width: 20px; height: 20px; color: var(--brand); flex: none; margin-top: 1px; }
.tier .foot { margin-top: auto; }

/* gold accent for flagship */
.tier.flagship .name { color: var(--ink); }
.tier.flagship .price { color: var(--ink); }

/* ---------- comparison table ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
table.compare th, table.compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
table.compare thead th { font-family: var(--font-display); font-size: 1.05rem; background: var(--paper); }
table.compare thead th.hl { color: var(--brand); }
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare td.tick { color: var(--brand); font-weight: 600; }
table.compare td.dash { color: var(--muted); }
table.compare th[scope="row"] { font-weight: 600; color: var(--ink); }

/* ---------- care plans ---------- */
.care { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.care .plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.care .plan .price { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; margin: 6px 0 16px; }
.care .plan .price small { font-size: .9rem; color: var(--muted); font-family: var(--font-body); }
.care .plan ul { display: flex; flex-direction: column; gap: 9px; }
.care .plan li { display: flex; gap: 9px; font-size: .93rem; color: var(--muted); }
.care .plan li svg { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 3px; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
details.qa { border-bottom: 1px solid var(--line); padding: 4px 0; }
details.qa summary {
  list-style: none; cursor: pointer; padding: 20px 4px; font-weight: 600; font-size: 1.08rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary .plus { flex: none; width: 24px; height: 24px; position: relative; transition: transform .2s var(--ease); }
details.qa summary .plus::before, details.qa summary .plus::after { content: ""; position: absolute; background: var(--brand); border-radius: 2px; }
details.qa summary .plus::before { top: 11px; left: 3px; right: 3px; height: 2px; }
details.qa summary .plus::after { left: 11px; top: 3px; bottom: 3px; width: 2px; transition: transform .2s var(--ease); }
details.qa[open] summary .plus::after { transform: scaleY(0); }
details.qa .a { padding: 0 4px 22px; color: var(--muted); max-width: 70ch; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); text-align: center; }
.page-hero .eyebrow { display: block; margin-bottom: 16px; }
.page-hero p { max-width: 620px; margin: 18px auto 0; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.portrait {
  aspect-ratio: 4/5; border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--brand-tint), #fff);
  border: 1px solid var(--line); display: grid; place-items: center; position: sticky; top: 100px; overflow: hidden;
}
.portrait .ph { text-align: center; color: var(--muted); padding: 24px; }
.portrait .ph svg { width: 80px; height: 80px; color: var(--brand); margin: 0 auto 12px; opacity: .5; }
.prose p { margin-bottom: 18px; max-width: 65ch; }
.principles { margin-top: 36px; display: grid; gap: 14px; }
.principles li { display: flex; gap: 14px; align-items: flex-start; }
.principles li svg { width: 22px; height: 22px; color: var(--brand); flex: none; margin-top: 3px; }
.principles li b { display: block; }

/* ---------- work / portfolio ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.work-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.work-thumb { aspect-ratio: 16/10; background: linear-gradient(140deg, var(--brand), #7d96ff); position: relative; display: grid; place-items: center; }
.work-thumb.alt { background: linear-gradient(140deg, #1b1e27, #3a3f52); }
.work-thumb.alt2 { background: linear-gradient(140deg, var(--gold), #e0c376); }
.work-thumb .tag { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.92); color: var(--ink); font-size: .78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.work-thumb .ph { color: rgba(255,255,255,.85); font-family: var(--font-display); font-size: 1.4rem; }
.work-meta { padding: 24px; }
.work-meta h3 { margin-bottom: 6px; }
.work-meta .result { color: var(--brand-ink); font-weight: 600; font-size: .92rem; margin-top: 10px; }

/* ---------- forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-single { max-width: 620px; margin: 0 auto; display: grid; gap: 28px; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--paper); font: inherit; color: var(--ink); transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); background: #fff;
}
.field textarea { min-height: 130px; resize: vertical; }
.field .opt { color: var(--muted); font-weight: 400; }
.contact-aside .next { display: flex; flex-direction: column; gap: 20px; margin: 28px 0; }
.contact-aside .next li { display: flex; gap: 14px; align-items: flex-start; }
.contact-aside .next .n { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; flex: none; }
.reassure { display: flex; gap: 10px; align-items: flex-start; padding: 16px; background: var(--brand-tint); border-radius: 12px; font-size: .92rem; color: var(--brand-ink); margin-top: 8px; }
.reassure svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.callout-call { margin-top: 26px; padding: 22px; border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .tagline { color: var(--muted-on-dark); max-width: 32ch; font-size: .95rem; }
.footer-col h4 { font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-on-dark); margin-bottom: 16px; }
.footer-col a { display: block; color: #d7dae2; padding: 6px 0; font-size: .95rem; transition: color .15s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-on-dark); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted-on-dark); font-size: .88rem; }
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: #fff; }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-on-dark); display: grid; place-items: center; color: #fff; }
.socials a:hover { background: var(--brand); border-color: var(--brand); }
.socials svg { width: 18px; height: 18px; }

/* ---------- legal pages ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: 1.5rem; margin: 36px 0 12px; }
.legal h3 { margin: 24px 0 8px; font-size: 1.15rem; }
.legal p { margin-bottom: 16px; color: var(--muted); }
.legal ul { list-style: disc; padding-left: 1.25rem; margin: 0 0 18px; }
.legal li { margin-bottom: 8px; color: var(--muted); }
.legal a { color: var(--brand); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 520px; margin-inline: auto; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .portrait { position: static; max-width: 360px; margin-inline: auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 820px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.menu-open .nav-links {
    display: flex; position: absolute; top: 80px; left: 0; right: 0; flex-direction: column;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px; gap: 4px; box-shadow: var(--shadow-md);
  }
  .site-header.menu-open .nav-links a { padding: 14px; border-radius: 12px; }
  .site-header.menu-open .nav-links .nav-mobile-cta { display: block; text-align: center; background: var(--brand); color: #fff; font-weight: 600; margin-top: 6px; }
  .grid-3, .grid-4, .tiers, .stats, .care, .work-grid, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .tier.popular { order: -1; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-band .actions .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* hide the decorative hero illustration on phones — keep the hero focused on copy + CTA */
@media (max-width: 640px) {
  .hero-visual { display: none; }
  .hero { padding-bottom: clamp(40px, 6vw, 64px); }
}

/* ---------- motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
