@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300&family=Inter:wght@300;400;500;600&family=Outfit:wght@200;300;400;500;600;700&display=swap');

:root {
  /* Default Theme: Obsidian Dark */
  --color-obsidian: #090A0C;
  --color-slate-dark: #12141A;
  --color-cream-gold: #F3E5AB;
  --color-gold: #D4AF37;
  --color-gold-hover: #AA7C11;
  --color-gold-trans: rgba(212, 175, 55, 0.1);
  --color-border: rgba(255, 255, 255, 0.05);
  --color-border-gold: rgba(212, 175, 55, 0.2);
  
  --text-primary: #FFFFFF;
  --text-secondary: #A0AEC0;
  --text-muted: #718096;
  
  --glass-bg: rgba(10, 11, 14, 0.7);
  --glass-blur: blur(25px);
  --glass-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);

  --body-bg-gradient: radial-gradient(circle at 100% 10%, #1A1813 0%, var(--color-obsidian) 60%),
                      radial-gradient(circle at -20% 70%, #0E121E 0%, var(--color-obsidian) 60%);
  --hero-overlay-gradient: linear-gradient(to bottom, rgba(9, 10, 12, 0.4) 0%, rgba(9, 10, 12, 0.9) 100%);
  --vault-overlay-bg: rgba(9, 10, 12, 0.85);
  --toggle-btn-color: #FFFFFF;
  
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  color-scheme: dark;
}

/* Machine preference - Light Mode */
@media (prefers-color-scheme: light) {
  :root {
    /* Luxury Light Theme: Warm Alabaster */
    --color-obsidian: #FAF9F6;
    --color-slate-dark: #F3F1EA;
    --color-cream-gold: #C5A028;
    --color-gold: #C5A028;
    --color-gold-hover: #8A6D17;
    --color-gold-trans: rgba(197, 160, 40, 0.1);
    --color-border: rgba(0, 0, 0, 0.08);
    --color-border-gold: rgba(197, 160, 40, 0.3);
    
    --text-primary: #1A1813;
    --text-secondary: #5C574F;
    --text-muted: #8C867A;
    
    --glass-bg: rgba(250, 249, 246, 0.85);
    --glass-shadow: 0 20px 40px rgba(26, 24, 19, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);

    --body-bg-gradient: radial-gradient(circle at 100% 10%, #FAF6EE 0%, var(--color-obsidian) 60%),
                        radial-gradient(circle at -20% 70%, #FAF5EB 0%, var(--color-obsidian) 60%);
    --hero-overlay-gradient: linear-gradient(to bottom, rgba(250, 249, 246, 0.3) 0%, rgba(250, 249, 246, 0.85) 100%);
    --vault-overlay-bg: rgba(250, 249, 246, 0.85);
    --toggle-btn-color: #1A1813;
    
    color-scheme: light;
  }
}

/* Explicit Manual overrides */
:root.light-theme {
  --color-obsidian: #FAF9F6;
  --color-slate-dark: #F3F1EA;
  --color-cream-gold: #C5A028;
  --color-gold: #C5A028;
  --color-gold-hover: #8A6D17;
  --color-gold-trans: rgba(197, 160, 40, 0.1);
  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-gold: rgba(197, 160, 40, 0.3);
  
  --text-primary: #1A1813;
  --text-secondary: #5C574F;
  --text-muted: #8C867A;
  
  --glass-bg: rgba(250, 249, 246, 0.85);
  --glass-shadow: 0 20px 40px rgba(26, 24, 19, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);

  --body-bg-gradient: radial-gradient(circle at 100% 10%, #FAF6EE 0%, var(--color-obsidian) 60%),
                      radial-gradient(circle at -20% 70%, #FAF5EB 0%, var(--color-obsidian) 60%);
  --hero-overlay-gradient: linear-gradient(to bottom, rgba(250, 249, 246, 0.3) 0%, rgba(250, 249, 246, 0.85) 100%);
  --vault-overlay-bg: rgba(250, 249, 246, 0.85);
  --toggle-btn-color: #1A1813;
  
  color-scheme: light;
}

:root.dark-theme {
  --color-obsidian: #090A0C;
  --color-slate-dark: #12141A;
  --color-cream-gold: #F3E5AB;
  --color-gold: #D4AF37;
  --color-gold-hover: #AA7C11;
  --color-gold-trans: rgba(212, 175, 55, 0.1);
  --color-border: rgba(255, 255, 255, 0.05);
  --color-border-gold: rgba(212, 175, 55, 0.2);
  
  --text-primary: #FFFFFF;
  --text-secondary: #A0AEC0;
  --text-muted: #718096;
  
  --glass-bg: rgba(10, 11, 14, 0.7);
  --glass-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);

  --body-bg-gradient: radial-gradient(circle at 100% 10%, #1A1813 0%, var(--color-obsidian) 60%),
                      radial-gradient(circle at -20% 70%, #0E121E 0%, var(--color-obsidian) 60%);
  --hero-overlay-gradient: linear-gradient(to bottom, rgba(9, 10, 12, 0.4) 0%, rgba(9, 10, 12, 0.9) 100%);
  --vault-overlay-bg: rgba(9, 10, 12, 0.85);
  --toggle-btn-color: #FFFFFF;
  
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--color-obsidian);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background-image: var(--body-bg-gradient);
}

/* Global Silky Transition */
html, body, header, .glass-panel, .timeline-line, .timeline-node, .timeline-card, .btn, .nav-phone, .estate-brand, p, h1, h2, h3, h4, span, input, select, textarea, button {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, background-image 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* Glassmorphism System */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--color-border);
  box-shadow: var(--glass-shadow);
  border-radius: 8px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  border-color: var(--color-border-gold);
}

/* Adaptive Mode Styling rules */
.mode-toggle-sticky {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 0.5rem;
  display: flex;
  gap: 0.5rem;
  border-radius: 50px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border-gold);
  box-shadow: var(--glass-shadow);
}

.mode-btn {
  padding: 0.75rem 2rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 50px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mode-btn.active {
  background: var(--color-gold);
  color: var(--color-obsidian);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.25);
  font-weight: 600;
}

/* Dynamic element visibilities depending on active mode */
body.mode-listing .keepsake-only {
  display: none !important;
}

body.mode-keepsake .listing-only {
  display: none !important;
}

/* Typography & Layouts */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 300;
  letter-spacing: 0.02em;
}

p {
  line-height: 1.8;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.section-tag {
  font-family: var(--font-display);
  color: var(--color-gold);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  display: block;
  margin-bottom: 1.5rem;
}

.divider-gold {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: 2rem auto;
}

/* Luxury button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-gold {
  background: var(--color-gold);
  color: var(--color-obsidian);
  border: none;
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.15);
}

.btn-gold:hover {
  background: var(--color-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(212, 175, 55, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-gold);
  background: rgba(212, 175, 55, 0.03);
  transform: translateY(-2px);
}


/* Navigation Bar */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 2.5rem 0;
}

.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.estate-brand {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
}

.estate-brand span {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: 0.95rem;
  color: var(--color-gold);
  margin-left: 8px;
  letter-spacing: 0.15em;
}

.nav-phone {
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border-gold);
  padding-bottom: 4px;
}

/* Fold 1: Cinematic Hero */
.hero-fold {
  height: 100vh;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.hero-fold::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--hero-overlay-gradient);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 1rem;
}

