/* ───────────────────────────────────────────────
   RISE UTILITIES — SHARED STYLESHEET
   All pages link to this file.
─────────────────────────────────────────────── */

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

:root {
  --bg: #FEFFFC;
  --bg-dark: #1F1F29;
  --ink: #1F1F29;
  --ink-muted: #6B6A72;
  --ink-subtle: #A8A7AE;
  --border: #E3E2DE;
  --accent: #F37021;
  --accent-dark: #C55A15;
  --accent-soft: #FFE8D9;
  --surface: #F7F6F3;
  --surface-2: #EEECEA;
  --white: #FEFFFC;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  background: var(--bg-dark);
  overflow-x: hidden;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* Homepage body bg matches hero so overscroll above the nav never flashes white. */
body:not(.nav-static) { background: var(--bg-dark); }

img { max-width: 100%; display: block; }

/* ── INTRO REVEAL ANIMATIONS (home hero only) ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Hero intro hides until video-triggered .revealed applied. Inner pages override via .nav-static. */
body:not(.nav-static) nav { opacity: 0; }
.hero-eyebrow,
.hero-headline,
.hero-body,
.hero-actions,
.hero-stats { opacity: 0; }

nav.revealed,
body.nav-static nav {
  animation: fadeIn 0.8s var(--ease-out) forwards;
}
.hero.revealed .hero-eyebrow   { animation: fadeUp 0.9s var(--ease-out) 0s    forwards; }
.hero.revealed .hero-headline  { animation: fadeUp 1s   var(--ease-out) 0.15s forwards; }
.hero.revealed .hero-body      { animation: fadeUp 0.9s var(--ease-out) 0.35s forwards; }
.hero.revealed .hero-actions   { animation: fadeUp 0.9s var(--ease-out) 0.5s  forwards; }
.hero.revealed .hero-stats     { animation: fadeUp 0.9s var(--ease-out) 0.7s  forwards; }

/* Inner-page hero reveals instantly */
body.nav-static .hero-eyebrow,
body.nav-static .hero-headline,
body.nav-static .hero-body,
body.nav-static .hero-actions,
body.nav-static .hero-stats { opacity: 1; animation: none; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease-out), background 0.4s var(--ease-out), backdrop-filter 0.4s;
}
nav.scrolled,
body.nav-static nav {
  background: rgba(254, 255, 252, 0.93);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}
nav.scrolled .nav-logo,
body.nav-static .nav-logo { color: var(--ink); }
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--accent); }
nav.scrolled .nav-links a,
body.nav-static .nav-links a { color: var(--ink-muted); }
nav.scrolled .nav-links a:hover,
body.nav-static .nav-links a:hover { color: var(--ink); }
nav.scrolled .nav-links a.active,
body.nav-static .nav-links a.active { color: var(--accent); }

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  background: var(--accent);
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  transition: transform 0.15s var(--ease-out), background 0.2s;
}
.nav-cta:hover { background: var(--accent-dark); }
.nav-cta:active { transform: scale(0.98); }

