/* PIKAA website. Nightwater is the default theme; Daylight is a complete light theme. */

:root {
  --bg: #07090C;
  --bg-raised: #0D1116;
  --bg-card: #131922;
  --fg: #E8EDF2;
  --fg-muted: #A2AEB9;
  --fg-subtle: #7F8B96;
  --lagoon: #3FC9B6;
  --lagoon-strong: #5FD6C5;
  --ember: #DFB07A;
  --slate: #7C93A6;
  --line: #222A33;
  --line-soft: #161C23;
  --line-strong: #3A4650;
  --ask-bg: #1C1914;
  --ask-fg: #EAD2B2;
  --on-lagoon: #04211C;
  --ring: rgba(63, 201, 182, 0.24);
  --glass: rgba(7, 9, 12, 0.74);
  --shot-bg: #0B0E12;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4);

  --font-display: 'General Sans', 'Atkinson Hyperlegible Next', system-ui, sans-serif;
  --font-text: 'Atkinson Hyperlegible Next', system-ui, sans-serif;

  /* Perfect-fourth scale from a 17px body. */
  --t-small: 0.8rem;
  --t-body: 1.0625rem;
  --t-lede: 1.33rem;
  --t-h3: 1.33rem;
  --t-h2: clamp(1.95rem, 3.6vw, 2.5rem);
  --t-h1: clamp(2.9rem, 6.2vw, 4.5rem);

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --gutter: 34px;
  color-scheme: dark;
}

:root[data-theme='daylight'] {
  --bg: #F6F8F9;
  --bg-raised: #FFFFFF;
  --bg-card: #FFFFFF;
  --fg: #182028;
  --fg-muted: #45525E;
  --fg-subtle: #5F6C77;
  --lagoon: #0C8577;
  --lagoon-strong: #0A6E62;
  --ember: #9A6B2F;
  --slate: #5A7186;
  --line: #DDE4E8;
  --line-soft: #EAF0F3;
  --line-strong: #B9C6CD;
  --ask-bg: #F3EADF;
  --ask-fg: #6B4A1F;
  --on-lagoon: #FFFFFF;
  --ring: rgba(12, 133, 119, 0.22);
  --glass: rgba(246, 248, 249, 0.82);
  --shot-bg: #E9EEF1;
  --shadow: 0 30px 70px rgba(16, 24, 32, 0.16), 0 2px 6px rgba(16, 24, 32, 0.06);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-text);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 320ms var(--ease), color 320ms var(--ease);
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; }
p { text-wrap: pretty; }
.num { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 2px solid var(--lagoon); outline-offset: 4px; box-shadow: 0 0 0 6px var(--ring); border-radius: 8px; }

.skip { position: absolute; left: 16px; top: -64px; z-index: 200; padding: 12px 18px; border-radius: 12px; background: var(--bg-card); border: 1px solid var(--line); }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: var(--t-h1); font-weight: 500; letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: var(--t-h2); letter-spacing: -0.022em; }
h3 { font-size: var(--t-h3); }
.lede { font-size: var(--t-lede); line-height: 1.55; color: var(--fg-muted); max-width: 40em; }
.small, .footnote { font-size: var(--t-small); color: var(--fg-subtle); line-height: 1.55; }
.footnote { margin-top: 32px; max-width: 70ch; font-size: 0.875rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 14px;
  font-size: 1rem; font-weight: 600;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease), transform 120ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--lagoon); color: var(--on-lagoon); }
