/* BioRevit Module — self-hosted webfonts (ported from the clinic theme).
   Bai Jamjuree (OFL) · Instrument Serif (OFL) · IBM Plex Mono (OFL).
   Self-hosted: no visitor IP leaves for a third party. Generated from the
   clinic's fonts.css, filtered to the weights this page uses. */

@font-face {
  font-family: 'Bai Jamjuree';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/bai-jamjuree-latin-ext-300-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bai Jamjuree';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/bai-jamjuree-latin-300-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bai Jamjuree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/bai-jamjuree-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bai Jamjuree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/bai-jamjuree-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bai Jamjuree';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/bai-jamjuree-latin-ext-500-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bai Jamjuree';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/bai-jamjuree-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/instrument-serif-latin-ext-400-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/instrument-serif-latin-400-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root{
  --ivory:#F3EFE7;
  --paper:#FBF9F3;
  --ink:#16130E;
  --ink-soft:#5C554A;
  --gold:#AE8A4E;
  --gold-deep:#8F6F3A;
  --hairline:rgba(22,19,14,.14);

  --rise:#C99A2E;
  --calm:#E08A5F;
  --night:#7C5CBF;
  --renew:#3F9B6B;
  --focus:#2D6FE0;
  --youth:#6FD1C4;

  --mode:var(--gold);
  --mode-soft:rgba(174,138,78,.10);

  --display:'Archivo',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;
  --mono:'IBM Plex Mono','SF Mono',Menlo,Consolas,monospace;

  --maxw:1200px;
  --pad:clamp(20px,4.5vw,56px);
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
body{
  font-family:var(--display);
  font-variation-settings:'wdth' 100;
  background:var(--ivory);
  color:var(--ink);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
::selection{background:var(--gold);color:var(--ivory)}
a{color:inherit}
img{display:block;max-width:100%}
button{font:inherit;cursor:pointer}
:focus-visible{outline:2px solid var(--gold-deep);outline-offset:3px;border-radius:2px}

/* ---------- utility type ---------- */
.eyebrow{
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--gold-deep);
}
.k{font-family:var(--mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-soft)}

/* ---------- shell ---------- */
.wrap{max-width:var(--maxw);margin:0 auto;padding-left:var(--pad);padding-right:var(--pad)}
section{position:relative}

/* ---------- nav ---------- */
header{
  position:fixed;inset:34px 0 auto 0;z-index:60;
  backdrop-filter:blur(14px);
  background:color-mix(in srgb,var(--ivory) 82%,transparent);
  border-bottom:1px solid transparent;
  transition:border-color .35s ease, background .35s ease;
}
header.scrolled{border-bottom-color:var(--hairline)}
.nav{
  display:flex;align-items:center;justify-content:space-between;
  height:72px;
}
.nav-logo img{height:26px;width:auto}
.nav-links{display:flex;gap:34px;align-items:center;list-style:none}
.nav-links a{
  text-decoration:none;font-size:13.5px;font-weight:500;letter-spacing:.04em;
  color:var(--ink);opacity:.75;transition:opacity .2s;
}
.nav-links a:hover{opacity:1}
.btn{
  display:inline-flex;align-items:center;gap:10px;
  background:var(--ink);color:var(--ivory);
  border:1px solid var(--ink);
  padding:13px 26px;border-radius:999px;
  font-size:13.5px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;
  text-decoration:none;
  transition:background .25s,color .25s,transform .2s;
}
.btn:hover{background:var(--gold);border-color:var(--gold);color:var(--ivory);transform:translateY(-1px)}
.btn.ghost{background:transparent;color:var(--ink)}
.btn.ghost:hover{background:var(--ink);color:var(--ivory);border-color:var(--ink)}
.nav .btn{padding:10px 20px;font-size:12px}
.nav-burger{display:none}

/* ---------- hero ---------- */
.hero{
  min-height:100svh;
  display:grid;align-items:center;
  padding-top:140px;padding-bottom:60px;
}
.hero-grid{
  display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(24px,5vw,72px);
  align-items:center;
}
.hero h1{
  font-weight:760;
  font-variation-settings:'wdth' 72;
  font-size:clamp(52px,8.2vw,118px);
  line-height:.92;
  letter-spacing:-.012em;
  text-transform:uppercase;
  margin:22px 0 26px;
}
.hero h1 .thin{
  display:block;
  font-weight:340;
  font-variation-settings:'wdth' 96;
  font-size:.34em;
  letter-spacing:.30em;
  margin-top:18px;
  color:var(--ink-soft);
}
.hero-sub{
  max-width:44ch;font-size:16.5px;color:var(--ink-soft);margin-bottom:36px;
}
.hero-cta{display:flex;gap:14px;flex-wrap:wrap;align-items:center}
.hero-note{font-family:var(--mono);font-size:11px;color:var(--ink-soft);letter-spacing:.08em;margin-top:18px}

/* the signal — patch + emitting rings */
.signal{
  position:relative;
  aspect-ratio:1/1;
  max-width:520px;margin:0 auto;
  display:grid;place-items:center;
}
.ring{
  position:absolute;inset:0;margin:auto;
  border-radius:50%;
  border:1px solid var(--mode);
  opacity:0;
  width:46%;height:46%;
  animation:emit 4.8s cubic-bezier(.2,.5,.4,1) infinite;
  transition:border-color .6s ease;
  pointer-events:none;
}
.ring:nth-child(2){animation-delay:1.2s}
.ring:nth-child(3){animation-delay:2.4s}
.ring:nth-child(4){animation-delay:3.6s}
@keyframes emit{
  0%{transform:scale(1);opacity:.5}
  100%{transform:scale(2.35);opacity:0}
}
.patch{
  position:relative;z-index:2;
  width:46%;aspect-ratio:1/1;border-radius:50%;
  background:
    radial-gradient(circle at 32% 26%, var(--disc-1) 0%, var(--disc-2) 42%, var(--disc-3) 78%, var(--disc-4) 100%);
  box-shadow:
    0 30px 60px -18px rgba(22,19,14,.28),
    0 4px 12px rgba(22,19,14,.10),
    inset 0 1px 2px rgba(255,255,255,.9),
    inset 0 -10px 24px rgba(174,138,78,.14);
  display:grid;place-items:center;
}
.patch::before{
  content:"";position:absolute;inset:9%;border-radius:50%;
  border:1px solid rgba(174,138,78,.35);
}
.patch::after{
  content:"";position:absolute;inset:0;border-radius:50%;
  background:repeating-conic-gradient(from 0deg, rgba(174,138,78,.05) 0deg 2deg, transparent 2deg 7deg);
  mix-blend-mode:multiply;
  -webkit-mask:radial-gradient(circle,transparent 34%,#000 36%,#000 88%,transparent 90%);
          mask:radial-gradient(circle,transparent 34%,#000 36%,#000 88%,transparent 90%);
}
.patch img{width:26%;opacity:.92}
.signal-readout{
  position:absolute;bottom:-6px;left:50%;transform:translateX(-50%);
  font-family:var(--mono);font-size:10.5px;letter-spacing:.18em;text-transform:uppercase;
  color:var(--ink-soft);white-space:nowrap;
}
.signal-readout b{color:var(--mode);font-weight:500;transition:color .6s}

/* ---------- credo ticker ---------- */
.credo{
  border-top:1px solid var(--hairline);
  border-bottom:1px solid var(--hairline);
  overflow:hidden;
  background:var(--paper);
}
.ticker{
  display:flex;gap:0;width:max-content;
  animation:slide 30s linear infinite;
}
.credo:hover .ticker{animation-play-state:paused}
@keyframes slide{to{transform:translateX(-50%)}}
.ticker span{
  font-family:var(--mono);
  font-size:12px;letter-spacing:.26em;text-transform:uppercase;
  padding:20px 0;color:var(--ink);
  display:inline-flex;align-items:center;
}
.ticker span::after{
  content:"";width:7px;height:7px;border-radius:50%;
  background:var(--gold);margin:0 34px;flex:none;
}

/* ---------- section scaffolding ---------- */
.sec{padding:clamp(84px,11vw,150px) 0}
.sec-head{max-width:720px;margin-bottom:clamp(40px,6vw,72px)}
.sec-head h2{
  font-weight:720;
  font-variation-settings:'wdth' 76;
  font-size:clamp(34px,4.6vw,58px);
  line-height:1.02;letter-spacing:-.008em;text-transform:uppercase;
  margin:16px 0 18px;
}
.sec-head p{color:var(--ink-soft);font-size:16.5px;max-width:54ch}

/* reveal on scroll */
.rv{opacity:0;transform:translateY(26px);transition:opacity .8s cubic-bezier(.2,.6,.2,1),transform .8s cubic-bezier(.2,.6,.2,1)}
.rv.in{opacity:1;transform:none}

/* ---------- how it works ---------- */
.steps{
  display:grid;grid-template-columns:repeat(3,1fr);gap:1px;
  background:var(--hairline);
  border:1px solid var(--hairline);
}
.step{
  background:var(--ivory);
  padding:clamp(26px,3.4vw,44px);
  min-height:280px;
  display:flex;flex-direction:column;justify-content:space-between;gap:26px;
}
.step .glyph{width:54px;height:54px;color:var(--gold-deep)}
.step h3{
  font-weight:640;font-size:19px;letter-spacing:.02em;text-transform:uppercase;
  font-variation-settings:'wdth' 88;
  margin-bottom:10px;
}
.step p{color:var(--ink-soft);font-size:15px}
.step .k{margin-bottom:14px;display:block}

/* ---------- modes ---------- */
#modes{background:var(--ink);color:var(--ivory)}
#modes .eyebrow{color:var(--gold)}
#modes .sec-head p{color:rgba(var(--veil-rgb),.62)}
.mode-shell{
  display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:clamp(28px,5vw,72px);
  align-items:stretch;
}
.mode-list{display:flex;flex-direction:column;border-top:1px solid rgba(var(--veil-rgb),.16)}
.mode-tab{
  display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:18px;
  padding:20px 6px;
  background:none;border:none;border-bottom:1px solid rgba(var(--veil-rgb),.16);
  color:var(--ivory);text-align:left;
  transition:padding-left .3s ease,opacity .3s;
  opacity:.45;
}
.mode-tab:hover{opacity:.8}
.mode-tab[aria-selected="true"]{opacity:1;padding-left:16px}
.mode-tab .dot{
  width:12px;height:12px;border-radius:50%;
  background:var(--c);
  box-shadow:0 0 0 0 var(--c);
  transition:box-shadow .4s;
  justify-self:center;
}
.mode-tab[aria-selected="true"] .dot{box-shadow:0 0 18px 2px var(--c)}
.mode-tab .name{
  font-weight:680;font-size:clamp(20px,2.2vw,27px);letter-spacing:.06em;text-transform:uppercase;
  font-variation-settings:'wdth' 82;
}
.mode-tab .win{font-family:var(--mono);font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:rgba(var(--veil-rgb),.55)}
.mode-panel{
  position:relative;
  border:1px solid rgba(var(--veil-rgb),.16);
  padding:clamp(28px,4vw,52px);
  display:flex;flex-direction:column;gap:28px;
  min-height:420px;
  overflow:hidden;
}
.mode-panel::before{
  content:"";position:absolute;inset:0;
  background:radial-gradient(120% 90% at 85% 0%, var(--mc,rgba(174,138,78,.22)) 0%, transparent 55%);
  opacity:.5;transition:background .6s ease;
  pointer-events:none;
}
.mode-kicker{display:flex;align-items:baseline;justify-content:space-between;gap:20px;position:relative}
.mode-kicker h3{
  font-weight:720;font-size:clamp(34px,4vw,54px);letter-spacing:.02em;text-transform:uppercase;
  font-variation-settings:'wdth' 74;line-height:1;
  color:var(--mc-solid,var(--gold));
  transition:color .5s;
}
.mode-kicker .idx{font-family:var(--mono);font-size:11px;letter-spacing:.2em;color:rgba(var(--veil-rgb),.5)}
.mode-desc{font-size:16.5px;color:rgba(var(--veil-rgb),.78);max-width:46ch;position:relative}
.mode-meta{
  display:grid;grid-template-columns:repeat(3,1fr);gap:1px;
  background:rgba(var(--veil-rgb),.14);
  border:1px solid rgba(var(--veil-rgb),.14);
  position:relative;
}
.mode-meta div{background:var(--ink);padding:16px 16px 14px}
.mode-meta .k{color:rgba(var(--veil-rgb),.5);display:block;margin-bottom:7px;font-size:10px}
.mode-meta strong{font-weight:560;font-size:14.5px;letter-spacing:.02em}
.mode-wave{position:relative;margin-top:auto}
.mode-wave svg{width:100%;height:64px;display:block}
.mode-wave path{
  fill:none;stroke:var(--mc-solid,var(--gold));stroke-width:1.6;
  transition:stroke .5s, d .5s;
  stroke-dasharray:1200;stroke-dashoffset:1200;
  animation:draw 2.2s ease forwards;
}
@keyframes draw{to{stroke-dashoffset:0}}

/* ---------- science ---------- */
.sci-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(28px,5vw,80px);align-items:center}
.sci-copy p{color:var(--ink-soft);font-size:16px;margin-bottom:20px;max-width:52ch}
.sci-copy p strong{color:var(--ink);font-weight:600}
.sci-fig{
  border:1px solid var(--hairline);background:var(--paper);
  padding:clamp(22px,3vw,40px);
}
.sci-fig .k{display:flex;justify-content:space-between;margin-bottom:20px}
.sci-fig svg{width:100%;height:auto}
.sci-fig .cap{font-family:var(--mono);font-size:10.5px;letter-spacing:.1em;color:var(--ink-soft);margin-top:18px;line-height:1.7}
.sci-points{margin-top:34px;display:grid;gap:0;border-top:1px solid var(--hairline)}
.sci-points li{
  list-style:none;display:grid;grid-template-columns:26px 1fr;gap:16px;
  padding:16px 0;border-bottom:1px solid var(--hairline);
  font-size:15px;color:var(--ink-soft);
}
.sci-points li b{color:var(--ink);font-weight:600}
.sci-points .tick{color:var(--gold-deep);font-family:var(--mono)}

/* ---------- day timeline ---------- */
.day{background:var(--paper);border-top:1px solid var(--hairline);border-bottom:1px solid var(--hairline)}
.timeline{position:relative;margin-top:8px}
.tl-track{
  position:absolute;left:0;right:0;top:26px;height:1px;background:var(--hairline);
}
.tl-row{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;position:relative}
.tl-item{padding-top:0}
.tl-item .t{
  font-family:var(--mono);font-size:11px;letter-spacing:.16em;color:var(--ink-soft);
  display:flex;align-items:center;gap:10px;height:53px;
}
.tl-item .t::before{
  content:"";width:9px;height:9px;border-radius:50%;background:var(--c);flex:none;
}
.tl-item h4{
  font-weight:680;letter-spacing:.06em;text-transform:uppercase;font-size:16px;
  font-variation-settings:'wdth' 84;
  color:var(--c);margin-bottom:6px;
}
.tl-item p{font-size:13.5px;color:var(--ink-soft);max-width:24ch}

/* ---------- faq ---------- */
.faq-list{max-width:820px;border-top:1px solid var(--hairline)}
.faq-list details{border-bottom:1px solid var(--hairline)}
.faq-list summary{
  list-style:none;cursor:pointer;
  display:flex;justify-content:space-between;align-items:center;gap:20px;
  padding:24px 4px;
  font-weight:600;font-size:16.5px;letter-spacing:.01em;
}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary .x{
  font-family:var(--mono);color:var(--gold-deep);font-size:18px;flex:none;
  transition:transform .3s;
}
.faq-list details[open] summary .x{transform:rotate(45deg)}
.faq-list details p{padding:0 4px 26px;color:var(--ink-soft);font-size:15px;max-width:64ch}

/* ---------- cta ---------- */
.cta{background:var(--ink);color:var(--ivory);text-align:center;overflow:hidden;position:relative}
.cta .ringfield{position:absolute;inset:-40% -10%;display:grid;place-items:center;pointer-events:none}
.cta .ringfield i{
  position:absolute;border-radius:50%;border:1px solid rgba(174,138,78,.22);
}
.cta h2{
  font-weight:740;font-variation-settings:'wdth' 72;
  font-size:clamp(40px,6vw,84px);
  line-height:.96;text-transform:uppercase;letter-spacing:-.01em;
  margin:18px auto 22px;max-width:14ch;position:relative;
}
.cta p{color:rgba(var(--veil-rgb),.65);max-width:46ch;margin:0 auto 40px;position:relative}
.cta-form{
  position:relative;
  display:flex;gap:10px;justify-content:center;flex-wrap:wrap;
}
.cta-form input{
  font:inherit;font-size:14.5px;
  background:transparent;border:1px solid rgba(var(--veil-rgb),.35);
  color:var(--ivory);
  border-radius:999px;padding:14px 24px;min-width:300px;
}
.cta-form input::placeholder{color:rgba(var(--veil-rgb),.45)}
.cta-form .btn{background:var(--gold);border-color:var(--gold)}
.cta-form .btn:hover{background:var(--ivory);border-color:var(--ivory);color:var(--ink)}
.cta-ok{font-family:var(--mono);font-size:12px;letter-spacing:.12em;color:var(--gold);margin-top:18px;min-height:18px;position:relative}

/* ---------- forms: name + email, honeypot, contact block ---------- */
.hero-form input[type=text]{flex:0 1 170px;min-width:150px}
.cta-form input[type=text]{min-width:210px}
.hp-field{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0;pointer-events:none}
.form-consent{
  font-family:var(--mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;
  color:var(--ink-soft);margin-top:10px;line-height:1.7;
}
.cta .form-consent{color:rgba(var(--veil-rgb),.45);max-width:560px;margin-left:auto;margin-right:auto}
.contact-form{max-width:720px}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.contact-grid .full{grid-column:1/-1}
.contact-form input,.contact-form textarea{
  width:100%;font:inherit;font-size:14.5px;
  background:var(--paper);border:1px solid var(--hairline);
  color:var(--ink);padding:14px 20px;
}
.contact-form input{border-radius:999px}
.contact-form textarea{border-radius:18px;min-height:150px;resize:vertical;line-height:1.6}
.contact-form input:focus,.contact-form textarea:focus{border-color:var(--gold-deep);outline:none}
.contact-form .btn{margin-top:16px}
@media (max-width:700px){.contact-grid{grid-template-columns:1fr}}

/* ---------- footer ---------- */
footer{background:var(--ink);color:rgba(var(--veil-rgb),.55);border-top:1px solid rgba(var(--veil-rgb),.12)}
.foot{
  display:flex;justify-content:space-between;gap:30px;flex-wrap:wrap;
  padding:44px 0 18px;font-size:13px;
}
.foot img{height:22px;filter:none}
.foot nav{display:flex;gap:26px;flex-wrap:wrap}
.foot a{text-decoration:none;opacity:.8}
.foot a:hover{opacity:1}
.legal{
  padding:0 0 44px;font-size:11.5px;line-height:1.8;max-width:900px;
  color:rgba(var(--veil-rgb),.38);
}

/* ---------- conversion layer ---------- */
.annbar{
  position:fixed;top:0;left:0;right:0;z-index:70;
  background:var(--ink);color:var(--ivory);
  font-family:var(--mono);font-size:10.5px;letter-spacing:.18em;text-transform:uppercase;
  text-align:center;padding:9px 14px;
}
.annbar b{color:var(--gold);font-weight:500}
.hero-form{display:flex;gap:10px;flex-wrap:wrap;max-width:520px}
.hero-form input{
  flex:1;min-width:220px;
  font:inherit;font-size:14.5px;
  background:var(--paper);border:1px solid var(--hairline);
  color:var(--ink);border-radius:999px;padding:14px 22px;
}
.hero-form input:focus{border-color:var(--gold-deep);outline:none}
.form-status{font-family:var(--mono);font-size:11px;letter-spacing:.1em;margin-top:12px;min-height:16px;color:var(--gold-deep)}
.hero-alt{
  display:inline-block;margin-top:20px;
  font-family:var(--mono);font-size:11px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--ink-soft);text-decoration:none;border-bottom:1px solid var(--hairline);padding-bottom:3px;
}
.hero-alt:hover{color:var(--ink);border-color:var(--ink)}
.stickybar{
  position:fixed;left:0;right:0;bottom:0;z-index:65;
  background:color-mix(in srgb,var(--ink) 96%,transparent);
  color:var(--ivory);
  display:flex;align-items:center;justify-content:center;gap:18px;
  padding:12px 18px;
  transform:translateY(110%);transition:transform .45s cubic-bezier(.2,.6,.2,1);
  border-top:1px solid rgba(var(--veil-rgb),.14);
}
.stickybar.show{transform:none}
.stickybar span{font-family:var(--mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:rgba(var(--veil-rgb),.75)}
.stickybar .btn{background:var(--gold);border-color:var(--gold);padding:10px 22px;font-size:12px}
.stickybar .btn:hover{background:var(--ivory);border-color:var(--ivory);color:var(--ink)}
.midcta{
  display:flex;align-items:center;justify-content:center;gap:22px;flex-wrap:wrap;
  padding:0 0 clamp(70px,8vw,110px);
}
.midcta .k{letter-spacing:.18em}
.proof{background:var(--paper);border-top:1px solid var(--hairline);border-bottom:1px solid var(--hairline)}
.proof-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--hairline);border:1px solid var(--hairline)}
.quote{background:var(--paper);padding:clamp(24px,3vw,40px);display:flex;flex-direction:column;gap:20px}
.quote p{font-size:16.5px;line-height:1.6;color:var(--ink)}
.quote p::before{content:"“";color:var(--gold);font-size:1.4em;line-height:0;margin-right:2px}
.quote .who{font-family:var(--mono);font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--ink-soft);margin-top:auto}
.quote .who b{color:var(--gold-deep);font-weight:500}
.pcard.bundle{
  grid-column:1/-1;flex-direction:row;align-items:center;gap:clamp(18px,3vw,44px);
  background:linear-gradient(120deg,var(--ink-2),var(--ink) 60%);
  min-height:0;padding:clamp(26px,3.4vw,44px);
}
.pcard.bundle .b-copy{flex:1}
.pcard.bundle h3{color:var(--gold);margin:8px 0 8px;font-size:clamp(24px,2.8vw,34px)}
.pcard.bundle .triple{color:rgba(var(--veil-rgb),.6)}
.pcard.bundle .dots{display:flex;gap:8px;margin-top:16px}
.pcard.bundle .dots i{width:12px;height:12px;border-radius:50%;display:block}
.pcard.bundle .go{color:var(--gold);margin:0;white-space:nowrap}
.trust-row{
  position:relative;display:flex;justify-content:center;gap:26px;flex-wrap:wrap;
  margin-top:26px;
  font-family:var(--mono);font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;
  color:rgba(var(--veil-rgb),.55);
}
.trust-row span::before{content:"— ";color:var(--gold)}
.pv-includes{
  display:flex;justify-content:center;gap:22px;flex-wrap:wrap;
  font-family:var(--mono);font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;
  color:var(--ink-soft);margin-top:20px;
}
.pv-includes span::before{content:"— ";color:var(--gold-deep)}

