/* ============================================================
   505 ROSE — SITE STYLES
   Design system evolved from the deck:
     - Bolder display: Fraktion Mono / DM Serif Display feel via Source Serif 4 high contrast + tighter tracking
     - UI sans: Inter Tight (kept) but pushed lighter
     - Mono: JetBrains Mono (kept)
     - Palette: deeper graphite black, warmer paper, brick + teal accents,
       plus a new high-impact "ember" red for moments of emphasis.
   ============================================================ */

:root {
  --paper: #f4ede0;
  --paper-2: #ece2cf;
  --paper-3: #e3d6bd;
  --ink: #14110d;
  --ink-2: #3a342b;
  --muted: #8a7f6c;
  --rule: #1c1812;
  --rule-soft: rgba(20,17,13,.18);

  --brick: #a85a3c;
  --brick-deep: #7d3d24;
  --teal: #2f6b6b;
  --ember: #d44a2a;
  --gold: #c9954a;

  --serif: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter Tight', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1640px;
  --gutter: 48px;

  --ease-out: cubic-bezier(.16,.84,.3,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: var(--serif);
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

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

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
.eyebrow.no-rule::before { display: none; }

.h-display {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 0.9;
}
.h-display em { font-style: italic; color: var(--brick); font-weight: 300; }

.h-mega { font-size: clamp(80px, 12vw, 220px); }
.h-xl   { font-size: clamp(56px, 8vw, 140px); }
.h-l    { font-size: clamp(40px, 5.4vw, 88px); }
.h-m    { font-size: clamp(32px, 3.4vw, 56px); }
.h-s    { font-size: clamp(22px, 2vw, 32px); }

.lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.35;
  color: var(--ink-2);
}
.body-lg {
  font-family: var(--serif);
  font-size: clamp(18px, 1.3vw, 22px);
  line-height: 1.55;
  color: var(--ink-2);
}
.body {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
}
.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap-narrow {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  mix-blend-mode: difference;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav .brand { display: flex; align-items: baseline; gap: 10px; }
.nav .brand .num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-transform: none;
  line-height: 1;
}
.nav .brand .name {
  font-size: 11px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  position: relative;
  padding: 4px 0;
  opacity: 0.75;
  transition: opacity .3s var(--ease-out);
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active::after {
  content:'';
  position:absolute;
  left: -4px; right: -4px; bottom: -3px;
  height: 1px;
  background: currentColor;
}
.nav .cta-mini {
  border: 1px solid currentColor;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background .3s, color .3s;
}
.nav .cta-mini:hover { background: currentColor; color: var(--ink); }

/* On light pages, kill mix-blend so it stays brick-on-paper */
.nav.light {
  mix-blend-mode: normal;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(244,237,224,.92) 0%, rgba(244,237,224,0) 100%);
  backdrop-filter: blur(2px);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer.foot {
  background: var(--ink);
  color: var(--paper);
  padding: 100px var(--gutter) 36px;
  margin-top: 0;
}
footer.foot .foot-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(244,237,224,.18);
}
footer.foot h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
footer.foot h3 em { color: var(--brick); font-style: italic; }
footer.foot .col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244,237,224,.6);
  margin-bottom: 18px;
  font-weight: 400;
}
footer.foot .col a, footer.foot .col p {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--paper);
  margin-bottom: 8px;
  opacity: 0.85;
  transition: opacity .25s, color .25s;
}
footer.foot .col a:hover { opacity: 1; color: var(--gold); }
footer.foot .disclaimer {
  max-width: var(--maxw);
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(244,237,224,.12);
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(244,237,224,.45);
}
footer.foot .colophon {
  max-width: var(--maxw);
  margin: 28px auto 0;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244,237,224,.5);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  transition: transform .3s var(--ease-out), background .3s, color .3s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); background: var(--brick); border-color: var(--brick); }
.btn .arr { font-size: 14px; transition: transform .3s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.light:hover { background: var(--brick); border-color: var(--brick); color: var(--paper); }

/* ============================================================
   SCROLL REVEAL UTILITY
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }
.reveal.delay-5 { transition-delay: .40s; }

/* Fallback: if JS never runs (no <html class="js">), show everything. */
html:not(.js) .reveal,
html:not(.js) .split-reveal { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .split-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

.split-reveal { overflow: hidden; display: inline-block; vertical-align: top; }
.split-reveal > .line {
  display: block;
  transform: translateY(110%);
  transition: transform 1.05s var(--ease-out);
}
.split-reveal.in > .line { transform: none; }
.split-reveal.d2 > .line { transition-delay: .12s; }
.split-reveal.d3 > .line { transition-delay: .24s; }

/* ============================================================
   MARQUEE / TICKER
   ============================================================ */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  padding: 22px 0;
}
.ticker-track {
  display: inline-flex;
  gap: 80px;
  white-space: nowrap;
  animation: ticker 60s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(36px, 5vw, 80px);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.025em;
}
.ticker-track span:nth-child(odd) { color: var(--brick); }
.ticker-track .dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  align-self: center;
  transform: translateY(0.15em);
  background: var(--ink);
  display: inline-block;
  vertical-align: middle;
  margin: 0 12px;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   PILLS / TAGS
   ============================================================ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
}
.pill.brick { background: var(--brick); }
.pill.teal  { background: var(--teal); }
.pill.outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }

/* ============================================================
   GLOBAL FX
   ============================================================ */
.grain::before {
  content:'';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(rgba(0,0,0,.6) 1px, transparent 1px);
  background-size: 3px 3px;
}
