/* Page compositions (v4). Loaded after components.css. */

/* ======================================================================
   Home hero: light through stone
   ====================================================================== */
.hx { position: relative; background: #211B16; color: var(--c-milk); isolation: isolate; }
.hx__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.hx__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.hx__img--day { opacity: 0; transition: opacity .6s var(--ease); }
.hx[data-light="day"] .hx__img--day { opacity: 1; }
.hx__inner { position: relative; padding-block: 16px 32px; display: grid; gap: 24px; }
.hx__copy { max-width: 38rem; }
.hx h1 { font-size: clamp(2.75rem, 1.4rem + 4.6vw, 5.25rem); line-height: 1.02; letter-spacing: -0.015em; }
.hx__lead { margin-top: 20px; font-size: var(--fs-lead); line-height: 1.5; color: #EDE6DA; max-width: 31rem; }
.hx .actions { margin-top: 32px; }
.hx :focus-visible { outline-color: var(--c-milk); }
.hx__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; order: -1; }
.hx__caption { font-size: var(--fs-cap); color: #E9E1D4; max-width: none; }
.hx__caption .tag { margin-right: 8px; }

.light-toggle { display: inline-flex; padding: 3px; border: 1px solid rgba(247, 242, 233, .5); border-radius: 3px; }
.light-toggle[hidden] { display: none; }
.light-toggle button {
  min-width: 84px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 2px; background: transparent; color: var(--c-milk);
  font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease);
}
.light-toggle button:hover { background: rgba(247, 242, 233, .12); }
.light-toggle button[aria-pressed="true"] { background: var(--c-milk); color: var(--c-graphite); }

/* The one orchestrated moment: the stone's light comes on after load */
.js .hx--intro .hx__img--evening { filter: brightness(.42) saturate(.85); }
.js .hx--lit .hx__img--evening { filter: none; transition: filter 1.8s cubic-bezier(.3, .1, .2, 1) .2s; }
@media (prefers-reduced-motion: reduce) {
  .js .hx--intro .hx__img--evening, .js .hx--lit .hx__img--evening { filter: none; transition: none; }
  .hx__img--day { transition: none; }
}

@media (min-width: 900px) {
  .hx { min-height: min(calc(100vh - var(--header-h)), 880px); min-height: min(calc(100svh - var(--header-h)), 880px); display: grid; align-items: stretch; }
  .hx__media { position: absolute; inset: 0; aspect-ratio: auto; }
  .hx__img { object-position: 62% 50%; }
  /* Dark only where the copy sits: a soft pool bottom-left, the kitchen stays visible */
  .hx__media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
      radial-gradient(120% 95% at 0% 100%, rgba(33, 27, 22, .9) 0%, rgba(33, 27, 22, .74) 32%, rgba(33, 27, 22, .2) 58%, rgba(33, 27, 22, 0) 72%),
      linear-gradient(0deg, rgba(33, 27, 22, .55) 0%, rgba(33, 27, 22, 0) 22%);
  }
  .hx[data-light="day"] .hx__media::after {
    background:
      radial-gradient(125% 100% at 0% 100%, rgba(33, 27, 22, .92) 0%, rgba(33, 27, 22, .8) 34%, rgba(33, 27, 22, .3) 60%, rgba(33, 27, 22, 0) 76%),
      linear-gradient(0deg, rgba(33, 27, 22, .6) 0%, rgba(33, 27, 22, 0) 24%);
  }
  .hx__inner { grid-template-rows: 1fr auto; padding-block: 64px 32px; min-height: inherit; }
  .hx__copy { align-self: end; padding-bottom: 40px; }
  .hx__bar { order: 0; }
}
@media (min-width: 900px) and (max-width: 1199px) { .hx__copy { max-width: 32rem; } }

/* ======================================================================
   Page heroes — one per kind of page
   ====================================================================== */
.ph { padding-top: 20px; }
.ph h1 { font-size: var(--fs-hero); }
.ph__lead { font-size: var(--fs-lead); line-height: 1.5; max-width: 34rem; }
.ph__meta { margin: 0; }

/* Wide: big headline across, lead + action to the side, then a full-bleed frame */
.ph--wide .ph__head { display: grid; gap: 20px; margin-top: 20px; }
.ph--wide h1 { max-width: 13ch; }
@media (min-width: 960px) { .ph--wide h1 { max-width: none; } }
.ph--wide .ph__aside { display: grid; gap: 24px; justify-items: start; align-content: end; }
.ph--wide .ph__bleed { margin-top: 24px; }
.ph--wide .ph__bleed > img { --ratio: 4 / 3; border-radius: 0; }
@media (min-width: 960px) {
  .ph--wide .ph__head { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--grid-gap); margin-top: 24px; }
  .ph--wide h1 { grid-column: 1 / span 8; }
  .ph--wide .ph__aside { grid-column: 9 / span 4; padding-bottom: 10px; }
  .ph--wide .ph__bleed { margin-top: 32px; }
  .ph--wide .ph__bleed > img { --ratio: 21 / 8; max-height: 62vh; max-height: 62svh; }
}

/* Split: copy on the left, an image bleeding to the right edge of the window */
.ph--split { padding-top: 0; }
.ph--split .ph__grid { display: grid; gap: 28px; }
.ph--split .ph__text { display: grid; gap: 24px; justify-items: start; padding: 28px var(--gutter) 0; }
.ph--split .ph__text .breadcrumbs { margin-bottom: 4px; }
.ph--split .ph__img > img { --ratio: 4 / 3; border-radius: 0; }
@media (min-width: 960px) {
  .ph--split .ph__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; min-height: min(calc(100svh - var(--header-h)), 620px); }
  .ph--split .ph__text {
    grid-template-rows: auto 1fr; grid-auto-rows: auto; align-content: stretch;
    padding: 24px 56px 44px max(var(--gutter), calc((100vw - var(--container)) / 2));
  }
  .ph--split .ph__text h1 { align-self: end; max-width: 11ch; }
  .ph--split .ph__img { display: grid; }
  .ph--split .ph__img > img { aspect-ratio: auto; height: 100%; min-height: 440px; }
  }

/* Object: a horizontal still life, headline under it on the left, lead on the right */
.ph--object .ph__img { margin-top: 20px; }
.ph--object .ph__img > img { --ratio: 4 / 3; }
.ph--object .ph__head { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 960px) {
  .ph--object .ph__img > img { --ratio: 21 / 8; max-height: 60vh; max-height: 60svh; }
  .ph--object .ph__head { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--grid-gap); margin-top: 28px; align-items: end; }
  .ph--object h1 { grid-column: 1 / span 7; }
  .ph--object .ph__lead { grid-column: 8 / span 5; padding-bottom: 12px; }
}

/* Cover: full-bleed dark image with the headline on it */
.ph--cover { position: relative; padding: 0; background: #211B16; color: var(--c-milk); isolation: isolate; }
.ph--cover .ph__img { margin: 0; }
.ph--cover .ph__img > img { --ratio: 4 / 3; border-radius: 0; }
.ph--cover .ph__img > figcaption { display: none; }
.ph--cover .ph__text { padding-block: 24px 48px; display: grid; gap: 20px; justify-items: start; }
.ph--cover .breadcrumbs ol { color: #CFC5B6; }
.ph--cover .breadcrumbs a { color: var(--c-milk); }
.ph--cover .ph__lead { color: #EDE6DA; }
.ph--cover .ph__cap { font-size: var(--fs-cap); color: #CFC5B6; }
.ph--cover :focus-visible { outline-color: var(--c-milk); }
.ph--cover .tag { border-color: rgba(247, 242, 233, .6); color: var(--c-milk); margin-right: 8px; }
@media (min-width: 960px) {
  .ph--cover { min-height: min(calc(100svh - var(--header-h)), 620px); display: grid; }
  .ph--cover .ph__img { position: absolute; inset: 0; z-index: -1; }
  .ph--cover .ph__img > img { aspect-ratio: auto; height: 100%; }
  .ph--cover .ph__img::after { content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(33, 27, 22, .88) 0%, rgba(33, 27, 22, .7) 30%, rgba(33, 27, 22, .1) 58%, rgba(33, 27, 22, 0) 70%); }
  .ph--cover .container { display: grid; grid-template-rows: 1fr; }
  .ph--cover .ph__text { padding-block: 24px 48px; align-self: stretch; grid-template-rows: auto 1fr; grid-auto-rows: auto; max-width: 36rem; }
  .ph--cover .ph__text h1 { align-self: end; }
}

/* Plain: words only */
.ph--plain { padding-bottom: var(--join-y); }
.ph--plain .ph__head { display: grid; gap: 16px; margin-top: 20px; max-width: 54rem; }

/* ======================================================================
   Section heads
   ====================================================================== */
.hd { display: grid; gap: 12px; margin-bottom: 24px; max-width: 46rem; }
.hd p { font-size: var(--fs-lead); line-height: 1.5; }
h2.hd--sm, .hd--sm h2 { font-size: clamp(1.75rem, 1.45rem + 1.1vw, 2.5rem); }
@media (min-width: 960px) {
  .hd { margin-bottom: 32px; }
  .hd--split { max-width: none; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--grid-gap); align-items: end; }
  .hd--split > :first-child { grid-column: 1 / span 6; }
  .hd--split > :not(:first-child) { grid-column: 8 / span 5; padding-bottom: 6px; }
}

/* ======================================================================
   Feature: a large image and a narrow column of text
   ====================================================================== */
.fx { display: grid; gap: 24px; }
.fx__text { display: grid; gap: 16px; align-content: end; justify-items: start; }
.fx__text p + p { margin-top: -4px; }
@media (min-width: 960px) {
  .fx { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--grid-gap); align-items: end; }
  .fx > .fig { grid-column: 1 / span 8; }
  .fx > .fx__text { grid-column: 9 / span 4; padding-bottom: 12px; }
  .fx--flip > .fig { grid-column: 5 / span 8; order: 2; }
  .fx--flip > .fx__text { grid-column: 1 / span 4; }
  .fx--top { align-items: start; }
  .fx--top > .fx__text { padding: 0; }
}
@media (max-width: 959px) { .fx > .fx__text { order: -1; } }

/* Anatomy: image with pins + keys */
.anat { display: grid; gap: 32px; }
@media (min-width: 960px) {
  .anat { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--grid-gap); align-items: start; }
  .anat > .fig { grid-column: 1 / span 8; }
  .anat > .keys { grid-column: 9 / span 4; }
  .anat--wide > .fig { grid-column: 1 / -1; }
  .anat--wide > .keys { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 32px; }
}
@media (min-width: 960px) {
  .anat--portrait > .fig { grid-column: 1 / span 6; }
  .anat--portrait > .keys { grid-column: 8 / span 5; align-self: center; }
}
@media (min-width: 640px) and (max-width: 959px) { .anat--wide > .keys { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; } }

/* "Included" list beside an intro */
.kx { display: grid; gap: 32px; }
.kx__list { list-style: none; padding: 0; margin: 0; display: grid; border-top: 1px solid var(--c-graphite); align-self: start; }
.kx__list li { padding: 14px 0; border-bottom: 1px solid #D3C8B8; }
@media (min-width: 640px) { .kx__list { grid-template-columns: 1fr 1fr; column-gap: 32px; } .kx__list--one { grid-template-columns: 1fr; } }
.fx__text .kx__list { width: 100%; }
.section:not(.section--stone) .kx__list li { border-bottom-color: var(--c-border); }
@media (min-width: 960px) {
  .kx { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--grid-gap); }
  .kx > :first-child { grid-column: 1 / span 5; }
  .kx > .kx__list { grid-column: 7 / span 6; }
}

/* ======================================================================
   Home
   ====================================================================== */
/* Services: one lead card + three side cards with steady proportions */
.svc { display: grid; gap: 40px 24px; }
.svc__side { display: grid; gap: 28px; }
.svc .card--lead .card__title { font-family: var(--f-display); font-weight: 500; font-size: var(--fs-h2); line-height: 1.05; }
@media (max-width: 959px) {
  .svc__side .card { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; }
  }
@media (min-width: 960px) {
  .svc { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--grid-gap); }
  .svc > .card--lead { grid-column: 1 / span 7; }
  .svc__side { grid-column: 9 / span 4; gap: 32px; align-content: start; }
  .svc__side .card { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: center; }
  }

/* Showroom announce */
.sx { display: grid; gap: 32px; }
.decisions { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--c-graphite); }
.decisions li { padding: 18px 0; border-bottom: 1px solid var(--c-border); }
.decisions h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.decisions p { }
.section--dark .decisions { border-top-color: rgba(247, 242, 233, .5); }
.section--dark .decisions li { border-bottom-color: rgba(247, 242, 233, .18); }
.section--dark .decisions p { color: var(--c-stone); }
.sx__aside { display: grid; gap: 20px; align-content: start; justify-items: start; }
@media (min-width: 960px) {
  .sx { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--grid-gap); align-items: start; }
  .sx > .fig { grid-column: 1 / span 8; }
  .sx > .sx__aside { grid-column: 9 / span 4; }
}

/* Process strip: a real sequence, so numbers are meaningful */
.strip { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; border-top: 1px solid var(--c-graphite); }
.strip li { counter-increment: s; display: grid; align-content: start; grid-template-columns: 56px 1fr; gap: 4px 16px; padding: 20px 0; border-bottom: 1px solid var(--c-border); }
.strip li::before { content: counter(s); grid-row: span 2; font-family: var(--f-display); font-size: 2.5rem; line-height: .9; color: var(--c-gold-dark); }
.strip h3 { font-size: 1.0625rem; }
.strip p { }
@media (min-width: 1080px) {
  .strip { grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 0; }
  .strip li { grid-template-columns: 1fr; padding: 24px 24px 0 0; border-bottom: 0; }
  .strip li + li { padding-left: 24px; border-left: 1px solid var(--c-border); }
  .strip li::before { grid-row: auto; font-size: 2.5rem; margin-bottom: 12px; }
}
.strip-more { margin-top: 20px; }

/* ======================================================================
   Workshop drawings (SVG)
   ====================================================================== */
.wd { display: grid; gap: 40px; }
.wd__head { display: grid; gap: 16px; align-content: start; justify-items: start; }
.wd__figure { margin: 0; }
.wd__svg { width: 100%; height: auto; overflow: visible; }
.wd__lead path { fill: none; stroke: var(--c-graphite); stroke-width: 1; }
.wd__mark circle { fill: var(--c-graphite); }
.wd__mark text { fill: var(--c-milk); font-family: var(--f-text); font-size: 15px; font-weight: 600; text-anchor: middle; }
.wd__keys { margin-top: 28px; }
.wd__keys.keys li::before { background: var(--c-graphite); color: var(--c-milk); }
@media (min-width: 720px) { .wd__keys { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; } }
@media (min-width: 960px) {
  .wd { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--grid-gap); align-items: center; }
  .wd__head { grid-column: 1 / span 4; }
  .wd__figure { grid-column: 6 / span 7; }
}
@media (max-width: 640px) {
  .wd__mark circle { r: 24px; }
  .wd__mark text { font-size: 24px; }
}
.wx-mdf { fill: url(#mdf-hatch); stroke: var(--c-graphite); stroke-width: 1.25; }
.wx-mdf--quiet { stroke: none; }
.wx-primer { fill: #F1ECE3; stroke: var(--c-muted); stroke-width: 1; stroke-dasharray: 3 3; }
.wx-paint { fill: #C9BFB0; stroke: var(--c-graphite); stroke-width: 1.25; }
.wx-dim, .wx-tool { fill: none; stroke: var(--c-graphite); stroke-width: 1; }
.wx-dimtext, .wx-note { font-family: var(--f-text); font-size: 13px; font-weight: 600; fill: var(--c-graphite); }
.wx-note-line { margin-top: 16px; font-size: var(--fs-cap); color: var(--c-muted); max-width: none; }
.wx-note-line .tag { margin-right: 8px; }

/* Large state-by-state sequence (Craft, Finishes) */
.states { list-style: none; padding: 0; margin: 0; display: grid; counter-reset: st; border-top: 1px solid var(--c-graphite); }
.states li { counter-increment: st; display: grid; gap: 6px; align-content: start; padding: 18px 0 20px; border-bottom: 1px solid var(--c-border); }
.states li::before { content: counter(st); font-family: var(--f-display); font-size: 2.5rem; line-height: .9; color: var(--c-gold-dark); }
.states .wx-svg { width: 100%; max-width: 360px; height: auto; margin: 12px 0 8px; overflow: visible; }
.states p { }
@media (min-width: 640px) { .states { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
@media (min-width: 1080px) {
  .states { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 0; }
  .states li { padding: 18px 20px 0; border-bottom: 0; }
  .states li:first-child { padding-left: 0; }
  .states li + li { border-left: 1px solid var(--c-border); }
}

/* ======================================================================
   Process page: vertical stages
   ====================================================================== */
.stages { list-style: none; padding: 0; margin: 0; counter-reset: sg; border-top: 1px solid var(--c-graphite); }
.stages > li { counter-increment: sg; display: grid; align-content: start; gap: 10px 24px; padding: 22px 0 24px; border-bottom: 1px solid var(--c-border); }
.stages > li::before { content: counter(sg); font-family: var(--f-display); font-size: clamp(2.25rem, 1.9rem + 1.4vw, 3.25rem); line-height: .9; color: var(--c-gold-dark); }
.stages h2 { font-size: clamp(1.5rem, 1.3rem + .7vw, 2rem); }
.stages__where { font-size: var(--fs-cap); font-weight: 600; color: var(--c-muted); margin-top: 8px; }
.stages ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.stages ul li { position: relative; padding-left: 22px; }
.stages ul li::before { content: ""; position: absolute; left: 0; top: .8em; width: 12px; height: 1px; background: var(--c-gold-dark); }
.stages .fig { margin-top: 12px; }
@media (min-width: 960px) {
  .stages > li { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--grid-gap); padding: 28px 0 30px; }
  .stages > li::before { grid-column: 1 / span 2; }
  .stages__title { grid-column: 3 / span 4; }
  .stages__body { grid-column: 8 / span 5; }
  .stages .fig { grid-column: 3 / -1; margin-top: 16px; }
}

/* Where each part happens */
.where { display: grid; gap: 32px; }
.where > div { padding-top: 20px; border-top: 1px solid var(--c-graphite); }
.where h3 { margin-bottom: 12px; }
.where ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.section--dark .where > div { border-top-color: rgba(247, 242, 233, .5); }
.section--dark .where li { color: var(--c-stone); }
@media (min-width: 768px) { .where { grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap); } }

/* ======================================================================
   Materials page
   ====================================================================== */
.species { list-style: none; padding: 0; margin: 0; display: grid; border-top: 1px solid var(--c-graphite); }
.species li { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--c-border); }
.species__name { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.875rem, 1.5rem + 1.4vw, 2.75rem); line-height: 1; }
.species__note { }
@media (min-width: 720px) {
  .species { grid-template-columns: 1fr 1fr; column-gap: var(--grid-gap); }
  .species li { padding: 20px 0; }
}

.mats { display: grid; gap: 32px; }
.mats > div { display: grid; gap: 10px; align-content: start; padding-top: 20px; border-top: 1px solid var(--c-graphite); }
.mats__use { }
.mats__use a { color: var(--c-graphite); }
.section--stone .mats > div { border-top-color: var(--c-graphite); }
@media (min-width: 768px) { .mats { grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap); } }

/* ======================================================================
   Craft overview: topics
   ====================================================================== */
.topics { display: grid; gap: 40px 24px; }
@media (min-width: 720px) { .topics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); } }

/* ======================================================================
   Showroom: day / evening pair
   ====================================================================== */
.pair { display: grid; gap: 28px; }
@media (min-width: 720px) { .pair { grid-template-columns: 1fr 1fr; gap: var(--grid-gap); } }

.status-note { margin-top: 24px; font-size: var(--fs-small); color: var(--c-muted); max-width: 40rem; }
.status-note .tag { margin-right: 8px; }

/* ======================================================================
   Contact section with the full form (home, contact)
   ====================================================================== */
.cx-compact { padding-top: var(--join-y); }

/* 404 */
.nf { padding-block: 40px var(--section-y); }
.nf h1 { margin-bottom: 16px; }
.nf ul { list-style: none; padding: 0; margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 32px; }

/* ======================================================================
   Our work
   ====================================================================== */
.works { display: grid; gap: 40px; }
.work { display: grid; gap: 16px; color: var(--c-graphite); text-decoration: none; }
.work__text { display: grid; gap: 8px; }
.work__meta { font-size: var(--fs-cap); font-weight: 600; color: var(--c-muted); }
.work__meta .tag { margin-right: 8px; }
.work__title { font-family: var(--f-display); font-weight: 500; font-size: var(--fs-h2); line-height: 1.05;
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: .15em; transition: text-decoration-color .2s var(--ease); }
.work__desc { max-width: 40rem; }
.work:hover { color: var(--c-graphite); }
.work:hover .work__title { text-decoration-color: var(--c-gold-dark); }
.work:focus-visible { outline: 2px solid var(--c-graphite); outline-offset: 6px; }
.works__note { display: grid; gap: 12px; align-content: start; justify-items: start; padding-top: 20px; border-top: 1px solid var(--c-graphite); }
@media (min-width: 960px) {
  .works { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--grid-gap); }
  .work--lead { grid-column: 1 / span 8; }
  .works__note { grid-column: 10 / span 3; }
}

/* Radio variant of the room chooser */
.room--radio span::before { border-radius: 50%; }
.room--radio input:checked + span::before { background-image: none; box-shadow: inset 0 0 0 4px var(--c-milk); }
.section--stone .room--radio input:checked + span::before { box-shadow: inset 0 0 0 4px var(--c-stone); }
.cx__aside .decisions li { border-bottom-color: #D3C8B8; }

/* ======================================================================
   v6 — denser, after the client's prototype
   ====================================================================== */
/* Short gold rule above section headings */
.ph h1::before, .hd > h2::before, h2.hd::before, .hd--rule::before, .fx__text > h2::before, .wd__head > h2::before,
.kx h2::before, .cta h2::before, .band__text > h2::before, .sx__aside > h2::before {
  content: ""; display: block; width: 32px; height: 1px; margin-bottom: 16px; background: var(--c-gold);
}
.ph--cover h1::before { background: var(--c-gold); }
h2.visually-hidden::before { content: none; }
.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--c-muted); }

/* Home hero: copy on milk, daylight photo to the right edge */
.hs .ph__text h1 { max-width: 14ch; }
/* Full-width home hero: the photo spans the whole page, the copy sits on a soft milk fade at the left */
@media (min-width: 960px) {
  .hs .ph__grid { display: block; position: relative; min-height: min(calc(100svh - var(--header-h)), 680px); }
  .hs .ph__img { position: absolute; inset: 0; }
  .hs .ph__img > img { height: 100%; min-height: 0; aspect-ratio: auto; border-radius: 0; }
  .hs .ph__img::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(247, 242, 233, .97) 0%, rgba(247, 242, 233, .93) calc((100vw - var(--container)) / 2 + 420px), rgba(247, 242, 233, .55) calc((100vw - var(--container)) / 2 + 600px), rgba(247, 242, 233, 0) calc((100vw - var(--container)) / 2 + 780px)); }
  .hs .ph__img > figcaption { z-index: 1; }
  .hs .ph__text { position: relative; z-index: 1; min-height: inherit; width: calc(max(var(--gutter), (100vw - var(--container)) / 2) + 560px); max-width: 60%; }
}
.hs .eyebrow { margin-bottom: -4px; }

/* Four rooms in a row */
.rooms4 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; }
.rooms4 .card { gap: 10px; }
.rooms4 .card__title { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); line-height: 1.1; order: -1; }
.rooms4 .card__desc { font-size: .9375rem; }
@media (min-width: 900px) { .rooms4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--grid-gap); } }

/* Band: photo + short text */
.band { display: grid; gap: 20px; align-items: center; }
.band__text { display: grid; gap: 12px; justify-items: start; }
@media (min-width: 960px) {
  .band { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--grid-gap); }
  .band > .fig { grid-column: 1 / span 6; }
  .band > .band__text { grid-column: 8 / span 5; }
  .band--flip > .fig { grid-column: 7 / span 6; order: 2; }
  .band--flip > .band__text { grid-column: 1 / span 5; }
}

/* Line icons */
.ico { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--c-gold-dark); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.section--dark .ico { stroke: var(--c-gold); }

