/* ============================================================
   ELARIS – Main Stylesheet  v3.0
   Fonts: Cormorant Garamond (serif) + Montserrat (sans)
   Colors: #C59B27 gold | #1A1A1A dark | #F8F6F1 off-white
   ============================================================ */

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

:root {
  --gold: #C59B27;
  --gold-light: #D4AF50;
  --dark: #1A1A1A;
  --charcoal: #2C2C2C;
  --mid: #4A4A4A;
  --light: #F8F6F1;
  --white: #FFFFFF;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Montserrat', Arial, sans-serif;
}

html { scroll-behavior: smooth; overflow-x: hidden; scroll-padding-top: 90px; }
body { font-family: var(--sans); color: var(--dark); background: var(--white); overflow-x: hidden; width: 100%; }
img  { max-width: 100%; height: auto; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
#navbar.scrolled {
  background: rgba(26,26,26,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  /* Over video/hero: vivid bright gold with warm glow */
  filter: brightness(1.25) saturate(1.5) drop-shadow(0 0 10px rgba(197,155,39,0.55));
  transition: filter 0.45s ease;
}
#navbar.scrolled .nav-logo-img {
  /* In other sections: natural undoctored gold, no glow */
  filter: none;
}
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.25s;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(20,18,15,0.98);
  padding: 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease, padding 0.3s;
}
.mobile-menu.open {
  display: flex;
  max-height: 300px;
  padding: 12px 0 20px;
}
.mobile-menu ul {
  display: flex;
  flex-direction: column;
}
.mobile-menu li a {
  display: block;
  padding: 14px 32px;
  font-size: 0.72rem;
  letter-spacing: 2.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  transition: color 0.2s;
}
.mobile-menu li a.active,
.mobile-menu li a:hover { color: var(--gold); }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.show-desktop { display: block; }
.show-mobile  { display: none; }
.centered     { text-align: center; }
.centered-content { text-align: center; }

/* Gold decorative line (horizontal rule below label) */
.gold-rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 18px 0;
}
/* Centered version */
.gold-rule-c {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 18px auto;
}
/* Wider underline below section titles */
.gold-underline {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 0 0 56px;
}
.gold-underline.centered-u {
  margin: 0 auto 56px;
}
/* Horizontal rule inside standard section */
.gold-hr {
  width: 80px;
  height: 1px;
  background: var(--gold);
  margin: 36px auto 28px;
}

/* Section label (small caps above headings) */
.sec-label {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  display: block;
}
.sec-label.gold-label { color: var(--gold); }

/* Section title */
.sec-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 16px;
}
.sec-title.white-text { color: var(--white); }
.sec-title.dark-title  { color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 28px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-arrow { font-size: 1rem; font-weight: 400; }

/* Outlined white (for dark/video hero) */
.btn-outline-white {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.75);
  color: var(--white);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

/* Outlined gold */
.btn-outline-gold {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--dark);
}

/* Filled gold */
.btn-gold,
a.btn-gold,
button.btn-gold {
  background: #C59B27 !important;
  border: 1px solid #C59B27 !important;
  color: #1A1A1A !important;
  -webkit-text-fill-color: #1A1A1A !important;
  font-weight: 700;
  text-decoration: none !important;
}
.btn-gold:hover,
a.btn-gold:hover {
  background: #D4AF50 !important;
  border-color: #D4AF50 !important;
}

.full-width { width: 100%; justify-content: center; }

/* ============================================================
   DARK BACKGROUND SECTION PATTERN
   All dark sections share: relative → absolute bg-img + overlay + relative content
   ============================================================ */
.dark-bg-section {
  position: relative;
  overflow: hidden;
  background: var(--dark);
}
.dark-bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.dark-bg-img picture {
  display: block;
  width: 100%;
  height: 100%;
}
.dark-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
}
.dark-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 8, 5, 0.84);
}

