/* ============================================================
   FAUVEL — fauvel.world  ·  v3
   Split hero · caps grotesque · masonry cases · overlay captions
   ============================================================ */

:root {
  --bg: #ffffff;
  --ink: #111111;
  --grey: #6f6f6f;
  --line: #e8e8e8;
  --card: #f5f5f5;
  --font: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(1rem, 3vw, 2.5rem);
  --gap: clamp(0.7rem, 1.2vw, 1rem);
  --radius: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--ink); color: var(--bg); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

/* display type: caps grotesque */
.display {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 0.95;
}

/* small caps label */
.label {
  font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* ---- preloader ---- */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.preloader__mark { font-weight: 700; font-size: clamp(2.1rem, 4.5vw, 3rem); letter-spacing: -0.03em; opacity: 0; }
.preloader__count {
  position: absolute; bottom: var(--pad); right: var(--pad);
  font-size: 0.8rem; color: var(--grey); font-variant-numeric: tabular-nums;
}

/* ---- curtain / cursor ---- */
.curtain {
  position: fixed; inset: 0; z-index: 9500;
  background: var(--ink);
  transform: scaleY(0); transform-origin: top;
  pointer-events: none;
}
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9800;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink);
  pointer-events: none; transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease);
  display: flex; align-items: center; justify-content: center;
}
.cursor span { font-size: 0; color: var(--bg); font-weight: 600; transition: font-size 0.2s; }
.cursor.-view { width: 76px; height: 76px; }
.cursor.-view span { font-size: 0.68rem; }
@media (hover: none) { .cursor { display: none; } }

/* ---- header: logo floats over everything, inverts with background ---- */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9700;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--pad);
  pointer-events: none;
  mix-blend-mode: difference;
}
.site-head__logo {
  font-weight: 700; font-size: 1.875rem; letter-spacing: -0.02em; /* +50% */
  color: #fff; /* difference blend: black on light, white on dark */
  pointer-events: auto;
}
.btn-menu {
  background: var(--ink); color: var(--bg);
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 0.6rem 1.3rem; border-radius: 3px;
  transition: transform 0.3s var(--ease);
  pointer-events: auto;
}
.btn-menu:hover { transform: scale(1.05); }

/* ---- persistent circle menu button (all pages) ---- */
.btn-circle {
  position: fixed; left: 50%; bottom: 4vh; z-index: 9600;
  transform: translateX(-50%);
  width: 88px; height: 88px; border-radius: 50%;
  background: #c98727; color: #fff;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  transition: transform 0.35s var(--ease), background 0.3s;
}
.btn-circle:hover { transform: translateX(-50%) scale(1.1); }
.menu.-open ~ .btn-circle, body.menu-open .btn-circle { background: var(--ink); }

