* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1rem; scroll-behavior: smooth; }
body { margin: 0; background: var(--surface-page); color: var(--text-primary); font: var(--text-body)/1.65 var(--font-body); }
img { display: block; width: 100%; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.3em; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
::selection { background: var(--peb-navy); color: var(--peb-ivory); }
h1, h2, h3, p, figure, dl { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.04; letter-spacing: -0.045em; }
h2 { font-size: var(--text-heading); }
em { font-weight: 400; }
p + p { margin-top: 1.2rem; }
.shell { width: min(100% - var(--gutter) * 2, var(--content-width)); margin-inline: auto; }
.section { padding-block: var(--space-section); }
.eyebrow { font: 550 0.6875rem/1.6 var(--font-body); letter-spacing: 0.15em; text-transform: uppercase; }
.section-label { margin-bottom: 1.7rem; }
.lead { font-size: var(--text-lead); line-height: 1.5; }
.editor-note, .collection-note, .footer-note, .interaction-help { color: var(--text-muted); font-size: var(--text-small); }
.collection-note { margin-top: 1.5rem; }
.text-link { display: inline-flex; justify-content: space-between; gap: 2rem; font-size: var(--text-small); margin-top: 1.5rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.text-link span { color: var(--text-primary); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: 1rem; left: 1rem; transform: translateY(-200%); background: var(--surface-page); padding: 1rem; z-index: 10; }
.skip-link:focus { transform: translateY(0); }
.site-header { position: absolute; inset: 0 0 auto; z-index: 5; color: var(--peb-ivory); }
.site-header .header-inner { width: auto; max-width: none; margin-left: max(clamp(1rem, 2vw, 2rem), env(safe-area-inset-left)); margin-right: max(clamp(1rem, 2vw, 2rem), env(safe-area-inset-right)); }
.header-inner { min-height: 6rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; }
.brand { justify-self: start; padding: 0.4rem 0.75rem; display: flex; gap: 0.8rem; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { width: 2.7rem; height: 3.65625rem; object-fit: contain; }
.site-header nav { padding: 0.4rem 1rem; display: flex; align-items: center; gap: clamp(1rem, 1.8vw, 1.75rem); }
.site-header nav a { font-size: 0.8125rem; padding-block: 0.8rem; text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
.header-controls { justify-self: end; display: flex; gap: 1rem; align-items: center; }
.menu-toggle { background: none; border: 0; padding: 0.7rem 0; min-height: 44px; font-size: 0.75rem; white-space: nowrap; }
.theme-toggle { position: relative; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; border: 0; padding: 0 0 0 1rem; background: transparent; border-radius: 0; font-size: 0.625rem; font-weight: 500; letter-spacing: 0.06em; white-space: nowrap; }
.theme-toggle::before { content: ""; position: absolute; left: 0; top: 50%; height: 1.1rem; width: 1px; transform: translateY(-50%); background: rgb(247 242 231 / 30%); }
.theme-switch { width: 1.65rem; height: 0.95rem; border: 1px solid currentColor; border-radius: 1rem; padding: 2px; display: flex; align-items: center; }
.theme-switch > span { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: currentColor; }
[aria-pressed="true"] .theme-switch { border-color: var(--peb-orange); }
[aria-pressed="true"] .theme-switch > span { margin-left: auto; background: var(--peb-orange); }
.menu-toggle span { margin-left: 0.4rem; }
/* Identity sits in the sky, horizontally centred; faces retain the lower photograph. */
.hero { width: 100%; position: relative; isolation: isolate; overflow: clip; height: min(90svh, 52rem); min-height: 34rem; color: var(--peb-ivory); background: var(--peb-deep-navy); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; z-index: -2; }
.hero-overlay { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgb(18 22 42 / 56%), rgb(18 22 42 / 32%) 29%, rgb(18 22 42 / 15%) 48%, rgb(18 22 42 / 15%) 86%, rgb(18 22 42 / 46%)); }
.hero-identity { display: flex; flex-direction: column; align-items: center; gap: clamp(0.65rem, 1.7svh, 1rem); padding-top: clamp(7rem, 12svh, 8.5rem); text-align: center; }
.hero-emblem { width: clamp(4.25rem, min(8vw, 12svh), 7rem); max-width: 7rem; max-height: 7rem; height: auto; flex: 0 0 auto; object-fit: contain; }
.hero h1 { font-size: clamp(1.65rem, min(4.6vw, 6.8svh), 4.5rem); line-height: 1.08; letter-spacing: -0.025em; text-shadow: 0 1px 12px rgb(18 22 42 / 35%); }
.hero-year { margin: 0; font: 400 0.8125rem/1.3 var(--font-body); letter-spacing: 0.25em; }
.about { display: grid; grid-template-columns: 1.35fr 1fr; gap: 0 5rem; align-items: start; }
.about .section-label { grid-column: 1 / -1; }
.about-copy { max-width: 30rem; padding-top: 0.25rem; }
.about-copy > p:not(.lead) { font-size: 1rem; }
.moments { padding-bottom: var(--space-section); }
figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.25rem 1rem; padding-top: 0.6rem; color: var(--text-muted); font-size: 0.75rem; }
.carousel { max-width: 58rem; margin-inline: auto; }
.carousel-viewport { display: flex; position: relative; aspect-ratio: 16 / 9; max-height: min(62svh, 32rem); overflow-x: auto; scroll-snap-type: x mandatory; }
.moment { position: relative; flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: start; }
.moment img { width: 100%; height: 100%; object-fit: cover; }
.moment-round img { object-position: 50% 58%; }
.moment-party img { object-position: 50% 64%; }
.moment-weekend img { object-position: 50% 62%; }
.moment-waterfall img { object-position: 50% 80%; }
.carousel[data-enhanced] .carousel-viewport { overflow: hidden; touch-action: pan-y pinch-zoom; }
.carousel[data-enhanced] .moment { position: absolute; inset: 0; }
.carousel-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem 1rem; padding-top: 0.6rem; }
.carousel-caption { font-size: 0.8125rem; color: var(--text-muted); }
.carousel-controls { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.carousel-controls button { min-width: 44px; min-height: 44px; padding: 0.5rem; background: var(--surface-page); border: 1px solid var(--line); border-radius: 3px; }
.carousel-controls button:hover { background: var(--surface-soft); }
.carousel-controls .carousel-play { border-color: transparent; font-size: 0.75rem; }
.carousel-controls button:disabled { cursor: default; }
.carousel-count { font-size: 0.75rem; font-variant-numeric: tabular-nums; padding-inline: 0.5rem; }
.navy-field { background: var(--surface-fixed); color: var(--text-on-fixed); --text-muted: #cfccdf; --line: var(--line-on-fixed); }
.stats-section { padding-block: 2.5rem 3rem; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats > div { display: flex; flex-direction: column-reverse; padding-left: 3rem; border-left: 1px solid var(--line-on-fixed); }
.stats > div:first-child { padding-left: 0; border-left: 0; }
.stats dd { font: clamp(4rem, 8vw, 8rem)/1 var(--font-display); margin: 0 0 0.75rem; letter-spacing: -0.055em; }
.stats dd .stat-dot { color: var(--peb-orange); }
.stats [data-count-to] { font-variant-numeric: tabular-nums; }
.stats dt { font-size: var(--text-small); }
.house-section { background: var(--surface-soft); }
.house-heading { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-bottom: 2rem; }
.house-number { font: clamp(7rem, 14vw, 13rem)/1 var(--font-display); letter-spacing: -0.075em; padding-right: 0.04em; max-width: 45%; flex-shrink: 0; align-self: start; }
.house-gallery { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: start; }
.house-exterior { min-width: 0; }
.house-exterior img { width: 100%; aspect-ratio: 3 / 2; max-height: min(46svh, 25rem); object-fit: cover; object-position: 50% 58%; }
.house-sequence { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.house-living { grid-column: 1; grid-row: 1; }
.house-garden { grid-column: 1; grid-row: 2; }
.house-aside { grid-column: 2; grid-row: 1; }
.house-garden-second { grid-column: 2; grid-row: 2; }
.house-sequence img { width: 100%; height: auto; aspect-ratio: 3 / 2; max-height: 9rem; object-fit: cover; }
.house-living img { object-position: 50% 58%; }
.house-garden img { object-position: 50% 65%; }
.house-aside img { object-position: 47% 55%; }
.house-aside figure { margin: 0; }
.house-video { display: grid; grid-template-columns: 1fr 1.2fr; margin: 2rem auto 0; max-width: 58rem; }
.house-video > img { width: 100%; height: 100%; max-height: 17rem; object-fit: cover; object-position: 65% 50%; align-self: center; }
.video-invitation { padding: 1.5rem 2rem; align-self: center; }
.video-invitation h3 { font-size: clamp(2.25rem, 3vw, 3rem); margin-block: 0.6rem 1rem; }
.video-invitation > p:not(.eyebrow) { font-size: 0.875rem; }
.video-status { display: flex; gap: 1rem; align-items: center; border-top: 1px solid var(--line-on-fixed); padding-top: 0.6rem; margin-top: 1rem; font-size: var(--text-small); }
.video-status > span { color: var(--peb-orange); font-size: 1.5rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 3rem; margin-bottom: 2.5rem; }
.section-intro { max-width: 23rem; font-size: 0.9375rem; }
.members-grid, .board-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; width: 100%; max-width: 51rem; margin-inline: auto; align-items: start; }
.portrait-scroll-hint { display: none; }
.member-cohort + .member-cohort { margin-top: 3rem; }
.cohort-heading { max-width: 51rem; margin: 0 auto 1rem; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.cohort-heading h3 { font-size: 1.65rem; }
.cohort-heading p { font-size: 0.75rem; color: var(--text-muted); }
.member-card { min-width: 0; }
.member-visual { position: relative; width: 100%; aspect-ratio: 4 / 5; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; background: var(--surface-portrait); }
.member-visual img { width: 100%; height: 100%; object-fit: cover; object-position: var(--portrait-position, 50% 50%); }
.member-visual img[data-fit="contain"] { object-fit: contain; }
.portrait-number { font: clamp(2rem, 4vw, 3rem)/1 var(--font-display); opacity: 0.35; }
.portrait-pending { font-size: 0.6875rem; letter-spacing: 0.15em; text-transform: uppercase; margin-top: 1rem; }
.member-card figcaption { align-items: baseline; color: var(--text-primary); }
.member-name { font: 400 1.5rem/1.25 var(--font-display); }
.member-card figcaption > .member-cohort-label { font-size: 0.75rem; color: var(--text-muted); }
.board-section { background: var(--surface-soft); }
.board-portrait { aspect-ratio: 4 / 5; background: var(--surface-portrait); display: flex; flex-direction: column; justify-content: center; padding: 0; overflow: hidden; }
.board-portrait img { width: 100%; height: 100%; object-fit: cover; }
.board-portrait .eyebrow { font-size: 0.625rem; }
.board-initial { font: clamp(3rem, 6vw, 6rem)/0.9 var(--font-display); opacity: 0.35; align-self: end; }
.board-member figcaption { align-items: baseline; border-top: 1px solid var(--line); margin-top: 0.8rem; color: var(--text-primary); }
.board-member h3 { font-size: clamp(1.5rem, 2.4vw, 2.5rem); }
.board-member figcaption > span { color: var(--text-muted); }
.board-phone { display: inline-flex; align-items: center; min-height: 44px; flex-basis: 100%; font: 400 0.8125rem/1.6 var(--font-body); color: var(--text-muted); }
.editorial-themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.editorial-themes article { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.editorial-themes h2 { font-size: clamp(2rem, 3.8vw, 3.5rem); }
.borrel-cta { background: var(--surface-soft); border-top: 3px solid var(--peb-orange); padding-block: clamp(2.5rem, 5vw, 4rem); }
.borrel-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.borrel-cta h2 { font-size: clamp(2.75rem, 5vw, 4.75rem); }
.borrel-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 48px; padding: 0.6rem 1.2rem; background: var(--peb-orange); color: var(--peb-ink); text-decoration: none; border: 1px solid transparent; font-size: 0.9375rem; }
.borrel-link:hover { text-decoration: underline; }
.text-link:hover, .board-phone:hover { text-decoration: underline; text-decoration-color: var(--peb-orange); }
[data-theme="peb"] .site-header nav a:hover { text-decoration-color: var(--peb-orange); }
.site-footer { padding-top: var(--space-section); }
.footer-main { display: flex; justify-content: space-between; gap: 3rem; padding-bottom: 3rem; }
.footer-main h2 { margin-bottom: 2rem; }
.footer-main > img { width: 7rem; height: auto; object-fit: contain; align-self: center; }
address { font-style: normal; font-size: 1rem; }
.site-footer address > span { display: flex; align-items: center; min-height: 2.75rem; }
.site-footer address > br { display: none; }
.site-footer p { min-height: 2.75rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; padding-block: 1.5rem; border-top: 1px solid var(--line-on-fixed); font-size: 0.6875rem; }
.footer-bottom p + p { margin: 0; }
@media (max-width: 64rem) {
  .header-inner { display: flex; flex-wrap: wrap; gap: 0; padding-block: 0.6rem; min-height: 5rem; }
  .header-controls { margin-left: auto; }
  .site-header nav { order: 3; width: 100%; justify-content: start; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding: 0.75rem 1rem; margin-top: 0.5rem; }
  .site-header nav[data-collapsed="true"] { display: none; }
  .site-header .theme-toggle { flex: 0 0 auto; margin: 0; }
  .about { gap: 2rem; }
  .house-gallery { gap: 1.25rem; }
  .house-sequence figcaption { font-size: 0.6875rem; }
  .members-grid, .board-grid { gap: 1rem; }
}
@media (max-width: 52rem) {
  .hero { height: clamp(30rem, 75svh, 39rem); min-height: 0; }
  .hero-identity { padding-top: 7rem; gap: 0.6rem; }
  .hero-emblem { width: clamp(3.75rem, 9vw, 5.5rem); }
  .hero h1 { font-size: clamp(1.35rem, 4.8vw, 2.6rem); }
  .hero-year { font-size: 0.6875rem; }
  .hero-photo { object-position: 50% 50%; }
  .about { gap: 2rem; }
  .about .section-label { margin-bottom: 0; }
  .house-gallery { grid-template-columns: 1fr; max-width: 40rem; margin-inline: auto; }
  .house-exterior img { max-height: 18rem; aspect-ratio: 16 / 9; }
  .house-sequence { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .house-aside { display: flex; flex-direction: column; }
  .house-aside figure { margin: 0; }
  .house-aside .editorial-line { font-size: 1.2rem; }
  .house-video { grid-template-columns: 1fr 1fr; }
  .video-invitation { padding: 1.25rem; }
  .section-heading { align-items: start; gap: 2rem; }
  .section-intro { max-width: 18rem; }
}
@media (max-width: 40rem) {
  .brand { gap: 0.5rem; }
  .brand img { width: 2.25rem; height: 3.09375rem; }
  .carousel-viewport { aspect-ratio: 3 / 2; max-height: 42svh; }
  .carousel-toolbar { flex-wrap: wrap; }
  .carousel-caption { font-size: 0.75rem; }
  .carousel-controls { justify-content: end; }
  .carousel-play { margin-right: auto; }
  .about { grid-template-columns: 1fr; }
  .stats-section { padding-block: 2rem; }
  .stats > div { padding-left: 1rem; }
  .stats dd { font-size: clamp(3rem, 13vw, 4.5rem); }
  .stats dt { font-size: 0.6875rem; }
  .house-heading { align-items: center; gap: 1rem; }
  .house-heading .section-label { position: absolute; top: 0; left: 0; }
  .house-heading h2 { font-size: clamp(2.25rem, 7vw, 3rem); }
  .house-number { font-size: clamp(6rem, 24vw, 10rem); }
  .house-heading h2 + p { max-width: 14rem; font-size: 0.8125rem; }
  .house-sequence { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .house-living { grid-column: 1; grid-row: 1; }
  .house-garden { grid-column: 1; grid-row: 2; }
  .house-sequence img { height: auto; max-height: 7rem; aspect-ratio: 3 / 2; }
  .house-video { grid-template-columns: 1fr; }
  .house-video > img { height: 9rem; object-position: 65% 52%; }
  .video-invitation { padding: 1.25rem; }
  .section-heading { display: block; }
  .section-intro { max-width: 30rem; margin-top: 1.5rem; }
  .members-grid, .board-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(70vw, 15rem); gap: 1rem; overflow-x: auto; scroll-snap-type: x proximity; padding: 0.4rem 0.4rem 0.85rem; }
  .member-card, .board-member { scroll-snap-align: start; }
  .member-visual, .board-portrait { aspect-ratio: 4 / 5; }
  .portrait-scroll-hint { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.5rem; }
  .portrait-number, .board-initial { font-size: 5rem; }
  .editorial-themes { grid-template-columns: 1fr; gap: 2rem; }
  .borrel-inner { align-items: start; flex-direction: column; gap: 1.5rem; }
  .board-member figcaption { flex-direction: column; }
  .board-member h3 { font-size: 1.75rem; }
  .footer-main { gap: 1rem; }
  .footer-main > img { width: 4rem; align-self: start; margin-top: 2.5rem; }
  .footer-main h2 { font-size: 2.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Localised glass: solid readable fallback; blur never covers the full viewport. */
.site-header .brand, .site-header nav, .menu-toggle {
  background: rgb(18 22 42 / 84%); border: 1px solid rgb(245 242 234 / 24%); border-radius: 5px;
}
.menu-toggle { padding-inline: 0.85rem; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header .brand, .site-header nav, .menu-toggle { background: rgb(18 22 42 / 38%); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
[data-theme="peb"] .eyebrow, [data-theme="peb"] #house-title, [data-theme="peb"] #about-title { color: var(--peb-orange); }
.editorial-themes article > p { margin-top: 1.25rem; max-width: 58ch; font-size: 0.9375rem; line-height: 1.75; }
.members-section > .section-label, .board-section .section-label { margin-bottom: 1.5rem; }
.borrel-link, .carousel-controls button, .site-header nav a { transition: background-color 180ms ease, border-color 180ms ease; }
.text-link span, .borrel-link > span:last-child { transition: transform 180ms ease; }
.text-link:hover span, .borrel-link:hover > span:last-child { transform: translate(2px, -2px); }
.carousel { position: relative; }
/* Optional pause remains available to keyboard/screen-reader users without a permanent control. */
.carousel-play:focus-visible { position: absolute; z-index: 2; bottom: 3.5rem; left: 0.5rem; width: auto; height: auto; margin: 0; clip-path: none; overflow: visible; white-space: normal; background: var(--surface-page); padding: 0.75rem; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .member-visual img, .board-portrait img { transition: transform 400ms cubic-bezier(.2,.7,.2,1); }
  .member-card:hover img, .board-member:hover img { transform: scale(1.015); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-enter [data-hero="emblem"], .hero-enter [data-hero="name"], .hero-enter [data-hero="year"] { animation: identity-in 600ms cubic-bezier(.2,.7,.2,1) both; }
  .hero-enter [data-hero="name"] { animation-delay: 90ms; }
  .hero-enter [data-hero="year"] { animation-delay: 180ms; }
  .motion-ready.motion-item, .motion-ready > .motion-item { opacity: 0; transform: translateY(16px); transition: opacity 520ms cubic-bezier(.2,.7,.2,1), transform 520ms cubic-bezier(.2,.7,.2,1); transition-delay: var(--reveal-delay, 0ms); }
  .motion-ready.is-visible.motion-item, .motion-ready.is-visible > .motion-item { opacity: 1; transform: none; }
}
@keyframes identity-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 64rem) {
  .site-header .header-inner { padding-top: 0.75rem; }
  .site-header:not([data-enhanced]) + main .hero-identity { padding-top: 11.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .motion-item { opacity: 1 !important; transform: none !important; }
}

/* The exterior's original 3:2 / 46svh / 25rem bounds set desktop geometry.
   Caption tracks are reserved separately; no intrinsic/percentage subgrid cycle. */
@media (min-width: 52.001rem) {
  .house-section > .shell { container-type: inline-size; }
  .house-gallery {
    --house-column-gap: 2rem;
    --house-caption-height: calc(0.6rem + 0.75rem * 1.65);
    --house-image-height: min(calc((100cqw - var(--house-column-gap)) * 1.3 / 2.3 * 2 / 3), 46svh, 25rem);
    column-gap: var(--house-column-gap);
  }
  .house-exterior img { height: var(--house-image-height); aspect-ratio: 3 / 2; object-position: 50% 45%; }
  .house-sequence {
    height: calc(var(--house-image-height) + var(--house-caption-height));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
  .house-sequence > figure { min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) var(--house-caption-height); }
  .house-sequence img { width: 100%; height: 100%; min-height: 0; max-height: none; object-fit: cover; }
}
@media (min-width: 52.001rem) and (max-width: 64rem) {
  .house-gallery { --house-column-gap: 1.25rem; --house-caption-height: calc(0.6rem + 0.6875rem * 1.65); }
}

/* Address signature is out of flow: number and gallery geometry stay unchanged. */
.house-number { position: relative; }
.house-address { position: absolute; right: 0; bottom: 80%; white-space: nowrap; font: 400 clamp(0.5rem, 1.1vw, 1rem)/1.3 var(--font-body); letter-spacing: 0.16em; color: var(--text-primary); opacity: 0.85; }

/* Weekend photograph: retain the identity composition and group crop. */
.hero-photo { object-position: 50% 50%; }

/* Bounded, caption-free galleries share the existing controls and touch behaviour. */
.carousel-refined { max-width: 48rem; }
.carousel-refined .carousel-viewport { aspect-ratio: 3 / 2; max-height: min(54svh, 28rem); background: var(--surface-portrait); }
.carousel-refined .moment img { object-fit: cover; object-position: var(--photo-position, 50% 50%); }
.carousel-refined .carousel-toolbar { justify-content: flex-end; }
.house-copy { max-width: 65ch; margin: 2rem auto 0; font-size: 1rem; }
.event-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.event-copy > p { max-width: 58ch; font-size: 1rem; }
.lustrum-section { padding-top: 0; }
.lustrum-section > h2 { margin-bottom: 2rem; }
.social-link { display: inline-flex; width: 44px; height: 44px; flex: 0 0 44px; align-items: center; justify-content: center; color: var(--text-primary); }
.social-link svg { width: 24px; height: 24px; transition: transform 180ms ease, opacity 180ms ease; }
.social-link:hover svg, .social-link:focus-visible svg { transform: translateY(-2px); opacity: 0.8; }
.social-link:active svg { transform: translateY(0); opacity: 0.65; }
[data-theme="peb"] .social-link { color: var(--peb-orange); }
.person-socials { display: flex; gap: 0.25rem; flex-basis: 100%; }
.person-socials .social-link svg { width: 20px; height: 20px; }
.footer-socials { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.footer-socials .social-link { margin: 0; color: var(--peb-ivory); }
[data-theme="peb"] .footer-socials .social-link { color: var(--peb-orange); }
.footer-credit { padding-block: 0 1.5rem; font-size: 0.6875rem; color: var(--text-muted); }
@media (max-width: 40rem) {
  .carousel-refined .carousel-viewport { aspect-ratio: 4 / 3; max-height: 22rem; }
  .event-copy { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .carousel-refined[data-enhanced] .moment:not([hidden]) { animation: photo-appear 240ms ease-out; }
}
@keyframes photo-appear { from { opacity: 0.65; } to { opacity: 1; } }

/* Events share one editorial width, with a bounded film and horizontal photo sequence. */
.event-composition { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.event-composition .event-copy { display: block; }
.event-copy h2, .lustrum-heading h2 { font-size: clamp(2.5rem, 4.2vw, 4.5rem); }
.event-copy > p { margin-top: 1.5rem; }
.event-video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--peb-ink); }
.event-video video { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: contain; }
.video-start { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: var(--peb-ink); color: var(--peb-ivory); }
.video-start img { width: 100%; height: 100%; object-fit: cover; }
.video-play-mark { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 3.5rem; height: 3.5rem; background: rgb(18 22 42 / 70%); border: 1px solid rgb(245 242 234 / 70%); border-radius: 50%; transition: color 180ms ease, background-color 180ms ease; }
.video-start:hover .video-play-mark, .video-start:focus-visible .video-play-mark { color: var(--peb-orange); background: rgb(18 22 42 / 90%); }
.lustrum-heading { border-top: 1px solid var(--line); padding-top: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
.carousel-strip { --slides-visible: 3; --gallery-gap: 1rem; max-width: none; }
.carousel-strip .carousel-viewport { aspect-ratio: calc(var(--slides-visible) * 1.5); max-height: 28rem; background: transparent; }
.carousel-track { display: flex; flex: 0 0 100%; gap: var(--gallery-gap); width: 100%; height: 100%; }
.carousel-strip .moment, .carousel-strip[data-enhanced] .moment { position: relative; inset: auto; flex: 0 0 calc((100% - (var(--slides-visible) - 1) * var(--gallery-gap)) / var(--slides-visible)); min-width: 0; height: 100%; }
.carousel-strip[data-enhanced] .moment:not([hidden]) { animation: none; }
@media (prefers-reduced-motion: no-preference) { .carousel-strip[data-enhanced] .carousel-track { transition: transform 280ms ease; } }
@media (max-width: 74.999rem) { .carousel-strip { --slides-visible: 2; } }
@media (max-width: 52rem) {
  .event-composition { grid-template-columns: 1fr; gap: 1.75rem; }
  .event-copy h2, .lustrum-heading h2 { font-size: clamp(2.25rem, 6vw, 3.5rem); }
  .carousel-strip { --slides-visible: 1; }
}
@media (max-width: 40rem) {
  .carousel-refined .moment img { object-position: var(--photo-position-mobile, var(--photo-position, 50% 50%)); }
  .carousel-strip .carousel-viewport { aspect-ratio: 4 / 3; }
}

/* One static house gallery at every breakpoint; no carousel enhancement. */
.house-photo-grid { display: grid; width: 100%; max-width: 64rem; margin-inline: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.house-photo-grid figure { position: relative; margin: 0; min-width: 0; min-height: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.house-photo-grid img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--photo-position, 50% 50%); }
@media (max-width: 52rem) { .house-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) {
  .house-photo-grid figure:first-child { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
  .house-photo-grid img { object-position: var(--photo-position-mobile, var(--photo-position, 50% 50%)); }
}
