:root {
  color-scheme: light;
  --ink: #171e24;
  --muted: #4f5962;
  --navy: #12191f;
  --accent: #b72418;
  --line: #d9dee1;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 5px;
}
h1, h2, h3, p, figure { margin: 0; }

.wrap {
  width: min(100% - clamp(2rem, 9vw, 9rem), 75rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 2;
  inset: .75rem auto auto .75rem;
  padding: .65rem 1rem;
  background: #fff;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.site-header { background: #fff; }
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.header-inner { min-height: 5.25rem; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  text-decoration: none;
}
.brand img { width: 6.25rem; }
.brand span {
  border-inline-start: 1px solid var(--line);
  padding-inline-start: .9rem;
  font-size: .875rem;
  font-weight: 600;
}
.main-nav { display: flex; align-items: center; gap: clamp(.6rem, 2.4vw, 2rem); }
.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
}
.main-nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
.main-nav .nav-contact {
  padding-inline: 1rem;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  background: var(--navy);
  color: #fff;
  min-height: clamp(29rem, 42vw, 40rem);
}
.hero-image, .hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-image {
  z-index: -2;
  object-fit: cover;
  object-position: center 57%;
}
.hero::after {
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgb(13 21 28 / 96%) 0%, rgb(13 21 28 / 85%) 34%, rgb(13 21 28 / 34%) 72%, rgb(13 21 28 / 16%) 100%);
}
.hero-inner { padding-block: 3.5rem; }
.hero h1 {
  font-size: clamp(3rem, 7vw, 6.125rem);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -.052em;
}
.hero h1::before {
  content: "";
  display: block;
  width: 3rem;
  height: .25rem;
  margin-block-end: 1.5rem;
  background: #ed3e2b;
}
.hero p {
  margin-block: 1.5rem 1.75rem;
  max-width: 32rem;
  color: #edf0f2;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.6;
}
.button {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding-inline: 1.25rem;
  background: var(--accent);
  color: #fff;
  font-size: .9375rem;
  font-weight: 650;
  text-decoration: none;
}
.button:hover { background: #991e14; }

.section { padding-block: clamp(3rem, 6vw, 6rem); }
.section-grid {
  display: grid;
  grid-template-columns: minmax(11rem, 1fr) minmax(0, 2fr);
  align-items: start;
  gap: 1.25rem 3rem;
}
.section h2 {
  font-size: clamp(1.875rem, 3.3vw, 3rem);
  font-weight: 650;
  letter-spacing: -.04em;
  line-height: 1.1;
}
.section h2::after {
  content: "";
  display: block;
  width: 2rem;
  height: 2px;
  margin-block-start: 1rem;
  background: var(--accent);
}
.section-copy { min-width: 0; }
.section-copy p {
  max-width: 64ch;
  color: var(--muted);
  line-height: 1.7;
}
.section-copy p + p { margin-block-start: .75rem; }
.section-copy .lead {
  max-width: 46ch;
  color: var(--ink);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.48;
}
.projects { background: #f4f6f7; border-block: 1px solid var(--line); }

.project-list {
  margin-block-start: 1.5rem;
  border-block-start: 1px solid var(--line);
}
.project { border-block-end: 1px solid var(--line); }
.project summary {
  min-height: 3.25rem;
  padding-block: .85rem;
  font-weight: 650;
  cursor: pointer;
}
.project summary::marker { color: var(--accent); }
.project summary:hover { color: var(--accent); }
.project-body { padding-block-end: 1.5rem; }
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
  margin-block-start: 1rem;
}
.project-gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.project-gallery figcaption {
  padding-block-start: .4rem;
  color: var(--muted);
  font-size: .875rem;
}
.contact a { color: var(--accent); overflow-wrap: anywhere; }

.site-footer { background: var(--navy); color: #e0e5e8; }
.footer-inner { min-height: 7rem; padding-block: 1.5rem; }
.footer-inner img { width: 6.25rem; }
.footer-inner small { font-size: .875rem; line-height: 1.5; }

@media (max-width: 40rem) {
  .header-inner { flex-wrap: wrap; gap: .25rem 1rem; padding-block: .65rem; }
  .main-nav { width: 100%; justify-content: space-between; }
  .hero-image { object-position: 63% center; }
  .hero::after { background: linear-gradient(90deg, rgb(13 21 28 / 94%), rgb(13 21 28 / 61%)); }
  .section-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-wrap: wrap; }
}
