@font-face {
  font-family: "Geist";
  src: url("/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Small type, lots of space: 14px everywhere, one large size per page, a label column and a content column. */
:root {
  --bg: #000;
  --fg: #fff;
  --muted: #7a7a7a;
  --soft: #adadad;
  --rule: #1f1f1f;
  --tile: #0d0d0d;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --pad: clamp(16px, 1.6vw, 24px);
  --gap: 20px;
  --space: clamp(72px, 9vw, 128px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--fg); color: var(--bg); }
a { color: inherit; text-decoration: none; transition: color .2s, opacity .2s; }
a:focus-visible, summary:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }
p, ul, ol, h1, h2, h3, blockquote, figure { margin: 0; }
h1, h2, h3 { font-size: inherit; font-weight: 400; line-height: inherit; }
ul, ol { padding: 0; list-style: none; }
.muted { color: var(--muted); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--fg); color: var(--bg); padding: 8px 12px; z-index: 20; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Header: one thin bar */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  height: calc(56px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(var(--pad), env(safe-area-inset-right)) 0 max(var(--pad), env(safe-area-inset-left));
  background: rgba(0, 0, 0, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
}
.name { margin-right: auto; white-space: nowrap; }
.name span { color: var(--muted); }
.nav { display: flex; gap: 24px; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"], .nav .yn { color: var(--fg); }
.nav .yn:hover { color: var(--muted); }

.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { color: var(--muted); }
.menu-panel {
  position: fixed;
  top: calc(56px + env(safe-area-inset-top));
  left: 0;
  right: 0;
  display: grid;
  padding: 8px var(--pad) 20px;
  background: #000;
  border-bottom: 1px solid var(--rule);
}
.menu-panel a { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.menu-panel a:last-child { border-bottom: 0; }
@media (max-width: 860px) {
  .nav { display: none; }
  .menu { display: block; }
}
@media (max-width: 400px) { .name span { display: none; } }

/* Rows: label column + content column, separated by hairlines */
main { padding-bottom: var(--space); }
.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px var(--gap);
  margin: 0 max(var(--pad), env(safe-area-inset-right)) 0 max(var(--pad), env(safe-area-inset-left));
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.row + .row { margin-top: var(--space); }
.row > .k { color: var(--muted); }
.row > .v { min-width: 0; display: grid; gap: 20px; align-content: start; }
@media (min-width: 900px) {
  .row { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); border-top: 0; padding-top: 0; }
  .row > .k, .row > .v { border-top: 1px solid var(--rule); padding-top: 14px; }
}

/* Hero */
.row.hero { border-top: 0; padding-top: clamp(96px, 20vh, 220px); }
.row.hero > .k, .row.hero > .v { border-top: 0; padding-top: 0; }
.hero .k h1 { color: var(--fg); }
.big {
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  max-width: 38ch;
}
.lead { font-size: 18px; line-height: 1.6; letter-spacing: -0.01em; max-width: 48ch; }
.intro { color: var(--muted); max-width: 64ch; }
.intro a, .prose a, .text a, .note a, .cta a:not(.btn) { color: var(--fg); }
.intro a:hover, .prose a:hover, .text a:hover, .note a:hover { color: var(--soft); }

/* Small square buttons */
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  white-space: nowrap;
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--fg);
}
.btn:hover { background: transparent; color: var(--fg); }
.btn.ghost { background: transparent; color: var(--fg); border-color: #333; }
.btn.ghost:hover { border-color: var(--fg); }

/* Logo tiles, scrolling */
.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track { display: flex; flex: none; gap: 8px; padding-right: 8px; animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.tile {
  display: grid;
  place-items: center;
  width: 148px;
  height: 92px;
  padding: 0 18px;
  background: var(--tile);
  color: var(--soft);
  text-align: center;
  line-height: 1.25;
}
.tile img { display: block; max-width: 100%; height: auto; filter: brightness(0) invert(1); opacity: .78; }

/* Columns (pillars, formats) */
.cols { display: grid; gap: 24px var(--gap); }
@media (min-width: 640px) { .cols.three { grid-template-columns: repeat(3, 1fr); } .cols.two { grid-template-columns: repeat(2, 1fr); } }
.cols p, .cols li { color: var(--muted); }

/* Tables: name, detail, year */
.table > li { display: grid; gap: 0 var(--gap); padding: 14px 0; border-bottom: 1px solid var(--rule); }
.table > li:first-child { padding-top: 0; }
.table > li:last-child { border-bottom: 0; }
.table .c2 { color: var(--muted); }
.table .c3 { color: var(--muted); font-variant-numeric: tabular-nums; }
.table em { font-style: normal; color: var(--muted); }
.table a:hover { color: var(--soft); }
@media (min-width: 640px) {
  .table > li { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) 7.5rem; align-items: baseline; }
  .table.two > li { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .table .c3 { text-align: right; }
}

/* Inline lists (clients) */
.inline li { display: inline; }
.inline li:not(:last-child)::after { content: ", "; }
.inline { color: var(--soft); max-width: 72ch; }

/* Prose */
.prose { display: grid; gap: 1em; max-width: 64ch; }
.prose p { color: var(--muted); }
.prose p.lead { color: var(--fg); }

/* Ventures */
.venture-logo { display: block; height: auto; filter: brightness(0) invert(1); }
.venture .meta { color: var(--muted); }
.venture .text { color: var(--soft); max-width: 60ch; }

/* Pull quote */
.quote { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.12; letter-spacing: -0.035em; max-width: 24ch; }

/* FAQ */
.faq > li { padding: 14px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 4px; }
.faq > li:first-child { padding-top: 0; }
.faq > li:last-child { border-bottom: 0; }
.faq p { color: var(--muted); max-width: 64ch; }
.faq a { color: var(--fg); }

/* CTA line */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 6px; }
.cta p { color: var(--soft); }
.note { color: var(--muted); }

/* Footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin: 0 max(var(--pad), env(safe-area-inset-right)) 0 max(var(--pad), env(safe-area-inset-left));
  padding: 14px 0 max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
  color: var(--muted);
}
.foot ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot a { color: var(--fg); }
.foot a:hover { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; flex-wrap: wrap; flex: 1 1 auto; row-gap: 8px; }
  .marquee-track + .marquee-track { display: none; }
}

/* 404 */
.lost { min-height: 70vh; display: grid; align-content: center; gap: 12px; padding: 0 var(--pad); }
.lost a { color: var(--fg); }
.table .c2 a, .table a.c1 { color: var(--fg); }
.table .c2 a:hover, .table a.c1:hover { color: var(--soft); }

/* Buttons sit under their line of text */
.cta { flex-direction: column; align-items: flex-start; gap: 14px; }

/* Two columns that line up with .table.two (e.g. Formats under the credentials' second column) */
@media (min-width: 640px) { .cols.split { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
.nw { white-space: nowrap; }

/* ---------- Motion ----------
   main.js adds html.motion (never with reduced motion or without JS), so every hidden state below is opt-in. */
:root { --ease-out: cubic-bezier(.2, .7, .2, 1); --ease-io: cubic-bezier(.65, 0, .35, 1); }

/* Soft cross-fade between pages */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
}

/* Header settles in */
.motion .top { animation: drop .7s var(--ease-out) both; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* Sections: content rises in when it scrolls into view */
.motion .row > .k,
.motion .row > .v > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .9s ease, transform .9s var(--ease-out);
}
.motion .row > .v > :nth-child(2) { transition-delay: .08s; }
.motion .row > .v > :nth-child(3) { transition-delay: .16s; }
.motion .row > .v > :nth-child(n+4) { transition-delay: .24s; }
.motion .row.in > .k,
.motion .row.in > .v > * { opacity: 1; transform: none; }

/* List rows, columns and client names follow one by one (delays set in main.js) */
.motion .table > li, .motion .faq > li, .motion .cols > *, .motion .inline > li {
  opacity: 0;
  transition: opacity .7s ease, transform .7s var(--ease-out);
}
.motion .table > li, .motion .faq > li, .motion .cols > * { transform: translateY(8px); }
.motion .row.in .table > li, .motion .row.in .faq > li, .motion .row.in .cols > *, .motion .row.in .inline > li { opacity: 1; transform: none; }

/* Hairlines draw across from the left */
.motion .row:not(.hero), .motion .row:not(.hero) > .k, .motion .row:not(.hero) > .v { position: relative; border-top-color: transparent; }
.motion .row:not(.hero)::before,
.motion .row:not(.hero) > .k::before,
.motion .row:not(.hero) > .v::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rule);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease-io);
}
.motion .row:not(.hero) > .k::before, .motion .row:not(.hero) > .v::before { display: none; }
.motion .row:not(.hero) > .v::before { transition-delay: .12s; }
@media (min-width: 900px) {
  .motion .row:not(.hero)::before { display: none; }
  .motion .row:not(.hero) > .k::before, .motion .row:not(.hero) > .v::before { display: block; }
}
.motion .row.in::before, .motion .row.in > .k::before, .motion .row.in > .v::before { transform: scaleX(1); }
.motion .row > .k { opacity: 0; }
.motion .row > .k::before, .motion .row > .v::before { opacity: 1; }