/* ---------- collection ---------- */
.coll-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:1px;
  background:var(--hairline);border:1px solid var(--hairline);
}
.pcard{
  background:var(--ivory);padding:clamp(24px,3vw,38px);
  display:flex;flex-direction:column;gap:14px;
  text-decoration:none;min-height:230px;position:relative;
  transition:background .3s;
}
.pcard:hover{background:var(--paper)}
.pcard .pc-top{display:flex;justify-content:space-between;align-items:center}
.pcard .pc-dot{width:14px;height:14px;border-radius:50%;background:var(--c,var(--gold))}
.pcard .pc-num{font-family:var(--mono);font-size:10px;letter-spacing:.2em;color:var(--ink-soft)}
.pcard h3{
  font-weight:700;font-variation-settings:'wdth' 78;
  font-size:clamp(22px,2.4vw,30px);letter-spacing:.03em;text-transform:uppercase;
  margin-top:auto;color:var(--ink);
}
.pcard .triple{font-family:var(--mono);font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--ink-soft)}
.pcard .go{font-family:var(--mono);font-size:11px;letter-spacing:.14em;color:var(--gold-deep);margin-top:14px}
.pcard:hover .go{color:var(--ink)}
.pcard.featured{background:var(--ink)}
.pcard.featured h3{color:var(--gold)}
.pcard.featured .triple{color:rgba(var(--veil-rgb),.6)}
.pcard.featured .pc-num{color:rgba(var(--veil-rgb),.5)}
.pcard.featured .go{color:var(--gold)}
.pcard.featured:hover{background:var(--ink-2)}
.pc-badge{
  font-family:var(--mono);font-size:9.5px;letter-spacing:.2em;color:var(--ink);
  background:var(--gold);padding:4px 10px;border-radius:999px;
}

