/* BenVeasey.com - quiet, architectural: white space, full-bleed images, one grotesk. */

@font-face {
  font-family: "Inter Tight";
  src: url("fonts/inter-tight-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Inter Tight";
  src: url("fonts/inter-tight-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #141414;
  --ink-2: #5f5f5f;
  --ink-3: #8f8f8f;
  --line: #e4e4e1;
  --paper: #ffffff;
  --stone: #f4f3f0;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1680px;
  --head: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 380;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 420; letter-spacing: -0.02em; line-height: 1.1; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.label {
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-2);
}
.muted { color: var(--ink-2); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--gutter); top: 12px; z-index: 100; background: var(--paper); padding: 6px 10px; }

/* ---------- header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--head);
  display: flex; align-items: center;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.2) blur(10px);
}
.site-head .wrap { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: baseline; gap: 14px; white-space: nowrap; }
.brand b { font-weight: 560; letter-spacing: .06em; text-transform: uppercase; font-size: 14px; }
.brand span { font-size: 13px; color: var(--ink-2); }
.nav { display: flex; gap: clamp(16px, 2.6vw, 40px); font-size: 14px; }
.nav a { position: relative; padding: 4px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor;
  transition: right .35s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.menu-btn { display: none; background: none; border: 0; font: inherit; color: inherit; font-size: 14px; cursor: pointer; padding: 6px 0; }

body.over-hero .site-head:not(.solid) { background: transparent; color: #fff; backdrop-filter: none; }
body.over-hero .site-head:not(.solid) .brand span { color: rgba(255,255,255,.78); }
.site-head.solid { border-bottom-color: var(--line); }

@media (max-width: 760px) {
  .brand span { display: none; }
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: var(--head) 0 auto 0; background: var(--paper); color: var(--ink);
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line);
    font-size: 22px; transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s var(--ease);
  }
  .nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  body.menu-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  body.menu-open .site-head { background: var(--paper) !important; color: var(--ink) !important; }
}

main { padding-top: var(--head); }
body.over-hero main { padding-top: 0; }

/* ---------- hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  background: #0d0f12; color: #fff; overflow: hidden;
}
.hero video, .hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 100%);
}
.hero-text {
  position: absolute; left: 0; right: 0; bottom: clamp(28px, 6vh, 64px); z-index: 2;
}
.hero-text .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.hero h1 { font-size: clamp(40px, 7.4vw, 124px); font-weight: 360; letter-spacing: -0.035em; line-height: .95; }
.hero .sub { margin-top: 18px; font-size: clamp(15px, 1.3vw, 19px); color: rgba(255,255,255,.86); max-width: 38ch; }
.hero .caption { font-size: 13px; color: rgba(255,255,255,.78); text-align: right; max-width: 30ch; }
.hero .caption a { border-bottom: 1px solid rgba(255,255,255,.45); }
@media (max-width: 760px) { .hero-text .wrap { flex-direction: column; align-items: flex-start; } .hero .caption { text-align: left; } }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 11vw, 160px) 0; }
.section.tight { padding: clamp(48px, 7vw, 96px) 0; }
.section.stone { background: var(--stone); }
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); }
.statement { grid-column: 4 / span 8; font-size: clamp(24px, 2.7vw, 42px); line-height: 1.22; font-weight: 340; letter-spacing: -0.018em; }
.statement + .statement { margin-top: .6em; }
.side-label { grid-column: 1 / span 3; padding-top: .6em; }
@media (max-width: 900px) {
  .side-label { grid-column: 1 / -1; padding: 0 0 18px; }
  .statement { grid-column: 1 / -1; }
}

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); margin-top: clamp(56px, 7vw, 96px); }
.pillars h3 { font-size: 20px; margin: 14px 0 10px; }
.pillars p { color: var(--ink-2); max-width: 42ch; }
.pillars .num { font-size: 12px; color: var(--ink-3); letter-spacing: .1em; }
.pillars > div { border-top: 1px solid var(--ink); padding-top: 18px; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: clamp(28px, 4vw, 56px); }
.section-head h2 { font-size: clamp(28px, 3.4vw, 52px); font-weight: 360; }
.link-arrow { font-size: 14px; white-space: nowrap; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.link-arrow::after { content: " \2192"; }

/* ---------- featured (home) ---------- */
.feature { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); align-items: end; }
.feature + .feature { margin-top: clamp(80px, 10vw, 150px); }
.feature .media { grid-column: 1 / span 8; overflow: hidden; background: #111; }
.feature .media img, .feature .media video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature:hover .media img { transform: scale(1.025); }
.feature .text { grid-column: 9 / span 4; padding-bottom: 6px; }
.feature.flip .media { grid-column: 5 / span 8; order: 2; }
.feature.flip .text { grid-column: 1 / span 4; order: 1; }
.feature h3 { font-size: clamp(26px, 2.6vw, 40px); font-weight: 380; margin: 12px 0 14px; }
.feature p { color: var(--ink-2); }
@media (max-width: 900px) {
  .feature .media, .feature.flip .media { grid-column: 1 / -1; order: 0; }
  .feature .text, .feature.flip .text { grid-column: 1 / -1; order: 1; padding-top: 20px; }
}

/* ---------- project grid / index ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; margin-bottom: 36px; font-size: 14px; }
.filters button, .view-toggle button {
  font: inherit; background: none; border: 0; padding: 4px 0; color: var(--ink-3); cursor: pointer;
  border-bottom: 1px solid transparent;
}
.filters button[aria-pressed="true"], .view-toggle button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.filters button:hover, .view-toggle button:hover { color: var(--ink); }
.toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.view-toggle { display: flex; gap: 18px; font-size: 14px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(36px, 4vw, 64px) clamp(16px, 2vw, 32px); }
.cards.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card { display: block; }
.card .ph { overflow: hidden; background: var(--stone); aspect-ratio: 4 / 3; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .6s; }
.card:hover .ph img { transform: scale(1.04); }
.card h3 { font-size: 17px; font-weight: 480; margin: 14px 0 3px; letter-spacing: -0.01em; }
.card .loc { font-size: 14px; color: var(--ink-2); }
.card[hidden] { display: none; }
@media (max-width: 1100px) { .cards, .cards.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards, .cards.cols-4 { grid-template-columns: 1fr; } }

.index { width: 100%; border-collapse: collapse; font-size: 15px; }
.index th { text-align: left; font-weight: 500; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); padding: 0 12px 12px 0; border-bottom: 1px solid var(--ink); }
.index td { padding: 15px 12px 15px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.index tr[data-href] { cursor: pointer; transition: background .2s; }
.index tr[data-href]:hover { background: var(--stone); }
.index td:first-child { font-weight: 480; }
.index td.n { color: var(--ink-3); width: 3.5em; font-variant-numeric: tabular-nums; }
.index tr[hidden] { display: none; }
@media (max-width: 1000px) { .index .hide-m { display: none; } }
@media (max-width: 700px) { .index .hide-s { display: none; } }
.peek {
  position: fixed; z-index: 60; width: 300px; aspect-ratio: 4 / 3; pointer-events: none; opacity: 0;
  transition: opacity .2s; background: var(--stone); box-shadow: 0 18px 40px rgba(0,0,0,.18);
}
.peek img { width: 100%; height: 100%; object-fit: cover; }
.peek.on { opacity: 1; }
@media (hover: none) { .peek { display: none; } }

/* ---------- page heads ---------- */
.page-head { padding: clamp(64px, 9vw, 132px) 0 clamp(36px, 5vw, 64px); }
.page-head h1 { font-size: clamp(40px, 6vw, 96px); font-weight: 340; letter-spacing: -0.035em; line-height: 1; }
.page-head .lede { margin-top: 26px; font-size: clamp(18px, 1.6vw, 23px); line-height: 1.45; color: var(--ink-2); max-width: 46ch; font-weight: 340; }

/* ---------- project page ---------- */
.p-hero { position: relative; background: #0d0f12; }
.p-hero img { width: 100%; height: auto; max-height: 86vh; object-fit: cover; }
.p-hero video { width: 100%; height: min(86vh, 56.25vw); object-fit: cover; }
.p-title { padding: clamp(40px, 6vw, 88px) 0 0; }
.p-title h1 { font-size: clamp(36px, 5.4vw, 84px); font-weight: 340; letter-spacing: -0.035em; line-height: 1; }
.p-title .where { margin-top: 14px; font-size: 18px; color: var(--ink-2); }
.facts { grid-column: 1 / span 3; font-size: 14px; }
.facts dl { margin: 0; }
.facts dt { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-top: 18px; font-weight: 500; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 4px 0 0; }
.p-body { grid-column: 5 / span 7; }
.p-body .intro { font-size: clamp(20px, 1.9vw, 28px); line-height: 1.35; font-weight: 340; letter-spacing: -0.012em; margin-bottom: 1.2em; }
.p-body p { color: #2f2f2f; max-width: 64ch; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.cols-3 h4 { font-size: 15px; font-weight: 520; margin-bottom: 8px; letter-spacing: 0; }
.cols-3 p { color: var(--ink-2); font-size: 15.5px; }
.formula { font-family: "Cambria Math", "STIX Two Math", Georgia, serif; font-size: 17px; color: var(--ink); margin-top: 10px; letter-spacing: .01em; }
@media (max-width: 900px) {
  .facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; margin-bottom: 36px; }
  .facts dl { display: contents; }
  .p-body { grid-column: 1 / -1; }
  .cols-3 { grid-template-columns: 1fr; }
}

.plates { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3vw, 44px) clamp(16px, 2vw, 32px); }
.plates.three { grid-template-columns: repeat(3, 1fr); }
.plates figure { margin: 0; }
.plates figure.wide { grid-column: 1 / -1; }
.plates img { width: 100%; background: var(--stone); cursor: zoom-in; }
.plates figcaption, .figure-cap { margin-top: 12px; font-size: 14px; color: var(--ink-2); max-width: 70ch; }
.plates figcaption b, .figure-cap b { color: var(--ink); font-weight: 500; }
.plates figcaption .n { color: var(--ink-3); margin-right: 8px; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .plates, .plates.three { grid-template-columns: 1fr; } }

.film { position: relative; background: #000; }
.film video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.film-meta { display: flex; justify-content: space-between; gap: 24px; margin-top: 14px; font-size: 14px; color: var(--ink-2); flex-wrap: wrap; }
.film-meta b { color: var(--ink); font-weight: 500; }

.credits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px clamp(16px, 2vw, 32px); font-size: 14px; }
.credits div span { display: block; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin-bottom: 3px; }
@media (max-width: 900px) { .credits { grid-template-columns: repeat(2, 1fr); } }
.note { font-size: 13px; color: var(--ink-3); margin-top: 28px; max-width: 80ch; }

.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.pager a { padding: 34px 0; display: block; }
.pager a + a { text-align: right; border-left: 1px solid var(--line); }
.pager .label { display: block; margin-bottom: 6px; }
.pager b { font-size: clamp(20px, 2vw, 28px); font-weight: 380; letter-spacing: -0.015em; }
.pager a:first-child b::before { content: "\2190  "; }
.pager a + a b::after { content: "  \2192"; }

/* ---------- about ---------- */
.cv-row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); padding: clamp(36px, 4vw, 56px) 0; border-top: 1px solid var(--line); }
.cv-row > .label { grid-column: 1 / span 3; padding-top: 4px; }
.cv-row > .body { grid-column: 4 / span 9; }
.cv-item { display: grid; grid-template-columns: 1fr 180px; gap: 6px 24px; }
.cv-item + .cv-item { margin-top: 28px; }
.cv-item h3 { font-size: 19px; font-weight: 480; letter-spacing: -0.01em; }
.cv-item .when { color: var(--ink-2); font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.cv-item .what { grid-column: 1 / -1; color: var(--ink-2); }
.cv-item ul { margin: 8px 0 0; padding-left: 1.1em; color: #2f2f2f; }
.cv-item li { margin: 4px 0; max-width: 72ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { border: 1px solid var(--line); padding: 5px 12px; font-size: 14px; border-radius: 100px; }
@media (max-width: 900px) {
  .cv-row > .label, .cv-row > .body { grid-column: 1 / -1; }
  .cv-row > .label { margin-bottom: 18px; }
  .cv-item { grid-template-columns: 1fr; }
  .cv-item .when { text-align: left; }
}

/* ---------- contact + footer ---------- */
.contact-big { font-size: clamp(30px, 5.2vw, 84px); font-weight: 320; letter-spacing: -0.035em; line-height: 1.05; }
.contact-big a { border-bottom: 1px solid currentColor; }
.contact-big { overflow-wrap: anywhere; }
.contact-col { grid-column: 4 / span 9; min-width: 0; }
@media (max-width: 900px) { .contact-col { grid-column: 1 / -1; } }
@media (max-width: 480px) { .contact-big { font-size: 28px; } }
html, body { overflow-x: clip; }
.site-foot { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 13.5px; color: var(--ink-2); }
.site-foot .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.site-foot b { color: var(--ink); font-weight: 520; display: block; margin-bottom: 4px; }
.site-foot a:hover { color: var(--ink); }
@media (max-width: 760px) { .site-foot .wrap { grid-template-columns: 1fr; } }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(250,250,248,.98); display: none;
  align-items: center; justify-content: center; padding: 64px var(--gutter);
}
.lightbox.on { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button { position: absolute; top: 18px; right: var(--gutter); font: inherit; font-size: 14px; background: none; border: 0; cursor: pointer; color: var(--ink); }
.lightbox .cap { position: absolute; left: var(--gutter); bottom: 20px; font-size: 14px; color: var(--ink-2); max-width: 80ch; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { transition-duration: 0s !important; }
}
.mt-s { margin-top: 24px; } .mt-m { margin-top: clamp(40px, 5vw, 72px); } .mt-l { margin-top: clamp(64px, 8vw, 120px); }
