/* =========================================================================
   Simonis Storm — v3 "Prelude"
   Elevated typography, immersive dark photographic stages with light header,
   Prelude opening with the drawn SS monogram and a vertical index,
   site-wide tools drawer, editorial tabs.
   ========================================================================= */

:root {
  /* Typography: refined classic serif for display, geometric sans for text & UI */
  --serif: "Times New Roman", Times, "Liberation Serif", serif;      /* CI typeface (switched from Cormorant Garamond, 1 Dec 2026) */
  --sans: Arial, "Helvetica Neue", Helvetica, "Liberation Sans", sans-serif;   /* CI typeface (switched from Jost) */
  --h1: clamp(3rem, 1.6rem + 5.2vw, 6rem);
  --h2: clamp(2.5rem, 1.6rem + 3.4vw, 4.4rem);
  --h3: clamp(1.6rem, 1.35rem + .8vw, 2rem);
  --body: clamp(1.02rem, .98rem + .15vw, 1.1rem);
  --body-lg: clamp(1.15rem, 1.02rem + .45vw, 1.4rem);
  --display: clamp(3.6rem, 1.6rem + 7vw, 8.6rem);
  --ink: #0F1A26;          /* deeper navy for immersive stages */
}
body { font-weight: 400; letter-spacing: .005em; }
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -.01em; }
h1 em, h2 em, h3 em, .accent { font-weight: 400; }
.lead { font-weight: 300; letter-spacing: 0; }
.eyebrow, .stat__label, .footer-col h4, .field label, .card__meta, .crew__p .dept { font-family: var(--sans); font-weight: 500; letter-spacing: .22em; font-size: .72rem; }
.btn { font-family: var(--sans); font-weight: 500; letter-spacing: .06em; font-size: .9rem; text-transform: uppercase; padding: 19px 34px; border-radius: 0; }
.nav .btn { padding: 13px 24px; font-size: .8rem; }
.btn-note, .tagline { font-family: var(--serif); font-size: 1.25rem; }
.nav__link { font-family: var(--sans); font-size: .88rem; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; }
.link { font-family: var(--sans); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
.stat__num { font-weight: 400; }
.cinema__count, .feature__num, .showcase__item .num, .hpanel .num { font-family: var(--serif); }
.small, .person__role, .crew__p .role { font-family: var(--sans); }
.crew__p h3 { font-size: 1.6rem; font-weight: 500; }
.crew__p .role { font-size: .88rem; letter-spacing: .02em; }
.hover-list .row .t { font-weight: 500; }
.mega__list a { font-weight: 500; font-size: 1.7rem; }
.statement p { font-weight: 400; font-size: clamp(2.1rem, 1.1rem + 3.2vw, 4.1rem); line-height: 1.12; }
.showcase__item h3 { font-size: clamp(2.6rem, 1.6rem + 2.8vw, 4.2rem); }
.tool__result .big { font-weight: 400; }

/* ---------- Header: navy on light, logo swap kept for future dark stages ---------- */
.brand img { display: block; }
.brand .brand--light { display: none; }

/* ---------- Page heroes: light, photo-led ---------- */
.hero { background: var(--neutral-2); }
.hero__media::after { background: linear-gradient(90deg, rgba(249,247,246,.96) 0%, rgba(249,247,246,.9) 42%, rgba(249,247,246,.55) 62%, rgba(249,247,246,0) 82%) !important; }
.hero h1 em { color: var(--gold-dark); }
.hero--page { min-height: min(78svh, 760px); }
@media (max-width: 767px) { .hero__media::after { background: linear-gradient(0deg, rgba(249,247,246,.96) 0%, rgba(249,247,246,.8) 45%, rgba(249,247,246,.1) 78%) !important; } }

/* =========================================================================
   Prelude — the home opening (light, calm)
   ========================================================================= */
.prelude { position: relative; height: 100svh; min-height: 680px; overflow: hidden; background: var(--neutral); color: var(--navy); isolation: isolate; }
.prelude__bg { position: absolute; inset: 0; z-index: -3; }
.prelude__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; scale: 1.14; transform-origin: 0 100%; transition: opacity 1.6s var(--ease-out), scale 7s var(--ease-out); }
.prelude__bg img.is-on { opacity: 1; scale: 1.1; }
.prelude__shade { position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(90deg, rgba(249,247,246,.97) 0%, rgba(249,247,246,.93) 38%, rgba(249,247,246,.6) 58%, rgba(249,247,246,0) 78%); }