/* ---------- product pages ---------- */
#productView{padding-top:72px}
.pv-crumb{
  display:inline-flex;align-items:center;gap:10px;
  font-family:var(--mono);font-size:11px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--ink-soft);text-decoration:none;margin-bottom:10px;
}
.pv-crumb:hover{color:var(--ink)}
.pv-hero{
  display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(24px,5vw,72px);
  align-items:center;padding:clamp(46px,6vw,86px) 0 clamp(40px,5vw,70px);
}
.pv-hero h1{
  font-weight:760;font-variation-settings:'wdth' 72;
  font-size:clamp(46px,7vw,96px);line-height:.94;letter-spacing:-.01em;text-transform:uppercase;
  color:var(--pc,var(--gold));margin:16px 0 10px;
}
.pv-triple{
  font-family:var(--mono);font-size:12px;letter-spacing:.26em;text-transform:uppercase;
  color:var(--ink-soft);display:block;margin-bottom:24px;
}
.pv-lede{color:var(--ink-soft);font-size:16.5px;max-width:46ch;margin-bottom:30px}
.pv-hero .signal{max-width:400px}
.pv-meta{
  display:grid;grid-template-columns:repeat(3,1fr);gap:1px;
  background:var(--hairline);border:1px solid var(--hairline);
  margin:0 0 clamp(56px,7vw,90px);
}
.pv-meta div{background:var(--paper);padding:18px}
.pv-meta .k{display:block;margin-bottom:8px;font-size:10px}
.pv-meta strong{font-weight:560;font-size:14.5px}
.pv-two{
  display:grid;grid-template-columns:1fr 1fr;gap:clamp(28px,5vw,80px);
  padding-bottom:clamp(56px,7vw,90px);
}
.pv-block h2{
  font-weight:700;font-variation-settings:'wdth' 80;
  font-size:clamp(22px,2.6vw,30px);letter-spacing:.03em;text-transform:uppercase;
  margin:14px 0 22px;
}
.pv-list{border-top:1px solid var(--hairline)}
.pv-list li{
  list-style:none;display:grid;grid-template-columns:26px 1fr;gap:14px;
  padding:15px 0;border-bottom:1px solid var(--hairline);
  font-size:15px;color:var(--ink-soft);
}
.pv-list .tick{color:var(--pc,var(--gold-deep));font-family:var(--mono)}
.pv-steps{counter-reset:step;border-top:1px solid var(--hairline);margin-top:8px}
.pv-steps li{
  list-style:none;counter-increment:step;
  display:grid;grid-template-columns:54px 1fr;gap:18px;align-items:baseline;
  padding:18px 0;border-bottom:1px solid var(--hairline);
}
.pv-steps li::before{
  content:"0" counter(step);
  font-family:var(--mono);font-size:13px;letter-spacing:.1em;color:var(--pc,var(--gold-deep));
}
.pv-steps h4{font-weight:640;font-size:15.5px;text-transform:uppercase;letter-spacing:.04em;margin-bottom:4px;font-variation-settings:'wdth' 88}
.pv-steps p{font-size:14.5px;color:var(--ink-soft)}
.pv-cta{
  border:1px solid var(--hairline);background:var(--paper);
  padding:clamp(28px,4vw,48px);text-align:center;margin-bottom:clamp(40px,5vw,64px);
}
.pv-cta h3{
  font-weight:720;font-variation-settings:'wdth' 76;
  font-size:clamp(26px,3.4vw,40px);text-transform:uppercase;letter-spacing:.01em;
  margin-bottom:12px;
}
.pv-cta p{color:var(--ink-soft);max-width:52ch;margin:0 auto 26px;font-size:15px}
.pv-note{font-family:var(--mono);font-size:10.5px;letter-spacing:.08em;line-height:1.8;color:var(--ink-soft);max-width:760px;padding-bottom:clamp(56px,7vw,80px)}
.mode-link{
  position:relative;align-self:flex-start;
  font-family:var(--mono);font-size:11.5px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--mc-solid,var(--gold));text-decoration:none;
  border-bottom:1px solid currentColor;padding-bottom:3px;
  transition:color .4s;
}
.mode-link:hover{color:var(--ivory)}
.pv-others{padding-bottom:clamp(60px,7vw,90px)}
.pv-others .k{display:block;margin-bottom:18px}
.pv-others .row{display:flex;gap:12px;flex-wrap:wrap}
.pv-others a{
  display:inline-flex;align-items:center;gap:10px;
  font-family:var(--mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--ink);text-decoration:none;
  border:1px solid var(--hairline);border-radius:999px;padding:10px 18px;
  transition:border-color .25s,background .25s;
}
.pv-others a:hover{border-color:var(--ink);background:var(--paper)}
.pv-others i{width:9px;height:9px;border-radius:50%;background:var(--c);flex:none}

