:root {
  --bg: #f7fcf8;
  --paper: #ffffff;
  --paper-soft: #f1f8f2;
  --green: #15803d;
  --green-dark: #075f35;
  --mint: #dcfce7;
  --mint-strong: #86efac;
  --teal: #0f766e;
  --amber: #f59e0b;
  --rose: #f9d6d5;
  --ink: #172033;
  --muted: #64748b;
  --line: #d7eadc;
  --shadow: 0 24px 70px rgba(21, 128, 61, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 1120px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(21, 128, 61, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 128, 61, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 82% 18%, rgba(134, 239, 172, 0.18), transparent 24rem),
    var(--bg);
  background-size: 44px 44px, 44px 44px, auto, auto;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 1120px;
  padding: 18px 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.brand,
.nav-links,
.student-pills,
.hero-actions,
.panel-title-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 14px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(145deg, var(--green), var(--teal));
  font-size: 1rem;
  letter-spacing: 0;
  box-shadow: 0 10px 28px rgba(21, 128, 61, 0.2);
}

.brand-text {
  font-size: 1.1rem;
}

.nav-links {
  gap: 28px;
  color: var(--muted);
  font-weight: 750;
}

.nav-links a {
  transition: color 0.18s ease;
}

.nav-links a:hover {
  color: var(--green);
}

.section-shell {
  width: min(1480px, calc(100% - 64px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.72fr);
  gap: 32px;
  min-height: calc(100vh - 96px);
  padding: 56px 0 46px;
}

.hero-copy,
.hero-panel,
.profile-card,
.micro-card,
.module-card,
.reflection,
.modal-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 680px;
  padding: 50px 58px;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: 42px;
  bottom: 34px;
  width: 160px;
  height: 160px;
  border: 28px solid rgba(134, 239, 172, 0.22);
  border-radius: 50%;
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.83rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 870px;
  margin-bottom: 22px;
  font-size: clamp(4.2rem, 5.9vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-lede {
  max-width: 850px;
  color: #405069;
  font-size: 1.05rem;
  line-height: 1.72;
}

.hero-lede p,
.profile-narrative p {
  margin-bottom: 14px;
}

.interest-note {
  margin-top: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(220, 252, 231, 0.62), rgba(255, 255, 255, 0.9));
}

.interest-note h2 {
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 1.18rem;
  line-height: 1.2;
}

.interest-note p,
.profile-narrative p:last-child,
.hero-lede p:last-child {
  margin-bottom: 0;
}

.student-pills {
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 34px;
}

.student-pills span,
.module-tag,
.status-dot,
.skill-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
}

.student-pills span {
  padding: 10px 18px;
  box-shadow: 0 8px 22px rgba(21, 128, 61, 0.08);
}

.hero-actions {
  gap: 14px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), var(--teal));
  box-shadow: 0 16px 28px rgba(21, 128, 61, 0.22);
}

.secondary-button {
  color: var(--green-dark);
  background: #ffffff;
  border-color: var(--line);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.compact {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.92rem;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 680px;
  padding: 36px;
}

.hero-media {
  display: grid;
  grid-template-columns: 1.05fr 0.75fr;
  gap: 14px;
}

.avatar-card {
  position: relative;
  min-height: 238px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
}

.avatar-photo {
  display: block;
  width: 100%;
  height: 238px;
  object-fit: cover;
  object-position: 56% 48%;
}

.panel-title-row {
  justify-content: space-between;
  gap: 18px;
}

.panel-title-row h2,
.section-heading h2,
.profile-card h2,
.reflection h2,
.modal-header h2 {
  margin-bottom: 8px;
  font-size: 2.35rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.status-dot {
  padding: 8px 13px;
  color: var(--green-dark);
  background: var(--mint);
  border-color: rgba(21, 128, 61, 0.22);
  font-size: 0.84rem;
}

.learning-index {
  display: grid;
  gap: 10px;
}

.index-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.index-row.featured {
  border-color: rgba(21, 128, 61, 0.42);
  background: linear-gradient(90deg, rgba(220, 252, 231, 0.78), #ffffff);
}

.index-code {
  color: var(--green);
  font-weight: 900;
}

.index-title {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 28px;
  padding: 44px 0 22px;
}

.profile-card {
  padding: 42px;
}

.profile-card > p:not(.eyebrow),
.profile-narrative p,
.section-heading p,
.reflection-copy p {
  color: #405069;
  font-size: 1.12rem;
}

.profile-narrative {
  max-width: 900px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 32px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.info-grid div {
  min-height: 132px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

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

.info-grid div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

dd {
  margin: 0;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 850;
}

.profile-side {
  display: grid;
  gap: 16px;
}

.micro-card {
  padding: 26px;
}

.card-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--green);
  font-weight: 900;
}

.micro-card:nth-child(2) .card-icon {
  background: var(--teal);
}

.micro-card:nth-child(3) .card-icon {
  background: var(--amber);
}

.micro-card h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.micro-card p {
  margin-bottom: 0;
  color: #53647c;
}

.modules-section {
  padding: 48px 0 28px;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 28px;
}

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

.module-card {
  position: relative;
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: 26px;
  overflow: hidden;
}

.module-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--green), var(--teal));
}

.module-card.featured {
  border-color: rgba(21, 128, 61, 0.44);
  background:
    linear-gradient(135deg, rgba(220, 252, 231, 0.74), rgba(255, 255, 255, 0.96)),
    #ffffff;
}

.module-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.module-number {
  color: var(--green);
  font-size: 0.95rem;
  font-weight: 900;
}

.module-focus {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.module-card h3 {
  min-height: 82px;
  margin-bottom: 14px;
  font-size: 1.55rem;
  line-height: 1.18;
}

.module-card p {
  color: #4c5f79;
}

.module-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 22px;
  padding-top: 12px;
}

.module-tag {
  padding: 7px 10px;
  color: var(--green-dark);
  background: var(--paper-soft);
  font-size: 0.78rem;
}

.module-actions {
  display: flex;
  gap: 10px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--green-dark);
  cursor: pointer;
  font-weight: 850;
}

.reflection {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  margin-top: 36px;
  margin-bottom: 70px;
  padding: 42px;
}

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

.outcome-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.outcome-card h3 {
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 1.06rem;
}

.outcome-card p {
  margin-bottom: 0;
  color: #52627a;
  font-size: 0.96rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
}

.modal-panel {
  position: relative;
  width: min(1360px, calc(100vw - 72px));
  max-height: calc(100vh - 70px);
  overflow: auto;
}

.modal-close {
  position: sticky;
  top: 18px;
  left: calc(100% - 58px);
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--ink);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.modal-header {
  padding: 34px 38px 24px;
}

.modal-header p:not(.eyebrow) {
  max-width: 840px;
  color: #4b5d75;
}

.modal-body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  gap: 24px;
  padding: 0 38px 38px;
}

.modal-sections {
  display: grid;
  gap: 12px;
  align-content: start;
}

.note-section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.note-section h3 {
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 1.02rem;
}

.note-section p {
  margin-bottom: 0;
  color: #4b5b72;
}

.pdf-frame {
  min-height: 720px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
}

.pdf-frame iframe {
  width: 100%;
  height: 720px;
  border: 0;
}

@media (max-width: 900px) {
  body,
  .site-header {
    min-width: 1120px;
  }
}
