/* Santos + Saleh Architecture
   Layout: 12-column editorial grid on warm limestone; imagery carries the page,
   color comes in bands (sand, walnut, charcoal) the way materials change on a facade. */
:root {
  --limestone: #F1EDE5;
  --paper: #F8F6F1;
  --sand: #E4DACA;
  --stone: #B3AA99;
  --olive: #5C5F43;
  --walnut: #4B3829;
  --charcoal: #23221E;
  /* Clay: the one accent, reserved for inquiry actions (Start a Project, Contact, Send Inquiry) */
  --clay: #9A4E30;
  --clay-deep: #7E3F26;
  --ink: #34322C;
  --muted: #6B665C;
  --rule: rgba(35, 34, 30, .16);
  --on-dark: #F1EDE5;
  --on-dark-muted: rgba(241, 237, 229, .68);

  --sans: "Libre Franklin", "Franklin Gothic Medium", "Franklin Gothic", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --section: clamp(72px, 10vw, 152px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--limestone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a[href^="tel:"], a[href^="mailto:"] { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
::selection { background: var(--sand); color: var(--charcoal); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--charcoal); color: var(--on-dark); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--sans); color: var(--charcoal); margin: 0; text-wrap: balance; }
.display { font-size: clamp(2.4rem, 5.2vw, 4.6rem); line-height: 1.04; font-weight: 500; letter-spacing: -.025em; }
.h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.1; font-weight: 500; letter-spacing: -.02em; }
.h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); line-height: 1.2; font-weight: 500; letter-spacing: -.01em; }
.lede { font-size: clamp(1.25rem, 2.1vw, 1.75rem); line-height: 1.4; font-weight: 400; color: var(--charcoal); letter-spacing: -.01em; text-wrap: pretty; }
.statement { font-size: clamp(1.5rem, 3vw, 2.6rem); line-height: 1.25; font-weight: 400; letter-spacing: -.02em; color: var(--charcoal); text-wrap: pretty; }
.statement .quiet { color: var(--muted); }
p { margin: 0; text-wrap: pretty; }
.prose { max-width: 62ch; display: grid; gap: 1.1em; }
.label {
  font-size: 12px; line-height: 1.4; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--olive);
}
.meta { font-size: 14px; color: var(--muted); }

/* Text link with a drawn underline and arrow */
.link {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--charcoal);
  padding-block: 6px; border-bottom: 1px solid currentColor;
  transition: gap .3s var(--ease), color .2s;
}
.link svg { width: 14px; height: 14px; flex: none; }
.link:hover { gap: 1em; color: var(--olive); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 52px; padding: 0 28px;
  background: var(--charcoal); color: var(--on-dark);
  font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--charcoal); border-radius: 0; cursor: pointer; text-decoration: none;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--olive); border-color: var(--olive); }
.btn--light { background: var(--on-dark); color: var(--charcoal); border-color: var(--on-dark); }
.btn--light:hover { background: transparent; color: var(--on-dark); }
.btn--accent { background: var(--clay); color: var(--on-dark); border-color: var(--clay); }
.btn--accent:hover { background: var(--clay-deep); border-color: var(--clay-deep); }
.btn svg { width: 14px; height: 14px; }

/* ---------- Header ----------
   Fixed bar with three states: full (top of page / scrolling up), compact (scrolling down),
   hidden (scrolling down further). The wordmark is clipped back into the monogram, so the
   collapse reads as one mark folding up, not a swap. */
:root { --hdr-full: 112px; --hdr-compact: 68px; --logo-h: 52px; --logo-scale: .7; --mono: 18.9%; }
body { padding-top: calc(var(--hdr-full) + env(safe-area-inset-top, 0px)); }
.site-header {
  position: fixed; left: 0; right: 0; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(241, 237, 229, .95);
  backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent;
  transition: transform .45s var(--ease), border-color .3s;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--hdr-full); transition: height .45s var(--ease); }
