/* ============================================================
   FONTS
   ============================================================ */
@font-face {
  font-family: 'Frostbite';
  src: url('assets/fonts/FROSTBITE-Wide Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  ascent-override: 160%;
}


/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Colors — Perplexity light palette */
  --bg:           #F3F3EE;
  --surface:      #FFFFFF;
  --plum:         #5C2E54;
  --accent:       #3D6FA4;
  --accent-hover: var(--plum);
  --border:       rgba(19, 52, 59, 0.12);

  /* Text — light backgrounds */
  --text:            #13343B;        /* Perplexity off-black */
  --text-muted:      rgba(19, 52, 59, 0.60);
  --text-faint:      rgba(19, 52, 59, 0.38);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-gap:  80px;
  --container-w:  1160px;
  --container-px: clamp(1.25rem, 5vw, 3rem);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 200ms;
}


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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

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

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


/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.section-header {
  margin-bottom: 3.5rem;
  text-align: center;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  font-weight: 300;
  letter-spacing: -2px;
  line-height: 1.1;
  color: var(--text);
}

.section-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.75;
  margin-top: 0.9rem;
  margin-inline: auto;
}


/* ============================================================
   BUTTON COMPONENT
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.1px;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out),
    color var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out);
  white-space: nowrap;
}

/* Primary */
.btn--primary {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 0 0 3px rgba(61, 111, 164, 0.25);
  outline: none;
}

/* Ghost */
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--text);
  border-color: rgba(19, 52, 59, 0.35);
  outline: none;
}

/* Outline */
.btn--outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn--outline:hover,
.btn--outline:focus-visible {
  background: rgba(61, 111, 164, 0.08);
  box-shadow: 0 0 0 3px rgba(61, 111, 164, 0.15);
  outline: none;
}

/* Sizes */
.btn--sm { padding: 0.5rem 1rem; font-size: 0.82rem; }
.btn--lg { padding: 0.9rem 2rem; font-size: 1rem; }


/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-block: 1.1rem;
  background: rgba(243, 243, 238, 0.80);   /* ecru semi-transparent */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 300ms ease;
}

.nav--scrolled {
  background: rgba(243, 243, 238, 0.96);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: 'Frostbite', var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--plum);
  transition: color var(--duration);
}

.nav__logo:hover {
  color: var(--accent);
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding-block: var(--section-gap);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 720px;
}

.hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: -0.5rem;
}

.hero__headline {
  font-size: clamp(2.8rem, 5.5vw, 5.25rem);
  font-weight: 300;
  letter-spacing: -3px;
  line-height: 1.04;
}

.hero__headline em {
  font-style: normal;
  color: var(--accent);
}

.hero__subhead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}


/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding-block: var(--section-gap);
  border-top: 1px solid var(--border);
}

.services__wordmark {
  font-family: 'Frostbite', var(--font-sans);
  font-weight: 700;
  font-size: 3.5rem;
  color: var(--plum);
  letter-spacing: 0.6em;
  text-indent: 0.6em; /* compensate so text appears visually centered */
  margin-bottom: 1.5rem;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Reveal animation initial state */
.service-card,
.audience-item {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.55s var(--ease-out),
    border-color var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out);
}
.service-card.is-visible,
.audience-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger cards */
.service-card:nth-child(2) { transition-delay: 80ms; }
.service-card:nth-child(3) { transition-delay: 160ms; }

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 1px 3px rgba(19, 52, 59, 0.06);
}
.service-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 32px rgba(61, 111, 164, 0.12);
}

.service-card__icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  opacity: 0.85;
}

.service-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text);
}

.service-card__body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}


/* ============================================================
   AUDIENCE
   ============================================================ */
.audience {
  padding-block: var(--section-gap);
  border-top: 1px solid var(--border);
}

.audience .section-title {
  color: var(--accent);
}

.audience__list {
  display: flex;
  align-items: stretch;
}

.audience-item {
  flex: 1;
  padding-inline: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.audience-item:first-child { padding-left: 0; }
.audience-item:last-child  { padding-right: 0; }

/* Stagger audience items */
.audience-item:nth-child(3) { transition-delay: 80ms; }
.audience-item:nth-child(5) { transition-delay: 160ms; }

.audience-item__label {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--text);
}

.audience-item__text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.audience-divider {
  width: 1px;
  background: var(--plum);
  flex-shrink: 0;
  align-self: stretch;
}


/* ============================================================
   FOOTER / CONTACT
   ============================================================ */
.footer {
  padding-block: var(--section-gap);
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer__cta {
  max-width: 700px;
  text-align: center;
}

.footer__cta-headline {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.footer__cta-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.footer__meta {
  width: 100%;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__wordmark {
  font-family: 'Frostbite', var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--plum);
}

.footer__copy {
  font-size: 0.82rem;
  color: var(--text-faint);
}


/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --section-gap: 56px;
  }

  .nav__logo { font-size: 1rem; }

  .hero {
    min-height: auto;
    padding-top: 5rem;
  }
  .hero__inner { max-width: 100%; }
  .hero__headline { letter-spacing: -2px; }

  .services__grid { grid-template-columns: 1fr; }

  .services__wordmark {
    font-size: 2rem;
    letter-spacing: 0.2em;
    text-indent: 0.2em;
  }

  .audience__list {
    flex-direction: column;
    gap: 2rem;
  }
  .audience-divider {
    width: 100%;
    height: 1px;
  }
  .audience-item {
    padding-inline: 0;
  }

  .footer__meta {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }

  /* Still show elements even without animation */
  .service-card,
  .audience-item {
    opacity: 1;
    transform: none;
  }
}
