/* ===== Tokens ===== */
:root {
  --navy: #131721;
  --navy-soft: #1B2130;
  --steel: #3E4C59;
  --copper: #B46F42;
  --copper-light: #D3925E;
  --cream: #F1EEE8;
  --cream-line: #E4DFD3;
  --white: #FFFFFF;
  --ink: #1B1B1B;
  --ink-soft: #55606B;

  --display: 'Space Grotesk', sans-serif;
  --body: 'IBM Plex Sans', sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .eyebrow, .hero-title, .hero-sub, .hero-actions, .hero-credentials { opacity: 1 !important; animation: none !important; }
}

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.container.narrow { max-width: 760px; }
.container.center { text-align: center; }
.inner-narrow { max-width: 720px; margin: 0; }

/* subtle grain overlay for texture, very low opacity */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  opacity: 0.025; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(19, 23, 33, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav.nav-scrolled {
  background: rgba(19, 23, 33, 0.88);
  border-bottom-color: rgba(255,255,255,0.1);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo { width: 30px; height: 30px; object-fit: contain; transition: transform 0.4s var(--ease); }
.nav-brand:hover .nav-logo { transform: rotate(-8deg) scale(1.06); }
.nav-word {
  font-family: var(--display); font-weight: 600; font-size: 15px;
  color: var(--white); letter-spacing: 1.5px;
}
.nav-word-sub { color: var(--copper-light); margin-left: 4px; font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.nav-cta) {
  font-size: 14px; color: rgba(255,255,255,0.78); font-weight: 500;
  transition: color 0.2s; position: relative; padding-bottom: 3px;
}
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--copper-light); transition: width 0.3s var(--ease);
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--copper); color: var(--white) !important;
  padding: 9px 18px; border-radius: 3px; font-size: 13px !important;
}
.nav-cta:hover { background: var(--copper-light); }
.nav-toggle { display: none; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--navy);
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 32px 60px;
  overflow: hidden;
}
.topo {
  position: absolute; inset: 0; z-index: 0; opacity: 0.5;
}
.topo svg { width: 100%; height: 100%; }
.topo-line {
  fill: none; stroke: var(--steel); stroke-width: 1.2; opacity: 0.55;
}
.topo-line.l5 { stroke: var(--copper); opacity: 0.3; }

.hero-inner { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; text-align: center; }
.eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: 1.5px;
  color: var(--copper-light); text-transform: uppercase; margin-bottom: 22px;
  opacity: 0; animation: heroUp 0.8s var(--ease) 0.1s forwards;
}
.hero-title {
  font-family: var(--display); font-weight: 600; font-size: clamp(40px, 6.2vw, 72px);
  line-height: 1.06; color: var(--white); letter-spacing: -0.5px; margin-bottom: 26px;
  opacity: 0; animation: heroUp 0.9s var(--ease) 0.22s forwards;
}
.hero-sub {
  font-size: 18px; color: rgba(255,255,255,0.72); max-width: 560px;
  margin: 0 auto 40px; line-height: 1.65;
  opacity: 0; animation: heroUp 0.9s var(--ease) 0.36s forwards;
}
.hero-actions {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  opacity: 0; animation: heroUp 0.9s var(--ease) 0.48s forwards;
}

@keyframes heroUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Scroll progress ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--copper), var(--copper-light));
  z-index: 200; transition: width 0.1s linear;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 3px; font-size: 15px; font-weight: 600;
  font-family: var(--body); transition: all 0.3s var(--ease); border: 1px solid transparent;
  cursor: pointer; position: relative; overflow: hidden;
}
.btn-primary { background: var(--copper); color: var(--white); }
.btn-primary:hover { background: var(--copper-light); transform: translateY(-1px); box-shadow: 0 16px 32px -14px rgba(180, 111, 66, 0.45); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { border-color: rgba(255,255,255,0.28); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.06); transform: translateY(-2px); }
.btn-large { padding: 16px 34px; font-size: 16px; margin-top: 8px; }