.btn--primary:hover { background: var(--lagoon-strong); }
.btn--quiet { border: 1px solid var(--line-strong); }
.btn--quiet:hover { background: color-mix(in srgb, var(--fg) 6%, transparent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- navigation ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; border-bottom: 1px solid transparent; transition: background-color 320ms var(--ease), border-color 320ms var(--ease); }
.nav.is-scrolled { background: var(--glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-bottom-color: var(--line-soft); }
.nav-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: 0.04em; }
.wordmark img { width: 36px; height: 36px; }
.wordmark--small { font-size: 1.1rem; }
.wordmark--small img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 0.94rem; color: var(--fg-muted); transition: color 200ms var(--ease); }
.nav-links a:hover, .nav-links a[aria-current='true'] { color: var(--fg); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.theme-toggle { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line); color: var(--fg-muted); font-size: 0.9rem; transition: color 200ms var(--ease), border-color 200ms var(--ease); }
.theme-toggle:hover { color: var(--fg); border-color: var(--line-strong); }
.theme-toggle svg { width: 16px; height: 16px; }
.menu-toggle { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 12px; }
.menu-toggle svg { width: 22px; height: 22px; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 clamp(88px, 10vw, 128px); position: relative; }
.band { width: 100%; height: 180px; margin-top: clamp(12px, 4vh, 48px); }
.hero-copy { text-align: center; }
.hero-copy h1 { margin: 4px auto 0; max-width: 15em; font-size: clamp(2.5rem, 5.2vw, 4rem); line-height: 1.06; }
.hero-copy .lede { margin: 22px auto 0; max-width: 34em; font-size: clamp(1.08rem, 1.55vw, 1.25rem); }
.hero-copy .actions { justify-content: center; margin-top: 30px; }
.hero-note { margin-top: 22px; font-size: 0.9rem; color: var(--fg-subtle); }
.promise-row { margin-top: clamp(56px, 8vw, 88px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 36px); }
.moment { display: flex; flex-direction: column; }
.shot--panel { aspect-ratio: 13 / 10; }
.shot--panel img { height: 100%; object-fit: cover; }
.moment-title { margin-top: 22px; font-size: 1.28rem; letter-spacing: -0.012em; }
.moment p { margin-top: 6px; color: var(--fg-muted); }
.shot .for-day { display: none; }
:root[data-theme='daylight'] .shot .for-night { display: none; }
:root[data-theme='daylight'] .shot .for-day { display: block; }

/* A framed picture of the app. */
.shot { position: relative; border-radius: 18px; overflow: hidden; background: var(--shot-bg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.shot img, .shot video { width: 100%; height: auto; }
.shot--light { border-color: #DDE4E8; }

/* ---------- sections and the question-and-reply opener ---------- */
.section { padding: clamp(96px, 11vw, 144px) 0; }
.section--raised { background: var(--bg-raised); }
.turn { display: flex; flex-direction: column; margin-bottom: clamp(44px, 5.5vw, 68px); }
.ask {
  align-self: flex-end; max-width: min(80%, 34rem);
  padding: 11px 20px; border-radius: 18px;
  background: var(--ask-bg); color: var(--ask-fg);
  font-size: 1.08rem; line-height: 1.45;
  margin-bottom: 26px;
}
.reply { position: relative; padding-left: var(--gutter); max-width: 21em; }
.reply::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 18px; height: 2px; border-radius: 2px; background: var(--lagoon); }
.reply--promise { max-width: 19em; }
.turn .lede { margin-top: 20px; padding-left: var(--gutter); max-width: calc(34em + var(--gutter)); }

/* ---------- the name ---------- */
.name-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.name-grid li { padding: 34px 24px 6px; border-left: 1px solid var(--line-soft); }
.name-grid li:first-child { border-left: 0; padding-left: 0; }
.name-letter { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(3.4rem, 6vw, 4.8rem); line-height: 1; letter-spacing: -0.03em; color: var(--lagoon); }
.name-letter--person { color: var(--ember); }
.name-grid h3 { margin-top: 18px; font-size: 1.12rem; }
.name-grid p { margin-top: 10px; font-size: 0.95rem; color: var(--fg-muted); line-height: 1.55; }

/* ---------- why ---------- */
.why-body { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 7vw, 104px); align-items: start; padding-left: var(--gutter); }
.prose p { font-size: 1.16rem; line-height: 1.65; color: var(--fg-muted); max-width: 36em; }
.prose p + p { margin-top: 18px; }
.figures div { display: grid; grid-template-columns: 136px 1fr; gap: 20px; align-items: baseline; padding: 24px 0; border-top: 1px solid var(--line); }
.figures div:last-child { border-bottom: 1px solid var(--line); }
.figures dt { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 3.6vw, 2.9rem); letter-spacing: -0.03em; line-height: 1; }
.figures dd { color: var(--fg-muted); font-size: 1rem; line-height: 1.5; }

