/* ========================================================================
   ALTIPRO — Sherpa heritage redesign
   Tokens, type, primitives. Shared across all pages.
   ======================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@400;500;600;700;800&family=Inter+Tight:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500;600&family=Newsreader:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  /* AltiPro brand palette — sampled from the actual logo:
     dark navy peak + alpine green arc + clean paper. */
  --burgundy:        #1B2A3E;   /* dark navy — primary (peak silhouette) */
  --burgundy-deep:   #0E1A2A;   /* deepest navy */
  --burgundy-soft:   #2E4360;   /* tint */
  --saffron:         #2E8B57;   /* alpine green — accent (the arc) */
  --saffron-deep:    #206A40;
  --saffron-soft:    #4DAE7B;
  --off-white:       #F5F3EE;   /* page bg — clean warm white */
  --bone:            #ECE9E1;   /* slightly cooler card neutral */
  --paper:           #FAF9F5;
  --ink:             #14181F;
  --ink-soft:        #2A2F38;
  --stone:           #6B7480;
  --stone-light:     #B4BAC2;
  --hairline:        rgba(20, 24, 31, 0.10);
  --hairline-strong: rgba(20, 24, 31, 0.22);
  --hairline-dark:   rgba(244, 242, 236, 0.16);

  /* Type — defaults to "Operator" system (industrial expedition poster).
     Tweaks panel swaps these vars to switch systems. */
  --font-display: 'Big Shoulders Display', 'Impact', sans-serif;
  --font-sans:    'Inter Tight', 'Helvetica Neue', sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', monospace;

  --display-weight: 600;
  --display-tracking: -0.02em;
  --display-leading: 0.88;
  --display-transform: none;        /* uppercase | none */

  --italic-style: normal;           /* italic for serif systems, normal for sans/mono */
  --emph-color: var(--saffron);     /* color of <i>/<em> inside .serif */
  --emph-weight: 700;

  /* Scale */
  --container: 1440px;
  --gutter: clamp(20px, 3vw, 48px);

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--off-white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---- Typographic primitives ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--stone);
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--saffron);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
  transform: translateY(-1px);
}
.serif {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: var(--display-leading);
  text-transform: var(--display-transform);
}
.serif i, .serif em {
  font-style: var(--italic-style);
  color: var(--emph-color);
  font-weight: var(--emph-weight);
}

.mono { font-family: var(--font-mono); letter-spacing: 0.04em; }
.num  { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---- Layout primitives ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(80px, 10vw, 160px) 0; }

.rule { height: 1px; background: var(--hairline); width: 100%; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--burgundy);
  color: var(--off-white);
}
.btn-primary:hover { background: var(--burgundy-deep); transform: translateY(-1px); }

.btn-saffron {
  background: var(--saffron);
  color: var(--off-white);
}
.btn-saffron:hover { background: var(--saffron-deep); color: var(--off-white); }

.btn-ghost {
  border: 1px solid var(--hairline-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--off-white); }

.btn-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
}

.arrow { width: 14px; height: 10px; display: inline-block; transition: transform 0.3s var(--ease-out); }
.btn:hover .arrow, .btn-link:hover .arrow { transform: translateX(4px); }

/* ---- Nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out), padding 0.4s var(--ease-out), top 0.4s var(--ease-out);
  mix-blend-mode: normal;
}
/* When ticker is present, push nav down */
body.has-ticker .nav { top: 34px; }
.nav.is-light { color: var(--off-white); }
.nav.is-dark  { color: var(--ink); }
.nav.is-solid {
  background: var(--off-white);
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
  padding-top: 14px; padding-bottom: 14px;
}
.nav .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
}
.nav .logo .logo-mark {
  display: inline-block;
  width: 32px; height: 32px;
  flex-shrink: 0;
}
.nav .logo .logo-mark svg { width: 100%; height: 100%; display: block; }
.nav .logo .logo-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.06em;
  line-height: 0.9;
  display: flex;
  flex-direction: column;
}
.nav .logo .logo-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.34em;
  font-weight: 500;
  opacity: 0.72;
  margin-top: 2px;
  display: inline-block;
}
.nav-links {
  display: flex; gap: 28px; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: currentColor;
  transition: right 0.3s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--burgundy);
  color: var(--off-white);
  border-radius: 999px;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.3s var(--ease-out);
}
.nav-cta:hover { background: var(--burgundy-deep); color: var(--off-white); }

/* ---- Footer ---- */
.footer {
  background: var(--ink);
  color: var(--off-white);
  padding: 80px var(--gutter) 32px;
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--hairline-dark);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { font-size: 56px; }
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-light);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer a { opacity: 0.75; transition: opacity 0.2s, color 0.2s; }
.footer a:hover { opacity: 1; color: var(--saffron); }
.footer-bottom {
  max-width: var(--container);
  margin: 32px auto 0;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone-light);
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 80px;
  line-height: 0.9;
  margin-bottom: 24px;
}
.footer-brand i { font-style: var(--italic-style); color: var(--emph-color); font-weight: var(--emph-weight); }
.footer-tag { max-width: 320px; opacity: 0.7; line-height: 1.6; font-size: 14px; }

/* ---- Hairlined card pattern ---- */
.card-line {
  border: 1px solid var(--hairline);
  background: var(--paper);
  transition: border-color 0.3s, transform 0.3s;
}
.card-line:hover { border-color: var(--hairline-strong); }

/* utility colors */
.bg-ink { background: var(--ink); color: var(--off-white); }
.bg-burgundy { background: var(--burgundy); color: var(--off-white); }
.bg-bone { background: var(--bone); }
.bg-paper { background: var(--paper); }

/* Reveal-on-scroll baseline */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1200px) {
  .nav-links { gap: 20px; font-size: 10px; }
}
@media (max-width: 1024px) {
  .nav-links { display: none; }
}
