/* ==========================================================================
   BRCE — BVVS Research Centre for Excellence
   Design system & public site styles
   Palette: deep navy/indigo + scientific teal + ivory + heritage gold/maroon
   ========================================================================== */

:root {
  /* Brand */
  --navy: #0d1b3e;
  --navy-2: #14264f;
  --indigo: #1e3a6e;
  --teal: #0ea5a4;
  --teal-600: #0c8a89;
  --cyan: #22d3ee;
  --gold: #c39a3f;
  --maroon: #7a1f2b;

  /* Neutrals */
  --ivory: #f8f6f0;
  --paper: #ffffff;
  --ink: #14181f;
  --muted: #5b6472;
  --line: #e6e2d8;
  --line-dark: rgba(255, 255, 255, .14);

  /* Effects */
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(13, 27, 62, .06), 0 1px 3px rgba(13, 27, 62, .08);
  --shadow: 0 10px 30px -12px rgba(13, 27, 62, .28);
  --shadow-lg: 0 24px 60px -20px rgba(13, 27, 62, .38);
  --container: 1536px;

  --font-sans: 'Sora', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--indigo);
  text-decoration: none;
}

a:hover {
  color: var(--teal-600);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  line-height: 1.15;
  color: var(--navy);
  font-weight: 600;
  margin: 0 0 .5em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -.01em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

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

/* ------------------------------ Layout --------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

.section {
  padding: clamp(3rem, 7vw, 4rem) 0;
}

.section--tight {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}

.section--navy {
  background: var(--navy);
  color: #e9edf6;
}

.section--navy h1,
.section--navy h2,
.section--navy h3 {
  color: #fff;
}

.section--ivory {
  background: var(--ivory);
}

.section--paper {
  background: var(--paper);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .72rem;
  color: #fd9454 !important;
  margin-bottom: .75rem;
}

.eyebrow::before {
  background: #fd9454 !important;
}

.section--navy .eyebrow {
  color: var(--cyan);
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 62ch;
}

.section--navy .lead {
  color: #c3cde0;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-inline: auto;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

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

/* ------------------------------ Buttons -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .95rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
  line-height: 1;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--teal);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--teal-600);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn--gold {
  background: var(--gold);
  color: #2a1e05;
}

.btn--gold:hover {
  filter: brightness(1.05);
  color: #2a1e05;
}

.btn--ghost {
  border-color: currentColor;
  color: var(--navy);
  background: transparent;
}

.section--navy .btn--ghost {
  color: #fff;
}

.btn--ghost:hover {
  background: rgba(14, 165, 164, .12);
}

.btn--lg {
  padding: 1rem 1.9rem;
  font-size: 1.02rem;
}

/* ------------------------------ Header --------------------------------- */
.topbar {
  background: var(--navy);
  color: #cfd7e6;
  font-size: .82rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 40px;
}

.topbar a {
  color: #cfd7e6;
}

.topbar a:hover {
  color: var(--cyan);
}

.topbar__contact {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.topbar__social {
  display: flex;
  gap: .9rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
  padding: 10px 0;
}

.site-header.is-stuck {
  box-shadow: var(--shadow);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.site-header .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
}

.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.brand__mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  flex: none;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: var(--shadow-sm);
}

.brand__name {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.05;
}

.brand__sub {
  display: block;
  font-family: var(--font-sans);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-600);
}

/* Mega menu */
.nav {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .7rem .85rem;
  font-weight: 600;
  font-size: .93rem;
  color: var(--navy);
  border-radius: 8px;
}

.nav__link:hover,
.nav__item:hover .nav__link {
  color: var(--teal-600);
  background: rgba(14, 165, 164, .08);
}

.nav__link[aria-current="page"] {
  color: var(--teal-600);
}

.nav__caret {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .6;
}

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .5rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .18s ease;
  z-index: 120;
}

.nav__item:hover .dropdown,
.nav__item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: .6rem .8rem;
  border-radius: 8px;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 500;
}

.dropdown a:hover {
  background: var(--ivory);
  color: var(--teal-600);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  position: relative;
  transition: .2s;
  margin: 0 auto;
}

.nav-toggle span::before {
  position: absolute;
  top: -7px;
}

.nav-toggle span::after {
  position: absolute;
  top: 7px;
}

/* ------------------------------ Hero ----------------------------------- */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(34, 211, 238, .22), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(14, 165, 164, .20), transparent 55%);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3rem;
  align-items: center;
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}

.hero__slides {
  position: relative;
}

.hero__slide {
  position: relative;
  display: none;
  min-height: 80vh;
  min-height: 80dvh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  align-items: center;
  justify-content: center;
  padding: clamp(4rem, 10vh, 7rem) 0;
}

.hero__slide.is-active {
  display: flex;
  animation: fade .6s ease;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 62, .45);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: #fff;
}

.hero p {
  color: #c7d1e6;
  font-size: 1.12rem;
  max-width: 54ch;
}

.hero__cta {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.hero__dots {
  display: flex;
  gap: .5rem;
  margin-top: 0;
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.hero__dots button {
  width: 34px;
  height: 5px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, .28);
  cursor: pointer;
  padding: 0;
}

.hero__dots button.is-active {
  background: var(--cyan);
}

.hero__art {
  border-radius: 20px;
  border: 1px solid var(--line-dark);
  background: linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Stat counters */
.stats {
  background: var(--navy-2);
  color: #fff;
  border-top: 1px solid var(--line-dark);
}

.stats .grid-4 {
  gap: 1rem;
}

.stat {
  text-align: center;
  padding: 2rem 1rem;
  border-right: 1px solid var(--line-dark);
}

.stat:last-child {
  border-right: 0;
}

.stat__num {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--cyan);
  font-weight: 700;
}

.stat__label {
  color: #b9c4db;
  font-size: .9rem;
  letter-spacing: .03em;
}

/* ------------------------------ Cards ---------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .25s, border-color .2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #d8e6e5;
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(14, 165, 164, .14), rgba(30, 58, 110, .12));
  color: var(--teal-600);
}

.card__icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  margin-bottom: .4rem;
}

.card p {
  color: var(--muted);
  font-size: .95rem;
}

.card__link {
  margin-top: auto;
  font-weight: 600;
  color: var(--teal-600);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.card__link::after {
  content: '\2192';
  transition: transform .2s;
}

.card:hover .card__link::after {
  transform: translateX(4px);
}

.card-media {
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Institution logo grid */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.logo-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  text-align: center;
  transition: .2s;
}

