@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk.woff2") format("woff2");
}

:root {
  --ink: #18252E;
  --paper: #F6F7F4;
  --eucalypt: #285C4D;
  --eucalypt-soft: #DCE8E2;
  --muted: #56636B;
  --rule: #D3DAD6;
  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --measure: 66ch;
  color-scheme: light;
}

/* Dark mode: follows the system unless the toggle sets data-theme.
   Screen only, so printing always uses the light palette. */
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #E3E9E5;
    --paper: #11191E;
    --eucalypt: #7DC4A9;
    --eucalypt-soft: #1A2C27;
    --muted: #9CA9B0;
    --rule: #2B3A3F;
    color-scheme: dark;
  }
}
@media screen {
  :root[data-theme="dark"] {
    --ink: #E3E9E5;
    --paper: #11191E;
    --eucalypt: #7DC4A9;
    --eucalypt-soft: #1A2C27;
    --muted: #9CA9B0;
    --rule: #2B3A3F;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--eucalypt);
}
a:hover { text-decoration-thickness: 2px; }
:focus-visible {
  outline: 2px solid var(--eucalypt);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.9rem;
  border-radius: 4px;
  z-index: 10;
}
.skip:focus { top: 1rem; }

.wrap {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Intro ---------- */

.intro {
  padding-top: clamp(2.25rem, 7vw, 5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 18rem);
  column-gap: clamp(2rem, 6vw, 5rem);
  row-gap: 2rem;
  align-items: start;
}

.intro h1 {
  grid-column: 1 / -1;
  font-size: clamp(2.75rem, 1.4rem + 5.6vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.intro .headline {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--eucalypt);
  margin-bottom: 1rem;
}

.intro .summary p {
  max-width: 60ch;
  font-size: 1.125rem;
}
.intro .summary p + p { margin-top: 0.75rem; }

.contact {
  border-left: 2px solid var(--eucalypt);
  padding-left: 1.25rem;
}
.contact ul { display: grid; gap: 0.35rem; font-weight: 600; }
.contact .status {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
.contact .status + .status { margin-top: 0.35rem; }
.contact .status strong { color: var(--ink); font-weight: 600; }

/* Portrait: colour in light mode, black and white in dark mode. The switch
   itself is animated by the whole-page theme wipe below. */
.aside { display: grid; gap: 1.75rem; }
.portrait {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 15rem;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: var(--rule);
}
.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portrait-mono { opacity: 0; }
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .portrait-mono { opacity: 1; filter: brightness(0.9); }
}
@media screen {
  :root[data-theme="dark"] .portrait-mono { opacity: 1; filter: brightness(0.9); }
}

/* ---------- Theme change: whole-page wipe ----------
   theme.js runs the switch inside a view transition. The new theme is
   revealed through a soft-edged band that travels top-down into dark mode
   and bottom-up back into light mode. The mask is 225% of the viewport tall
   with a feather of a quarter of the viewport, positioned so the band starts
   exactly at one edge and ends exactly at the other: no idle travel, so the
   wipe starts the moment the toggle is pressed. Keep the duration in step
   with WIPE_MS in theme.js. */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
:root[data-theme-wipe]::view-transition-new(root) {
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 225%;
  mask-size: 100% 225%;
  animation: theme-wipe 0.75s cubic-bezier(0.2, 0.7, 0.25, 1) both;
}
:root[data-theme-wipe="down"]::view-transition-new(root) {
  -webkit-mask-image: linear-gradient(to bottom, #000 44.44%, transparent 55.56%);
  mask-image: linear-gradient(to bottom, #000 44.44%, transparent 55.56%);
}
:root[data-theme-wipe="up"]::view-transition-new(root) {
  -webkit-mask-image: linear-gradient(to top, #000 44.44%, transparent 55.56%);
  mask-image: linear-gradient(to top, #000 44.44%, transparent 55.56%);
  animation-name: theme-wipe-up;
}
@keyframes theme-wipe {
  from { -webkit-mask-position: 0 100%; mask-position: 0 100%; }
  to { -webkit-mask-position: 0 0; mask-position: 0 0; }
}
@keyframes theme-wipe-up {
  from { -webkit-mask-position: 0 0; mask-position: 0 0; }
  to { -webkit-mask-position: 0 100%; mask-position: 0 100%; }
}

/* ---------- Trace (the one bold moment) ---------- */

.trace {
  background: var(--eucalypt-soft);
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}

.trace h2 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--eucalypt);
  margin-bottom: 2.25rem;
  max-width: var(--measure);
}

.steps {
  --gap: clamp(1.5rem, 3vw, 2.5rem);
  --node: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 2.25rem;
}

.steps li { position: relative; }

.steps .node {
  display: block;
  width: var(--node);
  height: var(--node);
  border-radius: 50%;
  border: 3px solid var(--eucalypt);
  background: var(--eucalypt-soft);
  margin-bottom: 1.1rem;
  animation: node-in 0.35s ease-out both;
  animation-delay: calc(var(--i) * 0.42s);
}
.steps li:last-child .node { background: var(--eucalypt); }

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(var(--node) / 2 - 1.5px);
  left: var(--node);
  width: calc(100% + var(--gap) - var(--node));
  height: 3px;
  background: var(--eucalypt);
  transform-origin: left center;
  animation: draw-x 0.42s ease-in-out both;
  animation-delay: calc(var(--i) * 0.42s + 0.2s);
}

.steps h3 {
  font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.steps p { font-size: 1rem; max-width: 28ch; }

@keyframes draw-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes draw-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes node-in { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }

/* ---------- Sections ---------- */

main > section:not(.trace) { margin-top: clamp(3.5rem, 8vw, 6rem); }

.section-title {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.lede {
  max-width: var(--measure);
  color: var(--muted);
  margin-top: -1.25rem;
  margin-bottom: 2rem;
}

/* ---------- Experience timeline (each role opens on click) ---------- */

.roles { --when: 10.5rem; --rail: 1.6rem; --toggle: 2rem; --pad: 0.9rem; }

.role { position: relative; padding-bottom: 0.75rem; }

.role::before {
  content: "";
  position: absolute;
  left: calc(var(--when) + var(--rail) - 1px);
  top: calc(var(--pad) + 7px);
  bottom: calc(-1 * (var(--pad) + 7px));
  width: 2px;
  background: var(--rule);
}
.role:last-child::before { display: none; }

.role::after {
  content: "";
  position: absolute;
  left: calc(var(--when) + var(--rail) - 7px);
  top: calc(var(--pad) + 0.3rem);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--eucalypt);
  background: var(--paper);
}
.role.current::after { background: var(--eucalypt); }

.role summary {
  display: grid;
  grid-template-columns: var(--when) minmax(0, 1fr) var(--toggle);
  column-gap: calc(var(--rail) * 2);
  padding-block: var(--pad);
  cursor: pointer;
  list-style: none;
}
.role summary::-webkit-details-marker { display: none; }

.when {
  padding-top: 0.2rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
.when > span { display: block; }
.when .dates { color: var(--ink); font-weight: 600; }

.roles { --logo: 3.25rem; --logo-gap: 1rem; }

.head {
  display: grid;
  grid-template-columns: var(--logo) minmax(0, 1fr);
  column-gap: var(--logo-gap);
  align-items: start;
}
.head > :not(.logo) { grid-column: 2; }

.logo {
  grid-column: 1;
  grid-row: 1 / span 3;
  position: relative;
  width: var(--logo);
  height: var(--logo);
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--eucalypt-soft);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.logo::before {
  content: attr(data-initials);
  font-weight: 750;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--eucalypt);
}
.logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  background: #fff;
}
.head h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.4375rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  transition: color 0.15s ease;
}
.head .org {
  display: block;
  font-weight: 600;
  color: var(--eucalypt);
  margin-top: 0.15rem;
}
.head .org span { color: var(--muted); font-weight: 400; }
.head .teaser {
  display: block;
  max-width: var(--measure);
  margin-top: 0.5rem;
}

.toggle {
  position: relative;
  width: var(--toggle);
  height: var(--toggle);
  margin-top: 0.1rem;
  border-radius: 50%;
  border: 2px solid var(--eucalypt);
  transition: background-color 0.15s ease;
}
.toggle::before, .toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  background: var(--eucalypt);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, background-color 0.15s ease;
}
.toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.role details[open] .toggle::after { transform: translate(-50%, -50%) rotate(0deg); }

.role summary:hover h3 { color: var(--eucalypt); }
.role summary:hover .toggle { background: var(--eucalypt); }
.role summary:hover .toggle::before,
.role summary:hover .toggle::after { background: var(--paper); }

.role .body {
  margin-left: calc(var(--when) + var(--rail) * 2 + var(--logo) + var(--logo-gap));
  margin-right: calc(var(--toggle) + var(--rail) * 2);
  padding-bottom: 1.5rem;
}
.role details[open] .body { animation: reveal 0.28s ease-out; }
@keyframes reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.body .context {
  max-width: var(--measure);
  color: var(--muted);
}

.points { margin-top: 1rem; display: grid; gap: 0.55rem; max-width: var(--measure); }
.body .points:first-child { margin-top: 0; }
.points li { position: relative; padding-left: 1.2rem; }
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 0.5rem;
  height: 2px;
  background: var(--eucalypt);
}

/* ---------- AI work ---------- */

.ai, .pairs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 4rem);
  row-gap: 1.75rem;
}
.ai li, .pairs li {
  padding-top: 1rem;
  border-top: 2px solid var(--eucalypt-soft);
  max-width: 34rem;
}
.ai strong, .pairs strong { display: block; font-weight: 650; margin-bottom: 0.25rem; }
.ai .where { display: block; font-size: 0.875rem; color: var(--muted); margin-top: 0.4rem; }

