/* =====================================================================
   The Key: homepage and public chrome (Lauren homepage brief, Oct 2026)
   File: Content/the-key-home.css  (load AFTER Content/the-key-brand.css)
   Built on The Key Website Style Guide v2.0 (7 October 2026).
   Only the eleven approved colours are used. Georgia headings, Arial UI.
   Source strings are sentence case; uppercase is applied by CSS only to
   eyebrows and primary buttons (style guide section 4).
   ===================================================================== */
:root {
  --key-bg: #080604;              /* Obsidian */
  --key-surface: #100E0D;         /* Onyx */
  --key-gold: #D8AD58;            /* Champagne Gold */
  --key-gold-highlight: #F2D58A;  /* Pale Gold */
  --key-gold-muted: #B9A16E;      /* Antique Gold */
  --key-text: #F5EFE4;            /* Ivory */
  --key-text-secondary: #D8D0C3;  /* Warm Stone */
  --key-text-muted: #AAA197;      /* Muted Taupe */
  --key-success: #3E9B75;
  --key-warning: #C6842A;
  --key-danger: #B84452;
  --key-border: rgba(216, 173, 88, 0.22);
  --key-radius-card: 8px;
  --key-radius-control: 6px;
  --key-control-height: 48px;
  --key-tap-min: 44px;
  --key-focus: 0 0 0 2px #080604, 0 0 0 4px #F2D58A;
  --key-max-width: 1200px;
  --key-font-display: Georgia, "Times New Roman", serif;
  --key-font-ui: Arial, Helvetica, sans-serif;
  --key-header-h: 168px; /* logo 140px tall + 14px above and below; every offset below reads this */
  --key-gutter: 48px;
  --key-section-y: 96px;
}
@media (max-width: 1023px) { :root { --key-gutter: 24px; --key-section-y: 80px; } }
@media (max-width: 767px)  { :root { --key-gutter: 16px; --key-section-y: 64px; --key-header-h: 120px; } }

/* ---------- Base (scoped so it can sit beside legacy CSS) ---------- */
.key-site, .key-site body { background: var(--key-bg); }
.key-site {
  margin: 0;
  color: var(--key-text);
  font-family: var(--key-font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.key-site *, .key-site *::before, .key-site *::after { box-sizing: border-box; }
.key-site img { max-width: 100%; display: block; }
.key-site a { color: var(--key-gold-highlight); }
.key-site a:focus-visible, .key-site button:focus-visible, .key-site [tabindex]:focus-visible {
  outline: none; box-shadow: var(--key-focus); border-radius: var(--key-radius-control);
}
.key-site h1, .key-site h2, .key-site h3 {
  font-family: var(--key-font-display); color: var(--key-text); font-weight: 400; margin: 0;
}
.key-sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.key-skip {
  position: absolute; left: 16px; top: -64px; z-index: 1001; padding: 12px 16px;
  background: var(--key-gold); color: var(--key-bg) !important; font-weight: 700;
  border-radius: var(--key-radius-control); text-decoration: none;
}
.key-skip:focus { top: 16px; }
.key-wrap { width: 100%; max-width: calc(var(--key-max-width) + 2 * var(--key-gutter)); margin: 0 auto; padding: 0 var(--key-gutter); }
.key-eyebrow {
  font-family: var(--key-font-ui); font-size: 12px; font-weight: 700; line-height: 1.3;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--key-gold-muted); margin: 0 0 16px;
}

/* ---------- Buttons ---------- */
.key-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--key-control-height); padding: 0 28px;
  border-radius: var(--key-radius-control); border: 1px solid var(--key-gold);
  font-family: var(--key-font-ui); font-size: 14px; font-weight: 700; line-height: 1.2;
  text-decoration: none !important; cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, transform .18s ease, border-color .18s ease;
}
.key-btn--primary { background: var(--key-gold); color: var(--key-bg) !important; text-transform: uppercase; letter-spacing: 0.12em; }
.key-btn--primary:hover { background: var(--key-gold-highlight); border-color: var(--key-gold-highlight); transform: translateY(-1px); }
.key-btn--primary:active { filter: brightness(0.9); } /* pressed: gold darkened ~10% (guide 5) without a new hex */
.key-btn--outline { background: transparent; color: var(--key-text) !important; letter-spacing: 0.04em; }
.key-btn--outline:hover { border-color: var(--key-gold-highlight); color: var(--key-gold-highlight) !important; transform: translateY(-1px); }
.key-btn--sm { min-height: var(--key-tap-min); padding: 0 18px; font-size: 13px; }
.key-link-arrow {
  display: inline-flex; align-items: center; min-height: var(--key-tap-min);
  color: var(--key-gold) !important; font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; text-decoration: none !important; border-bottom: 1px solid transparent;
}
.key-link-arrow:hover { color: var(--key-gold-highlight) !important; }

