/* Public gate, design D2 "Rail" (Pete approved 2026-12-02). Gate-only styles: loaded by gate.html and gate-home.html, no member file uses this sheet.
   Record: 06_clubhouse_south/website/audits/2026-12-02_gate_d2_record.md */
:root{
  --ink:#121c30;--ink2:rgba(18,28,48,.7);--ink3:rgba(18,28,48,.52);
  --ivory:#f3eee1;--ivory-dim:rgba(243,238,225,.62);
  /* Clubhouse South navy glass */
  --nv-top:#24365c;--nv-mid:#15223d;--nv-low:#0d162a;
  --nv-top-h:#2c4170;--nv-mid-h:#1a2a4a;--nv-low-h:#101b33;
  --ease:cubic-bezier(.2,.6,.2,1);--ease-out:cubic-bezier(.16,1,.3,1)}
html,body{margin:0;height:100%}
body{background:#0f1626 url('/assets/web/navy-card.jpg') 0 0/1024px 1024px repeat}
body.cs-gate-active{overflow:hidden;height:100svh}

/* ---------- the room: a thick sheet of white glass over the navy ---------- */
.cs-gate-overlay{position:fixed;inset:0;z-index:10;overflow-y:auto;display:grid;background:#0f1626}
.cs-gate-overlay::before{content:"";position:fixed;inset:-8px;z-index:0;pointer-events:none;
  background:#0f1626 url('/assets/web/navy-card.jpg') 0 0/1024px 1024px repeat;filter:blur(1.3px) brightness(2.45) contrast(1.6) saturate(.45)}
.cs-gate-overlay::after{content:"";position:fixed;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(46% 42% at 50% 46%,rgba(255,255,255,.34),rgba(255,255,255,0) 100%),
    radial-gradient(85% 60% at 50% -10%,rgba(255,255,255,.55),rgba(255,255,255,0) 70%),
    linear-gradient(180deg,rgba(250,251,253,.83) 0%,rgba(245,247,251,.77) 55%,rgba(236,240,246,.72) 100%)}
.g-frost{position:fixed!important;inset:0;z-index:0!important;pointer-events:none}
.g-frost::before{content:"";position:absolute;inset:0;
  background:
    linear-gradient(180deg,rgba(255,255,255,.95) 0,rgba(255,255,255,0) 1px),
    linear-gradient(103deg,rgba(255,255,255,.16) 0%,rgba(255,255,255,0) 28%,rgba(255,255,255,0) 60%,rgba(255,255,255,.1) 80%,rgba(255,255,255,0) 100%),
    radial-gradient(110% 85% at 50% 45%,rgba(18,28,48,0) 58%,rgba(18,28,48,.09) 100%)}
.g-frost::after{content:"";position:absolute;inset:0;opacity:.34;mix-blend-mode:soft-light;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23f)'/></svg>")}
.cs-gate-overlay>*{position:relative;z-index:1}

/* ---------- the navy glass material ---------- */
.nv{position:relative;isolation:isolate;color:var(--ivory);
  background:radial-gradient(120% 70% at 50% -10%,rgba(255,255,255,.13),rgba(255,255,255,0) 55%),
    linear-gradient(180deg,var(--nv-top) 0%,var(--nv-mid) 52%,var(--nv-low) 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22),inset 0 -1px 0 rgba(0,0,0,.35),
    0 1px 1px rgba(10,18,34,.22),0 6px 14px -6px rgba(10,18,34,.42),0 22px 36px -22px rgba(10,18,34,.38);
  transition:background .35s var(--ease),box-shadow .35s var(--ease),transform .35s var(--ease)}
.nv::before{content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;pointer-events:none;z-index:2;
  background:linear-gradient(180deg,rgba(255,255,255,.5) 0%,rgba(255,255,255,.08) 38%,rgba(255,255,255,.04) 70%,rgba(255,255,255,.16) 100%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;transition:opacity .35s var(--ease)}

/* ---------- the two portals, set at the top like a building's directory ---------- */
.d-top{display:flex;justify-content:flex-end;gap:10px;padding:26px 32px 0}
.pill{display:inline-flex;align-items:center;gap:9px;height:42px;padding:0 21px;border-radius:999px;box-sizing:border-box;text-decoration:none;white-space:nowrap;
  font:400 13.5px/1 'Inter',sans-serif;letter-spacing:.015em;-webkit-font-smoothing:antialiased}
.pill:hover,.pill:focus-visible{outline:none;transform:translateY(-1px);
  background:radial-gradient(120% 70% at 50% -10%,rgba(255,255,255,.16),rgba(255,255,255,0) 55%),
    linear-gradient(180deg,var(--nv-top-h) 0%,var(--nv-mid-h) 52%,var(--nv-low-h) 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.3),inset 0 -1px 0 rgba(0,0,0,.35),
    0 1px 1px rgba(10,18,34,.22),0 10px 20px -8px rgba(10,18,34,.5),0 26px 40px -22px rgba(10,18,34,.42)}
.pill:focus-visible{box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 0 0 2px #fff,0 0 0 4px var(--nv-mid)}
.pill-invite::after{content:"\2192";position:static;font-size:13px;opacity:.7;transition:transform .3s var(--ease),opacity .3s var(--ease)}
.pill-invite:hover::after,.pill-invite:focus-visible::after{transform:translateX(3px);opacity:1}

/* ---------- composition: statement, then the rail that anchors it ---------- */
.cs-gate-overlay{grid-template-rows:auto 1fr}
.d-main{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px 24px 72px}
.d-head{margin:0;font-family:'Fraunces',Georgia,serif;font-optical-sizing:auto;font-weight:300;font-size:clamp(34px,4.4vw,60px);
  line-height:1.04;letter-spacing:-.026em;color:var(--ink)}
.d-head span{display:block;text-wrap:balance}
.d-head em{font-style:italic;font-weight:300;letter-spacing:-.018em}

/* the rail: one slim object of navy glass; the crest docks into its left end */
.d-rail{display:flex;align-items:center;width:min(540px,100%);height:72px;margin-top:44px;border-radius:999px;box-sizing:border-box;padding:0 10px 0 0}
.d-rail::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:1;background:radial-gradient(100% 90% at 50% -30%,rgba(255,255,255,.16),rgba(255,255,255,0) 60%)}
.d-dock{position:relative;z-index:3;flex:none;width:92px;height:92px;margin-left:-10px;border-radius:50%;display:grid;place-items:center;
  background:linear-gradient(180deg,#2a3d66,#121d35);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 0 0 1px rgba(255,255,255,.1),0 8px 18px -6px rgba(10,18,34,.55),0 0 0 5px rgba(255,255,255,.5);
  transition:transform .6s var(--ease-out),box-shadow .35s var(--ease)}
.d-dock .cs-gate-badge{width:78px;height:78px;border-radius:50%;cursor:pointer;display:block;transition:transform .5s var(--ease)}
.cs-gate-hover .d-dock{box-shadow:inset 0 1px 0 rgba(255,255,255,.34),0 0 0 1px rgba(255,255,255,.16),0 12px 24px -6px rgba(10,18,34,.6),0 0 0 5px rgba(255,255,255,.8)}
.cs-gate-hover .d-dock .cs-gate-badge{transform:scale(1.04)}
.d-stage{position:static;flex:1;display:grid;align-items:center;height:100%;text-align:left}
.d-hint,.cs-gate-form{grid-area:1/1}
.d-hint{margin:0 0 0 22px;font:italic 300 18px/1.2 'Fraunces',Georgia,serif;color:var(--ivory);
  transition:color .35s var(--ease),opacity .35s var(--ease),transform .5s var(--ease),visibility 0s}
.cs-gate-hover .d-hint{color:#fff}

/* code entry happens inside the rail itself */
.cs-gate-form{position:static;display:grid;grid-template-columns:1fr auto;align-items:center;height:100%;
  opacity:0;visibility:hidden;pointer-events:none;transform:translateX(10px);
  transition:opacity .32s var(--ease),transform .5s var(--ease),visibility 0s .32s}
.cs-gate-form-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.cs-gate-input{grid-column:1;min-width:0;height:52px;box-sizing:border-box;margin-left:12px;padding:0 12px;border:0;outline:none;background:transparent;border-radius:14px;
  font:400 16px 'Inter',sans-serif;letter-spacing:.18em;text-transform:uppercase;color:var(--ivory);caret-color:var(--ivory);-webkit-font-smoothing:antialiased}
.cs-gate-input::placeholder{font:italic 300 18px 'Fraunces',Georgia,serif;letter-spacing:0;text-transform:none;color:var(--ivory-dim)}
.cs-gate-submit{grid-column:2;position:relative;width:50px;height:50px;padding:0;border:0;border-radius:50%;cursor:pointer;font-size:0;color:transparent}
.cs-gate-back{position:absolute;left:50%;top:calc(100% + 26px);transform:translateX(-50%);padding:4px 10px;border:0;background:none;cursor:pointer;
  font:400 13.5px 'Inter',sans-serif;color:var(--ink3)}
.cs-gate-back:hover,.cs-gate-back:focus-visible{color:var(--ink);outline:none}
.d-rail{position:relative}
.d-rail:focus-within{box-shadow:inset 0 1px 0 rgba(255,255,255,.26),inset 0 -1px 0 rgba(0,0,0,.35),0 0 0 4px rgba(36,54,92,.16),
    0 1px 1px rgba(10,18,34,.22),0 8px 18px -6px rgba(10,18,34,.45),0 26px 40px -22px rgba(10,18,34,.4)}

.cs-gate-unlocking .d-dock{transform:scale(.9)}
.cs-gate-unlocking .cs-gate-badge{cursor:default}
.cs-gate-unlocking .d-hint{opacity:0;visibility:hidden;transform:translateX(-10px);transition:opacity .28s var(--ease),transform .4s var(--ease),visibility 0s .28s}
.cs-gate-unlocking .cs-gate-form{opacity:1;visibility:visible;pointer-events:auto;transform:none;
  transition:opacity .45s var(--ease) .14s,transform .6s var(--ease-out) .14s,visibility 0s}

/* the invitation, directly beneath the rail */
.d-invite-wrap{margin-top:30px;transition:opacity .35s var(--ease),visibility 0s}
.cs-gate-unlocking .d-invite-wrap{opacity:0;visibility:hidden;transition:opacity .3s var(--ease),visibility 0s .3s}

@media (max-width:640px){
  .d-top{justify-content:center;padding:20px 16px 0}
  .d-main{padding:16px 18px 48px}
  .d-head{font-size:clamp(26px,7.4vw,31px);line-height:1.1}
  .d-rail{height:64px;margin-top:34px}
  .d-dock{width:80px;height:80px;margin-left:-6px}.d-dock .cs-gate-badge{width:68px;height:68px}
  .d-hint{font-size:16px;margin-left:14px}
  .cs-gate-input{margin-left:6px;font-size:14px;letter-spacing:.12em}
  .cs-gate-input::placeholder{font-size:16px}
  .cs-gate-submit{width:46px;height:46px}
}
@media (prefers-reduced-motion:reduce){.d-hint,.cs-gate-form,.d-dock,.pill{transition:opacity .2s linear,visibility 0s!important;transform:none!important}}

/* ---------- brand forest green glass (#4D7A5E, brand constitution), for the invitation and the key ----------
   Highlights and shading are white and black overlays on the exact brand green; no new shade. */
.gr{--g:#4D7A5E;color:#fff;
  background:radial-gradient(120% 70% at 50% -10%,rgba(255,255,255,.2),rgba(255,255,255,0) 55%),
    linear-gradient(180deg,rgba(255,255,255,.1) 0%,rgba(0,0,0,0) 45%,rgba(0,0,0,.24) 100%),var(--g);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.3),inset 0 -1px 0 rgba(0,0,0,.28),
    0 1px 1px rgba(16,36,24,.25),0 6px 14px -6px rgba(16,36,24,.45),0 22px 36px -22px rgba(16,36,24,.4)}
.gr:hover,.gr:focus-visible{
  background:radial-gradient(120% 70% at 50% -10%,rgba(255,255,255,.26),rgba(255,255,255,0) 55%),
    linear-gradient(180deg,rgba(255,255,255,.16) 0%,rgba(0,0,0,0) 45%,rgba(0,0,0,.18) 100%),var(--g);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.38),inset 0 -1px 0 rgba(0,0,0,.28),
    0 1px 1px rgba(16,36,24,.25),0 10px 20px -8px rgba(16,36,24,.5),0 26px 40px -22px rgba(16,36,24,.45)}
.pill.gr:focus-visible{box-shadow:inset 0 1px 0 rgba(255,255,255,.38),0 0 0 2px #fff,0 0 0 4px var(--g)}

/* the key: same green glass, a bespoke white symbol */
.cs-gate-submit{isolation:isolate;
  background:radial-gradient(120% 80% at 50% -10%,rgba(255,255,255,.24),rgba(255,255,255,0) 58%),
    linear-gradient(180deg,rgba(255,255,255,.1) 0%,rgba(0,0,0,0) 45%,rgba(0,0,0,.26) 100%),#4D7A5E;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.34),inset 0 -1px 0 rgba(0,0,0,.3),0 0 0 1px rgba(0,0,0,.18),0 3px 8px rgba(0,0,0,.4);
  transition:transform .25s var(--ease),box-shadow .3s var(--ease),background .3s var(--ease)}
.cs-gate-submit::before{content:"";position:absolute;inset:0;border-radius:50%;padding:1px;pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,.55),rgba(255,255,255,.08) 45%,rgba(255,255,255,.14));
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}
.cs-gate-submit::after{content:"";position:absolute;left:50%;top:50%;background:#fff;pointer-events:none;
  filter:drop-shadow(0 1px 0 rgba(0,0,0,.25));transition:transform .3s var(--ease)}
.cs-gate-submit:hover{transform:none;
  background:radial-gradient(120% 80% at 50% -10%,rgba(255,255,255,.3),rgba(255,255,255,0) 58%),
    linear-gradient(180deg,rgba(255,255,255,.16) 0%,rgba(0,0,0,0) 45%,rgba(0,0,0,.2) 100%),#4D7A5E;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.42),inset 0 -1px 0 rgba(0,0,0,.3),0 0 0 1px rgba(0,0,0,.18),0 5px 12px rgba(0,0,0,.45)}
.cs-gate-submit:hover::after{transform:translateX(2px)}
.cs-gate-submit:focus-visible{outline:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 0 0 2px var(--nv-mid),0 0 0 4px rgba(243,238,225,.85)}
.cs-gate-submit:disabled{opacity:.55;cursor:default}

/* the symbol: the nib from the crest, turned to point the way in (mask from the 1024px badge; geometry unaltered) */
.cs-gate-submit::after{width:28px;height:16.2px;margin:-8.1px 0 0 -13px;
  -webkit-mask:url('/assets/brand/nib-right.png') center/contain no-repeat;mask:url('/assets/brand/nib-right.png') center/contain no-repeat}
@media (max-width:640px){.cs-gate-submit{width:46px;height:46px}}

/* keyboard (audit J2): the crest takes focus and shows a ring; Enter or Space opens code entry */
.d-dock .cs-gate-badge:focus{outline:none}
.d-dock .cs-gate-badge:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--nv-mid)}