.site-header.is-compact .wrap { height: var(--hdr-compact); }
.site-header.is-compact, .site-header.is-raised { border-bottom-color: var(--rule); }
.site-header.is-hidden { transform: translateY(-100%); }
.brand { display: block; line-height: 0; }
.site-header .brand img {
  height: var(--logo-h); width: auto; transform-origin: 0 50%;
  clip-path: inset(0 0 0 0);
  transition: clip-path .5s var(--ease), transform .45s var(--ease);
}
.site-header.is-compact .brand img { clip-path: inset(0 calc(100% - var(--mono)) 0 0); transform: scale(var(--logo-scale)); }
.nav { display: flex; gap: clamp(20px, 2.6vw, 44px); }
.nav a {
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--charcoal);
  padding-block: 8px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .35s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { background-size: 100% 1px; }
.menu-btn { display: none; }

@media (max-width: 860px) {
  :root { --hdr-full: 84px; --hdr-compact: 60px; --logo-h: 36px; --logo-scale: .78; }
  .nav { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 2px;
    background: none; border: 0; cursor: pointer; color: var(--charcoal);
    font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  }
  .menu-btn .bars { width: 22px; height: 10px; position: relative; }
  .menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
  .menu-btn .bars::before { top: 0; } .menu-btn .bars::after { bottom: 0; }
  .menu-open .menu-btn .bars::before { transform: translateY(4.25px) rotate(45deg); }
  .menu-open .menu-btn .bars::after { transform: translateY(-4.25px) rotate(-45deg); }
}
.mobile-nav {
  position: fixed; inset: 0; z-index: 40;
  background: var(--limestone);
  padding: calc(env(safe-area-inset-top, 0px) + 96px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 32px);
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s .3s;
}
.menu-open .mobile-nav { opacity: 1; visibility: visible; transition: opacity .3s var(--ease); }
.menu-open { overflow: hidden; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: grid; }
.mobile-nav li { border-top: 1px solid var(--rule); }
.mobile-nav li:last-child { border-bottom: 1px solid var(--rule); }
.mobile-nav a.primary {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 0; text-decoration: none; color: var(--charcoal);
  font-size: clamp(1.9rem, 8vw, 2.6rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.1;
}
.mobile-nav a.primary span { font-size: 12px; font-weight: 600; letter-spacing: .16em; color: var(--muted); }
.mobile-nav .foot { display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
@media (min-width: 861px) { .mobile-nav { display: none; } }

/* ---------- Home hero: full-bleed image, copy set over a soft scrim on desktop, below the image on phones ---------- */
.hero { position: relative; color: var(--on-dark); }
.hero__media { position: relative; height: min(calc(100svh - var(--hdr-full)), 900px); min-height: 560px; overflow: hidden; background: var(--sand); margin: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; animation: settle 1.8s var(--ease) both; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(35,34,30,.72) 0%, rgba(35,34,30,.5) 38%, rgba(35,34,30,0) 66%), linear-gradient(180deg, rgba(35,34,30,0) 45%, rgba(35,34,30,.5) 100%); pointer-events: none; }
@keyframes settle { from { transform: scale(1.04); } to { transform: none; } }
.hero__text { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: clamp(40px, 6vw, 88px); }
.hero__text .grid { row-gap: 22px; align-items: end; }
.hero__text .copy { grid-column: 1 / span 6; display: grid; gap: 22px; }
.hero__text .label { color: rgba(241,237,229,.86); }
.hero__text h1 { color: var(--on-dark); max-width: 15ch; font-size: clamp(2.4rem, 4.6vw, 4.1rem); }
.hero__text p { font-size: 18px; line-height: 1.55; max-width: 44ch; color: rgba(241,237,229,.9); }
.hero__text .actions { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; margin-top: 6px; }
.hero__text .link { color: var(--on-dark); }
.hero__text .link:hover { color: var(--sand); }
.hero__credit { grid-column: 9 / -1; justify-self: end; font-size: 13px; color: rgba(241,237,229,.78); text-decoration: none; text-align: right; }
.hero__credit strong { display: block; color: var(--on-dark); font-weight: 500; }
.hero__credit:hover strong { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) {
  .hero { color: inherit; }
  .hero__media { height: auto; min-height: 0; aspect-ratio: 4 / 4.4; }
  .hero__media img { object-position: 46% 60%; }
  .hero__media::after { display: none; }
  .hero__text { position: static; padding-block: 28px 8px; }
  .hero__text .copy, .hero__credit { grid-column: 1 / -1; }
  .hero__text .label { color: var(--olive); }
  .hero__text h1 { color: var(--charcoal); }
  .hero__text p { color: var(--ink); font-size: 17px; }
  .hero__text .link { color: var(--charcoal); }
  .hero__credit { order: -1; justify-self: start; text-align: left; color: var(--muted); }
  .hero__credit strong { display: inline; color: var(--charcoal); margin-right: 8px; }
}
/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.band-sand { background: var(--sand); }
.band-paper { background: var(--paper); }
.band-walnut { background: var(--walnut); color: var(--on-dark); }
.band-walnut h2, .band-walnut .h2 { color: var(--on-dark); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 64px); }
.section-head .left { display: grid; gap: 14px; }

