/* ============================================================
   Real Routes — design system
   Palette: deep navy + a strong amber/orange accent (#ED7D31),
   carried from the pitch deck. Light content "sandwich" with
   dark title/CTA bookends.
   ============================================================ */

:root {
  --navy-900: #0c1626;
  --navy-800: #0f1a2e;
  --navy-700: #16243d;
  --navy-600: #1f3050;
  --ink: #1c2738;
  --slate: #475569;
  --muted: #5c6675;
  --line: #e6e9ef;
  --paper: #ffffff;
  --tint: #f6f7fa;
  --tint-warm: #f7f3ec;

  --orange: #ed7d31;
  --orange-600: #d96a22;
  --orange-300: #f6a866;
  --orange-tint: #fdf1e7;
  --orange-text: #9a4a14; /* AA-compliant burnt orange for text on light surfaces */

  --shadow-sm: 0 1px 2px rgba(16, 26, 46, .06), 0 2px 8px rgba(16, 26, 46, .05);
  --shadow-md: 0 8px 24px rgba(16, 26, 46, .10);
  --shadow-lg: 0 24px 60px rgba(12, 22, 38, .22);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;

  --maxw: 1140px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --nav-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--orange); color: var(--navy-900); font-weight: 700; padding: 10px 16px; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

/* ───────────── Buttons ───────────── */
.btn {
  --b: var(--orange);
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
  white-space: nowrap;
}
.btn--lg { padding: 15px 28px; font-size: 1rem; }
.btn--primary { background: var(--orange); color: var(--navy-900); box-shadow: 0 8px 20px rgba(237, 125, 49, .32); }
.btn--primary:hover { background: var(--orange-600); color: var(--navy-900); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(237, 125, 49, .42); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .7); transform: translateY(-2px); }

.link-arrow { color: var(--orange-text); font-weight: 600; }
.link-arrow:hover { color: var(--orange-text); text-decoration: underline; }

/* ───────────── Nav ───────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(12, 22, 38, .82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav__inner { height: var(--nav-h); display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; }
.brand__mark { color: var(--orange); display: inline-flex; }
.brand__text { font-size: 1.18rem; letter-spacing: .14em; font-weight: 800; }
.brand__text-accent { color: var(--orange); margin-left: .12em; }

.nav__links { margin-left: auto; display: flex; gap: 28px; }
.nav__links a { color: rgba(255, 255, 255, .82); font-weight: 500; font-size: .95rem; position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px;
  background: var(--orange); transition: right .25s ease;
}
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { right: 0; }

.nav__cta { margin-left: 4px; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; padding: 8px; margin-left: auto; }
.nav__toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; margin: 5px 0; transition: transform .25s, opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile { display: none; flex-direction: column; gap: 4px; padding: 12px 24px 20px; background: var(--navy-900); border-bottom: 1px solid rgba(255,255,255,.08); }
.nav__mobile a { color: rgba(255, 255, 255, .9); padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, .07); font-weight: 500; }
.nav__mobile .btn { margin-top: 12px; justify-content: center; }

/* ───────────── Hero ───────────── */
.hero { position: relative; color: #fff; padding: clamp(90px, 14vh, 150px) 0 clamp(70px, 10vh, 110px); overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12,22,38,.78) 0%, rgba(12,22,38,.86) 55%, rgba(12,22,38,.96) 100%),
    radial-gradient(80% 60% at 75% 25%, rgba(237,125,49,.20), transparent 60%);
}
.hero__lines { position: absolute; right: -6%; top: -12%; width: 70%; max-width: 820px; opacity: .14; mix-blend-mode: screen; }

