@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600&family=Noto+Serif+TC:wght@400;500;600;700&display=swap');

:root {
  --paper: #f2efe7;
  --paper-deep: #e5dfd2;
  --gold: #f6c515;
  --brown: #6b4b3b;
  --brown-dark: #33251f;
  --red: #b33a2e;
  --sage: #d6dad0;
  --clinic-warm: #ded0b7;
  --clinic-soft: #ebe5d8;
  --clinic-quiet: #f0ece3;
  --ink: #1c1a17;
  --line: rgba(28, 26, 23, 0.28);
  --serif: 'Noto Serif TC', 'DFKai-SB', 'STKaiti', 'KaiTi', serif;
  --sans: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--paper); }

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.modal-open { overflow: hidden; }

button, a, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.home-page::before,
.inner-page::before {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--brown-dark);
  content: '';
}

.home-shell {
  display: flex;
  width: 100%;
  min-height: 100vh;
  flex-direction: column;
  padding: clamp(28px, 5vw, 76px) clamp(18px, 6vw, 94px) clamp(18px, 3vw, 42px);
}

.site-intro,
.home-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-intro { margin: 0 auto clamp(20px, 4vw, 48px); width: min(100%, 1380px); }
.eyebrow, .tile-index, .section-label, .modal-kicker {
  margin: 0;
  color: currentColor;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow { color: var(--brown); }
.intro-note { margin: 0; font-family: var(--serif); font-size: 0.86rem; }

.tile-grid {
  display: grid;
  width: min(100%, 1380px);
  min-height: min(71vh, 760px);
  margin: 0 auto;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, minmax(260px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.tile {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: clamp(24px, 3.4vw, 54px);
  overflow: hidden;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  text-align: left;
  cursor: pointer;
  isolation: isolate;
}

.tile::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--tile-image, none) center / cover no-repeat;
  content: '';
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 500ms ease, transform 700ms cubic-bezier(.2,.7,.2,1);
}

.tile::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(140deg, rgba(28, 26, 23, 0.04), rgba(28, 26, 23, 0.5));
  content: '';
  opacity: 0;
  transition: opacity 500ms ease;
}

