*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --navy: #1a2744;
  --cream: #f5f0e8;
  --gold: #b8965a;
  --white: #ffffff;
  --nav-h: 90px;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Heebo', sans-serif;
  background: var(--cream);
  color: var(--navy);
  overflow-x: hidden;
}

/* -- NAV -- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 24px 64px;
  transition: background 0.5s, padding 0.4s;
}
.nav-logo { flex-shrink: 0; }
nav > ul { margin-left: auto; }
.hamburger { margin-left: auto; }
nav.scrolled {
  background: rgba(26,39,68,0.96);
  padding: 16px 64px;
  backdrop-filter: blur(14px);
}
/*.nav-logo svg { height: 44px; width: auto; display: block; } */
.nav-logo #logoSvgNav { height: 44px; width: auto; display: block; }
nav ul {
  list-style: none;
  display: flex;
  gap: 44px;
}
nav ul a {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 400;
  opacity: 0.82;
  transition: opacity 0.2s;
  cursor: pointer;
}
nav ul a:hover { opacity: 1; }

/* Hamburger — hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
  z-index: 2100;
  position: relative;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 2050;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 22px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 300;
  font-family: 'Heebo', sans-serif;
  opacity: 0.85;
  cursor: pointer;
}
.mobile-nav a:hover { opacity: 1; color: var(--gold); }
.mobile-nav-close {
  position: absolute;
  /*top: 30px; right: 42px;*/
  top: 20px;
  right: 32px;
  background: none; border: none;
  color: var(--white);
  font-size: 22px;
  width: 46px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.6;
  line-height: 1;
  transition: opacity 0.2s;
}
.mobile-nav-close:hover { opacity: 1; }
.mobile-nav.scrolled .mobile-nav-close {
    top: 14px;
}
.mobile-nav-logo {
  position: absolute;
  top: 20px; left: 32px;
}
.mobile-nav.scrolled .mobile-nav-logo {
    /*top: 14px;*/
    top: 17px;
}
@media only screen and (min-width : 601px) {
    .mobile-nav.scrolled .mobile-nav-logo {
        top: 14px;
    }
}
.mobile-nav-logo svg { height: 36px; width: auto; display: block; }
.mobile-nav-logo #logoSvgMobile { height: 36px; width: auto; display: block; }

/* -- HERO -- */
.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  z-index: 1;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  will-change: opacity;
  /* No transform animation — prevents shrink hiccup */
  transition: opacity 0.9s ease;
}
.carousel-slide.active { opacity: 1; }
.carousel-slide.exiting { opacity: 0; }

.hero-top-grad {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to bottom, rgba(26,39,68,0.78) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,39,68,0.9) 0%, rgba(26,39,68,0.12) 50%, transparent 70%);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 80px 90px;
  max-width: 900px;
}
.hero h1 {
  font-family: 'Newsreader', serif;
  font-size: clamp(56px, 8.5vw, 108px);
  font-weight: 300;
  line-height: 0.93;
  color: var(--white);
  letter-spacing: -1px;
  overflow: visible;
}
.hero h1 em { font-style: italic; font-weight: 300; overflow: visible; display: inline-block;
  padding-right: 0.15em; }
.word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: wordIn 0.75s ease forwards;
  overflow: visible;
}
.word-sp { display: inline-block; width: 0.28em; }
@keyframes wordIn { to { opacity: 1; transform: translateY(0); } }

.scroll-cue {
  position: absolute;
  right: 64px; bottom: 56px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.42);
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 300;
  cursor: pointer;
  background: none; border: none;
  font-family: 'Heebo', sans-serif;
}
.scroll-cue::after {
  content: '';
  width: 1px; height: 56px;
  background: rgba(255,255,255,0.25);
  animation: scrollLine 2.2s infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* -- PAGE CONTENT -- */
.page-scroll { position: relative; }

/* -- STATS BAR -- */
.stats-bar {
  background: var(--navy);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 4px 32px rgba(26,39,68,0.25);
}
.stat {
  padding: 36px 60px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.07);
  flex: 0 0 auto;
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: 'Newsreader', serif;
  font-size: 48px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  margin-top: 8px;
  font-weight: 400;
}

/* -- STICKY PANELS -- */
.sticky-wrapper { position: relative; }
.sticky-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 -12px 60px rgba(26,39,68,0.22);
}
.sticky-panel:nth-child(1) { z-index: 11; }
.sticky-panel:nth-child(2) { z-index: 12; }
.sticky-panel:nth-child(3) { z-index: 13; }

.panel-photo { position: relative; overflow: hidden; background: var(--navy); }
.panel-photo img {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.panel-photo img.active { opacity: 1; z-index: 2; }
.panel-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(26,39,68,0.08);
  z-index: 3; pointer-events: none;
}
.panel-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 72px;
  overflow: hidden;
}
.panel-content.light { background: var(--cream); }
.panel-content.dark  { background: var(--navy); }

