/* ============================================================
   Prefontaine.design — Design Tokens
   Jewel-tone system. One gem per section, others as accents.
   ============================================================ */

:root {
  /* Emerald family */
  --emerald: #0D5C4A;
  --emerald-bright: #10B981;
  --gold: #C9A84C;
  --gold-soft: rgba(201, 168, 76, 0.55);

  /* Sapphire family */
  --sapphire: #1B3A6B;
  --sapphire-mid: #2563EB;
  --silver: #94A3B8;

  /* Ruby + anchors */
  --ruby: #7B1C2E;
  --ruby-deep: #4A0F1C;
  --teal: #0F4C5C;
  --teal-deep: #0A2E38;

  /* Neutrals */
  --off-white: #F4F1EC;
  --pure-white: #FFFFFF;
  --near-black: #080C0E;

  /* Section-specific deep washes */
  --kiefy-bg: #0A1A14;
  --bridget-bg: #F4F1EC;
  --prefontaine-bg: #0D1B35;

  /* Type */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Motion */
  --ease-settle: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-reveal: 0.9s;

  /* Layout */
  --max-content: 1200px;
  --section-pad: 140px;

  /* Glass — controllable by Tweaks */
  --glass-blur: 16px;
  --glass-sat: 160%;
}

/* ============================================================
   Reset + base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--near-black);
  color: var(--off-white);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.75;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}

p { margin: 0; text-wrap: pretty; }

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

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

::selection { background: var(--gold); color: var(--near-black); }

/* Page-transition wipe */
.page-wipe {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: var(--teal-deep);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

/* ============================================================
   Shared utilities
   ============================================================ */
.wrap {
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  position: relative;
  padding: var(--section-pad) 0;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 28px;
  display: inline-block;
}

.lede {
  font-weight: 300;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.7;
  color: var(--silver);
}

/* ============================================================
   Glass card system
   ============================================================ */
.glass {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 24px 48px rgba(0,0,0,0.5);
}

.glass--emerald {
  background: rgba(13, 92, 74, 0.12);
  border-color: rgba(16, 185, 129, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(16,185,129,0.08),
    0 0 80px rgba(13,92,74,0.15),
    0 24px 48px rgba(0,0,0,0.5);
}

.glass--sapphire {
  background: rgba(27, 58, 107, 0.15);
  border-color: rgba(37, 99, 235, 0.20);
  box-shadow:
    inset 0 1px 0 rgba(37,99,235,0.08),
    0 0 80px rgba(27,58,107,0.15),
    0 24px 48px rgba(0,0,0,0.5);
}

.glass--gold {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(201, 168, 76, 0.30);
  box-shadow:
    inset 0 1px 0 rgba(201,168,76,0.10),
    0 0 60px rgba(201,168,76,0.08),
    0 24px 48px rgba(0,0,0,0.5);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 15px 26px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  color: var(--off-white);
  cursor: pointer;
  transition: all 0.45s var(--ease-settle);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn .arr { transition: transform 0.45s var(--ease-settle); }
.btn:hover .arr { transform: translateX(4px); }

.btn--gold {
  border-color: var(--gold-soft);
  color: var(--gold);
}
.btn--gold:hover {
  background: rgba(201, 168, 76, 0.12);
  border-color: var(--gold);
}

/* ============================================================
   Reduced motion: instant crossfade only
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.15s !important;
  }
}

/* Mobile glass perf */
@media (max-width: 768px) {
  :root { --glass-blur: 8px; --section-pad: 72px; }
}
