:root {
  color-scheme: light;
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --ink: #101828;
  --muted: #5f6f86;
  --line: rgba(16, 24, 40, 0.11);
  --accent: #335cff;
  --accent-dark: #1837b8;
  --mint: #18bfa5;
  --coral: #ff6b4a;
  --sky: #eaf1ff;
  --lilac: #f1ecff;
  --soft: #f7f9fd;
  --band-blue: #edf4ff;
  --band-ice: #f3f7fc;
  --band-lilac: #f6f2ff;
  --band-warm: #fff8f1;
  --shadow: 0 24px 70px rgba(16, 24, 40, 0.13);
  --font-display: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-text: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1160px;
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-text);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.62;
  letter-spacing: 0;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(rgba(16, 24, 40, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 40, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 58%);
}

@keyframes heroDrift {
  0% {
    background-position: 50% 50%;
  }

  50% {
    background-position: 54% 48%;
  }

  100% {
    background-position: 50% 50%;
  }
}

@keyframes textRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes signalIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
summary {
  font: inherit;
}

button {
  border: 0;
}

:focus-visible {
  outline: 3px solid rgba(51, 92, 255, 0.3);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 50;
  transform: translateY(-150%);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-meter {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 60;
  height: 3px;
  width: var(--scroll, 0%);
  background: var(--accent);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1rem;
  width: min(calc(100% - 32px), 1060px);
  margin: 16px auto 0;
  padding: 0.62rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.055);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  font-weight: 800;
  font-size: 0.78rem;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.96rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.1;
}

.brand-subline {
  min-height: 0.9rem;
  transition: opacity 180ms ease, transform 180ms ease;
}

.brand-subline.is-changing {
  opacity: 0;
  transform: translateY(3px);
}

.site-nav {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.site-nav a {
  position: relative;
  padding: 0.5rem 0.35rem;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 760;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0.35rem;
  right: 0.35rem;
  bottom: 0.25rem;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: left;
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--accent);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-cta,
.button,
.floating-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  border-radius: 10px;
  font-weight: 780;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.header-cta,
.button.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 14px 28px rgba(51, 92, 255, 0.24);
}

.header-cta {
  padding: 0.64rem 0.95rem;
}

.button {
  padding: 0.9rem 1.12rem;
  border: 1px solid transparent;
}

.button:hover,
.header-cta:hover,
.floating-cta:hover {
  transform: translateY(-2px);
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface-strong);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
}

.button svg {
  width: 1.12rem;
  height: 1.12rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent);
  color: white;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  min-height: min(780px, 92vh);
  max-width: none;
  margin: 0;
  padding: clamp(8rem, 11vw, 10rem) 1rem clamp(2.2rem, 5vw, 4rem);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(246, 248, 252, 0.96) 0%, rgba(246, 248, 252, 0.8) 43%, rgba(246, 248, 252, 0.28) 100%),
    url("assets/neural-hero.jpg") center center / cover;
  color: var(--ink);
  animation: heroDrift 18s ease-in-out infinite;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 9rem;
  background: linear-gradient(180deg, transparent, var(--bg));
  z-index: 0;
}

.hero-copy-block {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  max-width: var(--max);
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 1rem;
  padding: 0.38rem 0.68rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent-dark);
  font-family: var(--font-text);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero .eyebrow {
  border-color: rgba(51, 92, 255, 0.2);
  background: rgba(255, 255, 255, 0.64);
  color: var(--accent-dark);
  backdrop-filter: blur(14px);
}

.hero-eyebrow,
.hero-title,
.hero-lead,
.hero-actions,
.hero-signals {
  animation: textRise 620ms ease both;
}

.hero-title {
  animation-delay: 90ms;
}

.hero-lead {
  animation-delay: 180ms;
}

.hero-signals {
  animation-delay: 250ms;
}

.hero-actions {
  animation-delay: 320ms;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 1.1rem;
  color: inherit;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 4.45vw, 4.9rem);
  font-weight: 820;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.35vw, 3.55rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.65rem;
  color: var(--ink);
  font-family: var(--font-text);
  font-size: clamp(1.14rem, 1.45vw, 1.36rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
}

.lead,
.hero-copy-block p:not(.eyebrow),
.section-heading,
.section-copy p,
.care-card p,
.curriculum-card p,
.situation-grid p,
.insight-grid p,
.timeline p,
.process-grid p,
.value-grid p,
.faq-list p {
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 540;
}

.hero .lead,
.hero-copy-block p:not(.eyebrow) {
  max-width: 650px;
  color: #48576c;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  font-weight: 650;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  max-width: 720px;
  margin-top: 1.35rem;
}

