/* Uzman Pediatr Gülnar Nəcəfova — site styles
   Concept: a growth chart. Soft percentile curves, a measuring ruler,
   leaf-shaped icon badges, warm paper and sea-glass teal. */

/* ============================================================= tokens */
:root {
  --paper: #FBF8F4;
  --paper-2: #F5EFE6;
  --white: #FFFFFF;
  --ink: #17303A;
  --ink-2: #3B4F58;
  --ink-3: #5B6C73;
  --line: #E8E0D5;
  --line-2: #D9CFC1;
  --sea: #2A746F;
  --sea-600: #236661;
  --sea-700: #1D5753;
  --sea-900: #10302E;
  --sea-50: #EAF4F2;
  --sea-100: #D5EAE6;
  --sea-200: #B6DAD4;
  --apricot: #F2A578;
  --apricot-50: #FDF1E8;
  --apricot-200: #F6C9A9;
  --clay: #A34E2B;
  --sky-50: #EAF1F8;
  --sky-ink: #2E5A86;
  --butter-50: #FFF6DF;
  --butter-ink: #775712;
  --rose-50: #FCEDEE;
  --rose-ink: #A0394A;
  --lilac-50: #F1EEFA;
  --lilac-ink: #58488F;
  --alert-50: #FDF0EC;
  --alert-line: #F1C8B8;
  --alert-ink: #983A22;
  --error: #A33A22;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-leaf: 14px 14px 14px 4px;
  --shadow: 0 18px 40px -24px rgba(23, 48, 58, .30);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --font: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  interpolate-size: allow-keywords;
}

/* ============================================================= base */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  scrollbar-gutter: stable;
}
html:has(.subnav) { scroll-padding-top: calc(var(--header-h) + 76px); }
html.has-dialog { overflow: hidden; }

body {
  margin: 0;
  font: 400 1rem/1.65 var(--font);
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.35rem + 2.4vw, 3.1rem); }
main h2 { font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.2rem); }
main h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--sea-600); text-underline-offset: 3px; }
a:hover { color: var(--sea-700); }
img { max-width: 100%; height: auto; }
em, i { font-style: normal; }
button, input, textarea, select { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }

[hidden] { display: none !important; }
dialog:not([open]) { display: none !important; }

:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.25em; height: 1.25em;
  flex: none;
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px; top: -80px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

