/* ===== Page-specific styles (layered on top of styles.css) ===== */

/* ---- Hero ---- */
.hero { padding: 160px 0 140px; overflow: hidden; position: relative; }
@media (max-width: 960px) { .hero { padding: 130px 0 100px; } }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 80px; align-items: center; position: relative; z-index: 2; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero-copy { max-width: 640px; }
.hero-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.6rem, 6.2vw, 5.2rem); line-height: 1.02; letter-spacing: -0.02em; margin: 24px 0 28px; }
.hero-title em { font-style: italic; font-weight: 400; }
.hero-sub { font-size: 1.12rem; color: var(--fg-dim); max-width: 520px; margin: 0 0 36px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.teal-cursor { color: var(--teal); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-proof { display: flex; gap: 48px; margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.proof-num { font-size: 2.4rem; letter-spacing: -0.02em; }
.countup-wrap { display: inline-flex; align-items: baseline; }
.countup-wrap > span { white-space: nowrap; }
.countup-affix { font: inherit; letter-spacing: inherit; }
.proof-num .countup-wrap > span { font-variant-numeric: tabular-nums; }
.proof-label { display: block; margin-top: 6px; font-size: 0.68rem; }
.hero-ph { position: relative; overflow: hidden; }
.hero-side-overlay { position: absolute; left: 20px; right: 20px; bottom: 20px; background: rgba(10,20,25,0.85); backdrop-filter: blur(14px); border: 1px solid var(--line-strong); border-radius: 16px; padding: 16px 18px; }
.scroll-hint { position: absolute; bottom: 18px; left: 50%; right: auto; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--fg-mute); pointer-events: none; opacity: 0.7; z-index: 2; }
.scroll-line { display: block; width: 1px; height: 48px; background: linear-gradient(var(--teal), transparent); }
@media (max-width: 960px) { .scroll-hint { display: none; } }

/* ---- Guide tabs ---- */
.section-guide { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.guide-tabbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.guide-tab { padding: 14px 22px; border-radius: 999px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); color: var(--fg-dim); font-size: 0.92rem; display: inline-flex; align-items: center; gap: 12px; transition: all .25s var(--ease); }
.guide-tab .mono { font-size: 0.68rem; color: var(--teal); padding: 3px 7px; border: 1px solid rgba(47,193,178,0.3); border-radius: 999px; }
.guide-tab:hover { color: var(--fg); border-color: rgba(47,193,178,0.3); }
.guide-tab.active { background: rgba(47,193,178,0.12); border-color: var(--teal); color: var(--fg); }
.guide-panel { background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; min-height: 500px; }
@media (max-width: 640px) { .guide-panel { padding: 24px; } }

/* ---- BodyMap ---- */
.bodymap { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 48px; align-items: stretch; }
@media (max-width: 860px) { .bodymap { grid-template-columns: 1fr; } }
.bodymap-figure { position: relative; padding: 20px; background: radial-gradient(ellipse at center, rgba(47,193,178,0.08), transparent 70%); border-radius: 20px; min-height: 580px; display: flex; flex-direction: column; }
.bodymap-tag { position: absolute; top: 16px; left: 16px; z-index: 3; padding: 6px 12px; background: rgba(10,20,25,0.7); border: 1px solid var(--line); border-radius: 999px; font-size: 0.7rem; }
.bodymap-viewtoggle { position: absolute; top: 14px; right: 14px; z-index: 3; display: inline-flex; background: rgba(10,20,25,0.8); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.bodymap-viewtoggle button { padding: 6px 14px; border-radius: 999px; font-size: 0.78rem; color: var(--fg-dim); }
.bodymap-viewtoggle button.active { background: var(--teal); color: #052024; font-weight: 500; }
/* Separate images per view (assets/body-anterior.png, assets/body-posterior.png).
   Each image is ~580 × 2106 with the figure roughly centered.
   Wrap owns aspect ratio matching the image so img+svg overlay align exactly. */
.bodymap-imgwrap {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  aspect-ratio: 580 / 2106;
  overflow: hidden;
}
.bodymap-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: 0.55;
  pointer-events: none;
}
.bodymap-hotspots {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 2;
}
@media (max-width: 860px) {
  .bodymap-imgwrap { max-width: 260px; }
  .bodymap-figure { min-height: 0; padding: 64px 20px 20px; }
}
.bodymap-panel { display: flex; flex-direction: column; justify-content: center; padding: 12px 0; }
.bodymap-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.01em; line-height: 1; }
.bodymap-conditions { list-style: none; margin: 0; padding: 0; }
.bodymap-conditions li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; color: var(--fg); }
.bodymap-conditions li::before { content: '— '; color: var(--teal); margin-right: 6px; }
.bodymap-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.bodymap-hint { font-size: 0.75rem; }
.link-teal { color: var(--teal); background: none; padding: 0; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-family: inherit; font-size: inherit; }

/* ---- Quiz ---- */
.quiz { max-width: 680px; margin: 0 auto; }
.quiz-progress { height: 3px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 14px; }
.quiz-progress-bar { height: 100%; background: var(--teal); transition: width .4s var(--ease); }
.quiz-body { margin-top: 36px; animation: fadeUp .4s var(--ease); }
.quiz-q { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; margin: 0 0 20px; letter-spacing: -0.01em; }
.quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .quiz-opts { grid-template-columns: 1fr; } }
.quiz-opt { text-align: left; padding: 20px 24px; border-radius: 18px; background: rgba(255,255,255,0.02); border: 1px solid var(--line); transition: all .22s var(--ease); position: relative; }
.quiz-opt:hover { border-color: var(--teal); background: rgba(47,193,178,0.06); transform: translateY(-2px); }
.quiz-opt-label { font-family: var(--font-display); font-size: 1.15rem; }
.quiz-opt-sub { color: var(--fg-dim); font-size: 0.85rem; margin-top: 2px; }
.quiz-opt-arrow { position: absolute; top: 50%; right: 20px; transform: translateY(-50%); color: var(--teal); opacity: 0; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.quiz-opt:hover .quiz-opt-arrow { opacity: 1; transform: translate(4px, -50%); }
.quiz-services { list-style: none; padding: 0; margin: 20px 0 0; }
.quiz-services li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.tick { color: var(--teal); margin-right: 10px; font-weight: 700; }

/* ---- Finder ---- */
.finder { max-width: 680px; margin: 0 auto; }
.finder-input { display: flex; align-items: center; gap: 12px; padding: 18px 24px; border-radius: 16px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); }
.finder-input input { flex: 1; background: transparent; border: 0; color: var(--fg); font-size: 1rem; font-family: inherit; outline: none; }
.finder-list { margin-top: 20px; display: flex; flex-direction: column; gap: 2px; }
.finder-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 12px; text-align: left; transition: background .18s var(--ease); border: 1px solid transparent; }
.finder-item:hover { background: rgba(47,193,178,0.06); border-color: rgba(47,193,178,0.2); }
.finder-name { font-family: var(--font-display); font-size: 1.15rem; }
.finder-arrow { color: var(--teal); }

/* ---- Pillars (home services snapshot) ---- */
.section-services-snap { background: var(--bg); }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .pillar-grid { grid-template-columns: 1fr; } }
.pillar-card { position: relative; padding: 32px; border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015)); border: 1px solid var(--line); cursor: pointer; transition: transform .3s var(--ease), border-color .3s var(--ease); min-height: 420px; display: flex; flex-direction: column; }
.pillar-card:hover { transform: translateY(-6px); border-color: rgba(47,193,178,0.35); }
.pillar-card.featured { background: linear-gradient(160deg, rgba(47,193,178,0.10), rgba(47,193,178,0.02)); border-color: rgba(47,193,178,0.28); }
.pillar-title { font-family: var(--font-display); font-size: 2rem; line-height: 1; letter-spacing: -0.015em; }
.pillar-arrow { color: var(--teal); transition: transform .25s var(--ease); }
.pillar-card:hover .pillar-arrow { transform: translateX(4px); }
.pillar-list { list-style: none; padding: 0; margin: auto 0 0; border-top: 1px solid var(--line); padding-top: 16px; }
.pillar-list li { padding: 6px 0; color: var(--fg-dim); font-size: 0.88rem; }

