:root {
  --ink: #242320;
  --cream: #f5f2eb;
  --bronze: #c6b38b;
  --umber: #4b3a2f;
  --taupe: #817568;
  --mist: #d9d1c4;
  --rule-light: rgba(245, 242, 235, 0.2);
  --font-sans: "Inter", sans-serif;
  --font-display: "Cormorant Garamond", serif;
}

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

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  cursor: pointer;
}

button {
  font: inherit;
  color: inherit;
}

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

dialog:modal {
  margin: auto;
}

/* Layout */

.layout {
  display: grid;
  min-height: 100svh;
}

.panel {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 45rem;
  background: var(--ink);
  padding: 0 1.5rem;
}

.visual {
  position: relative;
  overflow: hidden;
  min-height: 52vh;
  background: var(--umber);
}

@media (min-width: 1024px) {
  .layout {
    grid-template-columns: 54% 46%;
  }

  .panel {
    min-height: 100vh;
    padding: 0 3.5rem;
  }

  .visual {
    min-height: 100vh;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .panel {
    padding: 0 2.5rem;
  }
}

@media (min-width: 1280px) {
  .panel {
    padding: 0 5rem;
  }
}

/* Masthead */

.masthead {
  display: flex;
  height: 7rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule-light);
}

.wordmark {
  width: 113px;
  height: auto;
}

.masthead-side {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.locale {
  display: none;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mist);
}

.enquire-link {
  border: 0;
  border-bottom: 1px solid var(--bronze);
  padding: 0 0 0.25rem;
  background: transparent;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--cream);
  transition: color 150ms ease;
}

.enquire-link:hover {
  color: var(--bronze);
}

@media (min-width: 640px) {
  .locale {
    display: block;
  }

  .enquire-link {
    display: none;
  }
}

@media (min-width: 768px) {
  .wordmark {
    width: 134px;
  }
}

/* Hero */

.hero {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2rem;
  height: 1px;
  content: "";
  background: currentColor;
}

.eyebrow-bronze {
  color: var(--bronze);
}

.eyebrow-umber {
  color: var(--umber);
}

.headline {
  margin-top: 2.25rem;
  max-width: 48.75rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(4.6rem, 8.2vw, 8.6rem);
  line-height: 0.82;
  letter-spacing: -0.045em;
}

.headline-accent {
  color: var(--bronze);
}

.hero-follow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--rule-light);
  padding-top: 2rem;
}

.lede {
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--mist);
}

/* CTA */

.cta {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 2rem;
  border: 0;
  background: var(--cream);
  color: var(--ink);
  padding: 1rem 1.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: background 150ms ease;
}

.cta:hover {
  background: var(--bronze);
}

.cta-arrow {
  display: flex;
  transition: transform 200ms ease;
}

.cta:hover .cta-arrow,
.submit:hover .cta-arrow {
  transform: translateX(0.25rem);
}

.icon-arrow {
  width: 1rem;
  height: 1rem;
}

/* Panel footer */

.panel-foot {
  display: flex;
  min-height: 5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--rule-light);
  padding: 1.25rem 0;
}

.foot-lede {
  font-size: 0.75rem;
  color: rgba(217, 209, 196, 0.75);
}

.foot-tag {
  display: none;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--taupe);
}

@media (min-width: 640px) {
  .foot-tag {
    display: block;
  }
}

/* Page copyright banner */

.page-foot {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(245, 242, 235, 0.08);
  background: #1d1c1a;
}

.page-foot p {
  font-size: 0.6875rem;
  color: var(--taupe);
}

@media (min-width: 768px) {
  .page-foot {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

@media (min-width: 1280px) {
  .page-foot {
    padding-left: 5rem;
    padding-right: 5rem;
  }
}

/* Visual panel */

.visual-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}

.visual-tint {
  position: absolute;
  inset: 0;
  background: rgba(75, 58, 42, 0.12);
  mix-blend-mode: multiply;
}

.visual-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(36, 35, 32, 0.1) 0%,
    transparent 50%,
    rgba(36, 35, 32, 0.45) 100%
  );
}

