/* ═══════════════════════════════════════════════════════════════
   VARINPAT CLINIC — design system
   Palette extends the existing logo CI (navy V monogram on white).
   No Tailwind, no CDN CSS: every class below is defined in this file,
   so a class can never silently fail the way a partial Tailwind build
   does. Fonts are self-hosted (Switzer / Instrument Serif) + Google
   (IBM Plex Sans Thai).
   ═══════════════════════════════════════════════════════════════ */

/* ─── self-hosted Latin ───────────────────────────────────────── */
@font-face { font-family:'Switzer'; src:url('/assets/fonts/Switzer-Light.woff2')    format('woff2'); font-weight:300; font-style:normal; font-display:swap }
@font-face { font-family:'Switzer'; src:url('/assets/fonts/Switzer-Regular.woff2')  format('woff2'); font-weight:400; font-style:normal; font-display:swap }
@font-face { font-family:'Switzer'; src:url('/assets/fonts/Switzer-Medium.woff2')   format('woff2'); font-weight:500; font-style:normal; font-display:swap }
@font-face { font-family:'Switzer'; src:url('/assets/fonts/Switzer-Semibold.woff2') format('woff2'); font-weight:500; font-style:normal; font-display:swap }
@font-face { font-family:'Switzer'; src:url('/assets/fonts/Switzer-Bold.woff2')     format('woff2'); font-weight:700; font-style:normal; font-display:swap }
@font-face { font-family:'Boska'; src:url('/assets/fonts/Boska-Light.woff2')   format('woff2'); font-weight:300; font-style:normal; font-display:swap }
@font-face { font-family:'Boska'; src:url('/assets/fonts/Boska-Regular.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap }
/* Prompt (OFL) self-hosted — เดิมดึงจาก Google Fonts ซึ่งบล็อกการแสดงผล ~3 วิบนมือถือเน็ตช้า */
@font-face { font-family:'Prompt'; src:url('/assets/fonts/Prompt-300-thai.woff2') format('woff2'); font-weight:300; font-style:normal; font-display:swap; unicode-range:U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC }
@font-face { font-family:'Prompt'; src:url('/assets/fonts/Prompt-300-latin-ext.woff2') format('woff2'); font-weight:300; font-style:normal; font-display:swap; 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF }
@font-face { font-family:'Prompt'; src:url('/assets/fonts/Prompt-300-latin.woff2') format('woff2'); font-weight:300; font-style:normal; font-display:swap; 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:'Prompt'; src:url('/assets/fonts/Prompt-400-thai.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; unicode-range:U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC }
@font-face { font-family:'Prompt'; src:url('/assets/fonts/Prompt-400-latin-ext.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF }
@font-face { font-family:'Prompt'; src:url('/assets/fonts/Prompt-400-latin.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; 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:'Prompt'; src:url('/assets/fonts/Prompt-500-thai.woff2') format('woff2'); font-weight:500; font-style:normal; font-display:swap; unicode-range:U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC }
@font-face { font-family:'Prompt'; src:url('/assets/fonts/Prompt-500-latin-ext.woff2') format('woff2'); font-weight:500; font-style:normal; font-display:swap; 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF }
@font-face { font-family:'Prompt'; src:url('/assets/fonts/Prompt-500-latin.woff2') format('woff2'); font-weight:500; font-style:normal; font-display:swap; 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 }

/* ═══ TOKENS ═══════════════════════════════════════════════════ */
:root{
  /* v3 — palette lifted from the reference the client chose (aerodynamics.nl).
     Their two brand colours are named nachtblauw and wolkenwit; both are used
     here verbatim, and the four-stop sky gradient is their exact ramp. It maps
     onto Varinpat's existing navy V monogram without a fight. */
  --night:    #05275B;   /* nachtblauw — EVERY heading on a light surface */
  --cloud:    #FCFDFE;   /* wolkenwit  — page background                  */

  /* the sky ramp: deep at altitude, pale at the horizon */
  --sky-1:    #214C6F;
  --sky-2:    #7495B5;
  --sky-3:    #B4CADD;
  --sky-4:    #E5EAF0;
  --grad-sky:     linear-gradient(180deg,var(--sky-1) 0%,var(--sky-2) 33.18%,var(--sky-3) 70.2%,var(--sky-4) 100%);
  --grad-sky-cut: linear-gradient(-172deg,var(--sky-1) 5%,var(--sky-2) 25%,var(--sky-3) 50%,#E3EBF1 60%,var(--sky-2) 100%);

  --ink:      #05275B;   /* deepest — film scrims, footer                 */
  --ink-soft: #214C6F;   /* dark panel one step up from --ink             */
  --navy:     #05275B;   /* text accent on LIGHT backgrounds              */
  --steel:    #4E739F;   /* secondary text, icons                         */
  --sky:      #B4CADD;   /* accent on DARK backgrounds — never on light   */
  --mist:     #E5EAF0;   /* pale blue fill                                */
  --line:     #DCE4EE;   /* hairlines on light                            */
  --paper:    #FCFDFE;   /* default page background                       */
  /* the reference runs entirely cool; the warm neutral that used to sit here
     would read as a different brand next to it, so --bone is now a cool pale
     and every existing .bg-bone section re-skins with no markup change */
  --bone:     #EFF3F8;
  --white:    #FFFFFF;
  --body:     #41597A;   /* body copy on light                            */
  --body-dk:  #D5E1EF;   /* body copy on dark                             */

  /* Type */
  --f-display: 'Boska', 'Prompt', serif;
  --f-sans:    'Switzer', 'Prompt', -apple-system, sans-serif;
  --f-thai:    'Prompt', 'Switzer', sans-serif;

  /* Rhythm */
  --gut: clamp(20px, 4.4vw, 40px);
  --sec: clamp(72px, 9vw, 140px);   /* vertical section padding — matches the reference's flat 140 */
  --max: 1240px;
  --radius: 16px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ═══ RESET ════════════════════════════════════════════════════ */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
/* NEVER overflow-x:hidden on html/body — it silently kills position:sticky */
html,body{overflow-x:clip}
body{
  margin:0; background:var(--paper); color:var(--ink);
  font-family:var(--f-sans); font-weight:400; line-height:1.7;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}
img,video,svg{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
h1,h2,h3,h4,p,figure,blockquote{margin:0}
ul,ol{margin:0;padding:0;list-style:none}
:focus-visible{outline:2px solid var(--steel);outline-offset:3px;border-radius:4px}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
}

/* ═══ TYPE SCALE ═══════════════════════════════════════════════ */
/* Thai copy sits in Plex Thai; Latin inside Thai copy renders in Switzer
   because Switzer leads the stack and has no Thai glyphs to fall back on. */
.th{font-family:var(--f-thai);font-weight:300}

/* Display = English only. Plex Thai is placed before `serif` in --f-display
   so a stray Thai character can never be rendered by a looped serif. */
.d1{font-family:var(--f-display);font-weight:400;font-size:clamp(46px,7.2vw,94px);line-height:.98;letter-spacing:-.012em}
.d2{font-family:var(--f-display);font-weight:400;font-size:clamp(36px,4.6vw,62px);line-height:1.04;letter-spacing:-.01em}
.d3{font-family:var(--f-display);font-weight:400;font-size:clamp(28px,3.1vw,42px);line-height:1.1}

/* Thai headings — max 2 visual lines, always loopless.
   `text-wrap:pretty` stops a Thai heading from dropping one short syllable
   onto its own last line, which reads as a typo rather than a line break. */
.d1,.d2,.d3,.h2,.h3,.h4{text-wrap:pretty}
.h2{font-family:var(--f-thai);font-weight:500;font-size:clamp(23px,2.9vw,38px);line-height:1.38;letter-spacing:-.01em}
.h3{font-family:var(--f-thai);font-weight:500;font-size:clamp(18px,1.65vw,22px);line-height:1.5}
.h4{font-family:var(--f-thai);font-weight:500;font-size:var(--t-base);line-height:1.55}

.lead{font-family:var(--f-thai);font-weight:300;font-size:clamp(15.5px,1.3vw,18px);line-height:1.95;color:var(--body)}
.copy{font-family:var(--f-thai);font-weight:300;font-size:var(--t-base);line-height:1.95;color:var(--body)}
.small{font-family:var(--f-thai);font-weight:300;font-size:var(--t-sm);line-height:1.8;color:var(--steel)}

/* EVERY numeral on the site is Switzer — never the serif, never Plex Thai.
   Licence numbers, ratings, prices, hours, index numbers all use .num. */
.num{font-family:var(--f-sans);font-weight:500;letter-spacing:-.02em;font-variant-numeric:tabular-nums}

.eyebrow{font-family:var(--f-sans);font-weight:500;letter-spacing:.06em;font-size:var(--t-xs);color:var(--steel)}
.eyebrow-line{display:inline-flex;align-items:center;gap:12px}
.eyebrow-line::before{content:'';width:26px;height:1px;background:currentColor;opacity:.5}

/* on dark spreads */
.on-dark{color:var(--white)}
.on-dark .lead,.on-dark .copy{color:var(--body-dk)}
.on-dark .small,.on-dark .eyebrow{color:var(--sky)}

/* ═══ LAYOUT ═══════════════════════════════════════════════════ */
.wrap{max-width:var(--max);margin-inline:auto;padding-inline:var(--gut)}
.wrap-narrow{max-width:840px;margin-inline:auto;padding-inline:var(--gut)}
.section{padding-block:var(--sec)}
.section-sm{padding-block:clamp(44px,6vw,78px)}
.bg-paper{background:var(--paper)}
.bg-white{background:var(--white)}
.bg-mist{background:var(--mist)}
.bg-bone{background:var(--bone)}
.bg-ink{background:var(--ink);color:var(--white)}
.bg-ink-soft{background:var(--ink-soft);color:var(--white)}
.grid{display:grid;gap:clamp(18px,2.4vw,30px)}
.g2{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}
.g3{grid-template-columns:repeat(auto-fit,minmax(min(100%,268px),1fr))}
.g4{grid-template-columns:repeat(auto-fit,minmax(min(100%,222px),1fr))}
.stack{display:flex;flex-direction:column}
.row{display:flex;flex-wrap:wrap;align-items:center}
.hr{height:1px;background:var(--line);border:0}
/* icon + text list row. NOT .row — .row wraps, which drops a long line of
   copy underneath its own bullet icon instead of beside it. */
.bullet{display:flex;gap:11px;align-items:flex-start;flex-wrap:nowrap}
.bullet > svg{flex:none;margin-top:6px}
.bullet > span{flex:1;min-width:0}
.on-dark .hr{background:rgba(159,187,219,.24)}

/* ═══ BUTTONS ══════════════════════════════════════════════════ */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  font-family:var(--f-thai);font-weight:500;font-size:var(--t-base);line-height:1;
  padding:15px 26px;border-radius:999px;transition:all .3s var(--ease);
  white-space:nowrap;
}
.btn svg{flex:none}
.btn-line{background:#06C755;color:#fff}
.btn-line:hover{background:#05b34c;transform:translateY(-1px)}
.btn-ink{background:var(--ink);color:#fff}
.btn-ink:hover{background:var(--navy);transform:translateY(-1px)}
.btn-ghost{border:1px solid var(--line);color:var(--navy);background:var(--white)}
.btn-ghost:hover{border-color:var(--steel);background:var(--mist)}
.on-dark .btn-ghost{border-color:rgba(159,187,219,.4);color:var(--white);background:transparent}
.on-dark .btn-ghost:hover{border-color:var(--sky);background:rgba(159,187,219,.12)}
.btn-sm{padding:11px 19px;font-size:var(--t-sm)}

.link-arrow{
  display:inline-flex;align-items:center;gap:7px;font-family:var(--f-thai);
  font-weight:500;font-size:var(--t-sm);color:var(--navy);transition:gap .3s var(--ease)
}
.link-arrow:hover{gap:12px}
.on-dark .link-arrow{color:var(--sky)}

/* ═══ CARDS ════════════════════════════════════════════════════ */
.card{
  background:var(--white);border:1px solid var(--line);border-radius:var(--radius);
  padding:clamp(22px,2.4vw,32px);transition:border-color .3s var(--ease),transform .3s var(--ease),box-shadow .3s var(--ease)
}
a.card:hover{border-color:var(--steel);transform:translateY(-3px);box-shadow:0 14px 34px -20px rgba(10,30,56,.35)}
.on-dark .card{background:rgba(255,255,255,.05);border-color:rgba(159,187,219,.2)}
.on-dark a.card:hover{border-color:var(--sky);background:rgba(255,255,255,.08)}

.card-index{font-family:var(--f-sans);font-weight:500;font-size:var(--t-xs);letter-spacing:.1em;color:var(--sky)}

/* ═══ NAVBAR ═══════════════════════════════════════════════════ */
.nav{position:sticky;top:0;z-index:60;background:rgba(247,249,252,.82);backdrop-filter:blur(14px);
     border-bottom:1px solid var(--line);transition:background .3s var(--ease)}
.nav-dark{background:rgba(10,30,56,.78);border-bottom-color:rgba(159,187,219,.2)}
.nav-inner{display:flex;align-items:center;justify-content:space-between;gap:22px;
     max-width:var(--max);margin-inline:auto;padding:13px var(--gut)}
.nav-logo{display:flex;align-items:center;gap:11px;flex:none}
.nav-logo .mark{height:38px;width:auto}
/* colour mark on light surfaces, flat white on dark ones */
.nav-logo .mark-w{display:none}
.nav-dark .nav-logo .mark-c,
.mobile-menu .nav-logo .mark-c,
.footer .nav-logo .mark-c{display:none}
.nav-dark .nav-logo .mark-w,
.mobile-menu .nav-logo .mark-w,
.footer .nav-logo .mark-w{display:block}
.nav-logo .wordmark{display:flex;flex-direction:column;line-height:1.08}
.nav-logo .wordmark b{font-family:var(--f-sans);font-weight:500;font-size:15px;letter-spacing:.02em}
.nav-logo .wordmark span{font-family:var(--f-sans);font-weight:400;font-size:9.5px;letter-spacing:.06em;color:var(--steel)}
.nav-dark .nav-logo .wordmark span{color:var(--sky)}

.nav-links{display:none;gap:clamp(16px,2vw,30px);align-items:center}
@media (min-width:1000px){.nav-links{display:flex}}
.nav-links a{font-family:var(--f-thai);font-weight:400;font-size:var(--t-sm);color:var(--navy);
  position:relative;padding:6px 0;transition:color .25s var(--ease)}
.nav-dark .nav-links a{color:#E3ECF6}
.nav-links a::after{content:'';position:absolute;left:0;right:100%;bottom:0;height:1px;
  background:currentColor;transition:right .35s var(--ease)}
.nav-links a:hover::after,.nav-links a[aria-current="page"]::after{right:0}

.nav-cta{display:none}
@media (min-width:1000px){.nav-cta{display:inline-flex}}
.nav-burger{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;
  border:1px solid var(--line);border-radius:11px;color:var(--navy)}
.nav-dark .nav-burger{border-color:rgba(159,187,219,.3);color:#fff}
@media (min-width:1000px){.nav-burger{display:none}}

/* Treatments flyout (desktop) */
.has-flyout{position:relative}
.flyout{
  position:absolute;top:100%;left:50%;transform:translateX(-50%) translateY(6px);
  padding-top:14px;opacity:0;visibility:hidden;transition:opacity .22s var(--ease),transform .22s var(--ease)
}
.has-flyout:hover .flyout,.has-flyout:focus-within .flyout{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0)}
.flyout-inner{
  background:var(--white);border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:0 24px 60px -30px rgba(10,30,56,.45);padding:20px;
  display:grid;grid-template-columns:repeat(2,minmax(210px,1fr));gap:6px 22px
}
.flyout-inner .grp{font-family:var(--f-sans);font-weight:500;font-size:var(--t-xs);letter-spacing:.05em;
  color:var(--steel);padding:10px 10px 5px;grid-column:span 2}
.flyout-inner a{display:block;padding:9px 11px;border-radius:9px;font-family:var(--f-thai);
  font-weight:400;font-size:var(--t-sm);color:var(--navy);transition:background .2s var(--ease)}
.flyout-inner a::after{display:none}
.flyout-inner a:hover{background:var(--mist)}

/* Mobile menu */
.mobile-menu{position:fixed;inset:0;z-index:80;background:var(--ink);color:#fff;
  display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain}
.mobile-menu[hidden]{display:none}
.mobile-menu .mm-top{display:flex;align-items:center;justify-content:space-between;
  padding:13px var(--gut);border-bottom:1px solid rgba(159,187,219,.2);flex:none}
.mobile-menu nav{padding:12px var(--gut) 34px;flex:1}
.mobile-menu nav > a,.mm-acc-btn{display:flex;align-items:center;justify-content:space-between;width:100%;
  padding:16px 0;border-bottom:1px solid rgba(159,187,219,.16);
  font-family:var(--f-thai);font-weight:400;font-size:var(--t-lg);color:#fff;text-align:left}
.mm-sub{padding:2px 0 12px}
.mm-sub a{display:block;padding:10px 0 10px 16px;font-family:var(--f-thai);font-weight:300;
  font-size:var(--t-base);color:var(--body-dk)}
.mm-foot{padding:0 var(--gut) 40px;display:flex;flex-direction:column;gap:11px}

/* ═══ FOOTER ═══════════════════════════════════════════════════ */
.footer{background:var(--ink);color:var(--white);padding-block:clamp(52px,7vw,86px) 34px}
.footer a:hover{color:var(--sky)}
.footer-grid{display:grid;gap:clamp(30px,4vw,52px);grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
.footer .ft-h{font-family:var(--f-sans);font-weight:500;font-size:var(--t-xs);letter-spacing:.2em;
  color:var(--sky);margin-bottom:16px}
.footer li{margin-bottom:9px}
.footer li a,.footer li span{font-family:var(--f-thai);font-weight:300;font-size:var(--t-sm);color:var(--body-dk)}
.footer-legal{margin-top:44px;padding-top:24px;border-top:1px solid rgba(159,187,219,.2);
  display:flex;flex-wrap:wrap;gap:10px 26px;align-items:center;justify-content:space-between}

/* Licence block — legally required, must stay legible, never tucked away */
.licence{background:rgba(255,255,255,.05);border:1px solid rgba(159,187,219,.22);
  border-radius:12px;padding:16px 18px;margin-top:20px}
.licence dt{font-family:var(--f-thai);font-weight:300;font-size:var(--t-xs);color:var(--sky)}
.licence dd{font-family:var(--f-sans);font-weight:500;font-size:var(--t-base);margin:2px 0 12px;letter-spacing:.01em}
.licence dd:last-child{margin-bottom:0}

/* ═══ COMPONENTS ═══════════════════════════════════════════════ */

/* Trust bar — the three authorised brands. Text-only by design: we do NOT
   host Galderma/Menarini/UltraV logos without written permission. */
.trust{display:grid;gap:1px;background:var(--line);border:1px solid var(--line);
  border-radius:var(--radius);overflow:hidden;grid-template-columns:repeat(auto-fit,minmax(min(100%,232px),1fr))}
.trust > *{background:var(--white);padding:26px 24px}
.trust b{display:block;font-family:var(--f-sans);font-weight:500;font-size:var(--t-base);letter-spacing:-.01em;margin-bottom:6px}
.trust p{font-family:var(--f-thai);font-weight:300;font-size:var(--t-sm);line-height:1.8;color:var(--body)}
.trust .verify{margin-top:11px;font-family:var(--f-thai);font-weight:500;font-size:var(--t-xs);color:var(--steel);
  display:inline-flex;align-items:center;gap:6px}

/* Stat row */
.stats{display:flex;flex-wrap:wrap;gap:clamp(26px,4vw,54px)}
.stats .n{display:block;font-family:var(--f-sans);font-weight:500;font-size:clamp(28px,3.4vw,40px);
  line-height:1;letter-spacing:-.025em}
/* long values (opening hours) must not force the stat row onto a second line */
.stats .n.n-sm{font-size:clamp(19px,1.9vw,24px);letter-spacing:-.01em}
.stats .l{display:block;font-family:var(--f-thai);font-weight:300;font-size:var(--t-sm);margin-top:9px;color:var(--steel)}
.on-dark .stats .l{color:var(--sky)}

/* Symptom nav — "อาการแบบนี้ ใช่คุณไหม" */
.symptom{display:flex;flex-wrap:wrap;gap:10px}
.symptom a{display:inline-flex;align-items:center;gap:9px;padding:12px 18px;border-radius:999px;
  border:1px solid var(--line);background:var(--white);font-family:var(--f-thai);font-weight:400;
  font-size:var(--t-sm);color:var(--navy);transition:all .28s var(--ease)}
.symptom a:hover{border-color:var(--steel);background:var(--mist);transform:translateY(-2px)}

/* Treatment card */
.tcard{display:flex;flex-direction:column;height:100%}
.tcard .cat{font-family:var(--f-sans);font-weight:500;font-size:var(--t-xs);letter-spacing:.05em;
  color:var(--steel);margin-bottom:13px}
.tcard h3{margin-bottom:9px}
.tcard p{flex:1;margin-bottom:17px}
.tcard .meta{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:16px}
.tcard .meta span{font-family:var(--f-thai);font-weight:300;font-size:var(--t-xs);color:var(--steel);
  border:1px solid var(--line);border-radius:999px;padding:5px 11px}
.sig{position:relative}
.sig::before{content:'Signature';position:absolute;top:-1px;right:18px;
  font-family:var(--f-sans);font-weight:500;font-size:9.5px;letter-spacing:.05em;
  background:var(--ink);color:var(--sky);padding:5px 11px;border-radius:0 0 7px 7px}
/* on a dark spread the badge must invert, or it disappears into the section */
.on-dark .sig::before{background:var(--sky);color:var(--ink)}

/* Review card */
.rcard{display:flex;flex-direction:column;gap:13px;height:100%}
.rcard .stars{display:flex;gap:2px;color:#E8B23A}
.rcard blockquote{font-family:var(--f-thai);font-weight:300;font-size:var(--t-base);line-height:1.9;color:var(--body);flex:1}
.rcard .who{display:flex;align-items:center;gap:11px;padding-top:13px;border-top:1px solid var(--line)}
.rcard .who b{font-family:var(--f-thai);font-weight:500;font-size:var(--t-sm);color:var(--ink)}
.rcard .who span{font-family:var(--f-thai);font-weight:300;font-size:var(--t-xs);color:var(--steel)}
.rcard .avatar{width:36px;height:36px;border-radius:50%;background:var(--mist);flex:none;
  display:grid;place-items:center;font-family:var(--f-sans);font-weight:500;font-size:var(--t-sm);color:var(--navy)}

/* FAQ */
.faq{border-top:1px solid var(--line)}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;
  padding:22px 0;cursor:pointer;list-style:none;
  font-family:var(--f-thai);font-weight:500;font-size:var(--t-base);line-height:1.6;color:var(--ink)}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:'';flex:none;width:15px;height:15px;margin-top:6px;
  background:currentColor;transition:transform .3s var(--ease);
  -webkit-mask:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 12h14M12 5v14'/%3E%3C/svg%3E");
          mask:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 12h14M12 5v14'/%3E%3C/svg%3E")}
.faq details[open] summary::after{transform:rotate(45deg)}
.faq details > div{padding:0 0 24px;max-width:74ch}

/* Before/after — consent + results-vary disclaimer is NON-NEGOTIABLE */
.ba{display:grid;grid-template-columns:1fr 1fr;gap:2px;background:var(--line);
  border-radius:12px;overflow:hidden}
.ba figure{position:relative;margin:0;background:var(--mist);aspect-ratio:3/4}
.ba figcaption{position:absolute;left:10px;top:10px;font-family:var(--f-sans);font-weight:500;
  font-size:10px;letter-spacing:.05em;color:#fff;
  background:rgba(10,30,56,.72);padding:5px 10px;border-radius:6px}
.ba-note{margin-top:12px;font-family:var(--f-thai);font-weight:300;font-size:var(--t-xs);
  line-height:1.75;color:var(--steel)}

/* Sticky consult bar — treatment pages, mobile only */
.sticky-bar{position:fixed;left:0;right:0;bottom:0;z-index:50;display:flex;gap:9px;
  padding:11px var(--gut) calc(11px + env(safe-area-inset-bottom));
  background:rgba(247,249,252,.94);backdrop-filter:blur(12px);border-top:1px solid var(--line)}
.sticky-bar .btn{flex:1}
@media (min-width:860px){.sticky-bar{display:none}}
body.has-sticky-bar{padding-bottom:76px}
@media (min-width:860px){body.has-sticky-bar{padding-bottom:0}}

/* Marquee — pauses on hover and under reduced-motion */
.marquee{overflow:hidden;-webkit-mask:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);
         mask:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent)}
.marquee-track{display:flex;gap:20px;width:max-content;animation:slide 62s linear infinite}
.marquee:hover .marquee-track{animation-play-state:paused}
.marquee-track > *{width:min(78vw,352px);flex:none}
@keyframes slide{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.marquee{overflow-x:auto}.marquee-track{animation:none}}

/* Scroll reveal.
   Scoped to .js — that class is added by a synchronous inline script at the top
   of <body>. If scripting is off, blocked, or the script 404s, the rule never
   applies and the content is simply visible. Content must never be able to end
   up permanently invisible because an animation hook failed: half a clinic
   homepage silently disappearing is a far worse outcome than no animation. */
.js [data-reveal]{opacity:0;transform:translateY(22px);transition:opacity .8s var(--ease),transform .8s var(--ease)}
.js [data-reveal].in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.js [data-reveal]{opacity:1;transform:none}}

/* Skip link */
.skip{position:absolute;left:-9999px;top:0;z-index:100;background:var(--ink);color:#fff;
  padding:12px 20px;border-radius:0 0 10px 0;font-family:var(--f-thai);font-size:var(--t-sm)}
.skip:focus{left:0}

/* ═══════════════════════════════════════════════════════════════════════
   V2 — THE FILM LAYER
   The v1 layout was a stack of eyebrow + heading + card-grid sections with
   two-column blocks alternating left and right. That reads as a template.
   v2 replaces it with three section types and nothing else:
       .stage   full-bleed film, type sits ON the footage
       .say     one sentence, alone, on ink
       .index   a full-width list, no cards
   Nothing here alternates left/right, and no section is a boxed grid of
   equal cards. v1 classes stay defined until every page is converted.
   ═══════════════════════════════════════════════════════════════════════ */

:root{
  --v-ease: cubic-bezier(.16,1,.3,1);
  --v-slow: 1.1s;
}

/* ─── full-bleed film stage ─────────────────────────────────────── */
.stage{position:relative;min-height:100svh;display:flex;align-items:flex-end;
  overflow:clip;background:var(--ink);color:#fff;isolation:isolate}
.stage-short{min-height:78svh}
.stage-media{position:absolute;inset:0;z-index:-2}
.stage-media video,.stage-media img{width:100%;height:100%;object-fit:cover;display:block}
/* two-stop scrim: keeps type legible without flattening the footage */
.stage::after{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(180deg,rgba(10,30,56,.62) 0%,rgba(10,30,56,.18) 34%,rgba(10,30,56,.52) 72%,rgba(10,30,56,.92) 100%)}
.stage-inner{position:relative;width:100%;max-width:var(--max);margin-inline:auto;
  padding:0 var(--gut) clamp(38px,7vh,88px)}

/* ─── display type ──────────────────────────────────────────────── */
.d0{font-family:var(--f-display);font-weight:400;letter-spacing:-.022em;
  font-size:clamp(52px,10.5vw,168px);line-height:.88}
.d0-th{font-family:var(--f-thai);font-weight:500;letter-spacing:-.02em;
  font-size:clamp(30px,5.6vw,86px);line-height:1.22}
/* line-by-line mask reveal; .is-in is set by motion.js */
.rise{display:block;overflow:hidden}
.rise > span{display:block;transform:translateY(105%);opacity:0;
  transition:transform 1.15s var(--v-ease),opacity .9s var(--v-ease)}
.is-in .rise > span{transform:none;opacity:1}
.rise:nth-of-type(2) > span{transition-delay:.09s}
.rise:nth-of-type(3) > span{transition-delay:.18s}
@media (prefers-reduced-motion:reduce){.rise > span{transform:none;opacity:1}}

/* ─── meta rail under a stage ───────────────────────────────────── */
.rail{display:flex;flex-wrap:wrap;gap:clamp(18px,3.4vw,46px);align-items:baseline;
  margin-top:clamp(26px,4vh,46px);padding-top:20px;border-top:1px solid rgba(255,255,255,.22)}
.rail div{display:flex;align-items:baseline;gap:9px}
.rail b{font-family:var(--f-sans);font-weight:500;font-size:clamp(17px,1.7vw,23px);letter-spacing:-.02em}
.rail span{font-family:var(--f-thai);font-weight:300;font-size:var(--t-xs);color:rgba(255,255,255,.7)}

.cue{position:absolute;left:var(--gut);bottom:14px;display:flex;align-items:center;gap:10px;
  font-family:var(--f-sans);font-size:var(--t-xs);letter-spacing:.06em;color:rgba(255,255,255,.6)}
.cue i{display:block;width:1px;height:34px;background:linear-gradient(180deg,rgba(255,255,255,.7),transparent);
  animation:cueDrop 2.4s var(--v-ease) infinite}
@keyframes cueDrop{0%{transform:scaleY(0);transform-origin:top}45%{transform:scaleY(1);transform-origin:top}
  46%{transform-origin:bottom}100%{transform:scaleY(0);transform-origin:bottom}}

/* ─── the sentence-alone section ────────────────────────────────── */
.say{background:var(--ink);color:#fff;padding-block:clamp(96px,20vh,240px)}
.say .wrap{max-width:1180px}
.say p{font-family:var(--f-thai);font-weight:300;letter-spacing:-.015em;
  font-size:clamp(26px,4.4vw,64px);line-height:1.34;max-width:20ch}
.say .mark{font-family:var(--f-display);font-size:.62em;color:var(--sky);
  display:block;margin-bottom:.28em;letter-spacing:0}
.say-light{background:var(--bone);color:var(--ink)}
.say-light .mark{color:var(--steel)}

/* ─── pinned proof sequence ─────────────────────────────────────── */
.pin{position:relative}
.pin-sticky{position:sticky;top:0;height:100svh;overflow:clip;
  display:flex;align-items:center;background:var(--ink);color:#fff;isolation:isolate}
.pin-sticky .stage-media{opacity:.34}
.pin-sticky::after{content:'';position:absolute;inset:0;z-index:-1;
  background:linear-gradient(90deg,rgba(10,30,56,.95),rgba(10,30,56,.55))}
.pin-steps > div{min-height:100svh}
.step{position:absolute;inset:0;display:flex;align-items:center;opacity:0;
  transition:opacity .55s var(--v-ease);pointer-events:none}
.step.on{opacity:1;pointer-events:auto}
.step-inner{width:100%;max-width:var(--max);margin-inline:auto;padding-inline:var(--gut)}
.step .n{font-family:var(--f-sans);font-weight:500;font-size:var(--t-xs);letter-spacing:.06em;color:var(--sky)}
.step h3{font-family:var(--f-sans);font-weight:500;letter-spacing:-.03em;
  font-size:clamp(40px,7vw,104px);line-height:1;margin:16px 0 18px}
.step p{font-family:var(--f-thai);font-weight:300;font-size:clamp(15px,1.35vw,18.5px);
  line-height:1.9;color:var(--body-dk);max-width:44ch}

/* ─── the index list (replaces the card grid) ───────────────────── */
.index{position:relative;background:var(--paper);isolation:isolate}
.index-bg{position:absolute;inset:0;z-index:-1;opacity:0;transition:opacity .6s var(--v-ease);background:var(--ink)}
.index-bg.on{opacity:1}
.index-bg video,.index-bg img{width:100%;height:100%;object-fit:cover;opacity:.4}
.index.lit{background:var(--ink)}
.index-row{display:block;border-top:1px solid var(--line);padding:clamp(20px,3.2vh,34px) 0;
  transition:border-color .45s var(--v-ease),padding .45s var(--v-ease)}
.index-row:last-child{border-bottom:1px solid var(--line)}
.index.lit .index-row{border-color:rgba(159,187,219,.26)}
.index-head{display:flex;align-items:baseline;gap:clamp(14px,2.4vw,34px);flex-wrap:wrap}
.index-row .k{font-family:var(--f-sans);font-weight:500;font-size:var(--t-xs);letter-spacing:.2em;
  color:var(--steel);flex:none;min-width:34px}
.index-row h3{font-family:var(--f-thai);font-weight:500;letter-spacing:-.02em;
  font-size:clamp(24px,4vw,54px);line-height:1.16;transition:color .35s var(--v-ease),transform .55s var(--v-ease);flex:1}
.index.lit .index-row h3{color:rgba(255,255,255,.45)}
.index.lit .index-row.hot h3{color:#fff;transform:translateX(clamp(6px,1vw,18px))}
.index-row .tail{font-family:var(--f-thai);font-weight:300;font-size:var(--t-sm);color:var(--steel);
  opacity:0;transition:opacity .4s var(--v-ease);max-width:34ch}
.index.lit .index-row.hot .tail{opacity:1;color:var(--sky)}
@media (hover:none){.index-row .tail{opacity:1}.index.lit .index-row h3{color:#fff}}

/* ─── horizontal gallery ────────────────────────────────────────── */
.hgal{display:flex;gap:clamp(10px,1.4vw,18px);overflow-x:auto;scroll-snap-type:x mandatory;
  padding-inline:var(--gut);scrollbar-width:none;-webkit-overflow-scrolling:touch}
.hgal::-webkit-scrollbar{display:none}
.hgal > figure{flex:none;width:min(84vw,560px);scroll-snap-align:center;margin:0}
.hgal img{width:100%;border-radius:12px;display:block}
.hgal figcaption{font-family:var(--f-thai);font-weight:300;font-size:var(--t-sm);color:var(--steel);margin-top:10px}
.hgal-cue{font-family:var(--f-sans);font-size:var(--t-xs);letter-spacing:.2em;
  color:var(--steel);display:flex;align-items:center;gap:10px}
.hgal-cue::after{content:'';flex:1;height:1px;background:var(--line);max-width:120px}

/* ─── single large quote ────────────────────────────────────────── */
.voice{background:var(--bone);padding-block:clamp(80px,16vh,190px)}
.voice blockquote{font-family:var(--f-thai);font-weight:300;letter-spacing:-.012em;
  font-size:clamp(21px,3.1vw,44px);line-height:1.5;max-width:24ch;margin:0}
.voice .who{font-family:var(--f-thai);font-weight:400;font-size:var(--t-sm);color:var(--steel);margin-top:clamp(22px,4vh,40px)}
.voice-dots{display:flex;gap:7px;margin-top:26px}
.voice-dots button{width:26px;height:2px;background:var(--line);border-radius:2px;transition:background .3s}
.voice-dots button[aria-selected="true"]{background:var(--navy)}

/* ─── nav over film ─────────────────────────────────────────────── */
.nav-film{background:transparent;border-bottom-color:transparent;backdrop-filter:none}
.nav-film .nav-links a,.nav-film .nav-logo .wordmark b{color:#fff}
.nav-film .nav-logo .wordmark span{color:rgba(255,255,255,.7)}
.nav-film .nav-burger{border-color:rgba(255,255,255,.35);color:#fff}

/* ─── mobile ────────────────────────────────────────────────────── */
@media (max-width:760px){
  .stage{min-height:92svh}
  .pin-sticky{height:92svh}
  .say p{max-width:none}
}

/* ═══ V2 refinements after the first full-page review ═════════════════
   The lower half dropped out of the film language into flat white panels
   with small type, so the page lost its momentum after the index. These
   rules carry the dark, edge-to-edge treatment through results and voice. */

/* a scrim behind the nav so links stay legible over bright footage */
.nav-film::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(180deg,rgba(10,30,56,.55),rgba(10,30,56,0))}
.nav-film{position:sticky;isolation:isolate}
.nav-film .nav-links a{color:#fff;text-shadow:0 1px 12px rgba(10,30,56,.5)}

/* opener: keep the meta rail clear of the fold on a 900px-tall laptop */
.stage-inner{padding-bottom:clamp(56px,9vh,104px)}
.stage .lead{text-wrap:pretty}

/* the sentence-alone section: control the break instead of letting Thai
   wrap one word onto its own line */
.say p{max-width:24ch;text-wrap:balance}
@media (min-width:900px){.say p{max-width:none;width:min(100%,19em)}}

/* results, now dark and edge to edge */
.reel{background:var(--ink);color:#fff;padding-block:clamp(70px,12vh,150px)}
.reel .hgal > figure{width:min(88vw,660px)}
.reel .hgal img{border-radius:14px}
.reel .hgal figcaption{color:var(--sky)}
.reel .hgal-cue{color:var(--sky)}
.reel .hgal-cue::after{background:rgba(159,187,219,.3)}
.reel .ba-note{color:rgba(213,225,239,.75)}

/* voice: one review, large enough to be the whole screen's job */
.voice{padding-block:clamp(92px,18vh,220px)}
.voice blockquote{font-size:clamp(24px,3.6vw,52px);line-height:1.42;max-width:20ch}
.voice [data-slide]{min-height:clamp(220px,30vh,340px)}

/* FAQ headings a touch larger so the section is not an afterthought */
.faq summary{font-size:clamp(16.5px,1.5vw,19px);padding-block:26px}

/* Pinned steps only stack on top of each other once JS is alive to switch
   between them. Without .js they lay out as ordinary blocks, so steps 2 and 3
   can never become permanently invisible. */
.step{position:static;opacity:1;pointer-events:auto}
.js .pin-sticky .step{position:absolute;inset:0;opacity:0;pointer-events:none}
.js .pin-sticky .step.on{opacity:1;pointer-events:auto}
:root:not(.js) .pin-sticky{position:static;height:auto;display:block;padding-block:clamp(60px,10vh,120px)}
:root:not(.js) .pin-steps{display:none}

/* On a phone the index row's flex squeezed the Thai title into a narrow
   column and broke it mid-word. Stack the parts instead. */
@media (max-width:820px){
  .index-head{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;align-items:baseline}
  .index-row .k{grid-row:1}
  .index-row h3{grid-row:1;font-size:clamp(21px,5.6vw,30px)}
  .index-row .tail{grid-column:2;font-size:var(--t-xs)}
}

/* ═══ V3 — the aerodynamics mood ══════════════════════════════════════
   Reference: aerodynamics.nl. Their whole page is two surfaces — wolkenwit
   for reading and a four-stop sky gradient for atmosphere — with every
   heading in nachtblauw and a flat 140px rhythm. Nothing alternates.
   ═══════════════════════════════════════════════════════════════════ */

/* Boska is a Latin display face with no Thai glyphs. Left alone, Thai in a
   .d1/.d2/.d0 heading would fall through to the generic `serif` and render
   WITH loops — the exact failure this project has hit before. Thai display
   headings are therefore pinned to Plex Thai explicitly, at a lighter weight
   than v2 used, to sit next to Boska Light rather than shout over it. */
.d0,.d1,.d2,.d3{font-weight:300;letter-spacing:-.02em}
.d0-th,.h2{font-family:var(--f-thai);font-weight:400;color:var(--night);letter-spacing:-.018em}
.on-dark .d0-th,.on-dark .h2,.stage .d0-th,.stage .h2{color:var(--cloud)}
.h3{font-weight:500;color:var(--night)}
.on-dark .h3,.stage .h3{color:var(--cloud)}

/* the gradient, as a section surface */
.bg-sky{background:var(--grad-sky);color:var(--cloud)}
.bg-sky-cut{background:var(--grad-sky-cut);color:var(--cloud)}
.bg-sky .lead,.bg-sky .copy{color:rgba(252,253,254,.9)}
.bg-sky .small,.bg-sky .eyebrow{color:rgba(252,253,254,.72)}
.bg-sky .hr{background:rgba(252,253,254,.28)}

/* the reference's dot texture, in nachtblauw */
.dotfield{background-image:radial-gradient(circle,rgba(5,39,91,.16) 2px,transparent 0);background-size:22px 22px}

/* cloud fades, used where a gradient meets a light section */
.fade-up{position:relative}
.fade-up::after{content:'';position:absolute;left:0;right:0;bottom:0;height:26%;pointer-events:none;
  background:linear-gradient(to top,var(--cloud) 0%,transparent 100%)}

/* film scrims re-tinted to nachtblauw so footage sits in the same family */
.stage::after{background:linear-gradient(180deg,rgba(5,39,91,.60) 0%,rgba(5,39,91,.16) 34%,rgba(5,39,91,.50) 72%,rgba(5,39,91,.92) 100%)}
.pin-sticky::after{background:linear-gradient(90deg,rgba(5,39,91,.95),rgba(5,39,91,.55))}
.nav-film::before{background:linear-gradient(180deg,rgba(5,39,91,.55),rgba(5,39,91,0))}

/* the statement section becomes sky rather than flat ink */
.say{background:var(--grad-sky-cut);color:var(--cloud)}
.say p{font-weight:300;color:var(--cloud)}
.say .mark{color:rgba(252,253,254,.6)}

/* voice sits on the palest sky stop instead of the old warm bone */
.voice{background:var(--mist)}
.voice blockquote{color:var(--night);font-weight:300}

/* buttons: nachtblauw is the primary action colour */
.btn-ink{background:var(--night)}
.btn-ink:hover{background:var(--sky-1)}

/* index rows read as nachtblauw headings on cloud, per the reference */
.index-row h3{color:var(--night);font-weight:400}

/* ═══ V3 contrast pass ═══════════════════════════════════════════════
   The reference puts its palest gradient stops where there is no text.
   Reusing the full 4-stop ramp behind copy pushed white type onto #B4CADD,
   which fails contrast. Text-bearing surfaces get a ramp that stops at the
   mid stop; the full pale ramp is kept for image/empty areas only. */
:root{
  --grad-deep: linear-gradient(180deg,#05275B 0%,#214C6F 58%,#41678C 100%);
  --grad-deep-cut: linear-gradient(-172deg,#05275B 0%,#1B4468 45%,#375F86 100%);
}
.say{background:var(--grad-deep-cut)}
.bg-sky{background:var(--grad-deep)}
/* the full pale ramp stays available for decorative bands */
.bg-sky-full{background:var(--grad-sky);color:var(--night)}

/* step headings take the display face, as the reference does for every heading */
.step h3{font-family:var(--f-display);font-weight:300;letter-spacing:-.025em}

/* .say gets a touch more air, matching the reference's 140 rhythm */
.say{padding-block:clamp(96px,18vh,200px)}

/* ═══ V4 — the "Alle modellen" treatment ═════════════════════════════
   Their page heads are a centred two-tone line: the first half in
   nachtblauw, the second in a lighter blue italic. That single move is
   what makes the heading read as designed rather than merely large. */
@font-face { font-family:'Boska'; src:url('/assets/fonts/Boska-LightItalic.woff2') format('woff2'); font-weight:300; font-style:italic; font-display:swap }
@font-face { font-family:'Boska'; src:url('/assets/fonts/Boska-Italic.woff2') format('woff2');      font-weight:400; font-style:italic; font-display:swap }

.tone{font-style:italic;color:var(--sky-2)}
.on-dark .tone,.stage .tone,.bg-sky .tone,.say .tone{color:var(--sky-3)}

/* centred page head, pale sky behind it */
.head{background:linear-gradient(180deg,var(--cloud) 0%,#EEF3F9 55%,#E3EBF3 100%);
      text-align:center;padding-block:clamp(84px,15vh,168px)}
.head h1{font-family:var(--f-display);font-weight:300;letter-spacing:-.02em;line-height:1.02;
         font-size:clamp(40px,6.4vw,82px);color:var(--night)}
.head .th-h1{font-family:var(--f-thai);font-weight:300;letter-spacing:-.01em;line-height:1.28;
         font-size:clamp(27px,4vw,50px);color:var(--night)}
.head p{font-family:var(--f-thai);font-weight:300;font-size:clamp(15px,1.25vw,17.5px);line-height:1.95;
        color:var(--body);max-width:56ch;margin:22px auto 0}
.head .pills{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:clamp(28px,5vh,46px)}

/* pill controls, as on the reference */
.pill{display:inline-flex;align-items:center;gap:9px;background:var(--white);border:1px solid rgba(5,39,91,.08);
  border-radius:999px;padding:13px 22px;font-family:var(--f-thai);font-weight:400;font-size:var(--t-sm);
  color:var(--night);box-shadow:0 6px 22px -14px rgba(5,39,91,.5);transition:all .3s var(--v-ease)}
a.pill:hover{border-color:rgba(5,39,91,.22);transform:translateY(-2px);box-shadow:0 12px 30px -16px rgba(5,39,91,.55)}
.pill svg{opacity:.5}

/* Prompt runs a little heavier than Plex Thai at the same weight, so pull the
   body weights down one step to keep the page quiet */
.lead,.copy,.small,.th{font-weight:300}
.h2,.d0-th{font-weight:400}
.h3{font-weight:500}
.eyebrow{font-weight:400;font-size:var(--t-xs);letter-spacing:.05em;color:var(--steel)}
.eyebrow-line::before{width:20px}

/* ═══ V4 — light-led, film used sparingly ════════════════════════════
   Five autoplaying sections was too much: the reference is quiet and
   light, and video everywhere reads busy rather than expensive. Film is
   now a contained band, not a viewport takeover, and appears twice. */
.band{position:relative;overflow:hidden;border-radius:18px;background:var(--mist);
      aspect-ratio:21/9;margin-inline:auto;max-width:var(--max)}
.band video,.band img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.band::after{content:'';position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(5,39,91,.14) 0%,transparent 40%,rgba(5,39,91,.22) 100%)}
.band-cap{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;
  max-width:var(--max);margin:14px auto 0;padding-inline:var(--gut)}
.band-cap p{font-family:var(--f-thai);font-weight:300;font-size:var(--t-sm);color:var(--steel)}
@media (max-width:760px){.band{aspect-ratio:4/3;border-radius:12px}}

/* centred stat row for the light head */
.stat-row{display:flex;flex-wrap:wrap;justify-content:center;gap:clamp(24px,4.4vw,58px);
  margin-top:clamp(30px,5vh,50px);padding-top:24px;border-top:1px solid var(--line);
  max-width:760px;margin-inline:auto}
.stat-row div{text-align:center}
.stat-row b{display:block;font-family:var(--f-sans);font-weight:500;font-size:clamp(20px,2.4vw,30px);
  letter-spacing:-.025em;color:var(--night)}
.stat-row span{display:block;font-family:var(--f-thai);font-weight:300;font-size:var(--t-xs);color:var(--steel);margin-top:6px}

/* centred section head used by the light sections */
.mid{text-align:center;max-width:62ch;margin-inline:auto}
.mid .lead{margin-inline:auto}

/* the index list, now on cloud with no film behind it */
.index{background:var(--cloud)}
.index .index-bg{display:none}

/* ═══ V4 fixes from the full-page review ═════════════════════════════ */

/* a centred Thai display line inside a 62ch column broke into four narrow
   lines; give centred heads their own wider measure and a smaller step */
.mid{max-width:none}
.mid .lead,.mid p{max-width:60ch;margin-inline:auto}
.mid .d0-th{font-size:clamp(26px,3.8vw,50px);line-height:1.3;max-width:22ch;margin-inline:auto}

/* results now sit on cloud, not ink — the page is light-led */
.reel{background:var(--cloud);color:var(--night)}
.reel .d0-th{color:var(--night)}
.reel .hgal figcaption{color:var(--steel)}
.reel .hgal-cue{color:var(--steel)}
.reel .hgal-cue::after{background:var(--line)}
.reel .ba-note{color:var(--steel)}

/* the pinned proof held for four screens; two is enough to read three steps */
.pin-steps > div{min-height:66svh}

/* ═══ V5 — the reference's own three moves ═══════════════════════════
   Read straight off aerodynamics.nl's stylesheet rather than guessed at:

   1. TYPE.   Their headings are Quaria Display — a sturdy, medium-contrast
              editorial serif — never a hairline face. Boska Light was two
              weights too fine: at 82px its stems all but vanished and the
              hero read washed out. Zodiak is the closest match in the
              library (see docs/type-vs-reference.html) and is now the
              display face everywhere.
   2. COLOUR. Every heading on their site is nachtblauw, full strength. The
              italic accent inside a heading is the SAME colour — the italic
              alone is the accent. The one deliberate exception is the hero,
              where line 1 is wolkenwit and the italic line 2 is nachtblauw.
   3. SURFACE.Their hero is the four-stop sky ramp at -172deg with a grain
              layer over it. That ramp already existed here as --grad-sky-cut
              but nothing used it; the homepage hero now does, ending in
              wolkenwit so every line of small copy lands on near-white.
   ═══════════════════════════════════════════════════════════════════ */

@font-face { font-family:'Zodiak'; src:url('/assets/fonts/Zodiak-Light.woff2')       format('woff2'); font-weight:300; font-style:normal; font-display:swap }
@font-face { font-family:'Zodiak'; src:url('/assets/fonts/Zodiak-LightItalic.woff2') format('woff2'); font-weight:300; font-style:italic; font-display:swap }
@font-face { font-family:'Zodiak'; src:url('/assets/fonts/Zodiak-Regular.woff2')     format('woff2'); font-weight:400; font-style:normal; font-display:swap }
@font-face { font-family:'Zodiak'; src:url('/assets/fonts/Zodiak-Italic.woff2')      format('woff2'); font-weight:400; font-style:italic; font-display:swap }

:root{
  /* Prompt stays ahead of `serif` so a stray Thai glyph in a display line can
     never fall through to a looped system serif. */
  --f-display: 'Zodiak', 'Prompt', serif;

  /* the reference hero ramp, resolved into wolkenwit at the bottom so the
     Thai lede, the pills and the stat row all sit on near-white */
  /* Two things were measured off the rendered hero rather than guessed:
     — the reference's -172deg tilt spreads a given stop across ~15% of the
       ramp between the left and right edge of a 1440px box. Their hero can
       absorb that; ours could not, so the ramp here runs straight down.
     — the deep end has to finish ABOVE the first line of type. Anything
       that overlapped a heading put white or navy on a mid blue and
       measured below 3:1. Everything readable now lands at 32% or lower,
       where the ramp is #B4CADD or paler. */
  --grad-hero: linear-gradient(180deg,
      #1B4468 0%, #2E5A7D 8%, #4E7FA3 15%, #7CA0BF 22%,
      #B4CADD 32%, #D8E3EE 45%, #EFF4F9 62%, var(--cloud) 80%);
  --nav-h: 67px;
}

/* Zodiak carries its own weight — the 300 the hairline face needed now reads
   as anaemic. Display copy sits at 400, which is where Quaria sits. */
.d0,.d1,.d2,.d3,.head h1,.step h3{font-weight:400}

/* the italic accent is italic, not a second colour */
.tone{font-style:italic;color:inherit}
.head h1{color:var(--night)}
.head h1 .tone{color:var(--night)}
.on-dark .tone,.stage .tone,.say .tone{color:var(--cloud)}

/* ─── the sky hero ────────────────────────────────────────────────── */
/* The nav is sticky and therefore still in flow, so without this pull-up the
   page background showed as a pale strip above the gradient and the nav's
   transparent state had nothing dark to sit on. */
.head-sky{background:var(--grad-hero);position:relative;isolation:isolate;
  margin-top:calc(-1 * var(--nav-h));
  padding-top:calc(var(--nav-h) + clamp(84px,15vh,168px));
  padding-bottom:clamp(56px,9vh,104px)}
.head-sky > *{position:relative;z-index:1}

/* grain, as the reference layers over its gradient. Generated here rather
   than lifted from their bundle. */
.head-sky::before{
  content:'';position:absolute;inset:0;z-index:0;pointer-events:none;opacity:.5;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
  mix-blend-mode:soft-light;
}

/* line 1 wolkenwit over the deep end, line 2 nachtblauw italic over the pale
   middle — their exact hero move */
/* Every heading nachtblauw, the italic as the only accent — the reference's
   own rule. The white/navy split they use in their hero needs one line to sit
   on the deep end of the ramp and the next on the pale end; at this heading
   size the two lines are 40px apart and no gradient can turn over that fast
   without banding. */
.head-sky h1,.head-sky h1 .tone{color:var(--night)}
.head-sky .eyebrow{color:var(--night)}
/* Body copy inside the hero runs one step darker than elsewhere: --body on the
   pale end of the ramp measures 3.7:1, which is a fail at 15.5px. */
.head-sky p{color:var(--night)}
.head-sky .stat-row{border-top-color:rgba(5,39,91,.16)}
.head-sky .stat-row span{color:var(--ink-soft)}

@media (prefers-reduced-motion:reduce){.head-sky::before{display:none}}

/* ═══ V6 — the venetianspa.ca premium mechanics, in Varinpat's CI ═════
   What actually makes that page read as expensive, separated from the fact
   that it is a warm gold spa and we are a cool navy clinic:

     1. a wide shallow ARCH where two surfaces meet, instead of a straight
        seam. Theirs is a cream section rising into a dark photo hero.
     2. images CROPPED INTO AN ARCH rather than a rounded rectangle.
     3. a very wide gap between display size and body size — ~95px headings
        over 14px copy. The ratio is the luxury signal, not the size.
     4. outline buttons. Nothing is filled.
     5. a huge, faint brand mark sitting behind the type.
     6. far more vertical air than a normal site.

   Their seventh device is full-bleed art-directed photography, which is
   most of the effect and which this clinic does not have — the footage on
   hand is 960x540 social clips in a warm orange cast. Rather than blow that
   up and lose, it is graded cool into the CI and kept contained.
   Uppercase is theirs only: this brand does not use it anywhere.
   ═══════════════════════════════════════════════════════════════════ */

:root{
  --sec: clamp(96px, 12vw, 190px);        /* was 72–140; the air is the point */
  --arch-x: 62%;                           /* horizontal radius of a section arch */
  --arch-y: clamp(48px, 7vw, 104px);       /* how far it bulges */
}

/* ─── 1 · the arch seam ───────────────────────────────────────────── */
/* A section that rises into the one above it. The pull-up equals the bulge,
   so the arch eats into the section above rather than adding a gap. */
/* overflow:clip so a full-bleed child is cut by the arch too. Never put .rise
   on a section with a position:sticky descendant — a clipping container kills
   sticky, which is why .pin is left flat. */
.rise{position:relative;z-index:1;overflow:clip;
  border-radius:var(--arch-x) var(--arch-x) 0 0 / var(--arch-y) var(--arch-y) 0 0;
  margin-top:calc(-1 * var(--arch-y));
  /* half the usual section pad, not a full one on top of it: the arch
     already reads as space, and a full --sec under it left ~290px of
     empty ground before the first line. */
  padding-top:calc(var(--sec) * .5 + var(--arch-y))}
/* and the mirror, for a light section rising out of a dark one */
.fall{position:relative;z-index:1;overflow:clip;
  border-radius:0 0 var(--arch-x) var(--arch-x) / 0 0 var(--arch-y) var(--arch-y);
  margin-bottom:calc(-1 * var(--arch-y));
  padding-bottom:calc(var(--sec) * .5 + var(--arch-y))}

/* ─── 2 · arch-cropped media ──────────────────────────────────────── */
/* Radii are elliptical so the curve stays the same shape whatever the
   image's aspect ratio is. Kept shallow enough that a face never loses
   anything but background corner. */
.arch{border-radius:50% 50% 14px 14px / 26% 26% 14px 14px;overflow:clip}
.arch-soft{border-radius:50% 50% 16px 16px / 14% 14% 16px 16px;overflow:clip}

/* ─── 3 · the grade ───────────────────────────────────────────────── */
/* The clips are warm orange and fight nachtblauw head-on. Desaturating and
   laying the CI navy over in `color` blend mode pulls them into the palette
   without re-encoding anything — and it grades the playing video, not just
   the poster frame, which a baked-in file could not do per-section. */
.graded{position:relative;isolation:isolate}
.graded video,.graded img{filter:saturate(.42) contrast(1.06) brightness(1.03)}
.graded::before{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(180deg,#0E3B6B 0%,#2E5A7D 62%,#4E7FA3 100%);
  mix-blend-mode:color;opacity:.6}
.graded::after{content:'';position:absolute;inset:0;z-index:2;pointer-events:none;
  background:linear-gradient(180deg,rgba(5,39,91,.20) 0%,rgba(5,39,91,0) 38%,rgba(5,39,91,.34) 100%)}
.graded > *:not(video):not(img){position:relative;z-index:3}

/* ─── 4 · the display-to-body ratio ───────────────────────────────── */
/* Headings go up, body copy comes down. The distance between them is what
   reads as expensive; making only the heading bigger just reads as loud. */
.mid .d0-th,.d0-th{font-size:clamp(30px,5vw,68px);line-height:1.22;letter-spacing:-.022em}
.d3,.step h3{font-size:clamp(30px,3.6vw,52px)}
.lead{font-size:clamp(14.5px,1.05vw,16px);line-height:2.05}
.copy,.small{font-size:var(--t-sm);line-height:2}
.eyebrow{font-size:var(--t-xs);letter-spacing:.16em}

/* ─── 5 · outline buttons ─────────────────────────────────────────── */
.pill-line{display:inline-flex;align-items:center;gap:10px;background:transparent;
  border:1px solid rgba(5,39,91,.28);border-radius:999px;padding:16px 34px;
  font-family:var(--f-thai);font-weight:400;font-size:var(--t-sm);color:var(--night);
  box-shadow:none;transition:border-color .35s var(--v-ease),background .35s var(--v-ease)}
a.pill-line:hover{border-color:var(--night);background:rgba(5,39,91,.04);transform:none;box-shadow:none}
.on-dark .pill-line,.say .pill-line,.graded .pill-line{border-color:rgba(252,253,254,.42);color:var(--cloud)}
.on-dark a.pill-line:hover,.say a.pill-line:hover{border-color:var(--cloud);background:rgba(252,253,254,.08)}

/* ─── 6 · the watermark ───────────────────────────────────────────── */
/* The V monogram at a size that stops being a logo and becomes texture. */
.watermark{position:relative;isolation:isolate}
.watermark::before{content:'';position:absolute;z-index:-1;pointer-events:none;
  top:50%;right:6%;translate:0 -50%;
  width:clamp(240px,34vw,540px);aspect-ratio:21/38;
  background:url('/assets/logo-mark-white.png') center/contain no-repeat;
  opacity:.05}
.watermark-ink::before{background-image:url('/assets/logo-mark.png');opacity:.045}
@media (max-width:760px){.watermark::before{right:-14%;opacity:.035}}

/* the page closes on the same curve it opened with: the ink footer rises into
   the pale closing panel. Applied here rather than as a class because the
   footer markup is generated by tools/build.py. */
.footer{position:relative;z-index:1;overflow:clip;
  border-radius:var(--arch-x) var(--arch-x) 0 0 / var(--arch-y) var(--arch-y) 0 0;
  margin-top:calc(-1 * var(--arch-y));
  padding-top:calc(clamp(52px,7vw,86px) * .8 + var(--arch-y))}

/* before/after frames take the arch too, shallow enough that only background
   corner is lost — never part of a face */
.hgal img{border-radius:38% 38% 12px 12px / 12% 12% 12px 12px}

/* The homepage band held a 16:9 clip in a 21:9 frame, so object-fit cropped
   the doctor's head off top and bottom. Arching that frame cut into his face.
   The band keeps the clip's own ratio and takes a shallower arch. */
.band.arch-soft{aspect-ratio:16/9;border-radius:44% 44% 18px 18px / 11% 11% 18px 18px}
@media (max-width:760px){.band.arch-soft{aspect-ratio:4/3;border-radius:38% 38% 12px 12px / 7% 7% 12px 12px}}

/* ═══ nav roll-up, after vivre.agency ════════════════════════════════
   Their links carry overflow:hidden with a transparent text fill and no
   pseudo content — a clipped box holding two stacked copies of the label.
   Rebuilt here from that mechanism rather than lifted, since the theme
   wraps it in several layers of markup we have no use for. */
.nav-links a .roll{display:block;position:relative;overflow:hidden}
.nav-links a .roll > span{display:block;white-space:nowrap;
  transition:transform .5s cubic-bezier(.16,1,.3,1)}
/* the incoming copy waits exactly one line below the clip */
.nav-links a .roll > span:last-child{position:absolute;inset:0;transform:translateY(100%)}
.nav-links a:hover .roll > span:first-child,
.nav-links a:focus-visible .roll > span:first-child{transform:translateY(-100%)}
.nav-links a:hover .roll > span:last-child,
.nav-links a:focus-visible .roll > span:last-child{transform:translateY(0)}
/* stagger so a row of links reads as a sequence, not one block */
.nav-links > a:nth-child(2) .roll > span,.nav-links > *:nth-child(2) a .roll > span{transition-delay:.02s}
.nav-links > a:nth-child(3) .roll > span,.nav-links > *:nth-child(3) a .roll > span{transition-delay:.04s}
.nav-links > a:nth-child(4) .roll > span,.nav-links > *:nth-child(4) a .roll > span{transition-delay:.06s}

/* the underline already on these links now only marks the current page,
   so hover reads as one gesture rather than two competing ones */
.nav-links a::after{display:none}
.nav-links a[aria-current="page"]::after{display:block;right:0}

@media (prefers-reduced-motion:reduce){
  .nav-links a .roll > span{transition:none}
  .nav-links a .roll > span:last-child{display:none}
}

/* ═══ flyout colour lock ═════════════════════════════════════════════
   The submenu lives inside .nav-links, so every surface override aimed
   at the top-level links reached into it too: over the hero film
   `.nav-film .nav-links a{color:#fff}` (0,2,1) outranked `.flyout-inner a`
   (0,1,1) and painted white labels onto a white panel — 1:1 contrast,
   plus the film's text-shadow as the only thing left to see. The panel
   now sets its own colours at a specificity no nav surface can reach. */
/* opaque on purpose: a frosted panel here samples the nav's own isolated
   stacking context, so the blur has no backdrop to work with and the hero
   reads straight through the menu. A dropdown has to be legible first. */
.nav .flyout-inner{
  background:#FFFFFF;
  border:1px solid var(--line);
  box-shadow:0 34px 74px -36px rgba(5,39,91,.52),0 2px 10px -6px rgba(5,39,91,.22);
  padding:18px 16px
}
.nav .nav-links .flyout-inner a{
  color:var(--night);text-shadow:none;
  transition:background .2s var(--ease),color .2s var(--ease)
}
.nav .nav-links .flyout-inner .grp{color:var(--steel);text-shadow:none}
.nav .nav-links .flyout-inner a:hover,
.nav .nav-links .flyout-inner a:focus-visible{background:rgba(180,202,221,.34);color:var(--night)}
/* the current page reads as a filled row — the top-level underline would
   otherwise stretch across the whole width of a block-level submenu link */
.nav .nav-links .flyout-inner a[aria-current="page"]{background:var(--mist)}
.nav .nav-links .flyout-inner a::after,
.nav .nav-links .flyout-inner a[aria-current="page"]::after{display:none}

/* ═══ before / after ═════════════════════════════════════════════════
   The clinic supplies each case as ONE frame with before on the left and
   after on the right, and its consent + results-vary lines rendered into
   the artwork itself. The component therefore may never crop, split or
   slide the image — every one of those deletes the legal notice along
   with the evidence of consent. The frames also arrive in mixed ratios
   (1080×1350 and 1200×1200), so the mount is a fixed 4:5 well and the
   photograph is *matted* inside it rather than filled to the edges.
   Everything the interface adds sits outside the picture. */
.ba-grid{display:grid;gap:clamp(26px,3.4vw,44px);align-items:start}
@media (min-width:720px){.ba-grid.of-2,.ba-grid.of-3{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1040px){.ba-grid.of-3{grid-template-columns:repeat(3,1fr)}}
/* a lone case is a single print on the wall, not a stretched panel */
.ba-grid.of-1{grid-template-columns:minmax(0,min(420px,100%))}

.ba-case{margin:0;min-width:0}
/* a white mount with a real margin, the way a print is matted. It does two
   jobs at once: the odd 1:1 frame stops looking like the odd one out, and a
   row of photographs shot against different backdrops reads as one set. */
.ba-mount{aspect-ratio:4/5;background:var(--paper);border:1px solid var(--line);
  border-radius:2px;display:grid;place-items:center;overflow:hidden;
  padding:clamp(11px,1.5vw,20px)}
/* fill the mat and letterbox inside it: width/height auto left an unloaded
   lazy image at 0×0, so a tile sat blank white until (and sometimes after)
   the visitor scrolled past it */
.ba-mount img{display:block;width:100%;height:100%;object-fit:contain;
  border-radius:1px}
/* one hairline, one line of type — the picture carries the rest */
.ba-cap{display:flex;flex-wrap:wrap;gap:2px 10px;margin-top:13px;padding-top:11px;
  border-top:1px solid var(--line)}
.ba-cap b{font-family:var(--f-thai);font-weight:400;font-size:var(--t-sm);line-height:1.5;color:var(--navy)}
.ba-cap span{font-family:var(--f-thai);font-weight:300;font-size:var(--t-sm);line-height:1.5;color:var(--steel)}
.ba-cap span::before{content:'· ';color:var(--sky-2)}

.ba-note{font-family:var(--f-thai);font-weight:300;font-size:var(--t-sm);line-height:1.72;color:var(--steel)}

/* ═══ treatment hero ═════════════════════════════════════════════════
   These pages have no photograph worth putting behind a headline — the
   only footage stills we hold are warm-toned frames that fight the navy.
   So the hero is built from type and space instead: one column, a much
   larger display line, and a spec rail along the bottom edge carrying
   real numbers rather than a decorative right-hand column. */
.t-hero{position:relative;overflow:hidden;background:var(--grad-deep);color:var(--body-dk)}
.t-hero::after{content:'';position:absolute;inset:0;pointer-events:none;opacity:.5;
  background:radial-gradient(120% 90% at 88% -6%, rgba(180,202,221,.20), transparent 58%)}
.t-hero > .wrap{position:relative;z-index:1;
  padding-block:clamp(30px,4vw,46px) clamp(46px,6vw,78px)}

/* Thai is the headline and English sits above it as a display line. It used
   to be the other way round — English at 104px over Thai at 25px, four times
   smaller — on a clinic site whose readers are Thai. The English earns its
   place by being the page's English name, not by being the loud one. */
.t-hero-en{font-family:var(--f-display);font-weight:300;font-style:italic;
  font-size:clamp(19px,2.1vw,30px);line-height:1.15;letter-spacing:-.01em;
  color:var(--sky);margin:0 0 clamp(10px,1.2vw,16px);max-width:22ch}
.t-hero-h1{font-family:var(--f-thai);font-weight:400;
  font-size:clamp(31px,4.6vw,62px);line-height:1.24;letter-spacing:-.014em;
  color:#fff;max-width:17ch;margin:0;text-wrap:pretty}
/* kept: some pages still carry the old element */
.t-hero-th{font-family:var(--f-thai);font-weight:400;
  font-size:clamp(17px,1.85vw,25px);line-height:1.5;letter-spacing:0;
  color:var(--sky);margin:clamp(14px,1.6vw,20px) 0 0}
.t-hero-lede{font-family:var(--f-thai);font-weight:300;
  font-size:clamp(15.5px,1.25vw,17.5px);line-height:1.9;color:var(--body-dk);
  max-width:48ch;margin:clamp(18px,2vw,26px) 0 0}
.t-hero-cta{display:flex;flex-wrap:wrap;gap:11px;margin-top:clamp(26px,3vw,36px)}

/* spec rail — the numbers that were buried in a card halfway down the page */
.t-spec{display:grid;gap:0;margin:clamp(38px,5vw,62px) 0 0;padding:0;
  border-top:1px solid rgba(180,202,221,.26)}
@media (min-width:720px){.t-spec{grid-template-columns:repeat(3,1fr)}}
.t-spec > div{padding:18px 0 0}
@media (min-width:720px){
  .t-spec > div{padding:20px 26px 0 0}
  .t-spec > div + div{border-left:1px solid rgba(180,202,221,.26);padding-left:26px}
}
.t-spec dt{font-family:var(--f-sans);font-weight:500;font-size:var(--t-xs);letter-spacing:.05em;
  color:var(--sky);margin:0 0 7px}
.t-spec dd{font-family:var(--f-thai);font-weight:300;font-size:var(--t-sm);line-height:1.62;
  color:var(--body-dk);margin:0}

/* on a dark ground the LINE green is the only saturated thing on screen and
   it reads as a sticker; the button goes to paper and keeps the mark green-free */
.btn-invert{background:var(--cloud);color:var(--night)}
.btn-invert:hover{background:#fff;transform:translateY(-1px)}
.btn-ghost-dk{border:1px solid rgba(180,202,221,.42);color:#fff;background:transparent}
.btn-ghost-dk:hover{border-color:rgba(180,202,221,.8);background:rgba(180,202,221,.10)}

/* ═══ the LINE button ════════════════════════════════════════════════
   #06C755 was the only saturated colour anywhere on the site, so on every
   page the eye went to a green sticker before it went to the headline.
   The button keeps the LINE mark and the word LINE — the affordance is in
   the icon and the label, it never needed the brand fill to be legible. */
.btn-line{background:var(--night);color:#fff}
.btn-line:hover{background:var(--sky-1);transform:translateY(-1px)}
/* on a dark surface the same button flips to paper rather than going green */
.nav-dark .btn-line,.nav-film .btn-line,.mobile-menu .btn-line,.on-dark .btn-line{
  background:var(--cloud);color:var(--night)}
.nav-dark .btn-line:hover,.nav-film .btn-line:hover,
.mobile-menu .btn-line:hover,.on-dark .btn-line:hover{background:#fff}

/* ═══ editorial split ════════════════════════════════════════════════
   Prose sections were a single narrow column with the right half of the
   page left empty, which reads as an unfinished layout rather than as
   space. Label left, argument right — the label stays put while the
   reader moves through the text beside it. */
.ed{display:grid;gap:clamp(20px,3vw,60px);align-items:start}
@media (min-width:900px){.ed{grid-template-columns:minmax(0,4fr) minmax(0,7fr)}}
@media (min-width:900px){.ed-head{position:sticky;top:96px}}
.ed-body{max-width:62ch;min-width:0}

/* section headings were sized for a 52px hero; against a 92px one they
   read as body copy with a bit of weight on it */
.h2{font-size:clamp(25px,3.3vw,45px);line-height:1.28;letter-spacing:-.015em}
.h3{font-size:clamp(18px,1.8vw,24px)}

/* the primary LINE action, solid. It used to carry an inline #06C755 fill,
   which no stylesheet could override and which made the loudest thing on
   every page a green sticker rather than the headline. */
.pill-solid{background:var(--night);color:var(--cloud);border-color:transparent}
a.pill-solid:hover{background:var(--sky-1);border-color:transparent;color:var(--cloud)}
.pill-solid svg{opacity:1}
.on-dark .pill-solid,.say .pill-solid,.graded .pill-solid{background:var(--cloud);color:var(--night)}
.on-dark a.pill-solid:hover,.say a.pill-solid:hover{background:#fff;color:var(--night)}

/* ═══════════════════════════════════════════════════════════════════════
   V5 — homepage rebuilt to the layout the client supplied.
   Scoped to body.v5 so the eight treatment pages keep the v4 system until
   they are converted too. Palette and shapes read off the reference:
   white ground washed with pale blue, one saturated blue for every action,
   generously rounded white cards floating on the wash.
   ═══════════════════════════════════════════════════════════════════════ */
body.v5{
  --b:#1A4FA5;            /* the one blue: buttons, headlines, icons      */
  --b-deep:#123A78;       /* footer bar, headline second line             */
  --b-bright:#2F80E8;     /* small accents, icon glyphs                   */
  --b-tint:#E9F1FB;       /* card fills, icon wells                       */
  --b-line:#D9E6F6;       /* hairlines on the wash                        */
  --tx:#16325E;           /* body text                                    */
  --tx-mute:#415E85;      /* secondary text                               */
  /* the v3/v4 names still appear 133 times in the rules above; every page
     is body.v5 now, so they resolve to the v5 palette here instead of each
     carrying its own near-duplicate blue (audit 14 ต.ค., P1-10) */
  --night:#05275B;--navy:#05275B;--steel:var(--tx-mute);--body:var(--tx-mute);
  --card:#FFFFFF;
  --r:18px;               /* card radius                                  */
  --sh:0 20px 44px -30px rgba(18,58,120,.45);
  --sh-lift:0 26px 56px -28px rgba(18,58,120,.5);
  /* Arctic Frost aura, cooled: the reference base was a warm #faf8f2, which
     read as cream under the blue layers. #F3F7FD keeps almost the same
     luminance (so contrast is unchanged) but flips the cast to blue.
     The base has to live on the page itself — the hero's layers use
     mix-blend-mode:multiply and composite against whatever is behind them,
     so a background on the container blends against the wrong ground and
     washes the effect out. */
  background-color:#F3F7FD;color:var(--tx);
  font-family:var(--f-thai);font-weight:300
}
body.v5 h1,body.v5 h2,body.v5 h3,body.v5 h4{font-family:var(--f-thai);color:var(--tx)}
body.v5 .wrap{max-width:1200px}

/* ── washes ───────────────────────────────────────────────────────── */
.v5-wash{background:linear-gradient(180deg,#F7FBFF 0%,#EAF2FC 46%,#F8FBFF 100%)}
.v5-plain{background:#fff}

/* ── hero ─────────────────────────────────────────────────────────── */
/* deliberately no background here — see the note on body.v5 */
.v5-hero{position:relative;overflow:hidden;min-height:100vh;display:flex;align-items:center}
.v5-hero > .wrap{position:relative;z-index:1;width:100%;
  padding-block:clamp(48px,6vw,86px) clamp(40px,5vw,70px)}
.v5-kicker{font-family:var(--f-thai);font-weight:500;font-size:clamp(17px,2vw,27px);
  color:var(--b);letter-spacing:.01em;margin:0 0 2px}
.v5-h1{font-family:var(--f-thai);font-weight:500;
  font-size:clamp(34px,5.6vw,66px);line-height:1.14;letter-spacing:-.01em;
  color:var(--b-deep);margin:0;text-wrap:balance}
.v5-h1 em{font-style:normal;color:var(--b);display:block}
.v5-sub{font-family:var(--f-thai);font-weight:400;font-size:clamp(15.5px,1.5vw,20px);
  color:var(--tx);margin:clamp(16px,2vw,24px) 0 0}
.v5-sub b{font-weight:500;color:var(--b)}
.v5-hero-cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:clamp(22px,2.6vw,32px)}

/* ── buttons ──────────────────────────────────────────────────────── */
.v5-btn{display:inline-flex;align-items:center;gap:9px;border-radius:999px;
  padding:14px 26px;font-family:var(--f-thai);font-weight:500;font-size:var(--t-base);
  line-height:1;transition:transform .22s var(--ease),box-shadow .22s var(--ease),background .22s}
.v5-btn-solid{background:var(--b);color:#fff;box-shadow:0 14px 26px -16px rgba(26,79,165,.9)}
.v5-btn-solid:hover{background:#16428C;transform:translateY(-2px);box-shadow:0 20px 34px -16px rgba(26,79,165,.95)}
.v5-btn-quiet{background:#fff;color:var(--b);border:1px solid var(--b-line)}
.v5-btn-quiet:hover{border-color:var(--b);transform:translateY(-2px)}
.v5-btn svg{flex:none}

/* ── doctor row ───────────────────────────────────────────────────── */
.v5-docs{display:grid;gap:12px;margin-top:clamp(30px,4vw,46px)}
@media (min-width:640px){.v5-docs{grid-template-columns:repeat(2,1fr)}}
@media (min-width:980px){.v5-docs{grid-template-columns:repeat(3,1fr)}}
.v5-doc{background:rgba(255,255,255,.92);border:1px solid var(--b-line);border-radius:14px;
  padding:16px 18px;text-align:center;backdrop-filter:blur(6px)}
.v5-doc .nick{font-family:var(--f-thai);font-weight:500;font-size:var(--t-base);color:var(--b-deep);margin:0}
.v5-doc .full{font-family:var(--f-thai);font-weight:300;font-size:var(--t-sm);color:var(--tx-mute);margin:5px 0 0;line-height:1.5}
.v5-doc .lic{font-family:var(--f-sans);font-weight:500;font-size:var(--t-xs);color:var(--b);margin:7px 0 0}

/* the round icon well. Written for the trust bar; no markup uses it right
   now, but the card and contact-bar rules further down still key off it,
   so it stays until those go too. */
.v5-ico{flex:none;width:40px;height:40px;border-radius:50%;background:var(--b-tint);
  display:grid;place-items:center;color:var(--b)}

/* ── section headings ─────────────────────────────────────────────── */
.v5-sec{padding-block:clamp(52px,6.5vw,92px)}
.v5-h2{font-family:var(--f-thai);font-weight:500;font-size:clamp(24px,3.1vw,38px);
  line-height:1.3;color:var(--b-deep);margin:0}
.v5-lede{font-family:var(--f-thai);font-weight:300;font-size:var(--t-base);line-height:1.85;
  color:var(--tx-mute);margin:14px 0 0;max-width:44ch}

/* ── services ─────────────────────────────────────────────────────── */
.v5-svc-grid{display:grid;gap:clamp(14px,1.6vw,20px);align-items:stretch}
@media (min-width:560px){.v5-svc-grid{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1040px){.v5-svc-grid{grid-template-columns:repeat(4,1fr)}}
.v5-card{background:var(--card);border:1px solid var(--b-line);border-radius:var(--r);
  box-shadow:var(--sh);overflow:hidden;display:flex;flex-direction:column;
  transition:transform .28s var(--ease),box-shadow .28s var(--ease)}
a.v5-card:hover{transform:translateY(-4px);box-shadow:var(--sh-lift)}
/* the reference fills the top of each card with a model photograph; we have
   none, so the well carries the icon instead and keeps the same silhouette */
.v5-card-top{background:linear-gradient(160deg,#EFF6FE,#DBE9FA);aspect-ratio:4/3;
  display:grid;place-items:center;position:relative}
.v5-card-top .v5-ico{width:62px;height:62px;background:#fff;
  box-shadow:0 10px 22px -14px rgba(18,58,120,.7)}
.v5-card-body{padding:20px clamp(16px,1.6vw,22px) 24px;text-align:center}
.v5-card-body h3{font-family:var(--f-thai);font-weight:500;font-size:var(--t-lg);color:var(--b-deep);margin:0}
.v5-card-body p{font-family:var(--f-thai);font-weight:300;font-size:var(--t-sm);line-height:1.66;
  color:var(--tx-mute);margin:8px 0 0}

/* ── why us ───────────────────────────────────────────────────────── */
.v5-why{display:grid;gap:clamp(26px,3.4vw,52px);align-items:center}
@media (min-width:960px){.v5-why{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
.v5-check{list-style:none;margin:clamp(20px,2.4vw,30px) 0 0;padding:0;display:grid;gap:13px}
.v5-check li{display:flex;gap:12px;align-items:flex-start;
  font-family:var(--f-thai);font-weight:300;font-size:var(--t-sm);line-height:1.65;color:var(--tx)}
.v5-check svg{flex:none;margin-top:2px;color:var(--b)}
.v5-figure{border-radius:var(--r);overflow:hidden;border:1px solid var(--b-line);box-shadow:var(--sh)}
.v5-figure img{display:block;width:100%;height:auto}

/* ── programmes ───────────────────────────────────────────────────── */
.v5-prog{display:grid;gap:clamp(14px,1.6vw,20px)}
@media (min-width:560px){.v5-prog{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1040px){.v5-prog{grid-template-columns:repeat(4,1fr)}}
.v5-prog .v5-card{background:linear-gradient(170deg,#F2F8FF,#E4EFFB)}
.v5-prog-body{padding:clamp(20px,2vw,26px);display:flex;flex-direction:column;height:100%}
.v5-prog-body h3{font-family:var(--f-thai);font-weight:500;font-size:var(--t-lg);color:var(--b-deep);margin:0 0 auto}
.v5-prog-note{font-family:var(--f-thai);font-weight:300;font-size:var(--t-sm);color:var(--tx-mute);
  margin:12px 0 16px;line-height:1.6}
.v5-prog .v5-btn{align-self:flex-start;padding:10px 20px;font-size:var(--t-sm)}

/* ── reviews ──────────────────────────────────────────────────────── */
.v5-rev{display:grid;gap:clamp(14px,1.6vw,20px);align-items:start}
@media (min-width:620px){.v5-rev{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1040px){.v5-rev{grid-template-columns:repeat(4,1fr)}}
.v5-rev figure{margin:0;background:var(--card);border:1px solid var(--b-line);
  border-radius:var(--r);box-shadow:var(--sh);overflow:hidden}
/* the frame is matted, never cropped — the consent line is inside the artwork */
.v5-rev .mount{aspect-ratio:4/5;background:#fff;display:grid;place-items:center;
  overflow:hidden;padding:10px;border-bottom:1px solid var(--b-line)}
.v5-rev .mount img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;border-radius:3px}
.v5-rev figcaption{padding:16px clamp(14px,1.4vw,18px) 18px}
.v5-rev blockquote{margin:0;font-family:var(--f-thai);font-weight:300;font-size:var(--t-sm);
  line-height:1.72;color:var(--tx)}
.v5-rev .who{display:block;font-family:var(--f-thai);font-weight:400;font-size:var(--t-xs);
  color:var(--tx-mute);margin-top:10px}
.v5-rev .spot{display:block;font-family:var(--f-sans);font-weight:500;font-size:var(--t-xs);
  letter-spacing:.03em;color:var(--b);margin-bottom:9px}

.v5-center{text-align:center;display:flex;justify-content:center;margin-top:clamp(26px,3vw,40px)}

/* ── v5 chrome: nav and footer take the reference's shapes ─────────── */
body.v5 .nav{background:rgba(255,255,255,.92);border-bottom:1px solid var(--b-line);
  backdrop-filter:blur(16px)}
body.v5 .nav-links a{color:var(--tx);font-weight:400;font-size:var(--t-sm)}
body.v5 .nav-links a[aria-current="page"]{color:var(--b)}
body.v5 .nav-links a[aria-current="page"]::after{background:var(--b)}
body.v5 .nav-logo .wordmark b{color:var(--b-deep)}
body.v5 .nav-logo .wordmark span{color:var(--b)}
body.v5 .nav-cta{background:var(--b);color:#fff;border-radius:999px;
  box-shadow:0 12px 22px -14px rgba(26,79,165,.9)}
body.v5 .nav-cta:hover{background:#16428C}
body.v5 .nav-burger{border-color:var(--b-line);color:var(--b)}
/* เมนูมือถือเป็นพื้นกรมท่า — สีของแถบเมนูบนพื้นขาวสองบรรทัดบนตามมาด้วย
   ทำให้ตัวหนังสือ VARINPAT กับปุ่มปิดจมหายไปกับพื้น */
body.v5 .mobile-menu .nav-logo .wordmark b{color:#fff}
body.v5 .mobile-menu .nav-logo .wordmark span{color:var(--sky)}
body.v5 .mobile-menu .nav-burger{border-color:rgba(159,187,219,.34);color:#fff}
/* social row beside the menu, as in the reference */
.v5-social{display:none;gap:10px;align-items:center}
@media (min-width:1100px){.v5-social{display:inline-flex}}
.v5-social a{width:30px;height:30px;border-radius:50%;background:var(--b-tint);color:var(--b);
  display:grid;place-items:center;transition:background .2s,color .2s}
.v5-social a:hover{background:var(--b);color:#fff}

/* the v5 footer's colours live with the rest of the footer, further down */
/* the contact strip the reference puts above the small print */
.v5-contactbar{background:var(--b);color:#fff}
.v5-contactbar .wrap{display:grid;gap:18px;padding-block:clamp(22px,2.6vw,30px)}
@media (min-width:900px){.v5-contactbar .wrap{grid-template-columns:repeat(3,auto) 1fr;align-items:center;gap:34px}}
.v5-cb{display:flex;gap:12px;align-items:center}

.v5-cb > div b{display:block;font-family:var(--f-thai);font-weight:300;font-size:var(--t-xs)}
.v5-cb > div span{display:block;font-family:var(--f-thai);font-weight:500;font-size:var(--t-base);margin-top:2px}
.v5-cb > div .num{font-family:var(--f-sans);font-weight:500;letter-spacing:.01em}
.v5-contactbar .v5-btn-quiet{justify-self:end;background:#fff;color:var(--b);border-color:transparent}
.v5-contactbar .v5-btn-quiet:hover{background:#F2F7FF}

/* ═══════════════════════════════════════════════════════════════════════
   LIQUID GLASS
   Glass only reads as glass when there is something behind it worth
   refracting, and backdrop-filter samples the *page* behind the element —
   so the ambience moves to one fixed layer under everything and the
   sections stop painting their own opaque fills. (Learned the hard way on
   the nav flyout earlier: a blurred panel whose backdrop root is an
   isolated, transparent parent has nothing to sample and renders flat.)
   ═══════════════════════════════════════════════════════════════════════ */
body.v5{background-color:#EDF3FC}
.v5-amb{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden;
  background:linear-gradient(180deg,#F6FAFF 0%,#E7F0FB 52%,#F4F8FE 100%)}
.v5-amb i{position:absolute;display:block;border-radius:50%;
  filter:blur(90px);opacity:.55;transform:translateZ(0)}
.v5-amb i:nth-child(1){width:46vw;height:46vw;left:-10vw;top:-12vw;background:#9FC4F5}
.v5-amb i:nth-child(2){width:52vw;height:52vw;right:-14vw;top:-6vw;background:#BBD6F7}
.v5-amb i:nth-child(3){width:40vw;height:40vw;left:26vw;top:38vh;background:#CFE2FA;opacity:.5}
.v5-amb i:nth-child(4){width:44vw;height:44vw;right:-8vw;bottom:-14vw;background:#A8C8F2;opacity:.45}
@media (min-width:900px){.v5-amb i{filter:blur(130px)}}
/* the light breathes rather than sits still — 40s, barely perceptible */
@media (prefers-reduced-motion:no-preference){
  .v5-amb i{animation:v5drift 44s ease-in-out infinite alternate}
  .v5-amb i:nth-child(2){animation-duration:56s;animation-delay:-8s}
  .v5-amb i:nth-child(3){animation-duration:64s;animation-delay:-20s}
  .v5-amb i:nth-child(4){animation-duration:50s;animation-delay:-30s}
}
@keyframes v5drift{from{transform:translate3d(0,0,0) scale(1)}
  to{transform:translate3d(4vw,-3vh,0) scale(1.12)}}

/* sections hand the ground back to the ambience */
body.v5 .v5-plain,body.v5 .v5-wash{background:transparent}
body.v5 .v5-hero{min-height:min(100vh,940px)}

/* ── the material ─────────────────────────────────────────────────── */
.glass{position:relative;isolation:auto;
  background:linear-gradient(158deg,rgba(255,255,255,.80),rgba(255,255,255,.58));
  -webkit-backdrop-filter:blur(26px) saturate(1.75);
  backdrop-filter:blur(26px) saturate(1.75);
  border:1px solid rgba(255,255,255,.62);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92),
             inset 0 -1px 0 rgba(255,255,255,.28),
             0 22px 54px -30px rgba(18,58,120,.42),
             0 2px 12px -8px rgba(18,58,120,.2)}
/* the specular sweep — a soft highlight that follows the pointer across the
   panel, which is what stops a translucent box from reading as flat plastic */
.glass::after{content:'';position:absolute;inset:0;border-radius:inherit;
  pointer-events:none;opacity:0;transition:opacity .45s var(--ease);
  background:radial-gradient(320px circle at var(--mx,50%) var(--my,0%),
    rgba(255,255,255,.55),rgba(255,255,255,0) 62%)}
.glass:hover::after,.glass:focus-within::after{opacity:1}
@media (prefers-reduced-motion:reduce){.glass::after{display:none}}

/* ── every panel becomes the same material ────────────────────────── */
body.v5 .v5-card,
body.v5 .v5-rev figure,body.v5 .v5-figure{
  background:linear-gradient(158deg,rgba(255,255,255,.80),rgba(255,255,255,.58));
  -webkit-backdrop-filter:blur(26px) saturate(1.75);
  backdrop-filter:blur(26px) saturate(1.75);
  border:1px solid rgba(255,255,255,.62);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92),
             0 22px 54px -30px rgba(18,58,120,.42),
             0 2px 12px -8px rgba(18,58,120,.2)}
body.v5 .v5-prog .v5-card{
  background:linear-gradient(158deg,rgba(233,243,255,.78),rgba(255,255,255,.4))}

/* the picture and the matted frame keep a solid ground — a photograph read
   through frosted glass is just a blurry photograph */
body.v5 .v5-figure img{background:#fff}
body.v5 .v5-rev .mount{background:rgba(255,255,255,.82);border-bottom-color:rgba(255,255,255,.6)}
/* the icon well is the one place the material inverts, so it reads as a
   recess rather than another floating panel */
body.v5 .v5-ico{background:rgba(26,79,165,.10);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7)}
body.v5 .v5-card-top{background:linear-gradient(160deg,rgba(255,255,255,.5),rgba(206,226,250,.42))}
body.v5 .v5-card-top .v5-ico{background:rgba(255,255,255,.86);
  box-shadow:inset 0 1px 0 #fff,0 12px 26px -16px rgba(18,58,120,.75)}

/* lift is a material response, not a bounce */
body.v5 a.v5-card,body.v5 .v5-card{transition:transform .5s var(--ease),box-shadow .5s var(--ease)}
body.v5 a.v5-card:hover{transform:translateY(-5px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95),
             0 34px 70px -30px rgba(18,58,120,.5),
             0 3px 14px -8px rgba(18,58,120,.24)}

/* ── chrome ───────────────────────────────────────────────────────── */
body.v5 .nav{background:linear-gradient(180deg,rgba(255,255,255,.74),rgba(255,255,255,.5));
  -webkit-backdrop-filter:blur(24px) saturate(1.8);
  backdrop-filter:blur(24px) saturate(1.8);
  border-bottom:1px solid rgba(255,255,255,.6);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 10px 30px -26px rgba(18,58,120,.6)}
body.v5 .nav-cta{box-shadow:inset 0 1px 0 rgba(255,255,255,.28),
  0 12px 24px -14px rgba(26,79,165,.95)}
body.v5 .flyout-inner{background:linear-gradient(158deg,rgba(255,255,255,.9),rgba(255,255,255,.74));
  -webkit-backdrop-filter:blur(30px) saturate(1.8);
  backdrop-filter:blur(30px) saturate(1.8);
  border-color:rgba(255,255,255,.7)}
body.v5 .v5-btn-quiet{background:linear-gradient(158deg,rgba(255,255,255,.78),rgba(255,255,255,.5));
  -webkit-backdrop-filter:blur(18px) saturate(1.6);
  backdrop-filter:blur(18px) saturate(1.6);
  border-color:rgba(255,255,255,.7);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 12px 26px -20px rgba(18,58,120,.5)}
body.v5 .v5-contactbar{background:linear-gradient(150deg,rgba(26,79,165,.92),rgba(18,58,120,.94));
  -webkit-backdrop-filter:blur(20px) saturate(1.4);
  backdrop-filter:blur(20px) saturate(1.4);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22)}

/* a card whose photograph has arrived: the picture fills the well and the
   icon step is skipped entirely (see CARD_ART in tools/build.py) */
body.v5 .v5-card-top{overflow:hidden}
body.v5 .card-art{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
body.v5 .v5-card-top:has(.card-art){background:#EEF4FC}
body.v5 .v5-card-top:has(.card-art) .v5-ico{display:none}

/* ═══════════════════════════════════════════════════════════════════════
   V5.1 — layout grammar borrowed from the-astell.pages.dev
   What actually makes that page read premium is not its palette (warm) but
   four structural habits, all of which port onto Varinpat's blue:
     · every section opens eyebrow → heading → lede, in that order
     · the heading is two-tone, the second half carrying the accent
     · sections breathe at 80–128px rather than 52–92
     · nothing is on screen at load; 50+ blocks arrive on scroll
   ═══════════════════════════════════════════════════════════════════════ */

/* rhythm — Astell sits at 80px on inner sections and 120px on full bands */
body.v5 .v5-sec{padding-block:clamp(72px,8vw,128px)}

/* the section head, as one component instead of ad-hoc markup per section */
.v5-head{max-width:52ch}
.v5-head.is-centred{max-width:56ch;margin-inline:auto;text-align:center}
.v5-eyebrow{display:inline-flex;align-items:center;gap:11px;
  font-family:var(--f-sans);font-weight:500;font-size:var(--t-xs);letter-spacing:.14em;
  color:var(--b);margin:0 0 clamp(14px,1.6vw,20px)}
.v5-eyebrow::before{content:'';width:22px;height:1px;background:currentColor;opacity:.55}
.v5-head.is-centred .v5-eyebrow::before{display:none}
/* the accent lands on the second half of the heading — the device Astell
   repeats on every single section title */
.v5-h2 em{font-style:normal;color:var(--b)}
.v5-h2{line-height:1.16;letter-spacing:-.02em}
.v5-lede{letter-spacing:.012em;line-height:1.9;max-width:52ch}
.v5-head.is-centred .v5-lede{margin-inline:auto}

/* one video moment, in the same glass frame as everything else */
.v5-film{position:relative;border-radius:var(--r);overflow:hidden;
  border:1px solid rgba(255,255,255,.62);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92),0 30px 66px -34px rgba(18,58,120,.5)}
.v5-film video{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;background:var(--b-tint)}
.v5-film-cap{display:flex;gap:10px;align-items:baseline;margin-top:14px;
  font-family:var(--f-thai);font-weight:300;font-size:var(--t-sm);color:var(--tx-mute)}

/* reveal, staggered down a grid so a row arrives as a row, not all at once */
.js body.v5 [data-reveal]{transition-duration:.9s}

/* the programme card carries a taller frame than a service card */
body.v5 .v5-card-top.is-tall{aspect-ratio:9/10}
/* an empty well on a programme card would be a blank blue box, so it only
   takes up space once its picture exists */
body.v5 .v5-card-top.is-tall:not(:has(.card-art)){display:none}

/* the plate is the whole hero now. The two blurred multiply ramps that used
   to sit over it are gone: a veil is what a bare gradient needed, and a
   finished picture does not. */
/* <picture> must not become a box of its own or the plate would position
   against it instead of against the hero */
.v5-hero picture{display:contents}
/* She now stands nearer the middle of the plate, which leaves a margin on
   her right that a narrow window can eat before it reaches her — so the
   anchor comes off the hard right edge to 82%, and the empty left half
   still takes most of any crop. 6% down, because her hair reaches within
   6% of the top edge and a short wide window must not cut her head off. */
.v5-hero-plate{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  object-position:82% 6%;pointer-events:none;z-index:0;opacity:1}

.v5-figure-pair{aspect-ratio:4/5;max-height:420px}
.v5-figure-pair img{width:100%;height:100%;object-fit:cover;object-position:center 22%}
@media (min-width:960px){.v5-figure-pair{max-height:none}}

/* five doctors, so the row wraps to a tidy grid instead of three wide columns */
@media (min-width:640px){body.v5 .v5-docs{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1040px){body.v5 .v5-docs{grid-template-columns:repeat(5,1fr)}}
body.v5 .v5-doc .nick{font-size:var(--t-base);line-height:1.5}
body.v5 .v5-doc .lic{font-family:var(--f-thai);font-weight:300;font-size:var(--t-xs);
  color:var(--tx-mute);margin-top:6px;line-height:1.45}

/* ── hero, stripped ───────────────────────────────────────────────────
   The doctors and the trust bar moved out to their own section, so the
   hero holds a headline, one line of support and two buttons. */
/* the measure belongs on the text, not on the wrapper: a ch value resolves
   against the font-size of the element it sits on, so 22ch on a 16px wrapper
   was a 350px box around a 76px headline — and Thai has no spaces, so the
   line broke inside วารินภัทร rather than between words. */
.v5-hero-copy{max-width:min(100%,760px)}
body.v5 .v5-h1{font-size:clamp(32px,6vw,76px);line-height:1.1;max-width:15ch;
  text-wrap:balance}
body.v5 .v5-h1 em{font-style:normal;color:var(--b);display:block}
body.v5 .v5-sub{max-width:40ch}
body.v5 .v5-hero{min-height:min(94vh,880px)}

/* ── the team photograph ─────────────────────────────────────────── */
.v5-team{margin:clamp(28px,3.4vw,46px) 0 0;padding:0}
.v5-card-top.is-team{aspect-ratio:16/9;border-radius:var(--r);
  border:1px solid rgba(255,255,255,.62);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92),0 30px 66px -34px rgba(18,58,120,.5)}
/* until the clinic sends the photograph the frame simply is not there */
body.v5 .v5-card-top.is-team:not(:has(.card-art)){display:none}
body.v5 .v5-docs{margin-top:clamp(22px,2.6vw,34px)}

/* ── a section that carries its own plate ─────────────────────────────
   The artwork is bright in the middle and only carries its ghosted
   treatment imagery out at the corners, so the content column sits over
   the clean part and the picture reads as atmosphere rather than as a
   photograph competing with the text. */
body.v5 .v5-sec.has-bg{position:relative;isolation:auto}
.v5-sec-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  pointer-events:none;z-index:0;opacity:.92}
/* fade the plate into the sections above and below so it does not read as a
   pasted rectangle */
body.v5 .v5-sec.has-bg::after{content:'';position:absolute;inset:0;z-index:0;
  pointer-events:none;
  background:linear-gradient(180deg,#EDF3FC 0%,rgba(237,243,252,0) 14%,
    rgba(237,243,252,0) 86%,#EDF3FC 100%)}
body.v5 .v5-sec.has-bg > .wrap{position:relative;z-index:1}

/* ═══ the doctor lineup ══════════════════════════════════════════════
   Five cut-outs standing shoulder to shoulder, read as one photograph.
   Every name is on show; pointing at a doctor grows that portrait,
   sends the other four back, and raises a frosted card behind them
   carrying the full record.

   Two layouts, and the switch is the input device, not the width: a
   card only a mouse can raise would leave every phone without it, so
   anything with no real pointer gets the same information laid flat. */

/* ── the named grid: every touch device, and every narrow window ──── */
body.v5 .v5-docs{display:grid;gap:clamp(14px,1.6vw,22px);align-items:end;margin-top:0;
  width:min(1440px,calc(100vw - 48px));margin-inline:auto}
@media (min-width:560px){body.v5 .v5-docs{grid-template-columns:repeat(2,1fr)}}
@media (min-width:900px){body.v5 .v5-docs{grid-template-columns:repeat(3,1fr)}}
@media (min-width:1400px){body.v5 .v5-docs{grid-template-columns:repeat(5,1fr)}}

/* the label under the portrait only exists in the lineup; on the grid the
   card itself carries the name */
body.v5 .v5-doc-name{display:none}
body.v5 .v5-doc{margin:0;padding:0;background:none;border:0;box-shadow:none;
  -webkit-backdrop-filter:none;backdrop-filter:none;
  display:flex;flex-direction:column;align-items:stretch;text-align:center}
.v5-doc-shot{position:relative;display:flex;justify-content:center;align-items:flex-end;
  height:clamp(230px,25vw,330px);margin-bottom:-26px;z-index:1}
/* no drop-shadow: a cut-out on a light plate does not need a second
   silhouette printed behind it — that grey ghost reads as a background
   the transparent file does not have */
.v5-doc-shot img{display:block;width:auto;height:100%;max-width:none;
  transition:transform .6s var(--ease),filter .45s var(--ease),opacity .45s var(--ease)}
/* the cut-out was cropped mid-thigh, so the hem dissolves rather than stops */
.v5-doc-shot img{-webkit-mask-image:linear-gradient(to bottom,#000 77%,rgba(0,0,0,.42) 91%,transparent 100%);
  mask-image:linear-gradient(to bottom,#000 77%,rgba(0,0,0,.42) 91%,transparent 100%)}

/* the card, flat on the grid */
.v5-doc-plate{position:relative;z-index:0;border-radius:18px;padding:32px 16px 18px;
  background:linear-gradient(158deg,rgba(255,255,255,.8),rgba(255,255,255,.56));
  -webkit-backdrop-filter:blur(24px) saturate(1.6);backdrop-filter:blur(24px) saturate(1.6);
  border:1px solid rgba(255,255,255,.66);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 22px 54px -30px rgba(18,58,120,.4)}
/* on the grid the name wraps: a two-column card at 560px cannot hold
   พญ.วรงค์ชนก หล้าสมศรี (หมอปอเปี๊ยะ) on one line at any size worth reading,
   and nowrap does not clip — it spills into the card next door. */
body.v5 .v5-doc-plate .nick{font-family:var(--f-thai);font-weight:500;font-size:var(--t-sm);
  line-height:1.5;color:var(--b-deep);margin:0;letter-spacing:-.004em;text-wrap:balance}
body.v5 .v5-doc-plate .lic{font-family:var(--f-sans);font-weight:500;font-size:var(--t-xs);
  letter-spacing:.02em;color:var(--b);margin:5px 0 0;line-height:1.45;
  font-variant-numeric:tabular-nums}
@media (max-width:1399px){body.v5 .v5-doc-plate .nick{font-size:var(--t-sm)}}

/* ── the record ──────────────────────────────────────────────────── */
body.v5 .v5-cv{margin-top:13px;padding-top:12px;border-top:1px solid rgba(18,58,120,.13)}
body.v5 .v5-cv ul{list-style:none;margin:0;padding:0;display:grid;gap:7px;text-align:left}
body.v5 .v5-cv li{position:relative;padding-left:15px;font-family:var(--f-thai);
  font-weight:300;font-size:var(--t-xs);line-height:1.55;color:var(--tx-mute)}
body.v5 .v5-cv li::before{content:'';position:absolute;left:2px;top:.62em;
  width:5px;height:5px;border-radius:50%;background:var(--b);opacity:.5}

/* ── the lineup: a real pointer, and room to stand five abreast ───── */
/* 1240px is not a taste line, it is arithmetic. Five names standing side
   by side need the row past about 1040px before the two longest —
   พญ.วริศรา ชาติยานันทน์ (หมออ้น) and พญ.วรงค์ชนก หล้าสมศรี (หมอปอเปี๊ยะ),
   who happen to stand next to each other — clear one another by a usable
   margin. It moved up from 1200 when หมออู๋'s frame was enlarged: his
   column took width from everyone else's, and that gap was the first to
   run out. Below the line the grid takes over and lets names wrap. */
@media (min-width:1240px) and (hover:hover) and (pointer:fine){

  body.v5 .v5-docs{display:flex;flex-wrap:nowrap;align-items:flex-end;
    justify-content:center;gap:0;
    /* the hovered portrait grows upward; this is the room it grows into */
    margin-top:clamp(40px,3.6vw,56px);
    /* the row keeps a 100px shoulder on each side so the two doctors on
       the ends have somewhere to put a panel wider than they are */
    width:min(1180px,calc(100vw - 200px));
    /* the label hangs below the portraits inside this padding */
    padding-bottom:clamp(54px,4.6vw,68px)}

  /* widths in proportion to each cut-out, so all five come out the same
     height and the heads sit on one line. --ar is the trimmed aspect. */
  body.v5 .v5-doc{position:relative;flex:var(--ar,.56) 1 0%;min-width:0;display:block;
    text-align:center}
  body.v5 .v5-doc + .v5-doc{margin-left:-3.4%}
  /* the row curves: the middle stands a step in front of its neighbours */
  body.v5 .v5-doc:nth-child(1),body.v5 .v5-doc:nth-child(5){z-index:1}
  body.v5 .v5-doc:nth-child(2),body.v5 .v5-doc:nth-child(4){z-index:2}
  body.v5 .v5-doc:nth-child(3){z-index:3}
  body.v5 .v5-doc:hover,body.v5 .v5-doc:focus-visible{z-index:6}
  body.v5 .v5-doc:focus-visible{outline:2px solid var(--b);outline-offset:10px;
    border-radius:20px}

  body.v5 .v5-doc-shot{display:block;height:auto;margin-bottom:0;position:relative;z-index:2}
  body.v5 .v5-doc-shot img{width:100%;height:auto;max-width:100%;
    transform-origin:50% 100%}

  /* ── the label under each portrait ────────────────────────────────
     aria-hidden, because the panel below carries the same name to the
     accessibility tree and nobody should hear a doctor named twice.
     The name tracks the row: at 1200px neighbouring names clear each
     other by 14px, at 1440 by 32px, and it never wraps. */
  body.v5 .v5-doc-name{display:block;position:absolute;left:50%;top:100%;width:122%;
    transform:translateX(-50%);margin:8px 0 0;pointer-events:none;
    transition:opacity .28s var(--ease),transform .4s var(--ease)}
  body.v5 .v5-doc-name .nm{font-family:var(--f-thai);font-weight:500;
    font-size:clamp(12px,.92vw,13.5px);line-height:1.5;color:var(--b-deep);margin:0;
    letter-spacing:-.004em;white-space:nowrap}
  body.v5 .v5-doc-name .no{font-family:var(--f-sans);font-weight:500;font-size:var(--t-xs);
    letter-spacing:.02em;color:var(--b);margin:4px 0 0;line-height:1.4;
    font-variant-numeric:tabular-nums}
  /* it does not travel anywhere — it gets out of the way, and the panel
     writes the name again on its own */
  body.v5 .v5-doc:hover .v5-doc-name,
  body.v5 .v5-doc:focus-visible .v5-doc-name{
    opacity:0;transform:translateX(-50%) translateY(7px)}

  /* ── the panel ────────────────────────────────────────────────────
     It rides at 47% of the portrait's height, which keeps the whole
     panel inside the portrait's own vertical span however long the
     record runs — it can never reach the heading above or the trust bar
     below. It arrives in place rather than sliding in from the label. */
  body.v5 .v5-doc-plate{position:absolute;z-index:1;top:47%;left:100%;
    width:clamp(326px,122%,360px);
    transform:translate(-9%,-50%) translate(-16px) scale(.975);
    opacity:0;pointer-events:none;
    padding:24px 26px 26px;border-radius:22px;
    background:rgba(255,255,255,.5);border:1px solid rgba(255,255,255,.78);
    -webkit-backdrop-filter:blur(0px) saturate(1);backdrop-filter:blur(0px) saturate(1);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.92),
      0 46px 96px -44px rgba(18,58,120,.5);
    transition:opacity .3s var(--ease),transform .48s var(--ease),
      -webkit-backdrop-filter .4s var(--ease),backdrop-filter .4s var(--ease)}
  body.v5 .v5-doc:hover .v5-doc-plate,
  body.v5 .v5-doc:focus-visible .v5-doc-plate{
    opacity:1;transform:translate(-9%,-50%) translate(0) scale(1);
    -webkit-backdrop-filter:blur(26px) saturate(1.55);
    backdrop-filter:blur(26px) saturate(1.55)}

  /* the two on the right send it the other way, or it would leave the
     window. left:0 with a negative shift, never right:auto — you cannot
     animate to or from auto */
  body.v5 .v5-doc:nth-child(4) .v5-doc-plate,
  body.v5 .v5-doc:nth-child(5) .v5-doc-plate{
    left:0;transform:translate(-91%,-50%) translate(16px) scale(.975)}
  body.v5 .v5-doc:nth-child(4):hover .v5-doc-plate,
  body.v5 .v5-doc:nth-child(4):focus-visible .v5-doc-plate,
  body.v5 .v5-doc:nth-child(5):hover .v5-doc-plate,
  body.v5 .v5-doc:nth-child(5):focus-visible .v5-doc-plate{
    transform:translate(-91%,-50%) translate(0) scale(1)}

  body.v5 .v5-doc-plate .nick{font-size:var(--t-base);white-space:nowrap;text-wrap:nowrap}
  body.v5 .v5-doc-plate .lic{font-size:var(--t-xs);margin-top:6px}
  body.v5 .v5-cv{margin-top:16px;padding-top:15px}

  /* the three lines write themselves in, one after the other */
  body.v5 .v5-doc-plate .nick,
  body.v5 .v5-doc-plate .lic,
  body.v5 .v5-cv{opacity:0;transform:translateY(9px);
    transition:opacity .3s var(--ease),transform .42s var(--ease)}
  body.v5 .v5-doc:hover .v5-doc-plate .nick,
  body.v5 .v5-doc:focus-visible .v5-doc-plate .nick{
    opacity:1;transform:none;transition-delay:.1s}
  body.v5 .v5-doc:hover .v5-doc-plate .lic,
  body.v5 .v5-doc:focus-visible .v5-doc-plate .lic{
    opacity:1;transform:none;transition-delay:.16s}
  body.v5 .v5-doc:hover .v5-cv,
  body.v5 .v5-doc:focus-visible .v5-cv{
    opacity:1;transform:none;transition-delay:.22s}

  /* the four who were not asked for step back */
  body.v5 .v5-docs:has(.v5-doc:hover) .v5-doc:not(:hover) .v5-doc-shot img,
  body.v5 .v5-docs:has(.v5-doc:focus-visible) .v5-doc:not(:focus-visible) .v5-doc-shot img{
    opacity:.42;filter:saturate(.6)}
  body.v5 .v5-docs:has(.v5-doc:hover) .v5-doc:not(:hover) .v5-doc-name,
  body.v5 .v5-docs:has(.v5-doc:focus-visible) .v5-doc:not(:focus-visible) .v5-doc-name{
    opacity:.42}

  @media (prefers-reduced-motion:no-preference){
    body.v5 .v5-doc:hover .v5-doc-shot img,
    body.v5 .v5-doc:focus-visible .v5-doc-shot img{transform:scale(1.07)}
  }
}

/* ═══ the lineup on a phone ══════════════════════════════════════════
   Three at the back, two standing in front of them and overlapping the
   back row's bottom fifth. Nobody is named until they are tapped, and
   then the same card the desktop shows arrives under the group.

   The row order is not the DOM order: หมอฟิล์ม and หมอปอเปี๊ยะ are the
   first and last figures in the markup and the front row on screen, so
   `order` moves them and everything else stays where the register, the
   alt text and the desktop lineup expect it. */
@media (max-width:767px){

  body.v5 .v5-docs{position:relative;
    display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:center;
    gap:0;width:min(430px,calc(100vw - 28px));margin-inline:auto;
    margin-top:clamp(18px,4vw,30px);padding-bottom:0}

  /* the standing label is not on the page here at all — the card is the
     only place a name appears, and a tap is what opens it */
  body.v5 .v5-doc-name{display:none}

  /* a flex item takes z-index while still position:static, which is the
     whole trick: the figures stack over each other and the card can
     still anchor to the row instead of to one doctor */
  body.v5 .v5-doc{position:static;margin:0;padding:0;display:block;
    text-align:center;background:none;border:0;box-shadow:none}

  /* back row — widths in proportion to each cut-out, so the three come
     out the same height and the heads sit on one line. 57% is
     1 / (sum of their three aspects, 1.7463) with half a percent left
     over, so the three fill the line and the front row is pushed onto
     the next one with no break element to do it — a zero-basis item and
     a 100%-basis break add up to exactly 100% and share a line, which
     starves the first row to nothing. */
  body.v5 .v5-doc:nth-child(2),
  body.v5 .v5-doc:nth-child(3),
  body.v5 .v5-doc:nth-child(4){order:1;flex:0 0 auto;z-index:1;
    width:calc(var(--ar,.56) * 57%)}
  body.v5 .v5-doc:nth-child(3){z-index:2}

  /* front row — 12% taller than the row behind, which is what reads as
     closer, and pulled up over its bottom 20%.
     64.14% = 1.12 / (sum of the back row's three aspects);
     11.45% = 20% of the back row's height, both as a share of the row
     width, which is what a percentage margin resolves against */
  body.v5 .v5-doc:nth-child(1),
  body.v5 .v5-doc:nth-child(5){order:3;flex:0 0 auto;z-index:5;
    width:calc(var(--ar) * 64.14%);margin:-11.4% 4.5% 0}

  body.v5 .v5-doc-shot{display:block;height:auto;margin-bottom:0;position:static}
  body.v5 .v5-doc-shot img{width:100%;height:auto;max-width:100%;
    transform-origin:50% 100%;
    transition:transform .5s var(--ease),opacity .4s var(--ease),filter .4s var(--ease)}

  /* ── the card, under the whole group ─────────────────────────────
     opacity only, never visibility or display: every doctor's name,
     licence and record stays in the accessibility tree and in the page
     source whether or not anyone has tapped */
  body.v5 .v5-doc-plate{position:absolute;left:0;right:0;top:100%;width:auto;
    z-index:9;margin-top:12px;padding:20px 22px 22px;border-radius:20px;
    text-align:left;opacity:0;pointer-events:none;
    transform:translateY(12px) scale(.985);
    background:rgba(255,255,255,.62);
    -webkit-backdrop-filter:blur(26px) saturate(1.55);
    backdrop-filter:blur(26px) saturate(1.55);
    border:1px solid rgba(255,255,255,.8);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.92),
      0 34px 70px -34px rgba(18,58,120,.5);
    transition:opacity .3s var(--ease),transform .44s var(--ease)}
  body.v5 .v5-doc-plate .nick{font-size:var(--t-base);text-align:left}
  body.v5 .v5-doc-plate .lic{font-size:var(--t-xs);margin-top:5px;text-align:left}

  body.v5 .v5-doc.is-open .v5-doc-plate{opacity:1;transform:none}
  body.v5 .v5-doc.is-open{z-index:8}
  body.v5 .v5-doc:focus-visible{outline:2px solid var(--b);outline-offset:6px;
    border-radius:14px}

  @media (prefers-reduced-motion:no-preference){
    body.v5 .v5-doc.is-open .v5-doc-shot img{transform:scale(1.06)}
  }
  body.v5 .v5-docs:has(.v5-doc.is-open) .v5-doc:not(.is-open) .v5-doc-shot img{
    opacity:.42;filter:saturate(.6)}

  /* the row grows by the open card's height (components.js) so the card
     sits inside the section instead of being clipped by it */
  @media (prefers-reduced-motion:no-preference){
    body.v5 .v5-docs{transition:margin-bottom .42s var(--ease)}
  }
}

/* ═══ the sparkle trail ══════════════════════════════════════════════
   Drawn on one canvas over the whole page. Clear white and thin on
   purpose: it has the hero photograph and the darker cards to catch on,
   and over the pale sections it is meant to barely be there. It exists
   only where there is a real pointer to follow, and never when the
   visitor has asked for less motion. */
.v5-sparkle{position:fixed;inset:0;z-index:9999;pointer-events:none;
  width:100%;height:100%}
@media (prefers-reduced-motion:reduce){.v5-sparkle{display:none}}

/* ── the hero on a phone ─────────────────────────────────────────────
   The wide plate keeps its subject on the right, where the copy is not.
   A phone has no right — the copy would land on her face, and it did.
   So the phone gets its own crop with her in the bottom 44%, and the
   copy stops being vertically centred and sits at the top instead. */
@media (max-width:767px){
  body.v5 .v5-hero{align-items:flex-start}
  body.v5 .v5-hero > .wrap{padding-block:clamp(84px,12vh,124px) clamp(28px,4vw,44px)}
  /* One banner, one section, the same arrangement as the desktop: he is on
     the right of the picture and the copy sits on the left of the SAME
     picture, side by side.

     He is 42% of the frame — as small as he can go and still read — which
     leaves the copy 53%, about 208px on a 390px phone. That is the whole
     budget, so the type is set to fit it rather than the other way round. */
  /* No dead space above the copy. The hero was still holding min-height
     94vh from the desktop rule while its content needed about a third of
     that, so the banner opened with an empty pale field. It sizes to what is
     in it now. */
  body.v5 .v5-hero{align-items:flex-end;min-height:0}
  body.v5 .v5-hero .v5-hero-plate{object-position:50% 100%;z-index:0}
  /* the extra room is under the buttons, beside his coat — that is banner,
     not the empty field the top had */
  body.v5 .v5-hero > .wrap{padding-block:clamp(18px,5vw,26px) clamp(52px,14vw,76px)}
  /* the words sit on top of the picture, never under it */
  body.v5 .v5-hero > .wrap{position:relative;z-index:2}
  /* Measured off the picture itself, not guessed from the panel: his hair,
     scrubs and coat start at 62% of it. The copy stops at 57%, which clears
     him and is 5 points more room for Thai than guessing gave. */
  body.v5 .v5-hero-copy{max-width:57%}
  body.v5 .v5-hero .v5-h1{font-size:clamp(21px,6.3vw,28px);line-height:1.3}
  body.v5 .v5-hero .v5-kicker{font-size:var(--t-xs);letter-spacing:.02em;margin-bottom:8px}
  body.v5 .v5-hero-doc .nm{font-size:var(--t-xs);line-height:1.35}
  body.v5 .v5-hero-doc .lic{font-size:var(--t-xs)}
  body.v5 .v5-hero-cta{margin-top:14px;gap:8px}
  /* the copy column is 226px on a 390 phone, so the buttons are sized to
     that rather than allowed to wrap onto two lines inside themselves */
  body.v5 .v5-hero-cta .v5-btn{padding:11px 12px;font-size:clamp(11px,3.1vw,12.5px);
    width:100%;justify-content:center;white-space:nowrap;gap:6px}
  body.v5 .v5-hero-cta .v5-btn svg{width:15px;height:15px;flex:none}
}

/* ═══ vertical clips ═════════════════════════════════════════════════
   These are 35-49 second pieces with the doctor speaking, not the silent
   4-second loops elsewhere on the page — so they get real controls, real
   sound, and preload="none". Nothing downloads until someone asks. */
body.v5 .v5-reels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(12px,1.4vw,18px)}
body.v5 .v5-reel{position:relative;margin:0;border-radius:18px;overflow:hidden;
  aspect-ratio:9/16;background:var(--b-tint);
  border:1px solid rgba(255,255,255,.62);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 26px 60px -32px rgba(18,58,120,.5)}
body.v5 .v5-reel video{display:block;width:100%;height:100%;object-fit:cover}

/* the browser's own play button is a grey triangle in a grey box; this one
   sits over the poster and gets out of the way the moment it is used */
body.v5 .v5-reel-play{position:absolute;inset:0;margin:auto;
  width:54px;height:54px;border-radius:50%;display:grid;place-items:center;
  cursor:pointer;color:var(--b-deep);padding-left:3px;
  background:rgba(255,255,255,.72);border:1px solid rgba(255,255,255,.85);
  -webkit-backdrop-filter:blur(16px) saturate(1.5);backdrop-filter:blur(16px) saturate(1.5);
  box-shadow:0 16px 34px -16px rgba(18,58,120,.7);
  transition:opacity .3s var(--ease),transform .4s var(--ease)}
body.v5 .v5-reel-play:focus-visible{outline:2px solid var(--b);outline-offset:3px}
@media (prefers-reduced-motion:no-preference){
  body.v5 .v5-reel-play:hover{transform:scale(1.07)}
}
body.v5 .v5-reel.is-playing .v5-reel-play{opacity:0;transform:scale(.85);pointer-events:none}

/* on the review wall the column is the full reading width, and two 9:16
   clips across it come out 550px tall each and swallow the section */
body.v5 .v5-reels.is-reviews{max-width:640px;margin-inline:auto}
/* one clip left in that row, so it should not sit in half of a two-up grid */
body.v5 .v5-reels.is-reviews:has(.v5-reel:only-child){grid-template-columns:1fr;max-width:330px}

/* one to a column on a phone, so a face is not two fingers wide */
@media (max-width:560px){
  body.v5 .v5-reels{grid-template-columns:1fr;
    max-width:340px;margin-inline:auto}
}

/* ═══ the testimonial pair ═══════════════════════════════════════════
   Clips on the left, two of them showing, the rest a swipe away. The
   review column on the right rolls upward on its own. Both halves are
   the same height so the row reads as one object. */
body.v5 .v5-testi{display:grid;gap:clamp(20px,2.4vw,34px);
  margin-top:clamp(26px,3vw,42px);align-items:start}
@media (min-width:900px){body.v5 .v5-testi{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}

body.v5 .v5-testi-bar{display:flex;align-items:center;justify-content:space-between;
  gap:14px;margin-bottom:13px;padding-bottom:11px;
  border-bottom:1px solid rgba(18,58,120,.12)}
body.v5 .v5-testi-bar .lbl{display:flex;align-items:center;gap:8px;
  font-family:var(--f-thai);font-weight:500;font-size:var(--t-sm);letter-spacing:.01em;
  color:var(--b-deep)}
body.v5 .v5-testi-bar .lbl .ico{display:grid;place-items:center;width:21px;height:21px;
  border-radius:6px;color:#fff;background:var(--b);padding-left:1px}
body.v5 .v5-testi-bar a{display:flex;align-items:center;gap:5px;
  font-family:var(--f-thai);font-weight:400;font-size:var(--t-xs);color:var(--tx-mute);
  text-decoration:none;transition:color .25s var(--ease),gap .25s var(--ease)}
body.v5 .v5-testi-bar a:hover{color:var(--b);gap:9px}

/* ── the clip rail ───────────────────────────────────────────────── */
body.v5 .v5-cliprail{display:grid;grid-auto-flow:column;
  grid-auto-columns:calc((100% - clamp(10px,1.2vw,14px)) / 2);
  gap:clamp(10px,1.2vw,14px);
  overflow-x:auto;overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory;scroll-padding:0;
  scrollbar-width:none;-ms-overflow-style:none;padding-bottom:2px}
body.v5 .v5-cliprail::-webkit-scrollbar{display:none}
body.v5 .v5-cliprail .v5-reel{scroll-snap-align:start;margin:0}
body.v5 .v5-cliprail:focus-visible{outline:2px solid var(--b);outline-offset:6px;border-radius:20px}
/* one clip left in the rail, so it should not sit in half a two-up grid */
body.v5 .v5-cliprail:has(.v5-reel:only-child){grid-auto-columns:min(100%,300px);
  justify-content:center}


/* โลโก้หายไปทั้งอันบน 13 หน้า
   components.js ใส่ .nav-dark ตอนแถบอยู่บนสุด ซึ่งสั่งสลับไปใช้โลโก้
   เวอร์ชันขาว (.mark-w) — ถูกต้องตอนแถบพื้นเข้มจริงในธีมเก่า
   แต่ body.v5 บังคับแถบเป็นพื้นขาวโปร่ง โลโก้ขาวจึงหายไปบนพื้นขาว
   ทุกหน้าที่ฮีโร่เป็น data-dark-hero = 5 หน้าบน + 8 หน้าหัตถการ
   หน้าแรกไม่โดนเพราะฮีโร่ไม่ได้ใช้ data-dark-hero
   ตัวอักษร wordmark กับปุ่ม burger ไม่ต้องแก้ — body.v5 (0,2,1)
   ชนะ .nav-dark (0,2,0) อยู่แล้ว มีแต่ตัว mark ที่ถูกสลับด้วย display */
body.v5 .nav-dark .nav-logo .mark-c{display:block}
body.v5 .nav-dark .nav-logo .mark-w{display:none}

/* ลิงก์แบบทดลองในแถบเมนู — ตั้งใจให้อ่านเป็นป้ายชั่วคราว ไม่ใช่เมนูจริง
   ถอดออกพร้อมกันกับ NAV ใน site_data.py เมื่อเลือกแบบได้แล้ว */
body.v5 .nav a.nav-draft{display:inline-flex;align-items:center;
  padding:3px 9px;border-radius:999px;
  border:1px dashed var(--b-line);background:var(--b-tint);
  font-family:var(--f-sans);font-weight:500;font-size:var(--t-xs);letter-spacing:.06em;
  color:var(--b);text-decoration:none;line-height:1.6}
body.v5 .nav a.nav-draft:hover{border-style:solid;border-color:var(--b);
  background:#fff}
body.v5 .mobile-menu a.nav-draft{align-self:flex-start;margin-top:6px}

/* ═══ ฮีโร่ v2 · ทีมแพทย์ (index-v2.html เท่านั้น) ═══════════════════
   แบนเนอร์เดิมเป็นคนเดียวชิดขวา ตัวหนังสือจึงนั่งทับครึ่งซ้ายได้
   ภาพทีมเป็นกลุ่มวางกลางและสมมาตร ทับด้านข้างไม่ได้เลย
   จึงทับตามแนวตั้งแทน — ภาพเต็มกรอบ ตัวหนังสืออยู่ช่วงเอวลงมา

   ความสูงมาจากสัดส่วนภาพเอง ไม่ได้ตั้ง min-height แล้วครอบด้วย cover
   เพราะกลุ่มแพทย์กินความกว้างเกือบเต็มไฟล์ ครอบเมื่อไหร่ท่านริมโดนตัด */
/* เต็มความกว้างจอ แต่ตัวภาพยังอยู่ที่สัดส่วนจริงของไฟล์ (1970x890)
   และไม่ถูกยืดจนกลุ่มแพทย์ใหญ่เกินหน้า

   ที่เติมสองข้างไม่ใช่ไล่เฉดที่เดาสี — สุ่มสีคอลัมน์ริมสุดของไฟล์แล้ว
   พบว่ามันไล่ตามแนวตั้ง (ซ้าย #FEFEFE→#F4FBFD→#FDFFFF · ขวา
   #EAF4FC→#E1F1FE→#FCFEFF) ไล่เฉด CSS ชุดเดียวจับไม่ตรงทุกจุด
   จึงตัดคอลัมน์ริมสุดออกมาเป็นแถบ 2px แล้ว repeat-x ยืดออกไป
   ซึ่งคือการต่อพิกเซลเดิมตรง ๆ ไม่มีทางเห็นรอย */
/* พื้นที่ว่างใต้ภาพเป็นสีเดียวกับแถวล่างสุดของไฟล์ — สุ่มมาแล้วทั้งแถว
   อยู่ที่ #FCFEFF ถึง #FFFFFF ต่างกันแค่ 4 จาก 765 จึงใช้สีเดียวได้
   โดยไม่เห็นรอยต่อ · ตัวหนังสือยึด bottom:0 ของกล่อง padding
   พอเพิ่ม padding-bottom ทั้งบล็อกจึงเลื่อนลงตามเอง */
body.v5 .v5-hero.is-team{--tm-w:1190px;
  display:block;position:relative;
  min-height:0;overflow:hidden;margin-inline:auto;
  /* พื้นขาวของแบนเนอร์ (#FDFEFF) กับพื้นแอมเบียนต์ของหน้า (#F3F7FD)
     ต่างกันพอที่จะเห็นเป็นเส้นคาดตรงรอยต่อ ปิดท้ายด้วยการไล่เฉด
     ช่วง 12% ล่างสุดให้กลืนเข้าหาพื้นหน้า */
  background:linear-gradient(180deg,#FDFEFF 0%,#FDFEFF 88%,#F3F7FD 100%);
  /* +20px จากค่าเดิม เพิ่มความสูงรวมของแบนเนอร์โดยไม่แตะตัวภาพ
     ถ้าไปยืดภาพให้สูงขึ้น สัดส่วนจริง 2.415 จะเสีย */
  padding:0 0 calc(clamp(96px,12vw,196px) + 20px)}

/* กรอบนี้สูงเท่าภาพพอดี แถบขอบกับป้ายชื่อจึงอ้างอิงกับภาพ ไม่ใช่กับ
   เซกชันที่สูงขึ้นจาก padding — ถ้าอ้างกับเซกชัน แถบขอบจะถูกยืดจน
   สีไม่ตรงขอบภาพ และป้ายชื่อที่คิดเป็น % จะเลื่อนหลุดแคปซูล */
body.v5 .tm-frame{position:relative}

/* แถบต่อขอบ · เดิมเป็นคอลัมน์เดียวจากขอบภาพแล้ว repeat-x ซึ่งทำให้เส้น
   ลายเฉียงในแบนเนอร์กลายเป็นเส้นตรงยาวออกไปทันทีที่พ้นขอบภาพ และตรงที่
   เส้นเฉียงชนขอบจะเห็นเป็นรอยหักศอก ฝั่งขวาซึ่งมีทั้งสวูชและแถบไล่เฉด
   จึงอ่านออกชัดว่าภาพจบแค่นั้นแล้วเอาสีมาแปะต่อ
   แถบใหม่ (tools สร้างจาก hero-*-2560) เริ่มด้วยสีขอบจริงแล้วเบลอแนวตั้ง
   แรงขึ้นตามระยะ เส้นลายจึงละลายเป็นไล่เฉดแทนที่จะค้าง และช่วงปลายกลืน
   เข้าหาสีเฉลี่ยที่ตั้งเป็น background-color ไว้ จอกว้างเกินความกว้างแถบ
   จึงยังต่อเนื่องไม่มีรอย */
body.v5 .tm-edge{position:absolute;top:0;bottom:0;z-index:0;
  width:calc((100% - min(100%,var(--tm-w))) / 2 + 1px);
  background-repeat:no-repeat;background-size:auto 100%}
body.v5 .tm-edge.is-l{left:0;background-color:#EBF4FD;
  background-image:url('/assets/cards/hero-v4-fill-l.webp');
  background-position:right center}
body.v5 .tm-edge.is-r{right:0;background-color:#CCE6FD;
  background-image:url('/assets/cards/hero-v4-fill-r.webp');
  background-position:left center}
body.v5 .v5-team-shot{display:block;position:relative;z-index:1;
  width:min(100%,var(--tm-w));margin-inline:auto}
body.v5 .v5-team-shot img{display:block;width:100%;height:auto}

/* ฉากขาวไล่เฉดครึ่งล่าง — วัดความสว่างมาแล้ว ช่วงที่ตัวหนังสือลงไปนั่ง
   มีค่าต่ำสุด 122 ซึ่งยังไม่พอสำหรับตัวอักษรน้ำเงินเข้ม ฉากนี้ดันขึ้นมา
   ให้ผ่าน โดยยังเห็นชายเสื้อกาวน์อยู่ และพอถึงขอบล่างก็กลายเป็นสีพื้น
   ของหน้าพอดี จึงต่อกับเซกชันถัดไปโดยไม่เห็นรอย */
/* ไล่เฉดคลุมเฉพาะกรอบภาพ และจบที่สีพื้นที่ต่อลงไปข้างล่าง
   ตัวหนังสือย้ายลงไปอยู่บนพื้นเปล่าแล้ว ฉากจึงเบาลงได้ ไม่ต้องดันคอนทราสต์
   เท่าเดิม เหลือหน้าที่แค่ทำให้ชายเสื้อกาวน์จางลงไปหาพื้น */
body.v5 .tm-frame::after{content:'';position:absolute;inset:0;
  pointer-events:none;z-index:2;
  background:linear-gradient(180deg,
    rgba(253,254,255,0) 62%,
    rgba(253,254,255,.55) 82%,
    rgba(253,254,255,.92) 94%,
    #FDFEFF 100%)}

body.v5 .v5-hero.is-team > .wrap{position:absolute;z-index:3;
  left:50%;translate:-50% 0;bottom:0;width:min(100%,var(--tm-w));
  padding-block:0 clamp(20px,3vw,44px);
  text-align:center}
body.v5 .v5-hero.is-team .v5-hero-copy{max-width:none;margin-inline:auto}
/* หัวเรื่องกับป้ายชื่ออยู่คนละความสูงกันไม่ได้ถ้าบล็อกตัวหนังสือสูงเกิน
   ป้ายอยู่ที่ 58-66% ของกรอบ บล็อกจึงต้องเริ่มต่ำกว่า 68%
   ย่อขนาดตัวอักษรลงแทนการหั่นความกว้าง เพราะหั่นความกว้างแล้วหัวเรื่อง
   ตกสองบรรทัด ซึ่งยิ่งดันบล็อกสูงขึ้นไปอีก */
body.v5 .v5-hero.is-team .v5-h1{max-width:26ch;margin-inline:auto;
  font-size:clamp(22px,2.7vw,37px)}
body.v5 .v5-hero.is-team .v5-hero-cta{justify-content:center}
body.v5 .v5-hero.is-team .v5-hero-doc{align-items:center;justify-content:center;
  text-align:center}

/* บล็อกตัวหนังสือยึดขอบล่างแล้วโตขึ้นบน ถ้าปล่อยขนาดเดิมมันสูงถึง 59%
   ของกรอบ ซึ่งดันตัวเองขึ้นไปถึงระดับอก ไม่ใช่ระดับเอวตามที่ต้องการ
   ย่อทั้งชุดให้บล็อกสูงราว 1 ใน 3 ของกรอบ หัวเรื่องจึงเริ่มที่ราว 60% */
body.v5 .v5-hero.is-team .v5-kicker{font-size:clamp(12px,1.15vw,16px);
  margin-bottom:0}
body.v5 .v5-hero.is-team .v5-h1{font-size:clamp(27px,3.5vw,48px);line-height:1.1}
body.v5 .v5-hero.is-team .v5-h1 em{display:inline}
body.v5 .v5-hero.is-team .v5-hero-doc{margin-top:clamp(8px,1vw,13px);
  font-size:var(--t-sm)}
body.v5 .v5-hero.is-team .v5-hero-cta{margin-top:clamp(10px,1.2vw,16px)}

/* มือถือใช้ไฟล์ที่ต่อผืนล่างไว้แล้ว ตัวหนังสือจึงลงไปนั่งบนพื้นเปล่า
   ไม่ทับตัวหมอ · ฉากไล่เฉดขยับขึ้นให้พอดีกับรอยต่อของผืนที่ต่อ */
@media (max-width:767px){
  body.v5 .tm-frame::after{
    background:linear-gradient(180deg,
      rgba(253,254,255,0) 62%,
      rgba(253,254,255,.72) 80%,
      rgba(253,254,255,.96) 92%,
      #FDFEFF 100%)}
  body.v5 .v5-hero.is-team{padding-bottom:calc(clamp(56px,14vw,96px) + 20px)}
  body.v5 .v5-hero.is-team > .wrap{padding-bottom:clamp(16px,4vw,26px)}
  body.v5 .v5-hero.is-team .v5-h1{max-width:15ch}
  /* จอแคบทำให้ประโยคเดียวตกบรรทัดโดยเหลือ "คลินิก" ลอยอยู่คำเดียว
     คืนการตัดบรรทัดที่ em เหมือนฮีโร่หน้าแรก จะได้แบ่งตรงที่ตั้งใจ */
  body.v5 .v5-hero.is-team .v5-h1 em{display:block}
}

/* ป้ายชื่อบนแบนเนอร์ทีม (v2)
   ภาพต้นฉบับมีแคปซูลว่างเตรียมไว้ให้ 5 อัน ตำแหน่งอ่านจากไฟล์จริง
   ของท่านขวาสุดอยู่ที่ x 70-86% y 58-66% จึงยึดจุดกึ่งกลางไว้ที่
   78%/62% แล้วให้ป้ายโตออกจากจุดนั้น พอภาพย่อ ป้ายก็ตามไปเอง

   ใส่เฉพาะท่านที่ตรวจกับทะเบียนแพทยสภาแล้ว อีกสี่ท่านมาจากการเทียบ
   ใบหน้าด้วยตา ยังไม่ใส่จนกว่าคลินิกจะยืนยัน */
body.v5 .tm-plates{position:absolute;top:0;bottom:0;left:50%;translate:-50% 0;
  width:min(100%,var(--tm-w));z-index:2;pointer-events:none}
/* ป้ายห้าใบเรียงห่างกันราว 12.5% ของความกว้างภาพ ถ้าปล่อยให้ยาว
   บรรทัดเดียวจะกว้างใบละ ~14% แล้วเบียดกันเอง จึงคุมความกว้างไว้
   แล้วให้ชื่อตกบรรทัดข้างในแทน */
body.v5 .tm-plate{position:absolute;left:var(--x);top:var(--y);
  translate:-50% -50%;
  display:flex;flex-direction:column;align-items:center;gap:1px;
  width:max-content;max-width:11.8%;text-align:center;
  padding:5px 9px;border-radius:14px;
  background:rgba(255,255,255,.92);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  box-shadow:0 6px 18px -10px rgba(18,58,120,.5)}
/* ชื่อจริงกับชื่อเล่นต้องอยู่ติดกัน ฟอนต์และสีเดียวกันตามกฎ สบส.
   ต่างกันได้แค่น้ำหนัก เพื่อไม่ให้ชื่อเล่นเด่นกว่าชื่อจริง */
/* เดิมชื่อเล่นตั้งไว้ใหญ่กว่า (11.5px/600) และชื่อจริงเล็กกว่า (9px/400)
   ซึ่งขัดกับคอมเมนต์ข้างบนเองและขัดกฎ สบส. ที่ห้ามให้ชื่อเล่นเด่นกว่าชื่อจริง
   ตอนนี้ใช้ขนาด น้ำหนัก ฟอนต์ และสีชุดเดียวกันทั้งสองบรรทัด */
body.v5 .tm-plate b,body.v5 .tm-plate i{font-family:var(--f-thai);font-weight:500;
  font-style:normal;font-size:clamp(7px,.7vw,9.8px);line-height:1.3;
  color:var(--b-deep)}

/* จอแคบใช้ภาพที่ครอปเหลือสามท่านกลาง ท่านขวาสุดไม่อยู่ในเฟรม */
@media (max-width:767px){
  body.v5 .tm-plates{display:none}
  /* จอแคบภาพเต็มความกว้างอยู่แล้ว แถบต่อขอบจึงเหลือ 1px ซึ่งเป็นสีขอบ
     ของไฟล์เดสก์ท็อป ไม่ใช่ของไฟล์มือถือ จะกลายเป็นเส้นผมริมจอ */
  body.v5 .tm-edge{display:none}
}

/* v2 กับ v3 ใช้ภาพแบนเนอร์ใบเดียวกันแล้ว (ชุด hero-v4 จากภาพที่ลูกค้าส่ง
   29 ก.ย.) แถบต่อขอบจึงเป็นชุดเดียวกัน ไม่ต้องมี override ของ v3 อีก
   ความต่างที่เหลือคือ v2 มีป้ายชื่อทับบนภาพ v3 ปล่อยภาพโล่ง */

/* .faq กับ .ed ได้แผงกระจกเต็มใบจาก body.v5 (บรรทัด ~3238) แต่ตัวมันเอง
   ไม่มี padding เลยสักตัว (.faq มีแค่ border-top · .ed มีแค่ grid/gap)
   ตัวหนังสือจึงชนขอบโค้งของแผงบนหน้าหัตถการทั้ง 8 หน้า */
body.v5 .faq,body.v5 .ed{padding:clamp(20px,2.4vw,32px)}
body.v5 .faq{border-top:0}
body.v5 .faq details:last-child{border-bottom:0}

/* FAQ บนหน้าแรก อยู่ในระบบ v5 จึงคุมความกว้างอ่านให้พอดีเอง */
body.v5 .v5-faq-wrap{max-width:min(100%,820px);margin:clamp(24px,3vw,38px) auto 0}
body.v5 .v5-faq-more{margin:clamp(16px,2vw,24px) 0 0;text-align:center}

/* ปุ่มตรวจสอบทะเบียนแพทยสภา — เว็บแพทยสภารับเฉพาะ POST (ชื่อ+สกุล)
   ลิงก์ตรงไปหาแพทย์รายคนไม่ได้ จึงพาไปหน้าค้นหาแล้วบอกไว้ใน aria-label
   ว่าให้ค้นด้วยชื่ออะไร */
body.v5 .tmc-check{display:inline-flex;align-items:center;gap:5px;
  margin-top:8px;padding:4px 10px;border-radius:999px;
  border:1px solid var(--b-line);background:var(--b-tint);
  font-family:var(--f-thai);font-weight:400;font-size:var(--t-xs);line-height:1.5;
  color:var(--b);text-decoration:none;
  transition:background .22s var(--ease),border-color .22s var(--ease)}
body.v5 .tmc-check:hover{background:#fff;border-color:var(--b)}
body.v5 .tmc-check:focus-visible{outline:2px solid var(--b);outline-offset:2px}
body.v5 .v5-doc-plate .tmc-check{margin-top:10px}

/* ═══ การรับรองจากผู้ผลิต ═══════════════════════════════════════════
   เซกชันที่สองต่อจาก hero · การ์ดทรงโค้งใบละรางวัล

   โครงมาจากรูปอ้างอิงที่ลูกค้าส่ง — ทรงโค้งครึ่งวงกลม ตัวหนังสือกลาง
   เครื่องหมายเล็กบนยอด บรรทัดตราประทับที่ฐาน — แต่ผิวเป็นของเรา
   ไม่ใช่ครีม-ทอง: ไล่สีขาวลงฟ้าอ่อนเหมือนซุ้มที่มีไฟส่องจากบน
   เครื่องหมายเป็นข้าวหลามตัดเส้นบาง ไม่ใช่ประกาย
   และไม่มีตัวพิมพ์ใหญ่ล้วนสักจุดตามกฎของแบรนด์

   ชื่อรางวัลใช้ --f-display เอียง ซึ่งคือ Zodiak (บรรทัด 53 ตั้ง Boska ไว้
   แต่ :root บรรทัด ~764 เขียนทับเป็น Zodiak ทั้งเว็บ) — เว็บโหลด
   Zodiak-Italic.woff2 อยู่แล้วแต่ยังไม่เคยมีหน้าไหนใช้ตัวเอียง
   เป็นเสียงที่ต่างจากหน้าอื่นโดยไม่ต้องเพิ่มไฟล์ฟอนต์ */
/* เซกชันแพทย์ที่อยู่ถัดไปมี margin-top ติดลบเท่ากับ --dome-y เพื่อดัน
   โดมขึ้นมาคร่อมเซกชันก่อนหน้า และมี z-index:1 กับ overflow:clip
   บรรทัดท้ายของเซกชันนี้จึงถูกโดมทับ ต้องเผื่อระยะล่างเท่าความสูงโดม
   บวกระยะหายใจ ไม่ใช่แก้ด้วย z-index เพราะตัวหนังสือจะไปนั่งบนโดมแทน */
body.v5 .v5-creds{padding-top:clamp(58px,6.8vw,104px);
  padding-bottom:calc(clamp(56px,8vw,132px) + clamp(46px,4.8vw,78px))}
/* เซกชันนี้ไม่มีบรรทัดนำมารับหัวเรื่อง จึงให้หัวเรื่องรับน้ำหนักเองมากขึ้น */
body.v5 .v5-creds .v5-h2{font-size:clamp(26px,3.4vw,44px)}

body.v5 .v5-awards{list-style:none;padding:0;
  margin:clamp(32px,4vw,56px) auto 0;max-width:1000px;
  display:grid;gap:clamp(12px,1.5vw,20px);
  grid-template-columns:repeat(3,minmax(0,1fr))}

/* ทรงการ์ดเป็นสี่เหลี่ยมมุมมนธรรมดา ไม่ใช่ซุ้มโค้ง — ซุ้มโค้งเหมือนรูป
   อ้างอิงมากเกินไป · สิ่งที่ทำให้ใบนี้ไม่ใช่กล่องเปล่าคือเส้นกรอบใน
   ที่ถอยจากขอบ 13px แบบการ์ดใบประกาศที่ใส่กรอบพาสปาร์ตู ซึ่งเป็น
   สำนวนของเรื่องรางวัลเอง ไม่ใช่ของที่หยิบมาจากรูปอ้างอิง */
body.v5 .aw-card{position:relative;isolation:isolate;
  display:flex;flex-direction:column;align-items:center;text-align:center;
  min-height:clamp(300px,23vw,350px);
  padding:clamp(34px,3.6vw,46px) clamp(22px,2.6vw,34px) clamp(26px,3vw,34px);
  border-radius:20px;
  border:1px solid rgba(255,255,255,.72);
  /* พื้นหลังหน้าตรงนี้เป็นฟ้าอ่อนอยู่แล้ว การ์ดจึงต้องขาวยาวกว่าที่คิด
     ไม่งั้นซุ้มจมหายไปกับพื้น */
  background:linear-gradient(177deg,#FFFFFF 0%,#FEFFFF 34%,#F1F7FE 68%,#DFEBFA 100%);
  box-shadow:inset 0 1px 0 #fff,
             0 2px 6px -3px rgba(18,58,120,.14),
             0 34px 70px -32px rgba(18,58,120,.5);
  transition:transform .5s var(--ease),box-shadow .5s var(--ease)}
@media (prefers-reduced-motion:no-preference){
  body.v5 .aw-card:hover{transform:translateY(-4px);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.9),
               0 40px 78px -34px rgba(18,58,120,.5)}
}

/* เส้นกรอบในแบบพาสปาร์ตู — จางมากโดยตั้งใจ ให้รู้สึกว่ามีกรอบ
   ไม่ใช่ให้เห็นเส้น */
body.v5 .aw-card::before{content:'';position:absolute;inset:13px;
  border:1px solid rgba(26,79,165,.14);border-radius:12px;pointer-events:none}

/* เครื่องหมายบนยอดการ์ด มีเส้นผมห้อยลงมาต่อกับตัวหนังสือ */
body.v5 .aw-mark{display:block;color:var(--b);opacity:.82;line-height:0}
body.v5 .aw-mark svg{width:13px;height:13px}
body.v5 .aw-mark::after{content:'';display:block;width:1px;
  height:clamp(24px,2.6vw,34px);margin:10px auto 0;
  background:linear-gradient(180deg,currentColor,transparent)}

/* ชื่อผู้ผลิต — เว้นวรรคตัวอักษรกว้าง แต่ไม่ใช่พิมพ์ใหญ่ล้วน
   (กฎแบรนด์: uppercase ดูไม่พรีเมี่ยม) */
body.v5 .aw-by{margin:clamp(16px,1.9vw,24px) 0 0;
  font-family:var(--f-sans);font-weight:500;font-size:var(--t-xs);letter-spacing:.2em;
  color:var(--steel)}

/* ไม่บังคับจุดตัดบรรทัด — balance จัดเองได้สวยกว่า และการบังคับเคยทำให้
   "Certification for Sales Professional" กลายเป็นสามบรรทัดไม่เท่ากัน */
/* หัวการ์ดเป็นไทยเสมอ (กฎแบรนด์: ห้ามหัวเรื่องอังกฤษล้วน) — ชื่อใบรับรอง
   ภาษาอังกฤษเป็นชื่อเฉพาะ จึงเก็บไว้เป็นบรรทัดรองใต้หัวไทย */
body.v5 .aw-th{margin:clamp(12px,1.4vw,17px) 0 0;
  font-family:var(--f-thai);font-weight:500;font-size:clamp(18px,1.5vw,20px);line-height:1.45;
  color:var(--b-deep);text-wrap:balance}
body.v5 .aw-title{margin:6px 0 0;
  font-family:var(--f-display);font-weight:400;font-style:italic;
  font-size:clamp(17px,1.4vw,19px);line-height:1.3;letter-spacing:-.006em;
  color:var(--b);text-wrap:balance}

body.v5 .aw-gloss{margin:clamp(14px,1.7vw,20px) 0 0;max-width:24ch;
  font-family:var(--f-thai);font-weight:300;font-size:var(--t-sm);line-height:1.95;
  color:var(--tx-mute);text-wrap:pretty}

/* บรรทัดตราประทับที่ฐานซุ้ม — auto ดันลงล่างเสมอ ไม่ว่าชื่อรางวัลจะ
   ยาวหนึ่งหรือสองบรรทัด ฐานของทั้งสามใบจึงตรงกัน */
body.v5 .aw-foot{margin:auto 0 0;padding-top:clamp(18px,2.2vw,26px);
  font-family:var(--f-sans);font-weight:500;font-size:var(--t-xs);letter-spacing:.18em;
  color:var(--b);font-variant-numeric:tabular-nums}
body.v5 .aw-foot.is-th{font-family:var(--f-thai);font-weight:400;letter-spacing:.05em;font-size:var(--t-xs)}

/* ── ช่องรูป เขียนรอไว้ ยังไม่มี markup ────────────────────────── */
body.v5 .aw-shot{position:relative;margin:clamp(16px,1.9vw,22px) 0 0;
  width:min(100%,168px);aspect-ratio:1/1;overflow:hidden;border-radius:12px}
body.v5 .aw-shot img{position:absolute;inset:0;
  width:100%;height:100%;box-sizing:border-box;padding:8px;object-fit:contain;
  filter:drop-shadow(0 8px 14px rgba(18,58,120,.2))}

@media (max-width:820px){
  body.v5 .v5-awards{grid-template-columns:repeat(2,minmax(0,1fr));max-width:660px}
  /* ใบที่สามอยู่คนเดียวในแถวสอง จัดให้อยู่กลางแทนที่จะชิดซ้าย */
  body.v5 .aw-card:last-child:nth-child(odd){grid-column:1/-1;
    max-width:320px;justify-self:center}
}
@media (max-width:560px){
  body.v5 .v5-awards{grid-template-columns:1fr;max-width:330px}
  body.v5 .aw-card{min-height:300px}
  /* คอลัมน์เดียวแล้ว ใบที่สามต้องกว้างเท่าสองใบบน — justify-self:center
     ที่สืบมาจากกฎ 820px ทำให้ใบนี้หดเหลือแค่ความกว้างของเนื้อหา */
  body.v5 .aw-card:last-child:nth-child(odd){max-width:none;justify-self:stretch}
  body.v5 .aw-title{font-size:var(--t-lg)}
}

/* ═══ clip coverflow ══════════════════════════════════════════════════
   One clip at full size with its neighbours receding behind it, instead
   of a rail of equal thumbnails. A 9:16 clip in a two-up rail came out
   180px tall — too small to read a face, which is the only thing these
   clips are for.

   The cards are absolutely positioned and placed by transform, not by
   flow, so the overlap is exact and nothing reflows when the active one
   changes. Script only writes data-d (the signed distance from the
   active card, clamped to ±3); every visual step below is CSS. */
body.v5 .v5-clipflow{--cf-w:clamp(196px,20vw,268px);
  position:relative;margin-top:clamp(22px,2.6vw,32px);
  touch-action:pan-y}
body.v5 .v5-clipflow .cf-stage{position:relative;height:calc(var(--cf-w) * 16 / 9)}
body.v5 .v5-clipflow .cf-stage:focus-visible{outline:2px solid var(--b);outline-offset:14px;
  border-radius:24px}

body.v5 .v5-clipflow .cf-card{position:absolute;top:0;left:50%;
  width:var(--cf-w);margin-left:calc(var(--cf-w) / -2);
  cursor:pointer;will-change:transform}
/* before script has placed them every card sits at translateX(0), so
   without this the section opens on eight posters in one pile and then
   animates them apart. Transitions arrive one frame after the first
   placement, with .is-live. */
body.v5 .v5-clipflow.is-live .cf-card:not([data-d]){opacity:0}
body.v5 .v5-clipflow.is-live .cf-card{
  transition:transform .62s var(--ease),opacity .62s var(--ease),
             box-shadow .62s var(--ease)}
body.v5 .v5-clipflow .cf-card video{pointer-events:none}
body.v5 .v5-clipflow .cf-card .v5-reel-play{opacity:0;pointer-events:none}

/* the wash that pushes the neighbours back. A veil rather than a blur:
   these posters carry burned-in Thai captions and blur turns them into
   grey noise, which reads as a broken image rather than a card behind. */
body.v5 .v5-clipflow .cf-card::after{content:"";position:absolute;inset:0;
  border-radius:inherit;pointer-events:none;
  background:#EDF3FC;opacity:0;
  transition:opacity .62s var(--ease)}

body.v5 .v5-clipflow .cf-card[data-d="0"]{z-index:5;transform:none;
  box-shadow:0 40px 80px -34px rgba(18,58,120,.55)}
body.v5 .v5-clipflow .cf-card[data-d="0"] video{pointer-events:auto}
body.v5 .v5-clipflow .cf-card[data-d="0"] .v5-reel-play{opacity:1;pointer-events:auto}
body.v5 .v5-clipflow .cf-card[data-d="0"].is-playing .v5-reel-play{opacity:0;pointer-events:none}

body.v5 .v5-clipflow .cf-card[data-d="1"],
body.v5 .v5-clipflow .cf-card[data-d="-1"]{z-index:4}
body.v5 .v5-clipflow .cf-card[data-d="1"]{transform:translateX(73.5%) scale(.70)}
body.v5 .v5-clipflow .cf-card[data-d="-1"]{transform:translateX(-73.5%) scale(.70)}
body.v5 .v5-clipflow .cf-card[data-d="1"]::after,
body.v5 .v5-clipflow .cf-card[data-d="-1"]::after{opacity:.46}

body.v5 .v5-clipflow .cf-card[data-d="2"],
body.v5 .v5-clipflow .cf-card[data-d="-2"]{z-index:3}
body.v5 .v5-clipflow .cf-card[data-d="2"]{transform:translateX(150%) scale(.60)}
body.v5 .v5-clipflow .cf-card[data-d="-2"]{transform:translateX(-150%) scale(.60)}
body.v5 .v5-clipflow .cf-card[data-d="2"]::after,
body.v5 .v5-clipflow .cf-card[data-d="-2"]::after{opacity:.66}

/* anything further out is parked just off the third slot so it slides in
   from the right place rather than fading in on top of the stack */
body.v5 .v5-clipflow .cf-card[data-d="3"],
body.v5 .v5-clipflow .cf-card[data-d="-3"]{z-index:2;opacity:0;pointer-events:none}
body.v5 .v5-clipflow .cf-card[data-d="3"]{transform:translateX(196%) scale(.54)}
body.v5 .v5-clipflow .cf-card[data-d="-3"]{transform:translateX(-196%) scale(.54)}

@media (prefers-reduced-motion:reduce){
  body.v5 .v5-clipflow.is-live .cf-card{transition:none}
}

/* ── the arrows ──────────────────────────────────────────────────── */
body.v5 .v5-clipflow .cf-arrow{position:absolute;top:50%;z-index:6;
  width:52px;height:52px;margin-top:-26px;border-radius:50%;
  display:grid;place-items:center;cursor:pointer;
  color:var(--b-deep);background:#fff;border:1px solid var(--b-line);
  box-shadow:0 18px 38px -20px rgba(18,58,120,.55);
  transition:transform .3s var(--ease),background .3s var(--ease),
             color .3s var(--ease),opacity .3s var(--ease)}
body.v5 .v5-clipflow .cf-arrow.is-prev{left:0}
body.v5 .v5-clipflow .cf-arrow.is-next{right:0}
body.v5 .v5-clipflow .cf-arrow:hover{background:var(--b);color:#fff;border-color:var(--b)}
body.v5 .v5-clipflow .cf-arrow:focus-visible{outline:2px solid var(--b);outline-offset:3px}
body.v5 .v5-clipflow .cf-arrow[disabled]{opacity:.32;cursor:default;
  background:#fff;color:var(--b-deep);border-color:var(--b-line)}

/* ── the line under the stack ────────────────────────────────────── */
body.v5 .cf-meta{display:flex;align-items:center;justify-content:center;
  gap:12px;flex-wrap:wrap;margin-top:clamp(18px,2vw,26px);
  min-height:30px;text-align:center}
body.v5 .cf-meta .cf-cat{flex:0 0 auto;
  font-family:var(--f-thai);font-weight:500;font-size:var(--t-xs);line-height:1;
  padding:6px 11px;border-radius:999px;
  background:var(--b-tint);color:var(--b)}
body.v5 .cf-meta .cf-title{margin:0;
  font-family:var(--f-thai);font-weight:400;font-size:var(--t-base);color:var(--tx)}
body.v5 .cf-meta .cf-count{flex:0 0 auto;
  font-family:var(--f-sans);font-weight:500;font-size:var(--t-xs);
  color:var(--tx-mute);font-variant-numeric:tabular-nums}
body.v5 .cf-meta .cf-count b{color:var(--b-deep);font-weight:500}

/* ── narrow ──────────────────────────────────────────────────────
   Below 720px the third slot falls off the edge of a phone, so the
   stack drops to one neighbour a side and the arrows shrink and move
   in over the neighbours, which is where the thumb is anyway. */
@media (max-width:720px){
  /* the desktop step of .735w puts the neighbour's outer edge 44px past
     the right of a 390 screen, which reads as a broken card rather than
     as one waiting behind. Narrower card, shorter step, and it peeks. */
  body.v5 .v5-clipflow{--cf-w:clamp(158px,48vw,214px)}
  body.v5 .v5-clipflow .cf-card[data-d="1"]{transform:translateX(62%) scale(.66)}
  body.v5 .v5-clipflow .cf-card[data-d="-1"]{transform:translateX(-62%) scale(.66)}
  body.v5 .v5-clipflow .cf-card[data-d="1"]::after,
  body.v5 .v5-clipflow .cf-card[data-d="-1"]::after{opacity:.56}
  body.v5 .v5-clipflow .cf-card[data-d="2"],
  body.v5 .v5-clipflow .cf-card[data-d="-2"]{opacity:0;pointer-events:none}
  body.v5 .v5-clipflow .cf-card[data-d="2"]{transform:translateX(118%) scale(.6)}
  body.v5 .v5-clipflow .cf-card[data-d="-2"]{transform:translateX(-118%) scale(.6)}
  body.v5 .v5-clipflow .cf-card[data-d="3"]{transform:translateX(118%) scale(.6)}
  body.v5 .v5-clipflow .cf-card[data-d="-3"]{transform:translateX(-118%) scale(.6)}
  /* the arrows now sit over the neighbours, which is where the thumb is
     anyway — so they need to read as floating, not as part of the card */
  body.v5 .v5-clipflow .cf-arrow{width:42px;height:42px;margin-top:-21px;
    box-shadow:0 10px 26px -8px rgba(18,58,120,.5)}
  body.v5 .cf-meta{gap:8px}
  body.v5 .cf-meta .cf-title{font-size:var(--t-sm);flex-basis:100%;order:3}
}

/* filtered out by the tab row. Placed after every [data-d] rule on
   purpose — the two selectors carry identical specificity, so this only
   wins by sitting later in the file. */
body.v5 .v5-clipflow .cf-card.is-out{opacity:0;pointer-events:none;
  transform:scale(.52);z-index:1}

body.v5 .cf-meta .cf-count i{font-style:normal}

/* ── the Google block, now under the stack rather than beside it ────
   The clips took the full width, so the reviews stopped being a column
   and became a card: the score standing on the left as one object, the
   roll on the right at a width a Thai sentence can be read at. */
body.v5 .v5-goog{max-width:960px;margin:clamp(34px,4.2vw,56px) auto 0}
body.v5 .v5-goog-bar{margin-bottom:13px}
@media (min-width:820px){
  body.v5 .v5-goog .v5-revpanel{display:grid;
    grid-template-columns:minmax(0,208px) minmax(0,1fr);
    gap:clamp(22px,2.8vw,36px);align-items:stretch;
    padding:clamp(20px,2.4vw,28px)}
  body.v5 .v5-goog .v5-revscore{flex-direction:column;align-items:flex-start;
    gap:10px;margin:0;padding:4px 0 4px 0;
    border-bottom:0;border-right:1px solid rgba(18,58,120,.12)}
  body.v5 .v5-goog .v5-revscore b{font-size:52px}
  body.v5 .v5-goog .v5-revmarquee{height:clamp(300px,36vh,372px)}
}

/* the tab row above the stack is the same object as the one over the
   before–after grid, so it is the same control, not a new one */
body.v5 .v5-ba-tabs button[data-clip]{display:inline-flex;align-items:center;gap:7px;
  border:1px solid var(--b-line);border-radius:999px;cursor:pointer;
  padding:9px 16px;background:rgba(255,255,255,.7);
  font-family:var(--f-thai);font-weight:400;font-size:var(--t-sm);color:var(--tx);
  transition:background .22s var(--ease),border-color .22s var(--ease),
             color .22s var(--ease)}
body.v5 .v5-ba-tabs button[data-clip] .n{font-family:var(--f-sans);font-weight:500;
  font-size:var(--t-xs);line-height:1;padding:3px 6px;border-radius:999px;
  background:var(--b-tint);color:var(--b);font-variant-numeric:tabular-nums}
body.v5 .v5-ba-tabs button[data-clip]:hover{border-color:var(--b);color:var(--b)}
body.v5 .v5-ba-tabs button[data-clip][aria-selected="true"]{background:var(--b);
  border-color:var(--b);color:#fff}
body.v5 .v5-ba-tabs button[data-clip][aria-selected="true"] .n{background:rgba(255,255,255,.22);
  color:#fff}


/* ── the review column ───────────────────────────────────────────── */
body.v5 .v5-revpanel{border-radius:20px;padding:clamp(18px,2vw,24px);overflow:hidden}
body.v5 .v5-revscore{display:flex;align-items:center;gap:14px;
  padding-bottom:16px;margin-bottom:4px;border-bottom:1px solid rgba(18,58,120,.12)}
body.v5 .v5-revscore b{font-family:var(--f-sans);font-weight:300;font-size:42px;
  line-height:1;color:var(--b-deep);letter-spacing:-.02em}
body.v5 .v5-revscore .stars{display:block;color:#E3A93F;font-size:var(--t-base);letter-spacing:2px}
body.v5 .v5-revscore em{display:block;margin-top:3px;font-family:var(--f-thai);
  font-weight:300;font-style:normal;font-size:var(--t-xs);color:var(--tx-mute)}

/* the roll. Two identical tracks stacked and the pair moved up by half
   its own height — at the moment the first track has fully left, the
   second is exactly where the first began, so the seam never shows. */
body.v5 .v5-revmarquee{position:relative;height:clamp(340px,42vh,440px);overflow:hidden;
  -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 8%,#000 92%,transparent 100%);
  mask-image:linear-gradient(180deg,transparent 0,#000 8%,#000 92%,transparent 100%)}
body.v5 .v5-revroll{display:flex;flex-direction:column;
  animation:v5revroll 132s linear infinite;will-change:transform}
@keyframes v5revroll{from{transform:translateY(0)}to{transform:translateY(-50%)}}
body.v5 .v5-revmarquee:hover .v5-revroll,
body.v5 .v5-revmarquee:focus-within .v5-revroll{animation-play-state:paused}

body.v5 .v5-revroll .track{list-style:none;margin:0;padding:0}
body.v5 .v5-revroll li{padding:15px 2px 15px;border-bottom:1px solid rgba(18,58,120,.09)}
body.v5 .v5-revroll li blockquote{margin:0;font-family:var(--f-thai);font-weight:300;
  font-size:var(--t-sm);line-height:1.8;color:var(--tx)}
body.v5 .v5-revroll .who{display:flex;align-items:center;gap:8px;margin-top:10px}
body.v5 .v5-revroll .ava{flex:0 0 auto;width:26px;height:26px;border-radius:50%;
  display:grid;place-items:center;font-family:var(--f-thai);font-weight:500;font-size:var(--t-xs);
  color:var(--b-deep);background:linear-gradient(150deg,rgba(255,255,255,.92),var(--b-tint));
  border:1px solid rgba(255,255,255,.8)}
body.v5 .v5-revroll .who b{font-family:var(--f-thai);font-weight:500;font-size:var(--t-xs);
  color:var(--b-deep)}
body.v5 .v5-revroll .who em{font-family:var(--f-thai);font-weight:300;font-style:normal;
  font-size:var(--t-xs);color:var(--tx-mute)}
body.v5 .v5-revroll .who .g{flex:0 0 auto;margin-left:auto;opacity:.9}

/* a roll nobody can stop is a roll nobody can read */
@media (prefers-reduced-motion:reduce){
  body.v5 .v5-revmarquee{overflow-y:auto}
  body.v5 .v5-revroll{animation:none}
  body.v5 .v5-revroll .track[aria-hidden]{display:none}
}

/* the eyebrow with a rule either side, as the mockup has it — sentence case,
   never caps, per the rule that holds everywhere on this site */
body.v5 .v5-eyebrow.has-rules{display:flex;align-items:center;justify-content:center;
  gap:14px;text-transform:none}
body.v5 .v5-eyebrow.has-rules::before,
body.v5 .v5-eyebrow.has-rules::after{content:'';height:1px;width:clamp(34px,6vw,72px);
  background:linear-gradient(90deg,rgba(18,58,120,0),rgba(18,58,120,.28))}
body.v5 .v5-eyebrow.has-rules::after{transform:scaleX(-1)}
body.v5 .v5-testi-head .v5-h2{margin-top:6px}

/* ═══ the contact bar ════════════════════════════════════════════════
   It used to be a full-bleed dark band, which put it directly against a
   dark footer with no seam between them — so on a desktop it read as the
   top of the footer and nobody saw it as a thing you could use. It is a
   panel now, inset and on the page's own ground, with the footer's dark
   starting cleanly below it. */
/* the footer is pulled up by its own arch height so its curve overlaps the
   section above it — which is fine for a plain section and not fine for a
   panel, so the bar's bottom padding clears the arch as well as itself */
body.v5 .v5-contactbar{background:none;color:inherit;position:relative;z-index:2;
  padding-block:clamp(10px,2vw,26px) calc(clamp(26px,3.4vw,44px) + var(--arch-y))}
body.v5 .v5-contactbar > .wrap{
  display:grid;gap:clamp(16px,2vw,26px);
  padding:clamp(20px,2.4vw,30px) clamp(20px,2.6vw,34px);
  border-radius:24px;
  background:linear-gradient(158deg,rgba(255,255,255,.82),rgba(255,255,255,.6));
  -webkit-backdrop-filter:blur(26px) saturate(1.7);backdrop-filter:blur(26px) saturate(1.7);
  border:1px solid rgba(255,255,255,.66);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.94),0 34px 76px -38px rgba(18,58,120,.5)}
@media (min-width:900px){
  body.v5 .v5-contactbar > .wrap{grid-template-columns:repeat(3,auto) 1fr;
    align-items:center;gap:clamp(22px,2.6vw,40px)}
}

body.v5 .v5-cb{display:flex;gap:13px;align-items:center;min-width:0}
/* the circle centres its icon by grid, and nothing may take that away */
body.v5 .v5-cb .v5-ico{display:grid;place-items:center;flex:none;
  width:42px;height:42px;border-radius:50%;margin:0;font-size:0;line-height:0;
  color:var(--b);background:rgba(26,79,165,.10);
  border:1px solid rgba(26,79,165,.14)}
body.v5 .v5-cb .v5-ico svg{display:block}
body.v5 .v5-cb > div{min-width:0}
body.v5 .v5-cb > div b{color:var(--tx-mute)}
body.v5 .v5-cb > div span{color:var(--b-deep)}
body.v5 .v5-contactbar .v5-btn-quiet{justify-self:end;
  background:var(--b);color:#fff;border-color:transparent}
body.v5 .v5-contactbar .v5-btn-quiet:hover{background:var(--b-deep)}
@media (max-width:899px){
  body.v5 .v5-contactbar .v5-btn-quiet{justify-self:stretch;width:100%}
}

/* ═══ the arch from the hero into the doctors ════════════════════════
   The reference does this between its first and second sections: the
   next panel rises over the hero on a deep dome rather than meeting it
   on a straight line. The footer here already owned that trick — this
   is the same geometry, deeper, one section earlier. */
body.v5 .v5-sec.has-bg{position:relative;z-index:1;overflow:clip;
  --dome-x:56% 56%;--dome-y:clamp(56px,8vw,132px);
  border-radius:56% 56% 0 0 / var(--dome-y) var(--dome-y) 0 0;
  margin-top:calc(-1 * var(--dome-y));
  padding-top:calc(clamp(52px,7vw,86px) + var(--dome-y))}
/* the plate has to follow the dome, so it is clipped by the same box */
body.v5 .v5-sec.has-bg > .v5-sec-bg{border-radius:inherit}
/* and the hero stops short so the dome has something to rise over */
body.v5 .v5-hero{margin-bottom:0}

/* the panel lifts a little as it arrives, where the browser can do it
   off the scroll timeline; everywhere else it is simply in place */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion:no-preference){
    body.v5 .v5-sec.has-bg{animation:v5rise linear both;
      animation-timeline:view();animation-range:entry 0% entry 62%}
    @keyframes v5rise{from{transform:translateY(46px)}to{transform:translateY(0)}}
  }
}

/* ═══ the closing line ═══════════════════════════════════════════════ */
body.v5 .v5-closing{padding-block:clamp(48px,7vw,96px) clamp(10px,1.6vw,22px)}
body.v5 .v5-closing-line{margin:0;text-align:center;
  font-family:var(--f-thai);font-weight:500;
  font-size:clamp(24px,3.4vw,44px);line-height:1.35;letter-spacing:-.012em;
  color:var(--b-deep);text-wrap:balance;max-width:20ch;margin-inline:auto}
body.v5 .v5-closing-line em{font-style:normal;font-weight:300;color:var(--b);display:block}

/* ═══ the booking block ══════════════════════════════════════════════ */
body.v5 .v5-booking{position:relative;z-index:2;
  padding-block:clamp(20px,3vw,40px) 0}
body.v5 .v5-booking-inner{text-align:center;
  max-width:min(760px,100%);margin-inline:auto;
  padding:clamp(28px,3.4vw,46px) clamp(22px,3vw,44px);
  border-radius:26px;
  background:linear-gradient(158deg,rgba(255,255,255,.82),rgba(255,255,255,.6));
  -webkit-backdrop-filter:blur(26px) saturate(1.7);backdrop-filter:blur(26px) saturate(1.7);
  border:1px solid rgba(255,255,255,.66);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.94),0 40px 84px -42px rgba(18,58,120,.5)}
body.v5 .v5-booking-inner .v5-lede{margin-inline:auto}
body.v5 .v5-booking-cta{display:flex;flex-wrap:wrap;justify-content:center;
  gap:12px;margin-top:clamp(22px,2.6vw,32px)}
body.v5 .v5-booking-meta{margin:clamp(18px,2vw,26px) 0 0;
  font-family:var(--f-thai);font-weight:300;font-size:var(--t-xs);color:var(--tx-mute)}
body.v5 .v5-booking-meta a{color:var(--b);text-decoration:none;
  border-bottom:1px solid rgba(26,79,165,.3)}
body.v5 .v5-booking-meta a:hover{border-bottom-color:var(--b)}

/* ═══ the footer, cut back ═══════════════════════════════════════════ */
/* grid-template-columns is not decoration here. Without it the single
   implicit column sizes to its items' max-content, so a child capped by
   max-width makes the whole track that narrow — and justify-items:center
   then centres the item inside a narrow track that is itself sitting at
   the left edge. The legal lines were centred-looking but 264px off. An
   explicit minmax(0,1fr) track spans the wrap, and the centring lands. */
.footer.is-min .footer-top{display:grid;grid-template-columns:minmax(0,1fr);
  justify-items:center;gap:clamp(18px,2.4vw,28px);text-align:center}
.footer.is-min .footer-nav ul{display:flex;flex-wrap:wrap;justify-content:center;
  gap:8px clamp(16px,2.4vw,30px);list-style:none;margin:0;padding:0}
.footer.is-min .footer-nav li{margin:0}
.footer.is-min .footer-nav a{font-family:var(--f-thai);font-weight:300;font-size:var(--t-sm);
  color:var(--sky);text-decoration:none;transition:color .25s var(--ease)}
.footer.is-min .footer-nav a:hover{color:#fff}
.footer.is-min .footer-social{display:flex;gap:16px}
.footer.is-min .footer-legal{display:grid;grid-template-columns:minmax(0,1fr);
  justify-items:center;text-align:center;
  gap:9px;margin-top:clamp(26px,3.4vw,42px);padding-top:clamp(18px,2.4vw,26px)}
/* pretty, not balance: balance equalises the two lines and lands the break
   in the middle of the first sentence; pretty fills greedily, so the break
   falls between the two sentences and only guards against a stranded last
   line. Where the text may break at all is decided by nb() in build.py. */
.footer.is-min .footer-legal .small{color:var(--sky);margin:0;
  max-width:min(74ch,100%);text-wrap:pretty}
.footer.is-min .footer-legal a{color:var(--sky)}
.footer.is-min .licence{justify-content:center}
.nb{white-space:nowrap}

/* The banner is 16:9 and the hero is taller than that on most screens, so
   cover trims the sides; on a very wide, short window it trims top and bottom
   instead. Centred, that took 9% off the top at 1920x1000 and clipped his
   hair — his head starts about 4% down. Bias the window upwards: what is lost
   from the bottom is the water graphic, which nothing depends on. */
/* min-width, not bare: this sits after the mobile block and matches its
   specificity exactly, so unscoped it won hidden and cropped the doctor
   clean out of the phone banner — the hero showed nothing but background. */
@media (min-width:768px){
  body.v5 .v5-hero .v5-hero-plate{object-position:50% 18%}
}
/* 320px is the narrowest handset still in use and the tightest case: the
   second button clears his hair by a few pixels there and nothing else. Buy
   back some room by pulling the block up and tightening the headline — the
   rule is that no copy may touch his face, so it needs margin, not luck. */
/* the LINE button is the only way to reach the clinic, so it has to be
   visible without scrolling even on the smallest handset still in use */
@media (max-width:400px){
  body.v5 .v5-hero .v5-h1{font-size:27px;line-height:1.2}
  body.v5 .v5-hero .v5-kicker{margin-bottom:10px;font-size:var(--t-xs)}
  body.v5 .v5-hero-doc{margin-top:12px;gap:2px}
  body.v5 .v5-hero-cta{margin-top:16px;gap:8px}
  body.v5 .v5-hero-cta .v5-btn{padding-block:12px}
}
/* the hero doctor plate — his photograph carries the banner, so he is named.
   สบส.: the nickname sits beside the registered name in the same face, the
   same size and the same colour, never as a headline with the real name
   shrunk beneath it. */
body.v5 .v5-hero-doc{margin:clamp(18px,2.2vw,26px) 0 0;display:flex;
  flex-direction:column;gap:4px}
body.v5 .v5-hero-doc .nm{font-family:var(--f-thai);font-weight:400;
  font-size:clamp(15px,1.35vw,18px);line-height:1.4;color:var(--b-deep)}
body.v5 .v5-hero-doc .lic{font-family:var(--f-thai);font-weight:300;
  font-size:clamp(12.5px,1.05vw,14px);line-height:1.4;color:var(--tx-mute)}


/* ═══ the footer, rebuilt ════════════════════════════════════════════
   It was a centred stack on a panel deep enough for a great deal more, so it
   read as a page that had run out rather than one that had finished. Three
   columns that each carry something, then the legal bar. */
body.v5 .footer.is-min .footer-cols{display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) minmax(0,.85fr);
  gap:clamp(28px,4vw,64px);align-items:start;text-align:left}
body.v5 .footer.is-min .footer-brand .nav-logo{margin-bottom:clamp(16px,2vw,22px)}
body.v5 .footer.is-min .ft-addr{margin:0;font-size:var(--t-sm);line-height:1.8}
body.v5 .footer.is-min .ft-addr a{color:var(--tx);text-decoration:none;
  border-bottom:1px solid transparent;transition:border-color .22s var(--ease)}
body.v5 .footer.is-min .ft-addr a:hover{border-bottom-color:var(--b)}
body.v5 .footer.is-min .ft-hours{margin:8px 0 0;font-size:var(--t-sm);color:var(--tx-mute)}

body.v5 .footer.is-min .ft-h{font-family:var(--f-thai);font-weight:500;font-size:var(--t-xs);
  letter-spacing:.06em;color:var(--b);margin:0 0 clamp(13px,1.6vw,18px);
  text-transform:none}
body.v5 .footer.is-min .footer-col ul{list-style:none;margin:0;padding:0;
  display:flex;flex-direction:column;gap:10px;align-items:flex-start}
body.v5 .footer.is-min .footer-col li{margin:0}
body.v5 .footer.is-min .footer-col a{font-family:var(--f-thai);font-weight:300;
  font-size:var(--t-sm);color:var(--tx);text-decoration:none;
  transition:color .22s var(--ease)}
body.v5 .footer.is-min .footer-col a:hover{color:var(--b)}
body.v5 .footer.is-min .ft-line{display:inline-flex;align-items:center;gap:9px;
  padding:9px 15px;border-radius:999px;background:var(--b);color:#fff !important;
  font-size:var(--t-sm);box-shadow:0 12px 26px -16px rgba(26,79,165,.9);
  transition:transform .22s var(--ease)}
body.v5 .footer.is-min .ft-line:hover{transform:translateY(-1px)}
body.v5 .footer.is-min .ft-line b{font-weight:500;letter-spacing:.03em;color:#fff}
body.v5 .footer.is-min .ft-line .num,body.v5 .footer.is-min .ft-line b{color:#fff}
body.v5 .footer.is-min .ft-contact .num{font-family:var(--f-sans);letter-spacing:.02em}
body.v5 .footer.is-min .footer-social{display:flex;gap:14px;
  margin-top:clamp(16px,2vw,20px)}
body.v5 .footer.is-min .footer-social a{display:grid;place-items:center;
  width:36px;height:36px;border-radius:50%;border:1px solid var(--b-line);
  background:rgba(255,255,255,.6);color:var(--b);
  transition:border-color .22s var(--ease),background .22s var(--ease)}
body.v5 .footer.is-min .footer-social a:hover{border-color:var(--b);background:#fff}

/* the legal bar reads as one row, not a centred column of leftovers: the
   licence on the left, the two lines that have to be there on the right */
body.v5 .footer.is-min .footer-legal{display:flex;flex-wrap:wrap;
  align-items:center;justify-content:space-between;gap:clamp(16px,2.4vw,36px);
  text-align:left;margin-top:clamp(30px,3.8vw,46px);
  padding-top:clamp(20px,2.4vw,28px);border-top:1px solid var(--b-line)}
/* the number is the point of this block, so it is set like one — not sunk in
   a grey pill that reads as a leftover UI chip */
body.v5 .footer.is-min .footer-legal .licence{display:block;margin:0;padding:0 0 0 15px;
  background:none;border:0;border-left:2px solid var(--b);border-radius:0;flex:0 0 auto}
body.v5 .footer.is-min .footer-legal .licence dt{font-size:var(--t-xs);color:var(--tx-mute);
  letter-spacing:.01em}
body.v5 .footer.is-min .footer-legal .licence dd{font-family:var(--f-sans);font-weight:500;
  font-size:var(--t-base);letter-spacing:.04em;color:var(--b-deep);margin:3px 0 0}
body.v5 .footer.is-min .ft-legal-text{text-align:right;flex:1 1 320px}
body.v5 .footer.is-min .ft-results{margin:0;max-width:58ch;margin-left:auto;
  font-size:var(--t-xs);line-height:1.75;color:var(--tx-mute)}
body.v5 .footer.is-min .ft-copy{margin:7px 0 0;font-size:var(--t-xs);color:var(--tx-mute)}

/* the arch already takes a deep bite out of the top of the panel; a second
   full pad under it is what made the footer open with an empty field */
body.v5 .footer{padding-top:calc(clamp(30px,4vw,52px) + var(--arch-y));
  padding-bottom:clamp(26px,3.2vw,40px)}

@media (max-width:900px){
  body.v5 .footer.is-min .footer-cols{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  body.v5 .footer.is-min .footer-brand{grid-column:1 / -1}
}
@media (max-width:560px){
  body.v5 .footer.is-min .footer-cols{grid-template-columns:minmax(0,1fr);
    text-align:center;justify-items:center}
  body.v5 .footer.is-min .footer-brand .nav-logo{justify-content:center}
  body.v5 .footer.is-min .footer-col ul{align-items:center}
}


/* The footer is pulled up by its own arch height so the curve overlaps
   whatever is above it. That only works if the section above reserves
   the room — the homepage's booking block did, and none of the other
   fifteen pages did, so the arch was sitting on top of live copy: on
   /treatments the last paragraph ran 33px under it and stopped
   mid-sentence. One rule for every page instead of per-page padding. */
body.v5 main > section:last-child{
  padding-bottom:calc(var(--arch-y) + clamp(30px,4vw,54px))}

/* ── the v5 footer's ground: Arctic Frost ────────────────────────────
   Two blurred gradients on mix-blend-mode:multiply. Blending composites
   against the backdrop within the nearest stacking context, and .footer
   makes one (position:relative + z-index), so these blend against the
   footer's own background — which is why the base colour sits on the
   footer here, not on the body the way the hero's does.

   The base is the page's #F3F7FD rather than the reference's warm
   #faf8f2: a cream footer under a blue-cool page shows the seam at the
   arch. Near-identical luminance, so contrast is unchanged.

   The layers bleed past the sides and the bottom so the blur's
   transparent falloff lands outside the visible box — multiply over
   transparency lightens, and it would lighten exactly the bottom edge
   this gradient exists to darken. The top edge is left at 0 on purpose:
   it fades into the page and lets the arch read as a soft rise.

   Scoped to body.v5, which is the homepage. The other fifteen pages are
   still v4 and keep the ink footer that matches them; this comes with
   them when they are rebuilt. */
body.v5 .footer{background:#F3F7FD;color:var(--tx);
  border-top:1px solid rgba(18,58,120,.13);
  box-shadow:0 -20px 46px -34px rgba(18,58,120,.42)}
body.v5 .footer > .wrap{position:relative;z-index:1}
body.v5 .ft-aura{position:absolute;inset:0 -16% -20%;pointer-events:none}
/* The aura at full strength took the whole lower third of the page to a
   saturated blue. Multiply darkens in proportion to the layer's alpha,
   so dialling the layers back lifts the whole footer toward the page's
   own ground and leaves the blue as a hint at the very bottom, which is
   what it was meant to be. */
body.v5 .ft-aura i{position:absolute;inset:0;display:block;opacity:.52;
  mix-blend-mode:multiply;filter:blur(90px);transform:translateZ(0)}
body.v5 .ft-aura i:nth-child(1){background:linear-gradient(rgba(0,0,0,0) 0%,
  rgba(200,230,255,.12) 28%,rgb(255,255,255) 18%,
  rgb(150,200,255) 68%,rgb(100,130,200) 100%)}
body.v5 .ft-aura i:nth-child(2){background:linear-gradient(rgba(0,0,0,0) 0%,
  rgba(200,230,255,.22) 34%,rgb(255,255,255) 66%,
  rgb(150,200,255) 82%,rgb(100,130,200) 100%)}
@media (min-width:768px){body.v5 .ft-aura i{filter:blur(130px)}}

/* the ink footer's palette inverted onto the frost. The wordmark was the
   visible bug: .nav-logo's colours are written for the light nav, and the
   footer contains a .nav-logo too — so VARINPAT was #123A78 on a #123A78
   ground, the same colour twice. On the frost those colours are right,
   and the mark goes back to the calligraphic blue original. */
body.v5 .footer .nav-logo .mark-w{display:none}
body.v5 .footer .nav-logo .mark-c{display:block}
/* the mark is a teal-steel gradient, #377AA4 at its darkest and #7DA5B6 at
   its lightest, so at 38px on the frost its lower half went soft. A white
   clear-space wash behind it fixed the contrast and read as a halo — the
   cut-out-PNG look — so the fix is size instead: 54px, which is the
   presence a minimal centred footer should give the lockup anyway. */
body.v5 .footer .nav-logo{gap:14px}
body.v5 .footer .nav-logo .mark{height:54px}
body.v5 .footer .wordmark b{font-size:19px;letter-spacing:.03em}
body.v5 .footer .wordmark span{font-size:11px;letter-spacing:.09em}
body.v5 .footer .wordmark b{color:var(--ink)}
body.v5 .footer .wordmark span{color:var(--b)}
body.v5 .footer.is-min .footer-nav a{color:var(--b-deep)}
body.v5 .footer.is-min .footer-nav a:hover{color:var(--b)}
body.v5 .footer .footer-social a{color:var(--b-deep);transition:color .25s var(--ease)}
body.v5 .footer .footer-social a:hover{color:var(--b)}
body.v5 .footer.is-min .footer-legal{border-top:1px solid rgba(18,58,120,.17)}
/* --tx-mute measures 3.93:1 against the frost under these lines (sampled
   through the blurred multiply stack, not guessed) — under AA for 14px.
   #2F4E76 is 5.03:1 and still reads as the quieter of the two. */
body.v5 .footer.is-min .footer-legal .small{color:#2F4E76}
body.v5 .footer.is-min .footer-legal a{color:var(--b-deep)}
body.v5 .footer .licence{background:rgba(255,255,255,.55);
  border-color:rgba(18,58,120,.17)}
body.v5 .footer .licence dt{color:#2F4E76}
body.v5 .footer .licence dd{color:var(--b-deep)}

/* the plate is transformed on scroll, so it needs somewhere to go and
   something to hide it going there */
body.v5 .v5-hero{overflow:clip}
body.v5 .v5-hero-plate{will-change:transform;transform-origin:50% 40%}
body.v5 .v5-hero-copy{will-change:transform,opacity}

/* the doctors section is a heading and one row of portraits, nothing
   else — the trust bar that used to close it is gone */
body.v5 .v5-sec.has-bg{padding-bottom:clamp(44px,5.4vw,74px)}

/* ═══ services: the pinned run ═══════════════════════════════════════
   Four viewports tall with its contents stuck to the top of the screen,
   so scrolling advances a slideshow rather than moving the page. Two
   photographs and one clip at a time; only the treatment on screen is
   named, and the other three are out of the tab order and out of the
   accessibility tree so a screen reader gets one at a time too.

   THE CHANGE RADIATES FROM THE MIDDLE, after the reference: the centre
   panel opens from a point (0.5s), and a quarter-second later the two
   photographs wipe outward from the centre line (1.25s) while the
   pictures inside them slide 30% into place. The caption follows at
   0.35s. Those four numbers are the reference's own — MIDDLE_CLIP .5,
   SIDE_DELAY .25, SIDE_CLIP 1.25, TEXT_RIGHT_DELAY .35 — read out of its
   animation config rather than guessed from watching it.

   Sequencing is CSS transitions. Script only decides which slide is up
   and which layer sits on top; see components.js. */
body.v5 .v5-stage{position:relative;
  height:calc(var(--slides,4) * 92svh + 100svh);
  --stage-med:min(clamp(190px,20vw,280px),31svh);
  --med-r:clamp(16px,1.8vw,24px);
  --ease-clip:cubic-bezier(.22,1,.36,1)}
/* the nav is sticky and paints over the top of the pin, so the pinned
   content is centred in what is left below it, not the whole screen */
body.v5 .v5-stage-pin{position:sticky;top:0;height:100svh;box-sizing:border-box;
  padding-top:70px;overflow:clip;isolation:isolate;display:grid;align-items:center}
body.v5 .v5-stage-bed{position:absolute;inset:0;pointer-events:none}
/* Contained panels, not stretched halves.

   Filling half the screen meant a 633px-wide box fed by a 760px file:
   1.2 device pixels per CSS pixel where a retina screen wants 2, so the
   pictures were being upscaled before they were even drawn. The files
   are re-exported at 952 — the most the 1024x1536 originals can give at
   this crop — and the panel is sized so that number is enough: at 440px
   wide it has 2.16 to spend per CSS pixel.

   They still run off the outer edge, so the composition keeps reading as
   two pictures the screen is too small to hold rather than two cards
   floating on it. Only the inner edge is soft, and it now fades into the
   frost over a longer distance than the old 38% — with the panels this
   much narrower a short fade reads as a cut. */
body.v5 .v5-stage-half{position:absolute;top:0;bottom:0;margin-block:auto;
  width:min(31vw,440px);height:min(76svh,780px);overflow:hidden}
/* Soft on three sides, cut on none.

   A single inner-edge fade left the panel showing a hard top and bottom,
   which reads as a cropped card sitting on the page rather than a
   picture the page is holding. Two masks intersected — one across, one
   down — dissolve the inner edge and both ends, and the outer edge needs
   no treatment because it runs off the screen.

   The across-fade starts at 55%, not the 34% it started at: with panels
   this narrow an early fade eats the face it is there to show. */
body.v5 .v5-stage-half.is-l{left:clamp(-72px,-4vw,-24px);
  -webkit-mask-image:linear-gradient(to right,#000 0 55%,transparent 100%),
    linear-gradient(to bottom,transparent 0,#000 14%,#000 86%,transparent 100%);
  -webkit-mask-composite:source-in;
  mask-image:linear-gradient(to right,#000 0 55%,transparent 100%),
    linear-gradient(to bottom,transparent 0,#000 14%,#000 86%,transparent 100%);
  mask-composite:intersect}
body.v5 .v5-stage-half.is-r{right:clamp(-72px,-4vw,-24px);
  -webkit-mask-image:linear-gradient(to left,#000 0 55%,transparent 100%),
    linear-gradient(to bottom,transparent 0,#000 14%,#000 86%,transparent 100%);
  -webkit-mask-composite:source-in;
  mask-image:linear-gradient(to left,#000 0 55%,transparent 100%),
    linear-gradient(to bottom,transparent 0,#000 14%,#000 86%,transparent 100%);
  mask-composite:intersect}

/* a wipe, not a fade: the clip stays still in the half while the picture
   slides inside it, which is why the two live on separate elements */
body.v5 .v5-stage-half .shot{position:absolute;inset:0;display:block;
  overflow:hidden;transition:clip-path 1.25s .25s var(--ease-clip)}
body.v5 .v5-stage-half.is-l .shot{clip-path:inset(0 0 0 100%)}
body.v5 .v5-stage-half.is-r .shot{clip-path:inset(0 100% 0 0)}
body.v5 .v5-stage-half .shot.is-on{clip-path:inset(0 0 0 0)}
body.v5 .v5-stage-half .shot img{display:block;width:100%;height:100%;
  object-fit:cover;object-position:50% 42%;
  transition:transform 1.25s .25s var(--ease-clip)}
body.v5 .v5-stage-half.is-l .shot img{transform:translateX(30%)}
body.v5 .v5-stage-half.is-r .shot img{transform:translateX(-30%)}
body.v5 .v5-stage-half .shot.is-on img{transform:translateX(0)}
/* held for one frame to snap a layer back to its closed state before it
   is reopened; without it a layer already open would not animate again */
body.v5 .v5-stage .no-anim,body.v5 .v5-stage .no-anim *{transition:none!important}

body.v5 .v5-stage-fog{position:absolute;inset:0;
  background:
    radial-gradient(ellipse 34% 52% at 50% 50%,
      rgba(243,247,253,.72) 0%,rgba(243,247,253,.42) 56%,
      rgba(243,247,253,0) 100%),
    linear-gradient(180deg,rgba(243,247,253,.88) 0%,rgba(243,247,253,0) 18%,
      rgba(243,247,253,0) 82%,rgba(243,247,253,.88) 100%)}

body.v5 .v5-stage-inner{position:relative;z-index:1;
  display:grid;justify-items:center;text-align:center;
  width:min(1180px,calc(100vw - 2 * var(--gut,24px)));margin-inline:auto}
body.v5 .v5-stage .v5-eyebrow{margin:0 0 clamp(8px,1vw,14px)}
/* the section's heading IS the treatment on screen — there is no separate
   "our services" line above it any more. Four of them stacked in one grid
   cell, so the block reserves the tallest and the panel below never
   shifts as the name changes; only the one on screen is in the tab order
   and the accessibility tree, so the outline has exactly one h2 at a
   time rather than four. */
body.v5 .v5-stage-names{display:grid;margin:0}
body.v5 .v5-stage-h{grid-area:1/1;margin:0;
  font-family:var(--f-thai);font-weight:500;
  font-size:clamp(30px,4.4vw,58px);line-height:1.1;letter-spacing:-.012em;
  color:var(--b-deep);white-space:nowrap;
  opacity:0;transform:translateY(12px);pointer-events:none;
  transition:opacity .55s .35s var(--ease-clip),
             transform .7s .35s var(--ease-clip)}
body.v5 .v5-stage-h.is-on{opacity:1;transform:none;pointer-events:auto}
body.v5 .v5-stage-h a{color:inherit;text-decoration:none}
body.v5 .v5-stage-h a::after{content:"";display:block;height:2px;width:46px;
  margin:10px auto 0;background:var(--b);border-radius:2px;
  transform:scaleX(0);transition:transform .3s var(--ease)}
body.v5 .v5-stage-h a:hover,body.v5 .v5-stage-h a:focus-visible{color:var(--b)}
body.v5 .v5-stage-h a:hover::after,
body.v5 .v5-stage-h a:focus-visible::after{transform:scaleX(1)}

/* the panel: 9:16, the shape the clips are actually cut to */
body.v5 .v5-stage-media{position:relative;
  margin:clamp(18px,2.2vw,28px) 0 0;
  width:var(--stage-med);aspect-ratio:9/16;
  border-radius:var(--med-r);background:#0E2A52;
  box-shadow:0 46px 90px -44px rgba(11,38,84,.72),
             0 0 0 1px rgba(255,255,255,.66),
             inset 0 1px 0 rgba(255,255,255,.2)}
/* the clip-path carries the panel's own radius, so the corners stay
   round while the rectangle grows out of a point at the centre */
body.v5 .v5-stage-media .clip{position:absolute;inset:0;display:block;
  border-radius:var(--med-r);overflow:hidden;
  clip-path:inset(50% 50% 50% 50% round var(--med-r));
  transition:clip-path .5s var(--ease-clip)}
body.v5 .v5-stage-media .clip.is-on{clip-path:inset(0 0 0 0 round var(--med-r))}
body.v5 .v5-stage-media video{display:block;width:100%;height:100%;
  object-fit:cover;transform:scale(1.14);
  transition:transform 1s var(--ease-clip)}
body.v5 .v5-stage-media .clip.is-on video{transform:scale(1)}
body.v5 .v5-stage-toggle{position:absolute;z-index:2;right:9px;bottom:9px;
  width:32px;height:32px;display:grid;place-items:center;border:0;
  border-radius:50%;cursor:pointer;color:#0E2A52;
  background:rgba(255,255,255,.88);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  box-shadow:0 6px 16px -8px rgba(11,38,84,.7);
  transition:transform .2s var(--ease),background .2s}
body.v5 .v5-stage-toggle:hover{transform:scale(1.07);background:#fff}
body.v5 .v5-stage-toggle .i-pause{display:none}
body.v5 .v5-stage-toggle[aria-pressed="true"] .i-play{display:none}
body.v5 .v5-stage-toggle[aria-pressed="true"] .i-pause{display:block}

/* one caption at a time, stacked in a single grid cell so the block
   reserves the height of the tallest and nothing above it shifts. The
   margin also clears the panel's drift — every pixel of travel is a
   pixel the caption could be landed on at one end of the run. */
body.v5 .v5-stage-caps{display:grid;margin-top:clamp(38px,3.6vw,48px);
  width:min(460px,100%)}
body.v5 .v5-stage-caps .cap{grid-area:1/1;display:grid;gap:5px;
  justify-items:center;text-decoration:none;
  opacity:0;transform:translateY(12px);pointer-events:none;
  transition:opacity .55s .35s var(--ease-clip),
             transform .7s .35s var(--ease-clip)}
body.v5 .v5-stage-caps .cap.is-on{opacity:1;transform:none;pointer-events:auto}
body.v5 .v5-stage-caps .cap{font-family:var(--f-thai);font-weight:300;
  font-size:clamp(13.5px,1.3vw,15.5px);line-height:1.75;color:var(--tx);
  text-wrap:pretty;text-align:center}

body.v5 .v5-stage-ticks{display:flex;gap:7px;margin-top:clamp(16px,2vw,24px)}
body.v5 .v5-stage-ticks .tick{display:block;width:26px;height:2px;border-radius:2px;
  background:rgba(18,58,120,.22);transition:background .4s var(--ease)}
body.v5 .v5-stage-ticks .tick.is-on{background:var(--b)}

/* the slow drift inside a slide, separate from the change between them.
   --sp is signed: negative on the way in, positive on the way out. */
body.v5 .v5-stage-half,body.v5 .v5-stage-media{will-change:transform}
/* no scale any more: overscan existed to keep a full-bleed half from
   showing its edge as it drifted. A contained panel just moves. */
body.v5 .v5-stage-half.is-l{
  transform:translate3d(calc(var(--px,0) * -9px),
                        calc(var(--sp,0) * -34px + var(--py,0) * -7px),0)}
body.v5 .v5-stage-half.is-r{
  transform:translate3d(calc(var(--px,0) * 9px),
                        calc(var(--sp,0) * 34px + var(--py,0) * 7px),0)}
body.v5 .v5-stage-media{
  transform:translate3d(calc(var(--px,0) * 7px),
                        calc(var(--sp,0) * -18px + var(--py,0) * 5px),0)}

/* On a phone the halves cannot stay side by side: a 195px slice of a
   photograph is an abstraction, not a picture. They become bands, one
   above the panel and one below, and both the wipe and the drift turn
   ninety degrees with them. */
@media (max-width:899px){
  body.v5 .v5-stage{--stage-med:min(46vw,196px);
    height:calc(var(--slides,4) * 84svh + 100svh)}
  body.v5 .v5-stage-pin{padding-top:64px}
  /* The band is capped rather than full-bleed. A 1024px original gives a
     952px crop; on a 768px tablet a full-width band renders at 848 CSS
     px, which is 1.12 device pixels per CSS pixel — soft on any retina
     screen. Held to 560 it renders at 1.83, and a centred plate reads as
     a choice where a stretched one reads as a mistake. Phones are
     narrower than the cap, so nothing changes for them. */
  body.v5 .v5-stage-half{top:auto;bottom:auto;margin-block:0;
    left:0;right:0;margin-inline:auto;
    width:min(calc(100% + 2 * clamp(14px,6vw,40px)),560px);height:32svh;
    border-radius:clamp(14px,3vw,20px);
    -webkit-mask-image:none;mask-image:none}
  body.v5 .v5-stage-half.is-l{top:0;
    -webkit-mask-image:linear-gradient(to bottom,#000 0 58%,transparent 100%);
    mask-image:linear-gradient(to bottom,#000 0 58%,transparent 100%);
    -webkit-mask-composite:source-over;mask-composite:add;
    transform:translate3d(0,calc(var(--sp,0) * -18px),0)}
  body.v5 .v5-stage-half.is-r{bottom:0;
    -webkit-mask-image:linear-gradient(to top,#000 0 58%,transparent 100%);
    mask-image:linear-gradient(to top,#000 0 58%,transparent 100%);
    -webkit-mask-composite:source-over;mask-composite:add;
    transform:translate3d(0,calc(var(--sp,0) * 18px),0)}
  body.v5 .v5-stage-half.is-l .shot{clip-path:inset(0 0 100% 0)}
  body.v5 .v5-stage-half.is-r .shot{clip-path:inset(100% 0 0 0)}
  body.v5 .v5-stage-half .shot.is-on{clip-path:inset(0 0 0 0)}
  body.v5 .v5-stage-half.is-l .shot img{transform:translateY(22%)}
  body.v5 .v5-stage-half.is-r .shot img{transform:translateY(-22%)}
  body.v5 .v5-stage-half .shot.is-on img{transform:translateY(0)}
  body.v5 .v5-stage-half .shot img{object-position:50% 34%}
  body.v5 .v5-stage-media{
    transform:translate3d(0,calc(var(--sp,0) * -10px),0)}
  body.v5 .v5-stage-caps{margin-top:clamp(28px,6vw,36px)}
  body.v5 .v5-stage-fog{background:
    radial-gradient(ellipse 92% 44% at 50% 50%,
      rgba(243,247,253,.94) 0%,rgba(243,247,253,.78) 52%,
      rgba(243,247,253,.25) 100%),
    linear-gradient(180deg,rgba(243,247,253,.94) 0%,rgba(243,247,253,.1) 22%,
      rgba(243,247,253,.1) 78%,rgba(243,247,253,.94) 100%)}
  body.v5 .v5-stage-h{font-size:clamp(28px,7.4vw,42px)}
}

/* Asked for less motion: the run stops being a run. The section collapses
   to one screen showing every treatment at once — the alternative is
   three treatments the visitor can never reach. */
@media (prefers-reduced-motion:reduce){
  body.v5 .v5-stage{height:auto;min-height:0}
  body.v5 .v5-stage-pin{position:static;height:auto;
    padding-block:clamp(60px,7vw,96px)}
  body.v5 .v5-stage-half,body.v5 .v5-stage-media{transform:none!important}
  body.v5 .v5-stage-half.is-l,body.v5 .v5-stage-half.is-r{transform:scale(1.02)!important}
  body.v5 .v5-stage-half .shot,body.v5 .v5-stage-half .shot img,
  body.v5 .v5-stage-media .clip,body.v5 .v5-stage-media video,
  body.v5 .v5-stage-caps .cap{transition:none!important}
  body.v5 .v5-stage-half .shot{clip-path:inset(0 0 0 0)!important}
  body.v5 .v5-stage-half .shot img{transform:none!important}
  body.v5 .v5-stage-media .clip{clip-path:inset(0 0 0 0 round var(--med-r))!important}
  body.v5 .v5-stage-media .clip:not(.is-on){display:none}
  body.v5 .v5-stage-media video{transform:none!important}
  body.v5 .v5-stage-caps{grid-auto-flow:row;gap:22px}
  body.v5 .v5-stage-caps .cap{grid-area:auto;opacity:1;transform:none;
    pointer-events:auto}
  body.v5 .v5-stage-ticks{display:none}
}

/* ═══ before / after, filterable ═════════════════════════════════════
   Every picture already carries the clinic's watermark and the
   results-vary line burned into the artwork; the consent line and the
   same disclaimer sit in the section lede as real text so neither
   depends on the image being visible. */
body.v5 .v5-ba-tabs{display:flex;flex-wrap:wrap;justify-content:center;
  gap:8px;margin-top:clamp(22px,2.6vw,32px)}
body.v5 .v5-ba-tabs button[data-ba]{display:inline-flex;align-items:center;gap:7px;
  border:1px solid var(--b-line);border-radius:999px;cursor:pointer;
  padding:9px 16px;background:rgba(255,255,255,.7);
  font-family:var(--f-thai);font-weight:400;font-size:var(--t-sm);color:var(--tx);
  transition:background .22s var(--ease),border-color .22s var(--ease),
             color .22s var(--ease)}
body.v5 .v5-ba-tabs button[data-ba] .n{font-family:var(--f-sans);font-weight:500;
  font-size:var(--t-xs);line-height:1;padding:3px 6px;border-radius:999px;
  background:var(--b-tint);color:var(--b);font-variant-numeric:tabular-nums}
body.v5 .v5-ba-tabs button[data-ba]:hover{border-color:var(--b);color:var(--b)}
body.v5 .v5-ba-tabs button[data-ba][aria-selected="true"]{background:var(--b);
  border-color:var(--b);color:#fff}
body.v5 .v5-ba-tabs button[data-ba][aria-selected="true"] .n{background:rgba(255,255,255,.22);
  color:#fff}

/* one row, five at a time, rolling on its own.

   The distance the track travels is one full set — every card is the
   same width and every gap the same, so the item n places along is
   exactly n*(card+gap) away, and translating by that lands the copy
   where the original was. Set in px from script rather than 50%,
   because the set is rebuilt on every filter and its width changes.

   Speed is px/sec, not a fixed duration: with 26 filler pairs and 3
   restore ones, one duration would crawl through one and race the
   other. */
/* full bleed: the rail breaks out of .wrap so the row runs to both edges
   of the screen. The card width is measured from the rail itself, so
   five across simply becomes five across the viewport. */
/* full bleed: the rail breaks out of .wrap so the row runs to both edges of
   the screen. The card width is measured from the rail itself, so five
   across simply becomes five across the viewport.

   It is a real scroll container now, not a CSS marquee. The marquee could
   not co-exist with the two things that were asked for: a card you drag to
   compare (the card has to hold still under your finger, and a touch screen
   has no hover to pause it) and buttons that step the row yourself. A
   scroll container gets the drift from script, the buttons from scrollBy,
   and the swipe from the platform. */
body.v5 .v5-ba-rail{--ba-gap:clamp(12px,1.6vw,20px);
  margin-top:clamp(20px,2.4vw,30px);
  width:100vw;margin-left:calc(50% - 50vw);
  padding-inline:var(--ba-gap);
  overflow-x:auto;overflow-y:hidden;
  overscroll-behavior-x:contain;
  scrollbar-width:none;-ms-overflow-style:none}
/* NEVER scroll-behavior:smooth on the rail: the drift writes scrollLeft on
   every frame, and a smooth behaviour would animate each of those writes
   against the next one. The buttons pass behavior:"smooth" per call. */
body.v5 .v5-ba-rail::-webkit-scrollbar{display:none}
/* 100vw counts the scrollbar and the page does not, so the bleed hangs a
   few px past both edges. clip, never hidden — hidden on an ancestor
   silently kills position:sticky further up the page. */
body.v5 #results{overflow-x:clip}
body.v5 .v5-ba-track{display:flex;gap:var(--ba-gap);width:max-content}

body.v5 .v5-ba{flex:0 0 var(--ba-card,232px);margin:0;
  border-radius:16px;overflow:hidden;
  background:linear-gradient(158deg,rgba(255,255,255,.82),rgba(255,255,255,.6));
  border:1px solid rgba(255,255,255,.66);
  box-shadow:0 20px 46px -30px rgba(18,58,120,.42)}
body.v5 .v5-ba figcaption{font-family:var(--f-thai);font-weight:400;
  font-size:var(--t-xs);color:var(--tx-mute);padding:9px 12px 11px;text-align:center}
/* The results-vary line is burned into the artwork, but it sits at the foot
   of a full-length portrait in white-on-white, and the card now crops to the
   face — so it is neither legible nor present. Real text says it at every
   size and a screen reader can read it. */
body.v5 .v5-ba figcaption .ba-vary{display:block;margin-top:3px;
  font-size:var(--t-xs);letter-spacing:.01em;color:var(--tx-mute);opacity:.72}

/* ── the comparison itself ─────────────────────────────────────────────
   Each case used to be ONE picture holding both halves, so at five across
   a face landed on 132 CSS px. One half per card doubles the face. The
   halves are cut from the 1080-wide originals rather than the 720-wide
   composite that shipped, because half of 720 would have been softer than
   what it replaced.

   The halves are full-length portraits (ar 0.4) and a card that tall is
   unusable, so the card is 3:4 and object-position picks the face. Both
   halves get the SAME --oy so the two faces stay registered while the
   divider travels — a comparison where the face jumps compares nothing. */
body.v5 .v5-cmp{position:relative;aspect-ratio:3/4;overflow:hidden;
  background:#DCE7F5;isolation:isolate;
  /* horizontal belongs to the divider, vertical still scrolls the page */
  touch-action:pan-y}
/* the two halves are already registered to each other in the pixels — see
   tools/gen_ba_pairs.py — so there is nothing per-side left to do here */
body.v5 .v5-cmp img{position:absolute;inset:0;display:block;
  width:100%;height:100%;object-fit:cover}
body.v5 .v5-cmp .cmp-a{position:absolute;inset:0;
  clip-path:inset(0 0 0 var(--x,62%))}

body.v5 .v5-cmp .cmp-tag{position:absolute;top:8px;z-index:3;
  font-family:var(--f-thai);font-weight:400;font-size:var(--t-xs);line-height:1;
  padding:5px 9px;border-radius:999px;pointer-events:none;
  background:rgba(9,32,68,.58);color:#fff;
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  transition:opacity .28s var(--ease)}
body.v5 .v5-cmp .cmp-tag.is-b{left:8px}
body.v5 .v5-cmp .cmp-tag.is-a{right:8px}
/* a label for a side that has been squeezed off the card would be pointing
   at the other person's picture */
body.v5 .v5-cmp.hide-b .cmp-tag.is-b,
body.v5 .v5-cmp.hide-a .cmp-tag.is-a{opacity:0}

body.v5 .v5-cmp .cmp-bar{position:absolute;top:0;bottom:0;left:var(--x,62%);
  width:2px;margin-left:-1px;z-index:4;pointer-events:none;
  background:rgba(255,255,255,.94);box-shadow:0 0 0 1px rgba(9,40,90,.2)}
body.v5 .v5-cmp .cmp-bar i{position:absolute;top:50%;left:50%;
  width:32px;height:32px;margin:-16px 0 0 -16px;border-radius:50%;
  background:rgba(255,255,255,.96);
  box-shadow:0 5px 16px -5px rgba(9,40,90,.6);
  display:flex;align-items:center;justify-content:center;gap:3px}
body.v5 .v5-cmp .cmp-bar i::before,
body.v5 .v5-cmp .cmp-bar i::after{content:"";width:6px;height:6px;
  border:solid var(--b);border-width:1.6px 0 0 1.6px}
body.v5 .v5-cmp .cmp-bar i::before{transform:rotate(-45deg)}
body.v5 .v5-cmp .cmp-bar i::after{transform:rotate(135deg)}

/* A native range is the control: it brings the drag, the touch, the arrow
   keys, Home/End and the screen-reader announcement with it. It sits
   invisible over the whole card; the thumb is zero-width so the value maps
   to the pointer exactly at both ends instead of insetting half a thumb. */
body.v5 .v5-cmp .cmp-rng{position:absolute;inset:0;z-index:5;
  width:100%;height:100%;margin:0;padding:0;opacity:0;
  -webkit-appearance:none;appearance:none;background:transparent;
  cursor:ew-resize}
body.v5 .v5-cmp .cmp-rng::-webkit-slider-thumb{-webkit-appearance:none;
  width:0;height:100%}
body.v5 .v5-cmp .cmp-rng::-moz-range-thumb{width:0;height:100%;
  border:0;background:transparent}
body.v5 .v5-cmp .cmp-rng:focus{outline:none}
/* the input is invisible, so the card has to show the focus */
body.v5 .v5-cmp.is-focus{box-shadow:0 0 0 3px rgba(47,128,232,.62)}

/* ── controls under the rail ───────────────────────────────────────── */
body.v5 .v5-ba-ctl{display:flex;align-items:center;justify-content:center;
  gap:14px;margin-top:clamp(16px,2vw,22px)}
body.v5 .v5-ba-nav{display:inline-flex;align-items:center;justify-content:center;
  width:38px;height:38px;flex:none;padding:0;border-radius:50%;cursor:pointer;
  border:1px solid var(--b-line);background:rgba(255,255,255,.72);color:var(--b);
  transition:border-color .22s var(--ease),background .22s var(--ease),
             transform .22s var(--ease)}
body.v5 .v5-ba-nav:hover{border-color:var(--b);background:#fff}
body.v5 .v5-ba-nav:active{transform:scale(.94)}
body.v5 .v5-ba-prog{position:relative;width:min(220px,38vw);height:3px;
  border-radius:999px;background:var(--b-line);overflow:hidden}
body.v5 .v5-ba-prog i{position:absolute;top:0;bottom:0;
  left:var(--pl,0%);width:var(--pw,20%);border-radius:999px;background:var(--b)}
body.v5 .v5-ba-hint{margin:10px 0 0;text-align:center;
  font-size:var(--t-xs);color:var(--tx-mute)}

body.v5 .v5-ba-pause{display:inline-flex;align-items:center;justify-content:center;padding:0;flex:none;
  width:34px;height:34px;margin-left:4px;border-radius:50%;cursor:pointer;
  border:1px solid var(--b-line);background:rgba(255,255,255,.7);color:var(--b);
  transition:border-color .22s var(--ease),background .22s var(--ease)}
body.v5 .v5-ba-pause:hover{border-color:var(--b);background:#fff}
body.v5 .v5-ba-pause .i-play{display:none}
body.v5 .v5-ba-pause[aria-pressed="true"] .i-pause{display:none}
body.v5 .v5-ba-pause[aria-pressed="true"] .i-play{display:block}

/* Asked for less motion: the drift never starts (script checks the same
   query), and the row becomes one you push yourself. The buttons and the
   comparison work identically either way, so nothing is out of reach. */
@media (prefers-reduced-motion:reduce){
  body.v5 .v5-ba-rail{scroll-snap-type:x proximity}
  body.v5 .v5-ba{scroll-snap-align:start}
  body.v5 .v5-ba-pause{display:none}
}

/* ═══ v5 skin for the inner pages ════════════════════════════════════
   The other fifteen pages were built on v4: ink heroes, English serif
   display, square sections stacked light/dark. Their copy has already
   been through a compliance pass, so rather than rewrite them this
   restyles the v4 component classes into the v5 language — one ground,
   glass panels, the arch, the blue accent — and every page inherits it.

   Scoped to body.v5 throughout, which tools/build.py now puts on every
   page. Selector weight is deliberately one class higher than the rules
   it replaces; where it has to beat body.v5's own element rules (which
   set every heading to --tx and would paint white-on-dark headings
   invisible) it says so at the rule. */

/* ── grounds ──────────────────────────────────────────────────────
   v4 alternated white against ink. v5 has no dark sections at all, so
   the ink ones become the same wash as everything else and the text
   that was white on them flips to ink — see the on-dark block below. */
body.v5 .bg-white{background:#fff}
body.v5 .bg-paper,body.v5 .bg-bone{background:linear-gradient(180deg,#F8FBFF 0%,#EEF4FD 100%)}
body.v5 .bg-mist{background:linear-gradient(180deg,#F7FBFF 0%,#EAF2FC 46%,#F8FBFF 100%)}
body.v5 .bg-ink,body.v5 .bg-ink-soft{
  background:linear-gradient(172deg,#EDF4FE 0%,#E3EDFB 55%,#F2F7FE 100%)}
body.v5 .section{padding-block:clamp(56px,7vw,104px)}
body.v5 .section-sm{padding-block:clamp(38px,5vw,68px)}

/* ── what used to be white on ink ─────────────────────────────────
   body.v5 sets h1-h4 to --tx by element, which on a section that still
   thinks it is dark paints the heading its own background colour. The
   ink sections are light now, so everything here goes to ink weights —
   and the heading rules have to outrank `body.v5 h2` on specificity,
   which .on-dark supplies. */
body.v5 .on-dark,body.v5 .bg-ink,body.v5 .bg-ink-soft{color:var(--tx)}
body.v5 .on-dark h1,body.v5 .on-dark h2,body.v5 .on-dark h3,body.v5 .on-dark h4,
body.v5 .on-dark .h2,body.v5 .on-dark .h3,body.v5 .on-dark .h4,
body.v5 .on-dark .d1,body.v5 .on-dark .d2,body.v5 .on-dark .d3{color:var(--b-deep)}
body.v5 .on-dark .lead,body.v5 .on-dark .copy,body.v5 .on-dark p{color:var(--tx)}
body.v5 .on-dark .small,body.v5 .on-dark .meta,body.v5 .on-dark .eyebrow{color:var(--tx-mute)}
body.v5 .on-dark .eyebrow{color:var(--b)}
/* buttons excluded: `body.v5 .on-dark a` is (0,2,2) and outranks
   `body.v5 .btn-invert` at (0,2,1), which painted a blue label on a
   blue pill — the link rule was quietly beating the button rule */
body.v5 .on-dark a:not([class*="btn"]){color:var(--b)}
body.v5 .on-dark hr,body.v5 .on-dark .rule{border-color:var(--b-line)}

/* ── type ─────────────────────────────────────────────────────────
   The display face stays on the page heroes: it is English-only there,
   which is the rule this site already follows, and it is the one thing
   that keeps an inner page from reading as a copy of the homepage. It
   just stops being white-on-ink and takes the homepage's two-tone. */
body.v5 .d1,body.v5 .d2,body.v5 .d3{color:var(--b-deep);letter-spacing:-.015em}
body.v5 .d2 em,body.v5 .d1 em,body.v5 .d3 em{font-style:normal;color:var(--b)}
body.v5 .h2{font-family:var(--f-thai);font-weight:500;
  font-size:clamp(24px,3.1vw,40px);line-height:1.3;letter-spacing:-.012em;
  color:var(--b-deep);text-wrap:balance}
body.v5 .h3{font-weight:500;font-size:clamp(18px,1.7vw,23px);color:var(--b-deep)}
body.v5 .h4{font-weight:500;font-size:var(--t-base);color:var(--b-deep)}
body.v5 .lead{font-weight:300;font-size:clamp(15px,1.3vw,17.5px);
  line-height:1.9;color:var(--tx);text-wrap:pretty}
body.v5 .copy{color:var(--tx);line-height:1.95}
body.v5 .small{color:var(--tx-mute)}
body.v5 .eyebrow{font-family:var(--f-sans);font-weight:500;letter-spacing:.14em;
  font-size:var(--t-xs);color:var(--b)}
body.v5 .eyebrow-line::before{background:var(--b-line)}
body.v5 .num{font-family:var(--f-sans);color:var(--b);font-variant-numeric:tabular-nums}

/* ── panels ───────────────────────────────────────────────────────
   Same material as the homepage's cards, so a card on /about and a card
   on / are the same object. */
body.v5 .card,body.v5 .tcard,body.v5 .rcard,body.v5 .faq,body.v5 .ed{
  background:linear-gradient(158deg,rgba(255,255,255,.82),rgba(255,255,255,.6));
  -webkit-backdrop-filter:blur(26px) saturate(1.7);
  backdrop-filter:blur(26px) saturate(1.7);
  border:1px solid rgba(255,255,255,.66);border-radius:18px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),
             0 22px 54px -32px rgba(18,58,120,.42);
  transition:transform .3s var(--ease),box-shadow .3s var(--ease)}
body.v5 a.card:hover,body.v5 a.tcard:hover{transform:translateY(-3px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),
             0 30px 64px -32px rgba(18,58,120,.5)}
body.v5 .on-dark .card,body.v5 .on-dark .tcard,body.v5 .on-dark .rcard{
  background:linear-gradient(158deg,rgba(255,255,255,.78),rgba(255,255,255,.52))}

/* ── buttons ──────────────────────────────────────────────────────
   One pill, two weights, everywhere. The v4 set had six variants that
   only differed by which dark ground they sat on; there are no dark
   grounds left. */
body.v5 .btn,body.v5 .btn-line,body.v5 .btn-ghost,
body.v5 .btn-invert,body.v5 .btn-ghost-dk{
  border-radius:999px;font-family:var(--f-thai);font-weight:500;
  padding:14px 26px;line-height:1;border:1px solid transparent;
  transition:transform .22s var(--ease),box-shadow .22s var(--ease),background .22s}
body.v5 .btn,body.v5 .btn-invert{background:var(--b);color:#fff;
  box-shadow:0 14px 26px -16px rgba(26,79,165,.9)}
body.v5 .btn:hover,body.v5 .btn-invert:hover{background:#16428C;
  transform:translateY(-2px);box-shadow:0 20px 34px -16px rgba(26,79,165,.95)}
body.v5 .btn-line,body.v5 .btn-ghost,body.v5 .btn-ghost-dk{
  background:#fff;color:var(--b);border-color:var(--b-line)}
body.v5 .btn-line:hover,body.v5 .btn-ghost:hover,body.v5 .btn-ghost-dk:hover{
  border-color:var(--b);transform:translateY(-2px)}
body.v5 .btn-sm{padding:10px 18px;font-size:var(--t-sm)}
body.v5 .link-arrow{color:var(--b);font-weight:500}

/* ── lists, rules, small parts ────────────────────────────────────── */
body.v5 .bullet svg,body.v5 .bullet .ico{color:var(--b);flex:none}
body.v5 .stars{color:var(--b-bright)}
body.v5 .avatar{background:var(--b-tint);color:var(--b)}
body.v5 .cat{color:var(--b);font-weight:500;letter-spacing:.1em}
body.v5 .meta{color:var(--tx-mute)}
body.v5 .t-spec > div + div,body.v5 .row > div + div{border-color:var(--b-line)}

/* ── the arch, once per page ──────────────────────────────────────
   The homepage opens with the hero handing over to the next section on
   a curve. Inner pages get the same single gesture: the section right
   after the hero rises into it. Only that one — a page of arches is a
   page of scallops. */
body.v5 main > section[data-dark-hero] + section,
body.v5 main > .t-hero + section{
  position:relative;z-index:1;overflow:clip;
  --dome-y:clamp(44px,6vw,104px);
  border-radius:56% 56% 0 0 / var(--dome-y) var(--dome-y) 0 0;
  margin-top:calc(-1 * var(--dome-y));
  padding-top:calc(clamp(52px,7vw,92px) + var(--dome-y))}

/* ── the page hero ────────────────────────────────────────────────
   Was an ink block. Now it is the page's own patch of the same frost
   the homepage floats on, with the nav sitting on it rather than
   fighting it. */
body.v5 section[data-dark-hero],body.v5 .t-hero{
  background:linear-gradient(168deg,#F4F8FE 0%,#E6EFFB 58%,#F1F6FE 100%);
  color:var(--tx);padding-block:clamp(96px,11vw,150px) clamp(64px,8vw,110px)}
body.v5 section[data-dark-hero]::after,body.v5 .t-hero::after{display:none}
body.v5 .t-hero-h1{color:var(--b-deep)}
body.v5 .t-hero-en{color:var(--b)}
body.v5 .t-hero-th{color:var(--b)}
body.v5 .t-hero-lede{color:var(--tx)}
body.v5 .t-hero .crumb,body.v5 .crumb{color:var(--tx-mute)}
body.v5 .crumb a{color:var(--b)}

/* ── the treatment pages' sticky bar ──────────────────────────────── */
body.v5 .sticky-bar{
  background:linear-gradient(158deg,rgba(255,255,255,.9),rgba(255,255,255,.74));
  -webkit-backdrop-filter:blur(22px) saturate(1.6);
  backdrop-filter:blur(22px) saturate(1.6);
  border-top:1px solid rgba(255,255,255,.7);
  box-shadow:0 -18px 44px -30px rgba(18,58,120,.45)}
body.v5 .sticky-bar .h4,body.v5 .sticky-bar b{color:var(--b-deep)}
body.v5 .sticky-bar .small{color:var(--tx-mute)}

/* ── before/after on the treatment pages ──────────────────────────── */
body.v5 .ba-mount{background:#fff;border:1px solid var(--b-line);border-radius:16px}
body.v5 .ba-cap,body.v5 .ba-note{color:var(--tx-mute)}
body.v5 .ba-case{border-color:var(--b-line)}

/* ── the last of the pale-on-ink colours ──────────────────────────
   v4 had thirty-eight rules painting text --sky, --body-dk or --cloud
   because it sat on an ink ground. The ink grounds are gone, so each
   one is a pale word on a pale field; the audit measured the worst at
   1.24:1. These are the ones that survive on the inner pages — the
   mobile drawer keeps its own dark palette and is deliberately absent. */
body.v5 .on-dark .link-arrow{color:var(--b)}
body.v5 .card-index{color:var(--tx-mute)}
body.v5 .on-dark .stats .l,body.v5 .stats .l{color:var(--tx-mute)}
body.v5 .step .n{color:var(--b)}
body.v5 .step p{color:var(--tx)}
body.v5 .on-dark .tone,body.v5 .say .tone{color:var(--tx)}
body.v5 .on-dark .pill-line,body.v5 .say .pill-line{color:var(--b);
  border-color:var(--b-line)}
body.v5 .say,body.v5 .say p{color:var(--tx)}
body.v5 .say .mark{color:var(--b-line)}
body.v5 .sig::before{background:var(--b-line)}
body.v5 .t-hero{color:var(--tx)}
body.v5 .t-spec dt{color:var(--tx-mute)}
body.v5 .t-spec dd{color:var(--tx)}
body.v5 .on-dark .btn-ghost{color:var(--b)}
body.v5 .reel .hgal figcaption,body.v5 .reel .hgal-cue{color:var(--tx-mute)}
body.v5 .bg-sky,body.v5 .bg-sky-cut{color:var(--tx)}
/* stars sat at 3.91:1 in --b-bright, which is under the bar at 16px */
body.v5 .stars{color:var(--b)}

/* the 404's numeral is the page's whole picture, so it has to read as
   one — #D9E6F6 measured 1.17:1 against the frost. #5F8BC6 is 3.23:1,
   which clears the bar for text this size and still sits back behind
   the sentence that actually tells you what happened. */
body.v5 .v5-404-num,body.v5 main .num[style*="clamp(58px"]{color:#5F8BC6}

/* ── the two pages with no hero ───────────────────────────────────
   Privacy and 404 open straight into a section. They get the same
   opening as everything else — the frost band and the curve out of it
   — so arriving on them does not feel like arriving on a different
   site. Marked in the markup rather than guessed from position, so a
   new section at the top of either page cannot silently become a hero. */
body.v5 main > section.is-page-head{
  background:linear-gradient(168deg,#F4F8FE 0%,#E6EFFB 58%,#F1F6FE 100%);
  padding-block:clamp(92px,10vw,140px) clamp(58px,7vw,96px)}
body.v5 main > section.is-page-head + section{
  position:relative;z-index:1;overflow:clip;
  --dome-y:clamp(40px,5.4vw,92px);
  border-radius:56% 56% 0 0 / var(--dome-y) var(--dome-y) 0 0;
  margin-top:calc(-1 * var(--dome-y));
  padding-top:calc(clamp(48px,6vw,84px) + var(--dome-y));
  background:#fff}
body.v5 main > section.is-page-head h1{color:var(--b-deep)}

@media (max-width:760px){
  body.v5 .footer.is-min .footer-legal{justify-content:center;text-align:center}
  /* เส้นเน้นซ้ายของจอใหญ่ ถ้าย้ายมาไว้บนจะซ้อนกับเส้นคั่นของ .footer-legal
     เป็นสองเส้นห่างกัน 20px — บนมือถือจึงเหลือเส้นคั่นเส้นเดียว */
  body.v5 .footer.is-min .footer-legal .licence{border-left:0;padding:0;text-align:center}
  body.v5 .footer.is-min .ft-legal-text{text-align:center;flex:1 1 100%}
  body.v5 .footer.is-min .ft-results{margin-inline:auto}
}

/* ── /aftercare · ตารางช่วงพักฟื้นในการ์ด ────────────────────────────
   ใช้ .t-spec ตรง ๆ ไม่ได้ เพราะ .t-spec ออกแบบมาสำหรับหัวหน้าหัตถการ
   (margin-top 38–62px + 3 คอลัมน์ + เส้นคั่นแนวตั้ง) พอเอามาใส่ในการ์ด
   จะดันเนื้อหาหลุดกรอบ ตัวนี้จึงเป็นเวอร์ชันสองบรรทัดสำหรับการ์ด */
body.v5 .ac-spec{display:grid;gap:0;margin:14px 0 0;padding:0}
body.v5 .ac-spec > div{display:flex;gap:12px;align-items:baseline;
  padding:9px 0;border-top:1px solid var(--b-line)}
body.v5 .ac-spec > div:first-child{border-top:0;padding-top:0}
body.v5 .ac-spec dt{flex:none;width:7.2em;margin:0;
  font-family:var(--f-sans);font-weight:500;font-size:var(--t-xs);letter-spacing:.05em;
  color:var(--tx-mute)}
/* min-width:0 จำเป็น — flex item ตั้งต้นที่ min-width:auto และข้อความไทย
   ไม่มีเว้นวรรค Chrome จึงคิด min-content เป็นความยาวทั้งประโยค การ์ดบนมือถือ
   เลยดันทะลุขอบจอแทนที่จะตัดบรรทัด */
body.v5 .ac-spec dd{margin:0;min-width:0;font-family:var(--f-thai);font-weight:300;
  font-size:var(--t-sm);line-height:1.62;color:var(--tx)}
@media (max-width:520px){
  body.v5 .ac-spec > div{display:block}
  body.v5 .ac-spec dt{width:auto;margin-bottom:3px}
}
body.v5 .ac-list{margin:0;padding:0;list-style:none;display:grid;gap:8px}
body.v5 .ac-list li{position:relative;padding-left:16px}
body.v5 .ac-list li::before{content:'';position:absolute;left:0;top:.62em;
  width:5px;height:5px;border-radius:50%;background:var(--b-line)}

/* หมวด Contour มี 4 หัตถการ ถ้าใช้ .g2 (auto-fit 300px) จอ 1440 จะได้
   3 ใบบนแถวแรก แล้วเหลือใบเดี่ยวข้างล่าง และคอลัมน์แคบจนบรรทัดหักกลางคำ
   ตรึงเป็น 2 คอลัมน์ให้ทุกหมวดเรียงเหมือนกัน */
/* minmax(0,1fr) ไม่ใช่ 1fr — 1fr ย่อมาจาก minmax(auto,1fr) และ auto ในแกน
   ตั้งของกริดคือ min-content ข้อความไทยที่ไม่มีเว้นวรรคจึงดันแทร็กให้กว้าง
   เกินจอบนมือถือ การ์ดล้นขอบขวาโดยที่ .grid เองไม่ได้ผิด */
body.v5 .ac-grid{grid-template-columns:minmax(0,1fr)}
@media (min-width:780px){body.v5 .ac-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ลิงก์ตรวจสอบในเชิงอรรถการ์ดการรับรอง — .aw-foot เดิมออกแบบมาสำหรับปี พ.ศ.
   ตัวเลขล้วน letter-spacing .18em จึงกว้างเกินสำหรับข้อความไทยที่กดได้ */
body.v5 .aw-foot:has(a){letter-spacing:.02em}
body.v5 .aw-foot a{display:inline-flex;align-items:center;gap:6px;
  font-family:var(--f-thai);font-weight:500;font-size:var(--t-xs);letter-spacing:.02em;
  color:var(--b);text-decoration:none;
  border-bottom:1px solid color-mix(in srgb,var(--b) 32%,transparent);
  padding-bottom:2px;transition:border-color .3s var(--ease)}
body.v5 .aw-foot a:hover{border-bottom-color:var(--b)}

/* ── ภาพประกอบบนการ์ดหัตถการ หน้า /treatments ──────────────────────
   เดิมการ์ดทั้ง 8 ใบเป็นตัวหนังสือล้วน ทั้งหน้าไม่มีภาพเลยสักใบ
   ซึ่งอ่านว่า "ยังไม่ได้ใส่รูป" ทันทีไม่ว่าจัดหน้าดีแค่ไหน
   ภาพชุดนี้เป็นภาพประกอบ ไม่ใช่ภาพผู้รับบริการ — alt ระบุไว้ชัดแล้ว */
body.v5 .tcard{overflow:hidden}
/* padding ของ .card คือ clamp(22px,2.4vw,32px) — ดึงภาพออกไปชนขอบการ์ด
   ด้วย margin ลบค่าเดียวกัน ไม่ใช้ตัวแปรที่ไม่มีอยู่จริง */
body.v5 .tcard-art{display:block;position:relative;
  margin:clamp(-32px,-2.4vw,-22px) clamp(-32px,-2.4vw,-22px) clamp(16px,1.8vw,22px);
  aspect-ratio:16/10;overflow:hidden;background:#EEF4FC}
body.v5 .tcard-art img{display:block;width:100%;height:100%;object-fit:cover;
  transition:transform .6s var(--ease)}
@media (prefers-reduced-motion:no-preference){
  body.v5 a.tcard:hover .tcard-art img{transform:scale(1.04)}
}

/* ══════════════════════════════════════════════════════════════════
   รวมระบบดีไซน์ให้เหลือชุดเดียว — 23 ก.ย. 2569

   ก่อนหน้านี้เว็บมีสองระบบ: หน้าแรกใช้ .v5-sec/.v5-h2 · อีก 18 หน้าใช้
   .section/.h2 วัดจริงที่ 1440px แล้วต่างกันทุกแกน
     หัวเรื่อง   44px  vs  40px
     สี          rgb(22,50,94)  vs  rgb(18,58,120)
     padding     98/184px  vs  178/101px  (หน้าหัตถการ 178/68px)
   คลิกจากหน้าแรกไปหน้าอื่นแล้วรู้สึกว่า "คนละเว็บ" มาจากตรงนี้
   บล็อกนี้บังคับให้ทั้งสองระบบใช้ค่าชุดเดียวกัน ไม่ต้องรื้อ markup
   ────────────────────────────────────────────────────────────────── */

/* 1 · สเกลหัวเรื่องเดียวกันทั้งเว็บ */
body.v5 .h2,
body.v5 .v5-h2,
body.v5 .v5-creds .v5-h2{
  font-family:var(--f-thai);font-weight:500;
  font-size:clamp(24px,3.1vw,40px);
  line-height:1.26;letter-spacing:-.016em;
  color:var(--b-deep);text-wrap:balance}

/* 2 · จังหวะเซกชันเดียวกัน — เดิม .section กินพื้นที่มากกว่า .v5-sec
   เกือบ 50% ทำให้หน้าอื่นดูโหรงเหรงกว่าหน้าแรกอย่างเห็นได้ชัด */
:root{--sec:clamp(76px,8.4vw,132px)}
body.v5 .v5-sec{padding-block:clamp(76px,8.4vw,132px)}

/* 3 · hero ทุกหน้าเดิมสูง 746–981px สำหรับข้อความ 2–3 บรรทัด
   ลดลงราว 35% ให้เนื้อหาจริงขึ้นมาอยู่ในจอแรก */
body.v5 .bg-ink[data-dark-hero] > .wrap{
  padding-block:clamp(40px,5.2vw,68px)!important}

/* 4 · ลดความสูง hero — เดิมทุกหน้าใช้เกือบเต็มจอกับข้อความ 2–3 บรรทัด
   ลดที่ตัวอักษรกับช่องไฟ ไม่ลดน้ำหนักของหัวเรื่อง
   บรรทัดอังกฤษเป็นของตกแต่ง จึงลดมากที่สุด */
body.v5 .t-hero-en{font-size:clamp(17px,1.55vw,22px);
  margin-bottom:clamp(8px,.9vw,12px)}
body.v5 .t-hero-h1{font-size:clamp(29px,3.8vw,52px);line-height:1.2}
body.v5 .t-hero > .wrap{padding-block:clamp(26px,3vw,38px) clamp(34px,4vw,54px)}
body.v5 .t-hero-lede{margin-top:clamp(14px,1.6vw,20px)}
body.v5 .t-hero-cta{margin-top:clamp(18px,2vw,26px)}
body.v5 .t-hero .t-spec{margin-top:clamp(26px,3.2vw,40px)}

/* ตัวที่กินความสูง hero จริง ๆ คือ padding ของ section เอง (เดิม 150+110px)
   ไม่ใช่ padding ของ .wrap · nav เป็น position:sticky กินที่ในโฟลว์อยู่แล้ว
   hero จึงไม่ต้องเผื่อระยะหลบ nav ระยะเดิมเป็นเรื่องความงามล้วน ๆ */
body.v5 section[data-dark-hero],body.v5 .t-hero{
  padding-block:clamp(56px,6vw,84px) clamp(44px,5vw,72px)}

/* 5 · fallback ของเซกชันหัตถการหน้าแรก เมื่อ JS ไม่ทำงาน
   .v5-stage สูง 4,212px (34% ของหน้าแรก) แต่เนื้อหาข้างในถูกซ่อนด้วย
   clip-path และ opacity:0 แล้วรอ JS มาเติมคลาส .is-on
   ถ้า JS พัง โหลดไม่ทัน หรือถูกบล็อก ผู้ใช้จะเห็นช่องว่างเปล่า 4,212px
   html.js ถูกเติมโดยสคริปต์บรรทัดแรกของ body — ถ้าไม่มีคลาสนี้แปลว่า
   JS ไม่ทำงาน ให้แสดงทุกอย่างแบบนิ่ง ๆ แทนการรอ */
html:not(.js) body.v5 .v5-stage{height:auto}
html:not(.js) body.v5 .v5-stage-pin{position:static;height:auto;min-height:0;
  padding-block:clamp(56px,7vw,96px)}
html:not(.js) body.v5 .v5-stage-half .shot{clip-path:none}
html:not(.js) body.v5 .v5-stage .cap,
html:not(.js) body.v5 .v5-stage .tick,
html:not(.js) body.v5 .v5-stage-h{opacity:1;transform:none;pointer-events:auto}
html:not(.js) body.v5 .v5-stage .cap{grid-area:auto}
html:not(.js) body.v5 .v5-stage-caps{display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));
  gap:clamp(14px,2vw,26px)}

/* ═══ clinic films (29 ก.ย. 2569) ════════════════════════════════════
   ฟุตเทจจริงของคลินิก 3 คลิป (กล้อง Sony โปรไฟล์แฟลต เกรดสีแล้วด้วย
   ffmpeg) — ใบประกาศแพทย์ · ป้ายหน้าคลินิก · ป้ายระยะใกล้
   เป็นคลาสใหม่ทั้งหมด ไม่แตะกฎเดิม เพราะ index-v2/v3 ใช้ site.css ร่วมกัน
   และต้องคงหน้าตาเดิมไว้ */
.vp-film{position:relative;margin:0;overflow:hidden;isolation:isolate;
  border-radius:22px;background:#DCE6F2;aspect-ratio:16/9;
  box-shadow:0 2px 6px -3px rgba(18,58,120,.16),0 38px 80px -40px rgba(18,58,120,.55)}
.vp-film.is-square{aspect-ratio:1080/996}
.vp-film video,.vp-film img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.vp-film figcaption{position:absolute;left:14px;bottom:14px;z-index:2;
  padding:6px 12px;border-radius:999px;
  background:rgba(255,255,255,.82);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
  font-family:var(--f-thai);font-weight:400;font-size:var(--t-xs);line-height:1.5;color:var(--b-deep)}
.vp-film-note{margin:12px 0 0;font-family:var(--f-thai);font-weight:300;font-size:var(--t-xs);color:var(--tx-mute)}

/* หน้าย่อย: ฮีโร่เดิมเป็นข้อความชิดซ้ายกับพื้นว่างครึ่งจอ — วางฟิล์มไว้ขวา */
.vp-hero-grid{display:grid;gap:clamp(28px,4vw,56px);align-items:center}
@media (min-width:960px){.vp-hero-grid{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)}}

/* หน้าแรก: การรับรอง — ฟิล์มใบประกาศซ้าย รายชื่อผู้ผลิตขวา
   แทนการ์ดสูงสามใบที่ข้างในโล่ง */
body.v5 .v5-creds.is-film .v5-head{text-align:left;margin-inline:0}
.vp-creds{display:grid;gap:clamp(28px,4vw,60px);align-items:center;
  max-width:1120px;margin-inline:auto}
@media (min-width:960px){.vp-creds{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}}
.vp-cred-list{list-style:none;padding:0;margin:clamp(22px,2.6vw,32px) 0 0;
  display:grid;gap:10px}
.vp-cred-list li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 16px;align-items:center;
  padding:16px 20px;border-radius:16px;background:rgba(255,255,255,.78);
  border:1px solid rgba(255,255,255,.9);box-shadow:0 18px 40px -30px rgba(18,58,120,.45)}
.vp-cred-list .by{margin:0;font-family:var(--f-sans);font-weight:500;font-size:var(--t-base);color:var(--b-deep)}
.vp-cred-list .what{margin:0;grid-column:1;font-family:var(--f-thai);font-weight:300;font-size:var(--t-sm);line-height:1.7;color:var(--tx-mute)}
.vp-cred-list .chk{grid-column:2;grid-row:1/span 2;display:inline-flex;align-items:center;gap:4px;font-family:var(--f-thai);font-size:var(--t-xs);
  color:var(--b);text-decoration:none;white-space:nowrap;border-bottom:1px solid rgba(26,79,165,.3)}
.vp-cred-list .chk:hover{border-bottom-color:var(--b)}
.vp-cred-list .chk.is-plain{border:0;color:var(--tx-mute)}

/* หน้าแรก: มาที่คลินิก — ฟิล์มหน้าร้านคู่กับกล่องนัดหมาย
   รวมบรรทัดปิดที่เคยลอยอยู่เดี่ยว ๆ เข้ามาไว้ในบล็อกเดียว */
body.v5 .v5-booking.is-visit{padding-top:clamp(64px,7vw,112px)}
.vp-visit{display:grid;gap:clamp(22px,3vw,40px);align-items:stretch;max-width:1120px;margin-inline:auto}
@media (min-width:960px){.vp-visit{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}
  .vp-visit .vp-film{aspect-ratio:auto;min-height:100%}}
body.v5 .vp-visit .v5-booking-inner{max-width:none;text-align:left;display:flex;flex-direction:column;justify-content:center}
body.v5 .vp-visit .v5-booking-inner .v5-lede{margin-inline:0}
body.v5 .vp-visit .v5-booking-cta{justify-content:flex-start}
.vp-visit-facts{list-style:none;padding:0;margin:clamp(18px,2vw,24px) 0 0;display:grid;gap:8px;
  font-family:var(--f-thai);font-weight:300;font-size:var(--t-sm);line-height:1.7;color:var(--tx)}
.vp-visit-facts b{font-weight:500;color:var(--b-deep);margin-right:8px}
.vp-visit-facts a{color:var(--b);text-decoration:none;border-bottom:1px solid rgba(26,79,165,.3)}

/* หน้า about: รูปแพทย์บนการ์ด (เดิมเป็นตัวหนังสือล้วน) */
.vp-doc-card{padding-top:0!important;overflow:hidden}
.vp-doc-card .vp-doc-shot{margin:0 calc(clamp(22px,2.4vw,32px) * -1) 18px;aspect-ratio:4/3.3;
  overflow:hidden;background:linear-gradient(180deg,#EEF4FB,#DCE8F6)}
.vp-doc-card .vp-doc-shot img{width:100%;height:100%;object-fit:cover;object-position:50% 8%;display:block}

/* ═══ home v6 (body.vp-home) — 29 ก.ย. 2569 ══════════════════════════
   หน้าแรกเท่านั้น (index-v2/v3 ไม่มีคลาสนี้ จึงหน้าตาเดิม)
   หลักคิด: พื้นสะอาดสองโทน (ขาว / ฟ้าจางมาก) สลับกันเป็นจังหวะ
   ไม่มีหมอก ไม่มีแสงเรือง ไม่มีโดม · ความลึกใช้สัญญาณเดียวคือเงานุ่ม
   บนภาพ/การ์ด · กริดเดียว 1240px · ระยะเซกชันเท่ากันทุกอัน */
body.vp-home{background:#fff}
body.vp-home .v5-amb{display:none}
body.vp-home main > section{position:relative}
.vp-sec,body.vp-home #results,body.vp-home main > .v5-sec{padding-block:clamp(72px,8.5vw,128px)}
.vp-sec.is-white,body.vp-home main > .v5-plain{background:#fff}
.vp-sec.is-tint,body.vp-home #results{background:#F4F7FB}
body.vp-home main > .v5-sec.v5-plain:nth-of-type(6){background:#F4F7FB}

/* หัวเซกชันแบบแยกซ้าย-ขวา: หัวเรื่องซ้าย คำอธิบาย/ลิงก์ชิดขวาล่าง */
.vp-head{margin-bottom:clamp(30px,3.6vw,52px)}
.vp-head.is-split{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px 40px}
.vp-head .v5-h2{margin-bottom:0}
.vp-head-note{margin:0;max-width:40ch;font-family:var(--f-thai);font-weight:300;
  font-size:var(--t-sm);line-height:1.85;color:var(--body)}
.vp-link{display:inline-flex;align-items:center;gap:8px;font-family:var(--f-thai);font-weight:500;
  font-size:var(--t-sm);color:var(--night);text-decoration:none;padding-bottom:3px;
  border-bottom:1px solid rgba(5,39,91,.25);transition:border-color .2s,gap .2s}
.vp-link:hover{border-bottom-color:var(--night);gap:11px}

/* ── hero ── */
.vp-hero{background:linear-gradient(180deg,#F4F7FB 0%,#fff 100%);
  padding:clamp(112px,11vw,150px) 0 clamp(64px,7vw,104px)}
.vp-hero-in{display:grid;gap:clamp(36px,4.4vw,72px);align-items:center}
@media (min-width:1000px){.vp-hero-in{grid-template-columns:minmax(0,1fr) minmax(0,1.08fr)}}
.vp-kicker{margin:0 0 20px;font-family:var(--f-thai);font-weight:400;font-size:var(--t-sm);
  color:var(--steel);display:flex;align-items:center;gap:12px}
.vp-kicker::before{content:'';width:28px;height:1px;background:currentColor;opacity:.6}
.vp-h1{margin:0;font-family:var(--f-thai);font-weight:500;color:var(--night);
  font-size:clamp(38px,5.1vw,68px);line-height:1.14;letter-spacing:-.018em;text-wrap:balance}
.vp-h1 em{display:block;font-style:normal;font-weight:300;color:#3F6FA8;
  font-size:.62em;line-height:1.35;letter-spacing:-.01em;margin-top:.35em}
.vp-lede{margin:clamp(20px,2.2vw,28px) 0 0;max-width:46ch;font-family:var(--f-thai);font-weight:300;
  font-size:clamp(15px,1.2vw,17px);line-height:1.9;color:var(--body)}
.vp-cta{display:flex;flex-wrap:wrap;align-items:center;gap:14px 28px;margin-top:clamp(26px,2.8vw,36px)}
.vp-cta .v5-btn{padding:15px 26px;font-size:var(--t-base)}
.vp-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;
  margin:clamp(36px,4vw,56px) 0 0;padding-top:clamp(22px,2.4vw,28px);border-top:1px solid var(--line)}
.vp-stats > div{padding-right:clamp(10px,1.6vw,24px)}
/* มือถือ: "แพทย์ประจำคลินิก" ตกสองบรรทัด ตัวเลขช่องกลางเลยต่ำกว่าอีกสองช่อง —
   subgrid ให้สามช่องใช้แถวเดียวกัน หัวข้อกับตัวเลขจึงตรงกันทุกช่อง */
.vp-stats{grid-template-rows:auto auto}
.vp-stats > div{display:grid;grid-row:span 2;grid-template-rows:subgrid;align-content:start}
.vp-stats > div + div{padding-left:clamp(10px,1.6vw,24px);border-left:1px solid var(--line)}
.vp-stats dt{font-family:var(--f-thai);font-weight:400;font-size:var(--t-xs);color:var(--steel)}
.vp-stats dd{margin:6px 0 0}
.vp-stats .num{display:block;font-family:var(--f-sans);font-weight:500;
  font-size:clamp(26px,2.6vw,36px);line-height:1.1;letter-spacing:-.02em;color:var(--night)}
.vp-stats small{display:block;margin-top:4px;font-family:var(--f-thai);font-weight:300;font-size:var(--t-xs);line-height:1.5;color:var(--body)}
.vp-stats small .num{display:inline;font-size:inherit;font-weight:400;letter-spacing:0;color:inherit}
.vp-hero-film{aspect-ratio:4/3.4;border-radius:28px}
@media (max-width:999px){.vp-hero-film{aspect-ratio:16/11}}

/* ── doctors (markup เดียวกับ v2) บนพื้นขาว ── */
body.vp-home #doctors .v5-docs{margin-top:0}

/* ── treatments ── */
.vp-tgrid{display:grid;gap:clamp(14px,1.6vw,22px);grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:1000px){.vp-tgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:520px){.vp-tgrid{grid-template-columns:1fr}}
.vp-tcard{display:flex;flex-direction:column;text-decoration:none;color:inherit;
  background:#fff;border-radius:22px;overflow:hidden;
  box-shadow:0 1px 2px rgba(5,39,91,.06),0 24px 50px -34px rgba(5,39,91,.45);
  transition:transform .35s var(--ease),box-shadow .35s var(--ease)}
.vp-tcard:hover{transform:translateY(-4px);box-shadow:0 1px 2px rgba(5,39,91,.06),0 34px 64px -34px rgba(5,39,91,.55)}
.vp-tcard:focus-visible{outline:2px solid var(--night);outline-offset:3px}
.vp-tcard-img{display:block;aspect-ratio:4/3.1;overflow:hidden;background:#E8EEF6}
.vp-tcard-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .8s var(--ease)}
.vp-tcard:hover .vp-tcard-img img{transform:scale(1.04)}
.vp-tcard-body{display:flex;flex-direction:column;flex:1;padding:clamp(18px,1.8vw,24px)}
.vp-tcard-en{font-family:var(--f-display);font-style:italic;font-size:var(--t-sm);color:var(--steel)}
.vp-tcard-h{margin-top:4px;font-family:var(--f-thai);font-weight:500;font-size:clamp(19px,1.5vw,22px);color:var(--night)}
.vp-tcard-p{margin-top:8px;font-family:var(--f-thai);font-weight:300;font-size:var(--t-sm);line-height:1.8;color:var(--body)}
.vp-tcard-go{margin-top:auto;padding-top:18px;display:inline-flex;align-items:center;gap:7px;
  font-family:var(--f-thai);font-weight:500;font-size:var(--t-sm);color:var(--night)}

/* ── trust ── */
.vp-trust{display:grid;gap:clamp(32px,4.4vw,72px);align-items:center}
@media (min-width:1000px){.vp-trust{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}}
.vp-trust-film{aspect-ratio:4/3.3;border-radius:28px}
.vp-checks{list-style:none;padding:0;margin:clamp(22px,2.4vw,30px) 0 0;display:grid;gap:14px}
.vp-checks li{display:grid;grid-template-columns:26px minmax(0,1fr);gap:10px;align-items:start;
  font-family:var(--f-thai);font-weight:300;font-size:var(--t-base);line-height:1.8;color:var(--night)}
.vp-checks svg{margin-top:5px;width:18px;height:18px;padding:3px;box-sizing:content-box;border-radius:50%;
  background:#E6EEF8;color:var(--night)}
.vp-brands{margin-top:clamp(26px,3vw,36px);padding-top:clamp(20px,2.2vw,26px);border-top:1px solid var(--line);
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.vp-brands-h{grid-column:1/-1;margin:0 0 4px;font-family:var(--f-thai);font-size:var(--t-xs);color:var(--steel)}
.vp-brands > a,.vp-brands > div{display:flex;flex-direction:column;gap:3px;padding:14px 16px;border-radius:14px;
  background:#F4F7FB;text-decoration:none;transition:background .2s}
.vp-brands > a:hover{background:#E9F0F8}
.vp-brands b{font-family:var(--f-sans);font-weight:500;font-size:var(--t-base);color:var(--night)}
.vp-brands span{display:inline-flex;align-items:center;gap:4px;font-family:var(--f-thai);font-size:var(--t-xs);color:var(--steel)}
@media (max-width:520px){.vp-brands{grid-template-columns:1fr}.vp-brands > a,.vp-brands > div{flex-direction:row;justify-content:space-between;align-items:center}}

/* ── booking: การ์ดน้ำเงินเข้มหนึ่งจุดเป็นจุดจบของหน้า ── */
body.vp-home .v5-booking.is-visit{background:#fff;padding-block:clamp(72px,8.5vw,128px)}
body.vp-home .vp-visit{max-width:none}
body.vp-home .vp-visit .v5-booking-inner{background:linear-gradient(160deg,#0A2F66 0%,#05275B 60%,#041E47 100%);
  border:0;-webkit-backdrop-filter:none;backdrop-filter:none;border-radius:28px;
  box-shadow:0 40px 80px -44px rgba(5,39,91,.8);padding:clamp(30px,3.6vw,52px)}
body.vp-home .vp-visit .v5-booking-inner .v5-eyebrow{color:#B4CADD}
body.vp-home .vp-visit .v5-booking-inner .v5-h2{color:#fff}
body.vp-home .vp-visit .v5-booking-inner .v5-h2 em{color:#B4CADD}
body.vp-home .vp-visit .v5-booking-inner .v5-lede{color:#D5E1EF}
body.vp-home .vp-visit-facts{color:#fff;border-top:1px solid rgba(180,202,221,.22);padding-top:18px}
body.vp-home .vp-visit-facts b{color:#B4CADD;font-weight:400}
body.vp-home .vp-visit-facts a{color:#fff;border-bottom-color:rgba(255,255,255,.35)}
body.vp-home .vp-visit .v5-btn-solid{background:#fff;color:var(--night);box-shadow:none}
body.vp-home .vp-visit .v5-btn-quiet{background:rgba(255,255,255,.08);color:#fff;border-color:rgba(255,255,255,.25)}
body.vp-home .vp-film{border-radius:28px}
body.vp-home .vp-visit .v5-booking-inner .num{color:inherit}
body.vp-home .vp-visit .v5-btn-quiet .num{color:#fff}
@media (max-width:520px){.vp-tcard-img{aspect-ratio:16/9}}

/* ── home v6.1: ฮีโร่ภาพทีมแพทย์ (ไม่ใช้ภาพสถานที่) ── */
.vp-hero{padding-bottom:0;overflow:hidden;
  background:radial-gradient(60% 70% at 78% 62%,#E3ECF7 0%,rgba(227,236,247,0) 70%),linear-gradient(180deg,#F4F7FB 0%,#fff 100%)}
.vp-hero-in{align-items:end}
.vp-hero-copy{padding-bottom:clamp(56px,6vw,96px)}
.vp-hero-team{margin:0;position:relative;align-self:end}
.vp-hero-team img{display:block;width:100%;height:auto}
.vp-hero-team figcaption{position:absolute;right:0;bottom:clamp(18px,2.4vw,32px);
  padding:8px 14px;border-radius:999px;background:rgba(255,255,255,.86);
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
  box-shadow:0 12px 30px -18px rgba(5,39,91,.45);
  font-family:var(--f-thai);font-size:var(--t-xs);color:var(--night)}
.vp-hero-team figcaption a{color:var(--night);border-bottom:1px solid rgba(5,39,91,.3);text-decoration:none}
@media (max-width:999px){
  .vp-hero-copy{padding-bottom:0}
  .vp-hero-team{margin-inline:calc(var(--gut) * -.5)}
  .vp-hero-team figcaption{right:50%;transform:translateX(50%);white-space:nowrap}
}

/* ── doctors: การ์ดประวัติ (รูปใหญ่อยู่ที่ฮีโร่แล้ว) ── */
.vp-dgrid{display:grid;gap:clamp(12px,1.4vw,18px);grid-template-columns:repeat(5,minmax(0,1fr))}
@media (max-width:1100px){.vp-dgrid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:760px){.vp-dgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:460px){.vp-dgrid{grid-template-columns:1fr}}
.vp-dcard{display:flex;flex-direction:column;padding:clamp(20px,1.8vw,24px);border-radius:20px;
  background:#F4F7FB;border:1px solid #E6EDF6}
.vp-dcard-ava{width:64px;height:64px;border-radius:50%;object-fit:cover;object-position:50% 4%;
  background:#fff;box-shadow:0 0 0 3px #fff,0 10px 22px -12px rgba(5,39,91,.5)}
.vp-dcard-n{margin:16px 0 0;font-family:var(--f-thai);font-weight:500;font-size:var(--t-base);line-height:1.5;color:var(--night)}
.vp-dcard-lic{margin:4px 0 0;font-family:var(--f-sans);font-weight:500;font-size:var(--t-sm);color:var(--steel)}
.vp-dcard-cv{list-style:none;padding:0;margin:12px 0 0;display:grid;gap:6px;
  font-family:var(--f-thai);font-weight:300;font-size:var(--t-sm);line-height:1.7;color:var(--body)}
.vp-dcard .tmc-check{margin-top:auto;padding-top:14px;align-self:flex-start}
@media (min-width:1000px){
  .vp-hero-in{grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);align-items:center}
  .vp-hero-copy{padding-block:clamp(24px,3vw,48px) clamp(64px,7vw,110px)}
  .vp-hero-team{align-self:end;margin-right:calc(max(0px,(100vw - var(--max)) / 2) * -1 - var(--gut));
    margin-left:clamp(-60px,-4vw,-20px)}
  .vp-hero-team figcaption{right:calc(max(0px,(100vw - var(--max)) / 2) + var(--gut))}
  .vp-h1{font-size:clamp(38px,4.4vw,62px)}
}
@media (max-width:460px){
  .vp-dcard{display:grid;grid-template-columns:56px minmax(0,1fr);column-gap:14px;padding:18px}
  .vp-dcard-ava{width:56px;height:56px;grid-row:1/span 4}
  .vp-dcard-n{margin-top:0}
  .vp-dcard .tmc-check{padding-top:10px}
}

/* ── home v6.2: สมดุลฮีโร่ + เติมเนื้อหา + ระยะกระชับขึ้น ── */
.vp-sec,body.vp-home #results,body.vp-home main > .v5-sec,body.vp-home .v5-booking.is-visit{padding-block:clamp(60px,6.6vw,100px)}
.vp-head{margin-bottom:clamp(26px,3vw,40px)}
.vp-hero{padding:clamp(104px,9vw,128px) 0 clamp(40px,4vw,64px)}
@media (min-width:1000px){
  .vp-hero-in{align-items:center}
  .vp-hero-copy{padding-block:0}
  .vp-hero-team{align-self:center;margin-right:calc(max(0px,(100vw - var(--max)) / 2) * -1 - var(--gut) * .5)}
  .vp-hero-team img{max-height:min(620px,68vh);width:auto;max-width:100%;margin-inline:auto}
  .vp-hero-team figcaption{right:auto;left:50%;transform:translateX(-50%);bottom:6%}
}

.vp-tmore{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:clamp(18px,2vw,26px)}
.vp-tmore-h{font-family:var(--f-thai);font-size:var(--t-sm);color:var(--steel);margin-right:6px}
.vp-tmore a{display:inline-flex;align-items:center;gap:7px;padding:10px 16px;border-radius:999px;
  background:#fff;border:1px solid #E1E9F3;text-decoration:none;
  font-family:var(--f-thai);font-size:var(--t-sm);color:var(--night);transition:border-color .2s,background .2s}
.vp-tmore a:hover{border-color:var(--night)}
.vp-tmore a.is-all{background:var(--night);color:#fff;border-color:var(--night)}

.vp-care{display:grid;gap:clamp(30px,4.4vw,72px);align-items:center}
@media (min-width:1000px){.vp-care{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)}}
.vp-care-img{margin:0;border-radius:28px;overflow:hidden;background:#F0F4FA;
  box-shadow:0 38px 80px -44px rgba(5,39,91,.5)}
.vp-care-img img{display:block;width:100%;height:auto}
.vp-steps{list-style:none;padding:0;margin:clamp(22px,2.6vw,32px) 0 0;display:grid;gap:0}
.vp-steps li{display:grid;grid-template-columns:52px minmax(0,1fr);gap:14px;padding:18px 0;border-top:1px solid var(--line)}
.vp-steps li:last-child{border-bottom:1px solid var(--line)}
.vp-steps .n{font-family:var(--f-sans);font-weight:500;font-size:22px;line-height:1.4;color:#8FA9C8}
.vp-steps h3{margin:0;font-family:var(--f-thai);font-weight:500;font-size:var(--t-base);color:var(--night)}
.vp-steps p{margin:4px 0 0;font-family:var(--f-thai);font-weight:300;font-size:var(--t-sm);line-height:1.8;color:var(--body)}

.vp-faq{display:grid;gap:clamp(28px,4vw,64px);align-items:start}
@media (min-width:1000px){.vp-faq{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}
  .vp-faq-side{position:sticky;top:110px}}
body.vp-home .vp-faq .v5-faq-wrap{max-width:none;margin:0}
.vp-faq-ask{margin-top:clamp(22px,2.6vw,32px);padding:22px;border-radius:20px;background:#F4F7FB}
.vp-faq-ask p{margin:0 0 14px;font-family:var(--f-thai);font-weight:300;font-size:var(--t-sm);line-height:1.8;color:var(--body)}
.vp-dcard-n{text-wrap:balance}
.vp-dcard-nick{white-space:nowrap}
@media (min-width:1101px) and (max-width:1320px){.vp-dcard-n{font-size:var(--t-sm)}}
/* หัวเซกชันก่อน–หลัง: หัวเรื่องซ้าย คำอธิบายขวา ไม่ปล่อยครึ่งขวาว่าง */
@media (min-width:1000px){
  body.vp-home #results .v5-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    column-gap:64px;align-items:end;max-width:none}
  body.vp-home #results .v5-head .v5-eyebrow{grid-column:1}
  body.vp-home #results .v5-head .v5-h2{grid-column:1;margin-bottom:0}
  body.vp-home #results .v5-head .v5-lede{grid-column:2;grid-row:1/span 2;align-self:end;margin:0;max-width:44ch}
}

/* ── Treatments stage carrying before/after (2026-09-30) ──────────────
   The halves are real results now, not mood pictures: left = before,
   right = after, each with a chip naming what the photo actually shows
   (it can differ from the heading beside it), and the note under
   the ticks carries the consent + results-vary line สบส. requires. */
/* Desktop: fade at the bottom only (user, 30 ก.ย.) — no top or side
   fade. With no side fade a cover-crop would show a hard vertical cut
   through the hair, so the whole cut-out is shown (contain), anchored
   to the bottom of the panel where the one fade is, and the panels sit
   flush to the screen edge instead of running off it. The top of the
   frost wash is dropped too, and the centre wash is narrowed so it stays
   behind the text and off the photos. */
@media (min-width:900px){
  body.v5 .v5-stage.is-ba .v5-stage-half{width:min(38vw,600px)}
  body.v5 .v5-stage.is-ba .v5-stage-half.is-l{left:0}
  body.v5 .v5-stage.is-ba .v5-stage-half.is-r{right:0}
  body.v5 .v5-stage.is-ba .v5-stage-half.is-l,
  body.v5 .v5-stage.is-ba .v5-stage-half.is-r{
    -webkit-mask-image:linear-gradient(to bottom,#000 0 80%,transparent 100%);
    mask-image:linear-gradient(to bottom,#000 0 80%,transparent 100%);
    -webkit-mask-composite:source-over;mask-composite:add}
  body.v5 .v5-stage.is-ba .v5-stage-half .shot img{object-fit:contain;object-position:50% 100%}
  body.v5 .v5-stage.is-ba .v5-stage-fog{background:
    radial-gradient(ellipse 22% 52% at 50% 50%,
      rgba(243,247,253,.72) 0%,rgba(243,247,253,.42) 56%,rgba(243,247,253,0) 100%),
    linear-gradient(180deg,rgba(243,247,253,0) 82%,rgba(243,247,253,.88) 100%)}
  body.v5 .v5-stage.is-ba .ba-chip{top:calc(100% - min(38vw,600px) + 8px)}
  body.v5 .v5-stage.is-ba .is-l .ba-chip{left:24px}
  body.v5 .v5-stage.is-ba .is-r .ba-chip{right:24px}
}
/* the outgoing cut-out fades away fast instead of waiting for its
   clip to close, so two people never stand on top of each other */
body.v5 .v5-stage.is-ba .v5-stage-half .shot{opacity:0;
  transition:clip-path 1.25s .25s var(--ease-clip),opacity .3s ease}
body.v5 .v5-stage.is-ba .v5-stage-half .shot.is-on{opacity:1;
  transition:clip-path 1.25s .25s var(--ease-clip),opacity .2s .25s ease}
body.v5 .v5-stage.is-ba .ba-chip{position:absolute;
  font:400 13px/1 var(--f-thai);font-style:normal;color:var(--night,#05275B);
  background:rgba(255,255,255,.9);border-radius:999px;padding:8px 13px;
  box-shadow:0 2px 10px rgba(5,39,91,.08);white-space:nowrap}
body.v5 .v5-stage-ba-note{margin:clamp(14px,1.6vw,20px) auto 0;max-width:46ch;
  font:300 12.5px/1.6 var(--f-thai);color:rgba(5,39,91,.62);text-wrap:balance}
@media (max-width:899px){
  /* the mobile fog and band masks stay as they were — the heading and
     captions sit over the bands and need them to stay readable */
  body.v5 .v5-stage.is-ba .v5-stage-half.is-l{
    -webkit-mask-image:linear-gradient(to bottom,#000 0 58%,transparent 100%);
    mask-image:linear-gradient(to bottom,#000 0 58%,transparent 100%)}
  body.v5 .v5-stage.is-ba .v5-stage-half.is-r{
    -webkit-mask-image:linear-gradient(to top,#000 0 58%,transparent 100%);
    mask-image:linear-gradient(to top,#000 0 58%,transparent 100%)}
  body.v5 .v5-stage.is-ba .v5-stage-half .shot img{object-position:50% 38%}
  /* centred, and inside the part of each band the fog leaves clear */
  body.v5 .v5-stage.is-ba .ba-chip{font-size:var(--t-xs);padding:7px 11px;
    left:50%!important;right:auto!important;transform:translateX(-50%)}
  body.v5 .v5-stage.is-ba .is-l .ba-chip{bottom:auto;top:calc(64px + 3svh)}
  body.v5 .v5-stage.is-ba .is-r .ba-chip{bottom:5svh}
  /* same centre wash as before (it keeps the text readable); the edge
     wash is pulled in so the chips at the ends of the bands stay legible */
  body.v5 .v5-stage.is-ba .v5-stage-fog{background:
    radial-gradient(ellipse 92% 44% at 50% 50%,
      rgba(243,247,253,.94) 0%,rgba(243,247,253,.78) 52%,
      rgba(243,247,253,.25) 100%),
    linear-gradient(180deg,rgba(243,247,253,.9) 0%,rgba(243,247,253,0) 6%,
      rgba(243,247,253,0) 96%,rgba(243,247,253,.9) 100%)}
  body.v5 .v5-stage-ba-note{font-size:var(--t-xs);color:rgba(5,39,91,.78);
    background:rgba(243,247,253,.88);border-radius:12px;padding:6px 10px}
}

/* ═══ minimal-luxe layer (1 ต.ค. 2569) ════════════════════════════════
   User: minimal, luxurious, same colours — no rows of boxes, not so much
   left/right, and no page hero split left/right.
   Part 1 (centred hero) applies to every page whose hero is
   data-dark-hero / .t-hero: the 5 main pages, reviews and the 8
   treatment pages. Part 2 (no boxes, one centred axis) is scoped to
   body.vp-lux: about, treatments, aftercare, promotions, contact. */

/* 1 · hero — one centred column, the film (if any) below the words */
body.v5 section[data-dark-hero] > .wrap,
body.v5 .t-hero > .wrap{text-align:center}
body.v5 section[data-dark-hero] .vp-hero-grid{grid-template-columns:minmax(0,1fr);
  justify-items:center;gap:clamp(34px,4.4vw,56px)}
body.v5 section[data-dark-hero] .vp-hero-grid > div{max-width:760px}
body.v5 section[data-dark-hero] .vp-film{justify-self:center!important;
  width:100%;max-width:min(760px,100%)!important;margin-inline:auto}
body.v5 section[data-dark-hero] .vp-film.is-square{max-width:min(400px,100%)!important}
body.v5 section[data-dark-hero] .lead,
body.v5 section[data-dark-hero] .t-hero-lede{margin-inline:auto}
body.v5 section[data-dark-hero] .t-hero-cta,
body.v5 section[data-dark-hero] nav .row{justify-content:center}
body.v5 section[data-dark-hero] .t-spec{max-width:900px;margin-inline:auto}
body.v5 section[data-dark-hero] .t-spec > div{padding-inline:22px}
body.v5 section[data-dark-hero] .eyebrow-line::after{content:'';width:20px;height:1px;
  background:var(--b-line);opacity:1}

/* 2 · inner sections: one axis, hairlines instead of boxes */
body.vp-lux main > section:not([data-dark-hero]) .wrap > div[style*="max-width"]:first-child{
  margin-inline:auto;text-align:center;margin-bottom:clamp(40px,4.4vw,60px)!important}
body.vp-lux main > section:not([data-dark-hero]) .wrap > div[style*="max-width"]:first-child .eyebrow-line::after,
body.vp-lux main > section:not([data-dark-hero]) .wrap > .eyebrow-line::after{content:'';width:20px;height:1px;background:var(--b-line)}
body.vp-lux main > section:not([data-dark-hero]) .wrap > .eyebrow-line{display:flex;justify-content:center}
body.vp-lux main > section:not([data-dark-hero]) .wrap > .link-arrow{display:flex;justify-content:center;width:fit-content;margin-inline:auto}

/* the box itself: no glass, no shadow, no radius — a hairline above */
body.vp-lux .card,body.vp-lux .tcard,body.vp-lux .faq{
  background:none!important;-webkit-backdrop-filter:none;backdrop-filter:none;
  border:0;border-radius:0;box-shadow:none!important}
body.vp-lux .card{border-top:1px solid var(--b-line);
  padding:clamp(24px,2.4vw,32px) clamp(4px,1vw,14px) 0}
body.vp-lux a.card:hover,body.vp-lux a.tcard:hover{transform:none}
body.vp-lux a.card:hover h2,body.vp-lux a.card:hover h3,body.vp-lux a.card:hover b{color:var(--b)}
body.vp-lux .grid{column-gap:clamp(28px,4vw,64px);row-gap:clamp(40px,4.4vw,64px)}
body.vp-lux .grid.g3 > .card,body.vp-lux .grid.g4 > .card,
body.vp-lux .grid.g4 > div,body.vp-lux .grid.g3 > div{text-align:center}
body.vp-lux .grid.g4 > div:not(.card){border-top:1px solid var(--b-line);
  padding-top:clamp(24px,2.4vw,32px)}

/* treatment cards: the picture stays, the frame goes */
body.vp-lux .tcard{border-top:0;padding:0;text-align:center}
body.vp-lux .tcard .tcard-art{border-radius:14px;overflow:hidden;
  margin:0 0 clamp(18px,2vw,24px)!important}
body.vp-lux .tcard .meta{justify-content:center}
body.vp-lux .tcard .link-arrow,body.vp-lux .tcard > :last-child{align-self:center}
body.vp-lux .sig::before{top:12px;right:12px}

/* doctors: portrait on the page, not in a card */
body.vp-lux .vp-doc-card{border-top:0;padding:0!important;text-align:center}
body.vp-lux .vp-doc-card .vp-doc-shot{margin:0 0 20px;border-radius:14px}

/* left/right splits become one centred column */
body.vp-lux main > section .grid.g2[style*="align-items"]{
  grid-template-columns:minmax(0,1fr);max-width:780px;margin-inline:auto;
  text-align:center;row-gap:clamp(36px,4vw,56px)}
body.vp-lux main > section .grid.g2[style*="align-items"] .eyebrow-line::after{
  content:'';width:20px;height:1px;background:var(--b-line)}
body.vp-lux main > section .grid.g2[style*="align-items"] .lead,
body.vp-lux main > section .grid.g2[style*="align-items"] .copy{margin-inline:auto}
body.vp-lux main > section .grid.g2[style*="align-items"] ul.stack{
  width:fit-content;max-width:100%;margin-inline:auto;text-align:left}
body.vp-lux main > section .grid.g2[style*="align-items"] .row{justify-content:center}
body.vp-lux main > section .grid.g2[style*="align-items"] > .stack > .card{text-align:left}

/* CTA bands that were text-left / buttons-right */
body.vp-lux main > section .wrap > .row[style*="space-between"]{
  flex-direction:column;justify-content:center!important;text-align:center;gap:22px!important}
body.vp-lux main > section .wrap > .row[style*="space-between"] > div{margin-inline:auto}
body.vp-lux main > section .wrap > .row[style*="space-between"] .row{justify-content:center}

/* aftercare: two columns of entries, hairline above each */
body.vp-lux .ac-grid{column-gap:clamp(36px,5vw,80px)}
body.vp-lux .ac-grid > .card{padding-inline:0}

/* FAQ: lines only, on the centre axis */
body.vp-lux .faq{max-width:820px;margin-inline:auto;padding:0!important;
  border-top:1px solid var(--b-line)}
body.vp-lux .faq details:last-child{border-bottom:1px solid var(--b-line)}

/* symptom chips on the treatments page sit on the axis too */
body.vp-lux .symptom{justify-content:center}
/* hero children carry their own max-width (ch-based) — centre the box,
   not just the text inside it */
body.v5 section[data-dark-hero] > .wrap > *,
body.v5 section[data-dark-hero] .vp-hero-grid > div > *,
body.v5 .t-hero > .wrap > *{margin-left:auto;margin-right:auto}
/* a short last row sits on the axis instead of hanging off the left:
   the card grids become wrapping flex rows with the same widths */
body.vp-lux .grid.g3,body.vp-lux .grid.g4{display:flex;flex-wrap:wrap;justify-content:center}
body.vp-lux .grid.g3 > *{flex:0 1 calc((100% - 2 * clamp(28px,4vw,64px)) / 3);min-width:min(100%,268px)}
body.vp-lux .grid.g4 > *{flex:0 1 calc((100% - 3 * clamp(28px,4vw,64px)) / 4);min-width:min(100%,222px)}
/* icons above the contact channels */
body.vp-lux .grid > .card > div[style*="margin-bottom"]:first-child{display:flex;justify-content:center}
/* plain two-up card grids (not the old text/content splits, which carry
   an inline align-items) stay two per row: 4 cards read as 2×2, not 3+1 */
body.vp-lux .grid.g2:not([style*="align-items"]){display:flex;flex-wrap:wrap;justify-content:center}
body.vp-lux .grid.g2:not([style*="align-items"]) > *{
  flex:0 1 calc((100% - clamp(28px,4vw,64px)) / 2);min-width:min(100%,300px)}
/* reviews hero: words and the three figures stacked, figures in one row */
body.v5 section[data-dark-hero] .grid.g2{grid-template-columns:minmax(0,1fr);
  justify-items:center;gap:clamp(34px,4vw,52px)}
body.v5 section[data-dark-hero] .grid.g2 > div{max-width:760px}
body.v5 section[data-dark-hero] .grid.g2 > div > *{margin-left:auto;margin-right:auto}
body.v5 section[data-dark-hero] .stats{display:flex;flex-wrap:wrap;justify-content:center;
  gap:clamp(22px,3vw,40px) clamp(36px,5vw,72px)}

/* ── Google reviews as a wall (6 ต.ค. 2569) ─────────────────────────
   components.js deals the roll into columns (.is-wall). Same light
   glass as the panel, each review its own card: who on top, words
   below. Columns drift at different speeds, the middle one downward;
   hovering anywhere on the wall stops all of it so it can be read. */
body.v5 .v5-goog:has(.is-wall){max-width:1200px}
body.v5 .v5-revmarquee.is-wall{display:grid;grid-template-columns:repeat(var(--cols,3),minmax(0,1fr));
  gap:14px;height:clamp(420px,52vh,540px);
  -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 12%,#000 88%,transparent 100%);
  mask-image:linear-gradient(180deg,transparent 0,#000 12%,#000 88%,transparent 100%)}
body.v5 .v5-revmarquee.is-wall .v5-revcol{animation-name:v5revroll;animation-timing-function:linear;
  animation-iteration-count:infinite}
body.v5 .v5-revmarquee.is-wall .v5-revcol.is-down{animation-direction:reverse}
body.v5 .v5-revmarquee.is-wall:hover .v5-revcol{animation-play-state:paused}
body.v5 .v5-revmarquee.is-wall .track{display:grid;gap:14px;padding-bottom:14px}
body.v5 .v5-revmarquee.is-wall li{display:flex;flex-direction:column-reverse;gap:12px;
  padding:18px 18px 18px;border:1px solid rgba(255,255,255,.9);border-radius:16px;
  background:linear-gradient(160deg,rgba(255,255,255,.86),rgba(255,255,255,.62));
  box-shadow:inset 0 1px 0 #fff,0 14px 30px -24px rgba(18,58,120,.45);
  transition:transform .4s var(--ease),box-shadow .4s var(--ease)}
body.v5 .v5-revmarquee.is-wall li:hover{transform:translateY(-2px);
  box-shadow:inset 0 1px 0 #fff,0 20px 40px -24px rgba(18,58,120,.55)}
body.v5 .v5-revmarquee.is-wall .who{margin-top:0}
body.v5 .v5-revmarquee.is-wall li blockquote{font-size:var(--t-sm);line-height:1.85}

/* ═══ TYPE SYSTEM — the single source of sizes (audit 14 ต.ค. 2569) ═══
   The audit measured 29 rendered sizes at 1280px and 22 at 375px, and
   every Thai paragraph on a phone between 12 and 15.5px at weight 300.
   Earlier layers above each set their own numbers; rather than chase
   them one by one this block is the last word: font-size here is
   !important, because the older rules reach as deep as four classes and
   inline styles; specificity alone kept losing.

   Eight steps on each side of 1024px. Tablets read the phone scale.
     token     phone  desktop  used for
     --t-xs     12     12      eyebrows, captions, licence labels
     --t-sm     14     14      notes, meta, footer links, chips
     --t-base   16     17      every paragraph of body copy
     --t-lg     18     19      lede, h4, FAQ questions
     --t-h3     21     23      h3, card titles
     --t-h2     26     40      section headings, stat numbers
     --t-d1     32     56      page h1, about headings
     --t-d2     40     72      the two display moments (/treatments h1, makers list)
   Weights: 400 copy and headings · 500 labels, buttons, h3/h4 · 300 only
   at --t-d1 and up (the light, airy look the owner calls premium). */
:root{--t-xs:12px;--t-sm:14px;--t-base:16px;--t-lg:18px;--t-h3:21px;--t-h2:26px;--t-d1:32px;--t-d2:40px}
@media (min-width:1024px){
  :root{--t-base:17px;--t-lg:19px;--t-h3:23px;--t-h2:40px;--t-d1:56px;--t-d2:72px}
}

/* body copy — 16/17px, 400, 1.75 */
html body.v5 .copy,html body.v5 p.copy,html body.v5 span.copy,html body.v5 div.copy,html body.v5 .copy p,
html body.v5 .copy,html body.v5 .faq details .copy,html body.v5 blockquote,
html body.v5 .v5-cv li,html body.v5 .bullet span,html body.v5 .lx-steps-list p:not(.lx-step-i),
html body.v5 .lx-way-row p,html body.v5 .lx-promise li,html body.v5 .legal p,html body.v5 .legal li,
html body.v5 .v5-doc-plate .nick,html body.v5 .rcard blockquote{
  font-size:var(--t-base)!important;font-weight:400;line-height:1.75}
/* lede */
html body.v5 .lead,html body.v5 .lead,html body.v5 .v5-lede,html body.v5 .t-hero-lede,
html body.v5 .lx-thero-p,html body.v5 .lx-cta-p,html body.v5 dd.lead{
  font-size:var(--t-lg)!important;font-weight:400;line-height:1.7}
/* small print — never below 14 for anything a person has to read */
html body.v5 .small,html body.v5 .small,html body.v5 li.small,html body.v5 a.small,html body.v5 dt.small,
html body.v5 .ba-note,html body.v5 .ba-cap b,html body.v5 .ba-cap span,html body.v5 .lx-doc-r,html body.v5 .lx-doc-l,
html body.v5 .lx-team .lx-doc-l,html body.v5 .lx-auth-note,html body.v5 .lx-mk-p,html body.v5 .aw-gloss,
html body.v5 .lx-tri-l small,html body.v5 .meta span,html body.v5 dd,html body.v5 .v5-film-cap,
html body.v5 .cap,html body.v5 .v5-booking-meta,html body.v5 .v5-ba-hint,html body.v5 .v5-stage-ba-note,
html body.v5 .link-arrow,html body.v5 .lx-doc-v,html body.v5 .footer a,html body.v5 .footer-col a,
html body.v5 .ft-addr,html body.v5 .ft-hours,html body.v5 .cf-title,html body.v5 .lx-link{
  font-size:var(--t-sm)!important;line-height:1.65}
html body.v5 .small,html body.v5 .small,html body.v5 .ba-note,html body.v5 .lx-doc-l,html body.v5 .lx-doc-r,
html body.v5 .lx-auth-note,html body.v5 .aw-gloss,html body.v5 .v5-stage-ba-note{font-weight:400}
/* labels */
html body.v5 .eyebrow,html body.v5 .eyebrow,html body.v5 .v5-eyebrow,html body.v5 .lx-kicker,html body.v5 .aw-by,
html body.v5 .aw-foot,html body.v5 .aw-foot.is-th,html body.v5 dt,html body.v5 .lx-facts-row dt,html body.v5 .cat,
html body.v5 .cmp-tag,html body.v5 .ba-vary,html body.v5 .ba-chip,html body.v5 .footer .ft-h,html body.v5 .footer-col .ft-h,
html body.v5 .ft-copy,html body.v5 .lx-doc-i,html body.v5 .lx-step-i,html body.v5 .lx-count,html body.v5 .v5-doc-plate .lic,
html body.v5 .v5-doc-name .no,html body.v5 .v5-doc-name .nm,html body.v5 .who b,html body.v5 .who em,html body.v5 .ava,
html body.v5 .avatar,html body.v5 .cf-count,html body.v5 .cf-cat,html body.v5 .lx-tri-l .num,html body.v5 .nav-draft,
html body.v5 figcaption,html body.v5 span.n{
  font-size:var(--t-xs)!important;line-height:1.5}
/* Thai is never tracked: spacing pulls vowels and tone marks off their
   consonant (เ ก ี ่ ย ว). The Latin half of a bilingual kicker loses its
   wide tracking too — legible Thai wins. */
html body.v5 .eyebrow,html body.v5 .eyebrow,html body.v5 .v5-eyebrow,html body.v5 .lx-kicker,
html body.v5 .footer .ft-h,html body.v5 .footer-col .ft-h,html body.v5 .aw-foot.is-th,html body.v5 .cat{letter-spacing:.03em}
/* h4 tier */
html body.v5 .h4,html body.v5 .h4,html body.v5 .faq summary,html body.v5 summary,html body.v5 .lx-doc-n,
html body.v5 .lx-team .lx-doc-n,html body.v5 .aw-th,html body.v5 .t-hero-en,html body.v5 .v5-kicker{
  font-size:var(--t-lg)!important;line-height:1.5}
html body.v5 .h4,html body.v5 .h4,html body.v5 .lx-doc-n,html body.v5 .aw-th,html body.v5 summary{font-weight:500}
/* h3 tier */
html body.v5 .h3,html body.v5 .h3,html body.v5 h2.h3,html body.v5 .lx-tri-l b,html body.v5 .lx-en,
html body.v5 .lx-banner .lx-en,html body.v5 .aw-title{
  font-size:var(--t-h3)!important;line-height:1.4}
html body.v5 .h3,html body.v5 .h3,html body.v5 h2.h3{font-weight:500}
/* h2 tier */
html body.v5 .h2,html body.v5 .h2,html body.v5 .v5-h2,html body.v5 h1.h2,html body.v5 .v5-closing-line,
html body.v5 p.num,html body.v5 span.n.num,html body.v5 .lx-mk-a{
  font-size:var(--t-h2)!important;line-height:1.3;letter-spacing:-.01em}
/* one heading spec on every page: Prompt 400, deep blue, the second line
   (em) in the action blue. /about's light 56px heads join this tier too —
   three heading styles across the site read as three different sites */
html body.v5 .h2,html body.v5 .h2,html body.v5 .v5-h2,html body.v5 h1.h2,html body.lx-page .lx-h2,
html body.v5 .lx-hs-head .lx-h2{font-size:var(--t-h2)!important;font-weight:400;line-height:1.3;color:var(--b-deep)}
html body.v5 .h2 em,html body.v5 .v5-h2 em,html body.lx-page .lx-h2 em{color:var(--b)}
/* the only heading on a dark ground today (measured): /about's film panel */
html body.lx-page .lx-auth-film .lx-h2{color:#fff}
html body.lx-page .lx-auth-film .lx-h2 em{color:var(--lx-mist)}
/* display */
html body.v5 .v5-h1,html body.v5 .v5-h1,html body.v5 .t-hero-h1,html body.lx-page .lx-banner .lx-banner-h,html body.v5 .lx-banner-h,
html body.v5 .lx-facts dd.num,html body.v5 .lx-display{
  font-size:var(--t-d1)!important;font-weight:300;line-height:1.22;letter-spacing:-.01em}
html body.v5 .lx-thero-h,html body.lx-page .lx-thero-h,html body.v5 .lx-mk-n,html body.v5 .v5-404-num{
  font-size:var(--t-d2)!important;font-weight:300;line-height:1.16;letter-spacing:-.01em}
/* numerals stay Switzer, one weight */
html body.v5 .num,html body.v5 .num{font-weight:500}
/* buttons — one size */
html body.v5 .btn,html body.v5 .v5-btn,html body.v5 .nav-cta{font-size:var(--t-base)!important;font-weight:500}
/* three weights only: Prompt is loaded at 300/400/500, so <b> must not ask
   for 700 or Chrome paints a synthetic bold over the 500 */
html body.v5 b,html body.v5 strong{font-weight:500}

/* ═══ contrast floor (audit 14 ต.ค.) ═══════════════════════════════════
   Measured from pixels, text hidden: the licence label sat at 4.04:1 on
   the footer gradient, the consent / results-vary line under the home
   before–after at 4.25:1, the before/after captions at 4.39:1. All of it
   is text the law wants read, so it takes the body ink. */
html body.v5 .footer .licence dt,html body.v5 .footer .licence dt,
html body.v5 .footer.is-min .footer-legal .small,html body.v5 .ft-copy,
html body.v5 .v5-stage-ba-note,html body.v5 .v5-stage-ba-note .nb,html body.v5 .ba-note,
html body.v5 .ba-cap span,html body.v5 .meta span,html body.v5 .ba-vary{color:#16325E}
html body.v5 .stars,html body.v5 span.stars{color:#B7791F}

/* ═══ touch targets (audit 14 ต.ค.) — 44px floor, 48 for the main CTA ══ */
html body.v5 .v5-btn,html body.v5 .btn{min-height:48px}
html body.v5 .sticky-bar .btn{min-height:48px}
html body.v5 .nav-burger,html body.v5 .nav-burger{width:44px;height:44px}
html body.v5 .footer-social a,html body.v5 .footer.is-min .footer-social a{width:44px;height:44px}
html body.v5 .link-arrow,html body.v5 .lx-doc-v,html body.v5 .lx-link,html body.v5 .aw-foot a{
  min-height:44px;display:inline-flex;align-items:center}
html body.v5 .v5-clipflow .cf-arrow{width:44px;height:44px;margin-top:-22px}
html body.v5 .v5-ba-nav,html body.v5 .v5-ba-nav,html body.v5 .v5-stage-toggle,html body.v5 .v5-stage-toggle{min-width:44px;min-height:44px}
html body.v5 .ft-line{min-height:48px}

/* ═══ hero proof row (audit 14 ต.ค.) ═════════════════════════════════
   "Why here" in the first screen: three facts a visitor can check, set
   as quiet meta under the buttons so the CTA stays the one loud thing. */
body.v5 .v5-proof{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 0;
  margin:clamp(14px,1.6vw,20px) auto 0;padding:0;list-style:none;
  font-family:var(--f-thai);font-weight:400;font-size:var(--t-sm);line-height:1.5;color:#16325E}
body.v5 .v5-proof li{padding:0 14px}
body.v5 .v5-proof li + li{border-left:1px solid rgba(18,58,120,.2)}
body.v5 .v5-proof .num{color:var(--b-deep)}
body.v5 .v5-proof-star{color:#B7791F}
html body.v5 .v5-hero.is-team .v5-h1{font-size:var(--t-d1);font-weight:300;line-height:1.18;max-width:none}
html body.v5 .v5-hero.is-team .v5-h1 em{color:var(--b)}
html body.v5 .v5-hero.is-team .v5-kicker{font-size:var(--t-sm)!important;font-weight:500;margin-bottom:6px;color:var(--b)}
@media (max-width:767px){
  body.v5 .v5-proof{flex-direction:column;align-items:center;gap:4px}
  body.v5 .v5-proof li{padding:0}
  body.v5 .v5-proof li + li{border-left:0}
  /* the proof row adds ~70px; give the copy block that room below the
     doctors instead of letting it climb onto their gowns */
  html body.v5 .v5-hero.is-team{padding-bottom:calc(clamp(56px,14vw,96px) + 110px)}
  html body.v5 .v5-hero.is-team .v5-hero-cta{flex-direction:column;align-items:stretch;
    max-width:340px;margin-inline:auto}
}

/* ═══ closing: the owners beside the booking card (audit 14 ต.ค.) ═════ */
body.v5 .v5-booking.is-owners{padding-block:clamp(64px,8vw,112px) 0}
body.v5 .v5-booking.is-owners > .wrap{display:grid;gap:28px;align-items:end;max-width:1080px;margin-inline:auto}
body.v5 .v5-owners{margin:0;text-align:center}
body.v5 .v5-owners-shot{display:flex;justify-content:center;align-items:flex-end;height:clamp(260px,30vw,400px)}
body.v5 .v5-owners-shot img{height:100%;width:auto;max-width:none;
  -webkit-mask-image:linear-gradient(to bottom,#000 78%,transparent 100%);
  mask-image:linear-gradient(to bottom,#000 78%,transparent 100%)}
body.v5 .v5-owners-shot img + img{margin-left:-7%}
body.v5 .v5-owners figcaption{margin-top:14px;font-family:var(--f-thai);font-weight:500;
  font-size:var(--t-sm);line-height:1.6;color:var(--b-deep)}
body.v5 .v5-owners figcaption .num{color:var(--b)}
body.v5 .v5-owners-role{font-weight:400;color:#16325E}
@media (min-width:900px){
  body.v5 .v5-booking.is-owners > .wrap{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(28px,4vw,56px);align-items:center}
  body.v5 .v5-booking.is-owners .v5-booking-inner{text-align:left;margin:0}
  body.v5 .v5-booking.is-owners .v5-booking-inner .v5-lede{margin-inline:0}
  body.v5 .v5-booking.is-owners .v5-booking-cta{justify-content:flex-start}
  body.v5 .v5-booking.is-owners .v5-eyebrow.has-rules{justify-content:flex-start}
}

/* ═══ treatment hero: words + the clinic's own clip (audit 14 ต.ค.) ═══
   All eight treatment heroes were text on a wash, and two pages had no
   picture anywhere. The category clip (the same footage the homepage
   services run uses) now stands beside the words on desktop and under
   the buttons on a phone. */
body.v5 .t-hero.is-split .t-split{display:grid;gap:clamp(28px,4vw,56px);max-width:1180px}
body.v5 .t-film{margin:0 auto;width:min(100%,420px);aspect-ratio:4/5;border-radius:24px;
  overflow:hidden;background:#DCE6F2;box-shadow:0 40px 80px -48px rgba(5,39,91,.55)}
body.v5 .t-film video{display:block;width:100%;height:100%;object-fit:cover}
@media (max-width:1023px){
  body.v5 .t-film{width:min(100%,360px);aspect-ratio:1/1}
}
@media (min-width:1024px){
  body.v5 .t-hero.is-split .t-split{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
    align-items:center;text-align:left}
  body.v5 .t-hero.is-split .t-split-copy > *{margin-left:0;margin-right:0}
  body.v5 .t-hero.is-split .t-hero-lede{margin-inline:0;max-width:34em}
  body.v5 .t-hero.is-split .t-hero-cta,
  body.v5 .t-hero.is-split nav .row{justify-content:flex-start}
  body.v5 .t-hero.is-split .t-spec{margin-inline:0;max-width:none}
  body.v5 .t-hero.is-split .t-spec > div:first-child{padding-left:0}
  body.v5 .t-hero.is-split .eyebrow-line::after{display:none}
  body.v5 .t-film{width:100%;margin:0}
}

/* the consult bar on every page (audit 14 ต.ค.) — out of the way while
   the hero, which has its own buttons, is in view */
html body.v5 .sticky-bar{transition:transform .22s var(--ease),opacity .22s var(--ease)}
html body.v5 .sticky-bar.is-off{transform:translateY(110%);opacity:0;pointer-events:none}
html body.v5 .t-step-n{font-size:var(--t-h2)!important;font-weight:300;color:var(--b);line-height:1}
html body.v5 .t-brand{font-family:var(--f-sans);font-size:var(--t-lg)!important;font-weight:500;color:var(--b-deep)}
/* page heroes, the review score, the 404 numeral and the about index
   numerals were still drawn by their own clamp() rules */
html body.v5 .t-hero-en,html body.v5 .aw-title{font-size:var(--t-lg)!important}
html body.v5 .v5-revscore b.num{font-size:var(--t-d1)!important}
html body.v5 .lx-way-row .num,html body.v5 .lx-promise .num{font-size:var(--t-h3)!important}
html body.v5 .v5-stage-h a{font-size:var(--t-h2)!important}
html body.v5 .cf-meta .cf-title,html body.v5 .v5-stage-caps .cap{font-size:var(--t-sm)!important}
html body.v5 .ba-chip,html body.v5 .lx-tri-l .num{font-size:var(--t-xs)!important}
html body.v5 .stars,html body.v5 .rcard .stars{font-size:var(--t-sm)!important}
html body.v5 .licence dd.num{font-size:var(--t-base)!important}
html body.v5 a.card p,html body.v5 div.card p:not(.copy):not(.cat){font-size:var(--t-base)!important}
html body.v5 span.l{font-size:var(--t-sm)!important}
html body.v5 .lx-steps-list h3{font-size:var(--t-lg)!important}

/* second contrast pass (after re-measuring) — these sit on a pale wash,
   a video frame or the footer gradient, where the first values still
   landed between 3.0 and 4.4:1 */
html body.v5 .licence dt,html body.v5 .footer .licence dt,
html body.v5 .footer.is-min .footer-legal .licence dt{color:#16325E!important}
html body.v5 .v5-stage .v5-eyebrow{color:var(--b-deep)}
html body.lx-page .lx-tri-l .num,html body.lx-page .lx-tri-l small,
html body.lx-page .lx-auth-film .lx-kicker{
  color:#fff;text-shadow:0 1px 10px rgba(5,39,91,.7)}
html body.lx-page .lx-tri-l .num{font-weight:500}
/* the about banner kicker is white only where it sits on the photo */
@media (min-aspect-ratio:13/10) and (min-width:900px){
  html body.lx-page .lx-banner .lx-kicker{color:#fff;text-shadow:0 1px 10px rgba(5,39,91,.7)}
}
/* stars: a graphic, 3:1 is the bar — #B7791F clears it on white (3.64) */
html body.v5 .v5-revscore .stars,html body.v5 span.stars{color:#B7791F}
html body.v5 .lx-way-row h3{font-size:var(--t-lg)!important}

/* ═══ Thai line endings (15 ต.ค. 2569) ═══════════════════════════════
   ไทยไม่มีเว้นวรรคระหว่างคำ บรรทัดสุดท้ายของย่อหน้าบนมือถือจึงเหลือคำเดียว
   บ่อย ("เอง" "ได้" "นะคะ") ดูเหมือนตัดผิด · pretty ให้เบราว์เซอร์ถัวคำใน
   บรรทัดท้าย ๆ เอง · :where() ทำให้ specificity เป็นศูนย์ ทุกที่ที่ตั้ง
   balance ไว้แล้ว (หัวเรื่อง หัวการ์ด) ยังชนะ */
:where(body.v5) :where(p, li, dd, dt, small, figcaption, blockquote){text-wrap:pretty}

/* tools/thai-typeset.mjs ห่อคำไทยที่ Chrome จะตัดกลางคำด้วย span.tt ตอน deploy (ไฟล์ต้นฉบับไม่มี span นี้)
   · contents = ไม่มีกล่องของตัวเอง: ในกล่อง flex/grid ข้อความยังเป็นชิ้นเดียวกัน (ไม่มี gap แทรกกลางคำ)
     และกฎแบบ ".x span{display:block}" ทำให้มันขึ้นบรรทัดใหม่ไม่ได้ · nowrap ยังส่งถึงตัวหนังสือข้างใน
   · กฎเก่าที่ระบุ span ทั้งหมดในกล่อง (เช่น ".footer li span{color:…}") ห้ามมีผลกับมัน — ค่าที่สืบทอดได้
     ทุกตัวจึงบังคับ inherit จากกล่องแม่ และตัด ::before/::after ที่กฎแบบ "x span::after" อาจเติมให้ */
.tt{display:contents!important;white-space:nowrap!important;
  color:inherit!important;font:inherit!important;letter-spacing:inherit!important;word-spacing:inherit!important;
  text-transform:inherit!important;text-shadow:inherit!important;-webkit-text-fill-color:inherit!important;
  visibility:inherit!important}
.tt::before,.tt::after{content:none!important}

/* ═══ มือถือ: สองจุดที่สัดส่วนเพี้ยน (15 ต.ค. 2569) ═══════════════════
   · หัวหน้า /treatments 40px ยาวเกินจอโทรศัพท์ทุกขนาด → แตกเป็นสี่บรรทัด
     "หัตถการเสริม / ความงาม / ดูแลโดยแพทย์ทุก / ขั้นตอน" · 8.4vw วัดแล้ว
     ให้สองวลีอยู่บรรทัดละวลีตั้งแต่ 320 ถึง 479px แล้วกลับเป็น 40px ตามระบบ
   · ลิงก์ "ตรวจสอบกับแพทยสภา" ในการ์ดแพทย์ /about กว้าง 153px การ์ดที่ 360px
     กว้าง 152px → ตกสองบรรทัดและลูกศรลอยแยก · ใช้ขนาดเล็กสุดของระบบแทน */
@media (max-width:479px){
  html body.lx-page .lx-thero-h{font-size:min(var(--t-d2),8.4vw)!important}
}
@media (max-width:400px){
  html body.lx-page .lx-doc-v{font-size:var(--t-xs)!important;gap:4px}
}
/* /contact และ /reviews: ย่อหน้านำชิดหัวเรื่องพอดี (ห่าง 0px ทุกจอ) — ใช้ระยะเดียวกับ
   .t-hero-lede ของหน้าหัตถการ */
body.v5 .t-hero-h1 + .lead{margin-top:clamp(14px,1.6vw,20px)}
/* ภาพก่อน–หลังหน้าหัตถการบนมือถือ (คอลัมน์เดียว): กรอบ 4:5 ตายตัวมีไว้ให้การ์ดในแถวเดียวกัน
   สูงเท่ากัน พอเหลือคอลัมน์เดียว ภาพแนวนอน 1084×720 ลอยกลางกรอบขาวที่ว่างเกือบครึ่ง ·
   ให้กรอบสูงตามภาพแทน — ภาพยังเต็มทั้งใบ ไม่ครอป (คำยินยอมอยู่ในภาพ) และ width/height
   ในแท็กยังจองที่ให้ก่อนภาพโหลด */
@media (max-width:719px){
  .ba-mount{aspect-ratio:auto}
  .ba-mount img{height:auto}
}

/* ตั้งค่าคุกกี้ (footer) — a <button>, dressed exactly like the footer links beside it */
body.v5 .footer.is-min .footer-col .ft-cookie{padding:0;border:0;background:none;cursor:pointer;
  font-family:var(--f-thai);font-weight:300;font-size:var(--t-sm);line-height:inherit;color:var(--tx);text-align:left;
  transition:color .22s var(--ease)}
/* the same control inline in /privacy copy */
button.link-u{padding:0;border:0;background:none;font:inherit;color:var(--night);cursor:pointer;
  text-decoration:underline;text-underline-offset:3px}
body.v5 .footer.is-min .footer-col .ft-cookie:hover{color:var(--b)}

/* ═══ Mobile tap targets (19 ต.ค. 2569) ═══════════════════════════
   ลิงก์ข้อความบนมือถือสูงแค่ ~21px (ท้ายเว็บ เบอร์โทร ดูแผนที่ ดูประวัติ)
   นิ้วกดพลาดง่าย — ขยายพื้นที่กดเป็น 44px โดยไม่ขยับเลย์เอาต์
   (ลิงก์ inline: padding แนวตั้งไม่ดันบรรทัด / ลิสต์ท้ายเว็บ: แทน gap ด้วยความสูงขั้นต่ำ) */
@media (max-width:760px){
  body.v5 .footer.is-min .footer-col ul{gap:0}
  body.v5 .footer.is-min .footer-col ul a,
  body.v5 .footer.is-min .footer-col .ft-cookie{display:inline-flex;align-items:center;min-height:44px}
  .ft-addr a,.vp-link,.vp-hero-team figcaption a,.v5-booking-meta a,
  .v5-sec a[href="/reviews"],.t-hero .small[href]{padding-block:12px}
}

/* การ์ดการรับรองบนมือถือ — สามใบเรียงกันเดิมสูงเกือบสามหน้าจอ
   ตัดความสูงขั้นต่ำและเส้นห้อยออก ให้อ่านจบในหน้าจอครึ่ง */
@media (max-width:560px){
  body.v5 .aw-card{min-height:0;padding:26px 22px 22px}
  body.v5 .aw-card::before{inset:9px}
  body.v5 .aw-mark::after{height:14px;margin-top:6px}
  body.v5 .aw-by{margin-top:10px}
  body.v5 .aw-gloss{margin-top:10px;max-width:30ch}
  body.v5 .aw-foot{padding-top:14px}
}

/* ภาพก่อน–หลังหน้าหัตถการบนมือถือ — เดิมเรียงลงทีละคู่ 3–6 คู่
   ยาวราวสี่หน้าจอก่อนถึงเนื้อหาหัตถการ · เปลี่ยนเป็นแถวปัดซ้ายขวา
   เห็นขอบภาพถัดไปเป็นสัญญาณว่าเลื่อนได้ */
@media (max-width:719px){
  .ba-grid.of-2,.ba-grid.of-3{display:flex;gap:14px;align-items:stretch;
    overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;
    margin-inline:calc(var(--gut) * -1);padding-inline:var(--gut);
    scroll-padding-inline:var(--gut);scrollbar-width:none;
    -webkit-overflow-scrolling:touch}
  .ba-grid.of-2::-webkit-scrollbar,.ba-grid.of-3::-webkit-scrollbar{display:none}
  .ba-grid.of-2 > .ba-case,.ba-grid.of-3 > .ba-case{flex:0 0 84%;scroll-snap-align:start}
}

/* audit 19 ต.ค. D8 — the pause button sits beside the tablist, not in it;
   the wrapper keeps the tabs in the bar's own flex row. White on the
   22% wash over --b was 4.44:1; the deep blue chip clears AA. */
body.v5 .v5-ba-tablist{display:contents}
body.v5 .v5-ba-tabs button[data-ba][aria-selected="true"] .n,
body.v5 .v5-ba-tabs button[data-clip][aria-selected="true"] .n{background:var(--b-deep)}
@media (max-width:767px){
  body.v5 .v5-doc-shot:focus-visible{outline:2px solid var(--b);outline-offset:4px}
}

/* audit 19 ต.ค. D6 — the named grid at tablet width: five cards in a
   2-col or 3-col grid left the last one alone at the left and, with
   align-items:end, every row's plates started at a different height.
   Each card spans two tracks of an even grid so the short row centres,
   and the plates stretch so the cards in a row share a top and a floor.
   The pointer lineup (≥1240px, fine pointer) is flex and is left out. */
@media (min-width:768px) and (max-width:1239px),
       (min-width:1240px) and (max-width:1399px) and (hover:none),
       (min-width:1240px) and (max-width:1399px) and (pointer:coarse){
  body.v5 .v5-docs{align-items:stretch}
  body.v5 .v5-doc{grid-column:span 2}
  body.v5 .v5-doc-plate{flex:1 1 auto}
}
@media (min-width:768px) and (max-width:899px){
  body.v5 .v5-docs{grid-template-columns:repeat(4,1fr)}
  body.v5 .v5-doc:nth-child(5){grid-column:2 / span 2}
}
@media (min-width:900px) and (max-width:1239px),
       (min-width:1240px) and (max-width:1399px) and (hover:none),
       (min-width:1240px) and (max-width:1399px) and (pointer:coarse){
  body.v5 .v5-docs{grid-template-columns:repeat(6,1fr)}
  body.v5 .v5-doc:nth-child(4){grid-column:2 / span 2}
}

/* ── services stage on phones: the pair, not the film (20 ต.ค.) ───────
   User: "มือถือไม่สวยเลย … ไม่เห็นหน้าคนที่เป็นรูปก่อนหลังเลย". The two
   cut-outs were full-width bands faded behind the clip and the fog, so
   only a forehead and a chin showed. Below 900px the bed and the inner
   column dissolve into the pin's grid (display:contents) and the before
   and after stand side by side as two cards, faces whole and unfogged,
   with the treatment name above and the caption, ticks and consent line
   below. The clinic film stays on the desktop stage and leads every
   treatment page; here it gave way to the faces. */
@media (max-width:899px){
  body.v5 .v5-stage.is-ba{height:calc(var(--slides,4) * 70svh + 100svh)}
  body.v5 .v5-stage.is-ba .v5-stage-pin{display:grid;grid-template-columns:1fr 1fr;
    column-gap:10px;align-content:center;align-items:start;text-align:center;
    padding:64px max(16px,calc((100vw - 460px) / 2)) 84px}
  body.v5 .v5-stage.is-ba .v5-stage-bed,
  body.v5 .v5-stage.is-ba .v5-stage-inner{display:contents}
  body.v5 .v5-stage.is-ba .v5-stage-fog,
  body.v5 .v5-stage.is-ba .v5-stage-media{display:none}
  body.v5 .v5-stage.is-ba .v5-eyebrow{grid-column:1/-1;grid-row:1;justify-self:center}
  body.v5 .v5-stage.is-ba .v5-stage-names{grid-column:1/-1;grid-row:2;justify-self:center}
  body.v5 .v5-stage.is-ba .v5-stage-half{position:relative;inset:auto;grid-row:3;
    width:auto;height:auto;margin:clamp(16px,3svh,26px) 0 0;aspect-ratio:4/5;
    border-radius:18px;overflow:hidden;transform:none!important;
    -webkit-mask-image:none!important;mask-image:none!important;
    background:linear-gradient(180deg,#fff 0%,var(--b-tint) 100%);
    box-shadow:0 0 0 1px var(--b-line),0 24px 44px -30px rgba(18,58,120,.45)}
  body.v5 .v5-stage.is-ba .v5-stage-half.is-l{grid-column:1}
  body.v5 .v5-stage.is-ba .v5-stage-half.is-r{grid-column:2}
  body.v5 .v5-stage.is-ba .v5-stage-half .shot img{object-fit:cover;object-position:50% 100%}
  body.v5 .v5-stage.is-ba .v5-stage-half.is-l .shot,
  body.v5 .v5-stage.is-ba .v5-stage-half.is-r .shot{clip-path:inset(0 0 0 0)}
  body.v5 .v5-stage.is-ba .v5-stage-half .shot img{transform:none}
  body.v5 .v5-stage.is-ba .v5-stage-half .shot{transition:opacity .45s ease}
  body.v5 .v5-stage.is-ba .ba-chip{top:10px!important;bottom:auto!important;
    left:10px!important;right:auto!important;transform:none;text-align:left;
    padding:6px 12px;font-size:var(--t-xs)}
  body.v5 .v5-stage.is-ba .v5-stage-caps{grid-column:1/-1;grid-row:4;margin-top:clamp(16px,2.6svh,24px)}
  body.v5 .v5-stage.is-ba .v5-stage-ticks{grid-column:1/-1;grid-row:5;justify-self:center}
  body.v5 .v5-stage.is-ba .v5-stage-ba-note{grid-column:1/-1;grid-row:6;
    background:none;padding:0;margin-top:clamp(10px,1.8svh,16px)}
}
body.v5 .v5-stage.is-ba .ba-chip b,
body.v5 .v5-stage.is-ba .ba-chip i{font-weight:inherit;font-style:normal}
@media (max-width:899px){
  body.v5 .v5-stage.is-ba .ba-chip{display:grid;gap:1px;line-height:1.3;
    white-space:nowrap;border-radius:12px;padding:6px 12px 7px}
  body.v5 .v5-stage.is-ba .ba-chip b{font-weight:500;color:var(--b-deep)}
  body.v5 .v5-stage.is-ba .ba-chip i{display:none}
  body.v5 .v5-stage.is-ba .ba-chip span{font-size:11px;color:var(--tx-mute)}
}

/* homepage doctors heading in two lines, as on /about (20 ต.ค.) */
body.v5 #doctors .v5-h2 em{display:block}

/* ── home hero on phones: photo-led (20 ต.ค.) ──────────────────────────
   User: "หน้าแรกสุด กดเข้ามาไม่น่าสนใจเลย อยากให้ดูพรีเมี่ยมกว่านี้". The
   phone hero was a left-aligned block of type with the team pushed below
   the fold. Now: a centred title, the five doctors large on a lit arch,
   then the promise, a full-width LINE button and the numbers on one glass
   card — still the approved left/right hero from 1000px up. */
@media (max-width:999px){
  body.v5 .vp-hero{padding:clamp(86px,22vw,96px) 0 36px;
    background:
      radial-gradient(70% 34% at 50% 44%,rgba(196,218,244,.75) 0%,rgba(196,218,244,0) 72%),
      linear-gradient(180deg,#F1F6FC 0%,#F7FAFE 46%,#fff 100%)}
  body.v5 .vp-hero-in{display:flex;flex-direction:column;align-items:center;text-align:center;gap:0}
  body.v5 .vp-hero-copy{display:contents}
  body.v5 .vp-kicker{order:1;margin:0 0 14px;padding:7px 14px;border-radius:999px;
    background:rgba(255,255,255,.72);border:1px solid rgba(26,79,165,.14);
    -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:var(--b-deep)}
  body.v5 .vp-kicker::before{content:'';width:6px;height:6px;border-radius:50%;
    background:var(--b-bright);opacity:1}
  html body.v5 .vp-h1{order:2;font-size:clamp(34px,9.4vw,42px)!important;line-height:1.18;
    letter-spacing:-.02em}
  html body.v5 .vp-h1 em{font-size:.5em!important;margin-top:.55em;color:#3F6FA8}
  body.v5 .vp-hero-team{order:3;position:relative;isolation:isolate;
    width:calc(100% + var(--gut) * 2);margin:18px calc(var(--gut) * -1) 0;overflow:hidden;
    padding-top:22px}
  body.v5 .vp-hero-team::before{content:'';position:absolute;z-index:-1;left:50%;bottom:0;
    width:min(78%,420px);aspect-ratio:1/1.08;transform:translateX(-50%);
    border-radius:999px 999px 0 0;
    background:linear-gradient(180deg,#fff 0%,#E6EFFA 58%,#D3E2F4 100%);
    box-shadow:inset 0 1px 0 #fff,0 0 0 1px rgba(255,255,255,.9);
    -webkit-mask-image:linear-gradient(180deg,#000 70%,transparent 100%);
    mask-image:linear-gradient(180deg,#000 70%,transparent 100%)}
  body.v5 .vp-hero-team img{width:106%;max-width:none;margin-left:-3%;
    -webkit-mask-image:linear-gradient(180deg,#000 82%,transparent 100%);
    mask-image:linear-gradient(180deg,#000 82%,transparent 100%)}
  body.v5 .vp-hero-team figcaption{bottom:10px}
  body.v5 .vp-lede{order:4;margin:20px auto 0;max-width:32ch;text-align:center}
  body.v5 .vp-cta{order:5;width:100%;flex-direction:column;gap:14px;margin-top:22px}
  body.v5 .vp-cta .v5-btn{width:100%;justify-content:center;padding:16px 22px;
    box-shadow:0 18px 36px -18px rgba(26,79,165,.6)}
  body.v5 .vp-stats{order:6;width:100%;margin-top:26px;padding:16px 6px;border-top:0;
    border-radius:20px;background:rgba(255,255,255,.78);border:1px solid rgba(26,79,165,.1);
    box-shadow:0 24px 48px -32px rgba(18,58,120,.4);
    -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
  body.v5 .vp-stats > div{padding:0 6px;text-align:center}
}

/* home · doctors on phones (20 ต.ค.): user — "ให้หมออู๋ใหญ่ที่สุด แต่อย่าใหญ่มาก".
   หมออู๋ stands centre of the back row 16% larger than the two beside him;
   the front row drops from 1.12 to 1.05 so he stays the largest. The back
   row's base share falls from 57% to 50.4% so the three still fit:
   .5227 + .5936×1.16 + .5436 = 1.755 → 1/1.755 ≈ 57% of the widest
   arrangement, less the overlap the neighbours take under his shoulders. */
@media (max-width:767px){
  body.v5 .v5-doc:nth-child(2),
  body.v5 .v5-doc:nth-child(4){width:calc(var(--ar,.56) * 54.5%)}
  body.v5 .v5-doc:nth-child(3){width:calc(var(--ar,.56) * 63.2%);z-index:3;margin-inline:-2.5%}
  body.v5 .v5-doc:nth-child(1),
  body.v5 .v5-doc:nth-child(5){width:calc(var(--ar) * 57.2%);margin:-10% 5% 0}
}

/* ── บทความ /articles (3 พ.ย. 2569) ─────────────────────────────
   มือถือ: ข้อความเต็มกว้าง คลิปลงไปอยู่ใต้ข้อความ · คอม: ข้อความซ้าย คลิปขวาแบบ sticky
   ข้อความยาวจัดชิดซ้ายเสมอ (ชั้น minimal-luxe จัดกลางทั้งหน้า ซึ่งอ่านย่อหน้ายาวยาก) */
.art-grid{display:grid;gap:clamp(32px,5vw,72px);align-items:start;grid-template-columns:minmax(0,1fr)}
.art-body{max-width:66ch;text-align:left}
.art-body :is(h2,h3,p,ul,li){text-align:left}
.art-film{max-width:320px;width:100%;margin-inline:auto}
@media (min-width:900px){
  .art-grid{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}
  .art-film{position:sticky;top:96px}
}

/* ═══ หน้าหัตถการ: จุดปิดการขาย (บรีฟทีมแอด 23 พ.ย. 2569) ═══════════
   1 แถบล่าง LINE + โทร อยู่ทุกจอ ทุกขนาด (data-always ไม่หลบฮีโร่)
   2 ปุ่มกลางหน้า .tx-cta ใต้ก่อน–หลัง / ใต้ "ท่านกังวล…" / ใต้ FAQ
   4 แถบความน่าเชื่อถือ .tx-trust ใต้หัวเรื่องในฮีโร่ */
html body.v5 .tx-trust{list-style:none;padding:0;margin:clamp(16px,1.8vw,22px) 0 0;
  display:flex;flex-wrap:wrap;gap:8px 10px;justify-content:center}
html body.v5 .tx-trust li{display:inline-flex;align-items:center;gap:7px;
  padding:7px 13px 7px 10px;border-radius:999px;background:rgba(255,255,255,.72);
  border:1px solid var(--b-line);font-family:var(--f-thai);font-weight:400;
  font-size:var(--t-sm);line-height:1.45;color:var(--b-deep);text-align:left}
html body.v5 .tx-trust svg{color:var(--b);flex:none}
@media (min-width:1024px){html body.v5 .t-hero.is-split .tx-trust{justify-content:flex-start}}

html body.v5 .tx-cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:14px 24px;margin-top:clamp(26px,3vw,38px);padding:clamp(18px,2vw,24px) clamp(18px,2.4vw,28px);
  border-radius:20px;background:var(--b-tint);border:1px solid var(--b-line)}
html body.v5 .tx-cta-q{margin:0;flex:1 1 260px;font-family:var(--f-thai);font-weight:400;
  font-size:var(--t-base);line-height:1.6;color:var(--b-deep)}
html body.v5 .tx-cta-act{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px}
html body.v5 .tx-cta-act .btn{display:inline-flex;align-items:center;gap:9px}
html body.v5 .tx-cta-tel{display:inline-flex;align-items:center;gap:.4em;min-height:44px;
  font-family:var(--f-thai);font-size:var(--t-sm);color:var(--b);text-decoration:underline;
  text-underline-offset:3px}
@media (max-width:599px){
  html body.v5 .tx-cta-act{width:100%}
  html body.v5 .tx-cta-act .btn{flex:1 1 100%;justify-content:center}
  html body.v5 .tx-cta-tel{margin-inline:auto}
}

html body.v5 .tx-bar{align-items:center;gap:8px}
html body.v5 .tx-bar .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;
  white-space:nowrap;padding:12px 16px;font-size:var(--t-sm)}
html body.v5 .tx-bar .btn:first-of-type{flex:1 1 auto;min-width:0}
html body.v5 .tx-bar .tx-bar-tel{flex:0 0 auto}
html body.v5 .tx-bar-note,html body.v5 .tx-bar .tx-tel-l{display:none}
@media (min-width:860px){
  html body.v5 .sticky-bar.tx-bar{display:flex;left:0;right:0;bottom:18px;margin:0 auto;
    width:max-content;max-width:calc(100% - 40px);padding:8px 8px 8px 24px;gap:10px;
    border-radius:999px;border:1px solid var(--b-line);
    box-shadow:0 22px 48px -24px rgba(18,58,120,.5)}
  html body.v5 .tx-bar .btn:first-of-type{flex:none}
  html body.v5 .tx-bar-note{display:block;margin:0 8px 0 0;font-family:var(--f-thai);
    font-size:var(--t-sm);color:var(--tx-mute);white-space:nowrap}
  html body.v5 .tx-bar .tx-tel-s{display:none}
  html body.v5 .tx-bar .tx-tel-l{display:inline}
  html body.v5.has-sticky-bar:has(.tx-bar){padding-bottom:96px}
}
@media (min-width:860px) and (max-width:1023px){html body.v5 .tx-bar-note{display:none}}
