:root {
  --color-cream: #F5F3EE;
  --color-green: #1E2A22;
  --color-graphite: #171717;
  --color-accent: #C6A46A;
  --blend-size: clamp(110px, 15vw, 240px);
  --night-width: 50%;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--color-graphite);
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--color-cream);
  background: var(--color-graphite);
}

button,
a {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) auto auto;
  align-items: center;
  gap: clamp(24px, 3vw, 46px);
  min-height: 96px;
  padding: 16px clamp(24px, 4vw, 64px);
  color: var(--color-cream);
  background: rgba(23, 23, 23, 0.06);
  border-bottom: 1px solid rgba(245, 243, 238, 0.07);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  animation: headerReveal 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  letter-spacing: 0;
}

.brand__copy {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.brand__name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 2.55vw, 46px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: 0.06em;
  color: var(--color-cream);
}

.brand__caption {
  order: -1;
  margin: 0 0 5px;
  width: max-content;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 243, 238, 0.58);
  background:
    linear-gradient(105deg, rgba(245, 243, 238, 0.52) 0%, rgba(245, 243, 238, 0.7) 36%, #ffffff 47%, rgba(214, 218, 215, 0.78) 52%, rgba(245, 243, 238, 0.52) 64%, rgba(245, 243, 238, 0.52) 100%);
  background-size: 260% 100%;
  background-position: 180% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: metalGlint 14s ease-in-out infinite;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: rgba(245, 243, 238, 0.78);
}

.main-nav a {
  position: relative;
  padding: 10px 0;
  transition: color 220ms ease;
}

.main-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  content: "";
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms ease;
}

.main-nav a:hover {
  color: var(--color-cream);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-action {
  justify-self: end;
  min-height: 52px;
  padding: 0 28px;
  color: var(--color-green);
  background: var(--color-cream);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition: color 260ms ease, background 260ms ease, transform 260ms ease;
}

.header-action:hover {
  color: var(--color-graphite);
  background: var(--color-accent);
  transform: translateY(-2px);
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero[data-mode="night"] {
  --night-width: calc(100% + var(--blend-size));
}

.hero[data-mode="day"] {
  --night-width: 0%;
}

.hero__background,
.hero__night-layer,
.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__background {
  z-index: -2;
  overflow: hidden;
  transform: scale(1);
  animation: cameraDrift 6200ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero__image {
  width: 100vw;
  height: 100%;
  object-fit: cover;
}

.hero__image--day {
  z-index: 1;
}

.hero__night-layer {
  z-index: 2;
  width: var(--night-width);
  overflow: hidden;
  transition: width 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--blend-size)), transparent 100%);
  mask-image: linear-gradient(to right, #000 calc(100% - var(--blend-size)), transparent 100%);
}

.hero__image--night {
  max-width: none;
}

.hero__shade {
  z-index: 3;
  background:
    radial-gradient(circle at center, rgba(23, 23, 23, 0.12), rgba(23, 23, 23, 0.35) 48%, rgba(23, 23, 23, 0.55) 100%),
    linear-gradient(to bottom, rgba(23, 23, 23, 0.38), rgba(23, 23, 23, 0.08) 34%, rgba(23, 23, 23, 0.45) 100%);
}

.hero__content {
  width: min(920px, calc(100% - 40px));
  padding: clamp(100px, 16vh, 132px) 0 clamp(112px, 17vh, 150px);
  text-align: center;
  animation: contentReveal 1000ms 280ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero__eyebrow {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 243, 238, 0.72);
}

.hero h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(54px, 7vw, 112px);
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero__text {
  margin: 32px auto 0;
  max-width: 760px;
  font-size: clamp(16px, 1.3vw, 21px);
  line-height: 1.62;
  color: rgba(245, 243, 238, 0.88);
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 42px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition: color 260ms ease, background 260ms ease, transform 260ms ease;
}

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

.button--primary {
  color: var(--color-green);
  background: var(--color-cream);
}

.button--primary:hover {
  color: var(--color-graphite);
  background: var(--color-accent);
}

.button--secondary {
  color: var(--color-cream);
  background: rgba(245, 243, 238, 0.13);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.button--secondary:hover {
  color: var(--color-green);
  background: var(--color-cream);
}

.mode-switch {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: clamp(28px, 5vh, 54px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px;
  color: rgba(245, 243, 238, 0.76);
  background: rgba(23, 23, 23, 0.36);
  border-radius: 999px;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transform: translateX(-50%);
}

.mode-switch__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  color: inherit;
  background: transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 220ms ease, background 220ms ease;
}

.mode-switch__mark {
  width: 9px;
  height: 9px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: background 220ms ease, box-shadow 220ms ease;
}

.mode-switch__item.is-active {
  color: var(--color-green);
  background: var(--color-cream);
}

.mode-switch__item.is-active .mode-switch__mark {
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(198, 164, 106, 0.22);
}

.modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 23, 23, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.modal__panel {
  position: relative;
  width: min(440px, 100%);
  padding: 46px 38px 38px;
  text-align: center;
  color: var(--color-green);
  background: var(--color-cream);
  border-radius: 8px;
  transform: translateY(16px) scale(0.98);
  transition: transform 260ms ease;
}

.modal.is-open .modal__panel {
  transform: translateY(0) scale(1);
}

.modal__label {
  margin: 0 0 14px;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.modal h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 7vw, 48px);
  font-weight: 600;
  line-height: 0.98;
  color: var(--color-green);
}

.modal__text {
  margin: 18px auto 0;
  max-width: 420px;
  color: rgba(30, 42, 34, 0.72);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
}

.modal__button {
  margin-top: 30px;
  background: var(--color-green);
  color: var(--color-cream);
}

.modal__button:hover {
  background: var(--color-accent);
  color: var(--color-graphite);
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  background: transparent;
  border-radius: 50%;
}

.modal__close::before,
.modal__close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1px;
  content: "";
  background: var(--color-green);
}

.modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.lead-panel {
  width: min(500px, 100%);
}

.lead-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  text-align: left;
}

.form-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field span {
  color: rgba(30, 42, 34, 0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(30, 42, 34, 0.14);
  border-radius: 6px;
  padding: 15px 16px;
  color: var(--color-green);
  background: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 220ms ease, background 220ms ease;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(198, 164, 106, 0.68);
  background: #ffffff;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--color-green);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  white-space: pre-line;
  opacity: 0;
  transition: opacity 220ms ease;
}

.form-status.visible {
  opacity: 1;
}

.form-status.error {
  color: #8b2f24;
}

.directions-panel {
  width: min(720px, 100%);
}

.directions-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 28px 0 0;
  padding: 0;
  color: rgba(30, 42, 34, 0.84);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  list-style: none;
  text-align: left;
}

.directions-list li {
  position: relative;
  padding-left: 18px;
}

.directions-list li::before {
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 5px;
  height: 5px;
  content: "";
  background: var(--color-accent);
  border-radius: 50%;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(320px, 1.18fr);
  width: min(980px, 100%);
  padding: 0;
  overflow: hidden;
  text-align: left;
}

.contact-panel__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 48px 42px 42px;
}

.contact-panel__details {
  display: grid;
  gap: 16px;
  margin-top: 26px;
  color: rgba(30, 42, 34, 0.82);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.contact-panel__details a {
  color: var(--color-green);
  font-size: 22px;
}

.contact-panel__route {
  margin-top: 34px;
  background: var(--color-green);
  color: var(--color-cream);
}

.contact-panel__route:hover {
  background: var(--color-accent);
  color: var(--color-graphite);
}

.contact-panel__map {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

@keyframes cameraDrift {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.03);
  }
}

@keyframes contentReveal {
  from {
    opacity: 0;
    transform: translateY(34px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes headerReveal {
  from {
    opacity: 0;
    transform: translateY(-28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes metalGlint {
  0%,
  74% {
    background-position: 180% 50%;
  }

  91%,
  100% {
    background-position: -180% 50%;
  }
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: minmax(270px, 1fr) auto auto;
    gap: 20px;
  }

  .main-nav a {
    padding: 10px 0;
  }

  .main-nav a::after {
    display: block;
  }
}

@media (max-width: 760px) {
  :root {
    --blend-size: 86px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 118px;
    padding: 14px 18px 16px;
    gap: 12px 18px;
  }

  .brand {
    grid-column: 1 / -1;
  }

  .brand__name {
    font-size: clamp(21px, 6.1vw, 26px);
    letter-spacing: 0.05em;
  }

  .brand__caption {
    max-width: 100%;
    margin-bottom: 4px;
    font-size: 8px;
    line-height: 1.2;
    letter-spacing: 0.1em;
  }

  .header-action {
    display: inline-flex;
    min-height: 42px;
    padding: 0 16px;
    font-size: 11px;
    white-space: normal;
    text-align: center;
  }

  .main-nav {
    display: flex;
    font-size: 12px;
  }

  .hero__content {
    width: min(100% - 32px, 520px);
    padding: 96px 0 118px;
  }

  .hero__eyebrow {
    margin-bottom: 16px;
    font-size: 10px;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 68px);
    line-height: 0.9;
  }

  .hero__text {
    margin-top: 24px;
    font-size: 15px;
    line-height: 1.58;
  }

  .hero__text br {
    display: none;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 320px);
    margin: 32px auto 0;
  }

  .button {
    min-height: 54px;
  }

  .contact-panel {
    grid-template-columns: 1fr;
    width: min(100%, 430px);
  }

  .contact-panel__content {
    padding: 42px 28px 28px;
  }

  .contact-panel__details {
    font-size: 15px;
  }

  .contact-panel__details a {
    font-size: 20px;
  }

  .contact-panel__map {
    min-height: 230px;
  }

  .directions-list {
    grid-template-columns: 1fr;
  }

  .mode-switch {
    bottom: 22px;
    width: calc(100% - 28px);
    justify-content: center;
    gap: 2px;
  }

  .mode-switch__item {
    flex: 1;
    justify-content: center;
    min-height: 40px;
    padding: 0 8px;
    font-size: 11px;
  }
}

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