:root {
  --paper: #f8f5f2;
  --gold: #c27c68;
  --teal: #4f8f97;
  --ink: #333333;
  --muted: #5a6466;
  --line: rgba(51, 51, 51, 0.12);
  --sans: "Outfit", system-ui, sans-serif;
  --display: "Syne", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: linear-gradient(180deg, #fcfbfa, #f4efeb); font: 500 17px/1.6 var(--sans); }
a { color: var(--teal); }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 5; }
.wrap { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 4; background: rgba(248, 245, 242, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(1080px, calc(100% - 32px)); margin: 0 auto; min-height: 72px; }
.header-brand { color: inherit; text-decoration: none; }
.header-brand strong { display: block; font-family: var(--display); }
.header-brand span { color: var(--muted); font-size: 0.86rem; }
.header-nav { display: flex; gap: 16px; align-items: center; }
.header-nav a { color: inherit; text-decoration: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: 18px; text-decoration: none; border: 1px solid transparent; font: 700 16px/1.2 var(--sans); cursor: pointer; }
.btn-primary {
  color: var(--ink);
  border-color: rgba(194, 124, 104, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 42%),
    linear-gradient(135deg, #d4a090, var(--gold));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.header-nav a.btn-primary { color: var(--ink); }
.btn-secondary {
  color: var(--ink);
  border-color: rgba(51, 51, 51, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.46));
}
.btn-quiet {
  color: var(--muted);
  border-color: rgba(51, 51, 51, 0.12);
  background: rgba(255, 255, 255, 0.45);
  font-weight: 600;
  font-size: 0.92rem;
  min-height: 44px;
}
.hero { padding: 64px 0 20px; }
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.78rem; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 8px 0 12px; }
.h1-mark {
  background: linear-gradient(90deg, rgba(79, 143, 151, 0.7), rgba(194, 124, 104, 0.7)) no-repeat 0 94%;
  background-size: 0 0.13em;
  animation: underline 1s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
  padding: 0 0.02em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
@keyframes underline {
  to { background-size: 100% 0.13em; }
}
@media (prefers-reduced-motion: reduce) {
  .h1-mark { animation: none !important; background-size: 100% 0.13em; }
}
.lead { font-size: 1.15rem; max-width: 40rem; color: var(--muted); }
.quiz-shell, .stream-card, .faq-item, .bio-card, .portrait-card { background: rgba(255,255,255,.78); border: 1px solid var(--line); border-radius: 28px; }
.quiz-shell { width: min(720px, calc(100% - 32px)); padding: 28px 22px 22px; margin: 28px auto 64px; scroll-margin-top: 84px; }
.quiz-result { text-align: center; }
.quiz-result .quiz-help, .quiz-result .quiz-note { text-align: center; }
.quiz-result-lead { margin: 0 0 18px; color: var(--muted); line-height: 1.55; }
.quiz-result-formats { margin: 0 0 22px; color: var(--ink); font-size: 1.08rem; font-weight: 700; line-height: 1.45; }
.quiz-progress { height: 6px; border-radius: 999px; background: rgba(79, 143, 151, 0.16); overflow: hidden; margin-bottom: 22px; }
.quiz-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--gold) 58%, #d4a090); transition: width 0.45s ease; }
.quiz-lead, .quiz-note, .quiz-help { color: var(--muted); font-size: 0.95rem; }
.quiz-hint { margin: 0 0 14px; color: var(--muted); font-size: 0.95rem; }
.quiz-help { margin: 22px 0 0; line-height: 1.5; }
.quiz-step h2, .quiz-result h2 { margin: 8px 0 16px; }
.quiz-result h2 { margin: 4px 0 20px; line-height: 1.25; }
.quiz-result .quiz-note { margin-top: 22px; }
.star-ref { color: var(--gold); text-decoration: none; font-weight: 700; margin-left: 2px; }
.quiz-group { border: 0; margin: 18px 0; padding: 0; }
.quiz-group legend { font-weight: 700; margin-bottom: 8px; }
.quiz-check, .quiz-field { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; }
.quiz-field { flex-direction: column; }
.quiz-field input, .quiz-field textarea, .quiz-step input[type="number"] { width: min(100%, 420px); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font: inherit; background: #fff; color: var(--ink); }
.quiz-field input.is-invalid,
.quiz-field textarea.is-invalid,
.quiz-step input.is-invalid,
.quiz-methods.is-invalid,
.quiz-check.is-invalid {
  border-color: #9a3b32;
  box-shadow: 0 0 0 2px rgba(154, 59, 50, 0.18);
}
.quiz-methods { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 6px; padding: 10px 12px; border: 1px solid transparent; border-radius: 16px; }
.quiz-methods .quiz-check { margin: 0; white-space: nowrap; }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.quiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.quiz-nav-contacts { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: stretch; }
.quiz-nav-contacts .btn {
  min-height: 72px;
  height: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  padding: 12px 14px;
  align-items: center;
  font-size: 0.95rem;
  border-radius: 16px;
}
@media (min-width: 640px) {
  .quiz-nav-contacts {
    grid-template-columns: minmax(96px, auto) minmax(0, 1fr) minmax(0, 1.35fr);
    align-items: stretch;
  }
  .quiz-nav-contacts-consult {
    grid-template-columns: minmax(96px, auto) minmax(0, 1.35fr);
  }
}
.quiz-error { min-height: 1.2em; color: #9a3b32; margin: 10px 0 4px; }
.quiz-actions { display: grid; gap: 16px; margin: 8px auto 0; width: min(100%, 520px); justify-items: stretch; }
.quiz-actions .btn { width: 100%; min-height: 84px; padding: 18px 22px; white-space: normal; text-align: center; font-size: 1.2rem; line-height: 1.3; justify-content: center; align-items: center; }
.quiz-text-btn { background: none; border: 0; padding: 0; color: var(--teal); font: inherit; cursor: pointer; text-decoration: underline; }

.stream-rail {
  position: relative;
  margin: 8px 0 48px;
  padding: 12px 0 8px;
}
.stream-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-58%);
  z-index: 5;
  width: 92px;
  height: 92px;
  border: 0;
  background: transparent;
  color: rgba(79, 143, 151, 0.82);
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.stream-arrow svg {
  width: 54px;
  height: 54px;
  display: block;
  pointer-events: none;
}
.stream-arrow:hover,
.stream-arrow:focus-visible {
  color: rgba(79, 143, 151, 1);
  outline: none;
}
.stream-arrow-prev { left: -14px; }
.stream-arrow-next { right: -14px; }
.stream-scroller {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 18%;
  padding: 36px 18% 40px;
  margin: 0 -4%;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-x;
  user-select: none;
  -webkit-user-select: none;
}
.stream-scroller.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.stream-scroller::-webkit-scrollbar { display: none; }
.stream-card {
  position: relative;
  flex: 0 0 64%;
  scroll-snap-align: center;
  min-height: 250px;
  margin: 0 -4%;
  padding: 28px 26px 24px;
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background:
    linear-gradient(180deg, #fff, #fff 72%),
    radial-gradient(circle at 100% 0%, rgba(194, 124, 104, 0.16), transparent 46%);
  box-shadow: none;
  transform: scale(0.88) translateY(18px);
  opacity: 0.72;
  z-index: 1;
  transition: transform 0.35s ease, opacity 0.35s ease;
  pointer-events: auto;
  cursor: pointer;
}
.stream-card.is-active {
  transform: scale(1) translateY(0);
  opacity: 1;
  z-index: 3;
  box-shadow: none;
}
.stream-card.is-near {
  transform: scale(0.93) translateY(10px);
  opacity: 0.86;
  z-index: 2;
}
.stream-scroller.is-dragging .stream-card {
  pointer-events: none;
}
.stream-kicker { color: var(--gold); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.03em; text-transform: uppercase; margin-bottom: 8px; }
.stream-card strong { display: block; font-family: var(--display); font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.15; margin-bottom: 10px; color: var(--ink); }
.stream-card .stream-note { color: var(--muted); }
.stream-more {
  display: inline-flex;
  margin-top: 16px;
  align-self: center;
  color: var(--teal);
  font: 600 0.92rem/1.2 var(--sans);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  opacity: 0.82;
}

.host-block { margin-bottom: 64px; }
.host-block .section-head { margin-bottom: 18px; }
.host-block .section-head h2 { margin: 6px 0 8px; }
.host-block .section-head p { margin: 0; color: var(--muted); max-width: 36rem; }
.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.portrait-card {
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  line-height: 0;
  aspect-ratio: 4 / 5;
}
.portrait-card img {
  width: 100%;
  height: 108%;
  max-width: none;
  object-fit: cover;
  object-position: center 16%;
  display: block;
  margin: 0 0 -8% 0;
  transform-origin: center 45%;
  animation: host-float 5.6s ease-in-out infinite;
}
.bio-card { padding: 28px 26px; }
.bio-card h3 { margin-top: 0; }
.bio-card p { color: var(--muted); }
.bio-card .btn { margin-top: 18px; }
@keyframes host-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.edu-label { margin: 18px 0 8px; font-weight: 700; color: var(--ink); }
.edu-certs { display: flex; flex-wrap: wrap; gap: 8px; }
.edu-certs button,
.edu-certs .diploma {
  border: 1px solid rgba(194, 124, 104, 0.35);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  font: 700 0.82rem var(--sans);
  cursor: pointer;
}
.edu-more-toggle {
  margin: 10px 0;
  border: 0;
  background: none;
  color: var(--teal);
  font: 700 0.9rem var(--sans);
  cursor: pointer;
  padding: 0;
}
.edu-more[hidden] { display: none; }
.diploma-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(42, 46, 52, 0.85);
}
.diploma-modal[hidden] { display: none; }
.diploma-modal img { max-width: min(900px, 94vw); max-height: 86vh; background: #fff; border-radius: 14px; }
.diploma-modal button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}
#livingField {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.site-header, main { position: relative; z-index: 1; }
.quiz-footnote {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto 48px;
  padding: 0;
  color: var(--muted);
  font-size: 0.92rem;
  box-sizing: border-box;
}
.quiz-footnote .star-ref { margin-left: 0; margin-right: 4px; }
.faq-list { display: grid; gap: 10px; margin-bottom: 64px; }
.faq-item { padding: 14px 18px; }
.faq-item summary { cursor: pointer; font-weight: 700; }

.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  color: var(--muted);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 28px 40px;
  align-items: start;
}
.footer-brand {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 8px;
}
.footer-copy { margin: 0 0 14px; max-width: 36rem; font-size: 0.95rem; }
.footer-links,
.footer-streams,
.footer-sites {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 12px;
}
.footer a { color: var(--ink); text-decoration: none; }
.footer a:hover { color: var(--teal); }
.footer-legal { margin: 10px 0 0; font-size: 0.86rem; max-width: 42rem; }
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.footer-nav a { font-weight: 700; }

@media (max-width: 720px) {
  .header-nav .header-link { display: none; }
  .header-nav .btn { padding: 0 14px; font-size: 15px; white-space: nowrap; }
  .stream-arrow { width: 72px; height: 72px; }
  .stream-arrow svg { width: 42px; height: 42px; }
  .stream-arrow-prev { left: -6px; }
  .stream-arrow-next { right: -6px; }
  .stream-scroller { scroll-padding-inline: 12%; padding-inline: 12%; margin: 0; gap: 0; }
  .stream-card { flex-basis: 84%; margin: 0 -6%; min-height: 220px; }
  .about-grid { grid-template-columns: 1fr; }
  .portrait-card { max-width: 420px; margin: 0 auto; }
  .portrait-card img { width: 100%; height: 108%; margin: 0 0 -8% 0; object-position: center 16%; }
  .footer { grid-template-columns: 1fr; }
  .footer-nav { flex-direction: row; flex-wrap: wrap; gap: 10px 16px; }
  .quiz-footnote { width: min(1080px, calc(100% - 32px)); }
}
@media (prefers-reduced-motion: reduce) {
  .stream-card, .portrait-card img, .quiz-progress span { animation: none; transition: none; }
}