/* ---------- Header / navigation ---------- */
.key-header {
  position: fixed; inset: 0 0 auto 0; z-index: 900; height: var(--key-header-h);
  background: linear-gradient(180deg, rgba(8,6,4,0.92) 0%, rgba(8,6,4,0.55) 70%, rgba(8,6,4,0) 100%);
  transition: background-color .25s ease;
}
.key-header.is-solid { background: rgba(8,6,4,0.96); border-bottom: 1px solid var(--key-border); }
.key-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.key-header__logo { display: inline-flex; align-items: center; min-height: var(--key-tap-min); }
/* Logo 242x140 on desktop, ~170x98 on phones. Served from the-key-logo-header-{360,484,726}.webp
   (2x/3x of the displayed size) so it stays sharp. */
.key-header__logo img { display: block; height: 140px; width: auto; }
@media (max-width: 767px) { .key-header__logo img { height: 98px; } }
.key-nav { display: flex; align-items: center; gap: 36px; }
.key-nav ul { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 1199px) { .key-nav { gap: 20px; } .key-nav ul { gap: 18px; } .key-nav .key-btn--sm { padding: 0 20px; } }
.key-nav a:not(.key-btn) {
  display: inline-flex; align-items: center; min-height: var(--key-tap-min);
  color: var(--key-text-secondary); font-size: 18px; letter-spacing: 0.02em; text-decoration: none;
  border-bottom: 1px solid transparent;
}
.key-nav a:not(.key-btn):hover { color: var(--key-gold-highlight); }
.key-nav a[aria-current="page"] { color: var(--key-text); border-bottom-color: var(--key-gold); }
.key-menu-toggle {
  display: none; width: var(--key-tap-min); height: var(--key-tap-min); align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--key-border); border-radius: var(--key-radius-control); color: var(--key-gold); cursor: pointer;
}
.key-menu-toggle svg { width: 22px; height: 22px; }
.key-nav .key-btn--sm { font-size: 18px; min-height: 48px; padding: 0 26px; letter-spacing: 0.02em; } /* Enter matches the links */
@media (max-width: 1023px) {
  .key-nav { display: none; }
  .key-menu-toggle { display: inline-flex; }
}
.key-drawer[hidden] { display: none; }
.key-drawer { position: fixed; inset: 0; z-index: 1000; }
.key-drawer__backdrop { position: absolute; inset: 0; background: rgba(8,6,4,0.7); }
.key-drawer__panel {
  position: absolute; inset: 0 0 0 auto; width: min(380px, 100%); height: 100%; overflow-y: auto;
  background: var(--key-surface); border-left: 1px solid var(--key-border); padding: 24px;
  display: flex; flex-direction: column; gap: 24px;
}
.key-drawer__top { display: flex; align-items: center; justify-content: space-between; }
.key-drawer__top img { display: block; height: 80px; width: auto; }
.key-drawer__close { width: var(--key-tap-min); height: var(--key-tap-min); background: transparent; border: 1px solid var(--key-border); border-radius: var(--key-radius-control); color: var(--key-text); cursor: pointer; }
.key-drawer__panel .key-btn { width: 100%; }
.key-drawer__nav { list-style: none; margin: 0; padding: 0; }
.key-drawer__nav a {
  display: flex; align-items: center; min-height: 52px; padding-left: 12px; border-left: 2px solid transparent;
  color: var(--key-text); font-family: var(--key-font-display); font-size: 20px; text-decoration: none;
}
.key-drawer__nav a[aria-current="page"] { border-left-color: var(--key-gold); color: var(--key-gold-highlight); }
.key-drawer__nav .key-drawer__divider { height: 1px; background: var(--key-border); margin: 12px 0; }

