:root {
  --navy: #061a3a;
  --navy-2: #0a244d;
  --navy-3: #0d315f;
  --cyan: #1caed7;
  --cyan-soft: #93dbed;
  --paper: #f3f0e9;
  --paper-2: #e9e5dc;
  --ink: #132039;
  --muted: #6a7180;
  --line: rgba(13, 31, 60, .14);
  --white-line: rgba(255, 255, 255, .18);
  --shadow: 0 28px 80px rgba(4, 19, 47, .16);
  --pad: clamp(24px, 5.5vw, 86px);
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
button, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: 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;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 16px;
  top: 12px;
  transform: translateY(-150%);
  background: white;
  color: var(--navy);
  padding: 11px 16px;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto 0;
  height: 82px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 28px;
  padding: 0 var(--pad);
  background: linear-gradient(180deg, rgba(6, 26, 58, .96), rgba(6, 26, 58, .87));
  border-bottom: 1px solid rgba(255,255,255,.11);
  backdrop-filter: blur(14px);
  transition: height .25s ease, background .25s ease;
}
.site-header.is-scrolled { height: 70px; background: rgba(6, 26, 58, .97); }
.brand { width: 142px; justify-self: start; }
.brand img { width: 100%; }
.site-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 46px); }
.site-nav a {
  position: relative;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 26px 0;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 18px;
  height: 2px;
  background: var(--cyan);
  transition: right .25s ease;
}
.site-nav a:hover,
.site-nav a.is-active { color: white; }
.site-nav a:hover::after,
.site-nav a.is-active::after { right: 0; }
.header-contact {
  justify-self: end;
  border: 1px solid rgba(255,255,255,.5);
  background: transparent;
  color: white;
  padding: 11px 17px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: background .2s ease, color .2s ease;
}
.header-contact:hover { background: white; color: var(--navy); }
.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  padding-top: 82px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(28,174,215,.10), transparent 28%),
    var(--paper);
}
.hero-copy {
  display: flex;
  min-height: calc(100svh - 82px);
  flex-direction: column;
  justify-content: center;
  padding: clamp(76px, 8vw, 128px) var(--pad) clamp(60px, 7vw, 110px);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: var(--navy-3);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow > span:first-child {
  width: 40px;
  height: 3px;
  background: var(--cyan);
}
.eyebrow.light { color: var(--cyan-soft); }
.hero h1,
.section-heading h2,
.portfolio-head h2,
.project-cta h2,
.dialog-content h2,
.contact-panel h2 {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  letter-spacing: -.045em;
  line-height: .99;
}
.hero h1 {
  max-width: 880px;
  font-size: clamp(52px, 5.6vw, 92px);
  color: var(--navy);
  font-weight: 700;
}
.hero h1 em { color: var(--cyan); font-style: normal; }
.hero-lede {
  max-width: 690px;
  margin: clamp(28px, 3.2vw, 46px) 0 0;
  color: #454d5a;
  font-size: clamp(17px, 1.3vw, 21px);
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  border: 0;
  padding: 14px 20px;
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--navy); color: white; }
.button-primary:hover { background: var(--cyan); color: var(--navy); }
.button-ghost { border: 1px solid rgba(6, 26, 58, .3); background: transparent; color: var(--navy); }
.button-ghost:hover { border-color: var(--navy); }
.button-light { background: white; color: var(--navy); }
.button-light:hover { background: var(--cyan); }
.button-ghost-dark { border: 1px solid rgba(6, 26, 58, .28); background: transparent; color: var(--navy); }

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: clamp(52px, 6vw, 86px);
  border-top: 1px solid var(--line);
}
.proof-grid article { padding: 22px 24px 0 0; }
.proof-grid article + article { padding-left: 24px; border-left: 1px solid var(--line); }
.proof-grid strong {
  display: block;
  color: var(--navy);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1;
}
.proof-grid sup { color: var(--cyan); font-size: .48em; }
.proof-grid span { display: block; max-width: 140px; margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.45; text-transform: uppercase; letter-spacing: .05em; }

