/* =============================================================
   SASCHA GOROKHOFF — SITE-WIDE STYLESHEET
   Luxury Swiss aesthetic · Navy #0A0F1E + Gold #C9A84C
   Typography: Cormorant Garamond (display) + Syne (accent) + Inter (body)
   ============================================================= */

:root {
  --navy: #0A0F1E;
  --navy-deep: #070B17;
  --navy-mid: #141B32;
  --gold: #C9A84C;
  --gold-soft: #D4B668;
  --gold-dim: #8B7435;
  --cream: #F5F0E4;
  --ivory: #FAF7EE;
  --stone: #9A9285;
  --line: rgba(201, 168, 76, 0.18);
  --line-strong: rgba(201, 168, 76, 0.35);
  --display: 'Cormorant Garamond', Georgia, serif;
  --accent: 'Syne', sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--body); background: var(--navy); color: var(--cream);
  font-weight: 300; line-height: 1.7; font-size: 17px; overflow-x: hidden;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.15; }
.accent-font { font-family: var(--accent); letter-spacing: 0.02em; }
.gold { color: var(--gold); }
.gold-soft { color: var(--gold-soft); }
em, .italic-gold { font-style: italic; color: var(--gold-soft); }
a { color: var(--gold); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--gold-soft); }
strong { font-weight: 500; }
.text-gold { color: var(--gold); }

/* LAYOUT */
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 960px; margin: 0 auto; padding: 0 32px; }
section { padding: 120px 0; position: relative; }
@media (max-width: 768px) { section { padding: 80px 0; } }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 15, 30, 0.88);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line); padding: 18px 32px;
}
.nav-inner { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.nav-logo { font-family: var(--display); font-size: 22px; color: var(--cream); font-weight: 500; letter-spacing: 0.02em; }
.nav-logo .gold-mark { color: var(--gold); }
.nav-links { display: flex; gap: 28px; align-items: center; font-family: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; }
.nav-links a { color: var(--cream); opacity: 0.75; }
.nav-links a:hover { opacity: 1; color: var(--gold); }
.nav-cta { padding: 10px 22px; border: 1px solid var(--gold); color: var(--gold) !important; border-radius: 2px; font-family: var(--accent); font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; transition: all 0.3s; }
.nav-cta:hover { background: var(--gold); color: var(--navy) !important; }
@media (max-width: 900px) { .nav-links a:not(.nav-cta):not(.nav-home) { display: none; } }

/* PAGE HEADER (for non-homepage pages) */
.page-header {
  padding: 160px 0 80px; position: relative;
  background: radial-gradient(ellipse at 20% 30%, rgba(201, 168, 76, 0.08) 0%, transparent 55%), var(--navy);
  border-bottom: 1px solid var(--line);
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='1' /%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
}
.page-header-inner { position: relative; z-index: 2; }
.page-eyebrow {
  font-family: var(--accent); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.28em; color: var(--gold); margin-bottom: 24px;
  display: flex; align-items: center; gap: 16px;
}
.page-eyebrow::before { content: ''; flex: 0 0 40px; height: 1px; background: var(--gold); }
.page-title {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 400; letter-spacing: -0.02em; line-height: 1.05;
  margin-bottom: 24px;
}
.page-title em { font-style: italic; color: var(--gold); font-weight: 300; }
.page-lede {
  font-size: clamp(1.125rem, 1.4vw, 1.375rem);
  max-width: 820px; font-weight: 300; line-height: 1.65;
  color: rgba(245, 240, 228, 0.88);
}
.page-lede strong { color: var(--gold); font-weight: 500; }

/* SECTION HEADERS */
.section-eyebrow {
  font-family: var(--accent); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.26em; color: var(--gold); margin-bottom: 24px;
  display: flex; align-items: center; gap: 16px;
}
.section-eyebrow::before { content: ''; flex: 0 0 40px; height: 1px; background: var(--gold); }
.section-heading {
  font-family: var(--display); font-size: clamp(2.25rem, 4.5vw, 4rem);
  font-weight: 400; line-height: 1.08; letter-spacing: -0.015em;
  margin-bottom: 32px;
}
.section-heading em { font-style: italic; color: var(--gold); font-weight: 300; }
.section-lede {
  font-size: 1.1875rem; font-weight: 300; line-height: 1.7;
  max-width: 820px; color: rgba(245, 240, 228, 0.82);
  margin-bottom: 48px;
}
.section-lede strong { color: var(--gold); }

/* BUTTONS */
.btn-primary, .btn-secondary {
  display: inline-block; padding: 18px 34px;
  font-family: var(--accent); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.2em;
  border-radius: 2px; transition: all 0.35s ease;
  border: 1px solid; cursor: pointer;
}
.btn-primary { background: var(--gold); color: var(--navy) !important; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-soft); border-color: var(--gold-soft); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(201, 168, 76, 0.25); }
.btn-secondary { background: transparent; color: var(--gold) !important; border-color: var(--gold); }
.btn-secondary:hover { background: var(--gold); color: var(--navy) !important; transform: translateY(-2px); }