.hero-signals span {
  padding: 0.5rem 0.68rem;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
  color: #344054;
  font-size: 0.86rem;
  font-weight: 740;
  backdrop-filter: blur(14px);
  animation: signalIn 520ms ease both;
}

.hero-signals span:nth-child(2) {
  animation-delay: 90ms;
}

.hero-signals span:nth-child(3) {
  animation-delay: 180ms;
}

.hero-figure {
  display: none;
}

.hero-figure img {
  width: min(100%, 410px);
  margin-left: auto;
  aspect-ratio: 4 / 3.3;
  object-fit: cover;
  object-position: 52% 22%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-figure figcaption {
  display: grid;
  gap: 0.3rem;
  max-width: 410px;
  margin: 1rem 0 0 auto;
  color: var(--muted);
}

.hero-figure strong {
  color: var(--ink);
}

.credentials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: -1.6rem auto 0;
  padding: 0 1rem clamp(3.5rem, 6vw, 5rem);
}

.credentials article {
  min-height: 150px;
  padding: 1.25rem;
  text-align: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
  backdrop-filter: blur(16px);
}

.credentials article:first-child {
  border-radius: 18px 0 0 18px;
}

.credentials article:last-child {
  border-radius: 0 18px 18px 0;
}

.credentials span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.credentials strong {
  display: block;
  letter-spacing: 0;
}

.credentials p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4.5rem, 7vw, 7rem) 1rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  width: min(calc(100% - 2rem), var(--max));
  max-width: none;
  padding-inline: 0;
}

.profile-card {
  position: relative;
  margin: 0;
}

.profile-card img {
  width: min(100%, 430px);
  margin-left: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.profile-card figcaption {
  position: absolute;
  left: 0;
  bottom: 1.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-weight: 800;
}

.identification,
.psychoeducation,
.therapy-section,
.process,
.curriculum,
.research {
  max-width: none;
}

.identification {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(237, 244, 255, 0.96)),
    var(--band-blue);
  box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line);
}

.psychoeducation {
  background: #ffffff;
  box-shadow: inset 0 -1px 0 var(--line);
}

