/* PEAQ Architects · site styles
   Same system as the portfolio book: white pages, Lato only (900 headings, 400 text),
   black/grey text, maroon #7F1515 only in thin rules and small accents.
   Photos are always shown whole (no cropping); only material swatches are cut. */

:root {
  --ink: #1e1e1e;
  --grey: #5f5f5f;
  --muted: #767676;
  --rule: #d9d9d9;
  --maroon: #7f1515;
  --bg: #ffffff;
  --pad: clamp(20px, 5.5vw, 84px);
  --max: 1520px;
  --gap: clamp(12px, 1.4vw, 22px);
  --header: 84px;
  --block: clamp(72px, 9vw, 144px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 "Lato", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--maroon); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; }
b, strong { font-weight: 900; }
:focus-visible { outline: 2px solid var(--maroon); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 200; }
.skip:focus { left: 8px; }

/* ---------- type */
.label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--grey); line-height: 1.6; margin: 0 0 14px;
}
.display {
  font-weight: 900; letter-spacing: -0.02em; line-height: 0.95;
  font-size: clamp(44px, 6.2vw, 96px); max-width: 16ch;
}
.display--xl { font-size: clamp(52px, 8.6vw, 136px); line-height: 0.9; overflow-wrap: break-word; }
.display--s { font-size: clamp(30px, 3.3vw, 50px); line-height: 1.02; }
.rule { display: block; width: 40px; height: 3px; background: var(--maroon); margin: 24px 0 28px; }
.lede { font-size: clamp(18.5px, 1.45vw, 22px); line-height: 1.55; max-width: 40ch; }
.lede--s { font-size: clamp(18px, 1.3vw, 20px); }
.h2 { font-weight: 900; font-size: clamp(26px, 2.3vw, 36px); line-height: 1.12; margin-bottom: 24px; }
.h2::after { content: ""; display: block; width: 40px; height: 3px; background: var(--maroon); margin-top: 14px; }
h3 { font-weight: 900; font-size: 21px; line-height: 1.25; margin: 1.6em 0 0.5em; }
.muted { color: var(--grey); }
.small { font-size: 14px; }
.note { font-size: 14px; line-height: 1.5; color: var(--grey); margin-top: 16px; }
.prose p { max-width: 62ch; }
.prose .lede { max-width: 40ch; }
.more {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); white-space: nowrap;
}
.more::after { content: "  →"; color: var(--maroon); }
.more--back::before { content: "←  "; color: var(--maroon); }
.more--back::after { content: none; }
.more:hover { color: var(--maroon); }

/* ---------- header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header);
  background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: clamp(20px, 3vw, 44px); }
.nav a {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--grey); text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--maroon); }

/* ---------- buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer;
  font: 700 12.5px/1 "Lato", sans-serif; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { border-color: var(--maroon); color: var(--maroon); }
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: var(--maroon); border-color: var(--maroon); color: #fff; }

/* ---------- photos (always whole) */
.ph { margin: 0; min-width: 0; }
.ph__frame { position: relative; display: block; }
.ph__frame img { width: 100%; height: auto; background: #f2f2f2; }
a.ph__frame { cursor: pointer; }
.ph figcaption { margin-top: 12px; font-size: 14.5px; line-height: 1.5; color: var(--grey); max-width: 52ch; }
.ph figcaption b, .key b, .numbered__n { color: var(--ink); font-weight: 900; margin-right: 8px; font-variant-numeric: tabular-nums; }
/* numbered corner tag, as in the book; its minimum size also covers an AI tool's corner mark */
.tag {
  position: absolute; right: 0; bottom: 0; min-width: 4.6%; min-height: 7.8%;
  display: flex; align-items: center; gap: 8px; padding: 10px 14px 9px 16px; background: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); line-height: 1;
}
.tag b { color: var(--ink); font-size: 13px; letter-spacing: 0.02em; }

.row { display: flex; gap: var(--gap); align-items: flex-start; }
.row + .row { margin-top: var(--gap); }
.row .ph { flex: var(--ar) 1 0; }
.row--single .ph { max-width: calc((100vh - var(--header) - 60px) * var(--ar)); }