/* ── HERO (homepage video) ── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-dark);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  pointer-events: none;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, var(--bg-dark) 0%, transparent 22%),
    linear-gradient(to top,    var(--bg-dark) 0%, transparent 22%),
    linear-gradient(to right,  var(--bg-dark) 0%, transparent 18%),
    linear-gradient(to left,   var(--bg-dark) 0%, transparent 18%);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(31,31,41,0.4) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 48px 40px;
  max-width: 900px;
  margin-bottom: 180px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 24px;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-body {
  font-size: 17px;
  color: rgba(254,255,252,0.65);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-primary {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: var(--accent);
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 8px;
  letter-spacing: 0.02em;
  transition: transform 0.15s var(--ease-out), background 0.2s;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  font-size: 14px;
  font-weight: 500;
  color: rgba(254,255,252,0.6);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s, gap 0.2s var(--ease-spring);
}
.btn-ghost:hover { color: var(--white); gap: 12px; }
.btn-ghost svg { width: 18px; height: 18px; }
.btn-ghost--dark { color: var(--ink-muted); }
.btn-ghost--dark:hover { color: var(--ink); }

.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.stat-item {
  padding: 28px 32px 44px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { border-right: none; }
.stat-value {
  font-family: 'DM Serif Display', serif;
  font-size: 34px;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 6px;
}
.stat-value em { font-style: normal; color: var(--accent); }
.stat-label {
  font-size: 12px;
  color: rgba(254,255,252,0.4);
  line-height: 1.5;
}

/* ── INNER PAGE HERO (about, capabilities, etc.) ── */
.page-hero {
  position: relative;
  padding: 180px 48px 96px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(243,112,33,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 60%, rgba(243,112,33,0.06) 0%, transparent 50%),
    var(--surface);
  border-bottom: 1px solid var(--border);
}
.page-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.page-hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}
.page-hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(44px, 5.5vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 900px;
}
.page-hero-title em { font-style: italic; color: var(--accent); }
.page-hero-lede {
  font-size: 18px;
  color: var(--ink-muted);
  line-height: 1.7;
  max-width: 640px;
  margin-top: 28px;
}

/* ── SECTION BASE ── */
section { padding: 112px 48px; }
.container { max-width: 1200px; margin: 0 auto; }
.container-narrow { max-width: 820px; margin: 0 auto; }

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(34px, 3.2vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}
.section-title em { font-style: italic; color: var(--accent); }

/* ── TRUST BAR CAROUSEL ── */
.trust-bar {
  background: var(--bg-dark);
  padding: 40px 0;
  overflow: hidden;
  position: relative;
}
.trust-bar-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(254,255,252,0.35);
  text-align: center;
  margin-bottom: 28px;
}

.trust-marquee {
  display: flex;
  gap: 72px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.trust-bar:hover .trust-marquee { animation-play-state: paused; }

.trust-name {
  font-family: 'DM Serif Display', serif;
  font-size: 40px;
  letter-spacing: -0.02em;
  color: rgba(254,255,252,0.45);
  white-space: nowrap;
  transition: color 0.2s;
}
.trust-name:hover { color: var(--white); }

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* edge fade */
.trust-bar::before,
.trust-bar::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.trust-bar::before { left: 0;  background: linear-gradient(to right, var(--bg-dark), transparent); }
.trust-bar::after  { right: 0; background: linear-gradient(to left,  var(--bg-dark), transparent); }

/* ── ABOUT RISE block (homepage) ── */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
}
.about-body {
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.8;
  margin-top: 24px;
}
.about-body p + p { margin-top: 20px; }
.about-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s var(--ease-spring);
}
.about-cta:hover { gap: 12px; }
.about-cta svg { width: 18px; height: 18px; }
.about-right {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px;
}
.about-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.about-stat-value {
  font-family: 'DM Serif Display', serif;
  font-size: 40px;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.about-stat-label {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* ── WHAT WE DELIVER grid ── */
.deliver {
  background: var(--bg-dark);
  padding: 112px 48px;
}
.deliver .section-label { color: var(--accent); }
.deliver-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 64px;
}
.deliver .section-title { color: var(--white); }
.deliver-intro {
  font-size: 16px;
  color: rgba(254,255,252,0.5);
  line-height: 1.75;
  padding-top: 8px;
}
.deliver-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
}
.deliver-card {
  padding: 48px 40px;
  background: rgba(255,255,255,0.03);
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s var(--ease-out);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.deliver-card:last-child { border-right: none; }
.deliver-card:hover { background: rgba(243,112,33,0.07); }
.deliver-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.deliver-icon {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(243,112,33,0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  color: var(--accent);
}
.deliver-icon svg { width: 22px; height: 22px; }
.deliver-name {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.2;
}
.deliver-desc {
  font-size: 14px;
  color: rgba(254,255,252,0.45);
  line-height: 1.7;
  margin-bottom: 28px;
  flex: 1;
}
.deliver-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s var(--ease-spring);
}
.deliver-card:hover .deliver-link { gap: 10px; }
.deliver-link svg { width: 16px; height: 16px; }

/* ── 30 VS 90 PROOF SECTION + BROCHURE ── */
.proof {
  background: var(--ink);
  padding: 112px 48px;
}
.proof-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 72px;
  align-items: start;
}
.proof .section-label { color: var(--accent); }
.proof-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 3vw, 46px);
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 24px;
}
.proof-body {
  font-size: 16px;
  color: rgba(254,255,252,0.5);
  line-height: 1.75;
  margin-bottom: 40px;
}
.proof-comparison {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 32px;
}
.proof-side {
  padding: 32px 36px;
  background: rgba(255,255,255,0.04);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}
