/* ============ RESET / BASE ============ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --royal-blue: #1f2170;
  --royal-blue-2: #272a83;
  --deep-navy: #0b0f2b;
  --lavender-bg: #f2f3fa;
  --text-light: #ffffff;
  --text-muted: rgba(255,255,255,0.82);
  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--text-light);
  background: var(--royal-blue);
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--royal-blue);
  z-index: 1000;
  padding: 22px 40px;
  transition: background .3s ease, box-shadow .3s ease;
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-links {
  display: flex;
  gap: 48px;
  flex: 1;
  justify-content: center;
  margin-left: 180px; /* balances against Contact Us button on right */
}

.nav-link {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  position: relative;
  padding: 4px 2px;
  transition: color .2s ease, opacity .2s ease;
}

.nav-link.active,
.nav-link:hover {
  color: #b9c2ff;
}

.btn-contact {
  font-family: var(--serif);
  font-size: 20px;
  color: #fff;
  border: 1.5px solid #fff;
  border-radius: 999px;
  padding: 10px 32px;
  transition: all .25s ease;
  white-space: nowrap;
}

.btn-contact:hover {
  background: #fff;
  color: var(--royal-blue);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  transition: transform .3s ease, opacity .3s ease;
}

/* ============ HERO / LOGO ============ */
.hero-logo {
  min-height: 78vh;
  background: var(--royal-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 40px 40px;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.hero-logo-img {
  display: block;
  width: min(1200px, 92%);
  height: auto;
  max-height: 62vh;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
  animation: fadeUp 1.2s ease both;
}

/* ============ TAGLINE / SKYLINE ============ */
.tagline {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 40px;
  color: #fff;
  overflow: hidden;
  background: #0b0f2b;
}

.tagline-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.tagline-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,33,112,0.25) 0%, rgba(11,15,43,0.6) 100%);
  pointer-events: none;
  z-index: 1;
}

.tagline-inner {
  position: relative;
  max-width: 1100px;
  text-align: center;
  z-index: 1;
}

.tagline-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4vw, 64px);
  line-height: 1.15;
  margin-bottom: 40px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.45);
}

.tagline-sub {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 2.2vw, 40px);
  line-height: 1.55;
  max-width: 1000px;
  margin: 0 auto;
  text-shadow: 0 2px 18px rgba(0,0,0,0.5);
}

/* ============ PERFORMANCE ============ */
.performance {
  background: var(--lavender-bg);
  color: var(--deep-navy);
  padding: 140px 0 160px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 48px;
  text-align: center;
  color: #121340;
  margin-bottom: 40px;
}

.divider {
  width: 80%;
  max-width: 1000px;
  height: 1px;
  background: #121340;
  margin: 0 auto 90px;
  opacity: .6;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.4s cubic-bezier(.77,0,.175,1);
}

.divider.is-visible {
  transform: scaleX(1);
}

.perf-stat {
  text-align: center;
}

.perf-number {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(96px, 14vw, 220px);
  line-height: 1;
  color: #121340;
  margin-bottom: 20px;
}
.perf-number .percent {
  font-size: .6em;
  margin-left: .1em;
  vertical-align: top;
}

.perf-label {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 34px);
  color: #1a1d4f;
}

/* ============ STRATEGIES ============ */
.strategies {
  background: var(--deep-navy);
  color: #fff;
  padding: 140px 0 160px;
}

.strategies-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 64px;
  margin-bottom: 110px;
  color: #fff;
}

.strategy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  padding: 30px 0;
}

.strategy-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.strategy-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  opacity: .95;
}

.strategy-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 3.2vw, 48px);
  color: #fff;
  line-height: 1.05;
}

.strategy-right p {
  font-family: var(--serif);
  font-size: clamp(18px, 1.35vw, 22px);
  line-height: 1.55;
  color: rgba(255,255,255,0.88);
  max-width: 560px;
}

.strategy-divider {
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin: 60px 0;
}

/* ============ ABOUT ============ */
.about {
  background: var(--royal-blue);
  color: #fff;
  padding: 140px 0 120px;
}

