:root {
  --ink: #20252a;
  --muted: #5e6872;
  --navy: #18324b;
  --green: #61735c;
  --clay: #b07a55;
  --cream: #f7f4ee;
  --mist: #eef2ef;
  --white: #ffffff;
  --line: #d9dfdc;
  --shadow: 0 16px 36px rgba(24, 50, 75, 0.1);
  --radius: 8px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

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

a {
  color: var(--navy);
  text-underline-offset: 0.22em;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(176, 122, 85, 0.5);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  font-size: clamp(2.15rem, 3.5vw, 3.35rem);
}

h2 {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
}

h3 {
  font-size: 1.3rem;
}

p,
ul,
blockquote {
  margin: 0;
}

ul {
  padding: 0;
}

address {
  font-style: normal;
}

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

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(32, 37, 42, 0.1);
  backdrop-filter: blur(12px);
}

.topbar {
  color: rgba(255, 255, 255, 0.9);
  background: var(--navy);
  font-size: 0.88rem;
}

.topbar__inner {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar a {
  color: var(--white);
  text-decoration: none;
}

.nav-shell {
  position: relative;
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand__mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 700;
}

.brand__name {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.1;
}

.brand__sub {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.nav-links a {
  padding: 9px 11px;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--navy);
  background: var(--mist);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  color: var(--white);
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  color: var(--white);
  background: #23435f;
}

.button--secondary {
  color: var(--navy);
  background: var(--white);
  border-color: var(--line);
}

.button--secondary:hover {
  color: var(--navy);
  background: var(--mist);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  content: "";
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

.hero {
  position: relative;
  padding: clamp(42px, 6vw, 70px) 0;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 30px;
  height: 2px;
  background: currentColor;
  content: "";
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.24rem);
}

.hero h1 {
  color: var(--navy);
}

.hero .eyebrow {
  color: var(--green);
}

.hero .lead {
  max-width: 560px;
  margin-top: 16px;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.image-button {
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: none;
  border: 0;
  border-radius: var(--radius);
  cursor: zoom-in;
}

.image-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.image-button:hover img {
  transform: scale(1.025);
}

.summary-band {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.summary-grid div {
  padding-left: 14px;
  border-left: 2px solid var(--clay);
}

.summary-grid strong,
.summary-grid span {
  display: block;
}

.summary-grid span {
  color: var(--muted);
  font-size: 0.96rem;
}

.section {
  padding: clamp(46px, 6vw, 72px) 0;
}

.section--tint {
  background: var(--mist);
}

.section-heading,
.split,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 6vw, 70px);
}

.section-heading {
  margin-bottom: 32px;
}

.section-heading p {
  max-width: 580px;
  color: var(--muted);
}

.stack {
  display: grid;
  gap: 20px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.project-card,
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(24, 50, 75, 0.06);
}

.project-card {
  overflow: hidden;
}

.project-card__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}

.project-card figure {
  position: relative;
  margin: 0;
  background: var(--white);
}

.project-card .image-button {
  aspect-ratio: 4 / 3;
  border-radius: 0;
}

.project-card figcaption {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 9px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.project-card p {
  padding: 18px;
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 12px;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.64em;
  width: 10px;
  height: 10px;
  background: var(--clay);
  border-radius: 50%;
  content: "";
}

.contact-section {
  background: var(--cream);
}

.contact-card {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.contact-card a {
  font-weight: 700;
}

.site-footer {
  padding: 18px 0;
  color: rgba(255, 255, 255, 0.82);
  background: var(--navy);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-inner a {
  color: var(--white);
}

.lightbox {
  width: min(94vw, 1100px);
  padding: 0;
  background: transparent;
  border: 0;
}

.lightbox::backdrop {
  background: rgba(20, 24, 28, 0.78);
}

.lightbox__inner {
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius);
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #111;
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
}

.lightbox__caption {
  color: var(--muted);
  font-size: 0.95rem;
}

.lightbox__close {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  background: var(--navy);
  border: 0;
  border-radius: var(--radius);
  font-size: 1.5rem;
  line-height: 1;
}

@media (max-width: 980px) {
  .topbar__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 9px 0;
  }

  .nav-toggle {
    display: grid;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% - 4px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
  }

  .section-heading,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .work-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .nav-shell {
    min-height: 72px;
  }

  .brand__mark {
    width: 42px;
    height: 42px;
  }

  .brand__sub {
    display: none;
  }

  .header-actions .button {
    display: none;
  }

  .hero {
    padding: 34px 0;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .project-card__images {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
