/* ===========================================================
   HOLLOWAY & VALE ARCHITECTURE
   Design System — main.css
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT@9..144,300..900,0..100&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- Tokens ---------- */
:root {
  --oxblood-deep: #4A1C1C;
  --oxblood-rich: #6B2828;
  --bone: #F2EDE4;
  --bone-shadow: #E5DDD0;
  --bone-deep: #D8CEBC;
  --ink: #1A1715;
  --ink-soft: #3D3530;
  --brass: #A8845C;
  --brass-shadow: #8A6943;
  --stone: #9B9088;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --max-w: 1440px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bone);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--oxblood-deep); color: var(--bone); }

/* ---------- Type ---------- */
.display, h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 50, "opsz" 144;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2.75rem, 7vw, 6rem); font-weight: 350; }
h2 { font-size: clamp(2rem, 4.5vw, 3.75rem); font-weight: 350; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); font-weight: 400; }
h4 { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--stone);
  font-weight: 500;
}

.mono { font-family: var(--font-mono); }
.serif-italic { font-family: var(--font-display); font-style: italic; font-weight: 350; }

p { max-width: 64ch; }
p + p { margin-top: 1.1em; }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: clamp(4rem, 9vw, 8rem) 0; }
.section-tight { padding: clamp(3rem, 6vw, 5rem) 0; }

.rule { height: 1px; background: var(--ink); opacity: 0.15; }
.rule-brass { height: 1px; background: var(--brass); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.5rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  background: transparent;
  transition: background 0.5s var(--ease-out), padding 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(242, 237, 228, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem var(--gutter);
  border-bottom-color: rgba(26, 23, 21, 0.08);
}
.nav-monogram {
  display: flex; align-items: center; gap: 0;
  color: var(--ink);
  text-decoration: none;
}
/* Wordmark — the single mark at rest */
.nav-monogram .wordmark {
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: 0.05em;
  font-weight: 400;
  transition: opacity 0.4s var(--ease-out), max-width 0.5s var(--ease-out);
  white-space: nowrap;
  overflow: hidden;
  max-width: 240px;
}
.nav.scrolled .nav-monogram .wordmark { opacity: 0; max-width: 0; }
/* Interlocked SVG mark — appears only once scrolled */
.nav-monogram .mark {
  display: flex; align-items: center;
  max-width: 0; opacity: 0; overflow: hidden;
  transition: opacity 0.4s var(--ease-out), max-width 0.5s var(--ease-out);
}
.nav-monogram .mark svg {
  display: block; width: auto; height: 26px;
  transition: height 0.4s var(--ease-out);
}
.nav.scrolled .nav-monogram .mark { max-width: 60px; opacity: 1; }
.nav.scrolled .nav-monogram .mark svg { height: 23px; }

.nav-links {
  display: flex; gap: 2.5rem;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.nav-links a {
  position: relative;
  padding: 0.25rem 0;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--brass);
}

.nav-cta {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  position: relative;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--brass);
  color: var(--ink);
  transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.nav-cta:hover { color: var(--oxblood-deep); border-bottom-color: var(--oxblood-deep); }

/* Homepage/inquiry nav contrast while resting over dark hero imagery. */
.home-page .nav:not(.scrolled) .nav-monogram,
.home-page .nav:not(.scrolled) .nav-links a,
.home-page .nav:not(.scrolled) .nav-cta,
.inquiry-page .nav:not(.scrolled) .nav-monogram,
.inquiry-page .nav:not(.scrolled) .nav-links a,
.inquiry-page .nav:not(.scrolled) .nav-cta {
  color: var(--bone);
  text-shadow: 0 1px 18px rgba(0,0,0,0.34);
}
.home-page .nav:not(.scrolled) .nav-links a:hover,
.home-page .nav:not(.scrolled) .nav-links a.active,
.inquiry-page .nav:not(.scrolled) .nav-links a:hover,
.inquiry-page .nav:not(.scrolled) .nav-links a.active { color: var(--bone); }
.home-page .nav:not(.scrolled) .hamburger span,
.inquiry-page .nav:not(.scrolled) .hamburger span { background: var(--bone); }
.home-page .nav:not(.scrolled) .hamburger.open span,
.inquiry-page .nav:not(.scrolled) .hamburger.open span { background: var(--ink); }

.hamburger { display: none; width: 28px; height: 18px; position: relative; }
.hamburger span {
  position: absolute; left: 0; right: 0; height: 1px; background: var(--ink);
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; }
.hamburger span:nth-child(3) { bottom: 0; }
.hamburger.open span:nth-child(1) { top: 50%; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { bottom: 50%; transform: rotate(-45deg); }

.mobile-drawer {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bone);
  transform: translateX(100%);
  transition: transform 0.6s var(--ease-out);
  padding: 6rem var(--gutter) 3rem;
  display: flex; flex-direction: column; justify-content: space-between;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer-links {
  display: flex; flex-direction: column; gap: 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.25rem);
  font-weight: 350;
}
.mobile-drawer-links a { color: var(--ink); }
.mobile-drawer-footer {
  display: grid; gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-top: 1px solid rgba(26, 23, 21, 0.12);
  padding-top: 1.5rem;
}

@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: block; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--bone);
  padding: clamp(4rem, 7vw, 6rem) 0 2rem;
  margin-top: 4rem;
}
.footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.footer-col h4 {
  color: var(--bone);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1.25rem;
  color: var(--stone);
}
.footer-tag {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 350;
  line-height: 1.15;
  margin: 1rem 0 1.5rem;
  color: var(--bone);
}
.footer-mono-mark { display: flex; align-items: center; gap: 0.75rem; }
.footer-mono-mark svg { height: 32px; width: auto; }
.footer-mono-mark .mark-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}
.footer p { color: rgba(242, 237, 228, 0.7); font-size: 0.92rem; line-height: 1.6; }
.footer-office { margin-bottom: 1.5rem; font-size: 0.92rem; }
.footer-office .office-name {
  color: var(--bone);
  font-weight: 500;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}
.footer-office .office-detail { color: rgba(242, 237, 228, 0.6); display: block; }
.footer-list { list-style: none; font-size: 0.88rem; line-height: 1.85; color: rgba(242, 237, 228, 0.7); }
.footer-list li { display: flex; gap: 0.5rem; }
.footer-list li::before { content: "—"; color: var(--brass); }
.footer-social { display: flex; gap: 1.5rem; margin-top: 1.25rem; font-size: 0.85rem; }
.footer-social a { color: rgba(242, 237, 228, 0.7); border-bottom: 1px solid rgba(168, 132, 92, 0.5); padding-bottom: 2px; }
.footer-social a:hover { color: var(--brass); }
.footer-bottom {
  margin-top: 4rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(242, 237, 228, 0.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(242, 237, 228, 0.45);
}
.footer-bottom a { color: rgba(242, 237, 228, 0.55); }
.footer-bottom a:hover { color: var(--brass); }

@media (max-width: 880px) {
  .footer .container { grid-template-columns: 1fr; }
  .footer-bottom { font-size: 9.5px; }
}

/* ---------- Buttons / CTAs ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  position: relative;
}
.btn:hover { background: var(--ink); color: var(--bone); }
.btn--oxblood { border-color: var(--oxblood-deep); color: var(--oxblood-deep); }
.btn--oxblood:hover { background: var(--oxblood-deep); color: var(--bone); }
.btn--ghost { border: none; padding: 0.5rem 0; border-bottom: 1px solid var(--brass); color: var(--ink); }
.btn--ghost:hover { color: var(--oxblood-deep); border-bottom-color: var(--oxblood-deep); background: transparent; }
.btn .arrow { transition: transform 0.4s var(--ease-out); display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-magnetic { will-change: transform; }

/* ---------- Eyebrows / Section headers ---------- */
.section-eye {
  display: flex; align-items: baseline; gap: 1.25rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(26, 23, 21, 0.12);
}
.section-eye .num {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--brass); letter-spacing: 0.15em;
}
.section-eye .label {
  font-family: var(--font-mono); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--ink-soft);
}

/* ---------- Reveal Animation (enhancement-only) ----------
   Content is visible by default. The hidden start-state is armed ONLY when
   JS runs AND motion is welcome — an inline <head> script adds
   html.reveal-ready before first paint. If JS is blocked or slow, that class
   never lands and nothing is ever hidden; the animation is pure refinement. */
.reveal-ready .reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}
.reveal-ready .reveal.in { opacity: 1; transform: none; }
.reveal-ready .reveal-clip {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.2s var(--ease-out);
}
.reveal-ready .reveal-clip.in { clip-path: inset(0 0 0 0); }
.reveal-ready .reveal-clip-l {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s var(--ease-out);
}
.reveal-ready .reveal-clip-l.in { clip-path: inset(0 0 0 0); }

/* Safety net: if reduced-motion is requested, force everything visible. */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-clip, .reveal-clip-l {
    opacity: 1 !important; transform: none !important;
    clip-path: none !important; transition: none !important;
  }
}

/* ---------- Custom cursor (project tiles) ---------- */
.hv-cursor {
  position: fixed; top: 0; left: 0;
  width: 76px; height: 76px;
  border: 1px solid var(--brass);
  border-radius: 50%;
  color: var(--brass);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.4s var(--ease-out), background 0.3s, color 0.3s;
  z-index: 200;
  mix-blend-mode: difference;
  background: transparent;
}
.hv-cursor.active { transform: translate(-50%, -50%) scale(1); }
@media (hover: none) { .hv-cursor { display: none; } }