/* ---- Self-Assessment teaser ---- */
.section-assess { background: linear-gradient(180deg, var(--bg) 0%, #0d1a21 100%); }
.assess-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
@media (max-width: 900px) { .assess-grid { grid-template-columns: 1fr; gap: 40px; } }
.assess-list { list-style: none; padding: 0; margin: 28px 0 0; }
.assess-list li { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--fg-dim); }
.assess-list li strong { color: var(--fg); }
.assess-phone { aspect-ratio: 9/16; max-width: 340px; margin: 0 auto; padding: 0; }
.assess-phone-ui { padding: 32px 24px; position: relative; z-index: 2; background: linear-gradient(180deg, rgba(10,20,25,0.92), rgba(10,20,25,0.8)); border-radius: inherit; height: 100%; }
.assess-q { padding: 18px; background: rgba(47,193,178,0.08); border: 1px solid rgba(47,193,178,0.2); border-radius: 14px; font-size: 0.95rem; }
.assess-opt { padding: 8px 14px; background: rgba(255,255,255,0.06); border-radius: 999px; font-size: 0.8rem; border: 1px solid var(--line); }
.assess-progress { height: 3px; background: var(--line); border-radius: 999px; overflow: hidden; }
.assess-progress span { display: block; height: 100%; background: var(--teal); }

/* ---- Process ---- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }
.process-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,255,255,0.02); transition: border-color .25s var(--ease), transform .25s var(--ease); }
.process-card:hover { border-color: rgba(47,193,178,0.3); transform: translateY(-4px); }
.process-num { font-size: 0.75rem; }
.process-card h3 { margin-top: 16px; font-family: var(--font-display); }
.process-card p { margin: 10px 0 0; font-size: 0.9rem; }

/* ---- Testimonials ---- */
.section-testimonials { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .testimonials-grid { grid-template-columns: 1fr; } }
.testimonial { margin: 0; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,255,255,0.02); }
.testimonial blockquote { margin: 0; font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.45; color: var(--fg); font-style: italic; }
.testimonial figcaption { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---- Visit ---- */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
@media (max-width: 900px) { .visit-grid { grid-template-columns: 1fr; gap: 40px; } }
.visit-hours { padding: 20px 24px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,0.02); }
.visit-hours > div { padding: 8px 0; font-size: 0.95rem; }
.visit-ph { position: relative; }
.visit-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.visit-map-link { transition: opacity 0.2s ease; text-decoration: none; }
.visit-map-link:hover { opacity: 0.85; }

/* ---- Sub-hero used on non-home pages ---- */
.sub-hero { padding: 160px 0 60px; position: relative; overflow: hidden; }
.sub-hero h1 { margin-top: 20px; }
.sub-hero-lead { font-size: 1.1rem; color: var(--fg-dim); max-width: 600px; margin-top: 24px; }

/* Service-detail sub-hero: clearer hierarchy, more breathing room */
.svc-sub-hero { padding-top: 140px; }
.svc-back { display: inline-flex; align-items: center; gap: 10px; background: transparent; border: 1px solid var(--line); color: var(--fg-dim); padding: 10px 18px; border-radius: 999px; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease); }
.svc-back:hover { color: var(--fg); border-color: rgba(47,193,178,0.45); background: rgba(47,193,178,0.06); }
.svc-back span { transition: transform .25s var(--ease); display: inline-block; }
.svc-back:hover span { transform: translateX(-3px); }
.svc-eyebrow { margin-top: 36px; }
.svc-sub-hero .svc-title { margin-top: 16px; }
@media (max-width: 720px) {
  .svc-sub-hero { padding-top: 120px; }
  .svc-eyebrow { margin-top: 28px; }
}

/* ---- Services hub big cards ---- */
.service-cards-lg { display: flex; flex-direction: column; gap: 18px; }
.svc-big { padding: 44px; border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)); border: 1px solid var(--line); cursor: pointer; transition: border-color .3s var(--ease), transform .3s var(--ease); position: relative; overflow: hidden; }
.svc-big:hover { border-color: rgba(47,193,178,0.35); transform: translateY(-3px); }
.svc-big.featured { background: linear-gradient(160deg, rgba(47,193,178,0.1), rgba(47,193,178,0.02)); border-color: rgba(47,193,178,0.25); }
.svc-big-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.svc-big h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.svc-big-list { list-style: none; padding: 0; margin: 24px 0 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 20px; }
.svc-big-list li { padding: 6px 0; color: var(--fg-dim); font-size: 0.92rem; }
.svc-big-cta { font-size: 0.7rem; margin-top: 10px; }
@media (max-width: 600px) { .svc-big { padding: 28px; } .svc-big-list { grid-template-columns: 1fr; } }

.help-choose-card { padding: 44px; border-radius: var(--radius-lg); background: rgba(47,193,178,0.06); border: 1px solid rgba(47,193,178,0.22); display: flex; justify-content: space-between; gap: 32px; align-items: center; flex-wrap: wrap; }
.help-choose-card p { margin: 12px 0 0; max-width: 440px; }

/* ---- Service detail ---- */
.svc-intro-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px; }
@media (max-width: 900px) { .svc-intro-grid { grid-template-columns: 1fr; gap: 32px; } }
.svc-intro { font-size: 1.1rem; line-height: 1.6; color: var(--fg); margin: 24px 0; }
.svc-intro-aside { padding: 32px; background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.svc-conditions { list-style: none; padding: 0; margin: 0; }
.svc-conditions li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.svc-conditions li::before { content: '→ '; color: var(--teal); }
.svc-conditions-etc { opacity: 0.4 !important; font-style: italic; border-bottom: none !important; }
.svc-conditions-etc::before { content: '' !important; }

.techniques-grid .card h3 { margin-top: 10px; font-family: var(--font-display); font-size: 1.3rem; }

/* ---- Self-Assessment full page ---- */
.assess-tool-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 960px) { .assess-tool-grid { grid-template-columns: 1fr; } }
.assess-tool { padding: 40px; border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(47,193,178,0.06), rgba(255,255,255,0.02)); border: 1px solid var(--line-strong); }
.assess-tool-head { padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.assess-tool-q { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; margin: 0; }
.assess-tool-opt { padding: 22px 24px; border-radius: 16px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); font-size: 1rem; text-align: left; transition: all .22s var(--ease); font-family: inherit; color: var(--fg); }
.assess-tool-opt:hover { border-color: var(--teal); background: rgba(47,193,178,0.08); transform: translateY(-2px); }
.assess-exercises, .assess-flags { padding-left: 20px; margin: 10px 0 0; }
.assess-exercises li, .assess-flags li { padding: 6px 0; color: var(--fg-dim); }
.assess-exercises li strong, .assess-flags li strong { color: var(--fg); }
.assess-result-block { margin-top: 28px; padding: 20px; border-radius: 14px; background: rgba(255,255,255,0.02); border: 1px solid var(--line); }
.assess-new-build-note { margin-top: 28px; padding: 16px 20px; border-radius: 12px; background: rgba(255,255,255,0.02); border: 1px solid var(--line); }
.assess-upsell { margin-top: 28px; padding: 22px 24px; border-radius: 16px; background: linear-gradient(135deg, rgba(47,193,178,0.14), rgba(47,193,178,0.04)); border: 1px solid rgba(47,193,178,0.3); display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; }

.assess-sidebar { display: flex; flex-direction: column; gap: 18px; }
.assess-tier { padding: 28px; border-radius: var(--radius-lg); background: rgba(255,255,255,0.02); border: 1px solid var(--line); }
.assess-tier.premium { background: rgba(47,193,178,0.06); border-color: rgba(47,193,178,0.25); }
.assess-tier ul { list-style: none; padding: 0; margin: 16px 0 0; }
.assess-tier li { padding: 8px 0; font-size: 0.9rem; border-bottom: 1px solid var(--line); }

/* ---- About ---- */
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: center; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }
.about-values { display: flex; flex-direction: column; gap: 18px; }
.value { display: flex; gap: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.value .mono { min-width: 30px; font-size: 0.8rem; }
.value strong { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; }
.value .dim { font-size: 0.88rem; margin-top: 4px; }
.team-card { background: rgba(255,255,255,0.02); }

/* ---- Resources / FAQ ---- */
.faq-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }
.faqs { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 20px; width: 100%; text-align: left; padding: 22px 0; font-family: var(--font-display); font-size: 1.15rem; color: var(--fg); }
.faq-q:hover { color: var(--teal); }
.faq-icon { color: var(--teal); font-size: 1.4rem; width: 24px; text-align: center; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); color: var(--fg-dim); font-size: 0.95rem; }
.faq.open .faq-a { max-height: 300px; padding-bottom: 22px; }
.blog-card .ph { position: relative; overflow: hidden; }

