/* Fonts are served from this site, with no request to Google Fonts. */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/SchibstedGrotesk.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
/* One narrow column; a résumé-style grid of mono labels beside short content. */
:root {
  --paper: #F4F5F6;
  --ink: #121418;
  --muted: #69707A;
  --line: #DFE2E6;
  --surface: #FFFFFF;
  --live: #1E9E57;
  --font-sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F1113; --ink: #ECEDEF; --muted: #8B919A; --line: #24272C; --surface: #171A1D; --live: #3CCB7F;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0F1113; --ink: #ECEDEF; --muted: #8B919A; --line: #24272C; --surface: #171A1D; --live: #3CCB7F;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ink); color: var(--paper); }

/* Vertical spacing follows the screen height, so the page fits one screen without scrolling. */
.page {
  max-width: 680px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding-inline: 24px;
  padding-block: calc(clamp(32px, 7vh, 110px) + env(safe-area-inset-top, 0px)) calc(clamp(24px, 4vh, 40px) + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 6vh, 88px);
}
.page > .footer { margin-top: auto; }

/* Header */
.id { display: flex; align-items: center; gap: 12px; }
.mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  font: 500 12px/1 var(--font-mono); letter-spacing: .04em;
  flex: none;
}
.name { font-weight: 600; font-size: 16px; line-height: 1.2; margin: 0; }
.role { color: var(--muted); font-size: 14px; line-height: 1.3; margin: 2px 0 0; }
h1 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(34px, 6.4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.032em;
  margin: clamp(20px, 3.6vh, 52px) 0 0;
  max-width: 15ch;
  text-wrap: balance;
}

/* Label / content rows */
.rows { display: flex; flex-direction: column; gap: clamp(20px, 3.4vh, 44px); }
.row {
  position: relative;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 24px;
  padding-top: clamp(12px, 1.8vh, 20px);
}
.row::before,
.footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--line);
  transform-origin: left center;
}
.label {
  margin: 0;
  padding-top: 3px;
  font: 500 11.5px/1.4 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
  display: flex; align-items: center; align-self: start; gap: 8px;
}
.content { min-width: 0; display: flex; flex-direction: column; gap: clamp(12px, 1.8vh, 18px); }
.content p { margin: 0; max-width: 58ch; }
.quiet { color: var(--muted); }

/* Now */
.dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--live); flex: none; }
.dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--live);
  animation: ping 2.4s ease-out 1.8s infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(3); opacity: 0; } }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 18px; line-height: 1.35; letter-spacing: -0.01em; }

/* Before */
.stats { display: flex; flex-wrap: wrap; gap: 20px 44px; margin: 0; }
.stat { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.stat dd {
  margin: 0;
  font-weight: 500;
  font-size: 32px; line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat dt {
  order: 2;
  font: 500 11px/1.4 var(--font-mono);
  text-transform: uppercase; letter-spacing: .09em; color: var(--muted);
}

/* Worked with */
.brands { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.brands li { font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }

/* Contact */
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.email {
  font-size: 20px; font-weight: 500; letter-spacing: -0.015em; overflow-wrap: anywhere;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.email:hover { background-size: 100% 1px; }
.copy {
  font: 500 12px/1 var(--font-mono); letter-spacing: .04em;
  color: var(--ink); background: transparent;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 12px; cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.copy:hover { background: var(--surface); border-color: var(--muted); }
.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.socials a {
  text-decoration: underline; text-decoration-color: var(--line);
  text-decoration-thickness: 1px; text-underline-offset: 4px;
  transition: text-decoration-color .2s ease;
}
.socials a:hover { text-decoration-color: var(--ink); }
.socials a span { color: var(--muted); margin-left: 2px; }

/* Footer */
.footer {
  position: relative;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-top: 20px;
  font: 400 12px/1.5 var(--font-mono); color: var(--muted);
}
.footer nav { display: flex; gap: 20px; }
.footer a { text-decoration: none; transition: color .2s ease; }
.footer a:hover, .footer a[aria-current="page"] { color: var(--ink); }

/* Legal pages */
.back { font: 500 12px/1.4 var(--font-mono); letter-spacing: .04em; color: var(--muted); text-decoration: none; transition: color .2s ease; }
.back:hover { color: var(--ink); }
.legal-title { font-size: clamp(30px, 5vw, 40px); margin-top: 0; }
.legal { display: flex; flex-direction: column; gap: 28px; max-width: 58ch; }
.legal h2 { margin: 0 0 6px; font: 500 11.5px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.legal p { margin: 0; }

/* Desktop screens too short for the single column (most laptops and 1080p monitors):
   name and headline on the left, the rows on the right, footer across the bottom. */
@media (min-width: 960px) and (max-height: 1220px) {
  .page {
    max-width: 1180px;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: 1fr auto;
    column-gap: clamp(40px, 6vw, 128px);
    row-gap: clamp(28px, 5vh, 56px);
  }
  .row { grid-template-columns: 112px minmax(0, 1fr); }
  .page > header { grid-area: 1 / 1; }
  .page > .rows { grid-area: 1 / 2; }
  .page > .footer { grid-area: 2 / 1 / 3 / 3; margin-top: 0; }
}
@media (min-width: 960px) and (max-width: 1200px) and (max-height: 1220px) {
  .brands { gap: 10px 22px; }
  .brands li { font-size: 14px; }
}

@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; gap: 14px; }
  .list { font-size: 17px; }
}

/* Load-in motion: words, rows and lines rise out of a soft blur in one sequence.
   Each element sets --t (ms). Playback waits for the fonts (see site.js) so nothing re-flows mid-animation. */
@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 14px, 0); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes word {
  from { opacity: 0; transform: translate3d(0, .38em, 0); filter: blur(10px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes draw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.rv { animation: rise 1s var(--ease) both; animation-delay: calc(var(--t, 0) * 1ms); }
.w  { display: inline-block; animation: word 1.15s var(--ease) both; animation-delay: calc(var(--t, 0) * 1ms); }
.row::before, .footer::before { animation: draw 1.4s var(--ease) both; animation-delay: calc(var(--t, 0) * 1ms); }

.js .rv, .js .w, .js .row::before, .js .footer::before { animation-play-state: paused; }
.js.ready .rv, .js.ready .w, .js.ready .row::before, .js.ready .footer::before { animation-play-state: running; }

@media (prefers-reduced-motion: reduce) {
  .rv, .w, .row::before, .footer::before, .dot::after { animation: none !important; }
  * { transition: none !important; }
}
