:root {
  color-scheme: light;
  --forest: #082d24;
  --forest-deep: #071e18;
  --forest-mid: #164b3c;
  --ivory: #f7f4e9;
  --paper: #fffcf3;
  --ink: #14332a;
  --muted: #506357;
  --gold: #efbd56;
  --gold-light: #ffd87d;
  --line: #d7d9c9;
  --sans: Arial, Helvetica, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
  --header-height: 5.25rem;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --shell: 100rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.25rem);
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: var(--forest-deep);
  background: var(--gold-light);
}

:focus-visible {
  outline: 2px solid #98610c;
  outline-offset: 5px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

[hidden] {
  display: none !important;
}

.shell {
  width: min(100% - var(--gutter) * 2, var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: .75rem;
  left: 1rem;
  padding: .6rem 1rem;
  color: var(--forest-deep);
  background: var(--gold);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  min-height: var(--header-height);
  background: var(--ivory);
  border-bottom: 1px solid rgba(8, 45, 36, .12);
  transition: box-shadow .22s ease;
}

.site-header[data-scrolled] {
  box-shadow: 0 7px 25px rgba(8, 45, 36, .09);
}

.header-inner {
  display: grid;
  min-height: var(--header-height);
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.125rem;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: .7rem;
  color: #064b35;
}

.brand-emblem {
  position: relative;
  display: block;
  width: 3rem;
  height: 3rem;
  flex: 0 0 3rem;
  overflow: hidden;
  mix-blend-mode: multiply;
}

.brand-emblem img {
  position: absolute;
  top: 1%;
  left: -12%;
  width: 255%;
  max-width: none;
  height: auto;
}

.brand-text {
  display: grid;
  gap: .17rem;
  line-height: 1;
}

.brand-text strong {
  font-size: 1.26rem;
  font-weight: 850;
  letter-spacing: .10em;
}

.brand-text small {
  color: #74631d;
  font-size: .73rem;
  font-weight: 750;
  letter-spacing: .37em;
}

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

.site-nav a {
  position: relative;
  display: inline-flex;
  min-height: 2.7rem;
  align-items: center;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 650;
  white-space: nowrap;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: .28rem;
  left: 0;
  height: 1px;
  background: #987321;
  content: '';
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .24s var(--ease);
}

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

.header-contact {
  justify-self: end;
}

.button {
  display: inline-flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.45rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, transform .22s var(--ease);
}

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

.button:active {
  transform: none;
}

.button--outline {
  min-height: 2.75rem;
  padding: .64rem 1.17rem;
  border-color: #9da997;
  color: var(--forest);
  background: transparent;
}

.button--outline:hover {
  border-color: var(--forest);
  color: var(--paper);
  background: var(--forest);
}

.button--gold {
  color: var(--forest-deep);
  background: var(--gold);
}

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

.button--quiet {
  color: var(--paper);
  border-color: rgba(247, 244, 233, .48);
  background: transparent;
}

.button--quiet:hover {
  color: var(--forest);
  background: var(--ivory);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: clamp(38.5rem, calc(91svh - var(--header-height)), 54rem);
  grid-template-rows: 1fr auto;
  isolation: isolate;
  overflow: hidden;
  color: var(--paper);
  background: radial-gradient(ellipse at 18% 0%, #143b2e, var(--forest-deep) 72%);
}

.hero-image {
  position: absolute;
  z-index: -3;
  inset: 0 0 0 auto;
  width: min(55%, 58rem);
  height: 100%;
  object-fit: cover;
  object-position: center 53%;
  mask-image: linear-gradient(90deg, transparent, #000 24%);
}

.hero::before,
.hero::after {
  position: absolute;
  pointer-events: none;
  content: '';
  inset: 0;
}

.hero::before {
  z-index: -2;
  background:
    linear-gradient(90deg, transparent 39%, rgba(4, 25, 20, .3) 53%, transparent 75%),
    linear-gradient(0deg, rgba(4, 22, 17, .9), transparent 33%);
}

.hero::after {
  z-index: -1;
  background: linear-gradient(140deg, rgba(3, 25, 19, .23), transparent 60%);
}

.hero-inner {
  display: grid;
  align-items: center;
  padding-block: clamp(3.35rem, 7vw, 6.5rem) clamp(2.6rem, 5vw, 5rem);
}

.hero-content {
  position: relative;
  width: min(56vw, 59rem);
  animation: rise-in .78s var(--ease) both;
}

.hero-kicker,
.section-kicker {
  margin: 0;
  display: flex;
  align-items: center;
  gap: .72rem;
  font-size: .875rem;
  font-weight: 750;
  letter-spacing: .12em;
  line-height: 1.55;
  text-transform: uppercase;
}

.hero-kicker {
  color: var(--gold-light);
}

.hero-kicker::before,
.section-kicker::before {
  display: inline-block;
  width: 1.85rem;
  height: 1px;
  flex: 0 0 1.85rem;
  background: currentColor;
  content: '';
}

.hero h1,
.contacts-title,
.dialog-body h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-kerning: normal;
  letter-spacing: -.05em;
  line-height: .995;
}

.hero h1 {
  margin-top: clamp(1.2rem, 2.8vw, 2rem);
  font-size: clamp(4.5rem, 7.65vw, 8rem);
  text-wrap: balance;
}

.hero h1 em {
  color: var(--gold-light);
  font-weight: 400;
}

.hero-lead {
  max-width: 32rem;
  margin: clamp(1.4rem, 3vw, 2.1rem) 0 0;
  color: #f0eee3;
  font-size: clamp(1rem, 1.45vw, 1.3rem);
  line-height: 1.58;
  text-wrap: pretty;
}

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

.hero-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: clamp(1.3rem, 3.8vw, 3.15rem);
  border-top: 1px solid rgba(247, 244, 233, .43);
}

.hero-index-link {
  position: relative;
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  gap: .65rem;
  padding: .7rem .75rem .45rem 0;
  color: #f0eee3;
  font-size: .9rem;
  font-weight: 650;
  letter-spacing: .016em;
  line-height: 1.32;
  transition: color .22s ease;
}

.hero-index-link::before {
  position: absolute;
  top: -1px;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s var(--ease);
  content: '';
}

.hero-index-link:hover,
.hero-index-link:focus-visible {
  color: var(--gold-light);
}

.hero-index-link:hover::before,
.hero-index-link:focus-visible::before {
  transform: scaleX(1);
}

.hero-index-link + .hero-index-link {
  padding-left: clamp(.55rem, 2vw, 1.7rem);
  border-left: 1px solid rgba(247, 244, 233, .34);
}

.hero :focus-visible,
.contacts :focus-visible {
  outline-color: var(--gold-light);
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-kicker {
  color: #73560f;
}

.detail-link {
  appearance: none;
  display: inline-flex;
  min-height: 2.82rem;
  align-items: center;
  gap: .55rem;
  margin-top: 1.45rem;
  padding: .38rem 0;
  border: 0;
  border-bottom: 1px solid #a68f4c;
  color: var(--forest);
  background: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  transition: color .25s ease, border-color .25s ease;
}

.detail-link:hover {
  color: #74590f;
  border-color: #74590f;
}

.contacts {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--ivory);
  background: #082f24;
}

.contacts::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse at 87% 2%, rgba(58, 110, 75, .36), transparent 63%),
    linear-gradient(111deg, #08251d, transparent 70%);
  content: '';
}

.contacts::after {
  position: absolute;
  z-index: -1;
  top: -56%;
  right: -15%;
  width: clamp(24rem, 64vw, 65rem);
  aspect-ratio: 1;
  border: 1px solid rgba(239, 189, 86, .28);
  border-radius: 50%;
  box-shadow:
    0 0 0 3vw rgba(239, 189, 86, .045),
    0 0 0 6vw rgba(239, 189, 86, .04),
    0 0 0 9vw rgba(239, 189, 86, .03);
  content: '';
}

.contacts-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(2.2rem, 7.5vw, 8rem);
  align-items: end;
  padding-block: clamp(4.7rem, 9vw, 9.1rem);
}

