/* Dr. Şahnaz Atayeva — qastroenteroloq-hepatoloq. Site by OTX. */

/* ============================================================ tokens */
:root {
  --paper: #F6F3EE;
  --sand: #EFE9DF;
  --surface: #FFFFFF;
  --ink: #12262A;
  --ink-2: #2F454A;
  --muted: #5A6D71;
  --line: #DDD6CB;
  --line-2: #E9E3D9;
  --teal-950: #072A2C;
  --teal-900: #0B3A3D;
  --teal-800: #0E4A4D;
  --teal-700: #10605F;
  --teal-600: #1C7672;
  --teal-300: #8FC6BD;
  --teal-100: #DCECE8;
  --teal-50: #EDF5F3;
  --amber-700: #8A5310;
  --amber-500: #D08A2E;
  --amber-300: #EDC27D;
  --amber-100: #F8EBD6;
  --coral-600: #B4452D;
  --coral-500: #CF5E43;
  --coral-50: #FBEEE9;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(18, 38, 42, .05), 0 10px 28px -16px rgba(18, 38, 42, .22);
  --shadow-lg: 0 2px 4px rgba(18, 38, 42, .05), 0 24px 48px -24px rgba(18, 38, 42, .32);
  --header-h: 74px;
  --font: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-c: "Fira Sans Condensed", "Fira Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 4vw, 40px);
}

/* ============================================================ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.65 var(--font); font-size: clamp(1rem, .97rem + .12vw, 1.0625rem);
  overflow-wrap: break-word; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
html.is-locked { overflow: hidden; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-900); }
:focus-visible { outline: 2px solid var(--amber-500); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.18; letter-spacing: -.012em; margin: 0 0 .5em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2rem, 1.45rem + 2.2vw, 3.05rem); }
main h2 { font-size: clamp(1.5rem, 1.18rem + 1.25vw, 2.15rem); }
main h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
dl, dd { margin: 0; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
strong { font-weight: 600; }
mark { background: var(--amber-100); color: inherit; border-radius: 3px; padding: 0 2px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 920px; }

.i { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.22em; }
.i .f { fill: currentColor; stroke: none; }

/* ============================================================ small components */
.badge {
  display: inline-grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem;
  border-radius: 14px; background: var(--teal-50); color: var(--teal-700); box-shadow: inset 0 0 0 1px rgba(16, 96, 95, .1);
}
.badge .i { width: 1.3rem; height: 1.3rem; }
.badge--sm { width: 2.05rem; height: 2.05rem; border-radius: 11px; }
.badge--sm .i { width: 1.1rem; height: 1.1rem; }
.badge--xs { width: 1.6rem; height: 1.6rem; border-radius: 9px; }
.badge--xs .i { width: .95rem; height: .95rem; }
.badge--alert { background: var(--coral-50); color: var(--coral-600); box-shadow: inset 0 0 0 1px rgba(207, 94, 67, .2); }

.kicker {
  display: inline-flex; align-items: center; gap: .65rem; margin: 0 0 .9rem;
  font: 600 .82rem/1.2 var(--font-c); letter-spacing: .07em; text-transform: uppercase; color: var(--teal-700);
}
.kicker > span:last-child { min-width: 0; }
.kicker--inv { color: var(--teal-300); }
.kicker--inv .badge { background: rgba(255, 255, 255, .08); color: var(--teal-300); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }

.link-arrow {
  display: inline; width: fit-content; font-weight: 500; color: var(--teal-700); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease), color .2s;
}
.link-arrow > span { padding-bottom: 1px; }
.link-arrow .i { display: inline-block; margin-left: .35em; transition: translate .25s var(--ease); }
.link-arrow:hover { color: var(--teal-900); background-size: 100% 1px; }
.link-arrow:hover .i { translate: 4px 0; }

.chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .6rem; border-radius: 999px;
  background: var(--teal-50); color: var(--teal-700); font: 500 .78rem/1.3 var(--font); box-shadow: inset 0 0 0 1px rgba(16, 96, 95, .14);
}
.chip .i { width: .95rem; height: .95rem; }

.lead-sm { color: var(--ink-2); max-width: 46ch; }
.subhead { margin: 3rem 0 1rem; font-size: 1.2rem; }
.disclaimer-line { display: flex; gap: .6rem; align-items: flex-start; margin: 2.5rem 0 0; font-size: .9rem; color: var(--muted); }
.disclaimer-line .i { margin-top: .15em; color: var(--teal-600); }