.tile:hover::before, .tile:focus-visible::before { opacity: 1; transform: scale(1); }
.tile:hover::after, .tile:focus-visible::after { opacity: 1; }
.tile:hover .tile-title, .tile:focus-visible .tile-title,
.tile:hover .tile-description, .tile:focus-visible .tile-description { color: #fff; }
.tile:hover .tile-index, .tile:focus-visible .tile-index { color: rgba(255, 255, 255, 0.78); }

.tile-clinic { --tile-image: url('img/醫館店面.jpg'); }
.tile-doctor { --tile-image: url('img/醫館室內 01.jpg'); background: var(--sage); }
.tile-logo { background: var(--gold); align-items: center; justify-content: center; text-align: center; }
.tile-appointment { background: var(--brown); color: #fff; }
.tile-payment { background: var(--paper-deep); }
.tile-payment { cursor: default; }
.tile-contact { background: var(--red); color: #fff; }

.tile-index { position: absolute; top: clamp(22px, 2.8vw, 42px); left: clamp(24px, 3.4vw, 54px); opacity: 0.68; }
.tile-logo .tile-index { left: 50%; transform: translateX(-50%); white-space: nowrap; }
.tile-title { display: block; max-width: 100%; font-family: var(--serif); font-size: clamp(1.8rem, 3.25vw, 3.2rem); font-weight: 500; line-height: 1.16; letter-spacing: -0.08em; transition: color 300ms ease; }
.tile-description { max-width: 23ch; margin: 14px 0 0; color: rgba(28, 26, 23, 0.65); font-size: 0.72rem; letter-spacing: 0.03em; line-height: 1.7; transition: color 300ms ease; }
.tile-appointment .tile-description, .tile-contact .tile-description { color: rgba(255, 255, 255, 0.74); }
.tile-arrow { position: absolute; right: clamp(22px, 2.8vw, 42px); bottom: clamp(20px, 2.5vw, 36px); color: var(--red); font-size: 1.22rem; transition: transform 300ms ease, color 300ms ease; }
.tile:hover .tile-arrow, .tile:focus-visible .tile-arrow { transform: translate(4px, -4px); }
.tile-appointment .tile-arrow, .tile-contact .tile-arrow { color: var(--gold); }

.logo-wrap { display: block; width: min(100%, 320px); margin-top: 14px; }
.logo-wrap img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.logo-caption { margin-top: 20px; color: rgba(28, 26, 23, 0.7); font-size: 0.68rem; letter-spacing: 0.1em; }
.tile-logo:hover .logo-wrap, .tile-logo:focus-visible .logo-wrap { transform: translateY(-5px); transition: transform 300ms ease; }
.title-break { display: block; }

.home-footer { width: min(100%, 1380px); margin: clamp(18px, 3vw, 30px) auto 0; color: rgba(28, 26, 23, 0.6); font-size: 0.62rem; letter-spacing: 0.04em; }

.modal-layer[hidden], .modal-panel[hidden] { display: none; }
.modal-layer { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 22px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(28, 26, 23, 0.55); backdrop-filter: blur(7px); animation: fade-in 250ms ease both; }
.modal-panel { position: relative; width: min(100%, 620px); max-height: min(88vh, 780px); overflow-y: auto; padding: clamp(30px, 6vw, 70px); background: var(--paper); box-shadow: 0 22px 80px rgba(28, 26, 23, 0.22); animation: panel-in 350ms cubic-bezier(.2,.7,.2,1) both; }
.modal-panel-wide { width: min(100%, 800px); }
.modal-close { position: absolute; top: 18px; right: 22px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.modal-close:hover { background: var(--ink); color: var(--paper); }
.modal-kicker { color: var(--red); }
.modal-panel h2 { margin: 22px 0 16px; font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 500; letter-spacing: -0.08em; line-height: 1.12; }
.modal-lede { max-width: 42ch; margin: 0; color: rgba(28, 26, 23, 0.7); font-size: 0.9rem; line-height: 1.9; }
.modal-footnote { margin: 26px 0 0; color: rgba(28, 26, 23, 0.5); font-size: 0.68rem; line-height: 1.7; }
.login-form { display: grid; gap: 10px; margin-top: 32px; }
.login-form label { color: rgba(28, 26, 23, 0.7); font-size: 0.72rem; }
.login-form input { width: 100%; padding: 15px 0; border: 0; border-bottom: 1px solid var(--ink); outline: 0; background: transparent; color: var(--ink); font-size: 1rem; }
.login-form input:focus { border-bottom-color: var(--red); box-shadow: 0 1px 0 var(--red); }
.form-error { margin: 0; color: var(--red); font-size: 0.72rem; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 15px; padding: 13px 20px; border: 1px solid var(--ink); font-size: 0.72rem; letter-spacing: 0.06em; cursor: pointer; transition: background 250ms ease, color 250ms ease, transform 250ms ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: var(--brown); }
.button-outline { background: transparent; color: var(--ink); }
.button-outline:hover { background: var(--ink); color: var(--paper); }
.action-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.record-placeholder, .payment-card { display: flex; align-items: center; gap: 18px; margin: 30px 0; padding: 20px; background: var(--paper-deep); }
.record-mark, .payment-symbol { display: grid; width: 56px; height: 56px; flex: 0 0 56px; place-items: center; background: var(--red); color: var(--gold); font-family: var(--serif); font-size: 1.7rem; }
.record-placeholder strong, .payment-card strong { font-family: var(--serif); font-size: 1.18rem; font-weight: 500; }
.record-placeholder p, .payment-card p { margin: 5px 0 0; color: rgba(28, 26, 23, 0.62); font-size: 0.76rem; line-height: 1.7; }
.info-block { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.info-label { display: block; margin-bottom: 10px; color: var(--red); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.info-block strong { font-family: var(--serif); font-size: 1.42rem; font-weight: 500; }
.info-block p { max-width: 40ch; margin: 10px 0 0; color: rgba(28, 26, 23, 0.68); font-size: 0.82rem; line-height: 1.8; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.contact-address address { font-family: var(--serif); font-size: 1.12rem; font-style: normal; line-height: 1.8; }
.text-link { display: inline-block; margin-top: 18px; color: var(--red); font-size: 0.72rem; }
.contact-links { display: grid; align-content: start; }
.contact-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-links span { display: block; margin-bottom: 5px; color: var(--red); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; }
.contact-links strong { font-size: 0.82rem; font-weight: 500; }
.social-row { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--red); font-size: 0.72rem; }
.social-row a:hover, .contact-links a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.inner-page { min-height: 100vh; padding: 5px clamp(20px, 5vw, 78px) 0; }
.inner-header, .clinic-content, .detail-content, .inner-footer { width: min(100%, 1280px); margin: 0 auto; }
.clinic-content { isolation: isolate; }
.clinic-content > section, .detail-content > section { position: relative; z-index: 0; }
.clinic-content > section::before, .detail-content > section::before { position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; background: inherit; content: ''; transform: translateX(-50%); }
.inner-header { display: flex; align-items: center; justify-content: space-between; padding: 28px 0; border-bottom: 1px solid var(--line); }
.mini-brand { display: block; width: min(280px, 38vw); }
.mini-brand img { display: block; width: 100%; height: auto; }
.mini-brand-mark { display: grid; width: 34px; height: 34px; place-items: center; background: var(--red); color: var(--gold); font-family: var(--serif); font-size: 1.1rem; }
.mini-brand strong, .mini-brand small { display: block; }
.mini-brand strong { font-family: var(--serif); font-size: 1rem; font-weight: 500; letter-spacing: 0.08em; }
.mini-brand small { margin-top: 2px; color: rgba(28, 26, 23, 0.55); font-size: 0.5rem; letter-spacing: 0.13em; }
.back-home { color: var(--red); font-size: 0.7rem; }
.back-home:hover { text-decoration: underline; text-underline-offset: 5px; }
.detail-content { isolation: isolate; }
.detail-hero { display: grid; grid-template-columns: 1.6fr 0.8fr; gap: 40px; align-items: end; padding: clamp(70px, 12vw, 160px) clamp(24px, 5vw, 76px) clamp(70px, 9vw, 120px); background: var(--clinic-warm); }
.detail-hero h1 { margin: 18px 0 0; font-family: var(--serif); font-size: clamp(2.35rem, 4.2vw, 5.25rem); font-weight: 500; letter-spacing: -0.1em; line-height: 1.18; }
.detail-hero h1 em { color: var(--red); font-style: normal; }
.detail-hero .hero-aside { margin-bottom: 8px; }
.detail-hero-appointment { background: var(--brown); color: var(--paper); }
.detail-hero-appointment .eyebrow, .detail-hero-appointment h1 em { color: var(--gold); }
.detail-hero-appointment .hero-aside { color: rgba(242, 239, 231, 0.76); }
.detail-hero-payment { background: var(--clinic-soft); }
.detail-hero-contact { background: var(--clinic-warm); color: var(--ink); }
.detail-hero-contact .eyebrow, .detail-hero-contact h1 em { color: var(--red); }
.detail-hero-contact .hero-aside { color: rgba(28, 26, 23, 0.66); }
.profile-section, .appointment-contact, .payment-intro, .contact-detail-section { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(42px, 9vw, 140px); align-items: start; padding: clamp(80px, 12vw, 160px) clamp(24px, 5vw, 76px); background: var(--clinic-soft); }
.profile-card { display: flex; align-items: center; gap: 28px; }
.profile-mark { display: grid; width: clamp(86px, 10vw, 138px); height: clamp(86px, 10vw, 138px); flex: 0 0 auto; place-items: center; background: var(--red); color: var(--gold); font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 5rem); }
.profile-card h2 { margin: 18px 0 2px; font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 3.8rem); font-weight: 500; letter-spacing: -0.1em; }
.profile-card p:last-child { margin: 0; color: rgba(28, 26, 23, 0.62); font-size: 0.78rem; }
.detail-copy { max-width: 48ch; }
.detail-copy p, .detail-lede { margin: 0 0 22px; color: rgba(28, 26, 23, 0.72); font-size: 0.9rem; line-height: 2.05; }
.detail-principles { padding: clamp(80px, 12vw, 160px) clamp(24px, 5vw, 76px); background: var(--clinic-quiet); }
.detail-heading { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(42px, 10vw, 150px); align-items: start; }
.detail-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.1rem, 4vw, 4.4rem); font-weight: 500; letter-spacing: -0.1em; line-height: 1.2; }
.principle-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: clamp(58px, 8vw, 100px) 0 0; padding: 0; border-top: 1px solid rgba(28, 26, 23, 0.28); list-style: none; }
.principle-list li { min-height: 210px; padding: 26px clamp(18px, 3vw, 42px) 20px 0; border-right: 1px solid rgba(28, 26, 23, 0.28); }
.principle-list li + li { padding-left: clamp(18px, 3vw, 42px); }
.principle-list li:last-child { border-right: 0; }
.principle-list span { color: var(--red); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em; }
.principle-list h3 { margin: 40px 0 12px; font-family: var(--serif); font-size: clamp(1.45rem, 2.1vw, 2.2rem); font-weight: 500; letter-spacing: -0.08em; }
.principle-list p { max-width: 20ch; margin: 0; color: rgba(28, 26, 23, 0.7); font-size: 0.78rem; line-height: 1.9; }
.appointment-contact { background: var(--paper-deep); }
.appointment-contact h2, .payment-intro h2 { margin: 20px 0 24px; font-family: var(--serif); font-size: clamp(2.1rem, 4vw, 4.4rem); font-weight: 500; letter-spacing: -0.1em; line-height: 1.2; }
.appointment-note { align-self: end; padding: 28px 0 28px 32px; border-left: 1px solid var(--red); }
.appointment-note span { color: var(--red); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.14em; }
.appointment-note p { max-width: 25ch; margin: 20px 0 0; font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 2.2rem); line-height: 1.65; }
.payment-intro { background: var(--paper); }
.payment-card-large { align-self: center; min-height: 220px; margin: 0; padding: 32px; }
.payment-details { background: var(--clinic-warm); }
.contact-detail-section { background: var(--clinic-soft); }
.contact-address-large address { margin: 26px 0 34px; font-family: var(--serif); font-size: clamp(1.3rem, 2.1vw, 2rem); font-style: normal; line-height: 1.8; }
.contact-detail-links { display: grid; align-content: start; }
.contact-detail-links a { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-detail-links a:first-child { border-top: 1px solid var(--line); }
.contact-detail-links span { display: block; margin-bottom: 6px; color: var(--red); font-size: 0.64rem; letter-spacing: 0.12em; }
.contact-detail-links strong { font-size: 0.92rem; font-weight: 500; }
.social-detail-section { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(42px, 10vw, 150px); padding: clamp(80px, 12vw, 150px) clamp(24px, 5vw, 76px); background: var(--clinic-warm); }
.social-detail-section h2 { margin: 20px 0 0; font-family: var(--serif); font-size: clamp(2.1rem, 4vw, 4.4rem); font-weight: 500; letter-spacing: -0.1em; line-height: 1.2; }
.social-detail-links { display: grid; align-content: start; }
.social-detail-links a { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.social-detail-links a:first-child { border-top: 1px solid var(--line); }
.social-detail-links a:hover { color: var(--red); }
.social-detail-links span { color: rgba(28, 26, 23, 0.58); font-size: 0.68rem; }
.clinic-hero { display: grid; grid-template-columns: 1.6fr 0.8fr; gap: 40px; align-items: end; padding: clamp(70px, 12vw, 160px) clamp(24px, 5vw, 76px) clamp(70px, 9vw, 120px); background: var(--clinic-warm); }
.clinic-hero h1 { margin: 18px 0 0; font-family: var(--serif); font-size: clamp(2.35rem, 4.2vw, 5.25rem); font-weight: 500; letter-spacing: -0.1em; line-height: 1.18; }
.clinic-hero h1 em { color: var(--red); font-style: normal; }
.hero-aside { max-width: 27ch; margin: 0 0 8px; color: rgba(28, 26, 23, 0.66); font-size: 0.82rem; line-height: 2; }
.clinic-gallery { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(12px, 3vw, 38px); align-items: end; padding: clamp(38px, 6vw, 78px) clamp(24px, 5vw, 76px); background: var(--clinic-soft); }
.clinic-gallery figure { margin: 0; }
.clinic-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.76) contrast(0.98); }
.gallery-main { aspect-ratio: 1.15 / 1; }
.gallery-secondary { aspect-ratio: 0.85 / 1; }
.clinic-gallery figcaption { margin-top: 12px; color: rgba(28, 26, 23, 0.55); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; }
.clinic-space { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(42px, 10vw, 150px); align-items: start; padding: clamp(80px, 12vw, 160px) clamp(24px, 5vw, 76px); background: var(--paper-deep); }
.clinic-space h2, .values-heading h2 { margin: 22px 0 0; font-family: var(--serif); font-size: clamp(2.1rem, 4vw, 4.4rem); font-weight: 500; letter-spacing: -0.1em; line-height: 1.2; }
.space-copy { max-width: 49ch; padding-top: 6px; }
.space-copy p { margin: 0 0 22px; color: rgba(28, 26, 23, 0.72); font-size: 0.92rem; line-height: 2.05; }
.clinic-story { padding: clamp(90px, 14vw, 190px) clamp(24px, 5vw, 76px); border-bottom: 1px solid var(--line); background: var(--clinic-quiet); }
.section-label { color: var(--red); }
.story-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; margin-top: 28px; }
.story-copy h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.1rem, 4.5vw, 4.8rem); font-weight: 500; letter-spacing: -0.1em; line-height: 1.2; }
.story-copy p { margin: 0 0 20px; color: rgba(28, 26, 23, 0.7); font-size: 0.86rem; line-height: 2; }
.clinic-values { padding: clamp(78px, 11vw, 150px) clamp(24px, 5vw, 76px); background: var(--clinic-warm); }
.values-heading { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(42px, 10vw, 150px); }
.values-heading h2 { margin: 0; }
.values-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: clamp(58px, 8vw, 100px) 0 0; padding: 0; border-top: 1px solid rgba(28, 26, 23, 0.28); list-style: none; }
.values-list li { min-height: 210px; padding: 26px clamp(18px, 3vw, 42px) 20px 0; border-right: 1px solid rgba(28, 26, 23, 0.28); }
.values-list li + li { padding-left: clamp(18px, 3vw, 42px); }
.values-list li:last-child { border-right: 0; }
.values-list span { color: var(--red); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em; }
.values-list h3 { margin: 40px 0 12px; font-family: var(--serif); font-size: clamp(1.45rem, 2.1vw, 2.2rem); font-weight: 500; letter-spacing: -0.08em; }
.values-list p { max-width: 20ch; margin: 0; color: rgba(28, 26, 23, 0.7); font-size: 0.78rem; line-height: 1.9; }
.inner-footer { position: relative; left: 50%; display: flex; width: 100vw; min-height: 210px; flex-direction: column; justify-content: space-between; margin-left: -50vw; padding: clamp(38px, 5vw, 58px) max(24px, calc((100vw - 1280px) / 2)) 20px; border-top: 1px solid var(--line); background: var(--paper); color: var(--ink); transform: none; font-size: 0.72rem; }
.inner-footer-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 28px; }
.footer-brand { display: block; justify-self: start; }
.footer-logo { display: block; width: min(220px, 22vw); height: auto; }
.footer-contact { display: flex; flex-direction: column; gap: 9px; justify-self: center; line-height: 1.5; }
.footer-contact a { color: var(--ink); }
.footer-contact a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 4px; }
.footer-copyright { justify-self: end; color: rgba(28, 26, 23, 0.62); line-height: 1.5; }
.inner-footer-bottom { margin-top: 48px; padding-top: 18px; border-top: 1px solid rgba(28, 26, 23, 0.2); color: rgba(28, 26, 23, 0.62); font-size: 0.62rem; line-height: 1.8; }