.logo-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.logo-card__img {
  height: 90px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.logo-card__img img {
  max-height: 90px;
  width: auto;
}

.logo-card h3 {
  font-size: 1rem;
}

/* Pills / lists */
.pill-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.pill-list li {
  background: rgba(14, 165, 164, .09);
  color: var(--teal-600);
  border: 1px solid rgba(14, 165, 164, .22);
  padding: .45rem .85rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: .7rem;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .15rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* Stepper (Research Journey) */
.stepper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

.step__num {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin: 0 auto .8rem;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid var(--teal);
  color: var(--teal-600);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 27px;
  left: 60%;
  right: -40%;
  height: 2px;
  background: var(--line);
}

.step h4 {
  font-size: 1rem;
  margin-bottom: .25rem;
}

.step p {
  font-size: .85rem;
  color: var(--muted);
}

/* Section heading block */
.sec-head {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.sec-head--left {
  margin-left: 0;
  text-align: left;
}

/* CTA strip */
.cta-strip {
  background: linear-gradient(120deg, var(--navy), var(--indigo));
  color: #fff;
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-strip h2 {
  color: #fff;
}

.cta-strip p {
  color: #c7d1e6;
}

/* Breadcrumb / page hero */
.page-hero {
  background: linear-gradient(90deg, #0d1b3e, #0d3e8f);
  color: #fff;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 300px at 90% -20%, rgba(34, 211, 238, .18), transparent 60%);
}

.page-hero .container {
  position: relative;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: .4rem;
}

.breadcrumb {
  list-style: none;
  display: flex;
  gap: .5rem;
  padding: 0;
  margin: 0 0 1rem;
  font-size: .85rem;
  color: #a9b6d2;
  display: none !important;
}

.breadcrumb a {
  color: #cdd7ec;
}

.breadcrumb li::after {
  content: '/';
  margin-left: .5rem;
  color: #55648a;
}

.breadcrumb li:last-child::after {
  content: '';
}

/* Prose (WYSIWYG content) */
.prose {
  max-width: 74ch;
}

.prose h2 {
  margin-top: 2rem;
}

.prose ul {
  padding-left: 1.3rem;
}

.prose li {
  margin-bottom: .5rem;
}

.prose img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

/* Person cards */
.person {
  text-align: center;
}

.person__photo {
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--line);
  margin-bottom: .9rem;
}

.person__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person h3 {
  font-size: 1.05rem;
  margin-bottom: .15rem;
}

.person p {
  color: var(--muted);
  font-size: .88rem;
  margin: 0;
}

.person-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.person-row + .person-row {
  margin-top: 1.5rem;
}

.person-row > .person {
  flex: 0 1 calc(25% - 1.125rem);
  min-width: 0;
}

/* Message / leader block */
.message-block {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
}

.message-block__photo {
  border-radius: 16px;
  overflow: hidden;
  background: var(--line);
  aspect-ratio: 1/1;
}

.message-block__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* News list */
.news-card {
  overflow: hidden;
  padding: 0;
}

.news-card .card__body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-meta {
  font-size: .8rem;
  color: var(--teal-600);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .5rem;
}

/* Forms */
.form-field {
  margin-bottom: 1.1rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: .35rem;
  font-size: .9rem;
  color: var(--navy);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: .8rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 165, 164, .15);
  outline: none;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.field-error {
  color: var(--maroon);
  font-size: .82rem;
  margin-top: .3rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

/* Alerts */
.alert {
  padding: .9rem 1.1rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  font-size: .95rem;
  border: 1px solid;
}

.alert--success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.alert--error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.alert--info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

/* ------------------------------ Footer --------------------------------- */
.site-footer {
  background: var(--navy);
  color: #c3cde0;
  padding-top: clamp(2rem, 4vw, 3rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr;
  gap: 1.5rem;
}

.site-footer h4 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: .6rem;
}

.footer-links a {
  color: #b9c4db;
  font-size: .92rem;
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-social {
  display: flex;
  gap: .75rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .07);
  color: #fff;
}

.footer-social a:hover {
  background: var(--teal);
}

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  margin-top: 1.5rem;
  padding: 1rem 0;
  font-size: .85rem;
  color: #90a0c0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* WhatsApp float */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  transition: transform .2s;
}

.wa-float:hover {
  transform: scale(1.08);
  color: #fff;
}

.wa-float svg {
  width: 30px;
  height: 30px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

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

/* Utilities */
.mt-0 {
  margin-top: 0
}

.mb-0 {
  margin-bottom: 0
}

.mt-2 {
  margin-top: 2rem
}

.mb-2 {
  margin-bottom: 2rem
}

.stack>*+* {
  margin-top: 1rem;
}

/* ------------------------------ Responsive ----------------------------- */
@media (max-width: 992px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__art {
    order: -1;
  }

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

  .person-row > .person {
    flex-basis: calc(50% - .75rem);
  }

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

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

  .step::after {
    display: none;
  }

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

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }
}

@media (max-width: 768px) {
  .topbar {
    display: none;
  }

  .hero__slide {
    min-height: 80vh;
    min-height: 80dvh;
  }

  .nav-toggle {
    display: block;
  }

  .site-header .container-fluid {
    justify-content: space-between !important;
    padding: 0 15px;
    align-items: center;
  }

  .nav {
    position: fixed;
    inset: 74px 0 0 auto;
    width: min(86vw, 340px);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: .25rem;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform .28s ease;
    overflow-y: auto;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav__link {
    justify-content: space-between;
    width: 100%;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    margin: 0 0 .5rem .5rem;
    padding: 0 0 0 .5rem;
    display: none;
  }

  .nav__item.is-open .dropdown {
    display: block;
  }

  .message-block {
    grid-template-columns: 1fr;
  }

  .message-block__photo {
    max-width: 240px;
  }
}

@media (max-width: 560px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .person-row > .person {
    flex-basis: 100%;
  }

  .stepper {
    grid-template-columns: 1fr;
  }

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

@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }

  .site-header .container-fluid {
    padding-inline: clamp(2rem, 5vw, 5rem);
  }

  .nav__link {
    font-size: 1rem;
    padding: .8rem 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }

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