/* the drawn monogram */
.prelude__markwrap { position: absolute; inset: 0; z-index: -1; transition: transform 1.2s var(--ease-out); pointer-events: none; }
.prelude__mark { position: absolute; right: -22vw; top: 50%; height: 122vh; width: auto; translate: 0 -50%; overflow: visible; }
.prelude__mark path { fill: none; stroke: #A08F73; stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .85; }
.prelude__mark .glow { display: none; }
.is-ready .prelude__mark path { animation: draw 4.2s .3s cubic-bezier(.65,0,.35,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.prelude__grid { height: 100%; display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: center; padding-top: var(--header-h); padding-bottom: 80px; }
.prelude__index { list-style: none; }
.prelude__index li a { display: flex; align-items: center; gap: 14px; padding: 8px 0; color: var(--text-soft); text-decoration: none; font-family: var(--sans); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; transition: color .35s var(--ease); }
.prelude__index li a::before { content: ""; width: 14px; height: 1px; background: rgba(26,40,55,.3); transition: width .55s var(--ease-out), background .35s; flex: none; }
.prelude__index li a:hover, .prelude__index li a:focus-visible, .prelude__index li a.is-on { color: var(--navy); }
.prelude__index li a:hover::before, .prelude__index li a:focus-visible::before, .prelude__index li a.is-on::before { width: 36px; background: var(--gold); }

.prelude__copy { max-width: 760px; }
.prelude__copy h1 { color: var(--navy); font-size: var(--display); line-height: .95; letter-spacing: -.02em; font-weight: 500; }
.prelude__copy h1 em { color: var(--gold-dark); font-weight: 400; }
.prelude__copy .lead { color: var(--navy); max-width: 500px; margin-top: 30px; }
.prelude__copy .btn-row { margin-top: 40px; }
.prelude__topic { margin-top: 30px; height: 1.6em; font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--gold-dark); overflow: hidden; }
.prelude__topic span { display: block; transition: transform .6s var(--ease-out), opacity .4s; }
.prelude__foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding-bottom: 28px; }
.prelude__foot .container { display: flex; justify-content: flex-end; }

@media (max-width: 1079px) {
  .prelude__grid { grid-template-columns: 1fr; align-content: end; padding-bottom: 110px; }
  .prelude__index { display: none; }
  .prelude__mark { right: -45vw; height: 100vh; opacity: .6; }
}
@media (max-width: 767px) {
  .prelude__shade { background: linear-gradient(0deg, rgba(249,247,246,.97) 0%, rgba(249,247,246,.88) 48%, rgba(249,247,246,.15) 80%); }
  .prelude__copy h1 { font-size: clamp(3rem, 12.5vw, 4.2rem); }
  .prelude__foot { display: none; }
}

/* =========================================================================
   Tools drawer (site-wide, light)
   ========================================================================= */
.tools-pill {
  position: fixed; right: 24px; bottom: 80px; z-index: 60;   /* sits above the "Powered by Netlify" badge */
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
  color: #fff; background: var(--navy); border: 0; border-radius: 100px; padding: 15px 22px; cursor: pointer;
  box-shadow: 0 18px 40px -18px rgba(15,26,38,.45); transition: transform .5s var(--ease-out), background .3s;
}
.tools-pill:hover { transform: translateY(-2px); background: var(--navy-80); }
.tools-pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.tools {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 120; width: min(440px, 100vw);
  background: #fff; color: var(--navy); padding: 32px 38px 38px; display: flex; flex-direction: column;
  box-shadow: -30px 0 60px -30px rgba(15,26,38,.25);
  transform: translateX(104%); transition: transform .8s var(--ease-in-out);
}
.tools-open .tools { transform: none; }
.tools-scrim { position: fixed; inset: 0; z-index: 110; background: rgba(249,247,246,.6); opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; backdrop-filter: blur(3px); }
.tools-open .tools-scrim { opacity: 1; visibility: visible; }
.tools__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; }
.tools__head .eyebrow { margin: 0; }
.tools__close { background: none; border: 1px solid var(--line); color: var(--navy); width: 44px; height: 44px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; transition: border-color .3s, transform .5s var(--ease-out); }
.tools__close:hover { border-color: var(--gold); transform: rotate(90deg); }
.tools__list { list-style: none; border-top: 1px solid var(--line); }
.tools__list a { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--navy); text-decoration: none; transition: padding .5s var(--ease-out); }
.tools__list .n { font-family: var(--serif); font-style: italic; color: var(--gold-dark); font-size: 1.1rem; }
.tools__list b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.6rem; line-height: 1.1; }
.tools__list small { display: block; font-family: var(--sans); font-size: .82rem; color: var(--text-soft); margin-top: 5px; }
.tools__list i { font-style: normal; color: var(--gold); transition: transform .4s var(--ease-out); }
.tools__list a:hover { padding-left: 8px; }
.tools__list a:hover i { transform: translateX(4px); }
.tools-open .tools__list li { animation: toolIn .8s var(--ease-out) both; }
.tools-open .tools__list li:nth-child(2) { animation-delay: .06s; } .tools-open .tools__list li:nth-child(3) { animation-delay: .12s; }
.tools-open .tools__list li:nth-child(4) { animation-delay: .18s; } .tools-open .tools__list li:nth-child(5) { animation-delay: .24s; }
@keyframes toolIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
.tools__foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 30px; }
.tools__foot a { color: var(--text-soft); text-decoration: none; font-size: .95rem; }
.tools__foot a:hover { color: var(--navy); }
.preview-flag { left: 16px; right: auto; }
@media (max-width: 599px) { .tools-pill { right: 16px; bottom: 72px; padding: 13px 18px; } .tools { padding: 26px 24px; } }