.therapy-section {
  background:
    linear-gradient(180deg, #f8fbff, var(--band-ice));
  box-shadow: inset 0 1px 0 rgba(16, 24, 40, 0.06), inset 0 -1px 0 rgba(16, 24, 40, 0.06);
}

.process {
  background:
    linear-gradient(180deg, #ffffff, #eef4ff);
  box-shadow: inset 0 1px 0 rgba(16, 24, 40, 0.06), inset 0 -1px 0 rgba(16, 24, 40, 0.06);
}

.curriculum {
  background:
    linear-gradient(180deg, #ffffff, var(--band-lilac));
  box-shadow: inset 0 -1px 0 rgba(16, 24, 40, 0.06);
}

.identification > .section-heading,
.situation-grid,
.psychoeducation > .section-heading,
.insight-grid,
.therapy-section > .section-heading,
.therapy-grid,
.process > .section-heading,
.process-grid,
.timeline,
.curriculum > .section-heading,
.curriculum-grid,
.research-header,
.research-grid {
  max-width: var(--max);
  margin-inline: auto;
}

.process-grid,
.care-grid,
.therapy-grid,
.situation-grid,
.insight-grid,
.curriculum-grid,
.research-grid,
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.therapy-grid {
  grid-template-columns: repeat(2, 1fr);
}

.situation-grid {
  grid-template-columns: repeat(3, 1fr);
}

.insight-grid {
  grid-template-columns: repeat(3, 1fr);
}

.process-grid article,
.situation-grid article,
.insight-grid article,
.care-card,
.curriculum-card,
.value-grid article {
  position: relative;
  padding: clamp(1.25rem, 3vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.situation-grid article:hover,
.insight-grid article:hover,
.care-card:hover,
.curriculum-card:hover,
.science-list article:hover,
.timeline article:hover {
  transform: translateY(-3px);
  border-color: rgba(51, 92, 255, 0.18);
  box-shadow: 0 22px 56px rgba(16, 24, 40, 0.1);
}

.process-grid span,
.situation-grid span,
.care-card span,
.curriculum-card span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.situation-grid article {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.8rem;
}

.situation-grid span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sky);
}

.situation-grid p {
  margin: 0;
}

.insight-grid article {
  min-height: 250px;
  background:
    linear-gradient(180deg, rgba(234, 241, 255, 0.86), rgba(255, 255, 255, 0.94));
}

.care-card {
  background: #ffffff;
}

.care-card:nth-child(2) {
  background: var(--sky);
}

.care-card:nth-child(3) {
  background: var(--lilac);
}

.therapy-grid .care-card:nth-child(4),
.therapy-grid .care-card:nth-child(5),
.therapy-grid .care-card:nth-child(6) {
  background: #ffffff;
}

.therapy-grid .care-card strong {
  color: var(--ink);
}

.curriculum-grid {
  align-items: stretch;
}

.curriculum-card {
  position: relative;
  overflow: hidden;
  min-height: 310px;
}

.curriculum-card::before {
  content: "";
  position: absolute;
  inset: auto 1.25rem 1.25rem auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--sky);
}

.curriculum-card.highlight {
  background: var(--ink);
  color: white;
}

.curriculum-card.highlight h3,
.curriculum-card.highlight p {
  color: white;
}

.curriculum-card.highlight span {
  color: #a8f5e7;
}

.curriculum-card.highlight::before {
  background: var(--accent);
}

.science-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 1rem;
  max-width: var(--max);
  margin: 1rem auto 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.science-panel > div:first-child,
.science-list article {
  padding: clamp(1.25rem, 3vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.science-panel > div:first-child {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    #0b1220;
  color: white;
  box-shadow: 0 18px 48px rgba(11, 18, 32, 0.18);
}

.science-panel h3 {
  max-width: none;
  font-size: clamp(1.14rem, 1.45vw, 1.36rem);
  line-height: 1.12;
}

.science-panel p,
.science-list p {
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 540;
}

.science-panel > div:first-child h3,
.science-panel > div:first-child p {
  color: rgba(255, 255, 255, 0.76);
}

.science-panel > div:first-child h3 {
  color: white;
}

.science-panel > div:first-child .eyebrow {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
}

.science-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.science-list span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.science-list p {
  margin: 0;
}

.timeline {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--line);
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.06);
}

.timeline article {
  display: grid;
  grid-template-columns: 70px 0.7fr 1.3fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  transition: transform 180ms ease, background 180ms ease;
}

.timeline span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 0.78rem;
  font-weight: 850;
}

.timeline h3,
.timeline p {
  margin: 0;
}

.research {
  background: #111827;
  color: white;
  padding-block: clamp(3.25rem, 5.5vw, 5rem);
}

.research-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.research-header > div:first-child {
  max-width: 760px;
}

.research-header h2 {
  color: white;
}

.research-header p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.research-card h3 {
  color: white;
}

.research-header {
  color: rgba(255, 255, 255, 0.74);
}

.research .eyebrow {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #a8f5e7;
}

.research-grid {
  display: flex;
  grid-template-columns: none;
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-padding-inline: 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.6rem;
}

.research-grid::-webkit-scrollbar {
  display: none;
}

.research-card {
  display: grid;
  align-content: start;
  flex: 0 0 min(360px, 84vw);
  gap: 0.65rem;
  min-height: 360px;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  scroll-snap-align: start;
  transition: transform 160ms ease, background 160ms ease;
}

.research-grid::after,
.faq-list::after {
  content: "";
  flex: 0 0 1px;
}

.research-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.14);
}

.research-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
}

.research-card[href*="world-congress"] img,
.research-card:not(a) img {
  aspect-ratio: 16 / 10;
  object-position: center top;
}

.research-card span {
  color: #a8f5e7;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.research-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.paper-card {
  min-height: 312px;
  padding: 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.055)),
    #172033;
}

.paper-card h3 {
  margin-top: 0.15rem;
}

.paper-collection {
  flex-basis: min(520px, 88vw);
}

.paper-links {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.paper-links a {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.065);
  transition: background 160ms ease, border-color 160ms ease;
}

.paper-links a:hover {
  border-color: rgba(168, 245, 231, 0.34);
  background: rgba(255, 255, 255, 0.11);
}

.paper-links strong {
  color: white;
  font-size: 0.9rem;
  line-height: 1.3;
}

.paper-links small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  line-height: 1.35;
}

.research-controls {
  display: inline-flex;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.research-control {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.research-control:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
}

.research-control svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.values {
  padding-top: clamp(2rem, 4vw, 3.5rem);
}

.value-grid article:first-child {
  border-top: 4px solid var(--accent);
}

.value-grid article:nth-child(2) {
  border-top: 4px solid var(--mint);
}

.value-grid article:nth-child(3) {
  border-top: 4px solid var(--coral);
}

.faq {
  display: grid;
  gap: 1.25rem;
  width: 100%;
  max-width: none;
  padding-block: clamp(3rem, 5vw, 4.5rem);
  padding-inline: 1rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(237, 244, 255, 0.9));
  box-shadow: inset 0 1px 0 rgba(16, 24, 40, 0.06), inset 0 -1px 0 rgba(16, 24, 40, 0.06);
}

.faq-header,
.faq-list {
  width: min(100%, var(--max));
  margin-inline: auto;
}