.visual-edge {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 5rem;
  background: linear-gradient(to right, rgba(36, 35, 32, 0.35), transparent);
}

.visual-caption-row {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  color: var(--cream);
  padding: 1.5rem;
}

.visual-caption {
  max-width: 20rem;
  border-left: 1px solid var(--bronze);
  padding-left: 1rem;
}

.visual-caption-label {
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.visual-caption-copy {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  line-height: 1.4167;
  color: rgba(245, 242, 235, 0.75);
}

.visual-tag {
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(245, 242, 235, 0.65);
}

@media (min-width: 768px) {
  .visual-caption-row {
    padding: 1.5rem 2.5rem;
  }
}

@media (min-width: 1024px) {
  .visual-edge {
    display: block;
  }

  .visual-caption-row {
    padding: 1.5rem 2rem;
  }
}

/* Enquiry dialog */

dialog.enquiry {
  width: 100dvw;
  max-width: 100dvw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  border: 0;
  padding: 2rem 1.75rem;
  background: var(--cream);
  color: var(--ink);
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 380ms ease,
    transform 480ms cubic-bezier(0.22, 0.61, 0.21, 1),
    display 480ms allow-discrete,
    overlay 480ms allow-discrete;
}

.enquiry[open] {
  opacity: 1;
  transform: none;
}

@starting-style {
  .enquiry[open] {
    opacity: 0;
    transform: translateY(1.5rem);
  }
}

.enquiry::backdrop {
  background: rgba(36, 35, 32, 0.7);
  backdrop-filter: blur(4px);
  transition:
    opacity 380ms ease,
    display 480ms allow-discrete,
    overlay 480ms allow-discrete;
}

@starting-style {
  .enquiry[open]::backdrop {
    opacity: 0;
  }
}

@media (min-width: 768px) {
  dialog.enquiry {
    width: 30rem;
    margin: 0 0 0 auto;
    padding: 2.5rem 3rem;
    transform: translateX(100%);
  }

  @starting-style {
    .enquiry[open] {
      opacity: 0;
      transform: translateX(100%);
    }
  }
}

/* Tablet-only hero row */

@media (min-width: 640px) and (max-width: 1023px) {
  .hero-follow {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.enquiry-panel {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.enquiry-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark-dark {
  filter: brightness(0);
  width: 132px;
}

.enquiry-close {
  display: flex;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(36, 35, 32, 0.3);
  background: transparent;
  color: var(--ink);
  font-size: 1.25rem;
  transition: background 150ms ease, color 150ms ease;
}

.enquiry-close:hover {
  background: var(--ink);
  color: var(--cream);
}

.enquiry-form-wrap {
  padding: 3.5rem 0 2.5rem;
}

.enquiry-thanks {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-height: 70vh;
}

.panel-headline {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.75rem, 7vw, 4.5rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
}

.panel-copy {
  margin-top: 1.75rem;
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--umber);
}

.panel-copy-thanks {
  max-width: 24rem;
}

/* Enquiry form */

.enquiry-form {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.form-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: block;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--umber);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(36, 35, 32, 0.3);
  border-radius: 0;
  background: transparent;
  padding: 0.65rem 0 0.9rem;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.5;
  outline: none;
  transition: border-color 150ms ease;
}

textarea.form-input {
  min-height: 6rem;
  resize: vertical;
}

.form-input:focus {
  border-color: var(--umber);
}

.form-input::placeholder {
  color: rgba(75, 58, 47, 0.48);
}

.form-error:empty {
  display: none;
}

.form-error-msg {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #a3402f;
}

.submit {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 1.25rem 1.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: background 150ms ease;
}

.submit:hover {
  background: var(--umber);
}

.form-note {
  font-size: 0.75rem;
  line-height: 1.6667;
  color: var(--taupe);
}

.honeypot {
  position: absolute;
  left: -5000px;
  top: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
