/* ===== Light theme =====
   Warm off-white page, Fraunces headings, Plus Jakarta Sans text, rounded cards, one deep
   brand-colored contact panel. Colors come from the tokens the layout writes above this. */
:root {
  --serif: "Fraunces", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 20px;
  --shadow: 0 18px 40px -18px rgba(28, 42, 43, 0.25);
  --shadow-lg: 0 30px 60px -28px rgba(28, 42, 43, 0.35);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--text); font: 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; line-height: 1.12; margin: 0; color: var(--ink); }
p { margin: 0; }
ul { margin: 0; }
.container { width: min(1180px, 100% - 48px); margin: 0 auto; }
.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; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 2000; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; transition: top .2s ease; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 99px; border: 0; cursor: pointer; font: 600 16px/1.2 var(--sans); text-decoration: none; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand); color: var(--white); box-shadow: 0 10px 24px -10px rgba(var(--brand-rgb), .7); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-ghost { color: var(--brand); padding: 0 8px; font-weight: 700; }
.btn-ghost:hover { text-decoration: underline; text-underline-offset: 5px; }
.btn-light { background: var(--white); color: var(--brand-dark); }
.btn-light:hover { transform: translateY(-1px); }
.btn-full { width: 100%; }
.text-link { color: var(--brand); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* header: fixed, light, a soft line once the page scrolls */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s ease, box-shadow .3s ease; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0, 0, 0, .25); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 23px; letter-spacing: -0.01em; color: var(--ink); line-height: 1.1; }
.logo span { font-style: italic; font-weight: 500; color: var(--brand); margin-left: .25em; }
.logo img { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--text-soft); }
.nav-links a:hover { color: var(--ink); }
.nav-links a.nav-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 99px; background: var(--brand); color: var(--white); font-weight: 600; white-space: nowrap; }
.nav-links a.nav-cta:hover { background: var(--brand-dark); color: var(--white); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* hero */
.hero { position: relative; padding: calc(var(--header-h, 76px) + 48px) 0 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hero-tag { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--text-soft); }
.hero-tag b { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 99px; background: var(--brand-tint); color: var(--brand); }
.hero-tag b svg { width: 14px; height: 14px; }
.hero h1 { font-size: clamp(44px, 5.4vw, 74px); margin: 22px 0 22px; }
.hero h1 > em { font-style: italic; font-weight: 500; }
.mark { position: relative; z-index: 0; font-style: italic; font-weight: 500; }
.mark::after { content: ""; position: absolute; left: -4px; right: -6px; bottom: .08em; height: .3em; background: var(--highlight); border-radius: 6px; z-index: -1; transform: rotate(-1deg); }
.hero h1 .line2 { display: block; color: var(--text-soft); font-size: .5em; font-weight: 500; margin-top: 14px; letter-spacing: -0.01em; line-height: 1.2; }
.hero h1 .line2.is-accent { font-style: italic; color: var(--brand); }
.hero-sub { font-size: 19px; color: var(--text-soft); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 32px; }
.hero-area { display: flex; align-items: center; gap: 8px; margin-top: 26px; font-size: 15px; font-weight: 500; color: var(--text-soft); }
.hero-area svg { width: 16px; height: 16px; color: var(--brand); flex: none; }
.hero-art { position: relative; justify-self: center; width: min(460px, 100%, calc((100vh - 200px) * .8)); }
.hero-blob { position: absolute; inset: 8% -6% -4% 6%; background: var(--blob); border-radius: 48% 52% 44% 56% / 52% 46% 54% 48%; }
.portrait { position: relative; border-radius: 240px 240px 28px 28px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); background: var(--page-2); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.float { position: absolute; z-index: 2; background: var(--card); border-radius: 16px; box-shadow: 0 16px 36px -14px rgba(28, 42, 43, .35); padding: 13px 16px; display: flex; gap: 12px; align-items: center; font-size: 14px; line-height: 1.35; max-width: 250px; }
.float-ico { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); }
.float-ico svg { width: 20px; height: 20px; }
.float strong { display: block; font-size: 15px; color: var(--ink); }
.float span { color: var(--text-soft); }
.float-1 { left: -38px; bottom: 15%; }
.float-2 { right: -30px; bottom: 3%; }