/* Navigator invite (home) */
.invite { text-align: center; }
.invite h2 { max-width: 16em; margin: 0 auto; }
.invite p { color: var(--text-soft); max-width: 560px; margin: 22px auto 0; }
.invite .btn-row { justify-content: center; }
.invite__faces { display: flex; justify-content: center; margin-top: 44px; }
.invite__faces img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--neutral); margin-left: -12px; }
.invite__faces img:first-child { margin-left: 0; }

/* =========================================================================
   Editorial tabs (team)
   ========================================================================= */
.tabs { display: flex; flex-wrap: wrap; gap: 0 38px; border-bottom: 1px solid var(--line); margin-bottom: var(--s-md); }
.tabs button { position: relative; background: none !important; border: 0 !important; border-radius: 0 !important; padding: 18px 0 !important; color: var(--text-soft) !important;
  font-family: var(--serif) !important; font-size: 1.45rem !important; font-weight: 500; letter-spacing: 0; cursor: pointer; transition: color .3s; }
.tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.tabs button:hover { color: var(--navy) !important; }
.tabs button[aria-pressed="true"] { color: var(--navy) !important; }
.tabs button[aria-pressed="true"]::after { transform: none; }
@media (max-width: 767px) {
  .tabs { flex-wrap: nowrap; overflow-x: auto; gap: 26px; scrollbar-width: none; margin-left: calc(var(--margin) * -1); margin-right: calc(var(--margin) * -1); padding: 0 var(--margin); }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { white-space: nowrap; font-size: 1.25rem !important; }
}
.crew__p .dept { display: none; }
.crew { min-height: 380px; }

/* Mega menus — identical for every section */
.mega__intro h3 { font-size: 2.3rem; font-weight: 500; }
.mega__intro h3 em { color: var(--gold-dark); }
.mega__intro p { font-family: var(--sans); }

