/* =====================================================================
   OAF — CULTURAL INFRASTRUCTURE & OPERATIONS COMPANY
   BRAND.CSS — Master Design System (Source of Truth)
   ---------------------------------------------------------------------
   Every OAF asset (homepage, Juneteenth, decks, media kits, proposals)
   inherits these tokens. Do not hardcode colors or type elsewhere —
   reference the variables below so the system stays cohesive.
   Version 1.0  •  Palette: Black / Red / White (interchangeable)
   ===================================================================== */

/* ---------- 1. COLOR ------------------------------------------------- */
:root {
  /* Core brand */
  --ink:          #0B0B0C;   /* near-black, primary text + dark grounds */
  --ink-800:      #141416;
  --ink-700:      #1C1C20;
  --ink-600:      #2A2A30;

  --paper:        #F4F1EA;   /* warm gallery white, primary light ground */
  --paper-pure:   #FFFFFF;   /* card / elevated surfaces */
  --paper-dim:    #EAE6DC;

  --red:          #C8102E;   /* OAF signature red */
  --red-deep:     #8E0A20;   /* depth, hovers on dark */
  --red-bright:   #E11D32;   /* accents on dark grounds */

  /* Neutrals derived for hierarchy */
  --ink-mute:     rgba(11,11,12,.62);
  --ink-faint:    rgba(11,11,12,.42);
  --paper-mute:   rgba(244,241,234,.70);
  --paper-faint:  rgba(244,241,234,.46);

  /* Lines */
  --line:         rgba(11,11,12,.14);
  --line-soft:    rgba(11,11,12,.08);
  --line-inv:     rgba(244,241,234,.16);
  --line-inv-soft:rgba(244,241,234,.09);

  /* Functional */
  --bg:           var(--paper);
  --fg:           var(--ink);
  --accent:       var(--red);

  /* ---------- 2. TYPE ---------------------------------------------- */
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    "Space Mono", "SFMono-Regular", ui-monospace, monospace;

  /* Fluid type scale (clamp: min, fluid, max) */
  --t-mega:   clamp(3.2rem, 8.5vw, 8rem);
  --t-h1:     clamp(2.6rem, 6vw, 5.25rem);
  --t-h2:     clamp(2rem, 4.2vw, 3.5rem);
  --t-h3:     clamp(1.4rem, 2.4vw, 2rem);
  --t-h4:     clamp(1.15rem, 1.6vw, 1.4rem);
  --t-lead:   clamp(1.15rem, 1.8vw, 1.5rem);
  --t-body:   clamp(1rem, 1.05vw, 1.0625rem);
  --t-small:  0.875rem;
  --t-eyebrow:0.75rem;

  /* ---------- 3. SPACE & RADIUS ------------------------------------ */
  --space-section: clamp(5rem, 11vw, 10rem);
  --gutter:        clamp(1.25rem, 5vw, 6rem);
  --maxw:          1320px;
  --maxw-text:     720px;

  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 18px;
  --r-xl: 28px;

  /* ---------- 4. MOTION -------------------------------------------- */
  --ease:      cubic-bezier(.22,.61,.36,1);
  --ease-out:  cubic-bezier(.16,1,.3,1);
  --dur:       .6s;
  --dur-fast:  .3s;

  /* ---------- 5. ELEVATION ----------------------------------------- */
  --shadow-sm: 0 1px 2px rgba(11,11,12,.06), 0 4px 14px rgba(11,11,12,.05);
  --shadow-md: 0 10px 40px rgba(11,11,12,.10);
  --shadow-lg: 0 30px 80px rgba(11,11,12,.18);
}

/* ---------- 6. RESET ------------------------------------------------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration:.001ms !important; transition-duration:.001ms !important; }
}
body {
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--red); color: #fff; }

/* ---------- 7. TYPE PRIMITIVES -------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 380;
  line-height: .98;
  letter-spacing: -.02em;
  font-optical-sizing: auto;
}
.serif { font-family: var(--font-display); }
.mono  { font-family: var(--font-mono); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: .7em;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  display: inline-block;
}
.eyebrow.no-rule::before { display: none; }

.lead {
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--ink-mute);
  max-width: var(--maxw-text);
}

/* ---------- 8. LAYOUT HELPERS --------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

/* Inverted (dark) ground utility — reuse anywhere */
.ground-dark {
  --bg: var(--ink);
  --fg: var(--paper);
  --ink-mute: var(--paper-mute);
  --ink-faint: var(--paper-faint);
  --line: var(--line-inv);
  --line-soft: var(--line-inv-soft);
  --accent: var(--red-bright);
  background: var(--ink);
  color: var(--paper);
}
.ground-dark .eyebrow { color: var(--red-bright); }
.ground-red {
  --bg: var(--red);
  --fg: #fff;
  background: var(--red);
  color: #fff;
}

/* ---------- 9. BUTTONS ---------------------------------------------- */
.btn {
  --bw: 1.5px;
  display: inline-flex;
  align-items: center;
  gap: .65em;
  font-family: var(--font-mono);
  font-size: var(--t-small);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 1.05em 1.7em;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .btn__arrow { transition: transform var(--dur-fast) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--solid   { background: var(--red); color: #fff; }
.btn--solid:hover { background: var(--red-deep); }
.btn--ink     { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-700); }
.btn--ghost   { border: var(--bw) solid currentColor; color: var(--fg); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); }
.btn--light   { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; }

/* ---------- 10. REVEAL ANIMATION ----------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }
[data-reveal-delay="5"] { transition-delay: .40s; }
