:root {
  --paper: #FAF7F2;
  --sand: #F1EDE4;
  --line: #E4DDD0;
  --ink: #1F2421;
  --ink-soft: #4A524C;
  --green: #5DA16B;
  --green-deep: #2F6B3E;
  --green-darker: #24532F;
  --green-wash: #E5F0E6;
  --white: #FFFFFF;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Heebo", system-ui, "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--green-deep); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { color: var(--green-darker); }
::selection { background: var(--green); color: var(--white); }
:focus-visible { outline: 3px solid var(--green-deep); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip:focus, .skip:hover { top: 12px; color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  background: var(--green-deep); color: var(--white);
  border-radius: 999px; font-weight: 500; font-size: 1.0625rem; text-decoration: none;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { background: var(--green-darker); color: var(--white); }
.btn:active { transform: scale(0.98); }
.btn-arrow { width: 22px; height: 22px; transition: transform 0.3s var(--ease); }
.btn-arrow .stem { fill: none; stroke: currentColor; stroke-width: 4.5; stroke-linecap: round; }
.btn-arrow .head { fill: currentColor; }
.btn:hover .btn-arrow { transform: translateX(-4px); }
.btn-small { min-height: 44px; padding: 8px 20px; font-size: 1rem; }
.btn-light { background: var(--white); color: var(--green-darker); }
.btn-light:hover { background: var(--green-wash); color: var(--green-darker); }
.btn[aria-disabled="true"] { background: var(--line); color: var(--ink-soft); pointer-events: none; }

.link-quiet { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -12px rgba(31, 36, 33, 0.25); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand img { height: 52px; width: auto; mix-blend-mode: multiply; }
.site-header nav { margin-inline-start: auto; }
.nav-links { display: flex; gap: 28px; font-size: 1rem; }
.nav-links a { color: var(--ink-soft); text-decoration: none; padding-block: 6px; }
.nav-links a:hover { color: var(--ink); box-shadow: inset 0 -2px 0 var(--green); }

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); letter-spacing: -0.025em; line-height: 1.05; }
.hero h1 .accent { color: var(--green-deep); }
.lede { margin-top: 24px; max-width: 34ch; font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--ink-soft); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 28px; font-size: 1rem; color: var(--ink-soft); }
.facts li { display: inline-flex; align-items: baseline; gap: 6px; }
.facts li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green); margin-inline: 14px; align-self: center; }
.facts strong { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }
.closed-note { margin-top: 16px; font-size: 1rem; color: var(--ink-soft); max-width: 40ch; }

.hero-loop { margin: 0; position: relative; container-type: inline-size; }
.loop { width: 100%; height: auto; overflow: visible; }
.hook-green { fill: var(--green); }
.hook-ink { fill: var(--ink); }
.loop-words {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 700; font-size: 7.4cqw; line-height: 1.12; letter-spacing: -0.01em; pointer-events: none;
}
.w-from { color: var(--green-deep); }
.w-to { color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .hook { transform-box: fill-box; animation: hook-in 1.1s var(--ease) both; }
  .hook-green { --from: -14%; }
  .hook-ink { --from: 14%; animation-delay: 0.25s; }
  .loop-words span { animation: appear 0.7s var(--ease) both; }
  .w-from { animation-delay: 0.5s; }
  .w-to { animation-delay: 0.75s; }
}
@keyframes hook-in { from { opacity: 0; transform: translateX(var(--from)); } }
@keyframes appear { from { opacity: 0; } }

/* Section rhythm */
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.75rem); letter-spacing: -0.02em; }
.section-sub { margin-top: 14px; max-width: 58ch; color: var(--ink-soft); }
.who, .track, .people, .faq { padding-block: clamp(64px, 9vw, 120px); }

/* Who */
.who { border-top: 1px solid var(--line); }
.who-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; }
.who-list::before, .faq-list::before { content: ""; display: block; height: 6px; border-radius: 6px; background: var(--green); grid-column: 1 / -1; }
.who-list li { padding: 28px 0 8px; padding-inline-end: 28px; }
.who-list li + li { border-inline-start: 1px solid var(--line); padding-inline-start: 28px; }
.who-list h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); letter-spacing: -0.015em; }
.who-list p { margin-top: 10px; color: var(--ink-soft); }
.who-note { margin-top: 40px; max-width: 60ch; font-size: 1.2rem; }

/* Approach */
.approach { background: var(--sand); padding-block: clamp(64px, 9vw, 120px); }
.approach-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.approach-grid > div > p { margin-top: 20px; max-width: 46ch; color: var(--ink-soft); }
.gets { display: grid; gap: 0; }
.gets > div { padding-block: 20px; border-top: 1px solid var(--line); }
.gets > div:last-child { border-bottom: 1px solid var(--line); }
.gets dt { font-weight: 700; font-size: 1.2rem; }
.gets dt::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 3px solid var(--green); margin-inline-end: 12px; vertical-align: 1px; }
.gets dd { margin-top: 4px; color: var(--ink-soft); padding-inline-start: 26px; }