/* trust points band */
.proof { padding: 8px 0 72px; }
.proof-card { list-style: none; padding: 26px 32px; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 28px; display: flex; flex-wrap: wrap; justify-content: space-around; gap: 18px 32px; }
.proof-card li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); }
.proof-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); }
.proof-ico svg { width: 20px; height: 20px; }

/* sections */
section { scroll-margin-top: 90px; }
.sec { padding: 96px 0; }
.sec.alt { background: var(--card); }
.kicker a { padding-block: 5px; margin-block: -5px; }
.kicker { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.sec-head { max-width: 680px; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(34px, 4vw, 50px); margin: 12px 0 16px; }
.sec-head h2 em, .about h2 em, .x-head h2 em { font-style: italic; font-weight: 500; color: var(--brand); }
.sec-head p { color: var(--text-soft); font-size: 18px; }
.sec-head.center { text-align: center; margin-left: auto; margin-right: auto; }

/* services */
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.service-card { background: var(--page); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: start; gap: 8px 20px; transition: box-shadow .25s ease, transform .25s ease; }
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.service-ico { grid-row: span 3; width: 54px; height: 54px; border-radius: 16px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.service-ico svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 23px; }
.service-card p { color: var(--text-soft); }
.service-link { justify-self: start; font-weight: 700; color: var(--brand); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; margin-top: 4px; }
.service-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.service-link svg { width: 16px; height: 16px; }
.services-cta { margin-top: 32px; text-align: center; color: var(--text-soft); }
.services-cta a { color: var(--brand); font-weight: 700; }

/* about */
.about-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.about-photo img { border-radius: 28px; aspect-ratio: 4 / 4.6; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.about h2 { font-size: clamp(32px, 3.6vw, 46px); margin: 12px 0 20px; }
.about-content p { color: var(--text-soft); font-size: 18px; }
.about-content p + p { margin-top: 16px; }
.about-content .about-lead { color: var(--text); font-size: 19px; font-weight: 500; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-soft); }
.checks li strong { color: var(--ink); }
.checks svg { flex: none; width: 22px; height: 22px; color: var(--brand); margin-top: 3px; }
.about-content p.sign { margin-top: 28px; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--brand-dark); }

/* testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.testimonial { position: relative; margin: 0; background: var(--page); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.quote-mark svg { width: 30px; height: 30px; color: var(--brand); opacity: .55; }
.testimonial blockquote { margin: 0; font-size: 18px; line-height: 1.65; color: var(--text); }
.who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar { flex: none; width: 46px; height: 46px; border-radius: 99px; display: grid; place-items: center; font-weight: 700; color: var(--brand-dark); background: var(--brand-tint); }
.who strong { display: block; font-size: 16px; color: var(--ink); }
.who span span { display: block; font-size: 14px; color: var(--text-soft); }
.sample-tag { display: none; }

/* faq */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 0 24px; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 22px 0; font-weight: 700; font-size: 18px; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; flex: none; width: 22px; height: 22px; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px; border-radius: 2px; background: var(--brand); transition: transform .2s ease; }
.faq-plus::after { transform: rotate(90deg); }
.faq-item[open] .faq-plus::after { transform: rotate(0deg); }
.faq-item p { padding: 0 0 22px; color: var(--text-soft); }

