@import url("fonts.css");

:root {
  --ink: #1e181c;
  --paper: #f6f3ee;
  --paper-2: #efeae4;
  --cream: #fbf9f6;
  --muted: #5c5654;
  --line: rgba(30, 24, 28, 0.16);
  --line-strong: rgba(30, 24, 28, 0.4);
  --grey: #8f9095;
  --display: "Cormorant Garamond", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --body: "Source Serif 4", "Iowan Old Style", Palatino, "Times New Roman", serif;
  --header-h: 7.5rem;
  --bar-h: 4.25rem;
  --wrap: 70rem;
}

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

html {
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

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

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

a {
  color: inherit;
}

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

.site-header :focus-visible,
.mobile-bar :focus-visible,
.project-frame.is-zoomable:focus-visible,
#lightbox :focus-visible {
  outline-color: var(--paper);
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 80;
  background: var(--paper);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
}

.skip:focus {
  top: 0.75rem;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 0.96;
  text-wrap: balance;
  letter-spacing: -0.015em;
}

h1 {
  margin: 0.35rem 0 0;
  font-size: clamp(3rem, 7vw, 5.4rem);
}

h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.15rem);
}

h3 {
  margin: 0;
  font-size: clamp(1.7rem, 2.5vw, 2.15rem);
  line-height: 1.05;
}

p {
  margin: 0;
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.lede {
  max-width: 38rem;
  margin-top: 1.35rem;
  font-size: 1.2rem;
  line-height: 1.55;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid rgba(246, 243, 238, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.logo {
  position: relative;
  display: block;
  line-height: 0;
  flex: 0 0 auto;
  padding-top: 1.3rem;
}

.logo::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1.7rem;
  height: 1.15rem;
  background: var(--grey);
  border-left: 1px solid rgba(246, 243, 238, 0.92);
  border-bottom: 1px solid rgba(246, 243, 238, 0.92);
}

.logo img {
  display: block;
  height: 4.35rem;
  width: auto;
}

.menu-toggle {
  display: none;
  appearance: none;
  border: 1px solid rgba(246, 243, 238, 0.45);
  background: transparent;
  color: var(--paper);
  font-family: var(--body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  min-height: 2.75rem;
  min-width: 5.5rem;
  padding: 0 0.9rem;
  cursor: pointer;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 2.75rem;
}

#site-nav ul {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

#site-nav a {
  color: rgba(246, 243, 238, 0.78);
  text-decoration: none;
  font-size: 1rem;
}

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

#site-nav a[aria-current="page"] {
  box-shadow: inset 0 -1px 0 var(--paper);
}

.header-phones {
  margin: 0;
  text-align: right;
}

.header-phones a {
  display: block;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.header-phones a + a {
  color: rgba(246, 243, 238, 0.68);
  font-size: 0.95rem;
}

.header-phones a:hover {
  color: var(--paper);
}

.hero {
  padding: 0 0 3.25rem;
}

.hero-media {
  position: relative;
  margin: 0;
  height: min(78vh, 48rem);
  min-height: 32rem;
  background: var(--ink);
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 24, 28, 0.34) 0%, rgba(30, 24, 28, 0.1) 24%, rgba(30, 24, 28, 0) 46%);
  pointer-events: none;
}

.hero-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding-bottom: 2.4rem;
  color: #fff;
  text-shadow: 0 1px 18px rgba(30, 24, 28, 0.28);
}

.hero-title .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.hero-copy {
  padding-top: 2.75rem;
}

.hero h1 {
  max-width: 12ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.65rem 1.3rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: var(--body);
}

.button:hover {
  background: transparent;
  color: var(--ink);
}

.button-quiet {
  background: transparent;
  color: var(--ink);
}

.button-quiet:hover {
  background: var(--ink);
  color: var(--paper);
}

.button-light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.button-light:hover {
  background: transparent;
  color: var(--paper);
}

.fmb-banner {
  background: #e4dcd2;
  color: var(--ink);
}

.fmb-banner-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem 2.25rem;
  padding: 1.6rem 0;
}

.fmb-banner p {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  line-height: 0.98;
}

