:root {
  --navy: #0e1a28;
  --navy-2: #162536;
  --ink: #141a22;
  --muted: #5c6773;
  --mist: #768692;
  --rule: #d8d2c6;
  --paper: #f4f1ea;
  --paper-2: #ebe6db;
  --white: #fffcf7;
  --leaf: #6fae2e;
  --leaf-deep: #4f8a18;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Outfit", "Source Sans 3", sans-serif;
  --content: 70rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
}

main { flex: 1 0 auto; }

::selection {
  background: var(--navy);
  color: var(--paper);
}

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

a {
  color: var(--leaf-deep);
  text-underline-offset: 0.16em;
}

a:hover { color: var(--leaf); }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--navy);
  color: var(--paper);
  padding: 0.6rem 0.9rem;
  z-index: 50;
}

.skip:focus { top: 1rem; }

.wrap {
  width: min(calc(100% - 2.5rem), var(--content));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
}

.site-header-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
}

.brand img {
  width: 2.4rem;
  height: 2.4rem;
}

.brand span {
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--rule);
  background: var(--white);
  color: var(--navy);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font: inherit;
  cursor: pointer;
}

.nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}

.nav-list a:hover { color: var(--leaf-deep); }

.hero {
  background: var(--navy);
  color: var(--paper);
  padding: 5.5rem 0 5rem;
}

.hero .wrap {
  display: grid;
  gap: 1.4rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  width: min(calc(100% - 2.5rem), 48rem);
}

.kicker {
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf);
  margin: 0;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--white);
}

.lede {
  margin: 0;
  font-size: 1.2rem;
  color: #c9d2db;
  max-width: 40rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--leaf);
  color: var(--navy);
}

.btn-primary:hover {
  background: #9ed34f;
  color: var(--navy);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid #3a4c5e;
}

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

.section {
  padding: 4.5rem 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2.2rem;
  max-width: 40rem;
}

.section h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--navy);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.service {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 1rem;
  padding: 1.35rem 1.3rem 1.4rem;
}

.service h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 0 0 0.45rem;
  color: var(--navy);
}

.service p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.work-band { background: var(--paper-2); }

.case {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3.2rem;
}

.case:last-child { margin-bottom: 0; }

.case.reverse { grid-template-columns: 1fr 1.05fr; }

.case.reverse .case-copy { order: 2; }
.case.reverse .case-media { order: 1; }

.case-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--leaf-deep);
}

.case h3 {
  font-family: var(--display);
  font-size: 1.55rem;
  margin: 0 0 0.5rem;
  color: var(--navy);
}

.case .summary {
  margin: 0 0 0.8rem;
}

.case ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.case li + li { margin-top: 0.3rem; }

.case-media img {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid var(--rule);
  background: var(--navy);
  cursor: zoom-in;
  box-shadow: 0 18px 40px rgba(14, 26, 40, 0.12);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-grid p { margin: 0 0 1rem; }
.about-grid p:last-child { margin-bottom: 0; }

.contact {
  background: var(--navy);
  color: var(--paper);
}

.contact h2 { color: var(--white); }

.contact p { color: #c9d2db; }

.contact a { color: var(--leaf); }
.contact .btn-primary { color: var(--navy); }
.contact .btn-primary:hover { color: var(--navy); }

.contact-card { max-width: 40rem; }

.contact-cta { margin: 1.4rem 0 0; }

.contact-list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
}

.contact-list li { margin: 0.35rem 0; }

.contact-list span {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
}

.site-footer {
  background: var(--navy-2);
  color: #8b97a4;
  font-size: 0.95rem;
}

.site-footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
}

.site-footer a { color: #c9d2db; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(14, 26, 40, 0.92);
  display: grid;
  place-items: center;
  padding: 2rem;
}

.lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 88vh;
  border-radius: 0.6rem;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-size: 1.4rem;
  cursor: pointer;
}

body.lightbox-open { overflow: hidden; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-list {
    display: none;
    position: absolute;
    right: 1.25rem;
    top: 3.6rem;
    flex-direction: column;
    gap: 0.2rem;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: 0.8rem;
    padding: 0.6rem;
    min-width: 11rem;
    box-shadow: 0 16px 32px rgba(14, 26, 40, 0.12);
  }
  nav.is-open .nav-list { display: flex; }
  .nav-list a { padding: 0.45rem 0.6rem; }
  .services { grid-template-columns: 1fr; }
  .case,
  .case.reverse { grid-template-columns: 1fr; }
  .case.reverse .case-copy,
  .case.reverse .case-media { order: unset; }
  .about-grid { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 0 3.2rem; }
  .site-header-bar { position: relative; }
}

@media (min-width: 861px) and (max-width: 1040px) {
  .services { grid-template-columns: 1fr 1fr; }
}
