:root {
  --paper: #f6f6f4;
  --paper-2: #ededea;
  --ink: #121212;
  --ink-2: #4a4a4f;
  --ink-3: #6b6b72;
  --gold: #9a7a48;
  --rule: #d9d9d4;
  --night: #000000;
  --night-2: #141416;
  --night-ink: #f2f2f0;
  --night-ink-2: #a9a9ae;
  --night-rule: #26262b;
  --accent: #2440b3;
  --accent-night: #8fa4ff;
  --ok: #1f7a4a;
  --bad: #b3261e;

  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --sec: clamp(80px, 11vw, 144px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-color: #9a9aa0 var(--paper); scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--accent); }
.hero a:hover, .section-dark a:hover, .site-header a:hover { color: var(--accent-night); }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.section-dark :focus-visible, .hero :focus-visible { outline-color: var(--accent-night); }

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

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.skip:hover { color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--night);
  color: var(--night-ink);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 60px; }
.wordmark { transition: opacity .35s ease, transform .35s ease, visibility 0s 0s; }
.site-header.hide-name .wordmark { opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .25s ease, transform .25s ease, visibility 0s .25s; }
.wordmark { white-space: nowrap; font-weight: 600; font-size: 16px; text-decoration: none; letter-spacing: -.01em; }
.wordmark:hover { color: var(--night-ink); }
.site-header nav { margin-left: auto; }
.nav-list { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.nav-list a { text-decoration: none; color: var(--night-ink-2); transition: color .2s; }
.nav-list a:hover, .nav-list a[aria-current="true"] { color: var(--night-ink); }
.icon-link { color: var(--night-ink-2); display: inline-flex; padding: 6px; margin-right: -6px; }
.icon-link:hover { color: var(--night-ink); }

/* Hero */
.hero { background: var(--night); color: var(--night-ink); overflow: hidden; }
.hero .hero-facts { border-top-color: rgba(255, 255, 255, .14); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  min-height: min(calc(100svh - 60px), 760px);
}
.hero-portrait { margin: 0; align-self: end; justify-self: end; position: relative; order: 2; }
.hero-portrait img {
  width: 100%; height: auto; max-width: 540px;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%), linear-gradient(to right, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to bottom, #000 80%, transparent 100%), linear-gradient(to right, #000 80%, transparent 100%);
          mask-composite: intersect;
  animation: portrait-in 1.4s var(--ease) both;
}
.hero-copy { padding: clamp(40px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero h1 {
  font-size: clamp(3rem, 7.4vw, 6rem);
  line-height: .95;
  letter-spacing: -.04em;
  font-weight: 600;
  margin: 0 0 20px;
  text-wrap: balance;
}
.hero-role { font-size: clamp(1.1rem, 1.6vw, 1.35rem); margin: 0 0 28px; color: var(--night-ink); }
.hero-role a { text-decoration-color: var(--night-ink-2); }
.hero-role a:hover { color: var(--accent-night); }
.hero-bio { color: var(--night-ink-2); max-width: 54ch; margin: 0 0 32px; font-size: 1.06rem; }
.hero-links { display: flex; gap: 28px; align-items: center; margin: 0 0 56px; font-weight: 500; }
.link-strong { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--night-ink); border-bottom: 1px solid var(--night-ink); padding-bottom: 3px; }
.link-strong svg { transition: transform .3s var(--ease); }
.link-strong:hover { color: var(--accent-night); border-color: var(--accent-night); }
.link-strong:hover svg { transform: translateX(3px); }
.link-quiet { color: var(--night-ink-2); text-decoration: none; }
.link-quiet:hover { color: var(--night-ink); }
.hero-facts {
  display: grid; grid-template-columns: repeat(4, auto); justify-content: start;
  gap: 0 40px; margin: 0; padding-top: 20px; border-top: 1px solid var(--night-rule);
}
.hero-facts dt { font-size: 13px; color: var(--night-ink-2); }
.hero-facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }

.hero-copy > * { animation: rise .9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .18s; }
.hero-copy > :nth-child(5) { animation-delay: .24s; }
@keyframes rise { from { opacity: .001; transform: translateY(14px); filter: blur(4px); } }
@keyframes portrait-in { from { opacity: .001; transform: scale(1.04); filter: blur(6px); } }

/* Sections */
.section { padding: var(--sec) 0; }
.section-tint { background: var(--paper-2); }
.section-dark { background: var(--night); color: var(--night-ink); }
h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 600; margin: 0; }
h3 { letter-spacing: -.01em; }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px clamp(24px, 5vw, 72px); }
.split-head { margin-bottom: clamp(40px, 6vw, 64px); align-items: end; }
.section-note { margin: 0; color: var(--ink-2); max-width: 60ch; }
.section-dark .section-note { color: var(--night-ink-2); }

/* Profile */
#profile .split { grid-template-areas: "h prose" ". facts"; }
#profile h2 { grid-area: h; }
.prose { grid-area: prose; max-width: 68ch; }
.prose p { margin: 0 0 1.1em; color: var(--ink-2); }
.prose .lede { font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.35; color: var(--ink); letter-spacing: -.015em; margin-bottom: 1.2em; }
.prose a { color: var(--ink); }
.facts { grid-area: facts; margin: 24px 0 0; border-top: 1px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--ink-3); font-size: 15px; }
.facts dd { margin: 0; font-size: 15px; }