.fmb-banner-inner > div a {
  display: inline-block;
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.fmb-banner-inner > div a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.section {
  padding: 4.5rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-head a {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  text-underline-offset: 0.25em;
}

.service-index {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.service-index a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.service-index a:hover h3 {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.service-index .num {
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  min-width: 2.2rem;
}

.service-index h2,
.service-index h3 {
  font-size: clamp(1.7rem, 2.5vw, 2.15rem);
  line-height: 1.05;
}

.service-index p {
  margin-top: 0.35rem;
  color: var(--muted);
  max-width: 46rem;
}

.project-grid,
.gallery {
  display: grid;
  gap: 2.25rem 1.25rem;
}

.gallery {
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gallery a,
.gallery button {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--ink);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  color: inherit;
  cursor: zoom-in;
}

.gallery a {
  cursor: pointer;
}

.gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.project-frame::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 18%;
  height: 14%;
  background: var(--grey);
  border-left: 1px solid rgba(246, 243, 238, 0.9);
  border-bottom: 1px solid rgba(246, 243, 238, 0.9);
}

.project-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-frame:has(img)::before {
  display: none;
}

.project-mark {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.15rem 1.25rem 1.3rem;
}

.project-kicker {
  margin: 0 0 auto;
  padding-top: 0.15rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-rule {
  display: block;
  height: 1px;
  margin: 0.8rem 0 0.7rem;
  background: rgba(246, 243, 238, 0.85);
}

.project-mark h2,
.project-mark h3 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(1.85rem, 2.5vw, 2.4rem);
}

.project-frame:has(img) .project-mark {
  background: linear-gradient(to top, rgba(30, 24, 28, 0.88), rgba(30, 24, 28, 0) 58%);
}

.project-frame:has(img) .project-kicker {
  margin: 0 0 0.35rem;
}

.project-frame:has(img) .project-rule {
  display: none;
}

.project-frame.is-zoomable {
  cursor: zoom-in;
}

.project > p,
.project-link + p {
  margin-top: 0.85rem;
  color: var(--muted);
}

.project-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-link:hover h3 {
  text-decoration: underline;
  text-underline-offset: 0.08em;
}

.split {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.split .text-link {
  display: inline-block;
  margin-top: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: 4.25rem 0;
}

.cta-band .lede {
  color: rgba(246, 243, 238, 0.82);
}

.cta-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin: 1.5rem 0 1.75rem;
}

.cta-phones a {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1;
  text-decoration: none;
}

.cta-phones a:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 3rem 0 2.25rem;
  border-top: 1px solid rgba(246, 243, 238, 0.12);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-name {
  margin: 0;
  font-family: var(--display);
  font-size: 2rem;
  line-height: 0.95;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-name span {
  display: block;
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(246, 243, 238, 0.8);
  font-size: 0.95rem;
  letter-spacing: 0.28em;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.footer-contact p + p,
.footer-nav li + li {
  margin-top: 0.25rem;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
}

.social a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.social svg {
  width: 1rem;
  height: 1rem;
  display: block;
  flex: 0 0 auto;
}

.fmb-mark {
  display: inline-block;
  line-height: 0;
}

.fmb-mark img {
  display: block;
  width: 7.25rem;
  height: auto;
  max-width: none;
}

.fmb-banner .fmb-mark img {
  width: 5.4rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.15rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(246, 243, 238, 0.16);
  color: rgba(246, 243, 238, 0.68);
  font-size: 0.92rem;
}

.footer-meta .fmb-mark img {
  width: 6.5rem;
}

.footer-meta a {
  color: inherit;
}

.page-head {
  padding: 3.5rem 0 0.5rem;
}

.prose {
  max-width: 40rem;
  padding-bottom: 1rem;
}

.wrap.prose {
  width: min(40rem, calc(100% - 2.5rem));
  margin-left: max(1.25rem, calc((100% - var(--wrap)) / 2));
  margin-right: auto;
}

.prose h2 {
  margin-top: 2.4rem;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
}

.prose p,
.prose li {
  margin-top: 0.9rem;
}

.prose ul {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
}

.prose a {
  text-underline-offset: 0.18em;
}

.related {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.related ul {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
}

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

.page-cta {
  padding-bottom: 4.5rem;
}

.contact-layout {
  display: grid;
  gap: 2.5rem;
  padding: 2rem 0 4.5rem;
}

.contact-details a {
  color: inherit;
}

.contact-details .phone {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1.1;
  text-decoration: none;
}

.contact-block + .contact-block {
  margin-top: 1.35rem;
}

.contact-label {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-note,
.fine {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.notice {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
}

.notice-ok {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

form {
  display: grid;
  gap: 1.15rem;
}

.field label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 0.7rem 0.85rem;
  min-height: 2.75rem;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

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

input:-webkit-autofill,
select:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 1000px #fff inset;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#lightbox {
  width: min(92vw, 52rem);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
}

#lightbox::backdrop {
  background: rgba(30, 24, 28, 0.9);
}

.lightbox-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.6rem;
}

.lightbox-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

#lightbox figure {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
}

#lightbox img {
  display: block;
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  background: var(--ink);
}

#lightbox img[hidden] {
  display: none;
}

#lightbox figcaption {
  padding: 0;
}

.lightbox-caption {
  margin: 0;
  padding: 0.9rem 1.1rem 1.05rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(246, 243, 238, 0.88);
}

.lightbox-caption:empty {
  display: none;
}

.lightbox-nav,
.lightbox-close {
  appearance: none;
  border: 1px solid rgba(246, 243, 238, 0.4);
  background: transparent;
  color: var(--paper);
  font-family: var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  cursor: pointer;
}

.lightbox-close {
  background: var(--ink);
}

@media (max-width: 720px) {
  .lightbox-stage {
    grid-template-columns: 1fr 1fr;
  }

  .lightbox-stage figure {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

.mobile-bar {
  display: none;
}

@media (min-width: 720px) {
  .project-grid,
  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
    align-items: start;
  }

  .contact-layout {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4rem;
    align-items: start;
  }
}

@media (min-width: 980px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 4.5rem));
  }

  .wrap.prose {
    width: min(40rem, calc(100% - 4.5rem));
    margin-left: max(2.25rem, calc((100% - var(--wrap)) / 2));
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

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

  .service-index a {
    grid-template-columns: 4.5rem 1fr;
    gap: 1.5rem;
    padding: 1.6rem 0;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 5.6rem;
  }

  .hero-media {
    height: min(70vh, 36rem);
    min-height: 26rem;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-title {
    padding-bottom: 1.5rem;
  }

  .hero-copy {
    padding-top: 2rem;
  }

  .logo {
    padding-top: 1rem;
  }

  .logo::before {
    width: 1.25rem;
    height: 0.85rem;
  }

  .logo img {
    height: 3.15rem;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .header-end {
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    padding-bottom: 1.2rem;
  }

  #site-nav ul {
    flex-direction: column;
    gap: 0.35rem;
  }

  #site-nav a {
    font-size: 1.35rem;
  }

  .header-phones {
    text-align: left;
  }

  .js .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .js .header-end {
    display: none;
    padding-bottom: 0;
  }

  .js.nav-open {
    overflow: hidden;
  }

  .js.nav-open .header-end {
    display: block;
    position: fixed;
    z-index: 35;
    top: var(--header-h);
    right: 0;
    bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
    left: 0;
    padding: 1.5rem 1.35rem 2rem;
    background: var(--ink);
    overflow: auto;
  }

  .js.nav-open #site-nav ul {
    flex-direction: column;
    gap: 0.15rem;
  }

  .js.nav-open #site-nav a {
    display: inline-block;
    font-family: var(--display);
    font-size: 2.5rem;
    line-height: 1.15;
    color: var(--paper);
    padding: 0.15rem 0;
  }

  .js.nav-open #site-nav a[aria-current="page"] {
    box-shadow: none;
    font-style: italic;
  }

  .js.nav-open .header-phones {
    text-align: left;
    margin-top: 1.5rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(246, 243, 238, 0.22);
  }

  .mobile-bar {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    position: fixed;
    z-index: 45;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: var(--bar-h);
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--ink);
    color: var(--paper);
    border-top: 1px solid rgba(246, 243, 238, 0.16);
  }

  .mobile-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    min-height: var(--bar-h);
    color: var(--paper);
    text-decoration: none;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.75rem;
  }

  .mobile-bar a + a {
    border-left: 1px solid rgba(246, 243, 238, 0.16);
  }

  .mobile-bar small {
    letter-spacing: 0.04em;
    text-transform: none;
    font-size: 0.95rem;
    color: rgba(246, 243, 238, 0.78);
  }

  body {
    padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
  }
}

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

@media print {
  .site-header,
  .mobile-bar,
  .menu-toggle,
  .hero-actions,
  .button {
    display: none;
  }

  body {
    background: white;
    color: black;
    padding: 0;
  }

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