/* ==========================================================================
   TCI MADE™ — Luxury Private Members Society
   Design System & Stylesheet
   ========================================================================== */

:root {
  --bg-obsidian: #07090d;
  --bg-deep: #0b0d12;
  --bg-panel: #101319;
  --gold-light: #f0d68a;
  --gold-primary: #d4af4f;
  --gold-deep: #b28a2f;
  --gold-line: rgba(212, 175, 79, 0.36);
  --gold-line-strong: rgba(212, 175, 79, 0.65);
  --text-ivory: #f4f1ea;
  --text-soft: #d5cfc3;
  --text-muted: #9b9588;

  --font-display: 'Cinzel', Georgia, serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  --header-height: 78px;
  --transition-lux: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-obsidian);
  color: var(--text-ivory);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-obsidian);
  overflow-x: hidden;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  background: linear-gradient(180deg, rgba(7, 9, 13, 0.92) 0%, rgba(7, 9, 13, 0.78) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gold-line);
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.site-header.scrolled {
  background: rgba(7, 9, 13, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.header-inner {
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-emblem {
  height: 54px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.65));
  transition: transform var(--transition-lux);
}

.brand-link:hover .brand-emblem {
  transform: scale(1.04);
}

.brand-wordmark {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  background: linear-gradient(180deg, #f6e1a4 0%, #d4af4f 55%, #b3892c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-wordmark sup {
  font-size: 0.5em;
  letter-spacing: 0;
  vertical-align: super;
  color: var(--gold-primary);
}

.brand-divider {
  width: 1px;
  height: 30px;
  background: linear-gradient(180deg, transparent, var(--gold-line-strong), transparent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--text-ivory);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-light);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Gold-bordered Member Access Button */
.btn-member-access {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 22px;
  border: 1px solid var(--gold-primary);
  background: rgba(9, 12, 17, 0.72);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.35s ease, transform 0.25s ease;
}

.btn-member-access::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 25%, rgba(240, 214, 138, 0.16) 50%, transparent 75%);
  transform: translateX(-120%);
  transition: transform 0.65s ease;
}

.btn-member-access:hover {
  border-color: var(--gold-light);
  background: rgba(212, 175, 79, 0.12);
  box-shadow: 0 0 24px rgba(212, 175, 79, 0.22);
  transform: translateY(-1px);
}

.btn-member-access:hover::before {
  transform: translateX(120%);
}

.btn-member-hero {
  padding: 15px 38px;
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  background: rgba(8, 11, 16, 0.62);
  backdrop-filter: blur(6px);
}

.btn-full {
  width: 100%;
  padding: 14px 24px;
}

.icon-lock {
  width: 15px;
  height: 15px;
  color: var(--gold-primary);
  flex-shrink: 0;
}

/* Minimalist Hamburger Icon */
.menu-toggle {
  width: 28px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2px 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-soft);
  transition: background-color 0.25s ease, transform 0.3s ease;
}

.menu-toggle:hover span {
  background: var(--gold-light);
}

/* ==========================================================================
   SLIDE-OUT DRAWER
   ========================================================================== */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 88vw);
  background: linear-gradient(180deg, #0b0e14 0%, #07090d 100%);
  border-left: 1px solid var(--gold-line);
  z-index: 160;
  padding: 32px 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gold-line);
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  color: var(--gold-light);
}

.drawer-logo {
  height: 38px;
}

.drawer-close {
  font-size: 1.9rem;
  line-height: 1;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.drawer-close:hover {
  color: var(--gold-light);
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 20px 0 0;
}

.drawer-link {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: var(--text-ivory);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.25s ease, padding-left 0.3s ease;
}

.drawer-link:hover {
  color: var(--gold-light);
  padding-left: 8px;
}

.drawer-footer {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--gold-line);
}

.drawer-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--gold-primary);
  margin-bottom: 16px;
}

.drawer-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  position: relative;
  min-height: 86vh;
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--gold-line);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  transform: scale(1.03);
  animation: heroBreath 24s ease-in-out infinite alternate;
}