/* ---- Booking ---- */
.booking-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 900px) { .booking-grid { grid-template-columns: 1fr; } }
.booking-form { padding: 40px; border-radius: var(--radius-lg); background: rgba(255,255,255,0.02); border: 1px solid var(--line); }
.booking-success { text-align: center; padding: 40px 0; }
.booking-aside { display: flex; flex-direction: column; gap: 18px; }
.aside-block { padding: 24px; border-radius: var(--radius); background: rgba(255,255,255,0.02); border: 1px solid var(--line); }
.aside-block ul { list-style: none; padding: 0; margin: 14px 0 0; }
.aside-block ul li { padding: 6px 0; color: var(--fg-dim); font-size: 0.92rem; }
.aside-block ul li strong { color: var(--fg); }
.aside-block > div.flex { padding: 6px 0; font-size: 0.92rem; }

/* ---- Contact ---- */
.contact-card { display: block; padding: 32px; }
.contact-card h3 { font-family: var(--font-display); margin-top: 8px; font-size: 1.4rem; }

/* ---- CTA block ---- */
.section-cta { padding: 120px 0; }
.cta-block { text-align: center; padding: 80px 32px; border-radius: var(--radius-lg); background: radial-gradient(ellipse at 50% 20%, rgba(47,193,178,0.14), transparent 70%), rgba(255,255,255,0.02); border: 1px solid rgba(47,193,178,0.2); position: relative; overflow: hidden; }
.cta-block h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.cta-block p { max-width: 520px; margin: 16px auto 0; }
@media (max-width: 640px) {
  .section-cta { padding: 56px 16px; }
  .cta-block { padding: 40px 22px; }
  .cta-block h2 { font-size: clamp(1.7rem, 7.5vw, 2.2rem); line-height: 1.12; }
  .cta-block p { margin-top: 12px; font-size: 0.95rem; }
  .cta-block .flex { margin-top: 20px; gap: 12px; }
  .cta-block .btn-lg { padding-left: 28px; padding-right: 28px; }
}

/* ---- Tweaks panel ---- */
.tweaks-panel { position: fixed; top: 88px; right: 20px; width: 300px; z-index: 95; background: #0e1b22; border: 1px solid var(--line-strong); border-radius: 20px; padding: 20px; box-shadow: var(--shadow-deep); font-size: 0.85rem; transform: translateX(calc(100% + 40px)); transition: transform .35s var(--ease); }
.tweaks-panel.open { transform: translateX(0); }
.tweaks-panel h4 { font-family: var(--font-display); font-size: 1.1rem; margin: 0 0 12px; }
.tweaks-row { margin-bottom: 16px; }
.tweaks-row .mono { font-size: 0.65rem; display: block; margin-bottom: 8px; }
.tweaks-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.tweaks-swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: all .2s var(--ease); }
.tweaks-swatch.active { border-color: #fff; }
.tweaks-segmented { display: inline-flex; background: rgba(255,255,255,0.04); border-radius: 10px; padding: 3px; gap: 2px; }
.tweaks-segmented button { padding: 6px 12px; border-radius: 8px; font-size: 0.78rem; color: var(--fg-dim); }
.tweaks-segmented button.active { background: var(--teal); color: #052024; font-weight: 500; }


/* ===== Assessment wizard ===== */
.page-assess .assess-steps { display: flex; align-items: center; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.assess-step { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.8rem; color: var(--fg-dim); background: rgba(255,255,255,0.02); }
.assess-step span { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.08); display: grid; place-items: center; font-size: 0.72rem; font-family: var(--font-mono); color: var(--fg-dim); }
.assess-step.on { border-color: rgba(47,193,178,0.4); color: var(--fg); background: rgba(47,193,178,0.06); }
.assess-step.on span { background: var(--teal); color: #052024; }
.assess-step-line { height: 1px; width: 30px; background: var(--line); }
.assess-shell { max-width: 920px; }
.assess-card { background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 20px; padding: 40px; }
.assess-card h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; margin-bottom: 8px; }
.assess-card h3 { font-family: var(--font-display); font-size: 1.25rem; }
.assess-regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 24px; }
.assess-region { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 16px; border-radius: 14px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); text-align: left; color: var(--fg); transition: all .2s var(--ease); }
.assess-region:hover { border-color: rgba(47,193,178,0.3); background: rgba(47,193,178,0.04); }
.assess-region.on { border-color: var(--teal); background: rgba(47,193,178,0.1); box-shadow: 0 0 0 2px rgba(47,193,178,0.15); }
.assess-region-icon { font-size: 1.4rem; line-height: 1; }
.assess-flags { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.assess-flag { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,0.02); border: 1px solid var(--line); cursor: pointer; transition: all .2s var(--ease); }
.assess-flag:hover { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.04); }
.assess-flag.on { border-color: rgba(228, 159, 92, 0.5); background: rgba(228, 159, 92, 0.08); }
.assess-flag input { margin-top: 4px; accent-color: var(--teal); }
.pain-slider { margin-top: 20px; padding: 24px; background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: 16px; }
.pain-slider input[type=range] { width: 100%; accent-color: var(--teal); }
.pain-value { text-align: center; margin: 12px 0 4px; font-family: var(--font-display); font-size: 3.2rem; line-height: 1; color: var(--teal); }
.pain-value small { font-size: 1.2rem; color: var(--fg-dim); margin-left: 6px; }
.pain-marks { display: flex; justify-content: space-between; font-size: 0.7rem; margin-top: 6px; }
.assess-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.assess-pill { padding: 10px 18px; border-radius: 999px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); color: var(--fg-dim); transition: all .2s var(--ease); }
.assess-pill:hover { border-color: rgba(47,193,178,0.3); color: var(--fg); }
.assess-pill.on { background: rgba(47,193,178,0.12); border-color: var(--teal); color: var(--fg); }
.assess-report { display: flex; flex-direction: column; gap: 24px; }
.assess-alert { display: flex; gap: 16px; padding: 24px; border-radius: 18px; }
.assess-alert.urgent { background: rgba(228, 159, 92, 0.1); border: 1px solid rgba(228, 159, 92, 0.4); color: #f5c78c; }
.assess-alert.emergency { background: rgba(239, 91, 91, 0.12); border: 1px solid rgba(239, 91, 91, 0.5); color: #ffb1b1; }
.assess-alert-icon { font-size: 1.8rem; line-height: 1; }
.report-headline { background: linear-gradient(135deg, rgba(47,193,178,0.1), rgba(47,193,178,0.02)); border: 1px solid rgba(47,193,178,0.25); border-radius: 20px; padding: 32px; }
.report-headline h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; }
.report-section { background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 20px; padding: 28px 32px; }
.phases { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.phase-card { padding: 18px; background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: 14px; }
.phase-card h4 { font-family: var(--font-display); font-size: 1rem; line-height: 1.3; margin-bottom: 10px; color: var(--fg); }
.phase-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.phase-card ul li { font-size: 0.85rem; color: var(--fg-dim); position: relative; padding-left: 14px; }
.phase-card ul li::before { content: '·'; position: absolute; left: 4px; color: var(--teal); }
.report-cta { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; background: linear-gradient(135deg, rgba(47,193,178,0.08), transparent); border-color: rgba(47,193,178,0.25); }
.report-cta h3 { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 6px; }
.assess-disclaimer { padding: 16px 20px; border-left: 2px solid var(--teal); background: rgba(255,255,255,0.02); border-radius: 4px; font-size: 0.78rem; line-height: 1.6; }
@media (max-width: 700px) {
  .assess-card { padding: 24px; }
  .assess-step-line { width: 12px; }
  .assess-step { padding: 6px 10px; font-size: 0.72rem; }
  .assess-step span { width: 18px; height: 18px; font-size: 0.65rem; }
}

/* ===== Hero figures background (full-bleed) + mobile frosted glass text ===== */
.hero-figures-bg { position: relative; overflow: hidden; }

/* ===== vNEXT: Schematic hero (animated blueprint) ===== */
.hero-schematic {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  overflow: hidden;
}
.hero-schematic::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,20,25,0.55) 0%, rgba(10,20,25,0) 14%, rgba(10,20,25,0) 80%, rgba(10,20,25,0.95) 100%),
    linear-gradient(90deg, rgba(10,20,25,0.9) 0%, rgba(10,20,25,0.45) 34%, rgba(10,20,25,0) 62%);
}
.hs-grid {
  position: absolute; inset: -120px;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 75% 85% at 68% 50%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 68% 50%, #000 35%, transparent 78%);
  animation: hsGridDrift 64s linear infinite;
}
@keyframes hsGridDrift { from { transform: translate(0,0); } to { transform: translate(72px,72px); } }
.hs-stage {
  position: absolute; top: 50%; right: 1%;
  width: min(46vw, 720px); aspect-ratio: 1;
  transform: translateY(-50%);
}
.hs-rings, .hs-cross { position: absolute; inset: 0; width: 100%; height: 100%; }
.hs-rings { animation: hsSpin 140s linear infinite; }
@keyframes hsSpin { to { transform: rotate(360deg); } }
.hs-fig {
  position: absolute; top: 9%; height: 82%; width: auto;
  opacity: 0.85;
  filter: drop-shadow(0 0 18px rgba(47,193,178,0.12));
  animation: hsBreathe 9s ease-in-out infinite;
}
.hs-fig-a { left: 33%; transform: translateX(-50%); }
.hs-fig-p { left: 64%; transform: translateX(-50%); opacity: 0.55; animation-delay: 2.2s; }
@keyframes hsBreathe {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -10px; }
}
.hs-callout {
  position: absolute; right: -2%;
  display: flex; align-items: center; flex-direction: row-reverse; gap: 10px;
  animation: hsFadePulse 6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.hs-ctext { color: rgba(233,237,238,0.75); font-size: 0.66rem; }
.hs-cnode {
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 12px var(--teal-glow), 0 0 4px var(--teal);
}
.hs-cline {
  width: var(--w, 130px); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47,193,178,0.45));
}
@keyframes hsFadePulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
.hs-art {
  position: absolute;
  animation: hsFloat var(--dur, 14s) ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes hsFloat {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(6px, -14px); }
  50% { transform: translate(-4px, -22px); }
  75% { transform: translate(-10px, -8px); }
}
.hs-plus { color: rgba(47,193,178,0.5); font-size: 1.15rem; font-weight: 300; line-height: 1; font-family: var(--font-mono); }
.hs-orb {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(47,193,178,0.7); box-shadow: 0 0 10px rgba(47,193,178,0.5);
}
.hs-orb-lg { width: 9px; height: 9px; background: rgba(243,237,227,0.4); box-shadow: 0 0 14px rgba(243,237,227,0.25); }
.hs-radar { width: 92px; height: 92px; opacity: 0.8; }
.hs-radar-shape { animation: hsRadarPulse 7s ease-in-out infinite; transform-origin: 60px 60px; }
@keyframes hsRadarPulse { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(0.88); opacity: 1; } }
.hs-spark { width: 130px; height: 32px; opacity: 0.7; }
.hs-spark-line { stroke-dasharray: 220; stroke-dashoffset: 220; animation: hsSparkDraw 9s ease-in-out infinite; }
@keyframes hsSparkDraw { 0% { stroke-dashoffset: 220; } 45%, 70% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@media (max-width: 960px) {
  .hs-stage { right: 50%; transform: translate(50%, -50%); width: min(165vw, 760px); opacity: 0.78; }
  .hs-callout, .hs-art { display: none; }
  .hero-schematic::after {
    background:
      linear-gradient(180deg, rgba(10,20,25,0.7) 0%, rgba(10,20,25,0.25) 30%, rgba(10,20,25,0.35) 70%, rgba(10,20,25,0.95) 100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-schematic *, .hero-schematic { animation: none !important; }
}

/* (legacy photo hero layer — no longer rendered) */
.hero-figure-layer {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.hero-figure-layer::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("assets/hero-figures.jpg");
  background-repeat: no-repeat; background-size: cover; background-position: center center;
  opacity: 0.85;
}
/* dark gradient overlays — fade into page bg so it looks embedded, not pasted */
.hero-figure-layer::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,20,25,0.7) 0%, rgba(10,20,25,0) 12%, rgba(10,20,25,0) 80%, rgba(10,20,25,0.95) 100%),
    linear-gradient(90deg, rgba(10,20,25,0.85) 0%, rgba(10,20,25,0.35) 30%, rgba(10,20,25,0.15) 65%, rgba(10,20,25,0.5) 100%);
}
/* Ensure content sits above the bg layer */
.hero-figures-bg .container { position: relative; z-index: 2; }
.hero-figures-bg .scroll-hint { z-index: 2; }

