/* Philippians 4:13 — home page
   Concept: an architect's drawing set. One family (Archivo), width carries the voice. */

:root {
  --graphite: #1D1C1A;
  --graphite-2: #262520;
  --chalk: #EEEBE4;
  --concrete: #D6D2C8;
  --mortar: #959083;      /* secondary text on graphite */
  --mortar-ink: #57534B;  /* secondary text on concrete */
  --brass: #C9A227;
  --rule-dark: rgba(238, 235, 228, 0.16);
  --rule-light: rgba(29, 28, 26, 0.18);

  --pad: clamp(16px, 4vw, 56px);
  --hdr-h: 72px;

  --fs-body: 1.0625rem;
  --fs-small: 0.8125rem;
  --fs-h3: clamp(1.75rem, 3.2vw, 3rem);
  --fs-h2: clamp(2.25rem, 5.4vw, 5.25rem);
  --fs-display: clamp(2.4rem, 8vw, 9.5rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: "Archivo", system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.55;
  font-stretch: 100%;
  background: var(--graphite);
  color: var(--chalk);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.skip {
  position: absolute; left: var(--pad); top: -60px; z-index: 100;
  background: var(--brass); color: var(--graphite); padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Themes */
.dark  { background: var(--graphite); color: var(--chalk); }
.light { background: var(--concrete); color: var(--graphite); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  font: 600 0.95rem/1 "Archivo", sans-serif; font-stretch: 112%;
  text-decoration: none; border: 1px solid transparent;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn-brass { background: var(--brass); color: var(--graphite); }
.btn-brass:hover { background: var(--chalk); }
.btn-ghost { border-color: currentColor; }
.btn-ghost:hover { background: var(--chalk); color: var(--graphite); border-color: var(--chalk); }

.link {
  display: inline-block; font-weight: 600; text-decoration: none;
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .35s ease;
}
.link:hover { background-size: 30% 1px; }

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--hdr-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--pad);
  color: var(--chalk);
  transition: transform .45s cubic-bezier(.2,.7,.2,1), background-color .3s;
}
.hdr.is-solid { background: rgba(29, 28, 26, 0.92); backdrop-filter: blur(10px); }
.hdr.is-hidden { transform: translateY(-100%); }

.hdr-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.hdr-brand img { width: 40px; height: 40px; }
.hdr-brand span { display: flex; flex-direction: column; font-weight: 700; font-stretch: 118%; font-size: 0.95rem; line-height: 1.15; }
.hdr-brand small { font-weight: 400; font-stretch: 100%; font-size: var(--fs-small); color: var(--mortar); }

.hdr-nav { display: flex; align-items: center; gap: 28px; }
.hdr-nav a:not(.btn) { text-decoration: none; font-size: 0.95rem; position: relative; }
.hdr-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .3s;
}
.hdr-nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.hdr-menu { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--hdr-h) + 24px) var(--pad) clamp(32px, 7vh, 72px);
  overflow: hidden;
}
.walk-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(29,28,26,0.92) 0%, rgba(29,28,26,0.55) 38%, rgba(29,28,26,0) 62%),
    linear-gradient(0deg, rgba(29,28,26,0.9) 0%, rgba(29,28,26,0) 38%);
}
.hero-content { position: relative; z-index: 1; display: grid; gap: clamp(24px, 4vh, 40px); }
.hero-title {
  font-size: var(--fs-display);
  font-weight: 800; font-stretch: 125%;
  line-height: 0.92; letter-spacing: -0.025em;
}
.mask { display: block; overflow: hidden; padding-bottom: 0.04em; }
.mask > span { display: block; }

