.home { position: relative; isolation: isolate; overflow-x: clip; }
.home-section { position: relative; padding-block: clamp(68px, 8vw, 116px); background: var(--section-background, transparent); }
.section-content { position: relative; z-index: 3; background: var(--section-background, var(--paper)); }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); min-height: max(740px, calc(100svh - 92px)); }
.hero-copy { position: relative; z-index: 3; display: flex; flex-direction: column; padding: 56px var(--gutter) 48px; }
.hero h1 { max-width: 12ch; font: 560 clamp(54px, 4.7vw, 74px)/.98 var(--serif); font-variation-settings: "SOFT" 100, "opsz" 144; letter-spacing: -.025em; text-wrap: balance; }
.hero h1 em { font-variation-settings: "SOFT" 100, "opsz" 144; }
.hero h1, .where { background: var(--paper); }
.where { margin-top: 20px; max-width: 44ch; color: var(--ink); font-size: 17px; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 32px; }
.hero-actions .ghost { background: var(--paper); }
.hero-actions .ghost:hover { background: var(--sand-light); }
.hero-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 700px; margin-top: auto; perspective: 1100px; }
.hero-card { position: relative; min-width: 0; min-height: 104px; text-decoration: none; }
.hero-card:hover, .hero-card:focus-visible, .hero-card.open { z-index: 1; }
.tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: none; }
.face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; padding: 16px 18px; backface-visibility: hidden; }
.front { background: var(--sand); box-shadow: inset 0 0 0 1px #26271f14; transform-origin: 50% 0; transition: transform .62s cubic-bezier(.3, .7, .15, 1); }
.hero-card:nth-child(2) .front, .hero-card:nth-child(3) .front { background: var(--sand-light); }
.front .name { color: var(--green); max-width: calc(100% - 15px); font: 600 23px/1.05 var(--serif); font-variation-settings: "SOFT" 100, "opsz" 48; }
.front .what { color: var(--ink); font-size: 13.5px; line-height: 1.35; }
.card-plus { position: absolute; top: 14px; right: 16px; width: 12px; height: 12px; }
.card-plus::before, .card-plus::after { position: absolute; inset: 5px 0; content: ""; background: var(--terra); }
.card-plus::after { rotate: 90deg; }
.back { inset: 1px; background: var(--green); color: var(--paper); }
.back small { font-size: 12px; letter-spacing: .04em; }
.back b { display: flex; justify-content: space-between; gap: 7px; font-size: 18px; font-weight: 550; }
.hero-card[data-from="top"] .front { transform-origin: 50% 100%; }
.hero-card[data-from="left"] .front { transform-origin: 100% 50%; }
.hero-card[data-from="right"] .front { transform-origin: 0 50%; }
.hero-card.open .front { transform: rotateX(104deg) rotateZ(-5deg); }
.hero-card.open[data-from="top"] .front { transform: rotateX(-104deg) rotateZ(5deg); }
.hero-card.open[data-from="left"] .front { transform: rotateY(104deg) rotateZ(4deg); }
.hero-card.open[data-from="right"] .front { transform: rotateY(-104deg) rotateZ(-4deg); }

.stage { position: relative; overflow: hidden; background: var(--paper); }
.cover-base, .cover-fallback { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.cover-base:not([data-ready]) { visibility: hidden; }
.curtain { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; visibility: hidden; }
.curtain-colour { fill: var(--terra); }
.cover-counter { position: absolute; z-index: 4; top: 10px; right: 18px; display: flex; align-items: center; padding-inline: 3px; background: #26271fd9; --focus: var(--light-ink); }
.cover-counter button { display: grid; place-items: center; flex: none; width: 30px; height: 30px; padding: 0; border: 0; background: transparent; }
.cover-counter button::before { content: ""; width: 24px; height: 3px; background: #f0ebe199; }
.cover-counter button[aria-pressed="true"]::before { background: var(--light-ink); }
.cover-counter button:focus-visible { outline-offset: -3px; }
.stage figcaption { position: absolute; z-index: 4; right: 24px; bottom: 18px; padding: 3px 6px; color: var(--light-ink); background: #26271fe8; text-align: right; font-size: 11px; letter-spacing: .06em; }
.hero-art { position: absolute; z-index: 2; inset: 0 0 0 52.83%; container-type: size; pointer-events: none; }
/* The portraits have clear space above the faces. Keep the rotating tips in
   that band even when object-fit crops a short or narrow stage. */
.hero-star { position: absolute; --star-inset: 34px; top: var(--star-inset); left: -.5em; font-size: min(250px, 17.36vw, calc(30cqh - var(--star-inset))); }
@container (min-aspect-ratio: 4/5) and (max-aspect-ratio: 1/1) {
  .hero-star { font-size: min(250px, 17.36vw, calc(36cqh - var(--star-inset))); }
}
@container (max-aspect-ratio: 4/5) {
  .hero-star { font-size: min(250px, 17.36vw, calc(23cqh - var(--star-inset))); }
}

.how { --section-background: var(--sand-light); }
.how-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); align-items: center; gap: clamp(36px, 9vw, 150px); }
.how-copy p { max-width: 48ch; margin-top: 20px; color: var(--ink); }
.how-copy p:first-child { margin-top: 0; }
.how-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; }

.directory { padding-bottom: 28px; }
.directory-heading { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: clamp(23px, 4vw, 58px); }
.directory-bracket { flex: none; width: clamp(48px, 9vw, 120px); height: clamp(24px, 5vw, 54px); }
.directory-bracket i { width: 38%; height: 4px; }
.directory-bracket i:nth-child(1) { top: 4%; left: 26%; }
.directory-bracket i:nth-child(2) { top: 96%; left: 74%; --angle: 0deg; }
.directory-bracket i:nth-child(3) { top: 45%; left: 7%; }
.directory-bracket i:nth-child(4) { top: 55%; left: 93%; --angle: 90deg; }
.resident-row { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, .92fr) minmax(0, 1.35fr); align-items: center; gap: clamp(20px, 3vw, 44px); padding-block: clamp(22px, 3vw, 42px); border-top: 1px solid var(--line); }
.resident-identity { --ray-width: clamp(12px, 1.55vw, 24px); --ray-gap: 30px; }
.resident-name { display: grid; grid-template-columns: var(--ray-width) minmax(0, 1fr); align-items: center; gap: var(--ray-gap); }
.resident-ray { position: relative; height: 4px; }
.resident-ray i { position: absolute; inset: 0; border-radius: 6px; background: var(--terra); }
.resident-identity h3 { overflow-wrap: break-word; font-size: clamp(31px, 3.1vw, 52px); }
.resident-identity > p { color: var(--ink); margin: 7px 0 0 calc(var(--ray-width) + var(--ray-gap)); }
.resident-description { display: grid; justify-items: start; gap: 16px; }
.resident-description > p { max-width: 39ch; }
.resident-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.resident-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.resident-photos img { width: 100%; height: auto; aspect-ratio: 6 / 7; object-fit: cover; }
.photo-placeholder { display: grid; grid-template-rows: 1fr auto; justify-items: center; gap: 16px; align-items: center; padding: 20px 20px 12px; color: var(--ink); background: var(--sand-light); font-size: 13px; }
.photo-placeholder img { width: auto; max-width: 100%; height: 76px; object-fit: contain; mix-blend-mode: multiply; }
.photo-placeholder > span:last-child { width: 100%; border-top: 1px solid var(--line); padding-top: 8px; text-align: center; }
.placeholder-mark { font-size: 56px; margin-block: 10px; }
.resident-nos .photo-placeholder { background: var(--sand); }

.proof { --heading: var(--paper); --section-background: var(--green); --focus: var(--paper); color: var(--paper); }
.proof h2 { max-width: 22ch; font-size: clamp(39px, 5.5vw, 78px); text-wrap: balance; }
.proof-mark { width: min(144px, 40%); height: 14px; margin: 25px 0; }
.proof-mark i { width: 20%; height: 3px; }
.proof-mark i:nth-child(n) { --angle: 0deg; }
.proof-mark i:nth-child(1) { left: 10%; }
.proof-mark i:nth-child(2) { left: 36.666%; }
.proof-mark i:nth-child(3) { left: 63.333%; }
.proof-mark i:nth-child(4) { left: 90%; }
.proof-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; border-block: 1px solid #f0ebe14d; }
.proof-list li { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; padding: 20px clamp(10px, 3vw, 36px); }
.proof-list li + li { border-left: 1px solid #f0ebe14d; }
.proof-list li:first-child { padding-left: 0; }
.proof-list h3 { font-size: clamp(24px, 2.8vw, 40px); }
.review-link { display: block; padding-block: 4px; text-decoration: none; }
.review-count { font: 480 clamp(42px, 4.6vw, 68px)/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.045em; }
.review-link small { display: block; margin-top: 5px; text-decoration: underline; text-underline-offset: .24em; }
.review-link:hover small { text-decoration-thickness: 2px; }
.proof-notes { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; padding-top: 18px; font-size: 14px; }

.work-teaser { --section-background: var(--sand); }
.teaser-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .85fr) minmax(0, .65fr); align-items: center; gap: clamp(30px, 3vw, 48px); }
.teaser-copy p { margin: 16px 0 24px; color: var(--ink); }
.teaser-features { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.teaser-features li { border-bottom: 1px solid var(--line); padding-block: 8px; }
.work-plus { justify-self: center; font-size: clamp(90px, 15vw, 220px); width: min(1em, 100%); height: auto; aspect-ratio: 1; }
.work-plus i { height: 6%; }
.work-plus i:nth-child(odd) { --angle: 0deg; }
.work-plus i:nth-child(even) { --angle: 90deg; }
.work-plus i:nth-child(n+3) { opacity: 0; }

.visit-layout { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.3fr); gap: clamp(18px, 4vw, 68px); align-items: start; }
.visit-details { display: grid; gap: 26px; max-width: 57ch; }
.visit-address { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 30px; }
.parking-link { display: block; width: auto; }
.visit-copy { display: grid; justify-items: start; gap: 13px; max-width: 44ch; }
.visit-details address { display: grid; justify-items: start; gap: 6px; font-style: normal; }
.visit-details strong { color: var(--green); font: 550 clamp(25px, 3vw, 42px)/1.08 var(--serif); font-variation-settings: "SOFT" 100; }
.visit-star { align-self: start; font-size: clamp(40px, 5vw, 72px); }