.proof-side--accent { background: var(--accent); }
.proof-side-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(254,255,252,0.4);
  margin-bottom: 6px;
}
.proof-side--accent .proof-side-label { color: rgba(255,255,255,0.7); }
.proof-side-desc {
  font-size: 13px;
  color: rgba(254,255,252,0.5);
  line-height: 1.55;
}
.proof-side--accent .proof-side-desc { color: rgba(255,255,255,0.8); }
.proof-side-value {
  font-family: 'DM Serif Display', serif;
  font-size: 56px;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1;
}
.proof-footnote {
  font-size: 15px;
  color: rgba(254,255,252,0.4);
  line-height: 1.7;
}

/* Brochure download card */
.brochure-card {
  position: relative;
  background: linear-gradient(145deg, rgba(243,112,33,0.12), rgba(243,112,33,0.02));
  border: 1px solid rgba(243,112,33,0.25);
  border-radius: 16px;
  padding: 40px;
  overflow: hidden;
}
.brochure-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(243,112,33,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.brochure-visual {
  position: relative;
  z-index: 2;
  margin-bottom: 32px;
}
.brochure-pages {
  position: relative;
  width: 180px;
  height: 240px;
  margin: 0 auto;
}
.brochure-page {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #2A2A35 0%, #1A1A22 100%);
  border: 1px solid rgba(243,112,33,0.3);
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  transform-origin: bottom left;
}
.brochure-page:nth-child(1) { transform: rotate(-8deg) translateX(-8px); opacity: 0.45; }
.brochure-page:nth-child(2) { transform: rotate(-3deg) translateX(-3px); opacity: 0.7; }
.brochure-page:nth-child(3) {
  transform: rotate(2deg);
  background: linear-gradient(160deg, var(--ink) 0%, #2A2A35 100%);
  border-color: rgba(243,112,33,0.5);
}
.brochure-page:nth-child(3)::before {
  content: 'RISE';
  position: absolute;
  top: 28px;
  left: 22px;
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.brochure-page:nth-child(3)::after {
  content: 'CAPABILITY\APACK';
  white-space: pre;
  position: absolute;
  bottom: 26px;
  left: 22px;
  right: 22px;
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brochure-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  position: relative; z-index: 2;
}
.brochure-title {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 14px;
  position: relative; z-index: 2;
}
.brochure-desc {
  font-size: 14px;
  color: rgba(254,255,252,0.55);
  line-height: 1.65;
  margin-bottom: 28px;
  position: relative; z-index: 2;
}
.brochure-meta {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(254,255,252,0.45);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative; z-index: 2;
}
.brochure-meta span::before {
  content: '·';
  margin-right: 14px;
  color: rgba(254,255,252,0.25);
}
.brochure-meta span:first-child::before { display: none; }
.brochure-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bg-dark);
  background: var(--accent);
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 8px;
  letter-spacing: 0.02em;
  transition: transform 0.15s var(--ease-out), background 0.2s;
  position: relative; z-index: 2;
}
.brochure-btn:hover { background: var(--white); }
.brochure-btn:active { transform: scale(0.98); }
.brochure-btn svg { width: 16px; height: 16px; }

/* ── WHY RISE ── */
.why { background: var(--surface); }
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.why-desc {
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.75;
  margin-top: 24px;
  max-width: 400px;
}
.why-steps { display: flex; flex-direction: column; }
.why-step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.3s var(--ease-out);
}
.why-step:first-child { border-top: 1px solid var(--border); }
.why-step:hover { padding-left: 8px; }
.why-step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  padding-top: 4px;
  letter-spacing: 0.06em;
}
.why-step-title {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}
.why-step-desc {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* ── TESTIMONIAL ── */
.testimonial-section {
  background: var(--bg-dark);
  padding: 112px 48px;
  text-align: center;
}
.testimonial-quote {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(26px, 2.8vw, 42px);
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1.3;
  max-width: 820px;
  margin: 0 auto 36px;
}
.testimonial-author {
  font-size: 14px;
  color: rgba(254,255,252,0.35);
  letter-spacing: 0.04em;
}
.testimonial-author strong {
  color: rgba(254,255,252,0.7);
  font-weight: 500;
}

/* ── CTA BAND ── */
.cta-band {
  padding: 80px 48px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta-band-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(31,31,41,0.5);
  margin-bottom: 12px;
}
.cta-band-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(26px, 2.8vw, 42px);
  letter-spacing: -0.03em;
  color: var(--bg-dark);
  line-height: 1.15;
}
.cta-band-body {
  font-size: 15px;
  color: rgba(31,31,41,0.6);
  line-height: 1.65;
  max-width: 480px;
  margin-top: 12px;
}
.btn-dark {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  background: var(--bg-dark);
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 8px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 0.15s var(--ease-out), opacity 0.2s;
  display: inline-block;
}
.btn-dark:hover { opacity: 0.85; }
.btn-dark:active { transform: scale(0.98); }

