/* ==========================================================================
   Montreval Private Office — one-page site
   ========================================================================== */

:root {
  --navy: #0a1a2f;
  --navy-deep: #071322;
  --navy-soft: #0f223c;
  --navy-line: rgba(201, 122, 64, 0.18);
  --gold: #c9773f;
  --gold-bright: #e2914f;
  --cream: #f4efe6;
  --ivory: #faf7f1;
  --muted: rgba(244, 239, 230, 0.62);
  --muted-dim: rgba(244, 239, 230, 0.55);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

/* ---------------- Self-hosted fonts ---------------- */

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/playfair-display-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/playfair-display-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/playfair-display-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/playfair-display-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/eb-garamond-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/eb-garamond-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/eb-garamond-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/eb-garamond-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('assets/fonts/barlow-condensed-900-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('assets/fonts/barlow-condensed-900-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background: var(--navy);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection {
  background: var(--gold);
  color: var(--navy-deep);
}

/* subtle film-grain / vignette overlay for a private-bank feel */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 0%, rgba(201,162,75,0.05), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(0,0,0,0.35), transparent 60%);
  mix-blend-mode: normal;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
  font-weight: 500;
}

.eyebrow-light { color: var(--gold-bright); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1.6rem;
  max-width: 18ch;
}

.lede {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--muted);
  max-width: 62ch;
  font-weight: 400;
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 6.5rem 2.5rem;
}

/* ---------------- Header / Nav ---------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 26, 47, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

.site-header.scrolled {
  background: rgba(7, 19, 34, 0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--navy-line);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.25rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  width: 24px;
  height: auto;
}

.brand-mark.small { width: 20px; }

.brand-word {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 2.4rem;
}

.main-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.3s var(--ease);
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}

.main-nav a:hover {
  color: var(--ivory);
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
  outline: none;
}

.nav-toggle:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 6px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--cream);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ---------------- Page Hero (sub-pages) ---------------- */

.page-hero {
  background:
    radial-gradient(ellipse 120% 70% at 50% -10%, rgba(201,162,75,0.08), transparent 55%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  padding: 11rem 2rem 5rem;
  text-align: center;
  border-bottom: 1px solid var(--navy-line);
}

.page-hero-mark {
  width: 46px;
  height: auto;
  margin: 0 auto 1.4rem;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}

.page-hero .eyebrow { justify-content: center; display: flex; }

.page-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--ivory);
  margin: 0.3rem 0 0.8rem;
}

.page-hero-tagline {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 60ch;
  margin: 0 auto;
}

.page-hero-tagline--brand {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
}

.page-hero-tagline--brand .dot { color: var(--muted-dim); margin: 0 0.2em; }

/* ---------------- Hero ---------------- */

.hero {
  min-height: 100vh;
  position: relative;
  background: var(--navy-deep);
  overflow: hidden;
}

.hero-scene {
  position: absolute;
  inset: 0;
  perspective: 1600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo {
  position: absolute;
  inset: -3%;
  z-index: 0;
  will-change: transform;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  opacity: 0;
  filter: brightness(0.8) saturate(0.85);
  transform: scale(1.16);
  animation: heroPhotoIn 3.4s cubic-bezier(.16,.8,.24,1) 0.1s forwards;
}

.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 70% at 50% -10%, rgba(201,162,75,0.05), transparent 55%),
    linear-gradient(180deg, rgba(7,19,34,0.75) 0%, rgba(7,19,34,0.4) 22%, rgba(7,19,34,0.45) 55%, rgba(7,19,34,0.62) 78%, rgba(7,19,34,0.85) 100%);
}

@keyframes heroPhotoIn {
  0% { opacity: 0; transform: scale(1.16); }
  55% { opacity: 0.62; }
  100% { opacity: 0.62; transform: scale(1.05); }
}

.hero-shine {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,0.10) 48%, rgba(226,145,79,0.22) 50%, rgba(255,255,255,0.10) 52%, transparent 58%);
  transform: translateX(-140%);
  animation: heroShine 1.9s cubic-bezier(.2,.7,.2,1) 2.9s 1 forwards;
}

@keyframes heroShine {
  to { transform: translateX(140%); }
}

.hero-spotlight {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: soft-light;
  background: radial-gradient(circle 420px at var(--mx, 50%) var(--my, 40%), rgba(226,145,79,0.5), transparent 70%);
  transition: opacity 0.6s var(--ease);
}

.hero-scene.pointer-active .hero-spotlight { opacity: 1; }

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  width: 100%;
  padding: 10rem 2rem 3rem;
  will-change: transform;
}