/* ---------- home hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 88px);
  align-items: center;
}
.hero__text { padding: clamp(16px, 3vw, 48px) 0; }
.hero__img { position: relative; justify-self: end; margin-right: calc(-1 * var(--pad)); display: block; }
.hero__img img { height: calc(100vh - var(--header)); max-height: 1100px; width: auto; max-width: 100%; object-fit: contain; }
.hero .display { max-width: 12ch; }

.hero--wide { display: block; }
.hero--wide .hero__img { display: block; margin: 0; }
.hero--wide .hero__img img { width: 100%; height: auto; max-height: none; }
.hero__cap { display: block; text-align: right; margin-top: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); text-decoration: none; }
.hero__cap b { color: var(--ink); margin-right: 8px; }
.hero__cap::after { content: "  →"; color: var(--maroon); }
.hero--wide .hero__text { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 88px); align-items: end; padding: clamp(28px, 4vw, 64px) 0 0; }
.hero--wide .display { max-width: 11ch; }
.hero--wide .actions { margin-bottom: 0; }
.dwg--bare .dwg__fig { max-width: 760px; }

/* ---------- sections */
.section { margin-top: var(--block); }
.section--tight { margin-top: clamp(40px, 5vw, 72px); }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.page-head { padding-top: clamp(48px, 7vw, 112px); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 88px); }
.split--img { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: start; }
.split--contact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.service { border-top: 1px solid var(--ink); padding-top: 18px; }
.service h3 { margin-top: 10px; }
.service p { color: var(--grey); }
.cta { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 88px); border-top: 1px solid var(--ink); padding-top: 56px; align-items: end; }
.cta .actions { margin-top: 0; }
.cta .display + .lede { margin-top: 20px; }

/* ---------- cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 4.5vw, 64px) var(--gap); }
.card { display: block; text-decoration: none; color: var(--ink); }
.card__img { display: block; }
.card__img img { width: 100%; height: auto; transition: opacity 0.25s; }
@media (min-width: 641px) {
  /* same frame for every card so titles line up; the whole image is shown, never cropped */
  .card__img { aspect-ratio: 3 / 2; }
  .card__img img { height: 100%; object-fit: contain; object-position: left top; }
}
.card:hover .card__img img { opacity: 0.9; }
.card__title { display: block; font-weight: 900; font-size: clamp(21px, 1.7vw, 26px); line-height: 1.2; margin-top: 16px; }
.card:hover .card__title { color: var(--maroon); }
.card__meta { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); margin-top: 6px; }

/* ---------- work page */
.cards--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 3.6vw, 56px) var(--gap); }
.cards--grid .card__title { font-size: clamp(19px, 1.45vw, 22px); margin-top: 14px; }
.cards__item[hidden] { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.filter { background: none; border: 0; border-bottom: 2px solid var(--rule); padding: 0 0 5px; cursor: pointer;
  font: 700 12.5px/1.4 "Lato", sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); }
.filter span { margin-left: 4px; color: var(--muted); }
.filter:hover { color: var(--ink); }
.filter[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--maroon); }
.tabs { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.tabs a { font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--ink); padding-bottom: 4px; border-bottom: 2px solid var(--rule); }
.tabs a:hover { border-bottom-color: var(--maroon); color: var(--ink); }
.tabs span { color: var(--grey); margin-left: 4px; }
.index__section { margin: 28px 0 0; padding-bottom: 8px; border-bottom: 1px solid var(--ink); color: var(--ink); }
.index__row {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 0.8fr); gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--grey); font-size: 15.5px;
}
.index__title { color: var(--ink); font-weight: 700; }
.index__row:hover .index__title { color: var(--maroon); }
.index__status { text-align: right; }

/* ---------- tables and lists */
.table { margin: 28px 0 0; }
.table div { display: grid; grid-template-columns: minmax(110px, 34%) minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; line-height: 1.45; }
.table dt { color: var(--grey); }
.table dd { margin: 0; overflow-wrap: anywhere; }
.numbered { list-style: none; margin: 0; padding: 0; }
.numbered li { display: grid; grid-template-columns: 34px minmax(0, 1fr); padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; line-height: 1.5; color: var(--grey); }
.numbered li b { display: block; color: var(--ink); }
.three--lists .h2 { min-height: 2.3em; }

/* ---------- project page */
.opener { padding-top: clamp(28px, 3.4vw, 48px); }
.opener--split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.opener--split .opener__img { justify-self: end; margin-right: calc(-1 * var(--pad)); }
.opener--split .opener__img img { max-height: calc(100vh - var(--header) - 24px); width: auto; max-width: 100%; }
.opener--split .opener__text { padding-top: clamp(12px, 4vw, 72px); }
.opener--stack .opener__img .ph { max-width: calc((100vh - var(--header) - 48px) * var(--ar)); margin: 0 auto; }
.opener--stack .display--xl { font-size: clamp(48px, 6.4vw, 108px); }
.opener--stack .opener__text { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 88px); margin-top: clamp(36px, 4vw, 64px); }
.opener--stack .opener__body { padding-top: 34px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--maroon); }
.typeline { color: var(--ink); margin-top: 22px; }
.opener .rule { margin-bottom: 0; }
.opener__body .lede { margin-top: 28px; }
.opener--stack .opener__body .lede { margin-top: 0; }