/* "How We Build" section — lighter overlay to show bg image */
#pillars .dark-bg-overlay {
  background: rgba(10, 8, 5, 0.60);
}

/* "Our Founder" section — slightly lighter */
#leadership .dark-bg-overlay {
  background: rgba(10, 8, 5, 0.78);
}

/* "What We Believe" section */
#beliefs .dark-bg-overlay {
  background: rgba(10, 8, 5, 0.78);
}

/* Career culture section */
#culture .dark-bg-overlay {
  background: rgba(10, 8, 5, 0.68);
}

/* Contact paths section */
#paths .dark-bg-overlay {
  background: rgba(10, 8, 5, 0.72);
}

/* Contact reach-us section */
#contact-hub .dark-bg-overlay {
  background: rgba(10, 8, 5, 0.78);
}

/* Content wrapper — sits above bg+overlay */
.sec-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 48px;
}
.sec-inner.centered-content { text-align: center; }

/* ============================================================
   VIDEO SECTION — full-screen looping video (ABOVE hero)
   Plays continuously, muted autoplay, with mute toggle
   ============================================================ */
.video-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: #0d0a07;
}
.video-section-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.video-section-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0,0,0,0.18); /* very light overlay — let video breathe */
  pointer-events: none;
}
/* Mute toggle sits in bottom-right of video section */
.mute-btn {
  position: absolute;
  bottom: 32px;
  left: 32px;  /* LEFT side on desktop as per design */
  right: auto;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.mute-btn:hover { background: rgba(255,255,255,0.22); }
.mute-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Close button — top-right, only visible in landscape full-screen */
.video-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 9001;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.50);
  border: 1px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.video-close-btn:hover { background: rgba(0,0,0,0.75); }

/* ============================================================
   HERO SECTION — static photo + text (BELOW video)
   Woman on terrace at sunset. Left-heavy dark gradient.
   ============================================================ */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #0d0a07;
}

/* Background photo layer */
.hero-section .hero-static-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-section .hero-static-bg picture,
.hero-section .hero-static-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
}

/* Left-heavy dark gradient overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(8, 6, 3, 0.82) 0%,
    rgba(8, 6, 3, 0.65) 38%,
    rgba(8, 6, 3, 0.30) 62%,
    rgba(8, 6, 3, 0.05) 100%
  );
  pointer-events: none;
}

/* Text content layer */
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 8vw;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.05;
  max-width: 560px;
}

/* Gold rule — thin line between title and body */
.hero-gold-rule {
  width: 52px;
  height: 1.5px;
  background: var(--gold);
  margin: 22px 0 20px;
  flex-shrink: 0;
}

.hero-body {
  font-family: var(--sans);
  font-size: 0.83rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255,255,255,0.80);
  max-width: 440px;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Hero buttons — gold border + white text */
.btn-hero-gold {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 13px 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}
.btn-hero-gold:hover {
  background: var(--gold);
  color: var(--dark);
}

/* ============================================================
   STORY SECTION — full-bleed photo, text overlaid on dark right
   Photo: dh280uvQ — naturally dark on right side (no CSS gradient needed)
   Text sits at ~60% from left on top of the dark area
   ============================================================ */
.story-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.story-image {
  width: 100%;
  line-height: 0;
}
.story-image picture {
  display: block;
  width: 100%;
}
.story-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.story-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 42%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 64px 60px 0;
  background: transparent;
}
.story-heading {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.2vw, 2.4rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 18px;
  margin-top: 10px;
}
.story-panel p {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(255,255,255,0.82);
  margin-bottom: 14px;
}
/* CTA button — fits content only */
.story-panel .btn {
  align-self: flex-start;
  width: auto;
  margin-top: 8px;
}

/* ============================================================
   DARK BACKGROUND SECTIONS — CARD GRIDS
   ============================================================ */

/* 3-column card grid */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* 4-column card grid */
.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ── Build Card (How We Build / Culture) ── */
.build-card {
  border: 1px solid rgba(197,155,39,0.4);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s;
}
.build-card:hover { border-color: rgba(197,155,39,0.8); }

