*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-body);
  line-height: var(--lh-body);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--c-heading);
  font-weight: var(--fw-head);
  line-height: var(--lh-head);
  letter-spacing: -0.025em;
  margin: 0 0 0.6rem;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
p { margin: 0 0 1rem; }
.skip-link {
  position: absolute; left: 1rem; top: -40px; background: #fff; color: var(--c-primary);
  padding: 0.5rem 0.8rem; z-index: 80;
}
.skip-link:focus { top: 0.5rem; }
.wrap {
  width: min(var(--container), calc(100% - 2.5rem));
  margin-inline: auto;
}
.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--c-muted);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.lede { font-size: 1.05rem; color: var(--c-muted); max-width: 44rem; }
.section-head { margin-bottom: 2.25rem; max-width: 46rem; }
.band { padding: var(--section-space) 0; }
.band-soft { background: var(--c-soft); }
.band-navy { background: var(--c-primary); color: #fff; }
.band-navy h2, .band-navy h3 { color: #fff; }
.center { text-align: center; }
.center .lede, .center .section-head { margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  min-height: 46px; padding: 0.75rem 1.15rem; border-radius: var(--radius-btn);
  border: 1px solid transparent; text-decoration: none; cursor: pointer;
  font-family: var(--font-head); font-size: var(--fs-btn); font-weight: 700;
  letter-spacing: 0; line-height: 1; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn-brand { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.btn-brand:hover { background: #00b874; border-color: #00b874; color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: #fff; color: var(--c-primary); }
.btn-line { background: #fff; color: var(--c-primary); border-color: var(--c-line); }
.btn-line:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.announce {
  background: #071433; color: rgba(255,255,255,.86); font-size: var(--fs-small); text-align: center; padding: 0.55rem 1rem;
}
.announce a { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--c-primary); color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-header.is-stuck { box-shadow: 0 8px 24px rgba(5, 16, 48, .25); }
.header-bar { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: #fff; min-width: max-content; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.03em; line-height: 1.1; }
.brand-name small { display: block; font-weight: 500; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: .72; }
@media (max-width: 1180px) { .brand-name small { display: none; } }
.brand img { height: 36px; width: auto; }
.primary-nav { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.primary-nav > a, .nav-drop > button, .nav-drop > a.nav-link {
  color: rgba(255,255,255,.88); text-decoration: none; background: none; border: 0; cursor: pointer;
  font-family: var(--font-head); font-size: var(--fs-nav); font-weight: 600; padding: 0.7rem 0.75rem;
}
.primary-nav > a:hover, .nav-drop > button:hover, .nav-drop > a.nav-link:hover { color: #fff; }
.header-cta { margin-left: 0.6rem; }
.mobile-cta { display: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; width: 44px; height: 40px; border-radius: 4px; }
.nav-drop { position: relative; }
.mega, .sub-menu {
  position: absolute; top: calc(100% - 2px); left: 0; min-width: 280px; background: #fff; color: var(--c-heading);
  border: 1px solid var(--c-line); box-shadow: 0 16px 40px rgba(12,29,83,.12); padding: 0.6rem; display: none; z-index: 20;
}
.mega { width: min(640px, 70vw); display: none; grid-template-columns: 1fr 1fr; gap: 0.15rem; padding: 0.8rem; }
.nav-drop:hover .mega, .nav-drop:focus-within .mega, .nav-drop.open .mega,
.nav-drop:hover .sub-menu, .nav-drop:focus-within .sub-menu, .nav-drop.open .sub-menu { display: grid; }
.nav-drop:hover .sub-menu, .nav-drop:focus-within .sub-menu, .nav-drop.open .sub-menu { display: block; }
.mega a, .sub-menu a { display: block; text-decoration: none; color: var(--c-heading); padding: 0.65rem 0.75rem; border-radius: 4px; font-weight: 650; font-family: var(--font-head); font-size: 0.95rem; }
.mega a span, .sub-menu a span { display: block; color: var(--c-muted); font-weight: 400; font-family: var(--font-body); font-size: 13px; margin-top: 0.15rem; }
.mega a:hover, .sub-menu a:hover { background: var(--c-soft); }
.mega-all { grid-column: 1 / -1; color: var(--c-secondary) !important; }

.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(22,53,122,.9), transparent 60%),
    linear-gradient(160deg, #081433 0%, var(--c-primary) 48%, #10265f 100%);
  padding: 5.5rem 0 5rem;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border: 1px solid rgba(255,255,255,.14); transform: rotate(45deg); pointer-events: none;
}
.hero::before { width: 520px; height: 520px; right: -160px; top: -180px; }
.hero::after { width: 280px; height: 280px; right: 80px; bottom: -150px; border-color: rgba(0,204,131,.35); }
.hero-inner { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; text-align: center; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero .lede { color: rgba(255,255,255,.78); margin: 0 auto 1.75rem; font-size: 1.12rem; }
.hero .eyebrow { color: rgba(255,255,255,.62); }
.hero .btn-row { justify-content: center; }
.page-hero { padding: 3.4rem 0 2.8rem; text-align: left; }
.page-hero .hero-inner { margin: 0; max-width: 760px; text-align: left; }
.page-hero .btn-row { justify-content: flex-start; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; list-style: none; padding: 0.15rem 0 1.15rem; margin: 0 0 0.35rem; color: rgba(255,255,255,.7); font-size: var(--fs-small); }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs li { display: inline-flex; align-items: center; line-height: 1.5; }
.crumbs li:not(:last-child)::after { content: "/"; margin: 0 0.75rem; opacity: .6; }

.section-photo { width: 100%; height: 240px; object-fit: cover; display: block; background: #10265f; }
.section-photo.compact { height: 210px; margin-bottom: 1.15rem; }
.media-head { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: center; margin-bottom: 2rem; }
.media-head .section-head { margin-bottom: 0; }
.card-photo { display: block; height: 148px; margin: -1.6rem -1.35rem 1.15rem; background: #10265f center/cover no-repeat; }
.intro-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: start; }
.mission-stack { display: grid; gap: 1rem; }
.mission-card { border-top: 2px solid var(--c-accent); background: #fff; padding: 1.25rem 1.3rem 1.1rem; border-right: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); border-left: 1px solid var(--c-line); }
.mission-card h3 { margin-bottom: 0.4rem; }
.mission-card p:last-child { margin: 0; }

.line-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--c-line); border-left: 1px solid var(--c-line); background: #fff; }
.line-card { display: block; text-decoration: none; color: inherit; padding: 1.6rem 1.35rem 1.7rem; border-right: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); min-height: 180px; background: #fff; transition: background .2s ease; }
.line-card:hover { background: #f3fbf7; }
.line-card h3 { font-size: 1.15rem; margin-bottom: 0.55rem; }
.line-card p { margin: 0; color: var(--c-muted); font-size: 0.98rem; }
.line-card .more { display: inline-block; margin-top: 1rem; color: var(--c-secondary); font-family: var(--font-head); font-weight: 700; font-size: 0.92rem; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }

.mid-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; background: var(--c-soft); padding: 1.35rem 1.5rem; }
.mid-cta p { margin: 0; color: var(--c-heading); font-family: var(--font-head); font-weight: 650; font-size: 1.15rem; }

.process { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: start; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 0.9rem; position: relative; padding-bottom: 1.35rem; }
.step:not(:last-child) .step-no::after { content: ""; position: absolute; left: 25px; top: 46px; bottom: 0; width: 1px; background: var(--c-line); }
.step-no {
  width: 42px; height: 42px; border: 1px solid var(--c-line); border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; color: var(--c-primary); background: #fff; position: relative; z-index: 1;
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.step p { margin: 0; color: var(--c-muted); }
.process-panel { background: var(--c-primary); color: #fff; padding: 2rem 1.7rem; min-height: 100%; }
.process-panel h3 { color: #fff; }
.process-panel p { color: rgba(255,255,255,.78); }
.process-panel ol { margin: 0; padding-left: 1.1rem; color: rgba(255,255,255,.86); }
.process-panel li { margin: 0.4rem 0; }

.tech-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.8rem; }
.tech-card { background: #fff; border: 1px solid var(--c-line); min-height: 112px; padding: 1rem; display: flex; flex-direction: column; justify-content: space-between; }
.tech-mark { font-family: var(--font-head); font-weight: 800; letter-spacing: -0.04em; color: var(--c-primary); font-size: 1.15rem; }
.tech-card span { color: var(--c-muted); font-size: 0.92rem; }

.work-feature { display: grid; grid-template-columns: 1.05fr .95fr; border: 1px solid var(--c-line); background: #fff; margin-bottom: 1rem; }
.work-visual { min-height: 280px; background: #0c1d53 center/cover no-repeat; }
.work-copy { padding: 1.8rem 1.6rem; }
.work-copy .eyebrow { color: #0b8f62; }
.note { font-size: var(--fs-small); color: var(--c-muted); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.project-card { text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--c-line); display: flex; flex-direction: column; }
.project-card:hover h3 { color: var(--c-secondary); }
.project-card .thumb { height: 180px; background: #10265f center/cover no-repeat; }
.project-card div { padding: 1.1rem 1.15rem 1.25rem; }
.project-card p { color: var(--c-muted); margin: 0; }

.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.quote-card { background: #fff; border: 1px solid var(--c-line); padding: 1.4rem; }
.quote-card p { font-size: 1.02rem; }
.who { display: flex; gap: 0.75rem; align-items: center; margin-top: 1rem; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--c-soft); object-fit: cover; }
.stars { color: #0b8f62; letter-spacing: 0.08em; font-size: 0.85rem; }

.insight-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 1rem; }
.insight-main, .insight-side a, .post-card { background: #fff; border: 1px solid var(--c-line); text-decoration: none; color: inherit; }
.insight-main { display: grid; grid-template-columns: 1.1fr .9fr; }
.insight-main .thumb, .post-card .thumb, .insight-side .thumb { min-height: 180px; background: #12306f center/cover no-repeat; }
.insight-copy, .post-card div, .side-copy { padding: 1.2rem 1.2rem 1.3rem; }
.insight-side { display: grid; gap: 1rem; }
.read { color: var(--c-secondary); font-family: var(--font-head); font-weight: 700; font-size: 0.92rem; }
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }

.faq-list { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--c-line); }
.faq-item { border-bottom: 1px solid var(--c-line); }
.faq-item button { width: 100%; text-align: left; background: none; border: 0; padding: 1.05rem 0; cursor: pointer; color: var(--c-heading); font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item button::after { content: "+"; color: var(--c-muted); font-weight: 500; }
.faq-item.open button::after { content: "–"; }
.faq-item .faq-a { display: none; padding: 0 0 1.1rem; color: var(--c-muted); }
.faq-item.open .faq-a { display: block; }
.pills { display: flex; flex-wrap: wrap; gap: 0.55rem; justify-content: center; }
.pill { text-decoration: none; border: 1px solid #cfd8ee; color: var(--c-secondary); border-radius: 999px; padding: 0.45rem 0.85rem; font-size: 0.92rem; background: #fff; }
.pill:hover, .pill.active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

.closing { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.closing h2 { color: #fff; margin-bottom: 0.4rem; }
.closing p { color: rgba(255,255,255,.75); margin: 0; max-width: 40rem; }

.site-footer { background: #081433; color: rgba(255,255,255,.76); padding-top: 3.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .9fr 1fr; gap: 2rem; padding-bottom: 2.2rem; }
.site-footer h3, .site-footer h4 { color: #fff; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; }
.site-footer a { color: rgba(255,255,255,.76); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.4rem 0; }
.socials { display: flex; gap: 0.45rem; margin-top: 1rem; }
.socials a { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; display: grid; place-items: center; font-size: 0.85rem; }
.news-form { display: flex; gap: 0.4rem; margin-top: 0.8rem; }
.news-form input { flex: 1; border: 1px solid rgba(255,255,255,.2); background: transparent; color: #fff; padding: 0.65rem 0.7rem; border-radius: 4px; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); padding: 1rem 0 1.2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: var(--fs-small); }
.policy-links { display: flex; flex-wrap: wrap; gap: 0.8rem 1rem; }
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #121418; color: #fff; }
.cookie-inner { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 0.8rem 0; font-size: var(--fs-small); }
.cookie-bar a { color: #fff; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }
.side-card { border: 1px solid var(--c-line); padding: 1.25rem; position: sticky; top: 96px; background: #fff; }
.side-card h3 { font-size: 1.2rem; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; font-size: 1.25rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.15rem; }
.prose a { color: var(--c-secondary); }
.meta-line { color: var(--c-muted); font-size: var(--fs-small); margin-bottom: 1rem; }
.article { max-width: 760px; margin: 0 auto; }
.article-hero-img { width: 100%; max-height: 420px; object-fit: cover; margin-bottom: 1.5rem; background: var(--c-soft); }

.form-card, .panel { background: #fff; border: 1px solid var(--c-line); padding: 1.4rem; }
label { display: block; font-family: var(--font-head); font-weight: 700; font-size: 0.92rem; color: var(--c-heading); margin-bottom: 0.35rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], input[type="date"], input[type="datetime-local"], select, textarea {
  width: 100%; border: 1px solid #d5dbe6; background: #fff; color: var(--c-heading); border-radius: 4px; padding: 0.7rem 0.75rem; margin-bottom: 0.9rem;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(0,204,131,.35); border-color: var(--c-accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.alert { padding: 0.8rem 1rem; margin-bottom: 1rem; border: 1px solid var(--c-line); background: #f3fbf7; color: var(--c-heading); }
.alert-error { background: #fff5f5; border-color: #f0c9c9; }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.check { display: flex; gap: 0.45rem; align-items: center; margin-bottom: 0.8rem; font-weight: 600; }
.map-frame { border: 0; width: 100%; height: 320px; background: var(--c-soft); }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.2rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { background: var(--c-soft); color: var(--c-primary); padding: 0.3rem 0.55rem; font-size: 0.85rem; font-weight: 700; }
.filter-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.3rem; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin: 1rem 0; }
.gallery img { width: 100%; height: 160px; object-fit: cover; }
.pager { display: flex; gap: 0.4rem; margin-top: 1.5rem; }
.pager a, .pager span { border: 1px solid var(--c-line); padding: 0.4rem 0.7rem; text-decoration: none; }

.reveal { animation: rise .6s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; }
}

@media (max-width: 1020px) {
  .line-grid, .tech-grid, .project-grid, .quote-grid, .post-list { grid-template-columns: repeat(2, 1fr); }
  .intro-grid, .process, .work-feature, .insight-grid, .insight-main, .layout, .contact-grid, .footer-grid, .media-head { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .header-cta { display: none; }
  .primary-nav {
    display: none; position: absolute; left: 0; right: 0; top: 76px; background: #081433;
    flex-direction: column; align-items: stretch; padding: 0.6rem 1rem 1rem; gap: 0;
  }
  .primary-nav.open { display: flex; }
  .mega, .sub-menu { position: static; width: auto; min-width: 0; display: none; box-shadow: none; }
  .nav-drop.open .mega { display: grid; grid-template-columns: 1fr; }
  .nav-drop.open .sub-menu { display: block; }
  .mobile-cta { display: inline-flex; margin: 0.6rem 0.75rem; }
  .line-grid, .cols-3, .project-grid, .quote-grid, .post-list, .form-row, .tech-grid, .gallery { grid-template-columns: 1fr; }
  .mid-cta, .closing, .cookie-inner, .footer-base { flex-direction: column; align-items: flex-start; }
  .hero { padding: 3.4rem 0 3rem; }
  .wrap { width: min(var(--container), calc(100% - 1.5rem)); }
}