/* ---------- who it's for ---------- */
.audiences { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: clamp(28px, 4vw, 56px); padding-left: var(--gutter); }
.audiences li { padding-top: 26px; border-top: 1px solid var(--line); }
.audiences svg { width: 30px; height: 30px; color: var(--ember); }
.audiences h3 { margin-top: 18px; font-size: 1.24rem; }
.audiences p { margin-top: 10px; color: var(--fg-muted); }
.ease { margin-top: clamp(72px, 9vw, 112px); display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.ease-copy h3 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); }
.checks { margin-top: 20px; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 30px; color: var(--fg-muted); line-height: 1.5; }
.checks li::before { content: ''; position: absolute; left: 2px; top: 0.34em; width: 14px; height: 8px; border-left: 2px solid var(--lagoon); border-bottom: 2px solid var(--lagoon); transform: rotate(-45deg); }
.ease-copy .small { margin-top: 22px; }

/* ---------- experience tour ---------- */
.tour { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.tour-list { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 100px; }
.tour-tab { text-align: left; width: 100%; padding: 16px 18px 16px 20px; border-radius: 14px; position: relative; transition: background-color 200ms var(--ease); }
.tour-tab::before { content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 2px; border-radius: 2px; background: var(--line-strong); transition: background-color 200ms var(--ease); }
.tour-tab:hover { background: color-mix(in srgb, var(--fg) 4%, transparent); }
.tour-tab[aria-selected='true'] { background: var(--bg-raised); }
.tour-tab[aria-selected='true']::before { background: var(--lagoon); }
.tour-title { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.04rem; }
.tour-desc { display: block; margin-top: 3px; font-size: 0.92rem; color: var(--fg-muted); }
.tour-tab[aria-selected='false'] .tour-desc { display: none; }
.tour-panel[hidden] { display: none; }
.tour-panel { animation: show 240ms var(--ease); }
@keyframes show { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tour-panel { animation: none; } }
.tour-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-top: 20px; }
.tour-meta p { color: var(--fg-muted); max-width: 40em; }
.tag { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; height: 30px; padding: 0 13px; border-radius: 15px; border: 1px solid var(--line); font-size: 0.82rem; font-weight: 600; color: var(--fg-muted); white-space: nowrap; }
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--fg-subtle); }
.tag--live::before { background: var(--lagoon); }
.tag--design::before { background: var(--slate); }
.tag--now::before { background: var(--ember); }

/* ---------- grows ---------- */
.areas { display: flex; flex-wrap: wrap; gap: 12px; padding-left: var(--gutter); max-width: 980px; }
.areas li { padding: 12px 20px; border-radius: 26px; border: 1px solid var(--line-strong); font-size: 1.02rem; background: var(--bg); }
.areas .areas-more { border-style: dashed; color: var(--lagoon); background: transparent; }
.grow-points { margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: repeat(3, 1fr); column-gap: clamp(28px, 4vw, 48px); padding-left: var(--gutter); }
.grow-points li { padding-top: 22px; border-top: 1px solid var(--line); }
.grow-points h3 { font-size: 1.15rem; }
.grow-points p { margin-top: 8px; color: var(--fg-muted); }