.card-num {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 20px;
}
.card-icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 20px;
}
.card-rule {
  width: 36px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 20px;
}
.build-card h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  line-height: 1.3;
}
.build-card p {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255,255,255,0.62);
  flex: 1;
}

/* ── Belief Card (What We Believe — 4-col) ── */
.belief-card {
  border: 1px solid rgba(197,155,39,0.4);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s;
}
.belief-card:hover { border-color: rgba(197,155,39,0.8); }
.belief-card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.3;
}
.belief-card p {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(255,255,255,0.62);
  flex: 1;
}

/* ── Path Card (Choose Your Path — contact) ── */
.path-card {
  border: 1px solid rgba(197,155,39,0.4);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  transition: border-color 0.25s;
}
.path-card:hover { border-color: rgba(197,155,39,0.8); }
.path-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(197,155,39,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.path-card h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.5px;
}
.path-card p {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(255,255,255,0.62);
  flex: 1;
}

/* ── Founder Card (Our Founder — 2 white cards) ── */
.founder-card {
  background: #F7F6F2;
  border-left: 3px solid var(--gold);
  border-radius: 2px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.founder-card-icon {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}
.founder-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.5px;
}
.founder-card p {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.8;
  color: #444;
}

/* ============================================================
   STANDARD SECTION — Full-bleed scenic photo, centered text
   ============================================================ */
.standard-section {
  position: relative;
  overflow: hidden;
  background: var(--dark);
}
.standard-bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.standard-bg-img picture {
  display: block;
  width: 100%;
  height: 100%;
}
.standard-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.standard-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 8, 5, 0.52); /* dark overlay — preserves warm natural tones */
}
/* Standard section uses .sec-inner.centered-content, no extra wrapper needed */
.standard-body {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255,255,255,0.82);
  max-width: 720px;
  margin: 0 auto 16px;
}
.standard-quote {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  color: rgba(255,255,255,0.90);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================================
   FUTURE / SHAPING SECTION — photo top ~50vh, dark panel bottom
   ============================================================ */
.future-section {
  display: flex;
  flex-direction: column;
  background: #121212;
}
.future-photo {
  width: 100%;
  overflow: hidden;
  position: relative;
  height: 52vh;
  min-height: 340px;
  max-height: 560px;
}
/* no gradient overlay — clean hard edge to dark section */
.future-photo picture {
  display: block;
  width: 100%;
  height: 100%;
}
.future-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.future-dark {
  background: #121212;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 64px 12vw 80px;
}
.future-icon {
  margin-bottom: 28px;
}
.future-dark h2 {
  font-family: var(--sans);
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 28px;
}
.future-dark p {
  font-family: var(--sans);
  font-size: 0.83rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255,255,255,0.68);
  max-width: 560px;
  margin-bottom: 16px;
}
.future-dark .btn { margin-top: 20px; }
/* Desktop only: future-dark Start a Conversation = solid gold fill */
@media (min-width: 769px) {
  .future-dark .btn-gold {
    background: #C59B27 !important;
    border: 1px solid #C59B27 !important;
    color: #1A1A1A !important;
    -webkit-text-fill-color: #1A1A1A !important;
    text-decoration: none !important;
  }
}

/* ============================================================
   PAGE HERO — inner pages (About, Careers, Contact)
   ============================================================ */
.page-hero {
  position: relative;
  height: 90vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--dark);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero-bg picture,
.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10,8,5,0.60);
}
.page-hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}
.page-hero-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: 2px;
  margin-bottom: 0;
}
.page-hero-body {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(255,255,255,0.78);
  max-width: 600px;
  margin-top: 8px;
}

/* ============================================================
   WHY WE EXIST — full-bleed photo + left dark gradient overlay
   ============================================================ */