.faq-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.faq-header h2 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 3vw, 3.2rem);
}

.faq-controls {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 0.2rem;
}

.faq-control {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--ink);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease;
}

.faq-control:hover {
  transform: translateY(-2px);
  border-color: rgba(51, 92, 255, 0.32);
  color: var(--accent);
}

.faq-control svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.faq-list {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0.2rem 0 1.1rem;
}

.faq-list::-webkit-scrollbar {
  display: none;
}

details {
  flex: 0 0 calc((100% - 2rem) / 3);
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.07);
  scroll-snap-align: start;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

details:hover {
  transform: translateY(-2px);
  border-color: rgba(51, 92, 255, 0.22);
  box-shadow: 0 20px 54px rgba(16, 24, 40, 0.1);
}

summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  min-height: 92px;
  padding: 1.15rem 1.2rem 0.75rem;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.18;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: var(--accent);
  flex: 0 0 auto;
  font-weight: 800;
}

details[open] summary::after {
  content: "-";
}

details p {
  margin: 0;
  padding: 0 1.2rem 1.2rem;
  font-size: 0.94rem;
  line-height: 1.55;
}

.final-cta {
  padding: clamp(3.5rem, 8vw, 7rem) 1rem;
  background:
    linear-gradient(90deg, rgba(16, 24, 40, 0.92), rgba(24, 55, 184, 0.66)),
    url("assets/consultorio-hero.jpg") center center / cover;
  color: white;
}

.final-cta-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.final-cta h2 {
  max-width: 760px;
  color: white;
}

.final-cta p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.final-cta .eyebrow {
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.site-footer {
  padding: 1.1rem 1rem 1.35rem;
  background: #0b1220;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  line-height: 1.45;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(210px, 0.75fr);
  align-items: center;
  gap: 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.footer-brand .brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.66rem;
}

.footer-brand strong {
  display: block;
  color: white;
  font-size: 0.88rem;
  letter-spacing: 0;
}

.footer-brand p,
.footer-contact span {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
}

.footer-links a {
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: white;
}

.footer-contact {
  display: grid;
  justify-items: end;
  gap: 0.2rem;
}

.footer-contact a {
  color: white;
  font-weight: 760;
}

.floating-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  padding: 0.78rem 1rem;
  background: var(--accent);
  color: white;
  box-shadow: 0 14px 32px rgba(51, 92, 255, 0.26);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.floating-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible,
.hero .reveal {
  opacity: 1;
  transform: none;
}

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

  .hero {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .hero,
  .split,
  .faq,
  .science-panel {
    grid-template-columns: 1fr;
  }

  .hero-figure img,
  .hero-figure figcaption,
  .profile-card img {
    margin-left: 0;
  }

  .credentials,
  .process-grid,
  .care-grid,
  .therapy-grid,
  .situation-grid,
  .insight-grid,
  .curriculum-grid,
  .research-grid,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .timeline article {
    grid-template-columns: 1fr;
  }

  .science-list {
    grid-template-columns: 1fr;
  }

  details {
    flex-basis: min(420px, 82vw);
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-contact {
    justify-items: start;
  }

  .credentials article,
  .credentials article:first-child,
  .credentials article:last-child {
    border-radius: 16px;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    width: min(calc(100% - 20px), var(--max));
    border-radius: 14px;
  }

  .site-nav,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-open .site-nav {
    position: fixed;
    inset: 76px 10px auto;
    display: grid;
    gap: 0.3rem;
    padding: 0.75rem;
    border-radius: 14px;
    background: var(--surface-strong);
    box-shadow: var(--shadow);
  }

  .nav-open .site-nav a {
    padding: 0.8rem;
  }
}

@media (max-width: 560px) {
  .brand small {
    display: none;
  }

  .hero {
    min-height: 760px;
    padding: 6.7rem 0.85rem 2.8rem;
    overflow: hidden;
    background-position: 58% center;
  }

  .hero::before {
    height: 12rem;
  }

  h1 {
    font-size: 2.45rem;
    line-height: 1;
    letter-spacing: 0;
  }

  h2 {
    font-size: 2.05rem;
    line-height: 1.05;
  }

  .hero-actions,
  .button,
  .hero-signals {
    width: 100%;
  }

  .hero-signals span {
    width: 100%;
  }

  .button {
    justify-content: center;
  }

  .hero-figure img {
    aspect-ratio: 16 / 9;
  }

  .section {
    padding-inline: 0.85rem;
  }

  .credentials {
    padding-inline: 0.85rem;
  }

  .profile-card figcaption {
    left: 0.75rem;
  }

  .floating-cta {
    left: 18px;
  }
}