/* ---------- Sections ---------- */
.key-section { padding: var(--key-section-y) 0; background: var(--key-bg); position: relative; }
.key-section--onyx { background: var(--key-surface); }
.key-section__head { max-width: 720px; margin-bottom: 48px; }
.key-section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.key-h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; letter-spacing: 0.005em; }
.key-lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--key-text-secondary); margin: 20px 0 0; max-width: 62ch; }
.key-rule { width: 64px; height: 1px; background: var(--key-gold); border: 0; margin: 24px 0; opacity: .8; }
.key-section__head--center .key-rule { margin-left: auto; margin-right: auto; }
.key-section__head--center .key-lead { margin-left: auto; margin-right: auto; }

/* 1. Hero (image) */
.key-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--key-bg); }
.key-hero__media, .key-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.key-hero__media img { object-fit: cover; object-position: 72% 50%; }
.key-hero__shade {
  position: absolute; inset: 0;
  /* left 45-50% stays dark for the copy (>=60% overlay behind the logo, guide 2 and 6) */
  background:
    linear-gradient(90deg, rgba(8,6,4,0.96) 0%, rgba(8,6,4,0.88) 32%, rgba(8,6,4,0.55) 50%, rgba(8,6,4,0.05) 72%),
    linear-gradient(0deg, rgba(8,6,4,0.9) 0%, rgba(8,6,4,0) 28%);
}
.key-hero__content { position: relative; z-index: 2; width: 100%; padding-top: var(--key-header-h); }
.key-hero__copy { max-width: 520px; }
.key-hero__logo { margin: 0 0 32px; }
.key-hero__logo img { width: clamp(260px, 30vw, 440px); height: auto; }
.key-hero__tagline {
  font-family: var(--key-font-display); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.3;
  color: var(--key-text); letter-spacing: 0.02em; margin: 0 0 12px;
}
.key-hero__promise { font-size: clamp(16px, 1.25vw, 18px); color: var(--key-text-secondary); margin: 0 0 40px; max-width: 40ch; }
.key-hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.key-hero__age { margin: 32px 0 0; font-size: 13px; color: var(--key-text-muted); letter-spacing: 0.06em; }
.key-scroll-cue {
  position: absolute; z-index: 2; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px; min-height: var(--key-tap-min);
  color: var(--key-text-muted) !important; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none !important;
}
.key-scroll-cue span { width: 1px; height: 32px; background: linear-gradient(var(--key-gold), transparent); }
@media (max-width: 767px) {
  .key-hero { align-items: flex-end; }
  .key-hero__media img { object-position: 78% 30%; }
  .key-hero__shade { background: linear-gradient(0deg, rgba(8,6,4,0.97) 0%, rgba(8,6,4,0.85) 42%, rgba(8,6,4,0.25) 70%, rgba(8,6,4,0.55) 100%); }
  .key-hero__content { padding-bottom: 88px; }
  .key-hero__logo img { width: min(78vw, 320px); }
  .key-hero__actions { flex-direction: column; }
  .key-hero__actions .key-btn { width: 100%; }
}