.hero-fold h1 {
  font-size: 4.8rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  animation: scaleFadeIn 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-fold p {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: 1.1rem;
  color: var(--color-cream-gold);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 3.5rem;
  animation: scaleFadeIn 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-scroll-btn {
  background: transparent;
  border: none;
  color: var(--color-gold);
  cursor: pointer;
  animation: bounce 2s infinite;
}

/* Fold 2: Architectural Concept */
.concept-fold {
  padding: 120px 0;
  position: relative;
}

.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

.concept-text h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.concept-text p {
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.spec-item {
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--color-border);
}

.spec-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.4rem;
}

.spec-value {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--color-gold);
}

.concept-photo {
  height: 500px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8);
  border: 1px solid rgba(255,255,255,0.06);
}

/* Fold 3: Personal Memoir */
.memoir-fold {
  padding: 120px 0;
  background: var(--color-slate-dark);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.memoir-box {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
  padding: 4.5rem;
}

.quote-symbol {
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 1;
  color: var(--color-gold-trans);
  display: block;
  margin-bottom: -1rem;
}

.memoir-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.85rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
}

.memoir-author {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* Fold 4: Spatial Gallery */
.gallery-fold {
  padding: 120px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-img {
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  min-height: 300px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border: 1px solid var(--color-border);
  transition: all 0.5s;
  cursor: pointer;
}

.gallery-img:hover {
  transform: scale(1.02);
  border-color: var(--color-gold);
}

.g-col-6 { grid-column: span 6; }
.g-col-4 { grid-column: span 4; }
.g-col-8 { grid-column: span 8; }

/* Fold 5: Heritage Deeds & Zoning Timeline */
.timeline-fold {
  padding: 120px 0;
  background: var(--color-slate-dark);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.timeline-wrapper {
  max-width: 900px;
  margin: 3.5rem auto 0;
  position: relative;
}

.timeline-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--color-gold-trans) 10%, var(--color-gold-trans) 90%, transparent);
}