/* Positioning */
.positioning .grid { row-gap: 40px; }
.positioning .statement { grid-column: 1 / span 9; }
.positioning .aside { grid-column: 1 / span 12; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); border-top: 1px solid var(--rule); padding-top: 28px; }
.positioning .aside div { display: grid; gap: 8px; align-content: start; }
.positioning .aside p { font-size: 15px; color: var(--muted); max-width: 36ch; }
@media (max-width: 860px) {
  .positioning .statement { grid-column: 1 / -1; }
  .positioning .aside { grid-template-columns: 1fr; gap: 24px; }
}

/* Selected work */
.selected { row-gap: clamp(48px, 7vw, 104px); }
.selected .w-a { grid-column: 1 / -1; }
.selected .w-b { grid-column: 1 / span 7; }
.selected .w-c { grid-column: 8 / -1; }
/* Side-by-side pair shares one image height so tops, bottoms, and captions line up */
@media (min-width: 861px) {
  .selected .w-b .img, .selected .w-c .img { aspect-ratio: auto; height: clamp(360px, 40vw, 600px); }
}
.selected .w-d { grid-column: 4 / -1; }
@media (max-width: 860px) {
  .selected .w-a, .selected .w-b, .selected .w-c, .selected .w-d { grid-column: 1 / -1; margin-top: 0; }
}

/* Project card */
.card { display: grid; gap: 16px; text-decoration: none; color: inherit; }
.card .img { overflow: hidden; background: var(--sand); }
.card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .img img { transform: scale(1.035); }
.card .info { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.card .name { font-size: clamp(1.1rem, 1.5vw, 1.3rem); font-weight: 500; color: var(--charcoal); letter-spacing: -.01em; }
.card .where { font-size: 14px; color: var(--muted); }
.card .cat { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--olive); }
.card .sub { display: grid; gap: 4px; }
.r-wide { aspect-ratio: 21 / 9; } .r-land { aspect-ratio: 4 / 3; } .r-port { aspect-ratio: 4 / 5; } .r-16 { aspect-ratio: 16 / 9; } .r-32 { aspect-ratio: 3 / 2; }
@media (max-width: 860px) { .r-wide { aspect-ratio: 4 / 3; } }

/* Expertise summary (home) */
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.area { display: grid; gap: 18px; align-content: start; padding: 36px clamp(20px, 2.5vw, 40px) 8px 0; }
.area + .area { border-left: 1px solid var(--rule); padding-left: clamp(20px, 2.5vw, 40px); }
.area p { font-size: 16px; color: var(--ink); max-width: 40ch; }
.area ul { list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--muted); display: grid; gap: 4px; }
.area .link { justify-self: start; margin-top: 6px; }
@media (max-width: 860px) {
  .areas { grid-template-columns: 1fr; }
  .area, .area + .area { border-left: 0; padding: 28px 0; border-bottom: 1px solid var(--rule); }
}