.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 700ms ease var(--reveal-delay, 0ms), transform 700ms cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms); }
.js [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes panel-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 760px) {
  .home-shell { padding-top: 28px; }
  .site-intro { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 22px; }
  .tile-grid { width: 100%; min-width: 0; min-height: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(230px, 1fr)); }
  .tile { width: 100%; min-width: 0; padding: 30px 20px 24px; }
  .tile-index { top: 20px; left: 20px; font-size: 0.55rem; }
  .tile-logo .tile-index { left: 50%; }
  .tile-title { font-size: clamp(1.55rem, 7vw, 2.25rem); }
  .tile-description { max-width: 100%; overflow-wrap: anywhere; font-size: 0.61rem; line-height: 1.6; }
  .tile-arrow { right: 18px; bottom: 17px; font-size: 1rem; }
  .logo-wrap { width: min(100%, 250px); max-width: 100%; }
  .logo-caption { margin-top: 14px; font-size: 0.54rem; }
  .home-footer { align-items: flex-start; flex-direction: column; gap: 6px; font-size: 0.56rem; }
  .modal-layer { padding: 12px; }
  .modal-panel { max-height: 92vh; padding: 46px 24px 28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .inner-page { padding-right: 20px; padding-left: 20px; }
  .inner-header { padding: 20px 0; }
  .mini-brand { width: min(250px, 68vw); }
  .detail-hero { display: block; padding: 70px 0 68px; }
  .detail-hero h1 { font-size: clamp(2.35rem, 11vw, 4rem); }
  .detail-hero .hero-aside { margin-top: 34px; }
  .profile-section, .appointment-contact, .payment-intro, .contact-detail-section, .social-detail-section { display: block; padding-top: 72px; padding-bottom: 72px; }
  .profile-card { margin-bottom: 52px; }
  .detail-copy { max-width: none; }
  .appointment-note { margin-top: 48px; }
  .payment-card-large { margin-top: 46px; }
  .contact-address-large { margin-bottom: 54px; }
  .social-detail-links { margin-top: 48px; }
  .detail-heading { display: block; }
  .detail-heading h2 { margin-top: 24px; }
  .principle-list { grid-template-columns: 1fr; margin-top: 46px; }
  .principle-list li, .principle-list li + li { min-height: auto; padding: 26px 0 30px; border-right: 0; border-bottom: 1px solid rgba(28, 26, 23, 0.28); }
  .principle-list li:last-child { border-bottom: 0; }
  .principle-list h3 { margin-top: 22px; }
  .clinic-hero { display: block; padding: 70px 0 68px; }
  .clinic-hero h1 { font-size: clamp(2.35rem, 11vw, 4rem); }
  .hero-aside { margin-top: 34px; }
  .clinic-gallery { grid-template-columns: 1fr; gap: 34px; }
  .gallery-main, .gallery-secondary { aspect-ratio: 1.08 / 1; }
  .clinic-space, .values-heading { grid-template-columns: 1fr; gap: 32px; }
  .clinic-space { padding-top: 72px; padding-bottom: 72px; }
  .space-copy { padding-top: 0; }
  .story-copy { display: block; }
  .story-copy h2 { margin-bottom: 35px; }
  .clinic-values { padding-top: 72px; padding-bottom: 72px; }
  .values-list { grid-template-columns: 1fr; margin-top: 46px; }
  .values-list li, .values-list li + li { min-height: auto; padding: 26px 0 30px; border-right: 0; border-bottom: 1px solid rgba(28, 26, 23, 0.28); }
  .values-list li:last-child { border-bottom: 0; }
  .values-list h3 { margin-top: 22px; }
  .inner-footer { min-height: auto; gap: 36px; padding-top: 46px; }
  .inner-footer-top { display: flex; flex-direction: column; gap: 24px; }
  .footer-logo { width: min(210px, 68vw); }
  .footer-contact, .footer-copyright { justify-self: start; }
  .inner-footer-bottom { margin-top: 0; font-size: 0.56rem; }
}

@media (max-width: 520px) {
  .home-shell { display: block; padding: 20px; }
  .home-shell .tile-grid { display: flex; width: 100%; flex-direction: column; }
  .home-shell .tile { width: 100%; height: auto; min-height: 0; flex: 0 0 auto; aspect-ratio: 1; }
  .home-shell .tile-logo { min-height: 0; }
  .home-shell .tile-logo .logo-wrap { width: min(74%, 280px); max-width: 100%; }
  .home-shell .tile-logo .logo-wrap img { display: block; width: 100%; max-width: 100%; height: auto; }
}

/* Final homepage treatment: one paper field, six quiet tiles, and consistent hover feedback. */
.home-page,
.home-page .home-shell {
  background: #e8e1d3;
}

.home-shell .tile-arrow {
  position: absolute;
  right: clamp(20px, 2.6vw, 36px);
  bottom: clamp(18px, 2.5vw, 34px);
  display: block;
  color: var(--red);
  font-size: 1rem;
  line-height: 1;
  transition: color 250ms ease, transform 250ms ease;
}

.home-shell .tile:hover,
.home-shell .tile:focus-visible {
  background: #33251f !important;
  color: var(--paper) !important;
}

.home-shell .tile:hover .tile-title,
.home-shell .tile:focus-visible .tile-title {
  color: var(--paper) !important;
  transform: none;
}

.home-shell .tile:hover .tile-arrow,
.home-shell .tile:focus-visible .tile-arrow {
  color: var(--paper) !important;
  transform: translate(3px, -3px);
}

/* Clinic introduction refresh: warm brand-led editorial layout. */
.clinic-page-v2 {
  --clinic-paper: #f2ede3;
  --clinic-sand: #e2d3bb;
  --clinic-gold: #e2b400;
  --clinic-ink: #33251f;
  --clinic-red: #b33a2e;
  --clinic-line: rgba(51, 37, 31, 0.24);
  background: var(--clinic-paper);
  color: var(--clinic-ink);
}

.clinic-v2-header {
  border-bottom-color: var(--clinic-line);
  background: var(--clinic-paper);
}

.clinic-v2-header .redesign-nav a,
.clinic-v2-header .redesign-nav .current { color: var(--clinic-red); }

.clinic-v2-main { width: min(100%, 1440px); margin: 0 auto; }
.clinic-v2-main > section { position: relative; }

.clinic-v2-hero {
  display: grid;
  min-height: min(760px, calc(100svh - 85px));
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  background: var(--clinic-ink);
}

.clinic-v2-hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: clamp(46px, 7vw, 100px) clamp(28px, 6vw, 88px);
  color: var(--clinic-paper);
}

.clinic-v2-label {
  margin: 0 0 20px;
  color: var(--clinic-red);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.clinic-v2-hero-copy .clinic-v2-label { color: var(--clinic-gold); }
.clinic-v2-hero h1,
.clinic-v2-intro h2,
.clinic-v2-section-heading h2,
.clinic-v2-doctors h2,
.clinic-v2-voices h2,
.clinic-v2-cta h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.11em;
  line-height: 1.12;
}

.clinic-v2-hero h1 { max-width: none; font-size: clamp(2.85rem, 4.2vw, 4.8rem); }
.clinic-v2-hero h1 em { white-space: nowrap; }
.clinic-v2-mobile-break { display: none; }
.clinic-v2-hero h1 em { color: var(--clinic-gold); font-style: normal; }
.clinic-v2-hero-text { max-width: 27ch; margin: 30px 0 0; color: rgba(242, 237, 227, 0.72); font-size: 0.88rem; line-height: 1.95; }
.clinic-v2-text-link { display: inline-flex; align-items: center; gap: 22px; margin-top: 48px; padding-bottom: 8px; border-bottom: 1px solid rgba(242, 237, 227, 0.5); color: var(--clinic-paper); font-size: 0.74rem; transition: color 250ms ease, border-color 250ms ease, gap 250ms ease; }
.clinic-v2-text-link span,
.clinic-v2-dark-link span,
.clinic-v2-cta-link span { color: var(--clinic-gold); font-size: 1rem; }
.clinic-v2-text-link:hover, .clinic-v2-text-link:focus-visible { gap: 28px; color: var(--clinic-gold); border-color: var(--clinic-gold); }

.clinic-v2-hero-image { position: relative; min-width: 0; min-height: 520px; margin: 0; overflow: hidden; background: var(--clinic-sand); }
.clinic-v2-hero-image::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(51, 37, 31, 0.02), rgba(51, 37, 31, 0.35)); content: ''; pointer-events: none; }
.clinic-v2-hero-image img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8) contrast(1.02); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.clinic-v2-hero-image:hover img { transform: scale(1.035); }
.clinic-v2-hero-image figcaption { position: absolute; z-index: 1; right: clamp(24px, 4vw, 58px); bottom: clamp(24px, 4vw, 42px); left: clamp(24px, 4vw, 58px); color: var(--clinic-paper); font-size: 0.68rem; line-height: 1.7; }

.clinic-v2-intro { display: grid; grid-template-columns: 0.72fr 0.88fr 1.16fr; gap: clamp(32px, 5vw, 84px); align-items: start; padding: clamp(86px, 11vw, 160px) clamp(28px, 6vw, 88px); background: var(--clinic-paper); }
.clinic-v2-intro-heading h2,
.clinic-v2-section-heading h2,
.clinic-v2-doctors h2,
.clinic-v2-voices h2 { font-size: clamp(2.5rem, 4.4vw, 5rem); }
.clinic-v2-intro-copy { max-width: 36ch; padding-top: 42px; }
.clinic-v2-intro-copy p { margin: 0 0 24px; color: rgba(51, 37, 31, 0.7); font-size: 0.9rem; line-height: 2.05; }
.clinic-v2-space-image { margin: 0; }
.clinic-v2-space-image img { display: block; width: 100%; aspect-ratio: 0.92 / 1; object-fit: cover; filter: saturate(0.76); }
.clinic-v2-space-image figcaption { margin-top: 12px; color: rgba(51, 37, 31, 0.58); font-size: 0.62rem; line-height: 1.7; }

.clinic-v2-services { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(48px, 9vw, 140px); padding: clamp(86px, 11vw, 150px) clamp(28px, 6vw, 88px); background: var(--clinic-sand); }
.clinic-v2-section-heading > p:last-child { max-width: 33ch; margin: 30px 0 0; color: rgba(51, 37, 31, 0.68); font-size: 0.86rem; line-height: 2; }
.clinic-v2-service-list { border-top: 1px solid var(--clinic-line); }
.clinic-v2-service { display: grid; grid-template-columns: 38px 1fr auto; gap: 22px; align-items: start; padding: 25px 0 27px; border-bottom: 1px solid var(--clinic-line); transition: padding 250ms ease, color 250ms ease; }
.clinic-v2-service:hover { padding-right: 8px; padding-left: 8px; color: var(--clinic-red); }
.clinic-v2-service-mark { color: var(--clinic-red); font-family: var(--serif); font-size: 1.1rem; }
.clinic-v2-service h3 { margin: 0; font-family: var(--serif); font-size: clamp(1.65rem, 2.7vw, 2.8rem); font-weight: 500; letter-spacing: -0.09em; }
.clinic-v2-service p { max-width: 35ch; margin: 10px 0 0; color: rgba(51, 37, 31, 0.65); font-size: 0.78rem; line-height: 1.9; }
.clinic-v2-service-arrow { color: var(--clinic-red); font-size: 1rem; transition: transform 250ms ease; }
.clinic-v2-service:hover .clinic-v2-service-arrow { transform: translate(4px, -4px); }

