/* ==========================================================================
   Global Reset & Base Styles
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------------------
   Design Tokens (from Figma variables)
   -------------------------------------------------------------------------- */
:root {
  --color-bgg: #f4efe6;
  --color-blue-primary: #150958;
  --color-blue-primary-80: rgba(21, 9, 88, 0.8);
  --color-blue-primary-70: rgba(21, 9, 88, 0.7);
  --color-blue-primary-50: rgba(21, 9, 88, 0.5);
  --color-blue-primary-90: rgba(21, 9, 88, 0.9);
  --color-accent-orange: #ff6e44;
  --color-dark-teal: #1d3d3e;
  --color-dark-navy: #071630;
  --color-dark-navy-70: rgba(7, 22, 48, 0.7);
  --color-footer-bg: #140a66;
  --color-white: #ffffff;
  --color-text-muted: #666666;
  --color-border-light: rgba(202, 199, 177, 0.5);
  --color-overlay-dark: rgba(0, 0, 0, 0.4);
  --color-glass-white: rgba(255, 255, 255, 0.5);
  --color-glass-white-30: rgba(255, 255, 255, 0.3);
  --color-glass-white-10: rgba(255, 255, 255, 0.1);
  --color-glass-white-06: rgba(255, 255, 255, 0.06);
  --color-input-border: rgba(136, 136, 136, 0.1);
  --color-divider: #eef2d5;

  --font-primary: "Manrope", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --container-max: 1384px;
  --container-padding: 60px;

  /* Typography scale */
  --text-h1-size: 62px;
  --text-h1-weight: 800;
  --text-h1-line: 1.1;
  --text-h1-spacing: -1.24px;

  --text-h2-size: 50px;
  --text-h2-weight: 500;
  --text-h2-line: 55px;
  --text-h2-spacing: -2px;

  --text-h3-size: 24px;
  --text-h3-weight: 600;
  --text-h3-line: 33.6px;
  --text-h3-spacing: -1px;

  --text-h4-size: 21px;
  --text-h4-weight: 500;
  --text-h4-line: 30px;
  --text-h4-spacing: -1px;

  --text-h5-size: 18px;
  --text-h5-weight: 500;
  --text-h5-line: 1.4;

  --text-h6-size: 24px;
  --text-h6-weight: 400;
  --text-h6-line: 1.2;
  --text-h6-spacing: -0.5px;

  --text-body-size: 18px;
  --text-body-weight: 400;
  --text-body-line: 26.4px;

  --text-body-sm-size: 16px;
  --text-body-sm-line: 26px;

  --text-lead-size: 24px;
  --text-lead-line: 1.4;
}

/* --------------------------------------------------------------------------
   Typography – Google Fonts loaded via HTML link
   -------------------------------------------------------------------------- */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-blue-primary);
  background-color: var(--color-white);
  overflow-x: hidden;
}

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

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

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

input,
textarea {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* --------------------------------------------------------------------------
   Global Typography — h1–h6 & p
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  color: var(--color-blue-primary);
  margin: 0;
}

h1 {
  font-size: var(--text-h1-size);
  font-weight: var(--text-h1-weight);
  line-height: var(--text-h1-line);
  letter-spacing: var(--text-h1-spacing);
}

h2 {
  font-size: var(--text-h2-size);
  font-weight: var(--text-h2-weight);
  line-height: var(--text-h2-line);
  letter-spacing: var(--text-h2-spacing);
}

h3 {
  font-size: var(--text-h3-size);
  font-weight: var(--text-h3-weight);
  line-height: var(--text-h3-line);
  letter-spacing: var(--text-h3-spacing);
}

h4 {
  font-size: var(--text-h4-size);
  font-weight: var(--text-h4-weight);
  line-height: var(--text-h4-line);
  letter-spacing: var(--text-h4-spacing);
}

h5 {
  font-size: var(--text-h5-size);
  font-weight: var(--text-h5-weight);
  line-height: var(--text-h5-line);
}

h6 {
  font-family: var(--font-mono);
  font-size: var(--text-h6-size);
  font-weight: var(--text-h6-weight);
  line-height: var(--text-h6-line);
  letter-spacing: var(--text-h6-spacing);
  text-transform: uppercase;
  color: var(--color-accent-orange);
}

p {
  font-size: var(--text-body-size);
  font-weight: var(--text-body-weight);
  line-height: var(--text-body-line);
  color: var(--color-blue-primary);
  margin: 0;
}

strong {
  font-weight: 500;
}

blockquote {
  margin: 0;
}

label {
  font-family: var(--font-primary);
  font-size: var(--text-h5-size);
  font-weight: 500;
  line-height: var(--text-h5-line);
}

/* Inline emphasis variants used inside headings */
h2 .text-muted,
.text-muted {
  color: var(--color-blue-primary-70);
}

h2 .text-emphasis,
.text-emphasis {
  font-weight: 700;
  color: var(--color-blue-primary);
}

h2 .text-emphasis-semibold,
.text-emphasis-semibold {
  font-weight: 600;
  color: var(--color-blue-primary);
}

.text-muted-dark {
  color: var(--color-dark-navy-70);
}

.text-small {
  font-size: var(--text-body-sm-size);
  line-height: var(--text-body-sm-line);
  font-weight: 500;
}

.text-lead {
  font-size: var(--text-lead-size);
  line-height: var(--text-lead-line);
}

/* --------------------------------------------------------------------------
   Global Typography — Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --text-h2-size: 40px;
    --text-h2-line: 46px;

    --container-padding: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --text-h1-size: 36px;
    --text-h1-spacing: -0.8px;
    --text-h2-size: 32px;
    --text-h2-line: 38px;
    --text-h2-spacing: -1px;
    --text-h6-size: 18px;
    --text-body-size: 16px;
    --text-lead-size: 18px;

    --container-padding: 20px;
  }
}

/* --------------------------------------------------------------------------
   Scroll reveal — minimal fade-up on enter
   -------------------------------------------------------------------------- */
.reveal {
  --reveal-offset: 16px;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

html.js-reveal .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(var(--reveal-offset));
}

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

.site-header__glass {
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

html.js-reveal .site-header:not(.is-loaded) .site-header__glass {
  opacity: 0;
  transform: translateY(-10px);
}

html.js-reveal .site-header.is-loaded .site-header__glass {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html.js-reveal .reveal:not(.is-visible),
  html.js-reveal .site-header:not(.is-loaded) .site-header__glass {
    opacity: 1;
    transform: none;
  }

  .reveal,
  .site-header__glass {
    transition: none;
  }
}
