/* Lintel & Field: concept site by Blue Poppy Sites
   Archivo (wide, display + labels) / Inter (body) */

:root {
  --paper: #f3eee5;
  --concrete: #e8e1d4;
  --stone: #cdc4b3;
  --line: rgba(34, 35, 27, .16);
  --ink: #22231b;
  --graphite: #4b4a3f;
  --muted: #67645a;
  --rust: #9a4a24;
  --rust-soft: #c98a62;
  --char: #272b20;
  --char-2: #31362a;
  --on-dark: #f0ece2;
  --on-dark-muted: #b4af9f;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(20px, 4.2vw, 64px);
  --max: 1520px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* faint drafting grid behind light sections */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: linear-gradient(to right, rgba(34,35,27,.045) 1px, transparent 1px);
  background-size: calc((100vw - 2 * var(--pad)) / 4) 100%;
  background-position: var(--pad) 0;
}
main, header, footer { position: relative; z-index: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}
.dark :focus-visible, .site-header.on-hero :focus-visible { outline-color: var(--rust-soft); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px;
  text-decoration: none; transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.display, h1, h2, h3 {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 500;
  letter-spacing: -.035em;
  margin: 0;
}
.display { font-size: clamp(2.9rem, 9.2vw, 10.6rem); line-height: .9; }
h1 { font-size: clamp(2.6rem, 7.4vw, 8.4rem); line-height: .92; }
h2 { font-size: clamp(2.1rem, 4.9vw, 5.2rem); line-height: .96; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.12; letter-spacing: -.02em; }
.h-light { font-weight: 300; }
.h-accent { color: var(--rust); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.15rem, 1.55vw, 1.45rem); line-height: 1.5; color: var(--graphite); max-width: 36ch; letter-spacing: -.005em; }
.muted { color: var(--muted); }

.label {
  font-family: var(--f-display);
  font-stretch: 112%;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.4;
}
.label--muted { color: var(--muted); }
.dark .label--muted { color: var(--on-dark-muted); }
.num {
  font-family: var(--f-display);
  font-stretch: 100%;
  font-variant-numeric: tabular-nums;
}

/* ---------- Buttons & links ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 22px 16px 24px;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--bg);
  text-decoration: none;
  font-family: var(--f-display); font-stretch: 112%;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease);
  cursor: pointer;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--rust);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .45s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn:hover, .btn:focus-visible { border-color: var(--rust); color: #fff; }
.btn .arr { transition: transform .45s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--light { --bg: var(--paper); --fg: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.dark .btn--ghost { --fg: var(--on-dark); border-color: rgba(240,236,226,.5); }

.arr { width: 18px; height: 10px; flex: none; }

.link-line {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: var(--f-display); font-stretch: 112%;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding-bottom: 6px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .5s var(--ease), color .3s;
}
.link-line:hover { background-size: 0 1px; background-position: right bottom; color: var(--rust); }
.dark .link-line:hover { color: var(--rust-soft); }
.link-line:hover .arr { transform: translateX(4px); }
.link-line .arr { transition: transform .4s var(--ease); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  color: var(--ink);
  transition: background-color .5s var(--ease), color .5s var(--ease), transform .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.site-header.on-hero { color: #fff; }
.site-header.scrolled {
  background: rgba(243, 238, 229, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ink);
  border-bottom-color: var(--line);
}
.site-header.hide { transform: translateY(-100%); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 30px; height: 26px; flex: none; }
.brand-word {
  font-family: var(--f-display); font-stretch: 125%;
  font-weight: 600; font-size: 15px; letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap;
}
.brand-word span { font-weight: 300; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); }
.nav a:not(.btn) {
  text-decoration: none;
  font-family: var(--f-display); font-stretch: 112%;
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  position: relative; padding: 6px 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { padding: 12px 16px 12px 18px; font-size: 12px; }
.site-header.on-hero:not(.scrolled) .nav .btn { --bg: #fff; --fg: var(--ink); }
.site-header.on-hero:not(.scrolled) .nav .btn:hover { color: #fff; }

.menu-btn {
  display: none;
  background: none; border: 0; padding: 10px 0 10px 10px; cursor: pointer;
  align-items: center; gap: 10px;
  font-family: var(--f-display); font-stretch: 112%;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.menu-btn .bars { width: 26px; height: 10px; position: relative; display: block; }
.menu-btn .bars::before, .menu-btn .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.menu-btn .bars::before { top: 0; }
.menu-btn .bars::after { top: 8px; }
.menu-open .menu-btn .bars::before { top: 4px; transform: rotate(45deg); }
.menu-open .menu-btn .bars::after { top: 4px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--char); color: var(--on-dark);
  padding: calc(var(--header-h) + 32px) var(--pad) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  visibility: hidden; opacity: 0;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease), opacity .3s, visibility 0s .6s;
}
.menu-open .mobile-menu { visibility: visible; opacity: 1; clip-path: inset(0 0 0 0); transition: clip-path .6s var(--ease), opacity .2s, visibility 0s; }
.menu-open .site-header { color: var(--on-dark); background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.mobile-menu ol { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.mobile-menu li { border-top: 1px solid rgba(240,236,226,.14); }
.mobile-menu li:last-child { border-bottom: 1px solid rgba(240,236,226,.14); }
.mobile-menu a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 16px 0; text-decoration: none;
  font-family: var(--f-display); font-stretch: 125%; font-weight: 500;
  font-size: clamp(1.9rem, 8vw, 3rem); letter-spacing: -.03em; line-height: 1;
  transition: color .3s, padding-left .4s var(--ease);
}
.mobile-menu a:hover, .mobile-menu a[aria-current="page"] { color: var(--rust-soft); padding-left: 8px; }
.mobile-menu a .label { color: var(--on-dark-muted); font-size: 11px; letter-spacing: .14em; }
.mobile-menu .mm-foot { display: grid; gap: 6px; font-size: 15px; color: var(--on-dark-muted); }
.mobile-menu .mm-foot a { all: unset; cursor: pointer; color: var(--on-dark); }

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---------- Reveal motion (only when JS adds .js) ---------- */
.js .rv { opacity: 0; transform: translateY(28px); }
.js .rv.in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
/* clip the image, not the observed frame: IntersectionObserver ignores fully clipped targets */
.js .rv-img > img, .js .rv-img > picture { clip-path: inset(100% 0 0 0); transform: scale(1.12); }
.js .rv-img.in > img { clip-path: inset(0 0 0 0); transform: scale(1); transition: clip-path 1.1s var(--ease), transform 1.6s var(--ease); transition-delay: inherit; }
.js .rv-line { transform: scaleX(0); transform-origin: left; }
.js .rv-line.in { transform: scaleX(1); transition: transform 1.2s var(--ease); }
.js .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js .split .w > span { display: inline-block; transform: translateY(105%); }
.js .split.in .w > span { transform: none; transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 55ms); }

