@font-face { font-family: 'Bodoni Moda'; src: url('/assets/bodoni-moda.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('/assets/montserrat-light.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('/assets/montserrat-regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --background: #0b0b0b;
  --ivory: #f4f0e8;
  --gold: #d4b378;
  --muted: #a9a39a;
  --line: #b79a5f33;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ivory);
  background: radial-gradient(ellipse at 4% 80%, #5a422010 0%, transparent 48%), var(--background);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 18px;
  border: 1px solid var(--line);
  pointer-events: none;
  z-index: 2;
}

::selection { background: var(--gold); color: var(--background); }

.page {
  width: min(100%, 1720px);
  min-height: 100svh;
  margin: auto;
  padding: 48px clamp(36px, 6.5vw, 112px) 38px;
  display: flex;
  flex-direction: column;
}

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

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: .45em;
  font-size: 2rem;
  line-height: 1.3;
  color: var(--gold);
  white-space: nowrap;
}
.wordmark-flm { font-family: 'Bodoni Moda', Georgia, serif; font-weight: 400; letter-spacing: .035em; }
.wordmark-clinic { font-family: 'Montserrat', Arial, sans-serif; font-weight: 300; font-size: inherit; letter-spacing: .13em; text-transform: uppercase; }
.masthead-caption { font-family: 'Montserrat', Arial, sans-serif; font-size: .9375rem; font-weight: 400; letter-spacing: .2em; color: var(--gold); text-transform: uppercase; text-align: right; line-height: 1.7; }

.hero {
  flex: 1;
  overflow: clip;
  display: grid;
  grid-template-columns: 1fr 1.13fr;
  align-items: center;
  gap: 1.5vw;
  padding: 36px 0 48px;
}

.message { position: relative; z-index: 1; padding: 40px 0 40px 2vw; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 34px;
  color: var(--gold);
  font-size: .75rem;
  line-height: 1.7;
  letter-spacing: .25em;
}

.eyebrow span { width: 32px; height: 1px; flex-shrink: 0; background: var(--gold); opacity: .65; }

h1 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(3.5rem, 6.55vw, 7rem);
  line-height: 1.07;
  letter-spacing: -.055em;
}

h1 em { color: var(--gold); font-weight: 400; letter-spacing: -.055em; }

.intro { margin: 34px 0 0; color: #b9b3aa; font-size: 1rem; line-height: 1.85; }

.signature { display: flex; align-items: center; gap: 16px; margin-top: 45px; color: var(--gold); opacity: .8; }
.signature span { width: 94px; height: 1px; background: var(--line); }
.closing { margin: 18px 0 0; color: var(--muted); font-size: .875rem; line-height: 1.75; letter-spacing: .04em; }

.contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; margin-top: 26px; font-style: normal; font-size: 1rem; line-height: 1.6; }
.contacts a { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 6px; }
.contacts a:hover { color: var(--ivory); text-decoration-color: var(--gold); }
.contacts a:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; border-radius: 2px; }

