:root {
  --navy: #102d3c;
  --navy-deep: #092431;
  --blue: #176c91;
  --accent: #51c0e9;
  --paper: #f7f9f8;
  --white: #ffffff;
  --ink: #183440;
  --muted: #546974;
  --line: #d9e3e6;
  --line-dark: rgba(255, 255, 255, .2);
  --radius-sm: 10px;
  --radius-md: 18px;
  --container: 1200px;
  --section-space: clamp(76px, 9vw, 132px);
  --shadow: 0 24px 70px rgba(9, 36, 49, .13);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 16px/1.6 "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; }
section { scroll-margin-top: 76px; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-space); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 16px; border-radius: var(--radius-sm); background: var(--white); color: var(--navy); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--navy); font-size: 21px; font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.brand img { flex: none; }
.brand small { display: block; margin-top: 5px; color: var(--blue); font-size: 8px; font-weight: 750; letter-spacing: .15em; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.3vw, 30px); font-size: 14px; font-weight: 650; }
.site-nav a:not(.nav-contact) { transition: color .2s ease; }
.site-nav a:not(.nav-contact):hover { color: var(--blue); }
.nav-contact { display: inline-flex; align-items: center; gap: 16px; padding: 11px 17px; border-radius: var(--radius-sm); background: var(--navy); color: var(--white); transition: background .2s ease, transform .2s ease; }
.nav-contact:hover { background: var(--blue); transform: translateY(-2px); }
.menu-toggle { display: none; }