/* Wealth projection tool — light */
.tool { background: var(--neutral); color: var(--navy); }
.tool h2 { color: var(--navy); }
.tool .eyebrow { color: var(--gold-dark); }
.tool .section-head p { color: var(--text-soft) !important; }
.ctrl label { color: var(--text-soft); }
.ctrl output { color: var(--navy); }
.ctrl input[type=range]::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--gold) var(--p, 50%), var(--line) var(--p, 50%)); }
.ctrl input[type=range]::-moz-range-track { background: var(--line); }
.seg { border-color: var(--line); background: #fff; }
.seg button { color: var(--text-soft); }
.tool__result .big { color: var(--navy); }
.tool__result .lbl { color: var(--gold-dark); }
.tool__result .sub { color: var(--navy-80); }
.tool__chart .grid line { stroke: var(--line); }
.tool__chart .axis text { fill: var(--text-soft); }
.tool__chart .contrib { stroke: rgba(26,40,55,.45); }
.tool__legend { color: var(--text-soft); }
.tool__legend i.d { border-top-color: rgba(26,40,55,.5); }
.tool__note { color: var(--text-soft); }

/* Home: the side index is the navigation; top links appear only after the opening */
@media (min-width: 1080px) {
  .is-home .nav__list { transition: opacity .6s var(--ease-out), transform .6s var(--ease-out), visibility .6s; }
  .is-home:not(.past-prelude) .nav__list { opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none; }
  .is-home:not(.past-prelude) .site-header { background: transparent; box-shadow: none; }
}
.prelude__index li a { padding: 9px 0; font-size: .76rem; }

/* Mobile menu hierarchy: main items large serif, sub-items small sans */
@media (max-width: 1079px) {
  .nav .nav__link { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--navy); }
  .nav .mega__list a { font-family: var(--sans); font-size: 1rem; font-weight: 400; color: var(--text-soft); padding: 9px 0 9px 2px; }
  .nav .mega__list li:first-child a { padding-top: 2px; }
}
/* Tools pill stays visible on the navy footer */
.tools-pill { box-shadow: 0 0 0 1px rgba(255,255,255,.22), 0 18px 40px -18px rgba(15,26,38,.45); }

/* =========================================================================
   Side menu ("rail") — the main navigation on desktop, on every page.
   Top bar: logo + Contact Us only. Phones/tablets (< 1080px): burger menu.
   ========================================================================= */
:root { --rail: 264px; }
.rail { display: none; }
@media (min-width: 1080px) {
  .rail { display: flex; align-items: center; position: fixed; z-index: 45; left: 0; top: 0; bottom: 0; width: var(--rail);
    padding: var(--header-h) 18px 48px 40px; background: var(--neutral); border-right: 1px solid var(--line); }
  .rail__list { list-style: none; }
  .rail__list a { display: flex; align-items: center; gap: 14px; padding: 9px 0; color: var(--text-soft); text-decoration: none;
    font-family: var(--sans); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1.35; white-space: nowrap; transition: color .35s var(--ease); }
  .rail__list a::before { content: ""; width: 14px; height: 1px; background: rgba(26,40,55,.3); flex: none; transition: width .55s var(--ease-out), background .35s; }
  .rail__list a:hover, .rail__list a:focus-visible, .rail__list a.is-on, .rail__list a.is-current { color: var(--navy); }
  .rail__list a:hover::before, .rail__list a:focus-visible::before, .rail__list a.is-on::before, .rail__list a.is-current::before { width: 34px; background: var(--gold); }
  .rail__list a.ext::after { content: "\2197"; font-size: .9em; opacity: .55; }

  /* page content sits to the right of the rail */
  body.has-rail main, body.has-rail .site-footer { margin-left: var(--rail); }
  /* top bar: logo over the rail, Contact Us on the right, no link list */
  .nav__list { display: none !important; }
  .site-header .container { max-width: none; padding-left: 40px; }
  .tabs { gap: 0 20px; }
  .tabs button { font-size: 1.02rem !important; }   /* Times New Roman runs wider: keeps all 7 tabs on one line */
  .site-header::before { display: none; }
  body.has-rail .site-header { background: rgba(255,255,255,0); }
  body.has-rail.is-scrolled .site-header { background: rgba(255,255,255,.97); box-shadow: 0 1px 0 var(--line); }
  .header-hidden .site-header { transform: translateY(-105%); }
  .prelude__grid { grid-template-columns: 1fr; }
}

