/* Note Systems — base: tokens, reset, typography (BRAND.md, locked) */

:root {
  --bg: #0A0B0D;
  --surface-1: #101215;
  --surface-2: #16191E;
  --surface-3: #1C2026;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --text-1: #F2F3F5;
  --text-2: #9AA0A8;
  --text-3: #5F6670;

  --brass: #C9A96E;
  --brass-hover: #D9BC85;
  --brass-dim: rgba(201, 169, 110, 0.14);

  --up: #3DD68C;
  --down: #E5484D;
  --warn: #E0A94A;
  --info: #7AA2F7;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 8px 24px rgba(0, 0, 0, 0.45);

  --font-display: 'Cabinet Grotesk', 'Switzer', system-ui, sans-serif;
  --font-body: 'Switzer', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 600ms;

  --max: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(96px, 11vw, 160px);

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

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

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

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

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

::selection {
  background: var(--brass-dim);
  color: var(--text-1);
}

/* Type styles (max 5 per screen) */
.t-hero {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.t-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.t-h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.t-body {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-2);
}

.t-lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--text-2);
  text-wrap: pretty;
}

.t-small {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
}

.t-label {
  font-size: 12px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}

.t-num {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 400ms var(--ease), border-color 400ms var(--ease), color 400ms var(--ease);
}

.btn-primary {
  background: var(--brass);
  color: #0A0B0D;
}

.btn-primary:hover {
  background: var(--brass-hover);
}

.btn-secondary {
  border: 1px solid var(--line-strong);
  color: var(--text-1);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

.link {
  color: var(--text-1);
  font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 400ms var(--ease);
}

.link:hover {
  border-color: var(--text-1);
}

/* Card */
.card {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color 500ms var(--ease);
}

.card:hover {
  border-color: var(--line-strong);
}

/* Scroll reveal: opacity + 12px only */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: var(--delay, 0ms);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
