/* ── Base styles — fonts, reset, variables, nav, footer, shared components, utilities ── */

/* ── AEONIK — Amperesand Brand Font ── */
@font-face {
  font-family: 'Aeonik';
  src: url('../fonts/Aeonik-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Aeonik';
  src: url('../fonts/Aeonik-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Aeonik';
  src: url('../fonts/Aeonik-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #b7965d;
  --nav-bg: #102027;
  --white: #F8FAFC;
  --dark: #060A12;
  --border: rgba(255,255,255,0.07);
  --page-max: 1320px;
  --pad-x: clamp(20px, 3.5vw, 56px);
  --edge-pad: clamp(24px, 4vw, 72px);
  --cream: #e9e5e2;
  --gold-dark: #6b5a36;
  --teal: #0c1a20;
  --gold-hover: #c9a96e;
  --charcoal: #1a1a1a;
  --deep: #0c1218;
  --warm-white: #F0EDE8;
  --gray: #6a6a6a;
  /* Image corner-radius tokens — use these for all photo/video media so
     the site stays consistent. --radius-img for cards/portraits/standard
     imagery; --radius-img-lg for cinematic/feature media. */
  --radius-img: 8px;
  --radius-img-lg: 12px;
}

html {
  scroll-behavior: smooth;
  /* Match body background so any area iOS Safari renders outside the
     body (e.g. behind rounded screen corners with viewport-fit=cover,
     or under the URL bar during scroll) reads as page background
     instead of a light system color. */
  background: var(--dark);
}

body {
  font-family: 'Aeonik', Arial, 'Helvetica Neue', Helvetica, sans-serif;
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
}

/* ── Shared entrance animation ── */
@keyframes chFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.gold { color: var(--gold); }

/* ── Skip-to-content link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  background: var(--gold);
  color: var(--nav-bg);
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
}

/* ── Screen-reader-only utility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Global focus-visible — keyboard accessibility ── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
/* Dark-on-light contexts: use dark outline */
.mission :focus-visible,
.difference :focus-visible,
.signals :focus-visible,
.careers-listings :focus-visible,
.news-grid-section :focus-visible,
.story :focus-visible,
.contact-section :focus-visible {
  outline-color: var(--nav-bg);
}
/* Buttons with their own backgrounds get a tighter ring */
.btn-primary:focus-visible,
.nav-btn-accent:focus-visible,
.cta-final-primary:focus-visible,
.careers-hero-btn-primary:focus-visible,
.contact-submit:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ── Button arrows ──
   Site-wide CTAs end in a "→". The glyph isn't in Aeonik, so the browser
   substitutes one and draws it at the button's own font-weight — which
   varies (400/500/600) and made arrows look inconsistent between buttons.
   Wrapping each arrow in .btn-arrow pins it to one weight so every arrow
   renders identically regardless of the button it sits in. The margin-left
   also standardizes the gap to the label: most CTAs are display:inline-flex,
   which collapses the literal whitespace before the arrow and crowds it
   against the text. Spacing the arrow here (instead of relying on whitespace
   or per-button `gap`) keeps it consistent across every button. */
.btn-arrow {
  display: inline-block;
  font-weight: 500;
  font-style: normal;
  margin-left: 0.4em;
}

/* ── NAV ──
   Two states, controlled by the .scrolled class:
   - Default (no class): transparent, sits cleanly over hero imagery.
   - .scrolled: solid brand navy, used once the user scrolls past the
     hero or on pages without a hero (contact, news).
   Build-time: pages with @NAV_SCROLLED: true are rendered with the
   .scrolled class baked in. Runtime: mobile-menu.js toggles the
   class on pages that started transparent. */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0;
  background: transparent;
  transition: background 0.3s ease;
  border-bottom: none;
}
nav.scrolled {
  background: #102027;
}

.nav-inner {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  /* max() with env(safe-area-inset-*) keeps the logo + hamburger
     out of the iPhone notch in landscape (viewport-fit=cover makes
     the body extend edge-to-edge, so without this the leading
     element would sit under the notch). On screens without a notch,
     env() resolves to 0 and the design padding wins. */
  padding-left: max(clamp(24px, 3vw, 48px), env(safe-area-inset-left));
  padding-right: max(clamp(24px, 3vw, 48px), env(safe-area-inset-right));
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 24px;
  width: auto;
  display: block;
}

.nav-buttons {
  display: flex;
  gap: clamp(20px, 2.5vw, 40px);
  align-items: center;
}

.nav-btn-outline {
  background: transparent;
  color: var(--cream);
  padding: 0;
  height: 48px;
  display: inline-flex;
  align-items: center;
  border-radius: 0;
  border: none;
  font-size: 17px;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-btn-outline:hover {
  background: transparent;
  color: var(--gold);
  border-color: transparent;
}
.nav-btn-outline.active {
  color: var(--gold);
}
.nav-btn-accent.active {
  background: var(--gold-hover);
}

.nav-btn-accent {
  background: var(--gold);
  color: var(--nav-bg);
  padding: 0 32px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  border-radius: 0;
  border: none;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-btn-accent:hover { background: var(--gold-hover); }

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  width: 36px;
  height: 36px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}
/* Animate to X when open */
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 100px;
  left: 0; right: 0;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 8px var(--pad-x) 12px;
  z-index: 99;
}
.mobile-menu.open { display: block; }

.mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-menu-list li a {
  display: block;
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.mobile-menu-list li:last-child a {
  border-bottom: none;
}
.mobile-menu-list li a:hover {
  color: var(--gold);
}
.mobile-menu-list li a.active {
  color: var(--gold);
}


/* ══════════════════════════════════
   DEDICATED CTA — Apple keynote feel
   ══════════════════════════════════ */
.cta-final-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: clamp(80px, 10vw, 140px) 24px;
}

/* Label — quiet preface */
.cta-final-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(183, 150, 93, 0.45);
  margin-bottom: clamp(18px, 2.2vw, 30px);
}

/* 1. Headline — narrative rhythm with pause between sentences */
.cta-final-headline {
  font-size: clamp(32px, 4.4vw, 64px);
  font-weight: 700;
  color: var(--warm-white);
  line-height: 1.03;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}
.cta-final-line {
  display: block;
}
.cta-final-line + .cta-final-line {
  margin-top: 0.12em;
}

/* Supporting text */
.cta-final-body {
  font-size: clamp(16px, 1.3vw, 20px);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(240, 237, 232, 0.45);
  max-width: 480px;
  margin: 0 auto 24px;
}

/* Buttons */
.cta-final-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}