.section-icon-wrap {
  height: 42px;
  display: flex;
  align-items: flex-start;
  margin-bottom: 32px;
}
.section-icon-wrap svg {
  height: 42px;
  width: auto;
  flex-shrink: 0;
}
.section-line {
  width: 40px; height: 1px;
  background: var(--gold);
  margin-bottom: 28px;
  flex-shrink: 0;
}
.section-title {
  font-family: 'Newsreader', serif;
  font-size: clamp(36px, 3.5vw, 56px);
  font-weight: 300;
  line-height: 1.08;
  margin-bottom: 24px;
}
.section-title.lt { color: var(--white); }
.section-title.dk { color: var(--navy); }
.section-body {
  font-size: 16px;
  line-height: 1.85;
  font-weight: 300;
  max-width: 440px;
}
.section-body.lt { color: rgba(255,255,255,0.62); }
.section-body.dk { color: #4a5568; }

/* -- PHILOSOPHY -- */
.philosophy {
  background: var(--navy);
  padding: 96px 80px;
  text-align: center;
  position: relative;
  z-index: 14;
  box-shadow: 0 -12px 60px rgba(26,39,68,0.3);
}
.philosophy::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(184,150,90,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.philosophy-label {
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  font-weight: 400;
}
.phil-line { overflow: hidden; margin-bottom: 2px; }
.phil-line-inner {
  font-family: 'Newsreader', serif;
  font-size: clamp(17px, 1.9vw, 25px);
  font-weight: 300;
  color: rgba(255,255,255,0.88);
  line-height: 1.65;
  display: block;
  transform: translateY(115%);
  transition: transform 1.1s cubic-bezier(0.16,1,0.3,1);
}
.phil-line-inner em { font-style: italic; color: var(--gold); }
/* Only animate when .in-view is added via JS IntersectionObserver */
.philosophy.in-view .phil-line-inner { transform: translateY(0); }
.phil-divider {
  width: 1px; height: 52px;
  background: rgba(184,150,90,0.32);
  margin: 44px auto 40px;
}
.cta-btn {
  display: inline-block;
  padding: 16px 48px;
  border: 1px solid rgba(184,150,90,0.55);
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 400;
  transition: all 0.3s;
  cursor: pointer;
  background: transparent;
  font-family: 'Heebo', sans-serif;
}
.cta-btn:hover { background: var(--gold); color: var(--navy); }
#submarkSvg {
    height:48px;width:auto;display:block;margin:0 auto 28px;opacity:1;
}



/* -- FOOTER -- */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 44px 80px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: relative;
  z-index: 15;
}
footer svg { height: 30px; width: auto; opacity: 0.65; }
.footer-location {
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  text-align: center;
}
.copyright {
  font-size: 13px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.5px;
  text-align: right;
}
#logoSvgFooter {
    height:30px;width:auto;display:block;opacity:0.65;
}

/* -- CONTACT MODAL -- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(26,39,68,0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
  backdrop-filter: blur(10px);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--cream);
  padding: 60px;
  max-width: 520px;
  width: 92%;
  position: relative;
  transform: translateY(24px);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute; top: 24px; right: 28px;
  background: none; border: none;
  font-size: 20px; cursor: pointer;
  color: var(--navy); opacity: 0.4;
  transition: opacity 0.2s;
}
.modal-close:hover { opacity: 0.8; }
.modal h3 {
  font-family: 'Newsreader', serif;
  font-size: 38px; font-weight: 300;
  color: var(--navy); margin-bottom: 6px;
}
.modal .modal-sub {
  font-size: 14px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 36px; font-weight: 400;
}
.modal input, .modal textarea {
  width: 100%; border: none;
  border-bottom: 1px solid rgba(26,39,68,0.18);
  background: transparent; padding: 14px 0;
  font-family: 'Heebo', sans-serif; font-size: 15px;
  color: var(--navy); margin-bottom: 24px;
  outline: none; transition: border-color 0.25s;
}
.modal input::placeholder, .modal textarea::placeholder {
  color: rgba(26,39,68,0.32); font-size: 14px;
  letter-spacing: 2px; text-transform: uppercase;
}
.modal input:focus, .modal textarea:focus { border-bottom-color: var(--gold); }
.modal textarea { min-height: 90px; resize: vertical; }
.modal .send-btn {
  background: var(--navy); color: var(--white); border: none;
  padding: 16px 40px; font-family: 'Heebo', sans-serif;
  font-size: 14px; letter-spacing: 2.5px; text-transform: uppercase;
  cursor: pointer; transition: background 0.25s; font-weight: 400;
}
.modal .send-btn:hover { background: var(--gold); }

.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.9s ease, transform 0.9s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ----------------------------------------
   RESPONSIVE — TABLET + MOBILE (=900px)
   ---------------------------------------- */