/* ---------- demo ---------- */
.shot--video { margin-left: var(--gutter); }
.shot--video video { background: #07090C; }
.beats { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: clamp(28px, 4vw, 48px); padding-left: var(--gutter); }
.beats li { display: grid; grid-template-columns: 38px 1fr; gap: 16px; }
.beat-n { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--lagoon); }
.beats h3 { font-size: 1.1rem; padding-top: 4px; }
.beats p { margin-top: 6px; color: var(--fg-muted); font-size: 0.97rem; }

/* ---------- medical team ---------- */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3.5vw, 48px); padding-left: var(--gutter); }
.app .shot { aspect-ratio: 16 / 10; box-shadow: none; }
.app .shot img { height: 100%; object-fit: cover; object-position: top left; }
.app h3 { margin-top: 24px; font-size: 1.45rem; }
.app-for { margin-top: 4px; font-size: 0.95rem; color: var(--ember); }
.app p:not(.app-for) { margin-top: 10px; color: var(--fg-muted); max-width: 32em; }
.loop { margin: clamp(48px, 6vw, 72px) 0 0 var(--gutter); display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: loop; }
.loop li { position: relative; padding: 30px 20px 0 0; counter-increment: loop; }
.loop li::before { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--line-strong); }
.loop li::after { content: ''; position: absolute; left: 0; top: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--bg-raised); border: 2px solid var(--lagoon); }
.loop li:last-child::before { right: 50%; }
.loop-who { display: inline-block; font-size: 0.88rem; font-weight: 600; color: var(--ember); }
.loop-who--team { color: var(--slate); }
.loop p { margin-top: 6px; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; line-height: 1.35; }