.timeline-item {
  width: 50%;
  padding: 2rem;
  position: relative;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-node {
  position: absolute;
  top: 2.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-obsidian);
  border: 2px solid var(--color-gold);
  z-index: 10;
}

.timeline-item:nth-child(even) .timeline-node {
  left: -6px;
}

.timeline-item:nth-child(odd) .timeline-node {
  right: -6px;
}

.timeline-node-glow {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-gold);
  opacity: 0.3;
  animation: pulse 2s infinite;
}

.timeline-year {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
  display: block;
}

.timeline-card {
  padding: 2rem;
}

.timeline-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-card p {
  font-size: 0.85rem;
}

/* Fold 6: Community Canvas */
.community-fold {
  padding: 120px 0;
}

.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3.5rem;
}

.community-card {
  padding: 3rem;
}

.community-card h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.data-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}

.data-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.data-val {
  font-weight: 500;
  font-size: 0.95rem;
}

.data-val.rating {
  color: var(--color-gold);
  font-weight: 700;
}

/* Fold 7: Foyer Legacy Plaque / Claim Card */
.claim-fold {
  padding: 120px 0;
  background: var(--color-slate-dark);
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.claim-card-large {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 4rem;
  position: relative;
  overflow: hidden;
}

.claim-card-large h2 {
  font-size: 3.2rem;
  margin-bottom: 1.5rem;
}

.claim-card-large p {
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.claim-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* Interactive Private Keepsake Vault Lock Overlay */
.keepsake-vault-section {
  position: relative;
  min-height: 400px;
}

.vault-lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--vault-overlay-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.vault-lock-box {
  max-width: 420px;
  padding: 3rem;
}

.vault-lock-box h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.vault-lock-box p {
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.vault-input-group {
  display: flex;
  gap: 0.5rem;
}

.vault-input {
  flex-grow: 1;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0 1rem;
  color: var(--text-primary);
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.4em;
  font-weight: 700;
}

.vault-input:focus {
  outline: none;
  border-color: var(--color-gold);
}

.vault-submit {
  padding: 0 1.5rem;
  background: var(--color-gold);
  color: var(--color-obsidian);
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
}

/* Generational Time Capsule layout styles */
.capsule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.capsule-card {
  overflow: hidden;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--color-border);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.capsule-card:hover {
  border-color: var(--color-border-gold);
  transform: translateY(-4px);
  box-shadow: 0 40px 80px rgba(212, 175, 55, 0.08);
}

/* Theme Toggle Button Styles */
.theme-toggle-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--toggle-btn-color);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease, filter 0.4s ease;
  border-radius: 50%;
}

.theme-toggle-btn:hover {
  transform: rotate(20deg) scale(1.1);
  color: var(--color-gold);
  filter: drop-shadow(0 0 8px var(--color-gold-trans));
}

/* Toggle visibility of sun/moon icons based on active theme */
:root:not(.light-theme) .theme-icon-sun {
  display: block;
}
:root:not(.light-theme) .theme-icon-moon {
  display: none;
}

:root.light-theme .theme-icon-sun {
  display: none;
}
:root.light-theme .theme-icon-moon {
  display: block;
}

.capsule-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--color-border);
}

