/* ============================================================
   ORELIS — SHARED DESIGN SYSTEM
   Obsidian · Orelis Red · Orelis Gold · Inter / Instrument Serif
   ============================================================ */

:root {
  /* Palette */
  --obsidian: #0A0908;
  --obsidian-2: #0E0D0B;
  --slate: #1A1916;
  --line: rgba(230, 226, 217, 0.07);
  --line-strong: rgba(230, 226, 217, 0.16);
  --silver: #6f6c66;
  --mist: #B5B2AA;
  --ivory: #EDEAE2;
  --white: #FAFAF7;
  --red: #C72620;
  --red-deep: #8B1A15;
  --gold: #D4AF37;

  /* Type */
  --display: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --body: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Layout */
  --max-w: 1440px;
  --nav-h: 76px;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--obsidian);
  color: var(--ivory);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; line-height: 1.5; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: 0; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--red); color: var(--white); }

/* ============================================================
   CINEMATIC AMBIENT BACKGROUND
   - Fixed obsidian base
   - Two slowly drifting radial blobs (red & gold) with heavy blur
   - Canvas particle/dust layer
   - SVG noise grain overlay
   - Vignette
   ============================================================ */
.amb {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--obsidian);
}
.amb__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
  will-change: transform;
}
.amb__blob--red {
  width: 70vmax; height: 70vmax;
  left: -25vmax; top: -20vmax;
  background: radial-gradient(circle, rgba(199, 38, 32, 0.85) 0%, rgba(199, 38, 32, 0) 65%);
  animation: blobDrift 38s ease-in-out infinite alternate;
}
.amb__blob--gold {
  width: 55vmax; height: 55vmax;
  right: -15vmax; bottom: -15vmax;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.55) 0%, rgba(212, 175, 55, 0) 65%);
  animation: blobDrift2 46s ease-in-out infinite alternate;
}
.amb__blob--deep {
  width: 50vmax; height: 50vmax;
  left: 40vw; top: 30vh;
  background: radial-gradient(circle, rgba(139, 26, 21, 0.55) 0%, rgba(139, 26, 21, 0) 60%);
  opacity: 0.4;
  animation: blobDrift3 52s ease-in-out infinite alternate;
}
@keyframes blobDrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(8vw, 6vh) scale(1.12); }
}
@keyframes blobDrift2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-10vw, -8vh) scale(0.92); }
}
@keyframes blobDrift3 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-12vw, 10vh) scale(1.08); }
}
.amb__particles {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.amb__grain {
  position: absolute; inset: -50%;
  opacity: 0.10;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.amb__vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 35%, transparent 30%, rgba(10, 9, 8, 0.6) 75%, var(--obsidian) 100%),
    linear-gradient(180deg, rgba(10,9,8,0.5) 0%, transparent 25%, transparent 75%, rgba(10,9,8,0.7) 100%);
}
.amb__parallax {
  position: absolute; inset: 0;
  transition: transform 1.2s cubic-bezier(.16,.84,.44,1);
  will-change: transform;
}

/* ============================================================
   PAGE SCAFFOLD
   ============================================================ */
.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page__inner {
  flex: 1;
}
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) { .container { padding: 0 20px; } }

/* ============================================================
   FLOATING PILL NAV (liquid glass)
   ============================================================ */
.nav {
  position: fixed;
  top: 22px; left: 0; right: 0;
  z-index: 50;
  display: flex; justify-content: center;
  padding: 0 24px;
  pointer-events: none;
}
.nav__pill {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 7px 7px 18px;
  border-radius: 999px;
  background: rgba(14, 13, 11, 0.55);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.08),
    0 8px 32px -8px rgba(0, 0, 0, 0.55);
  position: relative;
  overflow: visible;
}
.nav__pill::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 999px;
  padding: 1px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.22) 0%,
    rgba(255,255,255,0.04) 35%,
    rgba(255,255,255,0) 65%,
    rgba(255,255,255,0.06) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory);
  padding-right: 18px;
  margin-right: 8px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.nav__brand svg { display: block; }
.nav__links {
  display: flex; align-items: center; gap: 2px;
}
.nav__link {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 9px 16px;
  color: var(--mist);
  border-radius: 999px;
  transition: color .2s, background .2s;
  position: relative;
}
.nav__link:hover { color: var(--ivory); background: rgba(255,255,255,0.05); }
.nav__link--active {
  color: var(--ivory);
  background: rgba(255,255,255,0.07);
}
.nav__cta {
  font-family: var(--display);
  font-weight: 500;
  font-size: 13px;
  padding: 9px 18px;
  background: var(--ivory);
  color: var(--obsidian);
  border-radius: 999px;
  margin-left: 6px;
  transition: background .2s, transform .2s;
}
.nav__cta:hover { background: var(--white); transform: translateY(-1px); }
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__cta   { display: none; }
  .nav__brand { border-right: 0; margin-right: 0; padding-right: 10px; }
}