.block { margin-top: var(--block); }
.story, .materials, .credits { display: grid; grid-template-columns: minmax(230px, 3fr) minmax(0, 9fr); gap: clamp(28px, 4.5vw, 80px); align-items: start; }
.story__text { position: sticky; top: calc(var(--header) + 32px); }
.story__text p { max-width: 36ch; }

.swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 28px var(--gap); }
.swatches img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.swatches span { display: block; margin-top: 10px; font-size: 15px; line-height: 1.4; }

.drawings__head { display: grid; grid-template-columns: minmax(230px, 3fr) minmax(0, 9fr); gap: clamp(28px, 4.5vw, 80px); align-items: start; }
.drawings__head .h2 { margin-bottom: 0; }
.drawings__lead { margin-top: clamp(36px, 4vw, 64px); }
.drawings__lead .ph { max-width: calc((100vh - var(--header) - 48px) * var(--ar)); margin: 0 auto; }
.dwgs { margin-top: clamp(36px, 4vw, 64px); }
.dwgs--n2:has(.dwg--tall):not(:has(.dwg--wide)) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 88px); }
.dwg { margin: 0; }
.dwg__fig { margin: 0; }
.dwg__fig a { display: block; cursor: pointer; }
.dwg--tall .dwg__fig img { max-height: calc(100vh - var(--header) - 60px); width: auto; max-width: 100%; }
.dwgs--n1 .dwg--tall { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.dwgs--n1 .dwg--tall .dwg__key { padding-top: 24px; }
.dwgs--n2 .dwg--tall .dwg__key { margin-top: 28px; }
.dwgs--n2:has(.dwg--wide) .dwg + .dwg { margin-top: clamp(56px, 6vw, 96px); padding-top: clamp(40px, 4vw, 64px); border-top: 1px solid var(--rule); }
.dwg--wide { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(28px, 4.5vw, 72px); align-items: start; }
.dwg--wide + .dwg--wide { margin-top: clamp(56px, 6vw, 96px); padding-top: clamp(40px, 4vw, 64px); border-top: 1px solid var(--rule); }
.key { list-style: none; margin: 0; padding: 0; font-size: 15.5px; line-height: 1.5; }
.key li { padding: 3px 0; }
.dwgs--n2 .dwg--tall .key { columns: 2; column-gap: 28px; }
.dwgs--n2 .dwg--tall .key li { break-inside: avoid; }

.credits .table { margin-top: 0; }
.next { margin-top: var(--block); border-top: 1px solid var(--ink); padding-top: 32px; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.next__link { text-decoration: none; text-align: right; display: block; }
.next__title { display: block; font-weight: 900; font-size: clamp(30px, 3.3vw, 50px); line-height: 1.02; letter-spacing: -0.02em; margin: 2px 0 8px; }
.next__link .label { margin: 0; }
.next__link .muted { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- contact form */
.form { border-top: 1px solid var(--ink); padding-top: 28px; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; margin-bottom: 30px; }
.field { display: block; }
.field--wide { grid-column: 1 / -1; }
.field span { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); margin-bottom: 4px; }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1.5px solid #b5b5b5; border-radius: 0; background: transparent;
  font: 400 17px/1.4 "Lato", sans-serif; color: var(--ink); padding: 10px 0; -webkit-appearance: none; appearance: none;
}
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231e1e1e' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 4px center; padding-right: 24px; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1.5px 0 var(--maroon); }
.hp { position: absolute; left: -9999px; }
.form__status { margin-top: 16px; padding: 14px 16px; border-left: 3px solid var(--maroon); background: #f6f6f6; font-size: 15px; }

/* ---------- footer */
.site-footer { margin-top: var(--block); border-top: 1px solid var(--ink); padding: 56px 0 28px; font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer__brand img { height: 36px; width: auto; margin-bottom: 18px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--muted); }

/* ---------- lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(255, 255, 255, 0.985); display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; padding: 64px 0 24px; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; }
.lightbox__figure figcaption { margin-top: 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); text-align: center; }
.lightbox button { background: none; border: 0; cursor: pointer; color: var(--ink); font-family: "Lato", sans-serif; }
.lightbox__close { position: absolute; top: 18px; right: 24px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 10px; }
.lightbox__prev, .lightbox__next { font-size: 44px; line-height: 1; height: 100%; }
.lightbox__prev:hover, .lightbox__next:hover, .lightbox__close:hover { color: var(--maroon); }

/* ---------- responsive */
@media (max-width: 1100px) {
  .opener--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 1100px) {
  .cards--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 959px) {
  :root { --header: 68px; }
  .brand img { height: 32px; }
  .nav { gap: 18px; }
  .hero, .opener--split, .opener--stack .opener__text, .split, .split--img, .split--contact, .cta,
  .story, .materials, .credits, .drawings__head, .dwg--wide, .dwgs--n1 .dwg--tall { grid-template-columns: minmax(0, 1fr); }
  .dwgs--n2:has(.dwg--tall):not(:has(.dwg--wide)) { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero__img, .opener--split .opener__img { justify-self: stretch; margin-right: 0; order: 2; }
  .hero--wide .hero__text { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero__img img, .opener--split .opener__img img { max-height: none; width: 100%; }
  .opener--split .opener__text { padding-top: 0; }
  .opener--stack .opener__body { padding-top: 0; }
  .story__text { position: static; }
  .story__text p, .lede, .prose p { max-width: none; }
  .row { flex-direction: column; }
  .row .ph { flex: none; width: 100%; max-width: none; }
  .three { grid-template-columns: minmax(0, 1fr); }
  .three--lists .h2 { min-height: 0; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
  .index__row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .index__row span:nth-child(n+3) { display: none; }
  .dwg--tall .dwg__fig img { max-height: none; width: 100%; }
  .lightbox { grid-template-columns: 40px minmax(0, 1fr) 40px; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .nav { gap: 14px; }
  .nav a { font-size: 11.5px; letter-spacing: 0.1em; }
  .cards, .cards--grid { grid-template-columns: minmax(0, 1fr); }
  .form__grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .dwgs--n2 .dwg--tall .key { columns: 1; }
  .tag { padding: 7px 10px 6px 11px; font-size: 9.5px; gap: 6px; }
  .tag b { font-size: 11px; }
  .next { flex-direction: column; }
  .next__link { text-align: left; }
  .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* =========================================================
   Motion and editorial details
   Everything here is progressive: without script, or with
   "reduce motion" switched on, the page shows as it is.
   ========================================================= */
:root { --ease: cubic-bezier(0.2, 0.7, 0.2, 1); --ease-io: cubic-bezier(0.77, 0, 0.18, 1); }

/* text overlapping images: white panels that sit over the lower edge of the main image */
.hero--wide .hero__img { position: relative; overflow: hidden; }
.hero--wide .hero__text { position: relative; z-index: 2; padding-top: 0; align-items: end; }
.hero__panel { background: #fff; position: relative; margin-top: calc(-1 * clamp(56px, 8vw, 128px));
  padding: clamp(20px, 2.4vw, 40px) clamp(24px, 3vw, 56px) 0 0; margin-left: calc(-1 * clamp(0px, 0vw, 0px)); }
.hero__side { padding-bottom: 6px; }
.hero--wide .hero__cap { position: relative; z-index: 3; }
.opener--stack .opener__title { position: relative; z-index: 2; background: #fff;
  margin-top: calc(-1 * clamp(56px, 7.5vw, 120px)); padding: clamp(18px, 2.2vw, 36px) clamp(24px, 3vw, 56px) 0 0; }
.opener--stack .opener__text { margin-top: 0; }
.opener--stack .opener__body { padding-top: clamp(40px, 5vw, 96px); }

.overlap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
.overlap__img { grid-column: 5 / 13; grid-row: 1; margin: 0; position: relative; }
.overlap__img::before { content: ""; position: absolute; inset: clamp(18px, 2.4vw, 36px) calc(-1 * clamp(18px, 2.4vw, 36px)) calc(-1 * clamp(18px, 2.4vw, 36px)) clamp(18px, 2.4vw, 36px);
  background: #f3f1ee; z-index: -1; }
.overlap__panel { grid-column: 1 / 6; grid-row: 1; position: relative; z-index: 2; background: #fff;
  padding: clamp(28px, 3.2vw, 52px) clamp(28px, 3.2vw, 52px) clamp(8px, 1vw, 16px) 0; margin-bottom: calc(-1 * clamp(40px, 6vw, 96px)); }
.overlap + .section { margin-top: calc(var(--block) + clamp(40px, 6vw, 96px)); }

/* moving band of words */
.marquee { margin-top: var(--block); overflow: hidden; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: clamp(10px, 1.4vw, 22px) 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee span { font-weight: 900; font-size: clamp(56px, 8.4vw, 140px); line-height: 1; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1.2px var(--ink); white-space: nowrap; }
.marquee span::after { content: "·"; color: var(--maroon); -webkit-text-stroke: 0; margin: 0 0.32em; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* header hides on the way down, returns on the way up */
.site-header { transition: border-color 0.2s, transform 0.45s var(--ease); }
.site-header.is-hidden { transform: translateY(-100%); }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--maroon); transform-origin: 0 50%; transform: scaleX(0); }

/* buttons: fill slides across */
.btn { background-image: linear-gradient(var(--maroon), var(--maroon)); background-repeat: no-repeat; background-size: 0% 100%; background-position: left; transition: background-size 0.45s var(--ease-io), color 0.3s, border-color 0.3s; }
.btn:hover { background-size: 100% 100%; color: #fff; border-color: var(--maroon); }
.btn--solid { background-color: var(--ink); }

/* card titles: line draws under on hover */
.card__title { background-image: linear-gradient(var(--maroon), var(--maroon)); background-repeat: no-repeat; background-size: 0% 2px; background-position: 0 100%;
  display: inline-block; padding-bottom: 3px; transition: background-size 0.5s var(--ease), color 0.3s; }
.card:hover .card__title { background-size: 100% 2px; }
.card__meta { display: block; }

/* reveals (only when script is running and motion is welcome) */
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.anim-off) .hero__img img { opacity: 0; transform: scale(1.06); transition: opacity 1.2s ease, transform 2.4s var(--ease); }
  html.js.is-loaded .hero__img img { opacity: 1; transform: none; }

  html.js:not(.anim-off) .reveal { overflow: hidden; }
  html.js:not(.anim-off) .reveal img { clip-path: inset(0 0 100% 0); transform: scale(1.08); transition: clip-path 1.25s var(--ease-io), transform 1.8s var(--ease); transition-delay: var(--d, 0ms); }
  html.js:not(.anim-off) .reveal.is-in img { clip-path: inset(0 0 0 0); transform: none; }
  html.js:not(.anim-off) .reveal .tag { opacity: 0; transform: translateX(14px); transition: opacity 0.6s ease, transform 0.6s var(--ease); transition-delay: calc(var(--d, 0ms) + 800ms); }
  html.js:not(.anim-off) .reveal.is-in .tag { opacity: 1; transform: none; }

  html.js:not(.anim-off) .fade { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease, transform 1s var(--ease); transition-delay: var(--d, 0ms); }
  html.js:not(.anim-off) .fade.is-in { opacity: 1; transform: none; }

  html.js:not(.anim-off) .rule, html.js:not(.anim-off) .h2::after { width: 0; transition: width 0.9s var(--ease-io) 0.25s; }
  html.js:not(.anim-off) .is-in .rule, html.js:not(.anim-off) .rule.is-in,
  html.js:not(.anim-off) .is-in > .h2::after, html.js:not(.anim-off) .h2.is-in::after, html.js:not(.anim-off) .is-in .h2::after { width: 40px; }

  .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
  .w > span { display: inline-block; }
  html.js:not(.anim-off) .js-words .w > span { transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
  html.js:not(.anim-off) .js-words.is-in .w > span { transform: none; }

  .lightbox:not([hidden]) { animation: lb-in 0.35s ease; }
  .lightbox__figure img { animation: lb-img 0.5s var(--ease); }
  @keyframes lb-in { from { opacity: 0; } }
  @keyframes lb-img { from { opacity: 0; transform: scale(0.98); } }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

@media (max-width: 959px) {
  .hero__panel, .opener--stack .opener__title { margin-top: calc(-1 * clamp(24px, 6vw, 44px)); padding-right: 20px; width: 74%; }
  .opener--stack .opener__title .display--xl { width: calc(100vw - 2 * var(--pad)); }
  .hero__panel { margin-top: 18px; width: auto; padding: 0; }
  .opener--stack .opener__body { padding-top: 0; }
  .overlap__img { grid-column: 1 / -1; }
  .overlap__panel { grid-column: 1 / -1; grid-row: 2; margin: 0; padding: 28px 0 0; }
  .overlap + .section { margin-top: var(--block); }
  .overlap__img::before { display: none; }
}

/* principal profile */
.profile { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.profile__img { margin: 0; position: relative; }
.profile__img img { width: 100%; height: auto; }
.profile__img::before { content: ""; position: absolute; inset: clamp(18px, 2.4vw, 36px) calc(-1 * clamp(18px, 2.4vw, 36px)) calc(-1 * clamp(18px, 2.4vw, 36px)) clamp(18px, 2.4vw, 36px); background: #f3f1ee; z-index: -1; }
.profile .display--s { margin-bottom: 0; }
@media (max-width: 959px) { .profile { grid-template-columns: minmax(0, 1fr); } .profile__img { max-width: 420px; } .profile__img::before { display: none; } }