.hero__inner { position: relative; max-width: 760px; }
.hero__title { font-size: clamp(2.4rem, 6vw, 4.1rem); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 22px; color: #fff; }
.hero__title .accent { color: var(--orange-300); }
.hero__sub { font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: rgba(255, 255, 255, .82); max-width: 620px; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero__note { font-size: .92rem; color: rgba(255, 255, 255, .62); }

.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 700; color: var(--orange-text); margin-bottom: 14px; }
.eyebrow--light { color: var(--orange-300); }

.accent { color: var(--orange); }

/* ───────────── Stat band ───────────── */
.stats { background: var(--navy-900); color: #fff; padding: 38px 0 30px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stats__note { text-align: center; margin-top: 22px; font-size: .85rem; color: rgba(255, 255, 255, .6); }
.stats__note a { color: var(--orange-300); text-decoration: underline; }
.stat { text-align: center; padding: 8px 12px; border-right: 1px solid rgba(255, 255, 255, .1); }
.stat:last-child { border-right: 0; }
.stat__num { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.stat__label { display: block; font-size: .82rem; color: rgba(255, 255, 255, .66); margin-top: 4px; letter-spacing: .02em; }

/* ───────────── Sections ───────────── */
.section { padding: clamp(64px, 9vw, 110px) 0; position: relative; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--navy-800); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; }
.section--dark .section__head h2 { color: #fff; }
.section__lead { color: var(--slate); font-size: 1.08rem; margin-top: 16px; }
.section--dark .section__lead { color: rgba(255, 255, 255, .75); }

/* ───────────── Grids & cards ───────────── */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 30px 28px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d8dde6; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--orange-tint); color: var(--orange-600); margin-bottom: 18px;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { color: var(--slate); }

/* Optimization forms */
.grid--forms { grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-row {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 22px 24px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.form-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.form-row__icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: var(--navy-800); color: var(--orange-300); display: grid; place-items: center; }
.form-row__icon svg { width: 24px; height: 24px; }
.form-row h3 { font-size: 1.1rem; margin-bottom: 4px; }
.form-row p { color: var(--slate); font-size: .98rem; }

/* ───────────── Split (how we're different) ───────────── */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.split__media { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.split__media img { width: 100%; aspect-ratio: 16 / 12; object-fit: cover; }
.split__badge {
  position: absolute; left: 18px; bottom: 18px; background: rgba(12, 22, 38, .85);
  color: #fff; font-weight: 600; font-size: .85rem; padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgba(237, 125, 49, .55);
}
.split__body h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 26px; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.checklist li { position: relative; padding-left: 40px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--orange);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 12-12-1.4-1.4z'/></svg>") center / 18px no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 12-12-1.4-1.4z'/></svg>") center / 18px no-repeat;
}
.checklist h3 { font-size: 1.15rem; margin-bottom: 6px; }
.checklist p { color: rgba(255, 255, 255, .78); }

/* ───────────── Ladder ───────────── */
.ladder { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.ladder__step {
  display: flex; gap: 24px; align-items: flex-start; padding: 26px 28px;
  border: 1px solid var(--line); background: var(--paper);
  position: relative;
}
.ladder__step:first-child { border-radius: var(--r-md) var(--r-md) 0 0; }
.ladder__step:last-child { border-radius: 0 0 var(--r-md) var(--r-md); }
.ladder__step + .ladder__step { border-top: 0; }
.ladder__step:hover { background: var(--tint-warm); }
.ladder__num {
  flex: 0 0 auto; font-size: 1.3rem; font-weight: 800; color: var(--orange-text);
  width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center;
  background: var(--orange-tint); letter-spacing: -.02em;
}
.ladder__step h3 { font-size: 1.2rem; margin-bottom: 5px; }
.ladder__step p { color: var(--slate); }

/* ───────────── Case studies ───────────── */
.case {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow-sm); margin-bottom: 28px;
}
.case:last-child { margin-bottom: 0; }
.case__head { margin-bottom: 26px; }
.case__tag { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-text); background: var(--orange-tint); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
.case__head h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }

.case__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 30px; }
.metric { background: var(--navy-800); color: #fff; border-radius: var(--r-md); padding: 22px 20px; text-align: center; }
.metric__num { display: block; font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 800; color: var(--orange-300); letter-spacing: -.03em; }
.metric__label { display: block; font-size: .85rem; color: rgba(255, 255, 255, .72); margin-top: 6px; }

.case__story { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 26px; }
.phase { background: var(--tint); border-radius: var(--r-md); padding: 20px; }
.phase__label { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.phase__label--before { background: #eef1f5; color: var(--muted); }
.phase__label--during { background: #e7eefc; color: #2f5fd0; }
.phase__label--after { background: #e3f6ec; color: #157345; }
.phase p { color: var(--slate); font-size: .96rem; }

.case__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.case__points--wide { grid-template-columns: 1fr 1fr; gap: 12px 32px; }
.case__points li { position: relative; padding-left: 30px; color: var(--slate); }
.case__points li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--orange-tint);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 12-12-1.4-1.4z'/></svg>") center / 14px no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 12-12-1.4-1.4z'/></svg>") center / 14px no-repeat;
}
.case__foot { color: var(--slate); font-size: .82rem; margin-top: 16px; font-style: italic; }

/* checkmark glyph rendered in solid orange on the masked disc */
.case__points li::before { background: var(--orange); }

/* ───────────── Proposal ───────────── */
.proposal { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.proposal__lead { color: rgba(255, 255, 255, .78); font-size: 1.1rem; margin: 14px 0 24px; }
.proposal__list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 16px; }
.proposal__list li { position: relative; padding-left: 38px; color: rgba(255, 255, 255, .82); }
.proposal__list li strong { color: #fff; }
.proposal__list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--orange);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 12-12-1.4-1.4z'/></svg>") center / 16px no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 12-12-1.4-1.4z'/></svg>") center / 16px no-repeat;
}
.proposal__media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.proposal__media img { width: 100%; }

/* ───────────── Services ───────────── */
.svc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px 26px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.svc h3 { font-size: 1.14rem; margin-bottom: 8px; }
.svc p { color: var(--slate); }
.svc--cta { background: var(--navy-800); color: #fff; }
.svc--cta h3 { color: #fff; }
.svc--cta p { color: rgba(255, 255, 255, .76); margin-bottom: 14px; }
.svc--cta .link-arrow { color: var(--orange-300); }

/* ───────────── Team ───────────── */
.bio { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.bio__head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.bio__avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--orange), var(--orange-600)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; flex: 0 0 auto; }
.bio__head h3 { font-size: 1.35rem; }
.bio__role { color: var(--orange-text); font-weight: 600; font-size: .92rem; }
.bio__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.bio__list li { position: relative; padding-left: 24px; color: var(--slate); }
.bio__list li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* ───────────── Contact / CTA ───────────── */
.section--cta { position: relative; color: #fff; isolation: isolate; overflow: hidden; padding: clamp(80px, 11vw, 130px) 0; }
.hero__bg--contact img { filter: saturate(.9); }
.hero__bg--contact::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,22,38,.90), rgba(12,22,38,.94)); }
.cta { position: relative; max-width: 760px; }
.cta__title { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; color: #fff; margin-bottom: 16px; }
.cta__sub { color: rgba(255, 255, 255, .8); font-size: 1.12rem; margin-bottom: 34px; max-width: 620px; }
.cta__card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-lg); padding: 26px 30px; backdrop-filter: blur(6px);
}
.cta__name { display: block; font-size: 1.3rem; font-weight: 700; color: #fff; }
.cta__role { display: block; color: var(--orange-300); font-weight: 600; font-size: .9rem; }

/* ───────────── Footer ───────────── */
.footer { background: var(--navy-900); color: rgba(255, 255, 255, .7); padding: 40px 0; }
.footer__inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.brand--footer { color: #fff; }
.footer__tag { margin-left: 8px; font-size: .92rem; }
.footer__meta { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: .9rem; }
.footer__meta a:hover { color: var(--orange-300); }

/* ───────────── Reveal animation ─────────────
   Hidden state is gated on the `.js` class (added by script.js). With JS
   disabled or broken, .reveal content renders fully visible — never blank. */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.js .reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  * { animation: none !important; }
}

/* ───────────── Responsive ───────────── */
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav.is-open .nav__mobile { display: flex; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split__media { order: -1; }
  .proposal { grid-template-columns: 1fr; gap: 36px; }
  .proposal__media { order: -1; }
}

@media (max-width: 800px) {
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .grid--forms { grid-template-columns: 1fr; }
  .case__story { grid-template-columns: 1fr; }
  .case__metrics { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 20px 8px; }
  .stat:nth-child(2) { border-right: 0; }
}

@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .case__metrics { grid-template-columns: 1fr; }
  .case__points--wide { grid-template-columns: 1fr; }
  .ladder__step { padding: 20px; gap: 16px; }
  .ladder__num { width: 48px; height: 48px; font-size: 1.1rem; }
  .cta__card { flex-direction: column; align-items: flex-start; }
  .footer__meta { margin-left: 0; width: 100%; }
  .hero__title { font-size: clamp(2rem, 9vw, 2.6rem); }
}