main:focus { outline: none; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section { padding-block: clamp(56px, 7vw, 96px); }
.hero + .section { padding-top: clamp(28px, 4vw, 56px); }
.section--flush { padding-top: 8px; }
.section--tint { background: #EEF6F4; }
.section--paper { background: var(--paper-2); }

/* ============================================================= shared bits */
.badge {
  width: 36px; height: 36px;
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: var(--radius-leaf);
  background: var(--sea-50);
  color: var(--sea);
}
.badge .icon { width: 20px; height: 20px; }
.badge--lg { width: 48px; height: 48px; }
.badge--lg .icon { width: 24px; height: 24px; }
.section--tint .badge { background: #fff; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--sea-700);
}
.kicker > span:last-child { min-width: 0; }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head > p:not(.kicker) { margin-top: 12px; color: var(--ink-2); max-width: 62ch; }
.section-head--row {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
}

.link-arrow {
  display: inline;
  width: fit-content;
  color: var(--sea-600);
  font-weight: 500;
  text-decoration: none;
}
.link-arrow > span {
  text-decoration: underline;
  text-decoration-color: rgba(35, 102, 97, .35);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: text-decoration-color .2s;
}
.link-arrow .icon {
  display: inline-block;
  width: 18px; height: 18px;
  margin-left: 6px;
  vertical-align: -3px;
  transition: transform .25s var(--ease);
}
.link-arrow:hover > span { text-decoration-color: currentColor; }
.link-arrow:hover .icon { transform: translateX(3px); }

.section-more { margin-top: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: 500 1rem/1.2 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn .icon { width: 20px; height: 20px; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateY(-1px) scale(1.06); }
.btn--primary { background: var(--sea); color: #fff; box-shadow: 0 12px 24px -16px rgba(42, 116, 111, .9); }
.btn--primary:hover { background: var(--sea-700); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #0E222A; color: #fff; }
.btn--ghost { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--sea); color: var(--sea-700); }
.btn--block { width: 100%; }
.btn--small { min-height: 44px; padding: 10px 16px; }

.icon-btn {
  width: 44px; height: 44px;
  display: inline-grid;
  place-items: center;
  flex: none;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.icon-btn:hover { background: var(--sea-50); border-color: var(--sea-200); color: var(--sea-700); }
.icon-btn .icon { width: 20px; height: 20px; }
.icon-btn--round { border-radius: 50%; }
.icon-btn--accent { background: var(--sea); border-color: var(--sea); color: #fff; }
.icon-btn--accent:hover { background: var(--sea-700); border-color: var(--sea-700); color: #fff; }

.icon-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.icon-row .icon-btn { width: 48px; height: 48px; }
.icon-row--center { justify-content: center; }

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--sea-600);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.text-btn .icon { width: 18px; height: 18px; }
.text-btn:hover span { text-decoration: underline; text-underline-offset: 4px; }

/* category chips */
.cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 5px 10px 5px 8px;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
}
.cat .icon { width: 16px; height: 16px; }
.cat--sea { background: var(--sea-50); color: var(--sea-700); }
.cat--apricot { background: var(--apricot-50); color: var(--clay); }
.cat--butter { background: var(--butter-50); color: var(--butter-ink); }
.cat--sky { background: var(--sky-50); color: var(--sky-ink); }
.cat--rose { background: var(--rose-50); color: var(--rose-ink); }
.cat--lilac { background: var(--lilac-50); color: var(--lilac-ink); }
a.cat:hover { filter: brightness(.97); }

.meta-item { display: inline-flex; align-items: center; gap: 6px; }
.meta-item .icon { width: 16px; height: 16px; }

/* lists */
.dots { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.dots li { position: relative; padding-left: 20px; }
.dots li::before {
  content: "";
  position: absolute;
  left: 3px; top: .72em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--apricot);
}
.checks { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 34px; color: var(--ink-2); }
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 1px;
  width: 22px; height: 22px;
  border-radius: 7px 7px 7px 2px;
  background: var(--sea-50);
}
.checks li::after {
  content: "";
  position: absolute;
  left: 5px; top: 6px;
  width: 12px; height: 12px;
  background: var(--sea);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ============================================================= header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}
/* The blur lives on a pseudo-element: a filter on the header itself would
   trap the fixed mobile CTA inside it. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(251, 248, 244, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled::before {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -28px rgba(23, 48, 58, .5);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-svg { width: 40px; height: 40px; flex: none; stroke: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.brand-name { font-weight: 600; font-size: 1.06rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand-role { font-size: .8125rem; color: var(--ink-3); white-space: nowrap; }

.site-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink);
  font-size: .98rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.nav-link:hover { background: rgba(42, 116, 111, .08); color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--sea-700); font-weight: 500; }
.has-panel .nav-link { padding-right: 2px; }
.nav-toggle {
  width: 26px; height: 34px;
  display: grid;
  place-items: center;
  margin-right: 4px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
}
.nav-toggle .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.nav-toggle:hover { color: var(--ink); background: rgba(42, 116, 111, .08); }

.nav-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: -8px;
  z-index: 10;
  min-width: 290px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear .18s;
}
.nav-panel::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -14px;
  height: 14px;
}
.nav-panel ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-panel--wide { min-width: 560px; }
.nav-panel--wide ul { grid-template-columns: 1fr 1fr; }
.nav-panel a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px 9px 9px;
  border-radius: 12px;
  color: var(--ink);
  font-size: .95rem;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color .15s;
}
.nav-panel a:hover { background: var(--sea-50); color: var(--ink); }
.nav-panel__icon {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: var(--radius-leaf);
  background: var(--sea-50);
  color: var(--sea);
  transition: background-color .15s;
}
.nav-panel a:hover .nav-panel__icon { background: #fff; }
.nav-panel__icon .icon { width: 18px; height: 18px; }

.nav-item.is-open .nav-panel,
.nav-item.has-panel:focus-within .nav-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s;
}
.nav-item.is-open .nav-toggle .icon { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) {
  .nav-item.has-panel:hover .nav-panel {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s;
  }
  .nav-item.has-panel:hover .nav-toggle .icon { transform: rotate(180deg); }
}

.header-tools { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.header-cta { padding-inline: 18px; }
.burger { display: none; }

/* ============================================================= decorative growth curves */
.curves { position: absolute; pointer-events: none; overflow: visible; }
.curves__line { fill: none; stroke: var(--sea-200); stroke-width: 1.5; opacity: .85; }
.curves__median { fill: none; stroke: var(--apricot); stroke-width: 2.2; }
.curves__dot { fill: #fff; stroke: var(--apricot); stroke-width: 2.4; }

@media (prefers-reduced-motion: no-preference) {
  .js .curves path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: curve-draw 1.9s var(--ease) forwards; }
  .js .curves .curves__line--2 { animation-delay: .08s; }
  .js .curves .curves__line--3 { animation-delay: .16s; }
  .js .curves .curves__line--4 { animation-delay: .24s; }
  .js .curves .curves__median { animation-delay: .3s; }
  .js .curves__dot { opacity: 0; transform-box: fill-box; transform-origin: center; animation: dot-pop .45s var(--ease) forwards; }
  .js .curves__dot--1 { animation-delay: 1s; }
  .js .curves__dot--2 { animation-delay: 1.25s; }
  .js .curves__dot--3 { animation-delay: 1.5s; }
}
@keyframes curve-draw { to { stroke-dashoffset: 0; } }
@keyframes dot-pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }

/* ============================================================= hero */
.hero {
  position: relative;
  overflow: hidden;
  overflow: clip;
  padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 5vw, 64px);
}
.hero__curves { left: 0; right: 0; bottom: 0; width: 100%; height: 80%; }
.hero__grid,
.hero .facts { position: relative; z-index: 1; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__copy { max-width: 640px; }
.hero__title {
  margin: 4px 0 22px;
  font-size: clamp(2.3rem, 1.3rem + 3.3vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
}
.hero__pre {
  display: block;
  margin-bottom: 12px;
  font-size: .4em;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--sea-700);
}
.hero__lead {
  margin-bottom: 14px;
  max-width: 46ch;
  font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink);
}
.hero__text { max-width: 62ch; color: var(--ink-2); }
.hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.hero__figure,
.page-hero__figure {
  position: relative;
  justify-self: end;
  width: min(100%, 440px);
  margin: 0;
}
.page-hero__figure { width: min(100%, 400px); }
.hero__figure::before,
.page-hero__figure::before {
  /* measuring ruler beside the portrait */
  content: "";
  position: absolute;
  top: 28px;
  bottom: 84px;
  left: -34px;
  width: 18px;
  opacity: .7;
  background:
    linear-gradient(var(--line-2), var(--line-2)) left top / 1px 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--ink-3) 0 1px, transparent 1px 40px) left top / 18px 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--line-2) 0 1px, transparent 1px 8px) left top / 10px 100% no-repeat;
}
.page-hero__figure::before { bottom: 28px; }
.hero__photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 606 / 852;
  border-radius: 28px 28px 28px 10px;
  background: var(--sea-50);
  box-shadow: 0 34px 60px -40px rgba(23, 48, 58, .55);
}
.hero__photo--wide { aspect-ratio: 676 / 777; }
.hero__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero__motto {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-weight: 500;
  color: var(--ink-2);
}
.hero__motto .icon { width: 22px; height: 22px; color: var(--apricot); }

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(32px, 4vw, 52px) 0 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .86);
}
.fact { min-width: 0; padding: 18px 22px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact dt {
  margin-bottom: 4px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--sea-700);
  font-variant-numeric: tabular-nums;
}
.fact dd { margin: 0; font-size: .95rem; line-height: 1.4; }

