:root {
  --ink: #111111;
  --ink-soft: #2a2a2a;
  --muted: #5e5e5e;
  --line: rgba(17, 17, 17, 0.16);
  --line-strong: rgba(17, 17, 17, 0.38);
  --paper: #ffffff;
  --paper-deep: #ececec;
  --cream: #f5f5f5;
  --gallery: #111111;
  --error: #8c3b32;
  --header: 4.25rem;
  --measure: 68rem;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Archivo", "Avenir Next", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea,
label,
.site-nav,
.nav-toggle,
.eyebrow,
.section-index span,
.hero-facts dt,
.project-head,
.form-note,
.footer-meta,
.optional {
  font-family: var(--sans);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

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

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

.skip:focus {
  top: 0.75rem;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header);
  padding: 0.85rem 6vw;
  color: var(--cream);
  background: transparent;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-header.is-solid {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-decoration: none;
  text-transform: uppercase;
}

.mark {
  width: 1.7rem;
  height: auto;
  aspect-ratio: 56.32 / 64;
  flex: none;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
}

.site-nav a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a[aria-current="true"] {
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.nav-toggle {
  display: none;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #111111;
  color: var(--cream);
  padding: calc(var(--header) + 3rem) 6vw 0;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: -1.5rem;
  pointer-events: none;
}

.hero::before {
  z-index: -2;
  background: url("../img/9A9B94A0-BB38-4709-A457-E00FA1796675_1_105_c.jpeg") center / cover no-repeat;
  filter: blur(6px);
}

.hero::after {
  z-index: -1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.28) 46%, rgba(0, 0, 0, 0.22) 100%);
}

.hero-inner {
  max-width: 46rem;
  padding-bottom: 4.5rem;
}

.eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 243, 238, 0.62);
}

.hero h1 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero-lead {
  max-width: 38rem;
  margin: 1.75rem 0 0;
  font-size: 1.08rem;
  line-height: 1.55;
  color: rgba(246, 243, 238, 0.82);
}

.text-link {
  display: inline-block;
  margin-top: 2rem;
  color: var(--cream);
  font-size: 0.95rem;
  text-underline-offset: 0.35em;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 0 -6vw;
  padding: 1.5rem 6vw 1.75rem;
  border-top: 1px solid rgba(246, 243, 238, 0.16);
}

.hero-facts div {
  margin: 0;
}

.hero-facts dt {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(246, 243, 238, 0.55);
}

.hero-facts dd {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.45;
  max-width: 18rem;
}

.section {
  display: grid;
  grid-template-columns: minmax(9rem, 16rem) minmax(0, 1fr);
  gap: 2rem 4vw;
  max-width: calc(var(--measure) + 12vw);
  margin: 0 auto;
  padding: 6.5rem 6vw;
}

.section-ruled {
  border-block: 1px solid var(--line);
}

.section-index span {
  display: block;
  margin-bottom: 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.section-index h2,
.subhead,
.service-list h3,
.phase-list h3,
.client-grid h4 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-index h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  line-height: 1.05;
}

.section-body {
  max-width: 48rem;
}

.lede {
  margin: 0 0 1.1rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 450;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.section-body p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.subhead {
  margin: 3rem 0 1.25rem;
  font-size: 1.55rem;
}

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

.client-grid article {
  padding-top: 1rem;
  border-top: 1px solid var(--line-strong);
}

.client-grid h4 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  font-weight: 600;
}

.client-grid p {
  margin: 0;
  font-size: 0.98rem;
}

.service-list,
.phase-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  counter-reset: item;
}

.service-list li,
.phase-list li {
  counter-increment: item;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.35rem 1rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.service-list li:last-child,
.phase-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.service-list li::before,
.phase-list li::before {
  content: counter(item, decimal-leading-zero);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-top: 0.4rem;
}

.service-list h3,
.phase-list h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: 0.08em;
}

.service-list p,
.phase-list p {
  grid-column: 2;
  margin: 0.35rem 0 0;
}

.project-table {
  margin-top: 2rem;
  border-top: 1px solid var(--ink);
}

.project-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr 1.15fr;
  gap: 1.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}

.project-head {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-row span:first-child {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
}

.project-head span:first-child {
  font-weight: 500;
}

.section-contact {
  padding-bottom: 5rem;
}

.contact-mail {
  margin-top: 0.25rem;
}

.contact-mail a {
  font-weight: 500;
  text-underline-offset: 0.2em;
}

.contact-form {
  margin-top: 2.5rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.optional {
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  padding: 0.7rem 0;
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
  border: 1px solid var(--line-strong);
  padding: 0.8rem 0.9rem;
  background: rgba(255, 255, 255, 0.35);
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 1.5rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--error);
}

.field-error {
  margin: 0.35rem 0 0;
  color: var(--error);
  font-size: 0.85rem;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.form-actions button {
  border: 0;
  background: var(--ink);
  color: var(--cream);
  font: inherit;
  font-size: 0.95rem;
  padding: 0.9rem 1.4rem;
  cursor: pointer;
}

.form-actions button:hover {
  background: #2e2c28;
}

.form-note,
.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 28rem;
}

.form-status {
  margin-top: 1.25rem;
  color: var(--ink);
}

.site-footer {
  background: var(--gallery);
  color: var(--cream);
  padding: 3.5rem 6vw 2.5rem;
  display: grid;
  gap: 0.35rem;
}

.site-footer p {
  margin: 0;
}

.site-footer .wordmark {
  margin-bottom: 0.4rem;
}

.site-footer a {
  width: fit-content;
  margin-top: 0.6rem;
  text-underline-offset: 0.2em;
}

.footer-meta {
  margin-top: 1.5rem;
  color: rgba(246, 243, 238, 0.5);
  font-size: 0.85rem;
}

.gallery {
  list-style: none;
  display: grid;
  gap: 3.5rem;
  margin: 0;
  padding: 0;
}

.gallery li {
  display: grid;
  gap: 0.7rem;
}

.gallery h3 {
  margin: 0.4rem 0 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gallery .gallery-place {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.gallery .gallery-text {
  margin: 0;
  max-width: 40rem;
  color: var(--ink-soft);
}

.gallery-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.gallery-photos[data-count="1"] {
  grid-template-columns: 1fr;
}

.gallery-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper-deep);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.4rem 6vw 1rem;
    background: var(--paper);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }

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

  .site-nav a {
    padding: 0.85rem 0;
    border-top: 1px solid var(--line);
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-bottom: 2.5rem;
  }

  .hero-facts,
  .client-grid,
  .field-row,
  .section,
  .project-row {
    grid-template-columns: 1fr;
  }

  .hero-facts {
    gap: 1.25rem;
    padding-top: 1.35rem;
  }

  .section {
    padding: 4rem 6vw;
    gap: 1.25rem;
  }

  .project-head {
    display: none;
  }

  .project-row span:first-child {
    font-family: var(--sans);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .form-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .site-header {
    transition: none;
  }
}

@media print {
  .site-header,
  .nav-toggle,
  .skip,
  .contact-form {
    display: none;
  }

  .hero,
  .site-footer {
    background: white;
    color: black;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  .section {
    display: block;
    padding: 1.5rem 0;
  }
}