.hero-inner * { text-shadow: 0 2px 16px rgba(0,0,0,0.55); }

.hero-anim {
  opacity: 0;
}

.hero-mark {
  display: flex;
  justify-content: center;
  margin-bottom: 1.8rem;
  perspective: 600px;
}

.mark-3d {
  display: block;
  width: 86px;
  height: auto;
  filter:
    drop-shadow(0 0.5px 0 rgba(4, 9, 18, 0.5))
    drop-shadow(0 1px 0.5px rgba(4, 9, 18, 0.4))
    drop-shadow(0 1.5px 1px rgba(4, 9, 18, 0.3))
    drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
}

.hero-anim--mark {
  animation: markReveal 1.1s cubic-bezier(.16,.8,.24,1) 0.5s forwards;
}

@keyframes markReveal {
  from { opacity: 0; transform: scale(0.8) translateY(10px); filter: blur(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

.wordmark {
  font-size: 2.4rem;
  color: var(--ivory);
  margin-bottom: 0.9rem;
  font-weight: 400;
}

.wordmark-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.3rem;
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.wordmark-rule {
  width: 44px;
  height: 1px;
  background: var(--muted-dim);
}

.hero-anim--wordmark {
  display: inline-block;
  letter-spacing: 0.9em;
  animation: trackInWordmark 1.2s cubic-bezier(.16,.8,.24,1) 0.85s forwards;
}

@keyframes trackInWordmark {
  from { opacity: 0; letter-spacing: 0.9em; }
  to { opacity: 1; letter-spacing: 0.38em; }
}

.hero-anim--wordmark-sub {
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(.16,.8,.24,1) 1.05s forwards;
}

.wordmark-sub span:not(.wordmark-rule) {
  display: inline-block;
  letter-spacing: 0.28em;
}

.tagline {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.4rem;
  font-weight: 500;
}

.tagline .dot { color: var(--muted-dim); margin: 0 0.2em; }

.hero-anim--tagline {
  display: inline-block;
  transform: translateY(14px);
  animation: fadeUp 0.9s cubic-bezier(.16,.8,.24,1) 1.3s forwards;
}

.hero-heading {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 1.06;
  color: var(--ivory);
  margin-bottom: 1.5rem;
}

.hero-heading em {
  font-style: italic;
  color: var(--gold-bright);
}

.line-mask {
  display: block;
  overflow: hidden;
}

.hero-anim--line1,
.hero-anim--line2 {
  display: block;
  transform: translateY(115%);
  animation: lineReveal 1s cubic-bezier(.16,.8,.24,1) forwards;
}

.hero-anim--line1 { animation-delay: 1.3s; }
.hero-anim--line2 { animation-delay: 1.5s; }

@keyframes lineReveal {
  from { opacity: 0; transform: translateY(115%); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 3.2rem;
}

.hero-anim--sub {
  display: block;
  transform: translateY(14px);
  animation: fadeUp 0.9s cubic-bezier(.16,.8,.24,1) 1.9s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.service-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0;
  padding: 1.6rem 0;
  margin-bottom: 3.4rem;
  position: relative;
}

.hero-anim--services {
  transform: translateY(14px);
  animation: fadeUp 0.9s cubic-bezier(.16,.8,.24,1) 2.15s forwards;
}

.service-list li {
  border-right: 1px solid var(--navy-line);
}

.service-list li:last-child { border-right: none; }

.service-list a {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.5rem 1.6rem;
  transition: color 0.3s var(--ease);
}

.service-list a:hover { color: var(--gold-bright); }
.service-list a:hover .svc-index { color: var(--gold-bright); }

.svc-index {
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.svc-name {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
}

.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-dim);
  transition: color 0.3s var(--ease);
}

.hero-anim--scroll {
  animation: fadeUp 0.9s cubic-bezier(.16,.8,.24,1) 2.5s forwards;
}

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

.scroll-line {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50% { transform: scaleY(1.3); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo img { animation: none; opacity: 0.62; transform: scale(1); }
  .hero-shine { animation: none; display: none; }
  .hero-anim, .hero-anim--mark, .hero-anim--wordmark, .hero-anim--wordmark-sub, .hero-anim--tagline,
  .hero-anim--line1, .hero-anim--line2, .hero-anim--sub, .hero-anim--services, .hero-anim--scroll {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-anim--wordmark { letter-spacing: 0.38em; }
  .service-list::before { animation: none; width: 100%; }
}

@media (max-width: 760px) {
  .hero-scene { perspective: none; }
}

/* ---------------- Section reveal ---------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- About ---------------- */

.about {
  background: var(--navy);
  border-top: 1px solid var(--navy-line);
}

.intro {
  background: var(--navy);
  border-top: 1px solid var(--navy-line);
  text-align: center;
}

.intro-inner {
  max-width: 700px;
  margin: 0 auto;
}

.intro-inner .eyebrow,
.intro-inner .lede {
  margin-left: auto;
  margin-right: auto;
}

.intro-inner h2 {
  max-width: none;
}

.intro-links {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  margin-top: 2.4rem;
  flex-wrap: wrap;
}

.intro-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.35s var(--ease), background 0.35s var(--ease);
}

.intro-link span { transition: transform 0.35s var(--ease); }

.intro-link:hover {
  background: var(--gold);
  color: var(--navy-deep);
}

.intro-link:hover span { transform: translateX(3px); }

.intro-link--ghost {
  border-color: var(--navy-line);
  color: var(--muted);
}

.intro-link--ghost:hover {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold-bright);
}

.meetup-photo {
  width: 100%;
  max-width: 700px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 30%;
  border: 1px solid rgba(201,162,75,0.25);
  margin: 3rem auto 0;
  display: block;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--navy-line);
}

.pillar-num {
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.pillar h3 {
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
  color: var(--ivory);
}

.pillar p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 32ch;
}

/* ---------------- Strategic Partners ---------------- */

.partner-spotlight {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 4rem;
}

.partner-spotlight--reverse .partner-visual { order: 2; }

.partner-visual {
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(201,162,75,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.partner-visual--easycap { background: var(--ivory); }

.partner-visual--easycap img { max-width: 68%; height: auto; }

.partner-visual img { max-width: 60%; height: auto; }

.partner-visual--stm {
  background-image:
    linear-gradient(180deg, rgba(2,10,7,0.15) 0%, rgba(2,10,7,0.55) 100%),
    url('assets/photos/swedish-tech-mafia-aurora.jpg');
  background-size: cover;
  background-position: center;
}

.raalc-wordmark {
  text-align: center;
}

.raalc-wordmark .raalc-name {
  display: block;
  font-family: var(--serif);
  font-size: 2.4rem;
  letter-spacing: 0.1em;
  color: var(--gold-bright);
  line-height: 1;
}

.raalc-wordmark .raalc-sub {
  display: block;
  margin-top: 0.8rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

.raalc-chip {
  text-align: center;
  line-height: 1.1;
}

.raalc-chip .raalc-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: var(--navy-deep);
}

.raalc-chip .raalc-sub {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--sans);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy-soft);
}

.stm-wordmark {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  color: #fff;
  text-align: center;
  font-size: 2.6rem;
  letter-spacing: 0.01em;
  line-height: 1.05;
  text-transform: uppercase;
}

.partner-text h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--ivory);
  margin-bottom: 0.9rem;
}