.contacts .section-kicker {
  margin-bottom: 1.35rem;
  color: var(--gold-light);
}

.contacts-title {
  max-width: 42rem;
  font-size: clamp(3.5rem, 6.25vw, 7.5rem);
  text-wrap: balance;
}

.contacts-note {
  max-width: 35rem;
  margin: 1.5rem 0 0;
  color: #e0e6d9;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  text-wrap: pretty;
}

.contact-card {
  padding: 1.35rem clamp(1.25rem, 2.45vw, 2.4rem);
  border: 1px solid rgba(230, 235, 219, .28);
  background: rgba(246, 244, 233, .065);
}

.contact-row {
  display: grid;
  min-height: 4.7rem;
  grid-template-columns: minmax(0, .65fr) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding-block: .75rem;
  border-bottom: 1px solid rgba(230, 235, 219, .22);
}

.contact-row:last-child {
  border: 0;
}

.contact-label {
  color: #e0e6d9;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .025em;
}

.contact-value {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

a.contact-value[href^='tel:']:hover {
  color: var(--gold-light);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-block: 1.1rem .25rem;
}

#copy-status {
  min-height: 1.4rem;
  margin: 0;
  color: var(--ivory);
  font-size: .875rem;
}

#copy-status:empty {
  min-height: 0;
}