/* ============================================================= page hero */
.page-hero {
  position: relative;
  overflow: hidden;
  overflow: clip;
  padding: clamp(18px, 3vw, 32px) 0 clamp(40px, 5vw, 64px);
}
.page-hero__curves { right: -8%; bottom: 0; width: 70%; height: 92%; opacity: .55; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.page-hero h1 { margin: 6px 0 16px; }
.page-hero__single > :is(h1, .lead, .search-bar, .byline, .quick-links) { max-width: 780px; }
.page-hero--article h1 { max-width: 30ch; margin-top: 14px; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); }
.page-hero--center { text-align: center; }
.page-hero--center .page-hero__single > * { margin-inline: auto; }
.lead { max-width: 64ch; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--ink-2); }
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 62ch;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--alert-line);
  border-radius: 12px;
  background: var(--alert-50);
  color: var(--alert-ink);
  font-size: .95rem;
}
.notice .icon { width: 20px; height: 20px; margin-top: 2px; }

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  font-size: .88rem;
  color: var(--ink-3);
}
.crumbs li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.crumbs li + li::before { content: "/"; color: var(--line-2); }
.crumbs a { display: inline-block; padding-block: 6px; color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--sea-700); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-2); }

/* sticky in-page navigation (about page) */
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  border-block: 1px solid var(--line);
  background: rgba(251, 248, 244, .95);
}
.subnav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 8px 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: block;
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: .95rem;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.subnav a:hover { background: #fff; color: var(--ink); }
.subnav a.is-active { background: #fff; color: var(--sea-700); font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); }

/* ============================================================= home: topics */
.topics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}
.topic {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 28px 28px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color .25s;
}
.topic:nth-child(3n) { border-right: 0; }
.topic:nth-last-child(-n+3) { border-bottom: 0; }
.topic:hover { background: var(--sea-50); }
.topic:hover .badge { background: #fff; }
.topic:focus-within { outline: 3px solid var(--sea); outline-offset: -3px; }
.topic__title { font-size: 1.12rem; }
.topic__title a { color: inherit; text-decoration: none; }
.topic__title a::after { content: ""; position: absolute; inset: 0; }
.topic__title a:focus-visible { outline: none; }
.topic p { color: var(--ink-2); font-size: .95rem; }
.topic__arrow { margin-top: auto; color: var(--sea); }
.topic__arrow .icon { width: 20px; height: 20px; transition: transform .25s var(--ease); }
.topic:hover .topic__arrow .icon { transform: translateX(4px); }

/* ============================================================= home: approach */
.approach {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.approach__photo {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 10px 28px 28px 28px;
  background: #fff;
}
.approach__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.principles { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.principle {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.principle__num {
  padding-top: 1px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--clay);
  font-variant-numeric: tabular-nums;
}
.principle h3 { margin-bottom: 6px; font-size: 1.08rem; }
.principle p { color: var(--ink-2); font-size: .97rem; }

/* ============================================================= home: professional stage */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.events { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.event { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.event.is-upcoming {
  margin: 12px 0;
  padding: 16px 18px;
  border: 1px solid var(--apricot-200);
  border-radius: 16px;
  background: var(--apricot-50);
}
.event__date {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--sea-700);
  font-variant-numeric: tabular-nums;
}
.event__flag {
  padding: 3px 9px;
  border-radius: 7px;
  background: #fff;
  color: var(--clay);
  font-size: .78rem;
  font-weight: 600;
}
.event__title { font-size: 1.05rem; line-height: 1.35; }
.event__meta { font-size: .9rem; color: var(--ink-3); }

.stage__media {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 14px;
}
.stage__media figure { display: grid; gap: 8px; margin: 0; align-content: start; }
.stage__media img { display: block; width: 100%; object-fit: cover; border-radius: 18px; background: var(--sea-50); }
.stage__main { grid-row: 1 / span 2; grid-template-rows: minmax(0, 1fr) auto; }
.stage__main img { height: 100%; min-height: 0; object-position: 18% 50%; }
.stage__side img { aspect-ratio: 3 / 4; }
.stage__media figcaption { font-size: .84rem; line-height: 1.35; color: var(--ink-3); }

/* ============================================================= home: magazine */
.mag {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: stretch;
}
.mag__lead {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: border-color .2s;
}
.mag__lead:hover { border-color: var(--sea-200); }
.mag__lead { overflow: hidden; overflow: clip; isolation: isolate; }
.mag__curves { left: 0; right: 0; bottom: 0; z-index: -1; width: 100%; height: 58%; opacity: .7; }
.mag__title { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); line-height: 1.2; }
.mag__title a { color: var(--ink); text-decoration: none; }
.mag__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.mag__lead:hover .mag__title a { color: var(--sea-700); }
.mag__lead > p:not(.a-card__meta) { color: var(--ink-2); }
.mag__lead .a-card__meta { margin-top: auto; }
.mag__list { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.mag__item {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}
.mag__item-title { font-size: 1.05rem; line-height: 1.35; }
.mag__item-title a { color: var(--ink); text-decoration: none; }
.mag__item-title a::after { content: ""; position: absolute; inset: 0; }
.mag__item:hover .mag__item-title a { color: var(--sea-700); text-decoration: underline; text-underline-offset: 4px; }
.mag__lead:focus-within, .mag__item:focus-within, .a-card:focus-within { outline: 3px solid var(--sea); outline-offset: 2px; }
.mag__title a:focus-visible, .mag__item-title a:focus-visible, .a-card__title a:focus-visible { outline: none; }

/* ============================================================= article cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cards__cell { display: flex; min-width: 0; }
.a-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.a-card:hover { border-color: var(--sea-200); box-shadow: 0 18px 34px -30px rgba(23, 48, 58, .6); }
.a-card__title { font-size: 1.1rem; line-height: 1.35; }
.a-card__title a { color: var(--ink); text-decoration: none; }
.a-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.a-card:hover .a-card__title a { color: var(--sea-700); }
.a-card__text { color: var(--ink-2); font-size: .95rem; }
.a-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: auto;
  font-size: .85rem;
  color: var(--ink-3);
}

/* ============================================================= video posters */
.shorts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.short {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 14px;
  min-width: 0;
  aspect-ratio: 9 / 14;
  padding: 18px;
  overflow: hidden;
  border-radius: 20px;
  isolation: isolate;
}
.short::after {
  /* small growth curve motif in the corner */
  content: "";
  position: absolute;
  right: -18px; bottom: -10px;
  z-index: -1;
  width: 150px; height: 110px;
  opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 110' fill='none' stroke-linecap='round'%3E%3Cpath d='M4 96C40 90 70 70 90 50s36-32 56-36' stroke='%23ffffff' stroke-width='2.4'/%3E%3Cpath d='M4 106C44 101 76 84 96 66s32-28 50-31' stroke='%23ffffff' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.short--sea { background: var(--sea-50); }
.short--apricot { background: var(--apricot-50); }
.short--sky { background: var(--sky-50); }
.short--lilac { background: var(--lilac-50); }
.short--butter { background: var(--butter-50); }
.short__top { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.short__top .icon { width: 16px; height: 16px; }
.short__title { font-size: 1rem; line-height: 1.35; font-weight: 600; letter-spacing: 0; }
.short__play {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .2s;
}
.short__play::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.short__play .icon { width: 24px; height: 24px; margin-left: 3px; }
.short:hover .short__play { transform: scale(1.06); background: var(--sea-700); }
.short__link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  font-size: .86rem;
  font-weight: 500;
  color: var(--sea-700);
  text-decoration: none;
}
.short__link .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.short__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.short__link:hover .icon { transform: translateX(3px); }

/* ============================================================= FAQ */
.faq-teaser {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.faq-list { display: grid; gap: 12px; }
.faq-item { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--sea-700); }
.faq-item__icon {
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 10px;
  background: var(--sea-50);
  color: var(--sea);
  transition: transform .25s var(--ease), background-color .2s, color .2s;
}
.faq-item__icon .icon { width: 18px; height: 18px; }
.faq-item[open] .faq-item__icon { transform: rotate(45deg); background: var(--sea); color: #fff; }
.faq-item__body { padding: 0 20px 20px; color: var(--ink-2); }
.faq-item__body p + p { margin-top: 10px; }
@media (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) {
    .faq-item::details-content {
      block-size: 0;
      overflow: hidden;
      transition: block-size .3s var(--ease), content-visibility .3s allow-discrete;
    }
    .faq-item[open]::details-content { block-size: auto; }
  }
}
.faq-group + .faq-group { margin-top: 36px; }
.faq-group h2 { margin-bottom: 16px; font-size: clamp(1.3rem, 1.1rem + .7vw, 1.6rem); }
.faq-more { display: flex; align-items: center; gap: 10px; margin-top: 36px; color: var(--ink-2); }
.faq-more .icon { width: 22px; height: 22px; color: var(--sea); }

/* ============================================================= home: appointment */
.appointment {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 28px 48px;
  overflow: hidden;
  overflow: clip;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
}
.appointment__curves { right: 0; bottom: 0; width: 72%; height: 100%; opacity: .45; }
.appointment > :not(.curves) { position: relative; z-index: 1; }
.appointment .section-head { margin-bottom: 22px; }
.places { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.places li { display: flex; align-items: center; gap: 14px; }
.places strong { display: block; font-weight: 600; }
.places li > span:last-child > span { font-size: .9rem; color: var(--ink-3); }
.appointment__side { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; }
.appointment__alert {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--alert-line);
  border-radius: 14px;
  background: var(--alert-50);
  color: var(--alert-ink);
  font-size: .95rem;
}
.appointment__alert .icon { width: 20px; height: 20px; margin-top: 2px; }

/* ============================================================= about */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; right: 0; top: 13px;
  height: 1px;
  background: var(--line-2);
}
.timeline__item { position: relative; min-width: 0; padding-top: 34px; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 13px; height: 13px;
  border: 2px solid var(--sea);
  border-radius: 50%;
  background: var(--paper);
}
.timeline__when {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--sea-700);
  font-variant-numeric: tabular-nums;
}
.timeline__card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.timeline__card h3 { font-size: 1.05rem; }
.timeline__card p { color: var(--ink-2); font-size: .95rem; }

.thesis {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.thesis__facts { display: grid; margin: 0; border-top: 1px solid var(--sea-100); }
.thesis__facts div { padding: 14px 0; border-bottom: 1px solid var(--sea-100); }
.thesis__facts dt { font-size: .82rem; color: var(--ink-3); }
.thesis__facts dd { margin: 2px 0 0; font-weight: 500; }
.thesis__body {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}
.thesis__body > p { color: var(--ink-2); }
.thesis__titles { display: grid; gap: 6px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.thesis__label { margin-top: 6px; font-size: .8rem; font-weight: 600; color: var(--sea-700); }
.thesis__label:first-child { margin-top: 0; }
.thesis__orig { font-size: 1.05rem; font-weight: 500; color: var(--ink); }
.thesis__az { color: var(--ink); }
.source-line { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--ink-3); }
.source-line .icon { width: 18px; height: 18px; margin-top: 2px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.split__main { min-width: 0; }
.prose-p { max-width: 64ch; color: var(--ink-2); }
.split__subtitle { margin: 28px 0 10px; }
.panel {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}
.panel__title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 1.05rem; }
main .panel__title { font-size: 1.05rem; }
.panel__title .icon { width: 20px; height: 20px; color: var(--sea); }
.panel--alert { border-color: var(--alert-line); background: var(--alert-50); }
.panel--alert .panel__title .icon { color: var(--alert-ink); }
.panel--alert > p { color: var(--ink-2); }

.activities {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.activity {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.activity h3 { font-size: 1.05rem; }
.activity p { color: var(--ink-2); font-size: .95rem; }

.event-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.event-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) auto;
  gap: 16px 32px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.event-row.is-upcoming {
  margin: 12px 0;
  padding: 20px;
  border: 1px solid var(--apricot-200);
  border-radius: 18px;
  background: var(--apricot-50);
}
.event-row__date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-weight: 600;
  color: var(--sea-700);
  font-variant-numeric: tabular-nums;
}
.event-row__body { display: grid; gap: 6px; min-width: 0; }
.event-row__body h3 { font-size: 1.1rem; }
.event-row__body > p:not(.event__meta) { color: var(--ink-2); }
.event-row__thumb {
  width: 88px; height: 110px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: var(--sea-50);
  cursor: zoom-in;
}
.event-row__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.event-row__thumb:hover img { transform: scale(1.05); }

.certs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.zoom-figure { display: grid; align-content: start; gap: 10px; min-width: 0; margin: 0; }
.zoom-figure figcaption { font-size: .88rem; line-height: 1.4; color: var(--ink-3); }
.zoom {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  cursor: zoom-in;
}
.zoom img { display: block; width: 100%; transition: transform .5s var(--ease); }
.gallery .zoom img { aspect-ratio: 3 / 4; height: 100%; object-fit: cover; object-position: 50% 25%; }
.zoom:hover img { transform: scale(1.03); }
.zoom__hint {
  position: absolute;
  right: 12px; bottom: 12px;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  opacity: 0;
  transition: opacity .2s;
}
.zoom__hint .icon { width: 18px; height: 18px; }
.zoom:hover .zoom__hint, .zoom:focus-visible .zoom__hint { opacity: 1; }

.media-list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.media-list > li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.media-list h3 { margin-bottom: 4px; font-size: 1.05rem; }
.media-list p { color: var(--ink-2); }

.quotes { display: grid; gap: 16px; }
.quote { margin: 0; }
.quote--card, .prose figure.quote {
  display: grid;
  gap: 10px;
  padding: 24px;
  border-radius: 20px;
  background: var(--apricot-50);
}
.quote .icon { width: 28px; height: 28px; color: var(--clay); }
.quote blockquote { margin: 0; font-size: 1.12rem; line-height: 1.55; font-weight: 500; color: var(--ink); }
.quote blockquote p { margin: 0; }
.quote figcaption { font-size: .9rem; color: var(--ink-3); }

/* ============================================================= docs layout: services, FAQ */
.docs {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding-block: 8px clamp(56px, 7vw, 96px);
}
.docs__index {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}
.docs__index-title { padding: 4px 10px 8px; font-size: .82rem; font-weight: 600; color: var(--ink-3); }
.docs__index ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.docs__index a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: .93rem;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color .15s, color .15s;
}
.docs__index a .icon { width: 18px; height: 18px; color: var(--sea); }
.docs__index a:hover { background: var(--sea-50); color: var(--ink); }
.docs__index a.is-active { background: var(--sea-50); color: var(--sea-700); font-weight: 500; }
.docs__body { display: grid; gap: 24px; min-width: 0; }
.docs--faq .docs__body { gap: 0; }

.service {
  padding: clamp(22px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}
.service__head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.service__num { margin-bottom: 2px; font-size: .82rem; font-weight: 600; color: var(--clay); font-variant-numeric: tabular-nums; }
.service h2 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.8rem); }
.service :where(p) { color: var(--ink-2); }
.service__sub { margin: 22px 0 6px; }
main .service__sub { font-size: 1.02rem; }
.answer { margin-bottom: 18px; padding: 18px 20px; border-radius: 16px; background: var(--sea-50); }
.answer__label { margin-bottom: 6px; font-size: .8rem; font-weight: 600; color: var(--sea-700); }
.answer > p:not(.answer__label) { color: var(--ink); }
.example { margin-top: 18px; padding: 16px 18px; border: 1px dashed var(--sea-200); border-radius: 16px; }
.example__label { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: .92rem; font-weight: 600; color: var(--sea-700); }
.example__label .icon { width: 18px; height: 18px; }
.service__related { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.service__related-title { margin-bottom: 8px; font-size: .85rem; font-weight: 600; color: var(--ink-3); }
.service__related ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }

.callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--alert-line);
  border-radius: 14px;
  background: var(--alert-50);
  color: var(--alert-ink);
}
.callout .icon { width: 20px; height: 20px; margin-top: 3px; }
.callout > p { margin: 0; color: var(--alert-ink); }

.checklist {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}
.checklist h2 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.8rem); }

