:root {
  color-scheme: light;
  --imperial: #572947;
  --imperial-light: #7a3963;
  --shadow: #34192b;
  --marble: #fff;
  --stone: #e6e6e6;
  --paper: #f7f5f6;
  --ink: #23171e;
  --muted: #61515a;
  --line: #d7cdd1;
  --display: Cinzel, Georgia, serif;
  --body: Inter, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.65 var(--body); }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }

.frame { width: min(100% - 104px, 1200px); margin-inline: auto; }
.skip { position: absolute; top: 0; left: 1rem; z-index: 3; padding: .7rem 1rem; background: white; transform: translateY(-110%); }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.site-header { position: relative; z-index: 1; color: white; background: #1d151c; border-bottom: 1px solid #ffffff2d; }
.header-content, .footer-content { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.header-content { min-height: 82px; }
.wordmark { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; white-space: nowrap; }
.mark { font: 400 2.65rem/1 var(--display); letter-spacing: -.095em; }
.wordmark-name { font: 500 .77rem/1 var(--display); letter-spacing: .16em; }
.site-header nav { display: flex; gap: clamp(1rem, 2.5vw, 2.6rem); align-items: center; }
.site-header nav a { color: #eee3e9; text-decoration: none; font-size: .82rem; }
.site-header nav a:hover, .footer-content a:hover { text-decoration: underline; text-underline-offset: 5px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1.1rem; min-height: 49px; padding: .75rem 1.15rem; border: 1px solid transparent; text-decoration: none; font-size: .84rem; font-weight: 700; white-space: nowrap; transition: background .18s ease, color .18s ease; }
.button-outline { color: white; border-color: #ffffff65; }
.button-outline:hover { background: white; color: var(--shadow); }
.button-light { color: var(--shadow); background: var(--marble); }
.button-light:hover { background: #e9dbe4; }
.text-link { font-size: .92rem; font-weight: 600; text-underline-offset: .25em; }

.hero { position: relative; display: flex; align-items: center; min-height: clamp(540px, 77svh, 820px); isolation: isolate; color: white; background: #21151f; }
.hero::before, .hero::after { position: absolute; inset: 0; z-index: -1; content: ""; }
.hero::before { background: url("assets/iv-offseason-hockey.jpg") 72% 54% / cover no-repeat; }
.hero::after { background: linear-gradient(90deg, #21151fe8, #21151f9e 35%, #21151f20 59%, transparent 75%), linear-gradient(0deg, #1b10154d, transparent 40%); }
.hero-content { padding-block: clamp(3.5rem, 7vw, 6.1rem); }
.eyebrow { display: flex; align-items: center; gap: .7rem; font-size: .71rem; font-weight: 700; letter-spacing: .17em; line-height: 1.4; }
.rule { display: inline-block; width: 25px; height: 1px; flex: 0 0 25px; background: currentColor; }
.hero .eyebrow { margin-bottom: 1.34rem; color: #e0bdcf; }
.hero h1 { font-size: clamp(3.35rem, 7.1vw, 7.1rem); line-height: 1; letter-spacing: -.065em; }
.hero-summary { max-width: 26rem; margin: 1.5rem 0 1.75rem; color: #f4e8ef; font-size: clamp(1rem, 1.6vw, 1.125rem); }

.audience { background: #251822; color: white; border-block: 1px solid #ffffff25; }
.audience-content { display: flex; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; min-height: 76px; padding-block: 1.1rem; }
.audience .eyebrow { color: #efcade; white-space: nowrap; }
.audience ul { display: flex; flex-wrap: wrap; gap: .35rem clamp(1.4rem, 4vw, 3.7rem); align-items: center; margin: 0; padding: 0; list-style: none; }
.audience li { font: 500 clamp(.97rem, 2vw, 1.33rem)/1.4 var(--display); white-space: nowrap; }

.section { padding-block: clamp(56px, 7vw, 108px); }
.section .eyebrow { color: var(--imperial-light); margin-bottom: .85rem; }
.section h2 { font-size: clamp(2.1rem, 4.2vw, 4.15rem); line-height: 1.07; letter-spacing: -.055em; }
.section-intro { display: grid; grid-template-columns: 1.65fr 1fr; align-items: end; gap: 2.5rem; margin-bottom: clamp(2.25rem, 5vw, 4rem); }
.section-intro > p, .testing p:not(.eyebrow), .apply p:not(.eyebrow) { max-width: 34rem; color: var(--muted); }
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.pillars article { padding: 1.65rem clamp(1rem, 2.4vw, 2.15rem) 1.9rem; }
.pillars article + article { border-left: 1px solid var(--line); }
.numeral { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 1.35rem; border: 1px solid var(--imperial); border-radius: 50%; color: var(--imperial); font: 500 1rem/1 var(--display); }
.pillars h3, .options h3 { font-size: clamp(1.17rem, 2vw, 1.55rem); line-height: 1.24; margin-bottom: .65rem; }
.pillars p { color: var(--muted); }
.training-feature { display: grid; grid-template-columns: 1.4fr 1fr; margin-block: 0 clamp(3.2rem, 6vw, 5.5rem); background: #eee7eb; }
.training-feature img { display: block; width: 100%; height: 100%; min-height: 290px; max-height: 490px; object-fit: cover; object-position: 50% center; }
.training-feature figcaption { align-self: center; padding: clamp(1.25rem, 4.5vw, 4rem); }
.training-feature h2 { font-size: clamp(1.7rem, 3.35vw, 3.45rem); line-height: 1.07; letter-spacing: -.04em; }
.training-feature p { margin-top: .95rem; color: var(--muted); }

.residency { color: white; background: var(--shadow); }
.residency .eyebrow, .apply .eyebrow { color: #e8bed6; }
.residency-summary, .residency .options article > p, .availability { color: #e8dbe4; }
.residency-summary p:first-child { color: var(--marble); font-size: 1.1rem; font-weight: 600; }
.residency-summary p + p { margin-top: .62rem; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; list-style: none; padding: 0; margin: 0 0 2.25rem; border-block: 1px solid #ffffff48; }
.facts li { display: flex; align-items: center; gap: clamp(.65rem, 2vw, 1.6rem); padding: 1.4rem clamp(.9rem, 2.7vw, 2.1rem); }
.facts li + li { border-left: 1px solid #ffffff48; }
.facts strong { font: 400 clamp(2rem, 4vw, 3.5rem)/1 var(--display); white-space: nowrap; }
.facts span { color: #f0daea; font-weight: 600; font-size: .68rem; letter-spacing: .1em; line-height: 1.5; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 4vw, 3.6rem); }
.options article { padding-block: .65rem; }
.residency-next { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .6rem 1rem; margin-top: 1.1rem; }
.availability { font-size: .92rem; }

.testing, .apply-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(2rem, 6vw, 6.1rem); align-items: center; }
.testing h2, .apply h2 { margin-bottom: 1.1rem; }
.checkpoints { list-style: none; margin: 1.65rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.checkpoints li { display: grid; grid-template-columns: 5.5rem 1fr; align-items: center; gap: .85rem; border-bottom: 1px solid var(--line); padding: .77rem 0; }
.checkpoints span { color: var(--imperial-light); font-size: .78rem; font-weight: 700; letter-spacing: .11em; }
.checkpoints strong { font-size: 1rem; font-weight: 600; }
.report { padding: clamp(1rem, 3.1vw, 2.3rem); background: white; border: 1px solid var(--line); box-shadow: 0 12px 36px #34192b12; }
.report-header { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.2rem; }
.report-header .mark { color: var(--imperial); }
.report-header .eyebrow { margin: 0 0 .32rem; letter-spacing: .1em; font-size: .72rem; }
.report h3 { font-size: clamp(1.2rem, 2.35vw, 1.8rem); line-height: 1.15; }
.report table { width: 100%; border-collapse: collapse; font-size: .89rem; font-variant-numeric: tabular-nums; line-height: 1.4; }
.report td, .report th { padding: .68rem .35rem; text-align: left; border-bottom: 1px solid var(--line); }
.report thead { background: #f5edf2; color: var(--shadow); }
.report th { font-weight: 600; }
.report td { white-space: nowrap; }
.report > p { margin-top: 1rem; font-size: .91rem; }
.report > p strong { display: block; color: var(--ink); }

.coach-wrap { background: #eae3e7; }
.coach-grid { display: grid; grid-template-columns: minmax(250px, .73fr) 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; padding-block: clamp(2.3rem, 6vw, 5.1rem); }
.coach-grid img { display: block; width: 100%; max-height: 420px; height: auto; aspect-ratio: 1.12; object-fit: cover; object-position: center 32%; }
.coach-copy .eyebrow { color: var(--imperial-light); margin-bottom: .8rem; }
.coach-copy h2 { font-size: clamp(2.2rem, 4.7vw, 4.35rem); line-height: 1.07; letter-spacing: -.05em; }
.coach-copy .coach-role { margin: .45rem 0 1rem; color: var(--imperial); font-weight: 700; }
.coach-bio { max-width: 36rem; color: var(--muted); }
.coach-bio p + p { margin-top: .8rem; }
.coach-quote { color: var(--imperial); font-weight: 600; }
.coach-lineage { margin-top: .85rem; max-width: 36rem; color: var(--muted); }
.lab-standards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-bottom: clamp(2.3rem, 6vw, 5.1rem); }
.lab-standards article { border-top: 1px solid var(--line); padding: 1.15rem 1.3rem 0 0; }
.lab-standards article + article { padding-left: 1.3rem; border-left: 1px solid var(--line); }
.lab-standards h3 { font-size: clamp(1.1rem, 2vw, 1.55rem); margin-bottom: .45rem; line-height: 1.25; }
.lab-standards p { color: var(--muted); }

.apply { color: white; background: var(--imperial); }
.apply p:not(.eyebrow) { color: #f1e1eb; }
.apply .text-link { display: inline-block; margin-top: 1.2rem; }
.apply form, .application-received { padding: clamp(1.2rem, 3vw, 2.05rem); border: 1px solid #ffffff4d; background: #34192b66; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-bottom: .8rem; }
.apply label { display: grid; gap: .35rem; font-size: .88rem; font-weight: 600; }
.apply input, .apply select { display: block; width: 100%; min-width: 0; min-height: 46px; border: 1px solid #ffffff85; border-radius: 0; padding: .66rem .63rem; background: #34192b; color: white; font: 400 1rem/1.25 var(--body); color-scheme: dark; }
.apply select { appearance: none; padding-right: 2rem; background: linear-gradient(45deg, transparent 50%, white 50%) right 17px center / 5px 5px no-repeat, linear-gradient(135deg, white 50%, transparent 50%) right 12px center / 5px 5px no-repeat #34192b; }
.apply input::placeholder { color: #dcc5d3; }
.apply .form-note { font-size: .84rem; margin-block: .85rem; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.apply .form-error { margin-bottom: .85rem; color: white; font-weight: 600; }
.apply button:disabled { cursor: wait; opacity: .75; }
.application-received h3 { font-size: clamp(1.4rem, 2.4vw, 2.1rem); }
.application-received p { margin: .5rem 0 1.25rem; }
.site-footer { background: #21151d; color: white; }
.footer-content { min-height: 130px; padding-block: 1.5rem; }
.footer-content p { color: #e9dfe7; font-size: .82rem; line-height: 1.65; }
.footer-content p a { color: white; text-underline-offset: 4px; }

@media (max-width: 940px) {
  .frame { width: calc(100% - 64px); }
  .site-header nav { gap: 1rem; }
  .hero::before { background-position: 72% center; }
  .section-intro { gap: 1.45rem; }
  .facts li { gap: .75rem; }
}

@media (max-width: 720px) {
  .frame { width: calc(100% - 40px); }
  .header-content { min-height: 68px; flex-wrap: wrap; padding-block: .52rem; gap: .35rem .8rem; }
  .wordmark { gap: .55rem; }
  .mark { font-size: 2.25rem; }
  .wordmark-name { font-size: .68rem; letter-spacing: .1em; }
  .site-header nav { order: 3; justify-content: space-between; width: 100%; border-top: 1px solid #ffffff27; padding-block: .56rem .16rem; }
  .site-header nav a { font-size: .73rem; }
  .header-cta { min-height: 39px; font-size: .73rem; padding: .45rem .58rem; gap: .42rem; }
  .hero { align-items: end; min-height: 550px; }
  .hero::before { inset: 0 0 auto; height: 76%; background-position: 81% 38%; }
  .hero::after { background: linear-gradient(0deg, #21151f 18%, #21151fdd 41%, #21151f38 66%, transparent 83%); }
  .hero-content { padding-block: 15.5rem 2.65rem; }
  .hero h1 { font-size: clamp(2.55rem, 9vw, 4.9rem); }
  .hero-summary { margin: 1.1rem 0 1.3rem; }
  .audience-content { display: grid; gap: .65rem; }
  .section-intro, .testing, .apply-grid, .coach-grid, .training-feature { grid-template-columns: 1fr; }
  .training-feature img { min-height: 0; aspect-ratio: 3 / 2; }
  .coach-grid { gap: 1.5rem; }
  .coach-grid img { max-height: 350px; }
  .lab-standards { grid-template-columns: 1fr; gap: 1rem; }
  .lab-standards article, .lab-standards article + article { padding-inline: 0; border-left: 0; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillars article:nth-child(3) { border-left: 0; }
  .pillars article:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer-content { align-items: flex-start; flex-wrap: wrap; justify-content: flex-start; }
  .footer-content .wordmark { width: 100%; }
}

@media (max-width: 450px) {
  .options { grid-template-columns: 1fr; }
  .options article + article { border-top: 1px solid #ffffff40; padding-top: 1.3rem; }
  .report table { font-size: .77rem; }
  .report th, .report td { padding-inline: .25rem; }
  .facts li { align-items: flex-start; flex-direction: column; gap: .3rem; padding: .9rem .55rem; }
  .facts span { font-size: .59rem; letter-spacing: .04em; }
  .fields { grid-template-columns: 1fr; }
  .hero { min-height: 565px; }
  .hero::before { background-position: 82% 44%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
