/* ==========================================================================
   WEBSILY — base: tokens, reset, typography, utilities
   ========================================================================== */

:root {
  /* Dark hero system */
  --onyx: #161616;
  --graphite: #3c3a3e;
  --stone: #7b7a7c;
  --ash: #a2a2a2;
  --silver: #c9c7cc;
  --ember: #ff6436;

  /* Light editorial system */
  --cream: #f8f8f2;
  --card: #ffffff;
  --ink: #1a1a1a;
  --ink-60: rgba(26, 26, 26, 0.6);
  --ink-40: rgba(26, 26, 26, 0.4);
  --ink-15: rgba(26, 26, 26, 0.15);
  --powder: #bedbff;
  --mint: #a4f4cf;
  --blush: #ffc9c9;
  --signal: #00c950;

  /* Type */
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Anton', 'Arial Narrow', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;

  /* Layout */
  --page-max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);

  /* Motion */
  --ease-enter: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-exit: cubic-bezier(0.19, 1, 0.22, 1);

  /* Display gradient — letters emerging from darkness into light */
  --grad-display: linear-gradient(rgb(22, 22, 22), rgb(110, 108, 112) 25%, rgb(185, 183, 187) 50%, rgb(220, 214, 214) 75%, rgb(241, 241, 241));
}

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

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

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }

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

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

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

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- Shared layout ---- */

.wrap {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(72px, 10vw, 128px);
}

/* Mono kicker — the "system data" voice */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-60);
}

.kicker::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ember);
  flex-shrink: 0;
}

/* Section heading */
.section-title {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-top: 18px;
  max-width: 16ch;
}

.section-lead {
  margin-top: 20px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--ink-60);
  max-width: 56ch;
}

/* Ghosted monument label behind sections */
.ghost-label {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(72px, 14vw, 200px);
  line-height: 0.8;
  color: #ffffff;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 0.3s var(--ease-enter), background 0.3s var(--ease-enter), color 0.3s var(--ease-enter);
  cursor: pointer;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover { background: #000; transform: translateY(-1px); }

.btn-ghost {
  border: 1px solid var(--ink-15);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover { border-color: var(--ink); }

.btn .arrow { transition: transform 0.3s var(--ease-enter); }
.btn:hover .arrow { transform: translateX(4px); }

/* Reveal-on-scroll — hidden state only when JS is confirmed running,
   so content never stays invisible if scripts fail to load */
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-enter), transform 0.7s var(--ease-enter);
}

html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}