/* ---------- trust ---------- */
.promises { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(40px, 6vw, 80px); padding-left: var(--gutter); }
.promises li { display: grid; grid-template-columns: 28px 1fr; gap: 18px; padding: 26px 0 28px; border-top: 1px solid var(--line); }
.promises svg { width: 24px; height: 24px; color: var(--lagoon); margin-top: 3px; }
.promises h3 { font-size: 1.2rem; }
.promises p { margin-top: 6px; color: var(--fg-muted); }
.safety { margin-top: clamp(64px, 8vw, 96px); display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-left: var(--gutter); }
.safety-copy h3 { font-size: clamp(1.4rem, 2.3vw, 1.75rem); }
.safety-copy p { margin-top: 12px; color: var(--fg-muted); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.steps::before { content: ''; position: absolute; left: 7px; right: 12%; top: 7px; height: 1px; background: linear-gradient(90deg, var(--lagoon), var(--line-strong) 55%); }
.steps li { position: relative; padding: 32px 16px 0 0; }
.steps li::before { content: ''; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--bg-raised); border: 2px solid var(--lagoon); }
.steps li:nth-child(n+3)::before { border-color: var(--line-strong); }
.step-name { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.step-state { display: block; margin-top: 6px; font-size: 0.85rem; color: var(--fg-subtle); }

/* ---------- platform ---------- */
.platform { padding-left: var(--gutter); }
.abilities { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: clamp(24px, 3vw, 40px); }
.abilities li { padding-top: 22px; border-top: 1px solid var(--line); }
.abilities svg { width: 26px; height: 26px; color: var(--lagoon); }
.abilities h3 { margin-top: 14px; font-size: 1.15rem; }
.abilities p { margin-top: 8px; color: var(--fg-muted); font-size: 0.97rem; }
.studio { --studio-w: min(calc(100vw - 48px), 1400px); width: var(--studio-w); margin: clamp(48px, 6vw, 72px) 0 0 calc((100% - var(--studio-w)) / 2); }
.studio figcaption { max-width: 1136px; margin-left: auto; margin-right: auto; padding: 0 16px 0 var(--gutter); }
.studio figcaption { margin-top: 18px; font-size: 0.9rem; color: var(--fg-subtle); }
.footnote--gutter { padding-left: var(--gutter); }

/* ---------- progress ---------- */
.journey { padding-left: var(--gutter); max-width: 960px; }
.stop { display: grid; grid-template-columns: 150px 22px 1fr; column-gap: 26px; position: relative; padding-bottom: 38px; }
.stop:last-child { padding-bottom: 0; }
.stop::before { content: ''; position: absolute; left: calc(150px + 26px + 10px); top: 16px; bottom: -4px; width: 2px; background: var(--lagoon); }
.stop--now::before { background: linear-gradient(var(--ember), var(--line-strong)); }
.stop--next::before { background: var(--line-strong); }
.stop:last-child::before { display: none; }
.stop::after { content: ''; grid-column: 2; grid-row: 1; justify-self: center; position: relative; z-index: 1; width: 14px; height: 14px; margin-top: 5px; border-radius: 50%; background: var(--lagoon); box-shadow: 0 0 0 4px var(--bg); }
.stop--now::after { background: var(--ember); box-shadow: 0 0 0 4px var(--bg), 0 0 0 9px color-mix(in srgb, var(--ember) 22%, transparent); }
.stop--next::after { background: var(--bg); border: 2px solid var(--line-strong); }
.stop-when { grid-column: 1; grid-row: 1; text-align: right; padding-top: 1px; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.stop--now .stop-when { color: var(--ember); }
.stop--next .stop-when { color: var(--fg-subtle); }
.stop > div { grid-column: 3; grid-row: 1; }
.stop h3 { font-size: 1.2rem; }
.stop p { margin-top: 6px; color: var(--fg-muted); max-width: 40em; }
.stop .tag { margin-top: 12px; }
.status { display: grid; grid-template-columns: 24px 1fr; gap: 16px; align-items: start; margin: clamp(48px, 6vw, 64px) 0 0 var(--gutter); max-width: 760px; color: var(--fg-muted); }
.status svg { width: 22px; height: 22px; color: var(--ember); margin-top: 2px; }

/* ---------- team ---------- */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 48px); padding-left: var(--gutter); }
.person img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.person h3 { margin-top: 22px; font-size: 1.2rem; }
.role { margin-top: 4px; color: var(--lagoon); font-weight: 600; font-size: 0.95rem; }
.person p:not(.role):not(.affil) { margin-top: 12px; color: var(--fg-muted); font-size: 0.95rem; line-height: 1.6; }
.team-note { margin-top: 36px; padding-left: var(--gutter); color: var(--fg-muted); }
.honours { margin-top: clamp(64px, 8vw, 96px); display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 40px; padding-left: var(--gutter); }
.honours li { padding: 22px 0 24px; border-top: 1px solid var(--line); }
.honours h3 { font-size: 1.04rem; }
.honours p { margin-top: 6px; font-size: 0.93rem; color: var(--fg-muted); line-height: 1.55; }

/* ---------- partners ---------- */
.partners { background: var(--bg-raised); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 64px 0 70px; }
.partners-label { text-align: center; font-family: var(--font-text); font-size: 0.95rem; font-weight: 400; letter-spacing: 0; color: var(--fg-subtle); }
.partners-row { margin-top: 34px; display: flex; align-items: center; justify-content: center; gap: clamp(32px, 5.5vw, 76px); flex-wrap: wrap; }
.logo img { width: auto; display: block; }
.logo .for-night { opacity: 0.78; transition: opacity 200ms var(--ease); }
.logo:hover .for-night { opacity: 1; }
.logo .for-day { display: none; }
:root[data-theme='daylight'] .logo .for-night { display: none; }
:root[data-theme='daylight'] .logo .for-day { display: block; }
.logo--ubc img { height: 66px; }
.logo--ece .for-night { height: 30px; }
.logo--ece .for-day { height: 66px; border-radius: 8px; }
.logo--ppri img { height: 34px; }
.logo--vch img { height: 42px; }
.logo--hrbc img { height: 52px; }