/* ---------- responsive ---------- */
@media (max-width:960px){
  .coll-grid{grid-template-columns:1fr}
  .pv-hero{grid-template-columns:1fr;gap:36px}
  .pv-two{grid-template-columns:1fr}
  .pv-meta{grid-template-columns:1fr}
  .hero-grid{grid-template-columns:1fr;gap:40px}
  .signal{max-width:380px}
  .mode-shell{grid-template-columns:1fr}
  .sci-grid{grid-template-columns:1fr}
  .steps{grid-template-columns:1fr}
  .step{min-height:0}
  .tl-row{grid-template-columns:1fr;gap:0}
  .tl-track{display:none}
  .tl-item{border-left:1px solid var(--hairline);padding-left:20px;padding-bottom:26px}
  .nav-links{display:none}
}

/* ── BioRevit brand overrides ──────────────────────────────────────────────
   The reference design's logo is a 568x267 wordmark (2.127:1) rendered 26px
   tall; ours is a square mark. A square carries far less visual mass at the
   same height, so it is sized up to hold the same weight in the header and
   footer. object-fit:contain + explicit width AND height mean the box can
   never shift if the mark is replaced again.                             */
.nav-logo img{height:36px;width:36px;object-fit:contain;object-position:left center}
.foot img{height:30px;width:30px;object-fit:contain;object-position:left center}

/* Body copy reads better with our longer name than the original 2-char mark. */
.nav-logo{display:flex;align-items:center}

/* ── Hero signal block: do not let the logo dictate its size ───────────────
   `.signal` carries `margin:0 auto`, which makes it shrink-to-fit: its
   max-content width is derived from the patch image's natural width. The
   original A8 wordmark is 568px wide, so it always overflowed the ~289px hero
   column and the block filled its track. Our 100px square does not, so the
   entire ring/patch graphic collapsed to 100x100. A definite width makes the
   block independent of whatever image sits inside it. */
.signal{width:100%}

/* Our square mark reads timid at the reference's 26% (a wide wordmark fills the
   circle by width alone). Sized up so it holds the centre properly. */
.patch img{width:48%}

/* ---- SITE CONTENT OVERRIDES ---------------------------------------------
   The featured card is the design's "Signature" slot and its accents were
   fixed to gold. The slot is Youth now, so the accent follows the card's own
   --c, falling back to gold for any card that does not set one.            */
.pcard.featured h3{color:var(--c,var(--gold))}
.pcard.featured .go{color:var(--c,var(--gold))}
.pv-lede p+p{margin-top:14px}