/* Large statements rise word by word */
.motion .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.motion .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); }
.motion .in .w > span { transform: none; }
.motion .row > .v > .big, .motion .row > .v > figure { opacity: 1; transform: none; }

/* Intro: once per session on the home page. html.is-intro holds a black screen until the loader takes over. */
html.is-intro::after { content: ""; position: fixed; inset: 0; z-index: 99; background: #000; }
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 max(var(--pad), env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(var(--pad), env(safe-area-inset-left));
  background: #000;
  transition: transform .8s var(--ease-io);
}
.loader-name { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s var(--ease-out); }
.loader-name span { color: var(--muted); }
.loader-bar { margin-top: 14px; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform .95s var(--ease-io) .1s; }
.loader.run .loader-name { opacity: 1; transform: none; }
.loader.run .loader-bar { transform: scaleX(1); }
.loader.out { transform: translateY(-100%); }

/* Hover: links underline from the left, arrows nudge, logos brighten */
.nav a, .foot a, .intro a, .prose a, .note a, .faq a, .table a, .cta p a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: color .2s, background-size .35s var(--ease-out);
}
.nav a:hover, .foot a:hover, .intro a:hover, .prose a:hover, .note a:hover, .faq a:hover, .table a:hover, .cta p a:hover { background-size: 100% 1px; }
.btn span { display: inline-block; transition: transform .3s var(--ease-out); }
.btn:hover span { transform: translateX(3px); }
.tile { transition: background-color .3s; }
.tile img { transition: opacity .3s; }
.tile:hover { background: #151515; }
.tile:hover img { opacity: 1; }