/* ── FOOTER ── */
footer {
  background: var(--bg-dark);
  color: rgba(254,255,252,0.45);
  padding: 72px 48px 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--white);
  margin-bottom: 16px;
  display: block;
  text-decoration: none;
}
.footer-logo span { color: var(--accent); }
.footer-tagline {
  font-size: 14px;
  line-height: 1.7;
  max-width: 260px;
}
.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  font-size: 14px;
  color: rgba(254,255,252,0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 13px;
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a {
  color: rgba(254,255,252,0.3);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal a:hover { color: rgba(254,255,252,0.65); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── CAPABILITY DETAIL PAGES ── */
.cap-detail {
  padding: 112px 48px;
}
.cap-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}
.cap-detail-grid + .cap-detail-grid {
  margin-top: 96px;
  padding-top: 96px;
  border-top: 1px solid var(--border);
}
.cap-detail:nth-of-type(even) .cap-detail-grid {
  direction: rtl;
}
.cap-detail:nth-of-type(even) .cap-detail-grid > * {
  direction: ltr;
}
.cap-detail-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(30px, 2.8vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  margin-top: 12px;
  margin-bottom: 24px;
}
.cap-detail-body {
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.75;
}
.cap-detail-body p + p { margin-top: 16px; }
.cap-detail-list {
  list-style: none;
  margin-top: 32px;
  display: grid;
  gap: 14px;
}
.cap-detail-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.6;
}
.cap-detail-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 7px;
}