.why-section {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
/* Photo fills full section */
.why-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.why-photo picture,
.why-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
}
/* Dark left-to-transparent gradient overlay */
.why-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,8,5,0.92) 0%,
    rgba(10,8,5,0.82) 30%,
    rgba(10,8,5,0.52) 52%,
    rgba(10,8,5,0.15) 72%,
    rgba(10,8,5,0.0) 88%
  );
  z-index: 1;
  pointer-events: none;
}
/* Text floats above gradient */
.why-text {
  position: relative;
  z-index: 2;
  background: transparent;
  display: flex;
  align-items: center;
  padding: 0;
}
.why-text-inner {
  padding: 80px 60px 80px 7vw;
  max-width: 50%;
}
.why-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.5px;
  line-height: 1.15;
  margin-bottom: 20px;
  margin-top: 12px;
}
.why-text-inner p {
  font-family: var(--sans);
  font-size: 0.83rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255,255,255,0.72);
  margin-bottom: 16px;
}

/* ============================================================
   FOUNDER SECTION — dark-bg-section + grid inside sec-inner
   ============================================================ */
.founder-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 56px;
  align-items: start;
}
.founder-bio {
  display: flex;
  flex-direction: column;
}
.founder-name {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: 2px;
  margin-top: 8px;
  margin-bottom: 4px;
}
.founder-rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 16px 0 24px;
}
.founder-bio p {
  font-family: var(--sans);
  font-size: 0.83rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255,255,255,0.68);
  margin-bottom: 16px;
}
.founder-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 60px;
}

/* ============================================================
   EMERGE / WHERE WE'RE GOING — dark charcoal, text left + map right
   ============================================================ */
.emerge-section {
  background: #111009;
  position: relative;
  overflow: hidden;
}
.emerge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.emerge-text {
  display: flex;
  flex-direction: column;
}
.emerge-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: 2px;
  line-height: 1.15;
  margin-bottom: 24px;
  margin-top: 12px;
}
.emerge-text p {
  font-family: var(--sans);
  font-size: 0.83rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255,255,255,0.68);
  margin-bottom: 14px;
}
.emerge-map {
  display: flex;
  align-items: center;
  justify-content: center;
}
.emerge-map img {
  max-height: 500px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 32px rgba(197,155,39,0.15));
}

/* ============================================================
   APPLY SECTION (Careers) — text left + form right
   ============================================================ */
.apply-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.apply-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 8px;
}
.apply-left p {
  font-family: var(--sans);
  font-size: 0.83rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255,255,255,0.68);
  margin-bottom: 14px;
}

/* ============================================================
   CONTACT GRID — channels left + form right
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-channels {
  display: flex;
  flex-direction: column;
}
.channel-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 36px;
}
.channel-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.channel-text strong {
  display: block;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.channel-text p {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.7);
}
.channel-text a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.channel-text a:hover { color: var(--gold); }

/* Glass form wrapper */
.glass-form-wrap {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(197,155,39,0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 40px 36px;
  border-radius: 4px;
}

/* ============================================================
   MAP SECTION
   ============================================================ */
.map-section {
  position: relative;
  overflow: hidden;
  background: var(--dark);
}
.map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.map-info {
  display: flex;
  flex-direction: column;
}
.map-pin {
  margin-bottom: 12px;
}
.map-heading {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 3.5px;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.map-address {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255,255,255,0.72);
}
.map-image {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(197,155,39,0.2);
}
.map-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.9);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(197,155,39,0.45);
  padding: 10px 0;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  border-radius: 0;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.28); }
.form-group input:focus,
.form-group textarea:focus { border-bottom-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 90px; }

