:root {
  --ink: #12373b;
  --cream: #f6f0df;
  --paper: #fbf7eb;
  --gold: #f4be54;
  --rust: #a34c32;
  --hero-min-height: 650px;
  --scene-ratio: 1.776833;
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  color: var(--cream);
  background: #1f637b;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  color: inherit;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

a { text-decoration: none; }
button { border: 0; }

.experience {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: var(--hero-min-height);
  overflow: hidden;
  isolation: isolate;
}

/* Cover math preserves the artwork's ratio. Hotspots share this container. */
.world {
  --drift-x: 0px;
  --drift-y: 0px;
  --focus-x: 50%;
  --focus-y: 50%;
  --world-scale: 1.012;
  position: absolute;
  z-index: -3;
  top: 50%;
  left: 50%;
  width: max(100%, calc(max(100svh, var(--hero-min-height)) * var(--scene-ratio)));
  height: max(max(100svh, var(--hero-min-height)), calc(100vw / var(--scene-ratio)));
  overflow: hidden;
  transform: translate(calc(-50% + var(--drift-x)), calc(-50% + var(--drift-y))) scale(var(--world-scale));
  transform-origin: var(--focus-x) var(--focus-y);
  transition: transform 1.4s var(--ease-soft);
  will-change: transform;
}

.experience.is-location-focused .world {
  /* This is the actual scene camera. It scales the complete visible world,
     including the WebGL canvas, so focusing never depends on GPU support. */
  --world-scale: var(--focus-scale, 1.58);
}

.scene-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease-soft), filter 1.1s ease;
}

.scene-layer.is-visible { opacity: 1; }

.scene-layer img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
}

.mountain-canvas {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms var(--ease-soft);
}

/* The original pictures stay mounted so a lost WebGL context can fall back. */
.experience.has-webgl .mountain-canvas { opacity: 1; }
.experience.has-webgl .scene-layer { opacity: 0 !important; }

.experience[data-weather="rainy"] .scene-layer.is-visible { filter: saturate(0.92) brightness(0.92); }
.experience[data-weather="snowy"] .scene-layer.is-visible { filter: saturate(0.88) brightness(1.02); }

.scene-vignette {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 27, 29, 0.23), transparent 23%, transparent 70%, rgba(6, 24, 25, 0.3)),
    linear-gradient(90deg, rgba(5, 25, 26, 0.23), transparent 22%, transparent 78%, rgba(5, 25, 26, 0.14));
}

/* A light CSS texture complements each weather image. */
.atmosphere {
  position: absolute;
  z-index: 3;
  inset: -10%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}

.experience[data-weather="rainy"] .atmosphere {
  opacity: 0.2;
  background-image: repeating-linear-gradient(110deg, transparent 0 22px, rgba(225, 244, 255, 0.9) 23px, transparent 24px 42px);
  background-size: 160px 160px;
  animation: rain-drift 1.2s linear infinite;
}

.experience[data-weather="snowy"] .atmosphere {
  opacity: 0.42;
  background-image:
    radial-gradient(circle, white 0 1.2px, transparent 1.8px),
    radial-gradient(circle, white 0 1.6px, transparent 2px);
  background-position: 0 0, 48px 67px;
  background-size: 88px 88px, 127px 127px;
  animation: snow-drift 8s linear infinite;
}

@keyframes rain-drift { to { transform: translate(-38px, 90px); } }
@keyframes snow-drift { to { transform: translate(42px, 100px); } }

.hotspot-layer {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
}

.hotspot {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--hit-w, 44px);
  height: var(--hit-h, 44px);
  padding: 0;
  border-radius: 8px;
  outline: none;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