.partner-text p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--muted);
}

.partner-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--navy-line);
  flex-wrap: wrap;
}

.partner-stats div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.partner-stats strong {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--gold-bright);
  font-weight: 600;
}

.partner-stats span {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.partner-quote {
  margin-top: 1.6rem;
  padding-left: 1.2rem;
  border-left: 2px solid var(--gold);
}

.partner-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ivory);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.partner-quote cite {
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--muted-dim);
}

/* ---------------- CEO ---------------- */

.ceo {
  background: var(--navy-deep);
  border-top: 1px solid var(--navy-line);
}

.ceo-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 5rem;
  align-items: center;
}

.photo-frame {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--navy-line);
  background: linear-gradient(160deg, var(--navy-soft), var(--navy-deep));
  position: relative;
  overflow: hidden;
}

.photo-frame::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(201,162,75,0.25);
  z-index: 2;
  pointer-events: none;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.03);
}

blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.55;
  color: var(--ivory);
  max-width: 46ch;
  position: relative;
  padding-left: 1.6rem;
  border-left: 2px solid var(--gold);
  margin-bottom: 2.2rem;
}

blockquote p { margin-bottom: 1.7rem; }
blockquote p:last-child { margin-bottom: 0; }

.sig-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

.sig-image {
  height: 46px;
  width: auto;
  max-width: 40%;
  opacity: 0.9;
  flex-shrink: 0;
}

.signature {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ivory);
  margin-bottom: 0.2rem;
  white-space: nowrap;
}

.sig-title {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dim);
  white-space: nowrap;
}

/* ---------------- Banks / Institutions logo strips ---------------- */

.banks {
  background: var(--navy);
  border-top: 1px solid var(--navy-line);
  text-align: center;
}

