:root {
  --orange: #f17b39;
  --orange-dark: #c9571f;
  --charcoal: #3b4648;
  --black: #111415;
  --gray-900: #1d2324;
  --gray-700: #546064;
  --gray-500: #9aa1a3;
  --gray-200: #e7eaea;
  --gray-100: #f4f5f5;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(17, 20, 21, 0.14);
  --radius-xl: 34px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --max: 1520px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.55;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

body.modal-open .site-header,
body.modal-open main,
body.modal-open .site-footer {
  filter: blur(6px);
  transform: scale(0.992);
  transition: filter 220ms ease, transform 220ms ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
::selection { color: var(--white); background: var(--orange); }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(24px, 4vw, 64px);
}
.narrow { max-width: 830px; text-align: center; }
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--black);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 10px;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(17, 20, 21, 0.08);
}
.nav-shell {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img { width: 255px; height: auto; }
.primary-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gray-700);
}
.primary-nav a { position: relative; }
.primary-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 180ms ease;
}
.primary-nav a:hover::after { width: 100%; }
.nav-cta, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.nav-cta, .btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(241, 123, 57, 0.27);
}
.nav-cta:hover, .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(241, 123, 57, 0.34); }
.btn-secondary { color: var(--charcoal); border-color: var(--gray-200); background: var(--white); }
.btn-secondary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.nav-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; margin: 6px 0; background: var(--black); transition: transform 180ms ease, opacity 180ms ease; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 34px;
  background:
    radial-gradient(circle at 18% 12%, rgba(241, 123, 57, 0.12), transparent 30%),
    linear-gradient(180deg, #fff 0%, #f7f8f8 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 70, 72, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 70, 72, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.65), transparent 80%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 72px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow-on-dark { color: #ff9a60; }
h1, h2, h3 { color: var(--black); line-height: 1.05; margin: 0; letter-spacing: -0.045em; }
h1 {
  font-size: clamp(2.35rem, 3.75vw, 4.15rem);
  max-width: 620px;
}
h2 { font-size: clamp(2.0rem, 4vw, 3.9rem); }
h3 { font-size: 1.18rem; letter-spacing: -0.025em; }
.hero-lede, .section-copy p, .section-intro {
  color: var(--gray-700);
  font-size: clamp(1.02rem, 1.4vw, 1.19rem);
}
.hero-lede { max-width: 640px; margin: 22px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-visual {
  position: relative;
  padding: 10px;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(17,20,21,.08);
  box-shadow: var(--shadow);
}
.hero-visual img {
  width: 100%;
  min-height: 530px;
  object-fit: cover;
  border-radius: 26px;
}
.signal-card {
  position: absolute;
  width: min(260px, 44%);
  padding: 15px 16px;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  background: rgba(17,20,21,.76);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0,0,0,.24);
}
.signal-card strong { display: block; font-size: .98rem; }
.signal-card span { display: block; margin-top: 3px; color: rgba(255,255,255,.75); font-size: .82rem; }
.signal-card-top { top: 36px; left: 18px; }
.signal-card-bottom { right: 18px; bottom: 40px; }
.proof-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 54px;
  overflow: hidden;
  border: 1px solid rgba(17,20,21,.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px rgba(17,20,21,.08);
}
.proof-strip article { background: var(--white); padding: 25px; }
.proof-strip span { color: var(--orange); font-weight: 900; font-size: .8rem; }
.proof-strip h2 { margin-top: 10px; font-size: 1.02rem; letter-spacing: -.02em; }
.proof-strip p { margin: 10px 0 0; color: var(--gray-700); font-size: .92rem; }

[id] { scroll-margin-top: 96px; }

.section { padding: 104px 0; }
.network-section, .partner-section {
  background:
    radial-gradient(circle at 80% 20%, rgba(241,123,57,.18), transparent 28%),
    linear-gradient(135deg, var(--black), #253033);
  color: var(--white);
  overflow: hidden;
}
.network-grid, .partner-grid, .tech-grid, .contact-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 56px;
  align-items: center;
}
.network-section h2, .partner-section h2, .footer-cta h2 { color: var(--white); }
.network-section p, .partner-section p, .footer-cta p { color: rgba(255,255,255,.74); }
.text-link { display: inline-flex; margin-top: 24px; color: #ff9a60; font-weight: 900; }
.text-link::after { content: "→"; margin-left: 8px; transition: transform 180ms ease; }
.text-link:hover::after { transform: translateX(4px); }
.network-visual img, .partner-image img, .tech-image img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: 0 28px 70px rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.12);
}
.values-section { background: var(--white); }
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 42px;
}
.value-grid article {
  min-height: 118px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, #fff, #f8f9f9),
    var(--white);
  position: relative;
  overflow: hidden;
}
.value-grid article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: var(--orange);
  transform: scaleX(.22);
  transform-origin: left;
  transition: transform 220ms ease;
}
.value-grid article:hover::before { transform: scaleX(1); }
.value-grid span { font-weight: 900; color: var(--black); }
.expertise-section { background: var(--gray-100); }
.section-heading { max-width:var(--max); margin-bottom: 44px; }
.service-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  display: grid;
  grid-template-rows: 220px 1fr;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid rgba(17,20,21,.08);
  box-shadow: 0 18px 45px rgba(17,20,21,.07);
}
.feature-card img { width: 100%; height: 100%; object-fit: cover; }
.feature-card div { padding: 24px; border-top: 5px solid var(--orange); }
.feature-card p, .platform-grid p { margin: 10px 0 0; color: var(--gray-700); font-size: .95rem; }
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.platform-grid article {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(17,20,21,.08);
  background: var(--white);
  box-shadow: 0 18px 45px rgba(17,20,21,.06);
}
.wide-card { grid-column: span 4; }
.card-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  color: var(--white);
  background: var(--charcoal);
  border-radius: 14px;
  font-size: .75rem;
  font-weight: 900;
  box-shadow: inset 0 -4px 0 rgba(241,123,57,.42);
}
.tech-section { background: var(--white); }
.tech-grid { grid-template-columns: 1fr .9fr; }
.micro-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.micro-badges span, .contact-notes span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--charcoal);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  font-weight: 800;
  font-size: .85rem;
}
.industries-section { background: linear-gradient(180deg, var(--gray-100), #fff); }
.audience-tabs {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
}
.tab-list {
  display: grid;
  gap: 10px;
}
.tab-list button {
  width: 100%;
  text-align: left;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--charcoal);
  border-radius: 16px;
  padding: 17px 18px;
  font-weight: 900;
  cursor: pointer;
}
.tab-list button[aria-selected="true"] {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
  box-shadow: inset 5px 0 0 var(--orange);
}
.tab-panels article {
  min-height: 320px;
  padding: clamp(30px, 6vw, 70px);
  border-radius: var(--radius-xl);
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(17,20,21,.85), rgba(59,70,72,.75)),
    url("images/estimate-writing-workflows.webp") center / cover;
  box-shadow: var(--shadow);
}
.tab-panels h3 { color: var(--white); font-size: clamp(1.9rem, 4vw, 3.5rem); }
.tab-panels p { max-width: 750px; color: rgba(255,255,255,.78); font-size: 1.18rem; }
.partner-grid { grid-template-columns: .9fr 1.1fr; }
.footer-cta {
  position: relative;
  overflow: hidden;
  padding: 106px 0;
  background:
    linear-gradient(120deg, rgba(17,20,21,.76), rgba(17,20,21,.64)),
    url("images/footer-better-path-forward.webp") center / cover;
}
.contact-grid { grid-template-columns: .9fr 1fr; align-items: start; }
.contact-notes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.contact-notes span { background: rgba(255,255,255,.08); color: var(--white); border-color: rgba(255,255,255,.14); }
.contact-form {
  padding: clamp(24px, 4vw, 38px);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.96);
  box-shadow: 0 28px 70px rgba(0,0,0,.28);
}
.contact-form label { display: grid; gap: 8px; margin-bottom: 16px; color: var(--black); font-weight: 900; }
.contact-form input, .contact-form textarea {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 13px 14px;
  background: var(--gray-100);
  color: var(--black);
  outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(241,123,57,.14); }