.hero-meta {
  display: grid; grid-template-columns: minmax(0, 46ch) auto; justify-content: space-between;
  align-items: end; gap: 24px 48px;
}
.hero-lead { color: #B3AEA2; font-size: 1.125rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.walk-hud {
  position: absolute; z-index: 1; right: var(--pad); top: calc(var(--hdr-h) + 20px);
  display: flex; align-items: center; gap: 20px;
  font-size: var(--fs-small);
}
.walk-phases { display: flex; gap: 16px; color: var(--mortar); }
.walk-phases li { position: relative; padding-left: 12px; transition: color .3s; }
.walk-phases li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px;
  border: 1px solid currentColor; transition: background-color .3s;
}
.walk-phases li.is-on { color: var(--chalk); }
.walk-phases li.is-on::before { background: var(--brass); border-color: var(--brass); }
.walk-toggle {
  min-height: 32px; padding: 0 12px; background: none; color: var(--chalk);
  border: 1px solid var(--rule-dark); font: 500 var(--fs-small)/1 "Archivo", sans-serif; cursor: pointer;
}
.walk-toggle:hover { border-color: var(--chalk); }

.walk-hint {
  position: absolute; z-index: 1; left: 50%; bottom: 20px; transform: translateX(-50%);
  font-size: var(--fs-small); color: var(--mortar); white-space: nowrap;
  padding-bottom: 22px;
}
.walk-hint::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 16px; background: var(--brass);
  animation: hintLine 1.8s ease-in-out infinite;
}
@keyframes hintLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

html.motion .hero { padding-bottom: 104px; }

/* Rowhouse elevation, now in the mission block */
.row-fig { grid-column: 1 / -1; margin-top: clamp(64px, 10vh, 120px); }
.row-fig svg { width: 100%; height: auto; color: var(--graphite); }
.row-fig figcaption {
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 14px; border-top: 1px solid var(--rule-light);
  font-size: var(--fs-small); color: var(--mortar-ink);
}

/* ---------- Drawings ---------- */
.draw .ln { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: square; vector-effect: non-scaling-stroke; }
.draw .ln-h { stroke-width: 2.2; }
.draw .ln-f { stroke-width: 0.8; opacity: 0.5; }
.draw .dim { fill: none; stroke: var(--brass); stroke-width: 1; vector-effect: non-scaling-stroke; }
.draw .dim-dash { stroke-dasharray: 3 5; }
.draw .dim-t { fill: var(--brass); font: 500 15px "Archivo", sans-serif; }
.light .draw .dim-t { fill: #7A5F0B; }
.light .draw .dim { stroke: #8F6F0C; }

/* Hidden only while the intro is about to play; the head script removes .motion if libraries fail */
html.motion [data-intro] { visibility: hidden; }

/* ---------- Grid with side captions ---------- */
.grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  padding: 0 var(--pad);
}
.side-cap { grid-column: 1 / span 3; font-size: 1rem; font-weight: 600; font-stretch: 100%; }
.side-cap p { margin-top: 10px; color: var(--mortar-ink); font-weight: 400; max-width: 28ch; }
.side-cap.sticky { align-self: start; position: sticky; top: calc(var(--hdr-h) + 24px); }
.side-cap h2 { font-size: inherit; font-weight: inherit; }

/* ---------- Statement ---------- */
.statement { padding: clamp(96px, 16vh, 200px) 0; }
.statement-text {
  grid-column: 4 / -1;
  font-size: clamp(1.75rem, 3.6vw, 3.4rem);
  font-weight: 500; font-stretch: 108%;
  line-height: 1.12; letter-spacing: -0.012em;
  max-width: 24em;
}
.statement-text .w { transition: none; }

/* ---------- Services (horizontal on desktop) ---------- */
.services { overflow: hidden; }
.services-track { display: flex; flex-direction: column; }

.svc-intro { padding: clamp(80px, 12vh, 140px) var(--pad) 40px; }
.svc-intro h2 { font-size: var(--fs-h2); font-weight: 800; font-stretch: 125%; line-height: 0.95; letter-spacing: -0.02em; max-width: 12ch; }
.svc-intro p { margin-top: 24px; max-width: 42ch; color: var(--mortar); }

.svc {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(24px, 4vw, 72px); align-items: center;
  padding: 56px var(--pad);
  border-top: 1px solid var(--rule-dark);
}
.svc h3 { font-size: var(--fs-h3); font-weight: 800; font-stretch: 125%; line-height: 1; letter-spacing: -0.015em; }
.svc p { margin: 18px 0 26px; color: var(--mortar); max-width: 40ch; }
.svc-fig svg { width: 100%; height: auto; color: var(--chalk); }
.svc-fig figcaption { margin-top: 12px; font-size: var(--fs-small); color: var(--mortar); }

@media (min-width: 900px) {
  html.motion .services { height: 100vh; }
  html.motion .services-track { flex-direction: row; height: 100%; width: max-content; }
  html.motion .svc-intro { width: 42vw; flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center; padding-top: 0; padding-bottom: 0; }
  html.motion .svc {
    width: 78vw; flex: 0 0 auto; height: 100%;
    border-top: 0; border-left: 1px solid var(--rule-dark);
    padding-top: calc(var(--hdr-h) + 24px); padding-bottom: 48px;
  }
  html.motion .svc-fig svg { max-height: 62vh; }
}

/* ---------- Light blocks ---------- */
.block { padding: clamp(80px, 12vh, 140px) 0; border-top: 1px solid var(--rule-light); }
.block:first-of-type { border-top: 0; }

.big-list {
  grid-column: 4 / -1;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px);
}
.big-list li {
  font-size: clamp(1.25rem, 2.2vw, 2rem); font-weight: 600; font-stretch: 110%; line-height: 1.15;
  padding: 18px 0; border-bottom: 1px solid var(--rule-light);
}

