:root {
  --plum-deep: #361936;
  --plum: #573057;
  --plum-mid: #6e456e;
  --orchid: #f7f3f7;
  --orchid-deep: #ece3ec;
  --emerald: #28a750;
  --emerald-dark: #1f8740;
  --ink: #201220;
  --ink-soft: #594459;
  --line: rgba(54, 25, 54, 0.12);
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Manrope", system-ui, sans-serif;
  --radius: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: min(1220px, 100% - 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; font: 400 16.5px/1.65 var(--body);
  color: var(--ink); background: #fff; overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--plum); color: #fff; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--display); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.02; margin: 0;
}
p { margin: 0; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus {
  position: fixed; left: 16px; top: 16px; z-index: 200;
  background: var(--emerald); color: #fff; padding: 12px 18px; border-radius: 99px; font-weight: 700;
}

/* Preloader */
.tm-loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--plum-deep); color: #fff; display: grid; place-items: center;
}
.tm-loader-inner { display: grid; gap: 14px; justify-items: center; text-align: center; }
.tm-loader-ring { width: 64px; height: 64px; }
.tm-loader-word { font-family: var(--display); font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: 0.02em; }

/* Header */
.tm-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  padding: 14px 0; color: #fff; border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), color 0.35s, transform 0.35s var(--ease), border-color 0.35s;
}
.tm-header.solid, .page-light .tm-header {
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(12px);
  color: var(--ink); border-bottom-color: var(--line);
}
.tm-header.hide { transform: translateY(-105%); }
.tm-header .wrap { display: flex; align-items: center; gap: 18px; }

.tm-brand {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none; min-height: 44px;
}
.tm-brand svg { width: 34px; height: 34px; flex-shrink: 0; }
.tm-brand-name { line-height: 1.05; }
.tm-brand-name strong { display: block; font-family: var(--display); font-size: 1.28rem; font-weight: 700; }
.tm-brand-name span { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.16em; opacity: 0.78; }

.tm-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.tm-nav a {
  text-decoration: none; font-size: 0.92rem; font-weight: 600;
  padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center;
  border-radius: 99px; transition: background-color 0.25s, color 0.25s;
}
.tm-nav a:hover, .tm-nav a[aria-current="page"] { background: var(--plum); color: #fff; }

.tm-tel {
  text-decoration: none; font-weight: 700; font-size: 0.92rem;
  padding: 10px; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 12px 22px; border-radius: 99px; border: 0;
  background: var(--emerald); color: #fff; font: 700 0.93rem var(--body);
  text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); background: var(--emerald-dark); box-shadow: 0 12px 24px -10px rgba(40, 167, 80, 0.45); }
.btn.plum { background: var(--plum); color: #fff; }
.btn.plum:hover { background: var(--plum-deep); box-shadow: 0 12px 24px -10px rgba(54, 25, 54, 0.45); }
.btn.ghost-light {
  background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.42);
}
.btn.ghost-light:hover { background: rgba(255, 255, 255, 0.12); }

.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--emerald); outline-offset: 2px;
}

.tm-menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid currentColor; background: transparent; color: inherit;
  cursor: pointer; align-items: center; justify-content: center;
  flex-direction: column; gap: 5px; padding: 0;
}
.tm-menu-btn span { width: 18px; height: 2px; background: currentColor; }

/* Hero: Optical Plum Aperture */
.tm-hero {
  position: relative; min-height: 100svh;
  background: radial-gradient(circle at 50% 42%, var(--plum-mid) 0%, var(--plum-deep) 74%);
  color: #fff; display: flex; align-items: center; padding: 112px 0 64px; overflow: hidden;
}
.tm-hero-bg { position: absolute; inset: 0; pointer-events: none; display: grid; place-items: center; }
.tm-lens-svg { width: min(760px, 125vw); height: auto; opacity: 0.36; }
.tm-hero-slot { position: absolute; inset: 0; opacity: 0.22; }
.tm-hero-slot img { width: 100%; height: 100%; object-fit: cover; }

.tm-hero-center {
  position: relative; z-index: 2; text-align: center;
  max-width: 820px; margin-inline: auto; display: grid; gap: 22px; justify-items: center;
}
.tm-hero h1 { font-size: clamp(3rem, 6.8vw, 6.1rem); line-height: 0.96; }
.tm-hero h1 em { font-style: italic; color: #a7f3be; font-weight: 500; }
.tm-hero h1 .ln { display: block; overflow: hidden; }
.tm-hero h1 .ln > span { display: block; }
.tm-hero-lead { font-size: clamp(1.06rem, 1.4vw, 1.22rem); color: rgba(255, 255, 255, 0.88); max-width: 50ch; }
.tm-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.tm-hero-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 28px;
  margin-top: 16px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.92rem; color: rgba(255, 255, 255, 0.82);
}