.about-container {
  max-width: 1100px;
}

.about-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 64px;
  text-align: center;
  margin-bottom: 48px;
  color: #fff;
}

.about-text {
  font-family: var(--serif);
  font-size: clamp(20px, 1.6vw, 30px);
  line-height: 1.55;
  text-align: justify;
  color: rgba(255,255,255,0.96);
}

/* ============ ABOUT PAGE ============ */
.about-top {
  background: var(--royal-blue);
  background-image:
    radial-gradient(ellipse at center, rgba(255,255,255,0.04) 0%, transparent 70%),
    linear-gradient(180deg, var(--royal-blue) 0%, #1a1c63 100%);
  color: #fff;
  min-height: 70vh;
  padding: 180px 0 120px;
  position: relative;
}

.about-top::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
  opacity: .5;
}

.about-top-inner {
  display: grid;
  grid-template-columns: minmax(340px, 480px) 1fr;
  gap: 60px;
  align-items: start;
  position: relative;
}

.about-top-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 64px;
  line-height: 1;
  margin-bottom: 40px;
  color: #fff;
}

.about-top-text {
  font-family: var(--serif);
  font-size: clamp(18px, 1.35vw, 24px);
  line-height: 1.5;
  color: rgba(255,255,255,0.96);
  max-width: 480px;
}

.founder {
  background: var(--deep-navy);
  color: #fff;
  padding: 140px 0 160px;
}

.founder-inner {
  display: flex;
  justify-content: center;
}

.founder-content {
  max-width: 560px;
  width: 100%;
}

.founder-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 64px;
  line-height: 1.05;
  margin-bottom: 8px;
  color: #fff;
}

.founder-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 44px;
  line-height: 1.1;
  margin-bottom: 36px;
  color: #fff;
  padding-left: 14px;
}

.founder-body p {
  font-family: var(--sans);
  font-size: clamp(16px, 1.1vw, 20px);
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
  margin-bottom: 26px;
  letter-spacing: .2px;
}

.founder-body p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .about-top-inner {
    grid-template-columns: 1fr;
  }
  .about-top { padding: 140px 0 80px; }
  .founder { padding: 90px 0 100px; }
  .founder-content { padding: 0 4px; }
}

/* ============ CONTACT PAGE ============ */
.contact-main {
  background: var(--lavender-bg);
  color: #121340;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 180px 0 140px;
}

.contact-main-inner {
  text-align: center;
}

.contact-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(54px, 7vw, 110px);
  line-height: 1;
  color: #121340;
  margin-bottom: 80px;
}

.contact-email {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 5.5vw, 90px);
  line-height: 1;
  color: #121340;
  transition: opacity .2s ease;
  word-break: break-word;
}

.contact-email:hover { opacity: .75; }

@media (max-width: 600px) {
  .contact-main { padding: 140px 0 90px; }
  .contact-title { margin-bottom: 48px; }
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--royal-blue);
  color: #fff;
  padding: 60px 0 80px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 40px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-logo-img {
  display: block;
  max-width: 260px;
  width: 100%;
  height: auto;
}

.footer-contact a {
  font-family: var(--serif);
  font-size: clamp(22px, 1.8vw, 32px);
  font-weight: 500;
  transition: opacity .2s ease;
}
.footer-contact a:hover { opacity: .8; }

.footer-disclaimer p {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
}

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--royal-blue);
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
    gap: 20px;
    margin-left: 0;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all .3s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .btn-contact { display: none; }
  .nav-toggle { display: inline-flex; }

  .hero-logo-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  .castle-mark { width: 120px; height: 120px; }
  .wordmark .word-top,
  .wordmark .word-mid { font-size: 54px; }
  .wordmark .word-sub { font-size: 18px; letter-spacing: 5px; text-align: center; }

  .strategy {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand { justify-content: center; }
}

@media (max-width: 520px) {
  .container { padding: 0 20px; }
  .performance, .strategies, .about { padding: 90px 0 100px; }
  .tagline { min-height: 70vh; padding: 90px 20px; }
}
