@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(fonts/barlow-400.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url(fonts/barlow-500.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(fonts/barlow-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(fonts/barlow-cond-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(fonts/barlow-cond-700.woff2) format("woff2"); }

:root {
  --blue: #135287;
  --blue-d: #0d3c64;
  --blue-l: #e8f0f7;
  --ink: #15191e;
  --text: #2a3038;
  --muted: #5e6875;
  --line: #dfe3e8;
  --bg: #ffffff;
  --bg-2: #f3f4f6;
  --radius: 10px;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --wrap: 1180px;
  --hdr: 74px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.6 var(--body); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.05; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); text-transform: uppercase; }
h3 { font-size: 1.5rem; font-weight: 600; }
p { margin: 0 0 1em; }
svg { width: 1.2em; height: 1.2em; flex: none; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.center { text-align: center; margin-top: 40px; }

.eyebrow { font: 600 .85rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 3px; background: currentColor; }
.eyebrow--light { color: #9cc4e8; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 8px; font: 600 1.05rem/1 var(--body); text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .15s; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-d); }
.btn--ghost { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--ghost:hover { background: var(--blue); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--blue-l); }
.btn--full { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row--center { justify-content: center; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.hdr.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(21,25,30,.06); }
.hdr__in { display: flex; align-items: center; gap: 24px; height: var(--hdr); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { height: 44px; width: auto; }
.brand__txt { font: 600 .82rem/1.15 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-left: 1px solid var(--line); padding-left: 12px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; font-weight: 500; color: var(--ink); }
.nav a:hover, .nav a[aria-current] { color: var(--blue); }
.nav__call { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: #fff !important; padding: 10px 16px; border-radius: 8px; font-weight: 600 !important; }
.nav__call:hover { background: var(--blue-d); }
.nav-btn { display: none; background: none; border: 0; color: var(--ink); padding: 8px; cursor: pointer; }
.nav-btn svg { width: 28px; height: 28px; }
.nav-btn__close { display: none; }
@media (max-width: 960px) {
  .nav-btn { display: block; }
  .nav { position: fixed; inset: var(--hdr) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 20px; box-shadow: 0 20px 30px rgba(0,0,0,.08); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav__call { margin-top: 14px; justify-content: center; border: 0 !important; }
  .is-open .nav { transform: none; opacity: 1; visibility: visible; }
  .is-open .nav-btn__open { display: none; }
  .is-open .nav-btn__close { display: block; }
}
@media (max-width: 420px) { .brand__txt { display: none; } }

/* Hero */
.hero { position: relative; color: #fff; min-height: min(88vh, 760px); display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,22,36,.92) 0%, rgba(9,22,36,.72) 45%, rgba(9,22,36,.25) 100%), linear-gradient(0deg, rgba(9,22,36,.6), transparent 50%); }
.hero__in { position: relative; padding: 120px 0 70px; }
.hero h1 { color: #fff; max-width: 820px; }
.hero h1 span { color: #8ec0ec; }
.hero .lead { color: #d6dee7; }
.ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 0; margin: 30px 0 0; font-weight: 500; }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
@media (max-width: 700px) {
  .hero__bg::after { background: linear-gradient(0deg, rgba(9,22,36,.95) 15%, rgba(9,22,36,.55) 100%); }
  .hero__in { padding: 90px 0 48px; }
}

/* Sections */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--alt { background: var(--bg-2); }
.section--flush { padding-top: 0; }
.sec-head { max-width: 720px; margin-bottom: 44px; }
.sec-head p:last-child { color: var(--muted); font-size: 1.1rem; }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 22px; }
.svc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.svc:hover { box-shadow: 0 14px 34px rgba(19,82,135,.12); transform: translateY(-2px); }
.svc__img { position: relative; aspect-ratio: 16/10; }
.svc__img img { width: 100%; height: 100%; object-fit: cover; }
.svc__ico { position: absolute; left: 18px; bottom: -22px; width: 48px; height: 48px; border-radius: 10px; background: var(--blue); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(19,82,135,.35); }
.svc__ico svg { width: 26px; height: 26px; }
.svc__body { padding: 36px 22px 22px; }
.svc__body p { color: var(--muted); margin: 0; }

/* Projects */
.proj-list { display: grid; gap: 56px; }
.proj { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.proj--flip .proj__imgs { order: 2; }
.proj__imgs { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 10px; }
.proj__img { display: block; overflow: hidden; border-radius: 8px; aspect-ratio: 4/3; }
.proj__img--main { grid-column: 1 / -1; aspect-ratio: 16/9; }
.proj__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.proj__img:hover img { transform: scale(1.04); }
.tag { display: inline-block; background: var(--blue-l); color: var(--blue); font-weight: 600; font-size: .85rem; padding: 4px 10px; border-radius: 99px; margin-bottom: 12px; }
.proj__txt h3 { font-size: 2rem; }
.proj__txt p:last-child { color: var(--muted); font-size: 1.1rem; }
@media (max-width: 860px) {
  .proj { grid-template-columns: 1fr; gap: 20px; }
  .proj--flip .proj__imgs { order: 0; }
}

/* Steps */
.steps { list-style: none; padding: 0; margin: 0 0 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; counter-reset: s; }
.step { border-top: 3px solid var(--blue); padding-top: 18px; }
.step__n { font: 700 2.4rem/1 var(--head); color: var(--blue); opacity: .35; display: block; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; background: var(--ink); color: #cfd6de; border-radius: 14px; overflow: hidden; }
.about figure { margin: 0; height: 100%; }
.about figure img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.about > div { padding: 40px 40px 40px 0; }
.about h3 { color: #fff; font-size: 2rem; }
.about .eyebrow { color: #8ec0ec; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 0; } .about > div { padding: 28px 24px 32px; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 36px; } }
.info { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 18px; }
.info li { display: flex; gap: 14px; align-items: flex-start; }
.info li > svg { width: 44px; height: 44px; padding: 11px; border-radius: 10px; background: var(--blue-l); color: var(--blue); }
.info b { display: block; color: var(--ink); }
.info a { text-decoration: none; font-size: 1.15rem; }
.info a:hover { color: var(--blue); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: clamp(22px, 4vw, 34px); box-shadow: 0 14px 40px rgba(21,25,30,.06); }
.form h3 { font-size: 1.8rem; margin-bottom: 6px; }
.form__note { color: var(--muted); font-size: .95rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #c9d0d8; border-radius: 8px; padding: 12px 14px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.field [aria-invalid="true"] { border-color: #c0392b; }
.form__err { color: #c0392b; font-weight: 600; }
.form__privacy { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }

/* Gallery page */
.page-top { padding: clamp(48px, 7vw, 84px) 0 36px; }
.page-top--center { text-align: center; padding-bottom: 100px; }
.page-top--center .eyebrow { justify-content: center; }
.page-top--center .lead { margin-inline: auto; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; position: sticky; top: var(--hdr); z-index: 5; background: rgba(255,255,255,.96); padding: 12px 0; }
.filters button { font: 600 .98rem/1 var(--body); color: var(--ink); background: var(--bg-2); border: 1px solid var(--line); border-radius: 99px; padding: 11px 16px; cursor: pointer; }
.filters button small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.filters button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.filters button[aria-pressed="true"] small { color: #cfe1f2; }
.gal { columns: 4 260px; column-gap: 12px; }
.gal__item { display: block; position: relative; margin-bottom: 12px; break-inside: avoid; border-radius: 8px; overflow: hidden; background: var(--bg-2); }
.gal__item[hidden] { display: none; }
.gal__item img { width: 100%; transition: transform .4s; }
.gal__item:hover img { transform: scale(1.03); }
.gal__cap { position: absolute; inset: auto 0 0 0; padding: 30px 12px 10px; color: #fff; font-size: .9rem; line-height: 1.3; background: linear-gradient(transparent, rgba(0,0,0,.72)); opacity: 0; transition: opacity .2s; }
.gal__item:hover .gal__cap, .gal__item:focus-visible .gal__cap { opacity: 1; }
@media (hover: none) { .gal__cap { opacity: 1; font-size: .8rem; } }
@media (max-width: 560px) { .gal { columns: 2; column-gap: 8px; } .gal__item { margin-bottom: 8px; } }
.cta-band { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; background: var(--blue); color: #dbe8f4; border-radius: 14px; padding: 32px clamp(22px, 4vw, 44px); }
.cta-band h2 { color: #fff; font-size: 2rem; margin-bottom: 4px; }
.cta-band p { margin: 0; }
.cta-band .btn--primary { background: #fff; color: var(--blue); }
.cta-band .btn--ghost { border-color: #fff; color: #fff; }
.cta-band .btn--ghost:hover { background: #fff; color: var(--blue); }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(8,12,18,.94); display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 56px 64px 20px; }
.lb[hidden] { display: none; }
.lb img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 4px; }
.lb p { color: #e6ebf0; margin: 14px 0 0; text-align: center; }
.lb button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }
.lb button:hover { background: rgba(255,255,255,.25); }
[data-lb-close] { top: 12px; right: 12px; }
[data-lb-prev] { left: 10px; top: 50%; transform: translateY(-50%); }
[data-lb-next] { right: 10px; top: 50%; transform: translateY(-50%); }
.lb__count { position: absolute; top: 22px; left: 20px; color: #9aa6b2; font-size: .9rem; }
@media (max-width: 600px) { .lb { padding: 64px 8px 16px; } [data-lb-prev], [data-lb-next] { top: auto; bottom: 14px; transform: none; } .lb p { margin-bottom: 56px; } }

/* Legal */
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.toc { position: sticky; top: calc(var(--hdr) + 20px); display: grid; gap: 4px; border-left: 2px solid var(--line); }
.toc a { text-decoration: none; padding: 5px 14px; color: var(--muted); }
.toc a:hover { color: var(--blue); }
.prose { max-width: 720px; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose a { color: var(--blue); }
.updated { color: var(--muted); font-size: .9rem; margin-top: 40px; }
.notice { display: flex; gap: 12px; background: #fff7e6; border: 1px solid #f2d39b; color: #6b4a0f; border-radius: 10px; padding: 14px 16px; margin-bottom: 24px; }
.notice svg { width: 22px; height: 22px; margin-top: 2px; }
@media (max-width: 860px) { .legal { grid-template-columns: 1fr; } .toc { position: static; } }

/* Footer */
.ftr { background: var(--ink); color: #aab3bd; padding: 64px 0 24px; font-size: .98rem; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.ftr__logo { height: 52px; width: auto; margin-bottom: 18px; }
.ftr__h { font-size: 1.2rem; color: #fff; text-transform: uppercase; letter-spacing: .04em; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: #fff; }
.ftr p { margin: 0 0 .6em; }
.ftr__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ftr__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid #2b323b; margin-top: 44px; padding-top: 20px; font-size: .9rem; }
.ftr__base a { color: #fff; }
@media (max-width: 760px) { .ftr__grid { grid-template-columns: 1fr; gap: 28px; } }

.fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.fab svg { width: 30px; height: 30px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