.clinic-v2-doctors { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(48px, 10vw, 150px); align-items: stretch; padding: clamp(86px, 11vw, 150px) clamp(28px, 6vw, 88px); background: var(--clinic-ink); color: var(--clinic-paper); }
.clinic-v2-doctors-visual { display: grid; min-height: 520px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(24px, 4vw, 56px); padding: clamp(28px, 5vw, 64px); background: transparent; color: var(--clinic-paper); }
.clinic-v2-seal { font-family: var(--serif); font-size: clamp(5rem, 12vw, 10.5rem); line-height: 0.87; }
.clinic-v2-vertical-note { margin: 0; color: rgba(242, 237, 227, 0.92); font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 2.35rem); letter-spacing: 0.16em; line-height: 1.4; text-orientation: upright; writing-mode: vertical-rl; }
.clinic-v2-doctors-copy { align-self: center; }
.clinic-v2-doctors-copy .clinic-v2-label { color: var(--clinic-gold); }
.clinic-v2-doctors-copy h2 { color: var(--clinic-paper); }
.clinic-v2-doctor-snapshot { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 28px; margin-top: 44px; padding-top: 18px; border-top: 1px solid rgba(242, 237, 227, 0.25); }
.clinic-v2-doctor-snapshot + .clinic-v2-doctor-snapshot { margin-top: 22px; }
.clinic-v2-doctor-snapshot span { display: block; color: var(--clinic-gold); font-size: 0.62rem; letter-spacing: 0.1em; }
.clinic-v2-doctor-snapshot strong { display: block; margin-top: 14px; font-family: var(--serif); font-size: 1.6rem; font-weight: 500; letter-spacing: -0.08em; }
.clinic-v2-doctor-snapshot p { max-width: 32ch; margin: 0; color: rgba(242, 237, 227, 0.7); font-size: 0.8rem; line-height: 1.95; }
.clinic-v2-dark-link { display: inline-flex; align-items: center; gap: 22px; margin-top: 48px; padding-bottom: 8px; border-bottom: 1px solid rgba(242, 237, 227, 0.45); color: var(--clinic-paper); font-size: 0.74rem; transition: color 250ms ease, gap 250ms ease; }
.clinic-v2-dark-link:hover, .clinic-v2-dark-link:focus-visible { gap: 28px; color: var(--clinic-gold); }

.clinic-v2-voices { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(44px, 10vw, 150px); align-items: end; padding: clamp(86px, 11vw, 150px) clamp(28px, 6vw, 88px); background: #d8cbb5; color: var(--clinic-ink); }
.clinic-v2-voices .clinic-v2-label { color: var(--clinic-red); }
.clinic-v2-voices h2 { color: var(--clinic-ink); }
.clinic-v2-voices blockquote { margin: 0; padding-left: clamp(24px, 4vw, 58px); border-left: 1px solid rgba(51, 37, 31, 0.35); }
.clinic-v2-voices blockquote p { max-width: 28ch; margin: 0; font-family: var(--serif); font-size: clamp(1.65rem, 3.1vw, 3.25rem); letter-spacing: -0.08em; line-height: 1.48; }
.clinic-v2-voices cite { display: block; margin-top: 30px; color: rgba(51, 37, 31, 0.65); font-size: 0.68rem; font-style: normal; }

.clinic-v2-cta { display: flex; align-items: end; justify-content: space-between; gap: 36px; padding: clamp(74px, 9vw, 120px) clamp(28px, 6vw, 88px); background: var(--clinic-paper); }
.clinic-v2-cta h2 { max-width: 15ch; font-size: clamp(2.5rem, 4.5vw, 5rem); }
.clinic-v2-cta-link { display: inline-flex; min-width: 160px; align-items: center; justify-content: space-between; gap: 22px; padding: 17px 18px; border: 1px solid var(--clinic-ink); background: var(--clinic-ink); color: var(--clinic-paper); font-size: 0.76rem; transition: background 250ms ease, color 250ms ease; }
.clinic-v2-cta-link:hover, .clinic-v2-cta-link:focus-visible { background: var(--clinic-gold); color: var(--clinic-ink); }
.clinic-v2-cta-link:hover span, .clinic-v2-cta-link:focus-visible span { color: var(--clinic-ink); }
.clinic-v2-footer { background: var(--clinic-paper); }

@media (max-width: 760px) {
  .clinic-v2-hero { display: flex; flex-direction: column; }
  .clinic-v2-hero-copy { min-height: 520px; padding: 58px 24px 54px; }
  .clinic-v2-hero-image { min-height: 380px; }
  .clinic-v2-intro { display: block; padding: 76px 24px; }
  .clinic-v2-intro-copy { max-width: 46ch; padding-top: 34px; }
  .clinic-v2-space-image { width: min(100%, 560px); margin-top: 52px; }
  .clinic-v2-services { display: block; padding: 76px 24px; }
  .clinic-v2-service-list { margin-top: 54px; }
  .clinic-v2-doctors { display: block; padding: 76px 24px; }
  .clinic-v2-doctors-visual { min-height: 390px; }
  .clinic-v2-doctors-copy { margin-top: 62px; }
  .clinic-v2-doctor-snapshot { grid-template-columns: 0.7fr 1.3fr; }
  .clinic-v2-voices { display: block; padding: 76px 24px; }
  .clinic-v2-voices blockquote { margin-top: 52px; }
  .clinic-v2-cta { display: block; padding: 76px 24px; }
  .clinic-v2-cta-link { margin-top: 42px; }
}

@media (max-width: 520px) {
  .clinic-v2-header { padding-right: 20px; padding-left: 20px; }
  .clinic-v2-hero-copy, .clinic-v2-intro, .clinic-v2-services, .clinic-v2-doctors, .clinic-v2-voices, .clinic-v2-cta { padding-right: 20px; padding-left: 20px; }
  .clinic-v2-hero h1 { font-size: clamp(2.65rem, 11vw, 3.7rem); }
  .clinic-v2-hero h1 em { white-space: normal; }
  .clinic-v2-mobile-break { display: block; }
  .clinic-v2-service { grid-template-columns: 28px 1fr auto; gap: 12px; }
  .clinic-v2-doctor-snapshot { display: block; }
  .clinic-v2-doctor-snapshot p { margin-top: 16px; }
  .clinic-v2-voices blockquote { padding-left: 20px; }
  .clinic-v2-voices blockquote p { font-size: clamp(1.45rem, 8vw, 2.2rem); }
}

/* Home hover: use the reference dark-brown tone as the only interaction colour. */
.home-shell .tile { transition: background-color 300ms ease, color 300ms ease; }
.home-shell .tile:hover, .home-shell .tile:focus-visible { background: var(--brown-dark) !important; color: var(--paper) !important; }
.home-shell .tile:hover .tile-title, .home-shell .tile:focus-visible .tile-title { color: var(--paper) !important; }

/* Home finish: one quiet paper tone and a small corner gesture. */
.home-page { background: #e8e1d3; }
.home-page .home-shell { position: relative; }
.home-page .tile, .home-page .tile:nth-child(2n) { background: #e8e1d3 !important; }

/* Home: a quiet two-colour square index. */
.home-page { background: var(--paper); }
.home-shell { display: grid; min-height: 100svh; padding: clamp(20px, 4vw, 56px); place-items: center; }
.tile-grid { width: min(100%, 1100px); min-height: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); }
.tile { aspect-ratio: 1; align-items: center; justify-content: center; padding: clamp(22px, 3vw, 48px); border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper) !important; color: var(--ink) !important; }
.tile:nth-child(2n) { background: var(--paper) !important; }
.tile:nth-child(3n) { border-right: 0; }
.tile:nth-child(n + 4) { border-bottom: 0; }
.tile::before, .tile::after { display: none; }
.tile-title { max-width: 100%; margin: 0; color: inherit; font-size: clamp(1.65rem, 3.4vw, 3.35rem); line-height: 1.2; text-align: center; transition: transform 300ms cubic-bezier(.2,.7,.2,1); }
.tile:hover .tile-title, .tile:focus-visible .tile-title { transform: translateY(-5px); }
.tile-logo .logo-wrap { width: min(92%, 420px); margin: 0; }
.tile-logo .logo-wrap img { mix-blend-mode: multiply; }
.tile-logo:hover .logo-wrap, .tile-logo:focus-visible .logo-wrap { transform: translateY(-5px); transition: transform 300ms cubic-bezier(.2,.7,.2,1); }
.tile-index, .tile-description, .tile-arrow, .logo-caption { display: none; }

@media (max-width: 520px) {
  .home-shell { padding: 20px; }
  .tile-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .tile { aspect-ratio: 1; border-right: 0; border-bottom: 1px solid var(--line); }
  .tile:nth-child(3n) { border-right: 0; }
  .tile:nth-child(n + 4) { border-bottom: 1px solid var(--line); }
  .tile:last-child { border-bottom: 0; }
  .tile-title { font-size: clamp(1.9rem, 10vw, 3rem); }
  .tile-logo .logo-wrap { width: min(74%, 280px); }
}

@media (max-width: 520px) {
  .tile-grid { grid-template-columns: 1fr; grid-template-rows: repeat(6, minmax(220px, 1fr)); }
  .tile-logo { min-height: 250px; }
}

/* Secondary pages: a quieter diagnostic-archive system, separate from the home grid. */
.redesign-page { --page-max: 1360px; }
.redesign-header { position: relative; display: grid; width: min(100%, var(--page-max)); min-height: 84px; grid-template-columns: 1fr auto; align-items: center; gap: 24px; margin: 0 auto; border-bottom: 1px solid var(--line); }
.redesign-logo { display: block; width: min(236px, 24vw); }
.redesign-logo img { display: block; width: 100%; height: auto; }
.redesign-nav { display: flex; align-items: center; gap: 25px; font-size: 0.68rem; }
.redesign-nav a { color: rgba(28, 26, 23, 0.62); }
.redesign-nav a:hover, .redesign-nav .current { color: var(--red); }
.redesign-nav .current { padding-left: 25px; border-left: 1px solid var(--line); }
.redesign-main { width: min(100%, var(--page-max)); margin: 0 auto; isolation: isolate; }
.redesign-main > section { position: relative; z-index: 0; }
.redesign-main > section::before { position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; background: inherit; content: ''; transform: translateX(-50%); }
.redesign-hero { display: grid; grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); min-height: min(680px, calc(100vh - 89px)); gap: clamp(40px, 8vw, 130px); align-items: stretch; padding: clamp(56px, 7vw, 96px) clamp(24px, 5vw, 76px); background: var(--clinic-warm); }
.redesign-hero-copy { display: flex; max-width: 620px; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding-bottom: clamp(8px, 3vw, 38px); }
.redesign-kicker { margin: 0 0 22px; color: var(--red); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; }
.redesign-hero h1 { max-width: none; margin: 0; font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 5.6rem); font-weight: 500; letter-spacing: -0.11em; line-height: 1.06; }
.redesign-hero h1 em { color: var(--red); font-style: normal; }
.redesign-hero-lede { max-width: 29ch; margin: 30px 0 0; color: rgba(28, 26, 23, 0.68); font-size: 0.86rem; line-height: 1.9; }
.redesign-hero-media { position: relative; min-height: 420px; margin: 0; overflow: hidden; background: var(--paper-deep); }
.redesign-hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.68) contrast(0.98); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.redesign-hero-media:hover img { transform: scale(1.035); }
.media-caption { position: absolute; right: 22px; bottom: 18px; left: 22px; display: flex; justify-content: space-between; color: var(--paper); font-size: 0.62rem; letter-spacing: 0.08em; text-shadow: 0 1px 12px rgba(28, 26, 23, 0.45); }
.redesign-section { padding: clamp(80px, 12vw, 170px) clamp(24px, 5vw, 76px); }
.redesign-section-paper { background: var(--paper); }
.redesign-section-soft { background: var(--clinic-soft); }
.redesign-section-deep { background: var(--paper-deep); }
.redesign-section-warm { background: var(--clinic-warm); }
.section-heading { max-width: 760px; }
.section-heading h2 { max-width: 14ch; margin: 18px 0 0; font-family: var(--serif); font-size: clamp(2.35rem, 4.7vw, 5rem); font-weight: 500; letter-spacing: -0.11em; line-height: 1.12; }
.section-heading p:not(.redesign-kicker) { max-width: 58ch; margin: 24px 0 0; color: rgba(28, 26, 23, 0.7); font-size: 0.88rem; line-height: 2; }
.section-heading-wide { max-width: none; }
.section-heading-wide h2 { max-width: 19ch; }
.archive-row { display: grid; grid-template-columns: 0.74fr 1.26fr; gap: clamp(42px, 10vw, 160px); align-items: start; }
.archive-copy { max-width: 51ch; padding-top: 8px; }
.archive-copy p { margin: 0 0 23px; color: rgba(28, 26, 23, 0.72); font-size: 0.9rem; line-height: 2.08; }
.archive-rule { margin-top: clamp(58px, 8vw, 100px); border-top: 1px solid var(--line); }
.archive-rule-item { display: grid; grid-template-columns: 0.22fr 0.78fr; gap: 22px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.archive-rule-item span { color: var(--red); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.12em; }
.archive-rule-item h3 { margin: 0; font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 2.15rem); font-weight: 500; letter-spacing: -0.08em; }
.archive-rule-item p { max-width: 38ch; margin: 9px 0 0; color: rgba(28, 26, 23, 0.68); font-size: 0.78rem; line-height: 1.9; }
.image-pair { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(14px, 3vw, 42px); align-items: end; margin-top: clamp(60px, 9vw, 120px); }
.image-pair figure { margin: 0; }
.image-pair img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.72); }
.image-pair .image-large { aspect-ratio: 1.17 / 1; }
.image-pair .image-tall { aspect-ratio: 0.82 / 1; }
.image-pair figcaption { margin-top: 12px; color: rgba(28, 26, 23, 0.55); font-size: 0.61rem; letter-spacing: 0.08em; }
.redesign-footer { width: min(100%, var(--page-max)); margin: 0 auto; padding: clamp(48px, 6vw, 74px) clamp(24px, 5vw, 76px) 22px; border-top: 1px solid var(--line); background: var(--paper); }
.redesign-footer-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 28px; }
.redesign-footer .footer-logo { width: min(220px, 22vw); }
.redesign-footer .footer-contact { display: flex; flex-direction: column; gap: 9px; justify-self: center; font-size: 0.72rem; line-height: 1.5; }
.redesign-footer .footer-contact a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 4px; }
.redesign-footer .footer-copyright { justify-self: end; color: rgba(28, 26, 23, 0.62); font-size: 0.72rem; line-height: 1.5; }
.redesign-footer-bottom { margin-top: 48px; padding-top: 18px; border-top: 1px solid rgba(28, 26, 23, 0.2); color: rgba(28, 26, 23, 0.62); font-size: 0.62rem; line-height: 1.8; }