/* ---------- Media frames ---------- */
.frame { position: relative; overflow: hidden; background: var(--concrete); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame[data-ratio="3/2"] { aspect-ratio: 3/2; }
.frame[data-ratio="4/5"] { aspect-ratio: 4/5; }
.frame[data-ratio="2/3"] { aspect-ratio: 2/3; }
.frame[data-ratio="16/9"] { aspect-ratio: 16/9; }
.frame[data-ratio="1/1"] { aspect-ratio: 1/1; }
.frame[data-ratio="21/9"] { aspect-ratio: 21/9; }
.parallax { overflow: hidden; }
.parallax { position: relative; }
.parallax img { position: absolute; left: 0; top: -9%; width: 100%; height: 118% !important; margin: 0; will-change: transform; }

/* crop marks: little architectural corner ticks */
.ticks { position: relative; }
.ticks::before, .ticks::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none; z-index: 2;
  border-color: currentColor; border-style: solid; opacity: .55;
}
.ticks::before { top: -8px; left: -8px; border-width: 1px 0 0 1px; }
.ticks::after { bottom: -8px; right: -8px; border-width: 0 1px 1px 0; }

/* ---------- Section scaffolding ---------- */
.section { padding: clamp(88px, 12vw, 180px) 0; }
.section--tight { padding: clamp(64px, 8vw, 120px) 0; }
.dark { background: var(--char); color: var(--on-dark); }
.dark .lead { color: var(--on-dark-muted); }
.concrete { background: var(--concrete); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.dark .rule { background: rgba(240,236,226,.16); }
.sec-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; align-items: end;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.sec-head .label { grid-column: 1 / -1; display: flex; gap: 18px; align-items: center; }
.sec-head .label::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .25; }
@media (max-width: 800px) { .sec-head { grid-template-columns: 1fr; } }