/* Sunny positions for the 1672 × 941 horizontal scenes. */
.hotspot--northstar { --x: 14.3%; --y: 23%; --hit-w: 15%; --hit-h: 20%; }
.hotspot--base { --x: 17%; --y: 85%; --hit-w: 30%; --hit-h: 25%; }
.hotspot--trailmap { --x: 71%; --y: 47%; --hit-w: 9%; --hit-h: 18%; }
.hotspot--mailbox { --x: 75%; --y: 86%; --hit-w: 5%; --hit-h: 11%; }
.hotspot--gym { --x: 53%; --y: 75%; --hit-w: 11.5%; --hit-h: 14.5%; }
.hotspot--summit { --x: 58%; --y: 9%; --hit-w: 14%; --hit-h: 18%; }
.hotspot--refuge { --x: 61%; --y: 39%; --hit-w: 12.5%; --hit-h: 14.5%; }
.hotspot--shop { --x: 85%; --y: 71%; --hit-w: 14.5%; --hit-h: 19%; }

/* The compositions shift slightly between weather states. */
.experience[data-weather="rainy"] .hotspot--northstar { --x: 25%; --y: 8.5%; }
.experience[data-weather="rainy"] .hotspot--base { --x: 14.5%; --y: 85%; --hit-w: 29%; --hit-h: 24%; }
.experience[data-weather="rainy"] .hotspot--trailmap { --x: 71%; --y: 49%; }
.experience[data-weather="rainy"] .hotspot--mailbox { --x: 75%; --y: 86%; }
.experience[data-weather="rainy"] .hotspot--gym { --x: 52%; --y: 75%; }
.experience[data-weather="rainy"] .hotspot--summit { --x: 57%; --y: 8%; }
.experience[data-weather="rainy"] .hotspot--refuge { --x: 61%; --y: 38%; }
.experience[data-weather="rainy"] .hotspot--shop { --x: 85%; --y: 71%; }

.experience[data-weather="snowy"] .hotspot--northstar { --x: 14.3%; --y: 24%; }
.experience[data-weather="snowy"] .hotspot--base { --x: 15.5%; --y: 87%; --hit-w: 29%; --hit-h: 25%; }
.experience[data-weather="snowy"] .hotspot--trailmap { --x: 75.5%; --y: 45%; }
.experience[data-weather="snowy"] .hotspot--mailbox { --x: 74%; --y: 86.5%; }
.experience[data-weather="snowy"] .hotspot--gym { --x: 53%; --y: 78%; }
.experience[data-weather="snowy"] .hotspot--summit { --x: 58%; --y: 7%; }
.experience[data-weather="snowy"] .hotspot--refuge { --x: 62%; --y: 39%; }
.experience[data-weather="snowy"] .hotspot--shop { --x: 85%; --y: 72%; }

.hover-tooltip {
  --tooltip-x: -200px;
  --tooltip-y: -200px;
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  max-width: min(260px, calc(100vw - 24px));
  padding: 9px 12px;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 4px;
  background: rgba(249, 245, 233, 0.9);
  box-shadow: 0 10px 30px rgba(5, 27, 28, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(var(--tooltip-x), var(--tooltip-y), 0) translateY(5px);
  transition: opacity 150ms ease, transform 200ms var(--ease-soft);
  backdrop-filter: blur(12px);
}

.hover-tooltip.is-visible {
  opacity: 1;
  transform: translate3d(var(--tooltip-x), var(--tooltip-y), 0) translateY(0);
}

.hover-tooltip span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  font-style: italic;
  line-height: 1.25;
}

