:root {
  --ink: #0e1419;
  --ink-soft: #24303a;
  --slate: #5a6b78;
  --paper: #f2f4f6;
  --paper-warm: #ebe6df;
  --accent: #1f5f78;
  --accent-bright: #2a7a98;
  --gold: #b8954a;
  --white: #ffffff;
  --max: 68rem;
  --font-display: "Literata", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--gold);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--white);
  padding: 0.5rem 0.75rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--white);
  overflow: hidden;
  background: var(--ink);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 18%;
  transform: scale(1.04);
  animation: hero-drift 22s ease-in-out infinite alternate;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(14, 20, 25, 0.94) 0%,
      rgba(14, 20, 25, 0.82) 38%,
      rgba(14, 20, 25, 0.35) 68%,
      rgba(14, 20, 25, 0.55) 100%
    ),
    linear-gradient(to top, rgba(14, 20, 25, 0.75) 0%, transparent 42%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 6.5rem 1.5rem 3.25rem;
}

.hero__brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.35rem, 6.5vw, 3.85rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: rise 0.9s ease forwards 0.15s;
}

.hero__brand span {
  display: block;
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.78;
  margin-top: 0.35rem;
}

.hero__lede {
  margin: 0 0 1.75rem;
  max-width: 32rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  opacity: 0;
  animation: rise 0.9s ease forwards 0.35s;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  opacity: 0;
  animation: rise 0.9s ease forwards 0.55s;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.25rem;
  border-radius: 0.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

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

.btn--primary {
  background: var(--gold);
  color: var(--ink);
}

.btn--primary:hover {
  background: #c9a85c;
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

/* —— Sections —— */
.section {
  padding: 4.25rem 1.5rem;
}

.section__inner {
  max-width: 40rem;
  margin: 0 auto;
}

.section--wide .section__inner {
  max-width: var(--max);
}

.section__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.section p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.section p:last-child {
  margin-bottom: 0;
}

.section--muted {
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(31, 95, 120, 0.08), transparent 55%),
    linear-gradient(180deg, var(--paper-warm) 0%, var(--paper) 100%);
}

.evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.evidence a {
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.evidence a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.institute {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .institute {
    grid-template-columns: 1.2fr 1fr;
    align-items: end;
    gap: 2.5rem;
  }
}

.institute__note {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 1.5rem;
}

.contact-row a {
  font-weight: 600;
  text-decoration: none;
}

/* —— Footer —— */
.site-footer {
  padding: 2rem 1.5rem 2.5rem;
  border-top: 1px solid rgba(14, 20, 25, 0.08);
  background: var(--white);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: 0.9rem;
  color: var(--slate);
}

.site-footer a {
  color: var(--slate);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.85rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, 1%, 0);
  }
}

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

  .hero__media img,
  .hero__brand,
  .hero__lede,
  .hero__cta {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 720px) {
  .hero__media img {
    object-position: 70% 12%;
  }

  .hero__scrim {
    background:
      linear-gradient(
        180deg,
        rgba(14, 20, 25, 0.45) 0%,
        rgba(14, 20, 25, 0.72) 42%,
        rgba(14, 20, 25, 0.94) 100%
      );
  }

  .hero__inner {
    padding-top: 4.5rem;
    justify-content: flex-end;
  }
}