@keyframes heroBreath {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.08);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 56% 58% at 50% 48%, rgba(6, 9, 15, 0.62) 0%, rgba(6, 9, 15, 0.26) 62%, rgba(6, 9, 15, 0.42) 100%),
    linear-gradient(180deg, rgba(7, 9, 13, 0.6) 0%, rgba(7, 9, 13, 0.14) 26%, rgba(7, 9, 13, 0.18) 78%, rgba(7, 9, 13, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
  padding: 58px 28px 42px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: #e4d6b5;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.hero-eyebrow .hairline {
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5.2vw, 4.35rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-shadow: 0 6px 32px rgba(0, 0, 0, 0.65);
  margin-bottom: 22px;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1.85vw, 1.48rem);
  font-weight: 400;
  line-height: 1.48;
  color: rgba(244, 241, 234, 0.94);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.75);
  margin-bottom: 34px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-invitation {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  color: rgba(240, 234, 220, 0.9);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.scroll-indicator {
  margin-top: 26px;
  width: 34px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(240, 230, 206, 0.85);
  transition: color 0.3s ease, transform 0.3s ease;
  animation: gentleFloat 2.8s ease-in-out infinite;
}

.scroll-indicator:hover {
  color: var(--gold-light);
}

.scroll-indicator svg {
  width: 24px;
  height: 14px;
}

@keyframes gentleFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

/* ==========================================================================
   THREE PILLARS SECTION (DARK MARBLE)
   ========================================================================== */

.pillars-section {
  position: relative;
  background-color: #090b0f;
  background-image:
    linear-gradient(180deg, rgba(7, 9, 13, 0.74) 0%, rgba(7, 9, 13, 0.62) 50%, rgba(7, 9, 13, 0.78) 100%),
    url('assets/images/marble-bg.jpg');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--gold-line);
  padding: 46px 24px 50px;
}

.pillars-container {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
}

.pillar-card {
  padding: 12px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform var(--transition-lux);
}

.pillar-card:hover {
  transform: translateY(-4px);
}

.pillar-icon {
  width: 66px;
  height: 54px;
  color: var(--gold-primary);
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 14px rgba(212, 175, 79, 0.32));
  transition: color 0.3s ease, transform 0.35s ease, filter 0.35s ease;
}

.pillar-card:hover .pillar-icon {
  color: var(--gold-light);
  transform: scale(1.06);
  filter: drop-shadow(0 6px 20px rgba(240, 214, 138, 0.48));
}

.pillar-icon svg {
  width: 100%;
  height: 100%;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.pillar-desc {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.42;
  color: var(--text-soft);
}

.pillar-divider {
  width: 1px;
  height: 112px;
  background: linear-gradient(180deg, transparent, var(--gold-line-strong), transparent);
}

/* ==========================================================================
   4-PANEL LIFESTYLE VISUAL STRIP
   ========================================================================== */

.lifestyle-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background-color: var(--bg-obsidian);
  border-bottom: 1px solid var(--gold-line);
}

.lifestyle-panel {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-right: 1px solid rgba(212, 175, 79, 0.24);
  cursor: pointer;
}

.lifestyle-panel:last-child {
  border-right: none;
}

.lifestyle-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
}

.lifestyle-panel:hover img {
  transform: scale(1.07);
  filter: brightness(1.06);
}

.panel-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 20px 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 9, 13, 0.88) 100%);
  display: flex;
  flex-direction: column;
  gap: 3px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.lifestyle-panel:hover .panel-caption {
  opacity: 1;
  transform: translateY(0);
}

.caption-tag {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--gold-light);
}

.caption-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--text-soft);
}

/* ==========================================================================
   CLOSING GATE SECTION: PRIVATE ACCESS / BY INVITATION ONLY
   ========================================================================== */

.access-gate-section {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #07090d;
  border-bottom: 1px solid var(--gold-line);
}

.access-gate-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.access-gate-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  filter: brightness(1.18) contrast(1.06) saturate(1.12);
}

.access-gate-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 52% 62% at 50% 50%, rgba(6, 8, 13, 0.46) 0%, rgba(6, 8, 13, 0.22) 62%, rgba(6, 8, 13, 0.34) 100%),
    linear-gradient(180deg, rgba(7, 9, 13, 0.48) 0%, rgba(7, 9, 13, 0.12) 45%, rgba(7, 9, 13, 0.56) 100%);
}

