/* ---------------------------------------------------------------- the opening (hero)
   Registered layers sharing one box and one crop: the photograph; the headline (behind the roofline); the clubhouse and
   dock wall cut from the same photograph. The name appears once, above the club; it is not reflected in the river. */
.hero { --hh: max(100svh, 560px); --ox: 50%; --oy: .38; --ar: 1.7778; --ih: max(var(--hh), calc(100vw / var(--ar))); --gy: calc(var(--ih) * .362 - var(--oy) * (var(--ih) - var(--hh))); --room: calc(var(--gy) - var(--header-h) - 24px); --fs: clamp(2.4rem, min(12vw, 19svh, calc(var(--room) / 1.55)), 14rem); position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #2b3b32; isolation: isolate; --cream: #f6f0e4; border-radius: 0 0 clamp(22px, 3vw, 44px) clamp(22px, 3vw, 44px); }
/* a soft dark wash over the trees behind the headline, so the ivory letters hold their contrast */
.hero::before { content: ""; position: absolute; z-index: 1; left: 50%; top: 4%; width: min(1500px, 130vw); height: 52%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(14, 22, 16, .62), rgba(14, 22, 16, .3) 55%, rgba(14, 22, 16, 0)); pointer-events: none; }
/* a soft fall-off at the foot of the photograph, so the address line and the actions read over the bright river */
.hero::after { content: ""; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(to top, rgba(14, 22, 16, .5), rgba(14, 22, 16, 0)); pointer-events: none; }
.hero__base, .hero__front { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--ox) calc(var(--oy) * 100%); }
.hero__base { z-index: 0; }
.hero__front { z-index: 2; pointer-events: none; }
/* the headline's second line tucks just behind the gable: the roof peak is 36.2% down the photograph (--gy). Hard limit:
   --fs is capped at the room between the header and the peak / 1.55, so on any screen (a short, wide Mac included) the
   title fits above the roof and its second line goes at most a quarter-line behind it, never half the words */
.hero__type { position: absolute; z-index: 1; left: 0; right: 0; top: max(calc(var(--header-h) + 24px), calc(var(--gy) - 1.55 * var(--fs))); text-align: center; }
.hero__title { margin: 0; font-family: var(--display); font-weight: 400; font-size: var(--fs); line-height: .9; letter-spacing: -.015em; max-width: none; text-align: center; }
.hero__title { color: var(--cream); text-shadow: 0 2px 3px rgba(10, 16, 12, .45), 0 0 34px rgba(10, 16, 12, .55); }
.hero__line { display: block; white-space: nowrap; }
.hero__foot { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; padding: 0 clamp(16px, 4.5vw, 72px) clamp(22px, 4vh, 44px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; color: var(--cream); }
.hero__est { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1rem, 1.3vw, 1.2rem); max-width: 34ch; text-shadow: 0 1px 12px rgba(12, 22, 20, .55); }
.hero__est .water { font-style: normal; }
.hero__foot .textlink { color: var(--cream); text-shadow: 0 1px 10px rgba(12, 22, 20, .6); }

@media (max-width: 760px) {
  /* at least 600 px tall, so the foot (address and actions, ~180 px) always lands on the water below the dock wall,
     which sits about 69% down the photograph */
  .hero { height: 88svh; min-height: 600px; --hh: max(88svh, 600px); --ox: 46%; --oy: .40; --fs: clamp(2.4rem, min(19vw, calc(var(--room) / 1.55)), 6rem); }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  /* the address and actions sit over bright water and, on short phones, the pale dock boards: a soft dark fall-off
     behind just the foot (not the clubhouse) and a firmer shadow keep them legible */
  .hero__foot::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: -110px; bottom: 0; pointer-events: none;
    background: linear-gradient(to top, rgba(12, 18, 14, .86) 0%, rgba(12, 18, 14, .78) 58%, rgba(12, 18, 14, .5) 78%, rgba(12, 18, 14, 0) 100%); }
  .hero__est { font-size: 1.0625rem; text-shadow: 0 1px 2px rgba(8, 12, 10, .75), 0 2px 18px rgba(8, 12, 10, .65); }
  .hero__foot .textlink { text-shadow: 0 1px 2px rgba(8, 12, 10, .75), 0 2px 14px rgba(8, 12, 10, .6); }
}

/* phones and portrait tablets get the full-resolution middle of the photograph (index.html <picture>, same query):
   1880 x 2160, cut from x 922 of the 3840 master, so its aspect and the clubhouse's place in it change; the gable stays
   36.2% down, so the title still tucks behind it */
@media (max-width: 760px), (orientation: portrait) and (max-width: 1100px) {
  .hero { --ar: .87037; --ox: 48%; }
}

/* ---------------------------------------------------------------- parallax cards */
.pcards { position: relative; aspect-ratio: 5 / 4; perspective: 1400px; }
.pcards__card { position: absolute; left: var(--x); top: var(--y); width: var(--w); display: block; transform-style: preserve-3d; will-change: transform; outline: 1px solid rgba(20, 32, 74, .22); background: var(--panel); }
.pcards__card img { width: 100%; height: auto; display: block; filter: brightness(var(--fog, 1)) saturate(calc(var(--fog, 1) * 1.05)); transition: filter .25s ease; }
.pcards__card:hover img, .pcards__card:focus-visible img { filter: none; }
.pcards__card:hover { outline: 2px solid var(--red); }
.pcards__card:focus-visible { outline: 3px solid var(--fg); }
@media (max-width: 700px) { .pcards { aspect-ratio: 1 / 1; } }
