/* Layout: sticky white header, wide blue hero band, then alternating light sections on a 1120px column. */
:root {
  --blue: #1d4ed8;        /* royal blue, a brighter take on the original brand blue */
  --blue-deep: #0a1633;   /* midnight navy for hero, page heads and footer */
  --navy-2: #13244d;
  --orange: #d9480f;      /* brand orange for small text */
  --orange-bright: #ff6a13;
  --amber: #ffb020;
  --teal: #0d9488;
  --violet: #6d28d9;
  --ink: #0f1a33;
  --muted: #4f5d78;
  --line: #e2e7f0;
  --paper: #ffffff;
  --mist: #f2f5fc;
  --warm: #fff5ec;
  --on-blue: #ffffff;
  --on-blue-muted: #b9c6e4;
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1120px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange-bright); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.site-header::after { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--blue), var(--teal) 45%, var(--orange-bright) 80%, var(--amber)); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand { display: flex; align-items: center; }
.brand img { height: 60px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 6px;
}
.nav a:hover { background: var(--mist); color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--orange-bright); border-radius: 0; }
.nav a.cta { background: var(--blue); color: var(--on-blue); margin-left: 8px; border-radius: 6px; box-shadow: none; }
.nav a.cta:hover { background: var(--blue-deep); color: var(--on-blue); }
.menu-btn {
  display: none; font: inherit; font-weight: 600; color: var(--blue);
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 8px 14px; cursor: pointer;
}
@media (max-width: 900px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--orange-bright); }
  .nav a.cta { margin: 8px 0 0; text-align: center; }
  .brand img { height: 42px; }
}

/* Hero */
.hero, .page-head { color: var(--on-blue); position: relative; overflow: hidden;
  background:
    radial-gradient(60% 80% at 90% 10%, rgba(29,78,216,0.75), transparent 60%),
    radial-gradient(45% 70% at 70% 110%, rgba(255,106,19,0.55), transparent 60%),
    radial-gradient(40% 60% at 0% 0%, rgba(13,148,136,0.35), transparent 60%),
    var(--blue-deep); }
.hero::before, .page-head::before {
  content: ""; position: absolute; inset: 0; opacity: 0.12; pointer-events: none;
  background-image: linear-gradient(var(--on-blue) 1px, transparent 1px), linear-gradient(90deg, var(--on-blue) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(100deg, transparent 35%, #000 100%);
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 100%);
}
.hero .wrap { position: relative; padding-block: 64px 72px; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero .lede { color: var(--on-blue-muted); font-size: 1.15rem; max-width: 34em; margin-top: 18px; }
.eyebrow { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); font-weight: 500; }
.hero .eyebrow, .page-head .eyebrow { color: var(--amber); }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--orange-bright), var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-block; text-decoration: none; font-weight: 600; padding: 12px 22px; border-radius: 6px; }
.btn-primary { background: linear-gradient(90deg, var(--orange-bright), #ff8a3d); color: #1b0d00; box-shadow: 0 6px 20px rgba(255,106,19,0.35); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { color: var(--on-blue); border: 1px solid var(--on-blue-muted); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-blue { background: var(--blue); color: var(--on-blue); }
.btn-blue:hover { background: var(--blue-deep); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; padding-block: 44px 52px; gap: 32px; } }

/* NOC console panel */
.console {
  background: rgba(10,22,51,0.72); border: 1px solid rgba(255,255,255,0.16); border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--on-blue); overflow: hidden; min-width: 0;
}
.console-head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.14); color: var(--on-blue-muted); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.console ul { list-style: none; margin: 0; padding: 8px 0; }
.console li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 16px; }
.console li span:last-child { color: var(--on-blue-muted); white-space: nowrap; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; margin-right: 10px; box-shadow: 0 0 0 3px rgba(74,222,128,0.18); }
.console-foot { padding: 10px 16px; border-top: 1px solid rgba(255,255,255,0.14); color: var(--amber); font-size: 0.78rem; }

/* Page head for inner pages */
.page-head .wrap { position: relative; padding-block: 56px 52px; }
.page-head p { color: var(--on-blue-muted); max-width: 40em; margin-top: 14px; font-size: 1.08rem; }

/* Sections */
section.block .wrap { padding-block: 64px; }
section.alt { background: var(--mist); }
section.warm { background: var(--warm); }
.section-head { display: grid; gap: 10px; margin-bottom: 32px; max-width: 46em; }
.section-head p { color: var(--muted); }
.prose { max-width: 44em; display: grid; gap: 18px; align-content: start; }
.prose p { color: var(--ink); }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
@media (max-width: 400px) { .grid.two { grid-template-columns: 1fr; } }
.tile { --c: var(--blue); background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 10px; padding: 24px; display: grid; gap: 10px; align-content: start; min-width: 0;
  box-shadow: 0 1px 2px rgba(15,26,51,0.04); transition: transform .2s ease, box-shadow .2s ease; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15,26,51,0.10); }