/* Desktop: favour left side — stronger dark gradient on left */
@media (min-width: 961px) {
  .hero-figure-layer::before { opacity: 0.92; }
  .hero-figure-layer::after {
    background:
      linear-gradient(180deg, rgba(10,20,25,0.6) 0%, rgba(10,20,25,0) 10%, rgba(10,20,25,0) 82%, rgba(10,20,25,0.95) 100%),
      linear-gradient(90deg, rgba(10,20,25,0.95) 0%, rgba(10,20,25,0.75) 25%, rgba(10,20,25,0.25) 55%, rgba(10,20,25,0.1) 100%);
  }
}
/* Right-side spacer only exists so the grid preserves its 2-col layout; no content */
.hero-right-spacer { min-height: 1px; }

/* Mobile-only: frosted glass on the hero copy so text stays readable over the figures */
@media (max-width: 960px) {
  .hero-copy-frost {
    background: rgba(12,18,30,0.2);
    backdrop-filter: blur(6px) saturate(115%);
    -webkit-backdrop-filter: blur(6px) saturate(115%);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 24px 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
  }
}

/* ===== OpenNowChip (used in nav + footer) ===== */
.open-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(47,193,178,0.08); color: var(--teal);
  border: 1px solid rgba(47,193,178,0.2);
  font-size: 0.78rem;
  white-space: nowrap;
}
@media (max-width: 1100px) and (min-width: 961px) { .nav .open-chip { display: none; } }
/* Mobile: float the status pill just below the fixed header, left-aligned */
@media (max-width: 960px) {
  .nav-status { position: fixed; top: 74px; left: 20px; z-index: 70; pointer-events: none; }
  .nav-status .open-chip {
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    background: rgba(10,20,25,0.55);
    box-shadow: 0 8px 22px rgba(0,0,0,0.35);
  }
  .nav-status .open-chip.closed { background: rgba(40,16,16,0.55); }
}
.open-chip.closed { background: rgba(239,91,91,0.08); color: #ffb1b1; border-color: rgba(239,91,91,0.3); }
.open-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.open-chip.open .dot { animation: pulse 2s infinite; }
.open-chip.closed .dot { animation: none; opacity: 0.8; }

/* ===== Technique card with icon (ortho detail page) ===== */
/* ===== Technique cards — clickable ===== */
.tech-card { position: relative; }
.tech-card-clickable { cursor: pointer; transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease); }
.tech-card-clickable:hover { transform: translateY(-3px); border-color: rgba(47,193,178,0.4); }
.tech-card-clickable:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.tech-card-eyebrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tech-badge {
  display: inline-block; padding: 3px 8px; border-radius: 999px;
  font-size: 0.6rem; letter-spacing: 0.18em;
  background: rgba(47,193,178,0.12); color: var(--teal);
  border: 1px solid rgba(47,193,178,0.3);
}
.tech-card-cta { margin-top: 18px; font-size: 0.7rem; opacity: 0.85; transition: transform .25s var(--ease); }
.tech-card-clickable:hover .tech-card-cta { transform: translateX(3px); }

/* ===== Technique modal ===== */
.tech-modal-root {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease-out;
}
.tech-modal-root.is-open { opacity: 1; pointer-events: auto; }
.tech-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 12, 16, 0.7);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}
.tech-modal-card {
  position: relative;
  width: 100%; max-width: 640px;
  max-height: calc(100vh - 48px);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line-strong, rgba(255,255,255,0.12));
  border-radius: 20px;
  box-shadow: 0 40px 90px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(47,193,178,0.08);
  transform: scale(0.94);
  opacity: 0;
  transition: transform .3s ease-out, opacity .3s ease-out;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.tech-modal-root.is-open .tech-modal-card { transform: scale(1); opacity: 1; }
