:root {
  --ink: #1f2328;
  --muted: #636c76;
  --line: #d8dee4;
  --paper: #ffffff;
  --surface: #f6f8fa;
  --accent: #a31f34;
  --accent-dark: #741326;
  --teal: #0d7d74;
  --gold: #b17700;
  --shadow: 0 22px 60px rgba(31, 35, 40, 0.18);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(20px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
}

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

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.top-nav a {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--accent);
}

.hero {
  position: relative;
  display: grid;
  min-height: 620px;
  overflow: hidden;
}

.hero-image,
.hero-overlay,
.hero-content {
  grid-area: 1 / 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.52) 42%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.02) 38%);
}

.hero-content {
  position: relative;
  align-self: center;
  width: min(760px, calc(100% - 40px));
  margin-left: clamp(20px, 7vw, 96px);
  padding: 58px 0 96px;
  color: #ffffff;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd9df;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 2px solid transparent;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.72);
  color: #ffffff;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.course-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.course-strip div {
  min-width: 0;
  padding: 22px clamp(18px, 4vw, 42px);
  border-right: 1px solid var(--line);
}

.course-strip div:last-child {
  border-right: 0;
}

.course-strip span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.course-strip strong {
  display: block;
  font-size: 1rem;
}

.content-shell {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr) minmax(260px, 340px);
  align-items: start;
  gap: clamp(28px, 4vw, 52px);
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 54px clamp(20px, 5vw, 64px) 70px;
}

.side-nav {
  position: sticky;
  top: 102px;
  display: grid;
  border-left: 4px solid var(--accent);
}

.side-nav a {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.side-nav a:hover,
.side-nav a:focus-visible,
.side-nav a.active {
  color: var(--accent);
  background: #fff5f7;
}

.main-content {
  min-width: 0;
}

.content-section {
  padding: 0 0 54px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 52px;
}

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

.content-section h2 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.content-section p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.03rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 34px;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature-card {
  min-height: 220px;
  padding: 26px;
  background: #ffffff;
}

.feature-number {
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 800;
}

.feature-card h3 {
  margin: 18px 0 10px;
  font-size: 1.28rem;
}

.feature-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.materials-list {
  display: grid;
  border-top: 3px solid var(--ink);
}

.material-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.material-row span {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 800;
}

.material-row strong {
  font-size: 1.08rem;
}

.material-row:hover strong,
.material-row:focus-visible strong {
  color: var(--accent);
}

.publication-card {
  padding: 26px;
  border-left: 6px solid var(--accent);
  background: var(--surface);
}

.publication-citation {
  max-width: none;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 1.02rem;
}

.doi-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--teal);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.publication-keywords {
  max-width: none;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.contact-section {
  border-bottom: 0;
}

.query-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-top: 6px solid var(--teal);
  background: var(--surface);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.query-form label {
  display: grid;
  gap: 8px;
}

.query-form span {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.query-form input,
.query-form select,
.query-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  padding: 12px 14px;
}

.query-form textarea {
  min-height: 150px;
  resize: vertical;
}

.query-form input:focus,
.query-form select:focus,
.query-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 125, 116, 0.16);
  outline: 0;
}

.hidden-field {
  display: none;
}

.form-submit {
  justify-self: start;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
}

.timeline {
  display: grid;
  gap: 20px;
}

.timeline article {
  padding-left: 22px;
  border-left: 4px solid var(--gold);
}

.timeline time {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.timeline h3 {
  margin: 6px 0 8px;
  font-size: 1.22rem;
}

.info-panel {
  position: sticky;
  top: 102px;
  display: grid;
  gap: 18px;
}

.panel-block {
  padding: 26px;
  border-top: 6px solid var(--accent);
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line);
}

.panel-block h2 {
  margin-bottom: 20px;
  font-size: 1.3rem;
}

dl {
  margin: 0;
}

dl div {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 5px 0 0;
  font-weight: 700;
}

.callout {
  border-top-color: var(--teal);
  background: #eef9f7;
}

.callout p {
  color: var(--muted);
}

.callout a {
  display: inline-block;
  color: var(--teal);
  font-weight: 800;
}

.contact-links {
  display: grid;
  gap: 8px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 800;
  text-decoration: none;
}

.thank-you-page {
  display: grid;
  min-height: calc(100vh - 76px);
  place-items: center;
  padding: 42px 20px;
  background: var(--surface);
}

.thank-you-panel {
  width: min(760px, 100%);
  padding: clamp(32px, 6vw, 58px);
  border-top: 8px solid var(--accent);
  background: #ffffff;
  box-shadow: 0 1px 0 var(--line);
}

.thank-you-panel h1 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(2.3rem, 6vw, 4.5rem);
}

.thank-you-panel p {
  max-width: 620px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.06rem;
}

@media (max-width: 1080px) {
  .content-shell {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
  }

  .side-nav {
    display: none;
  }

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

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

@media (max-width: 820px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: 610px;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.22));
  }

  .hero-content {
    align-self: end;
    width: calc(100% - 40px);
    margin: 0 20px;
    padding-bottom: 46px;
  }

  .course-strip {
    grid-template-columns: 1fr 1fr;
  }

  .course-strip div:nth-child(2n) {
    border-right: 0;
  }

  .content-shell {
    grid-template-columns: 1fr;
    padding-top: 42px;
  }

  .info-panel {
    position: static;
  }
}

@media (max-width: 560px) {
  .brand {
    align-items: flex-start;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .top-nav a {
    padding: 8px 10px;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    justify-content: center;
  }

  .course-strip {
    grid-template-columns: 1fr;
  }

  .course-strip div {
    border-right: 0;
  }

  .material-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .site-footer {
    flex-direction: column;
  }
}