/* ---- Endless ticker -----------------------------------------------------
   Two identical sets live inside the track and the track slides by exactly
   one set (-50%). The JS repeats the phrases until ONE set already covers the
   window, so the loop can never show a gap on a wide screen. */
.credo{overflow:hidden}
.ticker .tk-set{display:flex;flex:none}

/* ---- Hero background photograph + parallax -------------------------------
   The client's studio shot puts its subject on the right and leaves the left
   half empty — which is exactly where the copy sits — so it can go behind the
   text without a dark scrim, just a soft ivory veil to keep the type crisp.
   The layer runs 36% past the bottom of the section so that moving it down as
   the page scrolls can never expose an edge; the JS never travels further
   than that slack (32% of the hero height). The URLs carry the file's mtime,
   so a new photograph can never be served from a stale cache.              */
.hero{position:relative;overflow:hidden}
.hero-bg{
  position:absolute;left:0;right:0;top:0;height:136%;z-index:0;
  background-image:url(hero-patch-hand.webp?v=1792153486);
  background-size:cover;background-position:right center;background-repeat:no-repeat;
  pointer-events:none;will-change:transform;
}
.hero-bg::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(100deg,var(--ivory) 4%,rgba(var(--veil-rgb),.9) 30%,rgba(var(--veil-rgb),.42) 55%,rgba(var(--veil-rgb),0) 76%);
}
.hero > .wrap{position:relative;z-index:1}
@media (max-width:900px){
  /* the grid stacks here, so the copy sits over the whole frame: the veil
     turns vertical and the subject pulls up behind the top of the text */
  .hero-bg{height:118%;background-image:url(hero-patch-hand-m.webp?v=1792153486);background-position:center top}
  .hero-bg::after{
    background:linear-gradient(180deg,rgba(var(--veil-rgb),.9) 0%,rgba(var(--veil-rgb),.8) 34%,rgba(var(--veil-rgb),.45) 62%,rgba(var(--veil-rgb),.2) 100%);
  }
}
@media (prefers-reduced-motion:reduce){
  .hero-bg{transform:none!important}
}

/* ---- the palette the theme switch flips ---------------------------------
   The design is a two-colour rhythm: ivory page, ink bands, with the ink
   used both as text on ivory and as the surface behind ivory text. So the dark
   theme is that rhythm inverted — five tokens, not twenty rules — and every
   contrast pair in the sheet survives on its own. The strays below are the
   values the design hardcoded; naming them here is what lets them flip.     */
:root{
  --veil-rgb:243,239,231;   /* every translucent panel / hairline */
  --ink-2:#221D15;          /* the lifted ink: card hover, dark gradient */
  --disc-1:#FFFEF9;--disc-2:#F4EFE4;--disc-3:#E4DCCB;--disc-4:#D6CBB4;
  color-scheme:only light;  /* ours is a real theme: never auto-darken this page */
}
:root[data-theme="dark"]{
  color-scheme:only dark;
  --ivory:#0F0D08;          /* the page: a shade under the ink bands */
  --paper:#17140D;          /* cards: lifted off the page */
  --ink:#F2EDE1;            /* text on the page */
  --ink-soft:#A79E8D;
  --ink-2:#1E1A12;
  --hairline:rgba(242,237,225,.15);
  --gold:#C9A45F;
  --gold-deep:#B08C4A;
  --mode-soft:rgba(201,164,95,.14);
  --veil-rgb:15,13,8;
  --disc-1:#2B2518;--disc-2:#221D14;--disc-3:#191510;--disc-4:#120F0A;
}
/* THE BANDS STAY BANDS. The design uses --ink twice: as the page's text and as
   the surface of its ink bands (modes, cta, footer, annbar, sticky bar, the
   featured/bundle cards). Flipping the page therefore flips those bands to
   cream — which reads as surprise light blocks inside a dark page and, worse,
   leaves their small labels (--ink-soft) at about 2.5:1 because that token is
   tuned for the dark page, not for a light band. So the bands keep the
   client's own palette, verbatim, and their ink surfaces: everything the
   design already got right about contrast inside them is preserved exactly. */
:root[data-theme="dark"] #modes,
:root[data-theme="dark"] .cta,
:root[data-theme="dark"] footer,
:root[data-theme="dark"] .annbar,
:root[data-theme="dark"] .stickybar,
:root[data-theme="dark"] .mode-meta div,
:root[data-theme="dark"] .pcard.featured,
:root[data-theme="dark"] .pcard.bundle{
  color-scheme:only dark;
  --ivory:#F3EFE7;--paper:#FBF9F3;--ink:#16130E;--ink-soft:#5C554A;
  --ink-2:#221D15;--hairline:rgba(22,19,14,.14);--veil-rgb:243,239,231;
  --gold:#AE8A4E;--gold-deep:#8F6F3A;
  --disc-1:#FFFEF9;--disc-2:#F4EFE4;--disc-3:#E4DCCB;--disc-4:#D6CBB4;
  border-top:1px solid rgba(242,237,225,.10);
}
/* The design's phone/waveform drawings carry their ink as an SVG *attribute*
   (#16130E), which no token can reach — dark ink on a dark page simply
   disappears. Repoint those two strokes at the flipped token. */
:root[data-theme="dark"] svg line[stroke="#16130E"],
:root[data-theme="dark"] svg path[stroke="#16130E"]{stroke:var(--ink)}
:root[data-theme="dark"] svg path[fill="#16130E"],
:root[data-theme="dark"] svg circle[fill="#16130E"]{fill:var(--ink)}
/* the studio photograph is lit for a light page: dim it so it reads as a lit
   object instead of a glare, and let the (now dark) veil carry the fade. */
:root[data-theme="dark"] .hero-bg{filter:brightness(.72) saturate(.96)}

/* ---- the switch itself -------------------------------------------------- */
.theme-toggle{
  flex:none;width:42px;height:42px;margin-left:14px;padding:0;
  display:inline-flex;align-items:center;justify-content:center;
  background:transparent;color:var(--ink);
  border:1px solid var(--hairline);border-radius:999px;cursor:pointer;
  transition:border-color .25s,background .25s,transform .2s,color .25s;
}
.theme-toggle:hover{border-color:var(--ink);transform:translateY(-1px)}
.theme-toggle:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.theme-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;
  stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.theme-toggle .tt-moon{display:none;fill:currentColor;stroke:none}
:root[data-theme="dark"] .theme-toggle .tt-sun{display:none}
:root[data-theme="dark"] .theme-toggle .tt-moon{display:block}

/* switching should feel like a dimmer, not a jump — but never for someone who
   asked the system for less motion. */
body,#hdr,.credo,.pcard,#modes,.cta{transition:background-color .35s ease,color .35s ease,border-color .35s ease}
@media (prefers-reduced-motion:reduce){
  body,#hdr,.credo,.pcard,#modes,.cta{transition:none}
}

/* ===== CLINIC SKIN (biorevit.com language) ===== */
/* ============================================================================
   CLINIC SKIN — mybiorevit.com in the biorevit.com visual language
   ----------------------------------------------------------------------------
   Appended by tools/build-homepage-theme.py AFTER the client's design CSS, so
   every rule here wins at equal specificity. Nothing in design-reference-thea8/
   is edited: this file is the whole delta.

   What changes: the type system (Bai Jamjuree + Instrument Serif italic accent
   + IBM Plex Mono labels), the layout grammar (1220px shell, 128px rhythm,
   hairline rules as the only separator, top-ruled text cards, 2px buttons).
   What does not: the palette (ivory / paper / ink / gold / six mode colours),
   the copy, the section order, and both themes.

   Fonts are prepended to this sheet by the builder (FONTS_CSS), so they load
   with the same request and can never 404 separately.
   ========================================================================= */

:root{
  --font-sans:"Bai Jamjuree",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --font-accent:"Instrument Serif",ui-serif,Georgia,"Times New Roman",serif;
  --display:var(--font-sans);          /* every var(--display) follows */
  --maxw:1220px;
  --sec-pad:clamp(76px,9vw,128px);
  --step-2:clamp(1.75rem,1.3rem + 1.9vw,3rem);
  --line:var(--hairline);
}

