:root {
  --ink: #082c47;
  --ink-deep: #021a2c;
  --navy: #03233a;
  --paper: #f4f7f9;
  --white: #ffffff;
  --sand: #dbe4e9;
  --muted: #607784;
  --blue: #0878d1;
  --blue-bright: #08a6e6;
  --green: #179c72;
  --magenta: #e51d84;
  --teal: #179c72;
  --teal-bright: #69d7b7;
  --line: rgba(8, 44, 71, 0.15);
  --shadow: 0 24px 70px rgba(2, 26, 44, 0.18);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; }
button { color: inherit; }

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--white);
  border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; }

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto 0;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 78px);
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 32px rgba(8, 27, 35, 0.06); }
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand-logo { display: block; width: 172px; height: 58px; object-fit: contain; }
.brand-specialty { padding-left: 14px; border-left: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; white-space: nowrap; }
.site-header nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 42px); font-size: 13px; font-weight: 650; }
.site-header nav > a:not(.nav-cta) { position: relative; }
.site-header nav > a:not(.nav-cta)::after { content: ""; position: absolute; inset: auto 0 -7px; height: 2px; background: linear-gradient(90deg, var(--blue), var(--green)); transform: scaleX(0); transform-origin: right; transition: transform 180ms ease; }
.site-header nav > a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: 11px 18px; color: var(--white); background: var(--blue); border-radius: 999px; box-shadow: 0 8px 20px rgba(8, 120, 209, .18); }

