:root {
  --navy: #052550;
  --navy-2: #0a3470;
  --navy-deep: #031a3a;
  --accent: #22c1e6;
  --accent-ink: #0a7a94;
  --ink: #14213d;
  --muted: #55627a;
  --bg: #ffffff;
  --bg-soft: #f3f6fb;
  --line: #e0e6f0;
  --radius: 16px;
  --wrap: 1140px;
  --shadow: 0 18px 40px -18px rgba(5, 37, 80, .35);
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -.02em; }
.btn, .crumb, .eyebrow { font-family: var(--font-body); }
.crumb { font-family: var(--font-mono); }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(3, 26, 58, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.08); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; font-family: var(--font-display); font-weight: 800; letter-spacing: .06em; font-size: .95rem; line-height: 1.15; }
.brand img { width: 30px; height: 40px; object-fit: contain; filter: brightness(0) invert(1); }
.brand img.no-logo { display: none; }
.brand small { display: block; font-family: var(--font-mono); font-weight: 400; letter-spacing: .2em; font-size: .62rem; color: #8ea6cc; margin-top: 2px; }
nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
nav a { display: block; padding: 9px 15px; border-radius: 999px; text-decoration: none; color: #b9c8e4; font-weight: 500; font-size: .95rem; transition: background .15s, color .15s; }
nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.12); font-weight: 600; }
nav a.nav-cta { background: var(--accent); color: var(--navy-deep); font-weight: 700; margin-left: 8px; }
nav a.nav-cta:hover { background: #5fd6f0; color: var(--navy-deep); }
.nav-toggle { display: none; border: 1px solid rgba(255,255,255,.28); background: transparent; border-radius: 10px; width: 44px; height: 44px; font-size: 1.3rem; cursor: pointer; color: #fff; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 999px; background: var(--navy); color: #fff; text-decoration: none; font-weight: 600; border: 2px solid var(--navy); transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: #fff; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--navy-deep); }
.btn.accent:hover { background: #4fd2ef; border-color: #4fd2ef; }
.btn.light-ghost { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn.light-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; min-height: min(90vh, 860px); display: flex; flex-direction: column;
  background:
    radial-gradient(1100px 640px at 76% 44%, rgba(34,193,230,.22), transparent 62%),
    radial-gradient(800px 520px at 0% 100%, rgba(10,52,112,.85), transparent 70%),
    linear-gradient(160deg, #031a3a 0%, #04204a 55%, #052550 100%); }

/* Contour map */
.hero-terrain { position: absolute; z-index: -1; right: -6vw; top: 50%; width: 78vw; aspect-ratio: 16 / 9;
  transform: translate(var(--px, 0px), calc(-50% + var(--py, 0px))); transition: transform .5s ease-out;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%); mask-image: linear-gradient(90deg, transparent 0, #000 30%); }
.hero-terrain svg { width: 100%; height: 100%; display: block; animation: drift 30s ease-in-out infinite alternate; }
.hero-terrain path { fill: none; stroke: rgba(110, 205, 240, .34); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s cubic-bezier(.4, .1, .2, 1) forwards; animation-delay: calc(.45s + var(--i) * .09s); }
.hero-terrain path.major { stroke: rgba(34, 193, 230, .8); stroke-width: 1.9; }

/* Summit marker */
.summit { position: absolute; left: var(--sx); top: var(--sy); width: 0; height: 0; }
.summit img { position: absolute; max-width: none; width: 30px; height: 40px; left: -15px; top: -20px; object-fit: contain; filter: brightness(0) invert(1); opacity: 0; animation: fadeIn .8s 2.3s forwards; }
.summit .ring { position: absolute; left: -32px; top: -32px; width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(34,193,230,.8); opacity: 0; animation: pulse 3.4s ease-out 2.5s infinite; }
.summit-label { position: absolute; left: calc(var(--sx) + 40px); top: calc(var(--sy) - 8px); display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; color: #8fdcf3; white-space: nowrap; opacity: 0; animation: fadeIn .8s 2.7s forwards; }
.summit-label::before { content: ""; width: 44px; height: 1px; background: rgba(143, 220, 243, .7); }

/* Film grain */
.grain { position: absolute; inset: 0; z-index: -1; opacity: .22; pointer-events: none; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Copy */
.hero-inner { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); }
.kicker { display: flex; align-items: center; gap: 14px; margin: 0 0 30px; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .24em; text-transform: uppercase; color: #8fdcf3; }
.kicker::before { content: ""; width: 40px; height: 1px; background: #8fdcf3; }
.hero h1 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 9.2vw, 8.2rem); line-height: .92; letter-spacing: -.04em; color: #fff; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero h1 .line > span { display: block; transform: translateY(108%); animation: rise 1.05s cubic-bezier(.2, .8, .2, 1) forwards; }
.hero h1 .line:nth-child(1) > span { font-weight: 300; color: #cfe0f7; animation-delay: .15s; }
.hero h1 .line:nth-child(2) > span { animation-delay: .32s; }
.hero .sub { margin: 28px 0 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.25rem, 2.4vw, 1.9rem); letter-spacing: -.01em; color: #b9c8e4; }
.hero .body { margin: 14px 0 36px; max-width: 46ch; color: #8ea6cc; font-size: 1.05rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }
.btn.big { padding: 16px 30px; font-size: 1.02rem; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }
.link-arrow { color: #fff; text-decoration: none; font-weight: 600; padding-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.4); transition: color .15s, border-color .15s; }
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }

/* Bottom edge: trusted by */
.hero-foot { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; }
.hero-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px; }
.hero-foot .label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: #6f88b3; }
.names { display: flex; flex-wrap: wrap; gap: 4px 0; }
.names b { font-weight: 600; font-size: .95rem; color: #dbe6f7; }
.names b:not(:last-child)::after { content: "/"; margin: 0 18px; color: #3f5b8a; font-weight: 400; }

/* Motion */
.reveal { opacity: 0; transform: translateY(14px); animation: fadeUp .9s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: var(--d, 0ms); }
@keyframes rise { to { transform: none; } }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-8px, 6px) scale(1.015); } }
@keyframes pulse { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero-terrain path { animation: none; stroke-dashoffset: 0; }
  .hero-terrain svg, .summit .ring { animation: none; }
  .reveal, .hero h1 .line > span, .summit img, .summit-label { animation: none; opacity: 1; transform: none; }
  .summit .ring { opacity: .6; }
}

/* ---------- Page header (inner pages) ---------- */
.page-head { background: linear-gradient(135deg, var(--navy-deep), var(--navy) 55%, var(--navy-2)); color: #fff; padding: clamp(44px, 7vw, 84px) 0; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(34,193,230,.35), transparent 65%); }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin: 0 0 12px; }
.page-head p { margin: 0; max-width: 62ch; color: #c9d7ee; font-size: 1.1rem; }
.crumb { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 10px; }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 92px) 0; }
.section.alt { background: var(--bg-soft); }
.section.dark { background: linear-gradient(135deg, var(--navy-deep), var(--navy)); color: #fff; }
.section.dark .lead { color: #c9d7ee; }
.section.dark h2 { color: #fff; }
.section h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin: 0 0 10px; color: var(--navy); }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 62ch; margin: 0 0 34px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; position: relative; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c8d5ea; }
.card h3 { margin: 0 0 8px; font-size: 1.12rem; color: var(--navy); }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #e4ecf8; color: var(--navy); margin-bottom: 16px; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.num { position: absolute; top: 18px; right: 20px; font-weight: 800; font-size: 1.5rem; color: #dbe4f2; letter-spacing: -.02em; }
.card.service .icon { margin-bottom: 14px; }

/* ---------- Logo wall ---------- */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.logo-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 14px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; transition: transform .2s, box-shadow .2s; }
.logo-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.logo-box { width: 100%; height: 88px; display: grid; place-items: center; }
.logo-box img { max-height: 88px; max-width: 100%; object-fit: contain; }
.logo-box img.no-logo { display: none; }
.logo-box .fallback { display: none; width: 72px; height: 72px; border-radius: 50%; background: #e4ecf8; color: var(--navy); font-weight: 800; font-size: 1.3rem; place-items: center; }
.logo-box.is-missing .fallback { display: grid; }
/* For logos supplied in white: sit them on a navy tile */
.logo-box.on-dark { background: var(--navy); border-radius: 12px; padding: 14px; }
.logo-box.on-dark img { max-height: 56px; }
.logo-item .name { font-weight: 600; color: var(--navy); font-size: .95rem; line-height: 1.3; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-card h3 { margin: 12px 0 6px; font-size: 1.05rem; color: var(--navy); }
.contact-card p { margin: 0; color: var(--muted); }
.contact-card a { color: var(--ink); font-weight: 600; text-decoration: none; display: block; padding: 2px 0; }
.contact-card a:hover { color: var(--accent-ink); text-decoration: underline; }

/* ---------- Contact form ---------- */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.contact-side { display: grid; gap: 16px; }
.contact-side .contact-card { padding: 22px 24px; }
.contact-side .icon { margin-bottom: 10px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.form-card h2 { margin: 0 0 6px; font-size: 1.6rem; color: var(--navy); }
.form-intro { margin: 0 0 24px; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--navy); }
.field .req { color: #c0264b; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #cfd8e8; border-radius: 12px; padding: 12px 14px; width: 100%; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9fb2d3; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 4px rgba(34,193,230,.25); }
.field [aria-invalid="true"] { border-color: #c0264b; }
.error { color: #b01f43; font-size: .86rem; min-height: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card .btn { cursor: pointer; font-size: 1rem; }
.form-card .btn[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.form-status { margin: 16px 0 0; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: #0b7a4b; }
.form-status.error { color: #b01f43; }

/* ---------- Values / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.quote { border-left: 4px solid var(--accent); padding: 8px 0 8px 22px; font-size: 1.25rem; color: var(--navy); font-weight: 600; line-height: 1.45; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b6c5e0; padding: 44px 0 28px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: #d6e1f5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .about { max-width: 38ch; }
.site-footer .copy { text-align: center; padding-top: 22px; opacity: .7; font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 780px) {
  .nav-toggle { display: block; }
  nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy-deep); border-bottom: 1px solid rgba(255,255,255,.1); padding: 8px 16px 18px; box-shadow: 0 24px 40px -20px rgba(0,0,0,.5); }
  /* Hero on phones: terrain becomes a dimmer backdrop behind the copy */
  .hero { min-height: auto; }
  .hero-terrain { width: 210vw; right: auto; left: -62vw; top: 2%; transform: none; opacity: .9; -webkit-mask-image: none; mask-image: none; }
  .hero-terrain path { stroke: rgba(110, 205, 240, .26); }
  .hero-terrain path.major { stroke: rgba(34, 193, 230, .5); }
  .summit, .summit-label { display: none; }
  .hero h1 { font-size: clamp(2.7rem, 14vw, 4.4rem); }
  .hero-inner { padding-top: 64px; }
  .names b:not(:last-child)::after { margin: 0 12px; }
  nav.open { display: block; }
  nav ul { flex-direction: column; align-items: stretch; }
  nav a { padding: 13px 14px; }
  nav a.nav-cta { margin: 8px 0 0; text-align: center; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .brand small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .logo-item, .btn { transition: none; }
}