.steps { grid-column: 4 / -1; counter-reset: none; }
.steps li {
  display: grid; grid-template-columns: clamp(64px, 9vw, 140px) minmax(0, 1fr); gap: 16px;
  padding: 32px 0; border-bottom: 1px solid var(--rule-light);
}
.steps li:first-child { padding-top: 0; }
.step-n { font-size: clamp(3rem, 7vw, 6.5rem); font-weight: 200; font-stretch: 125%; line-height: 0.85; color: var(--mortar-ink); }
.steps h3 { font-size: clamp(1.4rem, 2.4vw, 2.1rem); font-weight: 700; font-stretch: 115%; line-height: 1.1; }
.steps p { margin-top: 10px; max-width: 52ch; color: var(--mortar-ink); }

.terms { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--graphite); }
.terms > div { padding: 22px 24px 26px 0; border-bottom: 1px solid var(--rule-light); }
.terms > div:nth-child(odd) { border-right: 1px solid var(--rule-light); }
.terms > div:nth-child(even) { padding-left: 24px; }
.terms dt { font-weight: 700; font-stretch: 115%; font-size: 1.15rem; }
.terms dd { margin-top: 6px; color: var(--mortar-ink); max-width: 40ch; }

/* ---------- Contact ---------- */
.contact { padding: clamp(96px, 16vh, 180px) var(--pad) clamp(72px, 10vh, 120px); }
.verse { max-width: 34ch; margin-bottom: clamp(80px, 14vh, 160px); }
.verse p { font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 300; font-stretch: 100%; line-height: 1.25; }
.verse cite { display: block; margin-top: 14px; font-style: normal; color: var(--brass); }