/* ---------- the type system --------------------------------------------- */
body{
  font-family:var(--font-sans);
  font-variation-settings:normal;
  font-size:1.0625rem;
  line-height:1.62;
  letter-spacing:0;
}
h1,h2,h3,h4{
  font-family:var(--font-sans);
  font-weight:500;
  letter-spacing:-.033em;
  line-height:1.06;
  text-transform:none;
  font-variation-settings:normal;
}
/* the signature: one word per heading set in Instrument Serif italic */
.acc{
  font-family:var(--font-accent);
  font-style:italic;
  font-weight:400;
  font-size:1.06em;
  letter-spacing:-.012em;
}
strong,b{font-weight:500}

.eyebrow{
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:.16em;
  color:var(--ink-soft);
  font-weight:400;
}
.k{
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.14em;
  color:var(--ink-soft);
}

.wrap{max-width:var(--maxw)}
section{position:relative}

/* ---------- controls ----------------------------------------------------- */
.btn{
  border-radius:2px;
  padding:.72rem 1.4rem;
  font-size:.95rem;
  font-weight:500;
  letter-spacing:-.005em;
  text-transform:none;
  transition:opacity .25s ease,background .25s ease,border-color .25s ease;
}
.btn:hover{background:var(--ink);border-color:var(--ink);color:var(--ivory);opacity:.86;transform:none}
.btn.ghost{background:transparent;color:var(--ink);border-color:var(--hairline)}
.btn.ghost:hover{background:transparent;color:var(--ink);border-color:var(--ink);opacity:1}
.nav .btn{padding:.58rem 1.05rem;font-size:.86rem}

/* ---------- header ------------------------------------------------------- */
.nav{height:78px}
.nav-links{gap:30px}
.nav-links a{font-size:14px;font-weight:400;letter-spacing:0;text-transform:none;opacity:.7}
.nav-links a:hover{opacity:1}
.theme-toggle{border-radius:50%;width:38px;height:38px;margin-left:10px}

/* ---------- hero + the client's film ------------------------------------ */
.hero{
  min-height:min(94svh,940px);
  padding-top:150px;
  padding-bottom:clamp(52px,7vw,88px);
}
.hero-grid{grid-template-columns:1.02fr .98fr;gap:clamp(28px,4.5vw,64px)}
.hero h1{
  font-size:clamp(40px,5.5vw,80px);
  line-height:1.03;
  letter-spacing:-.033em;
  font-weight:500;
  text-transform:none;
  margin:26px 0 22px;
  max-width:16ch;
}
.hero h1 .thin{
  font-size:.3em;
  font-weight:300;
  letter-spacing:-.012em;
  line-height:1.4;
  margin-top:24px;
  color:var(--ink-soft);
  text-transform:none;
}
.hero-sub{font-size:1.03em;line-height:1.66;max-width:44ch;color:var(--ink-soft);margin-bottom:32px}
.hero-note{font-size:10.5px;letter-spacing:.14em;color:var(--ink-soft)}
.hero-alt{font-size:11px;letter-spacing:.14em;color:var(--ink-soft);border-bottom-color:var(--hairline)}

/* the image layer becomes a video layer; the parent JS parallax still
   transforms .hero-bg, so the film moves with the page exactly as the photo
   did. 136% height is the slack that transform travels through. */
.hero-bg{background-image:none;background:none;height:136%}
.hero-bg video{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:center 45%;
  pointer-events:none;
}
.hero-bg::after{
  background:
    linear-gradient(100deg,var(--ivory) 0%,rgba(var(--veil-rgb),.95) 30%,
      rgba(var(--veil-rgb),.62) 56%,rgba(var(--veil-rgb),.10) 82%),
    linear-gradient(180deg,rgba(var(--veil-rgb),0) 62%,rgba(var(--veil-rgb),.65) 100%);
}
:root[data-theme="dark"] .hero-bg video{filter:brightness(.6) saturate(.92)}

/* hero form: boxes, not pills — and the two fields share the row evenly, so
   the button never floats under a stubby name field */
.hero-form{align-items:stretch}
.hero-form input,
.hero-form input[type=text]{flex:1 1 0;min-width:0;width:auto}
.hero-form input{
  border-radius:2px;
  background:var(--paper);
  border:1px solid color-mix(in srgb,var(--ink) 20%,transparent);
  padding:.72rem 1.05rem;
  font-size:.95rem;
}
.hero-form input:focus{border-color:var(--ink);outline:none}
.form-status{font-size:10.5px;letter-spacing:.12em;color:var(--ink-soft)}
.form-consent{font-size:10.5px;letter-spacing:.12em;color:var(--ink-soft)}

/* ---------- announcement + ticker --------------------------------------- */
.annbar{font-size:10px;letter-spacing:.16em;padding:8px 14px}
.annbar b{font-weight:500}
.credo{background:transparent;border-color:var(--hairline)}
.ticker span{font-size:11px;letter-spacing:.14em;color:var(--ink-soft);padding:18px 0}
.ticker span::after{width:4px;height:4px;background:var(--gold);opacity:.7;margin:0 28px}

/* ---------- section rhythm ---------------------------------------------- */
.sec{padding:var(--sec-pad) 0;border-top:1px solid var(--hairline)}
.hero + .credo{border-top:none}
.sec-head{max-width:760px;margin-bottom:clamp(36px,5vw,64px)}
.sec-head h2{
  font-size:var(--step-2);
  line-height:1.06;
  letter-spacing:-.033em;
  font-weight:500;
  text-transform:none;
  margin:18px 0 18px;
}
.sci-h2{
  font-size:var(--step-2) !important;
  font-weight:500 !important;
  font-variation-settings:normal !important;
  line-height:1.06 !important;
  letter-spacing:-.033em !important;
  text-transform:none !important;
  margin:18px 0 18px !important;
}
.sec-head p{font-size:1.02em;line-height:1.66;max-width:52ch;color:var(--ink-soft)}

/* ---------- how it works: top-ruled columns, no boxes ------------------- */
.steps{
  grid-template-columns:repeat(3,1fr);
  gap:clamp(24px,3.2vw,44px);
  background:none;border:none;border-top:1px solid var(--hairline);
}
.step{
  background:transparent;border:none;
  padding:clamp(22px,2.4vw,30px) 0 0;
  min-height:0;display:block;
}
.step .glyph{width:28px;height:28px;color:var(--ink-soft);opacity:.7;margin-bottom:20px}
.step .k{display:block;margin-bottom:12px;font-size:10.5px}
.step h3{
  font-size:19px;font-weight:500;letter-spacing:-.02em;
  text-transform:none;margin-bottom:8px;
}
.step p{font-size:15px;line-height:1.66;color:var(--ink-soft)}

/* ---------- the six modes: a paper band, not an ink one ----------------- */
#modes{background:var(--paper);color:var(--ink);border-top:1px solid var(--hairline);border-bottom:1px solid var(--hairline)}
#modes .eyebrow{color:var(--ink-soft)}
#modes .sec-head p{color:var(--ink-soft)}
.mode-list{border-top-color:var(--hairline)}
.mode-tab{
  border-bottom-color:var(--hairline);color:var(--ink);
  opacity:.55;padding:17px 4px;
}
.mode-tab:hover{opacity:.8}
/* the design's grey-out alone leaves it ambiguous which mode is open, so the
   selected row also carries a 2px bar in its own colour */
.mode-tab[aria-selected="true"]{
  opacity:1;padding-left:14px;
  box-shadow:inset 2px 0 0 var(--c,var(--gold));
}
.mode-tab .dot{width:9px;height:9px}
.mode-tab[aria-selected="true"] .dot{box-shadow:none}
.mode-tab .name{
  font-size:clamp(19px,1.65vw,23px);font-weight:500;
  letter-spacing:-.02em;text-transform:none;
}
.mode-tab .win{color:var(--ink-soft);font-size:10px}
.mode-panel{border-color:var(--hairline);min-height:380px;padding:clamp(24px,3vw,40px)}
.mode-panel::before{display:none}
.mode-kicker h3{
  font-size:clamp(28px,2.8vw,40px);font-weight:500;
  letter-spacing:-.03em;text-transform:none;line-height:1.04;
}
.mode-kicker .idx{color:var(--ink-soft)}
.mode-desc{color:var(--ink-soft);font-size:1.02em;line-height:1.66;max-width:46ch}
.mode-meta{
  background:none;border:none;border-top:1px solid var(--hairline);
  grid-template-columns:repeat(3,1fr);gap:0;
}
.mode-meta div{background:transparent;padding:16px 16px 0 0}
.mode-meta .k{color:var(--ink-soft)}
.mode-meta strong{font-weight:500;font-size:14.5px}
.mode-wave path{stroke-width:1.2}
.mode-link{color:var(--mc-solid,var(--gold-deep));letter-spacing:.14em;border-bottom:1px solid currentColor}
.mode-link:hover{color:var(--ink)}