/* ---------- HERO (home) ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  color: #fff; overflow: hidden; background: var(--char);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease-in-out; }
.hero-slide.on { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.hero-slide.on img { animation: kb 9s linear forwards; }
.hero-slide:first-child { opacity: 1; }
.js .hero-slide:first-child:not(.on) { opacity: 0; }
@keyframes kb { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(22,25,16,.55) 0%, rgba(22,25,16,0) 22%),
    linear-gradient(0deg, rgba(22,25,16,.78) 0%, rgba(22,25,16,.25) 45%, rgba(22,25,16,0) 70%);
}
.hero-inner {
  position: relative; z-index: 2; height: 100%;
  display: grid; grid-template-rows: 1fr auto;
  padding-top: calc(var(--header-h) + 24px); padding-bottom: clamp(24px, 4vw, 48px);
}
.hero-coords { display: flex; justify-content: space-between; align-items: flex-start; opacity: .85; }
.hero-title { margin: 0 0 clamp(28px, 4vw, 52px); max-width: 12ch; }
.hero-foot {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 24px 40px; align-items: end;
  padding-top: 22px; border-top: 1px solid rgba(255,255,255,.28);
}
.hero-foot p { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.82); max-width: 34ch; }
.hero-count { display: flex; align-items: center; gap: 16px; }
.hero-count .bar { width: 120px; height: 1px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.hero-count .bar i { position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero-count .bar i.run { animation: bar 6s linear forwards; }
@keyframes bar { to { transform: scaleX(1); } }
.hero-name { min-height: 1.4em; transition: opacity .5s; }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.scroll-cue .stem { width: 1px; height: 36px; background: rgba(255,255,255,.4); position: relative; overflow: hidden; }
.scroll-cue .stem::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: #fff; animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 110%; } }
@media (max-width: 900px) {
  .hero-foot { grid-template-columns: 1fr 1fr; }
  .hero-foot .hide-sm { display: none; }
}
@media (max-width: 520px) {
  .hero-foot { grid-template-columns: 1fr; gap: 14px; }
  .hero-foot .scroll-cue { display: none; }
  .hero-coords .label:last-child { display: none; }
}

/* ---------- Intro + blueprint ---------- */
.intro { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(40px, 6vw, 120px); align-items: center; }
.intro h2 { margin-bottom: 28px; }
.blueprint { color: var(--ink); }
.blueprint svg { width: 100%; height: auto; overflow: visible; }
.bp-line { fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: square; }
.bp-thin { stroke-width: .75; opacity: .55; }
.bp-dim { stroke-width: .75; opacity: .6; }
.bp-hatch { stroke-width: .6; opacity: .35; }
.bp-accent { stroke: var(--rust); }
.bp-text { font-family: var(--f-display); font-stretch: 112%; font-size: 10px; letter-spacing: .14em; fill: currentColor; opacity: .7; text-transform: uppercase; font-weight: 600; }
.dark .blueprint { color: var(--on-dark); }
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card { display: block; text-decoration: none; }
.card .frame img { transition: transform 1.1s var(--ease); }
.card:hover .frame img, .card:focus-visible .frame img { transform: scale(1.045); }
.card-cap {
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: baseline;
  padding-top: 16px; margin-top: 2px;
}
@media (max-width: 520px) {
  .card-cap { grid-template-columns: auto 1fr; gap: 4px 14px; }
  .card-cap > .label:last-child { grid-column: 2; }
}
.card-cap h3 { font-size: clamp(1.15rem, 1.6vw, 1.45rem); transition: color .3s; }
.card:hover .card-cap h3 { color: var(--rust); }
.card-cap .label { color: var(--muted); }
.card .view {
  position: absolute; right: 16px; bottom: 16px; z-index: 2;
  background: var(--paper); color: var(--ink); padding: 10px 14px;
  display: inline-flex; gap: 10px; align-items: center;
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.card:hover .view, .card:focus-visible .view { opacity: 1; transform: none; }

/* ---------- Big numbered steps ---------- */
.steps { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 120px); }
.steps-aside { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
.steps-aside .frame { margin-top: 40px; max-width: 420px; }
.step-list { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.step {
  display: grid; grid-template-columns: minmax(110px, 200px) 1fr; gap: 24px;
  padding: clamp(32px, 4vw, 56px) 0; border-top: 1px solid rgba(240,236,226,.16);
}
.step:last-child { border-bottom: 1px solid rgba(240,236,226,.16); }
.step-n {
  font-family: var(--f-display); font-stretch: 125%; font-weight: 300;
  font-size: clamp(4rem, 9vw, 8.6rem); line-height: .8; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1px var(--on-dark-muted);
  transition: color .6s var(--ease), -webkit-text-stroke-color .6s;
}
.step:hover .step-n, .step.active .step-n { color: var(--rust-soft); -webkit-text-stroke-color: var(--rust-soft); }
.step h3 { margin-bottom: 12px; font-size: clamp(1.4rem, 2.4vw, 2.1rem); }
.step p { color: var(--on-dark-muted); max-width: 44ch; margin: 0; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .steps-aside { position: static; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .step-n { font-size: 4.2rem; }
}

/* ---------- Full-bleed statement band ---------- */
.band { position: relative; height: clamp(520px, 90vh, 920px); color: #fff; overflow: hidden; background: var(--char); }
.band .parallax, .band .band-img { position: absolute; inset: 0; }
.band img { width: 100%; height: 100%; object-fit: cover; }
.band .parallax img { height: 118%; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,25,16,.72) 0%, rgba(22,25,16,.2) 60%, rgba(22,25,16,.05) 100%); }
.band-inner { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding-bottom: clamp(40px, 6vw, 88px); }
.band h2 { max-width: 13ch; margin: 18px 0 22px; }
.band p { max-width: 42ch; color: rgba(255,255,255,.85); }

/* ---------- Footer CTA + footer ---------- */
.cta {
  position: relative; overflow: hidden; background: var(--char); color: var(--on-dark);
  padding: clamp(96px, 13vw, 200px) 0 0;
}
.cta-title { font-size: clamp(3rem, 10.5vw, 12rem); line-height: .86; letter-spacing: -.045em; margin: 22px 0 40px; }
.cta-title em { font-style: normal; color: var(--rust-soft); font-weight: 300; }
.cta-row { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.cta-row p { max-width: 40ch; color: var(--on-dark-muted); margin: 0; }
.cta-strip {
  margin-top: clamp(64px, 8vw, 120px);
  display: grid; grid-template-columns: 2fr 1fr 1.4fr 1fr; gap: 6px; height: clamp(180px, 26vw, 380px);
}
.cta-strip .frame { height: 100%; }
@media (max-width: 700px) { .cta-strip { grid-template-columns: 2fr 1fr; } .cta-strip .frame:nth-child(n+3) { display: none; } }

.site-footer { background: var(--char); color: var(--on-dark-muted); padding: 64px 0 28px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(240,236,226,.14); }
.site-footer .brand { color: var(--on-dark); margin-bottom: 18px; }
.site-footer h2 { font-size: 11.5px; font-stretch: 112%; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark); margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; transition: color .3s; }
.site-footer a:hover { color: var(--on-dark); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 24px; font-size: 13px; }
.foot-base a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(240,236,226,.3); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Page heads (inner pages) ---------- */
.page-head { padding: calc(var(--header-h) + clamp(64px, 10vw, 150px)) 0 clamp(48px, 6vw, 96px); }
.page-head .crumbs { display: flex; gap: 14px; align-items: center; margin-bottom: clamp(28px, 4vw, 48px); }
.page-head .crumbs a { text-decoration: none; }
.page-head .crumbs a:hover { color: var(--rust); }
.page-head-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px 64px; align-items: end; }
.page-head-grid .lead { justify-self: end; }
@media (max-width: 900px) { .page-head-grid { grid-template-columns: 1fr; } .page-head-grid .lead { justify-self: start; } }

/* ---------- Homes index ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(36px, 5vw, 64px); align-items: center; }
.filters .label { margin-right: 12px; }
.chip {
  border: 1px solid var(--line); background: transparent; padding: 9px 14px; cursor: pointer;
  font-family: var(--f-display); font-stretch: 112%; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  transition: background .3s, color .3s, border-color .3s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.homes-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(48px, 6vw, 96px) clamp(20px, 2.4vw, 36px); }
.homes-grid .card { transition: opacity .5s var(--ease); }
.homes-grid .card.is-hidden { display: none; }
.g-a { grid-column: 1 / 8; }
.g-b { grid-column: 9 / 13; align-self: end; }
.g-c { grid-column: 1 / 5; }
.g-d { grid-column: 6 / 13; margin-top: clamp(40px, 8vw, 120px); }
.g-e { grid-column: 2 / 7; }
.g-f { grid-column: 8 / 12; margin-top: clamp(60px, 10vw, 160px); }
.g-g { grid-column: 1 / 6; }
.g-g { align-self: start; }
.g-h { grid-column: 7 / 13; margin-top: clamp(40px, 6vw, 96px); }
.homes-grid.filtered > .card { grid-column: span 6 !important; margin-top: 0 !important; align-self: start; }
.homes-grid.filtered .frame { aspect-ratio: 3/2 !important; }
@media (max-width: 800px) {
  .homes-grid { grid-template-columns: 1fr; }
  .homes-grid > .card { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .homes-grid.filtered > .card { grid-column: 1 / -1 !important; }
}
.concept-note { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; color: var(--muted); max-width: 60ch; }
.concept-note::before { content: ""; width: 9px; height: 9px; margin-top: 7px; flex: none; background: var(--rust); transform: rotate(45deg); }

/* ---------- Project detail ---------- */
.p-hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; color: #fff; background: var(--char); overflow: hidden; }
.p-hero .parallax { position: absolute; inset: 0; }
.p-hero img { width: 100%; height: 100%; object-fit: cover; }
.p-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(22,25,16,.75), rgba(22,25,16,0) 55%), linear-gradient(180deg, rgba(22,25,16,.45), rgba(22,25,16,0) 22%); }
.p-hero-inner { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(32px, 5vw, 64px); }
.p-hero .crumbs { display: flex; gap: 12px; margin-bottom: 22px; }
.p-hero .crumbs a { text-decoration: none; opacity: .85; }
.p-hero .crumbs a:hover { opacity: 1; text-decoration: underline; }

.spec-sheet { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.spec { padding: 22px 20px 24px 0; border-right: 1px solid var(--line); }
.spec + .spec { padding-left: 20px; }
.spec:last-child { border-right: 0; }
.spec dt { margin-bottom: 10px; color: var(--muted); }
.spec dd { margin: 0; font-family: var(--f-display); font-stretch: 112%; font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-weight: 500; letter-spacing: -.01em; }
@media (max-width: 900px) {
  .spec-sheet { grid-template-columns: repeat(2, 1fr); }
  .spec { padding: 18px 12px 18px 0 !important; border-right: 0; border-bottom: 1px solid var(--line); }
  .spec:nth-child(even) { padding-left: 16px !important; border-left: 1px solid var(--line); }
}

.story { display: grid; grid-template-columns: 4fr 1fr 7fr; gap: 32px; }
.story-body { grid-column: 3; columns: 2; column-gap: 40px; }
.story-body p { break-inside: avoid; }
.story-body p:first-child::first-line { font-weight: 600; }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; } .story-body { grid-column: 1; columns: 1; } }

