:root {
  color-scheme: light;
  --ink: #182a30;
  --muted: #52656a;
  --paper: #f2f5f2;
  --white: #fff;
  --night: #121f25;
  --mint: #bcf0d7;
  --accent: #17685a;
  --line: #d8e2de;
  --soft: #e7efeb;
  font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); min-width: 280px; }
button, textarea, select { font: inherit; }
a { color: var(--accent); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid #267f70; outline-offset: 4px;
}
[hidden] { display: none !important; }
.shell { width: min(1152px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 2; top: .5rem; left: .5rem; transform: translateY(-140%); background: white; padding: .8rem; }
.skip-link:focus { transform: none; }
.masthead { border-bottom: 1px solid var(--line); background: #f8faf7; }
.masthead-inner { min-height: 74px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { font-size: 1.15rem; font-weight: 730; letter-spacing: -.035em; color: var(--ink); display: inline-flex; gap: .7rem; align-items: center; text-decoration: none; }
.brand-accent { color: #2d6556; }
.brand-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--night); display: grid; place-items: center; }
.brand-icon i { width: 14px; height: 14px; border-left: 2px solid var(--mint); border-top: 2px solid var(--mint); transform: translateY(3px) rotate(45deg); }
.masthead-label, .eyebrow, .scale-key {
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: .875rem; font-weight: 650; letter-spacing: .085em;
}
.masthead-label { font-size: .8rem; color: var(--muted); text-align: right; }
main { min-height: min(660px, 76vh); }
p { line-height: 1.6; }
h1, h2 { margin: 0; letter-spacing: -.045em; line-height: 1.06; }
[tabindex="-1"]:focus { outline: none; }
.eyebrow { margin: 0 0 .85rem; color: var(--accent); }
.hero {
  margin-top: 2.5rem; border-radius: 22px; overflow: hidden; position: relative; min-height: 392px;
  color: #f3f8f4; background: radial-gradient(ellipse at 88% 32%, #214c48 0, transparent 57%), var(--night);
  display: grid; grid-template-columns: 1.08fr .92fr;
}
.hero-content { position: relative; z-index: 1; padding: 3.5rem 0 3.5rem 3.6rem; }
.hero .eyebrow { color: #b6cfbc; }
.hero h1 { font-size: clamp(3.2rem, 6.4vw, 5.6rem); font-weight: 690; line-height: .96; letter-spacing: -.075em; }
.hero h1 span { color: #a4dcbf; }
.hero-lede { max-width: 34ch; margin: 1.45rem 0 1.65rem; color: #d4e1db; font-size: 1.1rem; }
.hero .primary { background: var(--mint); color: #102a22; border-color: var(--mint); }
.hero .primary:hover { background: #d1f8e3; }
.hero .primary:focus-visible { outline-color: var(--mint); }
.hero-art { display: grid; place-items: center; position: relative; isolation: isolate; overflow: hidden; margin-right: 2rem; }
.hero-art::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(#98e0bb15 1px, transparent 1px), linear-gradient(90deg, #98e0bb15 1px, transparent 1px);
  background-size: 32px 32px; mask-image: radial-gradient(ellipse 82% 72% at center, black 15%, transparent 72%); z-index: -1;
}
.azimuth {
  aspect-ratio: 1; width: min(79%, 338px); position: relative; border: 1px solid #a2d8be38; border-radius: 50%;
  display: grid; place-items: center;
}
.azimuth::before, .azimuth::after {
  content: ""; position: absolute; border: 1px solid #a2d8be45; border-radius: 50%; inset: 14%;
}
.azimuth::after { inset: 31%; border-color: #a2d8be4a; }
.azimuth i { width: 79%; aspect-ratio: 1; position: absolute; border-radius: 50%; transform: rotate(-34deg); border: 1px solid transparent; border-top-color: #a8e8c9; box-shadow: 0 -15px 35px -28px #d0f6df; }
.azimuth b { width: 15px; aspect-ratio: 1; position: relative; transform: rotate(45deg); border-top: 2px solid #d1f6dc; border-left: 2px solid #d1f6dc; margin-top: 8px; }
.azimuth em { position: absolute; left: 12%; top: 75%; width: 8px; aspect-ratio: 1; border: 1px solid #abdfc3; border-radius: 999px; box-shadow: 0 0 10px #b8f3d6; }
.bearing { position: absolute; bottom: 2.8rem; color: #b6cfbc; font: .75rem "Cascadia Mono", Consolas, monospace; letter-spacing: .12em; }
.centreline { height: 96%; width: 1px; background: linear-gradient(transparent, #a2d8be55, transparent); position: absolute; top: 2%; }
.button { border-radius: 8px; display: inline-flex; justify-content: center; align-items: center; border: 1px solid; min-height: 46px; padding: .63rem 1.1rem; font-weight: 680; cursor: pointer; line-height: 1.25; }
.primary { background: #13594e; color: white; border-color: #13594e; }
.primary:hover { background: #0e463e; }
.secondary { background: var(--white); color: #214b42; border-color: #b9cec3; }
.secondary:hover { background: #edf6f0; }
.button:disabled { opacity: .53; cursor: default; }
.overview { margin-top: 1.25rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.overview article { border: 1px solid var(--line); padding: 1.45rem 1.55rem; border-radius: 14px; background: #fafcf9; }
.overview h2 { font-size: 1.45rem; }
.overview article p:last-child { color: var(--muted); margin-bottom: 0; margin-top: .65rem; }
.privacy { margin-top: 1.2rem; color: var(--muted); font-size: .875rem; }
.site-footer { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 2rem; padding: 1.2rem 0 1.55rem; color: var(--muted); font-size: .875rem; }

.stages { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.4rem; list-style: none; padding: 0; margin: 1.6rem 0 0; color: var(--muted); }
.stages li { display: flex; gap: .5rem; align-items: center; font-size: .875rem; }
.stage-index { border-radius: 50%; display: grid; place-items: center; width: 1.55rem; height: 1.55rem; background: var(--soft); color: var(--muted); font-weight: 700; }
.stages [aria-current="step"] { color: var(--ink); font-weight: 700; }
.stages [aria-current="step"] .stage-index { background: #13594e; color: white; }
.section-intro { margin: 2.45rem 0 1.3rem; }
.section-intro h1 { font-size: clamp(2.2rem, 4.75vw, 4rem); font-weight: 685; }
.section-intro p:last-child { color: var(--muted); margin: .65rem 0 0; max-width: 65ch; }
.work-grid { display: grid; grid-template-columns: minmax(0, 1fr) 278px; gap: 1.35rem; align-items: start; }
.panel { border-radius: 14px; background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.scale-key { display: flex; justify-content: space-between; gap: 1rem; background: #e9f1ec; padding: .9rem 1.55rem; font-size: .8rem; letter-spacing: .015em; color: #315a4e; }
.rating-row { margin: 0 1.55rem; border: 0; border-bottom: 1px solid var(--line); padding: 0 0 1rem; min-width: 0; }
.rating-row legend { padding: 0; margin: 1.05rem 0 .65rem; display: block; float: left; width: 100%; line-height: 1.4; font-weight: 620; }
.item-number { color: var(--accent); font: .875rem "Cascadia Mono", Consolas, monospace; margin-right: .2rem; }
.rating-scale { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; clear: both; max-width: 580px; }
.rating-scale label { cursor: pointer; position: relative; }
.rating-scale input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.rating-scale span { display: grid; place-items: center; min-height: 41px; border-radius: 6px; border: 1px solid #cbdad2; color: #284c42; font-size: .95rem; background: #fbfdfb; font-weight: 650; }
.rating-scale label:hover span { background: #e9f5ee; }
.rating-scale input:checked + span { background: #14594e; border-color: #14594e; color: white; }
.rating-scale input:focus-visible + span { outline: 2px solid #267f70; outline-offset: 2px; }
.actions { display: flex; justify-content: space-between; align-items: center; gap: .85rem; flex-wrap: wrap; padding: 1.3rem 1.55rem; }
.guide { background: #e7efeb; border: 1px solid #d1dfd7; border-radius: 14px; padding: 1.35rem; }
.guide strong { display: block; font-size: 1.15rem; }
.guide h2 { font-size: 1.4rem; }
.guide p:last-child { margin-bottom: 0; }
.guide ul { padding-left: 1.15rem; line-height: 1.55; }
.guide li + li { margin-top: .4rem; }
progress { display: block; appearance: none; width: 100%; height: 8px; margin-top: .9rem; border: 0; background: #cadbd2; border-radius: 99px; overflow: hidden; }
progress::-webkit-progress-bar { background: #cadbd2; }
progress::-webkit-progress-value { background: #207063; border-radius: 99px; }
progress::-moz-progress-bar { background: #207063; }
.subtle { color: var(--muted); font-size: .875rem; font-weight: 400; }
.rank-group { border: 0; min-width: 0; margin: 1.1rem 1.55rem 0; padding: 0 0 1.1rem; border-bottom: 1px solid var(--line); }
.rank-group legend { font-weight: 700; padding: 0; }
.rank-group ul { padding-left: 1.15rem; line-height: 1.5; color: var(--muted); }
.rank-group li + li { margin-top: .35rem; }
.rank-group label, .guide label, .notes-label { display: block; font-weight: 650; }
.rank-group label + label { margin-top: .8rem; }
select, textarea { margin-top: .4rem; width: 100%; max-width: 100%; border: 1px solid #b7cbc1; border-radius: 7px; padding: .7rem; background: #fbfdfb; color: var(--ink); }
select { appearance: none; padding-right: 2rem; background: linear-gradient(45deg, transparent 49%, #38645a 50%) calc(100% - 17px) 50% / 5px 5px no-repeat, linear-gradient(135deg, #38645a 49%, transparent 50%) calc(100% - 12px) 50% / 5px 5px no-repeat, #fbfdfb; }
textarea { resize: vertical; line-height: 1.55; }
.form-error { margin: 1rem 1.55rem 0; color: #a02b26; }
.round-list { list-style: none; counter-reset: rounds; padding: 0; margin: 0 1.55rem; }
.round-list li { counter-increment: rounds; display: flex; align-items: center; min-height: 87px; padding: 1rem 0; border-bottom: 1px solid var(--line); gap: .8rem; }
.round-list li::before { content: counter(rounds); background: var(--soft); color: var(--accent); border-radius: 50%; flex: 0 0 2.15rem; height: 2.15rem; display: grid; place-items: center; font-weight: 700; }
.round-list h2, .debrief-round h2 { font-size: 1.3rem; }
.round-list p { margin: .35rem 0 0; color: var(--muted); }
.prompt-panel > section, .prompt-panel > label, .prompt-panel > button, .prompt-panel > textarea { margin: 1.25rem 1.55rem 0; }
.prompt-panel > textarea { width: calc(100% - 3.1rem); margin-top: .45rem; }
.prompt-panel section p { margin: 0 0 .65rem; }
.prompt-panel .prompt { font-size: 1.18rem; font-weight: 630; line-height: 1.45; }
.prompt-panel .past { border-bottom: 1px solid var(--line); padding-bottom: .85rem; }
.changed { border-left: 3px solid #348573; background: #eaf3ed; padding: 1rem; border-radius: 0 8px 8px 0; }
.changed p:last-child { margin-bottom: 0; }
.debrief-round { padding: 1.15rem 0; border-bottom: 1px solid var(--line); margin: 0 1.55rem; }
.debrief-round p:last-child { margin-bottom: 0; }
.saved-note { white-space: pre-wrap; overflow-wrap: anywhere; padding: .85rem 1rem; border-radius: 8px; background: var(--soft); }
@media (max-width: 850px) {
  .work-grid { grid-template-columns: minmax(0, 1fr) 220px; gap: 1rem; }
  .hero-content { padding-left: 2.4rem; }
  .overview article { padding: 1.15rem; }
}
@media (max-width: 650px) {
  .shell { width: calc(100% - 32px); }
  .masthead-inner { min-height: 60px; }
  .masthead-label { font-size: .69rem; max-width: 12ch; }
  .hero { margin-top: 1.25rem; min-height: 0; display: block; }
  .hero-content { padding: 2.25rem 1.45rem; }
  .hero-art { position: absolute; inset: 0 -110px 0 auto; width: 310px; margin: 0; opacity: .33; }
  .hero-lede { margin: 1.1rem 0 1.25rem; }
  .overview, .work-grid { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .work-grid .guide { order: -1; }
  .work-grid .guide h2, .work-grid .guide ul, .work-grid .guide p:not(:first-child) { display: none; }
  .work-grid .guide { padding: .85rem 1rem; }
  .work-grid .guide .eyebrow { margin-bottom: .45rem; }
  .section-intro { margin: 1.65rem 0 1rem; }
  .stages { gap: .5rem .85rem; }
  .rating-row, .rank-group, .round-list, .debrief-round { margin-inline: .9rem; }
  .actions, .scale-key { padding-inline: .9rem; }
  .rating-scale { gap: 4px; }
  .rating-scale span { min-height: 42px; }
  .prompt-panel > section, .prompt-panel > label, .prompt-panel > button, .prompt-panel > textarea { margin-inline: .9rem; }
  .prompt-panel > textarea { width: calc(100% - 1.8rem); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }

