/* ===== Fort Hill Version 5: Version 2 architecture + Version 3 sections ===== */
.v5-panel, .outdoors__item .panel, .cab__pic a { position: relative; display: block; overflow: hidden; background: var(--stone); }
.outdoors__item .panel img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.outdoors__item .panel::after { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.6); opacity: 0; transition: opacity .6s var(--ease), inset .8s var(--ease); pointer-events: none; }
.outdoors__item:hover .panel::after, .outdoors__item:focus-visible .panel::after { opacity: 1; inset: 16px; }
.outdoors__item:hover .panel img { transform: scale(1.03); }

/* Material board, below the intro drawing */
.board { margin: clamp(52px, 6vw, 92px) auto 0; max-width: 900px; }
.board__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 40px); }
.board__chip { text-align: center; }
.board__swatch { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 2px; box-shadow: 0 18px 32px -22px rgba(48,34,20,.55); }
.board__swatch img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.board__chip:hover .board__swatch img { transform: scale(1.06); }
.board__name { display: block; margin-top: 16px; font-family: var(--font); font-weight: 300; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.25; color: var(--ink); }
.board__src { display: block; margin-top: 4px; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.board__cap { margin-top: clamp(28px, 3vw, 40px); padding-top: 16px; border-top: 1px solid var(--rule); text-align: center; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 700px) { .board__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }

/* Custom cabinetry & millwork */
.cab__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); grid-template-areas: "intro stage" "tabs stage"; column-gap: clamp(36px, 5.5vw, 104px); align-items: start; }
.cab__intro { grid-area: intro; align-self: end; }
.cab__intro .display { margin: 18px 0 24px; }
.cab__intro .lead { max-width: 26em; margin: 0; }
.cab__tabs { grid-area: tabs; list-style: none; margin: clamp(30px, 3vw, 46px) 0 0; padding: 0; border-top: 1px solid var(--rule); }
.cab__tab { position: relative; width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 10px; align-items: baseline; padding: 15px 0 14px; border-bottom: 1px solid var(--rule); text-align: left; color: var(--ink-3); transition: color .4s; }
.cab__tab::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--gold); transition: width .8s var(--ease); }
.cab__tab.is-active::after { width: 100%; }
.cab__n { font-size: 11px; letter-spacing: .2em; }
.cab__t { font-family: var(--font); font-weight: 300; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.25; color: var(--ink-2); transition: color .4s; }
.cab__p { grid-column: 2; max-height: 0; overflow: hidden; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); transition: max-height .6s var(--ease), margin .6s var(--ease); }
.cab__tab:hover .cab__t, .cab__tab.is-active .cab__t { color: var(--ink); }
.cab__tab.is-active .cab__n { color: var(--gold-ink); }
.cab__tab.is-active .cab__p { max-height: 2em; margin-top: 4px; }
.cab__stage { grid-area: stage; position: relative; aspect-ratio: 6 / 5; margin-bottom: 40px; }
.cab__stage::after { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.55); z-index: 3; pointer-events: none; }
.cab__pic { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility 0s .9s; }
.cab__pic.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity .9s var(--ease); }
.cab__pic a { height: 100%; }
.cab__pic img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.035); transition: transform 2.6s var(--ease); }
.cab__pic.is-active img { transform: none; }
.cab__pic figcaption { position: absolute; left: 0; right: 0; top: 100%; display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 900px) {
  .cab__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "stage" "tabs"; }
  .cab__stage { margin: clamp(28px, 6vw, 44px) 0 40px; aspect-ratio: 5 / 4; }
  .cab__tabs { margin-top: 8px; }
  .cab__tab .cab__p { display: none; }
  .cab__pic figcaption span:first-child { display: none; }
}

/* Stone, water & landscape */
.outdoors { position: relative; overflow: hidden; }
.outdoors > .wrap { position: relative; z-index: 1; }
.outdoors__lead { max-width: 25em; margin: 0; }
.outdoors__row { display: grid; grid-template-columns: 1.15fr 1fr 1.15fr; gap: clamp(14px, 2vw, 28px); align-items: end; }
.outdoors__item { display: block; }
.outdoors__item .panel { aspect-ratio: 4 / 5; }
.outdoors__item:nth-child(2) .panel { aspect-ratio: 3 / 4.6; }
.outdoors__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.outdoors__cap span:first-child { font-family: var(--font); font-weight: 300; font-size: clamp(19px, 1.5vw, 23px); letter-spacing: 0; text-transform: none; color: var(--ink); }
@media (min-width: 901px) { .outdoors .section-head { padding-right: clamp(150px, 20vw, 320px); } }
@media (max-width: 800px) {
  .outdoors__row { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .outdoors__item .panel, .outdoors__item:nth-child(2) .panel { aspect-ratio: 4 / 3; }
}

/* Bougainvillea accents (used sparingly) */
.bougain { position: absolute; pointer-events: none; background: url(v5/bougainvillea.svg) center / contain no-repeat; aspect-ratio: 490 / 370; z-index: 2; }
.bougain--tr { top: -40px; right: -50px; width: clamp(220px, 28vw, 400px); transform: scaleX(-1) rotate(-6deg); }
.bougain--foot { top: -34px; left: -40px; width: clamp(150px, 15vw, 220px); opacity: .9; }
.footer > .wrap { position: relative; z-index: 3; }
@media (max-width: 900px) { .bougain--tr { width: 200px; top: -30px; right: -50px; } .outdoors .section-head { padding-right: 90px; } }
@media (max-width: 600px) { .bougain--foot { width: 120px; top: -26px; left: -30px; } }
.page-intro--bloom { position: relative; overflow: hidden; }
.page-intro--bloom > .wrap { position: relative; z-index: 3; }
@media (min-width: 901px) { .page-intro--bloom .bougain--tr { top: 40px; width: clamp(220px, 24vw, 340px); } }
@media (max-width: 900px) { .page-intro--bloom .bougain--tr { top: 50px; width: 150px; right: -40px; } }

/* References: architect & designer logo wall (fits the height of the intro text) */
.refs-intro { --tw: calc(clamp(18px, 1.5vw, 21px) * 36); display: grid; grid-template-columns: minmax(0, var(--tw)) minmax(0, 1fr); column-gap: clamp(36px, 4.5vw, 80px); align-items: start; }
.refs-intro__text .lead { max-width: 36em; }
.logos { list-style: none; margin: 0; padding: 0; }
.ref-logo { background-color: var(--ink-2); -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; transition: background-color .3s; }
.ref-logo:hover { background-color: var(--ink); }
@media (min-width: 1151px) {
  .refs-intro { position: relative; }
  .logos { position: absolute; top: var(--lt, 0px); bottom: calc(var(--lb, 0px) * -1); right: var(--gutter); width: calc(100% - var(--gutter) * 2 - var(--tw) - clamp(36px, 4.5vw, 80px)); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(5, minmax(0, 1fr)); gap: clamp(8px, 1vw, 16px) clamp(14px, 1.6vw, 26px); --k: .5; }
  .ref-logo { place-self: center; width: min(100%, calc(var(--w) * var(--k) * 1px)); height: min(100%, calc(var(--w) / var(--ar) * var(--k) * 1px)); }
}
@media (min-width: 1300px) { .logos { --k: .58; } }
@media (max-width: 1150px) {
  .refs-intro { grid-template-columns: minmax(0, 1fr); }
  .logos { margin-top: clamp(36px, 7vw, 52px); display: flex; flex-wrap: wrap; justify-content: space-evenly; align-items: center; gap: 22px 26px; }
  .ref-logo { width: calc(var(--w) * .62px); max-width: 100%; aspect-ratio: var(--ar); }
}
@media (max-width: 420px) { .ref-logo { width: calc(var(--w) * .55px); } }
/* References · mobile: logos sit beside their names */
.names__logo { display: none; }
@media (max-width: 560px) {
  .page-intro--logos .logos { display: none; }
  .names li:has(.names__logo) { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .names__logo { display: block; flex: none; margin-left: auto; width: min(calc(var(--w) * .5px), 42vw); height: auto; aspect-ratio: var(--ar); max-height: 34px; -webkit-mask-position: right center; mask-position: right center; }
}
/* Services intro · Foothill Road house, driveway extended to the left, faded like Projects */
@media (min-width: 901px) {
  .page-intro--house { position: relative; z-index: 0; overflow: hidden; }
  .page-intro--house .wrap { position: relative; z-index: 1; }
  .page-intro--house .sky-bg { --tm: max(var(--gutter), calc((100% - var(--wide)) / 2)); display: block; position: absolute; z-index: 0; inset: 0; pointer-events: none;
    filter: saturate(.98);
    background: linear-gradient(180deg, rgba(255,255,255,.82) 0, rgba(255,255,255,.62) var(--header-h), rgba(255,255,255,0) calc(var(--header-h) + 70px)), linear-gradient(rgba(255,255,255,.2), rgba(255,255,255,.2)), linear-gradient(90deg, #fff 0, #fff var(--tm), rgba(255,255,255,.86) calc(var(--tm) + 10%), rgba(255,255,255,.6) calc(var(--tm) + 26%), rgba(255,255,255,.25) calc(var(--tm) + 42%), rgba(255,255,255,0) 68%), image-set(url(img/foothill-pano-1600.webp) 1x, url(img/foothill-pano-2600.webp) 2x) right 85% / auto 122% no-repeat, #fff; }
  .page-intro--house .wrap > * { max-width: min(100%, 58%); }
  .page-intro--house h1.display { color: var(--ink); }
}
@media (min-width: 901px) and (max-width: 1150px) {
  .page-intro--house .wrap > * { max-width: 47%; }
}
/* Services footer · dragon tree entering from the right edge */
.footer .dragon-tree { display: none; }
@media all {
  .footer--tree .wrap { position: relative; z-index: 1; }
  .footer--tree .dragon-tree { display: block; position: absolute; z-index: 0; top: 60%; bottom: 0; right: 0; width: auto; aspect-ratio: 626 / 565; transform: translateX(50%); background: url(v5/dragon-tree.svg) center bottom / contain no-repeat; pointer-events: none; }
}
/* Press page · very light Beverly Hills Hotel cabana stripes */
.main--stripes, .section--stripes { background: repeating-linear-gradient(90deg, #ffffff 0 clamp(40px, 4.2vw, 64px), #e9f1ea clamp(40px, 4.2vw, 64px) calc(clamp(40px, 4.2vw, 64px) * 2)); }
.main--stripes .page-intro, .main--stripes > section { background: transparent; }
/* Projects intro · palm-lined street photo, sky across the full width */
.sky-bg { display: none; }
.filters button { white-space: nowrap; text-align: left; }
.intro-text { display: inline-grid; max-width: 100%; }
.intro-text .lead { width: 0; min-width: 100%; text-align: justify; text-align-last: left; hyphens: none; }
@media (min-width: 901px) {
  .page-intro--palm { position: relative; z-index: 0; }
  .page-intro--palm .wrap { position: relative; z-index: 1; }
  .page-intro--palm + section .filters { position: relative; z-index: 1; }
  .page-intro--palm .sky-bg { --tm: max(var(--gutter), calc((100% - var(--wide)) / 2)); display: block; position: absolute; z-index: 0; left: 0; right: 0; top: 0; bottom: calc(var(--pb, 0px) * -1); pointer-events: none;
    filter: saturate(.78);
    background: linear-gradient(180deg, rgba(255,255,255,.82) 0, rgba(255,255,255,.62) var(--header-h), rgba(255,255,255,0) calc(var(--header-h) + 70px)), linear-gradient(rgba(255,255,255,.2), rgba(255,255,255,.2)), linear-gradient(90deg, #fff 0, #fff var(--tm), rgba(255,255,255,.86) calc(var(--tm) + 10%), rgba(255,255,255,.6) calc(var(--tm) + 26%), rgba(255,255,255,.25) calc(var(--tm) + 42%), rgba(255,255,255,0) 68%), image-set(url(img/palm-street-pano-1600.webp) 1x, url(img/palm-street-pano-2508.webp) 2x) right bottom / cover no-repeat; }
  .page-intro--palm .intro-text { max-width: min(100%, 58%); }
  .page-intro--palm h1.display { color: var(--ink); }
}
@media (min-width: 901px) {
  .page-intro--palm + section .filters button { color: var(--ink); }
  .page-intro--palm + section .filters { width: fit-content; max-width: 100%; background: rgba(255,255,255,.78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 10px 18px 4px; margin-left: -18px; border-radius: 2px; }
}
@media (min-width: 901px) and (max-width: 1150px) {
  .page-intro--palm .intro-text { max-width: 47%; }
}

/* Header stays pinned and static while scrolling */
.header, .header.is-hidden { transform: none; }

/* Floor plan line drawing */
.plan-sketch .ln--plan { stroke-width: 1; }
.plan-sketch .wall--plan { stroke-width: 5.2; stroke-linecap: square; }
.js .draw.is-in .plan-sketch .wall--plan { animation-duration: 3.2s; animation-delay: .9s; }
/* Light pages: header starts transparent with dark type, turns solid white once scrolling starts */
.header--light { background: transparent; color: var(--ink); border-bottom-color: transparent; }
.header--light .logo { color: var(--gold-ink); }
.header--light.is-solid { background: rgba(255,255,255,.96); border-bottom-color: var(--rule); }


/* Home · What we do: 01–05 list aligned to the headline top and the right margin */
@media (min-width: 901px) { .svc2 .svc-list { justify-self: end; } }

/* Contact · drafting paper + architectural plan below the hours, spilling under the form */
.contact-plan { display: none; }
@media (min-width: 901px) {
  .contact-left { position: relative; z-index: 0; }
  .contact-right { position: relative; z-index: 1; }
  .contact-plan { display: block; position: relative; left: -2%; width: calc(102% + clamp(40px, 7vw, 120px) - 20px); max-width: none; margin: clamp(32px, 3.6vw, 52px) 0 0; padding: 0; border: 0; pointer-events: none; }
  .contact-plan .sketch { width: 100%; height: auto; display: block; }
  .contact-sec .form__note { text-shadow: 0 0 3px #fbfaf7, 0 0 6px #fbfaf7, 0 0 10px #fbfaf7; }
}

/* Home · Custom cabinetry section: faded yellow-lacquer kitchen background (cabinets on the left, unflipped) */
.section.cab { position: relative; isolation: isolate; }
.section.cab::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; filter: saturate(.78);
  background: linear-gradient(90deg, rgba(255,255,255,.9) 0, rgba(255,255,255,.84) 45%, rgba(255,255,255,.76) 100%), image-set(url(img/kitchen-yellow-lacquer-1280.webp) 1x, url(img/kitchen-yellow-lacquer-1920.webp) 2x) center / cover no-repeat; }

/* Homes we have built · spec rows: label and value share one row height so their rules line up */
.sheet__spec dt, .sheet__spec dd { align-self: stretch; display: flex; align-items: center; }
/* Contact intro · Sarbonne Road panorama: trees from the left, new lawn and sky, house and chairs on the right */
@media (min-width: 901px) {
  .page-intro--sarb .bougain { display: none; }
  .page-intro--sarb .sky-bg { display: block; position: absolute; z-index: 0; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,.82) 0, rgba(255,255,255,.62) var(--header-h), rgba(255,255,255,0) calc(var(--header-h) + 70px)), linear-gradient(90deg, rgba(255,255,255,.7) 0, rgba(255,255,255,.74) 16%, rgba(255,255,255,.73) 28%, rgba(255,255,255,.69) 35%, rgba(255,255,255,.62) 41%, rgba(255,255,255,.52) 47%, rgba(255,255,255,.4) 53%, rgba(255,255,255,.27) 59%, rgba(255,255,255,.15) 65%, rgba(255,255,255,.06) 71%, rgba(255,255,255,0) 77%), image-set(url(img/sarbonne-pano-1800.webp) 1x, url(img/sarbonne-pano-3000.webp) 2x) center 42% / cover no-repeat, #fff; }
  .page-intro--sarb h1.display { color: var(--ink); }
}
/* Contact · form labels start on the same line as TELEPHONE */
@media (min-width: 901px) { .contact-right { padding-top: 17px; } }
/* References intro · bushy bougainvillea from the right edge, spilling into the gap beside the logos; rule under the header */
.header--rule.header--light { border-bottom-color: var(--rule); }
.bougain-bush { display: none; }
@media (min-width: 1151px) {
  .page-intro--logos { position: relative; overflow-x: clip; }
  .page-intro--logos .bougain-bush { display: block; position: absolute; z-index: 2; pointer-events: none; top: 0;
    left: calc(var(--gutter) + var(--tw) + clamp(36px, 4.5vw, 80px) / 2 - 490px); width: 1540px; aspect-ratio: 1540 / 380;
    background: url(v5/bougainvillea-bush.svg?v=20261202s) left top / 100% 100% no-repeat; }
}
/* Contact intro · house credit, bottom right, like the other photo credits */
.intro-credit { display: none; }
@media (min-width: 901px) {
  .page-intro--sarb .intro-credit, .page-intro--house .intro-credit { display: block; position: absolute; z-index: 3; right: var(--gutter); bottom: 14px; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.92); text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 0 8px rgba(0,0,0,.35); pointer-events: none; }
}
/* About hero · house credit, bottom right */
.page-hero .intro-credit { display: block; position: absolute; z-index: 3; right: var(--gutter); bottom: 14px; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.92); text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 0 8px rgba(0,0,0,.35); pointer-events: none; }
/* References · rule closes the intro, then the Press-page cabana stripes behind the architects list */
.refs-lead { padding-bottom: clamp(48px, 5.5vw, 88px); }
.refs-list { border-top: 1px solid var(--rule); padding: clamp(48px, 5.5vw, 88px) 0 var(--section); }
/* Contact intro · darker subtext over the panorama; credits never wrap */
@media (min-width: 901px) { .page-intro--sarb .lead, .page-intro--house .lead, .page-intro--palm .lead { color: var(--ink); text-shadow: 0 0 4px rgba(255,255,255,.9), 0 0 10px rgba(255,255,255,.75), 0 0 18px rgba(255,255,255,.55); } }
.intro-credit { white-space: nowrap; }
/* Mobile + tablet · inner-page header pictures and art, with a stronger wash so the text stays easy to read */
@media (max-width: 900px) {
  .page-intro--palm, .page-intro--house, .page-intro--sarb { position: relative; z-index: 0; overflow: hidden; }
  .page-intro--palm .wrap, .page-intro--house .wrap, .page-intro--sarb .wrap { position: relative; z-index: 1; }
  .page-intro--palm .sky-bg, .page-intro--house .sky-bg, .page-intro--sarb .sky-bg { display: block; position: absolute; z-index: 0; inset: 0; pointer-events: none; }
  .page-intro--palm .sky-bg { filter: saturate(.78);
    background: linear-gradient(180deg, rgba(255,255,255,.9) 0, rgba(255,255,255,.7) var(--header-h), rgba(255,255,255,.55) 100%), linear-gradient(90deg, rgba(255,255,255,.55) 0, rgba(255,255,255,.3) 60%, rgba(255,255,255,0) 100%), image-set(url(img/palm-street-pano-1600.webp) 1x, url(img/palm-street-pano-2508.webp) 2x) 82% bottom / cover no-repeat, #fff; }
  .page-intro--house .sky-bg { filter: saturate(.98);
    background: linear-gradient(180deg, rgba(255,255,255,.9) 0, rgba(255,255,255,.7) var(--header-h), rgba(255,255,255,.55) 100%), linear-gradient(90deg, rgba(255,255,255,.55) 0, rgba(255,255,255,.3) 60%, rgba(255,255,255,0) 100%), image-set(url(img/foothill-pano-1600.webp) 1x, url(img/foothill-pano-2600.webp) 2x) 88% center / cover no-repeat, #fff; }
  .page-intro--sarb .sky-bg {
    background: linear-gradient(180deg, rgba(255,255,255,.9) 0, rgba(255,255,255,.7) var(--header-h), rgba(255,255,255,.55) 100%), linear-gradient(90deg, rgba(255,255,255,.55) 0, rgba(255,255,255,.3) 60%, rgba(255,255,255,0) 100%), image-set(url(img/sarbonne-pano-1800.webp) 1x, url(img/sarbonne-pano-3000.webp) 2x) 92% center / cover no-repeat, #fff; }
  .page-intro--sarb .bougain { display: none; }
  .page-intro--palm h1.display, .page-intro--house h1.display, .page-intro--sarb h1.display,
  .page-intro--palm .lead, .page-intro--house .lead, .page-intro--sarb .lead, .page-intro--palm .label, .page-intro--house .label, .page-intro--sarb .label { color: var(--ink); text-shadow: 0 0 4px rgba(255,255,255,.95), 0 0 10px rgba(255,255,255,.85), 0 0 20px rgba(255,255,255,.7); }
  .page-intro--house .intro-credit, .page-intro--sarb .intro-credit { display: block; position: absolute; z-index: 3; right: var(--gutter); bottom: 10px; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; color: var(--ink); text-shadow: 0 0 3px #fff, 0 0 8px rgba(255,255,255,.9); pointer-events: none; }
  .page-intro--house .wrap, .page-intro--sarb .wrap { padding-bottom: 22px; }
}
@media (max-width: 1150px) {
  .page-intro--logos { position: relative; overflow-x: clip; }
  .page-intro--logos .refs-intro { position: relative; }
  .page-intro--logos .bougain-bush { display: block; position: absolute; z-index: 2; pointer-events: none; top: 0; left: calc(-1 * var(--gutter) - 330px); right: auto; width: max(770px, calc(100vw + 330px)); height: 190px; background: url(v5/bougainvillea-bush.svg?v=20261202s) left top / 100% 100% no-repeat; }
  .page-intro--logos .refs-intro__text { position: relative; z-index: 3; }
  .page-intro--logos .refs-intro__text > * { text-shadow: 0 0 4px #fff, 0 0 10px #fff; }
}
/* Press header · bougainvillea branch from the right, filling the space beside the heading */
@media (min-width: 901px) { .page-intro--press .bougain--press { top: calc(var(--header-h, 80px) - 10px); right: -60px; width: clamp(300px, 34vw, 540px); } }
@media (max-width: 900px) { .page-intro--press .bougain--press { top: 56px; right: -46px; width: 160px; } .page-intro--press .wrap > * { text-shadow: 0 0 4px #fff, 0 0 10px #fff; } }
/* References · phones: lighter, separated bougainvillea sprays instead of the dense bush */
@media (max-width: 600px) {
  .page-intro--logos .bougain-bush { left: auto; right: calc(-1 * var(--gutter)); width: calc(100vw + 10px); height: auto; aspect-ratio: 600 / 150; background: url(v5/bougainvillea-sprays.svg) right top / 100% 100% no-repeat; }
}
/* About hero · phones and tablets: same height as the other inner-page headers */
@media (max-width: 600px) { .page-hero--about { height: 400px; min-height: 0; } }
@media (min-width: 601px) and (max-width: 900px) { .page-hero--about { height: 340px; min-height: 0; } }
/* Photo credits · house and area (or archive) in the bottom-right of every photo; plain text, not clickable */
.gallery__item, .frame, .service__media, .band { position: relative; }
.pic-credit { position: absolute; z-index: 3; right: 12px; bottom: 10px; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font); font-weight: 400; font-size: 10.5px; line-height: 1.2; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.92); text-shadow: 0 1px 2px rgba(0,0,0,.6), 0 0 8px rgba(0,0,0,.4); pointer-events: none; }
.page-hero__open .pic-credit, .band > .pic-credit { right: var(--gutter); bottom: 14px; }
.pic-credit--hero { display: none; }
@media (max-width: 700px) { .pic-credit--hero { display: block; right: var(--gutter); bottom: 14px; } }
@media (max-width: 600px) { .pic-credit { font-size: 9.5px; letter-spacing: .16em; right: 10px; bottom: 8px; } }
/* Services · about-style plates (corner marks + plate number and note) and drafting paper behind sections 2 and 4 */
.service:nth-child(even) .service__fig { order: 2; }
@media (max-width: 900px) { .service:nth-child(even) .service__fig { order: 0; } }
.service__fig .arch__media .frame.service__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.service__fig .arch__media .frame.service__media img { width: 100%; height: 100%; object-fit: cover; }
.service__fig .plate { margin-top: 14px; }
.service--paper { position: relative; isolation: isolate; }
.service--paper::before { content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); pointer-events: none; background-color: #fbfaf7; background-image: linear-gradient(rgba(138,115,81,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(138,115,81,.10) 1px, transparent 1px), linear-gradient(rgba(138,115,81,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(138,115,81,.05) 1px, transparent 1px); background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; background-position: center top; }
.service--paper + .service, .service + .service--paper { border-top-color: transparent; }
main#main > section:has(.service--paper) { overflow-x: clip; }
/* credits wrap instead of cutting off on narrow pictures */
.pic-credit { white-space: normal; text-overflow: clip; text-align: right; }
/* Inner-page headers · one shared length on every page (matched to the longest, the About photo header); text centered in the taller band */
@media (min-width: 901px) {
  .page-intro { min-height: clamp(480px, 78svh, 900px); display: flex; flex-direction: column; justify-content: center; }
  .page-intro > .wrap { width: 100%; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .page-intro { min-height: 360px; display: flex; flex-direction: column; justify-content: center; }
  .page-intro > .wrap { width: 100%; }
  .page-hero--about { height: 360px; }
}
@media (max-width: 600px) {
  .page-intro { min-height: 470px; display: flex; flex-direction: column; justify-content: center; }
  .page-intro > .wrap { width: 100%; }
  .page-hero--about { height: 470px; }
}
/* Footer logo · links to the top of the home page */
.footer__home { display: block; flex: none; color: var(--gold); line-height: 0; }
.footer__home:focus-visible { outline: 1px solid var(--gold); outline-offset: 6px; }
/* Mobile Safari · page runs under the status bar (header stays transparent over header photos); dark brown fills the bottom edge to match the footer */
:root { --header-h: calc(76px + env(safe-area-inset-top, 0px)); }
@media (max-width: 900px) { :root { --header-h: calc(64px + env(safe-area-inset-top, 0px)); } }
.header { padding-top: env(safe-area-inset-top, 0px); }
html, body { background-color: var(--dark); }
main { background-color: var(--bg); }
.footer__mark { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
/* References · tablet and phone bougainvillea: anchored to the page (no shifting while scrolling), drawn whole so no branch is cut off at the screen edge */
@media (max-width: 1150px) {
  .page-intro--logos .refs-intro { position: static; }
  .page-intro--logos .bougain-bush { left: auto; right: 0; width: min(770px, calc(100% - 16px)); height: auto; aspect-ratio: 1540 / 380; }
}
@media (max-width: 600px) {
  .page-intro--logos .bougain-bush { left: 0; right: 0; width: 100%; height: auto; aspect-ratio: 600 / 175; background: url(v5/bougainvillea-sprays.svg?v=20261202s) center top / 100% 100% no-repeat; }
}
/* Phones · Contact header picture in very dark grayscale (like the About header), light type */
@media (max-width: 600px) {
  .page-intro--sarb { background: #1c1b1a; }
  .page-intro--sarb .sky-bg { filter: grayscale(1);
    background: linear-gradient(180deg, rgba(0,0,0,.62) 0, rgba(0,0,0,.5) 45%, rgba(0,0,0,.66) 100%), image-set(url(img/sarbonne-pano-1800.webp) 1x, url(img/sarbonne-pano-3000.webp) 2x) 92% center / cover no-repeat, #1c1b1a; }
  .page-intro--sarb h1.display, .page-intro--sarb .lead, .page-intro--sarb .label { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
  .page-intro--sarb .intro-credit { color: rgba(255,255,255,.92); text-shadow: 0 1px 2px rgba(0,0,0,.55); }
  body:has(.page-intro--sarb) .header--light:not(.is-solid) { color: #fff; }
  body:has(.page-intro--sarb) .header--light:not(.is-solid) .logo { color: #fff; }
}
/* Phones · Contact header text sits lower, centered in the bottom half */
@media (max-width: 600px) {
  .page-intro--sarb { justify-content: flex-end; }
  .page-intro--sarb { padding-bottom: 40px; }
  .page-intro--sarb .wrap { padding-bottom: 0; }
}
/* Phones · Services header text a little lower; Projects header text closer to the bottom */
@media (max-width: 600px) {
  .page-intro--house { justify-content: flex-end; padding-bottom: 46px; }
  .page-intro--house .wrap { padding-bottom: 0; }
  .page-intro--palm { justify-content: flex-end; padding-bottom: 40px; }
  .page-intro--palm .wrap { padding-bottom: 0; }
}
/* Phones · Projects and Services header pictures in the same very dark grayscale as Contact, light type */
@media (max-width: 600px) {
  .page-intro--palm, .page-intro--house { background: #1c1b1a; }
  .page-intro--palm .sky-bg { filter: grayscale(1);
    background: linear-gradient(180deg, rgba(0,0,0,.72) 0, rgba(0,0,0,.6) 45%, rgba(0,0,0,.7) 100%), image-set(url(img/palm-street-pano-1600.webp) 1x, url(img/palm-street-pano-2508.webp) 2x) 82% bottom / cover no-repeat, #1c1b1a; }
  .page-intro--house .sky-bg { filter: grayscale(1);
    background: linear-gradient(180deg, rgba(0,0,0,.62) 0, rgba(0,0,0,.5) 45%, rgba(0,0,0,.66) 100%), image-set(url(img/foothill-pano-1600.webp) 1x, url(img/foothill-pano-2600.webp) 2x) 88% center / cover no-repeat, #1c1b1a; }
  .page-intro--palm h1.display, .page-intro--palm .lead, .page-intro--palm .label, .page-intro--palm .intro-text, .page-intro--palm .intro-text p,
  .page-intro--house h1.display, .page-intro--house .lead, .page-intro--house .label { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
  .page-intro--house .intro-credit { color: rgba(255,255,255,.92); text-shadow: 0 1px 2px rgba(0,0,0,.55); }
  body:has(.page-intro--palm) .header--light:not(.is-solid), body:has(.page-intro--house) .header--light:not(.is-solid),
  body:has(.page-intro--palm) .header--light:not(.is-solid) .logo, body:has(.page-intro--house) .header--light:not(.is-solid) .logo { color: #fff; }
}
/* Tablet + desktop · Contact, Projects and Services header pictures in very dark grayscale (matching phones), light type */
@media (min-width: 601px) {
  .page-intro--sarb, .page-intro--palm, .page-intro--house { background: #1c1b1a; position: relative; z-index: 0; overflow: hidden; }
  .page-intro--sarb .sky-bg, .page-intro--palm .sky-bg, .page-intro--house .sky-bg { display: block; position: absolute; z-index: 0; inset: 0; bottom: 0; pointer-events: none; filter: grayscale(1); }
  .page-intro--sarb .sky-bg { background: linear-gradient(180deg, rgba(0,0,0,.62) 0, rgba(0,0,0,.48) 50%, rgba(0,0,0,.62) 100%), linear-gradient(90deg, rgba(0,0,0,.4) 0, rgba(0,0,0,.25) 50%, rgba(0,0,0,0) 80%), image-set(url(img/sarbonne-pano-1800.webp) 1x, url(img/sarbonne-pano-3000.webp) 2x) center 42% / cover no-repeat, #1c1b1a; }
  .page-intro--palm .sky-bg { background: linear-gradient(180deg, rgba(0,0,0,.72) 0, rgba(0,0,0,.58) 50%, rgba(0,0,0,.68) 100%), linear-gradient(90deg, rgba(0,0,0,.4) 0, rgba(0,0,0,.25) 50%, rgba(0,0,0,0) 80%), image-set(url(img/palm-street-pano-1600.webp) 1x, url(img/palm-street-pano-2508.webp) 2x) right bottom / cover no-repeat, #1c1b1a; }
  .page-intro--house .sky-bg { background: linear-gradient(180deg, rgba(0,0,0,.62) 0, rgba(0,0,0,.48) 50%, rgba(0,0,0,.62) 100%), linear-gradient(90deg, rgba(0,0,0,.4) 0, rgba(0,0,0,.25) 50%, rgba(0,0,0,0) 80%), image-set(url(img/foothill-pano-1600.webp) 1x, url(img/foothill-pano-2600.webp) 2x) right 85% / cover no-repeat, #1c1b1a; }
  .page-intro--sarb .wrap, .page-intro--palm .wrap, .page-intro--house .wrap { position: relative; z-index: 1; }
  .page-intro--sarb h1.display, .page-intro--sarb .lead, .page-intro--sarb .label,
  .page-intro--palm h1.display, .page-intro--palm .lead, .page-intro--palm .label,
  .page-intro--house h1.display, .page-intro--house .lead, .page-intro--house .label { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
  .page-intro--sarb .intro-credit, .page-intro--house .intro-credit { color: rgba(255,255,255,.92); text-shadow: 0 1px 2px rgba(0,0,0,.55); }
  .page-intro--palm + section .filters { width: auto; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0 0 18px; margin-left: 0; border-radius: 0; }
  body:has(.page-intro--sarb) .header--light:not(.is-solid), body:has(.page-intro--palm) .header--light:not(.is-solid), body:has(.page-intro--house) .header--light:not(.is-solid),
  body:has(.page-intro--sarb) .header--light:not(.is-solid) .logo, body:has(.page-intro--palm) .header--light:not(.is-solid) .logo, body:has(.page-intro--house) .header--light:not(.is-solid) .logo { color: #fff; }
}
/* Tablet + desktop · About header photo in a sepia tone, light type */
@media (min-width: 601px) {
  .page-hero--about img { filter: sepia(.85) saturate(1.15) brightness(.82) contrast(1.05); }
  .page-hero--about::after { background: linear-gradient(180deg, rgba(20,12,6,.5) 0%, rgba(20,12,6,.12) 30%, rgba(20,12,6,.2) 55%, rgba(20,12,6,.7) 100%); }
  .page-hero--about .label, .page-hero--about h1.display { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.45); }
  .page-hero--about .band__note { color: #f6e9d2; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
  .page-hero--about .intro-credit { color: rgba(255,255,255,.95); }
}
/* Tablet + desktop · Contact, Projects and Services header photos in the same sepia tone as About */
@media (min-width: 601px) {
  .page-intro--sarb, .page-intro--palm, .page-intro--house { background: #1f150c; }
  .page-intro--sarb .sky-bg, .page-intro--palm .sky-bg, .page-intro--house .sky-bg { filter: sepia(.85) saturate(1.15) brightness(.9) contrast(1.05); }
}
/* Phones · Contact, Projects and Services header photos in the same sepia tone */
@media (max-width: 600px) {
  .page-intro--sarb, .page-intro--palm, .page-intro--house { background: #1f150c; }
  .page-intro--sarb .sky-bg, .page-intro--palm .sky-bg, .page-intro--house .sky-bg { filter: sepia(.85) saturate(1.15) brightness(.9) contrast(1.05); }
}
/* Phones · About header photo in the same sepia tone, light type */
@media (max-width: 600px) {
  .page-hero--about img { filter: sepia(.85) saturate(1.15) brightness(.82) contrast(1.05); }
  .page-hero--about::after { background: linear-gradient(180deg, rgba(20,12,6,.5) 0%, rgba(20,12,6,.12) 30%, rgba(20,12,6,.2) 55%, rgba(20,12,6,.7) 100%); }
  .page-hero--about .label, .page-hero--about h1.display { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.45); }
  .page-hero--about .band__note { color: #f6e9d2; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
  .page-hero--about .intro-credit { color: rgba(255,255,255,.95); }
}