/* Doctor profile */
.doctor-portrait { display: grid; min-height: 100%; place-items: center; background: var(--brown-dark); color: var(--gold); }
.doctor-portrait span { font-family: var(--serif); font-size: clamp(9rem, 20vw, 18rem); line-height: 0.8; }
.doctor-portrait small { position: absolute; right: 24px; bottom: 20px; color: var(--paper); font-size: 0.62rem; letter-spacing: 0.08em; }
.doctor-profile { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(42px, 10vw, 160px); align-items: center; }
.doctor-profile h2, .appointment-panel h2, .payment-status h2 { margin: 18px 0 0; font-family: var(--serif); font-size: clamp(2.3rem, 4.3vw, 4.8rem); font-weight: 500; letter-spacing: -0.11em; line-height: 1.12; }
.doctor-profile > div > p:last-child { margin: 8px 0 0; color: rgba(28, 26, 23, 0.62); font-size: 0.8rem; }
.doctor-profile-copy { max-width: 51ch; }
.doctor-profile-copy p { margin: 0 0 22px; color: rgba(28, 26, 23, 0.72); font-size: 0.9rem; line-height: 2.05; }

/* Appointment */
.appointment-hero { background: var(--brown-dark); color: var(--paper); }
.appointment-hero .redesign-kicker, .appointment-hero h1 em { color: var(--gold); }
.appointment-hero-lede { color: rgba(242, 239, 231, 0.74); }
.appointment-panel { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(42px, 10vw, 150px); align-items: end; }
.appointment-panel h2 { max-width: 10ch; }
.appointment-panel .detail-lede { max-width: 48ch; margin: 28px 0 0; color: rgba(28, 26, 23, 0.7); font-size: 0.9rem; line-height: 2; }
.appointment-contact-card { padding: 30px; border-left: 1px solid var(--red); }
.appointment-contact-card span { color: var(--red); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.13em; }
.appointment-contact-card strong { display: block; margin: 22px 0 12px; font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 2.3rem); font-weight: 500; letter-spacing: -0.06em; line-height: 1.45; }
.appointment-contact-card p { margin: 0; color: rgba(28, 26, 23, 0.65); font-size: 0.78rem; line-height: 1.9; }
.appointment-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.appointment-actions .button { white-space: nowrap; }
.appointment-process { background: var(--clinic-soft); }

/* Payment */
.payment-hero { background: var(--clinic-soft); }
.payment-status { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(42px, 10vw, 150px); align-items: center; }
.payment-status-copy { max-width: 50ch; }
.payment-status-copy p { margin: 26px 0 0; color: rgba(28, 26, 23, 0.7); font-size: 0.9rem; line-height: 2; }
.payment-status-card { display: grid; min-height: 250px; align-content: space-between; padding: 30px; border: 1px solid var(--line); background: var(--paper-deep); }
.payment-status-card > span { color: var(--red); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.12em; }
.payment-status-card strong { font-family: var(--serif); font-size: clamp(2rem, 4vw, 4rem); font-weight: 500; letter-spacing: -0.1em; }
.payment-status-card p { max-width: 28ch; margin: 0; color: rgba(28, 26, 23, 0.68); font-size: 0.78rem; line-height: 1.9; }
.payment-details { background: var(--paper); }

/* Contact */
.contact-hero { background: var(--clinic-warm); }
.contact-location { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(42px, 9vw, 140px); align-items: stretch; }
.contact-location address { margin: 22px 0 32px; font-family: var(--serif); font-size: clamp(1.45rem, 2.7vw, 2.8rem); font-style: normal; letter-spacing: -0.08em; line-height: 1.65; }
.contact-links-new { display: grid; align-content: start; border-top: 1px solid var(--line); }
.contact-links-new a { display: flex; justify-content: space-between; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.contact-links-new span { color: var(--red); font-size: 0.64rem; letter-spacing: 0.12em; }
.contact-links-new strong { font-size: 0.85rem; font-weight: 500; }
.contact-photo { min-height: 420px; overflow: hidden; }
.contact-photo img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.68); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.contact-photo:hover img { transform: scale(1.035); }
.contact-social { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(42px, 10vw, 150px); align-items: start; background: var(--paper-deep); }

/* Records workspace */
.records-page { background: var(--brown-dark); color: var(--paper); }
.records-page .redesign-header { border-color: rgba(242, 239, 231, 0.2); }
.records-page .redesign-logo { filter: saturate(0.85); }
.records-page .redesign-nav a { color: rgba(242, 239, 231, 0.62); }
.records-page .redesign-nav a:hover, .records-page .redesign-nav .current { color: var(--gold); }
.records-page .redesign-nav .current { border-color: rgba(242, 239, 231, 0.25); }
.records-main { width: min(100%, var(--page-max)); margin: 0 auto; }
.records-hero { display: flex; min-height: 310px; flex-direction: column; justify-content: flex-end; padding: 54px clamp(24px, 5vw, 76px); background: var(--brown); }
.records-hero .redesign-kicker { color: var(--gold); }
.records-hero h1 { max-width: 10ch; margin: 0; font-family: var(--serif); font-size: clamp(3rem, 6vw, 6.4rem); font-weight: 500; letter-spacing: -0.11em; line-height: 1; }
.records-hero p { max-width: 45ch; margin: 22px 0 0; color: rgba(242, 239, 231, 0.72); font-size: 0.84rem; line-height: 1.9; }
.records-board { padding: clamp(58px, 9vw, 110px) clamp(24px, 5vw, 76px); background: var(--brown-dark); }
.records-board-top { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding-bottom: 22px; border-bottom: 1px solid rgba(242, 239, 231, 0.2); }
.records-board-top h2 { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 3.8rem); font-weight: 500; letter-spacing: -0.1em; }
.records-board-top span { color: var(--gold); font-size: 0.66rem; letter-spacing: 0.12em; }
.records-empty { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; max-width: 700px; margin-top: 54px; padding: 28px 0; }
.records-empty-mark { display: grid; width: 72px; height: 72px; place-items: center; border: 1px solid rgba(246, 197, 21, 0.6); color: var(--gold); font-family: var(--serif); font-size: 2rem; }
.records-empty strong { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; }
.records-empty p { margin: 8px 0 0; color: rgba(242, 239, 231, 0.68); font-size: 0.78rem; line-height: 1.8; }
.records-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 46px; background: rgba(242, 239, 231, 0.2); }
.records-actions a { min-height: 150px; padding: 22px; background: var(--brown-dark); }
.records-actions a:hover { background: var(--brown); }
.records-actions span { color: var(--gold); font-size: 0.64rem; letter-spacing: 0.12em; }
.records-actions h3 { margin: 38px 0 0; font-family: var(--serif); font-size: 1.4rem; font-weight: 500; letter-spacing: -0.07em; }
.records-footer { width: min(100%, var(--page-max)); padding: 20px clamp(24px, 5vw, 76px) 28px; color: rgba(242, 239, 231, 0.58); font-size: 0.62rem; }

