/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
  --navy-950: #0F1D33;
  --navy-900: #152A4A;
  --navy-700: #1E3A63;
  --navy-500: #34568C;
  --amber-500: #F2A93B;
  --amber-600: #DB8F1F;
  --teal-500: #2BB3A3;
  --cream-50: #FBF8F3;
  --cream-100: #F4EEE3;
  --white: #FFFFFF;
  --ink-900: #1B2333;
  --ink-600: #4A5268;
  --ink-400: #7A8194;
  --border: #E7E1D4;
  --border-light: #E2E6ED;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container-w: 1200px;
  --radius-sm: .5rem;
  --radius-md: .9rem;
  --radius-lg: 1.5rem;
  --shadow-sm: 0 2px 10px rgba(21, 42, 74, .06);
  --shadow-md: 0 10px 30px rgba(21, 42, 74, .10);
  --shadow-lg: 0 20px 50px rgba(21, 42, 74, .14);
  --transition: .25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink-600);
  background: var(--cream-50);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

input, textarea { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  font-weight: 600;
  line-height: 1.15;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 999;
  background: var(--navy-900);
  color: var(--white);
  padding: .6rem 1rem;
  border-radius: var(--radius-sm);
}

:focus-visible {
  outline: 2px solid var(--amber-500);
  outline-offset: 3px;
}

section { position: relative; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--amber-600);
  margin-bottom: .75rem;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.section-title {
  font-size: clamp(1.9rem, 1.2rem + 2vw, 2.75rem);
  margin-bottom: .75rem;
}

.section-sub {
  color: var(--ink-400);
  font-size: 1.05rem;
}

.placeholder-hint {
  color: var(--teal-500);
  font-style: italic;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--amber-500);
  color: var(--navy-950);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--amber-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--navy-900);
  border: 1.5px solid var(--navy-900);
}
.btn-outline:hover {
  background: var(--navy-900);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-sm { padding: .6rem 1.3rem; font-size: .85rem; }
.btn-block { width: 100%; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(251, 248, 243, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.site-header.is-scrolled {
  background: rgba(251, 248, 243, .96);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy-900);
  flex-shrink: 0;
}

.logo-badge-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
}

.nav { flex: 1; display: flex; justify-content: center; }

.nav-list {
  display: flex;
  gap: 2.1rem;
}

.nav-link {
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-600);
  position: relative;
  padding: .3rem 0;
  transition: color var(--transition);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--amber-500);
  transition: width var(--transition);
}
.nav-link:hover { color: var(--navy-900); }
.nav-link:hover::after { width: 100%; }
.nav-link.is-active { color: var(--navy-900); }
.nav-link.is-active::after { width: 100%; }

.nav-cta { flex-shrink: 0; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 9.5rem 0 6rem;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(21, 42, 74, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(21, 42, 74, .07) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 90%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 90%);
}

.shape {
  position: absolute;
  opacity: .5;
  pointer-events: none;
  animation: float 7s ease-in-out infinite;
}
.shape-circle {
  width: 90px; height: 90px;
  border: 2px solid var(--teal-500);
  border-radius: 50%;
  top: 14%; left: 6%;
}
.shape-square {
  width: 60px; height: 60px;
  border: 2px solid var(--amber-500);
  border-radius: 14px;
  bottom: 12%; left: 12%;
  animation-delay: 1.5s;
  transform: rotate(18deg);
}
.shape-triangle {
  width: 0; height: 0;
  border-left: 35px solid transparent;
  border-right: 35px solid transparent;
  border-bottom: 60px solid rgba(242, 169, 59, .35);
  top: 20%; right: 8%;
  animation-delay: .8s;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.hero-eyebrow {
  font-size: clamp(1.6rem, 1rem + 2.4vw, 2.6rem);
  letter-spacing: .01em;
  margin-bottom: 1.2rem;
  max-width: 560px;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem);
  color: var(--navy-700);
  margin-bottom: 1.25rem;
}
.hero-tagline em {
  font-style: italic;
  color: var(--amber-600);
}