.access-gate-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  padding: 82px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.access-gate-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--gold-light);
}

.access-gate-eyebrow .hairline {
  width: 82px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.access-gate-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2.6rem, 4.6vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.7);
  margin-bottom: 18px;
}

.access-gate-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.12rem, 1.65vw, 1.4rem);
  line-height: 1.5;
  color: rgba(244, 241, 234, 0.9);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
  margin-bottom: 34px;
}

.access-gate-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

/* ==========================================================================
   LUXURY FOOTER
   ========================================================================== */

.site-footer {
  background: linear-gradient(180deg, #07090e 0%, #050609 100%);
  color: var(--text-soft);
}

.footer-top {
  max-width: 1320px;
  margin: 0 auto;
  padding: 46px 42px 38px;
  display: grid;
  grid-template-columns: auto auto 1.4fr auto 0.9fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.footer-logo-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer-emblem {
  height: 62px;
  width: auto;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  color: var(--gold-light);
  white-space: nowrap;
}

.footer-wordmark sup {
  font-size: 0.55em;
}

.footer-divider {
  width: 1px;
  height: 82px;
  background: linear-gradient(180deg, transparent, var(--gold-line), transparent);
}

.footer-tagline p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.42;
  color: var(--text-ivory);
}

.footer-nav h3,
.footer-location h3 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--gold-primary);
  margin-bottom: 12px;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  color: var(--text-soft);
  transition: color 0.25s ease;
}

.footer-nav a:hover {
  color: var(--gold-light);
}

.footer-member-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.icon-lock-sm {
  width: 13px;
  height: 13px;
  color: var(--gold-primary);
}

.footer-location {
  position: relative;
}

.location-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 1.04rem;
  line-height: 1.35;
  color: var(--text-ivory);
}

.location-row span {
  color: var(--text-soft);
}

.icon-pin {
  width: 15px;
  height: 15px;
  color: var(--gold-primary);
  margin-top: 3px;
  flex-shrink: 0;
}

.tci-map {
  width: 120px;
  height: auto;
  color: var(--gold-light);
  margin-top: 4px;
  margin-left: auto;
  opacity: 0.92;
}

/* Footer Mid Strip */
.footer-mid {
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid rgba(212, 175, 79, 0.16);
}

.footer-mid-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 18px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.social-icon {
  width: 20px;
  height: 20px;
  color: var(--gold-light);
  opacity: 0.88;
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.social-icon:hover {
  opacity: 1;
  color: #ffffff;
  transform: translateY(-2px);
}

.mid-divider {
  width: 1px;
  height: 22px;
  background: var(--gold-line);
}

.footer-pillars-words {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  color: var(--gold-primary);
}

.footer-pillars-words .dot {
  opacity: 0.65;
}

.footer-bottom {
  text-align: center;
  padding: 18px 24px 26px;
  font-family: var(--font-serif);
  font-size: 0.96rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ==========================================================================
   MEMBER ACCESS MODAL
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 6, 10, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: min(500px, 100%);
  background: linear-gradient(180deg, #10131a 0%, #090b10 100%);
  border: 1px solid var(--gold-line-strong);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(212, 175, 79, 0.08);
  padding: 36px 38px 34px;
  position: relative;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-backdrop.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.8rem;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.modal-close:hover {
  color: var(--gold-light);
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.modal-logo {
  height: 54px;
  margin: 0 auto 12px;
}

.modal-eyebrow {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  color: var(--gold-primary);
  margin-bottom: 6px;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: #ffffff;
}

.modal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--gold-line);
  margin-bottom: 24px;
}

.modal-tab {
  padding: 10px 12px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.modal-tab.active {
  color: var(--gold-light);
  border-bottom-color: var(--gold-primary);
}

.modal-form {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.modal-form.active {
  display: flex;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.forgot-key-link {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--gold-primary);
  transition: color 0.2s ease;
}

.forgot-key-link:hover {
  color: var(--gold-light);
}

.field-group input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 79, 0.28);
  padding: 12px 14px;
  color: var(--text-ivory);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.field-group input:focus {
  border-color: var(--gold-light);
  background: rgba(212, 175, 79, 0.05);
}

.form-note {
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.96rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.form-error {
  font-family: var(--font-serif);
  font-size: 0.96rem;
  color: #e58c73;
  text-align: center;
  min-height: 0;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 0.96rem;
  line-height: 1.42;
  color: var(--text-soft);
  cursor: pointer;
  margin-top: 2px;
}

.consent-check input[type='checkbox'] {
  margin-top: 3px;
  width: 15px;
  height: 15px;
  accent-color: var(--gold-primary);
  flex-shrink: 0;
  cursor: pointer;
}

.consent-check a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-check a:hover {
  color: #ffffff;
}

.modal-confirmation {
  display: none;
  text-align: center;
  padding: 12px 0 6px;
}

.modal-confirmation.active {
  display: block;
}

.confirm-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  color: var(--gold-light);
}

.modal-confirmation h3 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 10px;
}

.modal-confirmation p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--text-soft);
  margin-bottom: 24px;
}