.hero-visual { position: relative; min-height: calc(100svh - 82px); overflow: hidden; background: var(--navy); }
.hero-visual > img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,15,39,.04), rgba(2,15,39,.25)), linear-gradient(90deg, rgba(6,26,58,.16), transparent 45%);
}
.hero-stamp { position: absolute; left: 34px; top: 38px; color: var(--navy); }
.hero-stamp > span { display: block; border-bottom: 1px solid rgba(6,26,58,.4); padding-bottom: 12px; font: 700 11px "Segoe UI"; letter-spacing: .18em; }
.hero-stamp p { margin: 12px 0 0; font-size: 11px; font-weight: 700; line-height: 1.45; text-transform: uppercase; letter-spacing: .06em; }
.hero-capability {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(78%, 480px);
  padding: 24px 30px;
  color: white;
  background: rgba(6, 26, 58, .94);
  border-top: 3px solid var(--cyan);
}
.hero-capability span { display: block; margin-bottom: 5px; color: var(--cyan-soft); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.hero-capability strong { font-size: 15px; }
.scroll-cue {
  position: absolute;
  left: var(--pad);
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.scroll-cue span { width: 34px; height: 1px; background: var(--cyan); }

.capabilities { padding: clamp(96px, 10vw, 160px) var(--pad); }
.section-heading,
.portfolio-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
  gap: clamp(36px, 8vw, 140px);
  align-items: end;
  margin-bottom: clamp(54px, 7vw, 92px);
}
.section-heading h2,
.portfolio-head h2 { font-size: clamp(44px, 5.2vw, 76px); color: var(--navy); }
.section-heading > p,
.portfolio-head > p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.75; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card {
  min-height: 285px;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 42px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.23);
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { position: relative; z-index: 2; transform: translateY(-4px); background: white; box-shadow: var(--shadow); }
.service-number { color: var(--cyan); font: 700 11px "Segoe UI"; letter-spacing: .15em; }
.service-card h3 { margin: auto 0 12px; color: var(--navy); font: 700 clamp(20px, 1.8vw, 27px) "Segoe UI"; letter-spacing: -.025em; }
.service-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.service-card a { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--navy); text-decoration: none; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.service-card a span { color: var(--cyan); font-size: 18px; }

.delivery-line { margin-top: clamp(56px, 6vw, 90px); display: grid; grid-template-columns: 1fr 2.5fr; align-items: center; gap: 36px; }
.delivery-line > p { color: var(--navy); font: 700 14px "Segoe UI"; text-transform: uppercase; letter-spacing: .08em; }
.delivery-line ol { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; border-top: 1px solid var(--line); }
.delivery-line li { position: relative; padding: 24px 8px 0 0; color: var(--navy); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.delivery-line li::before { content: ""; position: absolute; left: 0; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.delivery-line li span { display: block; margin-bottom: 8px; color: #9da3ac; font-size: 10px; }

.portfolio { padding: clamp(96px, 10vw, 160px) var(--pad) 0; background: var(--navy); color: white; }
.portfolio-head h2,
.project-cta h2 { color: white; }
.portfolio-head > p { color: rgba(255,255,255,.62); }
.portfolio-tools { display: grid; grid-template-columns: 1fr auto auto; gap: 22px; align-items: center; padding: 18px 0; border-top: 1px solid var(--white-line); border-bottom: 1px solid var(--white-line); }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { border: 1px solid rgba(255,255,255,.25); background: transparent; color: rgba(255,255,255,.76); padding: 9px 14px; cursor: pointer; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; transition: .2s ease; }
.filter-chip:hover,
.filter-chip.is-active { border-color: var(--cyan); background: var(--cyan); color: var(--navy); }
.sector-select select { min-width: 156px; border: 1px solid rgba(255,255,255,.25); border-radius: 0; outline: none; background: var(--navy-2); color: white; padding: 9px 36px 9px 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.result-count { margin: 0; color: rgba(255,255,255,.52); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.result-count strong { color: var(--cyan-soft); }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-top: 28px; }
.project-card { min-height: clamp(340px, 35vw, 520px); overflow: hidden; }
.project-card[hidden] { display: none; }
.project-card-wide { grid-column: span 2; min-height: clamp(420px, 42vw, 620px); }
.project-open { position: relative; width: 100%; height: 100%; min-height: inherit; display: block; overflow: hidden; border: 0; padding: 0; background: var(--navy-2); color: white; text-align: left; cursor: pointer; }
.project-open img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .75s cubic-bezier(.2,.75,.25,1); }
.project-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,16,38,.04) 30%, rgba(3,16,38,.88) 100%); transition: background .35s ease; }
.project-open:hover img { transform: scale(1.035); }
.project-open:hover .project-overlay { background: linear-gradient(180deg, rgba(3,16,38,.02) 18%, rgba(3,16,38,.94) 100%); }
.project-type { position: absolute; top: 20px; left: 20px; padding: 8px 10px; border-left: 2px solid var(--cyan); background: rgba(6,26,58,.78); backdrop-filter: blur(8px); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.project-text { position: absolute; left: clamp(22px, 3vw, 42px); bottom: clamp(24px, 3vw, 42px); }
.project-text small { display: block; margin-bottom: 9px; color: var(--cyan-soft); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.project-text strong { display: block; max-width: 560px; font: 600 clamp(25px, 3vw, 44px) "Segoe UI"; letter-spacing: -.035em; }
.project-arrow { position: absolute; right: clamp(22px, 3vw, 42px); bottom: clamp(24px, 3vw, 42px); width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.5); font-size: 20px; transition: background .2s ease, color .2s ease; }
.project-open:hover .project-arrow { background: var(--cyan); border-color: var(--cyan); color: var(--navy); }
.empty-state { margin-top: 28px; padding: 28px; border: 1px solid var(--white-line); color: rgba(255,255,255,.7); text-align: center; }

.project-cta { display: flex; align-items: end; justify-content: space-between; gap: 36px; padding: clamp(84px, 10vw, 148px) 0; }
.project-cta h2 { font-size: clamp(42px, 5vw, 72px); }
.site-footer { display: grid; grid-template-columns: 1.2fr .9fr .7fr; gap: 40px; padding: 44px 0 48px; border-top: 1px solid var(--white-line); color: rgba(255,255,255,.63); font-size: 12px; line-height: 1.7; }
.footer-brand img { width: 150px; margin-bottom: 16px; }
.footer-brand p,
.footer-contact p { margin: 0; }
.footer-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.footer-contact a { color: white; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.footer-meta button { border: 0; border-bottom: 1px solid rgba(255,255,255,.35); background: transparent; color: white; padding: 0 0 2px; cursor: pointer; font-size: 12px; }

dialog { border: 0; padding: 0; }
dialog::backdrop { background: rgba(2, 13, 31, .74); backdrop-filter: blur(8px); }
.project-dialog {
  width: min(1040px, calc(100vw - 36px));
  max-height: calc(100svh - 36px);
  grid-template-columns: 1.05fr .95fr;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 120px rgba(0,0,0,.38);
  overflow: hidden;
}
.project-dialog[open] { display: grid; animation: dialog-in .28s ease both; }
.contact-dialog {
  width: min(720px, calc(100vw - 36px));
  max-height: calc(100svh - 36px);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 120px rgba(0,0,0,.38);
}
.contact-dialog[open] { animation: dialog-in .28s ease both; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(18px) scale(.985); } }
.dialog-close { position: absolute; z-index: 3; right: 14px; top: 14px; width: 42px; height: 42px; border: 0; background: white; color: var(--navy); cursor: pointer; font-size: 26px; line-height: 1; }
.dialog-image { min-height: 600px; }
.dialog-image img { width: 100%; height: 100%; object-fit: cover; }
.dialog-content,
.contact-panel { padding: clamp(34px, 5vw, 68px); overflow-y: auto; }
.dialog-content h2,
.contact-panel h2 { color: var(--navy); font-size: clamp(34px, 4vw, 54px); }
.dialog-content > p:not(.eyebrow),
.contact-panel > p:not(.eyebrow) { color: var(--muted); font-size: 15px; line-height: 1.7; }
.dialog-highlights { margin: 34px 0; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dialog-highlights > span { color: var(--cyan); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.dialog-highlights ul { list-style: none; margin: 14px 0 0; padding: 0; }
.dialog-highlights li { position: relative; margin: 10px 0; padding-left: 18px; font-size: 13px; }
.dialog-highlights li::before { content: ""; position: absolute; left: 0; top: .58em; width: 6px; height: 6px; background: var(--cyan); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 38px; }
.credentials { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.credentials div { padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.credentials dt { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.credentials dd { margin: 5px 0 0; color: var(--navy); font: 700 14px "Segoe UI"; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

@media (max-width: 1040px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { position: fixed; inset: 70px 0 auto 0; display: none; padding: 22px var(--pad) 26px; background: var(--navy); border-top: 1px solid var(--white-line); box-shadow: 0 22px 40px rgba(0,0,0,.2); }
  .site-nav.is-open { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
  .site-nav a { width: 100%; padding: 15px 0; border-bottom: 1px solid var(--white-line); }
  .site-nav a::after { display: none; }
  .header-contact { display: none; }
  .menu-toggle { position: relative; justify-self: end; width: 44px; height: 42px; display: block; border: 1px solid var(--white-line); background: transparent; }
  .menu-toggle span:not(.sr-only) { position: absolute; left: 12px; top: 20px; display: block; width: 19px; height: 1px; background: white; transition: transform .2s ease; }
  .menu-toggle span:first-child { transform: translateY(-4px); }
  .menu-toggle span:nth-child(2) { transform: translateY(4px); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: rotate(-45deg); }
  .hero { grid-template-columns: 1fr 42%; }
  .hero-copy { padding-right: 5vw; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .delivery-line { grid-template-columns: 1fr; }
  .portfolio-tools { grid-template-columns: 1fr auto; }
  .result-count { grid-column: 1 / -1; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-meta { grid-column: 1 / -1; flex-direction: row; align-items: center; }
}

@media (max-width: 760px) {
  :root { --pad: 20px; }
  .site-header { height: 70px; }
  .brand { width: 120px; }
  .hero { min-height: auto; display: block; padding-top: 70px; }
  .hero-copy { min-height: auto; padding-top: 76px; padding-bottom: 62px; }
  .hero h1 { font-size: clamp(36px, 11vw, 48px); }
  .hero-lede { font-size: 16px; line-height: 1.6; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .proof-grid { margin-top: 50px; }
  .proof-grid article { padding-right: 12px; }
  .proof-grid article + article { padding-left: 12px; }
  .proof-grid span { font-size: 9px; }
  .hero-visual { min-height: 66svh; }
  .scroll-cue { display: none; }
  .section-heading,
  .portfolio-head { grid-template-columns: 1fr; gap: 26px; align-items: start; }
  .section-heading h2,
  .portfolio-head h2 { font-size: clamp(42px, 12vw, 62px); }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 245px; }
  .delivery-line ol { overflow-x: auto; grid-template-columns: repeat(5, minmax(100px, 1fr)); padding-bottom: 8px; }
  .portfolio { padding-top: 100px; }
  .portfolio-tools { grid-template-columns: 1fr; align-items: start; }
  .filter-group { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
  .filter-chip { white-space: nowrap; }
  .sector-select select { width: 100%; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card-wide { grid-column: span 1; }
  .project-card,
  .project-card-wide { min-height: 430px; }
  .project-type { left: 16px; top: 16px; }
  .project-arrow { width: 42px; height: 42px; }
  .project-cta { align-items: stretch; flex-direction: column; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-contact { grid-template-columns: 1fr; }
  .footer-meta { grid-column: auto; align-items: flex-start; gap: 18px; }
  .project-dialog[open] { display: block; overflow-y: auto; }
  .dialog-image { min-height: 300px; height: 38svh; }
  .dialog-content { overflow: visible; }
  .credentials { grid-template-columns: 1fr; }
}

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