.capsule-body {
  padding: 2.25rem 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.capsule-author {
  display: block;
  font-size: 0.7rem;
  color: var(--color-gold);
  font-family: var(--font-display);
  text-transform: uppercase;
  margin-top: 1.5rem;
  letter-spacing: 0.12em;
}

/* Event guestbook logs styles */
.guestbook-feed {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
  text-align: left;
}

.guest-card {
  padding: 1.5rem;
}

.guest-card h5 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-gold);
  margin-bottom: 0.25rem;
}

.guest-card .date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: block;
}

.guest-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-primary);
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1); opacity: 0.3; }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

@keyframes scaleFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-fold h1 { font-size: 3.8rem; }
  .concept-grid, .community-grid, .capsule-grid { grid-template-columns: 1fr; gap: 3rem; }
  .concept-photo { height: 380px; }
  .timeline-line { left: 2rem; }
  .timeline-item { width: 100%; left: 0 !important; text-align: left !important; padding-left: 4rem; }
  .timeline-node { left: calc(2rem - 6px) !important; }
}

@media (max-width: 768px) {
  .hero-fold h1 { font-size: 2.8rem; }
  .spec-list { grid-template-columns: 1fr; gap: 1rem; }
  .memoir-box, .claim-card-large { padding: 2.5rem 1.5rem; }
  .claim-actions { flex-direction: column; }
}

/* ==========================================================================
   Global Passcode Lock Screen Overlay
   ========================================================================== */
body.site-locked > *:not(#globalLockOverlay) {
  display: none !important;
}

.global-lock-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, var(--color-slate-dark) 0%, var(--color-obsidian) 100%);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.5s ease;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--color-border);
  box-shadow: var(--glass-shadow);
  border-radius: 12px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.global-lock-card {
  max-width: 480px;
  width: 100%;
  padding: 3.5rem 3rem;
  text-align: center;
  border-color: var(--color-border-gold);
  box-shadow: var(--glass-shadow);
  animation: scaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.lock-icon-container {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1px solid var(--color-border-gold);
  background: var(--color-gold-trans);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
  animation: pulseGold 2.5s infinite ease-in-out;
}

.lock-svg {
  filter: drop-shadow(0 0 8px var(--color-gold-trans));
}

.lock-brand {
  font-size: 1.8rem;
  margin: 0;
  color: var(--text-primary);
}

.lock-brand span {
  font-weight: 300;
  color: var(--text-secondary);
}

.lock-badge {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-gold);
  border: 1px solid var(--color-border-gold);
  padding: 0.3rem 1rem;
  border-radius: 4px;
  background: var(--color-gold-trans);
  margin-top: -0.5rem;
}

.lock-instruction {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.lock-form-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lock-input {
  width: 100%;
  height: 50px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0 1.25rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  text-align: center;
  letter-spacing: 0.1em;
  transition: all 0.3s;
}

:root.light-theme .lock-input {
  background: rgba(0, 0, 0, 0.02);
}

.lock-input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 15px var(--color-gold-trans);
  background: rgba(255, 255, 255, 0.04);
}

:root.light-theme .lock-input:focus {
  background: rgba(255, 255, 255, 0.8);
}

.btn-lock-submit {
  width: 100%;
  height: 50px;
  font-size: 0.85rem;
}

.lock-error-msg {
  color: #ff4d4d;
  font-size: 0.75rem;
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.05em;
  animation: shakeInput 0.4s ease;
}

:root.light-theme .lock-error-msg {
  color: #d32f2f;
}

/* Lock Keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulseGold {
  0% { box-shadow: 0 0 0 0px rgba(212, 175, 55, 0.2); }
  70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0px rgba(212, 175, 55, 0); }
}

@keyframes shakeInput {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