@media (max-width: 760px) {
  .redesign-header { display: flex; min-height: 72px; justify-content: space-between; }
  .redesign-logo { width: min(210px, 60vw); }
  .redesign-nav { position: absolute; top: 27px; right: 0; flex-shrink: 0; gap: 12px; font-size: 0.61rem; }
  .redesign-nav .current { display: none; }
  .redesign-hero { display: flex; min-height: auto; flex-direction: column; gap: 42px; padding: 64px 0 0; }
  .redesign-hero-copy, .redesign-hero-media, .archive-row > *, .image-pair > * { min-width: 0; }
  .redesign-hero-copy { max-width: none; padding: 0 0 58px; }
  .redesign-hero h1 { max-width: none; font-size: clamp(2.6rem, 11vw, 4.2rem); }
  .redesign-hero-lede { max-width: 34ch; margin-top: 24px; }
  .redesign-hero-media { width: 100%; min-height: 360px; }
  .redesign-section { padding: 72px 0; }
  .archive-row, .doctor-profile, .appointment-panel, .payment-status, .contact-location, .contact-social { display: block; }
  .archive-copy, .doctor-profile-copy { max-width: none; margin-top: 36px; }
  .archive-rule { margin-top: 44px; }
  .archive-rule-item { grid-template-columns: 42px 1fr; }
  .image-pair { grid-template-columns: 1.1fr 0.9fr; gap: 12px; margin-top: 54px; }
  .doctor-portrait { min-height: 360px; margin-bottom: 48px; }
  .appointment-panel h2, .payment-status h2 { max-width: 12ch; }
  .appointment-contact-card { margin-top: 48px; padding: 24px 0 24px 24px; }
  .payment-status-card { min-height: 220px; margin-top: 48px; }
  .contact-address-large { margin-bottom: 54px; }
  .contact-photo { min-height: 340px; margin-top: 54px; }
  .redesign-footer { padding: 48px 0 20px; }
  .redesign-footer-top { display: flex; flex-direction: column; gap: 24px; }
  .redesign-footer .footer-logo { width: min(210px, 68vw); }
  .redesign-footer .footer-contact, .redesign-footer .footer-copyright { justify-self: start; }
  .redesign-footer-bottom { margin-top: 28px; }
  .records-hero { min-height: 280px; padding: 48px 0; }
  .records-board { padding: 58px 0 76px; }
  .records-board-top { align-items: start; flex-direction: column; gap: 14px; }
  .records-empty { grid-template-columns: 1fr; gap: 18px; margin-top: 36px; }
  .records-actions { grid-template-columns: 1fr; }
  .records-actions a { min-height: 120px; }
  .records-actions h3 { margin-top: 22px; }
  .records-footer { padding: 20px 0 28px; }
}

/* Contact page refresh: a practical, brand-led contact layout. */
.contact-page { --contact-yellow: #f6c515; --contact-brown: #3b2a22; --contact-red: #b33a2e; }
.contact-main { width: min(100%, var(--page-max)); margin: 0 auto; }
.contact-banner { position: relative; display: grid; min-height: 470px; grid-template-columns: 1.08fr 0.92fr; gap: clamp(40px, 8vw, 130px); align-items: end; overflow: clip; padding: clamp(54px, 8vw, 100px) clamp(28px, 6vw, 88px) clamp(42px, 6vw, 74px); background: var(--contact-yellow); color: var(--contact-brown); }
.contact-banner::after { position: absolute; right: -120px; bottom: -160px; width: 360px; height: 360px; border: 1px solid rgba(59, 42, 34, 0.28); border-radius: 50%; content: ''; }
.contact-banner-copy, .contact-banner-note { position: relative; z-index: 1; }
.contact-eyebrow { margin: 0 0 20px; color: var(--contact-red); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; }
.contact-banner h1 { max-width: none; margin: 0; font-family: var(--serif); font-size: clamp(3rem, 4.6vw, 4.7rem); font-weight: 500; letter-spacing: -0.11em; line-height: 1.08; }
.contact-banner h1 em { color: var(--contact-red); font-style: normal; }
.contact-banner-copy > p:last-child { max-width: 28ch; margin: 28px 0 0; color: rgba(59, 42, 34, 0.7); font-size: 0.86rem; line-height: 1.9; }
.contact-banner-note { justify-self: end; width: min(100%, 320px); padding-top: 22px; border-top: 1px solid rgba(59, 42, 34, 0.45); }
.contact-banner-note span { display: block; margin-bottom: 18px; color: var(--contact-red); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.12em; }
.contact-banner-note strong { display: block; font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.8rem); font-weight: 500; letter-spacing: -0.06em; line-height: 1.55; }
.contact-banner-note a { display: inline-block; margin-top: 30px; padding-bottom: 4px; border-bottom: 1px solid currentColor; font-size: 0.75rem; }
.contact-banner-note a:hover { color: var(--contact-red); }
.contact-connect, .contact-map-section { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(42px, 8vw, 130px); align-items: start; padding: clamp(78px, 10vw, 140px) clamp(28px, 6vw, 88px); }
.contact-connect { background: var(--paper); }
.contact-info h2, .contact-map-copy h2 { max-width: 11ch; margin: 0; font-family: var(--serif); font-size: clamp(2.45rem, 4.2vw, 4.6rem); font-weight: 500; letter-spacing: -0.11em; line-height: 1.12; }
.contact-intro { max-width: 34ch; margin: 26px 0 0; color: rgba(28, 26, 23, 0.68); font-size: 0.88rem; line-height: 2; }
.contact-info-list { margin-top: 48px; border-top: 1px solid var(--line); }
.contact-info-list > a, .contact-info-list > div { display: grid; grid-template-columns: 55px 1fr auto; gap: 18px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info-list span { color: var(--contact-red); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.1em; }
.contact-info-list strong { font-size: 0.84rem; font-weight: 500; line-height: 1.75; }
.contact-info-list b { color: var(--contact-red); font-size: 0.9rem; font-weight: 400; }
.contact-form-wrap { padding: clamp(28px, 4vw, 48px); background: var(--contact-brown); color: var(--paper); }
.contact-form-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 22px; border-bottom: 1px solid rgba(242, 239, 231, 0.28); }
.contact-form-heading span { font-family: var(--serif); font-size: clamp(1.5rem, 2.3vw, 2.35rem); letter-spacing: -0.08em; }
.contact-form-heading small { color: var(--contact-yellow); font-size: 0.62rem; letter-spacing: 0.1em; }
.contact-form { display: grid; gap: 22px; margin-top: 28px; }
.contact-form label { display: grid; gap: 9px; color: rgba(242, 239, 231, 0.7); font-size: 0.67rem; letter-spacing: 0.08em; }
.contact-form input, .contact-form textarea { width: 100%; min-width: 0; padding: 11px 0; border: 0; border-bottom: 1px solid rgba(242, 239, 231, 0.38); border-radius: 0; outline: 0; background: transparent; color: var(--paper); font-size: max(16px, 0.85rem); }
.contact-form textarea { resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(242, 239, 231, 0.42); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--contact-yellow); }
.contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-submit { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; padding: 15px 18px; border: 1px solid var(--contact-yellow); background: var(--contact-yellow); color: var(--contact-brown); cursor: pointer; font-size: 0.78rem; font-weight: 600; }
.contact-submit:hover { background: var(--paper); border-color: var(--paper); }
.contact-form-note { margin: -3px 0 0; color: rgba(242, 239, 231, 0.54); font-size: 0.62rem; line-height: 1.8; }
.contact-map-section { background: var(--contact-brown); color: var(--paper); }
.contact-map-copy { align-self: center; }
.contact-map-copy .contact-eyebrow { color: var(--contact-yellow); }
.contact-map-copy h2 { max-width: 12ch; }
.contact-map-copy > p:not(.contact-eyebrow) { max-width: 35ch; margin: 26px 0 0; color: rgba(242, 239, 231, 0.7); font-size: 0.86rem; line-height: 2; }
.contact-map-link { display: inline-block; margin-top: 32px; padding-bottom: 5px; border-bottom: 1px solid var(--contact-yellow); color: var(--contact-yellow); font-size: 0.76rem; }
.contact-map-link:hover { color: var(--paper); border-color: var(--paper); }
.contact-map-frame { min-height: 430px; overflow: hidden; background: var(--paper-deep); }
.contact-map-frame iframe { display: block; width: 100%; height: 100%; min-height: 430px; border: 0; filter: grayscale(0.35) sepia(0.12); }
.contact-page .redesign-footer { background: var(--paper); }

@media (max-width: 760px) {
  .contact-banner { display: flex; min-height: auto; flex-direction: column; gap: 70px; align-items: stretch; padding: 66px 24px 42px; }
  .contact-banner h1 { max-width: none; font-size: clamp(2.65rem, 12vw, 4.4rem); }
  .contact-banner-note { align-self: flex-end; width: min(100%, 300px); }
  .contact-connect, .contact-map-section { display: block; padding: 76px 24px; }
  .contact-info h2, .contact-map-copy h2 { max-width: none; font-size: clamp(2.45rem, 11vw, 4rem); }
  .contact-form-wrap { margin-top: 56px; }
  .contact-map-copy { margin-bottom: 48px; }
  .contact-map-frame, .contact-map-frame iframe { min-height: 340px; }
}

@media (max-width: 520px) {
  .contact-banner { padding-right: 20px; padding-left: 20px; }
  .contact-connect, .contact-map-section { padding-right: 20px; padding-left: 20px; }
  .contact-form-row { grid-template-columns: 1fr; gap: 22px; }
  .contact-info-list > a, .contact-info-list > div { grid-template-columns: 46px 1fr auto; gap: 12px; }
  .contact-map-frame, .contact-map-frame iframe { min-height: 300px; }
}

/* Contact information emphasis and social links. */
.contact-info-list > a, .contact-info-list > div { padding-top: 22px; padding-bottom: 22px; }
.contact-info-list span { font-size: 0.72rem; }
.contact-info-list strong { min-width: 0; overflow-wrap: anywhere; font-size: clamp(1rem, 1.35vw, 1.22rem); line-height: 1.7; }
.contact-socials { margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line); }
.contact-socials-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.contact-socials-heading span { color: var(--contact-red); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; }
.contact-socials-heading small { color: rgba(28, 26, 23, 0.54); font-size: 0.68rem; }
.contact-social-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.contact-social-list a { display: grid; min-width: 0; min-height: 86px; place-items: center; gap: 9px; padding: 12px 7px; border: 1px solid var(--line); color: var(--contact-brown); font-size: 0.68rem; transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease, transform 220ms ease; }
.contact-social-list a:hover { border-color: var(--contact-red); background: var(--contact-yellow); color: var(--contact-brown); transform: translateY(-3px); }
.social-icon { display: block; width: 28px; height: 28px; object-fit: contain; opacity: 0.86; }
.contact-social-list a > span:last-child { min-width: 0; overflow-wrap: anywhere; text-align: center; }

