:root {
  color-scheme: light;
  --navy: #111139;
  --ink: #151638;
  --blue: #3530a6;
  --acid: #dcfc83;
  --mist: #f6f6fc;
  --muted: #535775;
  --mast: 4.2rem;
  font-family: "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-block: calc(var(--mast) + .65rem) 5.5rem; }
body { margin: 0; background: var(--mist); color: var(--ink); line-height: 1.55; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #7972ff; outline-offset: 4px; }
button, input, textarea { font: inherit; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
.wrap { width: min(calc(100% - 3rem), 1180px); margin-inline: auto; }
.mast { height: var(--mast); position: sticky; top: 0; z-index: 10; color: white; background: #111139f5; border-bottom: 1px solid #ffffff20; backdrop-filter: blur(18px); }
.mast-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { font-size: 1.36rem; font-weight: 760; letter-spacing: -.075em; white-space: nowrap; }
.mark, .wordmark-dot { color: #b5aaff; }
.main-nav { display: flex; gap: clamp(1rem, 3vw, 3.2rem); color: #e0dcfa; font-size: .92rem; }
.main-nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: .24em; }
.language { position: relative; flex: none; }
.language summary { min-height: 42px; display: flex; align-items: center; gap: .5rem; padding: .4rem .7rem; border: 1px solid #ffffff40; border-radius: 100px; cursor: pointer; list-style: none; font-size: .92rem; }
.language summary::-webkit-details-marker { display: none; }
.language-flag { width: 22px; height: 15px; flex: none; border-radius: 2px; object-fit: fill; box-shadow: 0 0 0 1px #15163822; }
.chevron { width: .46rem; height: .46rem; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg) translateY(-2px); }
.language-menu { position: absolute; top: calc(100% + .55rem); right: 0; min-width: 10.5rem; padding: .35rem; color: var(--ink); background: #fff; border-radius: .9rem; box-shadow: 0 12px 35px #08052545; }
.language-menu a { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: .55rem; }
.language-menu a:hover, .language-menu [aria-current] { background: #ece9ff; }
.hero { color: white; overflow: clip; background: radial-gradient(ellipse at 78% 49%, #4b3eca 0%, #242168 35%, var(--navy) 71%); }
.hero-layout { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; position: relative; isolation: isolate; padding-block: clamp(3rem, 8vw, 7.5rem) 4rem; min-height: min(740px, calc(97svh - var(--mast))); }
.hero-layout::before { content: ""; pointer-events: none; position: absolute; inset: 0 -30vw; z-index: -1; background: repeating-linear-gradient(90deg, transparent 0 72px, #c6c0ff0d 72px 73px); mask-image: linear-gradient(90deg, transparent, black, transparent); }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: flex; align-items: center; gap: .65rem; margin: 0 0 1.15rem; font-size: .93rem; font-weight: 650; }
.pip, .fig-pip { flex: none; width: .55rem; aspect-ratio: 1; background: var(--acid); border-radius: 50%; box-shadow: 0 0 15px #dcfc8380; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { line-height: .95; letter-spacing: -.077em; font-weight: 680; }
h1 { font-size: clamp(4.35rem, 10vw, 9.5rem); }
h1 > span { display: block; overflow: clip; padding-block: .16em .14em; margin-block: -.16em -.14em; }
h1 b, h1 em { display: block; animation: name-in 720ms cubic-bezier(.18,.74,.27,1) both; }
h1 b { font-weight: inherit; }
h1 > span + span em { animation-delay: 100ms; }
h1 em { font-style: normal; color: #c5bbff; }
h2 { font-size: clamp(3rem, 7.35vw, 7.1rem); }
.lead { margin: 1.35rem 0 1.65rem; max-width: 36ch; font-size: clamp(1.02rem, 1.9vw, 1.27rem); }
.hero .lead { color: #e2dffc; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 3.05rem; padding: .75rem 1.25rem; border: 0; border-radius: 100px; font-weight: 730; cursor: pointer; transition: background .2s ease, transform .2s ease; text-align: center; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(1px); }
.lime { background: var(--acid); color: #20231a; }
.lime:hover { background: #eaffb3; }
.ink { background: var(--navy); color: #fff; }
.ink:hover { background: #373077; }
.portrait-frame { position: relative; justify-self: center; width: min(72%, 310px); }
.portrait-window { position: relative; height: auto; aspect-ratio: .85; overflow: hidden; border-radius: 49% 49% 1.4rem 1.4rem; border: 1px solid #fff6; background: #6760a1; box-shadow: 0 20px 65px #160a5480; animation: portrait-in 900ms cubic-bezier(.2,.76,.28,1) both; }
.portrait-window img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.portrait-window::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(112deg, transparent 38%, #e4d9ff5c 50%, transparent 63%); mix-blend-mode: screen; animation: portrait-sweep 1.4s .42s ease-out both; }
.orbit { position: absolute; pointer-events: none; z-index: -1; inset: -14% -39%; border: 1px solid #bdb2ff6b; border-radius: 49%; transform: rotate(-30deg); }
.orbit-outer { inset: -23% -62%; transform: rotate(-33deg); border-color: #bdb2ff37; }
.orbit-tracer { position: absolute; top: 12%; right: 12%; width: .58rem; height: .58rem; background: #e9ddff; box-shadow: 0 0 17px 5px #a784ff; border-radius: 50%; }
.orbit-inner { animation: orbit-drift 3.6s cubic-bezier(.22,.65,.32,1) both; }
@supports (offset-path: ellipse(50% 50%)) {
  .orbit-tracer { top: 0; right: auto; left: 0; offset-path: ellipse(50% 50%); offset-distance: 83%; animation: orbit-travel 3.4s cubic-bezier(.21,.55,.27,1) both; }
}
figcaption { position: absolute; bottom: -1rem; right: -.8rem; display: flex; align-items: center; gap: .55rem; background: #222057e8; border: 1px solid #c6baff50; border-radius: 100px; padding: .55rem .75rem; font-size: .83rem; white-space: nowrap; }
.fig-pip { width: .37rem; }
.next-chapter { position: absolute; bottom: 1.1rem; left: 0; display: inline-flex; align-items: center; gap: .55rem; color: #ded7ff; font-weight: 650; font-size: .92rem; }
.scroll-icon { width: 1rem; height: 1.37rem; border: 1px solid #b2a4f6; border-radius: 100px; position: relative; }
.scroll-icon::after { content: ""; width: 2px; height: 5px; background: var(--acid); position: absolute; left: calc(50% - 1px); top: 4px; border-radius: 2px; animation: scroll-cue 1.2s ease-in-out 3; }
@keyframes name-in { from { transform: translateY(.72em); opacity: .32; } to { transform: translateY(0); opacity: 1; } }
@keyframes portrait-in { from { clip-path: inset(12% 8% 18% round 50%); transform: translateY(16px); } to { clip-path: inset(0 round 49% 49% 1.4rem 1.4rem); transform: translateY(0); } }
@keyframes portrait-sweep { from { transform: translateX(-103%); } to { transform: translateX(103%); } }
@keyframes orbit-drift { from { transform: rotate(-46deg) scale(.9); opacity: .55; } to { transform: rotate(-30deg) scale(1); opacity: 1; } }
@keyframes orbit-travel { from { offset-distance: 7%; } to { offset-distance: 83%; } }
@keyframes scroll-cue { 50% { transform: translateY(6px); opacity: .65; } }
.surgery { color: white; background: #101134; --progress: 1; }
.surgery-stage { min-height: min(670px, 84svh); display: grid; align-items: center; isolation: isolate; position: relative; overflow: clip; }
.surgery.motion { min-height: min(1050px, 128svh); }
.surgery.motion .surgery-stage { position: sticky; top: var(--mast); }
.operating { position: absolute; z-index: -2; inset: 0 0 0 34%; background: #0b1537; clip-path: circle(calc(17% + 83% * var(--progress)) at 55% 43%); }
.operating img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 27%; transform: scale(calc(1.07 - .07 * var(--progress))); }
.surgery-shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,#101134 12%,#101134f8 27%,#101134b5 48%,#10113406 95%); }
.surgery-glint { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: calc(1 - var(--progress)); background: radial-gradient(ellipse at 70% 36%, #9488ff6b, transparent 48%); mix-blend-mode: screen; }
.surgery-copy { padding-block: 4rem; }
.surgery h2 { max-width: 9ch; font-size: clamp(3.05rem, 6.7vw, 7.1rem); }
.surgery .lead { color: #eeecfb; }
.experience { background: #fafaff; }
.contact-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 7vw, 7rem); padding-block: clamp(3.8rem,8vw,8rem); }
.experience-heading { padding-block: clamp(3.5rem,7vw,6.5rem) clamp(1.6rem,4vw,3.2rem); }
.experience .pip, .contact .pip { background: #6b53dd; box-shadow: none; }
.experience h2 { color: var(--blue); }
.certificate-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .9rem; padding: 0 0 clamp(3rem,7vw,6rem); }
.section-heading { font-size: clamp(1.55rem,3.8vw,2.75rem); letter-spacing: -.045em; margin: 0 0 1rem; }
.certificate-card { display: flex; flex-direction: column; gap: .6rem; border-radius: .85rem; border: 1px solid #dedbf0; background: white; padding: .55rem; font-size: .88rem; }
.certificate-card:hover { border-color: #7c6bea; color: var(--blue); }
.certificate-card { transition: border-color .18s ease, color .18s ease, box-shadow .18s ease; }
.certificate-card:hover { box-shadow: 0 8px 22px #2a14541a; }
.certificate-card.arriving { animation: certificate-in 530ms cubic-bezier(.2,.68,.25,1) both; }
@keyframes certificate-in { from { transform: translateY(20px); opacity: .42; } to { transform: translateY(0); opacity: 1; } }
.certificate-card img { width: 100%; aspect-ratio: 1.3; object-fit: contain; background: #f3f2fa; border-radius: .4rem; }
.certificate-card strong { font-weight: 650; line-height: 1.35; }
.certificate-summary { color: var(--muted); line-height: 1.35; }
.certificate-year { color: var(--muted); margin-top: auto; }
dialog { background: #fff; border: 0; border-radius: 1rem; width: max-content; max-width: min(92vw, 900px); max-height: 92dvh; padding: .65rem; }
dialog::backdrop { background: #090924c9; backdrop-filter: blur(6px); }
.document-close { display: flex; justify-content: flex-end; margin-bottom: .45rem; }
.document-close button { border: 0; background: #eeecff; padding: .55rem .9rem; border-radius: 100px; cursor: pointer; }
dialog img { width: auto; height: auto; max-height: calc(92dvh - 4.8rem); margin: auto; object-fit: contain; }
.gallery { padding-block: clamp(2.9rem, 6vw, 5.4rem); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .9rem; }
.gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: .85rem; }
.contact { background: #eae7ff; }
.contact-inner { align-items: start; }
.clinic-address { font-style: normal; }
.clinic-logo { display: block; width: min(100%, clamp(12rem, 27vw, 19rem)); border-radius: .25rem; }
.clinic-logo img { width: 100%; height: auto; }
.clinic-logo .clinic-logo-night { display: none; }
.contact-links { display: flex; flex-wrap: wrap; gap: .55rem; }
.contact-link { display: inline-flex; align-items: center; gap: .48rem; min-height: 44px; padding: .4rem .75rem; border: 1px solid #d0c9f2; border-radius: 100px; color: var(--ink); font-size: .9rem; font-weight: 680; transition: background .2s ease, border-color .2s ease; }
.contact-link:hover { background: #f6f3ff; border-color: #8e7bc9; }
.contact-link svg { width: 1.22rem; height: 1.22rem; flex: none; }
.directions { background: #ded7ff; color: #2d247a; }
.instagram svg { color: #b12a69; }
.youtube svg { color: #c91f1f; }
@media (max-width: 480px) {
  .contact-links { display: grid; grid-template-columns: repeat(2, max-content); justify-items: start; }
  .directions { grid-column: 1 / -1; }
}
.contact-actions { display: grid; gap: .8rem; }
.contact-phone { display: flex; flex-wrap: wrap; gap: .3rem 1rem; justify-content: space-between; padding: .78rem 1rem; background: #f5f2ff; border-radius: .7rem; }
.contact-phone a { font-weight: 760; }
form#callback { display: grid; gap: .75rem; padding: 1.15rem; border-radius: 1rem; background: white; }
#callback label { display: grid; gap: .3rem; font-weight: 650; }
#callback input:not([type=checkbox]), #callback textarea { width: 100%; border: 1px solid #cbc6e9; border-radius: .55rem; padding: .55rem .65rem; color: var(--ink); background: #fcfbff; }
#callback textarea { resize: vertical; }
#callback .consent { display: flex; align-items: flex-start; gap: .55rem; font-size: .87rem; font-weight: 450; }
.consent input { accent-color: var(--blue); margin-top: .36rem; }
.result { margin: 0; font-size: .92rem; }
.result:empty { display: none; }
button:disabled { opacity: .6; cursor: wait; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; }
.mobile-booking { display: none; }
@media (max-width: 760px) {
  :root { --mast: 3.7rem; }
  .wrap { width: calc(100% - 2rem); }
  .main-nav { display: none; }
  .hero { background: radial-gradient(ellipse at 70% 73%, #473bbe, #28216c 40%, var(--navy) 86%); }
  .hero-layout { min-height: calc(100svh - var(--mast) - 4.35rem); grid-template-columns: 1fr; align-content: center; gap: 1rem; padding-block: 2.15rem 3.8rem; }
  .hero h1 { font-size: clamp(4rem, 15vw, 6.3rem); }
  .hero .lead { margin: .9rem 0 .2rem; }
  .hero-book { display: none; }
  .portrait-frame { width: clamp(156px,48vw,230px); justify-self: end; margin-right: 1.1rem; margin-top: .2rem; }
  .next-chapter { bottom: 1.5rem; }
  .surgery-stage { min-height: max(510px, 79svh); align-items: end; }
  .surgery.motion { min-height: max(620px, 110svh); }
  .operating { inset: 0; clip-path: circle(calc(18% + 77% * var(--progress)) at 56% 34%); }
  .operating img { object-position: 50% 39%; }
  .surgery-shade { background: linear-gradient(0deg,#101134 3%,#101134e8 32%,#10113431 72%); }
  .surgery-glint { background: radial-gradient(ellipse at 56% 29%, #9488ff78, transparent 53%); }
  .surgery-copy { padding-block: 9rem 2rem; }
  .surgery h2 { font-size: clamp(3rem,12vw,5.7rem); }
  .surgery-copy .button { display: none; }
  .contact-inner { grid-template-columns: 1fr; padding-block: 3.5rem; gap: 1.7rem; }
  .certificate-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
  .mobile-booking { position: fixed; bottom: 0; inset-inline: 0; min-height: 4.35rem; display: flex; align-items: center; gap: .65rem; padding: .52rem 1rem calc(.52rem + env(safe-area-inset-bottom)); z-index: 8; color: white; background: #111139ef; backdrop-filter: blur(14px); border-top: 1px solid #ffffff24; }
  .mobile-booking .button { flex: 1; padding-inline: .7rem; }
  .phone { padding: .65rem .35rem; font-weight: 680; }
  .footer { padding-bottom: calc(5.9rem + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-delay: 0ms !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .surgery { --progress: 1 !important; }
}

[data-theme="day"] { background: white; }
[data-theme="day"] body { background: white; }
[data-theme="day"] .mast,
[data-theme="day"] .mobile-booking { background: #fffffffa; color: var(--ink); border-color: #e7e3f2; }
[data-theme="day"] .main-nav { color: #48456a; }
[data-theme="day"] .wordmark-dot,
[data-theme="day"] .mark { color: #5746ba; }
[data-theme="day"] .language summary { border-color: #ddd7f2; }
[data-theme="day"] .hero { color: var(--ink); background: radial-gradient(ellipse at 82% 60%, #e1dafa 0%, #f8f5ff 34%, white 69%); }
[data-theme="day"] .hero-layout::before { background: repeating-linear-gradient(90deg, transparent 0 72px, #40349412 72px 73px); }
[data-theme="day"] .hero h1 em { color: #5141bc; }
[data-theme="day"] .hero .lead { color: #464865; }
[data-theme="day"] .hero .pip { background: #6b53dd; box-shadow: none; }
[data-theme="day"] .orbit-inner { border-color: #6551c563; }
[data-theme="day"] .orbit-outer { border-color: #6551c536; }
[data-theme="day"] .orbit-tracer { background: #624bd4; box-shadow: 0 0 14px 2px #9782f4; }
[data-theme="day"] .portrait-window { box-shadow: 0 18px 50px #22107627; }
[data-theme="day"] .portrait-frame figcaption { background: white; color: #252047; border-color: #e7defb; }
[data-theme="day"] .fig-pip { background: #6b53dd; }
[data-theme="day"] .next-chapter { color: #403590; }
[data-theme="day"] .scroll-icon { border-color: #9385db; }
[data-theme="day"] .scroll-icon::after { background: #5746ba; }
[data-theme="day"] .experience,
[data-theme="day"] .contact { background: white; }
[data-theme="day"] .contact { border-top: 1px solid #e7e3f2; }
[data-theme="day"] #callback { background: #f8f6ff; border: 1px solid #e9e3fa; }

[data-theme="night"] { color-scheme: dark; }
[data-theme="night"] body,
[data-theme="night"] .experience { background: #151437; color: #f3f1ff; }
[data-theme="night"] .experience h2 { color: #cbc1ff; }
[data-theme="night"] .certificate-card { background: #24214b; border-color: #453e75; }
[data-theme="night"] .certificate-card:hover { color: #e3daff; border-color: #a291f5; }
[data-theme="night"] .certificate-summary,
[data-theme="night"] .certificate-year { color: #d2c9ea; }
[data-theme="night"] .contact { background: #191741; }
[data-theme="night"] .clinic-logo .clinic-logo-day { display: none; }
[data-theme="night"] .clinic-logo .clinic-logo-night { display: block; }
[data-theme="night"] .contact-phone,
[data-theme="night"] #callback { background: #24214b; }
[data-theme="night"] #callback input:not([type=checkbox]),
[data-theme="night"] #callback textarea { color: #f3f1ff; background: #181631; border-color: #655e8f; }
[data-theme="night"] #callback input::placeholder,
[data-theme="night"] #callback textarea::placeholder { color: #b5a9d1; }
[data-theme="night"] #callback .ink { color: #20231a; background: var(--acid); }
[data-theme="night"] .contact-link { color: #f3f1ff; border-color: #62568b; background: #282450; }
[data-theme="night"] .contact-link:hover { background: #393061; }
[data-theme="night"] .directions { color: #e2d8ff; }
[data-theme="night"] .instagram svg { color: #ff93c1; }
[data-theme="night"] .youtube svg { color: #ff5757; }
[data-theme="night"] dialog { background: #2b2750; }
[data-theme="night"] .document-close button { color: #242147; }