/* ---------- Hero — Blueprint Reveal ---------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: var(--bone);
}
.hero-01 {
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.hero-01-photo {
  position: absolute; inset: 0;
  background-image: url('../assets/img/home-hero.webp');
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 1.4s var(--ease-out) 1.5s;
  filter: brightness(0.78) saturate(0.85);
}
.hero-01-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,23,21,0.35) 0%, rgba(26,23,21,0.05) 35%, rgba(26,23,21,0.5) 100%);
}
.hero-01.loaded .hero-01-photo { opacity: 1; }
.hero-01-blueprint {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  opacity: 1;
  transition: opacity 1.2s var(--ease-out) 1.6s;
}
.hero-01.loaded .hero-01-blueprint { opacity: 0.12; }
.hero-01-blueprint svg { width: min(82vw, 880px); height: auto; }
.hero-01-blueprint svg path,
.hero-01-blueprint svg line,
.hero-01-blueprint svg rect,
.hero-01-blueprint svg polyline,
.hero-01-blueprint svg circle {
  fill: none;
  stroke: var(--oxblood-deep);
  stroke-width: 1.1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: drawIn 1.2s var(--ease-out) forwards;
}
.hero-01-blueprint svg .g1 { animation-delay: 0s; }
.hero-01-blueprint svg .g2 { animation-delay: 0.3s; }
.hero-01-blueprint svg .g3 { animation-delay: 0.6s; }
@keyframes drawIn { to { stroke-dashoffset: 0; } }
.hero-01-content {
  position: relative; z-index: 2;
  color: var(--bone);
  padding: 2.5rem var(--gutter);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s var(--ease-out) 2.0s, transform 1.2s var(--ease-out) 2.0s;
}
.hero-01-content::before {
  content: "";
  position: absolute; inset: -18% -14%;
  background:
    radial-gradient(68% 62% at 50% 50%, rgba(12,10,9,0.66) 0%, rgba(12,10,9,0.36) 44%, rgba(12,10,9,0) 76%);
  z-index: -1; pointer-events: none;
}
.hero-01.loaded .hero-01-content { opacity: 1; transform: none; }
.hero-01-wordmark {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #FFF7EA;
  text-shadow:
    0 3px 14px rgba(0,0,0,0.72),
    0 20px 58px rgba(0,0,0,0.66),
    0 0 1px rgba(255,247,234,0.42);
}
.hero-01-wordmark .amp {
  font-style: italic;
  color: var(--brass);
  font-weight: 350;
  margin: 0 0.15em;
}
.hero-01-tagline {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #FFF7EA;
  opacity: 0.92;
  text-shadow:
    0 2px 10px rgba(0,0,0,0.72),
    0 12px 34px rgba(0,0,0,0.58);
}
.hero-01-scroll {
  position: absolute; bottom: 6rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  color: var(--bone);
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.9s var(--ease-out) 2.5s;
}
.hero-01.loaded .hero-01-scroll { opacity: 0.7; }
.hero-01-scroll::after {
  content: "";
  width: 1px; height: 60px;
  background: var(--bone);
  animation: scrollPulse 2.6s var(--ease-in-out) infinite;
  transform-origin: top;
}
@keyframes scrollPulse {
  0% { transform: scaleY(0); opacity: 0.2; }
  50% { transform: scaleY(1); opacity: 0.9; }
  100% { transform: scaleY(0) translateY(60px); opacity: 0.2; }
}

/* ---------- Intro / positioning band ---------- */
.intro { background: var(--bone); }
.intro-grid {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: clamp(2.5rem, 7vw, 7rem); align-items: start;
}
.intro-eye {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--stone); margin-bottom: 1.75rem;
}
.intro-kinetic {
  font-family: var(--font-display); font-style: normal; font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1.04; letter-spacing: -0.02em;
  color: var(--ink); position: relative; min-height: 2.6em;
}
.intro-kinetic .kinetic-word {
  display: block; position: absolute; top: 0; left: 0; right: 0;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out);
}
.intro-kinetic .kinetic-word.active { opacity: 1; transform: none; position: relative; }
.intro-kinetic .accent { color: var(--oxblood-deep); font-style: italic; }
.intro-body { padding-top: 0.4rem; }
.intro-body p { font-size: 1.05rem; line-height: 1.7; color: var(--ink-soft); margin-bottom: 1.5rem; max-width: 46ch; }
.intro-body .intro-line {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: 1.45rem; line-height: 1.4; color: var(--ink); max-width: none;
}
.intro-foot { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2.5rem; }
.intro-link {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  border-bottom: 1px solid var(--brass); padding-bottom: 4px; align-self: flex-start; color: var(--ink);
}
.intro-link:hover { color: var(--oxblood-deep); border-bottom-color: var(--oxblood-deep); }
.intro-link .arrow { display: inline-block; transition: transform 0.4s var(--ease-out); }
.intro-link:hover .arrow { transform: translateX(4px); }
.intro-marker {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone);
}
.intro-marker::before { content: ""; width: 18px; height: 1px; background: var(--brass); }
@media (max-width: 880px) {
  .intro-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ---------- Project preview grid (home) ---------- */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
}
.pv-card {
  position: relative;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  display: block;
  align-self: start;
}
.pv-card .pv-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bone-shadow);
}
.pv-card .pv-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.3s var(--ease-out);
}
.pv-card:hover .pv-img img { transform: scale(1.045); }
.pv-card .pv-meta {
  padding: clamp(0.9rem, 1.4vw, 1.25rem) clamp(0.25rem, 0.8vw, 0.75rem) 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
}
.pv-card .pv-meta > div:first-child { min-width: 0; }
.pv-card .pv-name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.pv-card .pv-loc {
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--stone);
  white-space: nowrap;
  margin-left: auto;
}
.pv-1 { grid-column: 1 / span 7; }
.pv-2 { grid-column: 8 / span 5; margin-top: 3.5rem; }
.pv-3 { grid-column: 1 / span 5; }
.pv-4 { grid-column: 6 / span 7; margin-top: 3.5rem; }

@media (max-width: 980px) {
  .pv-card .pv-meta { display: block; }
  .pv-card .pv-loc { margin-top: 0.45rem; margin-left: 0; white-space: normal; }
}

@media (max-width: 768px) {
  .preview-grid { grid-template-columns: 1fr; }
  .pv-1, .pv-2, .pv-3, .pv-4 { grid-column: 1; margin-top: 0; }
  .pv-card .pv-meta { padding-inline: 0; }
}

/* ---------- Manifesto section ---------- */
.manifesto {
  background: var(--bone-shadow);
  position: relative;
}
.manifesto .container {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.manifesto-head {
  position: sticky; top: 7rem;
}
.manifesto-head .quote-bar { width: 28px; height: 1px; background: var(--brass); margin-bottom: 1.5rem; }
.manifesto-body p {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  font-weight: 300;
  line-height: 1.45;
  font-style: italic;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.manifesto-body p + p { margin-top: 1.5rem; }
.manifesto-body .signoff {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-style: normal;
  margin-top: 2.5rem;
  display: flex; align-items: center; gap: 0.65rem;
}
.manifesto-body .signoff::before { content: ""; width: 28px; height: 1px; background: var(--brass); }

@media (max-width: 880px) {
  .manifesto .container { grid-template-columns: 1fr; }
  .manifesto-head { position: static; }
}

/* ---------- Press / Awards strip ---------- */
.press-strip {
  border-top: 1px solid rgba(26, 23, 21, 0.1);
  border-bottom: 1px solid rgba(26, 23, 21, 0.1);
  padding: 2.5rem 0;
}
.press-strip .container {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 3rem;
  align-items: center;
}
.press-logos {
  display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.press-logos .logo {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 350;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  font-style: italic;
  opacity: 0.8;
}
.press-logos .logo:nth-child(2n) { font-style: normal; letter-spacing: 0.18em; text-transform: uppercase; font-family: var(--font-mono); font-size: 0.78rem; }
@media (max-width: 768px) {
  .press-strip .container { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---------- Journal teaser ---------- */
.journal-teaser .container { display: block; }
.journal-teaser-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
}
.journal-teaser-action { margin-top: 3rem; text-align: right; }
.jt-card {
  border-top: 1px solid var(--ink);
  padding-top: 1.5rem;
  display: grid; gap: 0.85rem;
}
.jt-card .jt-meta {
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone);
  display: flex; gap: 1rem;
}
.jt-card h3 a:hover { color: var(--oxblood-deep); }
.jt-card p { color: var(--ink-soft); font-size: 0.95rem; }
.jt-card .jt-author { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-soft); margin-top: 0.5rem; }
@media (max-width: 768px) {
  .journal-teaser-grid { grid-template-columns: 1fr; }
  .journal-teaser-action { text-align: left; }
}

/* ---------- Home CTA ---------- */
.home-cta {
  background: var(--ink);
  color: var(--bone);
  padding: clamp(5rem, 10vw, 9rem) 0;
  position: relative;
  overflow: hidden;
}
.home-cta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(74, 28, 28, 0.22), transparent 62%);
  pointer-events: none;
}
.home-cta .container { position: relative; z-index: 2; text-align: center; }
.home-cta h2 { color: var(--bone); font-weight: 300; font-style: italic; }
.home-cta p { margin: 1.5rem auto 2.5rem; color: rgba(242, 237, 228, 0.75); }
.home-cta .btn { color: var(--bone); border-color: var(--brass); }
.home-cta .btn:hover { background: var(--brass); color: var(--ink); }