.contact-form button { width: 100%; border: 0; cursor: pointer; }
.form-note { color: var(--gray-700) !important; font-size: .82rem; margin: 14px 0 0; }
.site-footer {
  padding: 26px 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
}

.footer-grid {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: 24px;
  align-items: center;
}

.footer-grid p {
  margin: 0;
  color: var(--gray-700);
  font-size: .9rem;
}

.footer-grid a {
  color: var(--orange);
  font-weight: 900;
}

.legal-links {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  text-align: center;
}

.legal-link {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  color: var(--charcoal);
  font-size: 0.92rem;
  font-weight: 900;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 160ms ease, text-underline-offset 160ms ease;
}

.legal-link:hover,
.legal-link:focus-visible {
  color: var(--orange);
  text-underline-offset: 6px;
  outline: none;
}

.legal-separator {
  color: rgba(17, 20, 21, 0.28);
  font-weight: 900;
}

.legal-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 24% 18%, rgba(241, 123, 57, 0.30), transparent 28%),
    radial-gradient(circle at 78% 80%, rgba(59, 70, 72, 0.34), transparent 30%),
    rgba(8, 10, 11, 0.78);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.legal-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.legal-modal {
  position: relative;
  width: min(980px, calc(100vw - 44px));
  max-height: min(92vh, 860px);
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 0%, rgba(241, 123, 57, 0.16), transparent 32%),
    linear-gradient(145deg, #ffffff 0%, #f4f5f5 100%);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.42);
  transform: translateY(18px) scale(0.98);
  transition: transform 220ms ease;
}