.grid > .tile:nth-child(4n+2) { --c: var(--teal); }
.grid > .tile:nth-child(4n+3) { --c: var(--orange-bright); }
.grid > .tile:nth-child(4n+4) { --c: var(--violet); }
.tile .tag { color: var(--c) !important; }
.tile .more { color: var(--c); }
.tile p { color: var(--muted); font-size: 0.98rem; }
.tile .more { font-weight: 600; text-decoration: none; margin-top: 4px; }
.tile .more:hover { text-decoration: underline; }
.tile .tag { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }

ul.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
ul.ticks li { padding-left: 22px; position: relative; color: var(--ink); font-size: 0.98rem; }
ul.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; background: var(--c, var(--orange-bright)); border-radius: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--font-mono); font-size: 0.82rem; background: #e8eefd; color: #1e3a8a; border-radius: 999px; padding: 5px 12px; }
.chip:nth-child(4n+2) { background: #dcf3f0; color: #115e59; }
.chip:nth-child(4n+3) { background: #ffe8d9; color: #9a3412; }
.chip:nth-child(4n+4) { background: #ede7fb; color: #5b21b6; }

/* Service catalogue rows */
.catalogue { display: grid; gap: 0; border-top: 1px solid var(--line); }
.cat-row { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding-block: 32px; border-bottom: 1px solid var(--line); }
.cat-row > div { min-width: 0; display: grid; gap: 14px; align-content: start; }
.cat-row h2 { font-size: 1.35rem; padding-left: 16px; border-left: 4px solid var(--c, var(--blue)); }
.cat-row:nth-child(4n+1) { --c: var(--blue); } .cat-row:nth-child(4n+2) { --c: var(--teal); }
.cat-row:nth-child(4n+3) { --c: var(--orange-bright); } .cat-row:nth-child(4n+4) { --c: var(--violet); }
.cat-row .intro { color: var(--muted); }
.cat-row .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.cat-row .sub { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 8px; }
@media (max-width: 760px) { .cat-row { grid-template-columns: 1fr; gap: 14px; } }

/* Engagement steps */
.steps > .step:nth-child(4n+2) { --c: var(--teal); } .steps > .step:nth-child(4n+3) { --c: var(--orange-bright); } .steps > .step:nth-child(4n+4) { --c: var(--violet); }
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.step { border-top: 3px solid var(--c, var(--blue)); padding-top: 16px; display: grid; gap: 8px; align-content: start; }
.step::before { counter-increment: step; content: "Step " counter(step); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); }
.step p { color: var(--muted); font-size: 0.98rem; }

/* Contact */
.contact-grid > .contact-card:nth-child(3n+2) { --c: var(--teal); } .contact-grid > .contact-card:nth-child(3n+3) { --c: var(--orange-bright); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.contact-card { border: 1px solid var(--line); border-top: 4px solid var(--c, var(--blue)); border-radius: 10px; padding: 24px; display: grid; gap: 8px; align-content: start; background: var(--paper); min-width: 0; }
.contact-card .label { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contact-card .value { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--blue); overflow-wrap: anywhere; }
.contact-card .value a { text-decoration: none; }
.contact-card .value a:hover { text-decoration: underline; }
.contact-card p { color: var(--muted); font-size: 0.95rem; }

/* Partner */
.partner { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; border: 1px solid var(--line); border-radius: 8px; padding: 32px; background: var(--paper); }
.partner > div { min-width: 0; display: grid; gap: 14px; }
.partner-mark { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--blue-deep); border-left: 4px solid var(--orange-bright); padding-left: 14px; line-height: 1.25; }
.partner-mark small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
@media (max-width: 760px) { .partner { grid-template-columns: 1fr; padding: 24px; gap: 20px; } }

/* CTA band */
.cta-band { background: radial-gradient(50% 120% at 100% 50%, rgba(255,106,19,0.22), transparent 70%), linear-gradient(100deg, var(--navy-2), #1a2f63); color: var(--on-blue); border-top: 3px solid var(--orange-bright); }
.cta-band .wrap { padding-block: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band p { color: var(--on-blue-muted); margin-top: 8px; }

/* Footer */
.site-footer { background: var(--blue-deep); color: var(--on-blue-muted); font-size: 0.93rem; }
.site-footer .wrap { padding-block: 44px 28px; display: grid; gap: 28px; }
.foot-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .foot-cols { grid-template-columns: 1fr; } }
.site-footer h3 { color: var(--on-blue); font-size: 0.95rem; margin-bottom: 10px; }
.site-footer a { color: var(--on-blue-muted); text-decoration: none; }
.site-footer a:hover { color: var(--on-blue); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-name { font-family: var(--font-display); font-weight: 600; color: var(--on-blue); font-size: 1.1rem; margin-bottom: 8px; }
.foot-base { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 0.85rem; }
