/* Rx Medical Web — 2026 redesign
   Concept: the prescription pad. One bold object (the pad), everything else quiet.
   Palette comes from the logo (green → cyan) on a deep teal ink, plus the yellow
   and pink of carbonless prescription copies. */

:root {
  --ink: #0b2f38;
  --ink-2: #134450;
  --ink-soft: #46626a;
  --paper: #ffffff;
  --mint: #eef6f3;
  --rule: #d3e2dd;
  --green: #00e060;        /* logo green, for dark backgrounds */
  --cyan: #00c0d0;         /* logo cyan, for dark backgrounds */
  --teal-text: #0a7585;    /* text-safe teal on white */
  --green-text: #0a7a49;   /* text-safe green on white */
  --copy-yellow: #ffe680;
  --copy-pink: #f8c8d2;
  --pen: #1d3fa8;          /* ballpoint blue */

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-text); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-stretch: 112%;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); letter-spacing: -0.035em; line-height: 0.98; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; line-height: 1.2; }
h4 { font-size: 1.05rem; letter-spacing: 0; line-height: 1.3; }
p { margin: 0 0 1.1em; }
.lead { font-size: clamp(1.125rem, 1.5vw, 1.3rem); line-height: 1.5; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--copy-yellow); color: var(--ink); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 650; font-stretch: 105%; line-height: 1.2;
  padding: 0.85em 1.4em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--green); color: var(--ink); }