.modal-card-legal {
  width: min(620px, 100%);
}

.legal-header {
  text-align: left;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--gold-line);
}

.legal-body {
  max-height: 58vh;
  overflow-y: auto;
  padding-right: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.legal-meta {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.legal-body h3 {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--gold-light);
  margin-top: 10px;
}

.legal-body p strong {
  color: var(--gold-light);
  font-weight: 500;
}

/* ==========================================================================
   SUBPAGE EDITORIAL LAYOUTS (INSTITUTION / NETWORK / ENTERPRISE)
   ========================================================================== */

.page-hero {
  position: relative;
  min-height: 56vh;
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--gold-line);
}

.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.72) contrast(1.06);
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 62% 65% at 50% 50%, rgba(6, 9, 15, 0.72) 0%, rgba(6, 9, 15, 0.45) 68%, rgba(6, 9, 15, 0.78) 100%),
    linear-gradient(180deg, rgba(7, 9, 13, 0.65) 0%, rgba(7, 9, 13, 0.25) 45%, rgba(7, 9, 13, 0.85) 100%);
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
  padding: 72px 28px 64px;
  text-align: center;
}

.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  font-weight: 400;
  line-height: 1.12;
  color: #ffffff;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.65);
  margin-bottom: 20px;
}

.page-hero-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1.7vw, 1.42rem);
  line-height: 1.5;
  color: rgba(244, 241, 234, 0.9);
  max-width: 720px;
  margin: 0 auto;
}

.editorial-band {
  padding: 76px 32px;
  background-color: var(--bg-obsidian);
  border-bottom: 1px solid var(--gold-line);
}

.marble-band {
  background-color: #090b0f;
  background-image:
    linear-gradient(180deg, rgba(7, 9, 13, 0.78) 0%, rgba(7, 9, 13, 0.68) 50%, rgba(7, 9, 13, 0.82) 100%),
    url('assets/images/marble-bg.jpg');
  background-size: cover;
  background-position: center;
}

.editorial-container {
  max-width: 1120px;
  margin: 0 auto;
}

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.26em;
  color: var(--gold-primary);
  margin-bottom: 14px;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  font-weight: 400;
  line-height: 1.18;
  color: #ffffff;
  margin-bottom: 30px;
}

.editorial-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  font-family: var(--font-serif);
  font-size: 1.24rem;
  line-height: 1.65;
  color: var(--text-soft);
}

.tenets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.tenets-grid-two {
  grid-template-columns: repeat(2, 1fr);
}

.tenet-card {
  padding: 32px 28px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--gold-line);
  transition: border-color 0.35s ease, transform 0.35s ease;
}

.tenet-card:hover {
  border-color: var(--gold-line-strong);
  transform: translateY(-3px);
}

.tenet-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  color: var(--gold-primary);
  margin-bottom: 14px;
}

