/* One stylesheet for the whole site: offer page, CV, legal pages and the 404. */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --tint: #f1f4f9;
  --ink: #0b1020;
  --muted: #535d76;
  --line: #dde2ec;
  --accent: #1f47e6;
  --accent-ink: #ffffff;
  --mark: #ffe45c;
  --mark-ink: #0b1020;
  --night: #0b1020;
  --night-ink: #ffffff;
  --night-muted: #aeb8d2;
  --stage: #10183a;
  --node: #19234d;
  --node-line: #313d70;
  --ok: #5ad68f;
  --top: 4.5rem;
  --gutter: clamp(1.1rem, 4vw, 3rem);
  --radius: 14px;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0d14;
  --tint: #11151f;
  --ink: #eef1f7;
  --muted: #9ca6bc;
  --line: #262d3d;
  --accent: #8fa3ff;
  --accent-ink: #0a0d14;
  --night: #10162e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--top) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hero :focus-visible,
.end :focus-visible {
  outline-color: var(--mark);
}

.wrap {
  width: min(78rem, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
}

.skip:focus {
  top: 0.75rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.3rem;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn svg,
.node-icon svg {
  flex: 0 0 auto;
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn small {
  font-size: 0.82em;
  font-weight: 500;
  opacity: 0.75;
}

.btn-small {
  padding: 0.55rem 0.95rem;
  font-size: 0.92rem;
}

.hero .btn,
.end .btn {
  background: var(--mark);
  color: var(--mark-ink);
}

.hero .btn-ghost,
.end .btn-ghost {
  background: transparent;
  color: var(--night-ink);
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.35);
}

.hero .btn-ghost:hover,
.end .btn-ghost:hover {
  box-shadow: inset 0 0 0 1.5px var(--mark);
}

/* ---------- Top bar ---------- */

/* The bar and the hero are one navy block; the bar stays navy over the light sections. */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--night);
  color: var(--night-ink);
}

.top-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: var(--top);
}

.brand {
  margin-right: auto;
  font-weight: 750;
  font-size: 1.2rem;
  letter-spacing: -0.035em;
  text-decoration: none;
  white-space: nowrap;
}

.top-menu {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-left: clamp(1rem, 3vw, 3rem);
}

.top-nav {
  display: flex;
  gap: 0.15rem;
  margin-inline: auto;
  padding: 0.25rem;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.07);
}