.legal-modal-backdrop.is-open .legal-modal {
  transform: translateY(0) scale(1);
}

.legal-modal::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 10px;
  background: linear-gradient(90deg, #ff9a60, var(--orange), var(--orange-dark));
}

.legal-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(145deg, #ff9a60, var(--orange) 58%, var(--orange-dark));
  color: var(--white);
  font-family: inherit;
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(201, 88, 32, 0.34);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.legal-modal-close:hover,
.legal-modal-close:focus-visible {
  transform: translateY(-2px) rotate(2deg);
  box-shadow: 0 18px 40px rgba(201, 88, 32, 0.42);
  outline: none;
}

.legal-modal-inner {
  max-height: min(92vh, 860px);
  overflow-y: auto;
  padding: clamp(28px, 4vw, 44px);
  padding-right: clamp(28px, 4vw, 62px);
}

.legal-modal h2 {
  margin: 0 70px 14px 0;
  color: var(--black);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.legal-modal .modal-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(241, 123, 57, 0.11);
  color: var(--orange-dark);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.legal-modal p {
  margin: 0 0 12px;
  color: var(--gray-700);
  font-size: 0.92rem;
  line-height: 1.5;
}

.legal-modal p strong {
  color: var(--black);
}

.legal-modal-content {
  padding-top: 4px;
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

iframe{height: 500px;}

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed;
    left: 20px;
    right: 20px;
    top: 92px;
    display: none;
    padding: 22px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    flex-direction: column;
    align-items: stretch;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 6px 0; }
  .nav-cta { width: 100%; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .hero-grid, .network-grid, .tech-grid, .partner-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual img { min-height: 400px; }
  .proof-strip, .value-grid { grid-template-columns: repeat(2, 1fr); }
  .service-feature-grid { grid-template-columns: 1fr; }
  .feature-card { grid-template-rows: 280px 1fr; }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .wide-card { grid-column: span 2; }
  .audience-tabs { grid-template-columns: 1fr; }
  .tab-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
	  .container {
    padding-inline: 18px;
  }
  .nav-shell { min-height: 74px; }
  .brand img { width: 212px; }
  .hero { padding-top: 38px; }
  h1 { font-size: clamp(2.15rem, 9vw, 3rem); }
  h2 { font-size: clamp(2.05rem, 10vw, 3.15rem); }
  .hero-actions, .hero-actions .btn { width: 100%; }
  .signal-card { position: static; width: auto; margin: 10px 10px 0; }
  .hero-visual img { min-height: 330px; }
  .proof-strip, .value-grid, .platform-grid, .tab-list { grid-template-columns: 1fr; }
  .proof-strip article { padding: 21px; }
  .wide-card { grid-column: auto; }
  .section { padding: 72px 0; }
  .feature-card { grid-template-rows: 230px 1fr; }
  .tab-panels article { min-height: 260px; }
  .footer-cta { padding: 76px 0; }
	  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .footer-grid img {
    width: 230px;
  }

  .legal-modal-backdrop {
    padding: 14px;
  }

  .legal-modal {
    border-radius: 0 0 26px 26px;
  }  
	
.legal-modal-inner {
    padding: 32px 22px 26px;
    max-height: 88vh;
  }

  .legal-modal h2 {
    margin-right: 58px;
  }

  .legal-modal-close {
    top: 14px;
    right: 14px;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 1.75rem;
  }

  iframe {
    height: 800px;
  }
}