.hero {
  min-height: 100vh;
  padding: 162px clamp(24px, 7vw, 110px) 0;
  color: var(--white);
  background-image:
    linear-gradient(90deg, var(--ink-deep) 0%, rgba(2, 26, 44, .98) 42%, rgba(2, 26, 44, .76) 72%, rgba(2, 26, 44, .36) 100%),
    url("./assets/gmx-circuit-pattern.jpg");
  background-color: var(--ink-deep);
  background-repeat: no-repeat;
  background-position: center, right center;
  background-size: cover, auto 100%;
  display: flex;
  flex-direction: column;
}
.hero-grid { width: min(1240px, 100%); margin: auto; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(330px, .72fr); align-items: center; gap: clamp(60px, 8vw, 132px); }
.eyebrow { margin: 0 0 20px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3, p { text-wrap: pretty; }
h1, h2 { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 680; letter-spacing: -.045em; line-height: 1; }
h1 { max-width: 790px; font-size: clamp(54px, 7.1vw, 104px); }
h1 em { color: var(--blue-bright); font-style: normal; font-weight: inherit; }
.hero .eyebrow { color: var(--teal-bright); }
.hero-lead { max-width: 700px; margin: 32px 0 0; color: #c2d4df; font-size: clamp(17px, 1.55vw, 21px); }
.hero-actions { margin-top: 40px; display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.button { border: 0; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 28px; padding: 16px 22px; font-size: 13px; font-weight: 750; cursor: pointer; transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--blue); box-shadow: 0 14px 28px rgba(8, 120, 209, .24); }
.button-primary:hover { background: #076bb9; box-shadow: 0 18px 34px rgba(8, 120, 209, .3); }
.button-dark { color: white; background: var(--ink); }
.button-light { color: var(--ink-deep); background: var(--white); }
.text-link { font-size: 13px; font-weight: 750; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.hero .text-link { color: var(--white); }

.hero-proof { position: relative; }
.hero-proof::before { content: ""; position: absolute; inset: -28px 38px 28px -38px; border: 1px solid rgba(8, 166, 230, .28); border-radius: var(--radius); }
.weave-card { position: relative; z-index: 1; min-height: 420px; padding: clamp(32px, 4vw, 54px); display: flex; flex-direction: column; color: var(--white); background: linear-gradient(145deg, rgba(6, 56, 94, .92), rgba(2, 26, 44, .98)); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.weave-card::before { content: ""; position: absolute; width: 250px; height: 250px; right: -70px; top: -70px; opacity: .28; background: radial-gradient(circle at 35% 35%, var(--magenta) 0 8%, transparent 9%), radial-gradient(circle at 62% 62%, var(--blue-bright) 0 7%, transparent 8%), linear-gradient(135deg, transparent 48%, rgba(255,255,255,.2) 49% 50%, transparent 51%); transform: rotate(8deg); }
.card-kicker { position: relative; margin: 0; color: var(--teal-bright); font-size: 11px; font-weight: 800; letter-spacing: .2em; }
blockquote { position: relative; margin: auto 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(27px, 3vw, 40px); line-height: 1.18; }
.proof-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); }
.proof-list span { font-size: 10px; color: #b9c8ca; letter-spacing: .08em; text-transform: uppercase; }
.trust-strip { width: min(1240px, 100%); margin: 92px auto 0; padding: 25px 0; border-top: 1px solid rgba(255,255,255,.16); display: flex; justify-content: space-between; gap: 24px; color: #9eb7c6; font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }

.section { padding: clamp(90px, 11vw, 156px) clamp(24px, 7vw, 110px); }
.diagnostic { background: var(--white); }
.section-heading, .experience-grid, .contact-card, footer, .scenario-tabs, .scenario-panel { width: min(1240px, 100%); margin-left: auto; margin-right: auto; }
.section-heading { display: grid; grid-template-columns: 1fr .55fr; gap: 80px; align-items: end; }
.section-heading h2, .experience h2 { font-size: clamp(43px, 5.5vw, 76px); }
.section-heading > p { margin: 0 0 5px; color: var(--muted); font-size: 16px; }
.scenario-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 66px; border-bottom: 1px solid var(--line); }
.scenario-tab { position: relative; padding: 18px 8px 22px; border: 0; background: none; text-align: left; font-size: clamp(14px, 1.5vw, 18px); font-weight: 700; cursor: pointer; color: #758187; }
.scenario-tab span { margin-right: 13px; font-size: 10px; letter-spacing: .1em; }
.scenario-tab::after { content: ""; position: absolute; inset: auto 0 -1px; height: 3px; background: linear-gradient(90deg, var(--blue), var(--green)); transform: scaleX(0); transition: transform 240ms ease; }
.scenario-tab.is-active { color: var(--ink); }
.scenario-tab.is-active::after { transform: scaleX(1); }
.scenario-panel { margin-top: 42px; display: grid; grid-template-columns: 1.12fr .88fr; min-height: 470px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 50px rgba(8,27,35,.07); }
.scenario-main { padding: clamp(34px, 5vw, 70px); background: #eef5f9; display: flex; flex-direction: column; }
.scenario-label { margin: 0 0 24px; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.scenario-main h3 { margin: 0; max-width: 700px; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: clamp(32px, 4vw, 54px); font-weight: 650; letter-spacing: -.035em; line-height: 1.08; }
.scenario-main > p:not(.scenario-label) { max-width: 680px; color: var(--muted); font-size: 16px; }
.outcome { margin-top: auto; display: flex; gap: 16px; align-items: center; padding-top: 30px; border-top: 1px solid var(--line); }
.outcome-icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--blue); }
.outcome p { margin: 0; display: flex; flex-direction: column; gap: 5px; }
.outcome small { color: var(--muted); font-size: 9px; letter-spacing: .16em; }
.outcome strong { font-size: 13px; }
.scenario-services { padding: clamp(34px, 4vw, 58px); color: white; background: linear-gradient(145deg, #06385e, var(--ink-deep)); display: flex; flex-direction: column; }
.scenario-services > p { margin: 0 0 22px; color: var(--teal-bright); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .14em; }
.scenario-services ul { margin: 0; padding: 0; list-style: none; }
.scenario-services li { padding: 18px 0; display: flex; gap: 16px; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 13px; }
.scenario-services li span { color: var(--blue-bright); font-size: 9px; padding-top: 4px; }
.scenario-cta { margin-top: auto; color: white; border: 1px solid rgba(255,255,255,.2); }
.scenario-cta:hover { background: #173742; }

.experience { padding-bottom: 32px; background: var(--paper); }
.experience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(60px, 9vw, 130px); align-items: start; }
.experience-copy > p:not(.eyebrow) { color: var(--muted); font-size: 17px; margin: 30px 0; }
.capabilities { display: flex; flex-wrap: wrap; gap: 8px; }
.capabilities span { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: #3e5259; font-size: 11px; font-weight: 700; }
.service-stack article { padding: 30px 0; display: grid; grid-template-columns: 48px 1fr; gap: 20px; border-top: 1px solid var(--line); }
.service-stack article:last-child { border-bottom: 1px solid var(--line); }
.service-stack > article > span { color: var(--blue); font-size: 11px; font-weight: 800; }
.service-stack h3 { margin: 0 0 10px; font-size: 18px; }
.service-stack p { margin: 0; color: var(--muted); font-size: 14px; }
.contact-card { margin-top: clamp(90px, 12vw, 160px); padding: clamp(38px, 5vw, 70px); display: grid; grid-template-columns: 1fr .55fr; align-items: center; gap: 60px; color: white; background-image: linear-gradient(90deg, rgba(2,26,44,.98), rgba(3,35,58,.84)), url("./assets/gmx-circuit-pattern.jpg"); background-size: cover, 62% auto; background-position: center, right center; background-repeat: no-repeat; border-radius: var(--radius); box-shadow: 0 24px 60px rgba(2, 26, 44, .22); overflow: hidden; }
.contact-card .eyebrow { color: var(--teal-bright); }
.contact-card h2 { font-size: clamp(38px, 5vw, 67px); }
.contact-card > div > p:last-child { color: #c8dbe6; }
.contact-action { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.contact-action small { color: #bad0dd; font-size: 10px; text-align: center; }
.contact-email { align-self: center; color: var(--teal-bright); font-size: 12px; font-weight: 750; border-bottom: 1px solid rgba(105, 215, 183, .45); }
footer { margin-top: 32px; padding: 40px 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 50px; color: var(--muted); font-size: 9px; }
footer > p:nth-child(2) { max-width: 660px; }
.brand-footer .brand-logo { width: 142px; height: auto; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.footer-contact a { color: var(--blue); font-size: 10px; font-weight: 750; }

.contact-dialog { width: min(600px, calc(100% - 28px)); padding: clamp(28px, 5vw, 52px); color: var(--ink); background: var(--white); border: 0; border-radius: var(--radius); box-shadow: 0 30px 100px rgba(0,0,0,.26); }
.contact-dialog::backdrop { background: rgba(4, 17, 23, .72); backdrop-filter: blur(5px); }
.contact-dialog h2 { font-size: clamp(38px, 6vw, 58px); }
.contact-dialog > p:not(.eyebrow,.copy-status) { color: var(--muted); }
.dialog-close { position: absolute; right: 20px; top: 18px; border: 0; background: none; font-size: 28px; cursor: pointer; }
.contact-dialog label { display: block; margin: 28px 0 8px; font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.contact-dialog textarea { width: 100%; resize: vertical; padding: 14px; color: var(--ink); background: #f4f2ec; border: 1px solid var(--line); border-radius: 12px; outline: none; }
.contact-dialog textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(29,123,115,.12); }
.dialog-actions { display: flex; align-items: center; gap: 20px; margin-top: 20px; }
.text-button { padding: 8px 0; border: 0; border-bottom: 1px solid var(--ink); background: none; font-weight: 700; cursor: pointer; }
.copy-status { min-height: 20px; margin-bottom: 0; color: var(--teal); font-size: 12px; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 620ms ease, transform 620ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .site-header nav a:not(.nav-cta) { display: none; }
  .hero { padding-top: 126px; }
  .hero-grid, .section-heading, .experience-grid, .contact-card { grid-template-columns: 1fr; }
  .hero-proof { max-width: 630px; }
  .weave-card { min-height: 340px; }
  .trust-strip { margin-top: 70px; overflow-x: auto; justify-content: flex-start; }
  .trust-strip span { white-space: nowrap; }
  .section-heading { gap: 22px; }
  .scenario-panel { grid-template-columns: 1fr; }
  .scenario-services { min-height: 420px; }
  footer { grid-template-columns: 1fr; gap: 18px; }
  .footer-contact { align-items: flex-start; }
}

@media (max-width: 600px) {
  .site-header { height: 72px; padding: 0 20px; }
  .brand-logo { width: 138px; height: 50px; }
  .brand-specialty { display: none; }
  .nav-cta { padding: 9px 14px; }
  .hero { min-height: auto; padding-left: 20px; padding-right: 20px; background-size: cover, auto 78%; background-position: center, right top; }
  .hero-grid { gap: 70px; }
  h1 { font-size: clamp(48px, 15vw, 66px); }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 18px; }
  .hero-actions .button { width: 100%; }
  .text-link { align-self: flex-start; }
  .hero-proof::before { inset: -16px 22px 20px -14px; }
  .proof-list { grid-template-columns: 1fr; }
  .section { padding-left: 20px; padding-right: 20px; }
  .scenario-tabs { grid-template-columns: 1fr; border-bottom: 0; }
  .scenario-tab { border-bottom: 1px solid var(--line); }
  .scenario-tab::after { inset: 0 auto 0 0; width: 3px; height: auto; transform: scaleY(0); }
  .scenario-tab.is-active::after { transform: scaleY(1); }
  .scenario-main, .scenario-services { padding: 34px 24px; }
  .scenario-main { min-height: 520px; }
  .contact-card { padding: 36px 24px; gap: 32px; background-size: cover, auto 100%; }
  .button { gap: 16px; }
  .dialog-actions { align-items: stretch; flex-direction: column; }
}