.tech-modal-scroll {
  overflow-y: auto;
  padding: 40px 44px 28px;
  -webkit-overflow-scrolling: touch;
}
.tech-modal-x {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  color: var(--fg-dim);
  z-index: 3;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.tech-modal-x:hover { color: var(--teal); border-color: var(--teal); background: rgba(47,193,178,0.08); }
.tech-modal-eyebrow { font-size: 0.68rem; }
.tech-modal-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  line-height: 1.12; margin: 10px 0 22px;
  letter-spacing: -0.01em;
  padding-right: 40px;
}
.tech-modal-body p { color: var(--fg); opacity: 0.88; font-size: 0.96rem; line-height: 1.65; margin: 0 0 16px; }
.tech-modal-body .tm-subhead {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 500;
  margin: 22px 0 10px; color: var(--teal);
  letter-spacing: -0.01em;
}
.tech-modal-body .tm-list { margin: 4px 0 18px; padding-left: 0; list-style: none; }
.tech-modal-body .tm-list li {
  position: relative; padding-left: 22px; margin-bottom: 10px;
  color: var(--fg); opacity: 0.88; font-size: 0.95rem; line-height: 1.55;
}
.tech-modal-body .tm-list li::before {
  content: ''; position: absolute; left: 0; top: 0.7em;
  width: 10px; height: 1px; background: var(--teal);
}
/* trademark logo badge — floats top-right of the modal copy, scrolls with it */
.tech-modal-logo {
  float: right; width: 92px; height: auto;
  margin: 0 0 14px 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 6px 22px rgba(0,0,0,0.35);
}
/* outbound "learn more" link at the end of a technique write-up */
.tech-modal-body .tm-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal); text-decoration: none;
  border-bottom: 1px solid rgba(47,193,178,0.4);
  padding-bottom: 2px; margin: 4px 0 18px;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.tech-modal-body .tm-link:hover { border-bottom-color: var(--teal); }
.tech-modal-foot {
  display: flex; justify-content: flex-end;
  padding-top: 18px; margin-top: 12px;
  border-top: 1px solid var(--line);
}
@media (max-width: 640px) {
  .tech-modal-root { padding: 12px; }
  .tech-modal-card { max-height: calc(100vh - 24px); border-radius: 16px; }
  .tech-modal-scroll { padding: 32px 22px 22px; }
  .tech-modal-title { font-size: 1.55rem; padding-right: 32px; }
  .tech-modal-logo { width: 72px; margin: 0 0 10px 12px; }
  .tech-modal-foot { justify-content: stretch; }
  .tech-modal-foot .btn { width: 100%; text-align: center; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .tech-modal-root, .tech-modal-card { transition: opacity .15s linear, transform .15s linear; }
  .tech-modal-root.is-open .tech-modal-card { transform: none; }
}

/* ===== Before/after image juxtaposition slider (technique modals) ===== */
.ba-block { margin: 6px 0 20px; }
.ba-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  max-width: 380px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-strong, rgba(255,255,255,0.12));
  background: var(--bg-2);
  touch-action: none;
}
.ba-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  user-select: none; -webkit-user-drag: none;
}
.ba-before { clip-path: inset(0 calc(100% - var(--ba-pos, 50%)) 0 0); }
.ba-divider {
  position: absolute; top: 0; bottom: 0;
  left: var(--ba-pos, 50%);
  width: 2px; margin-left: -1px;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 0 12px rgba(0,0,0,0.5);
  pointer-events: none;
}
.ba-handle {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--teal, #2FC1B2);
  color: #04211d;
  box-shadow: 0 4px 14px rgba(0,0,0,0.45);
}
.ba-tag {
  position: absolute; top: 10px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(5,12,16,0.62); color: #EDF2F1;
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
  transition: opacity .25s ease;
}
.ba-tag.is-faded { opacity: 0.15; }
.ba-range {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; padding: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none; appearance: none;
  background: transparent;
}
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 44px; height: 100vh; }
.ba-range::-moz-range-thumb { width: 44px; height: 100vh; border: 0; }
.ba-frame:has(.ba-range:focus-visible) .ba-divider { background: var(--teal, #2FC1B2); }
.ba-caption {
  margin: 10px auto 0; max-width: 380px;
  font-size: 0.68rem; letter-spacing: 0.05em;
  text-align: center;
}

.tech-card-with-icon { position: relative; overflow: hidden; padding-right: 214px; min-height: 200px; }
.tech-card-with-icon .tech-icon {
  position: absolute; right: 22px; bottom: 22px;
  width: 168px; height: 168px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 10px 22px rgba(10, 35, 32, 0.20));
  transition: transform .4s var(--ease);
  z-index: 1;
}
.tech-card-with-icon:hover .tech-icon { transform: scale(1.06) translateY(-3px); }
.tech-card-with-icon > * { position: relative; z-index: 2; max-width: calc(100% - 8px); }
@media (max-width: 640px) {
  /* icon gets its own bottom zone (~50% card width) — text keeps full width above */
  .tech-card-with-icon { padding-right: 28px; padding-bottom: 204px; min-height: 0; }
  .tech-card-with-icon .tech-icon { width: 168px; height: 168px; right: 20px; bottom: 20px; }
}

/* ===== Assess: patient info form (Step 4) ===== */
.assess-form { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }
.assess-field { display: flex; flex-direction: column; gap: 8px; }
.assess-field-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; }
@media (max-width: 560px) { .assess-field-row { grid-template-columns: 1fr; } }
.assess-label { font-family: var(--font-mono); font-size: 0.72rem; color: var(--fg-dim); letter-spacing: 0.04em; text-transform: uppercase; }
.assess-input {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,0.03); color: var(--fg);
  border: 1px solid var(--line); transition: all .2s var(--ease);
  font-family: inherit; font-size: 0.95rem;
}
.assess-input:focus { outline: none; border-color: var(--teal); background: rgba(47,193,178,0.04); box-shadow: 0 0 0 3px rgba(47,193,178,0.12); }
.assess-input::placeholder { color: var(--fg-mute); }
.assess-loc-toggle { display: inline-flex; padding: 3px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 999px; gap: 2px; align-self: flex-start; }
.assess-loc-btn { padding: 9px 18px; border-radius: 999px; font-size: 0.85rem; color: var(--fg-dim); transition: all .2s var(--ease); }
.assess-loc-btn.on { background: var(--teal); color: #052024; font-weight: 500; }
select.assess-input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--fg-dim) 50%), linear-gradient(135deg, var(--fg-dim) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 36px; }


/* ---- Resources blog cards (v2) ---- */
.blog-grid { gap: 24px; }
.blog-card-v2 { display: flex; flex-direction: column; padding: 0; overflow: hidden; border-radius: 18px; background: rgba(255,255,255,0.02); border: 1px solid var(--line); transition: transform .25s var(--ease), border-color .25s var(--ease); }
.blog-card-v2:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.blog-cover { position: relative; aspect-ratio: 16/9; overflow: hidden; background: rgba(255,255,255,0.04); }
.blog-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.blog-card-v2:hover .blog-cover img { transform: scale(1.04); }

