:root {
  --navy: #0e2f66; --blue: #1161aa; --sky: #36a0c7; --teal: #26b3cb;
  --ink: #111827; --muted: #5b6b7b; --line: #dbe5ef; --tint: #eaf3fa;
  --radius: 14px; --shadow: 0 8px 28px rgba(14, 47, 102, .12);
  --grad: linear-gradient(90deg, #36a0c7, #1161aa);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
h3, .h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85em; font-weight: 400; }
ul.plain { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 200; border-radius: 8px; }
.skip:focus { left: 8px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.header-row { 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: var(--navy); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.05rem; font-weight: 800; }
.brand-text em { font-style: normal; font-size: .82rem; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:not(.btn):hover { color: var(--blue); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; font: inherit; font-weight: 600; color: var(--navy); cursor: pointer; }

/* buttons */
.btn { display: inline-block; background: var(--grad); color: #fff; text-decoration: none; font-weight: 700; padding: 13px 26px; border-radius: 999px; border: 0; font-size: 1rem; cursor: pointer; transition: transform .15s, box-shadow .15s; box-shadow: 0 4px 14px rgba(17, 97, 170, .28); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(17, 97, 170, .34); }
.btn--small { padding: 9px 20px; font-size: .93rem; }
.btn--light { background: #fff; color: var(--navy); box-shadow: none; }
.btn--ghost { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .85); box-shadow: none; }
.btn--ghost-dark { background: transparent; color: var(--navy); border: 2px solid var(--line); box-shadow: none; }
.btn--block { display: block; text-align: center; width: 100%; }

/* hero */
.hero { position: relative; display: grid; align-items: center; min-height: min(86vh, 740px); color: #fff; overflow: hidden; background: var(--navy); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(95deg, rgba(10, 38, 82, .92) 0%, rgba(10, 38, 82, .72) 45%, rgba(10, 38, 82, .18) 100%); }
.hero-inner { position: relative; padding: 80px 0; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 7vw, 5rem); max-width: 14ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: .85rem; color: #9fdcef; margin-bottom: 14px; }
.lead { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 40ch; color: #e6f1fb; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* sections */
.section { padding: 84px 0; }
.section--flush { padding-top: 24px; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--navy); color: #e6f1fb; }
.section--dark h2, .section--dark h3 { color: #fff; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: .8rem; color: var(--blue); margin-bottom: 8px; }
.kicker--light { color: #9fdcef; }
.section-lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.page-head { padding: 54px 0 24px; background: linear-gradient(180deg, var(--tint), #fff); }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }

/* grids and cards */
.grid { display: grid; gap: 24px; margin-top: 32px; }
.grid--services { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--projects { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--values { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service-card, .value-card { padding: 26px; }
.service-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.service-head h3 { margin: 0; }
.value-card h3 { margin: 14px 0 6px; }
.value-card p { margin: 0; color: var(--muted); }
.icon-badge { display: inline-grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--grad); color: #fff; }
.icon-badge .icon { width: 26px; height: 26px; }
.icon--sm { width: 18px; height: 18px; display: inline-block; vertical-align: -3px; }
.ticks { list-style: none; margin: 0 0 12px; padding: 0; }
.ticks li { position: relative; padding: 5px 0 5px 24px; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.project-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.project-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.project-card:hover .thumb img { transform: scale(1.04); }
.thumb-empty { display: grid; place-items: center; height: 100%; opacity: .35; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; }
.card-title { font-size: 1.12rem; color: var(--navy); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .02em; padding: 3px 10px; border-radius: 999px; background: var(--blue); color: #fff; text-decoration: none; }
.tag--sector { background: var(--tint); color: var(--navy); }

/* filters */
.filters { display: grid; gap: 10px; margin: 10px 0 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--navy); font-weight: 600; font-size: .93rem; background: #fff; }
.chip:hover { border-color: var(--sky); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chips--sector .chip.is-active { background: var(--blue); border-color: var(--blue); }
.empty { padding: 40px 0; color: var(--muted); }

/* split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.split-media--tall img { max-height: 620px; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.mv > div { background: var(--tint); border-radius: var(--radius); padding: 18px 20px; }
.mv h3 { margin-bottom: 6px; font-size: 1rem; }
.mv p { margin: 0; font-size: .97rem; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-list { margin: 22px 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .icon { flex: none; margin-top: 3px; color: #9fdcef; }
.contact-list a { color: #fff; }
.form-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-weight: 600; font-size: .93rem; color: var(--navy); }
input, textarea, select { font: inherit; padding: 11px 13px; border: 1px solid #c4d3e2; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(54, 160, 199, .35); border-color: var(--sky); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.4em; font-weight: 600; }
.form-status.is-ok { color: #0a7a4b; }
.form-status.is-error { color: #b42318; }

/* project page */
.page-head--project h1 { margin-top: 10px; }
.loc { color: var(--muted); font-size: 1.05rem; margin: 0; }
.project-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.shot { display: block; overflow: hidden; border-radius: 12px; background: var(--tint); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.shot:hover img { transform: scale(1.03); }
.shot--hero { margin-bottom: 24px; }
.shot--hero img { aspect-ratio: 4 / 3; max-height: 640px; }
.project-summary { font-size: 1.1rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.gallery .shot { aspect-ratio: 4 / 3; }
.project-side { display: grid; gap: 16px; position: sticky; top: 100px; }
.side-card { padding: 24px; }
.side-card .ticks { margin-bottom: 20px; }
.side-card--contact h2 { margin-bottom: 4px; }
.contact-list--dark { margin: 14px 0 16px; }
.contact-list--dark .icon { color: var(--blue); }
.contact-list--dark a { color: var(--navy); font-weight: 600; }
.by { margin: 6px 0 0; color: var(--muted); }
.by strong { color: var(--navy); }
.blurb { margin: 0 0 12px; color: var(--muted); font-size: .97rem; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5, 14, 30, .94); display: grid; place-items: center; padding: 24px; }
.lightbox img { max-width: min(94vw, 1400px); max-height: 82vh; border-radius: 8px; }
.lightbox-caption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #dbe8f5; font-size: .95rem; padding: 0 70px; }
.lb-btn { position: absolute; background: rgba(255, 255, 255, .14); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; line-height: 1; }
.lb-btn:hover { background: rgba(255, 255, 255, .28); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* footer */
.site-footer { background: #0a2552; color: #c8d9ea; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding-bottom: 36px; }
.site-footer h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 14px; }
.site-footer a { color: #c8d9ea; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer li { margin-bottom: 8px; }
.footer-name { color: #fff; font-weight: 800; font-size: 1.15rem; margin: 10px 0 0; }
.footer-tag { margin: 0; color: #9fdcef; }
.footer-motto { margin: 10px 0 0; font-style: italic; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0; font-size: .88rem; color: #93aac3; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px; box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; text-align: center; }
  .split, .contact-grid, .project-grid, .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split-media { order: 0; }
  .project-side { position: static; }
  .section { padding: 60px 0; }
  .hero-shade { background: linear-gradient(180deg, rgba(10, 38, 82, .82), rgba(10, 38, 82, .6)); }
}
@media (max-width: 560px) {
  .field-row, .mv { grid-template-columns: 1fr; }
  .brand-text strong { font-size: .95rem; }
  .form-card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