.btn-primary:hover { background: #5cf09a; color: var(--ink); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }

/* ---------- header ---------- */
.site-header { background: var(--ink); color: #fff; position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.brand { flex: none; display: block; }
.brand img { width: 212px; height: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav > a, .nav-services > button {
  font: inherit; font-size: 1rem; font-weight: 500; color: #fff; background: none; border: 0;
  padding: 10px 14px; border-radius: 8px; text-decoration: none; cursor: pointer;
}
.nav > a:hover, .nav-services > button:hover, .nav > a[aria-current="page"] { background: rgba(255,255,255,.1); color: #fff; }
.nav-services { position: relative; }
.nav-services > button::after {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}
.menu {
  position: absolute; right: -180px; top: calc(100% + 14px); width: min(760px, 92vw);
  background: #fff; color: var(--ink); border-radius: 14px; padding: 26px 28px;
  box-shadow: 0 24px 60px -20px rgba(4, 30, 37, .55), 0 0 0 1px rgba(11,47,56,.08);
  display: none; grid-template-columns: repeat(4, 1fr); gap: 8px 24px;
}
.nav-services.open .menu, .nav-services:focus-within .menu { display: grid; }
@media (hover: hover) and (min-width: 981px) { .nav-services:hover .menu { display: grid; } .nav-services:hover .menu::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; } }
.menu .mh { font-size: .85rem; font-weight: 600; color: var(--green-text); margin: 0 0 6px; font-stretch: 100%; }
.menu a { display: block; padding: 5px 0; color: var(--ink); text-decoration: none; font-size: .97rem; line-height: 1.3; }
.menu a:hover { color: var(--teal-text); text-decoration: underline; }
.header-cta { display: flex; align-items: center; gap: 18px; margin-left: 12px; }
.header-phone { color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.header-phone:hover { color: var(--green); }
.header-cta .btn { padding: 0.65em 1.15em; font-size: .97rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 2px solid rgba(255,255,255,.4); color: #fff; font: inherit; font-weight: 600; padding: 8px 14px; border-radius: 999px; cursor: pointer; }

@media (max-width: 1100px) { .header-phone { display: none; } }
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .header-phone { display: block; }
  .site-header .wrap { flex-wrap: wrap; min-height: 72px; gap: 12px; }
  .brand img { width: 176px; }
  .nav, .header-cta { display: none; width: 100%; margin: 0; }
  .site-header.open .nav { display: flex; flex-direction: column; align-items: stretch; padding-bottom: 8px; }
  .site-header.open .header-cta { display: flex; flex-wrap: wrap; padding-bottom: 22px; }
  .nav > a, .nav-services > button { text-align: left; width: 100%; padding: 12px 4px; font-size: 1.1rem; }
  .menu { position: static; width: 100%; box-shadow: none; background: rgba(255,255,255,.06); color: #fff; grid-template-columns: 1fr 1fr; padding: 18px; margin: 4px 0 10px; }
  .menu a { color: #fff; } .menu a:hover { color: var(--green); } .menu .mh { color: var(--green); }
}
@media (max-width: 520px) { .menu { grid-template-columns: 1fr; } }

/* ---------- hero ---------- */
.hero { background: var(--ink); color: #fff; padding: clamp(36px, 6vw, 84px) 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { color: #cfe3e0; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* the prescription pad */
.pad { position: relative; max-width: 440px; margin-inline: auto; width: 100%; transform: rotate(2.2deg); }
.pad::before, .pad::after { content: ""; position: absolute; inset: 0; border-radius: 4px; }
.pad::before { background: var(--copy-pink); transform: rotate(-5deg) translate(-10px, 8px); }
.pad::after { background: var(--copy-yellow); transform: rotate(-2.4deg) translate(-4px, 5px); }
.pad-sheet {
  position: relative; z-index: 1; background: #fff; color: var(--ink); border-radius: 4px;
  padding: 26px 28px 24px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.pad-head { display: flex; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; font-size: .8rem; line-height: 1.35; }
.pad-head strong { display: block; font-size: 1.02rem; font-stretch: 112%; letter-spacing: -.01em; }
.pad-head span { color: var(--ink-soft); }
.pad-head .pad-tel { text-align: right; white-space: nowrap; }
.pad-fields { display: grid; grid-template-columns: 1.6fr 1fr; gap: 0 18px; margin-top: 14px; }
.pad-field { display: flex; align-items: baseline; gap: 8px; border-bottom: 1px solid var(--rule); padding: 2px 0 1px; font-size: .78rem; color: var(--ink-soft); }
.hand { font-family: var(--hand); font-weight: 600; color: var(--pen); font-size: 1.55rem; line-height: 1.15; }
.pad-body { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin-top: 16px; min-height: 210px; }
.pad-rx { font-family: "Times New Roman", "Apple Symbols", "Segoe UI Symbol", "Noto Sans Symbols", serif; font-size: 3.4rem; line-height: 1; color: var(--ink); }
.pad-lines { list-style: none; margin: 6px 0 0; padding: 0; }
.pad-lines li { font-family: var(--hand); font-weight: 600; color: var(--pen); font-size: 1.62rem; line-height: 1.12; padding: 5px 0 6px; border-bottom: 1px dashed var(--rule); }
.pad-lines small { display: block; font-size: 1.18rem; font-weight: 500; opacity: .85; }
.pad-foot { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; align-items: end; margin-top: 16px; font-size: .78rem; color: var(--ink-soft); }
.pad-sign { border-top: 1px solid var(--ink); padding-top: 4px; text-align: center; position: relative; }
.pad-sign .hand { position: absolute; left: 0; right: 0; bottom: 100%; font-size: 1.9rem; transform: rotate(-3deg); white-space: nowrap; }

@media (prefers-reduced-motion: no-preference) {
  .js .pad .write { clip-path: inset(0 100% 0 0); animation: write .7s cubic-bezier(.3,.7,.3,1) forwards; animation-delay: .35s; }
  .js .pad-lines .write:nth-child(1) { animation-delay: .9s; }
  .js .pad-lines .write:nth-child(2) { animation-delay: 1.45s; }
  .js .pad-lines .write:nth-child(3) { animation-delay: 2.0s; }
  .js .pad-lines .write:nth-child(4) { animation-delay: 2.55s; }
  .js .pad-sign .write { animation-delay: 3.2s; animation-duration: .5s; }
  @keyframes write { to { clip-path: inset(0 -5% 0 0); } }
}

/* chart-header facts under the hero */
.facts { margin: clamp(40px, 6vw, 80px) 0 0; border-top: 1px solid rgba(255,255,255,.22); display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 22px 24px 30px 0; }
.fact + .fact { border-left: 1px solid rgba(255,255,255,.22); padding-left: 24px; }
.fact dt { font-size: .9rem; color: #a9c8c6; margin-bottom: 4px; }
.fact dd { margin: 0; font-size: clamp(1.15rem, 1.9vw, 1.5rem); font-weight: 650; font-stretch: 110%; line-height: 1.2; letter-spacing: -.01em; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .pad { transform: rotate(1.2deg); margin-top: 12px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.22); }
}
@media (max-width: 420px) {
  .pad-sheet { padding: 20px 18px; }
  .pad-lines li { font-size: 1.4rem; } .pad-lines small { font-size: 1.05rem; }
  .fact { padding-right: 12px; } .fact + .fact { padding-left: 14px; } .fact:nth-child(3) { padding-left: 0; }
}

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section-mint { background: var(--mint); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--ink-soft); max-width: 32em; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* formulary: the service index */
.formulary { border-top: 2px solid var(--ink); }
.formulary-group { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 0 32px; border-bottom: 2px solid var(--ink); }
.formulary-group > h3 { padding-top: 24px; margin: 0; }
.formulary-group > h3 small { display: block; font-size: .95rem; font-weight: 400; font-stretch: 100%; letter-spacing: 0; color: var(--ink-soft); margin-top: 6px; max-width: 16em; line-height: 1.4; }
.formulary-list { list-style: none; margin: 0; padding: 0; }
.formulary-list li + li { border-top: 1px solid var(--rule); }
.formulary-list a {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) 20px; gap: 6px 24px; align-items: baseline;
  padding: 20px 0; text-decoration: none; color: var(--ink);
}
.formulary-list b { font-size: 1.2rem; font-weight: 650; font-stretch: 108%; letter-spacing: -.01em; line-height: 1.25; }
.formulary-list span { color: var(--ink-soft); font-size: 1rem; line-height: 1.45; }
.formulary-list i { width: 9px; height: 9px; border-right: 2px solid var(--ink); border-top: 2px solid var(--ink); transform: rotate(45deg); align-self: center; justify-self: end; opacity: .3; transition: opacity .15s, transform .15s; }
.formulary-list a:hover b { color: var(--teal-text); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 2px; }
.formulary-list a:hover i { opacity: 1; transform: translateX(4px) rotate(45deg); }
@media (max-width: 860px) {
  .formulary-group { grid-template-columns: 1fr; }
  .formulary-group > h3 { padding-bottom: 6px; }
  .formulary-list a { grid-template-columns: 1fr 20px; }
  .formulary-list span { grid-column: 1; }
  .formulary-list i { grid-row: 1; grid-column: 2; }
}

/* yellow copy: free analysis */
.copy-sheet { background: var(--copy-yellow); }
.copy-sheet .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 56px; align-items: center; padding-block: clamp(48px, 6vw, 80px); }
.copy-sheet h2 { margin-bottom: .4em; }
.copy-sheet p { max-width: 36em; margin: 0; }
.copy-sheet .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 820px) { .copy-sheet .wrap { grid-template-columns: 1fr; } .copy-sheet .actions { justify-content: flex-start; } }

/* work */
.work { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; }
.work a { display: block; text-decoration: none; color: var(--ink); }
.work a:first-child { grid-row: span 2; }
.shot { border-radius: 10px; overflow: hidden; background: var(--ink); box-shadow: 0 0 0 1px rgba(11,47,56,.14), 0 26px 50px -30px rgba(11,47,56,.5); }
.shot::before { content: ""; display: block; height: 26px; background: radial-gradient(circle at 16px 13px, #f8c8d2 4.5px, transparent 5px), radial-gradient(circle at 32px 13px, #ffe680 4.5px, transparent 5px), radial-gradient(circle at 48px 13px, #00e060 4.5px, transparent 5px), var(--ink); }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.work a:hover .shot img { transform: scale(1.025); }
.work h3 { margin: 16px 0 2px; }
.work p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
@media (max-width: 760px) { .work { grid-template-columns: 1fr; } .work a:first-child { grid-row: auto; } }

/* plain columns */
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 48px; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.cols-3 > div, .cols-2 > div { border-top: 2px solid var(--ink); padding-top: 18px; }
.cols-3 p, .cols-2 p { color: var(--ink-soft); margin: 0; }
@media (max-width: 820px) { .cols-3, .cols-2 { grid-template-columns: 1fr; } }

/* testimonials */
.quote-lead { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px 56px; align-items: start; }
.quote-lead blockquote { margin: 0; font-size: clamp(1.35rem, 2.3vw, 1.9rem); line-height: 1.35; font-weight: 500; letter-spacing: -.012em; text-wrap: pretty; }
.who { display: flex; align-items: center; gap: 14px; }
.who img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex: none; background: var(--rule); }
.who b { display: block; line-height: 1.25; }
.who span { color: var(--ink-soft); font-size: .95rem; }
.quote-lead .who { margin-top: 26px; }
.quote-lead .who img { width: 76px; height: 76px; }
.quote-aside { border-left: 2px solid var(--ink); padding-left: 24px; }
.quote-aside p { color: var(--ink-soft); }
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--rule); }
.quotes figure { margin: 0; padding: 28px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 18px; justify-content: space-between; }
.quotes blockquote { margin: 0; font-size: 1.12rem; line-height: 1.5; }
@media (max-width: 820px) { .quote-lead, .quotes { grid-template-columns: 1fr; } .quote-aside { border-left: 0; padding-left: 0; border-top: 2px solid var(--ink); padding-top: 18px; } }

/* closing call to action */
.closing { background: var(--ink); color: #fff; }
.closing .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: center; padding-block: clamp(56px, 8vw, 104px); }
.closing h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); letter-spacing: -.03em; line-height: 1; }
.closing p { color: #cfe3e0; max-width: 30em; margin: 0; }
.closing-contact { display: grid; gap: 2px; }
.closing-contact a.big { color: #fff; text-decoration: none; font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 650; font-stretch: 110%; letter-spacing: -.02em; line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.closing-contact a.big:hover { color: var(--green); }
.closing-contact .btn { justify-self: start; margin-top: 22px; }
@media (max-width: 820px) { .closing .wrap { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: #072329; color: #b8d1cf; font-size: .97rem; }
.site-footer .wrap { padding-block: 56px 32px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px 40px; }
.site-footer .fh { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; line-height: 1.35; }
.site-footer a { color: #b8d1cf; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.55; margin-top: 18px; }
.footer-brand img { width: 196px; }
.footer-legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .9rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- inner pages ---------- */
.page-head { background: var(--ink); color: #fff; padding: clamp(28px, 4vw, 52px) 0 clamp(44px, 6vw, 76px); }
.crumbs { font-size: .93rem; color: #a9c8c6; margin-bottom: clamp(20px, 3vw, 36px); }
.crumbs a { color: #a9c8c6; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { margin-inline: 8px; opacity: .6; }
.page-head h1 { font-size: clamp(2.2rem, 4.8vw, 3.75rem); max-width: 17em; margin-bottom: .3em; }
.page-head .lead { color: #cfe3e0; max-width: 40em; margin: 0; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px clamp(40px, 6vw, 88px); align-items: start; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } }

.prose { max-width: 44rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-top: 1.9em; }
.prose h3 { margin-top: 1.7em; }
.prose ul { list-style: none; padding: 0; margin: 0 0 1.4em; }
.prose ul li { position: relative; padding: 9px 0 9px 30px; border-bottom: 1px solid var(--rule); line-height: 1.45; }
.prose ul li:first-child { border-top: 1px solid var(--rule); }
.prose ul li::before { content: ""; position: absolute; left: 3px; top: 15px; width: 13px; height: 7px; border-left: 2.5px solid var(--green-text); border-bottom: 2.5px solid var(--green-text); transform: rotate(-45deg); }
.prose ul.two { columns: 2; column-gap: 40px; }
.prose ul.two li { break-inside: avoid; }
.prose ul.two li:first-child { border-top: 0; }
@media (max-width: 560px) { .prose ul.two { columns: 1; } }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: 8px; box-shadow: 0 0 0 1px rgba(11,47,56,.1); }
.prose figcaption { font-size: .92rem; color: var(--ink-soft); margin-top: 8px; }
.prose .note { background: var(--mint); border-left: 4px solid var(--green); padding: 18px 22px; margin: 1.6em 0; border-radius: 0 8px 8px 0; }
.prose .note p:last-child { margin: 0; }
.prose .meta { color: var(--ink-soft); font-size: .95rem; }

.steps { list-style: none; counter-reset: step; margin: 1.2em 0 1.6em; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.prose .steps li { counter-increment: step; border: 0; border-top: 2px solid var(--ink); padding: 12px 0 0; font-weight: 650; font-stretch: 108%; line-height: 1.25; }
.prose .steps li::before { content: counter(step); position: static; display: block; width: auto; height: auto; border: 0; transform: none; font-family: var(--hand); font-size: 2rem; color: var(--pen); line-height: 1; margin-bottom: 4px; font-weight: 600; }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr 1fr; } }

.prose .timeline { margin: 1.2em 0 0; }
.prose .timeline li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 20px; padding: 16px 0; }
.prose .timeline li::before { display: none; }
.timeline b { font-family: var(--hand); font-size: 1.8rem; color: var(--pen); line-height: 1; font-weight: 600; }

/* sidebar: a small prescription slip */
.slip { position: sticky; top: 24px; }
.slip-card { background: var(--copy-yellow); border-radius: 4px; padding: 26px 26px 28px; transform: rotate(-1deg); box-shadow: 0 22px 40px -28px rgba(11,47,56,.6); }
.slip-card h2 { font-size: 1.45rem; margin-bottom: .45em; }
.slip-card p { font-size: .98rem; margin-bottom: 1em; }
.slip-card a.big { display: block; color: var(--ink); text-decoration: none; font-weight: 700; font-stretch: 110%; font-size: 1.4rem; letter-spacing: -.015em; line-height: 1.3; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.slip-card a.big + a.big { font-size: 1.02rem; font-weight: 600; letter-spacing: 0; }
.slip-card a.big:hover { text-decoration: underline; }
.slip-card .btn { margin-top: 18px; width: 100%; }
.slip-more { margin-top: 36px; }
.slip-more h3 { font-size: 1rem; margin-bottom: 8px; }
.slip-more ul { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.slip-more li { border-bottom: 1px solid var(--rule); }
.slip-more a { display: block; padding: 10px 0; color: var(--ink); text-decoration: none; line-height: 1.3; }
.slip-more a:hover { color: var(--teal-text); text-decoration: underline; }
@media (max-width: 960px) { .slip { position: static; max-width: 420px; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(40px, 6vw, 88px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { margin: 0; border-top: 2px solid var(--ink); }
.contact-list div { display: grid; grid-template-columns: 7rem 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.contact-list dt { color: var(--ink-soft); }
.contact-list dd { margin: 0; font-weight: 550; }
.contact-list a { color: var(--ink); }
.form { background: var(--mint); border-radius: 10px; padding: clamp(24px, 4vw, 40px); }
.form h2 { font-size: 1.7rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: .95rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #b9cfc9; border-radius: 8px; padding: 12px 14px;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--cyan); outline-offset: 1px; border-color: var(--ink); }
.field textarea { min-height: 140px; resize: vertical; }
.form small { display: block; color: var(--ink-soft); margin-top: 14px; line-height: 1.45; }

/* portfolio page */
.work-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.work-3 a { text-decoration: none; color: var(--ink); display: block; }
.work-3 h2, .work-3 h3 { font-size: 1.3rem; margin: 16px 0 2px; }
.work-3 p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.work-3 a:hover .shot img { transform: scale(1.025); }
@media (max-width: 860px) { .work-3 { grid-template-columns: 1fr; } }

/* ---------- hero video ---------- */
.hero-video { position: relative; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-video::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,38,46,.93) 0%, rgba(8,38,46,.8) 36%, rgba(8,38,46,.3) 70%, rgba(8,38,46,.16) 100%),
    linear-gradient(0deg, rgba(8,38,46,.96) 0%, rgba(8,38,46,.5) 20%, rgba(8,38,46,0) 42%);
}
.hero-video .wrap { position: relative; }
.hero-video .hero-grid { min-height: min(62vh, 620px); }
.hero-video h1 { text-shadow: 0 2px 30px rgba(4,24,30,.5); }
@media (max-width: 900px) {
  .hero-video::before { background: linear-gradient(0deg, rgba(8,38,46,.97) 0%, rgba(8,38,46,.86) 55%, rgba(8,38,46,.7) 100%); }
}
@media (prefers-reduced-motion: reduce) { .hero-bg { display: none; } .hero-video { background: var(--ink) url(/assets/img/hero-clinic.jpg) center / cover; } }

/* ---------- formulary as a two-column index ---------- */
.formulary-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; padding: 8px 0 14px; }
.formulary-list li, .formulary-list li + li { border-top: 0; border-bottom: 1px solid var(--rule); }
.formulary-list a { display: block; padding: 16px 28px 16px 0; position: relative; }
.formulary-list a::after { content: ""; position: absolute; right: 6px; top: 24px; width: 8px; height: 8px; border-right: 2px solid var(--ink); border-top: 2px solid var(--ink); transform: rotate(45deg); opacity: .25; transition: opacity .15s, transform .15s; }
.formulary-list a:hover::after { opacity: 1; transform: translateX(4px) rotate(45deg); }
.formulary-list b { display: block; font-size: 1.12rem; margin-bottom: 2px; }
.formulary-list span { display: block; font-size: .96rem; }
.formulary-group { padding-bottom: 10px; }
@media (max-width: 640px) { .formulary-list { grid-template-columns: 1fr; } }

/* ---------- AI band ---------- */
.ai-band { background: radial-gradient(120% 90% at 85% 0%, #14505c 0%, var(--ink) 55%, #072329 100%); color: #fff; }
.ai-band .section-head p { color: #b9d4d2; }
.ai-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ai-card { display: flex; flex-direction: column; color: #fff; text-decoration: none; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; padding: 14px 14px 26px; transition: background-color .2s, border-color .2s, transform .3s cubic-bezier(.2,.7,.2,1); }
.ai-card:hover { color: #fff; background: rgba(255,255,255,.09); border-color: rgba(0,224,96,.55); transform: translateY(-4px); }
.ai-card .anim { margin: 0 0 22px; }
.ai-card h3 { font-size: 1.45rem; margin: 0 12px .35em; }
.ai-card p { margin: 0 12px; color: #b9d4d2; font-size: 1rem; }
@media (max-width: 900px) { .ai-grid { grid-template-columns: 1fr; max-width: 520px; } }

/* ---------- split (photo + text) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px clamp(40px, 6vw, 88px); align-items: center; }
.split-img { border-radius: 18px; aspect-ratio: 4 / 4.4; object-fit: cover; width: 100%; box-shadow: 0 40px 70px -40px rgba(11,47,56,.6); }
.split-cols { margin-top: 32px; }
.split-cta { margin: 32px 0 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split-img { aspect-ratio: 16 / 10; } }

/* ---------- page head with photo ---------- */
.page-head-grid { display: grid; grid-template-columns: 1fr; gap: 32px clamp(32px, 5vw, 72px); align-items: center; }
.has-img .page-head-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.page-head-img { border-radius: 18px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.has-img { padding-bottom: clamp(36px, 5vw, 60px); }
@media (max-width: 860px) { .has-img .page-head-grid { grid-template-columns: 1fr; } .page-head-img { aspect-ratio: 16 / 9; } }

/* ---------- footer rows ---------- */
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px 40px; padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.14); }
.site-footer .fh.gap { margin-top: 22px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }
.quote-lead figure { margin: 0; }

/* ---------- animated graphics ---------- */
.anim { margin: 0 0 2.2em; background: var(--ink); color: #fff; border-radius: 16px; padding: clamp(20px, 3vw, 32px); overflow: hidden; position: relative; }
.prose .anim figcaption { color: #9fc0be; font-size: .88rem; margin-top: 18px; }
.ai-card .anim { background: #08262e; min-height: 268px; display: grid; align-content: center; }
.section-mint > .wrap > .anim { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px rgba(11,47,56,.08), 0 30px 60px -40px rgba(11,47,56,.45); padding: clamp(28px, 4vw, 52px) clamp(20px, 3vw, 40px); margin: 0; }

/* flow */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); position: relative; --t: calc(var(--n) * 1.15s); }
.flow::before { content: ""; position: absolute; left: calc(50% / var(--n)); right: calc(50% / var(--n)); top: 13px; height: 2px; background: currentColor; opacity: .22; }
.flow::after { content: ""; position: absolute; top: 8px; left: calc(50% / var(--n) - 6px); width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 6px rgba(0,224,96,.22), 0 0 22px 4px rgba(0,224,96,.6); }
.prose .flow li, .flow li { border: 0; padding: 0 6px; text-align: center; position: relative; }
.prose .flow li::before, .flow li::before { content: ""; position: static; display: block; transform: none; width: 28px; height: 28px; margin: 0 auto 14px; border-radius: 50%; border: 2px solid currentColor; background: var(--ink); position: relative; z-index: 1; }
.section-mint .flow li::before { background: #fff; }
.flow span { display: block; font-size: .95rem; font-weight: 600; line-height: 1.25; font-stretch: 104%; text-wrap: balance; }
@media (max-width: 640px) {
  .flow { grid-template-columns: 1fr; gap: 14px; }
  .flow::before { left: 13px; right: auto; top: 14px; bottom: 14px; width: 2px; height: auto; }
  .flow::after { display: none; }
  .prose .flow li, .flow li { display: flex; align-items: center; gap: 14px; text-align: left; padding: 0; }
  .prose .flow li::before, .flow li::before { margin: 0; flex: none; }
}

/* serp */
.serp { max-width: 340px; margin-inline: auto; width: 100%; }
.serp-bar { display: flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); border-radius: 999px; padding: 9px 16px; font-size: .95rem; font-weight: 500; }
.serp-bar i { width: 13px; height: 13px; border: 2px solid var(--ink-soft); border-radius: 50%; flex: none; position: relative; }
.serp-bar i::after { content: ""; position: absolute; width: 6px; height: 2px; background: var(--ink-soft); right: -6px; bottom: -3px; transform: rotate(45deg); }
.serp-rows { position: relative; height: 196px; margin-top: 14px; }
.serp-row { position: absolute; left: 0; right: 0; height: 42px; border-radius: 10px; background: rgba(255,255,255,.08); display: flex; align-items: center; gap: 10px; padding: 0 14px; }
.serp-row b { display: block; width: 38%; height: 9px; border-radius: 5px; background: rgba(255,255,255,.32); }
.serp-row u { display: block; flex: 1; height: 7px; border-radius: 4px; background: rgba(255,255,255,.14); }
.serp-row.r1 { top: 0; } .serp-row.r2 { top: 51px; } .serp-row.r3 { top: 102px; }
.serp-row.you { top: 0; background: var(--green); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(0,224,96,.7); z-index: 1; }
.serp-row.you b { width: auto; height: auto; background: none; font-size: .95rem; font-weight: 700; white-space: nowrap; }
.serp-row.you u { background: rgba(11,47,56,.2); }
.serp-row.you em { font-style: normal; font-size: .72rem; letter-spacing: 1px; }
.serp-row.r1 { transform: translateY(51px); } .serp-row.r2 { transform: translateY(51px); } .serp-row.r3 { transform: translateY(51px); }

/* chat */
.chat { display: flex; flex-direction: column; gap: 10px; max-width: 380px; margin-inline: auto; width: 100%; }
.chat p, .prose .chat p { margin: 0; padding: 10px 15px; border-radius: 18px; font-size: .95rem; line-height: 1.38; max-width: 86%; }
.chat .them { align-self: flex-end; background: rgba(255,255,255,.14); border-bottom-right-radius: 6px; }
.chat .us { align-self: flex-start; background: var(--green); color: var(--ink); border-bottom-left-radius: 6px; font-weight: 500; }

/* chart */
.chart { max-width: 460px; margin-inline: auto; width: 100%; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .86rem; color: #cfe3e0; margin-bottom: 14px; }
.chart-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; }
.chart-legend .k1::before { background: var(--green); }
.chart-legend .k2::before { background: var(--copy-yellow); height: 3px; vertical-align: middle; }
.chart-plot { position: relative; height: 170px; border-bottom: 1px solid rgba(255,255,255,.3); }
.chart-bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 4%; padding: 0 2%; }
.chart-bars i { flex: 1; height: var(--h); background: linear-gradient(180deg, var(--green), var(--cyan)); border-radius: 6px 6px 0 0; transform-origin: bottom; }
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart path { fill: none; stroke: var(--copy-yellow); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }

/* stars */
.stars { max-width: 340px; margin-inline: auto; width: 100%; text-align: center; }
.stars-row { font-size: 2.5rem; line-height: 1; letter-spacing: 6px; color: var(--copy-yellow); }
.stars-row i { font-style: normal; display: inline-block; }
.stars-cards { display: grid; gap: 9px; margin-top: 20px; }
.stars-cards div { background: rgba(255,255,255,.08); border-radius: 10px; padding: 11px 14px; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; }
.stars-cards b { color: var(--copy-yellow); font-size: .72rem; letter-spacing: 1px; grid-row: span 2; }
.stars-cards u { display: block; height: 7px; border-radius: 4px; background: rgba(255,255,255,.3); }
.stars-cards u.s { width: 60%; background: rgba(255,255,255,.14); }

/* build */
.build { max-width: 440px; margin-inline: auto; width: 100%; background: #fff; border-radius: 10px; overflow: hidden; }
.build-top { background: #dfeae7; padding: 8px 10px; display: flex; gap: 5px; }
.build-top i { width: 8px; height: 8px; border-radius: 50%; background: #a9c0bb; }
.build-page { padding: 12px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; }
.b { border-radius: 6px; background: #dfeae7; }
.b-nav { grid-column: span 6; height: 12px; }
.b-hero { grid-column: span 4; height: 104px; background: var(--ink); padding: 14px; display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.b-hero span { display: block; width: 86%; height: 9px; border-radius: 5px; background: rgba(255,255,255,.75); }
.b-hero span.s { width: 58%; background: rgba(255,255,255,.35); }
.b-hero em { margin-top: auto; font-style: normal; font-size: .68rem; font-weight: 700; color: var(--ink); background: var(--green); padding: 5px 10px; border-radius: 999px; }
.b-img { grid-column: span 2; height: 104px; background: linear-gradient(135deg, var(--cyan), var(--green)); }
.b-card { grid-column: span 2; height: 44px; }

@media (prefers-reduced-motion: no-preference) {
  /* everything below only runs once the graphic scrolls into view (.in is added by site.js) */
  .js .anim.in .flow::after { animation: flow-dot var(--t) linear infinite; }
  .js .anim.in .flow li::before { animation: flow-node var(--t) linear infinite; animation-delay: calc(var(--i) * var(--t) / var(--n)); }
  @keyframes flow-dot { 0% { left: calc(50% / var(--n) - 6px); opacity: 0; } 4% { opacity: 1; } 92% { opacity: 1; } 100% { left: calc(100% - 50% / var(--n) - 6px); opacity: 0; } }
  @keyframes flow-node { 0% { background: var(--green); border-color: var(--green); transform: scale(1.22); } 14% { transform: scale(1); } 70% { background: var(--green); border-color: var(--green); } 90%, 100% { transform: scale(1); } }

  .js .anim.in .serp-row.you { animation: serp-you 9s cubic-bezier(.5,0,.2,1) infinite; }
  .js .anim.in .serp-row.r1 { animation: serp-r1 9s cubic-bezier(.5,0,.2,1) infinite; }
  .js .anim.in .serp-row.r2 { animation: serp-r2 9s cubic-bezier(.5,0,.2,1) infinite; }
  .js .anim.in .serp-row.r3 { animation: serp-r3 9s cubic-bezier(.5,0,.2,1) infinite; }
  @keyframes serp-you { 0%, 10% { transform: translateY(153px); } 24%, 32% { transform: translateY(102px); } 46%, 54% { transform: translateY(51px); } 68%, 94% { transform: translateY(0); } 100% { transform: translateY(153px); } }
  @keyframes serp-r3 { 0%, 10% { transform: translateY(0); } 24%, 94% { transform: translateY(51px); } 100% { transform: translateY(0); } }
  @keyframes serp-r2 { 0%, 32% { transform: translateY(0); } 46%, 94% { transform: translateY(51px); } 100% { transform: translateY(0); } }
  @keyframes serp-r1 { 0%, 54% { transform: translateY(0); } 68%, 94% { transform: translateY(51px); } 100% { transform: translateY(0); } }

  .js .anim .chat p { opacity: 0; }
  .js .anim.in .chat p { animation: chat-in calc(var(--n) * 1.5s + 5s) ease infinite; animation-delay: calc(var(--i) * 1.5s); }
  @keyframes chat-in { 0% { opacity: 0; transform: translateY(12px) scale(.96); } 5%, 78% { opacity: 1; transform: none; } 84%, 100% { opacity: 0; transform: none; } }

  .js .anim .chart-bars i { transform: scaleY(0); }
  .js .anim.in .chart-bars i { animation: bar-up 8s cubic-bezier(.2,.8,.2,1) infinite; animation-delay: calc(var(--i) * .14s); }
  @keyframes bar-up { 0% { transform: scaleY(0); } 18%, 88% { transform: scaleY(1); } 96%, 100% { transform: scaleY(0); } }
  .js .anim .chart path { stroke-dashoffset: 1; }
  .js .anim.in .chart path { animation: line-draw 8s ease-in-out infinite; }
  @keyframes line-draw { 0%, 12% { stroke-dashoffset: 1; } 40%, 88% { stroke-dashoffset: 0; } 96%, 100% { stroke-dashoffset: 1; } }

  .js .anim .stars-row i { opacity: .2; }
  .js .anim.in .stars-row i { animation: star-pop 8s ease infinite; animation-delay: calc(var(--i) * .22s); }
  @keyframes star-pop { 0% { opacity: .2; transform: scale(.6) rotate(-20deg); } 6% { opacity: 1; transform: scale(1.25); } 10%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: .2; } }
  .js .anim .stars-cards div { opacity: 0; }
  .js .anim.in .stars-cards div { animation: card-in 8s ease infinite; animation-delay: calc(1.3s + var(--i) * .7s); }
  @keyframes card-in { 0% { opacity: 0; transform: translateX(26px); } 7%, 72% { opacity: 1; transform: none; } 80%, 100% { opacity: 0; transform: none; } }

  .js .anim .b { opacity: 0; }
  .js .anim.in .b { animation: block-in 8s cubic-bezier(.2,.8,.2,1) infinite; animation-delay: calc(var(--i) * .38s); }
  @keyframes block-in { 0% { opacity: 0; transform: translateY(14px) scale(.96); } 7%, 84% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: none; } }
  .js .anim.in .b-hero em { animation: cta-pulse 8s ease infinite; }
  @keyframes cta-pulse { 0%, 36% { box-shadow: 0 0 0 0 rgba(0,224,96,0); } 44% { box-shadow: 0 0 0 9px rgba(0,224,96,.35); } 54%, 100% { box-shadow: 0 0 0 16px rgba(0,224,96,0); } }

  /* gentle reveal for sections as they enter */
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.in { opacity: 1; transform: none; }
}

@media print { .site-header, .site-footer, .closing, .slip { display: none; } }

/* =====================================================================
   v2 polish: motion tokens, header, hero choreography, story, marquee,
   partner band, FAQ, video heads, next-service link
   ===================================================================== */
:root { --ease-out: cubic-bezier(.23, 1, .32, 1); --ease-in-out: cubic-bezier(.77, 0, .175, 1); }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; animation-timing-function: var(--ease-out); }
.site-header { view-transition-name: site-header; }

.btn { transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .16s var(--ease-out), box-shadow .2s ease; }
.btn:active { transform: scale(.97); }
.btn-primary { box-shadow: 0 0 0 0 rgba(0,224,96,0); }
.btn-primary:hover { box-shadow: 0 10px 30px -10px rgba(0,224,96,.65); }

/* sticky header that condenses */
.site-header { position: sticky; top: 0; transition: background-color .25s ease, box-shadow .25s ease; }
.site-header .wrap { transition: min-height .25s var(--ease-out); }
.site-header.scrolled { background: rgba(8,38,46,.82); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 14px 40px -24px rgba(0,0,0,.7); }
@media (min-width: 981px) {
  .site-header.scrolled .wrap { min-height: 64px; }
  .brand img { transition: width .25s var(--ease-out); }
  .site-header.scrolled .brand img { width: 176px; }
  /* dropdown eases out from the button instead of popping */
  .menu { display: grid; visibility: hidden; opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: 70% 0; transition: opacity .16s ease, transform .2s var(--ease-out), visibility 0s linear .2s; }
  .nav-services.open .menu, .nav-services:focus-within .menu, .nav-services:hover .menu { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
}
.slip { top: 96px; }

/* hero: one orchestrated entrance */
.hero-video .hero-grid { min-height: min(68vh, 680px); }
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .12em; margin-bottom: -.12em; }
.w > span { display: inline-block; }
.pad { transition: transform .5s var(--ease-out); will-change: transform; transform-style: preserve-3d; }
.hero-grid > :last-child { perspective: 1200px; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero .w > span { transform: translateY(105%); animation: word-up .9s var(--ease-out) forwards; animation-delay: calc(.08s + var(--i) * .045s); }
  @keyframes word-up { to { transform: none; } }
  .js .hero .lead, .js .hero .hero-actions, .js .hero .facts { opacity: 0; animation: fade-up .9s var(--ease-out) forwards; }
  .js .hero .lead { animation-delay: .5s; } .js .hero .hero-actions { animation-delay: .62s; } .js .hero .facts { animation-delay: .9s; }
  @keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  .js .hero .pad-wrap { opacity: 0; animation: pad-in 1.1s var(--ease-out) .25s forwards; }
  @keyframes pad-in { from { opacity: 0; transform: translateY(40px) rotate(6deg); } to { opacity: 1; transform: none; } }
  .js .page-head h1, .js .page-head .lead, .js .page-head .page-head-img { opacity: 0; animation: fade-up .8s var(--ease-out) forwards; }
  .js .page-head .lead { animation-delay: .08s; } .js .page-head .page-head-img { animation-delay: .16s; }
}

/* specialties marquee */
.marquee { overflow: hidden; background: var(--mint); border-block: 1px solid var(--rule); padding: 22px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 0; }
.marquee-track span { font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 650; font-stretch: 112%; letter-spacing: -.015em; white-space: nowrap; padding-right: 1.1em; display: inline-flex; align-items: center; gap: 1.1em; }
.marquee-track span::after { content: "℞"; font-family: "Times New Roman", "Apple Symbols", serif; font-weight: 400; color: var(--green-text); font-size: 1.15em; }
@media (prefers-reduced-motion: no-preference) { .marquee-track { animation: marquee 48s linear infinite; } .marquee:hover .marquee-track { animation-play-state: paused; } @keyframes marquee { to { transform: translateX(-50%); } } }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* patient story: pinned stage on desktop, stacked on phones */
.story { background: var(--ink); color: #fff; }
.story .section-head p { color: #b9d4d2; }
.story-steps { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.story-step { counter-increment: st; padding: 28px 0 40px; border-top: 1px solid rgba(255,255,255,.16); }
.story-step h3 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); letter-spacing: -.025em; line-height: 1.05; margin-bottom: .45em; }
.story-step h3::before { content: counter(st); display: block; font-family: var(--hand); font-weight: 600; font-size: 2.2rem; color: var(--green); line-height: 1; margin-bottom: 10px; letter-spacing: 0; }
.story-step p { color: #b9d4d2; max-width: 30em; }
.story-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.story-links a { color: #fff; text-decoration: none; font-size: .93rem; font-weight: 550; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); transition: border-color .15s ease, background-color .15s ease, color .15s ease; }
.story-links a:hover { border-color: var(--green); background: var(--green); color: var(--ink); }
.story .anim { background: #08262e; margin: 26px 0 0; box-shadow: 0 0 0 1px rgba(255,255,255,.08); min-height: 320px; display: grid; align-content: center; }
@media (min-width: 900px) {
  .js .story-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0 clamp(40px, 6vw, 96px); align-items: start; }
  .js .story-stage { position: sticky; top: calc(50vh - 230px); height: 460px; order: 2; }
  .js .story-stage .anim { position: absolute; inset: 0; margin: 0; min-height: 0; opacity: 0; transform: scale(.96) translateY(14px); transition: opacity .45s ease, transform .6s var(--ease-out); pointer-events: none; border-radius: 22px; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 50px 90px -40px rgba(0,0,0,.8); }
  .js .story-stage .anim.active { opacity: 1; transform: none; }
  .js .story-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; border-top: 0; padding: 0 0 0 34px; position: relative; opacity: .32; transition: opacity .4s ease; }
  .js .story-step.active { opacity: 1; }
  .js .story-step::before { content: ""; position: absolute; left: 5px; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.16); }
  .js .story-step::after { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--ink); border: 2px solid rgba(255,255,255,.4); transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease; }
  .js .story-step.active::after { background: var(--green); border-color: var(--green); box-shadow: 0 0 0 6px rgba(0,224,96,.2), 0 0 24px 4px rgba(0,224,96,.55); }
  .js .story-step:first-child::before { top: 50%; } .js .story-step:last-child::before { bottom: 50%; }
}

/* Empire partner band */
.partner .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px clamp(40px, 6vw, 96px); align-items: center; }
.partner-mark { background: var(--ink); border-radius: 22px; padding: clamp(28px, 4vw, 48px); display: grid; place-items: center; aspect-ratio: 5 / 4; position: relative; overflow: hidden; }
.partner-mark::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent 0 70%, rgba(0,224,96,.35) 85%, transparent 100%); }
.partner-mark::after { content: ""; position: absolute; inset: 2px; border-radius: 20px; background: radial-gradient(120% 100% at 80% 0%, #14505c, var(--ink) 60%); }
.partner-mark > * { position: relative; z-index: 1; text-align: center; color: #fff; }
.partner-mark b { display: block; font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-stretch: 112%; letter-spacing: -.02em; line-height: 1.05; }
.partner-mark i { display: block; font-family: var(--hand); font-style: normal; font-size: 1.7rem; color: var(--green); margin: 8px 0; line-height: 1; }
@media (prefers-reduced-motion: no-preference) { .partner-mark::before { animation: spin 9s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } }
.partner h2 { margin-bottom: .4em; }
.partner .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 820px) { .partner .wrap { grid-template-columns: 1fr; } .partner-mark { aspect-ratio: 16 / 8; } }

/* video in page heads and split */
video.page-head-img, video.split-img { display: block; background: var(--ink-2); }

/* FAQ */
.faq { margin-top: 2.6em; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 2px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 44px 18px 0; position: relative; font-size: 1.12rem; font-weight: 650; font-stretch: 106%; letter-spacing: -.01em; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; margin-top: -1px; background: var(--ink); transition: transform .25s var(--ease-out), background-color .15s ease; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--teal-text); } .faq summary:hover::before, .faq summary:hover::after { background: var(--teal-text); }
.faq details p { margin: 0 0 20px; max-width: 40em; color: var(--ink-soft); }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: hidden; opacity: 0; transition: block-size .32s var(--ease-out), opacity .25s ease, content-visibility .32s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; opacity: 1; }
}

/* next service */
.next { border-top: 1px solid var(--rule); }
.next a { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding-block: clamp(36px, 5vw, 64px); text-decoration: none; color: var(--ink); }
.next small { display: block; color: var(--ink-soft); font-size: .95rem; margin-bottom: 6px; }
.next b { font-size: clamp(1.8rem, 4vw, 3.2rem); font-stretch: 112%; letter-spacing: -.03em; line-height: 1; }
.next i { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--ink); position: relative; transition: background-color .2s ease, transform .3s var(--ease-out); flex: none; }
.next i::before { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -11px; border-right: 2.5px solid var(--ink); border-top: 2.5px solid var(--ink); transform: rotate(45deg); transition: border-color .2s ease; }
.next a:hover i { background: var(--ink); transform: translateX(8px); } .next a:hover i::before { border-color: var(--green); }
.next a:hover b { color: var(--teal-text); }

/* image hover and reveal masks */
.split-img, .page-head-img { transition: transform .8s var(--ease-out); }
@media (prefers-reduced-motion: no-preference) {
  /* Starts half clipped and transparent: a fully clipped element has no visible area, so the observer in site.js never reported it as on screen. */
  .js .reveal-mask { clip-path: inset(0 0 50% 0 round 18px); opacity: 0; transition: clip-path 1.1s var(--ease-out), opacity .5s ease; }
  .js .reveal-mask.in { clip-path: inset(0 0 0 0 round 18px); opacity: 1; }
}

/* footer sign-off */
.footer-sign { font-family: var(--hand); font-weight: 600; color: var(--green); font-size: clamp(2.4rem, 7vw, 5.6rem); line-height: 1; margin: 0 0 44px; transform: rotate(-2deg); transform-origin: left; }

/* =====================================================================
   v3: navigation (floating pill, mega menu with preview, mobile overlay)
   and four distinct service page layouts
   ===================================================================== */
.site-header .wrap { position: relative; }
.nav-hl { position: absolute; top: 50%; left: 0; height: 40px; margin-top: -20px; width: 0; border-radius: 999px; background: rgba(255,255,255,.12); opacity: 0; pointer-events: none; transition: transform .28s var(--ease-out), width .28s var(--ease-out), opacity .2s ease; }
.menu .mh button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-align: left; }
.menu-preview, .menu-foot { display: none; }

@media (min-width: 981px) {
  .nav, .nav-services { position: static; }
  .nav > a, .nav-services > button { position: relative; z-index: 1; border-radius: 999px; padding: 10px 16px; }
  .nav > a:hover, .nav-services > button:hover { background: none; }
  .nav > a[aria-current="page"] { background: rgba(255,255,255,.1); }
  .nav-services > button::after { transition: transform .25s var(--ease-out); }
  .nav-services:hover > button::after, .nav-services.open > button::after { transform: translateY(1px) rotate(225deg); }

  /* floating pill once scrolled */
  .site-header.scrolled { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; pointer-events: none; }
  .site-header .wrap { margin-top: 0; border: 1px solid transparent; border-radius: 0; transition: min-height .3s var(--ease-out), max-width .4s var(--ease-out), margin-top .3s var(--ease-out), border-radius .3s ease, background-color .3s ease, box-shadow .3s ease, padding .3s var(--ease-out); }
  .site-header.scrolled .wrap { pointer-events: auto; margin-top: 12px; max-width: min(1160px, calc(100% - 32px)); min-height: 62px; padding-inline: 24px 10px; border-radius: 999px; background: rgba(8,38,46,.84); -webkit-backdrop-filter: saturate(1.5) blur(20px); backdrop-filter: saturate(1.5) blur(20px); border-color: rgba(255,255,255,.14); box-shadow: 0 22px 60px -24px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.08); }
  .site-header.scrolled .header-phone { display: none; }
  .site-header.scrolled .header-cta .btn { padding: .6em 1.1em; }

  /* mega menu */
  .menu { left: var(--gutter); right: var(--gutter); top: calc(100% + 12px); width: auto; padding: 0; border-radius: 26px; overflow: hidden; grid-template-columns: minmax(0, 1fr) 312px; gap: 0; transform-origin: 50% 0; box-shadow: 0 50px 100px -30px rgba(4,30,37,.6), 0 0 0 1px rgba(11,47,56,.08); }
  .site-header.scrolled .menu { left: 0; right: 0; top: calc(100% + 10px); }
  .menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
  .menu-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 26px; padding: 30px 30px 24px 34px; }
  .menu .mh { font-size: .82rem; font-weight: 650; color: var(--green-text); margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
  .menu .mh button { pointer-events: none; cursor: default; }
  .menu-cols a { padding: 6px 10px; margin: 0 -10px; border-radius: 8px; font-size: .96rem; font-weight: 500; transition: background-color .12s ease, color .12s ease, transform .2s var(--ease-out); }
  .menu-cols a:hover, .menu-cols a:focus-visible { background: var(--mint); color: var(--ink); text-decoration: none; transform: translateX(3px); }
  .menu-preview { display: flex; flex-direction: column; gap: 12px; background: var(--mint); padding: 18px 18px 22px; }
  .menu-preview-img { position: relative; aspect-ratio: 3 / 2; border-radius: 16px; overflow: hidden; background: var(--ink-2); }
  .menu-preview-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease, transform .6s var(--ease-out); }
  .menu-preview-img img.out { opacity: 0; transform: scale(1.04); }
  .menu-preview b { font-size: 1.12rem; font-stretch: 108%; letter-spacing: -.01em; line-height: 1.2; padding: 0 4px; }
  .menu-preview p { margin: 0; padding: 0 4px; font-size: .93rem; line-height: 1.45; color: var(--ink-soft); }
  .menu-foot { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 20px 14px 34px; border-top: 1px solid var(--rule); font-size: .95rem; }
  .menu-foot span { color: var(--ink-soft); }
  .menu-foot a.btn { padding: .55em 1.1em; font-size: .93rem; }
  @media (prefers-reduced-motion: no-preference) {
    .menu-cols > div { opacity: 0; transform: translateY(10px); transition: opacity .3s ease, transform .4s var(--ease-out); }
    .nav-services:hover .menu-cols > div, .nav-services.open .menu-cols > div, .nav-services:focus-within .menu-cols > div { opacity: 1; transform: none; }
    .menu-cols > div:nth-child(2) { transition-delay: .04s; } .menu-cols > div:nth-child(3) { transition-delay: .08s; } .menu-cols > div:nth-child(4) { transition-delay: .12s; }
  }
}
@media (min-width: 981px) and (max-width: 1180px) { .menu { grid-template-columns: 1fr; } .menu-preview { display: none; } }

/* mobile: full-screen menu */
@media (max-width: 980px) {
  .nav-hl { display: none; }
  html.nav-lock { overflow: hidden; }
  .site-header.open { position: fixed; inset: 0; overflow-y: auto; background: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header.open .wrap { align-content: flex-start; padding-bottom: 40px; }
  .site-header.open .nav { padding: 8px 0 20px; }
  .nav > a, .nav-services > button { font-size: 1.7rem; font-weight: 650; font-stretch: 110%; letter-spacing: -.02em; padding: 16px 0; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; align-items: center; }
  .nav > a:hover, .nav-services > button:hover { background: none; }
  .menu { display: none; background: none; padding: 4px 0 8px; margin: 0; }
  .nav-services.open .menu, .nav-services:focus-within .menu { display: block; }
  .menu-cols { display: block; }
  .menu .mh { margin: 0; font-size: 1.1rem; color: var(--green); border-bottom: 1px solid rgba(255,255,255,.1); }
  .menu .mh button { width: 100%; padding: 14px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
  .menu .mh button::after { content: "+"; font-weight: 400; font-size: 1.4rem; line-height: 1; transition: transform .25s var(--ease-out); }
  .menu-cols > div.open h4 button::after { transform: rotate(45deg); }
  .menu-cols a { display: none; padding: 10px 0 10px 14px; font-size: 1.05rem; color: #dbe9e7; }
  .menu-cols > div.open a { display: block; }
  .site-header.open .header-cta { gap: 14px; align-items: center; }
  .site-header.open .header-phone { font-size: 1.2rem; }
  @media (prefers-reduced-motion: no-preference) {
    .site-header.open .nav > *, .site-header.open .header-cta { animation: fade-up .5s var(--ease-out) both; }
    .site-header.open .nav > :nth-child(3) { animation-delay: .04s; } .site-header.open .nav > :nth-child(4) { animation-delay: .08s; } .site-header.open .nav > :nth-child(5) { animation-delay: .12s; } .site-header.open .nav > :nth-child(6) { animation-delay: .16s; } .site-header.open .header-cta { animation-delay: .22s; }
  }
}

/* ---------- service page heads: four characters ---------- */
/* T1 light: headline + the animated graphic as the hero */
.head-light { background: var(--mint); color: var(--ink); }
.head-light .crumbs, .head-light .crumbs a { color: var(--ink-soft); } .head-light .crumbs a:hover { color: var(--ink); }
.head-light .lead { color: var(--ink-soft); }
.head-light .page-head-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.head-light .anim { margin: 0; border-radius: 24px; min-height: 360px; display: grid; align-content: center; box-shadow: 0 50px 90px -50px rgba(11,47,56,.7); }
.head-light h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
@media (max-width: 860px) { .head-light .page-head-grid { grid-template-columns: 1fr; } }
.band-media { margin-top: calc(var(--section) * -0.45); position: relative; }
.band-media .page-head-img { aspect-ratio: 21 / 8; border-radius: 26px; box-shadow: 0 50px 90px -50px rgba(11,47,56,.6); }
@media (max-width: 700px) { .band-media .page-head-img { aspect-ratio: 16 / 9; } }

/* T2 cinematic: full-bleed clip, text at the bottom */
.head-cine { position: relative; isolation: isolate; padding: clamp(28px, 4vw, 52px) 0 clamp(40px, 6vw, 72px); min-height: min(78vh, 760px); display: flex; }
.head-cine .cine-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; border-radius: 0; box-shadow: none; aspect-ratio: auto; }
.head-cine::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8,38,46,.96) 0%, rgba(8,38,46,.72) 34%, rgba(8,38,46,.18) 68%, rgba(8,38,46,.5) 100%); }
.head-cine .wrap { display: flex; flex-direction: column; justify-content: space-between; }
.head-cine h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); max-width: 12em; }
.head-cine .lead { max-width: 36em; }

/* T3 yellow: copy-sheet head with a taped photo */
.head-yellow { background: var(--copy-yellow); color: var(--ink); }
.head-yellow .crumbs, .head-yellow .crumbs a { color: #5b5a2a; } .head-yellow .crumbs a:hover { color: var(--ink); }
.head-yellow .lead { color: #3d4a36; }
.head-yellow .print { position: relative; transform: rotate(2.4deg); max-width: 460px; margin-inline: auto; width: 100%; }
.head-yellow .print::before { content: ""; position: absolute; inset: 0; background: var(--copy-pink); border-radius: 4px; transform: rotate(-5deg) translate(-8px, 8px); }
.head-yellow .print-in { position: relative; background: #fff; padding: 12px 12px 46px; border-radius: 4px; box-shadow: 0 30px 60px -30px rgba(11,47,56,.6); }
.head-yellow .print .page-head-img { border-radius: 2px; box-shadow: none; aspect-ratio: 4 / 3; }
.head-yellow .print-in::after { content: attr(data-note); position: absolute; left: 16px; right: 16px; bottom: 9px; font-family: var(--hand); font-weight: 600; font-size: 1.45rem; color: var(--pen); line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- explanation blocks ---------- */
.narrow { max-width: 860px; }
.xp-kicker { font-family: var(--hand); font-weight: 600; font-size: 1.7rem; color: var(--green-text); line-height: 1; margin: 0 0 12px; }
.on-dark .xp-kicker { color: var(--green); }
.xp-big { font-size: clamp(1.45rem, 2.6vw, 2.2rem); line-height: 1.28; letter-spacing: -.018em; font-weight: 500; margin: 0; text-wrap: pretty; }
.xp-two { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.xp-two.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
@media (max-width: 860px) { .xp-two, .xp-two.even { grid-template-columns: 1fr; } }
.fit { border-top: 2px solid currentColor; padding-top: 16px; }
.fit h3, .fit .fit-h { font-stretch: 100%; letter-spacing: 0; line-height: 1.3; margin-top: 0; font-size: 1.05rem; margin-bottom: 10px; }
.fit ul { list-style: none; margin: 0; padding: 0; }
.fit li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid var(--rule); line-height: 1.4; }
.on-dark .fit li { border-color: rgba(255,255,255,.16); }
.fit li::before { content: ""; position: absolute; left: 3px; top: 16px; width: 13px; height: 7px; border-left: 2.5px solid var(--green-text); border-bottom: 2.5px solid var(--green-text); transform: rotate(-45deg); }
.on-dark .fit li::before { border-color: var(--green); }
.on-dark { background: var(--ink); color: #fff; }
.on-dark p { color: #b9d4d2; }
.sec-title { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 48px; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-title h2 { margin: 0; } .sec-title p { margin: 0; color: var(--ink-soft); max-width: 32em; } .on-dark .sec-title p { color: #b9d4d2; }
@media (max-width: 760px) { .sec-title { grid-template-columns: 1fr; } }

/* deliverables: grid */
.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 48px; }
.dl-grid > div { border-top: 2px solid var(--ink); padding-top: 16px; }
.dl-grid h3 { margin-bottom: .4em; } .dl-grid p { margin: 0; color: var(--ink-soft); }
@media (max-width: 860px) { .dl-grid { grid-template-columns: 1fr 1fr; } } @media (max-width: 560px) { .dl-grid { grid-template-columns: 1fr; } }
/* deliverables: rows */
.dl-rows { border-top: 2px solid var(--ink); }
.dl-rows > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 6px 40px; padding: 22px 0; border-bottom: 1px solid var(--rule); align-items: baseline; transition: background-color .2s ease, padding .3s var(--ease-out); }
.dl-rows > div:hover { background: var(--mint); padding-inline: 16px; }
.dl-rows h3 { margin: 0; font-size: 1.35rem; } .dl-rows p { margin: 0; color: var(--ink-soft); }
@media (max-width: 700px) { .dl-rows > div { grid-template-columns: 1fr; } }
/* deliverables: rail (scroll-snap cards) */
.dl-rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(340px, 78vw); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 28px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: thin; scrollbar-color: var(--ink) transparent; }
.dl-rail > div { scroll-snap-align: start; background: var(--ink); color: #fff; border-radius: 22px; padding: 26px 26px 30px; min-height: 230px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; }
.dl-rail > div::before { content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(0,224,96,.5), rgba(0,192,208,0) 70%); }
.dl-rail > div:nth-child(3n+2) { background: var(--mint); color: var(--ink); } .dl-rail > div:nth-child(3n+2) p { color: var(--ink-soft); }
.dl-rail > div:nth-child(3n) { background: var(--copy-yellow); color: var(--ink); } .dl-rail > div:nth-child(3n) p { color: #3d4a36; } .dl-rail > div:nth-child(3n)::before, .dl-rail > div:nth-child(3n+2)::before { display: none; }
.dl-rail h3 { font-size: 1.4rem; margin-bottom: .4em; } .dl-rail p { margin: 0; color: #b9d4d2; }
/* deliverables: prescription sheet */
.dl-sheet { position: relative; max-width: 640px; }
.dl-sheet::before { content: ""; position: absolute; inset: 0; background: var(--copy-pink); border-radius: 4px; transform: rotate(-2.2deg) translate(-8px, 8px); }
.dl-sheet-in { position: relative; background: #fff; border-radius: 4px; padding: clamp(22px, 3vw, 36px); box-shadow: 0 30px 60px -36px rgba(11,47,56,.6); }
.dl-sheet-in > b, .dl-sheet-h { font-size: 1rem; font-weight: 700; letter-spacing: 0; line-height: 1.5; margin: 0; display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: 10px; font-stretch: 112%; }
.dl-sheet-in > b span, .dl-sheet-h span { font-family: "Times New Roman", "Apple Symbols", serif; font-size: 2rem; font-weight: 400; line-height: 1; }
.dl-sheet-in > div { display: grid; grid-template-columns: 34px 1fr; gap: 0 8px; padding: 16px 0; border-bottom: 1px dashed var(--rule); }
.dl-sheet-in > div::before { content: "✓"; font-family: var(--hand); font-weight: 600; color: var(--pen); font-size: 1.9rem; line-height: .9; grid-row: span 2; }
.dl-sheet h3 { margin: 0 0 2px; font-size: 1.15rem; } .dl-sheet p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* steps */
.st-h { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 36px; counter-reset: s; }
.st-h li { counter-increment: s; border-top: 2px solid currentColor; padding-top: 14px; }
.st-h li::before, .st-v li::before { content: counter(s); display: block; font-family: var(--hand); font-weight: 600; font-size: 2.6rem; line-height: .9; color: var(--pen); margin-bottom: 8px; }
.on-dark .st-h li::before, .on-dark .st-v li::before { color: var(--green); }
.st-h h3, .st-v h3 { margin-bottom: .35em; } .st-h p, .st-v p { margin: 0; color: var(--ink-soft); } .on-dark .st-h p, .on-dark .st-v p { color: #b9d4d2; }
@media (max-width: 900px) { .st-h { grid-template-columns: 1fr 1fr; } } @media (max-width: 520px) { .st-h { grid-template-columns: 1fr; } }
.st-v { list-style: none; margin: 0; padding: 0; counter-reset: s; max-width: 760px; }
.st-v li { counter-increment: s; display: grid; grid-template-columns: 72px 1fr; gap: 0 20px; padding: 0 0 36px; position: relative; }
.st-v li::before { grid-row: span 2; margin: 0; text-align: center; background: inherit; }
.st-v li::after { content: ""; position: absolute; left: 35px; top: 46px; bottom: 6px; width: 2px; background: currentColor; opacity: .18; }
.st-v li:last-child { padding-bottom: 0; } .st-v li:last-child::after { display: none; }

/* tools */
.tl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; border-top: 1px solid rgba(255,255,255,.2); }
.tl-grid > div { padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.2); display: grid; grid-template-columns: 14px 1fr; gap: 0 16px; }
.tl-grid > div::before { content: ""; width: 12px; height: 12px; border-radius: 50%; margin-top: 8px; background: linear-gradient(135deg, var(--green), var(--cyan)); box-shadow: 0 0 0 5px rgba(0,224,96,.16); grid-row: span 2; }
.tl-grid h3 { margin: 0 0 .3em; } .tl-grid p { margin: 0; }
.tl-grid.light { border-color: var(--rule); } .tl-grid.light > div { border-color: var(--rule); } .tl-grid.light p { color: var(--ink-soft); }
@media (max-width: 760px) { .tl-grid { grid-template-columns: 1fr; } }

/* glossary */
.gl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 44px; margin: 0; }
.gl > div { background: var(--mint); border-radius: 18px; padding: 22px 24px 24px; }
.on-mint .gl > div { background: #fff; }
.gl dt { font-family: var(--hand); font-weight: 600; font-size: 1.7rem; color: var(--pen); line-height: 1.05; margin-bottom: 8px; }
.gl dd { margin: 0; color: var(--ink-soft); line-height: 1.5; }
@media (max-width: 860px) { .gl { grid-template-columns: 1fr; } }
.on-mint { background: var(--mint); }
.section.tight { padding-block: calc(var(--section) * .7); }
.section.flush-top { padding-top: 0; }
.faq-sec .faq { margin-top: 0; }
.head-yellow .page-head-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 860px) { .head-yellow .page-head-grid { grid-template-columns: 1fr; } }
.work-3 .shot img, .work .shot img { aspect-ratio: 16 / 10.4; }
.xp-two .anim { margin: 0; border-radius: 24px; min-height: 340px; display: grid; align-content: center; }
.on-dark .anim { background: #08262e; box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
.menu .menu-foot a.btn, .menu .menu-foot a.btn:hover { color: #fff; text-decoration: none; }
video { max-width: 100%; height: auto; }
.head-cine video.cine-bg { height: 100%; }
.hero-bg { height: 100%; }

.menu .mh, .site-footer .fh { font-stretch: 100%; line-height: 1.3; letter-spacing: 0; }
.site-footer .fh { font-weight: 700; }
.anim p, .on-dark .anim p, .story .anim p, .prose .anim p { color: inherit; }

/* ---------- v4: about, portfolio cases, 404 ---------- */
.about-facts { margin: 0; border-top: 2px solid var(--ink); }
.about-facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.about-facts dt { color: var(--ink-soft); } .about-facts dd { margin: 0; font-weight: 650; font-stretch: 106%; }
.about-ai > div { border-top-color: rgba(255,255,255,.4); } .about-ai p { color: #b9d4d2; }
.story-line { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative; }
.story-line::before { content: ""; position: absolute; left: 0; right: 0; top: 52px; height: 2px; background: var(--ink); opacity: .18; }
.story-line li { padding: 0 22px 0 0; position: relative; }
.story-line b { display: block; font-family: var(--hand); font-weight: 600; font-size: 2.4rem; line-height: 1; color: var(--pen); height: 44px; }
.story-line li::before { content: ""; position: absolute; left: 0; top: 46px; width: 14px; height: 14px; border-radius: 50%; background: var(--mint); border: 2px solid var(--ink); }
.story-line li:last-child::before { background: var(--green); border-color: var(--green); box-shadow: 0 0 0 6px rgba(0,224,96,.2); }
.story-line p { margin: 34px 0 0; color: var(--ink-soft); font-size: .98rem; line-height: 1.45; }
@media (max-width: 900px) { .story-line { grid-template-columns: 1fr; gap: 22px; } .story-line::before { left: 6px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; } .story-line li { padding: 0 0 0 34px; } .story-line li::before { top: 14px; } .story-line b { height: auto; } .story-line p { margin-top: 6px; } }
.cases { display: grid; gap: clamp(56px, 8vw, 110px); }
.case { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 5vw, 72px); align-items: center; }
.case:nth-child(even) > .shot { order: 2; }
.case .shot { display: block; } .case .shot img { aspect-ratio: 16 / 10.4; }
.case .shot:hover img { transform: scale(1.02); }
.case h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .3em; } .case p { color: var(--ink-soft); }
.case-label { font-family: var(--hand); font-weight: 600; font-size: 1.5rem; color: var(--green-text) !important; line-height: 1; margin: 22px 0 10px; }
.case-tags { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.case-tags li { border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 14px; font-size: .93rem; font-weight: 550; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } .case:nth-child(even) > .shot { order: 0; } }
.lost { min-height: 70vh; display: grid; align-items: center; text-align: left; }
.lost-rx { font-family: "Times New Roman", "Apple Symbols", serif; font-size: clamp(5rem, 14vw, 10rem); line-height: .8; color: var(--green); margin: 0 0 20px; }
.case .shot img, .work-3 .shot img, .work .shot img { aspect-ratio: 1400 / 801; object-position: center top; }
.case:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
@media (max-width: 860px) { .case:nth-child(even) { grid-template-columns: 1fr; } }

/* v5: phones get a still hero (lighter, faster) and a shorter entrance */
@media (max-width: 700px) {
  .hero-bg { display: none; }
  .hero-video { background: var(--ink) url(/assets/img/hero-clinic-m.webp) center / cover; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .hero .w > span { animation-duration: .7s; animation-delay: calc(var(--i) * .03s); }
  .js .hero .lead { animation-delay: .25s; } .js .hero .hero-actions { animation-delay: .32s; } .js .hero .facts { animation-delay: .5s; }
  .js .hero .pad-wrap { animation-delay: .1s; animation-duration: .9s; }
}

.more-work { margin: 40px 0 0; }

.integrate .lead { color: #cfe3e0; }
.chips { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 6px 14px; font-size: .93rem; font-weight: 550; }

/* ---------- site assistant ---------- */
.rxchat { position: fixed; right: clamp(12px, 2vw, 24px); bottom: clamp(12px, 2vw, 24px); z-index: 60; font-size: 1rem; }
.rxchat-open { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-weight: 650; font-stretch: 105%; color: var(--ink); background: var(--green); border: 0; border-radius: 999px; padding: 13px 20px 13px 16px; cursor: pointer; box-shadow: 0 16px 40px -12px rgba(4,30,37,.6), 0 0 0 1px rgba(11,47,56,.08); transition: transform .16s var(--ease-out), box-shadow .2s ease; }
.rxchat-open span { font-family: "Times New Roman", "Apple Symbols", serif; font-size: 1.5rem; line-height: .8; font-weight: 400; }
.rxchat-open:hover { transform: translateY(-2px); box-shadow: 0 22px 46px -12px rgba(0,224,96,.55); }
.rxchat-open:active { transform: scale(.97); }
.rxchat.is-open .rxchat-open { display: none; }
.rxchat-panel { width: min(400px, calc(100vw - 24px)); height: min(600px, calc(100dvh - 24px)); background: #fff; color: var(--ink); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 40px 90px -30px rgba(4,30,37,.7), 0 0 0 1px rgba(11,47,56,.1); transform-origin: 100% 100%; }
.rxchat-panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .rxchat-panel { animation: rxchat-in .28s var(--ease-out); } @keyframes rxchat-in { from { opacity: 0; transform: translateY(14px) scale(.96); } } .rxchat-msg { animation: fade-up .3s var(--ease-out); } }
.rxchat-panel header { background: var(--ink); color: #fff; padding: 16px 14px 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rxchat-panel header b { display: block; font-stretch: 110%; font-size: 1.05rem; letter-spacing: -.01em; }
.rxchat-panel header small { color: #a9c8c6; font-size: .8rem; }
.rxchat-close { font: inherit; font-size: 1.6rem; line-height: 1; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; }
.rxchat-close:hover { background: rgba(255,255,255,.2); }
.rxchat-log { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; background: var(--mint); overscroll-behavior: contain; }
.rxchat-msg { max-width: 90%; border-radius: 18px; padding: 11px 15px; font-size: .96rem; line-height: 1.45; }
.rxchat-msg p { margin: 0 0 .55em; } .rxchat-msg p:last-child { margin: 0; }
.rxchat-msg.bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; box-shadow: 0 0 0 1px rgba(11,47,56,.07); }
.rxchat-msg.me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.rxchat-links, .rxchat-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rxchat-links a, .rxchat-chips button { font: inherit; font-size: .86rem; font-weight: 550; line-height: 1.25; text-align: left; text-decoration: none; color: var(--ink); background: var(--mint); border: 1px solid var(--rule); border-radius: 999px; padding: 6px 12px; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.rxchat-links a:hover, .rxchat-chips button:hover { background: var(--green); border-color: var(--green); color: var(--ink); }
.rxchat-group { font-weight: 700; margin: 12px 0 0 !important; font-size: .86rem; color: var(--green-text); }
.rxchat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--rule); background: #fff; }
.rxchat-form input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; color: var(--ink); border: 1.5px solid #b9cfc9; border-radius: 999px; padding: 10px 16px; }
.rxchat-form input:focus { outline: 3px solid var(--cyan); outline-offset: 1px; border-color: var(--ink); }
.rxchat-form button { font: inherit; font-weight: 650; color: #fff; background: var(--ink); border: 0; border-radius: 999px; padding: 0 18px; cursor: pointer; }
.rxchat-form button:hover { background: var(--ink-2); }
.rxchat-note { margin: 0; padding: 0 16px 12px; font-size: .74rem; line-height: 1.35; color: var(--ink-soft); background: #fff; }
@media (max-width: 520px) { .rxchat-open { padding: 11px 16px 11px 13px; font-size: .95rem; } }
@media print { .rxchat { display: none; } }

.footer-legal a { text-decoration: underline; }
.rxchat-note a { color: inherit; }

/* ---------- v6: specialties and resources ---------- */
.footer-grid .wide { grid-column: span 2; }
@media (max-width: 520px) { .footer-grid .wide { grid-column: auto; } }
.fine { font-size: .88rem; color: var(--ink-soft); }

/* specialty tiles */
.sp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sp-tiles.big { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.sp-tile { position: relative; display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5; color: #fff; text-decoration: none; background: var(--ink); isolation: isolate; }
.sp-tiles.big .sp-tile { aspect-ratio: 16 / 10; }
.sp-tiles.small .sp-tile { aspect-ratio: 5 / 4; }
.sp-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out), opacity .3s ease; z-index: -2; }
.sp-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,47,56,0) 35%, rgba(8,34,41,.9) 100%); z-index: -1; }
.sp-tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 20px 18px; }
.sp-tile h2, .sp-tile h3 { margin: 0; font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.1; letter-spacing: -.015em; text-wrap: balance; }
.sp-tiles.big .sp-tile h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.sp-tiles.big .sp-tile span { padding: 28px; }
.sp-tile i { display: inline-flex; align-items: center; gap: 8px; font-style: normal; font-size: .92rem; font-weight: 600; color: var(--green); margin-top: 8px; opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .35s var(--ease-out); }
.sp-tile i::after { content: "→"; }
.sp-tile:hover, .sp-tile:focus-visible { color: #fff; }
.sp-tile:hover img, .sp-tile:focus-visible img { transform: scale(1.06); }
.sp-tile:hover i, .sp-tile:focus-visible i { opacity: 1; transform: none; }
@media (hover: none) { .sp-tile i { opacity: 1; transform: none; } }
@media (max-width: 900px) { .sp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sp-tiles.big { grid-template-columns: 1fr; } .sp-tile span { padding: 14px; } }
.sp-home { background: var(--mint); }
.sp-also { margin: 36px 0 0; color: var(--ink-soft); max-width: 46em; }

/* specialty hero */
.sp-hero { background: var(--ink); color: #fff; padding: clamp(28px, 4vw, 52px) 0 clamp(56px, 7vw, 96px); overflow: hidden; position: relative; }
.sp-hero::before { content: "Rx"; position: absolute; right: -2vw; top: -6vw; font-weight: 800; font-stretch: 120%; font-size: 34vw; line-height: 1; color: rgba(255,255,255,.028); pointer-events: none; }
.sp-hero .wrap { position: relative; }
.sp-hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.sp-kicker { font-family: var(--hand); font-size: 1.7rem; color: var(--green); margin: 0 0 6px; line-height: 1; transform: rotate(-1.5deg); transform-origin: left; }
.sp-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); line-height: .98; letter-spacing: -.035em; margin-bottom: .35em; text-wrap: balance; }
.sp-hero .lead { color: #cfe3e0; max-width: 34em; }
.sp-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.sp-visual { position: relative; padding-bottom: 34px; }
.sp-photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08); display: block; }
.sp-ask { position: absolute; left: clamp(-28px, -2vw, -12px); bottom: 0; width: min(92%, 380px); background: #fff; color: var(--ink); border-radius: 14px; padding: 12px 16px 14px; box-shadow: 0 24px 50px -22px rgba(0,0,0,.65); transform: rotate(-1.2deg); }
.sp-ask em { display: block; font-family: var(--hand); font-style: normal; color: var(--pen); font-size: 1.25rem; line-height: 1; margin-bottom: 8px; }
.sp-ask-box { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--rule); border-radius: 999px; padding: 9px 14px; color: var(--ink-soft); }
.sp-ask-box svg { flex: none; }
.sp-ask-roll { position: relative; flex: 1; height: 1.4em; overflow: hidden; color: var(--ink); font-weight: 600; font-size: .98rem; }
.sp-ask-roll span { position: absolute; inset: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; animation: sp-roll 24s calc(var(--i) * 3s) infinite; }
.sp-ask-roll span:first-child { opacity: 1; }
@keyframes sp-roll { 0% { opacity: 0; transform: translateY(70%); } 1.6%, 11% { opacity: 1; transform: none; } 12.5%, 100% { opacity: 0; transform: translateY(-70%); } }
.sp-ask-roll span:first-child { animation-name: sp-roll-first; }
@keyframes sp-roll-first { 0%, 11% { opacity: 1; transform: none; } 12.5%, 98% { opacity: 0; transform: translateY(-70%); } 98.01% { opacity: 0; transform: translateY(70%); } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sp-ask-roll span { animation: none; } }
@media (max-width: 900px) { .sp-hero-grid { grid-template-columns: 1fr; } .sp-ask { left: 10px; } }

/* challenges */
.sp-chal ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: ch; border-top: 2px solid var(--ink); }
.sp-chal li { counter-increment: ch; padding: 28px clamp(18px, 2.4vw, 36px) 8px; border-left: 1px solid var(--rule); }
.sp-chal li:first-child { border-left: 0; padding-left: 0; }
.sp-chal li::before { content: "0" counter(ch); display: block; font-family: var(--hand); font-size: 3rem; line-height: .9; color: var(--pen); margin-bottom: 14px; }
.sp-chal b { display: block; font-size: 1.35rem; font-stretch: 108%; letter-spacing: -.015em; line-height: 1.15; margin-bottom: 10px; text-wrap: balance; }
.sp-chal p { color: var(--ink-soft); margin: 0; }
@media (max-width: 800px) { .sp-chal ol { grid-template-columns: 1fr; } .sp-chal li, .sp-chal li:first-child { border-left: 0; padding: 24px 0; border-bottom: 1px solid var(--rule); } }

/* plays */
.sp-plays-sec { background: var(--mint); }
.sp-plays { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: pl; }
.sp-play { counter-increment: pl; position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 0 0 0 1px rgba(11,47,56,.08); transition: transform .35s var(--ease-out), box-shadow .3s ease; }
.sp-play img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.sp-play::before { content: counter(pl); position: absolute; top: 12px; left: 12px; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: var(--ink); font-weight: 750; display: grid; place-items: center; font-size: .95rem; z-index: 1; }
.sp-play div { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.sp-play h3 { font-size: 1.2rem; line-height: 1.18; margin: 0 0 8px; text-wrap: balance; }
.sp-play p { color: var(--ink-soft); font-size: .98rem; margin: 0 0 16px; }
.sp-play i { margin-top: auto; font-style: normal; font-weight: 650; font-size: .92rem; color: var(--teal-text); }
.sp-play i::after { content: " →"; }
.sp-play:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(11,47,56,.1), 0 26px 50px -30px rgba(11,47,56,.55); }
@media (max-width: 960px) { .sp-plays { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sp-plays { grid-template-columns: 1fr; } }

/* 90-day plan */
.sp-plan { background: var(--ink); color: #fff; }
.sp-plan .section-head p { color: #cfe3e0; }
.sp-plan ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; counter-reset: pn; position: relative; }
.sp-plan ol::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: linear-gradient(90deg, var(--green), var(--cyan)); opacity: .55; }
.sp-plan ol > li { counter-increment: pn; position: relative; padding-top: 48px; }
.sp-plan ol > li::before { content: ""; position: absolute; top: 4px; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); border: 3px solid var(--green); box-sizing: border-box; }
.sp-plan ol > li:last-child::before { background: var(--green); }
.sp-plan ol > li::after { content: "Step " counter(pn); position: absolute; top: 34px; left: 0; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--green); font-weight: 650; }
.sp-plan ol b { display: block; font-size: 1.3rem; font-stretch: 108%; line-height: 1.15; margin: 14px 0 8px; }
.sp-plan ol p { color: #cfe3e0; margin: 0; font-size: .99rem; }
@media (max-width: 900px) { .sp-plan ol { grid-template-columns: 1fr; gap: 28px; } .sp-plan ol::before { left: 9px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--green), var(--cyan)); } .sp-plan ol > li { padding: 0 0 0 44px; display: flex; flex-direction: column; } .sp-plan ol > li::after { position: static; display: block; order: -1; } .sp-plan ol > li::before { top: 0; } .sp-plan ol b { margin-top: 4px; } }

/* care + faq */
.sp-care-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.sp-care { background: var(--copy-yellow); border-radius: 4px; padding: clamp(24px, 3vw, 38px); transform: rotate(-.8deg); box-shadow: 0 30px 50px -34px rgba(11,47,56,.6); position: relative; }
.sp-care::before { content: ""; position: absolute; top: -12px; left: 50%; width: 110px; height: 26px; margin-left: -55px; background: rgba(255,255,255,.55); box-shadow: 0 1px 3px rgba(0,0,0,.12); transform: rotate(1.5deg); }
.sp-care h2 { font-family: var(--hand); font-weight: 600; font-size: 2.3rem; color: var(--pen); margin: 0 0 12px; letter-spacing: 0; }
.sp-care ul { list-style: none; margin: 0 0 14px; padding: 0; }
.sp-care li { padding: 12px 0; border-top: 1px dashed rgba(11,47,56,.3); line-height: 1.45; font-size: .98rem; }
.sp-care li:first-child { border-top: 0; padding-top: 0; }
.sp-care .fine { margin: 0; color: rgba(11,47,56,.7); }
.sp-care-grid .faq { margin-top: 0; }
.sp-care-grid .faq h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
@media (max-width: 900px) { .sp-care-grid { grid-template-columns: 1fr; } }
.sp-more { background: var(--mint); }

/* resources */
.res-min { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 650; color: var(--teal-text); margin: 0 0 8px; }
.res-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.res-card { display: block; text-decoration: none; color: var(--ink); }
.res-card-img { border-radius: 12px; overflow: hidden; margin-bottom: 16px; background: var(--mint); }
.res-card-img img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .8s var(--ease-out); }
.res-card:hover img, .res-feature:hover img { transform: scale(1.045); }
.res-card h2, .res-card h3 { font-size: 1.3rem; line-height: 1.15; letter-spacing: -.015em; margin: 0 0 8px; text-wrap: balance; }
.res-card:hover h2, .res-card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.res-card p:last-child { color: var(--ink-soft); font-size: .98rem; margin: 0; }
@media (max-width: 900px) { .res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .res-grid { grid-template-columns: 1fr; } }
.res-feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; text-decoration: none; color: var(--ink); margin-bottom: clamp(48px, 6vw, 80px); }
.res-feature .res-card-img { margin: 0; border-radius: 16px; }
.res-feature h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.03; letter-spacing: -.03em; margin: 0 0 14px; text-wrap: balance; }
.res-feature p { color: var(--ink-soft); }
.res-feature .btn { margin-top: 10px; }
@media (max-width: 800px) { .res-feature { grid-template-columns: 1fr; } }
.res-home .section-head a, .res-next .section-head a, .sp-more .section-head a, .sp-also a { color: var(--teal-text); font-weight: 600; }

.guide-band { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; background: var(--ink); color: #fff; border-radius: 20px; padding: clamp(28px, 4vw, 56px); margin-top: clamp(56px, 7vw, 96px); }
.guide-band h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.08; margin: 0 0 12px; text-wrap: balance; }
.guide-band p { color: #cfe3e0; max-width: 36em; margin: 0 0 22px; }
.guide-band .btn-ink { background: var(--green); color: var(--ink); }
.guide-band .btn-ink:hover { background: #fff; color: var(--ink); }
.guide-cover { width: 190px; aspect-ratio: 8.5 / 11; background: #fff; color: var(--ink); border-radius: 4px; padding: 22px 18px; display: flex; flex-direction: column; transform: rotate(-4deg); box-shadow: 10px 10px 0 -2px var(--copy-yellow), 20px 20px 0 -4px var(--copy-pink), 0 30px 50px -20px rgba(0,0,0,.6); }
.guide-cover b { font-size: 2.1rem; font-stretch: 115%; line-height: .92; letter-spacing: -.04em; }
.guide-cover span { font-size: .92rem; line-height: 1.25; margin-top: 10px; color: var(--ink-soft); }
.guide-cover i { margin-top: auto; font-family: var(--hand); font-style: normal; color: var(--pen); font-size: 1.3rem; }
@media (max-width: 700px) { .guide-band { grid-template-columns: 1fr; } .guide-cover { width: 150px; margin: 0 0 14px 8px; } }

.res-hero { background: var(--ink); color: #fff; padding: clamp(28px, 4vw, 52px) 0 clamp(48px, 6vw, 80px); }
.res-hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.res-hero .res-min { color: var(--green); }
.res-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1; letter-spacing: -.03em; margin-bottom: .4em; text-wrap: balance; }
.res-hero .lead { color: #cfe3e0; }
.res-by { color: #a9c8c6; font-size: .93rem; margin: 22px 0 0; }
.res-hero-img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
@media (max-width: 860px) { .res-hero-grid { grid-template-columns: 1fr; } }
.res-body { font-size: 1.08rem; }
.res-body ol { padding-left: 1.3em; margin: 0 0 1.4em; }
.res-body ol li { padding: 5px 0 5px 6px; line-height: 1.5; }
.res-body ol li::marker { font-weight: 700; color: var(--teal-text); }
.res-take { background: var(--mint); border-radius: 14px; padding: 24px 28px 14px; margin-bottom: 2.2em; border-left: 5px solid var(--green); }
.prose .res-take h2 { font-family: var(--hand); font-weight: 600; color: var(--pen); font-size: 1.9rem; margin: 0 0 6px; letter-spacing: 0; }
.prose .res-take ul { margin: 0; }
.prose .res-take li { font-size: 1rem; border-color: rgba(11,47,56,.12); }
.prose .res-take li:first-child { border-top: 0; }
.prose .res-take li:last-child { border-bottom: 0; }
.res-next { background: var(--mint); padding-top: clamp(48px, 6vw, 80px); }
.res-next .res-card-img { background: #fff; }
@media (min-width: 981px) {
  .nav > a, .nav-services > button, .header-cta .btn, .header-phone { white-space: nowrap; }
  .nav > a, .nav-services > button { padding-inline: 13px; }
}
@media (max-width: 1320px) { .header-phone { display: none; } }
@media (min-width: 981px) and (max-width: 1120px) { .nav > a, .nav-services > button { padding-inline: 9px; font-size: .95rem; } .header-cta .btn { font-size: .9rem; } }

/* ---------- v7: call booking ---------- */
.bk-hero { background: var(--ink); color: #fff; padding: clamp(28px, 4vw, 52px) 0 clamp(56px, 8vw, 110px); position: relative; overflow: hidden; }
.bk-hero::before { content: "Rx"; position: absolute; left: -3vw; bottom: -9vw; font-weight: 800; font-stretch: 120%; font-size: 34vw; line-height: 1; color: rgba(255,255,255,.028); pointer-events: none; }
.bk-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.bk-intro h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: .98; letter-spacing: -.035em; margin-bottom: .35em; text-wrap: balance; }
.bk-intro .lead { color: #cfe3e0; max-width: 30em; }
.bk-what { list-style: none; margin: 36px 0 0; padding: 0; counter-reset: bw; border-top: 1px solid rgba(255,255,255,.16); }
.bk-what li { counter-increment: bw; position: relative; padding: 16px 0 16px 56px; border-bottom: 1px solid rgba(255,255,255,.16); color: #cfe3e0; line-height: 1.45; }
.bk-what li::before { content: counter(bw); position: absolute; left: 6px; top: 10px; font-family: var(--hand); font-size: 2.3rem; line-height: 1; color: var(--green); }
.bk-what b { display: block; color: #fff; font-stretch: 108%; }
.bk-alt { margin: 26px 0 0; color: #a9c8c6; font-size: .98rem; }
.bk-alt a { color: #fff; font-weight: 650; } .bk-alt a:hover { color: var(--green); }
.bk-card { background: #fff; color: var(--ink); border-radius: 20px; padding: clamp(20px, 3vw, 36px); box-shadow: 0 50px 90px -50px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.08); }
.bk-card h2 { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; margin: 0 0 14px; letter-spacing: -.01em; }
.bk-card h2 i { font-style: normal; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .85rem; font-weight: 700; }
.bk-days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 14px; margin: 0 -2px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; min-height: 96px; }
.bk-day { flex: none; width: 68px; scroll-snap-align: start; border: 1.5px solid var(--rule); background: #fff; border-radius: 14px; padding: 9px 0 8px; font: inherit; color: var(--ink); cursor: pointer; display: grid; justify-items: center; gap: 0; transition: border-color .15s ease, background-color .15s ease, transform .15s var(--ease-out); }
.bk-day span { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); font-weight: 600; }
.bk-day b { font-size: 1.5rem; line-height: 1.15; font-stretch: 110%; }
.bk-day:hover { border-color: var(--ink); }
.bk-day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.bk-day[aria-pressed="true"] span { color: #a9c8c6; }
.bk-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; min-height: 92px; align-content: start; }
.bk-time { border: 1.5px solid var(--rule); background: #fff; border-radius: 999px; padding: 9px 4px; font: inherit; font-weight: 600; font-size: .95rem; color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; transition: border-color .15s ease, background-color .15s ease, transform .15s var(--ease-out); }
.bk-time:hover { border-color: var(--green-text); background: var(--mint); }
.bk-time:active, .bk-day:active { transform: scale(.96); }
.bk-time[aria-pressed="true"] { background: var(--green); border-color: var(--green); }
.bk-tz, .bk-status { font-size: .88rem; color: var(--ink-soft); margin: 12px 0 0; }
.bk-status:empty, .bk-tz:empty { display: none; }
.bk-form { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--rule); opacity: .45; transition: opacity .3s ease; }
.has-time .bk-form { opacity: 1; }
.bk-sel { margin: 0 0 16px; font-size: .98rem; color: var(--ink-soft); }
.bk-sel b { color: var(--ink); background: var(--copy-yellow); padding: 2px 8px; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.bk-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.bk-f { display: block; }
.bk-f.bk-wide, .bk-f:has(textarea) { grid-column: 1 / -1; }
.bk-f span { display: block; font-size: .86rem; font-weight: 650; margin-bottom: 5px; }
.bk-f span i { font-style: normal; font-weight: 400; color: var(--ink-soft); }
.bk-f input, .bk-f select, .bk-f textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid var(--rule); border-radius: 10px; padding: 10px 12px; }
.bk-f input:focus, .bk-f select:focus, .bk-f textarea:focus { outline: 2px solid var(--green-text); outline-offset: 1px; border-color: var(--green-text); }
.bk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bk-error { color: #b3261e; font-weight: 600; font-size: .95rem; margin: 14px 0 0; }
.bk-error:empty { display: none; }
.bk-form .btn { width: 100%; margin-top: 16px; font-size: 1.05rem; }
.bk-form .btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.bk-form .fine { margin: 12px 0 0; }
.bk-form .fine a, .bk-done .fine a { color: var(--teal-text); }
.bk-done { display: none; text-align: center; padding: clamp(20px, 4vw, 44px) 0; outline: none; }
.bk-done h2 { justify-content: center; font-size: 1.9rem; margin: 14px 0 6px; }
.bk-done .bk-when { font-size: 1.3rem; font-weight: 700; font-stretch: 108%; background: var(--copy-yellow); display: inline-block; padding: 4px 14px; border-radius: 4px; transform: rotate(-1deg); margin: 8px 0 16px; }
.bk-done .btn { margin-top: 10px; }
.done .bk-pick, .done .bk-form { display: none; }
.done .bk-done { display: block; animation: fade-up .5s var(--ease-out) both; }
@media (max-width: 900px) { .bk-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .bk-fields { grid-template-columns: 1fr; } }

/* ---------- v8: 90-day plan as scrollytelling (enabled by site.js with .sc-live) ---------- */
.sc { display: contents; }
.sc-stage { display: none; }
.sc-live .sc { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 0 72px; align-items: start; --t: 0; }
.sc-live .section-head { margin-bottom: 0; }
.sc-live .sc-stage { display: block; position: sticky; top: max(104px, calc(50vh - 265px)); height: 530px; margin: 12vh 0; }
.sc-card { position: relative; height: 100%; border-radius: 28px; padding: 26px 28px 28px; display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 50px 120px -50px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.12); }
.sc-card::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; border-radius: 50%; left: calc(var(--t) * 70% - 20%); top: calc(60% - var(--t) * 70%); background: radial-gradient(closest-side, rgba(0,224,96,.34), transparent); filter: blur(10px); }
.sc-card::after { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; border-radius: 50%; right: calc(var(--t) * 60% - 25%); top: calc(var(--t) * 50% - 30%); background: radial-gradient(closest-side, rgba(0,192,208,.3), transparent); }
.sc-top { display: flex; align-items: flex-end; gap: 28px; }
.sc-day { display: flex; align-items: baseline; gap: 10px; min-width: 150px; }
.sc-day small { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); font-weight: 650; }
.sc-day b { font-size: 4.6rem; line-height: .9; font-stretch: 112%; font-weight: 750; font-variant-numeric: tabular-nums; background: linear-gradient(90deg, #fff, #b9fbd6); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0; }
.sc-rail { flex: 1; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 14px; margin-bottom: 8px; border-top: 3px solid rgba(255,255,255,.14); }
.sc-rail i { position: absolute; left: 0; top: -3px; height: 3px; width: calc(var(--t) * 100%); background: linear-gradient(90deg, var(--cyan), var(--green)); box-shadow: 0 0 18px rgba(0,224,96,.8); border-radius: 3px; }
.sc-rail i::after { content: ""; position: absolute; right: -6px; top: -5px; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(0,224,96,.3), 0 0 22px var(--green); }
.sc-rail span { font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: rgba(255,255,255,.45); transition: color .3s ease; }
.sc-rail span.on { color: #fff; }
.sc-scenes { position: relative; flex: 1; margin-top: 26px; }
.sc-scene { position: absolute; inset: 0; --p: 0; opacity: 0; transform: translateY(34px) scale(.96); transition: opacity .45s var(--ease-out), transform .6s var(--ease-out); pointer-events: none; }
.sc-scene.past { transform: translateY(-34px) scale(.96); }
.sc-scene.on { opacity: 1; transform: none; }
.sc-scene em { display: block; font-style: normal; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #cfe3e0; margin-bottom: 18px; }
.sc-scene ul { list-style: none; margin: 0; padding: 0; }
.sc-scene li, .c-card { --on: clamp(0, calc((var(--p) - var(--at)) * 9), 1); }
/* 1 audit */
.s1 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; }
.a-site { position: relative; height: 100%; max-height: 330px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); padding: 34px 18px 18px; overflow: hidden; }
.a-site i { display: block; border-radius: 6px; background: rgba(255,255,255,.16); height: 10px; margin-bottom: 12px; }
.a-site .a-dots { position: absolute; top: 13px; left: 16px; width: 44px; height: 8px; margin: 0; background: radial-gradient(circle 4px at 4px 4px, #ff6b6b 98%, transparent), radial-gradient(circle 4px at 22px 4px, #ffd166 98%, transparent), radial-gradient(circle 4px at 40px 4px, var(--green) 98%, transparent); border-radius: 0; }
.a-site .a-hero { height: 38%; border-radius: 10px; background: linear-gradient(135deg, rgba(0,192,208,.45), rgba(0,224,96,.3)); margin-bottom: 18px; }
.a-site .s { width: 55%; }
.a-site .a-scan { position: absolute; left: 0; right: 0; top: calc(clamp(0, var(--p) * 1.5, 1) * 100% - 46px); height: 46px; margin: 0; border-radius: 0; background: linear-gradient(180deg, transparent, rgba(0,224,96,.42)); border-bottom: 2px solid var(--green); box-shadow: 0 6px 24px rgba(0,224,96,.6); }
.a-list li { position: relative; padding: 13px 0 13px 40px; font-size: 1.05rem; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.1); opacity: calc(.32 + .68 * var(--on)); }
.a-list li::before { content: ""; position: absolute; left: 0; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); box-sizing: border-box; }
.a-list li::after { content: ""; position: absolute; left: 0; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%230b2f38' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; transform: scale(var(--on)); box-shadow: 0 0 16px rgba(0,224,96,.7); }
/* 2 foundation */
.b-bars li { display: grid; grid-template-columns: 92px 1fr; align-items: center; font-size: .95rem; color: #cfe3e0; margin-bottom: 14px; }
.b-bars i { display: block; height: 22px; border-radius: 7px; width: calc(var(--w) * var(--on)); min-width: 4px; background: linear-gradient(90deg, var(--cyan), var(--green)); box-shadow: 0 0 20px -4px rgba(0,224,96,.7); }
.b-tog { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px !important; }
.b-tog li { position: relative; padding: 10px 16px 10px 56px; border-radius: 999px; font-size: .92rem; font-weight: 600; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.b-tog li::before { content: ""; position: absolute; left: 12px; top: 50%; width: 34px; height: 18px; margin-top: -9px; border-radius: 9px; background: color-mix(in srgb, var(--green) calc(var(--on) * 100%), rgba(255,255,255,.22)); }
.b-tog li::after { content: ""; position: absolute; left: 14px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #fff; transform: translateX(calc(var(--on) * 16px)); }
/* 3 launch */
.c-card { position: absolute; width: 56%; border-radius: 16px; padding: 16px 16px 44px; background: #fff; color: var(--ink); box-shadow: 0 30px 60px -24px rgba(0,0,0,.75); opacity: var(--on); }
.c-card u { display: block; height: 70px; border-radius: 9px; background: linear-gradient(135deg, #bfeee6, #d9f8e6); margin-bottom: 12px; }
.c-card i { display: block; height: 8px; border-radius: 4px; background: #d3e2dd; margin-bottom: 8px; }
.c-card .s { width: 60%; }
.c-card p { margin: 0; padding: 12px 14px; border-radius: 14px 14px 14px 4px; background: var(--mint); font-size: .92rem; line-height: 1.35; color: var(--ink); }
.c-card span { position: absolute; left: 16px; bottom: 14px; padding-left: 18px; font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--green-text); }
.c-card span::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(0,224,96,.25); }
.c1 { left: 0; top: 0; transform: translate(calc((1 - var(--on)) * -70px), calc((1 - var(--on)) * 40px)) rotate(calc(-4deg - (1 - var(--on)) * 8deg)); }
.c2 { right: 0; top: 16%; transform: translate(calc((1 - var(--on)) * 80px), calc((1 - var(--on)) * 30px)) rotate(calc(3deg + (1 - var(--on)) * 8deg)); }
.c2 u { background: linear-gradient(135deg, #0b2f38, #0a7585); }
.c3 { left: 20%; bottom: 0; transform: translateY(calc((1 - var(--on)) * 70px)) rotate(-1deg); }
/* 4 review */
.s4 svg { display: block; width: 100%; height: auto; max-height: 58%; overflow: visible; }
.d-grid { stroke: rgba(255,255,255,.1); stroke-width: 1; fill: none; }
.d-line { fill: none; stroke: url(#scg); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, var(--p) * 1.7, 1)); filter: drop-shadow(0 0 10px rgba(0,224,96,.7)); }
.d-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px !important; }
.d-notes li { padding: 14px 14px 14px 16px; border-radius: 14px; font-weight: 650; font-size: .98rem; line-height: 1.2; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); border-left: 3px solid var(--green); opacity: var(--on); transform: translateY(calc((1 - var(--on)) * 22px)); }
/* steps column */
.sc-live ol { display: block; }
.sc-live ol::before { left: 9px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: rgba(255,255,255,.14); opacity: 1; }
.sc-live ol::after { content: ""; position: absolute; left: 8px; top: 0; width: 4px; border-radius: 4px; height: calc(var(--t) * 100%); background: linear-gradient(180deg, var(--cyan), var(--green)); box-shadow: 0 0 18px rgba(0,224,96,.7); }
.sc-live li[data-when] { min-height: 78vh; padding: 0 0 0 56px; display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .4s ease; }
.sc-live li[data-when].on { opacity: 1; }
.sc-live li[data-when]::before { top: 50%; margin-top: -10px; z-index: 1; transition: background-color .3s ease, box-shadow .3s ease; }
.sc-live li[data-when].on::before, .sc-live li[data-when].past::before { background: var(--green); box-shadow: 0 0 0 6px rgba(0,224,96,.2), 0 0 20px var(--green); }
.sc-live li[data-when]::after { content: "Step " counter(pn) "  ·  " attr(data-when); position: static; display: block; order: -1; font-size: .84rem; }
.sc-live li[data-when] b { font-size: clamp(1.7rem, 2.6vw, 2.4rem); margin: 12px 0 14px; }
.sc-live li[data-when] p { font-size: 1.08rem; line-height: 1.6; max-width: 31em; }
@media (max-width: 900px) {
  .sc-live .sc { display: block; }
  .sc-live .sc-stage { top: 66px; height: 318px; margin: 26px calc(var(--gutter) * -1) 0; padding: 10px var(--gutter) 22px; z-index: 3; background: linear-gradient(180deg, var(--ink) calc(100% - 20px), transparent); }
  .sc-card { border-radius: 20px; padding: 14px 16px 16px; }
  .sc-day { min-width: 96px; gap: 6px; } .sc-day b { font-size: 2.7rem; }
  .sc-top { gap: 14px; } .sc-rail span { font-size: .56rem; letter-spacing: .03em; }
  .sc-scenes { margin-top: 14px; }
  .sc-scene em { margin-bottom: 10px; font-size: .7rem; }
  .s1 { gap: 14px; } .a-site { padding: 26px 12px 10px; } .a-site i { margin-bottom: 8px; height: 7px; }
  .a-list li { font-size: .84rem; padding: 8px 0 8px 30px; line-height: 1.2; } .a-list li::before, .a-list li::after { width: 20px; height: 20px; margin-top: -10px; }
  .b-bars li { grid-template-columns: 70px 1fr; font-size: .8rem; margin-bottom: 8px; } .b-bars i { height: 14px; }
  .b-tog { margin-top: 12px !important; gap: 6px; } .b-tog li { font-size: .7rem; padding: 6px 10px 6px 44px; } .b-tog li::before { left: 8px; width: 28px; height: 14px; margin-top: -7px; } .b-tog li::after { left: 10px; width: 10px; height: 10px; margin-top: -5px; transform: translateX(calc(var(--on) * 14px)); }
  .c-card { padding: 10px 10px 30px; border-radius: 12px; width: 54%; } .c-card u { height: 34px; margin-bottom: 8px; } .c-card i { height: 6px; margin-bottom: 6px; } .c-card p { font-size: .72rem; padding: 8px 10px; } .c-card span { left: 10px; bottom: 9px; font-size: .68rem; }
  .d-notes { gap: 6px; margin-top: 12px !important; } .d-notes li { font-size: .72rem; padding: 8px; border-radius: 10px; }
  .sc-live li[data-when] { min-height: 64vh; justify-content: flex-start; padding: 8vh 0 0 44px; }
  .sc-live li[data-when]::before { top: 8vh; margin-top: 2px; }
  .sc-live li[data-when] p { font-size: 1rem; }
}
.s2, .s4 { display: flex; flex-direction: column; justify-content: center; }
.b-bars i { height: 26px; } .b-bars li { margin-bottom: 18px; font-size: 1rem; }
@media (max-width: 900px) { .b-bars i { height: 14px; } .b-bars li { margin-bottom: 8px; font-size: .8rem; } }
@media (max-width: 900px) {
  .sc-rail { display: block; min-height: 30px; } .sc-rail span { display: none; font-size: .7rem; letter-spacing: .08em; } .sc-rail span.cur { display: block; color: #fff; }
  .c-card i { display: none; } .c-card u { height: 30px; } .c2 { top: 10%; } .c3 { left: 22%; } .c-card p { font-size: .68rem; padding: 6px 9px; }
}
.quote-h { font-size: 1.3rem; letter-spacing: -0.01em; line-height: 1.2; }

/* v9: clips no longer autoplay from the markup (site.js starts them when visible), so phones never download the hero clip. */
@media (min-width: 701px) { .hero-video { background: var(--ink) url(/assets/img/hero-clinic.webp) center / cover; } }