@media (max-width: 760px) {
  .contact-socials { margin-top: 42px; }
  .contact-social-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Final mobile home overrides: keep every entry tile square. */
@media (max-width: 520px) {
  .home-shell { display: block; padding: 20px; }
  .home-shell .tile-grid { display: flex; width: 100%; flex-direction: column; }
  .home-shell .tile { width: 100%; min-height: 0; flex: 0 0 auto; aspect-ratio: 1; }
  .home-shell .tile-logo { min-height: 0; }
  .home-shell .tile-logo .logo-wrap { width: min(86%, 340px); max-width: 100%; }
  .home-shell .tile-logo .logo-wrap img { display: block; width: 100%; max-width: 100%; height: auto; }
}

/* Final homepage treatment: one paper field, six quiet tiles, and consistent hover feedback. */
.home-page,
.home-page .home-shell {
  background: #e8e1d3;
}

.home-shell .tile-arrow {
  position: absolute;
  right: clamp(20px, 2.6vw, 36px);
  bottom: clamp(18px, 2.5vw, 34px);
  display: block;
  color: var(--red);
  font-size: 1rem;
  line-height: 1;
  transition: color 250ms ease, transform 250ms ease;
}

.home-shell .tile:hover,
.home-shell .tile:focus-visible {
  background: #33251f !important;
  background-color: #33251f !important;
  color: var(--paper) !important;
}

.home-shell .tile:hover .tile-title,
.home-shell .tile:focus-visible .tile-title {
  color: var(--paper) !important;
  transform: none;
}

.home-shell .tile:hover .tile-arrow,
.home-shell .tile:focus-visible .tile-arrow {
  color: var(--paper) !important;
  transform: translate(3px, -3px);
}

@media (max-width: 520px) {
  .contact-info, .contact-form-wrap, .contact-social-list { width: 100%; min-width: 0; max-width: 100%; }
  .contact-social-list { width: min(100%, 330px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Doctor page refresh: team-first layout with a warmer brand palette. */
.doctor-page { --page-max: 1360px; --doctor-yellow: #f6c515; --doctor-brown: #3b2a22; --doctor-red: #b33a2e; }
.doctor-main { width: min(100%, var(--page-max)); margin: 0 auto; }
.doctor-banner { position: relative; display: grid; min-height: 470px; grid-template-columns: 1.08fr 0.92fr; gap: clamp(40px, 8vw, 130px); align-items: end; overflow: clip; padding: clamp(54px, 8vw, 100px) clamp(28px, 6vw, 88px) clamp(42px, 6vw, 74px); background: var(--doctor-yellow); color: var(--doctor-brown); }
.doctor-banner > * { min-width: 0; }
.doctor-banner::after { position: absolute; top: -150px; right: -110px; width: 360px; height: 360px; border: 1px solid rgba(59, 42, 34, 0.28); border-radius: 50%; content: ''; }
.doctor-banner-copy, .doctor-banner-aside { position: relative; z-index: 1; }
.doctor-eyebrow { margin: 0 0 20px; color: var(--doctor-red); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; }
.doctor-banner h1 { max-width: none; margin: 0; font-family: var(--serif); font-size: clamp(3rem, 4.6vw, 4.7rem); font-weight: 500; letter-spacing: -0.11em; line-height: 1.08; }
.doctor-banner h1 em { color: var(--doctor-red); font-style: normal; }
.doctor-banner-copy > p:last-child { max-width: 31ch; margin: 28px 0 0; color: rgba(59, 42, 34, 0.7); font-size: 0.86rem; line-height: 1.9; }
.doctor-banner-aside { justify-self: end; width: min(100%, 320px); max-width: 100%; padding-top: 22px; border-top: 1px solid rgba(59, 42, 34, 0.45); }
.doctor-banner-aside span { display: block; margin-bottom: 18px; color: var(--doctor-red); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.12em; }
.doctor-banner-aside strong { display: block; font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.8rem); font-weight: 500; letter-spacing: -0.06em; line-height: 1.55; }
.doctor-banner-aside a { display: inline-block; margin-top: 30px; padding-bottom: 4px; border-bottom: 1px solid currentColor; font-size: 0.75rem; }
.doctor-banner-aside a:hover { color: var(--doctor-red); }
.doctor-team, .doctor-clinic { padding: clamp(82px, 11vw, 150px) clamp(28px, 6vw, 88px); background: var(--paper); }
.doctor-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.doctor-section-heading h2, .doctor-resume-heading h2 { max-width: 12ch; margin: 0; font-family: var(--serif); font-size: clamp(2.5rem, 4.4vw, 4.8rem); font-weight: 500; letter-spacing: -0.11em; line-height: 1.12; }
.doctor-section-heading > p { max-width: 34ch; margin: 0 0 4px; color: rgba(28, 26, 23, 0.64); font-size: 0.8rem; line-height: 1.95; }
.doctor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 42px); margin-top: clamp(54px, 7vw, 92px); }
.doctor-card { min-width: 0; border-top: 1px solid var(--line); }
.doctor-card figure { position: relative; margin: 0; overflow: hidden; background: var(--paper-deep); aspect-ratio: 0.82 / 1; }
.doctor-card figure::after { position: absolute; inset: 0; border: 1px solid rgba(28, 26, 23, 0.14); content: ''; pointer-events: none; }
.doctor-card img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.7) contrast(0.98); transition: transform 800ms cubic-bezier(.2,.7,.2,1), filter 400ms ease; }
.doctor-card:hover img { filter: saturate(0.9) contrast(1); transform: scale(1.035); }
.doctor-card figcaption { position: absolute; right: 18px; bottom: 16px; left: 18px; color: var(--paper); font-size: 0.64rem; letter-spacing: 0.1em; text-shadow: 0 1px 10px rgba(28, 26, 23, 0.45); }
.doctor-card-body { padding: 24px 0 0; }
.doctor-card-body > span { color: var(--doctor-red); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.12em; }
.doctor-card-body h3 { margin: 16px 0 0; font-family: var(--serif); font-size: clamp(1.65rem, 2.35vw, 2.45rem); font-weight: 500; letter-spacing: -0.08em; line-height: 1.2; }
.doctor-card-body p { max-width: 29ch; min-height: 4.1em; margin: 16px 0 0; color: rgba(28, 26, 23, 0.65); font-size: 0.78rem; line-height: 1.9; }
.doctor-card-body a { display: inline-block; margin-top: 20px; padding-bottom: 4px; border-bottom: 1px solid var(--doctor-red); color: var(--doctor-red); font-size: 0.7rem; }
.doctor-card-body a:hover { color: var(--doctor-brown); border-color: var(--doctor-brown); }
.doctor-resume { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(48px, 9vw, 150px); padding: clamp(82px, 11vw, 150px) clamp(28px, 6vw, 88px); background: var(--doctor-brown); color: var(--paper); }
.doctor-resume-heading { align-self: start; position: sticky; top: 28px; }
.doctor-resume .doctor-eyebrow { color: var(--doctor-yellow); }
.doctor-resume-heading h2 { max-width: 10ch; }
.doctor-resume-heading > p:last-child { max-width: 28ch; margin: 26px 0 0; color: rgba(242, 239, 231, 0.62); font-size: 0.78rem; line-height: 1.9; }
.doctor-resume-list { min-width: 0; border-top: 1px solid rgba(242, 239, 231, 0.26); }
.doctor-resume-list article { display: grid; grid-template-columns: 0.78fr 1.22fr; gap: clamp(24px, 4vw, 70px); padding: 30px 0 34px; border-bottom: 1px solid rgba(242, 239, 231, 0.26); }
.resume-label span { color: var(--doctor-yellow); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.1em; }
.resume-label h3 { max-width: 10ch; margin: 18px 0 0; font-family: var(--serif); font-size: clamp(1.45rem, 2vw, 2.1rem); font-weight: 500; letter-spacing: -0.07em; line-height: 1.35; }
.resume-content p { margin: 0 0 16px; color: rgba(242, 239, 231, 0.72); font-size: 0.79rem; line-height: 1.9; }
.resume-content p:last-child { margin-bottom: 0; }
.resume-content b { display: block; margin-bottom: 3px; color: var(--paper); font-size: 0.68rem; font-weight: 600; }
.doctor-clinic { background: var(--paper-deep); }
.doctor-clinic-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(34px, 7vw, 110px); align-items: start; margin-top: clamp(56px, 8vw, 100px); }
.doctor-clinic-photo { margin: 0; }
.doctor-clinic-photo img { display: block; width: 100%; aspect-ratio: 1.08 / 1; object-fit: cover; filter: saturate(0.7); }
.doctor-clinic-photo figcaption { margin-top: 13px; color: rgba(28, 26, 23, 0.56); font-size: 0.65rem; letter-spacing: 0.06em; }
.doctor-feature-list { border-top: 1px solid var(--line); }
.doctor-feature-list article { display: grid; grid-template-columns: 0.26fr 0.74fr; gap: 20px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.doctor-feature-list article > span { color: var(--doctor-red); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.1em; }
.doctor-feature-list h3 { margin: 0; font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 2rem); font-weight: 500; letter-spacing: -0.07em; }
.doctor-feature-list p { max-width: 38ch; margin: 9px 0 0; color: rgba(28, 26, 23, 0.67); font-size: 0.78rem; line-height: 1.9; }

@media (max-width: 760px) {
  .doctor-banner { display: flex; min-height: auto; flex-direction: column; gap: 70px; align-items: stretch; padding: 66px 24px 42px; }
  .doctor-banner h1 { font-size: clamp(2.65rem, 12vw, 4.4rem); }
  .doctor-banner-aside { align-self: flex-end; width: min(100%, 300px); }
  .doctor-team, .doctor-clinic { padding: 76px 24px; }
  .doctor-section-heading { display: block; }
  .doctor-section-heading > p { max-width: 35ch; margin-top: 26px; }
  .doctor-grid { grid-template-columns: 1fr; gap: 58px; margin-top: 52px; }
  .doctor-card figure { aspect-ratio: 1 / 1.12; }
  .doctor-card-body p { min-height: 0; }
  .doctor-resume { display: block; padding: 76px 24px; }
  .doctor-resume-heading { position: static; }
  .doctor-resume-list { margin-top: 54px; }
  .doctor-resume-list article { display: block; padding: 26px 0 32px; }
  .resume-content { margin-top: 24px; }
  .doctor-clinic-grid { display: block; margin-top: 54px; }
  .doctor-feature-list { margin-top: 46px; }
  .doctor-feature-list article { grid-template-columns: 52px 1fr; }
}

@media (max-width: 520px) {
  .doctor-banner, .doctor-team, .doctor-resume, .doctor-clinic { padding-right: 20px; padding-left: 20px; }
  .doctor-banner h1 { font-size: clamp(2.55rem, 11vw, 4rem); }
}

/* Appointment page refresh: a calm, front-end booking flow ready for service integration. */
.appointment-page-v2 {
  --appointment-paper: #f2ede3;
  --appointment-sand: #d8cbb5;
  --appointment-ink: #33251f;
  --appointment-red: #b33a2e;
  --appointment-gold: #e2b400;
  --appointment-line: rgba(51, 37, 31, 0.25);
  background: var(--appointment-paper);
  color: var(--appointment-ink);
}