.cap-detail-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}
.cap-detail-panel-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.cap-detail-metric {
  font-family: 'DM Serif Display', serif;
  font-size: 72px;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 16px;
}
.cap-detail-metric-caption {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.65;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.cap-detail-panel-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cap-detail-panel-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.cap-detail-panel-list li:last-child { border-bottom: none; padding-bottom: 0; }
.cap-detail-panel-list strong {
  color: var(--ink);
  font-weight: 600;
}

/* ── CAPABILITIES HUB CARDS ── */
.cap-hub {
  padding: 112px 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.cap-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.cap-hub-card {
  display: flex;
  flex-direction: column;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}
.cap-hub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.08);
  border-color: var(--accent);
}
.cap-hub-card-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 24px;
}
.cap-hub-card-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 28px;
}
.cap-hub-card-icon svg { width: 22px; height: 22px; }
.cap-hub-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.15;
}
.cap-hub-card-desc {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 28px;
  flex: 1;
}
.cap-hub-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s var(--ease-spring);
}
.cap-hub-card:hover .cap-hub-card-link { gap: 10px; }
.cap-hub-card-link svg { width: 14px; height: 14px; }

/* ── CASE STUDIES ── */
.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.08);
  border-color: var(--accent);
}
.case-meta {
  display: flex;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin-bottom: 28px;
}
.case-meta .case-meta-tag {
  color: var(--accent);
}
.case-title {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.2;
}
.case-desc {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}
.case-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.case-stat-value {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.case-stat-label {
  font-size: 11px;
  color: var(--ink-muted);
  line-height: 1.45;
}

/* ── COMPLIANCE LIST ── */
.comp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.comp-card {
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.comp-card-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.comp-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}
.comp-card-desc {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.7;
}

/* ── CONTACT FORM ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 96px;
}
.contact-info-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.contact-info-value {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.5;
}
.contact-info-value a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-info-value a:hover { color: var(--accent); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px;
  display: grid;
  gap: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.form-input,
.form-textarea,
.form-select {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(243,112,33,0.12);
}
.form-textarea { min-height: 140px; resize: vertical; }

/* ── LEGAL PAGES TYPOGRAPHY ── */
.legal-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 48px 112px;
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.8;
}
.legal-body h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 48px;
  margin-bottom: 16px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--ink);
  margin-top: 28px;
  margin-bottom: 12px;
}
.legal-body p + p { margin-top: 16px; }
.legal-body ul {
  margin: 16px 0 16px 24px;
  display: grid;
  gap: 8px;
}
.legal-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-updated {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin-bottom: 32px;
}

/* ── MOBILE NAV HAMBURGER ── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-left: 8px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
nav.scrolled .nav-hamburger span,
body.nav-static .nav-hamburger span { background: var(--ink); }
nav.menu-open .nav-hamburger span { background: var(--white); }
nav.menu-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.menu-open .nav-hamburger span:nth-child(2) { opacity: 0; }
nav.menu-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  nav { padding: 16px 24px; }
  section { padding: 80px 24px; }
  .hero-content { padding: 120px 24px 60px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .deliver-header { grid-template-columns: 1fr; gap: 24px; }
  .deliver-grid { grid-template-columns: 1fr; }
  .deliver-card { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .proof-layout { grid-template-columns: 1fr; gap: 48px; }
  .why-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 64px 24px; align-items: flex-start; }
  .cap-detail-grid { grid-template-columns: 1fr; gap: 48px; }
  .cap-detail:nth-of-type(even) .cap-detail-grid { direction: ltr; }
  .cap-hub-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .comp-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }
  .trust-name { font-size: 30px; }
  .page-hero { padding: 140px 24px 72px; }
}

@media (max-width: 720px) {
  /* Show hamburger, hide CTA on nav (CTA moves inside the overlay) */
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }

  /* Full-screen overlay menu */
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
    z-index: 90;
  }
  nav.menu-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  nav.menu-open {
    background: transparent !important;
    backdrop-filter: none !important;
    border-color: transparent !important;
  }
  .nav-links a {
    font-family: 'DM Serif Display', serif;
    font-size: 30px;
    letter-spacing: -0.02em;
    color: var(--white) !important;
    line-height: 1.1;
  }
  .nav-links a.active { color: var(--accent) !important; }
  .nav-links .nav-cta-mobile {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--white) !important;
    background: var(--accent);
    padding: 14px 32px;
    border-radius: 8px;
    letter-spacing: 0.02em;
    margin-top: 16px;
  }

  /* Lock body scroll when menu is open */
  body.menu-open { overflow: hidden; }
}