.banks h2, .banks .eyebrow { text-align: center; margin-left: auto; margin-right: auto; }

.logo-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-top: 3.5rem;
}

.logo-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  background: var(--ivory);
  border: 1px solid var(--navy-line);
  padding: 1.1rem 1.2rem;
  height: 64px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.logo-chip img {
  max-height: 30px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.logo-chip--dark {
  background: var(--navy-deep);
  border-color: rgba(201,162,75,0.3);
}

.logo-chip--dark img { max-height: 38px; }

.lgt-logo {
  width: 100%;
  max-width: 150px;
  height: auto;
}

.omniyat-logo {
  width: 100%;
  max-width: 140px;
  height: auto;
}

.logo-chip:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
}

/* ---------------- Institutions ---------------- */

.institutions {
  background: var(--navy-deep);
  border-top: 1px solid var(--navy-line);
}

.inst-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 5rem;
  align-items: start;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  min-width: 0;
}

.logo-grid .logo-chip {
  height: 56px;
  padding: 0.9rem 1.3rem;
}

.logo-grid .logo-chip img {
  max-height: 24px;
  max-width: 120px;
}

/* ---------------- Rothschild highlight ---------------- */

.rothschild {
  background:
    radial-gradient(ellipse 90% 140% at 50% 50%, rgba(201,162,75,0.12), transparent 65%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-top: 1px solid var(--navy-line);
  border-bottom: 1px solid var(--navy-line);
  position: relative;
}

.rothschild-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4.5rem;
  align-items: center;
}

.rothschild-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: start;
}

.rp-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(201,162,75,0.25);
}

.rp-photo--tall { aspect-ratio: 3 / 4; }

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

.founder-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(201,162,75,0.25);
  aspect-ratio: 4 / 3;
}

.founder-photo--tall {
  grid-row: span 2;
  aspect-ratio: 3 / 4;
}

.founder-gallery img:nth-child(4) {
  grid-column: span 2;
  aspect-ratio: 21 / 9;
}

.rothschild h2 {
  color: var(--ivory);
  margin-bottom: 1.8rem;
}

.rothschild-copy {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--muted);
  font-weight: 400;
  max-width: 46ch;
}

/* ---------------- Contact ---------------- */

.contact {
  background: var(--navy);
  border-top: 1px solid var(--navy-line);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
}

.contact-people {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.contact-person {
  padding: 1.6rem 0;
  border-top: 1px solid var(--navy-line);
}

.cp-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ivory);
  margin-bottom: 0.2rem;
}

.cp-role {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.cp-phone {
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.3s var(--ease);
  display: inline-block;
}

.cp-phone:hover { color: var(--gold-bright); }

.cp-email {
  font-size: 0.88rem;
  color: var(--muted-dim);
  letter-spacing: 0.01em;
  transition: color 0.3s var(--ease);
  display: block;
  margin-top: 0.3rem;
}

.cp-email:hover { color: var(--gold-bright); }

.contact-form {
  background: var(--navy-soft);
  border: 1px solid var(--navy-line);
  padding: 3rem;
}

.form-row {
  margin-bottom: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-row label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.form-row input,
.form-row textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--navy-line);
  padding: 0.7rem 0.1rem;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 400;
  transition: border-color 0.3s var(--ease);
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--muted-dim);
}

.submit-btn {
  margin-top: 0.6rem;
  width: 100%;
  padding: 1rem 1.6rem;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.4s var(--ease);
}

.submit-btn span { position: relative; z-index: 2; }

.submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
  z-index: 1;
}

.submit-btn:hover {
  color: var(--navy-deep);
}

.submit-btn:hover::before {
  transform: scaleX(1);
}

.form-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--gold-bright);
  min-height: 1.2em;
}

.newsletter-form {
  max-width: 480px;
  margin: 2.6rem auto 0;
}

.newsletter-form .form-note { text-align: center; }

.newsletter-row {
  display: flex;
  gap: 0.9rem;
  align-items: stretch;
}

.newsletter-row input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--navy-line);
  padding: 0.9rem 0.1rem;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 400;
  transition: border-color 0.3s var(--ease);
}

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

.newsletter-row input::placeholder {
  color: var(--muted-dim);
}

.newsletter-btn {
  width: auto;
  margin-top: 0;
  padding: 0 1.6rem;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .newsletter-row { flex-direction: column; }
  .newsletter-btn { width: 100%; padding: 1rem 1.6rem; }
}

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--navy-line);
  padding: 3.5rem 2.5rem 3rem;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.6rem;
  margin: 0.4rem 0;
}