.plan-wrap { display: grid; grid-template-columns: 8fr 4fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.plan-key { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(240,236,226,.16); }
.plan-key li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(240,236,226,.16); font-size: 15px; }
.plan-key li span:last-child { color: var(--on-dark-muted); }
@media (max-width: 900px) { .plan-wrap { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 1.6vw, 24px); }
.ga { grid-column: 1 / 13; }
.gb { grid-column: 1 / 6; }
.gc { grid-column: 6 / 13; align-self: end; }
.gd { grid-column: 3 / 8; }
.ge { grid-column: 8 / 13; }
.gallery figure { margin: 0; }
.gallery figcaption { padding-top: 12px; }
@media (max-width: 700px) { .gallery > * { grid-column: 1 / -1 !important; } }

.materials { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); }
.mat { padding: 20px 20px 0 0; }
.mat + .mat { padding-left: 20px; border-left: 1px solid var(--line); }
.mat .sw { aspect-ratio: 1/1; overflow: hidden; margin-bottom: 18px; background: var(--concrete); }
.mat .sw img { width: 100%; height: 100%; object-fit: cover; transform: scale(2.2); transition: transform 1.2s var(--ease); }
.mat:hover .sw img { transform: scale(2.6); }
.mat h3 { font-size: 1.1rem; margin: 8px 0 8px; }
.mat p { font-size: 14.5px; color: var(--muted); margin: 0; }
@media (max-width: 900px) {
  .materials { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .mat { padding: 20px 10px 0 0 !important; border-left: 0 !important; }
  .mat:nth-child(even) { padding-left: 10px !important; }
}

.next-proj { display: grid; grid-template-columns: 1fr 1fr; text-decoration: none; background: var(--concrete); }
.next-proj .np-text { padding: clamp(32px, 5vw, 72px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.next-proj h2 { transition: color .3s; }
.next-proj:hover h2 { color: var(--rust); }
.next-proj .frame { height: clamp(300px, 34vw, 520px); }
.next-proj .frame img { transition: transform 1.2s var(--ease); }
.next-proj:hover .frame img { transform: scale(1.05); }
@media (max-width: 800px) { .next-proj { grid-template-columns: 1fr; } }

/* ---------- Process (pinned horizontal) ---------- */
.hscroll { position: relative; background: var(--char); color: var(--on-dark); overflow: hidden; }
.hs-track { display: flex; gap: 0; }
.hs-intro, .hs-panel { flex: none; }
.hs-intro { width: min(46vw, 640px); padding: clamp(40px, 6vw, 96px) var(--pad); display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid rgba(240,236,226,.14); }
.hs-panel {
  width: min(78vw, 1040px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 48px);
  padding: clamp(40px, 6vw, 96px) clamp(28px, 3.5vw, 56px);
  border-right: 1px solid rgba(240,236,226,.14);
  position: relative;
}
.hs-panel .frame { height: 100%; min-height: 320px; }
.hs-panel .hs-text { display: flex; flex-direction: column; }
.hs-num { font-family: var(--f-display); font-stretch: 125%; font-weight: 300; font-size: clamp(5rem, 11vw, 11rem); line-height: .78; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px rgba(240,236,226,.5); margin-bottom: auto; }
.hs-text h2 { font-size: clamp(2.2rem, 4.2vw, 4.4rem); margin: 24px 0 18px; }
.hs-text p { color: var(--on-dark-muted); max-width: 40ch; }
.hs-text dl { margin: 18px 0 0; display: grid; gap: 0; border-top: 1px solid rgba(240,236,226,.16); }
.hs-text dl div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(240,236,226,.16); font-size: 15px; }
.hs-text dt { color: var(--on-dark); }
.hs-text dd { margin: 0; color: var(--on-dark-muted); }
.hs-progress { position: absolute; left: var(--pad); right: var(--pad); bottom: 28px; height: 1px; background: rgba(240,236,226,.16); z-index: 3; display: none; }
.hs-progress i { position: absolute; inset: 0; background: var(--rust-soft); transform-origin: left; transform: scaleX(0); }
.hs-marks { position: absolute; left: var(--pad); right: var(--pad); bottom: 40px; display: none; justify-content: space-between; z-index: 3; color: var(--on-dark-muted); }
.hs-marks span.on { color: var(--on-dark); }
.is-pinned .hs-track { height: 100vh; }
.is-pinned .hs-intro, .is-pinned .hs-panel { height: 100vh; padding-top: calc(var(--header-h) + 40px); padding-bottom: 96px; }
.is-pinned .hs-progress, .is-pinned .hs-marks { display: flex; }
.is-pinned .hs-progress { display: block; }
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .hs-track { flex-direction: column; }
  .hs-intro, .hs-panel { width: 100%; border-right: 0; border-bottom: 1px solid rgba(240,236,226,.14); }
  .hs-panel { grid-template-columns: 1fr; padding: 48px var(--pad); }
  .hs-panel .frame { aspect-ratio: 3/2; min-height: 0; order: -1; }
  .hs-num { font-size: 5rem; margin-bottom: 0; }
}

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 26px 0; font-family: var(--f-display); font-stretch: 112%; font-weight: 500; font-size: clamp(1.1rem, 1.7vw, 1.45rem); letter-spacing: -.01em;
  transition: color .3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--rust); }
.faq summary .pm { width: 16px; height: 16px; position: relative; flex: none; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 7.5px; height: 1px; background: currentColor; transition: transform .4s var(--ease); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm::after { transform: rotate(0); }
.faq .ans { padding: 0 0 28px; max-width: 64ch; color: var(--graphite); }
.faq-grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 5vw, 96px); }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.manifesto { font-family: var(--f-display); font-stretch: 112%; font-weight: 400; font-size: clamp(1.7rem, 3.6vw, 3.6rem); line-height: 1.12; letter-spacing: -.03em; max-width: 24ch; margin: 0; }
.manifesto .dim { color: var(--muted); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 36px); }
.value .frame { margin-bottom: 22px; }
.value:nth-child(2) { margin-top: clamp(40px, 7vw, 120px); }
.value:nth-child(3) { margin-top: clamp(20px, 3.5vw, 60px); }
.value h3 { margin: 10px 0 10px; }
.value p { color: var(--muted); max-width: 38ch; }
@media (max-width: 800px) { .values { grid-template-columns: 1fr; } .value { margin-top: 0 !important; } }

