:root {
  --navy: #13294B;
  --navy-deep: #0B1A33;
  --paper: #F6F1E7;
  --card: #FFFFFF;
  --line: #D9D2C3;
  --muted: #4A5872;
  --spark: #F5C542;
  --tint: #EEF3F8;
  --radius: 4px;
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: Inter, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: var(--navy); }
a:hover { color: var(--navy-deep); }

:focus-visible { outline: 3px solid var(--spark); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 {
  font-family: Archivo, Arial, sans-serif;
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

/* ---------- header ---------- */
.site-header { border-bottom: 1.5px solid var(--navy); background: var(--paper); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { height: 46px; width: auto; }
.brand-text { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.25; }
.site-nav { display: flex; gap: 22px; font-weight: 600; font-size: 15px; }
.site-nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--navy); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius);
  font-weight: 600; font-size: 16px; text-decoration: none;
  border: 1.5px solid var(--navy);
}
.btn-solid { background: var(--navy); color: #fff; }
.btn-solid:hover { background: var(--navy-deep); color: #fff; }
.btn-line { background: transparent; color: var(--navy); }
.btn-line:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- home ---------- */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); }
.hero .lede { font-size: 19px; margin: 18px 0 26px; max-width: 34em; }
.signature { font-family: Caveat, cursive; font-weight: 600; font-size: 30px; line-height: 1; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: 15px; font-weight: 600; }

.portrait {
  aspect-ratio: 4 / 5; width: 100%; max-width: 360px; justify-self: end;
  border: 1.5px solid var(--navy); background: #EFE6DA; object-fit: cover;
}
.portrait-empty { display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--muted); }

.band { padding: 56px 0; border-top: 1.5px solid var(--navy); }
.band h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 26px; }

.promise { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; }
.promise li { display: flex; gap: 12px; align-items: flex-start; }
.promise svg { flex-shrink: 0; margin-top: 6px; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service { background: var(--card); border: 1.5px solid var(--navy); padding: 20px; border-radius: var(--radius); }
.service h3 { font-size: 19px; margin-bottom: 8px; }
.service p { margin: 0; font-size: 15px; color: var(--muted); }

.areas { display: flex; flex-wrap: wrap; gap: 10px; }
.areas span { border: 1.5px solid var(--navy); padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; background: var(--card); }

.work-teaser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.work-teaser img { aspect-ratio: 1; object-fit: cover; width: 100%; border: 1.5px solid var(--navy); }

.napit { background: var(--tint); }
.napit .wrap { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
.napit img { width: 200px; background: #fff; }
.napit ul { margin: 10px 0 18px; padding-left: 18px; }

.contact { background: var(--navy); color: #fff; border-top: 0; }
.contact a { color: #fff; }
.contact .btn-line { border-color: #fff; color: #fff; }
.contact .btn-line:hover { background: #fff; color: var(--navy); }
.contact .btn-solid { background: #fff; color: var(--navy); border-color: #fff; }
.contact .btn-solid:hover { background: var(--spark); border-color: var(--spark); color: var(--navy); }
.contact-lines { margin-top: 18px; font-size: 16px; }

/* ---------- gallery ---------- */
.page-head { padding: 48px 0 24px; }
.page-head h1 { font-size: clamp(32px, 5vw, 48px); }
.page-head p { margin: 10px 0 0; font-size: 18px; color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 28px; }
.filters button {
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--navy); background: var(--card); color: var(--navy);
  padding: 6px 14px; border-radius: 999px;
}
.filters button[aria-pressed="true"] { background: var(--navy); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-bottom: 64px; }
.job { margin: 0; background: var(--card); border: 1.5px solid var(--navy); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.job button { all: unset; cursor: zoom-in; display: block; position: relative; }
.job button:focus-visible { outline: 3px solid var(--spark); outline-offset: -3px; }
.job img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #EFE6DA; }
.job .count {
  position: absolute; right: 10px; bottom: 10px; background: rgba(11, 26, 51, 0.85); color: #fff;
  font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px;
}
.job figcaption { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.job .title { font-weight: 600; font-size: 16px; line-height: 1.35; }
.job .meta { font-size: 13px; color: var(--muted); font-weight: 500; }

.empty { border: 1.5px dashed var(--navy); padding: 48px 24px; text-align: center; margin-bottom: 64px; background: var(--card); }
.empty h2 { font-size: 24px; margin-bottom: 8px; }
.empty p { margin: 0 0 20px; color: var(--muted); }

/* lightbox */
.lightbox { border: 0; padding: 0; background: rgba(11, 26, 51, 0.97); max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(11, 26, 51, 0.92); }
.lb-inner { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 56px 16px 24px; }
.lb-inner img { max-width: min(1400px, 100%); max-height: calc(100vh - 170px); object-fit: contain; }
.lb-text { color: #fff; text-align: center; max-width: 46em; }
.lb-text .meta { color: #C9D3E3; font-size: 14px; margin-top: 4px; }
.lb-btn {
  position: fixed; background: rgba(255, 255, 255, 0.12); color: #fff; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 26px; line-height: 48px; text-align: center;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.25); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- footer ---------- */
.site-footer { border-top: 1.5px solid var(--navy); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .portrait { justify-self: start; max-width: 260px; }
  .services, .grid { grid-template-columns: repeat(2, 1fr); }
  .promise { grid-template-columns: 1fr; }
  .napit .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-header .wrap { min-height: 64px; }
  .brand-logo { height: 34px; }
  .brand-text { display: none; }
  .site-nav { gap: 14px; font-size: 14px; }
  .hero { padding: 40px 0; }
  .services, .grid { grid-template-columns: 1fr; }
  .work-teaser { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .band { padding: 44px 0; }
}
