@font-face {
  font-family: "Portfolio Mono";
  src: url('./assets/mono.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Stack Sans";
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url(./assets/stack-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Stack Sans";
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url(./assets/stack-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --edge: clamp(20px, 2.1vw, 40px);
  --logo-width: clamp(92px, 15vw, 170px);
  --logo-width: round(nearest, clamp(92px, 15vw, 170px), 1px);
  --logo-height: calc(var(--logo-width) * 1250 / 2438);
  color: #202020;
  background: #fff;
  font-family: "Stack Sans", Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 160px; scroll-behavior: smooth; }
body { margin: 0; display: flow-root; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 1px solid currentColor; outline-offset: 6px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; font-size: inherit; font-weight: 400; }
.navigation {
  position: fixed;
  z-index: 20;
  top: var(--edge);
  left: var(--edge);
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  font-size: clamp(16px, 2.85vw, 30px);
  line-height: 1.4;
}
.navigation a { position: relative; }
/* One upward reel turn, matching V1. */
.nav-window { display: block; overflow: hidden; }
.nav-reel { position: relative; display: block; }
.nav-copy { position: absolute; top: 100%; left: 0; white-space: nowrap; }
@keyframes menu-turn {
  from { transform: translateY(0); }
  to { transform: translateY(-100%); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .navigation a:hover .nav-reel {
    animation: menu-turn .48s cubic-bezier(.22, 1, .36, 1) both;
  }
}
.clock {
  position: fixed;
  z-index: 20;
  top: var(--edge);
  right: var(--edge);
  font-size: clamp(16px, 2.85vw, 30px);
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
/* A single native sticky element: no scroll handlers, clones or delayed easing. */
.brand {
  position: sticky;
  z-index: 30;
  mix-blend-mode: difference;
  top: var(--edge);
  display: block;
  width: var(--logo-width);
  height: var(--logo-height);
  margin: calc(50svh - var(--logo-height) / 2) auto 0;
}
.brand-mark {
  display: block;
  width: 100%;
  height: 100%;
  shape-rendering: geometricPrecision;
}
.intro {
  height: calc(50svh - var(--logo-height) / 2);
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 var(--edge) var(--edge);
}
.intro h1 {
  width: 57%;
  max-width: 530px;
  font-size: clamp(18px, 2.85vw, 30px);
  line-height: 1.26;
  letter-spacing: -.025em;
}
.projects, .misc { padding: 140px var(--edge) 0; }
.section-heading, .project-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  font-size: clamp(14px, 1.45vw, 18px);
  line-height: 1.4;
}
.section-heading { padding-bottom: 20px; }
.project { margin-bottom: 100px; }
.project img { width: 100%; height: auto; }
.project-caption { padding-top: 12px; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 90px 8vw; }
.photo-grid figure:nth-child(even) { margin-top: 180px; }
.photo-grid figure:last-child { width: 70%; }
.photo-grid img { width: 100%; height: auto; }
.skip-link { position: fixed; left: 20px; top: -100px; z-index: 50; background: white; padding: 12px; }
.skip-link:focus { top: 20px; }
@media (max-width: 600px) {
  html { scroll-padding-top: 130px; }
  .intro h1 { width: 63%; font-size: 18px; }
  .projects, .misc { padding-top: 100px; }
  .project { margin-bottom: 56px; }
  .photo-grid { gap: 48px 20px; }
  .photo-grid figure:nth-child(even) { margin-top: 90px; }
}

/* Editorial About: a broad headline, then an inset image and text column. */
.about { padding: 140px var(--edge) 120px; }
.about > h2, .about-statement {
  font-family: "Stack Sans", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -.035em;
}
.about > h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4.2vw, 56px);
  line-height: 1.12;
}
.about-statement {
  max-width: 1150px;
  font-size: clamp(22px, 3vw, 40px);
  line-height: .96;
}
.about-body {
  width: 78%;
  margin-left: auto;
  font-size: clamp(19px, 3vw, 32px);
  line-height: 1.28;
  letter-spacing: -.015em;
}
.about-portrait { width: 62%; max-width: 440px; margin: 18px 0 0; }
.about-portrait img {
  width: 100%;
  height: auto;
}
.about-description { margin-top: 54px; max-width: 900px; }
.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 80px;
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.4;
}
.about-details h3 { margin-bottom: 20px; }
.about-details ul { list-style: none; margin: 0; padding: 0; }
.about-contact { display: inline-block; margin-top: 70px; font-size: clamp(17px, 2vw, 23px); }
@media (max-width: 600px) {
  .about { padding-top: 70px; padding-bottom: 50px; }
  .about > h2 { font-size: 28px; }
  .about-statement { font-size: 22px; }
  .about-body { width: 82%; }
  .about-description { margin-top: 32px; }
  .about-details { grid-template-columns: 1fr; gap: 30px; margin-top: 48px; }
  .about-details h3 { margin-bottom: 12px; }
  .about-contact { margin-top: 40px; }
}

.practice-list li { display: flex; align-items: center; gap: 20px; }
.practice-number {
  flex: 0 0 2ch;
  font-family: "Portfolio Mono", monospace;
  font-size: .78em;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

/* A quiet, scroll-led reprise of the V1 contact footer. */
.contact-footer { display: block; padding: 180px 0 var(--edge); }
.talk-link { display: block; padding: 8px 0; }
.talk-link:focus-visible { outline-offset: -4px; }
.talk-row { overflow: hidden; }
.talk-track {
  width: max-content;
  font-size: clamp(44px, 8vw, 112px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -.055em;
  white-space: nowrap;
}
.talk-top, .talk-bottom { transform: translateX(0); }
.talk-bottom { flex-shrink: 0; }
.talk-row-muted { display: flex; justify-content: flex-end; }
.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-top: 64px;
  padding: 0 var(--edge);
  font-size: clamp(15px, 1.5vw, 20px);
  line-height: 1.4;
}
@media (max-width: 600px) {
  .contact-footer { padding-top: 100px; }
  .footer-meta { margin-top: 40px; font-size: 14px; }
}

@media (prefers-reduced-motion: no-preference) {
  .project img { transform: translate3d(0, 24px, 0); }
}

/* Brief, subtle focus reveal for photography. */
@media (prefers-reduced-motion: no-preference) {
  .photo-focus-ready .photo-grid img {
    filter: blur(6px);
  }
  .photo-focus-ready .photo-grid img.is-focused {
    filter: none;
    transition: filter 650ms cubic-bezier(.22, 1, .36, 1);
  }
}

.footer-socials { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Project overview links and the shared case-study layout. */
.project-link { display: block; }
.project-link .project-caption h3 { display: flex; align-items: baseline; gap: 12px; }
.project-link:focus-visible { outline-offset: 8px; }
.case-brand { position: fixed; left: 0; right: 0; margin: 0 auto; }
.case-main { padding: 240px var(--edge) 0; }
.case-back { display: inline-block; font-size: 15px; margin-bottom: 40px; }
.case-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.case-title-row h1 { font-size: clamp(38px, 7.5vw, 110px); line-height: 1; letter-spacing: -.055em; }
.case-index { font-family: "Portfolio Mono", monospace; font-size: 15px; }
.case-overview { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12vw; margin: 60px 0 90px; }
.case-overview > p { max-width: 700px; font-size: clamp(21px, 2.6vw, 36px); line-height: 1.22; letter-spacing: -.025em; }
.case-facts { margin: 0; font-size: clamp(15px, 1.5vw, 19px); line-height: 1.4; }
.case-facts > div { display: grid; grid-template-columns: 90px 1fr; gap: 20px; margin-bottom: 20px; }
.case-facts dt { color: #686868; }
.case-facts dd { margin: 0; }
.case-screen { padding: clamp(16px, 3vw, 48px); background: #f3f3f3; }
.case-screen img { width: 100%; height: auto; border: 1px solid #e8e8e8; }
.case-visual figcaption { display: flex; justify-content: space-between; gap: 20px; margin-top: 14px; font-size: 14px; line-height: 1.4; }
.case-copy { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10vw; padding: 120px 0; }
.case-copy h2 { font-size: clamp(18px, 2vw, 26px); }
.case-copy p { max-width: 750px; font-size: clamp(21px, 2.6vw, 36px); line-height: 1.22; letter-spacing: -.025em; }
.case-image-grid { display: grid; grid-template-columns: 1.6fr 1fr; align-items: start; gap: 6vw; }
.case-mobile { margin-top: 160px; }
.case-mobile .case-screen { padding: clamp(24px, 5vw, 80px); }
.case-end { display: flex; justify-content: space-between; gap: 24px; padding-top: 100px; font-size: clamp(16px, 2vw, 24px); }
@media (prefers-reduced-motion: no-preference) {
  .case-visual .case-screen { transform: translate3d(0, 24px, 0); }
}
@media (max-width: 600px) {
  .case-main { padding-top: 160px; }
  .case-back { margin-bottom: 32px; }
  .case-overview { grid-template-columns: 1fr; gap: 36px; margin: 36px 0 54px; }
  .case-facts > div { grid-template-columns: 80px 1fr; }
  .case-copy { grid-template-columns: 1fr; gap: 24px; padding: 70px 0; }
  .case-image-grid { grid-template-columns: 1fr; gap: 48px; }
  .case-mobile { width: 76%; margin: 0 0 0 auto; }
  .case-mobile .case-screen { padding: 24px; }
  .case-end { flex-direction: column; padding-top: 60px; }
  .project-link .project-caption { align-items: flex-start; flex-direction: column; gap: 2px; }
}

/* Gapless artwork tiles, with complete images fitted to each cell. */
.art-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  aspect-ratio: 1500 / 1440;
  width: 100%;
  overflow: hidden;
}
.art-slot { min-width: 0; min-height: 0; overflow: hidden; display: grid; place-items: center; }
.project .art-slot img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transform: none;
}

/* Fixed vector arrows keep the same bold silhouette on iOS and desktop. */
.icon-arrow {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -.12em;
  flex-shrink: 0;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