/* CTA */
.cta .grid { row-gap: 32px; align-items: end; }
.cta .h2 { grid-column: 1 / span 7; }
.cta .body { grid-column: 9 / -1; display: grid; gap: 24px; }
.cta p { color: var(--on-dark-muted); max-width: 40ch; }
@media (max-width: 860px) { .cta .h2, .cta .body { grid-column: 1 / -1; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: var(--on-dark-muted); padding-block: clamp(56px, 7vw, 96px) calc(env(safe-area-inset-bottom, 0px) + 32px); font-size: 15px; }
.site-footer .grid { row-gap: 40px; }
.site-footer .brand img { height: 30px; width: auto; }
.site-footer .f-brand { grid-column: 1 / span 5; display: grid; gap: 20px; align-content: start; }
.site-footer .f-col { grid-column: span 2; display: grid; gap: 10px; align-content: start; }
.site-footer .f-col:last-child { grid-column: span 3; }
.site-footer h2 { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); margin-bottom: 4px; }
.site-footer a { text-decoration: none; color: var(--on-dark); }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(241, 237, 229, .14); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }
@media (max-width: 860px) {
  .site-footer .f-brand { grid-column: 1 / -1; }
  .site-footer .f-col, .site-footer .f-col:last-child { grid-column: span 6; }
}

/* ---------- Page intro (inner pages) ---------- */
.intro { padding-block: clamp(40px, 7vw, 112px) clamp(32px, 5vw, 72px); }
.intro .grid { row-gap: 24px; align-items: end; }
.intro .title { grid-column: 1 / span 7; display: grid; gap: 20px; }
.intro .desc { grid-column: 9 / -1; }
@media (max-width: 860px) { .intro .title, .intro .desc { grid-column: 1 / -1; } }

/* ---------- Work index ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px 28px; border-bottom: 1px solid var(--rule); margin-bottom: clamp(32px, 4vw, 56px); }
.filters button {
  background: none; border: 0; border-bottom: 1px solid transparent; margin-bottom: -1px; cursor: pointer;
  min-height: 48px; padding: 0; color: var(--muted);
  font: 500 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  transition: color .2s, border-color .2s;
}
.filters button sup { font-size: 10px; margin-left: 4px; letter-spacing: 0; }
.filters button:hover { color: var(--charcoal); }
.filters button[aria-pressed="true"] { color: var(--charcoal); border-bottom-color: var(--charcoal); }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 6vw, 88px) clamp(16px, 2.5vw, 40px); }
.work-grid .card[hidden] { display: none; }
.work-grid .card { animation: fadein .5s var(--ease) both; }
@keyframes fadein { from { opacity: .2; } to { opacity: 1; } }
@media (max-width: 700px) { .work-grid { grid-template-columns: 1fr; gap: 44px; } }

/* ---------- Project page ---------- */
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--charcoal); text-decoration: underline; text-underline-offset: 3px; }
.p-head { padding-block: clamp(32px, 5vw, 72px) clamp(24px, 3vw, 40px); }
.p-head .grid { row-gap: 20px; align-items: end; }
.p-head .t { grid-column: 1 / span 8; display: grid; gap: 18px; }
.p-head .loc { grid-column: 9 / -1; justify-self: end; text-align: right; }
@media (max-width: 860px) { .p-head .t, .p-head .loc { grid-column: 1 / -1; justify-self: start; text-align: left; } }