/* Track */
.track-board { position: relative; margin-top: 56px; }
.track-cap { font-size: 0.95rem; font-weight: 500; color: var(--green-deep); }
.track-start { height: 34px; line-height: 34px; margin-bottom: 12px; }
.track-end { margin-top: 12px; }
.track-line { position: absolute; inset-inline: 0; top: 46px; height: 380px; width: 100%; overflow: visible; pointer-events: none; }
.track-hook { display: none; }
.track-line path { fill: none; stroke: var(--green); stroke-width: 8; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.stops {
  position: relative; height: 380px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 1fr 1fr;
  padding-inline-end: 12%;
}
.stop { grid-column: var(--c); grid-row: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding-inline: 10px; }
.stop.row2 { grid-row: 2; flex-direction: column-reverse; justify-content: flex-start; }
.stop .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--paper); border: 5px solid var(--green); margin-top: 27px; flex: none; transition: background-color 0.4s var(--ease), transform 0.4s var(--ease); }
.stop.row2 .dot { margin-top: 0; margin-bottom: 27px; }
.stop.last .dot { background: var(--green-deep); border-color: var(--green-deep); }
.stop .n { margin-top: 14px; font-size: 0.875rem; color: var(--green-deep); font-weight: 500; font-variant-numeric: tabular-nums; }
.stop.row2 .n { margin-top: 0; margin-bottom: 14px; }
.stop .t { font-weight: 700; font-size: 1.1rem; line-height: 1.3; margin-top: 4px; }
.stop.row2 .t { margin-top: 0; margin-bottom: 4px; }
.stop.row2 { justify-content: flex-start; }
.stops .stop.row2 { flex-direction: column-reverse; justify-content: flex-start; }
.stops .stop.row2 { align-self: end; }
.track-end { text-align: start; }

@media (prefers-reduced-motion: no-preference) {
  .js .track-line path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease); }
  .js .track.is-visible .track-line path { stroke-dashoffset: 0; }
  .js .stop .dot { transform: scale(0.4); }
  .js .track.is-visible .stop .dot { transform: scale(1); transition-delay: calc(var(--i, 0) * 120ms + 300ms); }
  .js .stops::before { transform: scaleY(0); transition: transform 1.8s var(--ease); }
  .js .track.is-visible .stops::before { transform: scaleY(1); }
  .js .track-hook { opacity: 0; transition: opacity 0.5s var(--ease) 1.6s; }
  .js .track.is-visible .track-hook { opacity: 1; }
}

/* Lecturers */
.lecturers { padding-block: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line); }
.lecturers-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.carousel-nav { display: flex; gap: 10px; flex: none; }
.carousel-nav[hidden] { display: none; }
.carousel-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--green-deep);
  background: transparent; color: var(--green-deep); display: grid; place-items: center; cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), opacity 0.25s;
}
.carousel-btn svg { width: 22px; height: 22px; }
.carousel-btn .stem { fill: none; stroke: currentColor; stroke-width: 4.5; stroke-linecap: round; }
.carousel-btn .head { fill: currentColor; }
.carousel-btn:hover { background: var(--green-deep); color: var(--white); }
.carousel-btn:disabled { opacity: 0.35; cursor: default; background: transparent; color: var(--green-deep); }
.lecturer-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 20vw, 240px); gap: clamp(20px, 2.4vw, 32px);
  margin-top: 44px; padding-block: 8px 20px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--green) var(--line);
}
.lecturer-track:focus-visible { outline-offset: 6px; }
.lecturer { position: relative; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; text-align: center; }
.lecturer .face { max-width: 180px; font-size: 2rem; }
.lecturer .name { margin-top: 18px; font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.lecturer .role { margin-top: 2px; margin-bottom: 10px; font-size: 0.95rem; line-height: 1.45; color: var(--ink-soft); }
.in-link { margin-top: auto; translate: 0 10px; font-size: 0.95rem; font-weight: 500; padding: 6px 4px; }
.lecturer .face-more { background: transparent; border-style: dashed; border-color: color-mix(in srgb, var(--green) 70%, var(--paper)); }
.lecturer-more .name { color: var(--ink-soft); }

/* People */
.people { border-top: 1px solid var(--line); }
.team { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px 20px; margin-top: 44px; }
.team li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.face {
  width: 100%; max-width: 140px; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green-wash); color: var(--green-deep);
  font-weight: 700; font-size: 1.6rem; letter-spacing: 0.04em;
  border: 3px solid var(--green); padding: 5px; background-clip: content-box;
}
img.face { display: block; width: 100%; height: auto; object-fit: cover; background: var(--green-wash); }
.team .name { margin-top: 14px; font-weight: 700; font-size: 1.02rem; line-height: 1.3; }
.team .role { margin-top: 2px; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.4; }
.mentors { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px 64px; align-items: center; }
.mentors h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.mentors p { color: var(--ink-soft); grid-column: 1; max-width: 44ch; }
.mentor-slots { grid-column: 2; grid-row: 1 / span 2; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.mentor-slots li { aspect-ratio: 1; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--green) 70%, var(--paper)); }

