:root {
  --ink: #07101f;
  --muted: #5d6879;
  --blue: #326cff;
  --paper: #f5f7fa;
  --white: #fff;
  --line: rgba(7, 16, 31, 0.16);
  --pad: clamp(1.25rem, 5vw, 5.5rem);
}

* { 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; font-size: 1rem; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { position: fixed; z-index: 20; inset: 0 0 auto; height: 5rem; padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.22); color: var(--white); transition: .35s ease; }
.site-header.is-scrolled { height: 4.5rem; color: var(--ink); background: rgba(255,255,255,.93); border-color: var(--line); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: .72rem; font-weight: 800; letter-spacing: -.035em; }
.brand b { color: var(--blue); }
.brand-mark { display: grid; place-items: center; width: 2.15rem; height: 2.15rem; color: white; background: var(--blue); font-weight: 900; border-radius: .25rem; }
.site-nav { display: flex; align-items: center; gap: 2rem; font-size: .88rem; font-weight: 700; }
.site-nav a { transition: opacity .2s ease; }
.site-nav a:hover { opacity: .62; }
.nav-cta { padding: .75rem 1rem; border: 1px solid currentColor; }
.menu-button { display: none; width: 2.8rem; height: 2.8rem; background: transparent; border: 0; position: relative; color: currentColor; }
.menu-button span:not(.sr-only) { position: absolute; width: 1.6rem; height: 2px; left: .6rem; background: currentColor; transition: .25s ease; }
.menu-button span:nth-child(2) { top: 1.05rem; }
.menu-button span:nth-child(3) { top: 1.65rem; }

