/* ============================================================
   Rebel Advisory — Minimalist Editorial refinements
   Palette: Carbon #0F1115 · Paper #F9FAFB · Sage #6B7280
   ============================================================ */

:root {
  --carbon: #0F1115;  /* soft charcoal ink */
  --paper:  #F4F1E9;  /* warm bone canvas */
  --sage:   #6E685F;  /* warm stone — muted text/labels */
}

/* ---- Self-hosted webfonts — no third-party requests (GDPR) ---- */
/* Variable fonts, latin + latin-ext subsets. Regenerate per handover notes. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/hanken-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/hanken-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

html { -webkit-text-size-adjust: 100%; }
body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Hero engineering-grid texture — subtle institutional depth, not decoration */
.hero-grid {
  background-image:
    linear-gradient(to right,  rgba(15, 17, 21, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 17, 21, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* ---- Three Pillars: the spine ---- */
/* Hairline dividers between pillar columns + node markers on the top rule */
.spine .pillar + .pillar { box-shadow: -1px 0 0 rgba(15, 17, 21, 0.12); }

.pillar-node {
  position: absolute;
  top: -2px; left: 0;
  height: 2px; width: 0;
  background: var(--carbon);
  transition: width 700ms cubic-bezier(0.2, 0, 0, 1);
}
.spine.in-view .pillar:nth-child(1) .pillar-node { width: 40%; transition-delay: 80ms; }
.spine.in-view .pillar:nth-child(2) .pillar-node { width: 40%; transition-delay: 220ms; }
.spine.in-view .pillar:nth-child(3) .pillar-node { width: 40%; transition-delay: 360ms; }

@media (max-width: 767px) {
  .spine .pillar + .pillar { box-shadow: none; border-top: 1px solid rgba(15, 17, 21, 0.12); margin-top: 2rem; padding-top: 2rem; }
}

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms cubic-bezier(0.2, 0, 0, 1), transform 650ms cubic-bezier(0.2, 0, 0, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Stagger hero reveals */
#top .reveal:nth-child(1) { transition-delay: 0ms; }
#top .reveal:nth-child(2) { transition-delay: 90ms; }
#top .reveal:nth-child(3) { transition-delay: 180ms; }
#top .reveal:nth-child(4) { transition-delay: 270ms; }
#top .reveal:nth-child(5) { transition-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .pillar-node { transition: none !important; width: 40% !important; }
  html { scroll-behavior: auto !important; }
}