/* ============================================================= articles list */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink-2);
  font-size: .93rem;
  text-decoration: none;
  transition: background-color .2s, border-color .2s, color .2s;
}
.filter .icon { width: 18px; height: 18px; color: var(--sea); }
.filter:hover { border-color: var(--sea-200); color: var(--ink); }
.filter__count {
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--paper-2);
  color: var(--ink-3);
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
}
.filter.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.filter.is-active .icon { color: #fff; }
.filter.is-active .filter__count { background: rgba(255, 255, 255, .16); color: #fff; }

/* ============================================================= article page */
.byline { display: flex; align-items: center; gap: 14px; }
.byline__photo img { display: block; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.byline__text { display: grid; gap: 4px; font-size: .92rem; color: var(--ink-2); }
.byline__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .86rem; color: var(--ink-3); }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding-block: 8px clamp(56px, 7vw, 88px);
}
.article { min-width: 0; max-width: 760px; }
.answer--lead { margin-bottom: 24px; padding: 22px 24px; border-radius: 20px; font-size: 1.08rem; }
.article-video {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  padding: 16px 20px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}
.article-video__play {
  width: 64px; height: 64px;
  display: grid;
  place-items: center;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: background-color .2s, transform .25s var(--ease);
}
.article-video__play .icon { width: 26px; height: 26px; margin-left: 3px; }
.article-video__play:hover { background: var(--sea-700); transform: scale(1.04); }
.article-video__label { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.article-video__label .icon { width: 16px; height: 16px; }
.article-video__title { margin-top: 2px; font-weight: 600; line-height: 1.35; }

.prose { font-size: 1.05rem; line-height: 1.75; color: var(--ink-2); }
.prose :where(h2) {
  margin: 2.1em 0 .6em;
  font-size: clamp(1.3rem, 1.1rem + .7vw, 1.65rem);
  line-height: 1.25;
  color: var(--ink);
}
.prose :where(h2:first-child) { margin-top: 0; }
.prose :where(p) { margin: 0 0 1em; }
.prose :where(ul, ol) { display: grid; gap: .5em; margin: 0 0 1.2em; padding: 0; list-style: none; }
.prose :where(ul > li) { position: relative; padding-left: 22px; }
.prose :where(ul > li)::before {
  content: "";
  position: absolute;
  left: 3px; top: .72em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--apricot);
}
.prose :where(ol) { counter-reset: step; }
.prose :where(ol > li) { position: relative; padding-left: 40px; counter-increment: step; }
.prose :where(ol > li)::before {
  content: counter(step);
  position: absolute;
  left: 0; top: .15em;
  width: 27px; height: 27px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--sea-50);
  color: var(--sea-700);
  font-size: .85rem;
  font-weight: 600;
  line-height: 1;
}
.prose :where(strong) { font-weight: 600; color: var(--ink); }
.prose .callout { margin: 1.4em 0; font-size: 1rem; }
.prose figure.quote { margin: 1.6em 0; }
.prose .table-wrap { margin: 0 0 1.4em; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th { background: var(--sea-50); color: var(--ink); font-weight: 600; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose td:first-child { color: var(--ink); font-weight: 500; }
.article-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: .92rem;
  color: var(--ink-3);
}
.article-note .icon { width: 18px; height: 18px; margin-top: 3px; }

.article-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 18px; min-width: 0; }
.toc { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.toc__title { margin-bottom: 8px; padding-inline: 10px; font-size: .82rem; font-weight: 600; color: var(--ink-3); }
.toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.toc a {
  display: block;
  padding: 7px 10px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: .92rem;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color .15s, color .15s;
}
.toc a:hover { background: var(--sea-50); color: var(--ink); }
.toc a.is-active { background: var(--sea-50); color: var(--sea-700); font-weight: 500; }
.author-card { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border-radius: 18px; background: var(--sea-50); }
.author-card__photo img { display: block; width: 64px; height: 64px; border-radius: 18px 18px 18px 5px; object-fit: cover; object-position: 50% 15%; }
.author-card__name { font-weight: 600; }
.author-card__role { margin: 2px 0 6px; font-size: .88rem; line-height: 1.45; color: var(--ink-2); }
.author-card__link { font-size: .92rem; font-weight: 500; }
.related__title { margin-bottom: 24px; }
main .related__title { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); }

