:root {
  --bg: #E9EDF1;
  --surface: #F5F7F9;
  --ink: #16202E;
  --muted: #546072;
  --rule: #C6CED8;
  --accent: #2549D6;
  --c1: #2549D6;
  --c2: #12867A;
  --c3: #C2850F;
  --c4: #8A3FA8;
  --c5: #4F6B8C;
  --idle: #C3CBD5;
  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1520;
    --surface: #142031;
    --ink: #E3E9F0;
    --muted: #93A0B2;
    --rule: #263449;
    --accent: #86A2FF;
    --c1: #6E8DFF;
    --c2: #3CC2B1;
    --c3: #E8B34A;
    --c4: #C185E0;
    --c5: #8BA3C2;
    --idle: #233146;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1520; --surface: #142031; --ink: #E3E9F0; --muted: #93A0B2; --rule: #263449;
  --accent: #86A2FF; --c1: #6E8DFF; --c2: #3CC2B1; --c3: #E8B34A; --c4: #C185E0; --c5: #8BA3C2; --idle: #233146;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 0.18em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

.top, main, .foot { width: min(1180px, 100% - 32px); margin-inline: auto; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.mark { font-weight: 800; letter-spacing: -0.04em; font-size: 1.125rem; text-decoration: none; }
.top nav { display: flex; gap: clamp(14px, 3vw, 32px); font-size: 0.9375rem; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(32px, 7vw, 96px) 0 clamp(64px, 9vw, 120px);
}
h1 {
  font-size: clamp(3.5rem, 9.5vw, 8.5rem);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.055em;
  margin-left: -0.05em;
}
.lede { margin-top: 32px; font-size: clamp(1.1875rem, 1.6vw, 1.375rem); line-height: 1.45; max-width: 34ch; }
.where { margin-top: 14px; color: var(--muted); }
.actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid var(--ink);
}
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn.ghost:hover { border-color: var(--ink); }

.field { position: relative; }
.field canvas {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background: var(--surface);
  border-radius: 6px;
}
.field figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  margin-top: 14px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.count { color: var(--ink); }
.count b { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.replay {
  margin-left: auto;
  font: inherit;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.replay:hover { color: var(--ink); }

/* Sections */
main > section:not(.hero) { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--rule); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; max-width: 20ch; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.intro { margin-top: 16px; color: var(--muted); max-width: 60ch; }

.repos { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.repos > div { padding: 22px 0; border-top: 1px solid var(--rule); }
.repos dt { font-weight: 600; font-size: 1.1875rem; letter-spacing: -0.01em; }
.repos dt a { text-decoration: none; }
.repos dt a:hover { text-decoration: underline; }
.repos dd { margin-top: 6px; color: var(--muted); max-width: 54ch; }

.timeline { list-style: none; padding: 0; margin-top: 40px; position: relative; }
.timeline li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 32px; padding: 0 0 28px; position: relative; }
.timeline time { color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 0.12em; }
.timeline li > div { padding-left: 24px; border-left: 2px solid var(--rule); position: relative; }
.timeline li > div::before { content: ""; position: absolute; left: -7px; top: 0.4em; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--muted); }
.timeline li:first-child > div::before { background: var(--accent); border-color: var(--accent); }
.timeline p { margin-top: 4px; color: var(--muted); max-width: 60ch; }
.tools { margin-top: 24px; max-width: 64ch; }

.contact p { margin-top: 16px; color: var(--muted); max-width: 52ch; }
.mail {
  display: inline-block;
  margin-top: 28px;
  font-size: clamp(2rem, 6.5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  text-decoration-thickness: 0.06em;
  overflow-wrap: anywhere;
}
.links { list-style: none; padding: 0; margin-top: 28px; display: flex; gap: 24px; }

.foot { padding: 28px 0 40px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.875rem; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .field { max-width: 560px; }
  .feat { grid-template-columns: 1fr; }
  .also, .repos { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .top nav a[href="#path"] { display: none; }
  .timeline li { grid-template-columns: 1fr; }
  .timeline time { padding-left: 26px; }
  .timeline li > div { margin-top: 2px; }
}
