[hidden] {
  display: none !important;
}

:root {
  color-scheme: dark;
  --ink: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.72);
  --line: rgba(244, 241, 234, 0.28);
  --black: #000;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--black);
  color: var(--ink);
  font-family: Inter, Helvetica, Arial, sans-serif;
}

.hero {
  position: relative;
  height: 100dvh;
  overflow: hidden;
  display: grid;
  align-items: end;
}

.hero:has(.enquire:not([hidden])) {
  overflow: auto;
}

.stage[hidden],
.enquire[hidden],
.sent[hidden] {
  display: none;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  user-select: none;
  pointer-events: none;
}

.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.95) 0%,
      rgba(0, 0, 0, 0.91) 26%,
      rgba(0, 0, 0, 0.59) 46%,
      rgba(0, 0, 0, 0.11) 68%,
      transparent 100%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.36) 0%, transparent 20%, transparent 72%, rgba(0, 0, 0, 0.72) 100%);
}

.grain {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 100%;
  width: min(920px, 100%);
  margin: 0;
  padding: clamp(4.5rem, 12vh, 8rem) clamp(1.4rem, 5vw, 5.5rem) clamp(3.2rem, 8vh, 5.5rem);
}

h1 {
  margin: 0;
  max-width: 100%;
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.86;
  font-size: min(8.5rem, calc((100vw - 5rem) / 7.4));
  text-wrap: balance;
}

h1 span {
  display: block;
}

h1 .mark {
  margin-top: 0.18em;
  font-size: 0.34em;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(244, 241, 234, 0.86);
}

.sub {
  max-width: min(34rem, 100%);
  margin: clamp(1.6rem, 3.5vh, 2.4rem) 0 0;
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  line-height: 1.45;
  font-weight: 400;
  color: var(--muted);
}

.cta {
  margin-top: clamp(1.5rem, 3vh, 2.1rem);
  appearance: none;
  border: 0;
  border-radius: 0;
  background: var(--ink);
  color: #0a0a0a;
  min-height: 52px;
  padding: 0 1.45rem;
  font: 600 0.78rem/1 Inter, Helvetica, Arial, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
}

.cta:hover {
  background: #fff;
}

.cta:focus-visible,
input:focus-visible,
textarea:focus-visible,
.text-btn:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

.trap {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.enquire {
  margin-top: clamp(1.25rem, 3vh, 1.8rem);
  display: grid;
  gap: 0.9rem;
  max-width: 32rem;
}

.enquire label {
  display: grid;
  gap: 0.4rem;
  scroll-margin: 0.85rem 0 1.25rem;
}

.enquire span {
  font-size: 0.92rem;
  line-height: 1.35;
  font-weight: 500;
  color: rgba(244, 241, 234, 0.82);
}

.enquire input,
.enquire textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border: 1px solid rgba(244, 241, 234, 0.28);
  border-radius: 0;
  padding: 0.85rem 0.9rem;
  font: 400 16px/1.4 Inter, Helvetica, Arial, sans-serif;
  touch-action: manipulation;
}

.enquire textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.enquire input::placeholder {
  color: rgba(244, 241, 234, 0.35);
}

.enquire-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.enquire .cta {
  margin-top: 0.2rem;
  min-width: 9.5rem;
}

.text-btn {
  margin-top: 0.2rem;
  background: none;
  border: 0;
  color: var(--muted);
  min-height: 52px;
  padding: 0 1rem;
  font: 500 0.78rem/1 Inter, Helvetica, Arial, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
}

.sent,
.form-error {
  margin: 0.2rem 0 0;
  color: var(--ink);
  font-size: 1rem;
}

.form-error {
  color: #f0c7c0;
}

@media (max-width: 720px) {
  .hero-image {
    object-position: 80% 30%;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0.47) 40%, rgba(0, 0, 0, 0.86) 83%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.48), transparent 71%);
  }

  .sub {
    max-width: 16.75rem;
    font-size: 0.98rem;
  }

  .copy {
    width: 100%;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  }

  .hero.is-form {
    align-items: start;
  }

  .hero.is-form .copy {
    position: fixed;
    z-index: 2;
    left: 0;
    right: 0;
    top: var(--vvtop, 0px);
    height: var(--vvh, 100dvh);
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scroll-padding-bottom: 5.5rem;
    padding: max(1.1rem, env(safe-area-inset-top)) 1.15rem max(1.15rem, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.88) 28%, #000);
  }

  .hero.is-form h1 {
    font-size: 1.7rem;
    letter-spacing: -0.045em;
    line-height: 0.95;
  }

  .hero.is-form h1 .mark {
    margin-top: 0.35rem;
    font-size: 0.42em;
    letter-spacing: 0.22em;
  }

  .hero.is-form .enquire {
    max-width: none;
  }

  .hero.is-form .enquire textarea {
    min-height: 6.25rem;
  }

  .hero.is-form .enquire-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
    margin-top: 0.35rem;
  }

  .hero.is-form .enquire .cta,
  .hero.is-form .text-btn {
    width: 100%;
    min-height: 56px;
  }
}
