/* ============================================================
   KAREN COUNTRY CLUB — site stylesheet
   Extended from Concept A ("The Film"). Design system: CLAUDE.md §8.
   Sections: 0 tokens · 1 base · 2 header/nav · 3 buttons · 4 reveal
             5 home hero · 6 home sections · 7 page hero · 8 inner primitives
             9 forms · 10 residences · 11 footer · 12 responsive · 13 motion
   ============================================================ */

/* ---------- 0. TOKENS ---------- */
:root{
  /* KCC Corporate Identity Guidelines 2014: primary = Pantone Medium Blue C (this token);
     secondary = Pantone Reflex Blue C, reserved below and unused until the Club's brand refresh lands */
  --kcc-blue:#0082cc;
  --kcc-blue-deep:#005c93;
  --kcc-reflex:#001489;
  --navy:#062a45;
  --navy-2:#0a3d63;
  --warm-dark:#0a1c28;
  --cream:#f5f1e9;
  --cream-2:#efe9dd;
  --ink:#162531;
  --muted:#5f7280;
  --line-dark:rgba(255,255,255,.16);
  --line-light:rgba(6,42,69,.14);
  --pad-x:clamp(1.2rem,5vw,5rem);
  --pad-y:clamp(4.5rem,11vh,9rem);
  --container:1180px;
  /* default = no photo: a transparent no-op layer so the gradient shows */
  --scene-img:linear-gradient(rgba(0,0,0,0),rgba(0,0,0,0));
}