.hero-credentials {
  position: relative; z-index: 1;
  max-width: var(--max); margin: 64px auto 0; width: 100%;
  display: flex; flex-wrap: wrap; gap: 12px 34px; justify-content: center;
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 26px;
  opacity: 0; animation: heroUp 0.9s var(--ease) 0.6s forwards;
}
.cred {
  font-family: var(--mono); font-size: 12.5px; color: rgba(255,255,255,0.6);
  display: flex; align-items: center; gap: 8px; letter-spacing: 0.3px;
}
.cred-mark { color: var(--copper-light); font-size: 10px; }

/* ===== Sections ===== */
.section { padding: 110px 0; }
.section-cream { background: var(--cream); }
.section-dark { background: var(--navy); color: var(--white); }
.section-cream + .section-cream { border-top: 1px solid var(--cream-line); }

.kicker {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--copper); margin-bottom: 16px; font-weight: 500;
}
.kicker-light { color: var(--copper-light); }

.section-title {
  font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.18; color: var(--navy); max-width: 780px; letter-spacing: -0.3px;
}
.title-light { color: var(--white); }

.lede {
  font-size: 17px; color: var(--ink-soft); max-width: 680px; margin-top: 22px; line-height: 1.7;
}
.lede-light { color: rgba(255,255,255,0.68); }

/* ===== Capabilities list ===== */
.capabilities-list {
  margin-top: 40px; max-width: 760px;
}
.capabilities-list li {
  position: relative; padding: 22px 0 22px 26px;
  border-bottom: 1px solid var(--cream-line);
}
.capabilities-list li:first-child { padding-top: 0; }
.capabilities-list li::before {
  content: ''; position: absolute; left: 0; top: 32px;
  width: 8px; height: 1.5px; background: var(--copper);
}
.capabilities-list h3 {
  font-family: var(--display); font-size: 18px; font-weight: 600;
  color: var(--navy); margin-bottom: 6px; line-height: 1.3;
}
.capabilities-list p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }

/* ===== Ascent / signature diagram ===== */
.ascent { margin-top: 70px; }
.ascent-svg { width: 100%; height: auto; overflow: visible; }
.ascent-solid {
  fill: none; stroke: var(--copper); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 1400; stroke-dashoffset: 1400;
  animation: draw 1.8s var(--ease) forwards;
  animation-play-state: paused;
}
.node { fill: var(--navy); stroke: var(--copper-light); stroke-width: 2; }
.ascent.in-view .ascent-solid { animation-play-state: running; }

@keyframes draw { to { stroke-dashoffset: 0; } }