/* ============================================================ sections */
.section { padding-block: clamp(3.5rem, 2.4rem + 4vw, 6.25rem); position: relative; }
.section--first { padding-top: clamp(2.5rem, 2rem + 2vw, 3.75rem); }
.section--tint { background: var(--sand); }
.section--ink { background: var(--teal-900); color: #E5F0EE; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section__head { max-width: 760px; margin-bottom: clamp(1.8rem, 1.4rem + 1.4vw, 2.75rem); }
.section__head p { color: var(--ink-2); }
.section__head--inv p { color: rgba(229, 240, 238, .8); }
.section__head--row { max-width: none; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: flex-end; justify-content: space-between; }
.section__head--row > div { max-width: 760px; }
.section__head--row > .link-arrow { margin-bottom: 1.1rem; }

/* ============================================================ header */
.site-header { position: sticky; top: 0; z-index: 50; view-transition-name: site-header; }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(246, 243, 238, .86);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled::before { border-bottom-color: var(--line-2); box-shadow: 0 6px 24px -18px rgba(18, 38, 42, .35); }
.header__row { display: flex; align-items: center; gap: 1.25rem; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); min-width: 0; }
.mark { width: 42px; height: 42px; flex: none; }
.mark__bg { fill: var(--teal-900); }
.mark__path { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.mark__dot { fill: var(--amber-300); }
.brand__text { display: grid; line-height: 1.15; min-width: 0; }
.brand__name { font-weight: 600; font-size: 1.06rem; letter-spacing: -.01em; white-space: nowrap; }
.brand__role { font: 500 .8rem/1.2 var(--font-c); color: var(--muted); letter-spacing: .02em; }

.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; align-items: center; gap: .1rem; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link {
  display: block; padding: .55rem .7rem; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 400; font-size: .98rem; white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav__link:hover { background: rgba(16, 96, 95, .07); color: var(--teal-900); }
.nav__item.is-current > .nav__link { color: var(--teal-700); font-weight: 500; }
.nav__toggle { display: grid; place-items: center; width: 26px; height: 32px; margin-left: -.45rem; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; }
.nav__toggle .i { width: 1rem; height: 1rem; transition: rotate .25s var(--ease); }
.has-sub.is-open > .nav__toggle .i, .has-sub:hover > .nav__toggle .i { rotate: 180deg; }

.sub {
  position: absolute; top: calc(100% + 10px); left: -.5rem; min-width: 290px; padding: .6rem; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; translate: 0 6px; transition: opacity .2s, translate .25s var(--ease), visibility 0s .25s; z-index: 5;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.is-open > .sub { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .2s, translate .25s var(--ease), visibility 0s; }
.sub__list { list-style: none; display: grid; gap: 2px; }
.sub__list a {
  display: flex; align-items: center; gap: .7rem; padding: .45rem .55rem; border-radius: 11px; color: var(--ink); text-decoration: none; font-size: .95rem; line-height: 1.3;
  transition: background .18s, color .18s;
}
.sub__list a:hover { background: var(--teal-50); color: var(--teal-900); }
.sub__list a:hover .badge { background: var(--teal-900); color: #fff; }
.sub__list .badge { transition: background .2s, color .2s; }
.sub--mega { position: fixed; top: calc(var(--header-h) - 2px); left: 50%; translate: -50% 6px; width: min(1180px, calc(100vw - 32px)); padding: 1.25rem 1.25rem .9rem; }
.has-sub:hover > .sub--mega, .has-sub:focus-within > .sub--mega, .has-sub.is-open > .sub--mega { translate: -50% 0; }
.mega { display: grid; gap: 1rem 1.25rem; }
.mega--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mega--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mega__col { min-width: 0; }
.mega__title { display: flex; align-items: center; gap: .5rem; margin: 0 0 .5rem; padding: 0 .4rem; font: 600 .8rem/1.2 var(--font-c); letter-spacing: .06em; text-transform: uppercase; color: var(--teal-700); }
.mega__foot { margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--line-2); }
.mega__foot a { display: inline-flex; align-items: center; gap: .6rem; color: var(--teal-700); font-weight: 500; text-decoration: none; padding: .3rem .4rem; border-radius: 10px; }
.mega__foot a:hover { background: var(--teal-50); }

.header__actions { display: flex; align-items: center; gap: .5rem; margin-left: .5rem; }
.iconbtn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); cursor: pointer; text-decoration: none; transition: background .2s, border-color .2s, color .2s;
}
.iconbtn:hover { background: var(--teal-50); border-color: var(--teal-300); color: var(--teal-900); }
.iconbtn .i { width: 1.25rem; height: 1.25rem; }
.iconbtn--menu { display: none; }

.cta {
  display: inline-flex; align-items: center; gap: .6rem; height: 46px; padding: 0 1.15rem 0 .5rem; border-radius: 999px;
  background: var(--teal-900); color: #fff; text-decoration: none; font-weight: 500; white-space: nowrap;
  box-shadow: 0 8px 20px -10px rgba(11, 58, 61, .7); transition: background .2s, box-shadow .2s, translate .2s;
}
.cta:hover { background: var(--teal-700); color: #fff; translate: 0 -1px; }
.cta__ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.cta__ic .i { width: 1.05rem; height: 1.05rem; }
.cta:hover .cta__ic .i { animation: cta-tilt .6s var(--ease); }
@keyframes cta-tilt { 30% { rotate: -14deg; } 60% { rotate: 10deg; } }

@media (max-width: 1239.98px) {
  .nav { display: none; }
  .iconbtn--menu { display: inline-grid; }
  .header__actions { margin-left: auto; }
}
@media (max-width: 767.98px) {
  :root { --header-h: 64px; }
  .mark { width: 38px; height: 38px; }
  .brand__name { font-size: 1rem; }
  .brand__role { font-size: .74rem; }
  .site-header .cta {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; height: 56px;
    justify-content: center; padding: 0 1.25rem; font-size: 1.05rem; box-shadow: 0 14px 34px -12px rgba(7, 42, 44, .65), 0 0 0 1px rgba(255, 255, 255, .12) inset;
  }
  .site-header .cta .cta__ic { width: 32px; height: 32px; }
  body { padding-bottom: 84px; }
}
@media (max-width: 359.98px) { .brand__role { display: none; } }

/* ============================================================ dialogs */
.dlg { border: 0; padding: 0; color: var(--ink); background: var(--surface); }
dialog:not([open]) { display: none !important; }
.dlg::backdrop { background: rgba(7, 42, 44, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.cta-slot:empty { display: none; }
.cta-slot .cta { position: static !important; width: 100%; justify-content: center; }
.cta-slot--dlg { padding: 0 1rem 1rem; }

.drawer {
  margin: 0 0 0 auto; width: min(420px, 100vw); height: 100dvh; max-height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  border-radius: 22px 0 0 22px;
}
.drawer[open] { animation: drawer-in .32s var(--ease); }
@keyframes drawer-in { from { translate: 30px 0; opacity: .4; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1rem 1rem 1.25rem; border-bottom: 1px solid var(--line-2); }
.drawer__body { overflow: auto; padding: .75rem 1rem; min-height: 0; }
.dnav { border-bottom: 1px solid var(--line-2); }
.dnav summary {
  display: flex; align-items: center; gap: .75rem; padding: .8rem .25rem; list-style: none; cursor: pointer; font-weight: 500; font-size: 1.05rem;
}
.dnav summary::-webkit-details-marker { display: none; }
.dnav summary > span:not(.badge) { flex: 1; }
.dnav summary > .i { color: var(--muted); transition: rotate .25s var(--ease); }
.dnav[open] summary > .i { rotate: 180deg; }
.dnav ul { list-style: none; display: grid; gap: 2px; padding: 0 0 .8rem 2.75rem; }
.dnav ul a, .dlink { display: flex; align-items: center; gap: .7rem; padding: .45rem .25rem; color: var(--ink); text-decoration: none; border-radius: 10px; }
.dnav ul a:hover, .dlink:hover { background: var(--teal-50); }
.dlink { padding: .8rem .25rem; border-bottom: 1px solid var(--line-2); font-weight: 500; font-size: 1.05rem; gap: .75rem; }
.drawer__foot { padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); display: grid; gap: .9rem; }

.searchdlg {
  margin: calc(var(--header-h) + 8px) auto auto; width: min(760px, calc(100vw - 24px)); max-height: calc(100dvh - var(--header-h) - 24px);
  border-radius: 22px; box-shadow: var(--shadow-lg); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden;
}
.searchdlg[open] { animation: pop .25s var(--ease); }
@keyframes pop { from { opacity: 0; translate: 0 -8px; } }
.searchdlg__form { display: flex; align-items: center; gap: .75rem; padding: .75rem .75rem .75rem 1.1rem; border-bottom: 1px solid var(--line-2); }
.searchdlg__form > .i { color: var(--teal-700); }
.searchdlg__form input { flex: 1; min-width: 0; border: 0; outline: 0; font: 400 1.1rem var(--font); background: transparent; color: var(--ink); padding: .5rem 0; }
.searchdlg__body { overflow: auto; padding: .75rem; min-height: 0; }
.searchdlg__hint p { color: var(--muted); margin: .4rem .5rem .8rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0 .5rem; }
.chips a { display: inline-block; padding: .38rem .8rem; border-radius: 999px; background: var(--teal-50); color: var(--teal-800); text-decoration: none; font-size: .92rem; box-shadow: inset 0 0 0 1px rgba(16, 96, 95, .14); }
.chips a:hover { background: var(--teal-900); color: #fff; }
.results { list-style: none; display: grid; gap: 4px; }
.results a { display: grid; gap: .1rem; padding: .7rem .8rem; border-radius: 14px; text-decoration: none; color: var(--ink); }
.results a:hover, .results a.is-active { background: var(--teal-50); }
.results__kind { font: 600 .72rem/1.2 var(--font-c); text-transform: uppercase; letter-spacing: .07em; color: var(--teal-700); }
.results__title { font-weight: 600; }
.results__snip { font-size: .9rem; color: var(--muted); }

.vcard { margin: auto; width: min(420px, calc(100vw - 24px)); border-radius: 24px; background: transparent; overflow: visible; position: relative; }
.vcard[open] { animation: pop .25s var(--ease); }
.vcard__card { background: var(--surface); border-radius: 24px; padding: 1.5rem; display: grid; gap: 1.1rem; box-shadow: var(--shadow-lg); }
.vcard__close { position: absolute; top: .75rem; right: .75rem; z-index: 2; }
.vcard__top { display: flex; align-items: center; gap: 1rem; }
.vcard__photo { width: 84px; height: 84px; border-radius: 22px; overflow: hidden; flex: none; background: var(--teal-50); }
.vcard__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.vcard__name { font-weight: 600; font-size: 1.2rem; margin: 0; }
.vcard__role { color: var(--muted); margin: 0; }
.vcard__addr { display: flex; gap: .7rem; margin: 0; color: var(--ink-2); }
.vcard__addr .i { color: var(--teal-700); margin-top: .2em; }
.vcard__save { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .75rem 1rem; border-radius: 14px; border: 1px dashed var(--teal-300); color: var(--teal-800); text-decoration: none; font-weight: 500; }
.vcard__save:hover { background: var(--teal-50); }

.lightbox { margin: auto; background: transparent; max-width: min(92vw, 900px); overflow: visible; }
.lightbox__fig { display: grid; gap: .6rem; }
.lightbox__fig img { max-height: 82dvh; width: auto; margin-inline: auto; border-radius: 16px; box-shadow: var(--shadow-lg); }
.lightbox__fig figcaption { color: #fff; text-align: center; font-size: .92rem; }
.lightbox__close { position: fixed; top: 14px; right: 14px; }

/* ============================================================ contact icons */
.cicons { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.cicon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--surface); color: var(--teal-800);
  border: 1px solid var(--line); text-decoration: none; transition: background .2s, color .2s, border-color .2s, translate .2s;
}
.cicon:hover { background: var(--teal-900); border-color: var(--teal-900); color: #fff; translate: 0 -2px; }
.cicon .i { width: 1.25rem; height: 1.25rem; }
.cicons--lg .cicon { width: 52px; height: 52px; border-radius: 16px; }
.cicons--lg .cicon .i { width: 1.4rem; height: 1.4rem; }
.cicons--card { justify-content: flex-start; }

/* ============================================================ hero */
.hero { position: relative; padding-top: clamp(2.25rem, 1.5rem + 3vw, 4.25rem); overflow: hidden; overflow: clip; }
.hero__head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 1.25rem 3rem; align-items: end; position: relative; z-index: 2; }
.kicker--hero { margin-bottom: 1.1rem; }
.hero__h1 { font-size: clamp(2.5rem, 1.5rem + 4.3vw, 4.1rem); line-height: 1.02; letter-spacing: -.03em; margin: 0; }
.hero__lead p { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--ink-2); margin-bottom: .9rem; max-width: 42ch; }
.hero__links { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }

.hero__stage { position: relative; margin-top: clamp(1.75rem, 1rem + 2.6vw, 3.25rem); padding: 1.5rem 0 1.25rem; }
.heroplot {
  position: absolute; left: 0; right: 0; top: 50%; height: clamp(190px, 16vw + 120px, 270px); translate: 0 -54%; z-index: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  background-image: linear-gradient(rgba(18, 38, 42, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 38, 42, .05) 1px, transparent 1px);
  background-size: 100% 22px, 48px 100%;
}
.heroplot__track { position: absolute; inset: 0 auto 0 0; width: 200%; height: 100%; will-change: transform; }
.heroplot__svg { width: 100%; height: 100%; display: block; }
.heroplot__lbl { position: absolute; left: var(--gutter); font: 500 .7rem/1 var(--mono); letter-spacing: .02em; color: var(--muted); background: rgba(246, 243, 238, .85); padding: .2rem .4rem; border-radius: 6px; }
.heroplot__lbl--t { top: 4%; }
.heroplot__lbl--b { bottom: 4%; }
.heroplot__cap { position: relative; z-index: 2; display: flex; gap: .5rem; align-items: center; margin: 1.25rem auto 0; font: .78rem/1.4 var(--mono); color: var(--muted); }
.heroplot__cap .i { color: var(--teal-600); }
html.m-on .heroplot__track { animation: hrm-record 46s linear infinite; }
@keyframes hrm-record { to { transform: translateX(-50%); } }

.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 330px) minmax(0, 1fr); align-items: center; gap: 1.5rem clamp(1.25rem, 3vw, 3rem); }
.hero__portrait {
  position: relative; background: var(--surface); padding: 8px; border-radius: 30px; box-shadow: var(--shadow-lg);
}
.hero__portrait img { border-radius: 23px; width: 100%; }
.hero__notes { list-style: none; display: grid; gap: 1rem; }
.hero__notes--l { justify-items: end; }
.hero__notes--r { justify-items: start; }
.note {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .75rem; align-items: center; max-width: 300px; width: 100%;
  padding: .8rem 1rem; background: rgba(255, 255, 255, .94); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow);
}
.note .badge { grid-row: span 2; }
.note__k { font: 600 .72rem/1.2 var(--font-c); letter-spacing: .07em; text-transform: uppercase; color: var(--teal-700); }
.note__v { font-size: .95rem; line-height: 1.35; color: var(--ink); }
.hero__notes--l .note::after, .hero__notes--r .note::after { content: ""; position: absolute; top: 50%; width: clamp(14px, 2.4vw, 36px); height: 1px; background: var(--teal-300); }
.hero__notes--l .note::after { left: 100%; }
.hero__notes--r .note::after { right: 100%; }

/* portrait reveal: a single scan line passes over the photo */
.m-portrait { position: relative; overflow: hidden; }
.m-portrait::after { content: ""; position: absolute; left: 8px; right: 8px; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--teal-300), transparent); opacity: 0; pointer-events: none; }
html.m-on .m-portrait.is-in::after { animation: scan 1.6s .2s var(--ease) both; }
@keyframes scan { 0% { top: 8px; opacity: 0; } 12% { opacity: .9; } 88% { opacity: .9; } 100% { top: calc(100% - 10px); opacity: 0; } }
html.m-on .m-note:not(.is-in) { opacity: 0; }
html.m-on .hero__notes--l .m-note.is-in { animation: note-l .7s var(--ease) backwards; }
html.m-on .hero__notes--r .m-note.is-in { animation: note-r .7s var(--ease) backwards; }
html.m-on .hero__notes .m-note:nth-child(2).is-in { animation-delay: .12s; }
@keyframes note-l { from { opacity: 0; translate: -16px 0; } }
@keyframes note-r { from { opacity: 0; translate: 16px 0; } }

