/* ── 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;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Aeonik', '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;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0;
  background: rgba(16, 32, 39, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: none;
}

.nav-inner {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 clamp(24px, 3vw, 48px);
  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: 15px;
  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: 8px;
  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: 10px;
  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: 999px;
  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);
}

/* 3. Secondary — slightly more visible */
.cta-final-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(240, 237, 232, 0.55);
  padding: 13px 36px;
  border-radius: 999px;
  border: 1px solid rgba(240, 237, 232, 0.15);
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: border-color 0.25s ease,
              color 0.25s ease;
}
.cta-final-secondary:hover {
  border-color: rgba(240, 237, 232, 0.25);
  color: rgba(240, 237, 232, 0.7);
}

/* 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;
  }
  .cta-final-secondary {
    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(11px, 0.75vw, 12px);
  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(28px, 3.2vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--nav-bg);
  margin: 0;
  max-width: 480px;
}

.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-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 6px;
  background: #d0cbc3;
  margin-bottom: 0;
}

.values-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.values-row:hover .values-image img {
  transform: scale(1.04);
}

.values-text {
  display: flex;
  flex-direction: column;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid rgba(16, 32, 39, 0.1);
}

.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);
  }
}


/* ══════════════════════════════════════
   TESTIMONIAL (shared: about + careers pages)
   ══════════════════════════════════════ */

.testimonial {
  margin-top: clamp(72px, 9vw, 120px);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(76px, 9vw, 126px) var(--edge-pad) 0;
  background: var(--nav-bg);
  border-radius: 0;
  border-top: none;
}

.testimonial-inner {
  display: flex;
  align-items: center;
  gap: clamp(40px, 5vw, 72px);
  max-width: var(--page-max);
  margin: 0 auto;
}

.testimonial-photo {
  flex-shrink: 0;
  width: clamp(140px, 14vw, 200px);
  height: clamp(140px, 14vw, 200px);
  border-radius: 50%;
  overflow: hidden;
}

.testimonial-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.testimonial-content {
  flex: 1;
  min-width: 0;
}

.testimonial-quote {
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--warm-white);
  margin: 0 0 clamp(20px, 2.5vw, 32px) 0;
  padding: 0;
  border: none;
}

.testimonial-attribution {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.testimonial-name {
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.01em;
}

.testimonial-role {
  font-size: clamp(13px, 0.9vw, 15px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.52);
}

@media (max-width: 768px) {
  .testimonial {
    padding: clamp(48px, 7vw, 72px) clamp(24px, 5vw, 48px);
  }

  .testimonial-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(24px, 5vw, 32px);
  }

  .testimonial-photo {
    width: clamp(96px, 22vw, 130px);
    height: clamp(96px, 22vw, 130px);
  }

  .testimonial-quote {
    font-size: clamp(19px, 5vw, 24px);
  }
}

.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 {
  font-size: clamp(16px, 1.8vw, 24px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #746547;
  margin: 0 0 clamp(44px, 5vw, 72px) 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: #0A161A;
  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 h4 {
  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; }

  .hero { padding-bottom: 60px; }
  .hero h1 { font-size: clamp(32px, 6vw, 72px); letter-spacing: -0.025em; word-spacing: -0.05em; line-height: 1.05; }
  .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.02em; word-spacing: 0; line-height: 1.08; }
  .hero-sub { font-size: 15px; line-height: 1.4; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn-primary, .btn-secondary { width: 100%; 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; }

}