.top-nav a {
  padding: 0.45rem 0.85rem;
  border-radius: 9px;
  color: var(--night-muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease;
}

.top-nav a:hover {
  color: var(--night-ink);
}

.top-nav a.is-here {
  background: var(--night-ink);
  color: var(--night);
}

.top-prefs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-row > .top-prefs {
  margin-left: auto;
}

.langs {
  display: inline-flex;
  padding: 0.2rem;
  border-radius: 10px;
  background: rgb(255 255 255 / 0.07);
}

.langs a {
  padding: 0.3rem 0.55rem;
  border-radius: 7px;
  color: var(--night-muted);
  font-size: 0.85rem;
  font-weight: 650;
  text-decoration: none;
}

.langs a:hover {
  color: var(--night-ink);
}

.langs a.is-current {
  background: rgb(255 255 255 / 0.14);
  color: var(--night-ink);
}

.theme-btn,
.menu-btn {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgb(255 255 255 / 0.07);
  color: var(--night-ink);
  cursor: pointer;
  transition: background-color 160ms ease;
}

.theme-btn:hover,
.menu-btn:hover {
  background: rgb(255 255 255 / 0.14);
}

.theme-btn svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Show the theme you would switch to. */
.theme-btn .is-sun,
html[data-theme="dark"] .theme-btn .is-moon {
  display: none;
}

html[data-theme="dark"] .theme-btn .is-sun {
  display: block;
}

.top .btn {
  background: var(--mark);
  color: var(--mark-ink);
}

.menu-btn {
  display: none;
  align-content: center;
  gap: 0.4rem;
}

.menu-btn i {
  width: 1.1rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 200ms ease;
}

.menu-btn[aria-expanded="true"] i:first-child {
  transform: translateY(0.26rem) rotate(45deg);
}

.menu-btn[aria-expanded="true"] i:last-child {
  transform: translateY(-0.26rem) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(2.75rem, 7vw, 5.5rem) 0 clamp(2.5rem, 6vw, 5rem);
  background: var(--night);
  color: var(--night-ink);
}

.hero h1 {
  max-width: 16ch;
  font-weight: 700;
  font-size: clamp(2.6rem, 7.4vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero h1 em {
  color: var(--mark);
  font-style: normal;
}

.hero-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem clamp(2rem, 6vw, 5rem);
  margin-top: clamp(1.5rem, 3.5vw, 2.75rem);
}

.hero-lede {
  max-width: 36rem;
  font-size: clamp(1.1rem, 0.6vw + 1rem, 1.35rem);
  line-height: 1.45;
  text-wrap: pretty;
}

.hero-by {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.4rem;
  max-width: 30rem;
  color: var(--night-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.hero-by img {
  flex: 0 0 auto;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-hint {
  max-width: 28rem;
  margin-top: 0.9rem;
  color: var(--night-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* ---------- Workflow stage ---------- */

.flows {
  margin-top: clamp(2.25rem, 5vw, 4rem);
  border-radius: 18px;
  background: var(--stage);
  overflow: hidden;
}

.flow-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.6rem;
  overflow-x: auto;
  scrollbar-width: none;
  background: rgb(255 255 255 / 0.04);
}

.flow-tabs::-webkit-scrollbar {
  display: none;
}

.flow-tabs button {
  position: relative;
  flex: 0 0 auto;
  padding: 0.6rem 1rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--night-muted);
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: color 160ms ease, background-color 160ms ease;
}

.flow-tabs button:hover {
  color: var(--night-ink);
}

.flow-tabs button[aria-selected="true"] {
  background: var(--node);
  color: var(--night-ink);
}

/* The running tab fills from the left while its workflow plays. */
.flow-tabs button::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--mark);
  transform: scaleX(0);
  transform-origin: left center;
}

.flow-tabs button.is-playing::after {
  animation: tab-fill var(--flow-time, 8s) linear forwards;
}

@keyframes tab-fill {
  to { transform: scaleX(1); }
}

.flow-stage {
  position: relative;
  padding: clamp(1.25rem, 3.2vw, 2.75rem);
  background-image: radial-gradient(rgb(255 255 255 / 0.09) 1px, transparent 1.5px);
  background-size: 22px 22px;
}

.flow-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.flow-wires path {
  fill: none;
  stroke: var(--node-line);
  stroke-width: 2;
  stroke-linecap: round;
  transition: stroke 240ms ease;
}

.flow-wires path.is-run {
  stroke: var(--mark);
  stroke-dasharray: 5 7;
  animation: wire-run 480ms linear infinite;
}

.flow-wires path.is-done {
  stroke: var(--ok);
}

.flow-wires circle {
  fill: var(--mark);
}

@keyframes wire-run {
  to { stroke-dashoffset: -12; }
}

.flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: auto auto;
  align-items: center;
  gap: 1rem clamp(2.5rem, 5vw, 4.75rem);
}

.node {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.8rem;
  padding: 1rem;
  border: 1.5px solid var(--node-line);
  border-radius: var(--radius);
  background: var(--node);
  transition: opacity 320ms ease, border-color 240ms ease, box-shadow 240ms ease, transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.node:nth-child(1) { grid-area: 1 / 1 / 3 / 2; }
.node:nth-child(2) { grid-area: 1 / 2 / 3 / 3; }
.node:nth-child(3) { grid-area: 1 / 3 / 3 / 4; }
.node:nth-child(4) { grid-area: 1 / 4 / 2 / 5; }
.node:nth-child(5) { grid-area: 2 / 4 / 3 / 5; }

.node-icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 9px;
  background: rgb(255 255 255 / 0.1);
  color: var(--night-ink);
  transition: background-color 240ms ease, color 240ms ease;
}

.node-text {
  min-width: 0;
  hyphens: auto;
}

.node-text strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.node-text span {
  display: block;
  margin-top: 0.3rem;
  color: var(--night-muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.node-state {
  position: absolute;
  top: -0.55rem;
  right: -0.55rem;
  display: none;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
}

/* Only dim the nodes once the script is running; without it they all read as done. */
.is-live .node {
  opacity: 0.4;
}

.is-live .node.is-run,
.is-live .node.is-done {
  opacity: 1;
}

.node.is-run {
  border-color: var(--mark);
  box-shadow: 0 0 0 5px rgb(255 228 92 / 0.16);
  transform: translateY(-3px);
}

.node.is-run .node-icon {
  background: var(--mark);
  color: var(--mark-ink);
}

.node.is-run .node-state {
  display: block;
  border: 2.5px solid var(--mark);
  border-top-color: transparent;
  background: var(--stage);
  animation: turn 700ms linear infinite;
}

.node.is-done {
  border-color: rgb(90 214 143 / 0.55);
}

.node.is-done .node-state {
  display: grid;
  place-items: center;
  background: var(--ok);
  animation: pop 260ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.node.is-done .node-state::after {
  content: "";
  width: 0.34rem;
  height: 0.62rem;
  margin-top: -0.12rem;
  border: solid #06210f;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

@keyframes turn {
  to { transform: rotate(360deg); }
}

@keyframes pop {
  from { transform: scale(0.3); }
}

.flow-note {
  padding: 0.95rem clamp(1.25rem, 3.2vw, 2.75rem) 1.1rem;
  background: rgb(255 255 255 / 0.04);
  color: var(--night-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

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

.band {
  padding: clamp(3.5rem, 9vw, 7rem) 0;
}

.is-tint {
  background: var(--tint);
}

h2 {
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h3 {
  font-weight: 650;
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.head {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: end;
  gap: 1rem clamp(2rem, 6vw, 5rem);
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.head p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.5;
  text-wrap: pretty;
}

/* Gain */
.gain {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: 2.5rem clamp(2rem, 7vw, 6rem);
}

.gain-figure {
  margin-top: 1.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.gain-figure b {
  display: block;
  color: var(--accent);
  font-weight: 800;
  font-size: clamp(5.5rem, 15vw, 12rem);
  line-height: 0.82;
  letter-spacing: -0.07em;
}

.gain-figure span {
  display: block;
  margin-top: 0.6rem;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
}

.gain-text {
  max-width: 26rem;
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.gain-list {
  display: grid;
  gap: 1.6rem;
}

.gain-list li {
  position: relative;
  padding-left: 2.6rem;
}

.gain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--mark);
}

.gain-list li::after {
  content: "";
  position: absolute;
  left: 0.56rem;
  top: 0.36rem;
  width: 0.36rem;
  height: 0.68rem;
  border: solid var(--mark-ink);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.gain-list h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.gain-list p {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Most used automations: what happens, what you get. */
.pairs {
  display: grid;
  gap: 0.5rem;
}

.pairs li {
  display: grid;
  grid-template-columns: minmax(0, 19rem) auto minmax(0, 1fr);
  align-items: baseline;
  gap: 0.4rem 1.5rem;
  padding: 1.15rem 1.5rem;
  border-radius: var(--radius);
  background: var(--bg);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pairs li:hover {
  transform: translateX(6px);
}

.pairs li::before {
  content: "→";
  grid-column: 2;
  grid-row: 1;
  color: var(--accent);
  font-weight: 700;
}

.pairs h3 {
  grid-column: 1;
  grid-row: 1;
}

.pairs p {
  grid-column: 3;
  grid-row: 1;
  color: var(--muted);
}

.more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 3rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.more p {
  flex: 1 1 24rem;
  max-width: 44rem;
  font-size: 1.05rem;
}

/* Steps: a line that fills as you scroll past the three stations */
.path {
  position: relative;
}

.path-line {
  position: absolute;
  top: 1.75rem;
  left: 0;
  right: 0;
  height: 4px;
  margin-top: -2px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}

.path-line i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(var(--p, 1));
  transform-origin: left center;
}

.path-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem clamp(1.5rem, 4vw, 3.5rem);
}

.path-n {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 8px var(--bg);
  font-weight: 750;
  font-size: 1.4rem;
  transition: background-color 300ms ease, color 300ms ease, transform 400ms cubic-bezier(0.2, 1.5, 0.4, 1);
}

.path-step h3 {
  margin-top: 1.4rem;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  letter-spacing: -0.035em;
}

.path-step p {
  max-width: 22rem;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 1.1rem;
  text-wrap: pretty;
}

.path-step .path-meta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.3rem 0.7rem;
  border-radius: 99px;
  background: var(--mark);
  color: var(--mark-ink);
  font-size: 0.85rem;
  font-weight: 650;
}

/* Stations wait only when the script is there to wake them. */
.is-live .path-step > :not(.path-n) {
  opacity: 0.25;
  transform: translateY(10px);
  transition: opacity 500ms ease, transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.is-live .path-step:not(.is-on) .path-n {
  background: var(--tint);
  color: var(--muted);
  transform: scale(0.85);
}

.is-live .path-step.is-on > :not(.path-n) {
  opacity: 1;
  transform: none;
}

.after {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 0.75rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.after-label {
  align-self: center;
  padding-right: 1.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
}

.after-item {
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius);
  background: var(--tint);
}

.after-item p {
  margin-top: 0.25rem;
  color: var(--muted);
}

/* Lists of things that open */
.groups {
  display: grid;
  gap: 0.5rem;
}

summary {
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

.chev {
  width: 0.6rem;
  height: 0.6rem;
  margin: 0 0.25rem 0.2rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 200ms ease;
}

details[open] > summary .chev {
  transform: translateY(0.25rem) rotate(-135deg);
}

/* Data protection: two big promises, four smaller ones */
.vault {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.vault-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
  border-radius: var(--radius);
  background: var(--bg);
}

.vault-card p {
  margin-top: 0.4rem;
  color: var(--muted);
  text-wrap: pretty;
}

.vault-card.is-big {
  grid-column: span 2;
  min-height: 17rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--night);
  color: var(--night-ink);
}


.vault-card.is-big h3 {
  margin-top: auto;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  letter-spacing: -0.03em;
}

.vault-card.is-big p {
  max-width: 30rem;
  color: var(--night-muted);
  font-size: 1.05rem;
}

.vault-card.is-big .vault-k {
  max-width: none;
  margin: 0 0 1.5rem;
  color: var(--mark);
  font-weight: 800;
  font-size: clamp(4.5rem, 9vw, 8rem);
  line-height: 0.82;
  letter-spacing: -0.06em;
}

.vault-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.1rem;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
}

.vault-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  align-items: start;
  gap: 2rem clamp(2rem, 6vw, 5rem);
}

.about-photo img {
  display: block;
  width: 100%;
  max-width: 24rem;
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  object-fit: cover;
  object-position: 50% 18%;
}

.about-lead {
  max-width: 42rem;
  margin-top: 1.25rem;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.4;
  text-wrap: pretty;
}

.points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 2rem;
}

.points li {
  padding: 1.1rem 1.2rem 1.2rem;
  border-radius: var(--radius);
  background: var(--tint);
}

.points b {
  display: block;
  color: var(--accent);
  font-weight: 750;
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.points span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  line-height: 1.4;
}

.about-who {
  margin-top: 2rem;
}

.about-who p {
  max-width: 42rem;
  margin-top: 0.4rem;
  color: var(--muted);
}

.about-who p + p {
  margin-top: 1rem;
}

.link {
  color: var(--accent);
  font-weight: 650;
  text-underline-offset: 0.2em;
}

/* Tiles arrive one after the other. */
.vault[data-reveal].is-waiting,
.points[data-reveal].is-waiting {
  opacity: 1;
  transform: none;
}

.vault.is-waiting > li,
.points.is-waiting > li {
  opacity: 0;
  transform: translateY(18px) scale(0.94);
}

.vault.is-in > li,
.points.is-in > li {
  transition: opacity 500ms ease, transform 600ms cubic-bezier(0.2, 1.3, 0.4, 1);
}

.vault.is-in > li:nth-child(2),
.points.is-in > li:nth-child(2) { transition-delay: 80ms; }
.vault.is-in > li:nth-child(3),
.points.is-in > li:nth-child(3) { transition-delay: 160ms; }
.vault.is-in > li:nth-child(4),
.points.is-in > li:nth-child(4) { transition-delay: 240ms; }
.vault.is-in > li:nth-child(5),
.points.is-in > li:nth-child(5) { transition-delay: 320ms; }
.vault.is-in > li:nth-child(6),
.points.is-in > li:nth-child(6) { transition-delay: 400ms; }

/* Questions */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  align-items: start;
  gap: 1.5rem clamp(2rem, 7vw, 6rem);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0;
}

.faq-list details:first-child summary {
  padding-top: 0.3rem;
}

.faq-list p {
  max-width: 44rem;
  padding-bottom: 1.3rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- Contact ---------- */

.end {
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
  background: var(--night);
  color: var(--night-ink);
}

.end-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: start;
  gap: 2.5rem clamp(2rem, 7vw, 6rem);
}

.end-copy p {
  max-width: 30rem;
  margin-top: 1.1rem;
  color: var(--night-muted);
  font-size: 1.15rem;
}

.end-mail {
  color: var(--night-ink);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  letter-spacing: -0.03em;
  text-decoration-color: var(--mark);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.22em;
  overflow-wrap: anywhere;
}

.end-copy .btn {
  margin-top: 1.75rem;
}

.contact {
  display: grid;
  gap: 1rem;
  scroll-margin-top: calc(var(--top) + 1rem);
}

.contact label {
  display: grid;
  gap: 0.4rem;
}

.contact label span {
  color: var(--night-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--node-line);
  border-radius: 10px;
  background: var(--stage);
  color: var(--night-ink);
  font: inherit;
}

.contact input:focus-visible,
.contact textarea:focus-visible {
  outline: 0;
  border-color: var(--mark);
}

.contact textarea {
  min-height: 9rem;
  resize: vertical;
}

.contact button {
  justify-self: start;
}

.contact button:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-note {
  color: var(--mark);
  font-weight: 600;
}

.form-note:empty {
  display: none;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.foot {
  padding: 0 0 2.5rem;
  background: var(--night);
  color: var(--night-muted);
  font-size: 0.92rem;
}

.foot-row,
.foot-row p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
}

.foot-row {
  justify-content: space-between;
}

.foot a {
  text-underline-offset: 0.2em;
}

.foot a:hover {
  color: var(--night-ink);
}

/* ---------- Footnote ---------- */

.star {
  margin-left: 0.1em;
  color: var(--muted);
  text-decoration: none;
}

.foot-note {
  max-width: 62rem;
  margin-bottom: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  font-size: 0.85rem;
  line-height: 1.5;
  scroll-margin-top: calc(var(--top) + 2rem);
}

/* ---------- CV ---------- */

.cv-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  align-items: center;
  gap: 2rem clamp(2rem, 6vw, 5rem);
}

.cv-claim {
  max-width: 22ch;
  margin-top: 1.25rem;
  font-weight: 650;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.cv-intro .hero-lede {
  margin-top: 1rem;
  color: var(--night-muted);
}

.cv-intro .actions {
  margin-top: 1.75rem;
}

.cv-photo img {
  display: block;
  width: 100%;
  max-width: 22rem;
  height: auto;
  margin-left: auto;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  object-fit: cover;
  object-position: 50% 18%;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.chips li {
  padding: 0.45rem 0.8rem;
  border-radius: 9px;
  background: var(--node);
  color: var(--night-muted);
  font-size: 0.9rem;
  font-weight: 550;
}

.line {
  display: grid;
  gap: 0.5rem;
}

.entry {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 0.3rem 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: var(--tint);
}

.entry.is-now {
  background: var(--night);
  color: var(--night-ink);
}

.when {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.entry.is-now .when {
  color: var(--mark);
}

.where {
  color: var(--muted);
  font-size: 0.95rem;
}

.entry.is-now .where,
.entry.is-now p {
  color: var(--night-muted);
}

.entry.is-now .when {
  color: var(--mark);
}

.entry h3 + .where {
  margin-top: 0.15rem;
}

.entry .where + p {
  max-width: 48rem;
  margin-top: 0.6rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 2.4vw, 1.9rem);
  border-radius: var(--radius);
  background: var(--bg);
}

.card-tag {
  align-self: start;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  background: var(--mark);
  color: var(--mark-ink);
  font-size: 0.78rem;
  font-weight: 650;
}

.card h3 {
  margin-top: 1rem;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  letter-spacing: -0.03em;
}

.card .where {
  margin-top: 0.2rem;
}

.card .where + p {
  margin: 0.8rem 0 1.25rem;
  color: var(--muted);
  text-wrap: pretty;
}

.card-link {
  margin-top: auto;
}

/* References, quoted in full */
.reference {
  border-radius: var(--radius);
  background: var(--bg);
}

.reference-head {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem 1.25rem;
  padding: 1.1rem 1.5rem;
  border-radius: var(--radius);
}

/* The marks are dark on transparent, so they sit on white in both themes. */
.reference-logo {
  width: 100%;
  height: 3rem;
  padding: 0.5rem 0.6rem;
  border-radius: 9px;
  background: #ffffff;
  object-fit: contain;
}

.reference-chevron {
  width: 0.6rem;
  height: 0.6rem;
  margin: 0 0.25rem 0.2rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 200ms ease;
}

.reference[open] .reference-chevron {
  transform: translateY(0.25rem) rotate(-135deg);
}

.reference-body {
  max-width: 50rem;
  padding: 0.25rem 1.5rem 1.5rem;
  color: var(--muted);
}

.reference-body p + p,
.reference-body ul + p,
.reference-body ul {
  margin-top: 0.85rem;
}

.reference-body ul {
  padding-left: 1.2rem;
  list-style: disc;
}

.reference-body li + li {
  margin-top: 0.25rem;
}

/* ---------- Legal pages and 404 ---------- */

.legal {
  max-width: 46rem;
  padding-block: clamp(2.5rem, 7vw, 5rem);
}

.legal h1 {
  margin-bottom: 1.25rem;
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.legal h2 {
  margin: 2.25rem 0 0.6rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.legal p + p,
.legal address + p {
  margin-top: 0.8rem;
}

.legal address {
  font-style: normal;
}

.legal a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

.legal + .foot {
  padding-top: 2.5rem;
}

.missing {
  display: grid;
  align-items: center;
  min-height: 100vh;
  background: var(--night);
  color: var(--night-ink);
}

.missing h1 {
  max-width: 14ch;
  margin-bottom: 2rem;
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.missing h1 em {
  color: var(--mark);
  font-style: normal;
}

.missing .btn {
  background: var(--mark);
  color: var(--mark-ink);
}

/* ---------- Motion ---------- */

[data-reveal].is-waiting {
  opacity: 0;
  transform: translateY(20px);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- Narrower screens ---------- */

@media (max-width: 1100px) {
  /* The menu drops down from the bar. */
  .menu-btn {
    display: grid;
  }

  .top-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    margin: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--night);
    box-shadow: 0 24px 40px rgb(0 0 0 / 0.35);
  }

  .top.is-open .top-menu {
    display: grid;
    gap: 1.25rem;
    justify-content: stretch;
  }

  .top-nav {
    display: grid;
    margin: 0;
    padding: 0;
    background: none;
  }

  .top-nav a {
    padding: 0.7rem 0;
    border-radius: 0;
    color: var(--night-ink);
    font-size: 1.35rem;
    letter-spacing: -0.02em;
  }

  .top-nav a.is-here {
    background: none;
    color: var(--mark);
  }

  /* The workflow turns from a row into a column; the two results share the last row. */
  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 2rem 0.9rem;
    max-width: 34rem;
    margin-inline: auto;
  }

  .node:nth-child(n) {
    grid-area: auto;
  }

  .node:nth-child(-n + 3) {
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }
}

@media (max-width: 900px) {
  .head,
  .gain,
  .about,
  .faq,
  .end-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-side {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  /* The line turns upright and runs down the left edge. */
  .path-line {
    top: 0;
    bottom: 0;
    left: 1.75rem;
    right: auto;
    width: 4px;
    height: auto;
    margin: 0 0 0 -2px;
  }

  .path-line i {
    transform: scaleY(var(--p, 1));
    transform-origin: center top;
  }

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

  .path-step {
    position: relative;
    min-height: 3.5rem;
    padding-left: 5rem;
  }

  .path-n {
    position: absolute;
    top: 0;
    left: 0;
  }

  .path-step h3 {
    margin-top: 0.55rem;
  }

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

  .vault {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vault-card.is-big {
    min-height: 14rem;
  }

  .pairs li {
    grid-template-columns: minmax(0, 1fr);
    padding: 1rem 1.2rem;
  }

  .pairs li::before {
    display: none;
  }

  .pairs h3,
  .pairs p {
    grid-column: 1;
    grid-row: auto;
  }

  .pairs li:hover {
    transform: none;
  }

  .about-photo img {
    max-width: 16rem;
  }

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

  .cv-photo {
    order: -1;
  }

  .cv-photo img {
    max-width: 11rem;
    margin-left: 0;
    aspect-ratio: 1;
  }

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

  .entry {
    grid-template-columns: minmax(0, 1fr);
    padding: 1.1rem 1.2rem;
  }
}

@media (max-width: 640px) {
  .actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

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

  .vault-card.is-big {
    grid-column: auto;
  }

  .points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reference-head {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 1rem 1.2rem;
  }

  .reference-logo {
    grid-column: 1 / -1;
    width: 6.5rem;
  }

  .reference-body {
    padding-inline: 1.2rem;
  }

  .more .btn {
    flex: 1 1 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .node {
    padding: 0.85rem;
  }

  .flow-tabs button {
    padding: 0.55rem 0.7rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 380px) {
  .btn-small {
    padding-inline: 0.75rem;
  }

  .brand {
    font-size: 1.05rem;
  }
}

/* ---------- Preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal].is-waiting {
    opacity: 1;
    transform: none;
  }

  .btn,
  .node,
  .pairs li,
  .chev {
    transition: none;
  }

  .node.is-done .node-state,
  .flow-wires path.is-run,
  .flow-tabs button.is-playing::after {
    animation: none;
  }
}

@media print {
  .top,
  .flow-tabs,
  .flow-wires,
  .contact {
    display: none;
  }

  .flow-panel[hidden] {
    display: block;
  }
}