@media (max-width: 1023.98px) {
  .hero__head { grid-template-columns: 1fr; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(220px, 290px) minmax(0, 1fr); }
  .note { padding: .7rem .8rem; }
}
@media (max-width: 759.98px) {
  .hero__grid { grid-template-columns: 1fr 1fr; grid-template-areas: "p p" "l r"; }
  .hero__portrait { grid-area: p; width: min(300px, 82vw); justify-self: center; }
  .hero__notes--l { grid-area: l; justify-items: stretch; }
  .hero__notes--r { grid-area: r; justify-items: stretch; }
  .hero__notes--l .note::after, .hero__notes--r .note::after { display: none; }
  .heroplot { top: 0; translate: 0 0; height: 260px; }
  .heroplot__lbl { display: none; }
  .note { max-width: none; grid-template-columns: 1fr; row-gap: .35rem; }
  .note .badge { grid-row: auto; }
}
@media (max-width: 479.98px) {
  .hero__grid { grid-template-columns: 1fr; grid-template-areas: "p" "l" "r"; }
  .note { grid-template-columns: auto minmax(0, 1fr); }
  .note .badge { grid-row: span 2; }
}

/* ============================================================ intro */
.intro__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem clamp(2rem, 5vw, 5rem); align-items: start; }
.intro__text p { color: var(--ink-2); }
.intro__text p:first-child { font-size: 1.12rem; color: var(--ink); }
@media (max-width: 859.98px) { .intro__grid { grid-template-columns: 1fr; } }