/* 2. Behind every door: three cinematic portraits */
.key-portraits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.key-portrait { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--key-radius-card); border: 1px solid var(--key-border); background: var(--key-surface); text-decoration: none !important; color: var(--key-text) !important; }
.key-portrait img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.82); transition: transform .35s ease, filter .35s ease; }
.key-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,6,4,0.92) 0%, rgba(8,6,4,0.2) 45%, rgba(8,6,4,0) 70%); }
.key-portrait__meta { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 24px; }
.key-portrait__name { font-family: var(--key-font-display); font-size: clamp(22px, 2vw, 28px); line-height: 1.2; display: block; }
.key-portrait__where { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; color: var(--key-text-secondary); }
.key-portrait__cta { display: inline-block; margin-top: 16px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--key-gold); opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease; }
.key-portrait:hover img, .key-portrait:focus-visible img { transform: scale(1.03); filter: saturate(1) brightness(.95); }
.key-portrait:hover .key-portrait__cta, .key-portrait:focus-visible .key-portrait__cta { opacity: 1; transform: none; }
@media (hover: none) { .key-portrait__cta { opacity: 1; transform: none; } }
@media (max-width: 767px) {
  .key-portraits { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .key-portraits > li { scroll-snap-align: start; }
}
.key-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.key-dot--available { background: var(--key-success); }
.key-dot--meeting { background: var(--key-gold-muted); }
.key-dot--offline { background: transparent; border: 1px solid var(--key-text-muted); }

/* 3. Key brand section (black + keyhole animation) */
.key-keysection { background: #080604; text-align: center; padding: calc(var(--key-section-y) + 16px) 0; overflow: hidden; }
.key-keyhole { width: 140px; height: 220px; margin: 0 auto 40px; display: block; }
.key-keyhole .kh-outline { fill: none; stroke: var(--key-gold); stroke-width: 1.5; stroke-dasharray: 640; stroke-dashoffset: 0; }
.key-keyhole .kh-light { fill: var(--key-gold-highlight); opacity: .85; }
.key-keyhole .kh-ring { fill: none; stroke: var(--key-gold-muted); stroke-width: 1; opacity: .5; transform-origin: 70px 78px; }
/* Animated start state only when JS is running (no-JS shows the finished keyhole) */
.key-js .key-keyhole .kh-outline { stroke-dashoffset: 640; }
.key-js .key-keyhole .kh-light, .key-js .key-keyhole .kh-ring { opacity: 0; }
.key-keysection.is-visible .kh-outline { animation: kh-draw 2.4s ease forwards; }
.key-keysection.is-visible .kh-light { animation: kh-light 3.2s ease 1.6s forwards, kh-breathe 5s ease-in-out 4.8s infinite; }
.key-keysection.is-visible .kh-ring { animation: kh-ring 2.6s ease 2.2s forwards; }
@keyframes kh-draw { to { stroke-dashoffset: 0; } }
@keyframes kh-light { to { opacity: .85; } }
@keyframes kh-breathe { 0%,100% { opacity: .85; } 50% { opacity: .55; } }
@keyframes kh-ring { from { opacity: 0; transform: scale(.9); } to { opacity: .5; transform: scale(1); } }
.key-keysection__title { font-size: clamp(32px, 4vw, 52px); line-height: 1.1; }
.key-keysection__sub { font-family: var(--key-font-display); font-style: italic; font-size: clamp(20px, 2vw, 26px); color: var(--key-text-secondary); margin: 12px 0 0; }
.key-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin: 72px auto 0; max-width: 1000px; list-style: none; padding: 0; text-align: center; }
.key-pillars h3 { font-size: 24px; line-height: 1.25; color: var(--key-gold); margin-bottom: 12px; }
.key-pillars p { margin: 0; color: var(--key-text-secondary); }
.key-pillars li { padding-top: 24px; border-top: 1px solid var(--key-border); }
@media (max-width: 767px) { .key-pillars { grid-template-columns: 1fr; gap: 32px; margin-top: 48px; } }

/* 4. The club is open: horizontal carousel */
.key-club__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.key-club__controls { display: flex; gap: 8px; }
.key-icon-btn { width: var(--key-tap-min); height: var(--key-tap-min); display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--key-text); border: 1px solid var(--key-border); border-radius: var(--key-radius-control); cursor: pointer; }
.key-icon-btn:hover { border-color: var(--key-gold); color: var(--key-gold-highlight); }
.key-icon-btn svg { width: 18px; height: 18px; }
.key-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 24px) / 4); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; list-style: none; margin: 0; padding: 0 0 16px; scrollbar-width: thin; scrollbar-color: var(--key-gold-muted) transparent; }
.key-carousel > li { scroll-snap-align: start; }
@media (max-width: 1023px) { .key-carousel { grid-auto-columns: calc((100% - 24px) / 2.4); } }
@media (max-width: 767px)  { .key-carousel { grid-auto-columns: 72%; gap: 16px; } .key-club__controls { display: none; } }
.key-host { display: flex; flex-direction: column; gap: 12px; }
.key-host__img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--key-radius-card); border: 1px solid var(--key-border); background: var(--key-surface); }
.key-host__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); transition: transform .35s ease; }
.key-host:hover .key-host__img img { transform: scale(1.03); }
.key-host__name { font-family: var(--key-font-display); font-size: 20px; letter-spacing: 0.12em; text-transform: uppercase; }
.key-host__status { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--key-text-secondary); margin-top: -6px; }
.key-empty { padding: 48px 24px; border: 1px solid var(--key-border); border-radius: var(--key-radius-card); text-align: center; color: var(--key-text-secondary); }