/* ---- filter: vertical toggle + centered panel (BiA cases) ---- */
/* plain vertical text, centred in the page's right padding (BiA) */
.filter-toggle {
  position: fixed; right: calc(var(--gutter) / 2); top: 50%; z-index: 880;
  transform: translate(50%, -50%);
  writing-mode: vertical-rl;
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  transition: opacity 0.25s;
}
.filter-toggle:hover { opacity: 0.5; }
.filter-toggle__count {
  margin-block-start: 0.6em; /* gap after the text in vertical writing */
  color: #2b3cc4; opacity: 0.65; /* blue with opacity — pops but stays quiet */
}
.filter-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 8500;
  width: min(420px, 92vw);
  background: var(--bg);
  box-shadow: -20px 0 80px rgba(0,0,0,0.10);
  display: flex; align-items: center;
  transform: translateX(103%);
  transition: transform 0.65s cubic-bezier(0.76, 0, 0.24, 1);
}
.filter-panel.-open { transform: translateX(0); }
.filter-panel__inner {
  width: 100%;
  padding: 2.6rem clamp(2rem, 4vw, 3.4rem);
  text-align: left;
}
.filter-panel__inner .label { display: block; margin-bottom: 1rem; }
.filter-list { display: flex; flex-direction: column; }
.filter-list button {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 1.15rem; padding: 0.4rem 0;
  color: var(--ink);
  transition: color 0.2s;
}
.filter-list button span { font-size: 0.95rem; color: var(--grey); }
.filter-list button:hover { color: #2b3cc4; }
.filter-list button.-active { color: #2b3cc4; font-style: italic; }
.filter-list button.-active span { color: #2b3cc4; }
.filter-apply {
  margin: 2rem auto 0; display: flex; align-items: center; justify-content: center;
  width: 84px; height: 84px; border-radius: 50%;
  background: #2b3cc4; color: #fff;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  transition: transform 0.3s var(--ease);
}
.filter-apply:hover { transform: scale(1.1); }

/* ---- menu: dark drawer sliding up from the bottom (BiA) ---- */
.menu {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 8800;
  background: #0d0d0d; color: #fff;
  padding: 2.4rem var(--pad) 2rem;
  transform: translateY(103%);
  transition: transform 0.7s cubic-bezier(0.76, 0, 0.24, 1);
}
.menu.-open { transform: translateY(0); }
.menu__row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.5vw, 2.5rem);
}
@media (max-width: 800px) { .menu__row { grid-template-columns: repeat(2, 1fr); } }
.menu__item { display: block; }
.menu__label {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: -0.01em;
  font-size: clamp(1rem, 1.7vw, 1.6rem);
  margin-bottom: 1rem;
}
.menu__item.-active .menu__label::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: #2b3cc4; flex: none;
}
.menu__preview {
  display: block; aspect-ratio: 16 / 10;
  background: #1c1c1c; overflow: hidden; border-radius: 2px;
}
.menu__preview > img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.menu__item:hover .menu__preview > img { transform: scale(1.05); }
.menu__collage {
  width: 100%; height: 100%;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px;
}
.menu__collage img { width: 100%; height: 100%; object-fit: cover; }
.menu__bottom {
  display: flex; justify-content: flex-end; align-items: center; gap: 1rem;
  margin-top: clamp(3rem, 9vh, 6rem);
}
.menu__bottom .label { color: rgba(255,255,255,0.8); margin-right: 0.4rem; }
.menu__bottom a {
  border: 1px solid rgba(255,255,255,0.7);
  padding: 0.7rem 1.1rem;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  transition: background 0.3s, color 0.3s;
}
.menu__bottom a:hover { background: #fff; color: var(--ink); }

/* ---- split hero (BiA structure) ---- */
.hero {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 100svh;
}
.hero__media { position: relative; overflow: hidden; background: var(--card); }
.hero__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  will-change: transform;
}
.hero__panel {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 6rem var(--pad) 3rem;
  position: relative;
}
.hero__badge { position: absolute; top: 1.4rem; left: 50%; transform: translateX(-50%); color: var(--ink); white-space: nowrap; }
.hero__title {
  font-size: clamp(2.6rem, 5.6vw, 5.6rem);
  max-width: 11ch;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .word { display: inline-block; will-change: transform; }
.hero__sub {
  margin-top: 2.2rem; max-width: 34ch;
  font-size: 1.05rem; color: var(--grey);
}
.btn-group {
  display: inline-flex; margin-top: 2.2rem;
}
.btn-group a {
  font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
  padding: 0.75rem 1.35rem;
  border: 1px solid var(--ink); /* each carries its own full border… */
  transition: background 0.3s, color 0.3s;
}
.btn-group a + a { margin-left: -1px; } /* …but they butt together and read as one joined box */
.btn-group a:hover { background: var(--ink); color: var(--bg); }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero__media { min-height: 48svh; }
  .hero__panel { padding-top: 7rem; }
}

/* ---- section scaffolding ---- */
.section { padding: clamp(4rem, 10vh, 7rem) var(--pad); }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; margin-bottom: 1.6rem; flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 3rem); }