@media (max-width: 1160px) {
  /* Nav */
  nav { padding: 20px 32px; }
  nav.scrolled { padding: 14px 32px; }
  .nav-logo svg { height: 36px; }
  .nav-logo #logoSvgNav { height: 36px; }
  nav > ul { display: none; }
  .hamburger { display: flex; }

  /* Hero — no longer sticky on mobile, just normal flow */
  .hero {
    position: relative !important;
    height: 100svh;
    min-height: 500px;
  }
  .hero-content { padding: 0 40px 72px; }
  .scroll-cue { right: 32px; bottom: 40px; }

  /* Stats */
  .stats-bar { flex-wrap: wrap; position: static; }
  .stat {
    padding: 28px 24px;
    flex: 1 1 45%;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    /* Force visible — scroll fade-in unreliable on mobile */
    opacity: 1 !important;
    transform: none !important;
  }
  .stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.07); }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
  .stat-num { font-size: 36px; }

  /* Panels — fully un-sticky, normal document flow */
  .sticky-wrapper {
    height: auto !important;
    display: block;
  }
  .sticky-panel {
    position: relative !important;
    height: auto !important;
    min-height: unset !important;
    display: block !important;
    box-shadow: none !important;
    z-index: auto !important;
  }
  .panel-photo {
    position: relative !important;
    width: 100%;
    height: 56vw;
    min-height: 280px;
    display: block;
  }
  .panel-photo img {
    position: absolute !important;
    inset: 0; width: 100%; height: 100%;
    object-fit: cover;
  }
  .panel-photo::after { z-index: 3; }
  .panel-content {
    position: relative !important;
    height: auto !important;
    overflow: visible !important;
    padding: 56px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Force visible — scroll-triggered fade-in is unreliable on mobile
       inside a former sticky-positioned parent */
    opacity: 1 !important;
    transform: none !important;
  }
  /* Asset management: flex column so photo renders above text */
  #assetmanagement { display: flex !important; flex-direction: column !important; }
  #assetmanagement .panel-photo { order: 1 !important; width: 100%; }
  #assetmanagement .panel-content { order: 2 !important; }

  .section-body { max-width: 100%; }

  /* Philosophy */
  .philosophy {
    position: relative !important;
    box-shadow: none !important;
    padding: 72px 40px;
  }
  /* Force philosophy lines visible — scroll-triggered reveal unreliable on mobile */
  .phil-line-inner {
    transform: none !important;
  }

  /* Footer */
  footer {
    padding: 36px 32px;
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }
  footer > div:first-child { display: flex; justify-content: center; }
  .footer-location, .copyright { text-align: center; }

  .modal { padding: 44px 32px; }
}

/* ----------------------------------------
   MOBILE (=600px)
   ---------------------------------------- */
@media (max-width: 600px) {
  nav { padding: 18px 24px; }
  nav.scrolled { padding: 14px 24px; }
  .nav-logo svg { height: 30px; }
  .nav-logo #logoSvgNav { height: 30px; }
  /*.mobile-nav-logo { top: 18px; left: 24px; }
  .mobile-nav-logo { top: 18px; left: 24px; }*/
  .mobile-nav-logo {
        top: 21px;
        left: 24px;
    }

  .mobile-nav-logo svg { height: 30px; }
  .mobile-nav-logo #logoSvgMobile { height: 30px; }
  /*.mobile-nav-close { top: 28px; right: 34px; }*/
  .mobile-nav-close {
    /*top: 13px;
    right: 24px;*/
    top: 18px;
    right: 24px;
    }

  .hero { height: 100svh; min-height: 480px; }
  .hero-content { padding: 0 24px 64px; }
  .hero h1 { font-size: clamp(42px, 11vw, 68px); letter-spacing: -0.5px; overflow: visible; }
  .scroll-cue { right: 24px; bottom: 32px; font-size: 12px; }

  .stat { padding: 22px 16px; }
  .stat-num { font-size: 30px; }
  .stat-label { font-size: 12px; letter-spacing: 1.5px; }

  .panel-photo { height: 62vw; min-height: 240px; }
  .panel-content { padding: 44px 24px; }
  .section-title { font-size: clamp(28px, 7vw, 38px); }
  .section-body { font-size: 15px; }

  .philosophy { padding: 56px 18px; }
  .phil-line-inner { font-size: clamp(13px, 3.1vw, 15px); line-height: 1.5; }
  .cta-btn { padding: 14px 32px; font-size: 13px; letter-spacing: 2px; }

  footer { padding: 32px 24px; gap: 14px; }
  .modal { padding: 36px 20px; }
  .modal h3 { font-size: 30px; }
}