.hero-desc {
  max-width: 520px;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
}

.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--navy-900);
}
.stat-label {
  font-size: .85rem;
  color: var(--ink-400);
}

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

.photo-frame {
  position: relative;
  width: min(360px, 100%);
}

.photo-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 38% 62% 58% 42% / 48% 42% 58% 52%;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-950));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
}
.photo-placeholder span {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 600;
  color: var(--amber-500);
}

.hero-photo-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 50%;
  border: 6px solid var(--white);
  box-shadow: var(--shadow-lg);
  animation: float 8s ease-in-out infinite;
}

.math-chip {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-md);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy-900);
  animation: float 6s ease-in-out infinite;
}
.chip-1 { top: 4%; right: 8%; animation-delay: 0s; }
.chip-2 { top: 38%; left: -6%; animation-delay: .6s; color: var(--teal-500); }
.chip-3 { bottom: 22%; right: -4%; animation-delay: 1.2s; color: var(--amber-600); }
.chip-4 { bottom: -2%; left: 18%; animation-delay: 1.8s; }
.chip-5 { top: 58%; right: -8%; animation-delay: 2.4s; color: var(--teal-500); }

.scroll-cue {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--ink-400);
  border-radius: 20px;
}
.scroll-cue span {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 3px;
  background: var(--amber-500);
  animation: scrollCue 1.6s ease infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes scrollCue {
  0% { opacity: 1; top: 6px; }
  70% { opacity: 0; top: 20px; }
  100% { opacity: 0; top: 6px; }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about { padding: 6rem 0; background: var(--white); }

.about-inner {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.about-photo .photo-placeholder--alt {
  border-radius: 1.5rem;
  aspect-ratio: 4 / 5;
}

.about-photo-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.pull-quote {
  margin-top: 2rem;
  padding: 1.5rem 1.5rem 1.5rem 1.6rem;
  border-left: 3px solid var(--amber-500);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--navy-700);
  background: var(--cream-100);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.about-content p { margin-bottom: 1.2rem; }
.about-content strong { color: var(--navy-900); }

.fact-list {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1.8rem;
}
.fact-list li {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.fact-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-400);
  font-weight: 700;
}
.fact-value {
  font-family: var(--font-display);
  color: var(--navy-900);
  font-weight: 600;
}

/* =========================================================
   APPROACH (CARDS)
   ========================================================= */
.approach { padding: 6rem 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }

.approach-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.approach-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--navy-900);
  color: var(--amber-500);
  margin-bottom: 1.4rem;
}
.card-icon svg { width: 26px; height: 26px; }

.approach-card h3 {
  font-size: 1.15rem;
  margin-bottom: .6rem;
}
.approach-card p {
  font-size: .95rem;
  color: var(--ink-600);
}

/* =========================================================
   EXPERIENCE (TIMELINE)
   ========================================================= */
.experience { padding: 6rem 0; background: var(--white); }

.timeline {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  padding-left: 3.5rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: .4rem;
  bottom: .4rem;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-num {
  position: absolute;
  left: -3.5rem;
  top: -.4rem;
  width: 2.3rem;
  height: 2.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  background: var(--amber-500);
  color: var(--navy-950);
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 2px var(--border);
}

.timeline-date {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--amber-600);
  margin-bottom: .4rem;
}

.timeline-content h3 { font-size: 1.3rem; margin-bottom: .2rem; }

.timeline-place {
  display: block;
  font-size: .88rem;
  color: var(--ink-400);
  margin-bottom: .8rem;
}

/* =========================================================
   SERVICES
   ========================================================= */
.services { padding: 6rem 0; }

.services-inner {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 3.5rem;
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  color: var(--cream-50);
}

.services .eyebrow { color: var(--amber-500); }
.services-content .section-title { color: var(--white); }
.services-content .section-sub { color: rgba(251, 248, 243, .75); margin-bottom: 2rem; }