.tag-pill { position: absolute; top: 12px; left: 12px; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; line-height: 1; }
.tag-ortho { background: var(--teal); color: #051517; border: 1px solid var(--teal); }
.tag-neuro { background: rgba(47,193,178,0.4); color: #051517; border: 1px solid rgba(47,193,178,0.6); }
.tag-paeds { background: rgba(10,16,19,0.7); color: var(--fg-dim); border: 1px solid var(--fg-dim); backdrop-filter: blur(6px); }
.tag-wellness { background: rgba(10,16,19,0.7); color: var(--fg-dim); border: 1px solid var(--fg-dim); backdrop-filter: blur(6px); }

.blog-body { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.blog-title { font-size: 1.32rem; line-height: 1.2; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-excerpt { margin: 0; font-size: 0.92rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.fast-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.fast-chip { font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid var(--teal); color: var(--teal); border-radius: 99px; padding: 2px 8px; line-height: 1.4; }

.blog-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.blog-meta { font-size: 0.7rem; color: var(--fg-dim); letter-spacing: 0.04em; }
.blog-author { color: var(--fg); }
.blog-sep { opacity: 0.6; }
.blog-readlink { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; align-self: flex-start; transition: opacity .2s var(--ease); }
.blog-readlink:hover { opacity: 0.75; }


/* ---- Blog post page ---- */
.blog-post { background: var(--bg); }
.blog-post-hero .container { max-width: 760px; }
.back-link { background: none; border: none; cursor: pointer; padding: 0; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 24px; display: inline-block; transition: color .2s var(--ease); }
.back-link:hover { color: var(--teal); }
.blog-post-tag { position: static; display: inline-block; margin-bottom: 18px; }
.blog-post-title { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.1; margin: 0 0 18px; }
.blog-post-byline { font-size: 0.74rem; letter-spacing: 0.06em; }

.blog-post-wrap { max-width: 760px; }
.blog-post-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 18px; margin-bottom: 48px; display: block; }
.blog-post-body { font-size: 1.05rem; line-height: 1.75; }
.blog-post-body h3 { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.25; margin: 40px 0 14px; color: var(--fg); font-weight: 500; }
.blog-post-body p { margin: 0 0 18px; color: var(--fg-dim); }
.blog-post-body blockquote { border-left: 3px solid var(--teal); padding: 4px 0 4px 22px; font-style: italic; color: var(--fg); margin: 32px 0; font-family: var(--font-serif); font-size: 1.18rem; line-height: 1.5; }
.blog-post-body .stat-callout, .blog-post-body blockquote.stat-callout { background: linear-gradient(135deg, rgba(47,193,178,0.10), rgba(47,193,178,0.02)); padding: 22px 26px; border-radius: 14px; border-left: 3px solid var(--teal); margin: 32px 0; font-style: normal; color: var(--fg); font-family: var(--font-sans, inherit); font-size: 1rem; line-height: 1.6; }
.blog-post-body .stat-callout strong { color: var(--teal); font-weight: 600; }

.blog-post-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 60px; padding-top: 32px; border-top: 1px solid var(--line); }

/* FAST grid — stroke article */
.fast-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 32px 0 28px; }
@media (max-width: 540px) { .fast-grid { grid-template-columns: 1fr; } }
.fast-card { background: rgba(47,193,178,0.04); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.fast-card .fast-letter { font-size: 3.4rem; line-height: 1; color: var(--teal); font-weight: 500; }
.fast-card .fast-word { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg); margin: 6px 0 12px; }
.fast-card .fast-detail { font-size: 0.9rem; color: var(--fg-dim); line-height: 1.55; margin: 0; }


/* ================================================================
   Sanity blog layout (Resources + BlogPost) — added per user request
   ================================================================ */

/* 1. BlogPost page */
.blog-post {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem var(--page-pad);
}
.blog-post-cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--rad-lg);
  margin-bottom: 2rem;
}
.blog-post-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin: 0.75rem 0;
}
.blog-post-byline {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.blog-post-body p {
  line-height: 1.8;
  color: var(--fg-dim);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}
.blog-post-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 2.5rem 0 0.75rem;
  color: var(--fg);
}
.blog-post-body blockquote {
  border-left: 3px solid var(--teal);
  padding: 0.75rem 1.25rem;
  font-style: italic;
  color: var(--fg-dim);
  margin: 2rem 0;
  background: rgba(47,193,178,0.05);
  border-radius: 0 var(--rad-md) var(--rad-md) 0;
}
.blog-post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* 2. Resources grid — card layout */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.blog-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--rad-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.blog-card-img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0.5rem 0 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-excerpt {
  font-size: 0.875rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
  flex: 1;
}
.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.blog-card-meta {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

/* 3. Resources page — hero and tag filter spacing */
.resources-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.tag-filter-btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg-dim);
  cursor: pointer;
  transition: all 0.2s;
}
.tag-filter-btn.active, .tag-filter-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.resources-body {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 3rem var(--page-pad);
}


/* ---- Named team cards (AboutPage) ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 1100px;
}

.team-named {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
}

.team-named-header {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.team-portrait {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--teal);
  box-shadow: 0 0 0 4px rgba(47,193,178,0.08);
  transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}

.team-named.is-expanded .team-portrait {
  width: 128px;
  height: 128px;
  box-shadow: 0 0 0 6px rgba(47,193,178,0.12);
}

.team-named-info {
  flex: 1;
  min-width: 0;
}

.team-named-expanded {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.team-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.team-chip {
  /* Archivo, normal case: far more legible at small size than mono
     uppercase, and long certification names wrap instead of clipping */
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.4;
  border: 1px solid var(--border);
  color: var(--fg-dim);
  border-radius: var(--radius);
  padding: 4px 10px;
  white-space: normal;
}

@media (max-width: 520px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-named-header { flex-direction: column; align-items: flex-start; }
  .team-portrait { width: 72px; height: 72px; }
}

/* ===== vNEXT: Service hero ambient layers ===== */
.svc-sub-hero { position: relative; overflow: hidden; }
.svc-sub-hero .container { position: relative; z-index: 2; }
.svc-ambient { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.svc-ambient .sa-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.sa-drift { animation: saDrift 46s ease-in-out infinite alternate; }
@keyframes saDrift { from { transform: translateX(-28px); } to { transform: translateX(28px); } }
.sa-nodes circle { animation: saPulse 5s ease-in-out infinite; }
.sa-nodes circle:nth-child(2n) { animation-delay: 1.4s; }
.sa-nodes circle:nth-child(3n) { animation-delay: 2.6s; }
.sa-nodes circle:nth-child(4n+1) { animation-delay: 3.4s; }
@keyframes saPulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
.sa-rot { animation: saRot 90s linear infinite; transform-origin: 1060px 360px; }
@keyframes saRot { to { transform: rotate(360deg); } }
.sa-rot-slow { animation: saRot2 70s linear infinite; transform-origin: 330px 200px; }
@keyframes saRot2 { to { transform: rotate(-360deg); } }
.sa-float { animation: saFloat var(--fdur, 16s) ease-in-out infinite; }
.sa-f1 { --fdur: 18s; }
.sa-f2 { --fdur: 14s; animation-delay: 2s; }
.sa-f3 { --fdur: 21s; animation-delay: 4s; }
.sa-f4 { --fdur: 16s; animation-delay: 1s; }
@keyframes saFloat { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(10px, -18px); } }
@media (max-width: 700px) { .svc-ambient { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .svc-ambient * { animation: none !important; } }

/* ===== vNEXT: Hero product-launch banner (Kairos Coach) ===== */
.hero-launch {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 26px; padding: 7px 14px 7px 8px;
  border-radius: 999px;
  background: linear-gradient(100deg, rgba(47,193,178,0.12), rgba(47,193,178,0.04));
  border: 1px solid rgba(47,193,178,0.28);
  color: var(--fg); text-decoration: none;
  font-size: 0.86rem; line-height: 1;
  backdrop-filter: blur(10px);
  transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
  max-width: 100%;
}
.hero-launch:hover {
  transform: translateY(-2px);
  border-color: rgba(47,193,178,0.55);
  box-shadow: 0 10px 30px -12px rgba(47,193,178,0.4);
}
.hero-launch-badge {
  flex: none; padding: 4px 9px; border-radius: 999px;
  background: var(--teal); color: #04201d;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em;
}
.hero-launch-text { color: var(--fg-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-launch-text strong { color: var(--fg); font-weight: 600; }
.hero-launch-arrow { flex: none; color: var(--teal); font-weight: 600; transition: transform .22s var(--ease); }
.hero-launch:hover .hero-launch-arrow { transform: translateX(3px); }
@media (max-width: 540px) {
  .hero-launch { gap: 9px; padding: 6px 12px 6px 6px; font-size: 0.78rem; }
  .hero-launch-text { white-space: normal; }
}


/* ============================================================
   ===== A2 REDESIGN (July 2026) — technical grid homepage =====
   Dark hero + visit, light body. Hairline cells, mono labels.
   ============================================================ */

/* ---- zones ---- */
.zone-dark { background: var(--bg); color: var(--fg); }
.zone-light {
  background: var(--cream); color: var(--ink);
  --fg: var(--ink);
  --fg-dim: rgba(16,31,28,0.62);
  --fg-mute: rgba(16,31,28,0.45);
  --line: var(--line-light);
  --line-strong: rgba(16,31,28,0.25);
  --card: rgba(16,31,28,0.02);
}
.zone-light h1, .zone-light h2, .zone-light h3, .zone-light h4 { color: var(--ink); }

/* ---- section rhythm ---- */
section.a2-block { padding: 104px 0; }
section.a2-block.a2-tight { padding-top: 0; }
@media (max-width: 640px) { section.a2-block { padding: 72px 0; } }

.a2-secindex { color: var(--teal); letter-spacing: 0.16em; }
.a2-sechead { display: flex; justify-content: space-between; align-items: flex-end; gap: 60px; margin-bottom: 56px; }
.a2-sechead h2 { margin-top: 18px; max-width: 640px; }
.a2-sechead > p { max-width: 360px; color: var(--fg-dim); font-size: 1rem; padding-bottom: 6px; margin: 0; }
@media (max-width: 860px) { .a2-sechead { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 40px; } }

/* ---- hero ---- */
.a2-hero { position: relative; overflow: hidden; padding-top: 76px; }
.a2-hero-gridbg {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
}
.a2-hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; min-height: 660px; max-width: 1400px; margin: 0 auto; }
.a2-hero-copy { padding: 72px 40px 64px 64px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.a2-hero-title { font-size: clamp(2.7rem, 5.2vw, 4.6rem); line-height: 1.02; margin: 26px 0 24px; max-width: 12em; }
.a2-hero-sub { font-size: 1.12rem; line-height: 1.65; max-width: 560px; color: var(--fg-dim); margin: 0; }
.a2-hero-cta { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }

.a2-proof { display: flex; margin-top: 56px; border-top: 1px solid var(--line); max-width: 620px; width: 100%; }
.a2-proof-item { flex: 1; padding: 22px 24px 0 0; }
.a2-proof-item + .a2-proof-item { padding-left: 26px; border-left: 1px solid var(--line); }
.a2-proof-num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; letter-spacing: -0.02em; }
.a2-proof-num .countup-wrap > span { font-variant-numeric: tabular-nums; }
.a2-star { color: var(--teal); font-size: 0.55em; vertical-align: 0.35em; margin-left: 2px; }
.a2-proof-label { font-size: 0.66rem; letter-spacing: 0.14em; margin-top: 6px; color: var(--fg-mute); }

.a2-hero-fig { position: relative; border-left: 1px solid var(--line); display: flex; align-items: center; justify-content: center; min-height: 520px; }
.a2-fig-rings { position: absolute; width: min(520px, 80%); aspect-ratio: 1; animation: a2-ring-spin 90s linear infinite; }
@keyframes a2-ring-spin { to { transform: rotate(360deg); } }
.a2-fig-img { height: min(560px, 82%); position: absolute; object-fit: contain; opacity: 0.92; z-index: 2; }
.a2-fig-tag {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg); opacity: 0.55;
}
.a2-fig-tag::before { content: ""; width: 26px; height: 1px; background: var(--teal); opacity: 0.9; }
.a2-fig-tag-r { flex-direction: row-reverse; }
.a2-fig-tag-r::before { order: -1; }
.a2-fig-corner { position: absolute; width: 18px; height: 18px; border-color: var(--teal); border-style: solid; opacity: 0.7; z-index: 3; }
.a2-corner-tl { top: 18px; left: 18px; border-width: 1px 0 0 1px; }
.a2-corner-br { bottom: 18px; right: 18px; border-width: 0 1px 1px 0; }

@media (max-width: 960px) {
  .a2-hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .a2-hero-copy { padding: 56px 24px 48px; }
  .a2-hero-fig { border-left: 0; border-top: 1px solid var(--line); min-height: 440px; }
}

/* ---- marquee strip ---- */
.a2-strip { border-top: 1px solid var(--line); overflow: hidden; padding: 13px 0; position: relative; }
.a2-strip-track {
  display: flex; gap: 0; white-space: nowrap; width: max-content;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-dim); animation: a2-strip-scroll 32s linear infinite;
}
.a2-strip-track > span { display: inline-block; padding-right: 56px; }
.a2-strip-track em { font-style: normal; color: var(--teal); padding: 0 12px; }
@keyframes a2-strip-scroll { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .a2-strip-track { animation: none; }
  .a2-fig-rings { animation: none; }
}