/* ---------- Page header (interior pages) ---------- */
.page-head {
  padding: clamp(8rem, 14vw, 11rem) 0 clamp(3rem, 5vw, 5rem);
  border-bottom: 1px solid rgba(26, 23, 21, 0.1);
}
.page-head .container { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.page-head .ph-eye { margin-bottom: 1.5rem; }
.page-head h1 { font-weight: 300; line-height: 0.95; }
.page-head h1 em { font-style: italic; color: var(--oxblood-deep); font-weight: 300; }
.page-head .ph-intro { font-size: 1.05rem; line-height: 1.7; color: var(--ink-soft); max-width: 52ch; }
@media (max-width: 880px) { .page-head .container { grid-template-columns: 1fr; } }

/* ---------- Filters / Pill nav ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 1.75rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(26, 23, 21, 0.08);
  margin-bottom: 3rem;
}
.filter-pill {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--stone);
  padding: 0.3rem 0;
  position: relative;
  transition: color 0.3s;
}
.filter-pill::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.filter-pill.active, .filter-pill:hover { color: var(--ink); }
.filter-pill.active::after { transform: scaleX(1); }

/* ---------- Work grid (tight editorial archive) ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.72rem, 1.25vw, 1.15rem);
  grid-auto-flow: dense;
  align-items: start;
}
.work-item {
  position: relative; overflow: hidden;
  background: var(--bone-shadow);
  cursor: pointer;
  transition: transform 0.7s var(--ease-out);
}
.work-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out), filter 0.5s; }
.work-item:hover img { transform: scale(1.04); filter: brightness(0.7); }
.work-item .overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(180deg, transparent 40%, rgba(26,23,21,0.65) 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  color: var(--bone);
}
.work-item:hover .overlay { opacity: 1; }
.work-item .ov-meta {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 0.5rem; color: var(--brass);
}
.work-item .ov-name {
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 400; letter-spacing: -0.01em;
}
.work-item .ov-sub {
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(242, 237, 228, 0.8); margin-top: 0.35rem;
}
.work-item.tall { grid-row: span 2; }

/* Width-to-height ratios are tuned so mixed-width rows sit closer together instead of leaving loose visual pockets. */
.work-item.s4 { grid-column: span 4; aspect-ratio: 4/3; }
.work-item.s5 { grid-column: span 5; aspect-ratio: 5/3; }
.work-item.s6 { grid-column: span 6; aspect-ratio: 2/1; }
.work-item.s7 { grid-column: span 7; aspect-ratio: 7/3; }
.work-item.s8 { grid-column: span 8; aspect-ratio: 8/3; }
.work-item.s3-tall { grid-column: span 3; aspect-ratio: 3/3.45; }
.work-item.s4-tall { grid-column: span 4; aspect-ratio: 4/3.45; }
.work-grid > .work-item:last-child { grid-column: span 12; aspect-ratio: 12/3.25; }

@media (max-width: 880px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); gap: clamp(0.75rem, 2.5vw, 1rem); }
  .work-item.s4, .work-item.s5, .work-item.s6, .work-item.s7, .work-item.s8 { grid-column: span 2; aspect-ratio: 3/2; }
  .work-item.s3-tall, .work-item.s4-tall { grid-column: span 1; aspect-ratio: 3/4; }
  .work-grid > .work-item:last-child { grid-column: span 2; aspect-ratio: 3/2; }
}
@media (max-width: 480px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-item.s3-tall, .work-item.s4-tall, .work-grid > .work-item:last-child { grid-column: 1; aspect-ratio: 4/3; }
}

@media (hover: none) {
  .work-item img { filter: brightness(0.82); }
  .work-item .overlay { opacity: 1; }
}

@media (max-width: 880px) {
  .work-item .overlay { padding: 1.15rem; }
  .work-item .ov-meta { font-size: 0.56rem; letter-spacing: 0.14em; }
  .work-item .ov-name { font-size: 1.18rem; }
  .work-item .ov-sub { font-size: 0.56rem; letter-spacing: 0.12em; }
}

@media (max-width: 760px) {
  .archive-note-grid { grid-template-columns: 1fr !important; align-items: start !important; }
  .archive-note-grid p { justify-self: start !important; }
}

/* ---------- Project dossier drawer ---------- */
body.dossier-locked { overflow: hidden; }
.dossier {
  position: fixed; inset: 0; z-index: 200;
  visibility: hidden; pointer-events: none;
}
.dossier.open { visibility: visible; pointer-events: auto; }
.dossier-scrim {
  position: absolute; inset: 0;
  background: rgba(20, 17, 15, 0.55);
  opacity: 0; transition: opacity 0.5s var(--ease-out);
}
.dossier.open .dossier-scrim { opacity: 1; }
.dossier-panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(540px, 92vw);
  background: var(--bone);
  border-left: 1px solid var(--bone-deep);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform 0.6s var(--ease-out);
  display: flex; flex-direction: column;
}
.dossier.open .dossier-panel { transform: translateX(0); }
.dossier-close {
  position: absolute; top: 1.25rem; right: 1.25rem; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(20, 17, 15, 0.55); border: none; cursor: pointer;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--bone);
  padding: 0.5rem 0.75rem;
  transition: background 0.4s var(--ease-out);
}
.dossier-close:hover { background: rgba(20, 17, 15, 0.8); }
.dossier-close svg { color: var(--bone); }
.dossier-figure {
  width: 100%; aspect-ratio: 4/3; background: var(--bone-shadow);
  overflow: hidden; flex-shrink: 0;
}
.dossier-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dossier-body { padding: clamp(1.75rem, 4vw, 2.75rem); }
.dossier-label {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--brass); margin-bottom: 1.25rem;
}
.dossier-name {
  font-family: var(--font-display); font-weight: 350;
  font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.05;
  letter-spacing: -0.01em; color: var(--ink); margin: 0 0 0.6rem;
}
.dossier-locyear {
  font-family: var(--font-display); font-style: italic; font-weight: 350;
  font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 0.4rem;
}
.dossier-meta {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--stone);
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--bone-deep); margin-bottom: 1.5rem;
}
.dossier-note {
  font-family: var(--font-body); font-size: 1rem; line-height: 1.7;
  color: var(--ink-soft); margin: 0 0 2rem;
}
.dossier-spec { margin: 0 0 2.25rem; display: grid; gap: 1rem; }
.dossier-spec > div {
  display: grid; grid-template-columns: 9rem 1fr; gap: 1rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--bone-shadow);
}
.dossier-spec dt {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--stone); padding-top: 0.15rem;
}
.dossier-spec dd {
  margin: 0; font-family: var(--font-body); font-size: 0.92rem;
  line-height: 1.5; color: var(--ink);
}
.dossier-foot { display: flex; flex-direction: column; gap: 1rem; }
.dossier-cta {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink);
  border-bottom: 1px solid var(--brass); padding-bottom: 4px;
  align-self: flex-start; transition: color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.dossier-cta:hover { color: var(--oxblood-deep); border-bottom-color: var(--oxblood-deep); }
.dossier-cta .arrow { display: inline-block; transition: transform 0.4s var(--ease-out); }
.dossier-cta:hover .arrow { transform: translateX(4px); }
.dossier-aside {
  font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--stone);
}
.work-item[data-dossier] { cursor: pointer; }
[data-preview] { cursor: pointer; }

/* ---------- Journal preview drawer (literary variant) ---------- */
.jp-pull {
  margin: 0 0 2.25rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--bone-deep);
}
.jp-pull blockquote {
  margin: 0 0 0.75rem;
  font-family: var(--font-display); font-style: italic; font-weight: 350;
  font-size: 1.35rem; line-height: 1.4; color: var(--ink);
}
.jp-pull figcaption {
  font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--brass);
}
@media (prefers-reduced-motion: reduce) {
  .dossier-scrim, .dossier-panel { transition: none; }
}
@media (max-width: 480px) {
  .dossier-panel { width: 100vw; border-left: none; }
  .dossier-spec > div { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* ---------- Project Detail page ---------- */
.project-hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  margin-top: 0;
}
.project-hero img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: phZoom 14s var(--ease-out) forwards; }
@keyframes phZoom { to { transform: scale(1); } }
.project-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,23,21,0.38) 0%, rgba(26,23,21,0.10) 34%, rgba(26,23,21,0.78) 100%), radial-gradient(circle at 18% 82%, rgba(26,23,21,0.42) 0%, rgba(26,23,21,0.22) 34%, rgba(26,23,21,0) 62%);
}
.project-hero-content {
  position: absolute; bottom: clamp(3rem, 6vw, 5rem); left: var(--gutter); right: var(--gutter);
  color: var(--bone);
  display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; align-items: end;
}
.project-hero-content h1 {
  color: var(--bone); font-weight: 300; line-height: 0.96;
}
.project-hero-content h1 em { font-style: italic; color: var(--bone); }
.project-hero-meta {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--bone); opacity: 0.85; display: grid; gap: 0.4rem;
  text-align: right;
}
@media (max-width: 768px) {
  .project-hero-content { grid-template-columns: 1fr; }
  .project-hero-meta { text-align: left; }
}

.project-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding-top: clamp(4rem, 7vw, 6rem);
}
.project-side {
  position: sticky; top: 7rem; align-self: start;
  display: grid; gap: 1.5rem;
  font-size: 0.88rem;
}
.project-side .side-block {
  border-top: 1px solid rgba(26, 23, 21, 0.15);
  padding-top: 1rem;
}
.project-side .side-block h5 {
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--stone); margin-bottom: 0.5rem; font-weight: 500;
}
.project-side .side-block .val { font-family: var(--font-display); font-size: 1rem; font-weight: 400; color: var(--ink); line-height: 1.4; }
.project-side .side-block .val.mini { font-family: var(--font-body); font-size: 0.88rem; color: var(--ink-soft); line-height: 1.55; }

.project-narrative h2 {
  font-weight: 300; line-height: 1.05; margin-bottom: 2rem;
}
.project-narrative h2 em { font-style: italic; color: var(--oxblood-deep); }
.project-narrative .lede {
  font-family: var(--font-display);
  font-size: 1.4rem; line-height: 1.5; font-weight: 350;
  color: var(--ink); margin-bottom: 1.75rem;
}
.project-narrative p { font-size: 1.02rem; line-height: 1.75; color: var(--ink-soft); margin-bottom: 1.4rem; max-width: 64ch; }
.project-narrative .pull {
  border-left: 2px solid var(--brass);
  padding: 0.5rem 0 0.5rem 1.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 2.5rem 0;
}

@media (max-width: 880px) {
  .project-body { grid-template-columns: 1fr; }
  .project-side { position: static; }
}