/* Details */
.details { background: var(--sand); padding-block: clamp(56px, 8vw, 104px); }
.details-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 32px clamp(32px, 6vw, 96px); }
.detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.detail-list > div { padding-block: 18px; border-top: 1px solid var(--line); }
.detail-list dt { font-size: 0.95rem; color: var(--ink-soft); }
.detail-list dd { margin-top: 2px; font-weight: 500; font-size: 1.15rem; }
.detail-list dd.tbd { color: var(--ink-soft); font-weight: 400; font-style: normal; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 32px clamp(32px, 6vw, 96px); }
.faq-list { align-self: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 22px; font-weight: 500; font-size: 1.2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  border-right: 2.5px solid var(--green-deep); border-bottom: 2.5px solid var(--green-deep);
  transform: translateY(-3px) rotate(45deg); transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq summary:hover { color: var(--green-deep); }
.faq details p { padding-bottom: 24px; max-width: 62ch; color: var(--ink-soft); }

/* CTA */
.cta { background: var(--green-deep); color: var(--white); padding-block: clamp(64px, 9vw, 112px); position: relative; overflow: hidden; }
.cta-loop { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cta-loop path { fill: none; stroke: #3A7A49; stroke-width: 30; stroke-linecap: round; }
.cta-inner { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -0.025em; color: var(--white); max-width: 18ch; }
.cta p { margin: 16px 0 32px; color: #DCEBDD; font-size: 1.2rem; }

/* Footer */
.site-footer { padding-block: 28px; font-size: 0.95rem; color: var(--ink-soft); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--green-deep); }

/* Document pages */
.doc { max-width: 820px; padding-block: clamp(40px, 7vw, 88px); }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -0.025em; }
.doc h2 { font-size: 1.6rem; margin-top: 48px; margin-bottom: 12px; letter-spacing: -0.015em; }
.doc h3 { font-size: 1.2rem; margin-top: 32px; margin-bottom: 8px; }
.doc p + p { margin-top: 12px; }
.doc-meta { color: var(--ink-soft); font-size: 0.95rem; margin-top: 8px; margin-bottom: 28px; }
.doc-list { list-style: disc; padding-inline-start: 1.4em; margin-top: 12px; }
.doc-list li::marker { color: var(--green); }
.doc-olist { list-style: decimal; padding-inline-start: 1.6em; margin-block: 12px; }
.doc-list li + li, .doc-olist li + li { margin-top: 6px; }
.doc-contact { margin-top: 16px; border-top: 1px solid var(--line); }
.doc-contact > div { display: flex; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.doc-contact dt { min-width: 110px; color: var(--ink-soft); }
.doc-contact dd { font-weight: 500; }
.doc-callout { background: var(--sand); border-radius: var(--radius); padding: 24px 28px; margin-top: 28px; }
.doc-callout h2 { margin-top: 0; font-size: 1.3rem; }

/* Responsive */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .site-header nav { margin-inline-start: auto; }
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mentors { grid-template-columns: 1fr; }
  .mentors p, .mentor-slots { grid-column: 1; grid-row: auto; }
  .mentor-slots { margin-top: 12px; max-width: 520px; }
}

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-loop { order: -1; width: 240px; margin-inline: 0 auto; margin-bottom: -4px; }
  .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
  .facts li + li::before { display: none; }
  .facts li { display: block; }
  .facts strong { display: block; font-size: 1.15rem; }
  .face { max-width: 112px; }
  .who-list { grid-template-columns: 1fr; }
  .who-list li, .who-list li + li { padding: 22px 0; border-inline-start: 0; }
  .who-list li + li { border-top: 1px solid var(--line); }
  .approach-grid, .details-grid, .faq-wrap { grid-template-columns: 1fr; }
  .detail-list { grid-template-columns: 1fr; }

  .track-line { display: none; }
  .track-board { margin-top: 36px; }
  .stops { height: auto; display: block; padding: 0; position: relative; }
  .stops::before { content: ""; position: absolute; inset-inline-start: 10px; top: 14px; bottom: 0; width: 6px; border-radius: 6px 6px 0 0; background: var(--green); transform-origin: top; }
  .track-end { display: flex; align-items: flex-end; gap: 6px; margin-top: 0; padding-inline-start: 3px; }
  .track-hook { display: block; width: 64px; height: 48px; flex: none; }
  .hook-line { fill: none; stroke: var(--green); stroke-width: 6; stroke-linecap: round; }
  .hook-head { fill: var(--green-deep); }
  .stop, .stops .stop.row2 { flex-direction: row; align-items: baseline; text-align: start; gap: 14px; padding: 12px 0; position: relative; }
  .stop .dot, .stop.row2 .dot { margin: 0; align-self: center; position: relative; }
  .stop .n, .stop.row2 .n { margin: 0; min-width: 1ch; }
  .stop .t, .stop.row2 .t { margin: 0; text-align: start; }
  .stop .t[dir="ltr"] { unicode-bidi: plaintext; }
  .track-end { text-align: start; }
}

@media (max-width: 520px) {
  .brand img { height: 38px; }
  .header-inner { min-height: 62px; gap: 12px; }
  .btn-small { min-height: 44px; padding: 8px 16px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .mentor-slots { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
  .facts li + li::before { margin-inline: 10px; }
  .cta-loop { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