.contact-open, .contact-submit, .contact-close { font: inherit; cursor: pointer; }
.contact-open { display: inline-flex; align-items: center; gap: 30px; min-height: 48px; margin-top: 30px; padding: 12px 23px; border: 1px solid #d4b37880; background: transparent; color: var(--gold); font-size: 1rem; letter-spacing: .05em; }
.contact-open:hover { background: #d4b37812; border-color: var(--gold); }
.contact-open span { font-size: 1.2rem; }
.contact-is-open { overflow: hidden; }
.contact-dialog { box-sizing: border-box; width: min(580px, calc(100% - 32px)); max-height: calc(100svh - 32px); margin: auto; padding: 38px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #a98a4f80; border-radius: 4px; color: var(--ivory); background: #111110; box-shadow: 0 24px 100px #0009; }
.contact-dialog::backdrop { background: #000c; backdrop-filter: blur(6px); }
.contact-close { position: absolute; top: 8px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; border: none; background: transparent; color: var(--gold); font-size: 2rem; line-height: 1; }
.contact-dialog .eyebrow { margin: 5px 25px 16px 0; font-size: .75rem; letter-spacing: .13em; }
.contact-dialog h2 { margin: 0; font-family: Georgia, serif; font-size: 2.4rem; font-weight: 400; letter-spacing: -.035em; }
.contact-description { margin: 12px 0 0; font-size: 1rem; line-height: 1.65; color: #b9b3aa; }
.contact-details { display: flex; flex-wrap: wrap; gap: 15px 38px; padding: 22px 0; margin: 0 0 22px; border-bottom: 1px solid var(--line); font-style: normal; }
.contact-details div { display: flex; flex-direction: column; }
.contact-details span { font-size: .8125rem; color: var(--muted); }
.contact-details a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1rem; line-height: 1.5; color: var(--gold); text-decoration: none; }
.contact-details a:hover { text-decoration: underline; text-underline-offset: 5px; }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.form-field label { font-size: .9375rem; color: #e5ddd0; }
.form-field label span { font-size: .875rem; color: var(--muted); }
.form-field input, .form-field textarea { width: 100%; min-height: 48px; border: 1px solid #74644c; border-radius: 2px; padding: 12px 14px; background: #090909; color: var(--ivory); font: inherit; font-size: 1rem; line-height: 1.5; }
.form-field textarea { min-height: 115px; resize: vertical; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #938e85; opacity: 1; }
.form-trap { display: none; }
.form-privacy { color: var(--muted); font-size: .8125rem; line-height: 1.6; margin: 16px 0 20px; }
.contact-submit { width: 100%; min-height: 48px; padding: 13px 20px; background: var(--gold); color: #16130e; border: 1px solid var(--gold); font-size: 1rem; }
.contact-submit:hover { background: #e7c892; }
.contact-submit:disabled { opacity: .7; cursor: wait; }
.contact-dialog :focus-visible, .contact-open:focus-visible { outline: 2px solid #f2d39b; outline-offset: 3px; }
.contact-status { margin: 18px 0 0; font-size: .9375rem; line-height: 1.65; }
.contact-status[data-state="success"] { color: #e9d1a7; }
.contact-status[data-state="error"] { color: #f4b5a7; }
@media (max-width: 480px) {
  .contact-dialog { padding: 32px 22px 24px; }
  .contact-dialog h2 { font-size: 2rem; }
  .contact-dialog .eyebrow { font-size: .75rem; line-height: 1.7; }
  .contact-details { gap: 4px 28px; padding: 17px 0; }
}

.brand-visual {
  width: 100%;
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 700px;
  justify-self: center;
  mix-blend-mode: lighten;
}
.brand-visual img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 132%;
  max-width: none;
  height: auto;
  display: block;
  /* Fade only the empty margins; preserve the original full-resolution gold artwork. */
  -webkit-mask-image: radial-gradient(ellipse at center, #000 61%, transparent 70.5%);
  mask-image: radial-gradient(ellipse at center, #000 61%, transparent 70.5%);
}

.footer { padding-top: 22px; border-top: 1px solid var(--line); color: #969086; font-size: .75rem; line-height: 1.6; letter-spacing: .04em; }
.footer-motto { color: #b5aa96; letter-spacing: .13em; }
.footer { flex-wrap: wrap; }
.music-toggle { position: fixed; right: 23px; bottom: 22px; z-index: 3; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 15px; border: 0; background: transparent; color: var(--gold); opacity: .5; cursor: pointer; }
.music-toggle[hidden] { display: none; }
.music-toggle svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }
.music-toggle .music-pause { display: none; }
.music-toggle[aria-pressed="true"] .music-play { display: none; }
.music-toggle[aria-pressed="true"] .music-pause { display: initial; }
.music-toggle:hover { opacity: 1; }
.music-toggle:focus-visible { opacity: 1; outline: 1px solid var(--gold); outline-offset: -4px; border-radius: 50%; }
.music-toggle:disabled { cursor: wait; }
@media (max-width: 760px) { .music-toggle { right: 10px; bottom: 10px; } }

@media (prefers-reduced-motion: no-preference) {
  .message { animation: enter 1s ease-out both; }
  .brand-visual { animation: enter 1.6s .12s ease-out both; }
  @keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
}

@media (min-width: 1600px) { .hero { gap: 55px; } }

@media (max-width: 760px) {
  body::before { inset: 10px; }
  .page { padding: 29px 30px 27px; }
  .masthead { flex-direction: column; gap: 19px; }
  .wordmark { gap: .4em; font-size: 1.75rem; }
  .masthead-caption { font-size: .8125rem; text-align: center; letter-spacing: .2em; }
  .hero { display: flex; flex-direction: column-reverse; justify-content: center; gap: 8px; padding: 20px 0 40px; }
  .brand-visual { max-width: 350px; width: 100%; }
  .brand-visual img { width: 118%; }
  .message { width: 100%; padding: 0; text-align: center; }
  .eyebrow { justify-content: center; margin-bottom: 21px; font-size: .75rem; gap: 12px; letter-spacing: .2em; }
  .eyebrow span { width: 22px; }
  h1 { font-size: clamp(3.1rem, 10.5vw, 5rem); line-height: 1.05; }
  .intro { margin-top: 23px; line-height: 1.7; }
  .signature { justify-content: center; margin-top: 26px; }
  .closing { margin-top: 12px; }
  .contacts { justify-content: center; margin-top: 22px; }
  .footer { padding-top: 20px; gap: 12px; flex-direction: column; align-items: center; text-align: center; }
  .footer-motto { text-align: center; max-width: none; letter-spacing: .03em; }
}

@media (max-width: 350px) {
  .page { padding-left: 25px; padding-right: 25px; }
  .masthead { gap: 17px; }
  .brand-visual { width: 100%; }
  h1 { font-size: 2.9rem; }
  .desktop-break { display: none; }
  .footer { flex-direction: column; align-items: center; }
  .footer-motto { max-width: none; text-align: center; }
}
