/* ═══════════════════════════════════════════════════════ */
/* BASE STYLES — Reset, Typography, Variables             */
/* ═══════════════════════════════════════════════════════ */

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

:root {
  /* Colors */
  --color-bg: #f0f0f0;
  --color-bg-warm: #edeae5;
  --color-text: #091114;
  --color-text-secondary: #6b6b6b;
  --color-accent-red: #FF591D;
  --color-accent-orange: #FF591D;
  --color-white: #ffffff;
  --color-black: #091114;
  --color-border: rgba(0,0,0,0.08);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'Space Mono', 'Fragment Mono', 'SFMono-Regular', Consolas, monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 140px;

  /* Layout */
  --page-padding: 40px;
  --page-max-width: 1400px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Clock */
  --clock-tick: rgba(0,0,0,0.15);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

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

ul, ol {
  list-style: none;
}

/* ─── Typography Scale ─── */

.text-1 {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-transform: none;
}

.text-1--hero {
  font-size: clamp(56px, 8vw, 140px);
}

.text-1--carousel {
  font-size: clamp(60px, 10vw, 160px);
}

.text-1--card-bg {
  font-size: clamp(40px, 8vw, 120px);
  opacity: 0.15;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  color: var(--card-fg, currentColor);
}

.text-3 {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.text-3--card {
  color: var(--card-fg, currentColor);
}

.text-4 {
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.text-5 {
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

.text-7 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.text-7--card {
  color: var(--card-fg, currentColor);
}

.text-8 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
}

.text-8--card {
  color: var(--card-footer-fg, currentColor);
}

/* ─── Layout Root ─── */

.layout-root {
  position: relative;
  min-height: 100vh;
}

.layout-inner {
  position: relative;
}

.section {
  position: relative;
}

/* ─── Headline reveal animation ─── */

.headline[data-reveal="headline"] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

.headline[data-reveal="headline"].revealed {
  opacity: 1;
  transform: translateY(0);
}