.p-hero { margin-bottom: clamp(48px, 7vw, 104px); }
.p-hero .frame { overflow: hidden; background: var(--sand); }
.p-hero .frame img { width: 100%; height: 100%; object-fit: cover; }
.p-hero--wide .frame { aspect-ratio: 16 / 8; }
.p-hero--strip .frame { aspect-ratio: auto; }
.p-hero--strip .frame img { height: auto; }
.p-hero--split .grid { row-gap: 32px; align-items: start; }
.p-hero--split .frame { grid-column: 1 / span 7; aspect-ratio: 4 / 5; max-height: 88vh; }
.p-hero--split .side { grid-column: 9 / -1; display: grid; gap: 40px; align-self: end; }
@media (max-width: 860px) {
  .p-hero--wide .frame { aspect-ratio: 4 / 3; margin-inline: calc(var(--gutter) * -1); }
  .p-hero--split .frame, .p-hero--split .side { grid-column: 1 / -1; }
  .p-hero--split .frame { margin-inline: calc(var(--gutter) * -1); aspect-ratio: 4 / 4.8; }
}

/* Project data, set like a drawing titleblock */
.titleblock { border: 1px solid var(--charcoal); font-size: 14px; }
.titleblock .tb-head { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--charcoal); color: var(--on-dark); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.titleblock dl { margin: 0; display: grid; }
.titleblock .row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 12px; padding: 11px 14px; border-top: 1px solid var(--rule); }
.titleblock .row:first-child { border-top: 0; }
.titleblock dt { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.titleblock dd { margin: 0; color: var(--charcoal); line-height: 1.5; }
.titleblock .scope { display: flex; flex-wrap: wrap; gap: 4px 0; }
.titleblock .scope span:not(:last-child)::after { content: "/"; color: var(--stone); margin: 0 .45em; }

.p-body { padding-bottom: clamp(56px, 8vw, 120px); }
.p-body .grid { row-gap: 40px; }
.p-overview .text { grid-column: 1 / span 7; grid-row: 1; display: grid; gap: 36px; align-content: start; }
.p-overview .text .lede { margin-bottom: 8px; }
.p-overview .tb { grid-column: 9 / -1; grid-row: 1; align-self: start; position: sticky; top: 108px; }
.p-overview .text section { display: grid; gap: 10px; }
@media (max-width: 860px) {
  .p-overview .tb, .p-overview .text { grid-column: 1 / -1; grid-row: auto; position: static; }
  .p-overview .tb { order: 2; }
}

.blocks { display: grid; gap: clamp(20px, 3vw, 40px); padding-bottom: clamp(56px, 8vw, 120px); }
.fig { margin: 0; display: grid; gap: 12px; }
.fig .frame { overflow: hidden; background: var(--sand); }
.fig .frame img { width: 100%; height: 100%; object-fit: cover; }
.fig figcaption { font-size: 14px; color: var(--muted); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 40px); align-items: start; }
.pair.offset > :last-child { margin-top: clamp(0px, 8vw, 120px); }
.pair.lead-7 { grid-template-columns: 7fr 5fr; }
.pair.lead-5 { grid-template-columns: 5fr 7fr; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 40px); }
@media (max-width: 700px) {
  .pair, .pair.lead-7, .pair.lead-5, .trio { grid-template-columns: 1fr; }
  .pair.offset > :last-child { margin-top: 0; }
  .trio.scroll { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .trio.scroll::-webkit-scrollbar { display: none; }
  .trio.scroll > * { scroll-snap-align: start; }
}
.subhead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 16px; padding-top: clamp(32px, 5vw, 72px); }
.subhead .h2 { grid-column: 1 / span 6; }
.subhead .prose { grid-column: 8 / -1; }
@media (max-width: 860px) { .subhead .h2, .subhead .prose { grid-column: 1 / -1; } }

/* Drawing panels: cleaned conceptual graphics printed onto a material ground */
.drawing { margin: 0; background: var(--paper); padding: clamp(20px, 4vw, 64px); display: grid; gap: 20px; }
.drawing.on-sand { background: var(--sand); }
.drawing img { mix-blend-mode: multiply; width: 100%; height: auto; }
.drawing .dtitle { display: flex; align-items: center; gap: 14px; }
.drawing .dnum {
  width: 34px; height: 34px; flex: none; border: 1px solid var(--charcoal); border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--charcoal);
}
.drawing .dtext { display: grid; gap: 2px; border-bottom: 1px solid var(--charcoal); padding-bottom: 6px; flex: 1; min-width: 0; }
.drawing .dtext strong { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--charcoal); }
.drawing .dtext span { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.drawing-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 40px); align-items: stretch; }
.drawing-pair .drawing { align-content: space-between; }
@media (max-width: 700px) { .drawing-pair { grid-template-columns: 1fr; } }