/* ---------- Floorplan viewer ---------- */
.floorplan-wrap {
  background: var(--bone-shadow);
  padding: clamp(3rem, 5vw, 4rem) clamp(2rem, 4vw, 3.5rem);
  position: relative;
  overflow: hidden;
}
.floorplan-stage {
  display: grid; grid-template-columns: 1fr 380px;
  gap: 3rem; align-items: center;
}
.fp-svg-wrap { position: relative; }
.fp-svg-wrap svg { width: 100%; height: auto; }
.fp-svg-wrap svg .room { fill: transparent; stroke: none; transition: fill 0.4s var(--ease-out); }
.fp-svg-wrap svg .room.active { fill: var(--bone-deep); }
.fp-svg-wrap svg .w-hist { stroke: var(--oxblood-deep); stroke-width: 1.5; fill: none; }
.fp-svg-wrap svg .w-new { stroke: var(--ink-soft); stroke-width: 1.1; fill: none; opacity: 0.82; }
.fp-svg-wrap svg .gardenwall { stroke: var(--stone); stroke-width: 1.4; fill: none; }
.fp-svg-wrap svg .leaf { stroke: var(--ink-soft); stroke-width: 1; fill: none; }
.fp-svg-wrap svg .swing { stroke: var(--ink-soft); stroke-width: 0.7; fill: none; stroke-dasharray: 2 2; }
.fp-svg-wrap svg .glass { stroke: var(--ink-soft); stroke-width: 1; }
.fp-svg-wrap svg .sill { stroke: var(--ink-soft); stroke-width: 0.5; }
.fp-svg-wrap svg .fix { stroke: var(--ink-soft); stroke-width: 1; fill: none; }
.fp-svg-wrap svg .stair-out { fill: none; stroke: var(--ink-soft); stroke-width: 0.8; }
.fp-svg-wrap svg .tread { stroke: var(--ink-soft); stroke-width: 0.7; }
.fp-svg-wrap svg .upline { stroke: var(--ink-soft); stroke-width: 0.8; }
.fp-svg-wrap svg .uphead { fill: var(--ink-soft); }
.fp-svg-wrap svg .hatch { stroke: var(--ink-soft); stroke-width: 0.5; opacity: 0.55; }
.fp-svg-wrap svg .island { fill: none; stroke: var(--ink-soft); stroke-width: 0.9; }
.fp-svg-wrap svg .furn { stroke: var(--stone); stroke-width: 0.8; fill: none; stroke-dasharray: 3 2; }
.fp-svg-wrap svg .rug { stroke: var(--stone); stroke-width: 0.5; opacity: 0.5; }
.fp-svg-wrap svg .pool { fill: none; stroke: var(--stone); stroke-width: 1; }
.fp-svg-wrap svg .pool-water { fill: none; stroke: var(--stone); stroke-width: 0.5; opacity: 0.6; }
.fp-svg-wrap svg .path { stroke: var(--stone); stroke-width: 0.7; stroke-dasharray: 1 3; }
.fp-svg-wrap svg .espalier { stroke: var(--stone); stroke-width: 0.8; }
.fp-svg-wrap svg .column { fill: var(--ink-soft); }
.fp-svg-wrap svg .column-core { fill: var(--bone-shadow); }
.fp-svg-wrap svg .ghost { fill: none; stroke: var(--stone); stroke-width: 0.7; stroke-dasharray: 5 3; opacity: 0.55; }
.fp-svg-wrap svg .ghost-label { font-family: var(--font-mono); font-size: 6px; fill: var(--stone); letter-spacing: 0.1em; opacity: 0.7; pointer-events: none; }
.fp-svg-wrap svg .dim { stroke: var(--ink-soft); stroke-width: 0.5; }
.fp-svg-wrap svg .dim-tick { stroke: var(--ink-soft); stroke-width: 0.6; }
.fp-svg-wrap svg .dim-label { font-family: var(--font-mono); font-size: 6.5px; fill: var(--ink-soft); letter-spacing: 0.05em; pointer-events: none; }
.fp-svg-wrap svg .dim-mask { fill: var(--bone-shadow); }
.fp-svg-wrap svg .fill-ink { fill: var(--ink); }
.fp-svg-wrap svg .fill-soft { fill: var(--ink-soft); }
.fp-svg-wrap svg .scale-open { fill: none; stroke: var(--ink); stroke-width: 0.8; }
.fp-svg-wrap svg .label { font-family: var(--font-mono); font-size: 8px; fill: var(--ink-soft); letter-spacing: 0.1em; text-transform: uppercase; pointer-events: none; }
.fp-svg-wrap svg .hotspot {
  fill: var(--brass);
  cursor: pointer;
  transition: r 0.3s var(--ease-out);
}
.fp-svg-wrap svg .hotspot-ring {
  fill: none; stroke: var(--brass); stroke-width: 1; opacity: 0.6;
  transform-origin: center;
  animation: pulseRing 2.6s var(--ease-in-out) infinite;
}
@keyframes pulseRing {
  0% { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(1.8); opacity: 0; }
}
.fp-svg-wrap svg .hotspot:hover { fill: var(--oxblood-deep); }

.fp-panel {
  border: 1px solid rgba(26, 23, 21, 0.15);
  padding: 1.5rem;
  background: var(--bone);
  min-height: 360px;
  display: flex; flex-direction: column; gap: 1rem;
}
.fp-panel .fp-empty {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--stone); padding: 3rem 0; text-align: center;
}
.fp-panel .fp-img {
  width: 100%; aspect-ratio: 4/3; background: var(--bone-shadow);
  overflow: hidden; opacity: 0; transition: opacity 0.6s var(--ease-out);
}
.fp-panel.has-data .fp-img { opacity: 1; }
.fp-panel .fp-img img { width: 100%; height: 100%; object-fit: cover; }
.fp-panel .fp-meta { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); }
.fp-panel .fp-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; }
.fp-panel .fp-desc { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; }

@media (max-width: 880px) {
  .floorplan-stage { grid-template-columns: 1fr; }
  .fp-panel { min-height: 0; }
}

/* ---------- Before/After slider ---------- */
.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
  background: var(--ink);
}
.ba-slider .ba-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.ba-slider .ba-img img { width: 100%; height: 100%; object-fit: cover; }
.ba-after { clip-path: inset(0 0 0 50%); }
.ba-divider {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 1px; background: var(--bone);
  pointer-events: none;
}
.ba-handle {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bone);
  border: 1px solid var(--brass);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  box-shadow: 0 4px 16px -8px rgba(0,0,0,0.4);
}
.ba-handle .grip {
  width: 16px; height: 1px; background: var(--brass); position: relative;
}
.ba-handle .grip::before, .ba-handle .grip::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--brass);
}
.ba-handle .grip::before { top: -4px; }
.ba-handle .grip::after { bottom: -4px; }
.ba-label {
  position: absolute;
  top: 1.5rem;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--bone);
  padding: 0.4rem 0.8rem;
  background: rgba(26, 23, 21, 0.45);
  backdrop-filter: blur(4px);
}
.ba-label.before { left: 1.5rem; }
.ba-label.after { right: 1.5rem; }

/* ---------- Photo gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(3rem, 5vw, 4rem);
}
.gallery-item { position: relative; overflow: hidden; background: var(--bone-shadow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item .gi-cap {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--stone);
  margin-top: 0.75rem;
}
.gi-1 { grid-column: 1 / span 8; aspect-ratio: 3/2; }
.gi-2 { grid-column: 9 / span 4; aspect-ratio: 3/4; }
.gi-3 { grid-column: 1 / span 4; aspect-ratio: 4/5; }
.gi-4 { grid-column: 5 / span 8; aspect-ratio: 16/9; }
.gi-5 { grid-column: 1 / span 12; aspect-ratio: 21/9; }
.gi-6 { grid-column: 1 / span 6; aspect-ratio: 1/1; }
.gi-7 { grid-column: 7 / span 6; aspect-ratio: 1/1; }
@media (max-width: 768px) {
  .gallery-item { grid-column: 1 / -1 !important; aspect-ratio: 4/3 !important; }
  .gallery { grid-template-columns: 1fr; }
}

/* ---------- Materials callout ---------- */
.materials {
  background: var(--ink);
  color: var(--bone);
  padding: clamp(3rem, 5vw, 5rem) clamp(2rem, 4vw, 3.5rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.materials h3 { color: var(--bone); font-weight: 300; margin-bottom: 2.5rem; font-style: italic; }
.materials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem 3rem; }
.mat-item { border-top: 1px solid rgba(242, 237, 228, 0.15); padding-top: 1rem; }
.mat-item .mat-cat { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); margin-bottom: 0.5rem; }
.mat-item .mat-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 400; color: var(--bone); margin-bottom: 0.3rem; }
.mat-item .mat-src { font-size: 0.85rem; color: rgba(242, 237, 228, 0.65); }

/* ---------- Next project nav ---------- */
.next-project {
  border-top: 1px solid rgba(26, 23, 21, 0.15);
  padding: clamp(3rem, 6vw, 5rem) 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  align-items: center;
}
.next-project .label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); margin-bottom: 0.5rem; }
.next-project .next-name { font-family: var(--font-display); font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 300; font-style: italic; line-height: 1.05; color: var(--ink); }
.next-project .next-name:hover { color: var(--oxblood-deep); }
.next-project .arrow-block { justify-self: end; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Studio page ---------- */
.philosophy {
  display: grid; grid-template-columns: 1fr 2fr; gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.philosophy-body p { font-size: 1.05rem; line-height: 1.75; color: var(--ink); max-width: none; }
.philosophy-body p:first-child::first-letter {
  font-family: var(--font-display);
  float: left;
  font-size: 4.2rem;
  font-weight: 400;
  line-height: 0.85;
  padding: 0.1em 0.2em 0 0;
  color: var(--oxblood-deep);
  font-style: italic;
}
.philosophy-body .signoff { margin-top: 2rem; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); display: flex; gap: 0.6rem; align-items: center; }
.philosophy-body .signoff::before { content: ""; width: 28px; height: 1px; background: var(--brass); }

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

.principals { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.principal { display: grid; gap: 1.5rem; }
.principal-portrait { aspect-ratio: 4/5; background: var(--bone-shadow); overflow: hidden; }
.principal-portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.15) contrast(1.05); }
.principal h3 { font-weight: 350; }
.principal .role { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); }
.principal p { font-size: 0.97rem; line-height: 1.7; color: var(--ink-soft); }
@media (max-width: 768px) { .principals { grid-template-columns: 1fr; } }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem 2.5rem;
}
.team-member { padding: 1.25rem 0; border-top: 1px solid rgba(26, 23, 21, 0.15); }
.team-member .tm-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 400; }
.team-member .tm-role { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); margin: 0.35rem 0; }
.team-member .tm-cred { font-size: 0.82rem; color: var(--ink-soft); }