/* ---- cellgrid ---- */
.a2-cellgrid { display: grid; border: 1px solid var(--line); background: var(--card); }
.a2-cell { border: 0 solid var(--line); padding: 40px; position: relative; min-width: 0; margin: 0; }
.a2-ways, .a2-pillars, .a2-testis { grid-template-columns: repeat(3, 1fr); }
.a2-process { grid-template-columns: repeat(4, 1fr); }
.a2-cellgrid .a2-cell + .a2-cell { border-left-width: 1px; }
.a2-cellkey { color: var(--teal); letter-spacing: 0.12em; }
@media (max-width: 900px) {
  .a2-ways, .a2-pillars, .a2-testis, .a2-process { grid-template-columns: 1fr; }
  .a2-cellgrid .a2-cell + .a2-cell { border-left-width: 0; border-top-width: 1px; }
  .a2-cell { padding: 28px 24px; }
}

/* ---- ways in (tabs) ---- */
.a2-way { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 0; cursor: pointer; background: transparent; transition: background .25s var(--ease); }
.a2-way:hover { background: var(--row-hi); }
.a2-way.active { background: var(--row-hi); box-shadow: inset 0 -2px 0 var(--teal); }
.a2-way-title { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.015em; margin: 16px 0 8px; color: var(--fg); }
.a2-way-desc { font-size: 0.9rem; color: var(--fg-dim); line-height: 1.55; }
.a2-way-cta { color: var(--teal); letter-spacing: 0.12em; margin-top: 18px; display: inline-flex; gap: 10px; }

.a2-guide-panel { border: 1px solid var(--line); border-top: 0; padding: 56px 48px 48px; position: relative; background: var(--panel-solid); }
.zone-dark .a2-guide-panel { background: transparent; }
@media (max-width: 640px) { .a2-guide-panel { padding: 48px 20px 28px; } }
.a2-ticklabel { position: absolute; top: 14px; left: 16px; font-size: 0.6rem; letter-spacing: 0.14em; opacity: 0.4; }

/* ---- pillars ---- */
.a2-pillar { min-height: 420px; display: flex; flex-direction: column; cursor: pointer; transition: background .25s var(--ease); }
.a2-pillar:hover { background: var(--row-hi); }
.a2-pillar.featured { background: var(--row-hi); }
.a2-pillar-head { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.a2-pillar-arrow { font-size: 1.1rem; opacity: 0.4; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.a2-pillar:hover .a2-pillar-arrow { transform: translateX(4px); opacity: 0.9; color: var(--teal); }
.a2-pillar-title { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 48px 0 4px; }
.a2-pillar-sub { font-size: 0.62rem; letter-spacing: 0.16em; color: var(--fg-mute); margin-bottom: 16px; }
.a2-pillar-desc { font-size: 0.9rem; color: var(--fg-dim); margin: 0 0 24px; }
.a2-pillar-list { margin: auto 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); width: 100%; }
.a2-pillar-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.85rem; display: flex; justify-content: space-between; color: var(--fg-dim); }
.a2-pillar-list li::after { content: "\2192"; opacity: 0.35; }
@media (max-width: 900px) { .a2-pillar { min-height: 0; } }

/* ---- process ---- */
.a2-process-title { font-size: 1.25rem; margin: 42px 0 10px; }
.a2-process-desc { font-size: 0.88rem; color: var(--fg-dim); margin: 0; }

/* ---- testimonials ---- */
.a2-stars { color: var(--teal); font-size: 0.8rem; letter-spacing: 3px; margin-bottom: 16px; }
.a2-quote { margin: 0; font-size: 0.95rem; line-height: 1.7; color: var(--fg); opacity: 0.85; }
.a2-testi-cap { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); }
.a2-testi-name { font-weight: 600; font-size: 0.95rem; }
.a2-testi-meta { font-size: 0.62rem; letter-spacing: 0.1em; color: var(--fg-mute); margin-top: 4px; }

