/* Hallmark · pre-emit critique: P5 H5 E4 S5 R5 V4
 * Genre: editorial · Tone: warm, restorative, premium
 * Palette anchor: espresso brown · Structural fingerprint: split welcome, immersive ritual,
 * typographic treatments, quiet statement, Berlin visit, generous closing invitation.
 */
:root {
  --color-ink: #302018;
  --color-espresso: #3b2418;
  --color-espresso-deep: #28180f;
  --color-paper: #f7f2eb;
  --color-paper-deep: #eee5d9;
  --color-cream: #fffaf3;
  --color-clay: #d9c1b0;
  --color-accent: #916044;
  --color-line: rgb(48 32 24 / 18%);
  --font-body: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", Baskerville, "Palatino Linotype", Georgia, serif;
  --page-gutter: clamp(1.25rem, 4.4vw, 5.5rem);
  --content-max: 1480px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }
::selection { background: #b17d5c; color: white; }
.skip-link { position: fixed; z-index: 1000; left: 1rem; top: 1rem; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); background: white; }
.skip-link:focus { width: auto; height: auto; padding: .8rem 1rem; overflow: visible; clip-path: none; }
.section-shell { width: min(100% - (var(--page-gutter) * 2), var(--content-max)); margin-inline: auto; }

.site-header { position: relative; z-index: 50; background: var(--color-paper); border-bottom: 1px solid var(--color-line); }
.nav-shell { width: min(100% - (var(--page-gutter) * 2), var(--content-max)); margin: auto; min-height: 91px; display: flex; align-items: center; gap: clamp(1rem, 3vw, 3rem); }
.brand-link { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand-link img { width: 154px; height: auto; }
.desktop-nav { display: flex; gap: clamp(1.2rem, 2.6vw, 2.7rem); align-items: center; margin-left: auto; }
.desktop-nav a { font-size: .86rem; font-weight: 600; letter-spacing: .005em; transition: color .2s ease; }
.desktop-nav a:hover, .footer-bottom a:hover { color: var(--color-accent); }
.language-switch { display: flex; align-items: center; gap: .38rem; flex: 0 0 auto; color: #8a7668; font-size: .72rem; font-weight: 600; letter-spacing: .08em; }
.language-switch a { padding: .35rem .15rem; transition: color .2s ease; }
.language-switch a:hover, .language-switch a[aria-current="page"] { color: var(--color-ink); }
.language-switch a[aria-current="page"] { text-decoration: underline; text-underline-offset: .32rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .75rem 1.25rem .72rem 1.5rem; border: 1px solid transparent; border-radius: 999px; font-weight: 600; font-size: .88rem; line-height: 1; cursor: pointer; white-space: nowrap; transition: transform .22s ease, background .22s ease, color .22s ease, border-color .22s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { color: var(--color-cream); background: var(--color-espresso); }
.button-dark:hover { background: var(--color-espresso-deep); }
.button-cream { color: var(--color-ink); background: var(--color-cream); }
.button-cream:hover { background: #e7d9c9; }
.button-outline { color: var(--color-ink); border-color: var(--color-ink); background: transparent; }
.button-outline:hover { color: white; background: var(--color-ink); }
.button-large { min-height: 57px; padding: 1rem 1.65rem; }
.menu-toggle, .mobile-nav { display: none; }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); width: min(100%, 1700px); margin-inline: auto; min-height: min(790px, calc(100svh - 91px)); background: var(--color-paper); }
.hero-copy { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 5.7rem 3vw 7.8rem max(var(--page-gutter), calc((100vw - var(--content-max)) / 2)); }
.eyebrow { display: inline-flex; align-items: center; gap: .7rem; margin: 0 0 2rem; color: var(--color-accent); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .17em; line-height: 1.4; }
.eyebrow-line { display: inline-block; width: 28px; height: 1px; background: currentColor; }
.hero h1, h2, h3, p { margin-top: 0; }
.hero h1, .ritual h2, .treatments h2, .thought h2, .visit h2, .site-footer h2, .booking-dialog h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -.055em; }
.hero h1 { margin-bottom: 2rem; font-size: clamp(5.8rem, 8.4vw, 9.5rem); line-height: .84; }
html[lang="de"] .hero h1 { font-size: clamp(5.2rem, 7.2vw, 8.3rem); }
.hero h1 em { color: var(--color-accent); font-weight: 400; }
.hero-intro { max-width: 29.5rem; margin-bottom: 2.5rem; font-size: clamp(1.08rem, 1.35vw, 1.3rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.9rem; }
.text-link { display: inline-flex; align-items: center; border-bottom: 1px solid currentColor; padding: .7rem 0 .5rem; font-weight: 600; font-size: .88rem; line-height: 1.1; transition: color .2s ease; }
.text-link:hover { color: var(--color-accent); }
.text-link-button { border-top: 0; border-left: 0; border-right: 0; background: none; cursor: pointer; }
.hero-footnote { position: absolute; left: max(var(--page-gutter), calc((100vw - var(--content-max)) / 2)); bottom: 2.9rem; display: flex; align-items: center; gap: .7rem; color: #725a4b; font-size: .78rem; letter-spacing: .03em; }
.hero-visual { position: relative; padding: clamp(2rem, 4vw, 4rem) var(--page-gutter) clamp(2.4rem, 4vw, 4rem) 0; }
.hero-image-wrap { position: relative; height: 100%; min-height: 585px; overflow: hidden; border-radius: 45% 45% 4px 4px / 24% 24% 4px 4px; background: #4a3021; }
.hero-image-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 64%, rgb(26 14 9 / 42%) 100%); pointer-events: none; }
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: 54% center; }
.hero-photo-caption { position: absolute; display: flex; justify-content: space-between; gap: 1rem; left: 1.5rem; right: calc(var(--page-gutter) + 1.5rem); bottom: clamp(4rem, 6vw, 6rem); color: white; font-size: .68rem; font-weight: 700; letter-spacing: .15em; }
.scroll-cue { position: absolute; right: var(--page-gutter); bottom: 1.15rem; display: flex; gap: .75rem; align-items: center; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }

.ritual { overflow: hidden; background: var(--color-espresso); color: var(--color-cream); scroll-margin-top: 1rem; }
.ritual-topline { width: min(100% - (var(--page-gutter) * 2), var(--content-max)); margin: auto; display: flex; justify-content: space-between; padding: 1.5rem 0; border-bottom: 1px solid rgb(255 250 243 / 25%); color: #d9c7ba; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.ritual-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2rem, 8vw, 9rem); max-width: 1700px; margin: auto; align-items: center; }
.ritual-image-wrap { position: relative; height: clamp(590px, 62vw, 810px); margin: clamp(2.8rem, 5.4vw, 6rem) 0 clamp(2.8rem, 5.4vw, 6rem) var(--page-gutter); overflow: hidden; border-radius: 220px 220px 2px 2px / 130px 130px 2px 2px; background: #5d3b26; }
.ritual-image-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 47%; }
.image-tag { position: absolute; left: 1rem; bottom: 1rem; padding: .8rem 1rem; background: var(--color-paper); color: var(--color-ink); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ritual-copy { max-width: 720px; padding: 5rem var(--page-gutter) 5rem 0; }
.eyebrow-light { color: #d8bca8; }
.ritual h2 { margin-bottom: 2rem; font-size: clamp(4rem, 6.3vw, 7.4rem); line-height: .91; }
html[lang="de"] .ritual h2 { font-size: clamp(3.5rem, 5.4vw, 6.4rem); }
.ritual h2 em { color: #dbb99d; }
.ritual-lead { margin-bottom: 1rem; font-size: 1.24rem; color: var(--color-cream); }
.ritual-copy > p:not(.eyebrow):not(.ritual-lead) { max-width: 27rem; color: #d7c4b7; font-size: 1rem; line-height: 1.7; }
.ritual-steps { margin-top: clamp(2.3rem, 5vw, 5rem); border-top: 1px solid rgb(255 250 243 / 29%); }
.ritual-steps > div { display: grid; grid-template-columns: 2.5rem 1fr 1.6fr; align-items: baseline; gap: 1rem; border-bottom: 1px solid rgb(255 250 243 / 29%); padding: 1.1rem 0; }
.ritual-steps span { color: #c7a993; font-size: .69rem; }
.ritual-steps strong { font-size: .9rem; font-weight: 600; }
.ritual-steps p { margin: 0; color: #d7c4b7; font-size: .81rem; }

.treatments { padding: clamp(6rem, 12vw, 11rem) 0 clamp(7rem, 12vw, 11rem); background: var(--color-paper); scroll-margin-top: 1rem; }
.treatments-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(3rem, 7vw, 8rem); }
.treatments h2 { max-width: 9ch; margin-bottom: 1.8rem; font-size: clamp(4rem, 5.5vw, 6.7rem); line-height: .95; }
.treatments h2 em { color: var(--color-accent); }
.treatments-intro > p:not(.eyebrow) { max-width: 25rem; color: #66584f; font-size: 1.06rem; line-height: 1.65; }
.treatments-intro .text-link { margin-top: 1rem; }
.treatment-list { align-self: end; border-top: 1px solid var(--color-line); }
.treatment-item { display: grid; grid-template-columns: 2.4rem 1fr; gap: 1.5rem; align-items: start; padding: 2.15rem 0 2.25rem; border-bottom: 1px solid var(--color-line); }
.treatment-number { padding-top: .5rem; color: var(--color-accent); font-size: .73rem; }
.treatment-item h3 { margin-bottom: .6rem; font-family: var(--font-display); font-size: clamp(2.2rem, 3vw, 3.3rem); font-weight: 400; letter-spacing: -.045em; line-height: 1; }
.treatment-item p { max-width: 21rem; margin-bottom: 0; color: #66584f; font-size: .92rem; line-height: 1.6; }
.treatment-note { padding-top: 1.5rem; color: #806e61; font-size: .74rem; letter-spacing: .02em; }

.thought { display: flex; justify-content: center; align-items: center; min-height: 630px; padding: 7rem var(--page-gutter); background: var(--color-clay); text-align: center; }
.thought-inner { max-width: 980px; }
.thought .eyebrow { display: block; margin-bottom: 2.4rem; color: #70472e; }
.thought h2 { margin-bottom: 2.2rem; font-size: clamp(3.4rem, 6vw, 7rem); line-height: 1.02; }
.thought h2 em { color: #7b513a; }
.thought-rule { display: block; width: 45px; height: 1px; margin: 0 auto 2rem; background: #70513f; }
.thought p:last-child { max-width: 30rem; margin: 0 auto; font-size: 1rem; line-height: 1.7; }

.visit { overflow: hidden; padding: clamp(6rem, 10vw, 10rem) 0; background: var(--color-paper-deep); scroll-margin-top: 1rem; }
.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 4rem; }
.visit h2 { max-width: 9ch; margin-bottom: 0; font-size: clamp(4.3rem, 6.6vw, 8rem); line-height: .94; }
.visit h2 em { color: var(--color-accent); }
.visit-detail { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: end; padding-top: 8rem; }
.visit-mark { position: absolute; right: -1rem; top: -5rem; color: rgb(93 56 37 / 8%); font-family: var(--font-display); font-size: clamp(15rem, 26vw, 26rem); line-height: 1; pointer-events: none; }
.visit-detail > p { z-index: 1; max-width: 25rem; margin-bottom: 2.5rem; font-size: 1.23rem; line-height: 1.6; }
.visit-facts { z-index: 1; width: 100%; max-width: 29rem; margin-bottom: 2rem; border-top: 1px solid var(--color-line); }
.visit-facts div { display: flex; justify-content: space-between; gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--color-line); }
.visit-facts span { color: #79695d; font-size: .78rem; }
.visit-facts strong { font-size: .85rem; font-weight: 600; }
.visit-detail .button { z-index: 1; }

.site-footer { background: var(--color-espresso-deep); color: var(--color-cream); }
.footer-main { padding-top: clamp(5rem, 9vw, 9rem); }
.footer-cta-row { display: flex; justify-content: space-between; align-items: end; gap: 3rem; padding-bottom: clamp(5rem, 9vw, 9rem); }
.site-footer h2 { max-width: 11ch; margin: 0; font-size: clamp(4.3rem, 8vw, 9.5rem); line-height: .9; }
.site-footer h2 em { color: #d8b59d; }
.footer-cta-row .button { margin-bottom: .5rem; }
.footer-rule { height: 1px; background: rgb(255 250 243 / 24%); }
.footer-bottom { min-height: 145px; display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.footer-bottom img { width: 172px; height: auto; }
.footer-bottom p, .footer-bottom > a:last-child { margin: 0; color: #d3bdae; font-size: .75rem; letter-spacing: .04em; }

.booking-dialog { position: fixed; width: min(540px, calc(100vw - 2rem)); max-height: min(720px, calc(100svh - 2rem)); padding: clamp(2rem, 5vw, 4rem); border: 0; background: var(--color-paper); color: var(--color-ink); box-shadow: 0 24px 90px rgb(0 0 0 / 20%); }
.booking-dialog::backdrop { background: rgb(32 19 12 / 70%); backdrop-filter: blur(4px); }
.booking-dialog h2 { margin-bottom: 1.5rem; font-size: clamp(3.7rem, 7vw, 5.7rem); line-height: .92; }
.booking-dialog h2 em { color: var(--color-accent); }
.booking-dialog > p:not(.eyebrow) { max-width: 24rem; margin-bottom: 2.3rem; font-size: 1.05rem; line-height: 1.7; }
.dialog-close { position: absolute; top: .9rem; right: 1rem; width: 44px; height: 44px; border: 0; background: transparent; color: var(--color-ink); font-size: 2rem; cursor: pointer; }

@media (max-width: 1100px) {
  .hero h1 { font-size: clamp(5rem, 8.8vw, 7rem); }
  html[lang="de"] .hero h1 { font-size: clamp(4.7rem, 7.6vw, 6.4rem); }
  .hero-copy { padding-right: 2rem; }
  .hero-image-wrap { min-height: 500px; }
  .ritual-grid { gap: 3rem; }
  .ritual-steps > div { grid-template-columns: 2rem 1fr; }
  .ritual-steps p { grid-column: 2; margin-top: -.5rem; }
}

@media (max-width: 800px) {
  .site-header { position: sticky; top: 0; }
  .nav-shell { min-height: 76px; }
  .desktop-nav, .nav-book { display: none; }
  .language-switch { margin-left: auto; }
  .menu-toggle { display: inline-flex; width: 45px; height: 45px; padding: 12px 8px; flex-direction: column; justify-content: center; gap: 6px; border: 0; background: transparent; cursor: pointer; }
  .menu-toggle[aria-expanded="true"] { border-radius: 50%; background: var(--color-paper-deep); }
  .menu-toggle span { display: block; width: 100%; height: 1.5px; background: var(--color-ink); transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .mobile-backdrop:not([hidden]) { display: block; position: fixed; z-index: 1; inset: 76px 0 0; background: rgb(40 24 15 / 38%); backdrop-filter: blur(3px); }
  .mobile-nav:not([hidden]) { display: block; position: absolute; z-index: 2; top: calc(100% + .65rem); right: var(--page-gutter); left: var(--page-gutter); max-width: 430px; margin-left: auto; padding: clamp(1.25rem, 5vw, 1.75rem); border: 1px solid rgb(48 32 24 / 12%); border-radius: 18px; background: var(--color-cream); box-shadow: 0 28px 65px rgb(33 20 12 / 22%); animation: menu-reveal .22s cubic-bezier(.2,.75,.3,1) both; }
  .mobile-nav-kicker { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; color: var(--color-accent); font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
  .mobile-nav-links { border-top: 1px solid var(--color-line); }
  .mobile-nav-links a { display: grid; grid-template-columns: 1.7rem 1fr; align-items: baseline; gap: .85rem; padding: 1.02rem 0 1.08rem; border-bottom: 1px solid var(--color-line); transition: color .2s ease; }
  .mobile-nav-links a:hover { color: var(--color-accent); }
  .mobile-nav-links a span:last-child { font-family: var(--font-display); font-size: clamp(1.6rem, 7vw, 2.15rem); letter-spacing: -.045em; line-height: 1.05; }
  .mobile-nav-number { color: var(--color-accent); font-family: var(--font-body); font-size: .63rem; font-weight: 700; letter-spacing: .07em; }
  .mobile-nav-footer p { margin: 1.25rem 0 .9rem; color: #725a4b; font-size: .8rem; }
  .mobile-nav-footer .button { width: 100%; min-height: 54px; }
  .ritual, .treatments, .visit { scroll-margin-top: 5.5rem; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { grid-row: 2; z-index: 2; width: min(calc(100% - var(--page-gutter) * 2), 660px); margin: -4.75rem auto 0; padding: 2.2rem var(--page-gutter) 4.5rem; border-radius: 18px 18px 0 0; background: var(--color-paper); }
  .hero h1 { font-size: clamp(5.5rem, 13vw, 8rem); }
  html[lang="de"] .hero h1 { font-size: clamp(4.6rem, 10.5vw, 6.5rem); }
  .hero-footnote { position: static; margin-top: 4rem; }
  .hero-visual { grid-row: 1; padding: 0; }
  .hero-image-wrap { height: clamp(400px, 72svh, 660px); min-height: 0; border-radius: 0; }
  .hero-photo-caption { left: var(--page-gutter); right: var(--page-gutter); bottom: 6.6rem; }
  .scroll-cue { display: none; }
  .ritual-grid { grid-template-columns: 1fr; gap: 0; }
  .ritual-image-wrap { width: min(73%, 540px); height: clamp(440px, 90vw, 650px); margin: 4rem auto 1rem; }
  .ritual-copy { max-width: none; padding: 4rem var(--page-gutter) 6rem; }
  .ritual h2 { font-size: clamp(4.4rem, 10vw, 7rem); }
  html[lang="de"] .ritual h2 { font-size: clamp(3.6rem, 8.8vw, 6rem); }
  .ritual-steps > div { grid-template-columns: 2.5rem 1fr 1.6fr; }
  .ritual-steps p { grid-column: auto; margin-top: 0; }
  .treatments-grid { grid-template-columns: 1fr; gap: 4rem; }
  .treatments h2 { max-width: 12ch; }
  .treatments-intro > p:not(.eyebrow) { max-width: 36rem; }
  .visit-grid { grid-template-columns: 1fr; gap: 2rem; }
  .visit-detail { padding-top: 5rem; }
  .visit-mark { top: -8rem; }
  .footer-cta-row { align-items: flex-start; flex-direction: column; }
}

@keyframes menu-reveal {
  from { opacity: 0; transform: translateY(-8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 540px) {
  .brand-link img { width: 132px; }
  .eyebrow { font-size: .67rem; }
  .hero-copy { padding-top: 2rem; }
  .hero h1 { font-size: clamp(4.55rem, 17vw, 6.5rem); margin-bottom: 1.5rem; }
  html[lang="de"] .hero h1 { font-size: clamp(3.5rem, 13vw, 5.2rem); }
  .hero-intro { font-size: 1.05rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 1.2rem; }
  .hero-footnote { margin-top: 3.5rem; }
  .hero-image-wrap { height: clamp(390px, 72svh, 620px); max-height: none; }
  .hero-photo-caption { font-size: .58rem; bottom: 6.1rem; }
  .ritual-topline { font-size: .6rem; }
  .ritual-topline span:last-child { display: none; }
  .ritual-image-wrap { width: calc(100% - 2 * var(--page-gutter)); height: 110vw; margin-top: 2rem; }
  .ritual h2 { font-size: clamp(4rem, 16vw, 5.6rem); }
  html[lang="de"] .ritual h2 { font-size: clamp(3rem, 11.8vw, 4.5rem); }
  .ritual-copy { padding-top: 3.5rem; }
  .ritual-steps > div { grid-template-columns: 2rem 1fr; gap: .6rem; }
  .ritual-steps p { grid-column: 2; margin-top: -.5rem; }
  .treatments { padding: 6rem 0; }
  .treatments h2, .visit h2 { font-size: clamp(3.7rem, 13vw, 5.5rem); }
  .treatment-item { grid-template-columns: 1.6rem 1fr; gap: 1rem; }
  .treatment-item h3 { font-size: 2.5rem; }
  .thought { min-height: 540px; padding-block: 6rem; }
  .thought h2 { font-size: clamp(3.3rem, 12vw, 5rem); }
  .visit-detail { padding-top: 3.5rem; }
  .visit-detail > p { font-size: 1.1rem; }
  .visit-mark { top: -5rem; right: -3rem; }
  .footer-main { padding-top: 6rem; }
  .site-footer h2 { font-size: clamp(4rem, 15vw, 6.8rem); }
  .footer-bottom { align-items: flex-start; flex-direction: column; padding: 2.5rem 0; gap: 1.5rem; }
  .footer-bottom img { width: 155px; }
}

@media (max-width: 360px) {
  .treatments h2 { font-size: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.visit-facts strong { text-align: right; }
.visit-facts a { color: inherit; }

.hero-image-wrap img { object-position: center 30%; }
.ritual-image-wrap img { object-position: center 40%; }
.footer-imprint { display: flex; flex-wrap: wrap; gap: .6rem 3rem; padding: 0 0 2.5rem; color: #d3bdae; font-size: .78rem; line-height: 1.6; }
.footer-imprint strong { flex-basis: 100%; color: var(--color-cream); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.footer-imprint p { margin: 0; }
.footer-imprint a { color: inherit; }

/* Booking popup: liquid glass */
body.glass-open { overflow: hidden; }
.glass-dialog { position: fixed; inset: 0; width: min(560px, calc(100vw - 2rem)); height: min(860px, calc(100svh - 2rem)); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; background: transparent; overflow: visible; }
.glass-dialog::backdrop { background: radial-gradient(120% 90% at 50% 10%, rgb(145 96 68 / 28%), rgb(32 19 12 / 62%)); backdrop-filter: blur(10px) saturate(120%); -webkit-backdrop-filter: blur(10px) saturate(120%); }
.glass-dialog[open] { animation: glass-in .34s cubic-bezier(.2,.8,.2,1); }
@keyframes glass-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.glass-panel { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 30px; overflow: hidden;
  background: linear-gradient(155deg, rgb(255 250 243 / 62%), rgb(247 242 235 / 38%));
  backdrop-filter: blur(28px) saturate(170%); -webkit-backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid rgb(255 255 255 / 55%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 75%), inset 0 -1px 0 rgb(255 255 255 / 20%), 0 30px 90px rgb(20 10 5 / 38%); }
.glass-panel::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(120deg, rgb(255 255 255 / 45%) 0%, transparent 32%, transparent 70%, rgb(255 255 255 / 18%) 100%); }
.glass-head { position: relative; display: flex; align-items: center; gap: .9rem; padding: 1rem 1rem 1rem 1.4rem; border-bottom: 1px solid rgb(255 255 255 / 45%); }
.glass-head img { width: 96px; height: auto; }
.glass-head span { flex: 1; color: var(--color-ink); font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; opacity: .7; }
.glass-close { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgb(255 255 255 / 70%); background: rgb(255 255 255 / 45%); color: var(--color-ink); font-size: 1.6rem; line-height: 1; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.glass-close:hover { background: rgb(255 255 255 / 75%); }
.glass-body { position: relative; flex: 1; margin: .6rem; border-radius: 22px; overflow: hidden; background: rgb(247 242 235 / 92%); }
.glass-body iframe { width: 100%; height: 100%; border: 0; display: block; opacity: 0; transition: opacity .25s ease; }
.glass-dialog.is-loaded iframe { opacity: 1; }
.glass-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--color-accent); font-size: .85rem; letter-spacing: .08em; }
.glass-dialog.is-loaded .glass-loading { display: none; }
@media (max-width: 600px) {
  .glass-dialog { width: 100vw; height: calc(100svh - 1.25rem); margin: auto 0 0; }
  .glass-panel { border-radius: 28px 28px 0 0; }
  .glass-body { margin: .4rem .4rem 0; border-radius: 20px 20px 0 0; }
  .glass-dialog[open] { animation-name: glass-up; }
  @keyframes glass-up { from { transform: translateY(40px); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { .glass-dialog[open] { animation: none; } }