.locations { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3rem); }
.location { display: grid; gap: 1.25rem; }
.location-img { aspect-ratio: 3/2; background: var(--bone-shadow); overflow: hidden; }
.location-img img { width: 100%; height: 100%; object-fit: cover; }
.location-details { font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.9; letter-spacing: 0.04em; color: var(--ink-soft); text-transform: uppercase; }
.location-details .place { font-family: var(--font-display); font-size: 1.5rem; font-weight: 350; text-transform: none; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 0.5rem; }
@media (max-width: 768px) { .locations { grid-template-columns: 1fr; } }

.timeline-firm {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  position: relative;
  padding: 3rem 0 1rem;
  border-top: 1px solid rgba(26, 23, 21, 0.15);
}
.timeline-firm::before {
  content: ""; position: absolute; left: 0; right: 0; top: 4.4rem;
  height: 1px; background: var(--brass);
}
.tf-item { position: relative; padding-top: 2.5rem; }
.tf-item::before {
  content: ""; position: absolute; left: 0; top: 1.85rem;
  width: 9px; height: 9px; background: var(--brass); border-radius: 50%;
  outline: 4px solid var(--bone);
}
.tf-year { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; color: var(--oxblood-deep); margin-bottom: 0.5rem; }
.tf-event { font-family: var(--font-display); font-size: 1rem; line-height: 1.35; font-weight: 400; }
@media (max-width: 768px) {
  .timeline-firm { grid-template-columns: 1fr; }
  .timeline-firm::before { left: 4px; top: 0; bottom: 0; width: 1px; height: auto; right: auto; }
  .tf-item { padding-top: 0; padding-left: 1.5rem; }
  .tf-item::before { left: 0; top: 0.4rem; }
}

/* ---------- Process page ---------- */
.process-intro .container { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.process-intro p { font-family: var(--font-display); font-size: 1.4rem; font-weight: 350; line-height: 1.5; font-style: italic; color: var(--ink); }
@media (max-width: 880px) { .process-intro .container { grid-template-columns: 1fr; } }

.process-track {
  position: relative;
  padding: 0;
}
.process-progress {
  position: fixed;
  left: clamp(1.25rem, 4vw, 3rem);
  top: 50%; transform: translateY(-50%);
  z-index: 5;
  pointer-events: none;
  display: flex; align-items: center; gap: 0.85rem;
}
.process-progress .line {
  width: 1px; height: 240px;
  background: rgba(26, 23, 21, 0.15);
  position: relative;
}
.process-progress .line .fill {
  position: absolute; left: 0; top: 0; right: 0;
  background: var(--oxblood-deep);
  transition: height 0.3s linear;
}
.process-progress .dots {
  display: flex; flex-direction: column; justify-content: space-between;
  height: 240px;
}
.process-progress .dots .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--bone); border: 1px solid var(--stone);
  transition: background 0.4s, border-color 0.4s, transform 0.4s;
}
.process-progress .dots .dot.active { background: var(--brass); border-color: var(--brass); transform: scale(1.3); }

.phase {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(4rem, 8vw, 7rem) var(--gutter);
  position: relative;
  border-top: 1px solid rgba(26, 23, 21, 0.08);
  max-width: var(--max-w); margin: 0 auto;
}
.phase:nth-child(even) { background: var(--bone-shadow); }
.phase-num {
  font-family: var(--font-display);
  font-size: clamp(8rem, 18vw, 18rem);
  font-weight: 200;
  line-height: 0.8;
  color: rgba(74, 28, 28, 0.08);
  letter-spacing: -0.04em;
  font-style: italic;
}
.phase-content .ph-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); margin-bottom: 1.25rem; }
.phase-content h2 { font-weight: 300; margin-bottom: 1.5rem; }
.phase-content h2 em { font-style: italic; color: var(--oxblood-deep); }
.phase-content p { font-size: 1.02rem; line-height: 1.75; color: var(--ink-soft); }
.phase-content .ph-meta { margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; }
.phase-content .ph-meta .key { color: var(--stone); display: block; margin-bottom: 0.35rem; }
.phase-content .ph-meta .val { color: var(--ink); }
@media (max-width: 880px) {
  .phase { grid-template-columns: 1fr; min-height: auto; padding: 4rem var(--gutter); }
  .phase-num { font-size: clamp(5rem, 18vw, 8rem); }
  .process-progress { display: none; }
}

/* ---------- Engagement model cards ---------- */
.engage-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.engage-card {
  border: 1px solid rgba(26, 23, 21, 0.15);
  background: var(--bone);
  padding: 2rem 1.75rem;
  cursor: pointer;
  transition: border-color 0.4s, background 0.4s;
  position: relative;
  overflow: hidden;
}
.engage-card:hover { border-color: var(--ink); }
.engage-card.open { border-color: var(--oxblood-deep); background: var(--bone); }
.engage-card .ec-num { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; color: var(--brass); }
.engage-card .ec-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; margin: 1rem 0 0.5rem; line-height: 1.2; }
.engage-card .ec-sum { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.55; }
.engage-card .ec-expand {
  max-height: 0; overflow: hidden;
  transition: max-height 0.6s var(--ease-out), margin-top 0.4s var(--ease-out);
}
.engage-card.open .ec-expand { max-height: 1200px; margin-top: 1.75rem; }
.engage-card .ec-detail { border-top: 1px solid rgba(26, 23, 21, 0.15); padding-top: 1.5rem; display: grid; gap: 1.25rem; }
.engage-card .ec-detail h6 { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); margin-bottom: 0.5rem; font-weight: 500; }
.engage-card .ec-detail .row { display: block; }
.engage-card .ec-detail p, .engage-card .ec-detail ul { font-size: 0.88rem; line-height: 1.65; color: var(--ink-soft); }
.engage-card .ec-detail ul { list-style: none; }
.engage-card .ec-detail ul li { padding-left: 1rem; position: relative; }
.engage-card .ec-detail ul li::before { content: "·"; position: absolute; left: 0; color: var(--brass); font-weight: 700; }
.engage-card .ec-toggle {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
}
.engage-card .ec-toggle::before, .engage-card .ec-toggle::after {
  content: ""; position: absolute; background: var(--ink); transition: transform 0.4s var(--ease-out), background 0.3s;
}
.engage-card .ec-toggle::before { width: 12px; height: 1px; }
.engage-card .ec-toggle::after { width: 1px; height: 12px; }
.engage-card.open .ec-toggle::after { transform: scaleY(0); }
.engage-card.open .ec-toggle::before { background: var(--oxblood-deep); }

@media (max-width: 1024px) {
  .engage-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .engage-grid { grid-template-columns: 1fr; }
}

/* ---------- Journal page ---------- */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 3rem);
}
.j-card { display: grid; gap: 1rem; }
.j-card .j-img { aspect-ratio: 4/3; background: var(--bone-shadow); overflow: hidden; }
.j-card .j-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.j-card:hover .j-img img { transform: scale(1.04); }
.j-card .j-meta { display: flex; gap: 1rem; font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); }
.j-card .j-cat { color: var(--brass); }
.j-card h3 { font-weight: 400; font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.15; }
.j-card h3 a:hover { color: var(--oxblood-deep); }
.j-card p { font-size: 0.95rem; line-height: 1.6; color: var(--ink-soft); }
.j-card .j-author { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }

.j-feat { grid-column: 1 / span 7; }
.j-feat .j-img { aspect-ratio: 16/10; }
.j-feat h3 { font-size: clamp(1.85rem, 3vw, 2.5rem); }
.j-feat p { font-size: 1.05rem; }
.j-side { grid-column: 8 / span 5; display: grid; gap: 2.5rem; align-content: start; }
.j-side .j-card { grid-template-columns: 110px 1fr; gap: 1.25rem; }
.j-side .j-card .j-img { aspect-ratio: 1/1; }
.j-side .j-card h3 { font-size: 1.05rem; }
.j-side .j-card p { display: none; }
.j-card.j-std { grid-column: span 4; }

@media (max-width: 880px) {
  .j-feat, .j-side, .j-card.j-std { grid-column: 1 / -1; }
  .j-side .j-card { grid-template-columns: 1fr; }
  .j-side .j-card p { display: block; }
  .j-side .j-card .j-img { aspect-ratio: 4/3; }
}

/* ---------- Article view ---------- */
.article-view { display: none; }
.article-view.active { display: block; }
.article-hero {
  padding: clamp(7rem, 12vw, 10rem) 0 clamp(2rem, 4vw, 3rem);
  max-width: 780px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter);
  text-align: center;
}
.article-hero .a-meta { display: flex; justify-content: center; gap: 1.25rem; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); margin-bottom: 2rem; }
.article-hero .a-cat { color: var(--brass); }
.article-hero h1 { font-weight: 350; margin-bottom: 1.5rem; }
.article-hero h1 em { font-style: italic; color: var(--oxblood-deep); }
.article-hero .a-dek { font-family: var(--font-display); font-size: 1.4rem; font-weight: 350; font-style: italic; color: var(--ink-soft); line-height: 1.4; }
.article-hero .a-author { margin-top: 2.5rem; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); display: flex; align-items: center; justify-content: center; gap: 0.6rem; }
.article-hero .a-author::before, .article-hero .a-author::after { content: ""; width: 28px; height: 1px; background: var(--brass); }