/* ---- assess teaser ---- */
.a2-assess { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.a2-assess h2 { margin: 18px 0 20px; }
.a2-assess-points { margin: 28px 0 6px; padding: 0; list-style: none; }
.a2-assess-points li { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.92rem; }
.a2-assess-points .k { color: var(--teal); padding-top: 3px; white-space: nowrap; min-width: 42px; }
.a2-btnrow { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
@media (max-width: 900px) { .a2-assess { grid-template-columns: 1fr; gap: 48px; } }

.a2-phone {
  width: min(360px, 100%); margin: 0 auto; border: 1px solid var(--line); border-radius: 22px;
  padding: 26px 24px 30px; background: var(--panel-solid);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.25);
}
.a2-phone-q { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.25; margin: 14px 0 22px; letter-spacing: -0.01em; }
.a2-phone-opt {
  display: block; width: 100%; text-align: left; padding: 13px 16px;
  border: 1px solid var(--line); border-radius: 6px; background: transparent;
  color: inherit; font-size: 0.9rem; margin-bottom: 9px;
}
.a2-phone-opt.sel { border-color: var(--teal); background: var(--row-hi); }
.a2-phone-prog { height: 3px; background: var(--line); border-radius: 2px; margin-top: 14px; overflow: hidden; }
.a2-phone-prog span { display: block; height: 100%; width: 28%; background: var(--teal); }

/* ---- visit (dark) ---- */
.a2-visit { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.a2-visit-copy { padding: 56px; border-right: 1px solid var(--line); }
.a2-visit-copy h2 { margin: 18px 0; font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
.a2-visit-hours { margin: 30px 0 0; max-width: 380px; }
.a2-visit-hours div { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--line); font-size: 0.92rem; }
.a2-visit-photo { position: relative; overflow: hidden; min-height: 420px; display: block; }
.a2-visit-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .6s var(--ease); }
.a2-visit-photo:hover img { transform: scale(1.03); }
.a2-coord {
  position: absolute; left: 20px; bottom: 18px; z-index: 2;
  font-size: 0.62rem; letter-spacing: 0.12em; color: #fff;
  background: rgba(0,0,0,0.55); padding: 8px 14px; border-radius: 3px;
}
@media (max-width: 900px) {
  .a2-visit { grid-template-columns: 1fr; }
  .a2-visit-copy { border-right: 0; border-bottom: 1px solid var(--line); padding: 36px 24px; }
}

/* ---- hero launch banner: square it off ---- */
.hero-launch { border-radius: 4px; align-self: flex-start; }
.hero-launch-badge { border-radius: 2px; color: var(--accent-ink); }

/* ---- BodyMap / Quiz on light zone ---- */
.zone-light .bodymap-img { filter: invert(1) opacity(0.85); }
.zone-light .bodymap-figure { background: radial-gradient(ellipse at center, rgba(47,193,178,0.07), transparent 70%); border-radius: 0; }
.zone-light .bodymap-tag { background: transparent; border: 1px solid var(--line-light); border-radius: 3px; white-space: nowrap; }
.zone-light .bodymap-viewtoggle { background: var(--panel-solid); border-color: var(--line-light); border-radius: 4px; }
.zone-light .bodymap-viewtoggle button { border-radius: 3px; }
.zone-light .bodymap-viewtoggle button.active { color: var(--accent-ink); }
.zone-light .bodymap-title { font-family: var(--font-display); font-weight: 600; letter-spacing: var(--display-tracking); }
.zone-light .quiz-opt { background: var(--panel-solid); border-radius: 6px; }
.zone-light .quiz-opt:hover { background: var(--row-hi); }
.zone-light .quiz-opt-label { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.zone-light .quiz-q { font-family: var(--font-display); font-weight: 600; letter-spacing: var(--display-tracking); }
.zone-light .guide-panel { background: transparent; border: 0; padding: 0; }


/* ============================================================
   ===== A2 ROLLOUT — inner pages (services/about/booking/
   contact/resources/blog/assess): dark sub-hero, light body ====
   ============================================================ */

/* dark sub-hero gets the technical grid + hairline base */
.sub-hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.sub-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
}
.sub-hero .container { position: relative; z-index: 2; }

/* light-zone aliases used by blog / contact inline styles */
.zone-light { --surface-2: #FDFEFE; }

/* surfaces on light zone: white panels, hairline borders, squared corners */
.zone-light .card,
.zone-light .svc-big,
.zone-light .svc-intro-aside,
.zone-light .booking-form,
.zone-light .aside-block,
.zone-light .assess-tool,
.zone-light .assess-tier,
.zone-light .assess-result-block,
.zone-light .assess-new-build-note,
.zone-light .assess-tool-opt,
.zone-light .finder-input,
.zone-light .help-choose-card,
.zone-light .faq,
.zone-light .team-card {
  background: var(--panel-solid);
  border-color: var(--line-light);
}
.zone-light .svc-big.featured,
.zone-light .assess-tier.premium { background: var(--row-hi); border-color: rgba(47,193,178,0.35); }
.zone-light .assess-upsell { background: var(--row-hi); border-color: rgba(47,193,178,0.35); }

/* squared corners for the big inner-page cards */
.svc-big, .booking-form, .assess-tool, .assess-tier, .assess-card,
.svc-intro-aside, .aside-block, .cta-block, .help-choose-card { border-radius: var(--radius-lg); }
.assess-tool-opt, .assess-result-block, .assess-new-build-note, .assess-upsell { border-radius: var(--radius); }

/* forms on light zone */
.zone-light .field input, .zone-light .field select, .zone-light .field textarea {
  background: var(--cream); border-color: var(--line-light); color: var(--ink);
}
.zone-light .field input:focus, .zone-light .field select:focus, .zone-light .field textarea:focus {
  border-color: var(--teal); background: #fff;
}
.zone-light .field label { color: var(--fg-mute); }

/* chips / small ui on light zone */
.zone-light .chip { background: var(--row-hi); }
/* hierarchy: teal mono group label (accent) above > quiet ink chips below */
.zone-light .team-chip { background: var(--panel-solid); border-color: rgba(16,31,28,0.16); color: rgba(16,31,28,0.72); }
.zone-light .btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.zone-light .btn-ghost:hover { border-color: var(--teal); color: var(--teal-deep); background: var(--row-hi); }

/* section headers inside light zones keep mono index feel */
.zone-light .eyebrow { color: var(--teal-deep); }
.zone-light .eyebrow::before { background: var(--teal-deep); }

/* blog post body on light */
.zone-light .blog-post-body p, .zone-light .blog-post-body li { color: rgba(16,31,28,0.78); }
.zone-light blockquote { color: var(--ink); }

/* CTA block stays a dark bookend on light pages */
.section-cta { background: transparent; }
.cta-block { border: 1px solid var(--line); }


/* ===== A2 rollout fix: legacy heading rules now use the display face ===== */
.svc-big h2, .tech-card h3, .quiz-q, .quiz-opt-label, .finder-name, .faq-q,
.assess-tool-q, .assess-card h2, .assess-card h3, .process-card h3,
.value strong, .pillar-title, .bodymap-title, .report-headline h2, .phase-card h4 {
  font-weight: 600; letter-spacing: var(--display-tracking); font-style: normal;
}
/* tech cards: keep the icon visible but reserve space for it on narrow viewports */
@media (max-width: 1100px) and (min-width: 641px) {
  .tech-card-with-icon { padding: 28px 194px 28px 28px; min-height: 188px; }
  .tech-card-with-icon .tech-icon { display: block; width: 152px; height: 152px; right: 18px; bottom: 18px; }
}
/* keep technique cards wide enough for the reserved icon column */
@media (max-width: 1100px) and (min-width: 861px) {
  .techniques-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .techniques-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tech-card-with-icon .tech-icon { display: block; }
}


/* ===== vNEXT: light-zone micro-label legibility (About pills et al.) =====
   Brand teal (#2FC1B2) is a dark-zone colour - on cream/white it reads ~2.2:1.
   Micro-labels in light zones use a deepened teal that clears 4.5:1. */
.zone-light .mono.teal { color: #0E7C72; }
.zone-light .tech-badge { color: #0E7C72; border-color: rgba(14,124,114,0.4); }

/* ===== vNEXT: sketch-art ambient layers (user artwork, tinted PNGs) ===== */
.svc-ambient .sa-imgwrap { position: absolute; pointer-events: none; user-select: none; }
.svc-ambient .sa-imgwrap img { width: 100%; height: auto; display: block; }
/* height-based sizing: art spans the full hero height (crops at overflow:hidden) */
.svc-ambient .sa-fillh { height: 115%; }
.svc-ambient .sa-fillh img { height: 100%; width: auto; }
/* mobile: 3-5 elements — per-item sizes, still clearly visible behind text */
@media (max-width: 700px) {
  .svc-ambient .sa-m-hide { display: none; }
  .svc-ambient .sa-imgwrap { opacity: 0.22 !important; }
  .svc-ambient .sa-m-lg { width: 56% !important; }
  .svc-ambient .sa-m-md { width: 36% !important; }
  .svc-ambient .sa-m-sm { width: 24% !important; }
  .svc-ambient .sa-fillh { height: 88% !important; width: auto !important; }
  /* pieces that must stay clearly visible on mobile (beats the generic .22 above) */
  .svc-ambient .sa-m-strong { opacity: 0.34 !important; }
}