/* ============================================================= media page */
.tv {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.tv__screen {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(120% 90% at 20% 15%, #1F4F4B 0%, var(--sea-900) 62%),
    var(--sea-900);
}
.tv__play {
  position: relative;
  width: 84px; height: 84px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 0 0 12px rgba(255, 255, 255, .1);
  cursor: pointer;
  transition: transform .25s var(--ease);
}
.tv__play .icon { width: 32px; height: 32px; margin-left: 4px; }
.tv__play:hover { transform: scale(1.06); }
.tv__label { position: absolute; left: 18px; bottom: 16px; display: flex; align-items: center; gap: 8px; font-size: .9rem; color: rgba(255, 255, 255, .86); }
.tv__label .icon { width: 18px; height: 18px; }
.tv__date { margin: 8px 0 12px; font-size: .95rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tv__text > p:not(.kicker):not(.tv__date) { color: var(--ink-2); }
.muted-note { margin-top: 14px; font-size: .95rem; color: var(--ink-3); }
.tv__text > .muted-note { color: var(--ink-3); }

.spotlights { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 20px; align-items: start; }
.spotlight {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}
.spotlight.is-upcoming { border-color: var(--apricot-200); background: var(--apricot-50); }
.spotlight h3 { font-size: 1.15rem; }
.spotlight > p:not(.event__date):not(.event__meta), .spotlight__text > p:not(.event__date):not(.event__meta) { color: var(--ink-2); }
.spotlight--media { gap: 18px; }
.spotlight__media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 14px; align-items: start; }
.spotlight__text { display: grid; gap: 8px; }

/* ============================================================= contact + forms */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-block: 8px clamp(56px, 7vw, 96px);
}
.form-card { min-width: 0; padding: clamp(22px, 3vw, 40px); border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.form-card h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); }
.form-card__lead { margin: 8px 0 22px; color: var(--ink-2); }
.contact-side { display: grid; gap: 16px; min-width: 0; }
.place-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.place {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--paper);
}
.place__name { font-weight: 600; }
.place__city { font-size: .9rem; color: var(--ink-3); }
.place .icon-row { flex-wrap: nowrap; gap: 8px; }
.place .icon-btn { width: 44px; height: 44px; }