/* ---------- 1. BASE ---------- */
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
/* in-page anchors must clear the fixed header + sticky sub-nav */
section[id],[id].section{scroll-margin-top:8.5rem}
body{
  font-family:'Montserrat',sans-serif;
  color:var(--ink);
  background:var(--cream);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
h1,h2,h3,h4,.serif{font-family:'Cormorant Garamond',serif;font-weight:300;line-height:1.05}
img{max-width:100%;display:block}
[hidden]{display:none!important}
::selection{background:var(--kcc-blue);color:#fff}
:focus-visible{outline:2px solid var(--kcc-blue);outline-offset:3px}
.skip{position:absolute;left:-999px;top:0;z-index:100;background:var(--kcc-blue);color:#fff;padding:.7rem 1rem;font-size:.74rem;letter-spacing:.14em;text-transform:uppercase}
.skip:focus{left:1rem;top:1rem}

.eyebrow{font-size:.7rem;letter-spacing:.32em;text-transform:uppercase;font-weight:600;color:var(--kcc-blue)}
.eyebrow.on-dark{color:#7cc6f0}
.rule{width:54px;height:1px;background:var(--kcc-blue);margin:1.4rem 0}
.rule.center{margin-left:auto;margin-right:auto}
.container{max-width:var(--container);margin:0 auto;padding-left:var(--pad-x);padding-right:var(--pad-x)}
.wide{max-width:1280px;margin-left:auto;margin-right:auto}
.center{text-align:center}
.measure{max-width:var(--container);margin-left:auto;margin-right:auto}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.on-dark{color:#fff}

/* ---------- 2. HEADER / NAV ---------- */
header.site{
  position:fixed;top:0;left:0;right:0;z-index:60;
  display:flex;align-items:center;justify-content:space-between;
  padding:1.5rem clamp(1.2rem,4vw,3.5rem);
  transition:background .5s ease,padding .5s ease,box-shadow .5s ease;
}
header.site.scrolled{background:rgba(6,42,69,.96);padding:.9rem clamp(1.2rem,4vw,3.5rem);box-shadow:0 1px 0 rgba(255,255,255,.08)}
.brand{display:flex;align-items:center;gap:.8rem;line-height:1;color:#fff;text-decoration:none}
.brand-mark{height:50px;width:auto;display:block;transition:height .5s ease}
header.site.scrolled .brand-mark{height:40px}
/* The blue crest (2 Nov 2026) sits on dark grounds: the film, the scrolled navy bar, the footer.
   A hairline of light traces the shield, like the stitched edge of a blazer badge, and a soft
   shadow lifts it off the film. A crest the Club uploads gets the same edge (on a white crest it
   simply disappears), so any choice reads on the dark header and footer. */
.brand-mark,.foot-logo{filter:drop-shadow(0 0 .6px rgba(255,255,255,.95)) drop-shadow(0 0 .6px rgba(255,255,255,.85)) drop-shadow(0 4px 12px rgba(2,12,20,.4))}
.brand-text{display:flex;flex-direction:column;line-height:1}
.brand .b-name{font-family:'Cormorant Garamond',serif;font-size:1.5rem;font-weight:500;letter-spacing:.04em;white-space:nowrap}
.brand .b-sub{font-size:.54rem;letter-spacing:.4em;text-transform:uppercase;color:#9fc6df;margin-top:.35rem;font-weight:500}

nav.primary{display:flex;align-items:center}
nav.primary .menu{list-style:none;display:flex;align-items:center;gap:1.8rem}
nav.primary .menu>li{position:relative;display:flex;align-items:center;gap:.3rem}
nav.primary a.navlink{color:rgba(255,255,255,.86);text-decoration:none;font-size:.74rem;letter-spacing:.13em;text-transform:uppercase;font-weight:500;transition:color .3s;padding:.6rem 0;white-space:nowrap}
nav.primary a.navlink:hover,nav.primary a.navlink.active{color:#fff}
nav.primary a.navlink.active{box-shadow:0 1px 0 var(--kcc-blue)}
.sub-toggle{background:none;border:0;color:rgba(255,255,255,.7);cursor:pointer;width:22px;height:22px;display:grid;place-items:center;padding:0}
.sub-toggle::before{content:"";width:6px;height:6px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg) translate(-1px,-1px);transition:transform .3s}
li.open>.sub-toggle::before{transform:rotate(225deg) translate(-2px,-2px)}
.member-btn{
  border:1px solid rgba(255,255,255,.5);color:#fff;text-decoration:none;
  padding:.6rem 1.25rem;font-size:.68rem;letter-spacing:.18em;text-transform:uppercase;font-weight:600;
  border-radius:1px;transition:all .35s;white-space:nowrap;
}
.member-btn:hover{background:var(--kcc-blue);border-color:var(--kcc-blue)}
.menu-cta{margin-left:.4rem}

/* dropdown (desktop) */
.sub{list-style:none;position:absolute;top:100%;left:-1.4rem;min-width:250px;padding:1.2rem 0 1rem;
  background:rgba(6,42,69,.98);border-top:1px solid var(--kcc-blue);box-shadow:0 24px 50px rgba(3,14,24,.35);
  opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity .35s ease,transform .35s ease,visibility 0s .35s}
.sub.cols-2{min-width:520px;columns:2;column-gap:0;padding-bottom:1.2rem}
.sub li{break-inside:avoid}
.sub a{display:block;color:rgba(255,255,255,.82);text-decoration:none;font-size:.78rem;font-weight:400;letter-spacing:.04em;padding:.5rem 1.6rem;transition:color .25s,padding-left .25s}
.sub a:hover,.sub a.active{color:#fff;padding-left:1.9rem}
.sub .sub-head{font-size:.6rem;letter-spacing:.26em;text-transform:uppercase;color:#7cc6f0;font-weight:600;padding:.2rem 1.6rem .7rem}
.sub .sub-divider{height:1px;background:rgba(255,255,255,.1);margin:.6rem 1.6rem}
@media(hover:hover){
  .has-sub:hover>.sub,.has-sub:focus-within>.sub{opacity:1;visibility:visible;transform:none;transition-delay:0s}
}
li.open>.sub{opacity:1;visibility:visible;transform:none;transition-delay:0s}

.nav-toggle{display:none;background:none;border:0;color:#fff;cursor:pointer;flex-direction:column;gap:5px}
.nav-toggle span{width:24px;height:1.5px;background:#fff;display:block;transition:transform .35s ease,opacity .25s ease}
header.nav-open .nav-toggle span:nth-child(1){transform:translateY(6.5px) rotate(45deg)}
header.nav-open .nav-toggle span:nth-child(2){opacity:0}
header.nav-open .nav-toggle span:nth-child(3){transform:translateY(-6.5px) rotate(-45deg)}
body.nav-lock{overflow:hidden}

/* ---------- 3. BUTTONS ---------- */
.btn-primary{display:inline-block;background:var(--kcc-blue);color:#fff;text-decoration:none;padding:1rem 2.1rem;font-size:.74rem;letter-spacing:.18em;text-transform:uppercase;font-weight:600;border-radius:1px;transition:all .35s;border:1px solid var(--kcc-blue);cursor:pointer;font-family:inherit;line-height:1.2}
.btn-primary:hover{background:transparent;color:var(--kcc-blue)}
.dark .btn-primary:hover,.hero .btn-primary:hover,.enquire .btn-primary:hover,.residences .btn-primary:hover,.page-hero .btn-primary:hover,.band .btn-primary:hover,.section.navy .btn-primary:hover{color:#fff}
.btn-outline{display:inline-block;background:transparent;color:var(--navy);text-decoration:none;padding:1rem 2.1rem;font-size:.74rem;letter-spacing:.18em;text-transform:uppercase;font-weight:600;border-radius:1px;border:1px solid var(--navy);transition:all .35s;cursor:pointer;font-family:inherit;line-height:1.2}
.btn-outline:hover{background:var(--navy);color:#fff}
.dark .btn-outline,.enquire .btn-outline,.residences .btn-outline,.page-hero .btn-outline,.band .btn-outline,.section.navy .btn-outline,.tile .btn-outline{color:#fff;border-color:rgba(255,255,255,.6)}
.dark .btn-outline:hover,.enquire .btn-outline:hover,.residences .btn-outline:hover,.page-hero .btn-outline:hover,.band .btn-outline:hover,.section.navy .btn-outline:hover{background:#fff;color:var(--navy);border-color:#fff}
.btn-ghost{color:#fff;text-decoration:none;font-size:.74rem;letter-spacing:.16em;text-transform:uppercase;font-weight:500;display:inline-flex;align-items:center;gap:.7rem;opacity:.9;transition:opacity .3s}
.btn-ghost:hover{opacity:1}
.btn-ghost .play{width:34px;height:34px;border:1px solid rgba(255,255,255,.6);border-radius:50%;display:grid;place-items:center;font-size:.6rem}
.more{display:inline-flex;align-items:center;gap:.6rem;color:var(--navy);text-decoration:none;font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;font-weight:600;border-bottom:1px solid var(--kcc-blue);padding-bottom:.4rem;transition:gap .3s}
.more:hover{gap:1.1rem}
.more.on-dark,.dark .more{color:#fff}

/* ---------- 4. REVEAL ---------- */
.reveal{opacity:0;transform:translateY(34px);transition:opacity 1s cubic-bezier(.2,.7,.2,1),transform 1s cubic-bezier(.2,.7,.2,1)}
.reveal.in{opacity:1;transform:none}

/* ---------- 5. HOME HERO (FILM) ---------- */
.hero{position:relative;height:100vh;min-height:640px;overflow:hidden;display:flex;align-items:flex-end}
.hero-media{position:absolute;inset:0;z-index:1}
.yt-bg{position:absolute;top:50%;left:50%;z-index:2;width:100vw;height:56.25vw;min-height:100vh;min-width:177.78vh;transform:translate(-50%,-52%) scale(1.7);border:0;pointer-events:none}
.film{position:absolute;inset:0}
.film .panel{
  position:absolute;inset:0;opacity:0;
  background:var(--p-img,linear-gradient(rgba(0,0,0,0),rgba(0,0,0,0))),var(--p-grad);
  background-size:cover;background-position:center;
  animation:filmCycle 24s infinite, kenburns 24s infinite ease-in-out;
}
.film .panel:nth-child(1){--p-grad:radial-gradient(120% 90% at 70% 95%,rgba(0,130,204,.42),transparent 55%),linear-gradient(180deg,#0c3252 0%,#062a45 45%,#03192b 100%);animation-delay:0s}
.film .panel:nth-child(2){--p-grad:radial-gradient(120% 90% at 25% 100%,rgba(0,130,204,.38),transparent 55%),linear-gradient(180deg,#10456a 0%,#082f4d 50%,#04141f 100%);animation-delay:8s}
.film .panel:nth-child(3){--p-grad:radial-gradient(100% 80% at 50% 100%,rgba(124,198,240,.3),transparent 60%),linear-gradient(180deg,#0a3a5c 0%,#062a45 50%,#02101c 100%);animation-delay:16s}
@keyframes filmCycle{0%{opacity:0}5%{opacity:1}28%{opacity:1}36%{opacity:0}100%{opacity:0}}
@keyframes kenburns{0%{transform:scale(1.04)}100%{transform:scale(1.16)}}
.hero-scrim{position:absolute;inset:0;z-index:2;background:linear-gradient(180deg,rgba(4,20,33,.55) 0%,rgba(4,20,33,.05) 30%,rgba(4,20,33,.25) 60%,rgba(3,14,24,.85) 100%)}
.grain{position:absolute;inset:0;z-index:3;opacity:.05;pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
.hero-inner{position:relative;z-index:4;padding:0 var(--pad-x) clamp(3.5rem,8vh,7rem);max-width:1100px}
.hero .kicker{color:#9fc6df;font-size:.72rem;letter-spacing:.34em;text-transform:uppercase;font-weight:600;margin-bottom:1.6rem;opacity:0;animation:rise 1s .3s forwards}
.hero h1{color:#fff;font-size:clamp(2.9rem,7.2vw,6.4rem);letter-spacing:.01em;opacity:0;animation:rise 1.1s .5s forwards}
.hero h1 em{font-style:italic;color:#cfe6f5}
.hero p.lede{color:rgba(255,255,255,.82);font-size:clamp(1rem,1.4vw,1.18rem);font-weight:300;max-width:520px;margin-top:1.6rem;line-height:1.7;opacity:0;animation:rise 1.1s .7s forwards}
.hero-cta{display:flex;gap:1.1rem;align-items:center;margin-top:2.4rem;flex-wrap:wrap;opacity:0;animation:rise 1.1s .9s forwards}
@keyframes rise{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:translateY(0)}}
.scroll-cue{position:absolute;bottom:1.6rem;left:50%;transform:translateX(-50%);z-index:4;color:rgba(255,255,255,.6);font-size:.6rem;letter-spacing:.3em;text-transform:uppercase;display:flex;flex-direction:column;align-items:center;gap:.6rem}
.scroll-cue .line{width:1px;height:46px;background:linear-gradient(rgba(255,255,255,.7),transparent);animation:cue 2s infinite}
@keyframes cue{0%,100%{opacity:.3;transform:scaleY(.6)}50%{opacity:1;transform:scaleY(1)}}

/* ---------- 6. HOME SECTIONS ---------- */
.intro{padding:var(--pad-y) var(--pad-x);max-width:var(--container);margin:0 auto;display:grid;grid-template-columns:1fr 1.15fr;gap:clamp(2rem,6vw,6rem);align-items:center}
.intro .est,.est{font-size:.72rem;letter-spacing:.3em;text-transform:uppercase;color:var(--muted);font-weight:600}
.intro h2{font-size:clamp(2rem,3.6vw,3.4rem);color:var(--navy);margin-top:1.2rem}
.intro h2 em,h2 em.blue{font-style:italic;color:var(--kcc-blue)}
.intro .body p,.prose p{color:#3f5360;font-weight:300;line-height:1.95;font-size:1.05rem;margin-bottom:1.3rem}
.stat-row{display:flex;gap:2.6rem;margin-top:2rem;flex-wrap:wrap}
.stat .n{font-family:'Cormorant Garamond',serif;font-size:2.6rem;color:var(--kcc-blue);line-height:1}
.stat .l{font-size:.66rem;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);margin-top:.5rem;font-weight:500}

/* The Experience — asymmetric grid (Lesah, 28 Sep 2026; from Concept B). One .feat (2x2), .wide (2x1), the rest 1x1. */
.grid-sec{padding:0 var(--pad-x) var(--pad-y)}
.grid-head{max-width:1280px;margin:0 auto 2.6rem;display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:1rem 2rem}
.grid-head h2{font-size:clamp(1.9rem,3.4vw,3rem);color:var(--navy);margin-top:.9rem}
.xgrid{max-width:1280px;margin:0 auto;display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:clamp(166px,21vw,246px);gap:1rem;grid-auto-flow:dense}
.xcard{position:relative;overflow:hidden;display:flex;align-items:flex-end;text-decoration:none;background:#06151f}
.xcard.feat{grid-column:span 2;grid-row:span 2}
.xcard.wide{grid-column:span 2;max-width:none;margin:0} /* reset the global .wide container utility */
/* 1 feat + 3 wide + 8 singles = 18 cells; the last wide card closes the grid full-width so four columns never leave a hole */
.xcard.wide:last-child{grid-column:1/-1}
.xcard .bg{position:absolute;inset:0;background:var(--scene-img),linear-gradient(160deg,#0d3a5c,#062a45 60%,#03192b);background-size:cover;background-position:center;transform:scale(1.05);transition:transform 1.2s ease}
.xcard .sc{position:absolute;inset:0;background:linear-gradient(180deg,rgba(6,26,40,0) 25%,rgba(6,26,40,.55) 58%,rgba(6,26,40,.9));transition:background .4s}
.xcard .ct{position:relative;z-index:2;padding:1.5rem 1.7rem;color:#fff;text-shadow:0 1px 14px rgba(4,18,28,.5)}
.xcard .e{font-size:.6rem;letter-spacing:.22em;text-transform:uppercase;color:#9fd0ef;font-weight:600}
.xcard h3{font-size:clamp(1.3rem,1.9vw,2.1rem);margin-top:.35rem;color:#fff}
.xcard.feat h3{font-size:clamp(1.8rem,2.8vw,2.8rem)}
.xcard .go{font-size:.64rem;letter-spacing:.16em;text-transform:uppercase;font-weight:600;margin-top:.7rem;display:inline-block;opacity:.9}
.xcard:focus-visible{outline-offset:-3px;outline-color:#fff}
@media(hover:hover){
  .xcard .go{opacity:0;transform:translateY(6px);transition:opacity .35s,transform .35s}
  .xcard:hover .bg,.xcard:focus-visible .bg{transform:scale(1.13)}
  .xcard:hover .sc,.xcard:focus-visible .sc{background:linear-gradient(180deg,rgba(0,130,204,.12) 20%,rgba(6,26,40,.6) 55%,rgba(6,26,40,.92))}
  .xcard:hover .go,.xcard:focus-visible .go{opacity:.9;transform:none}
}

.social{padding:clamp(4.5rem,10vh,8rem) var(--pad-x);max-width:1280px;margin:0 auto}
.social-head{text-align:center;max-width:640px;margin:0 auto 3rem}
.social-head h2{font-size:clamp(1.9rem,3.4vw,3rem);color:var(--navy)}
.social-head p{color:var(--muted);font-weight:300;margin-top:1rem;line-height:1.8}
.proof-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.4rem;margin-bottom:2.4rem}
.proof-card{border:1px solid var(--line-light);padding:2rem 1.8rem;text-align:center;background:#fff;transition:transform .4s,box-shadow .4s}
.proof-card:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(6,42,69,.08)}
.proof-card .plat-icon{height:34px;width:auto;display:block;margin:0 auto .95rem}
.proof-card .plat{font-size:.64rem;letter-spacing:.2em;text-transform:uppercase;color:var(--muted);font-weight:600}
.proof-card .big{font-family:'Cormorant Garamond',serif;font-size:2.8rem;color:var(--navy);margin:.5rem 0 .2rem;overflow-wrap:anywhere}
/* a handle is a name, not a numeral — set at the rating size it is one unbreakable
   17-character word and was widening the whole row past a phone */
.proof-card .big.handle{font-size:1.7rem}
.stars{color:#34a853;letter-spacing:.1em;font-size:1.05rem}
/* LinkedIn (2 Nov 2026): a fourth card. Its word under the figure takes LinkedIn's own blue, as
   Google and Facebook take their green; four across on a desktop, two by two from 1024px down */
.stars.li{color:#0a66c2}
.proof-row--4{grid-template-columns:repeat(4,minmax(0,1fr));gap:1.2rem}
@media(min-width:1025px){
  .proof-row--4 .proof-card{padding:2rem 1.3rem}
  .proof-row--4 .proof-card .big.handle{font-size:clamp(1.3rem,2.05vw,1.7rem)}
}
/* NB: not `.sub` — that class belongs to the nav dropdown, which is absolutely positioned,
   opacity:0 until hover, and display:none under 1024px. The review counts were invisible
   at every width until this was renamed. */
.proof-card .proof-sub{font-size:.78rem;color:var(--muted);margin-top:.6rem}
.proof-card a{color:var(--kcc-blue);text-decoration:none;font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;font-weight:600;display:inline-block;margin-top:1rem}
.ig-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:.6rem}
.ig-tile{position:relative;aspect-ratio:1;background:var(--scene-img),var(--g);background-size:cover;background-position:center;overflow:hidden;display:block}
.ig-tile::after{content:"";position:absolute;inset:0;background:rgba(6,42,69,0);transition:background .35s}
.ig-tile:hover::after{background:rgba(0,130,204,.4)}
.ig-tile:nth-child(1){--g:linear-gradient(135deg,#0d3a5c,#062a45)}
.ig-tile:nth-child(2){--g:linear-gradient(135deg,#114a72,#082f4d)}
.ig-tile:nth-child(3){--g:linear-gradient(135deg,#0a3354,#05223a)}
.ig-tile:nth-child(4){--g:linear-gradient(135deg,#13507a,#0a2336)}
.ig-tile:nth-child(5){--g:linear-gradient(135deg,#0c3252,#03192b)}
.ig-tile:nth-child(6){--g:linear-gradient(135deg,#10456a,#04141f)}
.ig-foot{display:flex;align-items:center;justify-content:space-between;margin-top:1.2rem;flex-wrap:wrap;gap:1rem}
.ig-foot .h{font-size:.8rem;color:var(--ink);font-weight:500;letter-spacing:.05em}
.ig-foot a{color:var(--kcc-blue);text-decoration:none;font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;font-weight:600}
.live-note{text-align:center;font-size:.66rem;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);margin-top:1.8rem}
.live-note .dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#34a853;margin-right:.5rem;vertical-align:middle;animation:pulse 2s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.3}}

.news{background:var(--cream-2);padding:clamp(4.5rem,10vh,8rem) var(--pad-x)}
.news .inner{max-width:var(--container);margin:0 auto}
.news-top{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:2.6rem;flex-wrap:wrap;gap:1rem}
.news-top h2{font-size:clamp(1.9rem,3.4vw,3rem);color:var(--navy)}
.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.6rem}
.news-card{background:#fff;border:1px solid var(--line-light);transition:transform .4s,box-shadow .4s;display:block;text-decoration:none;color:inherit}
.news-card:hover{transform:translateY(-5px);box-shadow:0 20px 44px rgba(6,42,69,.1)}
.news-card .img{aspect-ratio:3/2;background:var(--scene-img),var(--g);background-size:cover;background-position:center}
.news-card:nth-child(1) .img{--g:linear-gradient(135deg,#0d3a5c,#062a45)}
.news-card:nth-child(2) .img{--g:linear-gradient(135deg,#114a72,#082f4d)}
.news-card:nth-child(3) .img{--g:linear-gradient(135deg,#0a3354,#05223a)}
.news-card .c{padding:1.6rem 1.6rem 1.9rem}
.news-card .date{font-size:.64rem;letter-spacing:.18em;text-transform:uppercase;color:var(--kcc-blue);font-weight:600}
.news-card h3{font-size:1.5rem;color:var(--navy);margin:.7rem 0 .8rem;line-height:1.2}
.news-card p{font-size:.9rem;color:var(--muted);font-weight:300;line-height:1.7}

.enquire{position:relative;padding:clamp(5rem,12vh,9rem) var(--pad-x);text-align:center;color:#fff;overflow:hidden;background:linear-gradient(160deg,#0a3a5c,#062a45 55%,#03192b)}
.enquire::before{content:"";position:absolute;inset:0;background:radial-gradient(90% 70% at 50% 0%,rgba(0,130,204,.35),transparent 60%)}
.enquire .wrap{position:relative;z-index:2;max-width:720px;margin:0 auto}
.enquire h2{font-size:clamp(2.2rem,4.4vw,3.8rem);font-style:italic}
.enquire p{color:rgba(255,255,255,.8);font-weight:300;margin:1.3rem 0 2.4rem;line-height:1.8;font-size:1.05rem}
.enquire-btns{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}

/* ---------- 7. PAGE HERO (inner pages) ---------- */
.page-hero{position:relative;min-height:65vh;display:flex;align-items:flex-end;overflow:hidden;color:#fff;background:var(--navy)}
.page-hero.tall{min-height:80vh}
.page-hero.short{min-height:48vh}
.page-hero .ph-media{position:absolute;inset:0;background:var(--scene-img),radial-gradient(110% 80% at 75% 100%,rgba(0,130,204,.4),transparent 55%),linear-gradient(160deg,#0d3a5c,#062a45 60%,#03192b);background-size:cover;background-position:center;transform:scale(1.02);animation:kenburnsSlow 22s ease-out forwards}
@keyframes kenburnsSlow{from{transform:scale(1.02)}to{transform:scale(1.1)}}
/* Two layers. The vertical one seats the hero in the page; the left-weighted one sits under
   the type, because the Club's photographs are bright exactly where the breadcrumb and the
   kicker sit (water, sky, the bowling green) and small tracked type at .62rem was failing
   contrast on most of them. The right of the photograph is left alone, so these still read
   as photographs rather than as dark panels. */
.page-hero .ph-scrim{position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,20,33,.72) 0%,rgba(4,20,33,.46) 46%,rgba(4,20,33,0) 82%),linear-gradient(180deg,rgba(4,20,33,.5) 0%,rgba(4,20,33,.12) 32%,rgba(4,20,33,.5) 62%,rgba(3,14,24,.88) 100%)}
/* a centred hero (the /members/ interstitial) takes the wash from both sides instead */
/* a bright hero (white linen, a projector wall, a pale sky) takes .deep: the same wash,
   carried further across and through the 32% band where the breadcrumb and kicker sit */
.page-hero.deep .ph-scrim{background:linear-gradient(90deg,rgba(4,20,33,.82) 0%,rgba(4,20,33,.6) 46%,rgba(4,20,33,.06) 84%),linear-gradient(180deg,rgba(4,20,33,.58) 0%,rgba(4,20,33,.34) 32%,rgba(4,20,33,.58) 62%,rgba(3,14,24,.9) 100%)}
.page-hero:has(.ph-inner.centered) .ph-scrim{background:linear-gradient(90deg,rgba(4,20,33,.5),rgba(4,20,33,.62) 50%,rgba(4,20,33,.5)),linear-gradient(180deg,rgba(4,20,33,.5) 0%,rgba(4,20,33,.12) 32%,rgba(4,20,33,.5) 62%,rgba(3,14,24,.88) 100%)}
.page-hero .ph-inner{position:relative;z-index:2;padding:clamp(7rem,14vh,9rem) var(--pad-x) clamp(3rem,7vh,5rem);max-width:1100px;width:100%}
.page-hero .ph-inner.centered{max-width:none;text-align:center}
.page-hero .ph-inner.centered .lede{margin-left:auto;margin-right:auto}
.crumbs{display:flex;gap:.7rem;align-items:center;font-size:.62rem;letter-spacing:.2em;text-transform:uppercase;color:rgba(255,255,255,.6);margin-bottom:1.6rem;flex-wrap:wrap}
.crumbs a{color:rgba(255,255,255,.75);text-decoration:none;transition:color .3s}
.crumbs a:hover{color:#fff}
.crumbs span[aria-current]{color:#fff}
.page-hero .kicker{color:#9fc6df;font-size:.72rem;letter-spacing:.34em;text-transform:uppercase;font-weight:600;margin-bottom:1.2rem;display:block}
.page-hero h1{font-size:clamp(2.6rem,6vw,5.2rem);letter-spacing:.01em;color:#fff}
.page-hero h1 em{font-style:italic;color:#cfe6f5}
.page-hero .lede{color:rgba(255,255,255,.84);font-size:clamp(1rem,1.4vw,1.16rem);font-weight:300;max-width:560px;margin-top:1.4rem;line-height:1.75}
.page-hero .ph-cta{display:flex;gap:1rem;flex-wrap:wrap;margin-top:2rem}
.page-hero .ph-inner.centered .ph-cta{justify-content:center}

/* section sub-navigation */
.subnav{background:var(--cream-2);border-bottom:1px solid var(--line-light);position:sticky;top:68px;z-index:40}
.subnav ul{list-style:none;display:flex;gap:1.6rem;max-width:var(--container);margin:0 auto;padding:0 var(--pad-x);overflow-x:auto;scrollbar-width:none}
.subnav ul::-webkit-scrollbar{display:none}
.subnav a{display:block;padding:1.15rem 0;font-size:.68rem;letter-spacing:.18em;text-transform:uppercase;font-weight:500;color:var(--muted);text-decoration:none;white-space:nowrap;border-bottom:1px solid transparent;transition:color .3s,border-color .3s}
.subnav a:hover,.subnav a.active{color:var(--navy);border-bottom-color:var(--kcc-blue)}

/* ---------- 8. INNER PRIMITIVES ---------- */
.section{padding:var(--pad-y) var(--pad-x)}
.section.tight{padding-top:clamp(3rem,7vh,5.5rem);padding-bottom:clamp(3rem,7vh,5.5rem)}
.section.alt{background:var(--cream-2)}
.section.no-top{padding-top:0}
.section.dark{background:var(--warm-dark);color:#fff}
.section.navy{background:linear-gradient(160deg,#0a3a5c,#062a45 55%,#03192b);color:#fff}
.section.dark h2,.section.navy h2,.section.dark h3,.section.navy h3{color:#fff}
.section.dark .prose p,.section.navy .prose p{color:rgba(255,255,255,.78)}
.section.dark .eyebrow,.section.navy .eyebrow{color:#7cc6f0}
h2.title{font-size:clamp(1.9rem,3.6vw,3.6rem);color:var(--navy);margin-top:1rem}
h2.title em{font-style:italic;color:var(--kcc-blue)}
h3.sub-title{font-size:clamp(1.5rem,2.4vw,2.2rem);color:var(--navy);margin:.6rem 0 1rem}
.section-head{max-width:680px;margin-bottom:clamp(2rem,5vh,3.5rem)}
/* keep section headings on the same left edge as the 1280 content grid */
.section>.section-head:not(.center){margin-left:max(0px,calc((100% - var(--container))/2))}
.section-head.center{margin-left:auto;margin-right:auto;text-align:center}
.section-head.center .rule{margin-left:auto;margin-right:auto}
.section-head p{color:var(--muted);font-weight:300;line-height:1.85;margin-top:1rem;font-size:1.02rem}
.section-head .enquire-btns{margin-top:2rem}
.section.dark .section-head p,.section.navy .section-head p{color:rgba(255,255,255,.75)}
.prose{max-width:720px}
.prose h3{font-size:1.8rem;color:var(--navy);margin:2.2rem 0 .8rem}
.prose ul{list-style:none;margin:0 0 1.4rem}
.prose li{padding-left:1.4rem;position:relative;color:#3f5360;font-weight:300;line-height:1.9;margin-bottom:.4rem}
.prose li::before{content:"";position:absolute;left:0;top:.9em;width:8px;height:1px;background:var(--kcc-blue)}
.prose ol{list-style:none;counter-reset:step;margin:0 0 1.4rem}
.prose ol li{padding-left:2.6rem;counter-increment:step}
.prose ol li::before{content:counter(step,decimal-leading-zero);top:.3em;width:auto;height:auto;background:none;font-family:'Montserrat',sans-serif;font-size:.66rem;letter-spacing:.18em;font-weight:600;color:var(--kcc-blue)}
.prose blockquote{font-family:'Cormorant Garamond',serif;font-size:clamp(1.5rem,2.4vw,2rem);font-style:italic;color:var(--navy);line-height:1.35;border-left:1px solid var(--kcc-blue);padding-left:1.6rem;margin:2.2rem 0}
.prose blockquote cite{display:block;font-family:'Montserrat',sans-serif;font-style:normal;font-size:.66rem;letter-spacing:.2em;text-transform:uppercase;color:var(--muted);margin-top:.9rem}
.prose a{color:var(--kcc-blue)}

/* editorial split (image + copy) */
.split{max-width:var(--container);margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,6vw,6rem);align-items:center}
.split.flip .split-img{order:2}
.split.top{align-items:start}
.split.gap-top,.gap-top{margin-top:clamp(2.5rem,6vh,4rem)}
.split-img{position:relative;aspect-ratio:4/5;background:var(--scene-img),linear-gradient(155deg,#123a55,#0a2336 55%,#06151f);background-size:cover;background-position:center;border:1px solid var(--line-light)}
.split-img.landscape{aspect-ratio:3/2}
.split-img .badge{position:absolute;top:1.2rem;left:1.2rem;font-size:.6rem;letter-spacing:.26em;text-transform:uppercase;color:#fff;border:1px solid rgba(255,255,255,.35);padding:.45rem .8rem;background:rgba(4,20,33,.55);backdrop-filter:blur(2px)}
.split-copy h2{font-size:clamp(1.9rem,3.4vw,3.2rem);color:var(--navy);margin:1rem 0 1.2rem}
.split-copy h2 em{font-style:italic;color:var(--kcc-blue)}
.split-copy p{color:#3f5360;font-weight:300;line-height:1.95;font-size:1.05rem;margin-bottom:1.3rem;max-width:520px}
.section.dark .split-copy h2,.section.navy .split-copy h2{color:#fff}
.section.dark .split-copy p,.section.navy .split-copy p{color:rgba(255,255,255,.78)}
.split + .split{margin-top:var(--pad-y)}

/* full-bleed feature band */
.band{position:relative;min-height:60vh;display:flex;align-items:center;overflow:hidden;color:#fff}
.band .bg{position:absolute;inset:0;background:var(--scene-img),linear-gradient(160deg,#0d3a5c,#062a45 60%,#03192b);background-size:cover;background-position:center;background-attachment:fixed}
.band .scrim{position:absolute;inset:0;background:linear-gradient(180deg,rgba(4,20,33,.72),rgba(4,20,33,.5) 45%,rgba(3,14,24,.78))}
.band .content{position:relative;z-index:2;max-width:760px;margin:0 auto;padding:clamp(4rem,10vh,7rem) var(--pad-x);text-align:center}
.band h2{font-size:clamp(2rem,4vw,3.6rem);font-style:italic;margin:.8rem 0 1.2rem}
.band p{color:rgba(255,255,255,.82);font-weight:300;line-height:1.8;font-size:1.05rem;margin-bottom:2rem}

/* card grid (facilities, venues, listings) */
.card-grid{max-width:var(--container);margin:0 auto;display:grid;grid-template-columns:repeat(3,1fr);gap:1.6rem}
.card-grid.two{grid-template-columns:repeat(2,1fr);max-width:var(--container)}
.card-grid.four{grid-template-columns:repeat(4,1fr)}
.card{display:block;text-decoration:none;color:inherit;background:#fff;border:1px solid var(--line-light);transition:transform .4s,box-shadow .4s;overflow:hidden}
.card:hover{transform:translateY(-5px);box-shadow:0 20px 44px rgba(6,42,69,.1)}
.card .card-img{aspect-ratio:4/3;background:var(--scene-img),linear-gradient(135deg,#0d3a5c,#062a45);background-size:cover;background-position:center;transition:transform 1.2s ease}
.card:hover .card-img{transform:scale(1.04)}
.card .card-body{padding:1.5rem 1.6rem 1.8rem;position:relative;background:#fff}
.card .label{font-size:.62rem;letter-spacing:.2em;text-transform:uppercase;color:var(--kcc-blue);font-weight:600}
.card h3{font-size:1.55rem;color:var(--navy);margin:.6rem 0 .6rem;line-height:1.15}
.card p{font-size:.9rem;color:var(--muted);font-weight:300;line-height:1.7}
.card .meta{font-size:.66rem;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);margin-top:1rem;font-weight:500}
/* image-led tile (dark, text over photo) */
.tile{position:relative;display:flex;align-items:flex-end;min-height:360px;color:#fff;text-decoration:none;overflow:hidden;background:var(--scene-img),linear-gradient(135deg,#0d3a5c,#062a45);background-size:cover;background-position:center;transition:transform 1.2s ease}
.tile::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(6,26,40,0) 30%,rgba(6,26,40,.8));transition:background .4s}
.tile:hover::after{background:linear-gradient(180deg,rgba(0,130,204,.15) 30%,rgba(6,26,40,.85))}
.tile .t-body{position:relative;z-index:2;padding:1.6rem 1.7rem}
.tile .label{font-size:.6rem;letter-spacing:.24em;text-transform:uppercase;color:#9fc6df;font-weight:600}
.tile h3{font-size:1.7rem;margin:.5rem 0 .3rem;color:#fff}
.tile p{font-size:.86rem;color:rgba(255,255,255,.8);font-weight:300;line-height:1.6;max-width:300px}
.tile.wide{grid-column:span 2}
.tile.tall{grid-row:span 2;min-height:100%}
/* a section's whole set of facilities or venues, nine or ten at a time — the tiles come down
   a size and stay two-up on a phone, because nine full-width tiles is nine screens */
.card-grid.facilities{gap:1.1rem}
.card-grid.facilities .tile{min-height:300px}
.card-grid.facilities .tile h3{font-size:1.45rem}
/* label + title + a line of copy is more type than the standard tile scrim carries — the
   facility tiles use the deeper "door" wash so the label stays legible on a bright photograph */
.card-grid.facilities .tile::after{background:linear-gradient(180deg,rgba(6,26,40,0) 8%,rgba(6,26,40,.5) 42%,rgba(6,26,40,.92))}
.card-grid.facilities .tile:hover::after{background:linear-gradient(180deg,rgba(0,130,204,.18) 8%,rgba(6,26,40,.55) 42%,rgba(6,26,40,.94))}

/* stat strip & spec list */
.stat-strip{max-width:var(--container);margin:0 auto;display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line-light);border-bottom:1px solid var(--line-light)}
.stat-strip .stat{padding:2rem 1.5rem;text-align:center;border-right:1px solid var(--line-light)}
.stat-strip .stat:last-child{border-right:0}
.section.dark .stat-strip,.section.navy .stat-strip{border-color:var(--line-dark)}
.section.dark .stat-strip .stat,.section.navy .stat-strip .stat{border-color:var(--line-dark)}
.section.dark .stat .n,.section.navy .stat .n{color:#7cc6f0}
.section.dark .stat .l,.section.navy .stat .l{color:rgba(255,255,255,.65)}
.specs{list-style:none;border-top:1px solid var(--line-light)}
.specs li{display:grid;grid-template-columns:minmax(140px,.9fr) 2fr;gap:1.5rem;padding:1rem 0;border-bottom:1px solid var(--line-light);font-size:.92rem;font-weight:300;line-height:1.7;color:#3f5360}
.specs a{color:var(--kcc-blue);text-decoration:none}
.specs a:hover{color:var(--navy)}
.specs li b{font-size:.66rem;letter-spacing:.18em;text-transform:uppercase;color:var(--navy);font-weight:600;padding-top:.3rem}
.section.dark .specs li,.section.navy .specs li{color:rgba(255,255,255,.8);border-color:var(--line-dark)}
.section.dark .specs,.section.navy .specs{border-color:var(--line-dark)}
.section.dark .specs li b,.section.navy .specs li b{color:#7cc6f0}
.section.dark .specs a,.section.navy .specs a{color:#7cc6f0;text-decoration:none}
.section.dark .specs a:hover,.section.navy .specs a:hover{color:#fff}
.table-wrap{overflow-x:auto}
.table-wrap:focus-visible{outline:2px solid var(--kcc-blue);outline-offset:3px}
table.kcc{width:100%;border-collapse:collapse;font-size:.92rem;font-weight:300}
table.kcc th{text-align:left;font-size:.64rem;letter-spacing:.18em;text-transform:uppercase;color:var(--navy);font-weight:600;padding:.9rem 1rem;border-bottom:1px solid var(--navy)}
table.kcc td{padding:1rem;border-bottom:1px solid var(--line-light);color:#3f5360;vertical-align:top;line-height:1.6}
table.kcc td a,table.kcc th[scope=row] a{color:var(--kcc-blue);text-decoration:none;border-bottom:1px solid transparent;transition:border-color .3s}
table.kcc td a:hover,table.kcc th[scope=row] a:hover{border-bottom-color:var(--kcc-blue)}
table.kcc th[scope=row]{font-size:.92rem;font-weight:400;letter-spacing:0;text-transform:none;color:var(--ink);border-bottom:1px solid var(--line-light);padding:1rem;vertical-align:top;line-height:1.6}
table.kcc tr:hover td,table.kcc tr:hover th[scope=row]{background:rgba(255,255,255,.5)}
.table-wrap + .note{margin-top:1.2rem}
/* a table whose first column is a date: keep it on one line and as narrow as it can be */
table.kcc.dates th[scope=row]{white-space:nowrap;width:1%}

/* accordion (native details) */
.acc{border-top:1px solid var(--line-light);max-width:var(--container);margin:0 auto}
.acc details{border-bottom:1px solid var(--line-light)}
.acc summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:1.5rem;padding:1.4rem 0;font-family:'Cormorant Garamond',serif;font-size:1.5rem;color:var(--navy);transition:color .3s}
.acc summary::-webkit-details-marker{display:none}
.acc summary:hover{color:var(--kcc-blue)}
.acc summary .num{font-family:'Montserrat',sans-serif;font-size:.64rem;letter-spacing:.2em;color:var(--kcc-blue);font-weight:600;margin-right:1rem}
.acc summary::after{content:"+";font-family:'Montserrat',sans-serif;font-weight:300;font-size:1.4rem;color:var(--kcc-blue);transition:transform .3s}
.acc details[open] summary::after{transform:rotate(45deg)}
.acc .acc-body{padding:0 0 1.6rem;color:#3f5360;font-weight:300;line-height:1.85;font-size:.98rem;max-width:720px}
.acc .acc-body p{margin-bottom:.9rem}

/* image-led "door" (a whole page entrance, used in pairs on hubs) */
.tile.door{min-height:440px}
.tile.door::after{background:linear-gradient(180deg,rgba(6,26,40,0) 12%,rgba(6,26,40,.5) 42%,rgba(6,26,40,.92))}
.tile.door h3{font-size:2rem}
.tile.door p{max-width:340px}
.tile .more{margin-top:1.2rem;color:#fff}

/* quiet browse strip that closes a facility or venue page — the rest of the section as type,
   not as another grid of photographs */
.more-strip{max-width:var(--container);margin:0 auto}
.more-strip .mh{font-size:.66rem;letter-spacing:.24em;text-transform:uppercase;color:var(--muted);font-weight:600;margin-bottom:1.3rem}
.more-strip ul{list-style:none;display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line-light)}
.more-strip li{border-bottom:1px solid var(--line-light);border-right:1px solid var(--line-light)}
.more-strip li:nth-child(4n){border-right:0}
.more-strip a{display:block;padding:1.15rem 1.2rem;text-decoration:none;color:var(--navy);font-family:'Cormorant Garamond',serif;font-size:1.35rem;line-height:1.15;transition:background .3s,color .3s}
.more-strip a .s{display:block;font-family:'Montserrat',sans-serif;font-size:.6rem;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);font-weight:500;margin-top:.45rem}
.more-strip a:hover{background:rgba(0,130,204,.06);color:var(--kcc-blue)}
.more-strip a:hover .s{color:var(--kcc-blue)}
/* stacked strips (the review page's index) need the group heading clearly nearer its own
   list than the list above it */
.more-strip + .more-strip.gap-top{margin-top:clamp(3.4rem,8vh,5rem)}

/* photo gallery (course photos, venue galleries) */
.gallery{max-width:var(--container);margin:0 auto;display:grid;grid-template-columns:repeat(4,1fr);gap:.7rem}
.gallery .shot{position:relative;aspect-ratio:4/3;background:var(--scene-img),linear-gradient(135deg,#0d3a5c,#062a45);background-size:cover;background-position:center;overflow:hidden}
.gallery .shot::after{content:"";position:absolute;inset:0;background:rgba(0,130,204,0);transition:background .4s}
.gallery .shot:hover::after{background:rgba(0,130,204,.22)}
/* a wide shot takes its height from the row, not from 4:3 — with both an aspect-ratio
   and a stretched row height Chrome keeps the ratio and centres the box inside its
   two tracks, which is why .wide never looked wide */
.gallery .shot.wide{grid-column:span 2;aspect-ratio:auto;width:100%;height:100%}
.gallery-note{max-width:var(--container);margin:1.2rem auto 0}

/* lazy YouTube frame: poster + play, the iframe is built on click */
.yt-embed{position:relative;aspect-ratio:16/9;overflow:hidden;border:1px solid var(--line-light);
  background:var(--scene-img),linear-gradient(150deg,#0d3a5c,#062a45 60%,#03192b);background-size:cover;background-position:center}
.yt-embed::after{content:"";position:absolute;inset:0;background:rgba(4,20,33,.42);transition:background .4s;pointer-events:none}
.yt-embed:hover::after{background:rgba(4,20,33,.26)}
.yt-embed.playing::after{display:none}
.yt-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.yt-play{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.9rem;
  background:none;border:0;cursor:pointer;font-family:inherit;color:#fff;font-size:.68rem;letter-spacing:.2em;text-transform:uppercase;font-weight:600}
.yt-play .disc{width:60px;height:60px;border:1px solid rgba(255,255,255,.7);border-radius:50%;display:grid;place-items:center;font-size:.85rem;transition:background .4s,border-color .4s}
.yt-play:hover .disc{background:var(--kcc-blue);border-color:var(--kcc-blue)}
.acc .yt-embed{max-width:720px;margin-bottom:1.2rem}

/* small tracked tag (fixture type, category) */
.tag{display:inline-block;font-size:.6rem;letter-spacing:.18em;text-transform:uppercase;font-weight:600;color:var(--muted);border:1px solid var(--line-light);padding:.3rem .6rem;white-space:nowrap}
.tag.blue{color:var(--kcc-blue);border-color:rgba(0,130,204,.4)}

/* article */
.article{max-width:720px;margin:0 auto}
.article .meta{display:flex;gap:1.2rem;font-size:.64rem;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);font-weight:500;margin-bottom:2rem;flex-wrap:wrap}
.article .meta .cat{color:var(--kcc-blue);font-weight:600}
.article p{color:#3f5360;font-weight:300;line-height:1.95;font-size:1.08rem;margin-bottom:1.5rem}
.article p.intro-p{font-family:'Cormorant Garamond',serif;font-size:1.5rem;line-height:1.5;color:var(--navy)}
.article h2{font-size:2rem;color:var(--navy);margin:2.6rem 0 1rem}
.article figure{margin:2.4rem 0}
.article figure .img{aspect-ratio:3/2;background:var(--scene-img),linear-gradient(135deg,#0d3a5c,#062a45);background-size:cover;background-position:center}
.article figcaption{font-size:.72rem;letter-spacing:.06em;color:var(--muted);margin-top:.7rem}
.article-share{display:flex;gap:1.4rem;align-items:center;border-top:1px solid var(--line-light);padding-top:1.6rem;margin-top:3rem;font-size:.66rem;letter-spacing:.18em;text-transform:uppercase;color:var(--muted)}
.article-share a{color:var(--navy);text-decoration:none}
/* a marker that belongs to the meta block above it, not to the body copy below.
   .article p is more specific than .note, so the note has to restate its own size. */
.article .note{font-size:.66rem;line-height:1.7;color:var(--muted)}
.article > .note.sample{margin:-1.2rem 0 2.2rem}

/* news list */
.news-list{max-width:var(--container);margin:0 auto;display:grid;grid-template-columns:repeat(3,1fr);gap:1.6rem}
.filters{display:flex;gap:.6rem;flex-wrap:wrap;margin-bottom:2.4rem;justify-content:center}
.filters a,.filters button{font-family:inherit;font-size:.64rem;letter-spacing:.18em;text-transform:uppercase;font-weight:500;color:var(--muted);background:none;border:1px solid var(--line-light);padding:.55rem 1rem;text-decoration:none;cursor:pointer;transition:all .3s}
.filters a:hover,.filters a.active,.filters button:hover,.filters button.active{color:#fff;background:var(--navy);border-color:var(--navy)}
.pagination{display:flex;justify-content:center;gap:1.4rem;margin-top:3rem;font-size:.66rem;letter-spacing:.2em;text-transform:uppercase}
.pagination a{color:var(--muted);text-decoration:none}
.pagination a.active,.pagination a:hover{color:var(--navy)}
/* paging is a demonstration until the Club has more than one page of items: the current
   page is type, the rest are inert spans rather than links that go nowhere */
.pagination .on{color:var(--navy);font-weight:600}
.pagination .off{color:rgba(95,114,128,.4)}

/* directory / contact */
.dir-grid{max-width:var(--container);margin:0 auto;display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem}
.dir-card{border:1px solid var(--line-light);background:#fff;padding:1.8rem 1.7rem}
.dir-card .label{font-size:.62rem;letter-spacing:.22em;text-transform:uppercase;color:var(--kcc-blue);font-weight:600}
.dir-card h3{font-size:1.5rem;color:var(--navy);margin:.6rem 0 .7rem}
.dir-card p,.dir-card a{font-size:.9rem;color:#3f5360;font-weight:300;line-height:1.75;text-decoration:none;display:block}
.dir-card a:hover{color:var(--kcc-blue)}
.dir-card .note{display:flex;margin-top:.9rem;font-size:.62rem;line-height:1.6}
/* the map sits on the same left edge as every other in-section grid, and takes the
   full section gap after a .split rather than the small one */
.map-frame{aspect-ratio:16/8;max-width:var(--container);margin:0 auto;background:var(--cream-2);border:1px solid var(--line-light);overflow:hidden;filter:grayscale(.35) contrast(.95)}
.split + .map-frame{margin-top:var(--pad-y)}
.map-frame iframe{width:100%;height:100%;border:0;display:block}

/* people (leadership) */
.people{max-width:var(--container);margin:0 auto;display:grid;grid-template-columns:repeat(4,1fr);gap:1.6rem}
.person .portrait{aspect-ratio:4/5;background:var(--scene-img),linear-gradient(155deg,#123a55,#0a2336 55%,#06151f);background-size:cover;background-position:center;margin-bottom:1rem}
.person h3{font-size:1.4rem;color:var(--navy)}
.person .role{font-size:.64rem;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);margin-top:.4rem;font-weight:500}

/* timeline */
.timeline{max-width:var(--container);margin:0 auto;display:grid;grid-template-columns:repeat(4,1fr);gap:2rem;border-top:1px solid var(--line-light);padding-top:2rem}
.timeline.three{grid-template-columns:repeat(3,1fr)}
.timeline .yr{font-family:'Cormorant Garamond',serif;font-size:2.4rem;color:var(--kcc-blue);line-height:1}
.timeline h3{font-size:1.4rem;color:var(--navy);margin:.8rem 0 .5rem}
.timeline p{font-size:.9rem;color:var(--muted);font-weight:300;line-height:1.7}

/* dark-ground variants — first used by body.res-page, which runs the whole page on
   warm-dark and therefore needs the light-ground primitives inverted */
.section.dark .card,.section.navy .card{background:rgba(255,255,255,.045);border-color:var(--line-dark)}
.section.dark .card .card-body,.section.navy .card .card-body{background:transparent}
.section.dark .card h3,.section.navy .card h3{color:#fff}
.section.dark .card p,.section.navy .card p{color:rgba(255,255,255,.72)}
.section.dark .card .label,.section.navy .card .label{color:#7cc6f0}
.section.dark .card .meta,.section.navy .card .meta{color:rgba(255,255,255,.6)}
.section.dark .card:hover,.section.navy .card:hover{box-shadow:0 20px 44px rgba(0,0,0,.35)}
.section.dark .prose li,.section.navy .prose li{color:rgba(255,255,255,.78)}
.section.dark .prose h3,.section.navy .prose h3{color:#fff}
.section.dark .prose a,.section.navy .prose a{color:#7cc6f0}
.section.dark .more-strip ul,.section.navy .more-strip ul{border-color:var(--line-dark)}
.section.dark .more-strip li,.section.navy .more-strip li{border-color:var(--line-dark)}
.section.dark .more-strip .mh,.section.navy .more-strip .mh{color:rgba(255,255,255,.6)}
.section.dark .more-strip a,.section.navy .more-strip a{color:#fff}
.section.dark .more-strip a .s,.section.navy .more-strip a .s{color:rgba(255,255,255,.58)}
.section.dark .more-strip a:hover,.section.navy .more-strip a:hover{background:rgba(0,130,204,.16);color:#7cc6f0}
.section.dark .more-strip a:hover .s,.section.navy .more-strip a:hover .s{color:#7cc6f0}

/* notice / demo note */
.note{font-size:.66rem;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);display:flex;gap:.6rem;align-items:center}
.specs + .note,.prose + .note{margin-top:1.1rem}
.section.dark .note,.section.navy .note,.band .note{color:rgba(255,255,255,.66)}
.note .dot{display:inline-block;flex:none;width:6px;height:6px;border-radius:50%;background:var(--kcc-blue)}
.note b{color:var(--navy);font-weight:600}
.note a{color:var(--kcc-blue);text-decoration:none;border-bottom:1px solid rgba(0,130,204,.35);transition:border-color .3s}
.note a:hover{border-bottom-color:var(--kcc-blue)}
.section.dark .note a,.section.navy .note a,.band .note a{color:#7cc6f0;border-bottom-color:rgba(124,198,240,.4)}
.section.dark .note b,.section.navy .note b,.band .note b{color:#fff}
.section-head.center .note{justify-content:center}
.note.center{justify-content:center;text-align:center}
.filters + .filter-count{margin:-1.6rem 0 2.4rem}
.confirm{outline:1px dashed rgba(0,130,204,.5);outline-offset:2px}

/* ---------- 9. FORMS ---------- */
.form-wrap{max-width:var(--container);margin:0 auto;display:grid;grid-template-columns:1fr 1.4fr;gap:clamp(2rem,6vw,5rem);align-items:start}
.form-aside h2{font-size:clamp(1.9rem,3.2vw,3rem);color:var(--navy);margin:1rem 0 1.2rem}
.form-aside p{color:#3f5360;font-weight:300;line-height:1.9;margin-bottom:1.2rem}
.form-aside .specs{margin-top:1.6rem}
.form{display:grid;grid-template-columns:1fr 1fr;gap:1.3rem 1.6rem;background:#fff;border:1px solid var(--line-light);padding:clamp(1.6rem,3vw,2.6rem)}
.field{display:flex;flex-direction:column;gap:.5rem}
.field.full{grid-column:1/-1}
.field label{font-size:.64rem;letter-spacing:.2em;text-transform:uppercase;color:var(--navy);font-weight:600}
.field label .opt{color:var(--muted);font-weight:400;letter-spacing:.1em;text-transform:none;font-size:.66rem}
.field input,.field select,.field textarea{font-family:inherit;font-size:.94rem;font-weight:300;color:var(--ink);background:var(--cream);border:1px solid var(--line-light);border-radius:1px;padding:.85rem 1rem;transition:border-color .3s,background .3s;width:100%;appearance:none;-webkit-appearance:none}
.field select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235f7280' stroke-width='1.2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 1rem center;padding-right:2.4rem}
.field input[type=checkbox],.field input[type=radio]{width:16px;height:16px;padding:0;border:0;background:none;appearance:auto;-webkit-appearance:auto;accent-color:var(--kcc-blue);flex:none}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--kcc-blue);background:#fff}
.field textarea{min-height:140px;resize:vertical}
.field .hint{font-size:.72rem;color:var(--muted);font-weight:300}
.choices{border:0;display:flex;flex-direction:column;gap:.7rem}
.choices legend{font-size:.64rem;letter-spacing:.2em;text-transform:uppercase;color:var(--navy);font-weight:600;margin-bottom:.8rem;padding:0}
.choices legend .opt{color:var(--muted);font-weight:400;letter-spacing:.1em;text-transform:none;font-size:.66rem}
.choices .check{grid-column:auto;align-items:center;cursor:pointer;text-transform:none;letter-spacing:0;font-weight:300;font-size:.8rem;color:#3f5360}
.check{display:flex;gap:.8rem;align-items:flex-start;font-size:.8rem;color:#3f5360;font-weight:300;line-height:1.6;grid-column:1/-1}
.check input{margin-top:.3rem;accent-color:var(--kcc-blue);width:16px;height:16px;flex:none}
.form-actions{grid-column:1/-1;display:flex;align-items:center;gap:1.4rem;flex-wrap:wrap;margin-top:.4rem}
.form-actions .note{margin-left:auto}
.form .sent{grid-column:1/-1;display:none;padding:1.4rem 1.6rem;border:1px solid var(--kcc-blue);color:var(--navy);font-weight:300;line-height:1.7;font-size:.94rem}
.form.is-sent .sent{display:block}
.form.is-sent .field,.form.is-sent .check,.form.is-sent .form-actions{display:none}
.section.dark .form,.section.navy .form{background:rgba(255,255,255,.04);border-color:var(--line-dark)}
.section.dark .field label,.section.navy .field label{color:#fff}
.section.dark .field input,.section.dark .field select,.section.dark .field textarea,.section.navy .field input,.section.navy .field select,.section.navy .field textarea{background-color:rgba(255,255,255,.06);border-color:var(--line-dark);color:#fff}
.section.dark .field input:focus,.section.navy .field input:focus,.section.dark .field select:focus,.section.navy .field select:focus,.section.dark .field textarea:focus,.section.navy .field textarea:focus{background-color:rgba(255,255,255,.1)}
.section.dark .choices legend,.section.navy .choices legend{color:#fff}
.section.dark .choices .check,.section.navy .choices .check{color:rgba(255,255,255,.8)}
.section.dark .check,.section.navy .check,.section.dark .field .hint,.section.navy .field .hint{color:rgba(255,255,255,.7)}
.section.dark .form-aside h2,.section.navy .form-aside h2{color:#fff}
.section.dark .form-aside p,.section.navy .form-aside p{color:rgba(255,255,255,.78)}
/* the acknowledgement was set navy — invisible on a dark form until now */
.section.dark .form .sent,.section.navy .form .sent{color:#fff;background:rgba(0,130,204,.1)}
.section.dark .field label .opt,.section.navy .field label .opt,
.section.dark .choices legend .opt,.section.navy .choices legend .opt{color:rgba(255,255,255,.6)}
.section.dark .field input::placeholder,.section.navy .field input::placeholder,
.section.dark .field textarea::placeholder,.section.navy .field textarea::placeholder{color:rgba(255,255,255,.42)}
.section.dark .field select,.section.navy .field select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239fc6df' stroke-width='1.2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 1rem center}
/* availability bar (The Residences → the Profitroom booking engine, in a KCC-framed modal).
   Four fields and one action on one line; the panel lifts onto the hero on a wide screen. */
.avail{display:grid;grid-template-columns:1.1fr 1.1fr .85fr auto;gap:1rem 1.2rem;align-items:end;
  background:rgba(6,26,40,.9);border:1px solid rgba(255,255,255,.18);padding:1.5rem 1.7rem;
  max-width:var(--container);margin:0 auto;backdrop-filter:blur(10px);box-shadow:0 26px 60px rgba(2,10,18,.4)}
.avail .field label{color:#9fc6df}
/* background-COLOR, never the shorthand: the shorthand wipes the select's arrow */
.avail .field input,.avail .field select{background-color:rgba(255,255,255,.07);border-color:rgba(255,255,255,.22);color:#fff;height:52px}
.avail .field input:focus,.avail .field select:focus{background-color:rgba(255,255,255,.12);border-color:var(--kcc-blue)}
.avail .field select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239fc6df' stroke-width='1.2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 1rem center}
/* the native date picker indicator is black-on-black in a dark field */
.avail input[type=date]::-webkit-calendar-picker-indicator{filter:invert(1) opacity(.65);cursor:pointer}
.avail input[type=date]::-webkit-calendar-picker-indicator:hover{filter:invert(1) opacity(1)}
.avail .btn-primary{padding:0 1.7rem;height:52px;white-space:nowrap}
.avail .avail-error{grid-column:1/-1;display:none;font-size:.78rem;font-weight:300;line-height:1.6;
  color:#ffd9c9;border-left:2px solid #e08a63;padding:.2rem 0 .2rem .9rem}
.avail.has-error .avail-error{display:block}

/* ---------- 10. RESIDENCES (sub-brand) ---------- */
.residences{background:var(--warm-dark);color:#fff;padding:var(--pad-y) var(--pad-x);position:relative;overflow:hidden}
.residences .wrap{max-width:var(--container);margin:0 auto;display:grid;grid-template-columns:1.1fr 1fr;gap:clamp(2rem,6vw,5rem);align-items:center}
.res-visual{position:relative;aspect-ratio:4/5;background:var(--scene-img),linear-gradient(155deg,#123a55,#0a2336 55%,#06151f);background-size:cover;background-position:center;border:1px solid rgba(255,255,255,.12)}
.res-visual .badge{position:absolute;top:1.2rem;left:1.2rem;font-size:.6rem;letter-spacing:.26em;text-transform:uppercase;color:rgba(255,255,255,.7);border:1px solid rgba(255,255,255,.25);padding:.4rem .7rem}
.res-copy .eyebrow{color:#7cc6f0}
.res-copy h2{font-size:clamp(2.1rem,3.8vw,3.5rem);margin:1.1rem 0 1.3rem;font-style:italic}
.res-copy p{color:rgba(255,255,255,.78);font-weight:300;line-height:1.9;font-size:1.05rem;margin-bottom:1.4rem;max-width:480px}
body.res-page{background:var(--warm-dark);color:#fff}
body.res-page .page-hero .ph-media{background:var(--scene-img),linear-gradient(155deg,#123a55,#0a2336 55%,#06151f);background-size:cover;background-position:center}
body.res-page .section{background:var(--warm-dark)}
body.res-page .section.alt{background:#0d2431}
/* the sub-brand's emphasis blue is the lighter one — #0082cc goes muddy on warm-dark */
body.res-page h2 em{color:#7cc6f0}
body.res-page .split-img,body.res-page .gallery .shot{border-color:var(--line-dark)}
/* the availability bar sits on the foot of the hero on a wide screen — the hero type clears it */
@media(min-width:1025px){body.res-page .page-hero .ph-inner{padding-bottom:clamp(7rem,14vh,10rem)}}

/* the availability bar's own band: it lifts onto the foot of the hero on a wide screen,
   and sits under it, in the page, on anything narrower */
.res-book{position:relative;z-index:30;padding:0 var(--pad-x);scroll-margin-top:8.5rem}
.res-book .avail-foot{max-width:var(--container);margin:1.1rem auto 0;display:flex;gap:.6rem 1.6rem;
  flex-wrap:wrap;align-items:center;font-size:.64rem;letter-spacing:.16em;text-transform:uppercase;
  color:rgba(255,255,255,.55);font-weight:500}
.res-book .avail-foot .dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--kcc-blue);margin-right:.6rem}
.res-book .avail-foot a{color:#9fc6df;text-decoration:none;border-bottom:1px solid rgba(159,198,223,.35);padding-bottom:.2rem}
.res-book .avail-foot a:hover{color:#fff;border-bottom-color:#fff}
@media(min-width:1025px){.res-book{margin-top:-4.75rem}}

/* rooms: the card's action opens the booking modal, so it is a button, not a link */
.card:has(.card-book){display:flex;flex-direction:column}
.card:has(.card-book) .card-body{flex:1;display:flex;flex-direction:column}
.card .card-book{font-family:inherit;background:none;border:0;cursor:pointer;align-self:flex-start;
  margin-top:auto;padding:1.1rem 0 .35rem;font-size:.66rem;letter-spacing:.18em;text-transform:uppercase;font-weight:600;
  color:#7cc6f0;border-bottom:1px solid rgba(124,198,240,.45);transition:color .3s,border-color .3s}
.card .card-book:hover{color:#fff;border-bottom-color:#fff}

/* ---------- 10b. BOOKING MODAL (Profitroom engine, in the Club's own frame) ---------- */
/* A native <dialog>: the focus trap, Escape and the inert background come with it.
   The iframe src is set on open, so the booking engine costs nothing until it is asked for. */
.bk-modal{width:min(1120px,calc(100vw - 2.4rem));max-width:none;
  height:min(880px,calc(100dvh - 2.4rem));max-height:none;
  inset:0;margin:auto;
  padding:0;border:1px solid rgba(255,255,255,.18);border-radius:2px;
  background:var(--warm-dark);color:#fff;box-shadow:0 40px 90px rgba(2,10,18,.6);overflow:hidden}
.bk-modal:not([open]){display:none}
.bk-modal[open]{display:flex;flex-direction:column}
.bk-modal::backdrop{background:rgba(3,12,20,.84);backdrop-filter:blur(5px)}
.bk-head{flex:none;display:flex;align-items:center;justify-content:space-between;gap:1.2rem;
  padding:1.05rem clamp(1rem,2.4vw,1.6rem);border-bottom:1px solid rgba(255,255,255,.14)}
.bk-head .bk-eyebrow{display:block;font-size:.58rem;letter-spacing:.28em;text-transform:uppercase;color:#7cc6f0;font-weight:600}
.bk-head h2{font-family:'Cormorant Garamond',serif;font-size:1.55rem;font-weight:300;color:#fff;margin-top:.3rem;line-height:1}
.bk-close{flex:none;width:42px;height:42px;background:none;border:1px solid rgba(255,255,255,.25);
  color:#fff;cursor:pointer;font-family:inherit;font-size:1.05rem;line-height:1;display:grid;place-items:center;transition:all .3s}
.bk-close:hover{background:var(--kcc-blue);border-color:var(--kcc-blue)}
.bk-body{position:relative;flex:1;min-height:0;background:#fff}
.bk-frame{width:100%;height:100%;border:0;display:block;opacity:0;transition:opacity .5s ease}
.bk-modal.ready .bk-frame{opacity:1}
.bk-loader{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:1.1rem;background:var(--warm-dark);text-align:center;padding:2rem}
.bk-modal.ready .bk-loader{display:none}
.bk-loader .sp{width:38px;height:38px;border:1px solid rgba(255,255,255,.18);border-top-color:var(--kcc-blue);border-radius:50%;animation:bkspin 1s linear infinite}
@keyframes bkspin{to{transform:rotate(360deg)}}
.bk-loader p{font-size:.66rem;letter-spacing:.22em;text-transform:uppercase;color:rgba(255,255,255,.6);font-weight:500;line-height:2}
.bk-foot{flex:none;display:flex;align-items:center;gap:.7rem 1.5rem;flex-wrap:wrap;
  padding:.8rem clamp(1rem,2.4vw,1.6rem);border-top:1px solid rgba(255,255,255,.14);
  font-size:.6rem;letter-spacing:.16em;text-transform:uppercase;color:rgba(255,255,255,.5);font-weight:500}
.bk-foot a{color:#9fc6df;text-decoration:none;border-bottom:1px solid rgba(159,198,223,.35);padding-bottom:.2rem;margin-left:auto}
.bk-foot a:hover{color:#fff;border-bottom-color:#fff}
@media(max-width:700px){
  .bk-modal{width:100vw;height:100dvh;border:0;border-radius:0}
  .bk-head h2{font-size:1.3rem}
  .bk-foot a{margin-left:0}
}

/* ---------- 11. FOOTER ---------- */
footer.site{background:#041520;color:rgba(255,255,255,.7);padding:clamp(3.5rem,8vh,6rem) var(--pad-x) 2.5rem}
.foot-grid{max-width:var(--container);margin:0 auto;display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:2.5rem}
.foot-logo{height:74px;width:auto;display:block;margin-bottom:1.2rem}
.foot-brand .b-name{font-family:'Cormorant Garamond',serif;font-size:1.7rem;color:#fff;font-weight:500}
.foot-brand .b-sub{font-size:.56rem;letter-spacing:.36em;text-transform:uppercase;color:#7c97a8;margin-top:.5rem}
.foot-brand p{font-size:.84rem;line-height:1.8;margin-top:1.3rem;font-weight:300;max-width:280px}
.foot-brand p a{color:inherit;text-decoration:none}
.foot-col h4{font-family:'Montserrat',sans-serif;font-size:.66rem;letter-spacing:.2em;text-transform:uppercase;color:#7cc6f0;font-weight:600;margin-bottom:1.2rem}
.foot-col a{display:block;color:rgba(255,255,255,.7);text-decoration:none;font-size:.86rem;margin-bottom:.7rem;font-weight:300;transition:color .3s}
.foot-col a:hover{color:#fff}
.foot-bottom{max-width:var(--container);margin:3rem auto 0;padding-top:1.8rem;border-top:1px solid rgba(255,255,255,.1);display:flex;justify-content:space-between;flex-wrap:wrap;gap:1rem;font-size:.74rem;font-weight:300}
.foot-bottom .legal{display:flex;gap:1.2rem;flex-wrap:wrap}
.foot-bottom .legal a,.foot-bottom .socials a{color:rgba(255,255,255,.7);text-decoration:none}
.foot-bottom .socials{display:flex;gap:1.4rem}
.foot-bottom .socials a{letter-spacing:.1em;text-transform:uppercase;font-size:.68rem}

/* ---------- 12. RESPONSIVE ---------- */
@media(max-width:1500px){
  nav.primary .menu{gap:1.2rem}
  nav.primary a.navlink{font-size:.68rem;letter-spacing:.1em}
  .member-btn{padding:.55rem 1rem;font-size:.64rem}
  .menu-cta{margin-left:0}
}
@media(max-width:1280px){
  nav.primary .menu{gap:.9rem}
  .brand .b-sub{display:none}
  .brand .b-name{font-size:1.3rem}
  .brand-mark{height:44px}
}
@media(max-width:1024px){
  .xgrid{grid-template-columns:repeat(2,1fr);grid-auto-rows:clamp(170px,30vw,260px)}
  .xcard.feat{grid-row:span 1}
  .card-grid.four,.people,.timeline,.timeline.three{grid-template-columns:repeat(2,1fr)}
  .stat-strip{grid-template-columns:repeat(2,1fr)}
  .stat-strip .stat:nth-child(2n){border-right:0}
  .stat-strip .stat:nth-child(-n+2){border-bottom:1px solid var(--line-light)}
}
@media(max-width:1024px){
  nav.primary{position:fixed;inset:0;z-index:54;padding:6rem 1.5rem 3rem;background:rgba(5,28,46,.98);transform:translateX(100%);transition:transform .45s cubic-bezier(.2,.7,.2,1);overflow-y:auto;display:block}
  header.nav-open nav.primary{transform:none}
  nav.primary .menu{flex-direction:column;align-items:stretch;gap:0;max-width:520px;margin:0 auto}
  nav.primary .menu>li{flex-wrap:wrap;justify-content:space-between;border-bottom:1px solid rgba(255,255,255,.1)}
  nav.primary a.navlink{font-size:.92rem;letter-spacing:.2em;padding:1.1rem 0;flex:1}
  nav.primary a.navlink.active{box-shadow:none;color:#7cc6f0}
  .sub-toggle{width:44px;height:44px;color:#fff}
  .sub{position:static;min-width:0;width:100%;padding:0 0 .8rem;background:none;border-top:0;box-shadow:none;transform:none;opacity:1;visibility:visible;display:none;columns:1}
  .sub.cols-2{min-width:0}
  li.open>.sub{display:block}
  .sub a{padding:.55rem 1rem;font-size:.86rem}
  .sub a:hover,.sub a.active{padding-left:1.3rem}
  .sub .sub-head,.sub .sub-divider{display:none}
  .menu-cta{margin:1.6rem 0 0;border-bottom:0!important;justify-content:center}
  .member-btn{padding:.9rem 2rem}
  .brand{position:relative;z-index:56}
  .nav-toggle{display:flex;position:relative;z-index:56}
  .intro,.residences .wrap,.split,.form-wrap{grid-template-columns:1fr}
  .split.flip .split-img{order:0}
  .proof-row,.news-grid,.card-grid,.card-grid.two,.news-list,.dir-grid{grid-template-columns:1fr 1fr}
  .gallery{grid-template-columns:repeat(3,1fr)}
  .subnav{top:64px}
  .subnav ul{-webkit-mask-image:linear-gradient(90deg,#000 86%,transparent);mask-image:linear-gradient(90deg,#000 86%,transparent)}
  .tile.wide{grid-column:span 2}
  .ig-grid{grid-template-columns:repeat(3,1fr)}
  .foot-grid{grid-template-columns:1fr 1fr}
  .band .bg{background-attachment:scroll}
  .avail{grid-template-columns:1fr 1fr;padding:1.3rem 1.4rem}
  .avail .field:nth-of-type(3),.avail .btn-primary{grid-column:1/-1}
  .res-book{padding-top:clamp(2.4rem,6vh,3.4rem)}
  .more-strip ul{grid-template-columns:repeat(2,1fr)}
  .more-strip li:nth-child(2n){border-right:0}
}
@media(max-width:600px){
  /* two-up like the facility mosaic: twelve full-width cards would be twelve screens */
  .xgrid{gap:.7rem;grid-auto-rows:190px}
  .xcard .ct{padding:1rem 1.1rem}
  .xcard h3{font-size:1.2rem}
  .xcard.feat h3,.xcard.wide h3{font-size:1.6rem}
  .xcard .go{display:none}
  .xcard.feat .go,.xcard.wide .go{display:inline-block}
  .proof-row,.news-grid,.card-grid,.card-grid.two,.card-grid.four,.news-list,.dir-grid,.timeline,.timeline.three,.form{grid-template-columns:1fr}
  .proof-card .big{font-size:2.2rem}
  .proof-card .big.handle{font-size:1.45rem}
  /* portraits stay two-up on a phone — a single column of 4:5 photographs runs far too tall */
  .people{grid-template-columns:repeat(2,1fr);gap:1.1rem}
  .person h3{font-size:1.15rem}
  .gallery{grid-template-columns:repeat(2,1fr)}
  .gallery .shot.wide{grid-column:span 2;aspect-ratio:16/9;height:auto}
  .tile.wide,.tile.tall{grid-column:auto;grid-row:auto}
  .tile.door{min-height:320px}
  .tile.door h3{font-size:1.7rem}
  .tile{min-height:280px}
  /* the facility mosaic stays two-up — nine full-width tiles is nine screens of scrolling */
  .card-grid.facilities{grid-template-columns:repeat(2,1fr);gap:.7rem}
  .card-grid.facilities .tile{min-height:200px}
  .card-grid.facilities .tile .t-body{padding:1rem 1.1rem}
  .card-grid.facilities .tile h3{font-size:1.15rem}
  .card-grid.facilities .tile p{display:none}
  .more-strip a{font-size:1.2rem;padding:1rem}
  .field.full,.check,.form-actions,.form .sent{grid-column:auto}
  .avail{grid-template-columns:1fr}
  .avail .field.full,.avail .avail-error{grid-column:auto}
  .foot-grid{grid-template-columns:1fr}
  .specs li{grid-template-columns:1fr;gap:.3rem}
  .page-hero{min-height:56vh}
  .page-hero .ph-inner{padding-top:6.5rem}
  .stat-row{gap:1.8rem}
  .form-actions .note{margin-left:0}
  /* the wide tables scroll sideways — fade the trailing edge so that reads as scrollable */
  .table-wrap{-webkit-mask-image:linear-gradient(90deg,#000 90%,transparent);mask-image:linear-gradient(90deg,#000 90%,transparent)}
  /* secondary table columns drop on a phone rather than crushing the useful ones */
  .hide-sm{display:none}
}

/* ---------- 13. MOTION ---------- */
@media(prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
  .reveal{opacity:1;transform:none}
  .yt-bg{display:none}
  .hero .kicker,.hero h1,.hero p.lede,.hero-cta{opacity:1}
  .band .bg{background-attachment:scroll}
}