.site-footer {
  color: var(--ink);
  background: var(--ivory);
}

.footer-inner {
  display: grid;
  min-height: 6rem;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding-block: 1.15rem;
}

.footer-note {
  margin: 0;
  color: var(--forest);
  font-size: .875rem;
  font-weight: 750;
  letter-spacing: .12em;
  line-height: 1.45;
  text-align: left;
}

.back-top {
  justify-self: end;
  padding: .38rem 0;
  border-bottom: 1px solid #a68f4c;
  color: var(--forest);
  font-size: .875rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color .22s ease;
}

.back-top:hover {
  color: #75590f;
}

.nav-mobile-contact {
  display: none !important;
}

.contacts-title em {
  color: var(--gold-light);
  font-weight: 400;
}

.contact-card dl {
  margin: 0;
}

.contact-actions:not(:has(> [data-copy-contact]:not([hidden]))) {
  margin: 0;
}

.contacts .detail-link {
  min-height: 3.5rem;
  margin-top: 0;
  color: var(--paper);
  border-color: #ebc66e;
}

.contacts .detail-link:hover {
  color: var(--gold-light);
}

.copy-status {
  flex: 1 0 100%;
}

.details-dialog {
  width: min(41rem, calc(100% - var(--gutter) * 2));
  max-width: none;
  max-height: min(85svh, 52rem);
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--ivory);
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, .35);
}

.details-dialog[open] {
  animation: rise-in .35s var(--ease) both;
}

.details-dialog::backdrop {
  background: rgba(3, 17, 14, .77);
  backdrop-filter: blur(5px);
}

body:has(.details-dialog[open]) {
  overflow: hidden;
}

.dialog-inner {
  position: relative;
}

.dialog-close {
  position: absolute;
  z-index: 1;
  top: .85rem;
  right: .85rem;
  display: grid;
  width: 2.85rem;
  height: 2.85rem;
  place-items: center;
  border: 1px solid #d5dacd;
  border-radius: 50%;
  color: var(--ink);
  background: var(--ivory);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 1.82rem;
  line-height: 1;
  transition: background-color .22s ease;
}

.dialog-close:hover {
  background: var(--gold-light);
}

.dialog-media {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 2px;
  margin: 0;
  background: var(--ivory);
}

.dialog-image {
  width: 100%;
  height: clamp(10rem, 38vh, 23rem);
  object-fit: cover;
  background: var(--forest);
}