.tenet-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.tenet-card p {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.faq-container {
  max-width: 880px;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  padding: 24px 0;
  border-top: 1px solid rgba(212, 175, 79, 0.24);
}

.faq-item:last-child {
  border-bottom: 1px solid rgba(212, 175, 79, 0.24);
}

.faq-item h3 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.faq-item p {
  font-family: var(--font-serif);
  font-size: 1.16rem;
  line-height: 1.58;
  color: var(--text-soft);
}

@media (max-width: 860px) {
  .editorial-columns,
  .tenets-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .editorial-band {
    padding: 56px 24px;
  }
}

/* ==========================================================================
   STANDALONE LEGAL & GOVERNANCE PAGES (PRIVACY / TERMS / LEGAL)
   ========================================================================== */

.legal-page-band {
  padding: calc(var(--header-height) + 64px) 28px 84px;
  min-height: 76vh;
  background-color: #090b0f;
  background-image:
    linear-gradient(180deg, rgba(7, 9, 13, 0.84) 0%, rgba(7, 9, 13, 0.92) 100%),
    url('assets/images/marble-bg.jpg');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--gold-line);
}

.legal-page-container {
  max-width: 820px;
  margin: 0 auto;
}

.legal-page-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 10px;
}

.legal-page-content {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--gold-line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--font-serif);
  font-size: 1.18rem;
  line-height: 1.68;
  color: var(--text-soft);
}

.legal-page-content h2 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--gold-light);
  margin-top: 16px;
}

.legal-inline-link {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-inline-link:hover {
  color: #ffffff;
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1120px) {
  .header-inner {
    padding: 0 24px;
  }

  .main-nav {
    gap: 24px;
  }

  .footer-top {
    grid-template-columns: auto 1fr auto auto;
    gap: 28px 36px;
    padding: 40px 32px 34px;
  }

  .footer-divider {
    display: none;
  }
}

@media (max-width: 900px) {
  .main-nav,
  .brand-divider {
    display: none;
  }

  .pillars-section {
    padding: 36px 18px 40px;
  }

  .pillar-card {
    padding: 10px 14px;
  }

  .pillar-icon {
    width: 54px;
    height: 44px;
    margin-bottom: 12px;
  }

  .pillar-title {
    font-size: 1.02rem;
    letter-spacing: 0.1em;
  }

  .pillar-desc {
    font-size: 0.98rem;
  }

  .pillar-divider {
    height: 92px;
  }

  .lifestyle-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 40px;
    padding: 38px 32px 34px;
    align-items: start;
  }

  .footer-brand,
  .footer-tagline {
    grid-column: 1 / -1;
    text-align: center;
  }

  .footer-tagline {
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(212, 175, 79, 0.2);
  }

  .footer-nav {
    text-align: center;
  }

  .footer-mid-inner {
    flex-direction: column;
    padding: 20px 24px;
  }

  .mid-divider {
    display: none;
  }

  .footer-pillars-words {
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .pillars-section {
    padding: 28px 20px;
  }

  .pillars-container {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pillar-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    column-gap: 18px;
    row-gap: 4px;
    text-align: left;
    align-items: center;
    padding: 18px 6px;
  }

  .pillar-card:hover {
    transform: none;
  }

  .pillar-icon {
    grid-row: 1 / 3;
    width: 52px;
    height: 44px;
    margin-bottom: 0;
  }

  .pillar-title {
    font-size: 1.04rem;
    margin-bottom: 0;
    align-self: end;
  }

  .pillar-desc {
    font-size: 1rem;
    line-height: 1.38;
    align-self: start;
  }

  .pillar-desc br {
    display: none;
  }

  .pillar-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
  }
}

@media (max-width: 560px) {
  .btn-member-header {
    display: none;
  }

  .brand-wordmark {
    font-size: 1.15rem;
  }

  .brand-emblem {
    height: 44px;
  }

  .hero {
    min-height: 76vh;
  }

  .hero-content {
    padding: 38px 20px 32px;
  }

  .hero-eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    gap: 10px;
    margin-bottom: 16px;
  }

  .hero-eyebrow .hairline {
    width: 22px;
  }

  .hero-title {
    font-size: 2.02rem;
    line-height: 1.15;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 1.04rem;
    line-height: 1.45;
    margin-bottom: 26px;
  }

  .hero-subtitle br {
    display: none;
  }

  .access-gate-title {
    font-size: 2.2rem;
  }

  .footer-pillars-words {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    gap: 8px;
  }

  .lifestyle-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .lifestyle-panel {
    border-bottom: 1px solid rgba(212, 175, 79, 0.24);
  }

  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .location-row {
    justify-content: center;
  }

  .tci-map {
    margin: 12px auto 0;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .modal-card {
    padding: 28px 22px;
  }
}
