:root {
  color-scheme: light;
  --paper: #f4f2ec;
  --paper-deep: #e8e8df;
  --ink: #1d302e;
  --ink-soft: #556562;
  --green: #23433f;
  --green-light: #456b65;
  --line: rgba(29, 48, 46, 0.18);
  --serif: "Iowan Old Style", "Baskerville", "Palatino Linotype", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
}

button,
a {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #bb7854;
  outline-offset: 4px;
}

img {
  display: block;
  width: 100%;
}

figure {
  margin: 0;
}

.skip-link {
  position: absolute;
  z-index: 20;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.7rem 1rem;
  transform: translateY(-150%);
  background: var(--ink);
  color: white;
}

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

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  min-height: 5.4rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.9rem clamp(1.2rem, 5vw, 5.1rem);
  background: rgba(250, 249, 245, 0.96);
  border-bottom: 1px solid rgba(29, 48, 46, 0.08);
}

.wordmark {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  max-width: 22rem;
}

.wordmark__name {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.05vw, 1.8rem);
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.wordmark__descriptor {
  font-size: 0.57rem;
  font-weight: 600;
  letter-spacing: 0.36em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 3vw, 2.8rem);
}

.site-nav a {
  position: relative;
  padding: 0.45rem 0;
  color: #303936;
  font-size: 0.76rem;
  transition: color 160ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0.12rem;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover {
  color: var(--green-light);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
}

.hero {
  display: grid;
  min-height: min(44rem, 79vw);
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.92fr);
  align-items: stretch;
  overflow: hidden;
  background: #e7e8e2;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(2.4rem, 7vw, 6.8rem) clamp(1.5rem, 6vw, 5.8rem);
  text-align: center;
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

.hero h1 {
  max-width: 13ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 6.35vw, 6.4rem);
  font-weight: 400;
  letter-spacing: -0.067em;
  line-height: 0.94;
}

.hero__specialty {
  margin: 1.15rem 0 1.6rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.hero__address {
  margin-bottom: 1.65rem;
  color: #3d4a47;
  font-size: 0.85rem;
}

.button {
  display: inline-flex;
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  border: 1px solid transparent;
  border-radius: 99px;
  padding: 0.75rem 1.45rem;
  font-size: 0.74rem;
  font-weight: 600;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--dark {
  background: var(--green);
  color: #fffefa;
}

.button--dark:hover {
  background: var(--green-light);
}

.button span {
  font-size: 1rem;
}

.hero__note {
  margin: 1.35rem 0 0;
  color: #66716e;
  font-size: 0.65rem;
  letter-spacing: 0.07em;
}

.hero__image {
  position: relative;
  min-height: 34rem;
  overflow: hidden;
  background: #d9dcd6;
}

.hero__image img {
  height: 100%;
  min-height: 34rem;
  object-fit: cover;
  object-position: center;
}

.hero__image figcaption,
.address-panel__photo figcaption,
.image-grid figcaption {
  position: absolute;
  right: 0.7rem;
  bottom: 0.65rem;
  z-index: 1;
  padding: 0.32rem 0.5rem;
  background: rgba(25, 39, 37, 0.62);
  color: #fff;
  font-size: 0.55rem;
  letter-spacing: 0.04em;
}

.address-panel {
  display: grid;
  min-height: 25rem;
  grid-template-columns: 1fr 1.45fr 1fr;
  gap: 0.55rem;
  padding: 0.55rem;
  background: var(--paper);
}

.address-panel__photo {
  position: relative;
  min-height: 25rem;
  overflow: hidden;
}

.address-panel__photo img {
  height: 100%;
  min-height: 25rem;
  object-fit: cover;
}

.address-panel__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  background: #e3e8df;
  text-align: center;
}

.address-panel__copy .eyebrow {
  margin-bottom: 1.05rem;
}

.address-panel__copy h2,
.detail-block h2,
.contact-panel h2,
.concept-dialog h2 {
  margin-bottom: 1rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.3rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1;
}

.address-panel__line {
  margin: 0.14rem 0;
  color: #3d4a47;
  font-size: 0.83rem;
}

.rule {
  width: 2.8rem;
  height: 1px;
  margin: 1.35rem auto 1.2rem;
  background: var(--green-light);
}

.text-link {
  display: inline-flex;
  gap: 0.8rem;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
}

.text-link span {
  font-size: 1rem;
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translateY(3px);
}

.details {
  display: block;
  padding: 0 0.55rem 0.55rem;
}

.detail-block {
  display: grid;
  min-height: 11rem;
  place-items: center;
  padding: clamp(2rem, 5vw, 4.3rem);
  background: #e7e8e2;
  text-align: center;
}

.detail-block h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
}

.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.55rem;
  padding: 0 0.55rem 0.55rem;
}