/* Awards */
.awards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.awards li { padding: 28px 24px 32px; border-bottom: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.awards li:nth-child(4n+1) { border-left: 0; }
.awards li { text-align: center; }
.aw-icon { display: block; color: var(--gold); margin: 0 auto 20px; }
.aw-meta { margin: 0 0 6px; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.awards h3 { margin: 0 0 8px; font-size: 1.125rem; font-weight: 600; line-height: 1.25; }
.awards h3 + p { margin: 0 auto; max-width: 30ch; font-size: 15px; color: var(--ink-2); }

/* Clients */
.logos {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--rule); border-left: 1px solid var(--rule);
}
.logos li { min-width: 0; display: grid; place-items: center; height: clamp(84px, 9vw, 116px); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 0 16%; }
.logos img {
  max-height: clamp(26px, 3.2vw, 42px); width: auto; max-width: 100%; min-width: 0; object-fit: contain;
  filter: grayscale(1) contrast(1.1);
  mix-blend-mode: multiply; opacity: .72;
  transition: opacity .3s, filter .3s;
}
.logos li:hover img { opacity: 1; }


/* Talks */
.talks { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.player { position: sticky; top: 84px; }
.player-frame, .player-poster {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0;
  background: var(--night-2); overflow: hidden; border-radius: 4px; cursor: pointer; color: #fff;
}
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .4s; }
.player-poster:hover img { transform: scale(1.025); }
.player-poster.is-photo { cursor: default; }
.player .play {
  position: absolute; left: 24px; bottom: 24px; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; background: var(--night); color: #fff; border: 1px solid rgba(255,255,255,.7);
  transition: transform .3s var(--ease), background .3s;
}
.player-poster:hover .play { transform: scale(1.06); background: var(--accent); border-color: var(--accent); }
.player-poster.is-photo .play { display: none; }
.player-meta { padding-top: 18px; }
.player-kind { margin: 6px 0 0; font-size: 14px; color: var(--night-ink-2); }
.player-meta h3 { margin: 0; font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 600; line-height: 1.25; text-wrap: balance; }
.player-meta a { color: var(--accent-night); font-size: 15px; display: inline-block; margin-top: 8px; }

.pl-group + .pl-group { margin-top: 28px; }
.pl-head { font-size: 14px; font-weight: 500; color: var(--night-ink-2); margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--night-rule); }
.playlist ul { list-style: none; margin: 0; padding: 0; }
.pl-item {
  width: 100%; display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center;
  background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer;
  padding: 10px 8px; margin: 0 -8px; width: calc(100% + 16px); border-radius: 4px;
  transition: background-color .2s;
}
.pl-item img { width: 112px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; opacity: .9; transition: opacity .25s; }
.pl-item b { display: block; font-weight: 500; font-size: 15px; line-height: 1.35; }
.pl-item small { display: block; font-size: 13px; color: var(--night-ink-2); margin-top: 2px; }
.pl-item:hover { background: var(--night-2); }
.pl-item:hover img, .pl-item.is-active img { opacity: 1; }
.pl-item.is-active { background: var(--night-2); }
.pl-item.is-active img { outline: 1px solid var(--accent-night); outline-offset: 2px; }

/* Contact */
#contact .split { align-items: start; }
.contact-note { color: var(--ink-2); max-width: 36ch; margin: 20px 0 12px; }
.contact-alt { color: var(--ink-2); margin: 0; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; }
.opt { color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--rule); border-radius: 4px;
  padding: 12px 14px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
  caret-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23121212' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b9b9b3; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.field [aria-invalid="true"] { border-color: var(--bad); }
.err { margin: 0; font-size: 14px; color: var(--bad); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.btn {
  font: inherit; font-weight: 500; font-size: 16px; cursor: pointer;
  background: var(--ink); color: #fff; border: 0; border-radius: 4px; padding: 14px 24px;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background-color .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn.is-loading::after { content: ""; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { margin: 0; font-size: 15px; }
.form-status.ok { color: var(--ok); }
.form-status.bad { color: var(--bad); }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 28px 0; font-size: 14px; color: var(--ink-3); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--ink-2); }

/* Responsive */
@media (max-width: 960px) {
  .talks { grid-template-columns: minmax(0, 1fr); }
  .player { position: static; }
  .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .nav-list { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-portrait { order: 2; justify-self: center; width: min(86%, 380px); margin-top: -8px; }
  .hero-copy { padding-bottom: 8px; }
  .hero-facts { grid-template-columns: repeat(2, auto); gap: 16px 40px; }
  .hero-links { margin-bottom: 40px; }
  .split { grid-template-columns: minmax(0, 1fr); }
  #profile .split { grid-template-areas: "h" "prose" "facts"; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-item { grid-template-columns: 96px 1fr; gap: 12px; }
  .pl-item img { width: 96px; }
}

@media (max-width: 960px) {
  .awards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .awards li:nth-child(4n+1) { border-left: 1px solid var(--rule); }
  .awards li:nth-child(2n+1) { border-left: 0; }
}
@media (max-width: 560px) {
  .awards { grid-template-columns: minmax(0, 1fr); }
  .awards li, .awards li:nth-child(4n+1) { border-left: 0; padding: 22px 0 24px; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 16px; text-align: left; }
  .awards h3 + p { margin: 0; max-width: none; }
  .awards li > * { grid-column: 2; }
  .awards li > .aw-icon { grid-column: 1; grid-row: 1 / span 3; margin: 2px 0 0; }
}
@media (max-width: 640px) {
  .logos li { height: 76px; }
}

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