@font-face { font-family: Inter; font-weight: 400 700; font-display: swap; src: url(fonts/inter-latin.woff2) format('woff2') }
:root {
  color-scheme: light;
  --mist: #d3e2de; --sky: #bcd3cf; --stone: #173f45; --deep: #0e2c31; --water: #8fb3b1;
  --ink: #0e2c31; --muted: #335359; --light: #ffb341; --green: #7be0a6; --paper: #f1f6f4;
}
* { box-sizing: border-box }
body { margin: 0; background: var(--mist); color: var(--ink); font: 400 1.0625rem/1.6 Inter, system-ui, sans-serif }
.wrap { width: min(72rem, 100% - 2.5rem); margin-inline: auto }
h1, h2, h3 { line-height: 1.1; text-wrap: balance; margin: 0 }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); letter-spacing: -.035em; font-weight: 700 }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.025em; max-width: 24ch }
h3 { font-size: 1.1rem }
a { color: inherit; text-underline-offset: .2em }
:focus-visible { outline: 3px solid #b4530a; outline-offset: 3px; border-radius: 3px }
.skip { position: absolute; left: -99rem }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .6rem 1rem; z-index: 2 }

header { display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; align-items: center; justify-content: space-between; padding: 1.1rem 0 }
header p { margin: 0 }
.name { display: flex; align-items: center; gap: .6rem; font-weight: 700 }
.sim { color: var(--muted); font-size: .92rem }

.hero { position: relative; background: linear-gradient(var(--mist), var(--sky)); overflow: hidden }
.call { position: relative; z-index: 1; width: min(31rem, 100%); padding: clamp(1.5rem, 4vw, 3.5rem) 0 3rem }
.lead { font-size: 1.15rem; margin: 1.1rem 0 1.6rem }
.play { background: var(--paper); border-radius: 10px; padding: 1.25rem 1.35rem }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0 }
legend { padding: 0; font-weight: 600; margin-bottom: .75rem }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; min-height: 5.6rem }
.roles label { display: block; padding: .7rem .75rem; border: 2px solid #9db9b5; border-radius: 7px; cursor: pointer; background: #fff }
.roles label:hover { border-color: var(--stone) }
.roles label:has(:checked) { border-color: var(--stone); background: var(--stone); color: #fff }
.roles label:has(:focus-visible) { outline: 3px solid #b4530a; outline-offset: 2px }
.roles input { position: absolute; opacity: 0 }
.roles b, .roles small { display: block }
.roles small { font-size: .82rem; line-height: 1.3; margin-top: .15rem }
.outcome { min-height: 3.2em; margin: 1rem 0; font-weight: 600 }
.outcome[data-on=true] { color: #0b6138 }
.outcome[data-on=false] { color: #a13a0a }
.play p:last-child { margin-bottom: 0 }
.fine { font-size: .88rem; line-height: 1.5; color: var(--muted) }
.fine[data-failed] { color: #a13a0a; font-weight: 600 }
.button { display: inline-block; background: var(--stone); color: #fff; font-weight: 600; text-decoration: none; padding: .7rem 1.15rem; border-radius: 7px }
.button:hover { background: #0a5b62 }
.button[aria-hidden] { visibility: hidden }
h1 span { display: block }

.keep { position: absolute; right: max(0px, calc(50% - 38rem)); bottom: 0; width: min(44rem, 100% - 36rem); margin: 0 }
.keep svg { display: block; overflow: visible; width: 100%; height: auto }
.keep figcaption { position: absolute; inset: auto 0 1.1rem; text-align: center; font-size: .92rem; font-weight: 600 }
.hill { fill: #8fb0ab }
.stone { fill: var(--stone) }
.water { fill: var(--water) }
.mirror { fill: var(--stone); opacity: .2 }
.flag { fill: #d2541b; stroke: var(--stone); stroke-width: 3 }
.ripples { stroke: #d9e9e5; stroke-width: 2; fill: none; opacity: .7 }
.gate { fill: var(--deep); transition: fill .5s }
.bars { stroke: #4f7a7d; stroke-width: 3; fill: none; transition: transform .7s cubic-bezier(.3, 0, .2, 1), opacity .5s }
.path { fill: var(--light); opacity: 0; transition: opacity .7s .2s }
.keep[data-open=true] .gate { fill: var(--light) }
.keep[data-open=true] .bars { transform: translateY(-60px); opacity: 0 }
.keep[data-open=true] .path { opacity: .45 }
#windows .dark { fill: var(--deep); stroke: #4f7a7d; stroke-width: 1 }
#windows .lit { fill: var(--light) }
#windows .healer.lit { fill: var(--green) }
#windows .you { stroke: #fff; stroke-width: 3; animation: light .6s ease-out }
@keyframes light { from { fill: var(--deep) } 50% { fill: #fff } }

.why { padding: clamp(3.5rem, 8vw, 6rem) 0 }
.why > p { max-width: 62ch; margin: 0 }
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 3rem; margin: 2rem 0 }
.cases p { margin: .5rem 0 0; max-width: 46ch }
.builders { background: var(--deep); color: #dcebe8; padding: clamp(3.5rem, 8vw, 5.5rem) 0 }
.builders p, .builders li { max-width: 66ch }
.builders h3 { margin-top: 2.2rem }
.builders ul { padding-left: 1.2rem }
.builders li { margin: .4rem 0 }
pre { margin: 1.5rem 0; padding: 1.1rem 1.3rem; background: #071d21; border-radius: 8px; overflow-x: auto; font-size: .9rem; line-height: 1.5 }
.links { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 2rem }
.builders .button { background: var(--light); color: var(--deep) }
.builders .button:hover { background: #ffc871 }
.builders :focus-visible { outline-color: var(--light) }
footer { padding: 1.8rem 0 2.2rem; font-size: .92rem; color: var(--muted) }
footer p { margin: 0 }

@media (max-width: 60rem) {
  .call { width: 100%; padding-bottom: 1.5rem }
  .keep { position: static; width: 100%; max-width: 40rem; margin-inline: auto; position: relative }
  .cases { grid-template-columns: 1fr }
}
@media (max-width: 26rem) { .roles small { display: none } .roles { min-height: 0 } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important } }