.footer-nav a {
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

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

.footer-social {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  margin: 0.4rem 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--navy-line);
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.social-link:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.footer-tagline {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-copy {
  font-size: 0.76rem;
  color: var(--muted-dim);
  margin-top: 1rem;
}

.footer-email {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.3s var(--ease);
}

.footer-email:hover { color: var(--gold-bright); }

.footer-legal {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.footer-legal a {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--muted-dim);
  transition: color 0.3s var(--ease);
}

.footer-legal a:hover { color: var(--gold-bright); }

.footer-legal span {
  font-size: 0.72rem;
  color: var(--muted-dim);
}

.track-list {
  margin: 2.6rem 0 0.5rem;
}

.track-item {
  padding: 1.6rem 0;
  border-top: 1px solid var(--navy-line);
}

.track-item:last-child {
  border-bottom: 1px solid var(--navy-line);
}

.track-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.track-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 62ch;
}

.legal-content {
  max-width: 720px;
}

.legal-content h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ivory);
  margin-top: 2.4rem;
  margin-bottom: 0.8rem;
}

.legal-content > p:not([class]) {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--muted);
}

.legal-link {
  color: var(--gold-bright);
  border-bottom: 1px solid rgba(226,145,79,0.4);
}

.legal-updated {
  margin-top: 2.8rem;
  font-size: 0.78rem;
  color: var(--muted-dim);
}

/* ---------------- Grid overflow safeguard ----------------
   Grid items default to min-width:auto, which lets wide content (images,
   fixed-width chips) force the track wider than its container, breaking
   symmetric centering. min-width:0 lets tracks shrink to fit as intended. */
.pillars > *,
.partner-spotlight > *,
.ceo-grid > *,
.logo-row > *,
.inst-grid > *,
.logo-grid > *,
.rothschild-grid > *,
.rothschild-photos > *,
.founder-gallery > *,
.contact-grid > * {
  min-width: 0;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 980px) {
  .ceo-grid { grid-template-columns: 1fr; gap: 3rem; }
  .photo-frame { max-width: 420px; margin: 0 auto; }
  .inst-grid { grid-template-columns: 1fr; gap: 3rem; }
  .inst-text { text-align: center; }
  .inst-text .lede { margin-left: auto; margin-right: auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .pillars { grid-template-columns: 1fr; gap: 2.4rem; }
  .rothschild-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .rothschild-photos { max-width: 420px; margin: 0 auto; }
  .founder-gallery { grid-template-columns: 1fr 1fr; }
  .founder-photo--tall { grid-row: span 2; }
  .logo-row { grid-template-columns: repeat(3, 1fr); }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-spotlight,
  .partner-spotlight--reverse { grid-template-columns: 1fr; gap: 1.6rem; }
  .partner-spotlight--reverse .partner-visual { order: 0; }
  .partner-visual { max-width: 420px; margin: 0 auto; width: 100%; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--navy-deep);
    border-left: 1px solid var(--navy-line);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem 3rem;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    z-index: 105;
  }

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

  .main-nav a { font-size: 1rem; }

  .nav-toggle { display: flex; }

  .nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .section-inner { padding: 4.5rem 1.5rem; }

  .service-list { flex-direction: column; gap: 0.6rem; }
  .service-list li { border-right: none; width: 100%; justify-content: center; }

  .contact-form { padding: 2rem 1.6rem; }

  .logo-row { grid-template-columns: repeat(2, 1fr); }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-row .logo-chip,
  .logo-grid .logo-chip { padding: 0.9rem 0.8rem; }
  .logo-row .logo-chip img,
  .logo-grid .logo-chip img { max-height: 24px; max-width: 100px; }

  .hero-inner { padding: 8.5rem 2rem 2rem; }
  .mark-3d { width: 54px; }
  .hero-mark { margin-bottom: 0.8rem; }
  .wordmark { font-size: 1.5rem; margin-bottom: 0.6rem; }
  .wordmark-sub { font-size: 0.68rem; gap: 0.7rem; margin-bottom: 1rem; }
  .wordmark-rule { width: 24px; }
  .tagline { margin-bottom: 1.6rem; }
}

@media (max-width: 480px) {
  .hero-heading { font-size: 2.4rem; }
  h2 { max-width: none; }
  .sig-row { gap: 0.7rem; }
  .signature { font-size: 0.95rem; }
  .sig-title { font-size: 0.62rem; letter-spacing: 0.04em; }
  .sig-image { height: 32px; }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .scroll-line { animation: none; }
}
