:root {
  --bg: #f6f5f1;
  --bg-2: #efede7;
  --paper: #fbfaf6;
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --muted: #6b6b66;
  --muted-2: #98968f;
  --line: rgba(10, 10, 10, 0.08);
  --line-strong: rgba(10, 10, 10, 0.16);
  --accent: #ff5a1f;
  --accent-soft: rgba(255, 90, 31, 0.12);
  --container: 1280px;
  --radius: 18px;
  --radius-lg: 28px;
  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

button, input, textarea, select { font: inherit; color: inherit; }

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

/* Typography scale */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.eyebrow .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: middle; transform: translateY(-1px); }

.h-display {
  font-size: clamp(48px, 7.5vw, 124px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}
.h-1 {
  font-size: clamp(40px, 5.4vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.038em;
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}
.h-2 {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.028em;
  font-weight: 500;
  margin: 0;
}
.h-3 {
  font-size: clamp(20px, 1.5vw, 24px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0;
}
.lede {
  font-size: clamp(17px, 1.25vw, 21px);
  line-height: 1.5;
  color: var(--muted);
  letter-spacing: -0.012em;
  font-weight: 400;
  text-wrap: pretty;
}
.body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/* Layout */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

section { position: relative; }

/* Reusable */
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s, color 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.btn:active { transform: scale(0.98); }
.btn .arrow {
  display: inline-flex;
  width: 24px; height: 24px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s;
}
.btn:hover .arrow { transform: translateX(3px) rotate(-45deg); }
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: #000; }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover { border-color: var(--ink); background: rgba(0,0,0,0.03); }
.btn-secondary .arrow { background: rgba(0,0,0,0.05); color: var(--ink); }

/* Tag / pill */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.tag .num { color: var(--accent); }

/* Subtle reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Section header pattern */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  padding-bottom: 64px;
}
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}

/* Marquee */
.marquee {
  display: flex;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 56px;
  align-items: center;
  flex-shrink: 0;
  animation: marquee 48s linear infinite;
  padding-right: 56px;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: clamp(22px, 2.4vw, 36px);
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 400;
}
.marquee-item .sep {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-2px);
}

/* Card */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: border-color 0.4s, transform 0.5s cubic-bezier(0.2,0.8,0.2,1), background 0.4s;
  position: relative;
  overflow: hidden;
}
.card:hover { border-color: var(--line-strong); }

/* Focus rings */
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* utility */
.divider { height: 1px; background: var(--line); width: 100%; }
.accent { color: var(--accent); }

/* Hide scrollbar on horizontal scrollers */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }

/* Number / index label */
.idx {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.1em;
}

/* Selection */
::selection { background: var(--ink); color: var(--paper); }