/* ---------- science: a split, not a framed figure ----------------------- */
.sci-copy p{font-size:1.02em;line-height:1.66}
.sci-fig{border:none;border-top:1px solid var(--hairline);background:transparent;padding:26px 0 0}
.sci-fig .k{color:var(--ink-soft)}
.sci-fig .cap{font-size:10.5px;letter-spacing:.1em;line-height:1.75;color:var(--ink-soft)}
.sci-points{border-top-color:var(--hairline)}
.sci-points li{border-bottom-color:var(--hairline);font-size:15px;line-height:1.6}
.sci-points .tick{color:var(--gold-deep)}

/* ---------- the day timeline ------------------------------------------- */
.day{background:var(--paper);border-color:var(--hairline)}
.tl-item .t{color:var(--ink-soft);font-size:10.5px;letter-spacing:.14em}
.tl-item h4{
  font-size:16px;font-weight:500;letter-spacing:-.015em;
  text-transform:none;margin-bottom:6px;
}
.tl-item p{font-size:14px;line-height:1.6;color:var(--ink-soft)}
.tl-track{background:var(--hairline)}

/* ---------- faq: rules, calm type -------------------------------------- */
.faq-list{max-width:860px;border-top-color:var(--hairline)}
.faq-list details{border-bottom-color:var(--hairline)}
.faq-list summary{font-size:1.05em;font-weight:500;letter-spacing:-.01em;padding:22px 0}
.faq-list summary .x{color:var(--ink-soft);font-size:16px}
.faq-list details p{font-size:15.5px;line-height:1.72;color:var(--ink-soft);padding:0 0 24px}

/* ---------- reserve: the one ink band ---------------------------------- */
.cta h2{
  font-size:clamp(32px,4.4vw,58px);
  font-weight:500;line-height:1.06;letter-spacing:-.033em;
  text-transform:none;max-width:18ch;
}
.cta p{font-size:1.02em;line-height:1.66;color:rgba(var(--veil-rgb),.68)}
.cta .ringfield i{border-color:rgba(174,138,78,.13)}
.cta-form input{
  border-radius:2px;padding:.72rem 1.05rem;min-width:230px;
  font-size:.95rem;border-color:rgba(var(--veil-rgb),.42);
}
.cta-form .btn{border-radius:2px}
.cta-ok{font-size:10.5px;letter-spacing:.14em}

/* ---------- contact ----------------------------------------------------- */
.contact-form input,.contact-form textarea{
  border-radius:2px;
  /* a hairline at .14 is invisible as a field edge on a warm page; 24% of ink
     keeps the clinic's rule-weight while still reading as an input */
  border:1px solid color-mix(in srgb,var(--ink) 24%,transparent);
  background:var(--paper);padding:.85rem 1rem;font-size:.95rem;
}
.contact-form textarea{border-radius:2px;min-height:150px}
.contact-form input:focus,.contact-form textarea:focus{border-color:var(--ink)}
.midcta .k{letter-spacing:.14em;color:var(--ink-soft)}

/* ---------- proof: quotes set in the italic serif ---------------------- */
.proof{background:var(--paper);border-color:var(--hairline)}
.proof-grid{
  grid-template-columns:repeat(3,1fr);
  gap:clamp(24px,3.2vw,44px);
  background:none;border:none;border-top:1px solid var(--hairline);
}
.quote{background:transparent;padding:26px 0 0;gap:20px}
.quote p{
  font-family:var(--font-accent);font-style:italic;
  font-size:1.24em;line-height:1.44;letter-spacing:0;color:var(--ink);
}
.quote p::before{content:none}
.quote .who{font-size:10.5px;letter-spacing:.14em;color:var(--ink-soft);margin-top:auto}
.quote .who b{color:var(--gold-deep);font-weight:500}

/* ---------- collection: hairline cards, no fills ----------------------- */
.coll-grid{
  grid-template-columns:repeat(3,1fr);
  gap:0 clamp(24px,3.2vw,44px);
  background:none;border:none;border-top:1px solid var(--hairline);
}
.pcard{
  background:transparent;border-bottom:1px solid var(--hairline);
  padding:26px 0 30px;min-height:0;gap:12px;
}
.pcard:hover{background:transparent}
.pcard .pc-dot{width:9px;height:9px}
.pcard .pc-num{color:var(--ink-soft);font-size:10px}
.pcard h3{
  font-size:clamp(21px,2vw,26px);font-weight:500;
  letter-spacing:-.025em;text-transform:none;
}
.pcard .triple{font-size:10.5px;letter-spacing:.14em;color:var(--ink-soft)}
.pcard .go{font-size:10.5px;letter-spacing:.14em;color:var(--gold-deep);margin-top:auto;padding-top:12px}
.pcard:hover .go{color:var(--ink)}
.pcard.featured{background:transparent}
.pcard.featured:hover{background:transparent}
.pcard.featured h3{color:var(--c,var(--gold-deep))}
.pcard.featured .go{color:var(--c,var(--gold-deep))}
/* the design painted these two lines in ivory because the featured card was an
   ink block; on the skin it is a plain column on paper, so ivory-60 vanished in
   BOTH themes. Match the sibling cards: three words of ink-soft.
   Specificity note: the design's `.pcard.featured .triple` (0,2,1) outranks the
   skin's `.pcard .triple` (0,1,1), so the override must name `.featured` too. */
.pcard.featured .triple,
.pcard.featured .pc-num{color:var(--ink-soft)}
.pcard.bundle{
  background:var(--paper);border:1px solid var(--hairline);
  padding:clamp(22px,2.6vw,32px);flex-direction:row;align-items:center;
  gap:clamp(18px,3vw,40px);
}
.pcard.bundle h3{color:var(--ink);font-size:clamp(22px,2.2vw,30px)}
.pcard.bundle .triple{color:var(--ink-soft)}
.pcard.bundle .go{color:var(--gold-deep)}
.pc-badge{
  border-radius:2px;background:transparent;border:1px solid var(--hairline);
  color:var(--ink-soft);font-size:9.5px;padding:4px 8px;
}
.trust-row,.pv-includes{font-size:10.5px;letter-spacing:.12em;color:var(--ink-soft)}
.trust-row span::before,.pv-includes span::before{content:"· ";color:var(--gold)}

/* ---------- product view (the #/product overlay) ----------------------- */
.pv-hero h1{
  font-size:clamp(40px,5vw,72px);font-weight:500;line-height:1.04;
  letter-spacing:-.033em;text-transform:none;
}
.pv-triple{font-size:11.5px;letter-spacing:.2em;color:var(--ink-soft)}

/* the mode patch: a mode that has its own photograph drops the design's
   painted disc (gradient, conic etch, inner ring, logo) and shows the photo
   alone; modes without one keep the original treatment, so the swap can be
   done one product at a time. */
.patch--photo{background:none;box-shadow:none}
.patch--photo::before,
.patch--photo::after{content:none}
.patch--photo img{width:100%;height:100%;object-fit:contain;opacity:1;display:block}

/* the photograph takes the whole signal box, and the box is sized to the
   picture: 614px on a desktop, never wider than the viewport so it cannot
   create a horizontal scrollbar. The rings start at 10.8% of the box and are
   drawn 2px deep, so they read over a photographic backdrop without touching
   the mode colour. */
#pv-signal.is-photo{width:614px;max-width:calc(100vw - 40px);justify-self:center}
#pv-signal .patch--photo{width:100%}
#pv-signal.is-photo .ring{z-index:3;width:10.8%;height:10.8%;border-width:2px}