/* Form row (2 cols) */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* File upload area */
.file-upload {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(197,155,39,0.45);
  padding: 10px 0;
}
.file-upload span {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  flex: 1;
}
.browse-btn {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  border: 1px solid rgba(197,155,39,0.5);
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.browse-btn:hover { background: var(--gold); color: var(--dark); }

/* Form success */
.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--gold);
  padding: 14px 0 0;
  line-height: 1.5;
}
.form-context-label {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
  font-style: italic;
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: #0d0c0a;
  border-top: 1px solid rgba(197,155,39,0.18);
}
.footer-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 48px 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 56px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.footer-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}
.footer-logo-name {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--gold);
}
.footer-desc {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.45);
  margin-bottom: 24px;
  max-width: 280px;
}
.footer-social {
  display: flex;
  gap: 14px;
}
.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(197,155,39,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all 0.2s;
}
.social-icon:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.footer-links h4,
.footer-contact h4 {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-links ul li {
  margin-bottom: 10px;
}
.footer-links ul li a {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-links ul li a:hover { color: var(--gold); }
.footer-contact ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-contact ul li svg { margin-top: 2px; flex-shrink: 0; }
.footer-contact ul li a,
.footer-contact ul li span {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  transition: color 0.2s;
}
.footer-contact ul li a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 48px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;  /* center all items */
  flex-wrap: wrap;
  gap: 16px 40px;
  text-align: center;
}
.footer-bottom p {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 300;
  color: rgba(255,255,255,0.3);
}
.footer-legal {
  display: flex;
  gap: 24px;
  justify-content: center;
}
.footer-legal a {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 300;
  color: rgba(255,255,255,0.3);
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--gold); }

