/* Retain — Design tokens */
:root {
  /* Surfaces (warm off-whites) */
  --bg: #f6f4ef;
  --bg-elev: #fbfaf6;
  --bg-sunken: #efece5;
  --bg-deep: #e8e4db;

  /* Ink (graphite) */
  --ink: #14130f;
  --ink-2: #2a2925;
  --ink-3: #5b5950;
  --ink-4: #8b8a82;
  --ink-5: #b8b6ac;
  --hairline: rgba(20, 19, 15, 0.08);
  --hairline-strong: rgba(20, 19, 15, 0.16);

  /* Accent — orange */
  --accent: #ec6a3a;
  --accent-soft: #f4a583;
  --accent-glow: rgba(236, 106, 58, 0.18);
  --accent-deep: #c9501f;

  /* Holographic accent stops (used in gradients only, sparingly) */
  --holo-1: #f4a583; /* peach */
  --holo-2: #d8b4f0; /* lavender */
  --holo-3: #9bd4d8; /* cyan-mint */
  --holo-4: #f6f4ef; /* paper */

  /* Type scale */
  --t-display: clamp(2.88rem, 5.76vw, 5.76rem);
  --t-h1: clamp(2.16rem, 3.78vw, 3.6rem);
  --t-h2: clamp(1.8rem, 2.8vw, 2.6rem);
  --t-h3: clamp(1.2rem, 1.6vw, 1.5rem);
  --t-body: 1.0625rem;
  --t-small: 0.875rem;
  --t-micro: 0.72rem;

  /* Spacing */
  --pad-section: clamp(5rem, 10vw, 9rem);
  --pad-section-tight: clamp(3rem, 6vw, 5rem);
  --gutter: clamp(1.5rem, 4vw, 3rem);

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  font-feature-settings: "ss01", "ss03", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

/* Hairlines */
.hr { height: 1px; background: var(--hairline); width: 100%; }

/* Topographic contour-line texture (subtle, repeats) — used as page background overlay */
.topo-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='800' viewBox='0 0 1200 800'><g fill='none' stroke='%231a1a1a' stroke-width='0.5' opacity='0.06'><path d='M-50 600 Q 200 540 460 590 T 900 560 T 1300 600'/><path d='M-50 560 Q 200 490 460 540 T 900 510 T 1300 550'/><path d='M-50 520 Q 200 440 460 490 T 900 460 T 1300 500'/><path d='M-50 480 Q 200 390 460 440 T 900 410 T 1300 450'/><path d='M-50 440 Q 200 340 460 390 T 900 360 T 1300 400'/><path d='M-50 400 Q 200 290 460 340 T 900 310 T 1300 350'/><path d='M-50 360 Q 200 240 460 290 T 900 260 T 1300 300'/><path d='M-50 320 Q 200 190 460 240 T 900 210 T 1300 250'/></g></svg>");
  background-size: 1200px 800px;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Holographic shimmer (used on key accents only) */
.holo-text {
  background: linear-gradient(100deg,
    var(--holo-1) 0%, var(--holo-2) 35%, var(--holo-3) 70%, var(--holo-1) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: holo-shift 8s linear infinite;
}
@keyframes holo-shift {
  to { background-position: -200% 0; }
}

/* Mono labels */
.mono {
  font-family: "Geist Mono", ui-monospace, "SF Mono", monospace;
  font-size: var(--t-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Section + container */
.section { position: relative; padding: var(--pad-section) 0; }
.section--tight { padding: var(--pad-section-tight) 0; }
.section--sunken { background: var(--bg-sunken); }
.section--deep { background: var(--bg-deep); }
.container {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Headlines */
.headline {
  font-family: "Geist", sans-serif;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: var(--ink);
}
.subline {
  color: var(--ink-3);
  font-size: 1.15rem;
  line-height: 1.5;
  max-width: 56ch;
  letter-spacing: -0.005em;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms var(--ease-out), background 180ms, border-color 180ms, color 180ms;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: var(--accent-deep); }
.btn--ghost { color: var(--ink-2); border-color: var(--hairline-strong); background: transparent; }
.btn--ghost:hover { background: var(--bg-elev); border-color: var(--hairline-strong); }
.btn--text { color: var(--ink-2); padding-left: 0; padding-right: 0; }
.btn--text:hover { color: var(--accent-deep); }

.btn .arrow { transition: transform 180ms var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

/* Card */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 2rem;
  transition: border-color 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.card:hover { border-color: var(--hairline-strong); }

/* Holo border (used on hero card / featured surfaces) */
.holo-border {
  position: relative;
  background: var(--bg-elev);
  border-radius: var(--r-lg);
}
.holo-border::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--holo-1) 0%, var(--holo-2) 50%, var(--holo-3) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
}

/* Footer prep */
footer { background: var(--bg-deep); }