/* contact panel */
.contact { padding: 24px 0 96px; scroll-margin-top: 90px; }
.contact-card { position: relative; overflow: hidden; background: var(--brand-dark); color: var(--white); border-radius: 32px; padding: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.contact-card.solo { grid-template-columns: minmax(0, 1fr); text-align: left; }
.contact-card::before { content: ""; position: absolute; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .14), transparent 65%); right: -140px; top: -160px; pointer-events: none; }
.contact-text { position: relative; }
.contact-text .kicker { color: var(--white); opacity: .9; }
.contact-card h2 { font-size: clamp(32px, 3.6vw, 46px); color: var(--white); margin-top: 8px; }
.contact-text > p { color: rgba(255, 255, 255, .9); font-size: 18px; margin-top: 14px; }
.contact-details { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.contact-details li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.contact-details svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.contact-details a { color: var(--white); text-decoration: none; overflow-wrap: anywhere; }
.contact-details a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-book { margin-top: 28px; }
.contact-form-wrap { position: relative; background: var(--card); color: var(--text); border-radius: 24px; padding: 30px; box-shadow: var(--shadow-lg); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.optional { font-weight: 500; color: var(--text-soft); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--page); color: var(--text); font: 16px/1.4 var(--sans); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .15); }
.form-status { margin-top: 12px; text-align: center; font-weight: 700; color: var(--brand-dark); }
.form-status:empty { margin: 0; }
.form-note { margin-top: 12px; font-size: 14px; color: var(--text-soft); text-align: center; }
.form-note a { color: var(--brand); font-weight: 600; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 52px 0 36px; font-size: 15px; color: var(--text-soft); background: var(--page); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-start; }
.footer-brand p { margin-top: 12px; max-width: 360px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a, .footer-legal a { text-decoration: none; color: var(--text-soft); }
.footer-nav a:hover, .footer-legal a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; }

/* legal pages and 404 */
.legal { padding: calc(var(--header-h, 76px) + 64px) 0 88px; }
.legal-inner { max-width: 780px; }
.legal h1 { font-size: clamp(36px, 4.4vw, 52px); margin: 12px 0 8px; }
.legal-date { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 36px; }
.legal h2 { font-size: 26px; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--text-soft); line-height: 1.8; margin-bottom: 14px; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal a { color: var(--brand); font-weight: 600; }

/* blog index */
.blog { padding: calc(var(--header-h, 76px) + 64px) 0 96px; }
.blog-head { max-width: 680px; margin-bottom: 44px; }
.blog-head h1 { font-size: clamp(38px, 4.6vw, 56px); margin: 12px 0 14px; }
.blog-head p { color: var(--text-soft); font-size: 18px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.post-card { display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-decoration: none; transition: box-shadow .25s ease, transform .25s ease; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card h2 { font-size: 24px; }
.post-card p { color: var(--text-soft); }
.post-card .text-link { margin-top: auto; }
.post-meta { font-size: 14px; font-weight: 600; color: var(--text-soft); }

/* post page */
.post { padding: calc(var(--header-h, 76px) + 56px) 0 96px; }
.post-inner { max-width: 760px; }
.post-inner .kicker a { color: var(--brand); text-decoration: none; }
.post-inner h1 { font-size: clamp(36px, 4.4vw, 52px); margin: 12px 0 14px; }
.post-body { margin-top: 32px; font-size: 18px; line-height: 1.8; color: var(--text); }
.post-body h2 { font-size: 30px; margin: 40px 0 14px; }
.post-body h3 { font-size: 23px; margin: 32px 0 10px; }
.post-body p, .post-body ul, .post-body ol { margin: 0 0 18px; }
.post-body li { margin-bottom: 8px; }
.post-body a { color: var(--brand); font-weight: 600; }
.post-body blockquote { margin: 26px 0; padding: 18px 24px; border-radius: 16px; background: var(--brand-tint); color: var(--ink); border-left: 4px solid var(--brand); }
.post-cta { margin-top: 48px; padding: 36px; border-radius: 24px; background: var(--brand-dark); color: var(--white); }
.post-cta h2 { color: var(--white); font-size: 30px; }
.post-cta p { color: rgba(255, 255, 255, .9); margin: 10px 0 22px; }
.post-cta .btn-primary { background: var(--white); color: var(--brand-dark); box-shadow: none; }
.post-more { margin-top: 48px; }
.post-more h2 { font-size: 24px; margin-bottom: 12px; }
.post-more ul { padding-left: 20px; }
.post-more li { margin-bottom: 8px; }
.post-more a { color: var(--brand); font-weight: 600; }

/* entrance and scroll-in motion (site.js adds .visible and .revealed) */
.fade-up { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.fade-up.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; } .delay-2 { transition-delay: .16s; } .delay-3 { transition-delay: .24s; }
.reveal, .reveal-left, .reveal-right { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.revealed, .reveal-left.revealed, .reveal-right.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up, .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; transition: none; }
  .btn, .service-card, .post-card, .faq-plus::before, .faq-plus::after { transition: none; }
}

/* tablets */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero-art { width: min(420px, 82%); }
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .about-photo { max-width: 520px; }
  .contact-card { grid-template-columns: minmax(0, 1fr); padding: 48px; }
}
/* phones: the menu folds behind the button */
@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 16px 18px; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden; transition: opacity .3s ease, transform .3s ease, visibility 0s .3s; }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
  .nav-links a { display: block; padding: 12px 6px; font-size: 17px; color: var(--ink); }
  .nav-links a.nav-cta { justify-content: center; margin-top: 8px; padding: 0 20px; }
  .services-grid { grid-template-columns: minmax(0, 1fr); }
  .form-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .container { width: calc(100% - 32px); }
  .hero { padding: calc(var(--header-h, 76px) + 28px) 0 52px; }
  .hero-cta .btn-primary { width: 100%; }
  .float-1 { left: -10px; bottom: 20%; }
  .float-2 { right: -8px; bottom: 3%; }
  .float { padding: 9px 12px; font-size: 13px; max-width: 240px; }
  .float-ico { width: 32px; height: 32px; }
  .proof-card { justify-content: flex-start; padding: 22px; }
  .sec { padding: 72px 0; }
  .service-card { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .service-ico { grid-row: auto; }
  .checks { grid-template-columns: minmax(0, 1fr); }
  .contact-card { padding: 34px 22px; border-radius: 26px; }
  .contact-form-wrap { padding: 22px; }
  .footer-bottom { flex-direction: column; }
}

