/* The two faces already served by the site. */
@font-face {
  font-family: "V2 Site Sans";
  src: url("/fonts/FTAktual-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "V2 Site Serif";
  src: url("/fonts/ItemsText-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Metric-matched fallbacks: until the two faces arrive (slow line, cold cache), Arial and Georgia are
   resized to the same widths and line metrics, so nothing moves when the swap happens. Measured in
   Chrome and WebKit at 12px with the site's letter-spacing and features (docs/layout-shifts.md). */
@font-face {
  font-family: "V2 Sans Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica");
  size-adjust: 96.5%;
  ascent-override: 100%;
  descent-override: 24.35%;
  line-gap-override: 0%;
}
/* The logo is all capitals with tracking that doesn't scale, so it needs its own size. */
@font-face {
  font-family: "V2 Logo Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica");
  size-adjust: 90.2%;
  ascent-override: 107%;
  descent-override: 26.05%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "V2 Serif Fallback";
  src: local("Georgia");
  font-weight: 300;
  size-adjust: 92.5%;
}

:root {
  --sans: "V2 Site Sans", "V2 Sans Fallback", Arial, Helvetica, sans-serif;
  --sans-logo: "V2 Site Sans", "V2 Logo Fallback", Arial, Helvetica, sans-serif;
  --serif: "V2 Site Serif", "V2 Serif Fallback", Georgia, "Times New Roman", serif;
  --sans-features: "case" 1, "ss03" 1;
  --serif-features: "case" 1;
  --paper: #ffffff;
  --ink: #212121;
  --ink-soft: rgb(33 33 33 / 60%);
  --night: #212121;
  --snow: #fafafa;
  --snow-soft: rgb(250 250 250 / 60%);
  --tile-bg: var(--paper);
  --scrim: rgb(26 26 26 / 90%);
  --m: 16px;
  --nav-h: 41px;
  --vh: 100dvh;
  --t-logo: 12px;
  --t-nav: 12px;
  --t-caption: 12px;
  --t-lg: 16px;
  --fade-image: 300ms;
  --fade-in: 300ms;
  --fade-out: 200ms;
  --ease-soft: cubic-bezier(.33, 1, .68, 1);
  background: var(--paper);
  font-synthesis: none;
  scrollbar-gutter: stable;
  overflow-anchor: none;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 599.98px) {
  :root { --nav-h: calc(56px + max(0px, env(safe-area-inset-top, 0px) - 16px)); }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 300 12px/1.35 var(--serif);
  font-feature-settings: var(--serif-features);
  letter-spacing: .16px;
}
a { color: inherit; text-decoration: none; }
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
a, button { touch-action: manipulation; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }

.v2-visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.v2-frame { container-type: inline-size; }
.v2-main { padding-block-start: var(--nav-h); }
.v2-foot { block-size: 33px; }

.v2-plate { position: relative; min-inline-size: 0; margin: 0; }
.v2-plate-link, .v2-media { display: block; }
.v2-media {
  position: relative;
  overflow: hidden;
  background: var(--tile-bg) center / cover no-repeat;
}
.v2-media img, .v2-media video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v2-media img { opacity: 0; transition: opacity var(--fade-image) var(--ease-soft); }
.v2-media img.is-loaded { opacity: 1; }
.v2-media video { z-index: 1; opacity: 0; }
.v2-media video.is-on { opacity: 1; }
.v2-media.no-still video.is-on { transition: opacity var(--fade-image) var(--ease-soft); }


/* Reduced motion (owner, 2026-11-30): the fades stay, movement and staggers go. Every transition here is
   opacity; the strip's glide stops in viewer.js. Hard cuts flash, so nothing is made instant. Only the
   staggered rows lose their delays; the visibility delays that let a fade-out finish stay. */
@media (prefers-reduced-motion: reduce) {
  .v2-focus-projects[data-state="open"] .v2-focus-project-line {
    transition-delay: 0s !important;
  }
}
