/* =====================================================================
   Tokens
   ===================================================================== */
:root {
  --paper: #EDEDE9;
  --paper-deep: #DFDFD9;
  --paper-light: #F7F7F4;
  --ink: #161616;
  --black: #000000;
  --charcoal: #2A2A29;
  --graphite: #62625E;
  --rule: #C6C6C0;

  --inv-muted: #8F8F8A;
  --inv-rule: #333331;

  --accent: #2F3FD6;          /* used sparingly: focus, active filter, TK notes */

  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;

  --gutter: clamp(20px, 3.2vw, 44px);
  --edge: clamp(20px, 4vw, 64px);
  --nav-h: 64px;

  --ease: cubic-bezier(.2, .7, .1, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

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

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

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

.shell {
  width: 100%;
  max-width: 1480px;
  margin-inline: auto;
  padding-inline: var(--edge);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  padding: 10px 14px; background: var(--black); color: var(--paper);
  transform: translateY(-160%); transition: transform .2s;
}
.skip:focus { transform: none; }

/* Placeholder marker ("TK" = to come) */
.tk {
  display: inline-block;
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--accent);
  border: 1px dashed currentColor;
  padding: .2em .5em;
  vertical-align: middle;
}
.mara .tk { color: #8E98FF; }

.eyebrow {
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--graphite);
}
.eyebrow--inverse { color: var(--inv-muted); }

/* =====================================================================
   Navigation
   ===================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .4s, color .4s;
}
.nav.is-scrolled { border-bottom-color: var(--rule); }
.nav.is-dark { background: var(--black); color: var(--paper); border-bottom-color: var(--inv-rule); }

.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__mark {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
}
.nav__links { display: flex; gap: clamp(16px, 2.6vw, 36px); }
.nav__links a {
  font-size: .9375rem;
  text-decoration: none;
  padding-block: 6px;
  background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 0 1px;
  transition: background-size .35s var(--ease);
}
.nav__links a:hover,
.nav__links a[aria-current="true"] { background-size: 100% 1px; }

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding-top: clamp(40px, 8vh, 96px);
  padding-bottom: clamp(32px, 6vh, 64px);
}

.hero__title {
  font-weight: 500;
  font-size: clamp(3.1rem, 10.2vw, 10.75rem);
  line-height: .9;
  letter-spacing: -.052em;
  max-width: 14ch;
  text-wrap: pretty;
  margin-left: -.04em;
}

/* Words start slightly out of order and settle into place */
.hero__title .w {
  display: inline-block;
  white-space: nowrap;
  transition:
    transform 1.25s var(--ease),
    opacity 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.hero__title.is-unresolved .w {
  transform: translate(var(--dx), var(--dy)) rotate(var(--r));
  opacity: .12;
  transition: none;
}

.hero__foot {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  align-items: end;
  row-gap: 32px;
}
.hero__cta {
  grid-column: 1 / span 4;
  font-size: 1.125rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  gap: .5em;
  align-self: end;
  justify-self: start;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
}
.hero__cta span { transition: transform .4s var(--ease); }
.hero__cta:hover span { transform: translateY(4px); }

.hero__copy {
  grid-column: 7 / -1;
  max-width: 38ch;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  line-height: 1.38;
  color: var(--charcoal);
}

/* =====================================================================
   Section label (hairline + name)
   ===================================================================== */
.section-label {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--graphite);
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  margin-bottom: clamp(40px, 6vw, 80px);
}

/* =====================================================================
   About
   ===================================================================== */
.about { padding-block: clamp(80px, 12vw, 180px) clamp(80px, 11vw, 160px); }

.about__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  row-gap: 48px;
  align-items: start;
}