/* ===== Path steps (flat, no card chrome) ===== */
.path-steps {
  margin-top: 44px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.path-step { padding-top: 18px; border-top: 2px solid rgba(255,255,255,0.14); }
.path-step-num {
  display: block; font-family: var(--mono); font-size: 20px;
  color: var(--copper-light); margin-bottom: 10px; letter-spacing: 1px;
}
.path-step h3 {
  font-family: var(--display); font-size: 15px; font-weight: 600;
  color: var(--white); line-height: 1.3;
}

@media (max-width: 600px) {
  .path-steps { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Engagement ===== */
.engagement-grid {
  margin-top: 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
.engagement-card {
  background: var(--white); border: 1px solid var(--cream-line);
  padding: 46px 42px; border-radius: 8px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.engagement-card:hover {
  transform: translateY(-3px);
  border-color: rgba(180, 111, 66, 0.28);
  box-shadow: 0 40px 80px -36px rgba(19, 23, 33, 0.18);
}
.eng-index {
  font-family: var(--mono); font-size: 13px; color: var(--copper);
  letter-spacing: 1px; display: block; margin-bottom: 18px;
}
.engagement-card h3 {
  font-family: var(--display); font-size: 23px; font-weight: 600;
  color: var(--navy); margin-bottom: 14px;
}
.engagement-card > p { font-size: 15px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 22px; }
.eng-list li {
  font-size: 14px; color: var(--ink); padding-left: 20px; position: relative; margin-bottom: 10px;
}
.eng-list li::before {
  content: ''; position: absolute; left: 0; top: 8px; width: 8px; height: 1.5px; background: var(--copper);
}

/* ===== Stat strip ===== */
.stat-strip {
  margin-top: 50px; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; border-top: 1px solid var(--cream-line); padding-top: 34px;
}
.stat { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.stat-num {
  display: block; font-family: var(--display); font-size: 26px; font-weight: 700;
  color: var(--copper); margin-bottom: 8px; letter-spacing: 0.5px;
}

/* ===== Scope-of-service note (folded into Contact) ===== */
.scope-note {
  margin: 56px auto 0; padding-top: 30px; max-width: 560px; text-align: left;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.scope-note-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px;
  color: rgba(255,255,255,0.5); margin-bottom: 10px; text-transform: uppercase;
}
.scope-note p:not(.scope-note-tag) {
  font-size: 13px; line-height: 1.75; color: rgba(255,255,255,0.6);
}

/* ===== Contact ===== */
.contact-card {
  margin: 48px auto 0; max-width: 480px;
  border: 1px solid rgba(255,255,255,0.14); border-radius: 6px; overflow: hidden;
  background: rgba(255,255,255,0.02);
}
.contact-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 26px; border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: background 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.contact-row:last-child { border-bottom: none; }
a.contact-row:hover { background: rgba(180, 111, 66, 0.08); padding-left: 32px; }
.contact-label {
  font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,0.5);
  letter-spacing: 0.5px; text-transform: uppercase;
}
.contact-value { font-size: 15px; color: var(--white); font-weight: 500; transition: color 0.25s var(--ease); }
a.contact-row:hover .contact-value { color: var(--copper-light); }

/* ===== Footer ===== */
.footer { background: var(--navy); padding: 40px 0; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-logo { width: 22px; height: 22px; object-fit: contain; }
.footer-brand span {
  font-family: var(--display); font-size: 13px; letter-spacing: 1.5px; color: rgba(255,255,255,0.7);
}
.footer-meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11.5px; color: rgba(255,255,255,0.4);
}

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .nav-links.nav-open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--navy); padding: 20px 32px 26px;
    gap: 18px; border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px;
  }
  .nav-toggle span { width: 22px; height: 2px; background: var(--white); border-radius: 2px; }

  .engagement-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 600px) {
  .hero { padding-top: 120px; }
  .hero-credentials { gap: 14px 20px; }
  .section { padding: 76px 0; }
  .container { padding: 0 22px; }
}

.doc-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--copper); margin-bottom: 18px; font-weight: 500;
  padding-left: 14px; border-left: 1.5px solid var(--copper); opacity: 0.85;
}
.doc-tag-light { color: var(--copper-light); border-left-color: var(--copper-light); }

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0; animation: heroUp 0.9s var(--ease) 0.9s forwards;
}
.scroll-cue span {
  font-family: var(--mono); font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.scroll-cue i {
  width: 1px; height: 22px; background: linear-gradient(rgba(255,255,255,0.5), transparent);
  display: block; animation: cueFlow 1.8s ease-in-out infinite;
}
@keyframes cueFlow { 0%,100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ============================================================
   Hero cursor-reactive glow
   ============================================================ */
.hero-glow {
  position: absolute; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(180,111,66,0.16) 0%, rgba(180,111,66,0) 70%);
  pointer-events: none; z-index: 0; transform: translate(-50%, -50%);
  left: 50%; top: 40%; transition: opacity 0.4s var(--ease);
  opacity: 0;
}
.hero:hover .hero-glow { opacity: 1; }

.engagement-card {
  position: relative;
}

.btn { will-change: transform; }

@media (max-width: 600px) {
  .hero-glow { display: none; }
}