/* Shared type and actions */
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow-light { color: #a5e1f5; }
.eyebrow-rule { width: 24px; height: 1px; background: currentColor; }
h1 { font-size: clamp(42px, 4.75vw, 70px); letter-spacing: -.057em; font-weight: 730; }
h2 { margin-bottom: 0; font-size: clamp(34px, 4vw, 54px); letter-spacing: -.05em; font-weight: 720; }
h3 { letter-spacing: -.035em; }
.section-intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .68fr); align-items: end; gap: clamp(48px, 8vw, 140px); margin-bottom: 56px; }
.section-intro h2 { max-width: 680px; }
.section-intro > p { max-width: 425px; margin: 0 0 5px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 54px; padding: 13px 19px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 750; line-height: 1.3; transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.button span, .text-link span { font-size: 20px; line-height: 1; }
.button-accent { background: var(--accent); color: var(--navy-deep); box-shadow: 0 12px 26px rgba(3, 19, 27, .12); }
.button-accent:hover { background: #85d9f3; box-shadow: 0 16px 30px rgba(3, 19, 27, .16); transform: translateY(-2px); }
.text-link { display: inline-flex; align-items: center; gap: 12px; color: var(--blue); font-size: 15px; font-weight: 750; border-bottom: 1px solid currentColor; padding-bottom: 4px; transition: gap .2s ease, color .2s ease; }
.text-link:hover { gap: 18px; color: var(--navy); }
.text-link-light { color: #d5eff8; }
.text-link-light:hover { color: var(--white); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy-deep); color: var(--white); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 78% 37%, rgba(37, 132, 165, .22), transparent 33%), linear-gradient(110deg, transparent 65%, rgba(255,255,255,.025) 65%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(320px, .84fr); align-items: center; gap: clamp(50px, 6vw, 90px); min-height: 665px; padding-block: 98px 84px; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { max-width: 760px; margin-bottom: 28px; }
.hero-lead { max-width: 620px; margin-bottom: 32px; color: #c6dbe4; font-size: clamp(17px, 1.55vw, 20px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; }
.hero-visual { position: relative; width: 100%; height: 455px; border: 1px solid rgba(158, 212, 232, .18); border-radius: var(--radius-md); background: repeating-linear-gradient(0deg, transparent 0 39px, rgba(255,255,255,.045) 40px), repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,.045) 40px), rgba(255,255,255,.025); box-shadow: inset 0 0 80px rgba(4, 20, 29, .3); }
.flow-node { position: absolute; z-index: 1; display: flex; flex-direction: column; min-width: 190px; padding: 15px 18px 18px; border: 1px solid rgba(142, 216, 242, .38); border-radius: var(--radius-sm); background: #163c4f; box-shadow: 0 16px 34px rgba(0,0,0,.2); }
.flow-node strong { color: var(--white); font-size: 21px; line-height: 1.2; }
.flow-node > span:last-child { margin-top: 6px; color: #bed9e4; font-size: 13px; }
.node-index { margin-bottom: 12px; color: #78d5f3; font: 700 10px/1.2 Consolas, monospace; letter-spacing: .08em; }
.node-field { top: 54px; left: 7%; }
.node-system { top: 166px; right: 7%; background: #1d617d; }
.node-data { bottom: 48px; left: 10%; }
.flow-line { position: absolute; border-color: rgba(118, 210, 242, .7); }
.flow-line-one { top: 124px; left: 47%; width: 29%; height: 96px; border-top: 1px solid; border-right: 1px solid; }
.flow-line-two { top: 263px; left: 40%; width: 37%; border-top: 1px solid; }
.flow-line-three { top: 263px; left: 40%; height: 78px; border-left: 1px solid; }
.flow-caption { position: absolute; right: 18px; bottom: 14px; color: #8caebd; font: 700 10px/1.2 Consolas, monospace; letter-spacing: .14em; }
.hero-bottom { position: relative; display: flex; flex-wrap: wrap; gap: 0; padding: 18px 0 21px; border-top: 1px solid var(--line-dark); color: #aed0df; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero-bottom span { display: inline-flex; align-items: center; }
.hero-bottom span + span::before { content: ""; width: 3px; height: 3px; margin-inline: 22px; border-radius: 50%; background: var(--accent); }

/* Services */
.services { background: var(--paper); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.service-item { display: flex; flex-direction: column; min-height: 350px; padding: 30px clamp(22px, 3vw, 42px) 0 0; }
.service-item + .service-item { padding-left: clamp(22px, 3vw, 42px); border-left: 1px solid var(--line); }
.service-number { margin-bottom: 42px; color: var(--blue); font: 700 13px/1 Consolas, monospace; }
.service-item h3 { margin-bottom: 18px; font-size: clamp(25px, 2.35vw, 31px); }
.service-item p { margin-bottom: 24px; color: var(--muted); }
.service-detail { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .02em; }

/* Operational capabilities */
.operations { background: var(--white); }
.operations-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(70px, 10vw, 150px); }
.operations-copy h2 { max-width: 520px; }
.operations-copy > p:not(.eyebrow) { max-width: 500px; margin: 24px 0 28px; color: var(--muted); font-size: 18px; }
.capability-list { border-top: 1px solid var(--line); }
.capability { display: grid; grid-template-columns: 44px 1fr; gap: 22px; padding: 26px 0 29px; border-bottom: 1px solid var(--line); }
.capability-marker { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #b9d8e3; border-radius: 50%; color: var(--blue); font: 700 13px/1 Consolas, monospace; }
.capability h3 { margin: 2px 0 9px; font-size: 23px; }
.capability p { max-width: 520px; margin: 0; color: var(--muted); }

/* Featured project */
.project { background: #eaf2f3; }
.project-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.project-heading .eyebrow { margin: 0; }
.project-heading > span { color: var(--muted); font-size: 14px; }
.project-grid { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); background: var(--white); border: 1px solid #d2e1e5; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow); }
.project-copy { padding: clamp(34px, 5vw, 70px); }
.project-type { margin-bottom: 18px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.project-copy h2 { margin-bottom: 26px; font-size: clamp(56px, 6vw, 82px); letter-spacing: -.065em; }
.project-period { color: var(--blue); }
.project-lead { max-width: 470px; margin-bottom: 20px; color: var(--navy); font-size: 23px; font-weight: 650; line-height: 1.35; letter-spacing: -.025em; }
.project-copy > p:not(.project-type):not(.project-lead) { max-width: 500px; color: var(--muted); }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.project-tags li { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); font-size: 12px; font-weight: 650; }
.project-visual { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; min-height: 510px; padding: 30px; color: var(--white); background: radial-gradient(circle at 48% 45%, rgba(29, 122, 157, .28), transparent 48%), var(--navy); }
.diagram-label, .diagram-footer { color: #a4d0e0; font: 700 11px/1.3 Consolas, monospace; letter-spacing: .1em; }
.diagram-grid { display: grid; grid-template-columns: minmax(0,1fr) 24px minmax(0,1fr) 24px minmax(0,1fr); align-items: center; gap: 8px; }
.diagram-module { display: flex; flex-direction: column; min-width: 0; min-height: 190px; padding: 17px 13px; border: 1px solid rgba(143, 212, 237, .35); border-radius: var(--radius-sm); background: #1b4456; }
.diagram-module:nth-of-type(3) { background: #216784; }
.diagram-module > span { margin-bottom: 32px; color: #85d7f1; font: 700 12px/1 Consolas, monospace; }
.diagram-module strong { margin-bottom: 9px; font-size: clamp(14px, 1.35vw, 18px); line-height: 1.15; overflow-wrap: anywhere; }
.diagram-module small { color: #c4dfe8; font-size: 11px; line-height: 1.5; }
.diagram-arrow { color: #8ad7f0; text-align: center; font-size: 20px; }
.diagram-footer { display: flex; justify-content: space-between; gap: 15px; padding-top: 14px; border-top: 1px solid var(--line-dark); }

/* Process and about */
.approach { background: var(--white); }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.steps li { position: relative; padding: 29px 20px 0 0; }
.steps li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.steps li > span { display: block; margin-bottom: 27px; color: var(--blue); font: 700 12px/1 Consolas, monospace; }
.steps strong { display: block; margin-bottom: 8px; font-size: 21px; line-height: 1.2; letter-spacing: -.025em; }
.steps p { max-width: 170px; margin: 0; color: var(--muted); font-size: 14px; }
.about { background: var(--paper); border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(70px, 12vw, 170px); }
.about h2 { max-width: 580px; }
.about-copy { padding-top: 34px; border-top: 2px solid var(--blue); }
.about-copy p { color: var(--muted); font-size: 18px; }
.about-copy p:last-child { margin-bottom: 0; }

/* Contact and footer */
.contact { padding-block: var(--section-space); background: var(--navy-deep); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .68fr); gap: clamp(70px, 10vw, 150px); }
.contact h2 { max-width: 670px; }
.contact-copy > p:not(.eyebrow) { max-width: 610px; margin: 24px 0 30px; color: #c6dbe4; font-size: 18px; }
.contact-details { align-self: center; border-top: 1px solid var(--line-dark); }
.contact-details > div { display: grid; grid-template-columns: 95px 1fr; gap: 15px; padding: 17px 0; border-bottom: 1px solid var(--line-dark); }
.contact-details span { color: #91bfd0; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.contact-details strong, .contact-details a { color: var(--white); font-size: 14px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.contact-details a:hover { color: var(--accent); text-decoration: underline; }
.site-footer { padding-block: 26px; background: #061c27; color: #a9c5d0; font-size: 12px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.footer-brand { color: var(--white); font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.footer-brand span { margin-left: 5px; color: var(--accent); }
.site-footer a:last-child:hover { color: var(--white); text-decoration: underline; }

@media (max-width: 1060px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(285px, .7fr); gap: 40px; }
  .hero h1 { font-size: clamp(42px, 5vw, 58px); }
  .flow-node { min-width: 155px; }
  .diagram-grid { grid-template-columns: 1fr; gap: 6px; }
  .diagram-module { min-height: auto; padding: 12px 14px; }
  .diagram-module > span { margin-bottom: 6px; }
  .diagram-module small { display: none; }
  .diagram-arrow { line-height: 1; transform: rotate(90deg); }
}

@media (max-width: 800px) {
  .menu-ready .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--navy); cursor: pointer; }
  .menu-toggle span { display: block; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .header-inner { flex-wrap: wrap; }
  .site-nav { width: 100%; flex-wrap: wrap; gap: 8px 20px; padding-bottom: 14px; }
  .menu-ready .site-nav { position: absolute; top: calc(100% + 1px); left: 0; display: none; width: 100%; padding: 16px 24px 22px; border-bottom: 1px solid var(--line); background: var(--white); box-shadow: 0 18px 30px rgba(9,36,49,.1); }
  .menu-ready .site-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .menu-ready .site-nav a { display: block; padding: 12px 5px; }
  .menu-ready .site-nav .nav-contact { display: flex; justify-content: space-between; margin-top: 10px; padding-inline: 14px; }
  .hero-grid { display: block; min-height: 0; padding-block: 86px 70px; }
  .hero-copy { max-width: 690px; }
  .hero-visual { max-width: 650px; height: 330px; margin-top: 60px; }
  .node-field { top: 25px; }
  .node-system { top: 105px; }
  .node-data { bottom: 25px; }
  .flow-line-one { top: 80px; }
  .flow-line-two { top: 202px; }
  .flow-line-three { top: 202px; height: 52px; }
  .section-intro, .operations-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .section-intro > p { max-width: 670px; }
  .service-grid { gap: 0; }
  .service-item { min-height: 370px; }
  .service-item h3 { font-size: 25px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-visual { min-height: 330px; }
  .diagram-grid { grid-template-columns: minmax(0,1fr) 24px minmax(0,1fr) 24px minmax(0,1fr); }
  .diagram-module { min-height: 140px; }
  .diagram-module > span { margin-bottom: 18px; }
  .diagram-module small { display: block; }
  .diagram-arrow { transform: none; }
  .about-copy { padding-top: 24px; }
}

@media (max-width: 600px) {
  :root { --section-space: 76px; }
  .container { width: min(calc(100% - 36px), var(--container)); }
  .header-inner { min-height: 68px; }
  .brand { gap: 7px; font-size: 18px; }
  .brand img { width: 36px; height: 36px; }
  .brand small { font-size: 7px; }
  section { scroll-margin-top: 68px; }
  .hero-grid { padding-block: 72px 54px; }
  .hero h1 { font-size: clamp(39px, 10.8vw, 52px); line-height: 1.06; }
  .hero-lead { font-size: 17px; }
  .hero-actions { align-items: flex-start; gap: 22px; }
  .hero-visual { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); align-items: center; gap: 4px; height: auto; min-height: 105px; margin-top: 54px; padding: 12px; }
  .flow-node { position: static; min-width: 0; min-height: 72px; padding: 12px 6px; align-items: center; justify-content: center; text-align: center; }
  .flow-node strong { font-size: clamp(12px, 3.8vw, 16px); }
  .flow-node > span, .flow-line, .flow-caption { display: none; }
  .hero-bottom { gap: 7px 20px; padding-block: 16px; font-size: 10px; }
  .hero-bottom span + span::before { display: none; }
  .section-intro { margin-bottom: 36px; }
  .section-intro > p, .operations-copy > p:not(.eyebrow), .about-copy p, .contact-copy > p:not(.eyebrow) { font-size: 16px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-item, .service-item + .service-item { min-height: 0; padding: 25px 0 30px; border-left: 0; border-bottom: 1px solid var(--line); }
  .service-number { margin-bottom: 23px; }
  .service-item h3 { margin-bottom: 12px; }
  .service-item p { margin-bottom: 25px; }
  .service-detail { padding-top: 12px; border-top: 0; }
  .capability { gap: 11px; grid-template-columns: 36px 1fr; }
  .capability h3 { font-size: 20px; }
  .project-heading > span { display: none; }
  .project-copy { padding: 30px 24px 34px; }
  .project-copy h2 { font-size: 58px; }
  .project-lead { font-size: 21px; }
  .project-visual { min-height: 440px; padding: 24px; }
  .diagram-grid { grid-template-columns: 1fr; justify-items: stretch; }
  .diagram-module { min-height: 0; padding: 10px 13px; }
  .diagram-module > span { margin-bottom: 4px; }
  .diagram-module small { display: none; }
  .diagram-arrow { line-height: 1; transform: rotate(90deg); }
  .diagram-footer { flex-wrap: wrap; font-size: 9px; }
  .steps { grid-template-columns: 1fr; margin-left: 5px; border-top: 0; border-left: 1px solid var(--line); }
  .steps li { min-height: 105px; padding: 0 0 25px 25px; }
  .steps li:last-child { min-height: 0; padding-bottom: 0; }
  .steps li::before { top: 4px; left: -5px; }
  .steps li > span { margin-bottom: 5px; }
  .steps p { max-width: none; }
  .contact-details > div { grid-template-columns: 1fr; gap: 3px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

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