.article-feature-img {
  width: 100%; max-width: 1100px; margin: 0 auto clamp(3rem, 6vw, 5rem);
  aspect-ratio: 16/10; overflow: hidden;
  padding: 0 var(--gutter);
}
.article-feature-img img { width: 100%; height: 100%; object-fit: cover; }

.article-body { max-width: 680px; margin: 0 auto; padding: 0 var(--gutter); }
.article-body p { font-family: 'Fraunces', Georgia, serif; font-size: 1.18rem; line-height: 1.75; color: var(--ink); margin-bottom: 1.4rem; font-variation-settings: "SOFT" 50, "opsz" 18; font-weight: 380; }
.article-body p:first-child::first-letter {
  font-family: var(--font-display);
  float: left;
  font-size: 4rem;
  font-weight: 300;
  line-height: 0.9;
  padding: 0.1em 0.12em 0 0;
  color: var(--oxblood-deep);
  font-style: italic;
}
.article-body .pull-quote {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.4;
  margin: 2.5rem 0;
  padding: 0.5rem 0;
  border-top: 1px solid var(--brass);
  border-bottom: 1px solid var(--brass);
  color: var(--ink);
  text-align: center;
}
.article-body h3 { font-weight: 400; font-style: italic; margin: 2.5rem 0 1rem; }
.article-end {
  margin: 3rem auto 0;
  display: flex; justify-content: center; align-items: center; gap: 1rem;
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--stone);
}
.article-end::before, .article-end::after { content: ""; width: 32px; height: 1px; background: var(--brass); }

/* ---------- Inquiry page ---------- */
.inquiry-intro {
  position: relative;
  min-height: min(92vh, 980px);
  padding: clamp(8rem, 16vh, 11rem) 0 clamp(3rem, 6vw, 5rem);
  display: flex;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid rgba(26, 23, 21, 0.08);
  background: #171311;
}
.inquiry-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../assets/img/inquiry-hero.webp');
  background-size: cover;
  background-position: center center;
  transform: scale(1.02);
}
.inquiry-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17,13,11,0.30) 0%, rgba(17,13,11,0.16) 20%, rgba(17,13,11,0.56) 72%, rgba(17,13,11,0.82) 100%),
    radial-gradient(circle at 16% 74%, rgba(17,13,11,0.48) 0%, rgba(17,13,11,0.22) 34%, rgba(17,13,11,0) 60%);
}
.inquiry-intro .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.inquiry-intro h1 {
  color: var(--bone);
  text-shadow: 0 20px 48px rgba(0,0,0,0.38);
}
.inquiry-intro .eyebrow {
  color: rgba(242, 237, 228, 0.82);
  text-shadow: 0 10px 26px rgba(0,0,0,0.34);
}
.inquiry-intro p {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 350;
  font-style: italic;
  line-height: 1.55;
  color: rgba(242, 237, 228, 0.96);
  text-shadow: 0 16px 38px rgba(0,0,0,0.32);
  max-width: 38ch;
}
@media (max-width: 880px) {
  .inquiry-intro { min-height: 82vh; padding-top: 7.5rem; }
  .inquiry-intro .container { grid-template-columns: 1fr; }
  .inquiry-intro p { max-width: 30ch; }
}

.tool-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid rgba(26, 23, 21, 0.15);
  margin: clamp(2rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  flex-wrap: wrap;
}
.tool-tab {
  padding: 1.25rem 2rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--stone);
  position: relative;
  border-right: 1px solid rgba(26, 23, 21, 0.1);
  transition: color 0.3s, background 0.3s;
}
.tool-tab:first-child { padding-left: 0; border-left: none; }
.tool-tab.active { color: var(--ink); }
.tool-tab.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--oxblood-deep);
}
.tool-tab:hover { color: var(--ink); }

.tool-tab:focus-visible,
.est-opt:focus-visible,
.est-back:focus-visible,
.quiz-opt:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}
.tool-tab .tab-num { color: var(--brass); margin-right: 0.5rem; }

.tool-panel { display: none; }
.tool-panel.active { display: block; animation: fadeUp 0.6s var(--ease-out) backwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Estimator */
.estimator { display: grid; gap: 2.5rem; max-width: 880px; margin: 0 auto; }
.estimator > * { min-width: 0; }
.est-progress {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  border-bottom: 1px solid rgba(26, 23, 21, 0.15);
  padding-bottom: 1rem;
  position: relative;
}
.est-progress::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  height: 1px; background: var(--brass);
  width: 20%;
  transition: width 0.6s var(--ease-out);
}
.est-progress[data-step="1"]::after { width: 20%; }
.est-progress[data-step="2"]::after { width: 40%; }
.est-progress[data-step="3"]::after { width: 60%; }
.est-progress[data-step="4"]::after { width: 80%; }
.est-progress[data-step="5"]::after { width: 100%; }
.est-progress .step {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--stone);
  display: flex; align-items: baseline; gap: 0.5rem;
  min-width: 0; overflow: hidden;
}
.est-progress .step.active { color: var(--ink); }
.est-progress .step.done { color: var(--brass); }
.est-progress .step .n { color: var(--brass); }
@media (max-width: 560px) {
  .est-progress { gap: 0.4rem; }
  .est-progress .step { font-size: 0; gap: 0; }
  .est-progress .step .n { font-size: 0.62rem; letter-spacing: 0.08em; }
}
.est-progress .step.active { color: var(--ink); }
.est-progress .step.done { color: var(--brass); }
.est-progress .step .n { color: var(--brass); }

.est-step { display: none; }
.est-step.active { display: block; animation: fadeUp 0.5s var(--ease-out) backwards; }
.est-step .est-q {
  font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 350; line-height: 1.15;
  margin-bottom: 1rem;
}
.est-step .est-q em { font-style: italic; color: var(--oxblood-deep); }
.est-step .est-sub { font-size: 1rem; color: var(--ink-soft); margin-bottom: 2.5rem; max-width: 56ch; }
.est-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.85rem; }
.est-opt {
  text-align: left;
  border: 1px solid rgba(26, 23, 21, 0.15);
  padding: 1.5rem 1.25rem;
  background: var(--bone);
  transition: border-color 0.3s, background 0.3s;
  display: grid; gap: 0.4rem;
}
.est-opt:hover { border-color: var(--ink-soft); background: var(--bone); }
.est-opt.selected { border-color: var(--oxblood-deep); background: var(--bone-shadow); }
.est-opt .opt-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 400; line-height: 1.2; }
.est-opt .opt-desc { font-size: 0.82rem; line-height: 1.5; color: var(--ink-soft); }

.est-nav { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; }
.est-nav .est-back {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--stone);
}
.est-nav .est-back:hover { color: var(--ink); }
.est-nav .est-back[disabled] { opacity: 0.4; cursor: default; }

/* Estimator result */
.est-result { display: none; }
.est-result.active { display: block; animation: fadeUp 0.7s var(--ease-out) backwards; }
.est-stationery {
  max-width: min(680px, 100%); margin: 0 auto;
  background: var(--bone);
  border: 1px solid var(--ink);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3.5rem);
  position: relative;
  box-shadow: 0 30px 80px -50px rgba(26, 23, 21, 0.2);
}
.est-stationery::before, .est-stationery::after {
  content: ""; position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--brass);
}
.est-stationery::before { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.est-stationery::after { bottom: 14px; right: 14px; border-left: none; border-top: none; }
.est-stationery .est-letterhead {
  text-align: center; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(26, 23, 21, 0.15); margin-bottom: 2rem;
}
.est-stationery .est-letterhead .lh-mark { font-family: var(--font-display); font-size: 1.5rem; font-weight: 350; letter-spacing: 0.06em; }
.est-stationery .est-letterhead .lh-mark .amp { font-style: italic; color: var(--brass); }
.est-stationery .est-letterhead .lh-sub { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone); margin-top: 0.5rem; }
.est-stationery h2 {
  font-weight: 350; font-style: italic;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  text-align: center; margin-bottom: 2rem;
}
.est-result-row {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 1.5rem; padding: 1.25rem 0;
  border-bottom: 1px dotted rgba(26, 23, 21, 0.2);
  align-items: baseline;
}
.est-result-row:last-of-type { border-bottom: none; }

@media (max-width: 560px) {
  .est-result { max-width: 100%; }
  .est-stationery { padding: 1.75rem 1.25rem; max-width: 100%; }
  .est-result-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .est-stationery .er-val { word-break: break-word; }
}
.est-result-row .er-key { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.est-result-row .er-val { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; color: var(--ink); line-height: 1.3; }
.est-result-row .er-val em { font-style: italic; color: var(--oxblood-deep); }
.est-footnote {
  text-align: center; padding-top: 2rem; margin-top: 1.5rem; border-top: 1px solid rgba(26, 23, 21, 0.15);
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone);
}
.est-cta { text-align: center; margin-top: 2.5rem; }
.est-restart {
  display: block; text-align: center; margin-top: 1.25rem;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone);
}
.est-restart:hover { color: var(--ink); }

/* Sensibility quiz */
.quiz { max-width: 980px; margin: 0 auto; }
.quiz-progress {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--stone); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 1rem;
}
.quiz-progress .bar { flex: 1; height: 1px; background: rgba(26, 23, 21, 0.15); position: relative; }
.quiz-progress .bar::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; background: var(--oxblood-deep); width: 0%; transition: width 0.5s var(--ease-out); }