/* 5. Membership (image) */
.key-membership { position: relative; min-height: 78vh; display: flex; align-items: center; overflow: hidden; background: var(--key-bg); }
.key-membership__media, .key-membership__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.key-membership__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,6,4,0.95) 0%, rgba(8,6,4,0.75) 40%, rgba(8,6,4,0.1) 75%); }
.key-membership .key-wrap { position: relative; z-index: 2; }
.key-membership__copy { max-width: 520px; }
@media (max-width: 767px) {
  .key-membership { align-items: flex-end; min-height: 88vh; }
  .key-membership__shade { background: linear-gradient(0deg, rgba(8,6,4,0.97) 0%, rgba(8,6,4,0.8) 45%, rgba(8,6,4,0.15) 80%); }
  .key-membership .key-wrap { padding-bottom: 64px; }
}

/* 6. Host recruitment (split) */
.key-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.key-split__media { aspect-ratio: 4 / 5; max-height: 640px; border-radius: var(--key-radius-card); overflow: hidden; border: 1px solid var(--key-border); }
.key-split__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.85); }
.key-list-plain { list-style: none; margin: 24px 0 40px; padding: 0; display: grid; gap: 12px; }
.key-list-plain li { display: flex; gap: 12px; align-items: baseline; color: var(--key-text-secondary); }
.key-list-plain li::before { content: ""; width: 16px; height: 1px; background: var(--key-gold); flex: none; transform: translateY(-4px); }
@media (max-width: 767px) { .key-split { grid-template-columns: 1fr; gap: 40px; } .key-split__media { max-height: 420px; } }

/* 7. Trust / privacy */
.key-trust { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.key-trust li { text-align: center; padding: 24px 16px; border-top: 1px solid var(--key-border); }
.key-trust svg { width: 32px; height: 32px; color: var(--key-gold); margin: 0 auto 16px; display: block; }
.key-trust__badge { width: 32px; height: 32px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; border: 1.4px solid var(--key-gold); border-radius: 50%; color: var(--key-gold); font-family: var(--key-font-ui); font-size: 10px; font-weight: 700; letter-spacing: 0; }
.key-trust strong { display: block; font-family: var(--key-font-display); font-weight: 400; font-size: 19px; color: var(--key-text); margin-bottom: 6px; }
.key-trust span { display: block; font-size: 14px; color: var(--key-text-secondary); line-height: 1.45; }
.key-trust__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; margin-top: 48px; }
.key-trust__links a { display: inline-flex; align-items: center; min-height: var(--key-tap-min); color: var(--key-gold-highlight); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1023px) { .key-trust { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .key-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; } .key-trust li:last-child { grid-column: 1 / -1; } }

