/* True Knee Institute: one quiet layer, matching trueknee.com's home page.
   - One field: everything sits on Midnight; no boxes, grid lines or rules between sections.
   - One voice: a Space Mono eyebrow in Range Amber, a large centred Space Grotesk headline, one soft line.
   - Art floats: the anatomy illustration has a near-black ground and blends with `lighten`.
   - Space does the work: large vertical rhythm, narrow reading measure. */
:root {
  --midnight: #0e1a2b;
  --tile: #13233a;
  --white: #f2f5fa;
  --soft: rgba(242, 245, 250, .68);
  --faint: rgba(242, 245, 250, .45);
  --hair: rgba(91, 107, 124, .32);
  --teal: #5fd3c6;
  --amber: #e8a33d;
  --space: clamp(96px, 11vw, 168px);
  --display: "Space Grotesk", Arial, sans-serif;
  --body: "Manrope", Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--midnight); color: var(--white); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; color-scheme: dark; }
a { color: var(--white); text-decoration-color: var(--hair); text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
a:hover { color: var(--teal); text-decoration-color: currentColor; }
img { max-width: 100%; height: auto; display: block; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); color: var(--midnight); padding: 8px 12px; z-index: 20; }
.wrap { width: min(1120px, 100% - 48px); margin: 0 auto; }

/* Header ------------------------------------------------------------------------------------------- */
header.site { position: sticky; top: 0; z-index: 10; background: rgba(14, 26, 43, .78); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid rgba(91, 107, 124, .18); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.lockup { display: flex; align-items: center; gap: 11px; color: var(--white); text-decoration: none; }
.lockup:hover { color: var(--white); }
.lockup .mark { width: 20px; height: 33px; flex: none; }
.lockup span { display: flex; flex-direction: column; line-height: 1; }
.lockup b { font: 600 15px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; }
.lockup small { margin-top: 5px; font: 400 9.5px/1 var(--mono); letter-spacing: .34em; text-transform: uppercase; color: var(--faint); }
nav.main { display: flex; gap: 4px; }
nav.main a { color: var(--soft); text-decoration: none; font: 500 14px/1 var(--body); padding: 10px 14px; border-radius: 999px; }
nav.main a:hover { color: var(--white); background: rgba(242, 245, 250, .06); }
nav.main a[aria-current="page"] { color: var(--white); }

/* Type --------------------------------------------------------------------------------------------- */
.kicker { font: 400 12px/1.4 var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--amber); margin: 0 0 22px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(42px, 6.6vw, 88px); line-height: 1.02; letter-spacing: -.03em; }
h2 { font-size: clamp(34px, 4.8vw, 64px); line-height: 1.05; letter-spacing: -.025em; }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -.01em; }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; color: var(--soft); max-width: 36em; margin: 28px auto 0; }

/* Hero --------------------------------------------------------------------------------------------- */
.hero { padding: clamp(80px, 10vw, 148px) 0 0; text-align: center; }
.hero h1 { max-width: 15ch; margin: 0 auto; }
.hero figure { margin: clamp(32px, 5vw, 72px) auto 0; max-width: 600px; }
/* The illustration's ground is near-black; lighten drops it into Midnight, and the cut-off shafts fade out at the bottom. */
.hero img { mix-blend-mode: lighten; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.hero.plain { padding-bottom: clamp(24px, 4vw, 48px); }

/* Sections ----------------------------------------------------------------------------------------- */
section.band { padding: var(--space) 0; }
section.band + section.band { padding-top: 0; }
.section-head { text-align: center; max-width: 820px; margin: 0 auto clamp(48px, 6vw, 80px); }
.section-head p { color: var(--soft); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; max-width: 38em; margin: 24px auto 0; }

/* Programs: four quiet tiles, no rules ------------------------------------------------------------- */
.programs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.program { background: var(--tile); border-radius: 28px; padding: clamp(32px, 3.6vw, 48px); display: flex; flex-direction: column; }
/* Program art: the same black-ground anatomy as the hero, dropped into the tile with lighten. */
.program-art { margin: calc(-1 * clamp(32px, 3.6vw, 48px)) calc(-1 * clamp(32px, 3.6vw, 48px)) 8px; height: clamp(220px, 24vw, 300px); overflow: hidden; border-radius: 28px 28px 0 0; }
.program-art img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: lighten; -webkit-mask-image: linear-gradient(#000 75%, transparent); mask-image: linear-gradient(#000 75%, transparent); }
/* Program films: full-frame scenes of people, so they cover the slot and fade into the tile without the lighten blend. */
.program-film video { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.program .num { font: 400 12px/1 var(--mono); color: var(--amber); letter-spacing: .3em; }
.program h3 { margin: 20px 0 14px; font-size: clamp(24px, 2.2vw, 30px); }
.program p { margin: 0 0 28px; color: var(--soft); }
.status { margin-top: auto; font: 400 11.5px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.program-link { display: inline-block; margin-top: 18px; font: 600 15px/1.4 var(--body); color: var(--white); text-decoration: none; }
.program-link:hover { color: var(--teal); }

/* Principles: three columns, centred --------------------------------------------------------------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 64px); text-align: center; }
.principles h3 { font-size: 22px; }
.principles p { color: var(--soft); margin: 12px auto 0; max-width: 30ch; }

/* About -------------------------------------------------------------------------------------------- */
.prose { max-width: 680px; }
.prose p, .prose li { color: var(--soft); }
.prose h2 { font-size: clamp(28px, 3.2vw, 40px); margin: clamp(72px, 8vw, 112px) 0 18px; }
.prose h2:first-child { margin-top: 0; }
.board { list-style: none; padding: 0; margin: 32px 0 0; }
.board li { padding: 18px 0; color: var(--white); font: 500 19px/1.3 var(--display); display: flex; justify-content: space-between; align-items: baseline; gap: 24px; border-top: 1px solid rgba(91, 107, 124, .2); }
.board li:last-child { border-bottom: 1px solid rgba(91, 107, 124, .2); }
.board li span { color: var(--faint); font: 400 14px/1.4 var(--body); text-align: right; }

.notice { background: var(--tile); border-radius: 22px; padding: 28px 32px; margin: 0; }
.notice p { margin: 0; color: var(--white); }
.notice p + p { margin-top: 12px; color: var(--soft); }

/* Footer ------------------------------------------------------------------------------------------- */
footer.site { padding: 56px 0 72px; color: var(--faint); font-size: 13.5px; line-height: 1.6; border-top: 1px solid rgba(91, 107, 124, .18); }
footer.site .wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; }
footer.site p { margin: 0 0 10px; }
footer.site strong { color: var(--soft); font-weight: 600; }
footer.site a { color: var(--soft); }
footer.site .wrap > div:last-child { text-align: right; }

@media (max-width: 820px) {
  .wrap { width: min(1120px, 100% - 32px); }
  .programs, .principles { grid-template-columns: 1fr; }
  .programs { gap: 14px; }
  .program { border-radius: 22px; }
  .program-art { border-radius: 22px 22px 0 0; }
  footer.site .wrap { grid-template-columns: 1fr; gap: 20px; }
  footer.site .wrap > div:last-child { text-align: left; }
  .board li { flex-direction: column; gap: 4px; }
  .board li span { text-align: left; }
}
@media (max-width: 480px) {
  nav.main { gap: 0; }
  nav.main a { padding: 10px 7px; font-size: 13.5px; }
  .lockup { gap: 9px; }
  .lockup b { font-size: 13px; letter-spacing: .12em; white-space: nowrap; }
  .lockup small { letter-spacing: .28em; }
  .lockup .mark { width: 17px; height: 28px; }
}
