/* ─────────────────────────────────────────────────────────────────────────
   Echo Vale — Base
   Design tokens, reset, typography helpers, layout utilities
   ───────────────────────────────────────────────────────────────────────── */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --ink:          #070908;
  --ink-2:        #0d1110;
  --bone:         #e9ede6;
  --mist:         #a9b5b2;
  --line:         rgba(233, 237, 230, .16);
  --ember:        #e44b3c;
  --ease-out:     cubic-bezier(.16, 1, .3, 1);
  --ease-in-out:  cubic-bezier(.65, 0, .35, 1);
}

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

html {
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  color: var(--bone);
  background: var(--ink);
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  overflow-x: clip;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open { overflow: hidden; }

::selection {
  color: var(--ink);
  background: var(--ember);
}

a, button, input { cursor: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button { color: inherit; }
ul { list-style: none; }
blockquote, h1, h2, h3, h4, h5, h6, p { margin: 0; }

/* ── Typography helpers ──────────────────────────────────────────────────── */
.display {
  font-family: 'Unbounded', sans-serif;
  letter-spacing: -.055em;
}

.micro {
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: rgba(233, 237, 230, .6);
}
.eyebrow::before {
  content: '';
  width: 2.4rem;
  height: 1px;
  background: var(--ember);
  flex-shrink: 0;
}

/* ── Layout helpers ──────────────────────────────────────────────────────── */
.shell {
  width: min(100% - 48px, 1420px);
  margin-inline: auto;
}

.section-pad {
  padding-block: clamp(6rem, 11vw, 11rem);
}

.hairline {
  border-color: var(--line);
}

/* ── Noise overlay ───────────────────────────────────────────────────────── */
.noise {
  position: fixed;
  inset: 0;
  z-index: 90;
  opacity: .045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

/* ── Reveal choreography ─────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
.reveal.delay-1 { transition-delay: .12s; }
.reveal.delay-2 { transition-delay: .22s; }

/* ── Section header pattern ──────────────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}
.section-head h2 {
  margin: .9rem 0 0;
  font: 500 clamp(2.4rem, 5vw, 5.7rem)/.94 'Unbounded', sans-serif;
  letter-spacing: -.065em;
  text-transform: uppercase;
}
.section-head p {
  max-width: 28rem;
  color: rgba(233, 237, 230, .58);
  line-height: 1.7;
}

/* ── Action button ───────────────────────────────────────────────────────── */
.action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  min-height: 54px;
  padding: 0 1.4rem;
  border: 1px solid currentColor;
  text-decoration: none;
  color: inherit;
  text-transform: uppercase;
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .16em;
  position: relative;
  overflow: hidden;
}
.action::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ember);
  transform: translateY(101%);
  transition: transform .45s var(--ease-out);
  z-index: 0;
}
.action span,
.action svg {
  position: relative;
  z-index: 1;
}
.action:hover::before {
  transform: translateY(0);
}

/* ── Screen reader only ──────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