.founder { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 112px); align-items: center; }
.portrait-ph {
  aspect-ratio: 4/5; position: relative; background: var(--concrete);
  display: grid; place-items: center; color: var(--muted); overflow: hidden;
}
.portrait-ph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.portrait-ph .label { position: relative; background: var(--concrete); padding: 8px 12px; }
.founder blockquote { margin: 0 0 28px; font-family: var(--f-display); font-stretch: 112%; font-size: clamp(1.4rem, 2.4vw, 2.2rem); line-height: 1.2; letter-spacing: -.02em; font-weight: 400; }
@media (max-width: 900px) { .founder { grid-template-columns: 1fr; } .portrait-ph { max-width: 420px; } }

.principles { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.principle { padding: 28px 24px 8px 0; }
.principle + .principle { padding-left: 24px; border-left: 1px solid var(--line); }
.principle h3 { margin: 18px 0 12px; font-size: 1.35rem; }
.principle p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) { .principles { grid-template-columns: 1fr 1fr; } .principle { padding: 24px 12px 8px 0 !important; border-left: 0 !important; } .principle:nth-child(even) { padding-left: 12px !important; } }
@media (max-width: 520px) { .principles { grid-template-columns: 1fr; } .principle:nth-child(even) { padding-left: 0 !important; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; min-height: 100vh; }
.contact-side { position: relative; color: #fff; background: var(--char); overflow: hidden; }
.contact-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(22,25,16,.88) 10%, rgba(22,25,16,.35) 60%, rgba(22,25,16,.5) 100%); }
.contact-side-inner { position: sticky; top: 0; z-index: 2; min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--header-h) + 48px) var(--pad) clamp(32px, 4vw, 56px); }
.contact-side h1 { font-size: clamp(2.6rem, 5.6vw, 6rem); margin: 18px 0 22px; }
.contact-side p { color: rgba(255,255,255,.82); max-width: 36ch; }
.contact-lines { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid rgba(255,255,255,.25); }
.contact-lines li { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.25); font-size: 15px; }
.contact-lines a { text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }
.contact-form-wrap { padding: calc(var(--header-h) + clamp(48px, 7vw, 104px)) var(--pad) clamp(64px, 8vw, 120px); max-width: 920px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(20px, 3vw, 40px); }
.form fieldset { grid-column: 1 / -1; border: 0; padding: 0; margin: 0 0 clamp(36px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(20px, 3vw, 40px); }
.form legend { padding: 0; margin-bottom: 18px; display: flex; gap: 14px; width: 100%; align-items: center; }
.form legend::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.field { position: relative; display: flex; flex-direction: column; margin-bottom: 22px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 500; color: var(--graphite); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  border: 0; border-bottom: 1px solid var(--stone); background: transparent; padding: 10px 0 12px; border-radius: 0;
  font-size: 17px; outline: none; transition: border-color .3s;
  -webkit-appearance: none; 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='%2322231b' stroke-width='1.3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; padding-right: 24px; cursor: pointer; }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: var(--graphite); }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--rust); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--rust); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field .err { font-size: 13px; color: #a3321a; min-height: 0; margin-top: 6px; display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-bottom-color: #a3321a; }
.radio-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.radio-row input { position: absolute; opacity: 0; pointer-events: none; }
.radio-row label {
  border: 1px solid var(--stone); padding: 12px 16px; cursor: pointer; font-size: 15px;
  transition: border-color .3s, background .3s, color .3s;
}
.radio-row label:hover { border-color: var(--ink); }
.radio-row input:checked + label { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.radio-row input:focus-visible + label { outline: 2px solid var(--rust); outline-offset: 3px; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.form-foot p { margin: 0; font-size: 14px; color: var(--muted); max-width: 42ch; }
.form-success { display: none; padding: 40px 0; }
.form-success.on { display: block; }
.next-steps { list-style: none; padding: 0; margin: clamp(56px, 7vw, 96px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid var(--line); }
.next-steps li { padding-top: 22px; }
.next-steps h3 { font-size: 1.15rem; margin: 12px 0 8px; }
.next-steps p { font-size: 15px; color: var(--muted); margin: 0; }
@media (max-width: 1000px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-side-inner { min-height: 0; padding-top: calc(var(--header-h) + 120px); }
}
@media (max-width: 620px) {
  .form, .form fieldset { grid-template-columns: 1fr; }
  .next-steps { grid-template-columns: 1fr; }
}

/* ---------- Utilities ---------- */
.mt-s { margin-top: 20px; } .mt-m { margin-top: 40px; } .mt-l { margin-top: clamp(56px, 7vw, 104px); }
.flex-between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .rv, .js .rv-img > img, .js .split .w > span, .js .rv-line { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .hero-slide img { transform: none !important; }
}

/* pages whose top is split light/dark keep a solid header */
.solid-head .site-header { background: rgba(243, 238, 229, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
@media (max-width: 700px) {
  .gallery .frame[data-ratio="21/9"] { aspect-ratio: 3/2; }
  .p-hero img { object-position: 58% 50%; }
}

/* ---------- Services as drawing sheets ---------- */
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 48px; border-top: 1px solid var(--ink); }
.svc { padding: 28px 0 8px; position: relative; }
.svc + .svc::before { content: ""; position: absolute; left: -24px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.svc-draw {
  background: var(--concrete); padding: 18px 14px; margin-bottom: 26px;
  aspect-ratio: 3/2; display: grid; place-items: center;
  transition: background-color .5s var(--ease);
}
.svc-draw svg { width: 100%; height: auto; }
.svc-draw .bp-line { transition: stroke .5s var(--ease); }
.svc:hover .svc-draw { background: #e0d8c8; }
.svc:hover .svc-draw .bp-line:not(.bp-accent) { stroke: var(--graphite); }
.svc h3 { font-size: clamp(1.25rem, 1.7vw, 1.6rem); margin-bottom: 12px; }
.svc p { color: var(--muted); font-size: 15.5px; max-width: 34ch; }
@media (max-width: 1000px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc:nth-child(3)::before { display: none; }
  .svc:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc + .svc::before { display: none; }
  .svc + .svc { border-top: 1px solid var(--line); }
}

/* ---------- Selected homes rail ---------- */
.rail { --rh: clamp(300px, 58vh, 620px); }
.rail-track {
  list-style: none; margin: 0; padding: 0 var(--pad) 8px;
  display: flex; gap: clamp(16px, 2vw, 32px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad);
  scrollbar-width: none; cursor: grab;
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.rail-track.dragging a { pointer-events: none; }
.rail-track:focus-visible { outline-offset: -2px; }
.rail-item { flex: none; scroll-snap-align: start; }
.rail-item .frame { height: var(--rh); width: auto; }
.rail-item img { -webkit-user-drag: none; user-select: none; }
.rail-item .card-cap { grid-template-columns: 1fr auto; }
.rail-ui { display: flex; align-items: center; gap: 32px; margin-top: 36px; }
.rail-progress { flex: 1; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.rail-progress i { position: absolute; top: 0; bottom: 0; left: 0; width: 30%; background: var(--ink); transition: transform .25s linear; }
.rail-btns { display: flex; gap: 8px; }
.rail-btn {
  width: 52px; height: 52px; display: grid; place-items: center; cursor: pointer;
  background: transparent; border: 1px solid var(--ink); color: var(--ink);
  transition: background .3s, color .3s, opacity .3s;
}
.rail-btn svg { width: 18px; height: 10px; }
.rail-btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.rail-btn:disabled { opacity: .3; cursor: default; }
@media (max-width: 800px) {
  .rail { --rh: auto; }
  .rail-item { width: 82vw; }
  .rail-item .frame { height: auto; width: 100%; }
  .rail-btns { display: none; }
}

/* ---------- Process: expanding photo panels ---------- */
.xpanels { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; height: clamp(440px, 72vh, 680px); }
.xp { flex: 1 1 0; min-width: 0; position: relative; overflow: hidden; background: var(--char); transition: flex-grow .7s var(--ease); }
.xp.on { flex-grow: 3.4; }
.xp a { position: absolute; inset: 0; color: #fff; text-decoration: none; display: block; }
.xp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease), filter .7s var(--ease); filter: grayscale(.55) brightness(.75); }
.xp.on img { transform: scale(1); filter: none; }
.xp a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(22,25,16,.82) 0%, rgba(22,25,16,.15) 55%, rgba(22,25,16,0) 100%); }
.xp-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(18px, 2vw, 28px); }
.xp h3 { font-size: clamp(1.3rem, 2.2vw, 2.2rem); white-space: nowrap; }
.xp p {
  margin: 10px 0 0; max-width: 30ch; font-size: 15.5px; color: rgba(255,255,255,.85);
  max-height: 0; overflow: hidden;
  opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease), transform .5s var(--ease), max-height .5s var(--ease);
}
.xp.on p { max-height: 8em; opacity: 1; transform: none; transition-delay: .25s; }
.xp a:focus-visible { outline: 2px solid var(--rust-soft); outline-offset: -4px; }
@media (max-width: 800px) {
  .xpanels { flex-direction: column; height: auto; gap: 6px; }
  .xp, .xp.on { flex: none; height: 230px; }
  .xp img { filter: none; transform: none; }
  .xp p { max-height: none; opacity: 1; transform: none; }
}
@media (max-width: 800px) {
  .rail-item .frame { aspect-ratio: 4/5 !important; }
  .rail-item .card-cap { grid-template-columns: 1fr; gap: 4px; }
  .rail-item .card-cap > .label:last-child { grid-column: auto; }
}
@media (max-width: 900px) { .hero-coords .label:last-child { display: none; } }

/* ---------- Soft details: photo pills, tags, rounded photos ---------- */
.pill-img {
  display: inline-block; width: 1.9em; height: .74em; vertical-align: .06em;
  border-radius: 999px; overflow: hidden; background: var(--concrete);
  margin: 0 .04em;
}
.pill-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.js .split .pill-img { transform: scale(.4); opacity: 0; }
.js .split.in .pill-img { transform: none; opacity: 1; transition: transform .9s var(--ease) .25s, opacity .6s var(--ease) .25s; }

.tags { position: absolute; left: 14px; top: 14px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.tag {
  background: rgba(243, 238, 229, .92); color: var(--ink);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-radius: 999px; padding: 6px 12px;
  font-family: var(--f-display); font-stretch: 112%; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}

.frame, .svc-draw, .xp, .portrait-ph, .mat .sw, .next-proj { border-radius: 6px; }
.frame, .xp { isolation: isolate; }
.cta-strip .frame, .next-proj .frame, .p-hero .frame { border-radius: 0; }
.next-proj { overflow: hidden; }
.card .view { border-radius: 999px; }

/* even line breaks in headings, no orphaned last words */
h1, h2, h3, .display { text-wrap: balance; }
.intro h2 { font-size: clamp(2.1rem, 4.4vw, 4.6rem); }

/* =====================================================================
   Soft studio layer: light headings, tan two-tone endings, olive pills,
   rounded inset photos (direction from the owner's reference screenshots)
   ===================================================================== */
:root {
  --olive: #3b3f2e;
  --olive-2: #4a4f3a;
  --tan: #a6866e;          /* large headings only (AA large) */
  --tan-ink: #86664f;      /* small text on cream */
  --r: 20px;
  --r-sm: 12px;
  --char: #2f3326;
  --char-2: #3a3f30;
}
h1, h2, h3 { font-stretch: 100%; font-weight: 400; letter-spacing: -.03em; }
h1 { line-height: 1; }
h2 { font-size: clamp(2rem, 4.2vw, 4.3rem); line-height: 1.04; }
h3 { font-weight: 500; letter-spacing: -.015em; }
.tone { color: var(--tan); }
.dark .tone, .band .tone, .hscroll .tone { color: #d2b8a2; }

/* eyebrow: small, centered heads use "- label -" */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.eyebrow::before, .eyebrow::after { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .6; }
.center-head { text-align: center; max-width: 900px; margin: 0 auto clamp(40px, 5vw, 72px); }
.center-head h2 { margin-top: 14px; }
.center-head p { margin: 18px auto 0; max-width: 52ch; color: var(--muted); }

/* pill buttons */
.btn {
  --bg: var(--olive); --fg: #fff;
  border-radius: 999px; padding: 10px 10px 10px 24px; gap: 16px;
  font-stretch: 100%; letter-spacing: .06em; font-size: 12.5px;
}
.btn::before { background: var(--olive-2); }
.btn:hover, .btn:focus-visible { border-color: var(--olive-2); }
.btn .arr {
  width: 34px; height: 34px; padding: 11px 9px; border-radius: 50%;
  background: rgba(255,255,255,.14); box-sizing: border-box;
}
.btn--light { --bg: #fff; --fg: var(--olive); }
.btn--light .arr { background: var(--olive); color: #fff; }
.btn--light:hover, .btn--light:focus-visible { color: #fff; }
.nav .btn { padding: 6px 6px 6px 18px; }
.nav .btn .arr { width: 28px; height: 28px; padding: 9px 7px; }
.site-header.on-hero:not(.scrolled) .nav .btn { --bg: #fff; --fg: var(--olive); }
.site-header.on-hero:not(.scrolled) .nav .btn .arr { background: var(--olive); color: #fff; }

/* rounder photos */
.frame, .svc-draw, .xp, .portrait-ph, .next-proj { border-radius: var(--r); }
.mat .sw { border-radius: var(--r-sm); }
.tag { font-stretch: 100%; letter-spacing: .04em; text-transform: none; font-size: 12.5px; font-weight: 500; padding: 7px 14px; }

/* ---------- Services: alternating rows with checklists ---------- */
.svc-rows { display: grid; gap: clamp(56px, 7vw, 110px); }
.svc-row2 { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 96px); align-items: center; }
.svc-row2.flip { grid-template-columns: 7fr 5fr; }
.svc-row2.flip .svc-text { order: 2; }
.svc-text h3 { font-size: clamp(1.6rem, 2.4vw, 2.3rem); font-weight: 400; margin: 12px 0 14px; }
.svc-text > p { color: var(--muted); max-width: 44ch; }
.checks { list-style: none; margin: 22px 0 30px; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 14px; font-size: 15.5px; color: var(--graphite); }
.checks svg { width: 22px; height: 22px; flex: none; color: var(--olive); }
.svc-row2 .frame { aspect-ratio: 4/3; }
@media (max-width: 860px) {
  .svc-row2, .svc-row2.flip { grid-template-columns: 1fr; }
  .svc-row2.flip .svc-text { order: 0; }
  .svc-row2 .frame { order: -1; }
}

/* ---------- Selected homes: rounded card with pill tabs ---------- */
.showcase { position: relative; }
.sc-stage { position: relative; height: clamp(420px, 72vh, 720px); border-radius: var(--r); overflow: hidden; background: var(--char); isolation: isolate; }
.sc-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility 0s .8s; }
.sc-slide.on { opacity: 1; visibility: visible; transition: opacity .8s var(--ease); }
.sc-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 6s linear; }
.sc-slide.on img { transform: scale(1); }
.sc-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,25,16,.62) 0%, rgba(22,25,16,.15) 55%, rgba(22,25,16,0) 100%); }
.sc-card {
  position: absolute; left: clamp(20px, 3vw, 44px); top: 50%; transform: translateY(-50%); z-index: 2;
  width: min(420px, calc(100% - 40px)); color: #fff;
  background: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid rgba(255,255,255,.22); border-radius: var(--r); padding: clamp(22px, 2.6vw, 34px);
}
.sc-card .label { opacity: .85; }
.sc-card h3 { font-size: clamp(1.7rem, 2.8vw, 2.7rem); font-weight: 400; margin: 10px 0 12px; }
.sc-card p { color: rgba(255,255,255,.86); font-size: 15.5px; margin: 0 0 22px; }
.sc-tabs {
  position: absolute; right: 0; bottom: 0; z-index: 3;
  display: flex; gap: 8px; padding: 14px 0 0 14px;
  background: var(--paper); border-top-left-radius: var(--r);
}
/* inverted corners so the notch melts into the photo */
.sc-tabs::before, .sc-tabs::after { content: ""; position: absolute; width: var(--r); height: var(--r); background: radial-gradient(circle at 0 0, transparent var(--r), var(--paper) calc(var(--r) + .5px)); }
.sc-tabs::before { left: calc(-1 * var(--r)); bottom: 0; }
.sc-tabs::after { right: 0; top: calc(-1 * var(--r)); }
.sc-tab {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 10px 16px; font-size: 14px; font-weight: 500;
  transition: background .3s, color .3s, border-color .3s;
}
.sc-tab svg { width: 18px; height: 18px; }
.sc-tab:hover { border-color: var(--olive); }
.sc-tab[aria-selected="true"] { background: var(--olive); color: #fff; border-color: var(--olive); }
@media (max-width: 860px) {
  .sc-stage { height: 520px; }
  .sc-card { top: auto; bottom: 20px; transform: none; }
  .sc-tabs { position: static; background: none; padding: 14px 0 0; overflow-x: auto; scrollbar-width: none; }
  .sc-tabs::before, .sc-tabs::after { display: none; }
  .sc-tab { flex: none; }
}

/* ---------- Annotated photo with material pins ---------- */
.annot-wrap { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.annot-wrap .intro-text p { color: var(--muted); max-width: 40ch; }
.annot { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 16/11; }
.annot > img { width: 100%; height: 100%; object-fit: cover; }
.pin { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; transform: translate(-9px, -50%); }
.pin .dot { width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.35); border: 1px solid #fff; display: grid; place-items: center; flex: none; }
.pin .dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.pin .ln { width: 36px; height: 1px; background: rgba(255,255,255,.8); }
.pin .pl { background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--ink); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.pin.left { flex-direction: row-reverse; transform: translate(calc(-100% + 9px), -50%); }
.js .pin .pl, .js .pin .ln { opacity: 0; transition: opacity .6s var(--ease); }
.js .annot.in .pin .pl, .js .annot.in .pin .ln { opacity: 1; }
.js .annot.in .pin:nth-of-type(2) .pl, .js .annot.in .pin:nth-of-type(2) .ln { transition-delay: .12s; } .js .annot.in .pin:nth-of-type(3) .pl, .js .annot.in .pin:nth-of-type(3) .ln { transition-delay: .24s; } .js .annot.in .pin:nth-of-type(4) .pl, .js .annot.in .pin:nth-of-type(4) .ln { transition-delay: .36s; } .js .annot.in .pin:nth-of-type(5) .pl, .js .annot.in .pin:nth-of-type(5) .ln { transition-delay: .48s; }
@media (prefers-reduced-motion: no-preference) { .pin .dot { animation: pulse 2.6s ease-out infinite; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(255,255,255,0); } }
@media (max-width: 860px) {
  .annot-wrap { grid-template-columns: 1fr; }
  .annot { aspect-ratio: 4/5; }
  .pin .ln { width: 18px; }
  .pin .pl { font-size: 12px; padding: 6px 10px; }
}
.annot-key { display: none; }
@media (max-width: 860px) {
  .annot { aspect-ratio: auto; overflow: visible; }
  .annot > img { aspect-ratio: 16/11; border-radius: var(--r); }
  .pin { display: none; }
  .annot-key { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
  .annot-key span { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 13.5px; color: var(--graphite); background: #fff; }
  .sc-card p { display: none; }
}
.contact-side .tone, .p-hero .tone { color: #e0c7b1; }

/* =====================================================================
   Soft studio layer, inner pages
   ===================================================================== */
/* centered page heads */
.page-head { text-align: center; padding-bottom: clamp(40px, 5vw, 72px); }
.page-head .crumbs { justify-content: center; }
.page-head-grid { grid-template-columns: 1fr; justify-items: center; gap: 22px; }
.page-head-grid .lead { justify-self: center; max-width: 52ch; }
.page-head .concept-note { display: inline-flex; text-align: left; }

/* dark sections as rounded inset cards */
.dark-card { margin: 0 var(--pad); border-radius: calc(var(--r) + 8px); }
.dark-card > .wrap { padding-left: clamp(20px, 4vw, 64px); padding-right: clamp(20px, 4vw, 64px); }
@media (max-width: 560px) { .dark-card { margin: 0 10px; } .dark-card > .wrap { padding-left: 18px; padding-right: 18px; } }

/* white rounded surface used by cards */
.surface { background: #fff; border-radius: var(--r); }

/* homes page: pill filters + even rounded grid */
.filters { justify-content: center; }
.chip { border-radius: 999px; padding: 10px 18px; font-stretch: 100%; letter-spacing: .04em; text-transform: none; font-size: 14px; font-weight: 500; background: #fff; }
.chip[aria-pressed="true"] { background: var(--olive); border-color: var(--olive); }
.homes-grid { grid-template-columns: 1fr 1fr; gap: clamp(36px, 4vw, 56px) clamp(18px, 2vw, 28px); }
.homes-grid > .card { grid-column: auto !important; margin-top: 0 !important; align-self: start; }
.homes-grid .frame { aspect-ratio: 4/3 !important; }
.homes-grid.filtered > .card { grid-column: auto !important; }
.card-cap { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.card-cap h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 400; }
.card .view { border-radius: 999px; font-stretch: 100%; letter-spacing: .04em; text-transform: none; font-size: 13px; }
@media (max-width: 700px) { .homes-grid { grid-template-columns: 1fr; } }

/* project hero: inset rounded photo, frosted card, notch pills */
.ph { padding-top: calc(var(--header-h) + 16px); }
.ph-stage { position: relative; height: clamp(520px, 82vh, 860px); border-radius: var(--r); overflow: hidden; background: var(--char); isolation: isolate; }
.ph-stage .parallax { position: absolute; inset: 0; }
.ph-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,25,16,.55) 0%, rgba(22,25,16,.1) 60%, rgba(22,25,16,0) 100%); z-index: 1; pointer-events: none; }
.ph-card { top: auto; bottom: clamp(20px, 3vw, 44px); transform: none; width: min(460px, calc(100% - 40px)); }
.ph-card h1 { font-size: clamp(2.2rem, 4.4vw, 4rem); color: #fff; margin: 12px 0; }
.ph-card .crumbs { display: flex; gap: 10px; }
.ph-card .crumbs a { text-decoration: none; }
.ph-card .crumbs a:hover { text-decoration: underline; }
.sc-tab.is-static { cursor: default; }
.sc-tab.is-static:hover { border-color: var(--line); }
@media (max-width: 860px) {
  .ph-stage { height: 560px; }
  .ph-tabs { display: none; }
  .ph-card p { display: none; }
}

/* spec sheet as a white rounded card */
.spec-sheet { background: #fff; border: 0; border-radius: var(--r); padding: 6px 8px; }
.spec { padding: 22px 22px 24px !important; }
.spec:last-child { border-right: 0; }
@media (max-width: 900px) { .spec { padding: 18px 16px !important; } .spec:nth-last-child(-n+2) { border-bottom: 0; } }

/* materials, values, founder */
.mat + .mat { border-left: 0; }
.materials { border-top: 0; gap: 18px; }
.mat { padding: 0 !important; }
.value .frame { margin-bottom: 18px; }

/* principles as white cards with icons */
.principles { border-top: 0; gap: 16px; }
.principle, .principle + .principle { background: #fff; border-radius: var(--r); padding: 28px 26px 18px !important; border-left: 0 !important; }
.principle h3 { margin-top: 18px; }
.pr-ic { width: 48px; height: 48px; border-radius: 50%; background: var(--concrete); display: grid; place-items: center; color: var(--olive); }
.pr-ic svg { width: 22px; height: 22px; }

/* FAQ as soft cards */
.faq { border-top: 0; display: grid; gap: 10px; }
.faq details { background: #fff; border: 0; border-radius: var(--r-sm); padding: 0 24px; transition: background .3s; }
.faq details[open] { background: var(--olive); color: #fff; }
.faq details[open] summary:hover { color: #fff; }
.faq details[open] .ans { color: rgba(255,255,255,.85); }
.faq summary { padding: 22px 0; font-stretch: 100%; font-weight: 400; }

/* process: rounded panel photos inside the pinned track */
.hs-panel .frame { border-radius: var(--r); }

/* contact: inset rounded photo panel + rounded fields */
.contact-grid { padding: calc(var(--header-h) + 16px) var(--pad) 0; gap: clamp(24px, 4vw, 64px); min-height: 0; }
.contact-side { border-radius: var(--r); align-self: start; position: sticky; top: calc(var(--header-h) + 16px); min-height: calc(100vh - var(--header-h) - 32px); }
.contact-side-inner { position: relative; min-height: calc(100vh - var(--header-h) - 32px); padding: 40px clamp(24px, 3vw, 44px); }
.contact-form-wrap { padding: clamp(24px, 3vw, 40px) 0 clamp(64px, 8vw, 120px); }
.field input, .field select, .field textarea {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 13px 16px; font-size: 16px;
}
.field select { background-position: right 16px center; padding-right: 40px; }
.field::after { display: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--olive); box-shadow: 0 0 0 3px rgba(59,63,46,.12); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; }
.radio-row label { border-radius: 999px; background: #fff; border-color: var(--line); }
.radio-row input:checked + label { background: var(--olive); border-color: var(--olive); }
.form legend::after { display: none; }
.next-steps { border-top: 0; gap: 14px; }
.next-steps li { background: #fff; border-radius: var(--r); padding: 22px 22px 24px; }
@media (max-width: 1000px) {
  .contact-side, .contact-side-inner { position: relative; top: auto; min-height: 520px; }
}
.value:nth-child(n) { margin-top: 0; } .value .frame { aspect-ratio: 4/5 !important; }
.founder-photo { aspect-ratio: 4/5; }
.founder-photo img { object-position: 50% 30%; }