/* ---------- closing and footer ---------- */
.closing { padding: clamp(96px, 12vw, 150px) 0; text-align: center; }
.closing-logo { width: 88px; height: 88px; margin: 0 auto 28px; }
.closing h2 { max-width: 16em; margin: 0 auto; font-size: clamp(2.1rem, 4.4vw, 3.1rem); }
.closing .lede { margin: 18px auto 0; max-width: 30em; }
.closing .actions { justify-content: center; margin-top: 32px; }
.site-footer { border-top: 1px solid var(--line-soft); padding: 40px 0 48px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.legal { margin-top: 12px; max-width: 620px; font-size: 0.875rem; color: var(--fg-subtle); line-height: 1.6; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; font-size: 0.9rem; color: var(--fg-muted); }
.footer-links a:hover { color: var(--fg); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { gap: 20px; }
  .tour { grid-template-columns: 1fr; }
  .tour-list { position: static; flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 6px; scrollbar-width: thin; }
  .tour-tab { flex: 0 0 auto; width: auto; padding: 12px 18px; border: 1px solid var(--line); }
  .tour-tab::before, .tour-desc { display: none !important; }
  .why-body, .ease, .safety { grid-template-columns: 1fr; }
  .abilities { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .grow-points, .beats { grid-template-columns: 1fr; row-gap: 28px; }
  .audiences { grid-template-columns: 1fr; row-gap: 12px; max-width: 640px; }
  .promise-row { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; row-gap: 40px; }
  .loop { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .people { grid-template-columns: 1fr; max-width: 640px; }
  .honours { grid-template-columns: 1fr 1fr; }
  .name-grid { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .name-grid li:nth-child(4) { border-left: 0; padding-left: 0; }
}
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav-links.is-open { display: flex; }
  .nav-links a { display: flex; align-items: center; min-height: 56px; padding: 0 8px; font-size: 1.05rem; border-bottom: 1px solid var(--line-soft); }
  .menu-toggle { display: inline-flex; }
  .theme-toggle { width: 44px; padding: 0; justify-content: center; }
  .theme-toggle .tt-label { display: none; }
  .promises, .abilities, .pair { grid-template-columns: 1fr; }
  .pair { max-width: 640px; }
  .stop { grid-template-columns: 22px 1fr; column-gap: 18px; }
  .stop::before { left: 10px; }
  .stop::after { grid-column: 1; }
  .stop-when { grid-column: 2; text-align: left; }
  .stop > div { grid-column: 2; grid-row: 2; margin-top: 4px; }
  .name-grid { grid-template-columns: 1fr; row-gap: 0; }
  .name-grid li, .name-grid li:first-child, .name-grid li:nth-child(4) { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line-soft); }
  .name-letter { grid-row: span 2; font-size: 3rem; }
  .name-grid h3 { margin-top: 2px; }
  .name-grid p { margin-top: 4px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .steps::before { display: none; }
  .honours { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 0px; }
  body { font-size: 1rem; }
  .container { padding: 0 16px; }
  .reply::before { display: none; }
  .ask { max-width: 88%; font-size: 1rem; }
  .band { height: 130px; }
  .btn { width: 100%; }
  .hero-copy .actions { flex-direction: column; align-items: stretch; max-width: 360px; margin-left: auto; margin-right: auto; }
  .tour-meta { flex-direction: column; gap: 12px; }
  .figures div { grid-template-columns: 1fr; gap: 8px; }
  .status { margin-left: 0; }
  .loop { grid-template-columns: 1fr; }
  .loop li:last-child::before { right: 0; }
  .areas li { padding: 10px 16px; font-size: 0.95rem; }
}

/* A screenshot that opens at full size. */
.shot--link { display: block; cursor: zoom-in; transition: border-color 200ms var(--ease); }
.shot--link:hover { border-color: var(--line-strong); }
.person p.affil { margin-top: 4px; font-size: 0.9rem; color: var(--fg-subtle); }
