/* ═══════════════════════════════════════════════════════════════════
   Yellowwood Atelier — Oct 2026 refresh layer (shared by every page)
   Interiors-first · Cormorant display · night sections · arch motif
   ═══════════════════════════════════════════════════════════════════ */
:root{ --night:#161D17; --lamp:#EBC891; --navh:70px; }

/* ── Display type: one serif voice across the site ── */
h1, h2,
.manifesto h2, .featured-text h3, .bridge h2, .faq h2, .apply h2,
.subhero h1, .hero h1, .case-hero h1{
  font-family: var(--font-serif, 'Cormorant Garamond'), Georgia, serif !important;
  font-weight: 400 !important;
  letter-spacing: -0.012em;
}
h1{ line-height: 1.0; }
h2{ line-height: 1.06; }
h1 em, h2 em{ font-style: italic; }

/* ── Page openings: text + arched interior ── */
.sh-v2{
  display: grid !important;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: clamp(36px, 6vw, 110px);
  align-items: end;
  padding: clamp(64px, 10vh, 120px) var(--gutter, 5vw) clamp(56px, 9vh, 110px) !important;
  min-height: min(calc(100vh - var(--navh)), 860px);
  background: var(--night) !important;
  color: var(--bone, #F6F4EE);
  isolation: isolate;
}
.sh-v2 > .subhero-mark-bleed, .sh-v2 > .subhero-topo, .sh-v2 > .subhero-mark,
.sh-v2 > .hero-mark, .sh-v2 > .hero-topo{ display: none !important; }
.sh-v2 > :not(.sh-arch){ position: relative; z-index: 2; max-width: 720px; padding: 0 !important; margin: 0 !important; align-self: center; }
.sh-v2 h1{ font-size: clamp(46px, 6vw, 98px) !important; color: var(--bone, #F6F4EE) !important; margin: 18px 0 26px !important; }
.sh-v2 h1 em{ color: var(--clay, #DBA39D); }
.sh-v2 p{ color: rgba(246,244,238,.8) !important; font-size: clamp(17px, 1.3vw, 20px) !important; line-height: 1.65 !important; max-width: 52ch !important; }
.sh-v2 .eyebrow, .sh-v2 .subhero-eyebrow{ color: var(--lamp) !important; }
.sh-v2 .subhero-rule, .sh-v2 .hero-rule{ background: var(--lamp) !important; }

.sh-arch{ position: relative; margin: 0; justify-self: end; width: 100%; max-width: 470px; align-self: end; }
.sh-arch .sh-ph{ position: relative; aspect-ratio: 4 / 5.3; border-radius: 999px 999px 0 0; overflow: hidden; background: #0f140f; }
.sh-arch img{ width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.12); animation: shSettle 2.4s cubic-bezier(.2,.7,.2,1) .15s forwards; }
.sh-arch::before{ content: ''; position: absolute; inset: -15px -15px 32px -15px; border: 1px solid rgba(235,200,145,.5); border-bottom: 0; border-radius: 999px 999px 0 0; pointer-events: none; }
.sh-arch figcaption{ display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-top: 14px; }
.sh-arch .sc-proj{ font-family: var(--font-serif, 'Cormorant Garamond'), Georgia, serif; font-style: italic; font-size: 18px; color: var(--bone, #F6F4EE); }
.sh-arch .sc-place{ font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: rgba(246,244,238,.55); }
.sh-arch a{ color: inherit; text-decoration: none; }
.sh-arch a:hover .sc-proj{ color: var(--lamp); }
@keyframes shSettle{ to{ transform: scale(1); } }
@media (max-width: 860px){
  .sh-v2{ grid-template-columns: 1fr; min-height: 0; align-items: start; }
  .sh-arch{ justify-self: start; max-width: 340px; }
}

/* ── Apply blocks: night + a faint interior, every page ── */
.ap-v2{ background: var(--night) !important; color: var(--bone, #F6F4EE) !important; position: relative; overflow: hidden; isolation: isolate; }
.ap-v2::before{ display: none !important; }
.ap-v2::after{ content: ''; position: absolute; inset: 0; z-index: -1; background-image: var(--ap-img); background-size: cover; background-position: center; opacity: .2; }
.ap-v2 h2, .ap-v2 p, .ap-v2 .eyebrow, .ap-v2 span{ color: var(--bone, #F6F4EE) !important; }
.ap-v2 h2 em{ color: var(--clay, #DBA39D) !important; }
.ap-v2 .eyebrow{ color: var(--lamp) !important; }
.ap-v2 p{ opacity: .85; }
.ap-v2 .cta, .ap-v2 .apply-cta{ background: transparent !important; color: var(--bone, #F6F4EE) !important; border: 1px solid var(--gold, #D4A937) !important; }
.ap-v2 .cta:hover, .ap-v2 .apply-cta:hover{ background: var(--gold, #D4A937) !important; color: var(--forest, #253026) !important; }

/* ── Portfolio index + project pages ── */
.pfx{ background: var(--bone, #F6F4EE); padding: clamp(70px, 10vw, 140px) var(--gutter, 5vw); }
.pfx-grid{ max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(40px, 5vw, 80px) clamp(20px, 3vw, 44px); }
.pfx-card{ grid-column: span 6; display: block; color: var(--forest, #253026); text-decoration: none; }
.pfx-card.lg{ grid-column: span 7; }
.pfx-card.sm{ grid-column: span 5; margin-top: clamp(40px, 8vw, 140px); }
.pfx-card .ph{ position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: #e8e3d6; }
.pfx-card.arch .ph{ aspect-ratio: 4 / 5; border-radius: 999px 999px 0 0; }
.pfx-card img{ width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.pfx-card:hover img{ transform: scale(1.04); }
.pfx-card .meta{ display: flex; justify-content: space-between; align-items: baseline; gap: 18px; margin-top: 18px; }
.pfx-card .name{ font-family: var(--font-serif, 'Cormorant Garamond'), Georgia, serif; font-size: clamp(30px, 2.8vw, 44px); line-height: 1; }
.pfx-card .place{ font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--gray, #525C53); white-space: nowrap; }
.pfx-card .desc{ margin-top: 10px; font-size: 15px; line-height: 1.65; color: var(--gray, #525C53); max-width: 52ch; }
.pfx-card .tag{ display: inline-block; margin-top: 14px; font-size: 11px; color: #8a6d2f; border-bottom: 1px solid var(--gold, #D4A937); padding-bottom: 4px; }
@media (max-width: 860px){ .pfx-card, .pfx-card.lg, .pfx-card.sm{ grid-column: 1 / -1; margin-top: 0; } }

.gal{ background: var(--night); color: var(--bone, #F6F4EE); padding: clamp(70px, 10vw, 140px) var(--gutter, 5vw); }
.gal-head{ max-width: 1320px; margin: 0 auto clamp(40px, 5vw, 70px); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.gal-head h2{ font-size: clamp(40px, 4.6vw, 72px); }
.gal-head p{ color: rgba(246,244,238,.75); line-height: 1.7; max-width: 52ch; }
.gal-grid{ max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.gal-grid figure{ margin: 0; position: relative; overflow: hidden; grid-column: span 6; }
.gal-grid figure.w8{ grid-column: span 8; } .gal-grid figure.w4{ grid-column: span 4; } .gal-grid figure.w12{ grid-column: 1 / -1; }
.gal-grid figure.arch{ border-radius: 999px 999px 0 0; }
.gal-grid img{ width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 3 / 2; }
.gal-grid figure.w4 img, .gal-grid figure.arch img{ aspect-ratio: 3 / 4; }
.gal-grid figure.w12 img{ aspect-ratio: 21 / 9; }
.gal-grid figcaption{ position: absolute; left: 16px; bottom: 14px; font-family: var(--font-serif, 'Cormorant Garamond'), Georgia, serif; font-style: italic; font-size: 18px; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.55); }
@media (max-width: 860px){ .gal-head{ grid-template-columns: 1fr; } .gal-grid figure, .gal-grid figure.w8, .gal-grid figure.w4{ grid-column: 1 / -1; } }

.notes{ background: var(--bone, #F6F4EE); padding: clamp(70px, 10vw, 130px) var(--gutter, 5vw); }
.notes-inner{ max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(30px, 6vw, 100px); }
.notes h2{ font-size: clamp(38px, 4vw, 60px); color: var(--forest, #253026); }
.notes dl{ margin: 0; }
.notes dt{ font-family: var(--font-serif, 'Cormorant Garamond'), Georgia, serif; font-style: italic; font-size: 22px; color: var(--forest, #253026); margin-top: 26px; }
.notes dt:first-child{ margin-top: 0; }
.notes dd{ margin: 6px 0 0; font-size: 15px; line-height: 1.7; color: var(--gray, #525C53); padding-bottom: 22px; border-bottom: 1px solid var(--rule, #E8E5DC); }
@media (max-width: 860px){ .notes-inner{ grid-template-columns: 1fr; } }

/* ── Homepage: more from the studio ── */
.more-work{ max-width: 1320px; margin: clamp(90px, 10vw, 140px) auto 0; position: relative; z-index: 2; }
.more-work-head{ display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 30px; border-top: 1px solid var(--rule, #E8E5DC); padding-top: 26px; }
.more-work-head h3{ font-family: var(--font-serif, 'Cormorant Garamond'), Georgia, serif; font-weight: 400; font-size: clamp(30px, 3vw, 44px); color: var(--forest, #253026); }
.more-work-head a{ font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: #8a6d2f; border-bottom: 1px solid var(--gold, #D4A937); padding-bottom: 5px; }
.more-work-row{ display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 28px); }
.more-work-row a{ display: block; color: var(--forest, #253026); }
.more-work-row .ph{ aspect-ratio: 3 / 4; overflow: hidden; border-radius: 999px 999px 0 0; }
.more-work-row img{ width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.more-work-row a:hover img{ transform: scale(1.05); }
.more-work-row .n{ display: block; margin-top: 14px; font-family: var(--font-serif, 'Cormorant Garamond'), Georgia, serif; font-style: italic; font-size: 22px; }
.more-work-row .p{ display: block; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--gray, #525C53); margin-top: 2px; }
@media (max-width: 860px){ .more-work-row{ grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce){ .sh-arch img{ animation: none; transform: none; } .pfx-card img, .more-work-row img{ transition: none; } }

/* ── Retire the pastel blocks: mist → warm stone, clay CTAs → night ── */
:root{ --mist: #E7E1D4; }
.disclaimer-bar, .zillow-capture, .section-divider{ background-color: #E7E1D4 !important; }
.context, .next-step, .cta-card, .legacy{ background-color: var(--night) !important; background-image: none !important; color: var(--bone, #F6F4EE) !important; }
.context :is(h2,h3,h4,p,span,li,div,strong), .next-step :is(h2,h3,h4,p,span,li,strong), .cta-card :is(h2,h3,h4,p,span,li,strong), .legacy :is(h2,h3,h4,p,span,li,strong){ color: var(--bone, #F6F4EE) !important; }
.context em, .next-step em, .cta-card em, .legacy em{ color: var(--clay, #DBA39D) !important; }
.context .eyebrow, .next-step .eyebrow, .cta-card .eyebrow, .legacy .eyebrow{ color: var(--lamp) !important; }
.next-step a, .cta-card a{ border-color: var(--gold, #D4A937) !important; }
.next-step :is(h2,h3), .cta-card :is(h2,h3){ font-family: var(--font-serif, 'Cormorant Garamond'), Georgia, serif !important; font-weight: 400 !important; font-size: clamp(34px, 3.6vw, 54px) !important; line-height: 1.05 !important; letter-spacing: -.01em; }
.next-step a, .cta-card a{ background: transparent !important; color: var(--bone, #F6F4EE) !important; border: 1px solid var(--gold, #D4A937) !important; }
.next-step a:hover, .cta-card a:hover{ background: var(--gold, #D4A937) !important; color: var(--forest, #253026) !important; }
.sh-v2 p.hero-byline{ font-size: 11px !important; letter-spacing: .18em; line-height: 1.8 !important; color: rgba(246,244,238,.6) !important; }
@media (max-width: 820px){ .portal-tag{ display: none !important; } }