/* ---- Hamburger button ---- */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 34px;
  background: linear-gradient(135deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.03) 100%);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 4px 16px -4px rgba(0,0,0,0.4);
  cursor: pointer;
  flex-shrink: 0;
  overflow: visible;
  transition: background .2s, border-color .2s;
}
.nav__burger:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.06) 100%);
  border-color: rgba(255,255,255,0.22);
}
.nav__burger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ivory);
  border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease;
  transform-origin: center;
  position: relative;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (max-width: 720px) { .nav__burger { display: flex; } }

/* ---- Mobile menu — glass card drop-down ---- */
.nav__mobile {
  position: fixed;
  top: 74px;
  left: 16px; right: 16px;
  z-index: 100;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 50%, rgba(255,255,255,0.05) 100%),
    linear-gradient(180deg, rgba(20,18,14,0.55), rgba(10,9,8,0.45));
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 24px 60px -20px rgba(0,0,0,0.7);
  padding: 12px 8px 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  transform-origin: top center;
}
.nav__mobile.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.nav__mobile-link {
  font-family: var(--display);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: rgba(237, 234, 226, 0.55);
  text-decoration: none;
  padding: 13px 20px;
  border-radius: 12px;
  transition: background .18s, color .18s;
}
.nav__mobile-link:hover { color: var(--ivory); background: rgba(255,255,255,0.06); }
.nav__mobile-link--active { color: var(--ivory); }
.nav__mobile-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 6px 12px;
}
.nav__mobile-cta {
  margin: 6px 8px 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--obsidian);
  background: var(--ivory);
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background .2s;
  display: block;
}
.nav__mobile-cta:hover { background: var(--white); }

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-bar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 1px; z-index: 60;
  background: rgba(255, 255, 255, 0.04);
}
.progress-bar__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transition: width 0.1s linear;
}

/* ============================================================
   TYPE — DISPLAY HEADINGS
   ============================================================ */
.display-xl {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.display-lg {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(44px, 7.5vw, 108px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.display-md {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(36px, 5.4vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.display-sm {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.serif-em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}
.strong-em {
  font-weight: 600;
  color: var(--white);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--gold);
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--gold);
}
.eyebrow--dot::before {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--mist);
  max-width: 620px;
  text-wrap: pretty;
}
.lead strong { color: var(--ivory); font-weight: 500; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: background .2s, color .2s, transform .2s, box-shadow .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; }
.btn--primary {
  background: var(--ivory);
  color: var(--obsidian);
  box-shadow: 0 14px 40px -16px rgba(250, 250, 247, 0.35);
}
.btn--primary:hover {
  background: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 18px 44px -16px rgba(250, 250, 247, 0.5);
}
.btn--red {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 0 0 1px rgba(199, 38, 32, 0.4), 0 14px 32px -16px rgba(199, 38, 32, 0.8);
}
.btn--red:hover {
  background: #d8302a;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(199, 38, 32, 0.6), 0 18px 40px -16px rgba(199, 38, 32, 0.9);
}
.btn--glass {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ivory);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}
.btn--glass:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   SECTION LABEL
   ============================================================ */
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 12px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--gold);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  z-index: 2;
  padding: 64px 32px 40px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 720px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
.footer__brand {
  display: flex; flex-direction: column; gap: 16px;
}
.footer__brand-mark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory);
}
.footer__tag {
  font-size: 13px;
  color: var(--silver);
  max-width: 320px;
  line-height: 1.55;
}
.footer__tag em { font-family: var(--serif); font-style: italic; color: var(--gold); }
.footer__col h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--silver);
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 500;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  font-size: 13.5px;
  color: var(--ivory);
  opacity: 0.85;
  transition: opacity .2s, color .2s;
}
.footer__col a:hover { color: var(--gold); opacity: 1; }
.footer__base {
  max-width: var(--max-w);
  margin: 56px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--silver);
  text-transform: uppercase;
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(.16,.84,.44,1), transform 0.9s cubic-bezier(.16,.84,.44,1);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"].revealed { transition-delay: 0.08s; }
[data-reveal-delay="2"].revealed { transition-delay: 0.16s; }
[data-reveal-delay="3"].revealed { transition-delay: 0.24s; }
[data-reveal-delay="4"].revealed { transition-delay: 0.32s; }
[data-reveal-delay="5"].revealed { transition-delay: 0.40s; }

/* PAGE TRANSITION — fade in body */
body.is-loading { opacity: 0; }
body { opacity: 1; transition: opacity 0.4s ease; }

/* ============================================================
   UTILS
   ============================================================ */
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.col { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-12 { margin-top: 12px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.text-mist { color: var(--mist); }
.text-silver { color: var(--silver); }
.text-gold { color: var(--gold); }
.text-center { text-align: center; }

/* Mono caption */
.cap {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--silver);
  text-transform: uppercase;
}