/* ───────────────────────────────────────────
   MOBILE (≤ 768px) — use !important on structural
   rules because we absolutely need them to win.
─────────────────────────────────────────── */
@media (max-width: 768px) {

  /* HERO — collapse to single column, stats flow below, buttons stack */
  .hero {
    display: block !important;
    min-height: auto !important;
    padding: 0 !important;
  }
  .hero-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 120px 20px 48px !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .hero-headline {
    font-size: clamp(34px, 9vw, 54px) !important;
    max-width: 100%;
    word-break: break-word;
  }
  .hero-body {
    font-size: 16px !important;
    margin-bottom: 32px !important;
    max-width: 100%;
  }
  .hero-eyebrow {
    text-align: center;
    justify-content: center;
  }
  .hero-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 320px !important;
  }
  .hero-actions .btn-primary {
    text-align: center;
    width: 100%;
  }
  .hero-actions .btn-ghost {
    justify-content: center;
    width: 100%;
  }

  /* STATS — in the document flow below the content */
  .hero-stats {
    position: static !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    width: 100% !important;
    border-top: 1px solid rgba(255,255,255,0.12) !important;
  }
  .stat-item {
    padding: 22px 18px 28px !important;
    border-right: 1px solid rgba(255,255,255,0.08);
  }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-child(1), .stat-item:nth-child(2) {
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .stat-value { font-size: 26px !important; }
  .stat-label { font-size: 11px; }

  /* VIDEO — make sure it fills the hero area properly */
  .hero-video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }
  .hero { position: relative !important; }

  /* Page hero (inner pages) */
  .page-hero { padding: 120px 20px 64px !important; }
  .page-hero-title { font-size: clamp(34px, 8vw, 52px); }
  .page-hero-lede { font-size: 16px; }

  /* Sections padding */
  section { padding: 64px 20px !important; }
  .proof,
  .deliver,
  .testimonial-section,
  .cap-detail,
  .cap-hub { padding: 72px 20px !important; }

  /* Force everything single-column */
  .about-inner,
  .why-inner,
  .proof-layout,
  .cap-detail-grid,
  .contact-layout {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .cap-hub-grid,
  .deliver-grid,
  .case-grid,
  .comp-grid {
    grid-template-columns: 1fr !important;
  }
  .deliver-card { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .form-row { grid-template-columns: 1fr !important; }

  /* Cards & panels — tighter padding */
  .about-right,
  .brochure-card,
  .cap-detail-panel,
  .comp-card,
  .cap-hub-card,
  .case-card { padding: 28px !important; }
  .contact-form { padding: 28px 20px !important; }

  /* Trust bar */
  .trust-name { font-size: 26px !important; }
  .trust-marquee { gap: 48px; }

  /* Proof / 30vs90 */
  .proof-side {
    grid-template-columns: 1fr !important;
    text-align: left;
    gap: 10px;
    padding: 24px 22px;
  }
  .proof-side-value { font-size: 44px; }
  .proof-headline { font-size: clamp(28px, 6vw, 40px) !important; }

  /* Why steps spacing */
  .why-step { grid-template-columns: 40px 1fr; padding: 24px 0; }

  /* Brochure card */
  .brochure-pages { width: 140px; height: 190px; }
  .brochure-title { font-size: 24px; }

  /* CTA band */
  .cta-band {
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    padding: 56px 20px !important;
    gap: 28px !important;
  }
  .btn-dark { width: 100%; text-align: center; }

  /* Section title */
  .section-title { font-size: clamp(28px, 6vw, 40px) !important; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr !important; gap: 32px !important; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  footer { padding: 56px 20px 32px !important; }

  /* Legal body padding */
  .legal-body { padding: 64px 20px 96px; }
}