/* Icon list: detail + short fact + link */
.ilist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--c-border); }
.ilist li { display: grid; grid-template-columns: 40px 1fr; gap: 2px 14px; padding: 14px 0; border-bottom: 1px solid var(--c-border); }
.ilist .ico { grid-row: span 3; margin-top: 2px; }
.ilist h3 { font-size: 1.0625rem; }
.ilist p { font-size: 1rem; }
.ilist a { font-size: var(--fs-small); font-weight: 600; color: var(--c-graphite); text-decoration-color: var(--c-gold-dark); text-underline-offset: .3em; justify-self: start; }
.section--stone .ilist, .section--stone .ilist li { border-color: #D3C8B8; }

/* Process bar with icons */
.pbar { display: grid; gap: 20px; align-items: center; padding: 20px 0; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.pbar ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; counter-reset: pb; }
.pbar li { display: grid; justify-items: center; gap: 8px; text-align: center; font-size: var(--fs-small); font-weight: 600; }
.pbar li span { font-weight: 400; font-size: .875rem; color: var(--c-muted); max-width: 18ch; }
@media (min-width: 720px) { .pbar ol { grid-template-columns: repeat(4, minmax(0, 1fr)); } .pbar li + li { border-left: 1px solid var(--c-border); } }
@media (min-width: 960px) { .pbar { grid-template-columns: minmax(0, 1fr) auto; gap: 32px; padding: 20px 0; } }

/* Two cards */
.duo { display: grid; gap: 28px; }
.duo .card__title { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.5rem, 1.3rem + .7vw, 2rem); line-height: 1.1; }
@media (min-width: 720px) { .duo { grid-template-columns: 1fr 1fr; gap: var(--grid-gap); } }

/* Material swatches */
.swatches { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.swatches a { display: grid; gap: 10px; justify-items: center; color: var(--c-graphite); text-decoration: none; font-weight: 600; font-size: var(--fs-small); }
.swatches a span { padding-bottom: 4px; border-bottom: 1px solid var(--c-gold); }
.swatches a:hover span { border-bottom-color: var(--c-graphite); }
.swatches .fig > img { --ratio: 16 / 9; }
@media (min-width: 960px) { .swatches { gap: var(--grid-gap); } }
.center-actions { display: flex; justify-content: center; margin-top: 28px; }

/* Designer projects */
.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; counter-reset: g; }
.gallery li { counter-increment: g; }
.gallery figcaption::before { content: counter(g) ". "; font-weight: 600; color: var(--c-graphite); }
@media (min-width: 960px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--grid-gap); } }
.duo--text .where-card { display: grid; gap: 12px; align-content: start; justify-items: start; padding-top: 20px; border-top: 1px solid var(--c-graphite); }
@media (min-width: 960px) {
  .anat--case > .fig { grid-column: 1 / span 7; }
  .anat--case > .anat__side { grid-column: 8 / span 5; }
}
.anat__side .rows > div { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); }
.fig--scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 719px) { .fig--scroll .wd__svg { min-width: 640px; } }
@media (min-width: 960px) { .gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ph__bleed picture { display: block; }
.ph__bleed picture > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 960px) { .ph__bleed picture > img { aspect-ratio: 21 / 8; max-height: 62vh; max-height: 62svh; } }

/* Materials: species chips, material images */
.chips { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; border-top: 1px solid var(--c-graphite); padding-top: 20px; }
.chips li { display: grid; grid-template-columns: 96px 1fr; column-gap: 16px; align-items: center; align-content: start; }
.chips img { grid-row: 1 / span 2; width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius); }
.chips__name { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); line-height: 1.1; align-self: end; }
.chips li:not(:has(.chips__note)) .chips__name { grid-row: 1 / span 2; align-self: center; }
.chips__note { font-size: var(--fs-small); align-self: start; margin-top: 4px; }
.chips__src { margin-top: 16px; font-size: var(--fs-small); font-style: italic; color: var(--c-muted); }
@media (min-width: 720px) { .chips { grid-template-columns: 1fr 1fr; gap: 20px var(--grid-gap); } }
@media (min-width: 1100px) { .chips { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mats--img > div { padding-top: 0; border-top: 0; }
.mats--img .fig > img { --ratio: 4 / 3; }
.mats--img h3 { padding-top: 12px; border-top: 1px solid var(--c-graphite); margin-top: 6px; }
.fx--top .fx__text { align-content: start; }
.rows--stack > div { grid-template-columns: 1fr !important; padding: 12px 0; }