/* ---------- full-frame mode ------------------------------------------------
   He supplies the whole photograph when the hand itself must stay in shot.
   EVERY number here is a percentage of the signal box, never a pixel: the box
   is what changes with the viewport, so the frame, its anchor and the rings
   all scale with it and keep their relation to each other at any screen size.
   The frame is anchored by its top-right corner, so a smaller --pw pulls the
   hand up and right, exactly like dragging a corner handle. */
#pv-signal.is-full{
  --pw:161.2%;  /* photograph width, as a share of the box: THE size dial */
  --pr:12.7%;   /* its right edge past the box */
  --pt:20.5%;   /* its top edge above the box */
  --rx:1.3%;    /* nudge the pulse right, off the frame's exact patch point */
  --ry:4.7%;    /* and up */
}
#pv-signal.is-full .patch--full{
  position:absolute;right:calc(-1 * var(--pr));top:calc(-1 * var(--pt));
  width:var(--pw);
  height:auto;aspect-ratio:auto;
  background:none;box-shadow:none;pointer-events:none;
  mix-blend-mode:darken;
}
/* the patch sits 65% across and 50% down the frame, so the rings are placed
   there rather than in the middle of the box: they stay on the patch even when
   the box resizes, because this is the same arithmetic in the same units */
#pv-signal.is-full .ring{
  inset:auto;margin:0;
  left:calc(100% + var(--pr) - .35 * var(--pw) + var(--rx));
  top:calc(-1 * var(--pt) + .3932 * var(--pw) - var(--ry));
  translate:-50% -50%;
  animation-name:emit-grow;  /* grow the size, not the stroke */
  border-width:3px;          /* a fixed stroke: thick on a small ring, thin on a big one */
}
/* scale() would blow the border up with the ring (3px becomes 18px at the far
   end). Animating width/height instead leaves the stroke at 3px, so the pulse
   thins out as it travels, the way a spreading signal should. */
@keyframes emit-grow{
  0%{width:10.8%;height:10.8%;opacity:.5}
  100%{width:64.8%;height:64.8%;opacity:0}
}
/* the blend only reaches the paper if #pv-signal is NOT a stacking context,
   hence no z-index here: the copy above it carries z-index instead */
/* a dark page has nothing for a white studio background to blend into, and the
   photograph has no alpha, so it waits for a cut-out before it can live there */
:root[data-theme="dark"] #pv-signal.is-full .patch--full{display:none}
#pv-signal.is-full .patch--full::before,
#pv-signal.is-full .patch--full::after{content:none}
#pv-signal.is-full .patch--full img{width:100%;height:auto;opacity:1;display:block}

/* the copy and the blocks below it must win the paint order over the photo */
/* the hand runs from the top right to the bottom left, so the copy is lifted
   into the clear corner above it instead of sitting in the middle of the frame */
#productView.photo-mode .pv-hero > div:first-child{align-self:start}
#productView.photo-mode .pv-hero > div:first-child,
#productView.photo-mode .pv-crumb,
#productView.photo-mode .pv-meta,
#productView.photo-mode .pv-two,
#productView.photo-mode .pv-cta,
#productView.photo-mode .pv-others{position:relative;z-index:3}
.pv-lede{font-size:1.02em;line-height:1.66;max-width:46ch}
.pv-block h2{
  font-size:clamp(20px,2vw,26px);font-weight:500;
  letter-spacing:-.025em;text-transform:none;
}
.pv-steps h4{font-size:16px;font-weight:500;letter-spacing:-.015em;text-transform:none}
.pv-steps li::before{font-size:12px;letter-spacing:.08em}
.pv-list li{font-size:15px;line-height:1.6}
.pv-cta{border:none;border-top:1px solid var(--hairline);background:transparent;text-align:left;padding:34px 0;margin-bottom:clamp(40px,5vw,64px)}
.pv-cta h3{font-size:clamp(22px,2.4vw,32px);font-weight:500;letter-spacing:-.03em;text-transform:none;text-align:left}
.pv-cta p{margin:0 0 24px;text-align:left}
.pv-others a{border-radius:2px;padding:8px 14px;font-size:10.5px;letter-spacing:.12em}
.pv-meta{border-color:var(--hairline)}
.pv-meta div{background:transparent;padding:16px 16px 0 0}
.pv-meta{border:none;border-top:1px solid var(--hairline);background:none}
.pv-meta .k{color:var(--ink-soft)}
.pv-meta strong{font-weight:500}
.pv-note{font-size:10.5px;letter-spacing:.08em;line-height:1.8}
.pv-crumb{font-size:10.5px;letter-spacing:.14em}

/* ---------- footer + conversion bar ------------------------------------ */
.foot{font-size:13px}
.legal{font-size:11.5px;line-height:1.8}
.stickybar span{font-size:10.5px;letter-spacing:.12em}
.stickybar .btn{font-size:.86rem;padding:.5rem 1rem;border-radius:2px}

/* ---------- dark theme: keep the bands and the new light band honest ---- */
/* #modes is a light band in daylight; in the dark theme it must be a dark
   band, so the design's "bands keep the client's palette" rule is re-declared
   here with the DARK tokens. */
:root[data-theme="dark"] #modes{
  --ivory:#0F0D08;--paper:#17140D;--ink:#F2EDE1;--ink-soft:#A79E8D;
  --ink-2:#1E1A12;--hairline:rgba(242,237,225,.15);--veil-rgb:15,13,8;
  --gold:#C9A45F;--gold-deep:#B08C4A;
  color-scheme:only dark;
  background:#141109;
  border-color:rgba(242,237,225,.12);
}
:root[data-theme="dark"] .pcard.featured,
:root[data-theme="dark"] .pcard.bundle,
:root[data-theme="dark"] .mode-meta div{
  --ivory:#0F0D08;--paper:#17140D;--ink:#F2EDE1;--ink-soft:#A79E8D;
  --hairline:rgba(242,237,225,.15);--veil-rgb:15,13,8;
  --gold:#C9A45F;--gold-deep:#B08C4A;
}
:root[data-theme="dark"] .pcard.bundle{background:var(--paper)}

/* ---------- responsive -------------------------------------------------- */
@media (max-width:960px){
  .hero{min-height:auto;padding-top:132px;padding-bottom:56px}
  .hero h1{font-size:clamp(34px,7.6vw,56px);max-width:none}
  .hero h1 .thin{font-size:.34em}
  .sec-head h2,.sci-h2{font-size:clamp(27px,6.6vw,40px) !important}
  .proof-grid{grid-template-columns:1fr}
  .mode-meta{grid-template-columns:1fr 1fr}
  .pcard.bundle{flex-direction:column;align-items:flex-start}
  .pv-cta h3{text-align:left}
}
@media (max-width:900px){
  .hero-bg{height:118%}
  .hero-bg video{object-position:center 30%}
  .hero-bg::after{
    background:
      linear-gradient(180deg,rgba(var(--veil-rgb),.95) 0%,rgba(var(--veil-rgb),.86) 38%,
        rgba(var(--veil-rgb),.55) 66%,rgba(var(--veil-rgb),.25) 100%),
      linear-gradient(100deg,rgba(var(--veil-rgb),.35),transparent 60%);
  }
}
@media (max-width:620px){
  :root{--sec-pad:clamp(56px,12vw,84px)}
  .mode-meta{grid-template-columns:1fr}
  .mode-panel{padding:22px 18px}
  .quote p{font-size:1.18em}
  /* a two-field row at 390px truncates the email placeholder, so the hero and
     reserve forms stack rather than squeeze */
  .hero-form,.cta-form{flex-direction:column;align-items:stretch;max-width:none}
  .hero-form input,.hero-form input[type=text]{width:100%;flex:0 0 auto}
  .hero-form .btn,.cta-form .btn{width:100%;justify-content:center}
  .cta-form input{min-width:0;width:100%}
}

/* motion: a dimmer, never a jump */
@media (prefers-reduced-motion:reduce){
  .hero-bg video{display:none}
  .hero-bg{background-image:url(hero-poster.jpg);background-size:cover;background-position:center}
}
