:root {
  --ink: #1c1e21;
  --muted: #5e646c;
  --paper: #f7f5f2;
  --white: #fffcf8;
  --line: #e4dfd6;
  --line-strong: #c9c2b6;
  --blue: #1673c4;
  --blue-dark: #0f5fa3;
  --focus: #0b4f8a;
  --sans: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --header: 60px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.5;
}

img { max-width: 100%; }

a { color: var(--blue); }

a:hover { color: var(--blue-dark); }

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

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  z-index: 40;
}

.skip:focus { top: 8px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 max(20px, calc((100% - var(--wrap)) / 2));
  background: rgba(247, 245, 242, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  margin-right: auto;
}

.brand-logo {
  display: block;
  height: 36px;
  width: auto;
  padding-right: 10px;
  border-right: 1px solid var(--line-strong);
}

.brand-name {
  display: block;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.brand-sub {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
}

.nav a:hover,
.nav a[aria-current="page"] { color: var(--blue); }

.header .nav-quote { display: none; }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  margin: 0 auto;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before { top: -5px; }
.menu-toggle span::after { top: 5px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 4px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: white;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: white; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover { background: white; color: var(--ink); border-color: var(--ink); }

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(300px, 1.14fr);
  gap: 28px;
  align-items: center;
  padding: 28px 0 10px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; }

h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
}

.lede {
  margin: 0 0 12px;
  max-width: 38rem;
  font-size: 1.05rem;
}

.note {
  margin: 0 0 18px;
  max-width: 38rem;
  color: var(--muted);
}

.actions { display: flex; flex-wrap: wrap; gap: 8px; }

.hero-photo,
.logistics img,
.portal img {
  width: 100%;
}

.hero-photo img,
.logistics img,
.portal img {
  display: block;
  width: 100%;
  height: auto;
}

#services,
#work,
#clients,
#logistics,
#quote {
  scroll-margin-top: 72px;
}

.band {
  padding: 34px 0;
}

.band-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 14px;
}

.band-title h2 { margin: 0; font-size: 1.55rem; }

.band-title p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service {
  padding: 16px 16px 18px 0;
}

.service + .service {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.service h3 { margin: 0 0 6px; font-size: 1rem; }

.service p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}

.filters button {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}

.filters button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.gallery {
  columns: 3;
  column-gap: 16px;
}

.shot {
  break-inside: avoid;
  margin: 0 0 16px;
}

.shot button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.shot img { display: block; width: 100%; height: auto; }

.shot figcaption {
  display: flex;
  gap: 8px;
  padding: 6px 2px 0;
  font-size: 0.86rem;
}

.shot figcaption span { color: var(--muted); }

.clients {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.clients li {
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logistics {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1.1fr);
  gap: 28px;
  align-items: center;
}

.logistics p { margin: 0 0 12px; max-width: 38rem; }

.logistics img { display: block; width: 100%; height: auto; }

.contact {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(280px, 1.3fr);
  gap: 28px;
  align-items: start;
}

.contact h2 { margin: 0 0 8px; }

.contact-list { margin: 14px 0 0; padding: 0; list-style: none; }

.contact-list a { color: var(--ink); font-weight: 600; text-decoration: none; }

.contact-list a:hover { color: var(--blue); }

.contact-list li + li { margin-top: 4px; }

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

label { display: grid; gap: 4px; font-size: 0.82rem; font-weight: 600; }

.span-2 { grid-column: 1 / -1; }

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  padding: 7px 9px;
}

textarea { min-height: 88px; resize: vertical; }

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.form-status { margin: 0; color: var(--muted); font-size: 0.86rem; font-weight: 500; }

.footer {
  border-top: 1px solid var(--line);
  padding: 18px 0 28px;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  display: block;
  height: 28px;
  width: auto;
}

.footer strong { color: var(--ink); font-weight: 600; }

dialog {
  width: min(960px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  border: 0;
  padding: 12px;
  background: var(--paper);
  color: var(--ink);
}

dialog::backdrop { background: rgba(20, 22, 24, 0.72); }

.lightbox-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.lightbox-bar p { margin: 0; font-weight: 600; }

dialog img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
}

.portal {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1.1fr);
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 160px);
  padding: 28px 0 40px;
}

.portal h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }

.portal p { max-width: 38rem; }

@media (max-width: 980px) {
  .services { grid-template-columns: 1fr 1fr; }
  .service:nth-child(odd) { border-left: 0; padding-left: 0; }
  .service:nth-child(3),
  .service:nth-child(4) { border-top: 1px solid var(--line); padding-top: 16px; }
  .gallery { columns: 2; }
  .clients { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .header .btn-quote { display: none; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 20px 12px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 10px 0; font-size: 1rem; }
  .header .nav-quote { display: inline-flex; margin-top: 6px; width: fit-content; }
  .hero,
  .logistics,
  .contact,
  .portal { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .band-title { flex-direction: column; align-items: flex-start; gap: 4px; }
}

@media (max-width: 640px) {
  .wrap { width: min(var(--wrap), calc(100% - 28px)); }
  .header { padding-inline: 14px; }
  .services, .clients, form { grid-template-columns: 1fr; }
  .service + .service { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .gallery { columns: 1; }
  .span-2 { grid-column: auto; }
  h1 { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