/* ===== Optional sections, appended to every design by build-assets.mjs =====
   How it works, Pricing, Industries served and the member's own sections (renderer/blocks.mjs).
   One layout for all three designs. The colors, radius and type sizes come from the --x-*
   tokens each design sets beside its brand tokens, and every text and background pair those
   tokens produce is in that design's contrastPairs(). */
.x-sec { padding: 110px 0; background: var(--x-bg); border-top: 1px solid var(--x-border); }
.x-sec p, .x-sec li { color: var(--x-text); overflow-wrap: break-word; }
.x-head { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.x-head h2 { font-size: clamp(2.1rem, 4.6vw, var(--x-h2)); margin: 14px 0 16px; }
.x-sec .x-intro { color: var(--x-muted); font-size: 1.06rem; line-height: 1.75; max-width: 600px; margin: 0 auto; }

.x-grid { display: grid; gap: 26px; list-style: none; margin: 0; padding: 0; }
.x-grid.x-n1 { grid-template-columns: minmax(0, 520px); justify-content: center; }
.x-grid.x-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; margin-left: auto; margin-right: auto; }
.x-grid.x-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.x-grid.x-n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.x-item { position: relative; background: var(--x-card); border: 1px solid var(--x-border); border-radius: var(--x-radius); padding: 34px 28px; }
.x-item h3 { font-size: var(--x-h3); color: var(--x-head); margin: 0 0 10px; overflow-wrap: break-word; }
.x-sec .x-item p { font-size: 0.98rem; line-height: 1.7; margin: 0; }
.x-num {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--x-badge-bg); color: var(--x-badge-fg); font-family: var(--x-sans); font-weight: 800; font-size: 1.05rem;
  letter-spacing: 0; margin-bottom: 18px;
}

/* Pricing */
.x-plan { display: flex; flex-direction: column; }
.x-plan.x-featured { border: 2px solid var(--x-accent); }
.x-badge {
  align-self: flex-start; background: var(--x-badge-bg); color: var(--x-badge-fg); font-family: var(--x-sans);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.x-sec .x-price { margin: 4px 0 14px; color: var(--x-muted); font-size: 0.95rem; }
.x-price strong { display: block; font-family: var(--x-display); font-size: 2.3rem; line-height: 1.15; font-weight: var(--x-price-weight, 600); color: var(--x-head); overflow-wrap: break-word; }
.x-features { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--x-border); display: flex; flex-direction: column; gap: 10px; }
.x-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; line-height: 1.5; }
.x-features svg { flex: none; margin-top: 3px; color: var(--x-accent); }
.x-link { align-self: flex-start; margin-top: auto; padding-top: 24px; font-family: var(--x-sans); font-weight: 700; color: var(--x-accent); text-decoration: underline; text-underline-offset: 4px; }
.x-link:hover { color: var(--x-head); }
.x-sec .x-note { text-align: center; color: var(--x-muted); font-size: 0.95rem; line-height: 1.6; max-width: 640px; margin: 34px auto 0; }