/* ---- filters ---- */
.filters { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.filters button {
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--grey);
  padding-bottom: 0.15rem; border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.filters button:hover { color: var(--ink); }
.filters button.-active { color: var(--ink); border-color: var(--ink); }

/* ---- work grid — masonry, overlay captions (BiA cases) ----
   BiA gutters: wide, even, ~2.7vw both directions, 4 columns */
:root { --gutter: clamp(1.5rem, 2.7vw, 4.2rem); }
.work-grid { columns: 4; column-gap: var(--gutter); }
@media (max-width: 1100px) { .work-grid { columns: 3; } }
@media (max-width: 1000px) { .work-grid { columns: 2; } }
@media (max-width: 600px) { .work-grid { columns: 1; } }
.work-card {
  position: relative; display: block;
  break-inside: avoid;
  margin-bottom: var(--gutter);
  border-radius: 0; overflow: hidden;
  background: var(--card);
}
.work-card.-hidden { display: none; }
.work-card__img { position: relative; }
/* captions sit straight on the artwork — no gradient band (BiA) */
/* flush top row; stagger comes from cycling tile heights (BiA's optical trick) */
.work-card__img {
  background: #f0efec;
  aspect-ratio: 4 / 4.6;
}
.work-card:nth-child(3n+2) .work-card__img { aspect-ratio: 4 / 5.8; } /* tall */
.work-card:nth-child(3n) .work-card__img { aspect-ratio: 4 / 4.1; }   /* short */
.work-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply; /* white paper takes on the tile colour — defined, consistent cards */
  transition: transform 0.8s var(--ease);
  will-change: transform;
}
.work-card:hover .work-card__img img { transform: scale(1.04); }
.work-card__caption {
  position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1rem; z-index: 2;
  color: var(--ink); font-size: 0.95rem; line-height: 1.35;
}
.work-card[data-cat="studies"] .work-card__caption { color: #fff; }
.work-card__caption strong { font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.work-card__caption strong::after { content: "  ·  "; font-weight: 400; }
.work-card__tag {
  position: absolute; top: 0.9rem; right: 0.9rem; z-index: 2;
  background: rgba(255,255,255,0.22);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  color: var(--ink);
  font-size: 0.72rem; font-weight: 600;
  padding: 0.35rem 0.85rem; border-radius: 99px;
}
/* over dark artwork the pill inherits the image; keep text readable on dark studies */
.work-card[data-cat="studies"] .work-card__tag { color: #fff; background: rgba(255,255,255,0.16); }

/* ---- statement ---- */
.statement { max-width: 70rem; }
.statement p {
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3.2vw, 2.8rem);
  font-weight: 600; letter-spacing: -0.015em; line-height: 1.1;
}
.statement .word { opacity: 0.15; display: inline-block; }

/* ---- about ---- */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } }
.about__img { background: var(--card); border-radius: var(--radius); overflow: hidden; }
.about__img img { width: 100%; transition: transform 1s var(--ease); }
.about__img:hover img { transform: scale(1.03); }
.about__body h2 { font-size: clamp(1.9rem, 4.2vw, 3.4rem); margin-bottom: 1.4rem; }
.about__body p { color: var(--grey); margin-bottom: 1.1rem; max-width: 52ch; }
.about__list { list-style: none; margin-top: 1.8rem; border-top: 1px solid var(--line); }
.about__list li {
  display: flex; justify-content: space-between; gap: 2rem;
  padding: 0.85rem 0; border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.about__list li span:last-child { color: var(--grey); }

/* ---- get in touch (BiA contact) ---- */
/* left: tight full-bleed masonry that runs to the screen edge;
   right: airy text column. Mirrors buildinamsterdam.com/contact. */
.touch {
  display: grid; grid-template-columns: 1fr 1fr; /* images capped at exactly half the page */
  gap: clamp(2.5rem, 5vw, 6rem);
  padding: clamp(3rem, 7vh, 5rem) var(--pad) 0 0; /* left: 0 → images bleed to the edge */
  border-top: 1px solid var(--line);
  align-items: start;
}
/* desktop: fit the whole section to one viewport — images bleed off top/bottom, no page scroll */
@media (min-width: 861px) {
  .touch { height: 100svh; overflow: hidden; }
}
@media (max-width: 860px) {
  .touch { grid-template-columns: 1fr; padding-left: var(--pad); padding-bottom: 2rem; }
}

/* two masonry columns; the second sits lower; they drift at different speeds */
.touch__media {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 2.2vw, 2.25rem);
  align-items: start;
}
.touch__col { display: flex; flex-direction: column; gap: clamp(1.25rem, 2.2vw, 2.25rem); will-change: transform; }
.touch__media figure { overflow: hidden; background: #fff; }
.touch__media img {
  width: 100%; display: block; object-fit: cover;
  aspect-ratio: 2 / 3; height: auto; /* BiA's exact allocation: 960×1440 portrait, identical for every tile */
  transition: transform 1s var(--ease);
  will-change: transform;
}
.touch__media figure:hover img { transform: scale(1.04); }

/* type — modest, sentence case, airy spacing (matches the reference) */
.touch__body { padding-top: clamp(5rem, 12vh, 7.5rem); }
/* about page: same touch layout, denser text column so it fits one viewport */
.touch.-about .touch__body { padding-top: clamp(4rem, 9vh, 5.5rem); }
.touch.-about .touch__body h2 { margin-bottom: clamp(2.2rem, 5vh, 3.5rem); }
.touch.-about .touch__item { margin-bottom: clamp(2rem, 4.5vh, 3rem); }
.touch.-about .touch__item p { max-width: 52ch; }
.touch.-about .touch__item p + p { margin-top: 0.7rem; }
.touch__body h2 {
  text-transform: none;
  font-weight: 400;
  font-size: clamp(2.2rem, 3.4vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: clamp(3.2rem, 8vh, 5.5rem);
}
.touch__item { margin-bottom: clamp(3rem, 7vh, 4.8rem); }
.touch__item:last-child { margin-bottom: 0; }
.touch__item .label {
  display: block; margin-bottom: 0.85rem;
  font-size: 1.05rem; font-weight: 700; letter-spacing: 0.05em; color: var(--ink);
}
.touch__item a, .touch__item p {
  font-size: 1.15rem; font-weight: 400; color: var(--ink); line-height: 1.35;
}
.touch__item > a {
  display: inline-block; color: var(--ink);
  background-image: linear-gradient(var(--ink), var(--ink));
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size 0.4s var(--ease);
}
.touch__item > a:hover { background-size: 100% 1px; }
.touch__social { display: flex; gap: clamp(1.5rem, 2.5vw, 2.8rem); flex-wrap: wrap; margin-top: 0.6rem; }
.touch__social a {
  font-size: 1.15rem; font-weight: 400; color: var(--ink);
  background: none; transition: color 0.25s;
}
.touch__social a:hover { color: var(--ink); }
.touch__legal {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem; margin-top: clamp(3rem, 8vh, 6rem);
  font-size: 0.78rem; color: var(--grey);
}

/* ---- scroll snapping on case pages (each section springs to fit) ---- */
/* snapping is JS-assisted (settles to sections after you stop) — CSS snap trapped upward scrolls */
html.snap .proj-cover,
html.snap .case-info,
html.snap .case-slide,
html.snap .next-up { scroll-snap-align: start; }

/* ---- case info section: split text / media (BiA case layout) ---- */
.case-info {
  display: grid; grid-template-columns: 1fr 1fr;
  height: 100svh; overflow: hidden;
}
.case-info__text {
  display: flex; flex-direction: column;
  padding: clamp(4rem, 10vh, 6rem) var(--pad) clamp(2rem, 5vh, 3rem);
}
.case-info__lead {
  margin-top: 2rem;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  font-weight: 500; letter-spacing: -0.02em; line-height: 1.35;
  max-width: 30ch;
}
.case-info__links { display: flex; gap: 2.4rem; margin-top: 2.4rem; }
.case-info__links a {
  font-size: 0.95rem; font-weight: 600;
  border-bottom: 1px solid var(--ink); padding-bottom: 0.1rem;
  transition: opacity 0.3s;
}
.case-info__links a:hover { opacity: 0.5; }
.case-info__services {
  margin-top: auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
.case-info__services p { color: var(--grey); font-size: 0.95rem; max-width: 28ch; }
.case-info__media { background: var(--card); overflow: hidden; }
.case-info__media img { width: 100%; height: 100%; object-fit: contain; padding: 4%; }
@media (max-width: 860px) {
  .case-info { grid-template-columns: 1fr; height: auto; min-height: 100svh; }
  .case-info__media { min-height: 50svh; }
}

/* ---- case slides: one artwork per viewport ---- */
.case-slide {
  height: 100svh;
  background: var(--card);
  overflow: hidden;
  border-top: 1px solid var(--bg);
}
.case-slide img { width: 100%; height: 100%; object-fit: contain; padding: 3%; }

/* ---- project pages ---- */
.proj-cover {
  position: relative;
  height: 100svh;
  background: var(--card);
  overflow: hidden;
}
.proj-cover img { width: 100%; height: 100%; object-fit: contain; }
.proj-cover__caption {
  position: absolute; left: var(--pad); bottom: 1.6rem; z-index: 2;
  font-size: 1.05rem; line-height: 1.4; max-width: 44ch;
  color: var(--ink);
  animation: coverCaption 0.9s var(--ease) 0.35s both;
}
.proj-cover__caption strong { font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.proj-cover__caption.-light { color: #fff; }
@keyframes coverCaption {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.proj-hero { padding: clamp(4rem, 10vh, 7rem) var(--pad) 2rem; }
.proj-hero h1 {
  text-transform: uppercase; font-weight: 600;
  font-size: clamp(2.6rem, 7.5vw, 7rem);
  letter-spacing: -0.02em; line-height: 0.95;
  margin: 0.8rem 0 2rem;
}
.proj-hero h1 em { font-style: normal; }
.proj-hero .kicker, .kicker {
  font-size: 0.72rem; font-weight: 600; color: var(--grey);
  text-transform: uppercase; letter-spacing: 0.06em;
  display: block; margin-bottom: 0.8rem;
}
.proj-hero__facts {
  display: flex; gap: clamp(1.5rem, 5vw, 5rem); flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 1.2rem;
}
.proj-hero__facts div span {
  display: block; font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--grey);
}
.proj-hero__facts div strong { font-weight: 500; font-size: 0.92rem; }
.proj-body { padding: 0 var(--pad) clamp(4rem, 10vh, 7rem); }
.proj-lead {
  max-width: 52rem; margin: clamp(2.5rem, 7vh, 5rem) 0;
  font-size: clamp(1.3rem, 2.3vw, 1.8rem);
  font-weight: 500; letter-spacing: -0.02em; line-height: 1.3;
}
.proj-gallery { columns: 2; column-gap: var(--gap); }
@media (max-width: 640px) { .proj-gallery { columns: 1; } }
.proj-gallery figure {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  break-inside: avoid; margin-bottom: var(--gap);
}
.proj-gallery img { width: 100%; transition: transform 0.9s var(--ease); }
.proj-gallery figure:hover img { transform: scale(1.03); }
/* ---- Next Up banner: full-screen teaser of the next case (BiA) ---- */
.next-up {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  height: 100svh; overflow: hidden;
  color: #fff; text-align: center;
}
.next-up > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.next-up:hover > img { transform: scale(1.04); }
.next-up__scrim {
  position: absolute; inset: 0;
  background: rgba(10, 10, 10, 0.42);
}
.next-up__line {
  position: relative; z-index: 2;
  font-size: clamp(1.7rem, 3.2vw, 3rem);
  font-weight: 500; letter-spacing: -0.01em; line-height: 1.15;
  padding: 0 var(--pad);
}
.next-up__line .next-up__prefix {
  /* true thin caps (Inter 200 — Instrument Sans has no thin weight) */
  color: #fff;
  font-family: "Inter", "Instrument Sans", sans-serif;
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9em; /* -10% vs the collection name */
}
.next-up__line .next-up__prefix::after {
  content: "\2014"; /* — separator */
  font-weight: 200;
  letter-spacing: 0;
  margin: 0 0.45em;
}
.next-up__name {
  /* loading bar: text fills left-to-right to 100% white, then auto-advances */
  background: linear-gradient(90deg, #fff var(--fill, 0%), rgba(255,255,255,0.28) var(--fill, 0%));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.next-up__btn {
  position: relative; z-index: 2;
  margin-top: 2.2rem;
  border: 1px solid rgba(255,255,255,0.9);
  padding: 0.85rem 1.9rem;
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: #fff;
  transition: background 0.3s, color 0.3s;
}
.next-up:hover .next-up__btn { background: #fff; color: var(--ink); }

/* Close circle on case pages — cream, returns to Work */
.btn-circle.-close { background: #efe7d8; color: var(--ink); }

/* ---- contact footer (legacy class on project pages) ---- */
.contact {
  background: var(--ink); color: var(--bg);
  padding: clamp(4rem, 12vh, 8rem) var(--pad) 1.6rem;
}
.contact .kicker { color: rgba(255,255,255,0.5); }
.contact__title {
  text-transform: uppercase; font-weight: 600;
  font-size: clamp(2rem, 6vw, 5.5rem);
  letter-spacing: -0.02em; line-height: 1.0;
  margin-bottom: 3rem;
}
.contact__title em { font-style: normal; }
.contact__title a { position: relative; display: inline-block; }
.contact__title a::after {
  content: ""; position: absolute; left: 0; bottom: 0.04em; width: 100%; height: 2px;
  background: var(--bg); transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.contact__title a:hover::after { transform: scaleX(1); transform-origin: left; }
.contact__row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 2rem; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.6rem;
}
.contact__row nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.contact__row a { font-size: 0.85rem; opacity: 0.7; transition: opacity 0.3s; }
.contact__row a:hover { opacity: 1; }
.contact__row small { font-size: 0.75rem; opacity: 0.45; }

/* ---- reveal states ---- */
html.js .reveal { opacity: 0; }
html.js .reveal:not(.work-card) { transform: translateY(32px); }
html.js .reveal-img { clip-path: inset(0 0 100% 0); }
html.js .reveal-img img { transform: scale(1.12); }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js .reveal-img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