/* 8. Footer */
.key-footer { background: var(--key-bg); border-top: 1px solid var(--key-border); padding: 96px 0 40px; text-align: center; }
.key-footer__logo { width: clamp(220px, 26vw, 340px); height: auto; margin: 0 auto 20px; }
.key-footer__tagline { font-family: var(--key-font-display); font-size: 20px; color: var(--key-text); margin: 0 0 40px; letter-spacing: 0.02em; }
.key-footer__nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 28px; list-style: none; margin: 0; padding: 0; }
.key-footer__nav a { display: inline-flex; align-items: center; min-height: var(--key-tap-min); color: var(--key-text-secondary); font-size: 14px; text-decoration: none; }
.key-footer__nav a:hover { color: var(--key-gold-highlight); text-decoration: underline; text-underline-offset: 4px; }
.key-footer__social { display: flex; justify-content: center; gap: 12px; margin: 32px 0; }
.key-footer__social a { width: var(--key-tap-min); height: var(--key-tap-min); display: inline-flex; align-items: center; justify-content: center; color: var(--key-gold); border: 1px solid var(--key-border); border-radius: 50%; }
.key-footer__social a:hover { color: var(--key-gold-highlight); border-color: var(--key-gold); }
.key-footer__social svg { width: 18px; height: 18px; }
.key-footer__door { font-family: var(--key-font-display); font-style: italic; font-size: 18px; color: var(--key-gold-muted); margin: 0 0 40px; }
.key-footer__legal { font-size: 13px; color: var(--key-text-muted); line-height: 1.6; margin: 0; }
.key-footer__legal a { color: var(--key-text-secondary); }

/* 18+ entry gate (pages beyond the homepage; style guide 13) */
.key-gate[hidden] { display: none; }
.key-gate { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(8,6,4,0.94); }
.key-gate__panel { width: min(520px, 100%); background: var(--key-surface); border: 1px solid var(--key-border); border-radius: var(--key-radius-card); padding: 40px 32px; text-align: center; }
.key-gate__panel img { width: 200px; height: auto; margin: 0 auto 24px; }
.key-gate__panel h2 { font-size: 28px; margin-bottom: 12px; }
.key-gate__panel p { color: var(--key-text-secondary); margin: 0 0 32px; }
.key-gate__actions { display: flex; flex-direction: column; gap: 12px; }

/* Reveal on scroll (opacity only) */
.key-js .key-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.key-js .key-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .key-site *, .key-site *::before, .key-site *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .key-js .key-reveal { opacity: 1; transform: none; }
  .key-js .key-keyhole .kh-outline { stroke-dashoffset: 0; animation: none !important; }
  .key-js .key-keyhole .kh-light { opacity: .85; animation: none !important; }
  .key-js .key-keyhole .kh-ring { opacity: .5; animation: none !important; }
}


/* ---------- MVC integration ----------
   Logged-out pages use the fixed .key-header. The layout adds
   body.key-body--home (hero sits under the header) or body.key-body--inner. */
body.key-body--inner { padding-top: var(--key-header-h); }
body.key-body--inner .key-header { background: rgba(8,6,4,0.96); border-bottom: 1px solid var(--key-border); }
.key-main-anchor { display: block; height: 0; outline: none; }

/* Footer: compact legal / compliance disclosure (keeps the former footer text, collapsed) */
.key-footer__details { max-width: 760px; margin: 0 auto 32px; text-align: left; border-top: 1px solid var(--key-border); border-bottom: 1px solid var(--key-border); }
.key-footer__details summary { display: flex; align-items: center; justify-content: center; min-height: var(--key-tap-min); cursor: pointer; color: var(--key-text-secondary); font-size: 14px; list-style: none; }
.key-footer__details summary::-webkit-details-marker { display: none; }
.key-footer__details summary::after { content: "+"; margin-left: 8px; color: var(--key-gold); }
.key-footer__details[open] summary::after { content: "\2212"; }
.key-footer__details-body { padding: 8px 0 24px; color: var(--key-text-secondary); font-size: 14px; line-height: 1.6; }
.key-footer__details-body p { margin: 0 0 12px; }
.key-footer__details-body ul { margin: 0 0 12px; padding-left: 20px; }
.key-footer__policies { columns: 2; column-gap: 32px; list-style: none; padding: 0 !important; }
.key-footer__policies li { break-inside: avoid; }
@media (max-width: 767px) { .key-footer__policies { columns: 1; } }