/* The member's own section */
.x-own { max-width: 780px; margin: 0 auto; }
.x-own.x-has-image { max-width: none; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.x-media img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: var(--x-radius); }
.x-body h2 { font-size: clamp(2rem, 4.2vw, var(--x-h2)); margin: 14px 0 20px; overflow-wrap: break-word; }
.x-body { min-width: 0; }
.x-sec .x-body p { font-size: 1.05rem; line-height: 1.8; margin: 0 0 16px; }
.x-sec .x-body .x-action { margin: 26px 0 0; }
.x-sec .x-placeholder { color: var(--x-muted); font-style: italic; }

@media (max-width: 1024px) {
  .x-grid.x-n3, .x-grid.x-n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .x-own.x-has-image { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 640px) {
  .x-sec { padding: 72px 0; }
  .x-head { margin-bottom: 40px; }
  .x-grid.x-n1, .x-grid.x-n2, .x-grid.x-n3, .x-grid.x-n4 { grid-template-columns: minmax(0, 1fr); }
}

/* Client Login in the menu (every design): the menu's own link style plus a small padlock. */
.nav-links a.nav-login { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.nav-links a.nav-login svg { width: 15px; height: 15px; flex: none; }

/* Numbers band: up to four big figures with a short label each */
.x-sec.x-numbers { padding: 64px 0; }
.x-numbers .x-head { margin-bottom: 36px; }
.x-stats { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 20px; max-width: 1040px; }
.x-stats.x-n1 { grid-template-columns: minmax(0, 320px); justify-content: center; }
.x-stats.x-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 680px; }
.x-stats.x-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.x-stats.x-n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.x-stat { text-align: center; padding: 6px 14px; }
.x-stat + .x-stat { border-left: 1px solid var(--x-border); }
.x-stat strong { display: block; font-family: var(--x-display); font-size: clamp(2.3rem, 4.2vw, 3.1rem); line-height: 1.1; font-weight: var(--x-price-weight, 600); color: var(--x-head); overflow-wrap: anywhere; }
.x-sec .x-stat span { display: block; margin-top: 8px; color: var(--x-muted); font-size: 0.98rem; line-height: 1.45; overflow-wrap: break-word; }
.x-stat strong.x-stat-empty { font-family: var(--x-sans); font-size: 1rem; font-weight: 700; color: var(--x-muted); border: 1px dashed var(--x-border); border-radius: 10px; padding: 12px 8px; }
@media (max-width: 720px) {
  .x-stats.x-n3, .x-stats.x-n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
  .x-stat + .x-stat { border-left: 0; }
}

/* Blog cover photos (every design): on the post's card and at the top of the post */
.post-card-img { display: block; aspect-ratio: 16 / 9; margin: 0 0 18px; border-radius: var(--x-radius); overflow: hidden; background: var(--x-border); }
.post-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-cover { margin: 26px 0 34px; border-radius: var(--x-radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--x-border); }
.post-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ===== First-screen fit, appended to this design by build-assets.mjs =====
   The top of the page must fit the first screen. shared/site.js measures it and, only when it
   would not fit, adds .fit-1 (tighter spacing), then scales the headline, then .fit-2.
   --header-h is the real height of the fixed menu bar. scripts/hero-fit.mjs is the gate. */
.hero.fit-1 { padding-top: calc(var(--header-h, 76px) + 24px); padding-bottom: 32px; }
.hero.fit-1 .hero-grid { gap: 40px; }
.hero.fit-1 h1 { margin: 16px 0 16px; }
.hero.fit-1 .hero-cta { margin-top: 22px; }
.hero.fit-1 .hero-area { margin-top: 16px; }
.hero.fit-1 .hero-art { width: min(400px, 100%, calc((100vh - 140px) * .8)); }
.hero.fit-2 { padding-top: calc(var(--header-h, 76px) + 14px); padding-bottom: 20px; }
.hero.fit-2 h1 { margin: 12px 0 12px; }
.hero.fit-2 .hero-sub { font-size: 17px; }
.hero.fit-2 .hero-cta { margin-top: 16px; }
.hero.fit-2 .hero-area { display: none; }
.hero.fit-2 .hero-art { width: min(360px, 100%, calc((100vh - 110px) * .8)); }

/* The menu folded because it did not fit on one line (see shared/site.js). Same as the phone menu. */
html.nav-collapsed .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
html.nav-collapsed .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 18px; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden; transition: opacity .3s ease, transform .3s ease, visibility 0s .3s; }
html.nav-collapsed .nav-links.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
html.nav-collapsed .nav-links a { display: block; padding: 12px 6px; font-size: 17px; color: var(--ink); }
html.nav-collapsed .nav-links a.nav-cta { justify-content: center; margin-top: 8px; padding: 0 20px; }