/* RARITY BADGE */
.rarity-badge {
  display: inline-block; padding: 8px 20px;
  border: 1px solid var(--gold); border-radius: 100px;
  font-family: var(--accent); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--gold); margin-bottom: 24px;
}

/* CARDS & GRIDS */
.card {
  padding: 44px 36px; background: var(--navy-mid);
  border: 1px solid var(--line); border-top: 2px solid var(--gold);
  position: relative; transition: all 0.4s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4); }
.card h3 { font-size: 1.75rem; margin-bottom: 12px; color: var(--cream); }

/* HIGHLIGHT BOX */
.highlight-box {
  padding: 48px; background: linear-gradient(135deg, rgba(201, 168, 76, 0.06), transparent);
  border-left: 2px solid var(--gold);
  font-family: var(--display); font-size: 1.375rem; font-style: italic;
  line-height: 1.55; color: var(--cream);
}
.highlight-box strong { color: var(--gold); font-style: normal; font-weight: 500; }

/* QUOTE */
.pullquote {
  border-left: 2px solid var(--gold); padding: 10px 0 10px 28px;
  font-family: var(--display); font-size: 1.25rem; font-style: italic;
  color: var(--cream); margin: 32px 0;
}

/* FOOTER */
footer {
  background: var(--navy-deep); padding: 80px 0 32px;
  border-top: 1px solid var(--line);
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px;
}
@media (max-width: 768px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand h3 { font-family: var(--display); font-size: 1.75rem; color: var(--cream); margin-bottom: 16px; }
.footer-brand p { font-size: 0.9375rem; color: rgba(245, 240, 228, 0.7); line-height: 1.7; margin-bottom: 24px; max-width: 400px; }
.footer-rarity {
  font-family: var(--accent); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--gold);
  padding: 8px 16px; border: 1px solid var(--gold); display: inline-block; border-radius: 100px;
}
footer h4 {
  font-family: var(--accent); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.22em; color: var(--gold); margin-bottom: 20px;
}
footer ul { list-style: none; }
footer li { margin-bottom: 10px; }
footer li a { color: rgba(245, 240, 228, 0.7); font-size: 0.9375rem; }
footer li a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 32px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px;
  font-size: 0.8125rem; color: var(--stone); font-family: var(--accent);
  text-transform: uppercase; letter-spacing: 0.15em;
}
.footer-social { display: flex; gap: 16px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  color: rgba(245, 240, 228, 0.7); transition: all 0.3s; font-size: 0.85rem;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }

/* REVEAL */
/* ============================================================
   REVEAL ANIMATIONS — Progressive Enhancement Only
   Content is ALWAYS visible by default. Animations layer on top
   only when JavaScript is available. This ensures mobile browsers
   and slower connections never show blank sections.
   ============================================================ */
.reveal {
  opacity: 1;
  transform: none;
  visibility: visible;
}

/* On modern browsers with JS support, enable the subtle fade-in animation.
   If JS never fires (mobile edge cases), content is already visible above. */
html.js-enabled .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
html.js-enabled .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   MOBILE SAFETY — Prevent any horizontal overflow or hidden text
   ============================================================ */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

@media (max-width: 768px) {
  /* Prevent any single element from causing horizontal scroll */
  * { max-width: 100%; }

  /* Ensure headings wrap gracefully on narrow screens */
  h1, h2, h3, h4 {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Maintain comfortable padding on mobile */
  .container, .container-narrow {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  /* Ensure no section collapses to zero height */
  section {
    min-height: auto;
    overflow: visible;
  }
}

/* UTILITY */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.final-cta { background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.1), transparent 60%), var(--navy-deep); text-align: center; padding: 120px 0; }
.final-cta h2 { font-size: clamp(2.25rem, 4.5vw, 4rem); max-width: 900px; margin: 0 auto 24px; line-height: 1.1; }
.final-cta p { font-size: 1.1875rem; max-width: 700px; margin: 0 auto 40px; color: rgba(245,240,228,0.78); }
.final-cta .buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
/* ============================================================
   BULLETPROOF MOBILE RENDERING — Final Override
   These rules at the END of the file override everything above.
   Content visibility is non-negotiable.
   ============================================================ */

/* Content must always be visible — no exceptions */
.reveal,
.reveal.visible,
section,
.section,
[class*="section"] {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
  display: block;
}

/* Mobile viewport safety */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
}

@media (max-width: 900px) {
  /* Nav bar must stay within viewport */
  .nav {
    padding: 16px 20px !important;
    box-sizing: border-box;
  }
  .nav-inner {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    gap: 12px !important;
  }
  .nav-cta {
    padding: 8px 16px !important;
    font-size: 10px !important;
    letter-spacing: 0.12em !important;
    flex-shrink: 0;
  }
  .nav-logo {
    font-size: 18px !important;
    flex-shrink: 0;
  }

  /* Section padding for mobile */
  .container, .container-narrow {
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box;
    max-width: 100% !important;
  }

  /* Headings wrap properly */
  h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
  }

  /* Nothing can break horizontal layout */
  * {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Images scale down */
  img, svg, video {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .nav-logo { font-size: 16px !important; }
  .nav-cta {
    padding: 6px 12px !important;
    font-size: 9px !important;
  }
}