.quiz-step { display: none; }
.quiz-step.active { display: block; animation: fadeUp 0.5s var(--ease-out) backwards; }
.quiz-step h2 { font-weight: 350; font-style: italic; margin-bottom: 2.5rem; }
.quiz-step h2 em { color: var(--oxblood-deep); }
.quiz-opts { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.quiz-opt {
  display: block;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: var(--bone-shadow);
}
.quiz-opt .qo-img { aspect-ratio: 4/5; position: relative; overflow: hidden; }
.quiz-opt .qo-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), filter 0.4s; }
.quiz-opt:hover .qo-img img { transform: scale(1.04); }
.quiz-opt .qo-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(26,23,21,0.6) 100%); }
.quiz-opt .qo-cap {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bone); z-index: 2;
}
.quiz-opt.selected { outline: 2px solid var(--oxblood-deep); outline-offset: -2px; }
.quiz-opt.selected .qo-img img { filter: brightness(1.05); }

.quiz-opt--text {
  min-height: 12rem;
  padding: 1.5rem;
  border: 1px solid rgba(26, 23, 21, 0.14);
  display: flex;
  align-items: flex-end;
}
.quiz-opt--text .qo-cap {
  position: static;
  color: var(--ink);
}
.quiz-opt--text:hover {
  border-color: var(--ink-soft);
  background: var(--bone);
}

.quiz-result { display: none; max-width: 880px; margin: 0 auto; text-align: center; }
.quiz-result.active { display: block; animation: fadeUp 0.7s var(--ease-out) backwards; }
.quiz-result .qr-eye { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--brass); margin-bottom: 1rem; }
.quiz-result h2 {
  font-weight: 350; font-style: italic;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  margin-bottom: 1.5rem;
}
.quiz-result .qr-desc { font-family: var(--font-display); font-size: 1.2rem; font-weight: 350; line-height: 1.6; color: var(--ink-soft); max-width: 56ch; margin: 0 auto 3rem; }
.quiz-result-projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 3rem; }
.qrp-card { background: var(--bone-shadow); overflow: hidden; text-align: left; }
.qrp-card .qrp-img { aspect-ratio: 4/3; overflow: hidden; }
.qrp-card .qrp-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.qrp-card:hover .qrp-img img { transform: scale(1.04); }
.qrp-card .qrp-body { padding: 1rem; }
.qrp-card .qrp-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 400; }
.qrp-card .qrp-loc { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); margin-top: 0.35rem; }
@media (max-width: 768px) { .quiz-result-projects { grid-template-columns: 1fr; } }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(2rem, 5vw, 5rem); max-width: 1100px; margin: 0 auto; }
.contact-offices { display: grid; gap: 2rem; }
.contact-off { border-top: 1px solid var(--ink); padding-top: 1rem; }
.contact-off h4 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; font-style: italic; }
.contact-off .co-detail { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; line-height: 1.85; color: var(--ink-soft); margin-top: 0.75rem; }
.contact-off a { color: var(--ink-soft); border-bottom: 1px solid var(--brass); padding-bottom: 2px; }
.contact-off a:hover { color: var(--oxblood-deep); }

.contact-form { display: grid; gap: 1.5rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); }
.field input, .field textarea, .field select {
  border: none; border-bottom: 1px solid rgba(26, 23, 21, 0.25);
  background: transparent;
  padding: 0.65rem 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 350;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--oxblood-deep); }
.field textarea { resize: vertical; min-height: 100px; font-size: 1rem; line-height: 1.6; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 600px) { .contact-grid, .field-row { grid-template-columns: 1fr; } }

/* Inline validation error states */
.field-err {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--oxblood-deep); margin-top: 0.1rem;
}
.field input.field-invalid, .field textarea.field-invalid {
  border-bottom-color: var(--oxblood-deep);
}

/* Inquiry confirmation panel */
.inquiry-confirm {
  border: 1px solid var(--ink);
  background: var(--ink);
  padding: clamp(2rem, 5vw, 3.5rem);
  animation: confirmIn 0.7s var(--ease-out) both;
}
@keyframes confirmIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.inquiry-confirm .ic-mark {
  font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.05em;
  color: var(--bone); margin-bottom: 1.5rem;
}
.inquiry-confirm .ic-mark .amp { font-style: italic; color: var(--brass); }
.inquiry-confirm .ic-rule { width: 48px; height: 1px; background: var(--brass); margin-bottom: 1.75rem; }
.inquiry-confirm .ic-head {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15;
  color: var(--bone); margin: 0 0 1.25rem;
}
.inquiry-confirm .ic-body {
  font-family: var(--font-body); font-size: 1rem; line-height: 1.7;
  color: var(--bone-shadow); max-width: 52ch; margin: 0 0 2.25rem;
}
.inquiry-confirm .ic-foot { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; }
.inquiry-confirm .ic-cta {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--bone);
  border-bottom: 1px solid var(--brass); padding-bottom: 4px;
  transition: color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.inquiry-confirm .ic-cta:hover { color: var(--brass); }
.inquiry-confirm .ic-cta--quiet { color: var(--stone); border-bottom-color: var(--stone); }
.inquiry-confirm .ic-cta--quiet:hover { color: var(--bone); border-bottom-color: var(--bone); }
.inquiry-confirm .ic-cta .arrow { display: inline-block; transition: transform 0.4s var(--ease-out); }
.inquiry-confirm .ic-cta:hover .arrow { transform: translateX(4px); }

/* ---------- Utility ---------- */
.center { text-align: center; }
.hidden { display: none !important; }
.no-scroll { overflow: hidden; }

/* ============================================================
   PROJECT PAGE — Fix #6 elevation pass
   ============================================================ */

/* ---------- Floorplan drawing legend ---------- */
.fp-legend {
  display: flex; flex-wrap: wrap; gap: 1.75rem 2.25rem;
  margin-bottom: 2.5rem;
}
.fp-legend-item {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-soft);
}
.fp-key { width: 22px; height: 0; flex: none; }
.fp-key-hist { border-top: 2px solid var(--oxblood-deep); }
.fp-key-new { border-top: 1px solid var(--ink-soft); opacity: 0.82; }
.fp-key-mark {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--brass); border: none;
}

/* ---------- Floorplan panel — architect's note ---------- */
.fp-panel .fp-note-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(26, 23, 21, 0.12);
}
.fp-panel .fp-fabric {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--oxblood-deep);
}
.fp-panel .fp-fabric.is-new { color: var(--ink-soft); }
.fp-panel .fp-area {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--stone); white-space: nowrap;
}
.fp-panel .fp-name { margin-top: 0.1rem; }

/* Marker focus + selected state (keyboard + pointer) */
.fp-svg-wrap svg .hotspot { outline: none; }
.fp-svg-wrap svg .hotspot.selected { fill: var(--oxblood-deep); }
.fp-svg-wrap svg .hotspot:focus-visible { stroke: var(--ink); stroke-width: 2; }

/* ---------- Before/after handle focus ---------- */
.ba-handle { cursor: ew-resize; }
.ba-handle:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }

/* ---------- Commission CTA ---------- */
.commission { padding: clamp(4rem, 8vw, 7rem) 0; }
.commission-inner {
  border: 1px solid rgba(26, 23, 21, 0.16);
  padding: clamp(2.5rem, 5vw, 4.5rem);
  display: grid; grid-template-columns: 1.6fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
}
.commission-lead h2 { font-weight: 300; line-height: 1.0; margin-bottom: 1.75rem; }
.commission-lead h2 em { font-style: italic; color: var(--oxblood-deep); font-weight: 300; }
.commission-lead p {
  font-size: 1.02rem; line-height: 1.7; color: var(--ink-soft);
  max-width: 52ch; margin-bottom: 2.25rem;
}
.commission-aside {
  border-left: 1px solid rgba(26, 23, 21, 0.16);
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
}
.commission-aside .ca-line {
  font-family: var(--font-display); font-style: italic; font-weight: 350;
  font-size: 1.1rem; color: var(--ink); line-height: 1.45; margin-bottom: 1.25rem;
}
.commission-aside .ca-addr {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em;
  line-height: 1.9; text-transform: uppercase; color: var(--stone);
}
@media (max-width: 880px) {
  .commission-inner { grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
  .commission-aside {
    border-left: none; padding-left: 0;
    border-top: 1px solid rgba(26, 23, 21, 0.16); padding-top: 1.75rem;
  }
}

/* End of main.css */

/* ============================================================
   FIX #7 — Footer link integrity + privacy notice
   ============================================================ */

/* Privacy trigger: <button> styled to match footer-bottom links */
.footer-legal-link {
  font: inherit; letter-spacing: inherit; text-transform: inherit;
  background: none; border: none; padding: 0; cursor: pointer;
  color: rgba(242, 237, 228, 0.55);
  transition: color 0.4s var(--ease-out);
}
.footer-legal-link:hover { color: var(--brass); }
.footer-legal-link:focus-visible { outline: 1px solid var(--brass); outline-offset: 3px; }

/* Privacy notice panel (centered, restrained) */
body.privacy-locked { overflow: hidden; }
.privacy {
  position: fixed; inset: 0; z-index: 300;
  visibility: hidden; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.privacy.open { visibility: visible; pointer-events: auto; }
.privacy-scrim {
  position: absolute; inset: 0;
  background: rgba(20, 17, 15, 0.55);
  opacity: 0; transition: opacity 0.5s var(--ease-out);
}
.privacy.open .privacy-scrim { opacity: 1; }
.privacy-card {
  position: relative;
  width: min(540px, 100%);
  max-height: 88vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--bone);
  border: 1px solid var(--bone-deep);
  padding: clamp(2rem, 5vw, 3.25rem);
  transform: translateY(12px); opacity: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.5s var(--ease-out);
}
.privacy.open .privacy-card { transform: translateY(0); opacity: 1; }
.privacy-card:focus { outline: none; }
.privacy-eyebrow {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--brass); margin-bottom: 1.25rem;
}
.privacy-card h2 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.05; margin-bottom: 1.5rem;
}
.privacy-card h2 em { font-style: italic; color: var(--oxblood-deep); }
.privacy-card p {
  font-size: 0.95rem; line-height: 1.7; color: var(--ink-soft); margin-bottom: 1.1rem;
}
.privacy-card p:last-child { margin-bottom: 0; }
.privacy-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--stone);
  padding: 0.4rem 0.5rem;
  transition: color 0.4s var(--ease-out);
}
.privacy-close:hover { color: var(--oxblood-deep); }
.privacy-close:focus-visible { outline: 1px solid var(--brass); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .privacy-scrim, .privacy-card { transition: none; }
}