.hero { min-height: 100svh; position: relative; display: grid; align-items: end; overflow: hidden; background: #cbd5e1; }
.hero-image, .hero-wash, .hero-grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: center; }
.hero-wash { background: linear-gradient(90deg, rgba(245,247,250,.97) 0%, rgba(245,247,250,.89) 37%, rgba(245,247,250,.15) 68%, rgba(7,16,31,.15) 100%); }
.hero-grid { opacity: .16; background-image: linear-gradient(to right, transparent calc(25% - 1px), #07101f 25%, transparent calc(25% + 1px)), linear-gradient(to right, transparent calc(50% - 1px), #07101f 50%, transparent calc(50% + 1px)), linear-gradient(to right, transparent calc(75% - 1px), #07101f 75%, transparent calc(75% + 1px)); }
.hero-content { position: relative; z-index: 2; width: min(58rem, 76%); padding: 10.5rem var(--pad) 6.5rem; }
.eyebrow { margin: 0 0 1.2rem; color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 1.6rem; max-width: 13ch; font-size: clamp(3rem, 6.8vw, 7rem); line-height: .92; letter-spacing: -.072em; }
h1 em, .approach h2 em { color: var(--blue); font-style: normal; }
.hero-copy { max-width: 39rem; margin-bottom: 2.1rem; color: #3f4c5e; font-size: clamp(1.06rem, 1.7vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.button { min-height: 3.2rem; padding: .85rem 1.15rem; display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; font-size: .88rem; font-weight: 800; border: 1px solid transparent; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--blue); }
.button-primary:hover { background: #2457d9; }
.button-ghost { background: rgba(255,255,255,.72); border-color: rgba(7,16,31,.25); }
.hero-index { position: absolute; z-index: 2; right: var(--pad); bottom: 2rem; display: flex; align-items: center; gap: .75rem; color: white; font-size: .72rem; font-weight: 700; }
.hero-index .line { width: 5rem; height: 1px; background: rgba(255,255,255,.55); }

.section { padding: clamp(5rem, 11vw, 9rem) var(--pad); }
.section-kicker { display: flex; align-items: center; gap: .8rem; margin-bottom: 3rem; font-size: .77rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.section-kicker span { color: var(--blue); }
.intro { background: white; }
.intro-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(18rem, .7fr); gap: clamp(2rem, 8vw, 8rem); align-items: start; }
.intro h2, .services-head h2, .approach h2, .contact h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 5.4rem); line-height: 1; letter-spacing: -.06em; }
.intro-copy { padding-top: .35rem; color: var(--muted); font-size: 1.05rem; }
.intro-copy p + p { margin-top: 1.5rem; }

.services { background: var(--ink); color: white; }
.services-head { padding-bottom: 4rem; }
.services-head .section-kicker { color: #aab3c2; }
.services-head h2 { max-width: 12ch; }
.service-list { display: grid; grid-template-columns: repeat(3, 1fr); }
.service-card { min-height: 35rem; padding: 2rem; display: grid; grid-template-rows: auto 1fr auto; position: relative; border-top: 1px solid rgba(255,255,255,.2); }
.service-card + .service-card { border-left: 1px solid rgba(255,255,255,.2); }
.service-number { font-size: .75rem; font-weight: 800; opacity: .65; }
.service-icon { align-self: center; font-size: 5rem; font-weight: 200; }
.service-code { margin-bottom: .8rem; font-size: .72rem; letter-spacing: .14em; font-weight: 800; opacity: .7; }
.service-card h3 { max-width: 13ch; margin-bottom: 1.2rem; font-size: clamp(1.65rem, 2.5vw, 2.6rem); line-height: 1.02; letter-spacing: -.045em; }
.service-card p:last-child { max-width: 29rem; margin: 0; opacity: .72; }
.service-arrow { position: absolute; right: 2rem; top: 2rem; font-size: 1.4rem; }
.service-dark { background: #101a2a; }
.service-blue { background: var(--blue); }
.service-light { color: var(--ink); background: #eef1f5; }

.approach { background: white; }
.approach-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(23rem, .8fr); gap: clamp(3rem, 9vw, 9rem); }
.approach h2 { max-width: 11ch; }
.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { padding: 2rem 0; display: grid; grid-template-columns: 3rem 1fr; gap: 1.2rem; border-bottom: 1px solid var(--line); }
.steps li > span { color: var(--blue); font-size: .78rem; font-weight: 800; }
.steps h3 { margin-bottom: .45rem; font-size: 1.35rem; }
.steps p { margin: 0; color: var(--muted); }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); background: #e6ebf2; }
.principle { min-height: 18rem; padding: 2.5rem var(--pad) 2.5rem 2.5rem; border-right: 1px solid var(--line); }
.principle span { color: var(--blue); font-size: .75rem; font-weight: 800; }
.principle h3 { margin: 5rem 0 .6rem; font-size: 1.4rem; }
.principle p { max-width: 20rem; color: var(--muted); }

.contact { min-height: 38rem; padding: clamp(5rem, 10vw, 8rem) var(--pad); position: relative; overflow: hidden; color: white; background: var(--blue); }
.contact .section-kicker span { color: white; }
.contact h2 { max-width: 13ch; position: relative; z-index: 1; }
.contact > p:not(.section-kicker) { margin: 1.8rem 0 2rem; font-size: 1.12rem; opacity: .8; }
.button-white { color: var(--ink); background: white; }
.contact-orbit { position: absolute; width: 48rem; height: 48rem; right: -8rem; top: -12rem; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; }
.contact-orbit::before, .contact-orbit::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; inset: 16%; }
.contact-orbit::after { inset: 34%; background: rgba(255,255,255,.07); }

footer { padding: 3.5rem var(--pad); display: flex; justify-content: space-between; gap: 3rem; color: white; background: var(--ink); }
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-brand strong { letter-spacing: -.02em; }
.footer-brand p, .footer-meta { margin: .45rem 0 0; color: #8792a3; font-size: .82rem; }
.footer-meta { text-align: right; }
.footer-meta p { margin-bottom: .35rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .site-header { color: var(--ink); background: rgba(255,255,255,.94); border-color: var(--line); }
  .menu-button { display: block; z-index: 2; }
  .menu-button[aria-expanded="true"] span:nth-child(2) { transform: translateY(.3rem) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-.3rem) rotate(-45deg); }
  .site-nav { position: fixed; inset: 0; padding: 7rem var(--pad) 3rem; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.5rem; background: white; font-size: clamp(1.8rem, 7vw, 3.4rem); transform: translateY(-105%); transition: transform .45s cubic-bezier(.76,0,.24,1); }
  .site-nav.is-open { transform: translateY(0); }
  .nav-cta { margin-top: 1rem; font-size: 1rem; }
  .hero-content { width: 100%; padding-top: 9rem; }
  .hero-wash { background: linear-gradient(180deg, rgba(245,247,250,.92) 0%, rgba(245,247,250,.78) 62%, rgba(7,16,31,.28) 100%); }
  .intro-layout, .approach-layout { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr; }
  .service-card { min-height: 29rem; }
  .service-card + .service-card { border-left: 0; }
  .principles { grid-template-columns: 1fr; }
  .principle { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .principle h3 { margin-top: 3rem; }
}

@media (max-width: 620px) {
  .site-header { height: 4.35rem; }
  .brand { font-size: .9rem; }
  .hero { min-height: 48rem; }
  .hero-content { padding-bottom: 4.5rem; }
  h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
  .hero-copy { color: #273447; }
  .button { width: 100%; }
  .hero-index { display: none; }
  .section-kicker { margin-bottom: 2rem; }
  .service-card { padding: 1.5rem; }
  footer { flex-direction: column; }
  .footer-meta { text-align: left; }
}

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

/* Inner pages and interactive tools */
.text-link { display: inline-flex; gap: .75rem; align-items: center; margin-top: 1.25rem; padding-bottom: .25rem; border-bottom: 1px solid currentColor; font-size: .82rem; font-weight: 800; }
.pathways { background: white; }
.pathway-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.pathway { min-height: 22rem; padding: 2rem; display: flex; flex-direction: column; border-right: 1px solid var(--line); transition: background .25s ease, color .25s ease; }
.pathway:last-child { border-right: 0; }
.pathway > span { color: var(--blue); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pathway h3 { margin: auto 0 1rem; font-size: clamp(1.7rem, 2.6vw, 2.5rem); line-height: 1; letter-spacing: -.045em; }
.pathway p { color: var(--muted); }
.pathway b { margin-top: 1.5rem; font-size: .84rem; }
.pathway:hover { color: white; background: var(--ink); }
.pathway:hover p, .pathway:hover > span { color: #aeb8c7; }

.inner-body { background: white; }
.inner-body .site-header { color: var(--ink); background: rgba(255,255,255,.94); border-color: var(--line); }
.inner-main { padding-top: 5rem; }
.page-hero { padding: clamp(5rem, 10vw, 9rem) var(--pad) clamp(4rem, 8vw, 7rem); position: relative; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--line); }
.page-hero::after { content: ""; position: absolute; width: 34rem; height: 34rem; right: -12rem; bottom: -18rem; border: 1px solid rgba(50,108,255,.22); border-radius: 50%; box-shadow: 0 0 0 7rem rgba(50,108,255,.045), 0 0 0 14rem rgba(50,108,255,.025); }
.breadcrumb { margin-bottom: 3rem; color: var(--muted); font-size: .78rem; font-weight: 700; }
.breadcrumb a { color: var(--blue); }
.page-hero h1 { max-width: 13ch; margin: 0 0 1.5rem; font-size: clamp(3.2rem, 7vw, 7rem); }
.page-hero p { max-width: 48rem; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.page-meta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.page-meta span { padding: .55rem .75rem; color: #29415f; background: white; border: 1px solid var(--line); font-size: .74rem; font-weight: 800; }

.content-grid { display: grid; grid-template-columns: minmax(0,.72fr) minmax(0,1.28fr); gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.sticky-intro { position: sticky; top: 7rem; }
.sticky-intro h2 { margin-bottom: 1.5rem; font-size: clamp(2.3rem, 4.5vw, 4.4rem); line-height: 1; letter-spacing: -.055em; }
.sticky-intro p { color: var(--muted); }
.feature-stack { border-top: 1px solid var(--line); }
.feature { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.feature > span { color: var(--blue); font-size: .78rem; font-weight: 800; }
.feature h3 { margin-bottom: .55rem; font-size: 1.35rem; }
.feature p { margin: 0; color: var(--muted); }

.tool-section { padding: clamp(4rem, 9vw, 8rem) var(--pad); color: white; background: var(--ink); }
.tool-shell { max-width: 76rem; margin: 0 auto; display: grid; grid-template-columns: minmax(16rem,.55fr) minmax(0,1fr); }
.tool-aside { padding: clamp(2rem,4vw,4rem); background: #101c2e; }
.tool-aside .eyebrow { color: #73a0ff; }
.tool-aside h2 { font-size: clamp(2rem,4vw,3.7rem); line-height: 1; letter-spacing: -.05em; }
.tool-aside p { color: #a7b2c3; }
.tool-points { margin: 2rem 0 0; padding: 0; list-style: none; }
.tool-points li { padding: .85rem 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .84rem; }
.tool-card { padding: clamp(1.5rem,4vw,4rem); color: var(--ink); background: white; }
.tool-progress { margin-bottom: 2rem; display: flex; gap: .45rem; }
.tool-progress span { height: 3px; flex: 1; background: #dde3ec; }
.tool-progress span.is-active { background: var(--blue); }
.form-step[hidden] { display: none; }
.form-step h3 { margin-bottom: .65rem; font-size: clamp(1.6rem,3vw,2.35rem); letter-spacing: -.04em; }
.form-lead { margin-bottom: 2rem; color: var(--muted); }
.field { margin-bottom: 1.4rem; }
.field label, .field legend { display: block; margin-bottom: .55rem; font-size: .84rem; font-weight: 800; }
.field small { display: block; margin-top: .4rem; color: var(--muted); }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), .field select, .field textarea { width: 100%; min-height: 3.25rem; padding: .8rem 1rem; color: var(--ink); background: #f6f8fb; border: 1px solid #d8dfe9; border-radius: 0; font: inherit; }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.choice-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: .65rem; }
.choice { min-height: 4rem; padding: .8rem; display: flex; gap: .7rem; align-items: center; background: #f6f8fb; border: 1px solid #d8dfe9; cursor: pointer; }
.choice:has(input:checked) { background: #eef3ff; border-color: var(--blue); }
.choice input { accent-color: var(--blue); }
.range-head { display: flex; justify-content: space-between; gap: 1rem; }
.range-head output { color: var(--blue); font-weight: 900; }
.field input[type="range"] { width: 100%; accent-color: var(--blue); }
.form-actions { margin-top: 2rem; display: flex; justify-content: space-between; gap: .75rem; }
.form-actions .button { cursor: pointer; }
.button-secondary { color: var(--ink); background: white; border-color: var(--line); }
.button[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.result-panel { padding: 1.5rem; background: #eef3ff; border-left: 4px solid var(--blue); }
.result-score { margin: 0 0 .6rem; color: var(--blue); font-size: clamp(2.8rem,7vw,5rem); font-weight: 900; line-height: 1; letter-spacing: -.06em; }
.result-panel h4 { margin: 0 0 .7rem; font-size: 1.35rem; }
.result-panel p { color: #42516a; }
.result-list { margin: 1rem 0 0; padding-left: 1.2rem; color: #42516a; }
.summary { display: grid; gap: .7rem; }
.summary-row { padding: .85rem 0; display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; border-bottom: 1px solid var(--line); }
.summary-row span { color: var(--muted); font-size: .8rem; font-weight: 700; }
.demo-note { margin-top: 1rem; color: var(--muted); font-size: .78rem; }
.status-message { margin-top: 1rem; padding: 1rem; color: #174b32; background: #e8f7ef; border: 1px solid #bce4cc; }

.service-directory { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.directory-card { min-height: 28rem; padding: 2rem; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.directory-card .service-code { color: var(--blue); }
.directory-card h2 { margin: auto 0 1rem; font-size: clamp(2rem,3.4vw,3.3rem); line-height: .98; letter-spacing: -.055em; }
.directory-card p { color: var(--muted); }
.directory-card .button { margin-top: 1.5rem; align-self: flex-start; }
.compare { overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; min-width: 44rem; }
.compare th, .compare td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.compare th { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }

.contact-layout { display: grid; grid-template-columns: minmax(18rem,.65fr) minmax(0,1fr); gap: clamp(3rem,8vw,8rem); }
.contact-options { display: grid; gap: .8rem; margin-top: 2rem; }
.contact-option { padding: 1rem; border: 1px solid var(--line); }
.contact-option b { display: block; margin-bottom: .25rem; }
.contact-option span { color: var(--muted); font-size: .84rem; }
.plain-form { padding: clamp(1.5rem,4vw,3.5rem); background: var(--paper); }

@media (max-width: 900px) {
  .pathway-grid, .service-directory { grid-template-columns: 1fr; }
  .pathway { min-height: 18rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .content-grid, .tool-shell, .contact-layout { grid-template-columns: 1fr; }
  .sticky-intro { position: static; }
}

@media (max-width: 620px) {
  .page-hero { padding-top: 4rem; }
  .page-hero h1 { font-size: 3.25rem; }
  .choice-grid { grid-template-columns: 1fr; }
  .tool-section { padding-inline: 0; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .button { width: 100%; }
  .summary-row { grid-template-columns: 1fr; gap: .25rem; }
}
