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

:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --muted: #8a8a8a;
  --nav: #6b6b6b;
  --pink: #0a0a0a;
  --gold: #0a0a0a;
  --gold-light: #666666;
  --font: 'Manrope', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --section-gutter: clamp(16px, 4vw, 40px);
  --content-max: 1920px;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

html,
body {
  min-height: 100%;
  max-width: 100%;
}

main {
  min-height: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  overflow-y: auto;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--section-gutter);
  z-index: 1000;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

button,
a {
  font-family: inherit;
}

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

@media (max-width: 1600px) {
  :root {
    --section-gutter: clamp(16px, 3.5vw, 36px);
  }
}

@media (max-width: 1200px) {
  :root {
    --section-gutter: clamp(16px, 3.2vw, 32px);
  }
}

@media (max-width: 763px) {
  :root {
    --section-gutter: clamp(14px, 4vw, 24px);
  }
}

@media (max-width: 420px) {
  :root {
    --section-gutter: 14px;
  }
}

@media (max-width: 320px) {
  :root {
    --section-gutter: 10px;
  }
}

@media (max-width: 220px) {
  :root {
    --section-gutter: 8px;
  }
}

/* ---------- Reveal animation system ---------- */
.reveal {
  opacity: 0;
  transition:
    opacity 900ms var(--ease-out-expo),
    transform 900ms var(--ease-out-expo),
    filter 900ms var(--ease-out-expo);
  will-change: opacity, transform, filter;
}

.reveal.is-visible {
  opacity: 1;
  filter: none;
}

.reveal.is-visible:not(.reveal--pop-bottom):not(.reveal--reveal-bottom):not(.reveal--clip-right) {
  transform: none;
}

.reveal--up {
  transform: translateY(40px);
}

.reveal--down {
  transform: translateY(-30px);
}

.reveal--left {
  transform: translateX(-50px);
}

.reveal--right {
  transform: translateX(50px);
}

.reveal--scale {
  transform: scale(0.88);
}

.reveal--blur {
  transform: translateY(24px);
  filter: blur(8px);
}

.reveal--clip-right {
  opacity: 1;
  clip-path: inset(0 100% 0 0);
  transform: none;
  transition:
    clip-path 1.1s var(--ease-out-expo),
    opacity 1.1s var(--ease-out-expo);
}

.reveal--clip-right.is-visible {
  clip-path: inset(0 0 0 0);
}

.reveal--reveal-bottom {
  opacity: 1;
  transform: translate(-50%, 80px);
  clip-path: inset(100% 0 0 0);
  transition:
    clip-path 1.3s var(--ease-out-expo),
    transform 1.3s var(--ease-out-expo);
}

.reveal--reveal-bottom.is-visible {
  transform: translate(-50%, 0);
  clip-path: inset(0 0 0 0);
}

/* Staggered children */
[data-stagger] > .reveal-child {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 600ms var(--ease-out-expo),
    transform 600ms var(--ease-out-expo);
}

[data-stagger].is-visible > .reveal-child {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  [data-stagger] > .reveal-child {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
    transition: none !important;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