.about__portrait { grid-column: 1 / span 4; }
.about__portrait img {
  width: 100%;
  height: auto;              /* keeps the photo's own proportions */
  background: var(--paper-deep);
}
.about__portrait.is-empty {
  aspect-ratio: 4 / 5;
  background: var(--paper-deep);
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.about__text { grid-column: 6 / -1; }
.about__lead {
  font-size: clamp(1.75rem, 3.3vw, 3rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.028em;
  max-width: 20ch;
  margin-bottom: clamp(28px, 4vw, 48px);
  text-wrap: balance;
}

.prose {
  font-family: var(--serif);
  font-size: clamp(1.1875rem, 1.35vw, 1.3125rem);
  line-height: 1.55;
  color: var(--charcoal);
  max-width: 60ch;
}
.prose p + p { margin-top: 1em; }

.facts {
  margin-top: clamp(72px, 9vw, 128px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: var(--gutter);
  row-gap: 40px;
}
.facts__item { border-top: 1px solid var(--ink); padding-top: 16px; }
.facts dt {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.05;
}
.facts dd {
  margin-top: 10px;
  font-size: .9375rem;
  color: var(--graphite);
  max-width: 24ch;
}

/* Before and beside MARA */
.path {
  margin-top: clamp(72px, 9vw, 128px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  row-gap: 56px;
}
.path__item { grid-column: span 6; border-top: 1px solid var(--rule); padding-top: 18px; }
.path__label { font-size: .9375rem; color: var(--graphite); margin-bottom: clamp(20px, 3vw, 36px); }
.path__title {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.02;
  margin-bottom: 18px;
}
.path__body {
  font-family: var(--serif);
  font-size: clamp(1.125rem, 1.3vw, 1.25rem);
  line-height: 1.55;
  color: var(--charcoal);
  max-width: 48ch;
}
.path__link {
  display: inline-block;
  margin-top: 20px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
}
.path__link span[aria-hidden] { display: inline-block; transition: transform .4s var(--ease); }
.path__link:hover span[aria-hidden] { transform: translate(2px, -2px); }

/* =====================================================================
   MARA case study
   ===================================================================== */
.mara {
  background: var(--black);
  color: var(--paper);
  padding-block: clamp(96px, 13vw, 200px) clamp(96px, 12vw, 180px);
}

.mara__title {
  margin-top: 28px;
  font-size: clamp(2.75rem, 8.2vw, 8.5rem);
  font-weight: 500;
  line-height: .93;
  letter-spacing: -.048em;
  max-width: 12ch;
  text-wrap: balance;
}

.mara__intro {
  margin-top: clamp(56px, 8vw, 112px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  row-gap: 48px;
  align-items: start;
}
.mara__lede {
  grid-column: 1 / span 7;
  font-family: var(--serif);
  font-size: clamp(1.3125rem, 2vw, 1.75rem);
  line-height: 1.4;
  max-width: 44ch;
}
.mara__meta {
  grid-column: 9 / -1;
  font-size: .9375rem;
}
.mara__meta div {
  display: grid;
  grid-template-columns: 6.5em 1fr;
  gap: 16px;
  padding-block: 12px;
  border-top: 1px solid var(--inv-rule);
}
.mara__meta div:last-child { border-bottom: 1px solid var(--inv-rule); }
.mara__meta dt { color: var(--inv-muted); }

.lines { margin-top: clamp(80px, 10vw, 150px); }
.lines__label { font-size: .9375rem; color: var(--inv-muted); margin-bottom: 20px; }
.lines__list {
  display: flex;
  flex-wrap: wrap;
  font-size: clamp(1.75rem, 4.3vw, 4.25rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.035em;
}
.lines__list li { white-space: nowrap; }
.lines__point {
  margin-top: clamp(36px, 4vw, 56px);
  font-family: var(--serif);
  font-size: clamp(1.3125rem, 2vw, 1.75rem);
  line-height: 1.35;
  color: #B4B4AE;
  max-width: 42ch;
}
.lines__list li + li::before {
  content: "/";
  color: #4A4A48;
  margin-inline: .28em;
  font-weight: 300;
}

/* Timeline */
.timeline {
  --line: 0;
  margin-top: clamp(96px, 11vw, 160px);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: var(--gutter);
  position: relative;
  padding-top: 44px;
}
.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 5px;
  height: 1px;
  background: var(--inv-rule);
}
.timeline::after {
  background: var(--paper);
  transform-origin: left;
  transform: scaleX(var(--line));
  transition: transform 2.2s var(--ease);
}
.timeline.is-in { --line: 1; }

.timeline__step { position: relative; }
.timeline__step::before {
  content: "";
  position: absolute;
  top: -44px; left: 0;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--black);
  border: 1px solid var(--inv-muted);
  z-index: 1;
  transition: background-color .4s, border-color .4s;
  transition-delay: calc(var(--i, 0) * .32s + .2s);
}
.timeline.is-in .timeline__step::before { background: var(--paper); border-color: var(--paper); }

.timeline__num {
  display: block;
  font-size: .8125rem;
  color: var(--inv-muted);
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
}
.timeline h3 {
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.timeline p {
  font-size: .9375rem;
  line-height: 1.5;
  color: #B4B4AE;
  max-width: 30ch;
}

.mara__next {
  display: inline-block;
  margin-top: clamp(96px, 12vw, 180px);
  font-size: clamp(2rem, 5.2vw, 4.75rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1;
  text-decoration: none;
  background: linear-gradient(var(--paper), var(--paper)) no-repeat left bottom / 0 2px;
  padding-bottom: 10px;
  transition: background-size .5s var(--ease);
}
.mara__next:hover { background-size: 100% 2px; }
.mara__next span { display: inline-block; margin-left: .2em; transition: transform .5s var(--ease); }
.mara__next:hover span { transform: translateY(8px); }

/* =====================================================================
   Work
   ===================================================================== */
.work { padding-block: clamp(96px, 12vw, 180px) clamp(80px, 10vw, 140px); }

.work__head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  row-gap: 24px;
  align-items: end;
}
.work__title {
  grid-column: 1 / span 8;
  font-size: clamp(3.5rem, 12vw, 12.5rem);
  font-weight: 500;
  line-height: .85;
  letter-spacing: -.06em;
  margin-left: -.05em;
}
.work__copy {
  grid-column: 9 / -1;
  font-family: var(--serif);
  font-size: clamp(1.1875rem, 1.5vw, 1.375rem);
  line-height: 1.4;
  color: var(--charcoal);
  max-width: 30ch;
  padding-bottom: .6em;
}

/* Filters */
.filters {
  position: sticky;
  top: var(--nav-h);
  z-index: 20;
  background: var(--paper);
  margin-top: clamp(48px, 6vw, 88px);
  margin-bottom: clamp(32px, 4vw, 56px);
  padding-block: 14px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 6px clamp(16px, 2.2vw, 30px);
}
.filter {
  font-size: .9375rem;
  color: var(--graphite);
  padding-block: 6px;
  white-space: nowrap;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left bottom / 0 2px;
  transition: color .25s, background-size .35s var(--ease);
}
.filter sup {
  font-size: .6875rem;
  margin-left: 2px;
  font-variant-numeric: tabular-nums;
}
.filter:hover { color: var(--ink); }
.filter[aria-pressed="true"] { color: var(--ink); background-size: 100% 2px; }

/* Even grid: three across, rows aligned */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: var(--gutter);
  row-gap: clamp(44px, 5vw, 72px);
  align-items: start;
}

.card {
  position: relative;
}
.card.is-entering { animation: card-in .6s var(--ease) both; animation-delay: var(--delay, 0s); }
@keyframes card-in { from { opacity: 0; transform: translateY(14px); } }

.card__media {
  position: relative;
  overflow: hidden;
  container-type: inline-size;
  background: var(--paper-deep);
  aspect-ratio: var(--ratio, 4 / 3);
}
.card__media > img,
.card__media > .cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.card:hover .card__media > img,
.card:hover .card__media > .cover { transform: scale(1.025); }

.card__view {
  position: absolute;
  left: 0; bottom: 0;
  z-index: 2;
  background: var(--black);
  color: var(--paper);
  font-size: .8125rem;
  font-weight: 500;
  padding: 9px 14px;
  transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.card:hover .card__view,
.card:focus-within .card__view { transform: none; }

.card__text { padding-top: 18px; }
.card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: .8125rem;
  color: var(--graphite);
  margin-bottom: 8px;
}
.card__ext {
  position: relative;
  z-index: 3;
  text-decoration: none;
  white-space: nowrap;
  color: var(--graphite);
}
.card__ext:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.card__title {
  font-size: clamp(1.1875rem, 1.45vw, 1.375rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.card__link { text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card__link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }

.card__desc {
  margin-top: 8px;
  font-size: .9688rem;
  line-height: 1.45;
  color: var(--charcoal);
  max-width: 52ch;
}
.card__tags { margin-top: 10px; font-size: .8125rem; color: var(--graphite); }

/* One shape for every card, so the grid reads as a grid */
.card__media { --ratio: 16 / 9; }

/* Tall sources: show the top of the artwork rather than its middle */
.card--infographic .card__media > img { object-position: top center; }
.card--interactive:not(.card--featured) .half { font-size: 13cqi; }

/* =====================================================================
   Text covers (used until a real thumbnail is added)
   ===================================================================== */
.cover {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(16px, 2vw, 28px);
  overflow: hidden;
}
.cover__kicker {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .01em;
}
.cover__headline {
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.02;
  text-wrap: balance;
}

/* Document: a page peeking up from below */
.cover--document { background: var(--paper-deep); padding: 0; }
.cover--document .cover__sheet {
  position: absolute;
  left: 13%; right: 13%; top: 14%; bottom: -6%;
  background: var(--paper-light);
  padding: clamp(18px, 2.2vw, 30px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 0 var(--rule), 0 24px 48px -32px rgba(0, 0, 0, .35);
}
.cover--document .cover__kicker { color: var(--graphite); }
.cover--document .cover__headline {
  margin-top: auto;
  margin-bottom: auto;
  font-size: 15cqi;
  letter-spacing: -.05em;
  line-height: .9;
}
.cover--document .cover__foot {
  border-top: 1px solid var(--ink);
  padding-top: 10px;
  margin-bottom: 14%;
  font-family: var(--serif);
  font-size: clamp(.9375rem, 1.1vw, 1.0625rem);
}

/* Press release */
.cover--release { background: var(--black); color: var(--paper); }
.cover--release .cover__kicker { color: var(--inv-muted); border-bottom: 1px solid var(--inv-rule); padding-bottom: 12px; }
.cover--release .cover__headline { font-size: max(1.375rem, 7.4cqi); max-width: 16ch; }
.card--featured .cover--release .cover__headline { max-width: 14ch; }

/* Article */
.cover--article { background: var(--paper-deep); }
.cover--article .cover__kicker { color: var(--graphite); }
.cover--article .cover__headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: max(1.625rem, 8.4cqi);
  letter-spacing: -.015em;
  line-height: 1.04;
}
/* Variants keep a run of articles from looking identical */
.card--v1 .cover--article { background: var(--paper-light); box-shadow: inset 0 0 0 1px var(--rule); flex-direction: column-reverse; }
.card--v2 .cover--article { background: #D0D0C9; }
.card--v2 .cover--article .cover__headline { font-size: max(1.75rem, 10cqi); line-height: .98; }
.card--v1 .cover--release { background: var(--charcoal); }
.card--presentations .cover--article { background: var(--charcoal); color: var(--paper); }
.card--presentations .cover--article .cover__kicker { color: var(--inv-muted); }

/* Video fallback (only if the thumbnail can't load) */
.cover--video { background: var(--charcoal); color: var(--paper); }
.cover--video .cover__kicker { color: var(--inv-muted); }
.cover--video .cover__headline { font-size: 6.4cqi; max-width: 16ch; }

.play {
  position: absolute;
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--black);
  transition: transform .45s var(--ease);
}
.play svg { width: 16px; height: 16px; margin-left: 3px; }
.card:hover .play { transform: scale(1.08); }

/* Interactive: two halves */
.cover--interactive { padding: 0; }
.cover--interactive .half {
  position: absolute;
  left: 0; right: 0;
  display: flex;
  align-items: center;
  padding-inline: clamp(18px, 2.4vw, 36px);
  font-size: 10.5cqi;
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1;
  transition: height .8s var(--ease), top .8s var(--ease);
}
.cover--interactive .half--a { top: 0; height: 50%; background: var(--paper-light); color: var(--ink); }
.cover--interactive .half--b { top: 50%; height: 50%; background: var(--black); color: var(--paper); justify-content: flex-end; }
.card:hover .cover--interactive .half--a { height: 58%; }
.card:hover .cover--interactive .half--b { top: 58%; height: 42%; }
.cover--interactive .cover__kicker {
  position: absolute;
  top: clamp(14px, 1.6vw, 22px);
  left: clamp(18px, 2.4vw, 36px);
  color: var(--graphite);
  z-index: 1;
}

/* Missing image */
.cover--missing {
  background: var(--paper-deep);
  color: var(--graphite);
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  font-size: .875rem;
}
.cover--missing strong { color: var(--ink); font-weight: 500; font-size: 1.125rem; }

/* =====================================================================
   How I think
   ===================================================================== */
.thinking { padding-block: clamp(56px, 7vw, 96px) clamp(96px, 12vw, 180px); }
.thinking__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  row-gap: 40px;
  align-items: start;
}
.thinking__statement {
  grid-column: 1 / span 7;
  font-size: clamp(2.25rem, 4.6vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.045em;
  max-width: 20ch;
  text-wrap: balance;
}
.thinking__body { grid-column: 8 / -1; padding-top: .5em; }

/* =====================================================================
   Contact
   ===================================================================== */
.contact {
  padding-block: clamp(96px, 13vw, 200px) clamp(64px, 8vw, 120px);
  border-top: 1px solid var(--ink);
}
.contact__title {
  font-size: clamp(3rem, 8.8vw, 9rem);
  font-weight: 500;
  line-height: .92;
  letter-spacing: -.052em;
  max-width: 13ch;
  text-wrap: balance;
  margin-left: -.04em;
}
.contact__copy {
  margin-top: clamp(32px, 4vw, 56px);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  line-height: 1.4;
  color: var(--charcoal);
  max-width: 40ch;
}
.contact__links { margin-top: clamp(64px, 8vw, 120px); border-bottom: 1px solid var(--rule); }
.contact__links li { border-top: 1px solid var(--rule); }
.contact__links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: clamp(18px, 2.2vw, 30px);
  font-size: clamp(1.625rem, 3.6vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1;
  text-decoration: none;
  transition: padding-left .5s var(--ease);
}
.contact__links a:hover { padding-left: clamp(8px, 1.4vw, 20px); }
.contact__value {
  font-size: clamp(.9375rem, 1.2vw, 1.125rem);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--graphite);
  text-align: right;
}
.contact__links a[aria-disabled="true"] { cursor: default; }
.contact__links a[aria-disabled="true"]:hover { padding-left: 0; }

/* =====================================================================
   Footer
   ===================================================================== */
.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px 40px;
  font-size: .875rem;
  color: var(--graphite);
}
.footer__id { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* =====================================================================
   Project detail (dialog)
   ===================================================================== */
.modal {
  width: min(1180px, 100% - 2 * clamp(0px, 3vw, 48px));
  max-width: none;
  height: calc(100% - 2 * clamp(0px, 3vh, 32px));
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
}
.modal[open] { animation: modal-in .45s var(--ease); }
.modal::backdrop { background: rgba(0, 0, 0, .6); }
.modal[open]::backdrop { animation: fade-in .35s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade-in { from { opacity: 0; } }

.modal__bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  padding: 14px clamp(20px, 4vw, 56px);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.modal__close { font-size: .9375rem; display: inline-flex; gap: .5em; align-items: center; }
.modal__close span { font-size: 1.35em; line-height: 1; }
.modal__close:hover { text-decoration: underline; text-underline-offset: 3px; }

.modal__body { padding: clamp(32px, 5vw, 72px) clamp(20px, 4vw, 56px) clamp(40px, 5vw, 72px); }

.detail__category { font-size: .9375rem; color: var(--graphite); }
.detail__title {
  margin-top: 16px;
  font-size: clamp(2.25rem, 5.6vw, 5rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.045em;
  max-width: 18ch;
  text-wrap: balance;
}
.detail__desc {
  margin-top: 24px;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.9vw, 1.625rem);
  line-height: 1.38;
  color: var(--charcoal);
  max-width: 44ch;
}

.detail__top {
  margin-top: clamp(32px, 4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  padding-block: 16px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}
.detail__facts { display: flex; flex-wrap: wrap; gap: 8px 40px; font-size: .9375rem; }
.detail__facts dt { color: var(--graphite); font-size: .8125rem; }

.button {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: 13px 20px;
  background: var(--black);
  color: var(--paper);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .25s;
}
.button:hover { background: var(--charcoal); }

.detail__section {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  row-gap: 12px;
  padding-block: clamp(28px, 3.5vw, 44px);
  border-bottom: 1px solid var(--rule);
}
.detail__section > h3 {
  grid-column: 1 / span 3;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--graphite);
}
.detail__section > .detail__content { grid-column: 4 / -1; }
.detail__section--wide > h3,
.detail__section--wide > .detail__content { grid-column: 1 / -1; }
.detail__content > p {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.55;
  max-width: 62ch;
}
.detail__roles { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.detail__roles li {
  border: 1px solid var(--ink);
  padding: 6px 12px;
  font-size: .9375rem;
}
.detail__collab { margin-top: 20px; font-size: .9375rem; }
.detail__collab li { padding-block: 8px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(8em, 1fr) 2fr; gap: 16px; }
.detail__collab span { color: var(--graphite); }

.detail__media { display: grid; gap: clamp(16px, 2vw, 28px); }
.detail__media figure { background: var(--paper-deep); }
.detail__media img { width: 100%; }
.detail__media figcaption { font-size: .875rem; color: var(--graphite); padding: 10px 0; background: var(--paper); }
.detail__cover { position: relative; aspect-ratio: var(--ratio, 16 / 9); overflow: hidden; container-type: inline-size; }
.detail__video .cover { position: absolute; inset: 0; text-align: left; }
.detail__cover > .cover, .detail__cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail__video { position: relative; aspect-ratio: 16 / 9; background: var(--black); }
.detail__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.detail__video button { position: absolute; inset: 0; width: 100%; }
.detail__video button img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s; }
.detail__video button:hover img { opacity: 1; }
.detail__video .play { width: 76px; height: 76px; left: 50%; top: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%); }
.detail__video .play svg { width: 22px; height: 22px; }
.detail__video button:hover .play { transform: translate(-50%, -50%) scale(1.06); }

.detail__nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: clamp(28px, 3.5vw, 44px);
}
.detail__nav button { text-align: left; font-size: .8125rem; color: var(--graphite); max-width: 45%; }
.detail__nav button:last-child { text-align: right; margin-left: auto; }
.detail__nav button strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(1.0625rem, 1.6vw, 1.375rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.015em;
  line-height: 1.2;
}
.detail__nav button:hover strong { text-decoration: underline; text-underline-offset: .18em; }

.noscript { font-family: var(--serif); font-size: 1.25rem; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1100px) {
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 56px; padding-top: 0; }
  .timeline::before, .timeline::after, .timeline__step::before { display: none; }
  .timeline__step { border-top: 1px solid var(--inv-rule); padding-top: 18px; }

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

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

@media (max-width: 860px) {
  .hero__cta { grid-column: 1 / -1; order: 2; }
  .hero__copy { grid-column: 1 / -1; }

  .about__portrait { grid-column: 1 / span 7; }
  .about__text { grid-column: 1 / -1; }

  .mara__lede, .mara__meta { grid-column: 1 / -1; }
  .path__item, .thinking__statement, .thinking__body { grid-column: 1 / -1; }
  .work__title, .work__copy { grid-column: 1 / -1; }

  .detail__section > h3, .detail__section > .detail__content { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --nav-h: 56px; }
  .nav__mark { font-size: .9375rem; }
  .nav__links { gap: 14px; }
  .nav__links a { font-size: .8125rem; }

  .timeline { grid-template-columns: 1fr; row-gap: 0; }
  .timeline__step {
    border-top: 0;
    border-left: 1px solid var(--inv-rule);
    padding: 0 0 36px 24px;
  }
  .timeline__step:last-child { padding-bottom: 0; }

  .grid { grid-template-columns: 1fr; }

  .about__portrait { grid-column: 1 / span 10; }
  .facts { grid-template-columns: 1fr 1fr; column-gap: 16px; }

  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--edge) * -1); padding-inline: var(--edge); }
  .filters::-webkit-scrollbar { display: none; }

  .contact__links a { flex-wrap: wrap; }
  .contact__value { text-align: left; width: 100%; }

  .modal { width: 100%; height: 100%; }
  .detail__nav { flex-direction: column; }
  .detail__nav button, .detail__nav button:last-child { max-width: none; text-align: left; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}

/* Missing image inside project detail */
.detail__media figure > .cover--missing { display: flex; flex-direction: column; aspect-ratio: 16 / 9; padding: 24px; }