/* People grids: column count set by JS (--cols) so rows stay balanced, e.g. 3 + 3 instead of 5 + 1 */
.crew, .leaders { display: grid !important; grid-template-columns: repeat(var(--cols, 5), minmax(0, 230px)); gap: 56px 28px; justify-content: center; }
.leaders { justify-content: center; }
.crew.is-odd-last .crew__p:not(.is-hidden):last-of-type, .leaders.is-odd-last .crew__p:last-child { grid-column: 1 / -1; justify-self: center; width: 50%; }

/* One button shape everywhere: rounded, like the Explore Our Tools pill */
.btn, .nav .btn, .tools-pill, .navi .btn { border-radius: 100px !important; }

/* =========================================================================
   Consultation contact (Sameer Issa): Contact page + Wealth Navigator result
   ========================================================================= */
.concierge { display: flex; gap: 28px; align-items: flex-start; }
.concierge img { width: 112px; height: 112px; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--gold); }
.concierge h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 400; margin: 10px 0 2px; color: var(--navy); }
.concierge__role { font-family: var(--sans); font-size: .9rem; color: var(--gold-dark); margin: 0 0 12px; }
.concierge--page { padding: 32px; background: var(--neutral); border-top: 2px solid var(--gold); }
.concierge--page .btn-row { margin-top: 22px; }
.concierge--page .btn { white-space: nowrap; }
#consultation { scroll-margin-top: 130px; }
.concierge--navi { align-items: center; gap: 16px; padding: 16px 0; margin: 4px 0 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.concierge--navi img { width: 56px; height: 56px; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--gold); }
.concierge--navi small { display: block; font-size: .78rem; color: var(--text-soft); }
.concierge--navi b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.25rem; color: var(--navy); }
.concierge--navi small + b + small { color: var(--gold-dark); }
@media (max-width: 539px) {
  .concierge--page { flex-direction: column; padding: 26px 22px; }
  .concierge--page img { width: 96px; height: 96px; }
}

.concierge[hidden] { display: none; }

/* Contact page: private consultation team (Bruce, Heiko, Sameer) */
.consult-team { padding: 34px 32px 32px; background: var(--neutral); border-top: 2px solid var(--gold); scroll-margin-top: 130px; }
.consult-team > p { margin: 12px 0 0; }
.consult-team__people { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 18px; text-align: center; }
.consult-team__people img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 12px; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--gold); }
.consult-team__people b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.2rem; color: var(--navy); line-height: 1.2; }
.consult-team__people small { display: block; font-family: var(--sans); font-size: .8rem; color: var(--gold-dark); margin-top: 4px; }
.consult-team .btn-row { margin-top: 28px; }
.consult-team .btn { white-space: nowrap; }
@media (max-width: 539px) {
  .consult-team { padding: 28px 20px; }
  .consult-team__people { gap: 10px; }
  .consult-team__people img { width: 76px; height: 76px; }
  .consult-team__people b { font-size: 1.02rem; }
}

/* Contact page: Windhoek and Swakopmund maps side by side */
.maps { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.maps__item { margin: 0; background: #fff; }
.maps__item .map { aspect-ratio: 4 / 3; }
.maps__item figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 18px 24px 22px; font-family: var(--sans); font-size: .9rem; color: var(--text-soft); }
.maps__item figcaption b { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; color: var(--navy); }
.maps__item figcaption a { margin-left: auto; color: var(--gold-dark); text-decoration: none; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.maps__item figcaption a:hover { color: var(--navy); }
@media (max-width: 767px) { .maps { grid-template-columns: 1fr; } .maps__item .map { aspect-ratio: 16 / 11; } }

/* Maps as two framed cards with breathing room between them */
.maps { gap: 28px; padding: 40px clamp(20px, 4vw, 56px) 56px; background: var(--neutral); }
.maps__item { padding: 12px; border: 1px solid var(--line); box-shadow: 0 24px 48px -36px rgba(26,40,55,.45); }
.maps__item .map { width: 100%; }
.maps__item figcaption { padding: 18px 10px 8px; }
@media (max-width: 767px) { .maps { gap: 20px; padding: 28px 16px 40px; } }
