:root {
  --ink: #132336;
  --ink-soft: #30475e;
  --paper: #f5f2ea;
  --panel: #fffdf8;
  --line: #d8d0c2;
  --accent: #0c6b72;
  --accent-soft: #d7ecea;
  --focus: #b9452c;
  --max: 1120px;
  --radius: 18px;
  --shadow: 0 14px 36px rgba(19, 35, 54, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1300px 560px at 14% -10%, #d8e7e3 0%, rgba(216, 231, 227, 0) 64%),
    radial-gradient(980px 520px at 102% -5%, #e9e1d3 0%, rgba(233, 225, 211, 0) 62%),
    radial-gradient(780px 420px at 75% 22%, rgba(194, 220, 216, 0.23) 0%, rgba(194, 220, 216, 0) 70%),
    repeating-radial-gradient(
      circle at 14% 22%,
      rgba(12, 107, 114, 0.12) 0,
      rgba(12, 107, 114, 0.12) 1px,
      transparent 1px,
      transparent 26px
    ),
    repeating-radial-gradient(
      circle at 82% 28%,
      rgba(48, 71, 94, 0.1) 0,
      rgba(48, 71, 94, 0.1) 1px,
      transparent 1px,
      transparent 30px
    ),
    repeating-linear-gradient(
      135deg,
      rgba(17, 53, 70, 0.06) 0,
      rgba(17, 53, 70, 0.06) 1px,
      transparent 1px,
      transparent 22px
    ),
    var(--paper);
  font: 1rem/1.65 "Avenir Next", "Trebuchet MS", "Gill Sans", sans-serif;
}

h1,
h2,
h3 {
  margin: 0 0 0.85rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
}

h1 {
  font-size: clamp(2rem, 4.8vw, 3.8rem);
}

h2 {
  font-size: clamp(1.55rem, 2.7vw, 2.3rem);
}

h3 {
  font-size: 1.2rem;
}

p,
li,
a {
  font-size: 1.02rem;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.17em;
}

a:hover {
  color: #084f55;
}

a:focus-visible,
.button:focus-visible,
.skip-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.shell {
  width: min(100% - 2.4rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 0.7rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 242, 234, 0.95);
  backdrop-filter: blur(7px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 0;
}

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

.brand-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(19, 35, 54, 0.2);
}

.brand a {
  font: 700 1.56rem/1 "Iowan Old Style", "Palatino Linotype", serif;
  text-decoration: none;
  color: var(--ink);
}

.brand span {
  color: var(--accent);
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 2.25rem;
}

.kicker {
  margin: 0 0 0.4rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.hero p {
  width: min(75ch, 100%);
}

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

.button {
  display: inline-block;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.button.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.hero-note {
  margin-top: 1.2rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 12px 12px 0;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 0.9rem;
}

.two-col > div {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem;
}

.panel {
  margin-top: 1.3rem;
  margin-bottom: 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: clamp(1.2rem, 3vw, 2rem);
}

.section-heading {
  margin-bottom: 0.75rem;
}

.cards {
  margin-top: 1.1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.cards article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 1rem 1.1rem;
}

.cards ul {
  margin: 0;
  padding-left: 1.1rem;
}

.signup-card {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 1rem 1.1rem;
}

.jotform-wrap {
  margin-top: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.jotform-wrap iframe {
  width: 100%;
  min-height: 820px;
  border: 0;
  display: block;
}

.small-note {
  margin: 0.7rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.site-footer {
  margin-top: 1.4rem;
  border-top: 1px solid var(--line);
  padding: 1.3rem 0 1.8rem;
}

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

.footer-wrap p {
  margin: 0;
  color: var(--ink-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise-in 700ms ease forwards;
}

.hero.reveal {
  animation-delay: 60ms;
}

.two-col.reveal {
  animation-delay: 140ms;
}

#clinical.reveal {
  animation-delay: 220ms;
}

#training.reveal {
  animation-delay: 300ms;
}

#research.reveal {
  animation-delay: 380ms;
}

#contact.reveal {
  animation-delay: 460ms;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .cards.three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .two-col,
  .cards {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}