/* ---------- Skills ---------- */

.skills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 4rem);
  row-gap: 1.75rem;
}
.skills dt { font-weight: 650; margin-bottom: 0.3rem; }
.skills dd { color: var(--muted); max-width: 34rem; }

/* ---------- Education ---------- */

.edu { display: grid; gap: 0.6rem; max-width: var(--measure); }
.edu li span { color: var(--muted); }

/* ---------- Footer ---------- */

footer {
  margin-top: clamp(4rem, 9vw, 7rem);
  border-top: 2px solid var(--ink);
  padding-block: 2.5rem 3.5rem;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem 3rem;
}
footer h2 { font-size: 1.5rem; font-weight: 750; letter-spacing: -0.02em; }
footer ul { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; font-size: 1.125rem; font-weight: 600; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .intro { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .aside { display: contents; }
  .portrait { order: -1; max-width: 8.5rem; border-radius: 12px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(2)::after { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 1rem; }
  .intro .summary p { font-size: 1.0625rem; }

  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .steps li { padding-left: calc(var(--node) + 1rem); padding-bottom: 1.75rem; }
  .steps li:last-child { padding-bottom: 0; }
  .steps .node { position: absolute; left: 0; top: 0.3rem; margin: 0; }
  .steps li:not(:last-child)::after,
  .steps li:nth-child(2)::after {
    display: block;
    top: calc(0.3rem + var(--node));
    left: calc(var(--node) / 2 - 1.5px);
    width: 3px;
    height: calc(100% - var(--node));
    transform-origin: center top;
    animation-name: draw-y;
  }
  .steps p { max-width: none; }

  .role { padding-left: 1.75rem; }
  .role::before { left: 6px; top: calc(var(--pad) + 4px); bottom: calc(-1 * (var(--pad) + 4px)); }
  .role::after { left: 0; top: calc(var(--pad) + 4px); }
  .role summary { grid-template-columns: minmax(0, 1fr) var(--toggle); column-gap: 1rem; row-gap: 0.35rem; }
  .when { grid-column: 1; grid-row: 1; padding-top: 0; display: flex; flex-wrap: wrap; gap: 0 0.75rem; }
  .head { grid-column: 1; grid-row: 2; }
  .roles { --logo: 2.75rem; --logo-gap: 0.85rem; }
  .logo { grid-row: 1 / span 2; }
  .logo::before { font-size: 0.875rem; }
  .head .teaser { grid-column: 1 / -1; }
  .toggle { grid-column: 2; grid-row: 1 / span 2; }
  .role .body { margin: 0; }

  .ai, .skills { grid-template-columns: minmax(0, 1fr); }
}

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

@media print {
  body { background: #fff; font-size: 10.5pt; }
  .portrait-mono { display: none; }
  .portrait { max-width: 8rem; }
  .skip { display: none; }
  .trace { background: none; padding-block: 1rem; }
  .steps .node, .steps li::after { animation: none !important; }
  .steps .node { background: #fff; }
  .toggle { display: none; }
  .logo { background: #fff; }
  .role .body { margin-right: 0; padding-bottom: 0.5rem; }
  .role details[open] .body { animation: none; }
  main > section:not(.trace) { margin-top: 2rem; }
  footer { margin-top: 2rem; }
  a { text-decoration: none; }
}

/* ---------- Site header (all pages) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  padding-block: 1.25rem 0.875rem;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 2rem;
}
.site-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.site-name {
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration-color: transparent;
}
.site-name:hover { text-decoration-color: var(--eucalypt); }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
}
.site-nav a { text-decoration-color: transparent; }
.site-nav a:hover { text-decoration-color: var(--eucalypt); }
.site-nav a[aria-current] {
  color: var(--eucalypt);
  text-decoration-color: var(--eucalypt);
  text-decoration-thickness: 2px;
}

.theme-toggle {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { border-color: var(--eucalypt); color: var(--eucalypt); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }

/* ---------- Links into the case study (homepage) ---------- */

.trace-more { margin-top: 2.25rem; font-weight: 600; }
.case-link { margin-top: 1.1rem; font-weight: 600; }

/* ---------- Case study page ---------- */

.cs-intro {
  padding-top: clamp(2.25rem, 7vw, 5rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
}
.cs-intro h1 {
  font-size: clamp(2.25rem, 1.2rem + 4vw, 4.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 17ch;
}
.cs-intro .standfirst {
  font-size: 1.1875rem;
  max-width: 58ch;
  margin-top: 1.25rem;
}

.cs-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem 2rem;
  margin-top: 2.25rem;
}
.cs-facts > div {
  border-left: 2px solid var(--eucalypt);
  padding-left: 1rem;
}
.cs-facts dt { font-size: 0.875rem; color: var(--muted); }
.cs-facts dd { font-weight: 600; margin-top: 0.15rem; }

.band {
  background: var(--eucalypt-soft);
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
}
.band .section-title { margin-bottom: 1.5rem; }
.results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 3rem;
  max-width: 64rem;
}
.results li { position: relative; padding-left: 1.2rem; }
.results li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 0.5rem;
  height: 2px;
  background: var(--eucalypt);
}
.results strong { font-weight: 650; }

.stages { --label: 13.5rem; --rail: 1.6rem; --node: 20px; }
.stage {
  position: relative;
  display: grid;
  grid-template-columns: var(--label) minmax(0, 1fr);
  column-gap: calc(var(--rail) * 2);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.stage::before {
  content: "";
  position: absolute;
  left: calc(var(--label) + var(--rail) - 1.5px);
  top: calc(0.35rem + var(--node));
  bottom: -0.35rem;
  width: 3px;
  background: var(--eucalypt);
}
.stage:last-child::before { display: none; }
.stage::after {
  content: "";
  position: absolute;
  left: calc(var(--label) + var(--rail) - var(--node) / 2);
  top: 0.35rem;
  width: var(--node);
  height: var(--node);
  border-radius: 50%;
  border: 3px solid var(--eucalypt);
  background: var(--paper);
}
.stage:last-child::after { background: var(--eucalypt); }
.stage h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stage-body p { max-width: var(--measure); }
.stage-body p + p { margin-top: 0.75rem; }
.stage-body .points:first-child { margin-top: 0; }

.back { margin-top: clamp(3rem, 7vw, 5rem); font-weight: 600; }

/* Context section (prose with sub-headings) */
.prose h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.4375rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 2rem 0 0.5rem;
}
.prose h3:first-child { margin-top: 0; }
.prose p { max-width: var(--measure); }
.prose p + p { margin-top: 0.75rem; }
.prose .sources { margin-top: 2rem; font-size: 0.875rem; color: var(--muted); }

/* Case studies list page */
.cs-list { display: grid; gap: 2rem; max-width: var(--measure); }
.cs-list li { padding-top: 1.25rem; border-top: 2px solid var(--eucalypt-soft); }
.cs-list h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.4375rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: 0.4rem;
}
.cs-list .where { display: block; margin-top: 0.4rem; font-size: 0.875rem; color: var(--muted); }
.cs-intro .notfound { margin-top: 2.5rem; }
main > section.band { margin-top: 0; }
main > section.after-stages { margin-top: clamp(0.5rem, 2vw, 1.5rem); }

@media (max-width: 860px) {
  .cs-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .results, .pairs { grid-template-columns: minmax(0, 1fr); }
  .stage { grid-template-columns: minmax(0, 1fr); row-gap: 0.75rem; padding-left: 2.25rem; }
  .stage::before { left: 8.5px; }
  .stage::after { left: 0; top: 0.2rem; }
}

@media print {
  .site-header, .back, .theme-toggle { display: none; }
  .band { background: none; padding-block: 1rem; }
}