.image-grid figure {
  position: relative;
  min-height: 15rem;
  overflow: hidden;
  background: #dfdfd6;
}

.image-grid img {
  height: 100%;
  min-height: 15rem;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(0.2, 0.65, 0.25, 1);
}

.image-grid figure:hover img {
  transform: scale(1.035);
}

.contact-panel {
  position: relative;
  display: flex;
  min-height: 18rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 2rem;
  background: var(--green);
  color: #f7f5ef;
  text-align: center;
}

.contact-panel .eyebrow {
  color: #c8d3cb;
}

.contact-panel h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
}

.contact-panel > p:not(.eyebrow) {
  margin: 0.18rem 0;
  color: #e2e6df;
  font-size: 0.77rem;
}

.contact-panel__scope {
  margin-top: 0.55rem !important;
  font-size: 0.61rem !important;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.demo-labels {
  position: absolute;
  right: clamp(1rem, 4vw, 3.8rem);
  bottom: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: #d7ded8;
  font-size: 0.58rem;
  text-align: right;
}

.concept-dialog {
  width: min(28rem, calc(100% - 2rem));
  max-width: none;
  border: 1px solid rgba(29, 48, 46, 0.14);
  border-radius: 2px;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 22px 80px rgba(14, 29, 27, 0.24);
}

.concept-dialog::backdrop {
  background: rgba(17, 31, 29, 0.56);
  backdrop-filter: blur(3px);
}

.concept-dialog__inner {
  position: relative;
  padding: 3.1rem clamp(1.6rem, 5vw, 3rem);
}

.concept-dialog h2 {
  margin-bottom: 0.9rem;
  font-size: 2.7rem;
}

.concept-dialog__inner > p:not(.eyebrow) {
  margin-bottom: 1.6rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.7;
}

.dialog-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.8rem;
}

.dialog-close:hover {
  color: var(--green-light);
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 4.4rem;
  }

  .site-header {
    min-height: 4.35rem;
    padding-inline: 1rem;
  }

  .wordmark {
    align-items: start;
  }

  .wordmark__name {
    font-size: clamp(1rem, 5.4vw, 1.45rem);
  }

  .wordmark__descriptor {
    padding-left: 0.1rem;
    font-size: 0.49rem;
  }

  .menu-toggle {
    display: flex;
    width: 2.8rem;
    height: 2.8rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
  }

  .menu-toggle span {
    width: 1rem;
    height: 1px;
    background: var(--ink);
    transition:
      transform 180ms ease,
      width 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(0.2rem) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-0.2rem) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 1.2rem;
    overflow: hidden;
    background: #faf9f5;
    border-bottom: 1px solid transparent;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.4rem);
    transition:
      opacity 160ms ease,
      transform 160ms ease,
      padding 160ms ease;
  }

  .site-nav.is-open {
    padding-block: 0.65rem 1rem;
    border-bottom-color: var(--line);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(29, 48, 46, 0.08);
    font-size: 0.9rem;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero__copy {
    min-height: 23rem;
    padding: 3rem 1.5rem 2.5rem;
  }

  .hero h1 {
    max-width: 11ch;
    font-size: clamp(3rem, 13vw, 5rem);
  }

  .hero__image,
  .hero__image img {
    min-height: 18rem;
    max-height: 27rem;
  }

  .hero__image img {
    object-position: center 42%;
  }

  .address-panel {
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    padding: 0.4rem;
  }

  .address-panel__photo {
    min-height: 14rem;
  }

  .address-panel__photo img {
    min-height: 14rem;
  }

  .address-panel__copy {
    min-height: 17rem;
    grid-column: 1 / -1;
    grid-row: 1;
    padding: 2.6rem 1.2rem;
  }

  .address-panel__copy h2 {
    font-size: 2.35rem;
  }

  .details {
    padding: 0 0.4rem 0.4rem;
  }

  .detail-block {
    min-height: 9rem;
    padding: 2rem 1.4rem;
  }

  .image-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    padding: 0 0.4rem 0.4rem;
  }

  .image-grid figure {
    min-height: 11rem;
  }

  .image-grid figure:last-child {
    grid-column: 1 / -1;
  }

  .image-grid img {
    min-height: 11rem;
  }

  .contact-panel {
    min-height: 19rem;
    padding: 3rem 1.4rem 4.8rem;
  }

  .demo-labels {
    right: 1rem;
    bottom: 0.85rem;
    left: 1rem;
    text-align: center;
  }
}

@media (max-width: 390px) {
  .hero__address {
    font-size: 0.76rem;
  }

  .address-panel__photo,
  .address-panel__photo img {
    min-height: 11rem;
  }

  .image-grid figure,
  .image-grid img {
    min-height: 9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