/* ============================================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .nav-inner { padding: 16px 32px; }
  .sec-inner { padding: 80px 32px; }

  /* Story — tablet: full-bleed photo, panel moves below */
  .story-section { }
  .story-panel {
    position: static;
    width: 100%;
    padding: 56px 48px;
    background: #0d0c0a;
  }

  /* Why section — tablet: keep full-bleed, reduce height */
  .why-section { min-height: 560px; }
  .why-text-inner { padding: 64px 48px; max-width: 65%; }

  /* Founder */
  .founder-grid { grid-template-columns: 1fr; gap: 40px; }
  .founder-cards { flex-direction: row; padding-top: 0; }

  /* Cards */
  .cards-3 { grid-template-columns: 1fr; gap: 20px; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  /* Apply / Contact / Map */
  .apply-grid,
  .contact-grid,
  .map-grid { grid-template-columns: 1fr; gap: 48px; }

  /* Emerge */
  .emerge-grid { grid-template-columns: 1fr; gap: 48px; }

  /* Future */
  .future-photo { height: 44vh; min-height: 280px; }
  .future-dark { padding: 60px 8vw; }

  /* Footer */
  .footer-main { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Utility */
  .show-desktop { display: none !important; }
  .show-mobile  { display: block !important; }

  /* ── GLOBAL MOBILE BUTTON STYLE ──
     All buttons: gold text + gold border, transparent background
     Matches the "WRITE TO US" outlined-gold design reference
  ── */
  .btn-gold,
  a.btn-gold,
  button.btn-gold,
  .btn-hero-gold,
  a.btn-hero-gold {
    background: transparent !important;
    border: 1px solid #C59B27 !important;
    color: #C59B27 !important;
    -webkit-text-fill-color: #C59B27 !important;
  }
  .btn-gold:hover,
  a.btn-gold:hover,
  button.btn-gold:hover,
  .btn-hero-gold:hover {
    background: rgba(197,155,39,0.12) !important;
  }
  /* Also unify btn-outline-white → gold outline on mobile */
  .btn-outline-white {
    border-color: #C59B27 !important;
    color: #C59B27 !important;
    -webkit-text-fill-color: #C59B27 !important;
  }

  /* Navbar */
  .nav-inner { padding: 14px 20px; }
  .nav-links  { display: none; }
  .hamburger  { display: flex; }

  /* Video section — portrait mobile */
  .video-section { height: 60vw; min-height: 260px; }
  .mute-btn { bottom: 16px; left: 16px; right: auto; width: 38px; height: 38px; }
  .rotate-prompt { display: flex; }

  /* Hero section — static image + text */
  .hero-section { height: auto; min-height: 100vh; }
  .hero-section .hero-static-bg { min-height: 100%; height: 100%; }
  .hero-section .hero-static-bg picture { display: block; width: 100%; height: 100%; }
  .hero-section .hero-static-bg img { object-position: center top; }
  .hero-overlay {
    min-height: 100%;
    background: linear-gradient(
      to bottom,
      rgba(8,6,3,0.30) 0%,
      rgba(8,6,3,0.45) 40%,
      rgba(8,6,3,0.65) 65%,
      rgba(8,6,3,0.80) 100%
    );
  }
  .hero-content { position: relative; z-index: 2; padding: 100px 24px 56px; }
  .hero-title { font-size: clamp(2.2rem, 8vw, 3.4rem); max-width: 100%; }
  .hero-gold-rule { margin: 18px 0 16px; }
  .hero-body { font-size: 0.82rem; margin-bottom: 28px; max-width: 100%; }
  .hero-ctas { flex-direction: column; gap: 12px; }
  .btn-hero-gold { font-size: 0.6rem; padding: 12px 18px; }

  /* Story — mobile: full-bleed photo stacked, panel below */
  .story-panel {
    position: static;
    width: 100%;
    padding: 48px 24px;
    background: #0d0c0a;
  }
  .story-image picture { display: block; width: 100%; }
  .story-image picture img { object-fit: cover; object-position: center top; width: 100%; height: auto; }
  .story-heading { font-size: 2rem; }

  /* Section inner */
  .sec-inner { padding: 64px 24px; }

  /* Section title */
  .sec-title { font-size: 1.8rem; }

  /* Cards */
  .cards-3 { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: 1fr; }
  .build-card { padding: 32px 24px; }
  .belief-card { padding: 28px 20px; }
  .path-card { padding: 36px 24px; }

  /* Standard section */
  .standard-quote { font-size: 1.1rem; }

  /* Future section */
  .future-photo { height: auto; min-height: unset; max-height: unset; }
  .future-photo img { height: auto; object-fit: unset; }
  .future-dark { padding: 48px 24px 160px; }
  .future-dark h2 { font-size: 1.5rem; letter-spacing: 2px; }
  .future-dark .btn { min-width: 0; width: auto; padding: 14px 32px; }
  /* future-dark btn-gold: override desktop rule, use outline on mobile */
  .future-dark .btn-gold,
  .future-dark a.btn-gold {
    background: transparent !important;
    border: 1px solid #C59B27 !important;
    color: #C59B27 !important;
    -webkit-text-fill-color: #C59B27 !important;
  }

  /* Page hero */
  .page-hero { height: 70vh; min-height: 480px; }
  .page-hero-title { font-size: clamp(1.8rem, 7vw, 3rem); }

  /* Why section — mobile: full-bleed photo with text overlaid on top */
  .why-section {
    display: block;
    position: relative;
    min-height: 100svh;
  }
  /* Hide the photo div — we use it as a CSS background instead */
  .why-photo {
    position: absolute;
    inset: 0;
    min-height: unset;
    order: unset;
    z-index: 0;
  }
  .why-photo picture,
  .why-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    display: block;
  }
  /* Dark gradient overlay — left/top heavy so text is readable */
  .why-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to right,
      rgba(10,8,5,0.82) 0%,
      rgba(10,8,5,0.65) 55%,
      rgba(10,8,5,0.25) 100%
    );
    pointer-events: none;
  }
  /* Text sits on top of the photo */
  .why-text {
    position: relative;
    z-index: 1;
    background: transparent;
    display: block;
    order: unset;
    padding: 0;
  }
  .why-text-inner {
    padding: 56px 28px 64px;
    max-width: 100%;
  }
  /* Large serif heading matching design */
  .why-heading {
    font-size: clamp(2rem, 7vw, 2.6rem);
    color: #C59B27;
    margin-bottom: 20px;
  }
  /* Override sec-label to be the big white "Why We Exist" title on mobile */
  .why-text-inner .sec-label {
    display: block;
    font-family: var(--serif);
    font-size: clamp(2.4rem, 10vw, 3.2rem);
    font-weight: 600;
    color: var(--white);
    text-transform: none;
    letter-spacing: 0px;
    line-height: 1.1;
    margin-bottom: 12px;
  }
  .why-text-inner .gold-rule {
    margin-bottom: 20px;
  }

  /* Founder */
  .founder-grid { grid-template-columns: 1fr; }
  .founder-cards { flex-direction: column; }
  .founder-bio { padding: 0; }

  /* Emerge */
  .emerge-grid { grid-template-columns: 1fr; gap: 40px; }
  .emerge-heading { font-size: 1.8rem; }
  .emerge-map img { max-height: 320px; }

  /* Apply */
  .apply-grid { grid-template-columns: 1fr; }
  .apply-heading {
    font-size: 1.8rem;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
  }
  /* #apply btn-gold inherits global mobile outline-gold rule */

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }
  .glass-form-wrap { padding: 28px 20px; }

  /* Map */
  .map-grid { grid-template-columns: 1fr; gap: 36px; }

  /* Form */
  .form-row { grid-template-columns: 1fr; gap: 0; }

  /* Footer */
  .footer-main { grid-template-columns: 1fr; gap: 40px; padding: 48px 24px 36px; }
  .footer-bottom { padding: 16px 24px; flex-direction: column; align-items: center; text-align: center; }
  .footer-legal { flex-direction: column; gap: 8px; align-items: center; }

  /* Gold underline centered */
  .gold-underline.centered-u { margin-bottom: 40px; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ============================================================ */
@media (max-width: 480px) {
  /* Reinforce global mobile button style at small sizes */
  .btn-gold,
  a.btn-gold,
  button.btn-gold,
  .btn-hero-gold,
  a.btn-hero-gold {
    background: transparent !important;
    border: 1px solid #C59B27 !important;
    color: #C59B27 !important;
    -webkit-text-fill-color: #C59B27 !important;
  }

  .video-section { height: 60vw; min-height: 240px; }
  .hero-title { font-size: 2rem; }
  .btn-hero-gold { width: 100%; justify-content: center; }
  .page-hero-title { font-size: 1.8rem; }
  .story-image { height: 300px; }
  .story-heading { font-size: 1.8rem; }
  .future-dark h2 { font-size: 1.35rem; letter-spacing: 2px; }
  /* future-dark .btn-gold inherits global 480px outline-gold rule */
  .apply-heading { font-size: 1.6rem; text-transform: none; letter-spacing: 0; }
}

/* ============================================================
   MOBILE LANDSCAPE — video plays full-screen
   ============================================================ */
@media (max-width: 1024px) and (orientation: landscape) {
  /* Video section goes truly full-screen in landscape */
  .video-section {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    min-height: unset;
    z-index: 9000;
  }
  .video-section-el {
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  /* Hide rotate prompt when landscape */
  .rotate-prompt { display: none !important; }
  /* Push page content below the fixed video when landscape */
  body.video-landscape-active .video-section-placeholder {
    display: block;
  }
}

/* ============================================================
   ROTATE PROMPT — shown on mobile portrait only
   ============================================================ */
.rotate-prompt {
  display: none; /* shown via mobile portrait media query */
  position: absolute;
  inset: 0;
  z-index: 3;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(10,8,5,0.88);
  gap: 16px;
  pointer-events: none;
}
.rotate-prompt-icon {
  animation: rotate-hint 2s ease-in-out infinite;
}
.rotate-prompt-text {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
@keyframes rotate-hint {
  0%   { transform: rotate(0deg); }
  40%  { transform: rotate(90deg); }
  60%  { transform: rotate(90deg); }
  100% { transform: rotate(0deg); }
}
