/* ============================================
   BASE — Reset, Typography, Layout, Animations
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--canvas);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: var(--sticky-bar-height);
}

body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  -webkit-tap-highlight-color: transparent;
}

/* === TYPOGRAPHY === */

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky-deep);
  margin-bottom: var(--space-4);
}

.headline {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.headline--hero {
  font-size: var(--text-4xl);
}

.headline--section {
  font-size: var(--text-3xl);
}

.headline--sub {
  font-size: var(--text-2xl);
}

.body-text {
  font-size: var(--text-md);
  color: var(--slate);
  line-height: 1.7;
  max-width: 560px;
}

.body-text--large {
  font-size: var(--text-lg);
}

/* === LAYOUT === */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: var(--space-24) 0;
}

.section--linen {
  background: var(--linen);
}

.split-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-12);
}

.split-layout__content {
  flex: 1;
  min-width: 0;
  width: 100%;
}

@media (min-width: 768px) {
  .split-layout__content {
    width: auto;
  }
}

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

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

/* === SCROLL REVEAL ANIMATION === */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }
.reveal-delay-5 { transition-delay: 500ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* === RESPONSIVE === */

@media (min-width: 768px) {
  .headline--hero {
    font-size: var(--text-5xl);
  }

  .headline--section {
    font-size: var(--text-4xl);
  }

  .container {
    padding: 0 var(--space-10);
  }

  .section {
    padding: var(--space-24) 0;
  }

  .split-layout {
    flex-direction: row;
    gap: var(--space-16);
  }

  .split-layout--reverse {
    flex-direction: row-reverse;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-16);
  }
}
