:root {
  color-scheme: light;
  --ink: #142e2c;
  --muted: #415a55;
  --paper: #f8fbf9;
  --mint: #e3f0ea;
  --line: #b9d0c5;
  --accent: #154f43;
  font: 100%/1.6 "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body, figure, h1, h2, h3, dl, dd, p { margin: 0; }
a { color: inherit; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #b05920; outline-offset: 4px; }
img { display: block; max-width: 100%; }
.wrap { width: min(100% - 3rem, 74rem); margin-inline: auto; }
.skip { position: absolute; top: -5rem; left: 1rem; background: white; padding: 0.6rem 1rem; z-index: 1; }
.skip:focus { top: 0.5rem; }
.header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header-inner { min-height: 4.5rem; }
.identity { font-weight: 750; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1.6rem; }
nav a { min-height: 2.75rem; display: inline-flex; align-items: center; font-size: 0.94rem; }
.nav-apply { color: var(--accent); font-weight: 700; }
.hero { background: var(--mint); padding-block: clamp(2rem, 5vw, 4.75rem) clamp(1.5rem, 3vw, 2.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.06fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.eyebrow { color: var(--accent); font-size: 0.875rem; font-weight: 750; margin-bottom: 1rem; }
h1, h2, h3 { line-height: 1.12; overflow-wrap: break-word; hyphens: none; }
h1 { font-size: clamp(2.45rem, 5vw, 4.65rem); letter-spacing: -0.055em; }
h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); letter-spacing: -0.045em; }
h3 { font-size: 1.24rem; letter-spacing: -0.015em; }
p + p { margin-top: 0.9rem; }
.lead { margin-top: 1.2rem; max-width: 34rem; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); }
.button { display: inline-block; margin-top: 1.4rem; padding: 0.75rem 1.15rem; background: var(--accent); color: white; border-radius: 0.4rem; font-weight: 700; text-decoration: none; }
.button:hover { background: #0e3a31; text-decoration: underline; }
.hero-photo-frame, .research-photo img { border-radius: 0.6rem; }
.hero-photo-frame { aspect-ratio: 4 / 3; overflow: hidden; }
.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  transform: scale(1.32);
  transform-origin: 77% 79%;
}
.research-photo img { width: 100%; height: auto; }
figcaption { margin-top: 0.5rem; color: var(--muted); font-size: 0.875rem; }
.facts { display: grid; grid-template-columns: 0.9fr 1fr 1.2fr 1.2fr; margin-top: clamp(1.75rem, 4vw, 3.5rem); padding: 0.5rem 0; background: var(--paper); border: 1px solid var(--line); border-radius: 0.6rem; }
.facts > div { min-width: 0; padding: 0.85rem 1.15rem; overflow-wrap: anywhere; }
.facts > div + div { border-left: 1px solid var(--line); }
.facts dt { font-size: clamp(1.04rem, 1.65vw, 1.43rem); line-height: 1.25; font-weight: 750; letter-spacing: -0.025em; }
.facts dd { margin-top: 0.35rem; color: var(--muted); }
.section { padding-block: clamp(2.75rem, 7vw, 6rem); scroll-margin-top: 1rem; }
.section h2 + p { margin-top: 1rem; }
.protocol { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(1.5rem, 6vw, 5.5rem); }
.protocol > div > p, .steps p, .criteria p, .research p { color: var(--muted); }
.treatment-heading { margin: 1.5rem 0 0.5rem; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li { position: relative; padding: 0.95rem 0 1.1rem 3.15rem; min-height: 3.5rem; border-top: 1px solid var(--line); counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0.82rem; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--mint); color: var(--accent); font-weight: 750; }
.steps p { margin-top: 0.35rem; }
.research-band { background: var(--mint); }
.research { display: grid; grid-template-columns: 0.95fr 1.05fr; align-items: center; gap: clamp(1.5rem, 6vw, 5rem); }
details { margin-top: 1.4rem; border-block: 1px solid var(--line); }
summary { padding-block: 0.7rem; cursor: pointer; font-weight: 700; }
details p { padding-bottom: 1rem; }
.apply { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: clamp(1.5rem, 6vw, 5rem); }
.apply-panel { color: white; background: var(--accent); padding: clamp(1.4rem, 4vw, 3.25rem); border-radius: 0.6rem; }
.apply-panel h2 { text-wrap: wrap; }
.apply-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.criteria h3 { margin-bottom: 0.6rem; }
footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { padding-block: 1.5rem; font-size: 0.9rem; }
.partner-footer { background: #fff; }
.partner-footer .footer-inner { padding-block: 0.5rem; gap: 0.35rem 1rem; }
.partner-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 26.5rem);
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.partner-logos li {
  display: grid;
  min-height: 6.5rem;
  align-content: start;
  justify-items: center;
  text-align: center;
  color: var(--ink);
  font-size: clamp(0.75rem, 4vw, 1.25rem);
  font-weight: 700;
  line-height: 1.2;
}
.partner-logos img { width: 76.5%; height: auto; }
.partner-logos .helsinki-logo { width: 76.5%; }
.partner-logos .hus-logo { width: 100%; }

@media (max-width: 56rem) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
  .facts > div:nth-child(odd) { border-left: 0; }
  .facts > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 43rem) {
  .wrap { width: min(100% - 2rem, 34rem); }
  .header-inner { display: block; padding-top: 0.7rem; }
  nav { gap: 0 1.1rem; }
  .hero-grid, .protocol, .research, .apply { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { display: contents; }
  .hero > .wrap { display: flex; flex-direction: column; gap: 1.5rem; }
  .hero-photo { order: 1; }
  .hero-photo-frame { aspect-ratio: 3 / 2; }
  .hero-photo-frame img { transform-origin: 93% 79%; }
  .facts { margin-top: 0; }
  .facts > div { padding: 0.75rem; }
  .research-photo { order: 1; }
  .footer-inner { flex-wrap: wrap; }
}

@media (max-width: 22rem) {
  nav { gap: 0 0.65rem; }
  nav a { font-size: 0.875rem; }
}