/* 4. Primary — subtle top-edge inner highlight via gradient */
.cta-final-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #c9a96e 0%, var(--gold) 40%);
  color: #0a1218;
  padding: 15px 44px;
  border-radius: 0;
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: none;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.2s ease;
  box-shadow: 0 2px 20px rgba(183, 150, 93, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.cta-final-primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #d4b87a 0%, #c9a96e 40%);
  box-shadow: 0 4px 32px rgba(183, 150, 93, 0.22),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Staged entrance animation */
.cta-final-label,
.cta-final-headline,
.cta-final-body,
.cta-final-buttons {
  opacity: 0;
  transform: translateY(14px);
  will-change: transform, opacity;
}
@media (prefers-reduced-motion: reduce) {
  .cta-final-label,
  .cta-final-headline,
  .cta-final-body,
  .cta-final-buttons {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .cta-final-primary {
    width: 100%;
    max-width: 320px;
  }
}



/* ══════════════════════════════════════
   VALUES SECTION (shared: about + careers pages)
   ══════════════════════════════════════ */

.values {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 0;
  border-top: 1px solid rgba(16, 32, 39, 0.08);
  padding: clamp(40px, 4vw, 56px) 0;
}

.values-header {
  margin-bottom: clamp(36px, 4vw, 56px);
}

.values-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(13px, 0.9vw, 14px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-dark);
  margin: 0 0 clamp(10px, 1.2vw, 16px) 0;
}

.values-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold-dark);
  flex-shrink: 0;
}

.values-headline {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--nav-bg);
  margin: 0;
  max-width: 560px;
}

.values-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3.5vw, 48px);
  align-items: start;
}

.values-row {
  display: flex;
  flex-direction: column;
}


.values-title {
  font-size: clamp(14px, 1.05vw, 17px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #1a1706;
  margin: 0 0 8px 0;
}

.values-body {
  font-size: clamp(12px, 0.85vw, 14px);
  font-weight: 400;
  line-height: 1.72;
  color: rgba(26, 23, 6, 0.68);
  margin: 0;
}

.values-reveal {
  opacity: 0;
  transform: translateY(18px);
  will-change: transform, opacity;
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.values-reveal.values-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .values-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 768px) {
  .values {
    min-height: auto;
    margin-top: 0;
    padding-top: clamp(64px, 10vw, 80px);
    padding-bottom: clamp(48px, 7vw, 64px);
  }

  .values-list {
    grid-template-columns: 1fr;
    gap: clamp(36px, 7vw, 52px);
  }
}


/* ── Team-spotlight reveal animation (used by js/careers.js) ── */
.testimonial-reveal {
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
  transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}
.testimonial-reveal.testimonial-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ── INVESTOR MARQUEE (shared: about + news pages) ── */
.investors-constrained {
  margin-top: clamp(72px, 9vw, 120px);
  padding-top: clamp(12px, 2vw, 24px);
  padding-bottom: clamp(100px, 14vw, 200px);
  text-align: center;
  overflow: hidden;
}
.investors-constrained .investors-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-dark);
  margin: 0 0 clamp(28px, 3.5vw, 44px) 0;
}
.investors-constrained .investors-eyebrow::before {
  content: '';
  width: 28px;
  height: 1.5px;
  background: var(--gold-dark);
  flex-shrink: 0;
}