/* Homepage recognition strip refinement */
.press-strip {
  padding: clamp(2.5rem, 4vw, 3.5rem) 0;
}
.press-strip .container {
  grid-template-columns: minmax(170px, 0.5fr) minmax(0, 3.5fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}
.press-strip .eyebrow {
  margin: 0;
  align-self: center;
  white-space: nowrap;
}
.press-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.2vw, 2rem) clamp(2rem, 4vw, 4.5rem);
  align-items: start;
  width: 100%;
}
.press-recognition {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}
.press-logos .logo {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  font-weight: 350;
  letter-spacing: 0.055em;
  line-height: 1.15;
  color: var(--ink-soft);
  font-style: italic;
  opacity: 0.9;
  white-space: normal;
}
.press-logos .logo-meta {
  font-family: var(--font-mono);
  font-size: clamp(0.64rem, 0.75vw, 0.72rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.45;
  color: var(--stone);
  white-space: normal;
}
@media (max-width: 1080px) {
  .press-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .press-strip .container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: left;
  }
  .press-strip .eyebrow {
    white-space: normal;
  }
  .press-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 1.5rem;
  }
}
@media (max-width: 520px) {
  .press-logos {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PROJECT PAGE — full case-study audit polish
   ============================================================ */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Keep the case-study comparison from fighting page scroll on touch devices. */
.ba-slider { touch-action: none; }

/* Make the project gallery captions actually readable instead of clipping below the image box. */
.gallery-item .gi-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin-top: 0;
  padding: 0.85rem 1rem 0.95rem;
  color: var(--bone);
  background: linear-gradient(180deg, rgba(26,23,21,0) 0%, rgba(26,23,21,0.76) 100%);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.gallery-item:hover .gi-cap,
.gallery-item:focus-within .gi-cap { opacity: 1; transform: translateY(0); }

@media (hover: none) {
  .gallery-item .gi-cap { opacity: 1; transform: none; }
}

@media (max-width: 768px) {
  .project-hero { min-height: 680px; height: 92vh; }
  .floorplan-wrap { padding: 2rem 1.25rem; }
  .ba-label { top: 1rem; font-size: 0.52rem; letter-spacing: 0.16em; }
  .ba-label.before { left: 1rem; }
  .ba-label.after { right: 1rem; }
  .next-project { grid-template-columns: 1fr; align-items: start; }
  .next-project .arrow-block { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .project-hero img { animation: none; transform: none; }
  .fp-svg-wrap svg .hotspot-ring { animation: none; opacity: 0.35; }
  .gallery-item .gi-cap { transition: none; }
}



/* Project hero legibility — stronger bottom-left title protection after screenshot QA. */
.project-hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 58%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 16% 82%, rgba(26,23,21,0.52) 0%, rgba(26,23,21,0.34) 34%, rgba(26,23,21,0) 68%),
    linear-gradient(180deg, rgba(26,23,21,0) 0%, rgba(26,23,21,0.52) 100%);
}
.project-hero-content { z-index: 2; }
.project-hero-content h1 {
  text-shadow: 0 18px 48px rgba(26,23,21,0.52);
}
.project-hero-meta,
.project-hero .eyebrow {
  text-shadow: 0 10px 30px rgba(26,23,21,0.45);
}



/* Project gallery credibility pass — architecture-forward crops. */
.gallery-item img {
  display: block;
  transition: transform 1.2s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.025); }
.gi-1 img { object-position: center center; }
.gi-2 img { object-position: center center; }
.gi-3 img { object-position: center 45%; }
.gi-4 img { object-position: center center; }
.gi-5 img { object-position: center center; }
.gi-6 img { object-position: center center; }
.gi-7 img { object-position: center center; }

.ba-img img { object-position: center center; }
.ba-before img { filter: saturate(0.86) contrast(0.96); }


/* Tradd case-study image crop corrections */
.ba-before img { object-position: 50% 50%; }
.ba-after img { object-position: 50% 44%; }
.gi-1 img { object-position: 50% 48%; }
.gi-2 img { object-position: 50% 50%; }
.gi-3 img { object-position: 50% 48%; }
.gi-4 img { object-position: 50% 52%; }
.gi-5 img { object-position: 50% 54%; }
.gi-6 img { object-position: 50% 50%; }
.gi-7 img { object-position: 50% 54%; }


/* ---------- Journal masthead refinement ---------- */
.journal-head {
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}
.journal-head .container + .container {
  margin-top: clamp(2rem, 4vw, 3rem);
}
.journal-masthead {
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: var(--bone-shadow);
  border: 1px solid rgba(26, 23, 21, 0.08);
  box-shadow: 0 28px 60px rgba(26, 23, 21, 0.08);
}
.journal-masthead img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 880px) {
  .journal-head { padding-top: clamp(7rem, 16vw, 9rem); }
  .journal-masthead { aspect-ratio: 4 / 3; }
}


/* Journal masthead layout correction — full-width editorial image band. */
.journal-head .container + .container {
  display: block;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
.journal-head .container + .container .journal-masthead {
  width: 100%;
}


/* ---------- Journal studio index panel ---------- */
.journal-index-panel {
  margin-top: clamp(0.5rem, 1.2vw, 1rem);
  padding: clamp(1.4rem, 2.4vw, 2rem);
  border-top: 1px solid rgba(168, 132, 92, 0.42);
  border-bottom: 1px solid rgba(26, 23, 21, 0.10);
  background:
    linear-gradient(180deg, rgba(216, 206, 188, 0.26) 0%, rgba(216, 206, 188, 0.08) 100%);
}
.journal-index-panel .jip-kicker {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1rem;
}
.journal-index-panel .jip-rule {
  width: 2.75rem;
  height: 1px;
  background: var(--brass);
  margin-bottom: 1.2rem;
  opacity: 0.75;
}
.jip-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1.2rem;
  margin-bottom: 1.4rem;
}
.jip-list a {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
  font-weight: 350;
  font-style: italic;
  line-height: 1.05;
  color: var(--ink);
  transition: color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.jip-list a:hover {
  color: var(--oxblood-deep);
  transform: translateX(3px);
}
.journal-index-panel p {
  font-family: var(--font-body);
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 34ch;
}
@media (max-width: 880px) {
  .journal-index-panel { margin-top: 0; }
  .jip-list { grid-template-columns: 1fr 1fr; }
}


/* ---------- Homepage selected work spacing refinement ---------- */
.selected-work-home {
  padding-bottom: clamp(3.5rem, 6vw, 5rem);
}
.selected-work-home .preview-grid {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.selected-work-home .selected-work-cta {
  margin-top: clamp(1rem, 2vw, 1.75rem);
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.selected-work-home + .manifesto {
  margin-top: 0;
}
@media (max-width: 768px) {
  .selected-work-home .selected-work-cta {
    justify-content: flex-start;
  }
}

/* ---------- Homepage selected work structural spacing correction ---------- */
.selected-work-home {
  padding-bottom: clamp(2.25rem, 4vw, 3.25rem);
}
.selected-work-home .pv-2,
.selected-work-home .pv-4 {
  margin-top: clamp(1.5rem, 2.4vw, 2.25rem);
}
.selected-work-home .preview-grid {
  margin-bottom: clamp(0.5rem, 1.5vw, 1rem);
}
.selected-work-home .selected-work-cta {
  margin-top: 0;
}
.selected-work-home + .manifesto {
  padding-top: clamp(2.75rem, 5vw, 4.25rem);
}
@media (max-width: 768px) {
  .selected-work-home {
    padding-bottom: clamp(3rem, 8vw, 4.5rem);
  }
  .selected-work-home + .manifesto {
    padding-top: clamp(3.25rem, 9vw, 5rem);
  }
}


/* ---------- Homepage Selected Work: final 2x2 portfolio layout ---------- */
.selected-work-home {
  padding-bottom: clamp(4rem, 7vw, 6rem);
}
.selected-work-home .preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.3vw, 2.2rem);
  align-items: start;
  margin-bottom: clamp(1.5rem, 2.5vw, 2.25rem);
}
.selected-work-home .pv-card,
.selected-work-home .pv-1,
.selected-work-home .pv-2,
.selected-work-home .pv-3,
.selected-work-home .pv-4 {
  grid-column: auto !important;
  margin-top: 0 !important;
}
.selected-work-home .pv-card .pv-img {
  aspect-ratio: 16 / 10;
}
.selected-work-home .selected-work-cta {
  margin-top: clamp(1rem, 2vw, 1.75rem);
  display: flex;
  justify-content: flex-end;
}
.selected-work-home + .manifesto {
  margin-top: 0;
}
@media (max-width: 768px) {
  .selected-work-home .preview-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .selected-work-home .selected-work-cta {
    justify-content: flex-start;
  }
}


/* ---------- Mobile homepage hero-to-intro tightening ---------- */
@media (max-width: 768px) {
  .home-page .hero-01 {
    min-height: 82vh;
  }
  .home-page .hero-01-photo {
    transform: none !important;
    background-position: 42% center;
  }
  .home-page .hero-01-content {
    padding-top: clamp(4.5rem, 18vw, 6rem);
    padding-bottom: clamp(2rem, 8vw, 3rem);
  }
  .home-page .hero-01-scroll {
    bottom: clamp(2.4rem, 9vw, 3.2rem);
  }
  .home-page .intro.section {
    padding-top: clamp(2.75rem, 9vw, 4rem);
  }
  .home-page .intro-grid {
    gap: clamp(1.6rem, 6vw, 2.25rem);
  }
  .home-page .intro-eye {
    margin-bottom: 1rem;
  }
  .home-page .intro-foot {
    margin-top: 1.75rem;
  }
}