.travel-mark { position: absolute; z-index: 2; top: 0; left: 0; width: 0; height: 0; visibility: hidden; }
.travel-mark i { top: 0; left: 0; width: 250px; height: 24px; transform-origin: 0 0; }
.home[data-travel] .travel-mark { visibility: visible; }
.home[data-travel] [data-mark] { visibility: hidden; }
.home[data-travel][data-behind-cover] :is(.cover-base, .cover-fallback, .curtain) { z-index: 3; }

@media (min-width: 761px) and (max-width: 1120px) {
  .hero-copy { padding-top: 48px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { padding-inline: 11px; gap: 8px; }
  .hero-card { min-height: 122px; }
  .face { padding: 13px 11px; }
  .front .name { font-size: clamp(17px, 2vw, 23px); }
  .card-plus { right: 10px; }
  .back b { font-size: 16px; }
  .hero-star { --star-inset: 18px; }
}

@media (width < 761px) {
  .hero { display: block; min-height: auto; }
  .stage { display: none; }
  .hero-copy { padding: calc(44px + clamp(28px, 8vw, 48px)) var(--gutter) 34px; }
  .hero h1 { font-size: clamp(35px, 10vw, 62px); max-width: 12.2ch; }
  .hero-art { left: 0; }
  .hero-star { top: 13px; left: var(--gutter); font-size: clamp(28px, 8vw, 48px); }
  .where { font-size: 16px; margin-top: 18px; }
  .hero-actions { margin-block: 21px 25px; gap: 8px; }
  .hero-actions .btn { font-size: 14px; padding: 13px 10px; gap: 7px; }
  .hero-actions .btn svg { width: 11px; height: 11px; }
  .hero-cards { gap: 8px; perspective: none; }
  .hero-card { min-height: 100px; }
  .tilt, .face { position: static; }
  .tilt { display: grid; height: 100%; transform: none; }
  .face { grid-area: 1 / 1; padding: 12px 10px; }
  .front .name { font-size: clamp(16px, 4.8vw, 22px); max-width: calc(100% - 8px); }
  .front .what { font-size: 12px; }
  .card-plus { top: 9px; right: 7px; scale: .65; }
  .back b { font-size: 15px; }
  .home-section { padding-block: 57px; }
  .how-layout, .resident-row { grid-template-columns: minmax(0, 1fr); }
  .how-layout { gap: 24px; }
  .directory { padding-bottom: 8px; }
  .resident-row { gap: 16px; }
  .resident-photos, .photo-placeholder { margin-top: 4px; }
  .photo-placeholder { display: flex; justify-content: space-between; gap: 14px; padding: 12px 16px; }
  .photo-placeholder img { max-width: 40%; height: 48px; }
  .photo-placeholder > span:last-child { width: auto; padding: 0; border: 0; }
  .placeholder-mark { flex: none; font-size: 36px; margin: 6px; }
  .proof-list { grid-template-columns: minmax(0, 1fr); }
  .proof-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 15px 0; }
  .review-count { font-size: 36px; }
  .review-link { font-size: 14px; }
  .proof-list li + li { border-left: 0; border-top: 1px solid #f0ebe14d; }
  .teaser-layout { grid-template-columns: minmax(0, 1fr) clamp(42px, 13vw, 96px); gap: 20px 30px; }
  .teaser-features { grid-column: 1; }
  .work-plus { grid-area: 1 / 2 / 3 / 3; width: 100%; }
  .visit-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (width < 761px), (prefers-reduced-motion: reduce) {
  .hero-card .tilt, .hero-card .front, .hero-card.open .front, .hero-card.open[data-from] .front { transition: none; transform: none; }
  .hero-card.open .front { visibility: hidden; }
}
@media (max-width: 359px) {
  .hero-actions { display: grid; }
}
[data-motion="paused"] .hero-card .tilt, [data-motion="paused"] .hero-card .front, [data-motion="paused"] .hero-card.open[data-from] .front { transition: none; transform: none; }
[data-motion="paused"] .hero-card.open .front { visibility: hidden; }

/* Bruno 24 Nov: no gap between the message and the cards; the travelling asterisk
   stays visible the whole way, so every stop is a readable shape. */
.hero-copy { justify-content: center; }
.hero-cards { margin-top: 0; }
.home .travel-mark { z-index: 4; }
.home[data-travel][data-behind-cover] :is(.cover-base, .cover-fallback, .curtain) { z-index: auto; }
.resident-name { --ray-width: 48px; }
.resident-ray { height: 8px; }
.proof-mark { width: 150px; height: 76px; margin: 28px 0; }
.proof-mark i { width: 76px; height: 10px; }
.proof-mark i:nth-child(n) { --angle: 90deg; }
.work-plus i:nth-child(n+3) { opacity: 1; }
.visit-star { font-size: clamp(64px, 7vw, 110px); }
@media (max-width: 760px) {
  .resident-name { --ray-width: 32px; }
  .resident-ray { height: 6px; }
  .proof-mark { width: 110px; height: 56px; }
  .proof-mark i { width: 56px; height: 8px; }
}

/* Travelling asterisk lane (desktop ≥1100px): the mark is fixed in the right third of the
   viewport and the sections after the first screen keep that lane free of content. */
@media (min-width: 1100px) {
  .home[data-travel] .travel-mark { position: fixed; z-index: 5; }
  .home[data-travel] .resident-name { --ray-width: 0px; --ray-gap: 0px; }
  .home[data-travel] :is(.work-plus, .proof-mark, .visit-star) { display: none; }
  .home[data-travel] .travel-mark i { transition: background-color .4s; }
}

/* Phone campaign cover and asterisk reveal. */
@media (max-width:760px) {
  .hero-art { display: none; }
  .hero-copy h1, .hero-copy .where { background: none; }
  .hero-copy h1 { max-width: none; }
  .hero-copy .where { line-height: 1.46; }
  .hero-copy h1, .hero-copy h1 em { font-variation-settings: "opsz" 32, "SOFT" 32, "wght" 475; }
  .hero-copy h1 em { font-variation-settings: "opsz" 32, "SOFT" 32, "wght" 425; letter-spacing: -.02em; word-spacing: .07em; }
  .hero-copy .front .name { font-variation-settings: "opsz" 24, "SOFT" 25, "wght" 550; letter-spacing: 0; word-spacing: .04em; }
}
.campaign-mast{display:contents}
.campaign-field{display:none}
@media(max-width:760px){
 .hero{background:var(--paper);color:var(--paper)}
 .hero .hero-copy{padding:0}
 .campaign-mast{display:flex;position:relative;isolation:isolate;overflow:hidden;flex-direction:column;justify-content:flex-end;min-height:clamp(520px,80svh,735px);padding:clamp(178px,31svh,294px) var(--gutter) 24px;color:#fff8e9;background:#233e35}
 .campaign-field{display:block;position:absolute;inset:0;z-index:-2;pointer-events:none}
 .campaign-field svg{display:block;width:100%;height:100%}
 .campaign-mast::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,transparent 20%,rgba(14,32,25,.12) 32%,rgba(15,33,27,.82) 55%,rgb(19,40,32) 73%);opacity:0}
 .campaign-mast h1{color:#fff8e9;font:500 clamp(39px,10.9vw,67px)/.98 var(--serif);letter-spacing:-.021em;word-spacing:.055em;text-wrap:balance}
 .campaign-mast h1 em{display:block;color:#f5c3a6;font-size:.81em;line-height:1.03;margin-top:.13em}
 .campaign-mast .where{color:#fff8e9;max-width:39ch;margin-top:17px}
 .campaign-mast .hero-actions{display:flex;margin:19px 0 0}
 .campaign-mast .hero-actions .primary{background:var(--terra);color:#fff9ee;padding:14px 23px}
 .hero-cards{margin:16px var(--gutter) 30px}
 .mask-pulse,.ink-pulse{transform-origin:0 0}
 .mask-pulse{transform:scale(0)}
 .ink-pulse{fill:#f0cfaf}
 .campaign-ready .mask-pulse{animation:cover-aperture 8s cubic-bezier(.56,0,.33,1) infinite}
 .campaign-ready .ink-pulse{animation:cover-ink 8s cubic-bezier(.56,0,.33,1) infinite}
 .campaign-ready::before{animation:cover-shade 8s ease-in-out infinite}
 .campaign-rest,.campaign-rest::before,.campaign-rest .mask-pulse,.campaign-rest .ink-pulse,
 [data-motion="paused"] .campaign-ready::before,[data-motion="paused"] .campaign-ready :is(.mask-pulse,.ink-pulse){animation-play-state:paused}
 @keyframes cover-aperture{0%,19%{transform:translate(195px,127px) rotate(-13deg) scale(0)}42%,68%{transform:translate(195px,127px) rotate(38deg) scale(55)}91%,100%{transform:translate(195px,127px) rotate(77deg) scale(0)}}
 @keyframes cover-ink{0%,15%{fill:#f0cfaf;transform:rotate(-13deg) scale(1)}23%,84%{fill:#345342}39%,70%{transform:rotate(38deg) scale(55)}94%,100%{fill:#f0cfaf;transform:rotate(77deg) scale(1)}}
 @keyframes cover-shade{0%,17%,94%,100%{opacity:0}33%,77%{opacity:1}}
 @media(prefers-reduced-motion:reduce){
   .campaign-ready .mask-pulse,.campaign-ready .ink-pulse,.campaign-ready::before{animation:none}
   .campaign-ready .mask-pulse{transform:translate(195px,127px) scale(55)}
   .campaign-ready::before{opacity:1}
 }
}
