/* Base reset + premium type scale + layout — Soft Structuralism */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-6));
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--surface-1);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11", "ss01";
}

/* ── Premium Type Scale ── */
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-blue); text-decoration: none; transition: color var(--duration-fast) var(--ease-spring); }
a:hover { color: var(--brand-blue-bright); }

/* Display headings — massive, editorial */
.display-1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}
.display-2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}
.display-3 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}

/* Section headings */
h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
}
h4 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* Body copy */
p { max-width: 72ch; text-wrap: pretty; color: var(--text-secondary); }
.lead {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 60ch;
  font-weight: 400;
}
.muted { color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.small { font-size: 14px; line-height: 1.5; }

/* Eyebrow / kicker — micro, punchy */
.eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin: 0 0 var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan));
  border-radius: 2px;
}

/* Brand text selection */
::selection { background: var(--brand-blue); color: var(--white); }
::-moz-selection { background: var(--brand-blue); color: var(--white); }

/* ── Layout Primitives ── */
.wrap { width: var(--wrap); margin-inline: auto; }
.wrap-narrow { width: var(--wrap-narrow); margin-inline: auto; }

.section { padding: var(--space-9) 0; }
@media (max-width: 900px) { .section { padding: var(--space-8) 0; } }
@media (max-width: 600px) { .section { padding: var(--space-7) 0; } }

.section--compact { padding: var(--space-7) 0; }
.section--tight { padding: var(--space-6) 0; }

/* Skip link — premium */
.skip-link {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: var(--z-tooltip);
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--r-control);
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform var(--duration-base) var(--ease-spring);
}
.skip-link:focus { transform: translateY(0); outline: 3px solid var(--focus-ring); outline-offset: 3px; }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Screen-reader only */
.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;
}

/* Noise texture — fixed overlay for physical feel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px;
}
header, main, footer { position: relative; z-index: 2; }