.feature-list {
  display: grid;
  gap: .95rem;
  margin-bottom: 2.2rem;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .97rem;
  color: rgba(251, 248, 243, .92);
}
.feature-list svg {
  width: 19px;
  height: 19px;
  color: var(--teal-500);
  flex-shrink: 0;
}

.services-tags {
  background: rgba(251, 248, 243, .06);
  border: 1px solid rgba(251, 248, 243, .14);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  align-self: start;
}
.tag-title {
  display: block;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--amber-500);
  font-weight: 700;
  margin-bottom: 1.1rem;
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.tag {
  font-size: .85rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: rgba(251, 248, 243, .1);
  color: var(--cream-50);
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials { padding: 6rem 0; background: var(--white); }

.testimonial-card {
  background: var(--cream-100);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
}

.stars {
  display: flex;
  gap: .25rem;
  margin-bottom: 1.1rem;
  color: var(--amber-500);
}
.stars svg { width: 17px; height: 17px; }

.testimonial-card p { margin-bottom: 1.3rem; }

.testimonial-author {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy-900);
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact { padding: 6rem 0; }

.contact-inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 3.5rem;
}

.contact-info .section-sub { margin-bottom: 2.2rem; }

.contact-list { display: grid; gap: 1.4rem; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; }

.contact-label {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-400);
  font-weight: 700;
}
.contact-value {
  display: block;
  font-weight: 600;
  color: var(--navy-900);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
}

.form-row { margin-bottom: 1.2rem; }
.form-row label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: .4rem;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: .75rem .9rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--cream-50);
  color: var(--ink-900);
  transition: border-color var(--transition);
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--amber-500);
}

.form-note {
  margin-top: .9rem;
  font-size: .88rem;
  text-align: center;
  min-height: 1.2em;
  color: var(--teal-500);
  font-weight: 600;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--navy-950);
  color: rgba(251, 248, 243, .7);
  padding: 4.5rem 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(251, 248, 243, .1);
}

.footer-brand .logo { color: var(--white); margin-bottom: 1rem; }
.footer-brand p { max-width: 320px; font-size: .92rem; margin-bottom: 1.4rem; }

.social-links { display: flex; gap: .8rem; }
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(251, 248, 243, .08);
  transition: background var(--transition), color var(--transition);
}
.social-links svg { width: 17px; height: 17px; }
.social-links a:hover { background: var(--amber-500); color: var(--navy-950); }

.footer-col-title {
  display: block;
  font-family: var(--font-display);
  color: var(--white);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.footer-links, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  font-size: .92rem;
}
.footer-links a:hover { color: var(--amber-500); }

.footer-bottom {
  text-align: center;
  padding: 1.6rem 0;
  font-size: .85rem;
}

/* =========================================================
   BACK TO TOP
   ========================================================= */
.back-to-top {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-900);
  color: var(--amber-500);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 90;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top svg { width: 20px; height: 20px; }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 992px) {
  .nav, .nav-cta { display: none; }
  .menu-toggle { display: flex; }

  .nav.is-open {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--cream-50);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav.is-open .nav-list {
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: .5rem 1.5rem 1.5rem;
  }
  .nav.is-open .nav-list li { width: 100%; }
  .nav.is-open .nav-link {
    display: block;
    padding: .9rem 0;
    border-bottom: 1px solid var(--border-light);
  }

  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-eyebrow { margin-inline: auto; }
  .hero-desc { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { margin-top: 2.5rem; }
  .photo-frame { width: min(320px, 80%); }

  .about-inner { grid-template-columns: 1fr; }
  .about-visual { max-width: 360px; margin: 0 auto; }

  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }

  .services-inner { grid-template-columns: 1fr; padding: 2.5rem; }

  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }
  .hero { padding: 8rem 0 4.5rem; }
  .hero-stats { gap: 1.6rem; flex-wrap: wrap; }
  .card-grid, .card-grid--3 { grid-template-columns: 1fr; }
  .fact-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .services-inner { padding: 1.8rem; }
  .contact-form { padding: 1.6rem; }
}