/* ===== Reflow guard, appended to every design by build-assets.mjs =====
   WCAG 1.4.10 and 1.4.4: nothing may sit wider than the screen at 320px or at 200% zoom.
   scripts/reflow.mjs is the gate for this. */
html { overflow-x: clip; }

/* Sections that slide in from the side make a phone page wider than its screen until they
   have played, which pushes the menu button off the edge. Wherever the layout is a single
   column they rise into place instead. */
@media (max-width: 1100px) {
  .reveal-left, .reveal-right { transform: translateY(30px); }
  .reveal-left.revealed, .reveal-right.revealed { transform: none; }
}

/* A long email address or pasted link wraps instead of pushing its box wider. */
a[href^="mailto:"], .post-body a, .legal a, .footer-contact a { overflow-wrap: anywhere; }

/* Grid and flex children may shrink below their longest word. */
.contact-grid > *, .contact-inner > *, .contact-card > div, .about-split > *,
.faq-inner > *, .intro-inner > *, .form-row > *, .hero-inner > * { min-width: 0; }

/* A long word in the headline breaks instead of pushing the hero wider than the screen. */
.hero h1, .hero-sub, .hero-tag, .hero-kicker { overflow-wrap: anywhere; }

/* A long practice name wraps onto two lines instead of pushing the menu button off the screen. */
.site-header .nav > .logo { min-width: 0; flex: 0 1 auto; overflow-wrap: anywhere; }
.footer-logo, .footer-logo * { overflow-wrap: anywhere; }
.site-header .nav-toggle { flex: none; }

/* Phones. Buttons with long words wrap instead of running off the screen; form fields are at
   least 16px so an iPhone does not zoom in when one is tapped (scripts/phone.mjs checks both). */
@media (max-width: 768px) {
  .btn, [class*="btn-"], .x-action a { white-space: normal; max-width: 100%; overflow-wrap: break-word; text-align: center; }
}
/* Any touch screen, a phone held sideways or a tablet included. */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea { font-size: max(16px, 1em) !important; }
}

/* Small links get a bigger area to tap without moving anything: the extra padding is taken
   back by a matching negative margin, and inline links ignore both for layout. */
.nav-links a, footer a, .footer a, .service-link, .legal a, .x-link, .section-tag a, .label-tag a, .post-more a { padding-block: 5px; margin-block: -5px; }
.nav-toggle { min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }

/* The open phone menu never runs past the bottom of a short screen. */
.nav-links.open { max-height: calc(100vh - 60px); overflow-y: auto; }

/* On a desktop-width menu bar the logo keeps its natural width (up to about half the bar), so
   a crowded menu folds into the menu button (site.js) instead of squeezing a long practice
   name until a word breaks in the middle. Once folded, the logo may shrink as usual. */
@media (min-width: 769px) {
  html:not(.nav-collapsed) .site-header .logo { flex-shrink: 0; max-width: 46%; }
}
html.nav-measuring .nav-links, html.nav-measuring .nav-links * { transition: none !important; }