.contact-title { font-size: var(--fs-display); font-weight: 800; font-stretch: 125%; line-height: 0.92; letter-spacing: -0.025em; }
.contact-row { margin-top: clamp(32px, 6vh, 64px); display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.contact-mail {
  font-size: clamp(1.1rem, 2.6vw, 2.2rem); font-weight: 500; text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(var(--brass), var(--brass)) 0 100% / 0 2px no-repeat; transition: background-size .4s;
  padding-bottom: 4px;
}
.contact-mail:hover { background-size: 100% 2px; }

/* ---------- Footer title block ---------- */
.titleblock { padding: 0 var(--pad) var(--pad); }
.tb {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--rule-dark);
}
.tb-cell {
  padding: 14px 16px; border-right: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule-dark);
  font-size: 0.9rem; line-height: 1.35; min-width: 0; overflow-wrap: anywhere;
}
.tb-cell > span:first-child { display: block; font-size: 0.75rem; color: var(--mortar); margin-bottom: 4px; }
.tb-cell a { text-decoration-color: var(--rule-dark); text-underline-offset: 3px; }
.tb-cell a:hover { text-decoration-color: var(--brass); }
.tb-logo { display: grid; place-items: center start; }
.tb-logo img { width: 48px; height: 48px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hdr-menu {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
    background: none; border: 1px solid currentColor; color: inherit;
    font: 600 0.95rem/1 "Archivo", sans-serif; cursor: pointer; position: relative; z-index: 2;
  }
  .hdr-nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px;
    padding: var(--hdr-h) var(--pad);
    background: var(--graphite);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .hdr-nav a:not(.btn) { font-size: clamp(2rem, 8vw, 3rem); font-weight: 800; font-stretch: 120%; }
  .hdr.nav-open .hdr-nav { opacity: 1; visibility: visible; }
  .hdr.nav-open { background: var(--graphite); }
  .hdr-brand { position: relative; z-index: 2; }

  .side-cap, .side-cap.sticky { grid-column: 1 / -1; position: static; margin-bottom: 28px; }
  .statement-text, .big-list, .steps, .terms { grid-column: 1 / -1; }
  .tb { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  .svc { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-title, .contact-title { font-stretch: 105%; }
  .hero-meta { grid-template-columns: 1fr; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .row-fig figcaption { flex-direction: column; gap: 2px; }
  .walk-phases li:not(.is-on) { display: none; }
  .hero-shade { background: linear-gradient(0deg, rgba(29,28,26,0.96) 0%, rgba(29,28,26,0.75) 45%, rgba(29,28,26,0) 75%); }
  .big-list, .terms { grid-template-columns: 1fr; }
  .terms > div:nth-child(odd) { border-right: 0; }
  .terms > div:nth-child(even) { padding-left: 0; }
  .tb { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hdr-brand small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ═════════════ Plan sheets (.sh) ═════════════ */
.sh { width: 100%; height: auto; display: block; color: var(--graphite); background: #E4E1D9; }
.sh .w { fill: currentColor; }
.sh .wn { fill: var(--brass); }
.sh .dm { fill: none; stroke: currentColor; stroke-width: 1; stroke-dasharray: 5 4; }
.sh .gap { fill: #E4E1D9; }
.sh .l { fill: none; stroke: currentColor; stroke-width: 1.3; }
.sh .lt { stroke-width: 0.8; opacity: 0.6; }
.sh .nw { stroke: #9A7A12; }
.sh .dsh { stroke-dasharray: 4 4; }
.sh .dsh2 { stroke-dasharray: 10 6; stroke-width: 1.6; }
.sh .glass { stroke-width: 3; }
.sh .pav, .sh .tile { stroke: none; }
.sh .pat { fill: none; stroke: currentColor; stroke-width: 0.6; opacity: 0.35; }
.sh .tx { font: 600 15px "Archivo", sans-serif; fill: currentColor; }
.sh .txn { fill: #7A5F0B; }
.sh .tx2 { font: 400 12px "Archivo", sans-serif; fill: var(--mortar-ink); }
.sh .dim { fill: none; stroke: #8F6F0C; }
.sh .dimt { font: 500 12px "Archivo", sans-serif; fill: #7A5F0B; }

/* Elevations reuse .draw; extra classes */
.draw .ln-n { stroke: var(--brass); }
.draw .ln-dash { stroke-dasharray: 8 6; }
.draw .occ { fill: var(--graphite); stroke: none; }
.elev-sm { width: 100%; height: auto; color: var(--chalk); background: var(--graphite); }

/* ═════════════ Selected work (home) ═════════════ */
.work { padding: clamp(96px, 14vh, 180px) 0; position: relative; }
.work-list { grid-column: 4 / -1; border-top: 1px solid var(--graphite); }
.work-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 24px;
  padding: clamp(24px, 4vh, 40px) 0; border-bottom: 1px solid var(--rule-light);
  text-decoration: none; color: inherit; position: relative;
}
.wr-thumb { display: none; }
.wr-title {
  font-size: clamp(2rem, 5vw, 4.6rem); font-weight: 800; font-stretch: 122%;
  line-height: 0.95; letter-spacing: -0.02em;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .3s;
}
.wr-meta { color: var(--mortar-ink); font-size: 0.95rem; }
.wr-short { grid-column: 1 / -1; color: var(--mortar-ink); max-width: 52ch; }
.wr-cta { grid-column: 1 / -1; font-weight: 600; justify-self: start; padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.work-list:hover .work-row:not(:hover) .wr-title,
.work-list:focus-within .work-row:not(:focus) .wr-title { opacity: 0.35; }
.work-row:hover .wr-title, .work-row:focus-visible .wr-title { transform: translateX(18px); }

.work-preview {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  width: clamp(280px, 30vw, 460px); aspect-ratio: 12 / 7;
  opacity: 0; transform: translate3d(-50%, -50%, 0) scale(0.85);
  transition: opacity .3s ease, scale .3s ease;
  overflow: hidden; background: var(--graphite);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.work-preview.is-on { opacity: 1; }
.wp-item { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); transition: clip-path .55s cubic-bezier(.7,0,.2,1); }
.wp-item.is-on { clip-path: inset(0 0 0 0); }
@media (hover: none), (max-width: 899px) {
  .work-preview { display: none; }
  .wr-thumb { display: block; grid-column: 1 / -1; margin-bottom: 12px; }
}

/* ═════════════ Project pages ═════════════ */
.p-hero { padding: calc(var(--hdr-h) + clamp(40px, 8vh, 96px)) var(--pad) clamp(48px, 8vh, 96px); }
.p-crumb { color: var(--mortar); font-size: 0.95rem; margin-bottom: 18px; }
.p-crumb a { color: var(--chalk); text-underline-offset: 4px; }
.p-title { font-size: clamp(2.6rem, 8.5vw, 9rem); font-weight: 800; font-stretch: 125%; line-height: 0.92; letter-spacing: -0.025em; }
.p-short { margin-top: 28px; max-width: 46ch; font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: #B3AEA2; }
.p-elev { margin: clamp(48px, 8vh, 96px) calc(var(--pad) * -1) 0; }
.p-elev svg { width: 100%; height: auto; max-height: 78vh; color: var(--chalk); }
.p-elev figcaption, .ba-cap {
  display: flex; justify-content: space-between; gap: 16px; padding: 14px var(--pad) 0;
  border-top: 1px solid var(--rule-dark); font-size: var(--fs-small); color: var(--mortar);
}
.p-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(40px, 6vh, 72px); border-top: 1px solid var(--rule-dark); }
.p-facts > div { padding: 18px 20px 0 0; }
.p-facts dt { font-size: var(--fs-small); color: var(--mortar); }
.p-facts dd { margin-top: 6px; font-weight: 600; font-stretch: 108%; }

.p-story { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
.p-story h3 { font-size: 1rem; font-weight: 700; color: var(--mortar-ink); margin-bottom: 12px; }
.p-story p { font-size: clamp(1.2rem, 1.8vw, 1.6rem); line-height: 1.35; font-stretch: 104%; }

.step-when { margin-top: 4px !important; font-weight: 600; color: #7A5F0B !important; }

/* Before / after */
.ba { grid-column: 4 / -1; position: relative; user-select: none; touch-action: pan-y; }
.ba-layer { line-height: 0; }
.ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; pointer-events: none; }
.ba-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--graphite); }
.ba-handle span {
  position: absolute; top: 50%; left: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  background: var(--brass); border-radius: 50%;
}
.ba-handle span::before, .ba-handle span::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px;
  border: 6px solid transparent;
}
.ba-handle span::before { left: 6px; border-right-color: var(--graphite); }
.ba-handle span::after { right: 6px; border-left-color: var(--graphite); }
.ba-tag { position: absolute; top: 14px; padding: 6px 10px; font-size: var(--fs-small); font-weight: 600; background: var(--graphite); color: var(--chalk); }
.ba-tag-b { left: 14px; }
.ba-tag-a { right: 14px; background: var(--brass); color: var(--graphite); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba:has(.ba-range:focus-visible) .ba-handle span { outline: 2px solid var(--graphite); outline-offset: 3px; }

/* Next project */
.next-proj {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); align-items: end; gap: 16px 48px;
  padding: clamp(80px, 14vh, 160px) var(--pad); text-decoration: none; border-top: 1px solid var(--rule-dark);
}
.np-label { grid-column: 1 / -1; color: var(--mortar); }
.np-title { font-size: clamp(2.4rem, 6.5vw, 6.5rem); font-weight: 800; font-stretch: 125%; line-height: 0.92; letter-spacing: -0.02em; transition: color .3s; }
.next-proj:hover .np-title { color: var(--brass); }
.np-fig { display: block; overflow: hidden; }
.np-fig svg { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.next-proj:hover .np-fig svg { transform: scale(1.04); }

/* ═════════════ Quote form ═════════════ */
.quote { padding: clamp(96px, 14vh, 180px) var(--pad) clamp(80px, 12vh, 140px); }
.quote .verse { margin-bottom: clamp(72px, 12vh, 140px); }
.quote-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.quote-intro { position: sticky; top: calc(var(--hdr-h) + 24px); }
.quote-title { font-size: clamp(2.4rem, 5.6vw, 5.6rem); font-weight: 800; font-stretch: 125%; line-height: 0.92; letter-spacing: -0.025em; }
.quote-lead { margin-top: 24px; max-width: 42ch; color: #B3AEA2; font-size: 1.125rem; }
.quote-points { margin-top: 28px; border-top: 1px solid var(--rule-dark); }
.quote-points li { padding: 12px 0 12px 22px; border-bottom: 1px solid var(--rule-dark); position: relative; }
.quote-points li::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; background: var(--brass); }
.quote-alt { margin-top: 24px; color: var(--mortar); }
.quote-alt a { color: var(--chalk); text-underline-offset: 3px; overflow-wrap: anywhere; }

.qform { display: grid; gap: 20px; background: var(--graphite-2); padding: clamp(20px, 3vw, 40px); border: 1px solid var(--rule-dark); }
.qform fieldset { border: 0; min-width: 0; }
.qform legend, .f > span { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; }
.f > span em { font-style: normal; font-weight: 400; color: var(--mortar); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f { display: block; }
.f input, .f select, .f textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: 400 1rem/1.4 "Archivo", sans-serif; color: var(--chalk);
  background: var(--graphite); border: 1px solid rgba(238,235,228,0.28); border-radius: 0;
  transition: border-color .2s;
}
.f select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--chalk) 50%), linear-gradient(-45deg, transparent 50%, var(--chalk) 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.f textarea { resize: vertical; min-height: 110px; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass); }
.f input::placeholder, .f textarea::placeholder { color: #7D786D; }
.f.is-bad input { border-color: #E0866A; }
.f .err, .f-chips .err { display: block; margin-top: 6px; font-size: var(--fs-small); color: #F0A48C; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid rgba(238,235,228,0.28); transition: background-color .2s, color .2s, border-color .2s; }
.chip input:checked + span { background: var(--brass); color: var(--graphite); border-color: var(--brass); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.chip:hover span { border-color: var(--chalk); }

.f-inline { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.f-inline legend { width: 100%; }
.f-inline label { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; }
.f-inline input { accent-color: var(--brass); width: 18px; height: 18px; }

.f-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.f-fine { font-size: var(--fs-small); color: var(--mortar); }
.f-status:empty { display: none; }
.f-status { font-size: 0.95rem; color: #F0A48C; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.qdone { padding: clamp(28px, 4vw, 48px); background: var(--graphite-2); border: 1px solid var(--brass); }
.qdone h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; font-stretch: 120%; line-height: 1; }
.qdone p { margin-top: 14px; color: #B3AEA2; max-width: 46ch; }

/* Sticky mobile CTA */
.mcta { display: none; }
@media (max-width: 760px) {
  .mcta {
    display: grid; grid-template-columns: 1fr auto; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(29,28,26,0.96); border-top: 1px solid var(--rule-dark);
    transform: translateY(110%); transition: transform .35s cubic-bezier(.2,.7,.2,1);
  }
  .mcta .btn-ghost { color: var(--chalk); }
  .mcta.is-on { transform: none; }
  .titleblock { padding-bottom: 88px; }
}

/* Responsive for new parts */
@media (max-width: 1000px) {
  .work-list, .p-story, .ba { grid-column: 1 / -1; }
  .quote-grid { grid-template-columns: 1fr; }
  .quote-intro { position: static; }
  .p-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-facts > div { padding-bottom: 18px; }
}
@media (max-width: 640px) {
  .f-row, .p-story { grid-template-columns: 1fr; }
  .next-proj { grid-template-columns: 1fr; }
  .ba-tag { top: 8px; }
  .ba-tag-b { left: 8px; } .ba-tag-a { right: 8px; }
}

/* SEO headline above the display title */
.hero-kicker { font-size: clamp(0.95rem, 1.3vw, 1.1rem); font-weight: 500; font-stretch: 100%; color: #B3AEA2; margin-bottom: 4px; max-width: 40ch; }

/* ═════════════ Brand theme: yellow pages, black header strip ═════════════ */
/* Yellow theme: yellow page, black header strip with the gold logo and a yellow button */
:root{--graphite:#F2C230;--graphite-2:#F6CF55;--chalk:#1D1C1A;--mortar:#4A4330;--rule-dark:rgba(29,28,26,.22);--brass:#1D1C1A}
body{background:#F2C230}
.light{--graphite:#1D1C1A;--chalk:#EEEBE4;--brass:#C9A227;--concrete:#FFFFFF;background:#FFFFFF}
.hero-lead,.hero-kicker,.quote-lead,.p-short{color:#3D3727}
.hero-shade{background:linear-gradient(90deg,rgba(242,194,48,.95) 0%,rgba(242,194,48,.6) 38%,rgba(242,194,48,0) 62%),linear-gradient(0deg,rgba(242,194,48,.92) 0%,rgba(242,194,48,0) 38%)}
.tb-logo img{filter:brightness(0) saturate(100%)}
.f input,.f select,.f textarea,.chip span{border-color:rgba(29,28,26,.35)}
.btn-brass{color:#F2C230}.btn-brass:hover{background:#3A372F;color:#F2C230}
.walk-phases li.is-on::before{background:#1D1C1A;border-color:#1D1C1A}

/* Header strip: black, gold logo, yellow button */
.hdr,.hdr.is-solid{background:#1D1C1A;color:#EEEBE4;--chalk:#EEEBE4;--mortar:#B3AEA2}
.hdr-brand small{color:#B3AEA2}
.hdr .btn-brass{background:#F2C230;color:#1D1C1A}
.hdr .btn-brass:hover{background:#FFD84D;color:#1D1C1A}
@media (max-width:1000px){.hdr-nav,.hdr.nav-open{background:#1D1C1A}}

/* Drawings that mark new work in gold sit on a black panel so the gold reads */
.p-elev { background: #1D1C1A; --chalk: #EEEBE4; --brass: #F2C230; --graphite: #1D1C1A; padding-top: 24px; }
.p-elev figcaption { color: #B3AEA2; border-top-color: rgba(238,235,228,.16); padding-bottom: 14px; }
.next-proj .elev-sm, .wr-thumb .elev-sm, .work-preview .elev-sm { --chalk: #EEEBE4; --brass: #F2C230; --graphite: #1D1C1A; background: #1D1C1A; color: #EEEBE4; }

/* Form messages readable on yellow */
.f .err, .f-chips .err, .f-status { color: #8A1C0B; }
.f.is-bad input { border-color: #8A1C0B; }
.qdone { border-color: #1D1C1A; }
.qdone p { color: #3D3727; }
.contact-mail { background-image: linear-gradient(#1D1C1A, #1D1C1A); }

/* ═════════════ Service pages ═════════════ */
.scene-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; color: var(--chalk); --accent: var(--brass); --glow: #ffffff; }
.svc-rows { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 56px); border-top: 1px solid var(--graphite); }
.svc-rows li { padding: 26px 0 28px; border-bottom: 1px solid var(--rule-light); }
.svc-rows h3 { font-size: clamp(1.35rem, 2.2vw, 2rem); font-weight: 800; font-stretch: 118%; line-height: 1.05; letter-spacing: -0.01em; }
.svc-rows p { margin-top: 10px; color: var(--mortar-ink); max-width: 46ch; }
@media (max-width: 1000px) { .svc-rows { grid-column: 1 / -1; } }
@media (max-width: 640px) { .svc-rows { grid-template-columns: 1fr; } }

/* ═════════════ License + careers ═════════════ */
.lic-body { grid-column: 4 / -1; display: grid; gap: 24px; }
.lic-fig { background: #FFFFFF; border: 1px solid var(--rule-light); padding: clamp(12px, 2vw, 24px); box-shadow: 0 24px 48px -32px rgba(0,0,0,.35); }
.lic-fig img { width: 100%; height: auto; display: block; }
.lic-fig figcaption { margin-top: 12px; font-size: var(--fs-small); color: var(--mortar-ink); }
.lic-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--graphite); }
.lic-facts > div { padding: 14px 16px 0 0; }
.lic-facts dt { font-size: var(--fs-small); color: var(--mortar-ink); }
.lic-facts dd { margin-top: 4px; font-weight: 700; font-stretch: 108%; }
.lic-verify { font-size: 1.05rem; }
.chip span em, .qform legend em { font-style: normal; font-weight: 400; opacity: .75; }
.svc-rows .es { margin-top: 2px; font-weight: 600; color: var(--graphite); }
@media (max-width: 1000px) { .lic-body { grid-column: 1 / -1; } .lic-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chip span em { margin-left: .35em; }

/* ═════════════ Real projects + job postings ═════════════ */
.wr-thumb img, .wp-item img, .np-fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wr-thumb img { aspect-ratio: 12 / 7; }
.work-preview .wp-item img { position: absolute; inset: 0; }
.np-fig img { aspect-ratio: 12 / 7; }
.p-photo { margin: clamp(40px, 6vh, 72px) calc(var(--pad) * -1) 0; background: #1D1C1A; }
.p-photo img { width: 100%; max-height: 82vh; object-fit: cover; display: block; }
.p-text { grid-column: 4 / -1; max-width: 46em; }
.p-text p { font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.4; margin-bottom: 1em; }
.p-text h3 { margin: 32px 0 6px; font-size: 1rem; font-weight: 700; color: var(--mortar-ink); }
.p-text .big-list { grid-column: auto; }
.ba-photo .ba-layer img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.gallery { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gallery a { display: block; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.gallery a:hover img { transform: scale(1.04); }
.openings { grid-column: 4 / -1; display: grid; gap: 16px; }
.openings-empty { font-size: 1.15rem; max-width: 46ch; color: var(--mortar-ink); }
.job { border: 1px solid var(--graphite); background: #FFFFFF; padding: clamp(20px, 3vw, 32px); display: grid; gap: 10px; justify-items: start; }
.job h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 800; font-stretch: 120%; line-height: 1; letter-spacing: -0.01em; }
.job-meta { font-weight: 600; color: #7A5F0B; }
.job-desc { color: var(--mortar-ink); max-width: 60ch; white-space: pre-line; }
.job-req { padding-left: 18px; list-style: square; color: var(--graphite); }
.job .btn { margin-top: 8px; }
@media (max-width: 1000px) { .p-text, .gallery, .openings { grid-column: 1 / -1; } }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.light .btn-brass { background: #1D1C1A; color: #F2C230; border-color: #1D1C1A; }
.light .btn-brass:hover { background: #3A372F; color: #F2C230; }
