/* Adamo Architect Inc. | stylesheet, version 2
   Proportion: the golden section (1 : 1.618 = 61.8% : 38.2%) sets the page splits, photo and art
   proportions, spacing steps and offsets. Paper, ink, red and green are the only colours.
   Fonts: Michelangelus (display, italic and bold), Isocpeur (technical and small text),
   Helvetica Bold (strong titles). */

@font-face { font-family: "Michelangelus"; src: url("../fonts/Michelangelus-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Michelangelus"; src: url("../fonts/Michelangelus-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Michelangelus"; src: url("../fonts/Michelangelus-BoldItalic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
/* Isocpeur: used if it is installed on the viewer's computer. To ship it with the site, add the file
   to assets/fonts/ and put its url() after local(). Until then the open-source drafting font below stands in. */
@font-face { font-family: "Isocpeur"; src: local("ISOCPEUR"), local("Isocpeur"), local("ISOCPEUR Regular"); font-display: swap; }
@font-face { font-family: "Osifont"; src: url("../fonts/osifont.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --paper: #EEE4D6;
  --paper-deep: #E4D8C6;
  --ink: #171715;
  --ink-soft: rgba(23, 23, 21, 0.72);
  --line: rgba(23, 23, 21, 0.24);
  --red: #A92F24;
  --green: #354B3A;
  --accent: var(--red);

  /* spacing: powers of the golden ratio */
  --s1: 0.382rem; --s2: 0.618rem; --s3: 1rem; --s4: 1.618rem; --s5: 2.618rem; --s6: 4.236rem; --s7: 6.854rem; --s8: 11.09rem;

  --f-display: "Michelangelus", "EB Garamond", Garamond, "Times New Roman", serif;
  --f-tech: "Isocpeur", "Osifont", "Arial Narrow", Arial, sans-serif;
  --f-sans: "Helvetica", "Helvetica Neue", Arial, "Liberation Sans", sans-serif;

  --wrap: 90rem;
  --gutter: clamp(1.25rem, 4.2vw, 4.236rem);
  --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}
.t-green { --accent: var(--green); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; scroll-padding-top: var(--s6); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem / 1.55 var(--f-sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: var(--paper); }
p { margin: 0 0 var(--s3); max-width: 36rem; }
.skip { position: absolute; left: var(--s3); top: -4rem; z-index: 100; background: var(--ink); color: var(--paper); padding: var(--s2) var(--s3); }
.skip:focus { top: var(--s3); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
.label { font: 400 0.84rem / 1.4 var(--f-tech); letter-spacing: 0.2em; text-transform: uppercase; margin: 0; max-width: none; }
.label.soft { color: var(--ink-soft); }
.label.red { color: var(--red); }
.label.green { color: var(--green); }
.tech { font: 400 0.9rem / 1.45 var(--f-tech); letter-spacing: 0.04em; }
.italic { font-family: var(--f-display); font-style: italic; font-weight: 400; }
.h-display { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: clamp(3.1rem, 6vw, 6.4rem); line-height: 0.98; letter-spacing: -0.012em; margin: 0; }
.h-display.m { font-size: clamp(2.6rem, 4.6vw, 5rem); }
.h-display .dot { display: inline-block; width: 0.115em; height: 0.115em; background: var(--red); margin-left: 0.07em; }
.h-strong { font: 700 clamp(2.4rem, 4.6vw, 4.8rem) / 0.95 var(--f-sans); letter-spacing: -0.02em; text-transform: uppercase; margin: 0; }
.h-strong .r { color: var(--red); }
.h-title { font: 700 clamp(1.4rem, 2.2vw, 2.058rem) / 1.12 var(--f-sans); letter-spacing: -0.015em; margin: 0; }
.h-serif { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; line-height: 1.2; margin: 0; }
.lead { font-family: var(--f-display); font-style: italic; font-size: clamp(1.4rem, 2.1vw, 2.058rem); line-height: 1.22; max-width: 34rem; margin: 0; }
.fine { font-size: 0.8125rem; line-height: 1.55; color: var(--ink-soft); }
.link { display: inline-block; font: 400 0.9rem / 1.2 var(--f-tech); letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; padding-bottom: 0.4rem; border-bottom: 1px solid var(--red); }
.link:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- header and the travelling square ---------- */
.site-header { position: relative; padding-top: var(--s4); z-index: 20; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding-bottom: var(--s3); }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.site-header .logo { display: block; height: clamp(2.8rem, 4vw, 3.8rem); width: auto; }
.foot .logo { display: block; height: 3.6rem; width: auto; margin-bottom: var(--s3); }
.site-nav ul { display: flex; gap: clamp(1.4rem, 2.8vw, 2.9rem); list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; font: 400 0.84rem / 1 var(--f-tech); letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; padding: var(--s2) 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.rule { position: relative; height: 1px; background: var(--ink); }
.marker { position: absolute; top: -5px; left: 0; width: 11px; height: 11px; background: var(--red); transform: translateX(var(--mx, 0px)); transition: transform 0.7s cubic-bezier(0.65, 0, 0.2, 1); }
.marker.still { transition: none; }
.nav-toggle { display: none; font: 400 0.84rem var(--f-tech); letter-spacing: 0.2em; text-transform: uppercase; background: none; color: var(--ink); border: 1px solid var(--ink); padding: var(--s2) var(--s3); cursor: pointer; }

/* ---------- shared pieces ---------- */
main { padding-bottom: var(--s6); overflow-x: clip; }
.sec { margin-top: var(--s7); }
.sec-label { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s5); }
.sec-label::after { content: ""; height: 1px; background: var(--ink); width: 14.6%; max-width: 12rem; }
.tag { position: absolute; left: 0; bottom: 0; background: var(--paper); padding: 0.28rem var(--s2); font: 400 0.72rem / 1.2 var(--f-tech); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.ph { position: relative; overflow: hidden; margin: 0; background: var(--paper-deep); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph img, .ph-frame img { transform: translateY(var(--py, 0%)) scale(var(--sc, 1)); }
.ph img { --sc: 1.08; }
.r-gold { aspect-ratio: 1.618 / 1; }
.r-tall { aspect-ratio: 1 / 1.618; }
.r-strip { aspect-ratio: 3.236 / 1; }
.r-sq { aspect-ratio: 1 / 1; }
.ph.empty { display: flex; align-items: center; justify-content: center; }
.ph.empty .label { color: var(--ink-soft); }
.plane { position: absolute; background: var(--green); aspect-ratio: 1; z-index: 2; }
.plane.red { background: var(--red); }

/* art plates: exact golden-section constructions */
.art { width: 100%; height: auto; overflow: visible; }
.art .a-line { fill: none; stroke: var(--ink); stroke-width: 1.7; }
.art .a-fine { fill: none; stroke: var(--ink); stroke-width: 1.1; opacity: 0.42; }
.art .a-tone { fill: var(--paper-deep); }
.art .a-red { fill: var(--red); }
.art .a-green { fill: var(--green); }
.art .a-redline { fill: none; stroke: var(--red); stroke-width: 2.6; }
.art .a-ring { fill: none; stroke: var(--ink); stroke-width: 1.7; }
.art text { font: 400 22px var(--f-tech); fill: var(--ink-soft); letter-spacing: 0.06em; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; mix-blend-mode: difference; }
.hero-art .h-line { fill: none; stroke: var(--paper); stroke-width: 2.4; }
.hero-art .h-fine { fill: none; stroke: var(--paper); stroke-width: 1.6; opacity: 0.7; }
.hero-art .h-dot { fill: none; stroke: var(--paper); stroke-width: 2.2; }

@media (prefers-reduced-motion: no-preference) {
  .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s cubic-bezier(0.5, 0, 0.2, 1) forwards; animation-delay: var(--d, 0s); }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  .reveal img { animation: settle 1.6s cubic-bezier(0.2, 0.6, 0.2, 1) both; }
  @keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }
}

/* ---------- home hero: a golden rectangle, edge to edge ---------- */
.hero { display: grid; grid-template-columns: 38.2% 61.8%; align-items: center; margin-top: var(--s5); }
.hero-copy { padding: var(--s4) var(--s6) var(--s4) var(--edge); position: relative; z-index: 3; }
.hero-copy .h-display { font-size: clamp(3rem, 5.6vw, 6rem); }
.hero-copy .sub { font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.4; margin: var(--s5) 0 var(--s4); max-width: 24rem; }
.hero-photo { position: relative; container-type: inline-size; aspect-ratio: 1.618 / 1; justify-self: stretch; width: 100%; }
.ph-frame { position: absolute; inset: 0; overflow: hidden; }
.ph-frame img { width: 100%; height: 100%; object-fit: cover; }
.pagephoto .ph-side .ph-frame { position: relative; aspect-ratio: 1.618 / 1; }
.hero-photo .plane { left: -5.6cqw; top: 8.9cqw; width: 14.6cqw; }
.hero-photo .tag { left: auto; right: 0; }

/* credentials band: three widths in golden descent, no boxes */
.band { display: grid; grid-template-columns: 38.2fr 23.6fr 38.2fr; gap: var(--s5); margin-top: var(--s6); align-items: start; padding-top: var(--s4); border-top: 1px solid var(--line); }
.band .item p { margin: 0.35rem 0 0; font-family: var(--f-display); font-style: italic; font-size: 1.25rem; line-height: 1.25; }
.band .item:first-child { padding-left: var(--edge); }
.band .item:last-child { padding-right: var(--gutter); }

/* practice: text at 38.2%, art bleeding right at 61.8% */
.practice { display: grid; grid-template-columns: 38.2% 61.8%; align-items: center; }
.practice-copy { padding: 0 var(--s5) 0 var(--edge); }
.practice-copy .h-strong { margin-bottom: var(--s5); }
.practice-copy ul { list-style: none; margin: var(--s4) 0 var(--s5); padding: 0; display: grid; gap: var(--s2); }
.practice-art { padding-right: 0; position: relative; }
.practice-art .art { width: 100%; }
.practice-art .tag { right: var(--s3); left: auto; bottom: var(--s2); background: none; }

/* staggered work: heights differ so the rows never sit on one line */
.stagger { display: grid; grid-template-columns: 1.618fr 1fr; gap: var(--s6); align-items: end; }
.stagger.flip { grid-template-columns: 1fr 1.618fr; }
.stagger + .stagger { margin-top: var(--s7); }
.card { display: block; text-decoration: none; color: var(--ink); }
.card:hover { color: var(--ink); }
.card .ph img { transition: transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1); }
.card:hover .ph img, .card:focus-visible .ph img { --sc: 1.12; }
.stagger > .card.narrow { width: 76.4%; justify-self: end; }
.stagger.flip > .card.narrow { justify-self: start; }
.card .meta { display: grid; gap: 0.2rem; padding-top: var(--s3); }
.card .meta .h-serif { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 0.25em; transition: text-decoration-color 0.25s; }
.card:hover .h-serif, .card:focus-visible .h-serif { text-decoration-color: var(--red); }
.offset-a { margin-bottom: calc(var(--s7) * 0.618); }
.offset-b { margin-top: var(--s7); }
.drop { margin-top: var(--s7); }

/* ---------- page titles ---------- */
.page-top { display: grid; grid-template-columns: 61.8% 38.2%; align-items: end; margin-top: var(--s6); }
.page-top .copy { padding-left: var(--edge); padding-right: var(--s5); }
.page-top .copy .lead { margin-top: var(--s4); }
.page-top .art-side { position: relative; }
.page-top .art-side .art { width: 100%; }
.page-top.flip { grid-template-columns: 38.2% 61.8%; }
.page-top.flip .copy { padding-left: var(--s5); padding-right: var(--edge); order: 2; }
.page-top.flip .ph-side { order: 1; }

.pagephoto { display: grid; align-items: center; margin-top: var(--s6); }
.pagephoto.photo-right { grid-template-columns: 38.2% 61.8%; }
.pagephoto.photo-right .copy { padding: 0 calc(3.6vw + var(--s4)) 0 var(--edge); }
.pagephoto.photo-left { grid-template-columns: 61.8% 38.2%; }
.pagephoto.photo-left .copy { padding: 0 var(--edge) 0 calc(3.6vw + var(--s4)); }
.pagephoto .ph-side { position: relative; container-type: inline-size; }
.pagephoto .ph-side .plane { width: 14.6cqw; top: 8.9cqw; }
.pagephoto.photo-right .ph-side .plane { left: -5.6cqw; }
.pagephoto.photo-left .ph-side .plane { right: -5.6cqw; }

/* studio */
.two-col { display: grid; grid-template-columns: 38.2fr 61.8fr; gap: var(--s6); align-items: start; }
.trio { display: grid; grid-template-columns: 38.2fr 38.2fr 23.6fr; gap: var(--s5); }
.trio .step { border-top: 1px solid var(--ink); padding-top: var(--s3); }
.trio .step:nth-child(2) { margin-top: var(--s5); }
.trio .step:nth-child(3) { margin-top: var(--s6); }
.trio .step h3 { font: 700 clamp(1.6rem, 2.6vw, 2.618rem) / 1 var(--f-sans); letter-spacing: -0.02em; text-transform: uppercase; margin: 0 0 var(--s3); }
.trio .step.r h3 { color: var(--red); }
.reg { display: grid; gap: 0; }
.reg > div { display: grid; grid-template-columns: 38.2fr 61.8fr; gap: var(--s4); padding: var(--s4) 0; border-top: 1px solid var(--line); }
.reg > div:last-child { border-bottom: 1px solid var(--line); }
.reg dt, .reg dd { margin: 0; }
.reg dd { font-family: var(--f-display); font-style: italic; font-size: 1.35rem; line-height: 1.25; max-width: 32rem; }

/* project and concept pages */
.facts { margin: 0; display: grid; gap: var(--s3); align-content: start; }
.facts dt { font: 400 0.78rem / 1.3 var(--f-tech); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.facts dd { margin: 0.1rem 0 0; font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; line-height: 1.25; }
.gal { display: grid; gap: var(--s5); }
.gal .row { display: grid; gap: var(--s5); align-items: end; }
.gal .row.a { grid-template-columns: 1.618fr 1fr; }
.gal .row.b { grid-template-columns: 1fr 1.618fr; }
.draw3 { display: grid; grid-template-columns: 38.2fr 38.2fr 23.6fr; gap: var(--s5); align-items: end; }
.sheet { background: var(--paper-deep); position: relative; display: flex; align-items: flex-end; padding: var(--s3); }
.sheet .label { color: var(--ink-soft); }
.plates { display: grid; grid-template-columns: 1.618fr 1fr; gap: var(--s6); align-items: end; }
.plates.flip { grid-template-columns: 1fr 1.618fr; }
.plates + .plates { margin-top: var(--s7); }
.plate .art { background: var(--paper); }
.plate .meta { padding-top: var(--s3); display: grid; gap: 0.2rem; }

/* writings */
.entries { list-style: none; margin: 0; padding: 0; }
.entries li { border-top: 1px solid var(--line); }
.entries li:last-child { border-bottom: 1px solid var(--line); }
.entries a { display: grid; grid-template-columns: 23.6fr 61.8fr 14.6fr; gap: var(--s4); padding: var(--s5) 0; text-decoration: none; align-items: baseline; }
.entries a:hover { color: var(--ink); }
.entries .t { font-family: var(--f-display); font-style: italic; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.08; margin: 0; transition: color 0.25s; }
.entries a:hover .t { color: var(--red); }
.entries .s { margin: var(--s2) 0 0; color: var(--ink-soft); max-width: 32rem; }
.entries .go { text-align: right; }
.article { max-width: 38rem; }
.article p { font-size: 1.0625rem; line-height: 1.62; }
.article h2 { font: 700 1.35rem / 1.2 var(--f-sans); letter-spacing: -0.01em; margin: var(--s5) 0 var(--s3); }
.article blockquote { margin: var(--s5) 0; padding-left: var(--s4); border-left: 1px solid var(--red); font: italic 400 clamp(1.6rem, 2.4vw, 2.2rem) / 1.2 var(--f-display); }
.article figure { margin: var(--s5) 0; }
.article figcaption { margin-top: var(--s2); }

/* contact */
.offices { display: grid; grid-template-columns: 38.2fr 38.2fr 23.6fr; gap: var(--s5); }
.office { border-top: 1px solid var(--ink); padding-top: var(--s3); }
.office:nth-child(2) { margin-top: var(--s5); }
.office h2 { font: 700 clamp(1.4rem, 2.2vw, 2.058rem) / 1.1 var(--f-sans); letter-spacing: -0.015em; margin: 0 0 var(--s4); }
.office dl { margin: 0; display: grid; gap: var(--s3); }
.office dt { font: 400 0.78rem / 1.3 var(--f-tech); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.office dd { margin: 0.1rem 0 0; font-family: var(--f-display); font-style: italic; font-size: 1.25rem; line-height: 1.25; }
.to-add { color: var(--ink-soft); }

/* ---------- footer ---------- */
.site-footer { margin-top: var(--s7); padding-bottom: var(--s5); }
.foot { display: grid; grid-template-columns: 38.2fr 61.8fr; gap: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--ink); }
.foot .fine { margin: 0 0 var(--s2); max-width: 34rem; }

/* ---------- lightbox + review overlay ---------- */
.lightbox { border: 0; padding: 0; background: var(--paper); max-width: min(92vw, 80rem); max-height: 92vh; }
.lightbox::backdrop { background: rgba(23, 23, 21, 0.72); }
.lightbox img { max-height: 88vh; width: auto; margin: auto; }
.lightbox button { position: absolute; right: var(--s2); top: var(--s2); font: 400 0.8rem var(--f-tech); letter-spacing: 0.18em; text-transform: uppercase; padding: var(--s1) var(--s3); background: var(--paper); border: 1px solid var(--ink); cursor: pointer; }
.golden-grid { position: fixed; inset: 0; pointer-events: none; z-index: 60; }
.golden-grid i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--red); opacity: 0.6; }
.golden-grid i:nth-child(1) { left: 38.2%; }
.golden-grid i:nth-child(2) { left: 61.8%; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero, .practice, .page-top, .page-top.flip, .pagephoto.photo-right, .pagephoto.photo-left { grid-template-columns: minmax(0, 1fr); }
  .hero-copy, .practice-copy, .page-top .copy, .page-top.flip .copy, .pagephoto.photo-right .copy, .pagephoto.photo-left .copy { padding: 0 var(--gutter); order: 0; }
  .hero-photo, .practice-art, .page-top .art-side, .pagephoto .ph-side { margin-top: var(--s5); order: 1; }
  .pagephoto .copy { order: 0; }
  .hero-photo .plane { left: auto; right: var(--gutter); top: -6cqw; }
  .pagephoto .ph-side .plane { left: auto; right: var(--gutter); top: -6cqw; }
  .band { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .band .item:first-child, .band .item:last-child { padding-left: var(--gutter); padding-right: var(--gutter); }
  .band .item { padding-left: var(--gutter); padding-right: var(--gutter); }
  .band, .stagger, .stagger.flip, .plates, .plates.flip, .two-col, .gal .row.a, .gal .row.b { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .trio, .offices, .draw3 { grid-template-columns: minmax(0, 1fr); }
  .trio .step:nth-child(n), .office:nth-child(2) { margin-top: 0; }
  .offset-a { margin-bottom: 0; } .offset-b, .drop { margin-top: 0; }
  .stagger > .card.narrow, .plates .plate.narrow { max-width: 24rem; width: 100%; justify-self: start; }
  .entries a { grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
  .entries .go { text-align: left; }
  .reg > div, .foot { grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
  .sec { margin-top: var(--s6); }
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); z-index: 40; padding: var(--s3) var(--gutter) var(--s4); border-bottom: 1px solid var(--ink); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: var(--s1); }
  .marker { display: none; }
}
@media (max-width: 560px) {
  .sec-label::after { display: none; }
}

/* ---------- version 3 sections ---------- */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); }
.process .stage { border-top: 1px solid var(--ink); padding-top: var(--s3); }
.process .stage:nth-child(2) { margin-top: var(--s4); }
.process .stage:nth-child(3) { margin-top: var(--s5); }
.process .stage:nth-child(4) { margin-top: var(--s6); border-top-color: var(--red); }
.process .n { display: block; margin-bottom: var(--s3); }
.process h3 { font: 700 clamp(1.4rem, 2vw, 1.9rem) / 1 var(--f-sans); letter-spacing: -0.02em; text-transform: uppercase; margin: 0 0 var(--s2); }
.services { list-style: none; margin: 0; padding: 0; display: grid; }
.services li { display: flex; align-items: baseline; gap: var(--s4); padding: var(--s3) 0; border-top: 1px solid var(--line); font-family: var(--f-display); font-style: italic; font-size: clamp(1.6rem, 2.6vw, 2.618rem); line-height: 1.1; }
.services li:last-child { border-bottom: 1px solid var(--line); }
.services .n { min-width: 2.6rem; }
.cta { display: grid; grid-template-columns: 61.8fr 38.2fr; gap: var(--s5); align-items: end; padding: var(--s6) 0 var(--s5); border-top: 1px solid var(--ink); }
.cta .h-display { font-size: clamp(3rem, 7vw, 7.2rem); }
.cta p { margin-bottom: var(--s4); }
.checklist { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; gap: var(--s2); }
.checklist li { padding-left: var(--s4); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; background: var(--red); }
.steps { margin: var(--s3) 0 0; padding-left: 1.4rem; display: grid; gap: var(--s2); }
.steps li::marker { font-family: var(--f-tech); color: var(--red); }
.study-art { max-width: 100%; }
.big-art { margin-top: var(--s5); margin-bottom: 14.6%; }

/* ---------- motion ---------- */
.js main { transition: opacity 0.25s ease; }
.js body.leaving main { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {

  /* headlines rise out of a mask */
  .js .ln { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
  .js .ln > span { display: block; animation: rise 1.15s cubic-bezier(0.2, 0.7, 0.1, 1) both; animation-delay: calc(0.2s + var(--i, 0) * 0.13s); }
  @keyframes rise { from { transform: translateY(108%); } to { transform: none; } }

  /* the hero photograph opens like a shutter, then drifts */
  .hero-photo .ph-frame { animation: shutter 1.5s 0.3s cubic-bezier(0.65, 0, 0.2, 1) both; }
  .hero-photo .ph-frame img, .pagephoto .ph-frame img { animation: drift 26s ease-in-out infinite alternate; }
  @keyframes shutter { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes drift { from { scale: 1.02; translate: 0 0; } to { scale: 1.09; translate: -1.6% -1.2%; } }
  .hero-photo .plane, .pagephoto .plane { animation: planeIn 1.2s 1.1s cubic-bezier(0.2, 0.7, 0.1, 1) both; }
  @keyframes planeIn { from { opacity: 0; transform: translate(-40%, 30%); } to { opacity: 1; transform: none; } }
  .pagephoto .ph-frame { animation: shutter 1.5s 0.2s cubic-bezier(0.65, 0, 0.2, 1) both; }

  /* things arrive as you scroll */
  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 1.1s cubic-bezier(0.2, 0.7, 0.1, 1); transition-delay: var(--rd, 0s); }
  .js [data-reveal].in { opacity: 1; transform: none; }
  .js .sec-label::after { transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.3s 0.25s cubic-bezier(0.65, 0, 0.2, 1); }
  .js .sec-label.in::after { transform: none; }
  .js .art .draw { animation-play-state: paused; }
  .js .art.in .draw, .js .in .art .draw { animation-play-state: running; }

  /* living drawings */
  .art .glow { animation: glow 8s ease-in-out infinite; animation-delay: var(--g, 0s); }
  @keyframes glow { 0%, 100% { fill: rgba(0, 0, 0, 0); } 45%, 60% { fill: var(--paper-deep); } }
  .art .breathe { transform-box: fill-box; transform-origin: center; animation: breathe 7s ease-in-out infinite; animation-delay: var(--g, 0s); }
  @keyframes breathe { 50% { transform: scale(0.88); } }
  .art .pulse { transform-box: fill-box; transform-origin: center; animation: pulse 3.4s ease-out infinite; }
  @keyframes pulse { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(2.6); opacity: 0; } }
}
@media (max-width: 1000px) {
  .process { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .process .stage:nth-child(n) { margin-top: 0; }
  .cta { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .process { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- entrance: the circle logo opens the site, once per visit ---------- */
.splash { display: none; position: fixed; inset: 0; z-index: 300; background: #171715; color: #FAF8F2;
  flex-direction: column; align-items: center; justify-content: center; cursor: pointer; }
.splashing .splash { display: flex; }
html.splashing { overflow: hidden; }
.splash .s-mark { width: min(44vmin, 340px); height: auto; overflow: visible; }
.splash .s-words { display: flex; flex-direction: column; align-items: flex-start; gap: 1.2vmin; margin-top: 5.5vmin; }
.splash .s-w1, .splash .s-w2 { width: min(38vmin, 300px); height: auto; display: block; }
.splash .s-place { font: 400 0.82rem / 1.4 var(--f-tech); letter-spacing: 0.26em; text-transform: uppercase; color: rgba(250, 248, 242, 0.72); margin: 3.6vmin 0 0; }
.splash .s-skip { position: absolute; right: var(--gutter); bottom: var(--s5); background: none; border: 1px solid rgba(250, 248, 242, 0.35);
  color: inherit; font: 400 0.72rem / 1 var(--f-tech); letter-spacing: 0.2em; text-transform: uppercase; padding: 0.55rem 0.9rem; cursor: pointer; }
.splash .s-core { opacity: 0; transform-box: fill-box; transform-origin: 50% 60%; animation: sCore 1.1s 0.25s cubic-bezier(0.2, 0.7, 0.1, 1) forwards; }
.splash .s-ring { stroke-dasharray: 1; stroke-dashoffset: 1; animation: sDraw 1.6s 1.15s cubic-bezier(0.65, 0, 0.25, 1) forwards; }
.splash .s-w1, .splash .s-w2, .splash .s-place, .splash .s-skip { opacity: 0; transform: translateY(12px); animation: sUp 0.9s cubic-bezier(0.2, 0.7, 0.1, 1) forwards; }
.splash .s-w1 { animation-delay: 2.45s; }
.splash .s-w2 { animation-delay: 2.7s; }
.splash .s-place { animation-delay: 3.15s; }
.splash .s-skip { animation-delay: 1.2s; }
.splash.out { animation: sOut 1s cubic-bezier(0.65, 0, 0.2, 1) forwards; }
.splash.out.fast { animation-duration: 0.45s; }
@keyframes sCore { from { opacity: 0; transform: translateY(4%) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes sDraw { to { stroke-dashoffset: 0; } }
@keyframes sUp { to { opacity: 1; transform: none; } }
@keyframes sOut { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); } }
/* the page waits behind the curtain, then plays its own entrance */
.splashing main *, .splashing .site-header * { animation-play-state: paused !important; }


/* =====================================================================
   v4: type system after Massimo Vignelli (The Vignelli Canon)
   - few typefaces, each with one job: Michelangelus for display, Helvetica Bold
     only for large bold titles, Isocpeur for all reading text and small text
   - dramatic contrast of scale: very large against very small, no in-between sizes
   - tight leading on large type, flush left / ragged right, everything on the grid
   - heavy rules to structure the page, red used as a sparing accent
   ===================================================================== */
:root {
  --t-xs: 0.78rem;                               /* labels, captions, metadata */
  --t-s: 1.0625rem;                              /* all reading text */
  --t-l: clamp(1.75rem, 2.9vw, 2.75rem);         /* leads, titles in lists */
  --rule: 6px;                                   /* the heavy rule */
}
body { font: 400 var(--t-s) / 1.65 var(--f-tech); letter-spacing: 0.012em; }
p { max-width: 34em; }
h2, h3 { font-family: var(--f-display); font-weight: 700; }
.skip { font-family: var(--f-tech); }
.label { font-size: var(--t-xs); }
.tag { font-size: 0.68rem; }
.fine { font: 400 0.8rem / 1.6 var(--f-tech); letter-spacing: 0.04em; }

/* reading text: Isocpeur everywhere */
.hero-copy .sub, .cta p, .entries .s, .article p, .checklist li, .steps li, .trio p, .process p,
.practice-copy p, .two-col p, .office p, .band .item p, .reg dd, .office dd, .facts dd {
  font-family: var(--f-tech); font-style: normal; font-weight: 400; font-size: var(--t-s); line-height: 1.6; letter-spacing: 0.012em;
}
.facts dd { line-height: 1.45; }
.band .item p { margin-top: var(--s2); max-width: 22em; }

/* large type: sized to its own column so it can never collide */
.hero-copy, .page-top .copy, .pagephoto .copy, .practice-copy, .cta > *, .two-col > *, .trio .step, .process .stage, .office { container-type: inline-size; }
.h-display { line-height: 0.9; letter-spacing: -0.018em; overflow-wrap: break-word; }
.hero-copy .h-display { font-size: clamp(2.6rem, 19.5cqi, 9.5rem); }
.page-top .h-display, .pagephoto .h-display, .h-display.m { font-size: clamp(2.6rem, 16.5cqi, 8.5rem); }
.cta .h-display { font-size: clamp(2.6rem, 14.2cqi, 9.5rem); }
.lead { font-size: var(--t-l); line-height: 1.1; max-width: 17em; }
.h-serif { font-size: clamp(1.5rem, 2.2vw, 2.1rem); line-height: 1.08; }
.services li { font-size: var(--t-l); line-height: 1.05; }
.entries .t { font-size: var(--t-l); line-height: 1.05; }
.article blockquote { font-size: var(--t-l); line-height: 1.1; }

/* Helvetica Bold: large bold titles only */
.h-strong { font-size: clamp(2.6rem, 19cqi, 10rem); line-height: 0.86; letter-spacing: -0.035em; }
.trio .step h3 { font-size: clamp(2.4rem, 18cqi, 6rem); line-height: 0.86; letter-spacing: -0.035em; }
.process h3 { font-size: clamp(1.9rem, 18cqi, 3.6rem); line-height: 0.9; letter-spacing: -0.03em; }
.process .n { display: block; font: 700 clamp(3rem, 30cqi, 7rem) / 0.82 var(--f-sans); letter-spacing: -0.05em; color: var(--red); margin-bottom: var(--s3); }
.office h2 { font-size: clamp(1.7rem, 11cqi, 2.9rem); line-height: 0.95; letter-spacing: -0.025em; }
.article h2 { font: 700 clamp(1.6rem, 2.4vw, 2.4rem) / 1 var(--f-sans); letter-spacing: -0.025em; }

/* heavy rules structure the page */
.band { border-top: var(--rule) solid var(--ink); }
.cta, .foot { border-top: var(--rule) solid var(--ink); }
.trio .step, .process .stage, .office { border-top: 4px solid var(--ink); }
.process .stage:nth-child(4), .trio .step.r, .office:last-child { border-top-color: var(--red); }

/* line art reserves room for the construction lines that run past its edges */
.art.ext-b { margin-bottom: 14.6%; }
.art.ext-y { margin-block: 7.4%; }
.big-art { margin-bottom: 0; }

/* ---------- v4 fixes from the collision check ---------- */
/* large type keeps its own room below, measured in its own size */
.h-display { margin-bottom: 0.2em; }
.h-display + .lead, .h-display + p { margin-top: var(--s3); }
/* the reveal mask must contain ascenders, descenders and italic swashes */
.js .ln { padding: 0.16em 0.06em 0.24em; margin: -0.16em -0.06em -0.24em; }
.process .n { margin-bottom: var(--s4); }
/* reserve room for construction lines with padding (margins collapse into the next section) */
.art.ext-b { margin-bottom: 0; padding-bottom: 16%; box-sizing: content-box; }
.art.ext-y { margin-block: 0; padding-block: 8%; box-sizing: content-box; }
/* the facade's ground line runs 9% past its right edge: keep it out of the text column */
.page-top.flip .art-side { padding-right: 10%; }
/* hero label moves to the one corner no construction line crosses */
.hero-photo .tag { top: 0; bottom: auto; right: 0; left: auto; }
.h-display { margin-bottom: 0.34em; }
.h-display + .lead, .h-display + p { margin-top: var(--s4); }
@media (max-width: 1000px) {
  .hero-photo .plane { left: var(--gutter); right: auto; }
  .hero-photo .tag { top: 100%; bottom: auto; right: var(--gutter); left: auto; margin-top: 0.4rem; }
}
.js .ln:last-child { margin-bottom: 0; }
@media (max-width: 1000px) {
  .hero-photo .plane { right: var(--gutter); left: auto; }
  .hero-photo .tag { left: var(--gutter); right: auto; }
}
.article h2 { font-size: clamp(1.9rem, 2.6vw, 2.6rem); }

/* headline lines always break where written, in every motion setting */
.ln { display: block; }
.ln > span { display: block; }
.splash .s-w2 { width: min(38vmin, 300px); }

/* ---------- v5: fixed header, footer without the seal ---------- */
html { scroll-padding-top: 8rem; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); }
/* the footer line matches the header line */
.foot { border-top: 1px solid var(--ink); align-items: start; }
.foot-name { display: inline-block; color: var(--ink); text-decoration: none; }
.foot-name:hover { color: var(--ink); }
.foot .logo.wordmark { height: clamp(2.6rem, 3.4vw, 3.2rem); margin-bottom: var(--s3); }
.foot-info { text-align: right; }
.foot .foot-info p { margin-left: auto; margin-right: 0; }
.foot .tel { margin: 0 0 var(--s1); font: 400 var(--t-s) / 1.4 var(--f-tech); letter-spacing: 0.06em; }
.foot .tel a { text-decoration: none; color: var(--ink); }
.foot .tel .label { display: inline-block; min-width: 2.2em; letter-spacing: 0.16em; }
.foot .tel + .fine { margin-top: var(--s3); }
@media (max-width: 1000px) {
  html { scroll-padding-top: 6.5rem; }
  .foot { gap: var(--s4); }
  .foot-info { text-align: left; }
  .foot .foot-info p { margin-left: 0; }
}

/* =====================================================================
   v6: the drawings. Antonio Adamo's hand drawings replace generated art.
   Ink: dark drawings inverted to pencil on paper, multiplied onto the taupe.
   Night: the original chalk-on-black sheets, seen through a lens or in the drawing room.
   ===================================================================== */
.dwg { position: relative; margin: 0; }
.dwg-open { display: block; position: relative; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; color: inherit; font: inherit; text-align: left; overflow: hidden; }
.dwg-open:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.dwg img { display: block; width: 100%; height: auto; }
.dwg .ink { mix-blend-mode: multiply; transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.dwg .night { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none;
  --r: 0px; -webkit-mask-image: radial-gradient(circle at var(--x, 50%) var(--y, 50%), #000 var(--r), transparent calc(var(--r) + 1px));
  mask-image: radial-gradient(circle at var(--x, 50%) var(--y, 50%), #000 var(--r), transparent calc(var(--r) + 1px));
  transition: --r 0.5s cubic-bezier(.2,.7,.2,1); }
@property --r { syntax: "<length>"; inherits: false; initial-value: 0px; }
.dwg .ring { position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: calc(var(--lr, 0px) * 2); height: calc(var(--lr, 0px) * 2); transform: translate(-50%, -50%);
  border: 1px solid var(--paper); border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .3s, width .5s cubic-bezier(.2,.7,.2,1), height .5s cubic-bezier(.2,.7,.2,1); }
.dwg .ring::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: var(--red); }
.dwg.lit .night { --r: var(--lr, 0px); }
.dwg.lit .ring { opacity: 1; }
figcaption.cap, .dwg figcaption { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s3); row-gap: 0.15rem; margin-top: var(--s3); font: 400 var(--t-xs) / 1.45 var(--f-tech); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.dwg figcaption .pl { color: var(--red); grid-row: span 2; }
.dwg figcaption .t { color: var(--ink); }
.dwg.bleed-r { margin-right: calc(-1 * var(--gutter)); }
.dwg.bleed-r figcaption { padding-right: var(--gutter); }

/* the practice drawing on the home page */
.practice-art .dwg { width: min(100%, 36rem); margin: 0 auto; }
.practice-art { display: flex; align-items: center; padding-right: var(--gutter); }

/* page tops: a drawing instead of generated line art */
.art-side .dwg { width: 100%; max-width: 34rem; margin-left: auto; }
.art-side.tall .dwg { max-width: 24rem; }

/* marginalia: small fragments that drift a little as the page scrolls */
.marg { position: relative; margin: 0; width: clamp(7rem, 14vw, 11rem); transform: translateY(var(--drift, 0px)); will-change: transform; }
.marg img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.marg figcaption { margin-top: var(--s2); font: 400 0.68rem / 1.4 var(--f-tech); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- the drawing room: a black band, pinned, travelling sideways ---------- */
.droom { position: relative; margin-top: var(--s7); background: #171715; color: #FAF8F2; }
.droom-pin { position: sticky; top: var(--hdr, 0px); height: calc(100vh - var(--hdr, 0px)); height: calc(100svh - var(--hdr, 0px)); display: flex; flex-direction: column; overflow: hidden; }
.droom-head { display: grid; grid-template-columns: 38.2fr 61.8fr; gap: var(--s5); align-items: end; padding-top: var(--s5); padding-bottom: var(--s5); }
.droom-head .label { color: rgba(250,248,242,.62); }
.droom-head h2 { margin: var(--s2) 0 0; font: italic 400 clamp(2.6rem, 6.4vw, 6.2rem) / .9 var(--f-display); letter-spacing: -.018em; color: #FAF8F2; }
.droom-head h2 .dot { display: inline-block; width: .16em; height: .16em; background: var(--red); margin-left: .04em; }
.droom-meta { display: flex; justify-content: space-between; align-items: end; gap: var(--s4); }
.droom-meta p { margin: 0; max-width: 26em; font: 400 var(--t-s) / 1.6 var(--f-tech); color: rgba(250,248,242,.78); }
.droom-count { font: 700 clamp(2rem, 4vw, 3.4rem) / .8 var(--f-sans); letter-spacing: -.04em; white-space: nowrap; }
.droom-count .of { color: rgba(250,248,242,.4); }
.droom-bar { position: relative; height: 1px; background: rgba(250,248,242,.35); margin: 0 var(--edge); }
.droom-bar i { position: absolute; top: -5px; left: 0; width: 11px; height: 11px; background: var(--red); transform: translateX(var(--bx, 0px)); }
.droom-track { flex: 1; min-height: 0; display: flex; align-items: center; gap: clamp(2.6rem, 6vw, 6.8rem); padding: var(--s4) var(--edge) var(--s5); will-change: transform; }
.plate-n { flex: 0 0 auto; height: 100%; display: flex; flex-direction: column; justify-content: center; margin: 0; }
.plate-n .dwg-open { height: calc(100% - 4.2rem); width: auto; background: #000; cursor: zoom-in; }
.plate-n .dwg-open img { height: 100%; width: auto; max-width: none; transition: transform 1.2s cubic-bezier(.2,.7,.2,1), opacity .4s; }
.plate-n .dwg-open:hover img { transform: scale(1.035); }
.plate-n.paper .dwg-open { background: #FAF8F2; }
.plate-n figcaption { display: grid; grid-template-columns: auto minmax(0,1fr); column-gap: var(--s3); margin-top: var(--s3); font: 400 var(--t-xs) / 1.45 var(--f-tech); letter-spacing: .12em; text-transform: uppercase; color: rgba(250,248,242,.6); max-width: 34rem; }
.plate-n figcaption .pl { color: var(--red); grid-row: span 2; }
.plate-n figcaption .t { color: #FAF8F2; }
.droom-end { flex: 0 0 auto; align-self: center; display: flex; flex-direction: column; gap: var(--s4); padding-right: var(--edge); }
.droom-end .link { color: #FAF8F2; }
.droom-end .link:hover { color: #FAF8F2; border-bottom-color: #FAF8F2; }
.droom-end p { margin: 0; font: italic 400 clamp(1.8rem, 3vw, 2.8rem) / 1 var(--f-display); max-width: 9em; }
/* without the pin (phones, tablets, reduced motion): a native sideways scroll */
.droom.free .droom-pin { position: relative; top: auto; height: auto; overflow: visible; }
.droom.free .droom-track { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; height: 64vh; height: 64svh; min-height: 22rem; scrollbar-width: none; }
.droom.free .droom-track::-webkit-scrollbar { display: none; }
.droom.free .plate-n { scroll-snap-align: start; scroll-margin-left: var(--gutter); }
@media (max-width: 1000px) {
  .droom-head { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .droom-track { gap: var(--s5); }
}

/* ---------- archive (Concept Work): an editorial wall of plates ---------- */
.wall { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s5); row-gap: var(--s7); align-items: start; }
.wall .dwg { grid-column: span 6; }
.wall .w8 { grid-column: 1 / span 8; }
.wall .w5r { grid-column: 9 / span 4; margin-top: var(--s7); }
.wall .w7r { grid-column: 6 / span 7; }
.wall .w4 { grid-column: 1 / span 4; margin-top: var(--s6); }
.wall .w12 { grid-column: 1 / -1; }
.wall .w6r { grid-column: 7 / span 6; margin-top: calc(-1 * var(--s6)); }
.wall-head { display: grid; grid-template-columns: 38.2fr 61.8fr; gap: var(--s5); align-items: end; margin: var(--s7) 0 var(--s5); border-top: 1px solid var(--ink); padding-top: var(--s3); }
.wall-head h2 { margin: 0; font: italic 400 var(--t-l) / 1.05 var(--f-display); }
.wall-head p { margin: 0; color: var(--ink-soft); }
@media (max-width: 1000px) {
  .wall { grid-template-columns: minmax(0, 1fr); row-gap: var(--s6); }
  .wall .dwg, .wall .w8, .wall .w5r, .wall .w7r, .wall .w4, .wall .w12, .wall .w6r { grid-column: 1 / -1; margin-top: 0; }
  .wall .w5r, .wall .w4 { max-width: 26rem; }
  .wall-head { grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
}

/* sketchbook strip (Studio) */
.strip { display: grid; grid-template-columns: 23.6fr 38.2fr 14.6fr 23.6fr; gap: var(--s5); align-items: end; }
.strip .dwg:nth-child(2) { margin-bottom: var(--s6); }
.strip .dwg:nth-child(4) { margin-bottom: var(--s5); }
@media (max-width: 1000px) { .strip { grid-template-columns: 1fr 1fr; } .strip .dwg { margin-bottom: 0 !important; } }

/* ---------- the drawing viewer: full screen, with a magnifying loupe ---------- */
.dlb { position: fixed; inset: 0; z-index: 400; background: #0e0e0d; color: #FAF8F2; display: none; grid-template-rows: auto minmax(0, 1fr) auto; }
.dlb.open { display: grid; animation: dlbIn .35s ease both; }
@keyframes dlbIn { from { opacity: 0; } to { opacity: 1; } }
.dlb-top, .dlb-bot { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s3) var(--gutter); font: 400 var(--t-xs) / 1.4 var(--f-tech); letter-spacing: .14em; text-transform: uppercase; }
.dlb-top { border-bottom: 1px solid rgba(250,248,242,.18); }
.dlb-bot { border-top: 1px solid rgba(250,248,242,.18); align-items: start; }
.dlb button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: #FAF8F2; background: none; border: 1px solid rgba(250,248,242,.4); padding: .55rem .9rem; cursor: pointer; }
.dlb button:hover, .dlb button:focus-visible { border-color: #FAF8F2; outline: none; }
.dlb button[aria-pressed="true"] { background: #FAF8F2; color: #171715; }
.dlb-tools { display: flex; gap: var(--s2); flex-wrap: wrap; }
.dlb-stage { position: relative; display: flex; align-items: center; justify-content: center; padding: var(--s4) var(--gutter); min-height: 0; touch-action: none; }
.dlb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; cursor: none; user-select: none; -webkit-user-drag: none; transition: opacity .25s; }
.dlb-stage.paper img { background: #FAF8F2; }
.dlb-loupe { position: absolute; left: 0; top: 0; width: 15rem; height: 15rem; border-radius: 50%; border: 1px solid #FAF8F2; box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 18px 50px rgba(0,0,0,.5); background-repeat: no-repeat; background-color: #000; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: opacity .2s, transform .25s cubic-bezier(.2,.7,.2,1); }
.dlb-loupe.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.dlb-loupe::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: var(--red); }
.dlb-cap .t { display: block; font: italic 400 clamp(1.4rem, 2.4vw, 2.2rem) / 1.05 var(--f-display); letter-spacing: 0; text-transform: none; margin-bottom: .35rem; }
.dlb-cap .m { color: rgba(250,248,242,.62); }
.dlb-n { font: 700 1.6rem / 1 var(--f-sans); letter-spacing: -.03em; white-space: nowrap; }
.dlb-hint { color: rgba(250,248,242,.5); }
@media (max-width: 700px) { .dlb-hint { display: none; } .dlb-loupe { width: 11rem; height: 11rem; } }
html.dlb-lock { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .dlb.open { animation: none; } .dwg .night, .dwg .ring, .plate-n img { transition: none; } }
.dlb-cap { max-width: none; margin: 0; }
@media (max-width: 1000px) { .w-gold { max-width: none !important; } }
.droom.free .droom-track { height: auto; min-height: 0; align-items: flex-start; }
.droom.free .plate-n { height: auto; }
.droom.free .plate-n .dwg-open { height: auto; }
.droom.free .plate-n .dwg-open img { height: min(56vh, 34rem); height: min(56svh, 34rem); width: auto; max-width: 76vw; object-fit: contain; }
.droom.free .plate-n figcaption { max-width: 76vw; }
@media (max-width: 700px) { .droom-meta { flex-direction: column; align-items: flex-start; } }

/* ---------- v7: registration, set like a Vignelli title sheet ---------- */
.regs { margin-top: var(--s6); }
.regs .wrap { border-top: var(--rule) solid var(--ink); padding-top: var(--s3); }
.regs-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); margin-bottom: var(--s5); }
.regs-head h2 { margin: 0; display: flex; align-items: center; gap: var(--s2); }
.regs-head h2::before { content: ""; width: 11px; height: 11px; background: var(--red); }
.regs-head p { margin: 0; }
.regs-grid { display: grid; grid-template-columns: 19.1fr 19.1fr 61.8fr; gap: var(--s5); align-items: start; }
.rg { border-top: 1px solid var(--ink); padding-top: var(--s3); }
.rg-n { border-top-color: var(--red); }
.rg-code { display: block; font: 700 clamp(3.6rem, 8.4vw, 8.6rem) / .8 var(--f-sans); letter-spacing: -.055em; color: var(--ink); margin: 0 0 var(--s4) -.04em; }
.rg-n .rg-code { color: var(--red); }
.rg-place { margin: 0; font: 700 .86rem / 1.2 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; }
.rg-what { margin: .35rem 0 0; font: 400 var(--t-s) / 1.45 var(--f-tech); color: var(--ink-soft); }
.rg-list { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s5); border-top: 1px solid var(--line); }
.rg-list li { border-bottom: 1px solid var(--line); padding: .7rem 0 .6rem; font: 700 clamp(1.05rem, 1.55vw, 1.5rem) / 1.05 var(--f-sans); letter-spacing: -.01em; text-transform: uppercase; }
.rg-list li b { color: var(--red); font-weight: 700; }
@media (max-width: 1000px) {
  .regs-grid { grid-template-columns: 1fr 1fr; }
  .rg-n { grid-column: 1 / -1; }
  .rg-code { font-size: clamp(3.6rem, 17vw, 8rem); }
}
@media (max-width: 560px) {
  .regs-head { flex-direction: column; gap: var(--s2); }
  .rg-list { grid-template-columns: 1fr; }
}

/* contact: the two offices stacked on the left, enquiries on the right */
.offices { grid-template-columns: 38.2fr 23.6fr 38.2fr; }
.office-stack { grid-column: 1; display: grid; gap: var(--s6); }
.office.enq { grid-column: 3; }
.office dd a { text-decoration: none; border-bottom: 1px solid var(--red); }
@media (max-width: 1000px) { .office-stack, .office.enq { grid-column: 1; } }

/* margin line art: transparent, lines only */
.marg.line img { mix-blend-mode: normal; opacity: .9; }
.office-stack .office { border-top-color: var(--ink) !important; margin-top: 0; } .office.enq { margin-top: 0; }
.marg.line { margin-bottom: var(--s4); }

/* v8: the registrations lead, NCARB supports */
.regs-grid { grid-template-columns: 30.9fr 30.9fr 38.2fr; }
.rg-reg { border-top: 4px solid var(--red); }
.rg-reg .rg-code { color: var(--red); font-size: clamp(4.6rem, 14vw, 14.5rem); letter-spacing: -.06em; }
.rg-big { margin: .5rem 0 0; font: 700 clamp(1.35rem, 2.2vw, 2.1rem) / 1 var(--f-sans); letter-spacing: -.015em; text-transform: uppercase; }
.rg-n { border-top: 1px solid var(--ink); }
.rg-n .rg-code { color: var(--ink); font-size: clamp(2.6rem, 4.8vw, 4.8rem); letter-spacing: -.045em; margin-bottom: var(--s3); }
.rg-list { grid-template-columns: 1fr 1fr; column-gap: var(--s4); margin-top: var(--s3); }
.rg-list li { font: 400 var(--t-xs) / 1.3 var(--f-tech); letter-spacing: .14em; text-transform: uppercase; padding: .62rem 0 .55rem; color: var(--ink); }
.rg-list li.more a { color: var(--red); text-decoration: none; border-bottom: 1px solid var(--red); }
.rg-list li.more a::after { content: " \2197"; }
@media (max-width: 1000px) {
  .regs-grid { grid-template-columns: 1fr 1fr; }
  .rg-reg .rg-code { font-size: clamp(4.6rem, 26vw, 12rem); }
}
@media (max-width: 560px) { .rg-list { grid-template-columns: 1fr 1fr; } .rg-big { font-size: 1.15rem; } }

/* the hero headline: room for the italic swashes so nothing is clipped */
.js .hero-copy .ln { padding-left: .34em; margin-left: -.34em; }
.hero-copy .h-display { padding-left: .1em; }

/* =====================================================================
   v9: founder, projects index, project pages, process photographs
   ===================================================================== */
/* registration: the two "All" lines step forward */

/* closing call to action: room for the swashes */
.js .cta .ln { padding-left: .34em; margin-left: -.34em; }
.cta .h-display { padding-left: .08em; }

/* founder */
.founder-name { margin: 0; font: italic 400 clamp(2.6rem, 5.6vw, 5.4rem) / .92 var(--f-display); letter-spacing: -.018em; }
.founder-role { margin: var(--s3) 0 var(--s5); font: 700 .86rem / 1.2 var(--f-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.founder-copy .lead { margin-bottom: var(--s4); }
.cv { margin: var(--s6) 0 0; display: grid; gap: 0; border-top: var(--rule) solid var(--ink); }
.cv > div { display: grid; grid-template-columns: 23.6fr 76.4fr; gap: var(--s4); padding: var(--s3) 0 var(--s4); border-bottom: 1px solid var(--line); }
.cv dt { font: 700 .78rem / 1.4 var(--f-sans); letter-spacing: .16em; text-transform: uppercase; padding-top: .2rem; }
.cv dd { margin: 0; }
.cv ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.cv li { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); gap: var(--s3); font: 400 var(--t-s) / 1.45 var(--f-tech); }
.cv li .y { color: var(--red); font-size: var(--t-xs); letter-spacing: .12em; padding-top: .18rem; }
.cv li .w:first-child { grid-column: 1 / -1; }
.cv li em { display: block; font-style: normal; font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-top: .15rem; }
@media (max-width: 1000px) {
  .cv > div { grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
  .cv li { grid-template-columns: 5.4rem minmax(0, 1fr); }
}

/* process photographs (Studio) */
.stage-ph { margin: 0 0 var(--s4); }

/* projects index: a ruled list, very large against very small */
.pindex { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.pindex li { border-bottom: 1px solid var(--line); }
.pindex a { display: grid; grid-template-columns: 9.7rem 3.2rem minmax(0, 1fr) 13rem 11rem 7rem; gap: var(--s4); align-items: center; padding: var(--s3) 0; text-decoration: none; color: var(--ink); }
.pi-img { display: block; aspect-ratio: 1.618 / 1; overflow: hidden; background: var(--paper-deep); }
.pi-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.6,.2,1); }
.pindex a:hover .pi-img img { transform: scale(1.06); }
.pi-n { font: 700 1.5rem / 1 var(--f-sans); letter-spacing: -.03em; color: var(--red); }
.pi-t { font: italic 400 var(--t-l) / 1.02 var(--f-display); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: .18em; transition: text-decoration-color .25s; }
.pindex a:hover .pi-t { text-decoration-color: var(--red); }
.pi-m { font: 400 var(--t-xs) / 1.35 var(--f-tech); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 1000px) {
  .pindex a { grid-template-columns: 7.2rem minmax(0, 1fr); column-gap: var(--s4); row-gap: .3rem; align-items: start; }
  .pi-img { grid-column: 1; grid-row: 1 / span 5; }
  .pindex a > span:not(.pi-img) { grid-column: 2; }
  .pi-n { font-size: 1.1rem; }
  .pi-t { font-size: 1.45rem; }
  .pi-m:last-child { display: none; }
}

/* project pages */
.pfig { margin: 0; }
.pfig .dwg-open { cursor: zoom-in; background: var(--paper-deep); }
.pfig img { display: block; width: 100%; height: auto; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.pfig .dwg-open:hover img { transform: scale(1.02); }
.hero-img img { aspect-ratio: 1.618 / 1; object-fit: cover; }
.pgal { row-gap: var(--s6); }
.pgal .w12 img { max-height: 82vh; object-fit: contain; background: transparent; }
.facts dd { overflow-wrap: anywhere; }

/* concept work: the painting */
.painting { margin: 0 0 0 auto; max-width: 22rem; }
.painting img { display: block; width: 100%; height: auto; }

/* =====================================================================
   v10: registration list, credits, quote, founder spread, indexes
   ===================================================================== */
/* registration: every line in the same face; ALL in red; never two lines */
.rg-list li { white-space: nowrap; }
.rg-list li b { color: var(--red); font-weight: 400; }
@media (max-width: 1180px) and (min-width: 1001px) { .rg-list { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .rg-list { grid-template-columns: 1fr; } }

/* credit band on project pages */
.credit-sec { margin-top: var(--s5); }
.credit { display: grid; grid-template-columns: 38.2fr 61.8fr; column-gap: var(--s5); row-gap: var(--s2); align-items: baseline; border-top: 4px solid var(--ink); border-bottom: 1px solid var(--line); padding: var(--s3) 0 var(--s4); }
.cr-mark { grid-row: span 2; font: 700 clamp(1.2rem, 2vw, 1.75rem) / 1 var(--f-sans); letter-spacing: -.02em; text-transform: lowercase; color: var(--ink); text-decoration: none; }
a.cr-mark:hover { color: var(--red); }
.cr-line { margin: 0; font: 400 var(--t-s) / 1.5 var(--f-tech); }
.cr-links { margin: 0; display: flex; flex-wrap: wrap; gap: var(--s4); }
.cr-links .link::after { content: " \2197"; }
@media (max-width: 1000px) { .credit { grid-template-columns: minmax(0, 1fr); } .cr-mark { grid-row: auto; } }

/* quote */
.pquote { margin: 0; padding: 0; }
.pquote p { margin: 0; max-width: 22em; font: italic 400 var(--t-l) / 1.12 var(--f-display); }
.pquote cite { display: block; margin-top: var(--s4); font: 400 var(--t-xs) / 1.3 var(--f-tech); font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }

/* index: title with a credit line under it */
.pi-tt { display: grid; gap: .3rem; }
.pi-c { font: 400 var(--t-xs) / 1.3 var(--f-tech); letter-spacing: .12em; text-transform: uppercase; color: var(--red); }

/* founder: the desk, wide; the name beside it */
.founder-top { display: grid; grid-template-columns: 61.8% 38.2%; align-items: end; }
.founder-ph { margin: 0; }
.founder-head { padding: 0 var(--edge) 0 calc(3.6vw + var(--s4)); container-type: inline-size; }
.founder-head .founder-name { font-size: clamp(2.4rem, 15cqi, 5rem); }
.founder-body { margin-top: var(--s6); }
@media (max-width: 1000px) {
  .founder-top { grid-template-columns: minmax(0, 1fr); }
  .founder-head { padding: var(--s5) var(--gutter) 0; }
  .founder-head .founder-name { font-size: clamp(2.4rem, 11vw, 4rem); }
}

/* the painting carries a caption */
.painting figcaption { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s3); margin-top: var(--s3); font: 400 var(--t-xs) / 1.45 var(--f-tech); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.painting figcaption .pl { color: var(--red); grid-row: span 2; }
.painting figcaption .t { color: var(--ink); }
@media (max-width: 560px) { .rg-place { font-size: .7rem; letter-spacing: .08em; white-space: nowrap; } }

/* =====================================================================
   v11: project pages, an editorial sequence
   ===================================================================== */
.xs { margin-top: var(--s7); }
.xs-desc { margin-top: var(--s6); }
.xs-desc .desc p:first-child { font: italic 400 var(--t-l) / 1.12 var(--f-display); max-width: 22em; letter-spacing: 0; }
.xf { margin: 0; min-width: 0; }
.xf .dwg-open { display: block; width: 100%; cursor: zoom-in; overflow: hidden; background: none; }
.xf img { display: block; width: 100%; height: auto; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.xf .dwg-open:hover img { transform: scale(1.015); }
.xf.is-dwg img { mix-blend-mode: multiply; }
.xf figcaption { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: var(--s2); margin-top: var(--s3); font: 400 var(--t-xs) / 1.45 var(--f-tech); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); max-width: 40rem; }
.xf .fn { color: var(--red); }
/* full bleed, edge to edge */
.xs-bleed .xf figcaption { padding: 0 var(--edge); }
.xs-bleed .xf img { max-height: 92vh; object-fit: cover; }
/* a justified row: every image the same height, widths by proportion */
.jrow { display: flex; gap: var(--s5); align-items: flex-start; }
.jrow > .xf { flex: var(--ar) 1 0; }
/* image and its words side by side, on the golden section */
.side { display: grid; gap: var(--s5); align-items: end; }
.side-L { grid-template-columns: 61.8fr 38.2fr; }
.side-R { grid-template-columns: 38.2fr 61.8fr; }
.side-R .side-f { order: 2; }
.side-t { padding-bottom: 3.4rem; border-top: 4px solid var(--ink); padding-top: var(--s3); align-self: end; }
.side-t:empty { border: 0; }
.xs-k { margin: 0 0 var(--s2); font: 700 clamp(1.3rem, 2vw, 1.9rem) / 1 var(--f-sans); letter-spacing: -.02em; text-transform: uppercase; }
.side-t p { max-width: 24em; }
/* chapters (thesis, church) */
.xs-ch { margin-top: var(--s7); }
.ch { display: grid; grid-template-columns: 38.2fr 61.8fr; gap: var(--s5); border-top: var(--rule) solid var(--ink); padding-top: var(--s4); align-items: start; }
.ch-n { font: 700 clamp(4rem, 11vw, 10rem) / .8 var(--f-sans); letter-spacing: -.06em; color: var(--red); }
.ch-t { margin: 0 0 var(--s4); font: italic 400 clamp(2.2rem, 4.6vw, 4.4rem) / .95 var(--f-display); letter-spacing: -.015em; }
.ch p { max-width: 30em; }
/* statements */
.xs-st { margin-top: var(--s8); margin-bottom: var(--s6); }
.statement { margin: 0; max-width: 14em; font: italic 400 clamp(2.6rem, 7vw, 7rem) / .92 var(--f-display); letter-spacing: -.02em; }
/* the twenty-one principles, as a ruled list in two columns */
.plist { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: var(--s6); border-top: 1px solid var(--ink); }
.plist li { break-inside: avoid; display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: var(--s3); align-items: baseline; padding: .8rem 0 .75rem; border-bottom: 1px solid var(--line); }
.pl-n { font: 700 1.5rem / 1 var(--f-sans); letter-spacing: -.03em; color: var(--red); }
.pl-t { font: 700 clamp(1rem, 1.25vw, 1.2rem) / 1.2 var(--f-sans); letter-spacing: -.005em; text-transform: uppercase; }
@media (max-width: 1000px) {
  .jrow { flex-direction: column; gap: var(--s5); }
  .jrow > .xf { flex: none; width: 100%; }
  .side-L, .side-R { grid-template-columns: minmax(0, 1fr); }
  .side-R .side-f { order: 0; }
  .side-t { padding-bottom: 0; }
  .ch { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .plist { columns: 1; }
  .xs { margin-top: var(--s6); }
}
/* no image taller than the window; names set in capitals */
.side-f .xf, .wrap > .xf { max-width: min(100%, calc(82vh * var(--ar))); }
.side-R .side-f .xf { margin-left: auto; }
.cr-mark { text-transform: uppercase; letter-spacing: .04em; font-size: clamp(1rem, 1.6vw, 1.4rem); }
.jrow > .xf { max-width: none !important; }
.pending { aspect-ratio: 1.618 / 1; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; background: var(--paper-deep); }
.small-f { width: min(100%, 34rem); margin-left: 38.2%; } @media (max-width: 1000px) { .small-f { margin-left: 0; } }

/* ---------- v12: Concept Work catalogue, on the canon ---------- */
[hidden] { display: none !important; }
.cw .wrap > * + * { margin-top: var(--s6); }
.cw-head { border-top: 4px solid var(--ink); padding-top: var(--s3); display: grid; grid-template-columns: minmax(0, 61.8fr) minmax(0, 38.2fr); column-gap: var(--s5); row-gap: var(--s2); align-items: start; }
.cw-h { grid-column: 1; margin: 0; font: 700 clamp(2.2rem, 4.6vw, 4.236rem) / .95 var(--f-sans); letter-spacing: -.035em; }
.cw-count { grid-column: 1; margin: 0; font: 400 var(--t-xs) / 1.4 var(--f-tech); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.cw-count span { font: 700 1em var(--f-sans); letter-spacing: 0; color: var(--red); margin-right: .35em; }
.cw-head > .cw-spec, .cw-note { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.cw-note { font: 400 var(--t-xs) / 1.6 var(--f-tech); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); max-width: 26em; }
.cw-spec { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s4); }
.cw-spec > div { border-top: 1px solid var(--line); padding: .45rem 0 .6rem; min-width: 0; }
.cw-spec dt { font: 400 .66rem / 1.3 var(--f-tech); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.cw-spec dd { margin: .15rem 0 0; font: 400 .86rem / 1.35 var(--f-tech); letter-spacing: .02em; color: var(--ink); overflow-wrap: anywhere; }
.cw-schools { grid-template-columns: minmax(0, 1fr); }
.cw ol { list-style: none; margin-left: 0; margin-right: 0; padding: 0; }
.cw a { color: var(--ink); text-decoration: none; }
.cw-img { display: block; overflow: hidden; background: var(--paper-deep); aspect-ratio: 1.618; }
.cw-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.cw a:hover .cw-img img, .cw a:focus-visible .cw-img img { transform: scale(1.03); }
.cw-no { font: 700 1rem / 1 var(--f-sans); color: var(--red); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.cw-t { font: italic 400 clamp(1.3rem, 1.7vw, 1.6rem) / 1.12 var(--f-display); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: .2em; transition: text-decoration-color .25s; }
.cw a:hover .cw-t, .cw a:focus-visible .cw-t { text-decoration-color: var(--red); }
.cw-tt { display: grid; grid-template-columns: 2.618rem minmax(0, 1fr); align-items: baseline; border-top: 1px solid var(--ink); padding-top: var(--s2); }

/* features: the golden split, image on the left, data on the right, tops aligned */
.cw-feat > li + li { margin-top: var(--s6); }
.cwf a { display: grid; grid-template-columns: minmax(0, 61.8fr) minmax(0, 38.2fr); column-gap: var(--s5); align-items: start; }
.cw-info { display: grid; align-content: start; border-top: 4px solid var(--ink); padding-top: var(--s3); }
.cwf .cw-no { font-size: clamp(2.6rem, 5.4vw, 5.2rem); line-height: .82; letter-spacing: -.05em; }
.cwf .cw-t { margin-top: var(--s4); font-size: clamp(1.8rem, 2.9vw, 2.75rem); line-height: 1.04; }
.cw-lead { margin-top: var(--s3); font: 400 .92rem / 1.6 var(--f-tech); color: var(--ink-soft); max-width: 30em; }
.cwf .cw-spec { margin-top: var(--s4); }
.cw-go { margin-top: var(--s4); justify-self: start; font: 400 var(--t-xs) / 1.4 var(--f-tech); letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: .2rem; }
.cwf a:hover .cw-go { color: var(--red); border-color: var(--red); }

/* the rest: three columns, every image on one line, every title on one line, every data block on one line */
.cw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s5); row-gap: var(--s6); }
.cwi { display: grid; grid-template-rows: subgrid; grid-row: span 3; }
.cwi a { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: var(--s3); }
.cwi .cw-spec { align-self: start; }

/* line studies: two by two, in number order */
.studies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s5); row-gap: var(--s6); }
.studies li { display: grid; grid-template-rows: subgrid; grid-row: span 3; }
.st { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: var(--s2); }
.st-art { display: block; padding: 7% 4% 15%; }
.st-art .art { display: block; width: 100%; height: auto; overflow: visible; }
.st-k { font: 400 var(--t-xs) / 1.4 var(--f-tech); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); padding-left: 2.618rem; }

/* academic project pages: facts as a ruled specification */
.facts.spec { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s4); row-gap: 0; border-top: 4px solid var(--ink); }
.facts.spec > div { border-top: 1px solid var(--line); padding: .5rem 0 .7rem; }
.facts.spec > div:nth-child(-n+2) { border-top: 0; }
.facts.spec dd { font-size: .95rem; }

/* academic project pages: the catalogue, where you are and what is next */
.cat-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); border-top: 4px solid var(--ink); padding-top: var(--s3); }
.cat { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--s4); row-gap: var(--s4); }
.cat li { border-top: 1px solid var(--line); }
.cat li.is-cur { border-top: 4px solid var(--red); }
.cat li.is-nx { border-top-color: var(--ink); }
.cat a { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); row-gap: .3rem; padding-top: var(--s2); color: var(--ink); text-decoration: none; }
.cat-tag { grid-column: 1 / -1; min-height: 1em; font: 400 .66rem / 1 var(--f-tech); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.cat-tag.nx { color: var(--red); }
.cat-no { font: 700 .95rem / 1.2 var(--f-sans); color: var(--red); }
.cat-t { font: italic 400 1.2rem / 1.12 var(--f-display); }
.cat-m { grid-column: 2; font: 400 .66rem / 1.4 var(--f-tech); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.cat li:not(.is-cur) a:hover .cat-t { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: .2em; }
.cat li.is-cur .cat-t { color: var(--ink); }

@media (max-width: 1000px) {
  .cw-head, .cwf a { grid-template-columns: minmax(0, 1fr); }
  .cw-head > .cw-spec, .cw-note { grid-column: 1; grid-row: auto; margin-top: var(--s3); }
  .cw-info { margin-top: var(--s4); }
  .cw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .cw-grid, .studies { grid-template-columns: minmax(0, 1fr); }
  .cwi, .cwi a, .studies li, .st { grid-template-rows: auto; grid-row: auto; }
  .facts.spec { grid-template-columns: minmax(0, 1fr); }
  .facts.spec > div:nth-child(2) { border-top: 1px solid var(--line); }
}
.st-art { padding: 7% 0 12%; }
.side-f .xf, .wrap > .xf { max-width: min(100%, calc(100vh * var(--ar))); }

/* ---------- v13: phone margins ---------- */
:root { --gutter: clamp(1.75rem, 4.2vw, 4.236rem); }
@media (max-width: 1000px) {
  .page-top .art-side:has(.facts) { padding-left: var(--gutter) !important; padding-right: var(--gutter) !important; margin-top: var(--s5); }
  .page-top .art-side figcaption, .pagephoto .ph-side figcaption, .hero-photo figcaption { padding-left: var(--gutter); padding-right: var(--gutter); }
  .xs-bleed .xf figcaption { padding-left: var(--gutter); padding-right: var(--gutter); }
  .rg-code { margin-left: 0; }
}
@media (max-width: 1000px) { .practice-art figcaption, .dwg.bleed-l figcaption { padding-left: var(--gutter); } }
@media (max-width: 700px) {
  .xs-desc .desc p:first-child { font-size: 1.45rem; line-height: 1.2; }
  .xs-desc .two-col { gap: var(--s3); }
  .cat-head { flex-wrap: wrap; }
}

/* ---------- v14: essays ---------- */
.ess .ess-side { position: sticky; top: calc(var(--hdr, 0px) + var(--s4)); align-self: start; }
.ess .ess-side .dwg, .ess .ess-side .ess-fig { margin: 0; }
.article.essay { max-width: 40rem; }
.article.essay h2 { margin-top: var(--s6); border-top: 4px solid var(--ink); padding-top: var(--s3); }
.article.essay h3 { font: 400 var(--t-xs) / 1.4 var(--f-tech); letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin: var(--s4) 0 var(--s3); }
.article.essay blockquote { font: 400 1rem / 1.6 var(--f-tech); font-style: normal; border-left: 2px solid var(--red); padding-left: var(--s4); margin: var(--s4) 0; color: var(--ink); }
.article.essay blockquote p { font-size: 1rem; }
.article.essay blockquote:first-child { font: italic 400 clamp(1.4rem, 2vw, 1.8rem) / 1.25 var(--f-display); }
.article.essay ul, .article.essay ol { padding-left: 1.2rem; margin: var(--s3) 0; }
.article.essay li { margin: .35rem 0; line-height: 1.55; }
.article.essay li::marker { color: var(--red); }
.article.essay a { overflow-wrap: anywhere; text-decoration-color: var(--red); }
.article.essay .ess-fig img, .ess-side .ess-fig img { display: block; width: 100%; height: auto; }
.article.essay .ess-fig figcaption, .ess-side figcaption { font: 400 var(--t-xs) / 1.45 var(--f-tech); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-top: var(--s2); }
.article.essay sup a, .footnote-ref { text-decoration: none; color: var(--red); font: 700 .7rem var(--f-sans); }
.article.essay .footnotes { margin-top: var(--s6); border-top: 1px solid var(--line); padding-top: var(--s3); }
.article.essay .footnotes ol { padding-left: 1.2rem; }
.article.essay .footnotes li, .article.essay .footnotes p { font-size: .85rem; line-height: 1.5; color: var(--ink-soft); }
.footnote-back { text-decoration: none; }
@media (max-width: 1000px) { .ess .ess-side { position: static; max-width: 30rem; } }
.ess-coda { margin-top: var(--s6); border-top: 4px solid var(--ink); padding-top: var(--s3); }
.ess-coda p { font-size: .95rem; }
.wall-head p a { text-decoration-color: var(--red); }

/* ---------- v15: pager, image loading, page transitions, reading progress ---------- */

/* writings: next and previous, golden split (next 61.8%, previous 38.2%) */
.pager { display: grid; grid-template-columns: 1.618fr 1fr; gap: var(--s5); align-items: start; }
.pager .pg { display: flex; flex-direction: column; gap: var(--s2); padding-top: var(--s4); border-top: var(--rule) solid var(--ink); text-decoration: none; color: var(--ink); }
.pager .pg-prev { border-top-width: 1px; }
.pager .pg-t { font: italic 400 clamp(1.9rem, 3.6vw, 3.4rem) / 1.02 var(--f-display); letter-spacing: -0.005em; transition: color .3s; }
.pager .pg-prev .pg-t { font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.1; }
.pager .pg-k { display: inline-flex; gap: 0.6em; align-items: center; }
.pager .pg-ar { display: inline-block; transition: transform .45s cubic-bezier(0.2, 0.6, 0.2, 1); }
.pager .pg:hover .pg-t, .pager .pg:focus-visible .pg-t { color: var(--red); }
.pager .pg-next:hover .pg-ar { transform: translateX(0.5em); }
.pager .pg-prev:hover .pg-ar { transform: translateX(-0.5em); }
.pager .pg-all { grid-column: 1 / -1; justify-self: start; margin-top: var(--s3); }
.pg-count { margin-top: var(--s2); }
@media (max-width: 1000px) {
  .pager { grid-template-columns: 1fr; gap: var(--s4); }
}

/* images arrive softly: a quiet tone holds the place, then the picture fades in */
.js img.ld:not(.night) { opacity: 0; }
.js img.fi:not(.night) { animation: img-in .7s cubic-bezier(0.2, 0.6, 0.2, 1) both; }
@keyframes img-in { from { opacity: 0; } }
.js .ph:has(img.ld), .js .dwg-open:has(img.ld:not(.night)), .js .ess-fig:has(img.ld) { background: var(--paper-deep); }
img { image-rendering: auto; }

/* page to page: a cross-fade where the browser supports it, the header holds still */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out .2s cubic-bezier(0.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in .42s cubic-bezier(0, 0, 0.2, 1) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .js img.fi:not(.night) { animation: none; }
}

/* reading progress on the essays: a red line runs along the header rule */
.read-bar { position: absolute; left: 0; top: -1px; height: 3px; width: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(var(--rp, 0)); pointer-events: none; }

/* anchors (footnotes, sections) land clear of the fixed header */
:target { scroll-margin-top: calc(var(--hdr, 5rem) + var(--s4)); }
html:focus-within { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:focus-within { scroll-behavior: auto; } }

/* the viewer: pictures slide when you swipe or step */
.dlb-stage img.go-l { animation: dlb-l .38s cubic-bezier(0.2, 0.6, 0.2, 1) both; }
.dlb-stage img.go-r { animation: dlb-r .38s cubic-bezier(0.2, 0.6, 0.2, 1) both; }
@keyframes dlb-l { from { opacity: 0; transform: translateX(2.5%); } }
@keyframes dlb-r { from { opacity: 0; transform: translateX(-2.5%); } }
@media (hover: none) { .dlb-stage img { cursor: auto; } }
.side-R .side-f[style*="max-width"] { justify-self: end; width: 100%; }
.side-L .side-f[style*="max-width"] { justify-self: start; width: 100%; }
/* outside links (BBB Architects) and the date on photographs of Antonio */
a.ext { text-decoration-line: underline; text-decoration-color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a.ext:hover { color: var(--red); }
.hero-photo .hero-date { z-index: 3; }

/* ---------- title block: name and letters, role, motto (black and a visible light grey) ---------- */
.tblock { --tb-grey: #6E6A62; margin: 0; }
.tblock > * { margin: 0; max-width: none; }
.tblock .tb-l1 { font: 400 0.95rem / 1.4 var(--f-tech); letter-spacing: 0.02em; color: var(--tb-grey); }
.tblock .tb-n { font: 700 1.06em / 1.2 var(--f-sans); letter-spacing: 0; color: var(--ink); }
.tblock .tb-c { color: var(--tb-grey); }
.tblock .tb-l2 { font: 400 0.95rem / 1.45 var(--f-tech); letter-spacing: 0.02em; color: var(--ink); }
.tblock .tb-l3 { font: italic 400 1.12rem / 1.3 var(--f-display); color: var(--tb-grey); }
/* studio: the founder heading, at display scale */
.tblock.tb-xl { margin: var(--s2) 0 var(--s5); }
.tblock.tb-xl .tb-l1 { font-size: clamp(1rem, 1.5vw, 1.3rem); line-height: 1.25; }
.tblock.tb-xl .tb-n { display: block; font-size: clamp(2.2rem, 4.6vw, 4.2rem); line-height: 1; letter-spacing: -0.012em; margin-bottom: var(--s2); }
.tblock.tb-xl .tb-c::before { content: ""; }
.tblock.tb-xl .tb-l2 { font-size: clamp(1rem, 1.5vw, 1.3rem); margin-top: var(--s1); }
.tblock.tb-xl .tb-l3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin-top: var(--s2); }
.founder-head .tblock.tb-xl .tb-n { font-size: clamp(2.2rem, 9cqi, 4.2rem); }
/* contact: under the lead */
.tblock.tb-contact { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); max-width: 30rem; }
.tblock.tb-contact .tb-l1, .tblock.tb-contact .tb-l2 { font-size: 1.02rem; }
.tblock.tb-contact .tb-l3 { font-size: 1.3rem; }
/* footer: small, under the wordmark */
.tblock.tb-foot { margin: 0 0 var(--s3); }
.tblock.tb-foot .tb-l1, .tblock.tb-foot .tb-l2 { font-size: 0.86rem; }
.tblock.tb-foot .tb-l3 { font-size: 1.02rem; }
.tblock.tb-xl .tb-sep { display: none; }
/* footer motto */
.foot-motto { margin: calc(var(--s2) * -1) 0 var(--s3); font: italic 400 1.12rem / 1.3 var(--f-display); color: #6E6A62; max-width: none; }
/* motto sizes: same size as the role line, smaller than ARCHITECT inc. in the footer */
.tblock .tb-l3 { font-size: 0.95rem; }
.tblock.tb-xl .tb-l3 { font-size: clamp(1rem, 1.5vw, 1.3rem); margin-top: var(--s1); }
.foot-motto { font-size: 0.64rem; margin: calc(var(--s2) * -1) 0 var(--s3); letter-spacing: 0.02em; }

/* year on the studio stage photos: faint white, bottom right, no panel */
.stage-ph .tag.ph-year { left: auto; right: 0.6rem; bottom: 0.45rem; background: none; padding: 0; color: rgba(255,255,255,0.72); text-shadow: 0 0 6px rgba(0,0,0,0.25); pointer-events: none; }

/* small quote under the first drawing */
.xs-sq { padding-top: 0; }
.sq-note { margin: var(--s3) 0 0 auto; max-width: 34em; padding: 0; }
.sq-note p { margin: 0; font: italic 400 0.92rem / 1.55 var(--f-tech); letter-spacing: 0.03em; color: var(--ink-soft); }
.sq-note cite { display: block; margin-top: var(--s2); font: 400 0.72rem / 1.3 var(--f-tech); font-style: normal; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); }

/* drawings: multiply against the page colour inside their own group, so the paper
   never flashes white while a figure is revealing, loading or composited */
.dwg .dwg-open, .xf.is-dwg .dwg-open, .js .xf.is-dwg .dwg-open:has(img.ld), .js .dwg .dwg-open:has(img.ld:not(.night)) { background: var(--paper); isolation: isolate; }
.marg { isolation: isolate; background: var(--paper); }

/* =====================================================================
   studio: the profile as a timeline, a black band that travels sideways
   ===================================================================== */
.tl { position: relative; margin-top: var(--s7); background: #171715; color: #FAF8F2; }
.tl-pin { position: sticky; top: var(--hdr, 0px); height: calc(100vh - var(--hdr, 0px)); height: calc(100svh - var(--hdr, 0px)); display: flex; flex-direction: column; overflow: hidden; }
.tl-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s5); padding-top: var(--s5); padding-bottom: var(--s4); }
.tl-head .label { color: rgba(250,248,242,.62); }
.tl-head h2 { margin: var(--s2) 0 0; font: italic 400 clamp(2.6rem, 6.4vw, 6.2rem) / .9 var(--f-display); letter-spacing: -.018em; color: #FAF8F2; }
.tl-head h2 .dot { display: inline-block; width: .16em; height: .16em; background: var(--red); margin-left: .04em; }
.tl-now { margin: 0; font: 700 clamp(3.4rem, 9vw, 8.4rem) / .78 var(--f-sans); letter-spacing: -.05em; color: #FAF8F2; overflow: hidden; }
.tl-cur { display: inline-block; }
.tl-cur.roll { animation: tl-roll .55s cubic-bezier(.2,.7,.2,1); }
@keyframes tl-roll { from { transform: translateY(42%); opacity: 0; } }
.tl-rail { position: relative; height: 1px; margin: var(--s3) var(--edge) 0; background: rgba(250,248,242,.3); }
.tl-rail > i { position: absolute; z-index: 2; top: -5px; left: 0; width: 11px; height: 11px; background: var(--red); transform: translateX(var(--tx, 0px)); }
.tl-tick { position: absolute; top: -4px; left: calc(var(--i) / (var(--n) - 1) * (100% - 11px) + 5px); width: 1px; height: 9px; background: rgba(250,248,242,.4); transition: background .4s; }
.tl-tick b { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); font: 400 .7rem / 1 var(--f-tech); letter-spacing: .14em; color: rgba(250,248,242,.42); white-space: nowrap; transition: color .4s; }
.tl-tick.on { background: #FAF8F2; }
.tl-tick.on b { color: #FAF8F2; }
.tl-tick.cur b { color: var(--red); }
.tl-track { list-style: none; margin: 0; flex: 1; min-height: 0; display: flex; align-items: flex-start; gap: clamp(2.4rem, 5vw, 5.6rem); padding: calc(var(--s5) + 1.2rem) var(--edge) var(--s5); will-change: transform; }
.tl-stop { flex: 0 0 auto; width: clamp(19rem, 27vw, 27rem); opacity: .34; transition: opacity .6s ease; }
.tl-stop.has-ph { width: clamp(21rem, 31vw, 31rem); }
.tl-stop.on { opacity: 1; }
.tl-y { margin: 0 0 var(--s3); padding-top: var(--s2); border-top: 4px solid rgba(250,248,242,.5); font: 700 clamp(2.4rem, 4.4vw, 4.2rem) / .9 var(--f-sans); letter-spacing: -.045em; transition: border-color .6s; }
.tl-stop.on .tl-y { border-top-color: var(--red); }
.tl-ph { margin: 0 0 var(--s3); aspect-ratio: 1.618 / 1; overflow: hidden; background: #26261f; }
.tl-ph img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.85); transform: scale(1.04); transition: filter .8s ease, transform 1.2s cubic-bezier(.2,.7,.2,1); }
.tl-stop.on .tl-ph img { filter: none; transform: none; }
.tl-items { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.tl-items li { display: grid; gap: .3rem; }
.tl-k { font: 400 .7rem / 1.2 var(--f-tech); letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.tl-t { font: italic 400 clamp(1.25rem, 1.7vw, 1.6rem) / 1.12 var(--f-display); color: #FAF8F2; text-decoration: none; }
a.tl-t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: rgba(250,248,242,.3); transition: text-decoration-color .3s; }
a.tl-t:hover, a.tl-t:focus-visible { text-decoration-color: var(--red); }
.tl-t a.ext { color: inherit; }
.tl-ar { display: inline-block; margin-left: .35em; font-style: normal; font-size: .8em; transition: transform .4s cubic-bezier(.2,.6,.2,1); }
a.tl-t:hover .tl-ar { transform: translateX(.3em); }
.tl-d { font: 400 var(--t-s) / 1.5 var(--f-tech); color: rgba(250,248,242,.72); max-width: 30em; }
.tl-end { flex: 0 0 auto; align-self: center; display: flex; flex-direction: column; gap: var(--s4); padding-right: var(--edge); }
.tl-end p { margin: 0; font: italic 400 clamp(1.8rem, 3vw, 2.8rem) / 1 var(--f-display); max-width: 10em; }
.tl-end .link { color: #FAF8F2; align-self: flex-start; }
/* phones, tablets and reduced motion: the same story, read downwards */
.tl.free .tl-pin { position: relative; top: auto; height: auto; overflow: visible; }
.tl.free .tl-rail, .tl.free .tl-now { display: none; }
.tl.free .tl-track { flex-direction: column; gap: var(--s6); padding: var(--s5) var(--gutter) var(--s7); transform: none !important; }
.tl.free .tl-stop, .tl.free .tl-stop.has-ph { width: 100%; max-width: 34rem; opacity: 1; }
.tl.free .tl-stop .tl-y { border-top-color: var(--red); }
.tl.free .tl-ph img { filter: none; transform: none; }
.tl.free .tl-end { align-self: flex-start; padding-right: 0; }
/* fit every year inside the band, on short screens too */
.tl-head { padding-top: var(--s4); padding-bottom: var(--s3); }
.tl-now { font-size: clamp(3rem, 7vw, 6.6rem); line-height: .95; padding-bottom: .04em; }
.tl-track { padding-top: calc(var(--s4) + 1.2rem); padding-bottom: var(--s4); }
.tl-ph { aspect-ratio: auto; height: clamp(8rem, 24vh, 15rem); }
.tl-items { gap: var(--s2); }
.tl-y { margin-bottom: var(--s2); }
@media (max-height: 760px) { .tl-head h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); } .tl-ph { height: clamp(7rem, 20vh, 11rem); } .tl-d { font-size: .82rem; } }
.tl-stop.many { width: clamp(30rem, 44vw, 42rem); }
.tl-stop.many .tl-items { grid-template-columns: 1fr 1fr; column-gap: var(--s4); }
.tl.free .tl-stop.many { width: 100%; }
@media (max-width: 600px) { .tl.free .tl-stop.many .tl-items { grid-template-columns: 1fr; } }
@media (max-height: 760px) {
  .tl-head { padding-top: var(--s3); padding-bottom: var(--s2); }
  .tl-now { font-size: clamp(2.6rem, 5.4vw, 4.6rem); }
  .tl-ph { height: clamp(6.5rem, 17vh, 9.5rem); }
  .tl-y { font-size: clamp(2rem, 3.4vw, 3rem); }
  .tl-track { padding-top: calc(var(--s3) + 1.2rem); }
}
.tl-ar { margin-left: 0; }
/* phones: each year rises into place as it arrives */
.tl.free.rise .tl-stop { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform 1s cubic-bezier(.2,.7,.1,1); }
.tl.free.rise .tl-stop.seen { opacity: 1; transform: none; }
.tl.free.rise .tl-stop .tl-y { border-top-color: rgba(250,248,242,.4); transition: border-color 1s .3s; }
.tl.free.rise .tl-stop.seen .tl-y { border-top-color: var(--red); }
/* drawings in the projects index sit on the page colour, not white */
.pi-img.is-dwg, .js .pi-img.is-dwg:has(img.ld) { background: var(--paper); isolation: isolate; }
.pi-img.is-dwg img { mix-blend-mode: multiply; object-fit: contain; }
/* contact on phones and tablets: offices and enquiries stack, each across the full width */
@media (max-width: 1000px) { .offices { grid-template-columns: minmax(0, 1fr); } .office.enq { margin-top: var(--s4); } }