.booking-form { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; align-content: start; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: .95rem; color: var(--ink); }
.field-hint { font-size: .82rem; color: var(--ink-3); }
.field input,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #fff;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: #C8BCAC; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 4px rgba(42, 116, 111, .18); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--error); box-shadow: 0 0 0 3px rgba(163, 58, 34, .12); }
.field-error { font-size: .86rem; color: var(--error); }
.form-alert, .form-sent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: .95rem;
}
.form-alert { border: 1px solid var(--alert-line); background: var(--alert-50); color: var(--alert-ink); }
.form-sent { background: var(--sea-50); color: var(--sea-700); font-weight: 500; }
.form-alert .icon, .form-sent .icon { width: 20px; height: 20px; margin-top: 1px; }
.form-note { font-size: .88rem; line-height: 1.5; color: var(--ink-3); }
.form-note--warn { display: flex; align-items: flex-start; gap: 8px; }
.form-note--warn .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--sea); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============================================================= search + misc pages */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 18px;
  border-bottom: 1px solid var(--line);
}
.search-bar input {
  flex: 1;
  min-width: 0;
  padding: 10px 4px;
  border: 0;
  background: transparent;
  font-size: 1.1rem;
  color: var(--ink);
}
.search-bar input:focus { outline: none; }
.search-bar input::-webkit-search-cancel-button { display: none; }
.search-bar:focus-within { box-shadow: inset 0 -2px 0 var(--sea); }
.search-bar__icon { width: 22px; height: 22px; color: var(--ink-3); }
.search-bar--page {
  margin-top: 20px;
  padding: 6px 6px 6px 16px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: #fff;
}
.search-bar--page:focus-within { border-color: var(--sea); box-shadow: 0 0 0 4px rgba(42, 116, 111, .16); }
.narrow-page { padding-block: 8px clamp(56px, 7vw, 88px); }
.narrow-page > * { max-width: 780px; }
.narrow-page .prose :where(h2) { margin-top: 1.6em; }
.search-intro { margin-bottom: 16px; color: var(--ink-2); }
.search-page-results { display: grid; gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
.result { padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.result__type { font-size: .78rem; font-weight: 600; color: var(--sea-700); }
.result__title { margin: 4px 0 6px; }
main .result__title { font-size: 1.15rem; }
.result__title a { color: var(--ink); text-decoration: none; }
.result__title a:hover { color: var(--sea-700); text-decoration: underline; }
.result__snippet { font-size: .95rem; color: var(--ink-2); }
mark { padding: 0 1px; border-radius: 3px; background: #FBDCC6; color: inherit; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: .93rem;
  text-decoration: none;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--sea-200); background: var(--sea-50); color: var(--sea-700); }

.big-code {
  font-size: min(8rem, 30vw);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--sea-100);
}
.quick-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; margin: 28px 0 0; padding: 0; list-style: none; }