/* ============================================================ complaints route */
.complaints__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: start; }
.complaints__head { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 1.5rem; }
.routewrap { position: relative; }
.route__tube { position: absolute; left: 19px; top: 18px; bottom: 18px; width: 8px; border-radius: 4px; background: linear-gradient(var(--teal-100), var(--teal-300)); overflow: hidden; }
.route__bolus { position: absolute; inset: 0; }
.route__bolus::before { content: ""; position: absolute; top: -14px; left: -2px; width: 12px; height: 14px; border-radius: 50%; background: var(--amber-500); box-shadow: 0 0 0 3px rgba(208, 138, 46, .25); }
html.m-on .routewrap.is-in .route__bolus { animation: bolus 9s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes bolus { 0% { transform: translateY(0); } 85%, 100% { transform: translateY(calc(100% + 14px)); } }
.route { list-style: none; display: grid; gap: 1.6rem; padding-left: 0; }
.route__station { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 1rem; }
.route__node { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; margin: 0 0 .7rem; font: 600 .82rem/1.2 var(--font-c); letter-spacing: .07em; text-transform: uppercase; color: var(--teal-800); }
.route__node .badge { background: var(--surface); box-shadow: 0 0 0 4px var(--sand), inset 0 0 0 1px rgba(16, 96, 95, .2); position: relative; z-index: 1; }
.route__items { grid-column: 2; list-style: none; display: grid; gap: .55rem; }
.complaint {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; align-items: center; padding: .9rem 1.1rem; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; box-shadow: var(--shadow);
  transition: border-color .2s, translate .2s, box-shadow .2s;
}
.complaint__t { font-weight: 500; line-height: 1.35; }
.complaint__k { grid-column: 1; font-size: .88rem; color: var(--muted); }
.complaint .i { grid-column: 2; grid-row: 1 / span 2; color: var(--teal-600); transition: translate .25s var(--ease); }
.complaint:hover { border-color: var(--teal-300); translate: 2px 0; color: var(--ink); }
.complaint:hover .i { translate: 4px 0; }
@media (max-width: 899.98px) {
  .complaints__grid { grid-template-columns: 1fr; }
  .complaints__head { position: static; }
  .complaints__head .artcard { max-width: 460px; }
}

/* ============================================================ schematic art */
.artcard { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.artcard figcaption { padding: .55rem .35rem .15rem; font: .76rem/1.45 var(--mono); color: var(--muted); }
.art { display: block; width: 100%; height: auto; aspect-ratio: 360 / 220; border-radius: 14px; }
.a-bg { fill: #FBFAF7; }
.a-bg--dark { fill: #0A2C2E; }
.a-grid line { stroke: rgba(18, 38, 42, .07); stroke-width: 1; }
.a-grid--dark line { stroke: rgba(255, 255, 255, .07); }
.a-lbl { font: 500 10.5px var(--mono); fill: var(--muted); }
.a-lbl--c { text-anchor: middle; }
.a-lbl--inv { fill: rgba(220, 240, 236, .7); }
.a-lbl--strong { font: 600 11.5px var(--font); fill: var(--ink-2); }
.a-lead { stroke: var(--muted); stroke-width: 1; }

.hrm path { fill: none; stroke-linecap: round; }
.hrm-h path { stroke: #9ACDC4; stroke-width: 18; }
.hrm-m path { stroke: #EBB862; stroke-width: 10; }
.hrm-c path { stroke: #D2603F; stroke-width: 4.5; }
.hrm--hero .hrm-h path { stroke-width: 30; stroke: #A9D4CC; }
.hrm--hero .hrm-m path { stroke-width: 16; stroke: #EDBE6D; }
.hrm--hero .hrm-c path { stroke-width: 7; stroke: #D46A47; }
.a-cover { fill: #FBFAF7; }
.a-cursor { stroke: var(--teal-700); stroke-width: 1.5; }
.a-rev { display: none; }
html.m-on .m-art .a-rev { display: inline; }
html.m-on .m-art.is-in .a-rev { animation: rec-reveal 2.6s cubic-bezier(.45, .05, .35, 1) forwards; }
html.m-done .m-art .a-rev { display: none; }
@keyframes rec-reveal { to { transform: translateX(380px); } }

.a-draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
html.m-on .m-art:not(.is-in) .a-draw { stroke-dashoffset: 1; }
html.m-on .m-art.is-in .a-draw { animation: draw 2.4s .15s var(--ease) backwards; }
html.m-done .m-art .a-draw { stroke-dashoffset: 0; }
@keyframes draw { from { stroke-dashoffset: 1; } }

.ph-line { fill: none; stroke: var(--teal-700); stroke-width: 2; stroke-linejoin: round; }
.ph-fill { fill: rgba(207, 94, 67, .22); }
.ph-thr { stroke: var(--coral-500); stroke-width: 1.2; stroke-dasharray: 4 4; }
.ph-meal { fill: rgba(208, 138, 46, .08); }
html.m-on .m-art:not(.is-in) .ph-fill { opacity: 0; }
html.m-on .m-art.is-in .ph-fill { animation: fade .8s 1.8s backwards; }
@keyframes fade { from { opacity: 0; } }

.arm-win { fill: rgba(208, 138, 46, .1); }
.arm-r { fill: none; stroke: var(--teal-600); stroke-width: 2; }
.arm-exp { fill: none; stroke: #7C8D90; stroke-width: 1.6; stroke-dasharray: 5 4; }
.arm-obs { fill: none; stroke: var(--coral-500); stroke-width: 2.4; }

.emg-line { fill: none; stroke: #7FD1C2; stroke-width: 1.4; stroke-linejoin: round; }
.emg-base { stroke: rgba(255, 255, 255, .18); stroke-dasharray: 3 4; }

.scope-frame { fill: #0A2224; }
.scope-edge { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 2; }
.scope-ring { fill: none; stroke: rgba(255, 238, 230, .6); stroke-width: 3; transform-box: fill-box; transform-origin: center; }
.scope-ring--0 { transform: scale(.42); }
.scope-ring--1 { transform: scale(.7); }
.scope-ring--2 { transform: scale(.98); }
.scope-glare { fill: rgba(255, 255, 255, .5); }
html.m-on .scope-ring { animation: advance 8s linear infinite; }
html.m-on .scope-ring--1 { animation-delay: -2.67s; }
html.m-on .scope-ring--2 { animation-delay: -5.33s; }
@keyframes advance { 0% { transform: scale(.2); opacity: 0; } 22% { opacity: .95; } 100% { transform: scale(1.38); opacity: 0; } }

.lob-nb { fill: none; stroke: rgba(16, 96, 95, .12); stroke-width: 1.2; }
.lob-hex { fill: #EEF6F4; stroke: var(--teal-600); stroke-width: 1.6; stroke-linejoin: round; }
.lob-flow { fill: none; stroke: rgba(16, 96, 95, .4); stroke-width: 1.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.lob-flow--b { stroke: rgba(16, 96, 95, .25); }
html.m-on .lob-flow { animation: flow 2.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -18; } }
.lob-cells circle { fill: #F6E7D2; stroke: rgba(138, 83, 16, .25); stroke-width: .8; }
.t-a { fill: var(--coral-500); }
.t-v { fill: #3E8E86; }
.t-b { fill: #E0A045; }
.lob-cv { fill: #fff; stroke: var(--teal-700); stroke-width: 2; }
.lob-drop { fill: #FFFDF8; stroke: #E0A045; stroke-width: 1.4; transform-box: fill-box; transform-origin: center; }
html.m-on .m-art:not(.is-in) .lob-drop { transform: scale(0); }
html.m-on .m-art.is-in .lob-drop { animation: pop-in .6s var(--ease) backwards; }
.lob-drop--1 { animation-delay: .15s !important; } .lob-drop--2 { animation-delay: .3s !important; } .lob-drop--3 { animation-delay: .45s !important; }
.lob-drop--4 { animation-delay: .6s !important; } .lob-drop--5 { animation-delay: .75s !important; } .lob-drop--6 { animation-delay: .9s !important; } .lob-drop--7 { animation-delay: 1.05s !important; }
@keyframes pop-in { from { transform: scale(0); } }
.lob-nod { fill: #F3EDE4; stroke: rgba(138, 83, 16, .35); stroke-width: 1.4; }
.lob-sep { fill: none; stroke: #C99A63; stroke-width: 5; stroke-linecap: round; opacity: .75; }

.vil { fill: #E7F2EF; stroke: var(--teal-600); stroke-width: 1.6; transform-box: fill-box; transform-origin: 50% 100%; }
.vil--ghost { fill: none; stroke: rgba(16, 96, 95, .35); stroke-dasharray: 3 4; }
.vil--flat { fill: #F4E5D1; stroke: #B9773A; }
.vil-sub { fill: #F3EDE4; }
.vil-crypt { fill: none; stroke: rgba(16, 96, 95, .4); stroke-width: 1.2; }
.vil-crypt--deep { stroke: #B9773A; }
.vil-div { stroke: var(--line); stroke-dasharray: 2 4; }
html.m-on .m-art:not(.is-in) .vil:not(.vil--ghost) { transform: scaleY(0); }
html.m-on .m-art.is-in .vil:not(.vil--ghost) { animation: grow .9s var(--ease) backwards; }
.vil--1 { animation-delay: .08s !important; } .vil--2 { animation-delay: .16s !important; } .vil--3 { animation-delay: .24s !important; } .vil--4 { animation-delay: .32s !important; }
.vil--5 { animation-delay: .4s !important; } .vil--6 { animation-delay: .48s !important; } .vil--7 { animation-delay: .56s !important; }
@keyframes grow { from { transform: scaleY(0); } }

.col-wall { fill: none; stroke: #C6DCD7; stroke-width: 30; stroke-linecap: round; stroke-linejoin: round; }
.col-lumen { fill: none; stroke: #EEF6F4; stroke-width: 23; stroke-linecap: round; stroke-linejoin: round; }
.col-haus { fill: none; stroke: #C6DCD7; stroke-width: 23; stroke-dasharray: 1.5 12; }
.col-scope { fill: none; stroke: var(--amber-500); stroke-width: 5; stroke-linecap: round; stroke-dasharray: .05 .95; stroke-dashoffset: -.9; }
html.m-on .col-scope { animation: travel 7s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes travel { 0% { stroke-dashoffset: 0; opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { stroke-dashoffset: -.95; opacity: 0; } }
.col-polyp { fill: var(--coral-500); }
.col-mark { fill: none; stroke: var(--amber-500); stroke-width: 1.6; transform-box: fill-box; transform-origin: center; }
html.m-on .col-mark { animation: ping 2.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 70%, 100% { transform: scale(1.4); opacity: 0; } }

.bal-stomach { fill: #F6EBDD; stroke: #B9773A; stroke-width: 2; stroke-linejoin: round; }
.bal-ball { stroke: var(--teal-600); stroke-width: 2; }
.bal-valve { stroke: var(--teal-600); stroke-width: 2.4; stroke-linecap: round; }
.bal-b { transform-box: fill-box; transform-origin: center; }
html.m-on .m-art:not(.is-in) .bal-b { opacity: 0; }
html.m-on .m-art.is-in .bal-b { animation: settle 1.3s cubic-bezier(.3, 1.3, .5, 1) backwards; }
@keyframes settle { from { opacity: 0; transform: translateY(-16px) scale(.86); } }

.eso-wall { fill: #F6EBDD; stroke: #B9773A; stroke-width: 2; stroke-linejoin: round; }
.eso-bolus { fill: #E0A045; opacity: .85; }
.eso-pinch { fill: none; stroke: var(--teal-700); stroke-width: 3; stroke-linecap: round; }
html.m-on .eso-wave { animation: eso-move 4.6s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes eso-move { 0% { transform: translateX(0); opacity: 0; } 8% { opacity: 1; } 72% { transform: translateX(228px); opacity: 1; } 82%, 100% { transform: translateX(236px); opacity: 0; } }

.muc-l1 { fill: #F6E3D6; } .muc-l2 { fill: #FBF3EA; } .muc-l3 { fill: #E4EFEC; }
.muc-pit { fill: none; stroke: #C98A6E; stroke-width: 1.4; }
.muc-surface { fill: none; stroke: #B5624A; stroke-width: 2.2; stroke-linejoin: round; }
.muc-crater { fill: #EECBB8; }
.muc-fib line { stroke: rgba(16, 96, 95, .25); stroke-width: 1; }

.peri-wall { fill: none; stroke: var(--teal-600); stroke-width: 3; stroke-linejoin: round; }
html.m-on .peri-move { animation: peri 3.8s linear infinite; }
@keyframes peri { to { transform: translateX(120px); } }

.rt-tube { fill: none; stroke: #DCECE8; stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.rt-core { fill: none; stroke: #8FC6BD; stroke-width: 2; stroke-linecap: round; }
.rt-pulse { fill: none; stroke: var(--amber-500); stroke-width: 9; stroke-linecap: round; stroke-dasharray: .035 .965; stroke-dashoffset: -.5; }
html.m-on .rt-pulse { animation: travel 8s cubic-bezier(.45, 0, .55, 1) infinite; }
.rt-bile { fill: none; stroke: #E0A045; stroke-width: 2.2; stroke-dasharray: 3 4; stroke-linecap: round; }
html.m-on .rt-bile { animation: bile 1.8s linear infinite; }
@keyframes bile { to { stroke-dashoffset: 14; } }
.rt-node { fill: #fff; stroke: var(--teal-700); stroke-width: 2.4; }

.art.is-off *, .heroplot.is-off .heroplot__track { animation-play-state: paused !important; }

/* ============================================================ labs (home services) */
.labs__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.lab { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 1.25rem; padding: 1rem; background: var(--surface); border: 1px solid var(--line-2); border-radius: 24px; box-shadow: var(--shadow); }
.lab .artcard { padding: 0; border: 0; box-shadow: none; background: transparent; }
.lab__body { padding: .4rem .4rem .4rem 0; display: flex; flex-direction: column; min-width: 0; }
.lab__title { display: flex; align-items: center; gap: .65rem; font-size: 1.15rem; margin-bottom: .5rem; }
.lab__text { color: var(--muted); font-size: .95rem; }
.lab__list { list-style: none; display: grid; gap: 2px; margin-top: .2rem; }
.lab__list a { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .5rem .6rem; border-radius: 11px; color: var(--ink); text-decoration: none; font-weight: 500; }
.lab__list a .i { color: var(--teal-600); transition: translate .25s var(--ease); }
.lab__list a:hover { background: var(--teal-50); color: var(--teal-900); }
.lab__list a:hover .i { translate: 3px 0; }
@media (max-width: 1099.98px) { .labs__grid { grid-template-columns: 1fr; } }
@media (max-width: 599.98px) { .lab { grid-template-columns: 1fr; } .lab__body { padding: 0 .3rem .3rem; } }

/* ============================================================ approach (dark) */
.approach__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.approach__panel { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; padding: 10px; }
.approach__panel figcaption { display: grid; gap: .15rem; padding: .8rem .5rem .4rem; }
.approach__panel figcaption strong { color: #fff; font-size: 1.05rem; }
.approach__panel figcaption span { color: rgba(229, 240, 238, .78); font-size: .92rem; }
.approach__plan { margin-top: 2rem; display: grid; gap: .9rem; }
.approach__planlbl { display: flex; gap: .6rem; align-items: center; margin: 0; color: #fff; font-weight: 500; }
.approach__planlbl .i { color: var(--amber-300); }
.plan { list-style: none; display: flex; flex-wrap: wrap; gap: .55rem; }
.plan li { padding: .5rem .95rem; border-radius: 999px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); color: #E5F0EE; font-size: .95rem; }
@media (max-width: 899.98px) { .approach__grid { grid-template-columns: 1fr; max-width: 520px; } }

/* ============================================================ timeline */
.tl { list-style: none; position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; overflow: hidden; overflow: clip; padding-top: 2.25rem; }
.tl::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--teal-100), var(--teal-300)); }
.tl::after { content: ""; position: absolute; left: 0; top: 8px; width: 100%; height: 12px; background: radial-gradient(circle at 6px 6px, var(--amber-500) 0 5px, transparent 6px) no-repeat; transform: translateX(-16px); }
html.m-on .tl.is-in::after { animation: tl-pulse 9s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes tl-pulse { 0% { transform: translateX(-16px); } 85%, 100% { transform: translateX(100%); } }
.tl__item { position: relative; display: grid; gap: .25rem; align-content: start; }
.tl__dot { position: absolute; top: -2.25rem; left: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px var(--teal-600); }
.tl__dot::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--teal-600); }
.tl__item--now .tl__dot { box-shadow: inset 0 0 0 2px var(--amber-500); }
.tl__item--now .tl__dot::after { background: var(--amber-500); }
.tl__year { font: 500 .95rem/1.2 var(--mono); color: var(--amber-700); margin-top: .4rem; font-variant-numeric: tabular-nums; }
.tl__title { font-weight: 600; line-height: 1.3; }
.tl__sub { font-size: .9rem; color: var(--muted); }
@media (max-width: 1023.98px) { .tl { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.75rem; } .tl::before, .tl::after { display: none; } .tl__dot { top: -2rem; } }
@media (max-width: 599.98px) {
  .tl { grid-template-columns: 1fr; padding: 0 0 0 2.6rem; row-gap: 1.3rem; }
  .tl::before { display: block; left: 11px; right: auto; top: 6px; bottom: 6px; width: 6px; height: auto; background: linear-gradient(var(--teal-100), var(--teal-300)); }
  .tl__dot { top: .1rem; left: -2.6rem; }
  .tl__year { margin-top: 0; }
}

/* ============================================================ videos */
.vgrid { display: grid; gap: 1.25rem; }
.vgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1023.98px) { .vgrid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639.98px) { .vgrid--3 { grid-template-columns: 1fr; } }
.vcardx { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); min-width: 0; }
.vcardx__media { display: block; aspect-ratio: 16 / 9; background: var(--teal-950); overflow: hidden; }
.vcardx__media img { width: 100%; height: 100%; object-fit: cover; transition: scale .5s var(--ease); }
.vcardx__media:hover img { scale: 1.03; }
.vcardx__frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.vcardx__body { display: flex; flex-direction: column; gap: .45rem; padding: 1rem 1.1rem 1.1rem; flex: 1; }
.vcardx__meta { display: flex; flex-wrap: wrap; gap: .25rem .85rem; margin: 0; font: .76rem/1.4 var(--mono); color: var(--muted); }
.vcardx__title { font-size: 1.04rem; line-height: 1.35; margin: 0; }
.vcardx__play { display: inline-flex; align-items: center; gap: .45rem; margin-top: auto; padding-top: .35rem; color: var(--teal-700); font-weight: 500; text-decoration: none; width: fit-content; }
.vcardx__play .i { width: 1rem; height: 1rem; padding: .3rem; box-sizing: content-box; border-radius: 50%; background: var(--teal-50); }
.vcardx__play:hover { color: var(--teal-900); }
.vcardx.is-playing .vcardx__play { display: none; }
.vcardx--wide { max-width: 720px; }
.vcardx--sm .vcardx__title { font-size: .95rem; }

/* ============================================================ FAQ */
.faq-home__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem clamp(2rem, 5vw, 5rem); }
@media (max-width: 859.98px) { .faq-home__grid { grid-template-columns: 1fr; } }
.faq { display: grid; gap: .6rem; }
.faq__item { background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq__item[open] { border-color: var(--teal-300); box-shadow: var(--shadow); }
.faq__item summary { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.15rem; cursor: pointer; list-style: none; font-weight: 500; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary span { flex: 1; }
.faq__item summary .i { color: var(--teal-600); transition: rotate .3s var(--ease); }
.faq__item[open] summary .i { rotate: 180deg; }
.faq__a { padding: 0 1.15rem 1.1rem; color: var(--ink-2); }
.faq__a p:last-child { margin-bottom: 0; }
.faqgroup { margin-bottom: 2.75rem; }
.faqgroup__title { display: flex; align-items: center; gap: .8rem; font-size: 1.35rem; }
@media (prefers-reduced-motion: no-preference) {
  :root { interpolate-size: allow-keywords; }
  .faq__item::details-content { block-size: 0; overflow: clip; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
  .faq__item[open]::details-content { block-size: auto; }
}

/* ============================================================ contact */
.contact-home { padding-top: 0; }
.contactcard { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem 3rem; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); background: var(--surface); border: 1px solid var(--line-2); border-radius: 26px; box-shadow: var(--shadow); }
.contactcard h2 { margin-bottom: .35rem; }
.contactcard__addr { color: var(--ink-2); font-size: 1.08rem; margin-bottom: 1.25rem; }
.contactcard__lbl { display: flex; align-items: center; gap: .5rem; font: 600 .82rem/1.2 var(--font-c); letter-spacing: .07em; text-transform: uppercase; color: var(--teal-700); }
.hours { display: grid; gap: .1rem; }
.hours > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line-2); }
.hours dt { font-weight: 500; }
.hours dd { display: contents; }
.hours dd span { grid-column: 1; font-size: .9rem; color: var(--muted); }
.hours dd strong { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 500 .95rem var(--mono); color: var(--teal-800); font-variant-numeric: tabular-nums; }
.contactcard__more { margin: 1.1rem 0 0; }
@media (max-width: 799.98px) { .contactcard { grid-template-columns: 1fr; } }
.contact__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 1.5rem; align-items: start; }
.contactcard--page { grid-template-columns: 1fr; }
.prepbox { padding: 1.5rem; background: var(--surface); border: 1px solid var(--line-2); border-radius: 24px; box-shadow: var(--shadow); }
.prepbox__title { display: flex; align-items: center; gap: .7rem; font-weight: 600; font-size: 1.08rem; }
@media (max-width: 899.98px) { .contact__grid { grid-template-columns: 1fr; } }

/* ============================================================ page header */
.phead { padding: 1.5rem 0 clamp(2rem, 1.5rem + 2vw, 3.25rem); background: linear-gradient(var(--paper), var(--paper)) ; border-bottom: 1px solid var(--line-2); }
.phead__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem clamp(2rem, 4vw, 4rem); align-items: center; margin-top: 1.25rem; }
.phead--split .phead__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); }
.phead__title { margin-bottom: 1rem; max-width: 22ch; }
.phead__intro { font-size: 1.08rem; color: var(--ink-2); max-width: 62ch; margin: 0; }
.phead__lead .answer__text { font-size: 1.06rem; }
.phead__side { min-width: 0; }
.portraitcard { background: var(--surface); padding: 8px; border-radius: 28px; box-shadow: var(--shadow-lg); max-width: 360px; justify-self: end; }
.portraitcard img { border-radius: 21px; width: 100%; }
.phead--about .phead__side { display: flex; justify-content: flex-end; }
@media (max-width: 899.98px) {
  .phead--split .phead__grid { grid-template-columns: 1fr; }
  .phead__side { max-width: 520px; }
  .phead--about .phead__side { justify-content: flex-start; }
  .portraitcard { max-width: 300px; }
}
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .2rem .5rem; font-size: .86rem; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; }
.crumbs li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--teal-300); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal-700); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-2); }
.answer { background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; padding: 1rem 1.2rem; box-shadow: var(--shadow); max-width: 70ch; }
.answer__label { display: flex; align-items: center; gap: .5rem; margin: 0 0 .4rem; font: 600 .78rem/1.2 var(--font-c); letter-spacing: .07em; text-transform: uppercase; color: var(--teal-700); }
.answer__text { margin: 0; color: var(--ink); }
.meta { display: flex; align-items: center; gap: .5rem; margin: .9rem 0 0; font: .82rem var(--mono); color: var(--muted); }

/* ============================================================ content pages */
.pbody { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 3rem; padding-block: clamp(2.25rem, 1.75rem + 2vw, 3.5rem) clamp(3rem, 2rem + 3vw, 5rem); align-items: start; }
.pbody--single { grid-template-columns: minmax(0, 1fr); max-width: 920px; }
.toc { position: sticky; top: calc(var(--header-h) + 20px); }
.toc details { background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; padding: .5rem; }
.toc summary { display: flex; align-items: center; gap: .55rem; padding: .5rem .6rem; cursor: pointer; list-style: none; font: 600 .8rem/1.2 var(--font-c); letter-spacing: .07em; text-transform: uppercase; color: var(--teal-700); }
.toc summary::-webkit-details-marker { display: none; }
.toc summary span { flex: 1; }
.toc summary > .i:last-child { transition: rotate .25s; }
.toc details[open] summary > .i:last-child { rotate: 180deg; }
.toc ol { list-style: none; display: grid; gap: 1px; padding: .2rem 0 .3rem; counter-reset: toc; }
.toc a { display: block; padding: .38rem .6rem; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-size: .9rem; line-height: 1.35; }
.toc a:hover { background: var(--teal-50); }
.toc a.is-active { background: var(--teal-900); color: #fff; }
@media (max-width: 1099.98px) {
  .pbody { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .toc { position: static; }
}

.prose { min-width: 0; max-width: 760px; }
.prose > * + * { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose__intro { margin-bottom: 2rem; font-size: 1.05rem; }
.prose ul, .prose ol { padding-left: 0; margin: 0 0 1.1em; list-style: none; display: grid; gap: .45rem; }
.prose ul > li { position: relative; padding-left: 1.4rem; }
.prose ul > li::before { content: ""; position: absolute; left: .2rem; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-300); box-shadow: 0 0 0 3px var(--teal-50); }
.prose ol { counter-reset: n; }
.prose ol > li { position: relative; padding-left: 2.1rem; counter-increment: n; }
.prose ol > li::before { content: counter(n); position: absolute; left: 0; top: .05em; width: 1.5rem; height: 1.5rem; display: grid; place-items: center; border-radius: 8px; background: var(--teal-50); color: var(--teal-700); font: 600 .8rem/1 var(--mono); }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.5rem 0; padding: 1.1rem 1.3rem; background: var(--surface); border-radius: 16px; border: 1px solid var(--line-2); font-size: 1.05rem; }
.psec { margin-bottom: 2.6rem; scroll-margin-top: calc(var(--header-h) + 16px); }
.psec h2 { font-size: clamp(1.3rem, 1.15rem + .55vw, 1.6rem); margin-bottom: .7rem; }
.psec__tags { display: flex; flex-wrap: wrap; gap: .45rem .9rem; align-items: center; margin: -.2rem 0 .9rem; }
.psec__note { font-size: .86rem; color: var(--muted); font-style: italic; }
.role { margin: 0 0 2.6rem; padding: 1.4rem 1.5rem 1rem; background: var(--teal-50); border: 1px solid rgba(16, 96, 95, .16); border-radius: 22px; scroll-margin-top: calc(var(--header-h) + 16px); }
.role__head { display: flex; align-items: center; gap: .9rem; margin-bottom: .9rem; }
.role__head h2 { font-size: 1.25rem; margin: 0; }
.role__photo { width: 48px; height: 48px; border-radius: 15px; overflow: hidden; flex: none; box-shadow: 0 0 0 2px #fff; }
.role__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.role__note { margin: .15rem 0 0; font-size: .84rem; color: var(--muted); }
.role__body ul > li::before { background: var(--teal-600); box-shadow: 0 0 0 3px #fff; }
.callout { margin: 0 0 2.6rem; padding: 1.3rem 1.5rem .9rem; background: var(--coral-50); border: 1px solid rgba(207, 94, 67, .22); border-radius: 22px; scroll-margin-top: calc(var(--header-h) + 16px); }
.callout__head { display: flex; align-items: center; gap: .8rem; margin-bottom: .7rem; }
.callout__head h2 { font-size: 1.2rem; margin: 0; }
.callout__body ul > li::before { background: var(--coral-500); box-shadow: 0 0 0 3px rgba(207, 94, 67, .15); }
.callout--plain { margin: 0; }
.clinicbox { margin: 0 0 2.6rem; padding: 1.3rem 1.5rem .9rem; background: var(--surface); border: 1px dashed var(--line); border-radius: 22px; }
.clinicbox__head { display: flex; align-items: center; gap: .7rem; margin-bottom: .4rem; }
.clinicbox__head h2 { font-size: 1.15rem; margin: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.prose th { font: 600 .8rem/1.3 var(--font-c); letter-spacing: .05em; text-transform: uppercase; color: var(--teal-700); }
.rel { list-style: none !important; display: grid !important; gap: .5rem !important; padding: 0 !important; }
.rel li { padding: 0 !important; }
.rel li::before { display: none !important; }
.rel a { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; transition: border-color .2s; }
.rel a:hover { border-color: var(--teal-300); }
.rel__t { flex: 1; font-weight: 500; min-width: 0; }
.rel__k { font: 500 .78rem var(--font-c); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.rel a > .i { color: var(--teal-600); }
.disclaimer { margin-top: 2.5rem; padding: 1.2rem 1.3rem; border-radius: 18px; background: var(--sand); display: grid; gap: .55rem; }
.disclaimer p { display: flex; gap: .6rem; margin: 0; font-size: .9rem; color: var(--ink-2); }
.disclaimer .i { margin-top: .2em; color: var(--teal-700); }

/* ============================================================ hub & cards */
.hubgroup { margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.hubgroup__title { display: flex; align-items: center; gap: .85rem; font-size: clamp(1.3rem, 1.15rem + .6vw, 1.65rem); }
.hubgroup__text { color: var(--muted); max-width: 64ch; margin-top: -.2rem; }
.cards { display: grid; gap: 1rem; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1023.98px) { .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639.98px) { .cards--3 { grid-template-columns: 1fr; } }
.card {
  display: flex; flex-direction: column; gap: .55rem; padding: 1.25rem 1.3rem 1.15rem; background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px;
  color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: border-color .2s, translate .25s var(--ease), box-shadow .25s; min-width: 0;
}
.card:hover { border-color: var(--teal-300); translate: 0 -3px; box-shadow: var(--shadow-lg); color: var(--ink); }
.card__top { display: flex; align-items: center; gap: .7rem; }
.card__kind { font: 600 .74rem/1.2 var(--font-c); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.card__title { font-weight: 600; font-size: 1.12rem; line-height: 1.3; }
.card__text { color: var(--muted); font-size: .93rem; }
.card__more { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: .3rem; color: var(--teal-700); font-weight: 500; font-size: .93rem; }
.card__more .i { transition: translate .25s var(--ease); }
.card:hover .card__more .i { translate: 4px 0; }
.card:hover .badge { background: var(--teal-900); color: #fff; }
.card .badge { transition: background .25s, color .25s; }

/* ============================================================ about, education, experience */
.about__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 2rem clamp(2rem, 5vw, 4.5rem); align-items: start; }
.prose--lead p { font-size: 1.06rem; }
.factbox { position: sticky; top: calc(var(--header-h) + 20px); padding: 1.4rem; background: var(--surface); border: 1px solid var(--line-2); border-radius: 24px; box-shadow: var(--shadow); }
.factbox__title { display: flex; align-items: center; gap: .55rem; font: 600 .8rem/1.2 var(--font-c); letter-spacing: .07em; text-transform: uppercase; color: var(--teal-700); }
.facts { display: grid; gap: .1rem; }
.facts__row { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .8rem; align-items: center; padding: .65rem 0; border-bottom: 1px solid var(--line-2); }
.facts__row .badge { grid-row: span 2; }
.facts__row dt { font: 600 .74rem/1.2 var(--font-c); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts__row dd { font-weight: 500; line-height: 1.35; }
@media (max-width: 899.98px) { .about__grid { grid-template-columns: 1fr; } .factbox { position: static; } }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.tile { display: flex; align-items: center; gap: .85rem; padding: 1.1rem 1.15rem; background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: border-color .2s, translate .25s var(--ease); }
.tile:hover { border-color: var(--teal-300); translate: 0 -2px; color: var(--ink); }
.tile__t { flex: 1; font-weight: 600; min-width: 0; }
.tile > .i { color: var(--teal-600); }
@media (max-width: 1023.98px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 539.98px) { .tiles { grid-template-columns: 1fr; } }

.edu__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 2rem clamp(2rem, 5vw, 4rem); align-items: start; }
.edu__side { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 899.98px) { .edu__grid { grid-template-columns: 1fr; } .edu__side { position: static; max-width: 420px; } }
.steps { list-style: none; position: relative; display: grid; gap: 1.1rem; }
.steps::before { content: ""; position: absolute; left: 20px; top: 24px; bottom: 24px; width: 3px; border-radius: 2px; background: linear-gradient(var(--teal-100), var(--teal-300)); }
.step { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.1rem; }
.step > .badge { position: relative; z-index: 1; background: var(--surface); box-shadow: 0 0 0 5px var(--paper), inset 0 0 0 1px rgba(16, 96, 95, .2); }
.step__body { background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; padding: 1.1rem 1.25rem; box-shadow: var(--shadow); min-width: 0; }
.step__years { margin: 0 0 .25rem; font: 500 .9rem var(--mono); color: var(--amber-700); font-variant-numeric: tabular-nums; }
.step__title { font-size: 1.15rem; margin-bottom: .2rem; }
.step__sub { color: var(--muted); font-size: .93rem; margin-bottom: .45rem; }
.step__text { margin: 0; color: var(--ink-2); }
.step__lbl { margin: 1rem 0 .4rem; font: 600 .78rem/1.2 var(--font-c); letter-spacing: .07em; text-transform: uppercase; color: var(--teal-700); }
.photo { background: var(--surface); padding: 8px; border-radius: 24px; box-shadow: var(--shadow); }
.photo img { border-radius: 17px; width: 100%; }
.photo a { display: block; cursor: zoom-in; }
.photo figcaption { padding: .6rem .4rem .2rem; font-size: .86rem; color: var(--muted); }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.duo__item { padding: 1rem 1rem 1.25rem; background: var(--surface); border: 1px solid var(--line-2); border-radius: 24px; box-shadow: var(--shadow); }
.duo__item .artcard { padding: 0; border: 0; box-shadow: none; }
.duo__item h3 { display: flex; align-items: center; gap: .6rem; margin: 1rem .3rem .4rem; }
.duo__item p { margin: 0 .3rem; color: var(--ink-2); }
@media (max-width: 759.98px) { .duo { grid-template-columns: 1fr; } }
.checklist { list-style: none; display: grid; gap: .55rem; margin-bottom: 1.5rem; }
.checklist li { display: flex; gap: .65rem; align-items: flex-start; }
.checklist .i { margin-top: .2em; color: var(--teal-600); }
.checklist--sm { gap: .4rem; font-size: .95rem; }

/* ============================================================ science & media */
.poster { padding: clamp(1.4rem, 1rem + 2vw, 2.4rem); background: var(--surface); border: 1px solid var(--line-2); border-radius: 26px; box-shadow: var(--shadow); max-width: 980px; scroll-margin-top: calc(var(--header-h) + 16px); }
.poster__tag { display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; font: 600 .78rem/1.2 var(--font-c); letter-spacing: .07em; text-transform: uppercase; color: var(--teal-700); }
.poster__title { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); line-height: 1.35; }
.poster__az { color: var(--ink-2); font-size: 1.04rem; }
.poster__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1.5rem; margin: 1.25rem 0; padding: 1.1rem 0; border-block: 1px solid var(--line-2); }
.poster__meta dt { font: 600 .74rem/1.2 var(--font-c); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.poster__meta dd { color: var(--ink); }
.poster__plain { display: flex; gap: .6rem; color: var(--ink-2); }
.poster__plain .i { color: var(--teal-600); margin-top: .2em; }
@media (max-width: 639.98px) { .poster__meta { grid-template-columns: 1fr; } }
.talks { list-style: none; display: grid; gap: 1rem; }
.talk { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 1rem 1.5rem; padding: 1.2rem 1.3rem; background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px; box-shadow: var(--shadow); align-items: start; }
.talk--media { grid-template-columns: 170px minmax(0, 1fr) 220px; }
.talk__date { display: flex; align-items: center; gap: .5rem; margin: 0; font: 500 .9rem var(--mono); color: var(--amber-700); font-variant-numeric: tabular-nums; }
.talk__body h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.talk__body p { margin: 0; color: var(--ink-2); }
.talk__photo { display: block; border-radius: 16px; overflow: hidden; cursor: zoom-in; }
.talk__photo img { width: 100%; height: 100%; max-height: 260px; object-fit: cover; object-position: 50% 30%; }
.talk__video .vcardx { box-shadow: none; }
.talk__video .vcardx__body { padding: .7rem .8rem .8rem; }
@media (max-width: 899.98px) { .talk, .talk--media { grid-template-columns: 1fr; } .talk__photo, .talk__video { max-width: 360px; } }
.sci__photo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2rem; align-items: center; }
@media (max-width: 759.98px) { .sci__photo { grid-template-columns: 1fr; } .sci__photo .photo { max-width: 420px; } }

.tvlist { list-style: none; display: grid; gap: .6rem; }
.tvlist__item { display: grid; grid-template-columns: 90px minmax(0, 220px) minmax(0, 1fr); gap: .3rem 1.25rem; align-items: baseline; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; }
.tvlist__ch { font: 600 .82rem/1.2 var(--font-c); letter-spacing: .07em; text-transform: uppercase; color: var(--teal-700); }
.tvlist__show { font-weight: 600; }
.tvlist__topics { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 759.98px) { .tvlist__item { grid-template-columns: 1fr; } }
.oldvids { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.oldvids a { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .7rem; padding: .8rem 1rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; }
.oldvids a:hover { border-color: var(--teal-300); }
.oldvids .i { grid-row: span 2; color: var(--coral-500); margin-top: .15em; }
.oldvids__t { font-weight: 500; }
.oldvids__m { font: .76rem var(--mono); color: var(--muted); }
@media (max-width: 759.98px) { .oldvids { grid-template-columns: 1fr; } }
.press { list-style: none; display: grid; gap: .6rem; }
.press a { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; padding: 1.1rem 1.25rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; }
.press a:hover { border-color: var(--teal-300); }
.press__src { font: .78rem var(--mono); color: var(--muted); }
.press__t { grid-column: 1; font-weight: 500; }
.press .i { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--teal-600); }

/* ============================================================ booking */
.booking__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 2rem; align-items: start; }
.bsteps { list-style: none; display: grid; gap: 1rem; }
.bstep { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.1rem; padding: 1.3rem 1.4rem; background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px; box-shadow: var(--shadow); }
.bstep h2 { font-size: 1.2rem; margin-bottom: .4rem; }
.bstep p { color: var(--ink-2); margin: 0; }
.bstep__n { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 13px; background: var(--teal-900); color: #fff; font: 500 1.05rem var(--mono); }
.qrcard { position: sticky; top: calc(var(--header-h) + 20px); padding: 1.4rem; background: var(--surface); border: 1px solid var(--line-2); border-radius: 24px; box-shadow: var(--shadow); text-align: center; display: grid; justify-items: center; gap: .8rem; }
.qrcard__title { display: flex; align-items: center; gap: .5rem; margin: 0; font: 600 .8rem/1.2 var(--font-c); letter-spacing: .07em; text-transform: uppercase; color: var(--teal-700); }
.qrcard__img { width: 200px; height: 200px; border-radius: 12px; }
.qrcard__addr { margin: 0; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 899.98px) { .booking__grid { grid-template-columns: 1fr; } .qrcard { position: static; max-width: 360px; } }
@media (max-width: 767.98px) and (pointer: coarse) { .qrcard__title, .qrcard__img { display: none; } }

/* ============================================================ search page, sitemap, legal, 404 */
.searchpage { display: flex; align-items: center; gap: .75rem; padding: .5rem .5rem .5rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.searchpage > .i { color: var(--teal-700); }
.searchpage input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 400 1.1rem var(--font); color: var(--ink); padding: .55rem 0; }
.searchpage__btn { border: 1px solid var(--line); background: var(--teal-50); color: var(--teal-900); border-radius: 12px; padding: .6rem 1rem; cursor: pointer; font-weight: 500; }
.searchpage__btn:hover { background: var(--teal-100); }
.searchpage__count { margin: 1rem 0; color: var(--muted); font-size: .92rem; }
.results--page a { background: var(--surface); border: 1px solid var(--line-2); }
.results--page { gap: .5rem; }
.searchpage__suggest p { color: var(--muted); }
.searchpage__suggest .chips { padding: 0; }
.smap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.smap h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.1rem; margin-top: 1rem; }
.smap h2 a { color: inherit; text-decoration: none; }
.smap ul { list-style: none; display: grid; gap: .35rem; }
.smap li a { color: var(--ink-2); text-decoration: none; }
.smap li a:hover { color: var(--teal-700); text-decoration: underline; }
@media (max-width: 899.98px) { .smap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 539.98px) { .smap { grid-template-columns: 1fr; } }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal__date { font: .82rem var(--mono); color: var(--muted); }
.notfound { padding: clamp(3rem, 2rem + 4vw, 6rem) 0; }
.notfound .artcard { max-width: 380px; margin-bottom: 2rem; }
.notfound__links { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }

/* ============================================================ footer */
.site-footer { position: relative; background: var(--teal-950); color: rgba(226, 239, 236, .82); padding: 3.5rem 0 1.5rem; margin-top: 0; }
.footer__wave { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--teal-700), var(--teal-300), var(--amber-500)); overflow: hidden; }
.footer__pulse { position: absolute; inset: 0; }
.footer__pulse::before { content: ""; position: absolute; top: 0; left: 0; width: 140px; height: 3px; background: linear-gradient(90deg, transparent, #fff, transparent); opacity: .7; transform: translateX(-160px); }
html.m-on .footer__wave.is-in .footer__pulse { animation: wave-run 7s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes wave-run { 0% { transform: translateX(0); } 70%, 100% { transform: translateX(calc(100% + 160px)); } }
.footer__top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2.5rem; }
.brand--footer { color: #fff; }
.brand--footer .mark__bg { fill: rgba(255, 255, 255, .08); }
.brand--footer .brand__role { color: rgba(226, 239, 236, .65); }
.footer__addr { display: flex; gap: .65rem; margin: 1.25rem 0; }
.footer__addr .i { color: var(--teal-300); margin-top: .2em; }
.site-footer .cicons .cicon { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #E2EFEC; }
.site-footer .cicons .cicon:hover { background: #fff; color: var(--teal-950); border-color: #fff; }
.footer__vcard { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.1rem; padding: .55rem .9rem; border-radius: 12px; border: 1px dashed rgba(143, 198, 189, .5); color: #E2EFEC; text-decoration: none; }
.footer__vcard:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.footer__nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.footer__title { font: 600 .78rem/1.2 var(--font-c); letter-spacing: .08em; text-transform: uppercase; color: var(--teal-300); margin-bottom: .8rem; }
.footer__col ul { list-style: none; display: grid; gap: .45rem; }
.footer__col a { color: rgba(226, 239, 236, .82); text-decoration: none; font-size: .93rem; }
.footer__col a:hover { color: #fff; text-decoration: underline; }
.footer__note { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer__note p { display: flex; gap: .6rem; margin: 0; font-size: .88rem; }
.footer__note .i { color: var(--teal-300); margin-top: .2em; }
.footer__note strong { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.75rem; margin-top: 1.5rem; font-size: .86rem; }
.footer__bottom p { margin: 0; }
.footer__legal { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.footer__legal a { color: rgba(226, 239, 236, .75); text-decoration: none; }
.footer__legal a:hover { color: #fff; text-decoration: underline; }
.footer__otx { margin-left: auto !important; }
.footer__otx a { color: #fff; font-weight: 600; text-decoration: none; }
.footer__otx a:hover { color: var(--amber-300); }
@media (max-width: 1023.98px) { .footer__top { grid-template-columns: 1fr; } }
@media (max-width: 699.98px) { .footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__otx { margin-left: 0 !important; } }

/* ============================================================ reveal & page transitions */
html.m-on .rv:not(.is-in) { opacity: 0; }
html.m-on .rv.is-in { animation: rv-in .75s var(--ease) backwards; animation-delay: var(--m-d, 0ms); }
@keyframes rv-in { from { opacity: 0; translate: 0 16px; } }
html.m-done .rv, html.m-done .m-note { opacity: 1 !important; }
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-dim .3s ease both; }
  ::view-transition-new(root) { animation: vt-iris .55s cubic-bezier(.3, .7, .2, 1) both; }
  @keyframes vt-iris { from { clip-path: circle(4% at 50% 45%); } to { clip-path: circle(140% at 50% 45%); } }
  @keyframes vt-dim { to { opacity: .55; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.vcardx--sm .vcardx__meta, .vcardx--sm .vcardx__title { display: none; }
.vcardx--sm .vcardx__body { padding: .6rem .8rem .7rem; }
.phead__main { min-width: 0; }
.phead__title, .card__title, .hero__h1 { overflow-wrap: anywhere; }
@supports (hyphens: auto) { .phead__title { hyphens: auto; } }
input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