.appointment-v2-header { border-bottom-color: var(--appointment-line); background: var(--appointment-paper); }
.appointment-v2-header .redesign-nav a, .appointment-v2-header .redesign-nav .current { color: var(--appointment-red); }
.appointment-v2-main { width: min(100%, 1440px); margin: 0 auto; }
.appointment-v2-label { margin: 0 0 20px; color: var(--appointment-red); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; }

.appointment-v2-hero { display: grid; min-height: min(540px, calc(100svh - 85px)); grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(42px, 10vw, 160px); align-items: end; padding: clamp(60px, 9vw, 116px) clamp(28px, 6vw, 88px) clamp(52px, 7vw, 92px); background: var(--appointment-sand); }
.appointment-v2-hero h1, .appointment-v2-aside h2, .appointment-v2-notes h2 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -0.11em; line-height: 1.1; }
.appointment-v2-hero h1 { max-width: 9ch; font-size: clamp(3.1rem, 5.8vw, 6rem); }
.appointment-v2-hero h1 em { color: var(--appointment-red); font-style: normal; }
.appointment-v2-hero-copy { max-width: 31ch; margin: 0 0 7px; color: rgba(51, 37, 31, 0.72); font-size: 0.9rem; line-height: 2; }

.appointment-v2-booking { display: grid; grid-template-columns: minmax(300px, 0.76fr) minmax(0, 1.24fr); background: var(--appointment-paper); }
.appointment-v2-aside { align-self: stretch; padding: clamp(44px, 6vw, 82px) clamp(28px, 5vw, 68px); background: var(--appointment-ink); color: var(--appointment-paper); }
.appointment-v2-aside-inner { position: sticky; top: clamp(24px, 3vw, 46px); padding-bottom: 36px; }
.appointment-v2-aside .appointment-v2-label { color: var(--appointment-gold); }
.appointment-v2-aside h2 { max-width: 8ch; font-size: clamp(2.55rem, 4.2vw, 4.8rem); }
.appointment-v2-aside > p:not(.appointment-v2-label) { max-width: 28ch; margin: 30px 0 0; color: rgba(242, 237, 227, 0.72); font-size: 0.82rem; line-height: 1.95; }
.appointment-v2-summary { display: grid; gap: 10px; margin-top: clamp(52px, 8vw, 108px); padding-top: 28px; border-top: 1px solid rgba(242, 237, 227, 0.25); }
.appointment-v2-summary > span { color: var(--appointment-gold); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.12em; }
.appointment-v2-summary strong { color: rgba(242, 237, 227, 0.78); font-size: 0.78rem; font-weight: 400; line-height: 1.65; }

.appointment-v2-form { padding: clamp(44px, 6vw, 82px) clamp(28px, 6vw, 88px); }
.appointment-v2-step { min-width: 0; margin: 0; padding: 0 0 34px; border: 0; border-bottom: 1px solid var(--appointment-line); }
.appointment-v2-step + .appointment-v2-step { padding-top: 34px; }
.appointment-v2-step legend { width: 100%; padding: 0; color: var(--appointment-ink); font-family: var(--serif); font-size: clamp(1.42rem, 2.3vw, 2.15rem); font-weight: 500; letter-spacing: -0.07em; }
.appointment-v2-step legend span { margin-right: 15px; color: var(--appointment-red); font-family: var(--sans); font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em; vertical-align: middle; }
.appointment-v2-doctor-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.appointment-v2-option { position: relative; display: block; min-width: 0; cursor: pointer; }
.appointment-v2-option input { position: absolute; opacity: 0; pointer-events: none; }
.appointment-v2-option span { display: grid; min-height: 120px; align-content: space-between; padding: 21px; border: 1px solid var(--appointment-line); background: transparent; transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease; }
.appointment-v2-option b { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; letter-spacing: -0.06em; }
.appointment-v2-option small { max-width: 21ch; color: rgba(51, 37, 31, 0.64); font-size: 0.66rem; line-height: 1.7; }
.appointment-v2-option:hover span, .appointment-v2-option:has(input:checked) span, .appointment-v2-option.is-selected span { border-color: var(--appointment-ink); background: var(--appointment-ink); color: var(--appointment-paper); }
.appointment-v2-option:has(input:checked) small, .appointment-v2-option.is-selected small { color: rgba(242, 237, 227, 0.72); }

.appointment-v2-date-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.appointment-v2-date { display: grid; min-height: 88px; align-content: center; gap: 6px; padding: 14px; border: 1px solid var(--appointment-line); background: transparent; color: var(--appointment-ink); cursor: pointer; transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease; }
.appointment-v2-date span { color: rgba(51, 37, 31, 0.62); font-size: 0.64rem; letter-spacing: 0.06em; }
.appointment-v2-date b { font-family: var(--serif); font-size: 1.18rem; font-weight: 500; letter-spacing: -0.05em; }
.appointment-v2-date:hover, .appointment-v2-date.is-selected { border-color: var(--appointment-red); background: var(--appointment-red); color: var(--appointment-paper); }
.appointment-v2-date.is-selected span, .appointment-v2-date:hover span { color: rgba(242, 237, 227, 0.76); }
.appointment-v2-slot-note { margin: 20px 0 0; color: rgba(51, 37, 31, 0.64); font-size: 0.72rem; line-height: 1.7; }
.appointment-v2-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.appointment-v2-slot { min-height: 52px; border: 1px solid var(--appointment-line); background: transparent; color: var(--appointment-ink); cursor: pointer; font-size: 0.78rem; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
.appointment-v2-slot:hover, .appointment-v2-slot.is-selected { border-color: var(--appointment-ink); background: var(--appointment-ink); color: var(--appointment-paper); }
.appointment-v2-slot:disabled { border-color: rgba(51, 37, 31, 0.12); color: rgba(51, 37, 31, 0.3); cursor: not-allowed; text-decoration: line-through; }

.appointment-v2-details { padding-bottom: 0; border-bottom: 0; }
.appointment-v2-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin-top: 24px; }
.appointment-v2-details-grid label { display: grid; min-width: 0; gap: 9px; color: rgba(51, 37, 31, 0.75); font-size: 0.68rem; letter-spacing: 0.06em; }
.appointment-v2-details-grid input, .appointment-v2-details-grid textarea { width: 100%; min-width: 0; padding: 11px 0; border: 0; border-bottom: 1px solid var(--appointment-ink); border-radius: 0; outline: 0; background: transparent; color: var(--appointment-ink); font-size: max(16px, 0.88rem); line-height: 1.55; }
.appointment-v2-details-grid textarea { resize: vertical; }
.appointment-v2-details-grid input::placeholder, .appointment-v2-details-grid textarea::placeholder { color: rgba(51, 37, 31, 0.4); }
.appointment-v2-details-grid input:focus, .appointment-v2-details-grid textarea:focus { border-color: var(--appointment-red); box-shadow: 0 1px 0 var(--appointment-red); }
.appointment-v2-email, .appointment-v2-message { grid-column: 1 / -1; }
.appointment-v2-error { margin: 24px 0 0; color: var(--appointment-red); font-size: 0.72rem; line-height: 1.7; }
.appointment-v2-submit { display: flex; width: min(100%, 260px); align-items: center; justify-content: space-between; gap: 20px; margin-top: 32px; padding: 16px 18px; border: 1px solid var(--appointment-ink); background: var(--appointment-ink); color: var(--appointment-paper); cursor: pointer; font-size: 0.76rem; font-weight: 600; transition: background-color 200ms ease, color 200ms ease; }
.appointment-v2-submit span { color: var(--appointment-gold); font-size: 1rem; }
.appointment-v2-submit:hover, .appointment-v2-submit:focus-visible { background: var(--appointment-gold); color: var(--appointment-ink); }
.appointment-v2-submit:hover span, .appointment-v2-submit:focus-visible span { color: var(--appointment-ink); }
.appointment-v2-form-note { max-width: 43ch; margin: 18px 0 0; color: rgba(51, 37, 31, 0.55); font-size: 0.65rem; line-height: 1.75; }
.appointment-v2-success { margin-top: 30px; padding: 24px; border-left: 3px solid var(--appointment-gold); background: var(--appointment-sand); }
.appointment-v2-success > span { color: var(--appointment-red); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.1em; }
.appointment-v2-success h3 { margin: 14px 0 8px; font-family: var(--serif); font-size: 1.72rem; font-weight: 500; letter-spacing: -0.07em; }
.appointment-v2-success p { margin: 0; color: rgba(51, 37, 31, 0.7); font-size: 0.76rem; line-height: 1.8; }

.appointment-v2-notes { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(46px, 10vw, 150px); padding: clamp(82px, 10vw, 138px) clamp(28px, 6vw, 88px); background: var(--appointment-sand); }
.appointment-v2-notes h2 { max-width: 8ch; font-size: clamp(2.45rem, 4.2vw, 4.75rem); }
.appointment-v2-note-list { border-top: 1px solid var(--appointment-line); }
.appointment-v2-note-list article { display: grid; grid-template-columns: 0.32fr 0.68fr; gap: 22px; padding: 24px 0 27px; border-bottom: 1px solid var(--appointment-line); }
.appointment-v2-note-list span { color: var(--appointment-red); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; }
.appointment-v2-note-list p { max-width: 34ch; margin: 0; color: rgba(51, 37, 31, 0.7); font-size: 0.82rem; line-height: 1.9; }
.appointment-v2-footer { background: var(--appointment-paper); }

@media (max-width: 760px) {
  .appointment-v2-hero { display: block; min-height: auto; padding: 70px 24px 54px; }
  .appointment-v2-hero h1 { max-width: none; font-size: clamp(2.7rem, 11vw, 4.4rem); }
  .appointment-v2-hero-copy { margin-top: 30px; }
  .appointment-v2-booking { display: block; }
  .appointment-v2-aside { padding: 70px 24px 48px; }
  .appointment-v2-aside-inner { position: static; padding-bottom: 0; }
  .appointment-v2-summary { margin-top: 48px; }
  .appointment-v2-form { padding: 58px 24px 76px; }
  .appointment-v2-notes { display: block; padding: 76px 24px; }
  .appointment-v2-note-list { margin-top: 52px; }
}

@media (max-width: 520px) {
  .appointment-v2-header { padding-right: 20px; padding-left: 20px; }
  .appointment-v2-hero, .appointment-v2-aside, .appointment-v2-form, .appointment-v2-notes { padding-right: 20px; padding-left: 20px; }
  .appointment-v2-doctor-options, .appointment-v2-details-grid { grid-template-columns: 1fr; }
  .appointment-v2-date-options { grid-template-columns: 1fr; }
  .appointment-v2-date { min-height: 72px; grid-template-columns: 0.4fr 0.6fr; align-items: center; gap: 8px; text-align: left; }
  .appointment-v2-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .appointment-v2-note-list article { grid-template-columns: 1fr; gap: 10px; }
}