.investors-marquee {
  position: relative;
  width: 100%;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.investors-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 35s linear infinite;
  will-change: transform;
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.investors-logos {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: clamp(40px, 5vw, 64px);
  padding: 0 clamp(20px, 2.5vw, 32px);
}

.investors-logos img {
  display: block;
  width: clamp(100px, 10vw, 150px);
  height: clamp(30px, 3.5vw, 48px);
  object-fit: contain;
  flex-shrink: 0;
}

/* ── FOOTER CTA BLOCK ── */
.footer-cta-block {
  margin-bottom: clamp(56px, 7vw, 88px);
}
.footer-cta-headline {
  font-size: clamp(42px, 6.5vw, 88px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.045em;
  max-width: 820px;
  margin-bottom: clamp(40px, 5vw, 64px);
  background-image: linear-gradient(
    155deg,
    #d4b168 0%,
    #cda85f 22%,
    #c29a55 46%,
    #b48947 72%,
    #9f743a 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transform: translateZ(0);
  word-spacing: 0.01em;
}
.footer-cta-btn {
  margin-top: clamp(-8px, -0.5vw, 0px);
  font-size: 17px;
  height: 54px;
  padding: 0 40px;
  cursor: pointer;
}

/* ── FOOTER ── */
footer {
  background: #0C181D;
  padding: 0;
}
.footer-inner {
  padding: clamp(70px, 9vw, 121px) var(--edge-pad) 51px;
}
.footer-offices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.footer-office h3 {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.footer-office p {
  font-size: 14px;
  color: var(--gold);
  line-height: 1.45;
  margin-bottom: 14px;
  font-weight: 400;
}
.footer-flag-icon {
  display: block;
  width: 42px;
  height: auto;
  padding: 3px;
  background: var(--gold);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.50);
  font-weight: 400;
  letter-spacing: 0.01em;
}
.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.50);
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* ── LARGE SCREEN BREAKPOINTS ── */
@media (min-width: 1440px) {
  :root {
    --edge-pad: 96px;
    --page-max: 1360px;
  }
}

@media (min-width: 1600px) {
  :root {
    --edge-pad: 140px;
    --page-max: 1400px;
  }
}

@media (min-width: 1920px) {
  :root {
    --edge-pad: 16vw;
    --page-max: 1480px;
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-buttons { display: none !important; }
  .nav-hamburger { display: flex !important; }

  /* ── Mobile nav: half-height ──
     Desktop nav-inner is 100px to give the brand mark room to breathe.
     On phones, that eats ~12% of an iPhone viewport, which pushes hero
     content below the fold. 56px keeps the wordmark + hamburger
     visually proportionate while reclaiming ~44px of vertical room. */
  .nav-inner {
    height: 56px;
    /* Respect the iPhone notch's safe-area in landscape — env()
       resolves to 0 on devices without a notch so portrait users
       still get the design's 20px gutter. */
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
  /* Wordmark sized to ~29% of the 56px nav — large enough to read
     cleanly at arm's length, small enough to feel balanced against
     the hamburger on the opposite side. */
  .logo img { height: 16px; }
  .nav-hamburger { width: 32px; height: 32px; padding: 4px; gap: 4px; }
  .nav-hamburger span { width: 20px; }
  .nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .mobile-menu { top: 56px; }

  .hero { padding-bottom: 60px; }
  .hero h1 { font-size: clamp(32px, 6vw, 72px); letter-spacing: 0; word-spacing: 0.04em; line-height: 1.08; }
  .hero-sub { font-size: 16px; }

  .mission-headline { max-width: 100%; }
  .btn-primary, .btn-secondary { width: 100%; max-width: 320px; text-align: center; }

  .story-facts { grid-template-columns: repeat(2, 1fr); row-gap: clamp(24px, 3vw, 36px); }
  .story-fact:nth-child(3) { border-left: none; padding-left: 0; }
  .footer-offices { grid-template-columns: 1fr; }
  .footer-cta-headline { text-align: left; }
  .footer-bottom { flex-direction: column-reverse; align-items: flex-start; gap: 8px; }
}

@media (max-width: 600px) {
  .investors-logos {
    gap: clamp(28px, 7vw, 40px);
  }
  .investors-logos img {
    width: clamp(80px, 20vw, 120px);
    height: clamp(24px, 6vw, 36px);
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: clamp(28px, 8.5vw, 48px); letter-spacing: 0; word-spacing: 0.03em; line-height: 1.12; }
  .hero-sub { font-size: 15px; line-height: 1.4; }
  .hero-actions { flex-direction: column; width: 100%; }
  /* Keep the 320px cap from the 900px breakpoint so the buttons
     match the careers page at every screen size. */
  .btn-primary, .btn-secondary { width: 100%; max-width: 320px; text-align: center; }
}

/* ── Accessibility: respect user motion preferences ── */
@media (prefers-reduced-motion: reduce) {
  .investors-track {
    animation-play-state: paused;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }

}