.split-drawing { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 28px; align-items: center; }
.split-drawing .drawing { grid-column: 1 / span 7; }
.split-drawing .copy { grid-column: 9 / -1; display: grid; gap: 14px; }
.split-drawing.flip .drawing { grid-column: 6 / -1; grid-row: 1; }
.split-drawing.flip .copy { grid-column: 1 / span 4; grid-row: 1; }
@media (max-width: 860px) { .split-drawing .drawing, .split-drawing .copy, .split-drawing.flip .drawing, .split-drawing.flip .copy { grid-column: 1 / -1; grid-row: auto; } }

.next { border-top: 1px solid var(--rule); }
.next a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding-block: clamp(32px, 5vw, 64px); text-decoration: none; }
.next .h2 { transition: color .25s; }
.next a:hover .h2 { color: var(--olive); }
.next .thumb { width: clamp(96px, 18vw, 260px); aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand); }
.next .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Expertise ---------- */
.xp { padding-block: clamp(56px, 8vw, 120px); border-top: 1px solid var(--rule); }
.xp:first-of-type { border-top: 0; }
.xp .grid { row-gap: 32px; align-items: start; }
.xp .media { grid-column: 1 / span 6; }
.xp .copy { grid-column: 8 / -1; display: grid; gap: 24px; }
.xp.flip .media { grid-column: 7 / -1; grid-row: 1; }
.xp.flip .copy { grid-column: 1 / span 5; grid-row: 1; }
.xp .lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--rule); padding-top: 20px; }
.xp .lists ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; font-size: 15px; }
.xp .lists a { text-decoration: none; border-bottom: 1px solid var(--stone); }
.xp .lists a:hover { border-color: var(--charcoal); }
.xp .idx { font-size: 13px; font-weight: 600; letter-spacing: .16em; color: var(--olive); }
@media (max-width: 860px) {
  .xp .media, .xp .copy, .xp.flip .media, .xp.flip .copy { grid-column: 1 / -1; grid-row: auto; }
  .xp .lists { grid-template-columns: 1fr; }
}
.xp-jump { display: flex; flex-wrap: wrap; gap: 8px 28px; }

/* ---------- Studio ---------- */
.approach { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); border-top: 1px solid var(--rule); padding-top: 32px; }
.approach div { display: grid; gap: 10px; align-content: start; }
.approach p { font-size: 16px; color: var(--ink); }
@media (max-width: 860px) { .approach { grid-template-columns: 1fr; } }
.partner { padding-block: clamp(48px, 7vw, 104px); border-top: 1px solid var(--rule); }
.partner .grid { row-gap: 28px; align-items: start; }
.partner .photo { grid-column: 1 / span 4; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.partner .photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.02); transition: filter .6s var(--ease); }
.partner:hover .photo img { filter: grayscale(.2); }
.partner .copy { grid-column: 6 / span 6; display: grid; gap: 20px; }
.partner.flip .photo { grid-column: 9 / -1; grid-row: 1; }
.partner.flip .copy { grid-column: 2 / span 6; grid-row: 1; }
@media (max-width: 860px) {
  .partner .photo, .partner .copy, .partner.flip .photo, .partner.flip .copy { grid-column: 1 / -1; grid-row: auto; }
  .partner .photo { max-width: 420px; }
}