.hotspot:focus-visible,
.panel a:focus-visible,
.panel button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* One floating dialog is reused by all eight landmarks. */
.panel {
  --panel-rest-x: 0px;
  --panel-rest-y: -50%;
  --panel-launch-x: 28px;
  --panel-launch-y: 2%;
  --panel-launch-scale: 0.985;
  position: fixed;
  inset: 50% clamp(22px, 3.5vw, 54px) auto auto;
  width: min(530px, calc(100vw - 44px));
  max-width: none;
  max-height: min(82svh, 820px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 5px;
  outline: 0;
  background: rgba(248, 243, 230, 0.91);
  box-shadow: 0 30px 100px rgba(4, 24, 25, 0.42);
  opacity: 0;
  transform: translate(calc(var(--panel-rest-x) + var(--panel-launch-x)), calc(var(--panel-rest-y) + var(--panel-launch-y))) scale(var(--panel-launch-scale));
  transition: opacity 360ms ease, transform 520ms var(--ease-soft), display 360ms allow-discrete;
  backdrop-filter: blur(24px) saturate(1.1);
}

.panel.is-preparing { transition: none; }
.panel.panel--wide { width: min(556.5px, calc(100vw - 44px)); }
.panel.is-open {
  opacity: 1;
  transform: translate(var(--panel-rest-x), var(--panel-rest-y)) scale(1);
}
.panel.is-closing {
  opacity: 0;
  transform: translate(calc(var(--panel-rest-x) + 14px), calc(var(--panel-rest-y) + 8px)) scale(0.99);
}

/* Each location settles where there is visual space around its landmark. */
.panel.panel--bottom-left {
  --panel-rest-x: 0px;
  --panel-rest-y: 0px;
  inset: auto auto clamp(22px, 3.5vw, 54px) clamp(70px, 12vw, 180px);
}

.panel.panel--top-left {
  --panel-rest-x: 0px;
  --panel-rest-y: 0px;
  inset: clamp(22px, 3.5vw, 54px) auto auto clamp(70px, 12vw, 180px);
}

.panel.panel--center {
  --panel-rest-x: -50%;
  --panel-rest-y: -50%;
  inset: 50% auto auto 50%;
}

.panel.panel--center-left {
  --panel-rest-x: 0px;
  --panel-rest-y: -50%;
  inset: 50% auto auto clamp(22px, 8vw, 120px);
}

.panel::backdrop {
  background: rgba(4, 24, 25, 0.08);
  opacity: 0;
  transition: opacity 360ms ease, background 360ms ease, display 360ms allow-discrete;
  backdrop-filter: blur(0);
}

.panel.is-open::backdrop {
  background: rgba(4, 24, 25, 0.28);
  opacity: 1;
  backdrop-filter: blur(3px);
}

.panel-shell {
  max-height: min(82svh, 820px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(18, 55, 59, 0.3) transparent;
}

.panel-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(18, 55, 59, 0.12);
  background: rgba(248, 243, 230, 0.87);
  backdrop-filter: blur(20px);
}

.panel-header p {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.panel-header p[hidden] { display: none; }

.panel-close {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(18, 55, 59, 0.07);
  cursor: pointer;
  transition: background 180ms ease, transform 260ms var(--ease-soft);
}

.panel-close:hover { background: rgba(18, 55, 59, 0.14); transform: rotate(90deg); }

.panel-close span {
  position: absolute;
  top: 14px;
  left: 9px;
  width: 12px;
  height: 1px;
  background: var(--ink);
  transform: rotate(45deg);
}

.panel-close span + span { transform: rotate(-45deg); }
.panel-content { padding: 38px 38px 28px; }
.panel-intro { margin-bottom: 34px; }

.panel-intro.is-radar-copy-changing {
  animation: radar-copy-in var(--radar-copy-duration, 300ms) var(--ease-soft) both;
}

@keyframes radar-copy-in {
  from { opacity: 0; filter: blur(2px); transform: translateY(-4px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

.panel-kicker {
  margin: 0 0 14px;
  color: var(--rust);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.panel h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.65rem, 4.2vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.panel h1 em { color: var(--rust); font-weight: 400; }

.panel h1.panel-statement-title {
  font-size: clamp(2.12rem, 3.36vw, 3.2rem);
}

.panel h1.panel-statement-title--two-lines span,
.panel h1.panel-statement-title--two-lines em {
  display: block;
  white-space: nowrap;
}

.panel h1.panel-statement-title--gym {
  font-size: clamp(1.25rem, 5.2vw, 2.05rem);
}

.panel h1.panel-statement-title--shop {
  font-size: clamp(1rem, 4vw, 1.5rem);
}

.panel-lead {
  margin: 24px 0 0;
  color: #405e60;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.55;
}

.prose {
  padding-top: 25px;
  border-top: 1px solid rgba(18, 55, 59, 0.14);
  color: #324f52;
  font-size: 0.9rem;
  line-height: 1.75;
}

.prose p { margin: 0; }

.prose blockquote {
  margin: 27px 0 0;
  padding-left: 18px;
  color: var(--ink);
  border-left: 2px solid var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-style: italic;
}

.panel-footnote {
  margin-top: 32px;
  padding-top: 18px;
  color: #51686a;
  border-top: 1px solid rgba(18, 55, 59, 0.14);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.training-goals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.training-goals article,
.training-record-section {
  border-radius: 4px;
  background: rgba(18, 55, 59, 0.075);
}

.training-goals article { padding: 18px; }

.training-goals small {
  color: var(--rust);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.training-goals h2 {
  margin: 10px 0 6px;
  color: #12373b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.3;
}

.training-goals p {
  margin: 0;
  color: #324f52;
  font-size: 0.8rem;
  line-height: 1.5;
}

.training-records {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.training-record-section:first-child { grid-column: 1 / -1; }

.training-record-section { padding: 20px; }

.training-record-section > h2 {
  margin: 0 0 12px;
  color: #12373b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 500;
}

.training-metrics {
  display: grid;
  margin: 0;
}

.training-metrics div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-top: 1px solid rgba(18, 55, 59, 0.12);
}

.training-metrics dt {
  color: #324f52;
  font-size: 0.86rem;
  line-height: 1.4;
}

.training-metrics dt span {
  display: block;
  margin-top: 3px;
  color: #51686a;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
}

.training-metrics dd {
  margin: 0;
  color: var(--rust);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  font-weight: 700;
}

.interactive-radar { width: 100%; }

.radar-chart {
  width: min(100%, 480px);
  margin: -6px auto 0;
}

.radar-chart-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.radar-grid polygon,
.radar-grid line {
  fill: none;
  stroke: rgba(18, 55, 59, 0.14);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.radar-grid polygon:last-of-type { stroke: rgba(18, 55, 59, 0.28); }

.radar-shape {
  fill: rgba(177, 74, 45, 0.2);
  stroke: var(--rust);
  stroke-linejoin: round;
  stroke-width: 3;
  filter: drop-shadow(0 8px 10px rgba(18, 55, 59, 0.12));
  pointer-events: none;
  transition: fill 180ms ease;
  vector-effect: non-scaling-stroke;
}

.radar-area {
  cursor: default;
  outline: none;
}

.radar-hit {
  fill: transparent;
  pointer-events: none;
}

.radar-label-hit {
  cursor: pointer;
  fill: transparent;
}

.radar-point {
  cursor: pointer;
  fill: var(--paper);
  stroke: var(--rust);
  stroke-width: 3;
  transform-box: fill-box;
  transform-origin: center;
  transition: fill 180ms ease, transform 220ms var(--ease-soft);
  vector-effect: non-scaling-stroke;
}

.radar-label {
  cursor: pointer;
  fill: #314f52;
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  pointer-events: auto;
  text-anchor: middle;
  text-transform: uppercase;
  transition: fill 180ms ease;
}

.radar-label tspan {
  fill: #718486;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.radar-area:is(:hover, :focus-visible, .is-active) .radar-point {
  fill: var(--rust);
  transform: scale(1.75);
}

.radar-area:is(:hover, :focus-visible, .is-active) .radar-label,
.radar-area:is(:hover, :focus-visible, .is-active) .radar-label tspan { fill: var(--rust); }

.radar-area:focus-visible .radar-point {
  outline: none;
  stroke: var(--ink);
}

.project-list,
.news-list { border-top: 1px solid rgba(18, 55, 59, 0.16); }

.project-list article {
  display: grid;
  grid-template-columns: 1fr 38px;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(18, 55, 59, 0.16);
}

.project-list small,
.thought-list small,
.news-list small {
  color: var(--rust);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.project-list h2,
.thought-list h2 {
  margin: 6px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
}

.project-list p,
.thought-list p {
  margin: 0;
  color: #324f52;
  font-size: 0.86rem;
  line-height: 1.65;
}

.project-list article > a,
.project-actions a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(18, 55, 59, 0.22);
  border-radius: 50%;
  transition: color 180ms ease, background 180ms ease, transform 220ms ease;
}

.project-list article > a:hover,
.project-actions a:hover { color: white; background: var(--rust); transform: rotate(45deg); }

.project-actions { display: grid; gap: 7px; }
.project-actions img { width: 14px; height: 14px; }
.project-actions a:hover img { filter: brightness(0) invert(1); }

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}

.project-stack span {
  padding: 4px 6px;
  border: 1px solid rgba(18, 55, 59, 0.14);
  border-radius: 4px;
  color: #405e60;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.6rem;
}

.shop-section + .shop-section { margin-top: 38px; }

.shop-section-title {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 400;
}

.shop-section-copy {
  margin: -4px 0 18px;
  color: #324f52;
  font-size: 0.86rem;
  line-height: 1.65;
}

.work-list article {
  padding: 18px;
  border-radius: 4px;
  background: rgba(18, 55, 59, 0.07);
}

.work-list small {
  color: var(--rust);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-list h3 {
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.3;
}

.work-list { display: grid; gap: 8px; }
.work-list article > div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.work-list article h3 { margin: 0; }
.work-list article p { margin: 12px 0 0; color: #324f52; font-size: 0.86rem; line-height: 1.65; }
.work-list small { flex: none; }

.thought-list,
.refuge-shelf { display: grid; gap: 10px; }

.thought-list article,
.refuge-shelf article {
  padding: 20px;
  border-radius: 4px;
  background: rgba(18, 55, 59, 0.07);
}

.refuge-shelf {
  grid-template-columns: repeat(2, 1fr);
}

.refuge-shelf small {
  color: var(--rust);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.refuge-shelf h2 {
  margin: 10px 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 400;
}

.refuge-shelf p {
  margin: 0;
  color: #324f52;
  font-size: 0.86rem;
  line-height: 1.55;
}

.refuge-recommendations,
.refuge-languages { margin-top: 32px; }

.refuge-languages .language-line { margin-top: 0; }

.refuge-section-title {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.25;
}

.recommendation-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.recommendation-group {
  padding: 18px;
  border-radius: 4px;
  background: rgba(18, 55, 59, 0.07);
}

.recommendation-group h3 {
  margin: 0;
  color: var(--rust);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.recommendation-list {
  display: grid;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.recommendation-list li {
  padding: 10px 0;
  border-top: 1px solid rgba(18, 55, 59, 0.12);
}

.recommendation-list strong,
.recommendation-list span { display: block; }

.recommendation-list strong {
  color: #12373b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
}

.recommendation-list span {
  margin-top: 4px;
  color: #405e60;
  font-size: 0.78rem;
  line-height: 1.45;
}

.northstar-intro {
  margin-bottom: 20px;
  padding: 0;
}

.panel-content:has(> .northstar-intro) { padding-top: 20px; }
.northstar-intro .panel-lead { margin-top: 0; }

.northstar-pillars {
  grid-auto-rows: 1fr;
  gap: 12px;
}

.northstar-pillars article {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 24px;
  background: rgba(18, 55, 59, 0.095);
}

.northstar-pillars h2 {
  margin: 0;
  color: #12373b;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.25;
}

.northstar-pillars p {
  color: #324f52;
  font-size: 0.9rem;
  line-height: 1.65;
}

.language-line { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 25px; }

.language-line span {
  padding: 8px 10px;
  color: var(--cream);
  border-radius: 2px;
  background: var(--ink);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.language-line b { margin-left: 4px; color: var(--gold); font-weight: inherit; }

.news-list > a {
  display: grid;
  grid-template-columns: 62px 1fr 24px;
  gap: 14px;
  align-items: center;
  padding: 21px 0;
  border-bottom: 1px solid rgba(18, 55, 59, 0.16);
}

.news-list time {
  color: #51686a;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
}

.news-list span { display: grid; gap: 6px; }

.news-list strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.35;
}

.news-list i { font-style: normal; transition: transform 180ms ease; }
.news-list > a:hover i { transform: translate(3px, -3px); }

.summit-panel {
  display: flex;
  flex-direction: column;
}

.panel-content:has(> .summit-panel) {
  padding-top: 24px;
  padding-bottom: 24px;
}

.panel h1.summit-quote-text {
  font-size: clamp(1.093rem, 1.733vw, 1.65rem);
  line-height: 1.35;
}

.summit-quote {
  margin: 12px 0 0;
  padding: 0;
}

.summit-quote p {
  margin: 0;
  color: #405e60;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-style: italic;
  line-height: 1.55;
}

.summit-quote cite {
  display: block;
  margin-top: 0;
  color: var(--rust);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.social-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--ink);
  transition: background 180ms ease, transform 220ms var(--ease-soft);
}

.social-link:hover {
  background: var(--rust);
  transform: translateY(-2px);
}

.social-link img { width: 18px; height: 18px; filter: brightness(0) invert(1); }

.summit-note {
  margin: 18px 0 0;
  color: #51686a;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-align: center;
  text-transform: uppercase;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.noscript-message {
  position: fixed;
  z-index: 20;
  right: 20px;
  bottom: 20px;
  padding: 14px 17px;
  color: var(--cream);
  background: var(--ink);
  font-size: 0.75rem;
}

@media (max-width: 700px) {
  :root { --hero-min-height: 680px; --scene-ratio: 0.562799; }

  /* Sunny positions for the 941 × 1672 vertical scene. */
  .hotspot--northstar { --x: 17%; --y: 13%; --hit-w: 18%; --hit-h: 15%; }
  .hotspot--base { --x: 17%; --y: 83%; --hit-w: 34%; --hit-h: 26%; }
  .hotspot--trailmap { --x: 83%; --y: 42%; --hit-w: 16%; --hit-h: 12%; }
  .hotspot--mailbox { --x: 68%; --y: 77%; --hit-w: 10%; --hit-h: 8%; }
  .hotspot--gym { --x: 47%; --y: 65%; --hit-w: 15.5%; --hit-h: 11.5%; }
  .hotspot--summit { --x: 60%; --y: 7%; --hit-w: 17%; --hit-h: 12%; }
  .hotspot--refuge { --x: 68%; --y: 34%; --hit-w: 18%; --hit-h: 10%; }
  .hotspot--shop { --x: 80%; --y: 66%; --hit-w: 20%; --hit-h: 12.5%; }

  .experience[data-weather="rainy"] .hotspot--northstar { --x: 17.5%; --y: 13%; }
  .experience[data-weather="rainy"] .hotspot--base { --x: 15%; --y: 80%; }
  .experience[data-weather="rainy"] .hotspot--trailmap { --x: 86%; --y: 38%; }
  .experience[data-weather="rainy"] .hotspot--mailbox { --x: 68%; --y: 76%; }
  .experience[data-weather="rainy"] .hotspot--gym { --x: 50%; --y: 62%; }
  .experience[data-weather="rainy"] .hotspot--summit { --x: 60%; --y: 8%; }
  .experience[data-weather="rainy"] .hotspot--refuge { --x: 68%; --y: 32%; }
  .experience[data-weather="rainy"] .hotspot--shop { --x: 79%; --y: 63%; }

  .experience[data-weather="snowy"] .hotspot--northstar { --x: 20%; --y: 14%; }
  .experience[data-weather="snowy"] .hotspot--base { --x: 19%; --y: 83%; }
  .experience[data-weather="snowy"] .hotspot--trailmap { --x: 86%; --y: 44%; }
  .experience[data-weather="snowy"] .hotspot--mailbox { --x: 69%; --y: 79%; }
  .experience[data-weather="snowy"] .hotspot--gym { --x: 46%; --y: 68%; }
  .experience[data-weather="snowy"] .hotspot--summit { --x: 66%; --y: 9%; }
  .experience[data-weather="snowy"] .hotspot--refuge { --x: 70%; --y: 37%; }
  .experience[data-weather="snowy"] .hotspot--shop { --x: 80%; --y: 69%; }

  .hover-tooltip { display: none; }

  .panel {
    --panel-rest-x: 0px;
    --panel-rest-y: 0px;
    --panel-launch-x: 0px;
    --panel-launch-y: 24px;
    inset: auto 10px 10px;
    width: calc(100vw - 20px);
    max-height: min(79svh, 720px);
    border-radius: 8px;
    transform: translate(calc(var(--panel-rest-x) + var(--panel-launch-x)), calc(var(--panel-rest-y) + var(--panel-launch-y))) scale(var(--panel-launch-scale));
  }

  .panel.panel--wide { width: calc(100vw - 20px); }

  /* Every desktop placement becomes the same usable bottom sheet on mobile. */
  .panel.panel--bottom-left,
  .panel.panel--top-left,
  .panel.panel--center,
  .panel.panel--center-left {
    --panel-rest-x: 0px;
    --panel-rest-y: 0px;
    --panel-launch-x: 0px;
    --panel-launch-y: 24px;
    inset: auto 10px 10px;
    transform: translate(calc(var(--panel-rest-x) + var(--panel-launch-x)), calc(var(--panel-rest-y) + var(--panel-launch-y))) scale(var(--panel-launch-scale));
  }

  .panel.is-open { transform: translate(var(--panel-rest-x), var(--panel-rest-y)) scale(1); }
  .panel.is-closing { transform: translate(0, 18px) scale(0.99); }
  .panel-shell { max-height: min(79svh, 720px); }
  .panel-content { padding: 28px 23px 22px; }
  .panel h1 { font-size: clamp(2.45rem, 12vw, 3.35rem); }
  .panel h1.panel-statement-title { font-size: clamp(1.96rem, 9.6vw, 2.68rem); }
  .panel h1.panel-statement-title--gym { font-size: clamp(1.25rem, 5.2vw, 2.05rem); }
  .panel h1.panel-statement-title--shop { font-size: clamp(1rem, 4vw, 1.5rem); }
  .panel-lead { font-size: 0.98rem; }
  .training-goals { grid-template-columns: 1fr; }
  .training-records { gap: 8px; }
  .training-record-section { padding: 14px; }
  .training-record-section > h2 { font-size: 1rem; }
  .training-metrics div { gap: 8px; }
  .training-metrics dt { font-size: 0.72rem; }
  .training-metrics dd { font-size: 0.7rem; white-space: nowrap; }
  .radar-label { font-size: 11px; }
  .radar-label tspan { font-size: 9px; }
  .refuge-shelf { grid-template-columns: 1fr; }
  .recommendation-columns { grid-template-columns: 1fr; }
  .work-list article > div { align-items: flex-start; flex-direction: column; gap: 6px; }
  .northstar-pillars { grid-auto-rows: auto; }
  .northstar-pillars article { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* Preserve focused framing, but apply it instantly instead of animating. */
  .world {
    transform: translate(-50%, -50%) scale(var(--world-scale));
  }
}