/* Sections */
.pad { padding: clamp(72px, 8.5vw, 124px) 0; }
.tm-statement {
  font-family: var(--display); font-size: clamp(1.85rem, 3.5vw, 3rem);
  line-height: 1.15; max-width: 30ch; color: var(--ink);
}
.tm-statement .w { opacity: 0.25; transition: opacity 0.25s; }
.tm-statement .w.on { opacity: 1; }

.tm-hours-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px;
}
.tm-hour-card {
  background: var(--orchid); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.tm-hour-card b {
  display: block; font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--plum); line-height: 1.05; margin-bottom: 8px;
}
.tm-hour-card span { color: var(--ink-soft); font-size: 0.92rem; }

/* Signature Scroll 2: Pinned Optical Microscope Reticle Dial */
.tm-dial-sec {
  background: var(--orchid); padding: clamp(64px, 7.5vw, 108px) 0; overflow: hidden;
}
.tm-dial-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center;
}
.tm-dial-box {
  background: var(--plum-deep); color: #fff; border-radius: 26px; padding: 30px; text-align: center;
}
.tm-dial-svg { width: min(300px, 100%); margin-inline: auto; }
.tm-dial-readout { margin-top: 16px; font-family: var(--display); font-size: 1.45rem; color: #a7f3be; }

.tm-pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tm-pillar {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}
.tm-pillar.is-on {
  border-color: var(--plum); box-shadow: 0 18px 34px -22px rgba(54, 25, 54, 0.32); transform: translateX(6px);
}
.tm-pillar h3 { font-size: 1.32rem; color: var(--plum-deep); margin-bottom: 4px; }
.tm-pillar p { color: var(--ink-soft); font-size: 0.93rem; }

/* Signature Scroll 3: Pinned Horizontal Treatment Disciplines */
.tm-hscroll {
  background: var(--plum-deep); color: #fff; padding: clamp(64px, 7vw, 96px) 0;
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden;
}
.tm-hhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.tm-hhead h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.tm-hhead p { max-width: 40ch; color: rgba(255, 255, 255, 0.78); }
.tm-track {
  display: flex; gap: 22px; padding-left: max(20px, calc((100vw - 1220px) / 2)); padding-right: 48px;
  will-change: transform;
}
.tm-tcard {
  flex: 0 0 clamp(290px, 31vw, 390px);
  background: var(--plum); border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius); padding: 28px; display: grid; gap: 12px; text-decoration: none;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.tm-tcard:hover { transform: translateY(-5px); border-color: #a7f3be; }
.tm-tcard h3 { font-size: 1.55rem; color: #fff; }
.tm-tcard p { color: rgba(255, 255, 255, 0.8); font-size: 0.94rem; }
.tm-tbar { width: var(--wrap); margin: 28px auto 0; height: 2px; background: rgba(255, 255, 255, 0.16); }
.tm-tbar i { display: block; width: 100%; height: 100%; background: var(--emerald); transform-origin: left center; transform: scaleX(0); }

/* CTA Band */
.tm-cta { background: var(--plum); color: #fff; padding: clamp(68px, 8vw, 110px) 0; }
.tm-cta-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: center; }
.tm-cta h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); margin-bottom: 12px; }
.tm-cta p { color: rgba(255, 255, 255, 0.88); max-width: 48ch; }
.tm-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* Subpages */
.page-hero {
  padding: clamp(128px, 13vw, 170px) 0 clamp(50px, 6vw, 80px);
  background: var(--orchid); border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); max-width: 17ch; margin-bottom: 14px; }
.page-hero p { font-size: 1.1rem; color: var(--ink-soft); max-width: 56ch; }

.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter-btn {
  min-height: 44px; padding: 10px 18px; border-radius: 99px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: 600 0.92rem var(--body); cursor: pointer;
}
.filter-btn[aria-pressed="true"], .filter-btn:hover { background: var(--plum); color: #fff; border-color: var(--plum); }

.treat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); gap: 22px; }
.treat-card {
  background: var(--orchid); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px;
}
.treat-card h2 { font-size: 1.5rem; color: var(--plum-deep); }
.treat-card p { color: var(--ink-soft); font-size: 0.95rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.two-col p + p { margin-top: 16px; }
.side-box { background: var(--orchid); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.88fr 1.12fr; gap: 44px; align-items: start; }
.contact-dl { display: grid; gap: 18px; margin-top: 24px; }
.contact-dl dt { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--plum); margin-bottom: 4px; }
.contact-dl dd { margin: 0; font-weight: 500; }
.contact-dl a { text-decoration: none; }
.contact-dl a:hover { text-decoration: underline; }

.form-card { background: var(--orchid); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); }
.form-card h2 { font-size: 1.95rem; margin-bottom: 8px; }
.form-sub { color: var(--ink-soft); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 0.88rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 11px 14px;
  border: 1.5px solid rgba(54, 25, 54, 0.22); border-radius: 12px; font: inherit; background: #fff;
}
.field textarea { min-height: 96px; resize: vertical; }
.consent-row { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin: 12px 0 20px; font-size: 0.88rem; color: var(--ink-soft); }
.consent-row input[type="checkbox"] { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--emerald); }
.consent-row a { color: var(--plum); font-weight: 700; }
.form-status { display: block; margin-top: 14px; font-weight: 600; font-size: 0.94rem; min-height: 1.4em; }
.form-status.ok { color: var(--emerald-dark); }
.form-status.err { color: #a62626; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Legal */
.legal-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 44px; align-items: start; }
.legal-toc { position: sticky; top: 100px; display: grid; gap: 6px; background: var(--orchid); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.legal-toc a { text-decoration: none; font-size: 0.9rem; font-weight: 600; padding: 8px 12px; border-radius: 10px; color: var(--ink-soft); }
.legal-toc a:hover { background: #fff; color: var(--ink); }
.legal-body h2 { font-size: 1.65rem; margin: 34px 0 12px; }
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--ink-soft); margin-bottom: 12px; }
.legal-body ul { padding-left: 20px; }

/* Footer */
.tm-footer { background: var(--plum-deep); color: rgba(255, 255, 255, 0.82); padding: 64px 0 92px; }
.foot-word { font-family: var(--display); font-size: clamp(2.2rem, 6.4vw, 5.6rem); color: #fff; line-height: 0.95; margin-bottom: 42px; }
.foot-word span { color: #a7f3be; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-bottom: 38px; border-bottom: 1px solid rgba(255,255,255,0.14); }
.foot-cols h4 { color: #fff; font-size: 1.12rem; margin-bottom: 14px; }
.foot-cols a, .foot-cols p { display: block; text-decoration: none; font-size: 0.92rem; margin-bottom: 8px; color: rgba(255,255,255,0.78); }
.foot-cols a:hover { color: #a7f3be; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; font-size: 0.84rem; color: rgba(255,255,255,0.66); }

.fab-call {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  min-height: 48px; padding: 12px 18px; border-radius: 99px;
  background: var(--emerald); color: #fff; font-weight: 700; font-size: 0.92rem;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,0.45);
}
.fab-call svg { width: 18px; height: 18px; }

html.tm-anim .rv { opacity: 0; transform: translateY(20px); }

@media (max-width: 960px) {
  .tm-dial-grid, .tm-cta-grid, .two-col, .contact-grid, .legal-wrap { grid-template-columns: 1fr; }
  .tm-cta-actions { justify-content: flex-start; }
  .tm-hours-band, .foot-cols { grid-template-columns: 1fr 1fr; }
  .legal-toc { position: static; }
}

@media (max-width: 780px) {
  .tm-tel, .tm-header .btn { display: none; }
  .tm-menu-btn { display: inline-flex; margin-left: auto; }
  .tm-nav {
    position: fixed; inset: 0; background: var(--plum-deep); color: #fff;
    flex-direction: column; justify-content: center; align-items: center; gap: 14px;
    padding: 32px; opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease);
  }
  .tm-nav.open { opacity: 1; pointer-events: auto; }
  .tm-nav a { font-size: 1.45rem; padding: 12px 24px; }
  .form-row, .tm-hours-band, .foot-cols { grid-template-columns: 1fr; }
  .tm-dial-sec { padding: 48px 0 28px; }
  .tm-dial-grid { gap: 16px; }
  .tm-dial-box { padding: 16px; }
  .tm-dial-svg { width: 120px; }
  .tm-dial-readout { font-size: 1.15rem; margin-top: 8px; }
  .tm-pillars { gap: 8px; }
  .tm-pillar { padding: 12px 14px; }
  .tm-pillar h3 { font-size: 1.1rem; }
  .tm-pillar p { font-size: 0.84rem; line-height: 1.4; }
  .tm-pillar.is-on { transform: none; }
  .fab-call { width: 48px; height: 48px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  .fab-call svg { width: 20px; height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .tm-loader { display: none !important; }
  .tm-statement .w { opacity: 1; }
  html.tm-anim .rv { opacity: 1; transform: none; }
}