/* Placeholder content awaiting firm input */
.tbd {
  border: 1px dashed var(--stone); background: rgba(228, 218, 202, .35); color: var(--muted);
  padding: 14px 16px; font-size: 14px; line-height: 1.5;
}
.tbd strong { color: var(--walnut); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; display: block; margin-bottom: 4px; }
.tbd-inline { border-bottom: 1px dashed var(--stone); color: var(--muted); }

/* ---------- Process ---------- */
.stages { border-top: 1px solid var(--charcoal); }
.stage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 24px; padding-block: clamp(40px, 6vw, 88px); border-bottom: 1px solid var(--rule); align-items: start; }
.stage .num { grid-column: 1 / span 1; font-size: clamp(1.9rem, 3.4vw, 3rem); font-weight: 400; letter-spacing: -.02em; color: var(--olive); line-height: 1; font-variant-numeric: tabular-nums; }
.stage .body { grid-column: 2 / span 5; display: grid; gap: 16px; }
.stage .body ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 0; font-size: 15px; }
.stage .body li { padding: 8px 0; border-top: 1px solid var(--rule); }
.stage .aside { grid-column: 8 / -1; }
/* Process drawings print straight onto the page: no panel, no edge. Their files already carry the
   page's limestone as paper color (tools/tint.ps1), so they match from the first frame with no blend
   mode, which would show white while a stage fades in. */
.stage .aside .drawing, .stage .aside .drawing.on-sand { background: transparent; padding: 0; }
.stage .aside .drawing img { mix-blend-mode: normal; }
@media (max-width: 860px) {
  .stage .num { grid-column: 1 / -1; }
  .stage .body, .stage .aside { grid-column: 1 / -1; }
}