/* ---------- MVC hardening ----------
   the-key-brand.css styles every <a> with !important (prose-link rule) and the legacy
   layout has a:visited { color: gold !important }. These selectors out-rank them
   for The Key chrome and homepage components only. The anonymous homepage body is
   rendered in #key-main (not #mainpages) so the ID-level legacy rules do not apply. */
html body .key-site a.key-btn--primary, html body .key-site a.key-btn--primary:link, html body .key-site a.key-btn--primary:visited,
html body .key-site button.key-btn--primary { color: var(--key-bg) !important; text-decoration: none !important; }
html body .key-site a.key-btn--outline, html body .key-site a.key-btn--outline:link, html body .key-site a.key-btn--outline:visited { color: var(--key-text) !important; text-decoration: none !important; }
html body .key-site a.key-btn--outline:hover { color: var(--key-gold-highlight) !important; }
html body .key-site a.key-link-arrow, html body .key-site a.key-link-arrow:link, html body .key-site a.key-link-arrow:visited { color: var(--key-gold) !important; text-decoration: none !important; }
html body .key-site a.key-link-arrow:hover { color: var(--key-gold-highlight) !important; }
html body .key-site .key-nav a:not(.key-btn), html body .key-site .key-nav a:not(.key-btn):visited { color: var(--key-text-secondary) !important; text-decoration: none !important; box-shadow: none !important; }
html body .key-site .key-nav a:not(.key-btn):hover { color: var(--key-gold-highlight) !important; }
html body .key-site .key-nav a[aria-current="page"]:not(.key-btn) { color: var(--key-text) !important; border-bottom-color: var(--key-gold); }
html body .key-site .key-drawer__nav a, html body .key-site .key-drawer__nav a:visited { color: var(--key-text) !important; text-decoration: none !important; }
html body .key-site .key-drawer__nav a[aria-current="page"] { color: var(--key-gold-highlight) !important; }
html body .key-site a.key-portrait, html body .key-site a.key-portrait:visited { color: var(--key-text) !important; text-decoration: none !important; }
html body .key-site a.key-header__logo, html body .key-site a.key-header__logo:visited { text-decoration: none !important; }
html body .key-site .key-footer__nav a, html body .key-site .key-footer__nav a:visited { color: var(--key-text-secondary) !important; text-decoration: none !important; }
html body .key-site .key-footer__nav a:hover { color: var(--key-gold-highlight) !important; text-decoration: underline !important; }
html body .key-site .key-footer__social a, html body .key-site .key-footer__social a:visited { color: var(--key-gold) !important; text-decoration: none !important; }
html body .key-site .key-trust__links a, html body .key-site .key-trust__links a:visited,
html body .key-site .key-footer__legal a, html body .key-site .key-footer__legal a:visited,
html body .key-site .key-footer__details a, html body .key-site .key-footer__details a:visited,
html body .key-site .key-gate a:not(.key-btn), html body .key-site .key-gate a:not(.key-btn):visited,
html body .key-site .key-prose a, html body .key-site .key-prose a:visited { color: var(--key-gold-highlight) !important; text-decoration: underline !important; text-underline-offset: 4px; }
html body .key-site a.key-scroll-cue, html body .key-site a.key-scroll-cue:visited { color: var(--key-text-muted) !important; text-decoration: none !important; }
html body .key-site a.key-skip, html body .key-site a.key-skip:visited { color: var(--key-bg) !important; }
html body .key-site .key-empty a.key-link-arrow { justify-content: center; }

/* Membership page: three-up benefits */
.key-trust.key-trust--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 767px) { .key-trust.key-trust--three { grid-template-columns: 1fr; gap: 24px; } .key-trust.key-trust--three li:last-child { grid-column: auto; } }