.project-source {
  display: inline-block;
  margin-top: 1.15rem;
  color: var(--forest);
  font-size: .9rem;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.project-source:hover {
  color: #74590f;
}

.dialog-body {
  padding: clamp(1.25rem, 3.9vw, 2.7rem);
}

.dialog-body h2 {
  font-size: clamp(2rem, 4.1vw, 3.4rem);
  text-wrap: balance;
}

.dialog-body p {
  margin: 1rem 0 0;
  color: var(--muted);
}

.dialog-body .dialog-caption {
  margin: 0 0 .85rem;
  font-size: .875rem;
  line-height: 1.45;
}

html[data-reveal-ready] [data-reveal] {
  transition: opacity .68s var(--ease), transform .68s var(--ease);
}

html[data-reveal-ready] [data-reveal]:not([data-reveal-visible]):not(:focus-within) {
  opacity: 0;
  transform: translateY(19px);
}

@media (max-width: 900px) {
  :root {
    --header-height: 4.5rem;
  }

  .header-inner {
    grid-template-columns: 1fr auto auto;
  }

  .site-nav {
    gap: clamp(.85rem, 2vw, 1.65rem);
  }

  .header-contact {
    padding-inline: .85rem;
  }

  .hero {
    min-height: min(47rem, calc(94svh - var(--header-height)));
  }

  .hero h1 {
    font-size: clamp(3.35rem, 7.8vw, 4.5rem);
  }

  .contacts-inner {
    gap: 2.5rem;
  }

  .contacts-title {
    font-size: clamp(3.1rem, 7.5vw, 5rem);
    text-wrap: wrap;
  }
}

@media (max-width: 690px) {
  :root {
    --header-height: 4.15rem;
    --gutter: clamp(1.125rem, 5.2vw, 2rem);
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    gap: .6rem;
  }

  .brand-emblem {
    width: 2.52rem;
    height: 2.52rem;
    flex-basis: 2.52rem;
  }

  .brand-text strong {
    font-size: 1.16rem;
  }

  .header-contact {
    display: none;
  }

  .menu-toggle {
    display: flex;
    width: 2.7rem;
    height: 2.7rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .33rem;
    padding: 0;
    border: 1px solid #aeb8a9;
    color: var(--forest);
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 1.05rem;
    height: 1.5px;
    background: currentColor;
    transition: transform .24s var(--ease);
  }

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

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

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: .5rem var(--gutter) .85rem;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--ivory);
    box-shadow: 0 1.1rem 1.6rem rgba(8, 45, 36, .12);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s var(--ease), visibility .2s linear;
  }

  .site-nav[data-open='true'] {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .site-nav a {
    display: flex;
    min-height: 3rem;
    padding: .5rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .site-nav a::after {
    content: none;
  }

  .site-nav .nav-mobile-contact {
    display: flex !important;
    border: 0;
  }

  .hero {
    min-height: min(44.5rem, max(36.75rem, calc(92svh - var(--header-height))));
  }

  .hero-image {
    inset: auto 0 0;
    width: 100%;
    height: 58%;
    object-position: center 53%;
    mask-image: linear-gradient(180deg, transparent, #000 24%);
  }

  .hero::before {
    background:
      linear-gradient(0deg, rgba(4, 22, 17, .92), transparent 25%),
      linear-gradient(180deg, transparent 33%, rgba(5, 28, 21, .64) 44%, transparent 66%);
  }

  .hero-inner {
    align-items: start;
    padding-block: clamp(1.65rem, 5svh, 3rem) clamp(9rem, 25svh, 14rem);
  }

  .hero-content {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(2.85rem, 10.85vw, 5rem);
    text-wrap: wrap;
  }

  .hero-lead {
    max-width: 24rem;
    margin-top: 1rem;
  }

  .hero-actions {
    margin-top: 1rem;
  }

  .hero-nav {
    margin-bottom: 1.2rem;
  }

  .hero-index-link {
    min-height: 3.55rem;
    padding: .45rem .45rem .45rem 0;
    font-weight: 600;
  }

  .hero-index-link + .hero-index-link {
    padding-left: .55rem;
  }

  .contacts-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-block: 4rem;
  }

  .contacts::after {
    top: -25%;
    right: -40%;
  }

  .contacts-note {
    margin-top: 1rem;
  }

  .footer-inner {
    min-height: 4.7rem;
    gap: .9rem;
  }
}

@media (max-width: 380px) {
  .hero-kicker {
    letter-spacing: .095em;
  }

  .hero-index-link {
    font-size: .875rem;
  }
}

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