/* ---------- Contact ---------- */
.contact .grid { row-gap: 56px; align-items: start; }
.contact .info { grid-column: 1 / span 5; display: grid; gap: 40px; }
.contact .info dl { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.contact .info .row { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.contact .info dt { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.contact .info dd { margin: 0; color: var(--charcoal); }
.contact .info dd a { text-decoration: none; border-bottom: 1px solid var(--stone); }
.contact .info dd a:hover { border-color: var(--charcoal); }
.contact form { grid-column: 7 / -1; }
@media (max-width: 860px) { .contact .info, .contact form { grid-column: 1 / -1; } .contact form { order: -1; } }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--charcoal); }
.field label .opt { color: var(--muted); font-weight: 500; letter-spacing: .06em; text-transform: none; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: 400 17px/1.4 var(--sans); color: var(--charcoal);
  background: var(--paper); border: 1px solid var(--stone); border-radius: 0;
  transition: border-color .2s, background .2s;
  appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2323221E' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field textarea { min-height: 168px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--charcoal); background: #fff; }
.field .err { font-size: 14px; color: #8A2D1C; display: none; }
.field.invalid input, .field.invalid textarea { border-color: #8A2D1C; }
.field.invalid .err { display: block; }
.form .submit { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.form .note { font-size: 14px; color: var(--muted); }
.form-status { grid-column: 1 / -1; padding: 16px 18px; background: var(--sand); color: var(--charcoal); font-size: 15px; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

.strip { aspect-ratio: 24 / 7; overflow: hidden; background: var(--sand); }
.strip img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .strip { aspect-ratio: 16 / 9; } }

/* ---------- Motion ---------- */
.js .reveal.pending { opacity: 0; transform: translateY(18px); }
.js .reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal.pending { opacity: 1; transform: none; }
}

/* ---------- Revision 2 additions ---------- */
/* Work: an odd count leaves the last card spanning the full row instead of sitting alone */
@media (min-width: 701px) {
  .work-grid .card.span-2 { grid-column: 1 / -1; }
  .work-grid .card.span-2 .img { aspect-ratio: 21 / 9; }
}

/* Expertise: typography-led areas on alternating material bands */
.xp-area { padding-block: clamp(64px, 9vw, 136px); border-top: 1px solid var(--rule); scroll-margin-top: var(--hdr-compact); }
.xp-area.band-sand { border-top: 0; }
.xp-area .grid { row-gap: 28px; align-items: start; }
.xp-area h2 { grid-column: 1 / span 5; }
.xp-area .copy { grid-column: 7 / -1; display: grid; gap: 28px; }
.xp-area .prose p:first-child { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; color: var(--charcoal); }
.xp-area .link { justify-self: start; }
@media (max-width: 860px) { .xp-area h2, .xp-area .copy { grid-column: 1 / -1; } }

/* Studio partner names carry credentials in a lighter weight */
.partner h2 .cred { font-size: .5em; font-weight: 400; letter-spacing: .02em; color: var(--muted); white-space: nowrap; }
.partner .role { font-size: 15px; color: var(--muted); margin-top: -10px; }

/* Existing / proposed labels */
.fig .tag { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--olive); }
.p-hero .tag { display: block; margin-top: 12px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--olive); }

/* CTA band: one line and one button */
.cta .grid { align-items: center; }
.cta .h2 { grid-column: 1 / span 8; }
.cta .body { grid-column: 9 / -1; justify-self: end; }
@media (max-width: 860px) { .cta .h2, .cta .body { grid-column: 1 / -1; justify-self: start; } }
/* Contact in the main navigation carries the inquiry accent */
.nav a.nav-cta {
  background: var(--clay); color: var(--on-dark);
  padding: 10px 18px; margin-left: 4px;
  transition: background-color .25s, padding .45s var(--ease);
}
.nav a.nav-cta:hover, .nav a.nav-cta[aria-current="page"] { background: var(--clay-deep); background-size: auto; }
.site-header.is-compact .nav a.nav-cta { padding: 8px 16px; }
.nav { align-items: center; }
/* ---------- Mobile refinement pass (phone layout only; desktop untouched) ---------- */
@media (max-width: 860px) {
  /* Menu: Contact carries the inquiry accent; the other items stay neutral */
  .mobile-nav li.cta { border: 0; margin-top: 20px; }
  .mobile-nav li.cta + li, .mobile-nav li:nth-last-child(2) { border-bottom: 1px solid var(--rule); }
  .mobile-nav li.cta a.primary { background: var(--clay); color: var(--on-dark); padding: 16px 20px; }
  .mobile-nav li.cta a.primary:active, .mobile-nav li.cta a.primary[aria-current="page"] { background: var(--clay-deep); }

  /* Home hero: a taller image for more presence on first load */
  .hero__media { aspect-ratio: 4 / 5; }
  .hero__media img { object-position: 46% 62%; }

  /* Work filters: text-only, wider spacing, comfortable tap targets, weight + underline for the active one */
  .filters { gap: 2px 28px; }
  .filters button { min-height: 48px; padding: 0 2px; font-size: 13px; }
  .filters button[aria-pressed="true"] { font-weight: 600; border-bottom-width: 2px; }

  /* Expertise: more air between the three practice areas */
  .xp-area { padding-block: 88px; }
  .xp-area .grid { row-gap: 32px; }

  /* Project data: stacked label-over-value rows, scope as a list */
  .titleblock .row { grid-template-columns: 1fr; gap: 4px; padding: 14px 16px; }
  .titleblock dt { padding-top: 0; }
  .titleblock .scope { display: grid; gap: 3px; }
  .titleblock .scope span:not(:last-child)::after { content: none; }

  /* Contact: a full-width, easy-to-tap Send Inquiry */
  .form .submit .btn { width: 100%; min-height: 60px; font-size: 14px; }

  /* Studio: partner sections spaced like the sections above them */
  .partner { padding-block: 72px; }
}
/* Phone only: galleries tagged stack-phone (Not Another Film Lab) stack one photo per row at full
   content width, showing each photograph uncropped at its own proportions */
@media (max-width: 700px) {
  .trio.stack-phone { grid-template-columns: 1fr; gap: 20px; }
  .trio.stack-phone .frame.r-port { aspect-ratio: auto; }
  .trio.stack-phone .frame img { height: auto; object-fit: initial; }
}