/* ============================================================= dialogs */
.dlg {
  width: min(640px, 100% - 24px);
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 40px 90px -30px rgba(10, 30, 35, .5);
}
.dlg[open] { display: flex; flex-direction: column; }
.dlg::backdrop { background: rgba(16, 33, 38, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dlg__panel { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.dlg__head { display: flex; align-items: flex-start; gap: 10px; padding: 22px 22px 14px; }
.dlg__head > div { flex: 1; min-width: 0; }
.dlg__head h2 { font-size: 1.45rem; }
.dlg__head p { margin-top: 4px; color: var(--ink-3); }
.dlg__body { min-height: 0; padding: 4px 22px 22px; overflow-y: auto; overscroll-behavior: contain; }

.dlg--search { width: min(720px, 100% - 24px); margin-top: min(12vh, 110px); max-height: min(640px, calc(100dvh - 48px)); }
.search-panel { min-height: 0; padding: 16px 18px 20px; overflow-y: auto; overscroll-behavior: contain; }
.search-panel__label { margin-bottom: 10px; font-size: .88rem; color: var(--ink-3); }
.search-results { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.search-results a {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
}
.search-results a:hover, .search-results a.is-active { background: var(--sea-50); }
.sr-type { font-size: .75rem; font-weight: 600; color: var(--sea-700); }
.sr-title { font-weight: 600; line-height: 1.35; }
.sr-snippet { font-size: .9rem; line-height: 1.5; color: var(--ink-3); }
.search-empty, .search-all { padding: 8px 4px; font-size: .95rem; color: var(--ink-2); }

.dlg--card { width: min(460px, 100% - 24px); }
.vcard { position: relative; display: grid; gap: 18px; padding: 28px 24px 22px; }
.vcard__close { position: absolute; top: 14px; right: 14px; }
.vcard__head { display: flex; align-items: center; gap: 16px; padding-right: 48px; }
.vcard__photo img { display: block; width: 84px; height: 84px; border-radius: 22px 22px 22px 6px; object-fit: cover; object-position: 50% 15%; }
.vcard__role { font-size: .85rem; font-weight: 600; color: var(--sea-700); }
.vcard h2 { font-size: 1.5rem; }
.vcard__lead { font-size: .92rem; color: var(--ink-3); }
.vcard__places { display: grid; gap: 8px; margin: 0; padding: 14px 0; list-style: none; border-block: 1px solid var(--line); }
.vcard__places li { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.vcard__places .icon { width: 18px; height: 18px; color: var(--sea); }
.vcard__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vcard__actions .btn { padding-inline: 12px; font-size: .92rem; white-space: normal; }
.vcard__status { min-height: 1.3em; font-size: .88rem; color: var(--sea-700); text-align: center; }

.dlg--media { width: min(1000px, 100% - 24px); background: #0D1C20; color: #fff; }
.media-panel { position: relative; }
.media-panel__close { position: absolute; top: 10px; right: 10px; z-index: 2; border-color: transparent; background: rgba(255, 255, 255, .14); color: #fff; }
.media-panel__close:hover { background: rgba(255, 255, 255, .26); color: #fff; border-color: transparent; }
.media-panel__frame { display: grid; place-items: center; min-height: 0; background: #000; }
.media-panel__frame iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.media-panel__frame.is-short iframe { width: min(100%, calc((100dvh - 150px) * 9 / 16)); aspect-ratio: 9 / 16; }
.media-panel__frame img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100dvh - 150px); }
.media-panel__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.media-panel__caption { font-size: .92rem; line-height: 1.45; color: rgba(255, 255, 255, .86); }
.media-panel__nav { display: flex; gap: 8px; }
.media-panel__nav .icon-btn { border-color: transparent; background: rgba(255, 255, 255, .12); color: #fff; }
.media-panel__nav .icon-btn:hover { background: rgba(255, 255, 255, .24); }

.drawer {
  width: min(420px, 100%);
  max-width: none;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
}
.drawer[open] { display: grid; grid-template-rows: minmax(0, 1fr); }
.drawer::backdrop { background: rgba(16, 33, 38, .45); }
.drawer__panel { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0; }
.drawer__head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.drawer__head .brand { margin-right: auto; }
.drawer__nav { min-height: 0; padding: 12px 12px 20px; overflow-y: auto; overscroll-behavior: contain; }
.drawer__nav ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.drawer__nav a,
.drawer__nav summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--ink);
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}
.drawer__nav summary::-webkit-details-marker { display: none; }
.drawer__nav summary .icon { width: 20px; height: 20px; margin-left: auto; transition: transform .25s var(--ease); }
.drawer__nav details[open] > summary .icon { transform: rotate(180deg); }
.drawer__nav a .icon { width: 20px; height: 20px; color: var(--sea); }
.drawer__nav a:hover, .drawer__nav summary:hover { background: #fff; }
.drawer__nav a[aria-current="page"] { background: #fff; color: var(--sea-700); font-weight: 500; }
.drawer__nav details ul { margin: 2px 0 8px; padding-left: 12px; }
.drawer__nav details a { min-height: 46px; font-size: .98rem; }
.drawer__foot { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: no-preference) {
  .drawer[open] { animation: drawer-in .3s var(--ease); }
  .dlg[open] { animation: dlg-in .24s var(--ease); }
}
@keyframes drawer-in { from { transform: translateX(28px); opacity: 0; } }
@keyframes dlg-in { from { transform: translateY(10px) scale(.985); opacity: 0; } }

/* ============================================================= footer */
.site-footer { padding-top: clamp(48px, 6vw, 80px); background: var(--sea-900); color: rgba(255, 255, 255, .8); }
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 32px 40px;
  padding-bottom: 44px;
}
.footer-brand { display: grid; align-content: start; gap: 18px; max-width: 380px; }
.brand--light, .brand--light:hover { color: #fff; }
.brand--light .brand-role { color: rgba(255, 255, 255, .72); }
.footer-bio { font-size: .95rem; line-height: 1.6; }
.icon-row--footer .icon-btn { border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; }
.icon-row--footer .icon-btn:hover { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .3); }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: transparent;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .2s;
}
.card-link .icon { width: 20px; height: 20px; color: var(--apricot-200); }
.card-link:hover { background: rgba(255, 255, 255, .08); }
.footer-col { min-width: 0; }
.footer-col h2 { margin-bottom: 12px; font-size: 1rem; letter-spacing: 0; color: #fff; }
.footer-col ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.footer-col a {
  display: inline-block;
  padding: 5px 0;
  color: rgba(255, 255, 255, .8);
  font-size: .95rem;
  line-height: 1.4;
  text-decoration: none;
}
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-col .footer-more { color: var(--apricot-200); font-weight: 500; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 20px 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .88rem;
}
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.footer-legal a { color: #fff; }
.footer-legal a:hover { color: var(--apricot-200); }

/* ============================================================= reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal-group > .reveal:nth-child(3n+2) { transition-delay: .06s; }
.reveal-group > .reveal:nth-child(3n) { transition-delay: .12s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

/* ============================================================= responsive */
@media (max-width: 1180px) {
  .site-nav { display: none; }
  .burger { display: inline-grid; }
  .header-tools { margin-left: auto; }
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; max-width: 620px; }
  .docs { grid-template-columns: 240px minmax(0, 1fr); }
  .shorts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .cards, .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-aside { position: static; }
  .article-aside .toc { display: none; }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .timeline::before { left: 6px; right: auto; top: 10px; bottom: 10px; width: 1px; height: auto; }
  .timeline__item { padding: 0 0 0 34px; }
  .timeline__item::before { top: 4px; }
  .event-row { grid-template-columns: minmax(0, 1fr) auto; }
  .event-row__date { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; }
}

@media (max-width: 900px) {
  .hero__grid,
  .page-hero__grid,
  .approach,
  .stage,
  .mag,
  .faq-teaser,
  .thesis,
  .split,
  .tv,
  .contact-grid,
  .appointment,
  .spotlights { grid-template-columns: minmax(0, 1fr); }
  .hero__figure, .page-hero__figure { justify-self: start; width: min(100%, 440px); }
  .hero__figure::before, .page-hero__figure::before { display: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .topic:nth-child(3n) { border-right: 1px solid var(--line); }
  .topic:nth-child(2n) { border-right: 0; }
  .topic:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .topic:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
  .approach__photo { aspect-ratio: 4 / 3; max-width: 560px; }
  .stage__media { max-width: 560px; }
  .appointment__side { justify-content: flex-start; }
  .docs { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .docs__index {
    position: sticky;
    top: var(--header-h);
    z-index: 30;
    max-height: none;
    margin-inline: calc(-1 * var(--gutter));
    padding: 8px var(--gutter);
    overflow: visible;
    border-width: 0 0 1px;
    border-radius: 0;
    background: rgba(251, 248, 244, .96);
  }
  .docs__index-title { display: none; }
  .docs__index ol { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .docs__index ol::-webkit-scrollbar { display: none; }
  .docs__index a { white-space: nowrap; border: 1px solid var(--line); background: #fff; }
  html:has(.docs__index) { scroll-padding-top: calc(var(--header-h) + 76px); }
  .certs { grid-template-columns: minmax(0, 1fr); }
  .spotlight__media { max-width: 560px; }
}

@media (max-width: 767px) {
  :root { --header-h: 64px; }
  .header-bar { gap: 8px; }
  .brand { gap: 10px; }
  .brand-svg { width: 36px; height: 36px; }
  .brand-name { font-size: 1rem; }
  .header-tools { gap: 6px; }
  .icon-btn { width: 42px; height: 42px; }
  /* The only CTA becomes a fixed bar that stays visible while scrolling. */
  .header-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 60;
    min-height: 54px;
    font-size: 1.02rem;
    box-shadow: 0 16px 34px -14px rgba(16, 48, 46, .6), 0 0 0 1px rgba(255, 255, 255, .5);
  }
  body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .cards, .cards--3 { grid-template-columns: minmax(0, 1fr); }
  .topics { grid-template-columns: minmax(0, 1fr); }
  .topic, .topic:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .topic:last-child { border-bottom: 0; }
  .topic { padding: 22px 20px; }
  .shorts {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 64%);
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }
  .short { scroll-snap-align: start; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vcard__actions { grid-template-columns: minmax(0, 1fr); }
  .event-row__thumb { width: 72px; height: 90px; }
  .spotlight__media { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .article-video { padding: 14px; }
  .prose { font-size: 1rem; }
  .prose table thead { display: none; }
  .prose table, .prose tbody, .prose tr { display: block; }
  .prose tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  .prose tbody tr:last-child { border-bottom: 0; }
  .prose td {
    display: grid;
    grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
    gap: 12px;
    padding: 6px 14px;
    border: 0;
  }
  .prose td::before { content: attr(data-label); font-size: .82rem; font-weight: 600; color: var(--ink-3); }
  .prose td:first-child { font-weight: 600; }
}

@media (max-width: 560px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fact { border-left: 0; }
  .fact:nth-child(n+2) { border-top: 1px solid var(--line); }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .principle { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 18px; }
  .dlg__head { padding: 18px 16px 10px; }
  .dlg__body { padding: 4px 16px 18px; }
  .search-panel { padding: 14px; }
  .place { flex-wrap: wrap; }
  .hero__links { flex-direction: column; gap: 12px; }
}

@media (max-width: 380px) {
  .brand-role { display: none; }
  .header-tools .icon-btn[href^="tel:"] { display: none; }
}

@media print {
  .site-header, .site-footer, dialog, .subnav, .docs__index, .article-aside, .related, .curves { display: none !important; }
  body { padding: 0; background: #fff; }
  .js .reveal { opacity: 1; transform: none; }
}
