:root {
  --white: #ffffff;
  --black: #080808;
  --quiet: rgba(8, 8, 8, 0.48);
  --line: rgba(8, 8, 8, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--white);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.2;
  text-rendering: optimizeLegibility;
}

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

button,
input,
textarea {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

.scene {
  position: relative;
  min-height: 100svh;
  background: var(--white);
}

.hero-scrub {
  height: 340svh;
  min-height: 340svh;
  overflow: visible;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: var(--white);
}

.hero-video,
.visual-scene video {
  width: 100%;
  height: 100svh;
  object-fit: cover;
}

.hero-video {
  background: var(--white);
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: clamp(32px, 4vw, 40px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #666;
  opacity: 0.25;
  transform: translateX(-50%);
  transition: opacity 700ms var(--ease);
  pointer-events: none;
}

.scroll-indicator.is-hidden {
  opacity: 0;
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
  overflow: visible;
  animation: chevronDrift 2.5s ease-in-out infinite;
}

.scroll-indicator path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes chevronDrift {
  0%,
  100% {
    transform: translateY(-2px);
  }

  50% {
    transform: translateY(2px);
  }
}

.text-scene {
  display: grid;
  min-height: 112svh;
  place-items: center;
  padding: 24svh clamp(22px, 8vw, 128px);
}

.statement {
  width: min(1060px, 100%);
  margin: 0;
  font-size: clamp(36px, 6vw, 102px);
  color: #171717;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 15px, 0) scale(0.985);
  transition:
    opacity 350ms var(--ease),
    transform 350ms var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.reveal.is-leaving {
  opacity: 0;
  transform: translate3d(0, -10px, 0) scale(0.985);
}

.visual-scene {
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.visual-scene video {
  opacity: 0;
  transition: opacity 900ms var(--ease);
  will-change: opacity;
}

.visual-scene video.is-ready {
  opacity: 1;
}

.artwork,
.child-moment {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.artwork img,
.child-moment img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

.colour-scrub {
  position: relative;
  height: 360svh;
  background: var(--white);
}

.colour-scrub-short {
  height: 308svh;
}

.scrub-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--white);
}

.scrub-sticky video {
  width: 100vw;
  height: 100svh;
  max-width: none;
  object-fit: cover;
}

.villa-scroll {
  position: relative;
  height: 320svh;
  background: var(--white);
}

.villa-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--white);
}

.villa-track {
  display: flex;
  gap: clamp(28px, 5vw, 72px);
  padding: 0 clamp(28px, 7vw, 96px);
  will-change: transform;
}

.villa-track img {
  width: min(38vw, 634px);
  height: 39svh;
  flex: 0 0 auto;
  border-radius: 24px;
  object-fit: cover;
  object-position: center bottom;
}

.contact-scene {
  display: grid;
  min-height: 106svh;
  grid-template-rows: 1fr auto auto auto 1fr;
  align-items: center;
  justify-items: center;
  gap: clamp(28px, 4.5vw, 54px);
  padding: clamp(72px, 10vw, 130px) clamp(22px, 8vw, 128px);
}

.contact-intro {
  width: min(780px, 100%);
  display: grid;
  gap: 20px;
  text-align: center;
}

.contact-intro h2,
.contact-intro p {
  margin: 0;
  color: #a8a8a8;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.16;
}

.contact-intro h2 {
  font-size: clamp(20px, 2.2vw, 34px);
}

.contact-intro p {
  justify-self: center;
  width: min(680px, 100%);
  font-size: clamp(15px, 1.35vw, 20px);
  line-height: 1.24;
}

.contact-body {
  position: relative;
  width: min(600px, 100%);
  min-height: 322px;
}

.contact-form {
  position: absolute;
  inset: 0;
  width: 100%;
  display: grid;
  gap: 30px;
  opacity: 1;
  transition: opacity 700ms var(--ease);
}

.contact-form label {
  display: grid;
  gap: 11px;
  color: var(--quiet);
  font-size: 13px;
  font-weight: 400;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-bottom: 1px solid var(--line);
  padding: 0 0 12px;
  color: var(--black);
  outline: none;
  resize: vertical;
}

.contact-form input {
  min-height: 38px;
}

.contact-form textarea {
  min-height: 102px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--black);
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.contact-form button:focus-visible,
.instagram-link:focus-visible {
  outline: 1px solid rgba(8, 8, 8, 0.42);
  outline-offset: 6px;
}

.form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.contact-form button {
  justify-self: end;
  width: 44px;
  height: 44px;
  color: var(--black);
  font-size: 28px;
  line-height: 1;
  opacity: 0.64;
  transition: opacity 240ms var(--ease), transform 240ms var(--ease);
}

.contact-form button:hover {
  opacity: 1;
  transform: translateX(4px);
}

.contact-form button:disabled {
  cursor: default;
  opacity: 0.32;
  transform: none;
}

.contact-status {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -38px;
  margin: 0;
  color: #a8a8a8;
  font-size: 12px;
  font-weight: 400;
  text-align: center;
  opacity: 0;
  transition: opacity 350ms var(--ease);
  pointer-events: none;
}

.contact-status.is-visible {
  opacity: 1;
}

.contact-success {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 14px;
  color: #171717;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms var(--ease);
}

.contact-success p {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.contact-success p:first-child {
  font-size: clamp(30px, 3.5vw, 50px);
}

.contact-success p:last-child {
  font-size: clamp(20px, 2vw, 30px);
}

.contact-reassurance {
  margin: clamp(40px, 5vw, 60px) 0 0;
  color: #a8a8a8;
  font-size: 12px;
  font-weight: 400;
  text-align: center;
}

.instagram-link {
  display: inline-flex;
  width: 40px;
  height: 40px;
  margin-top: clamp(60px, 6vw, 80px);
  color: #a8a8a8;
  opacity: 0.6;
  transition: opacity 240ms var(--ease);
  cursor: pointer;
}

.instagram-link:hover {
  opacity: 1;
}

.instagram-link svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-scene.is-submitted .contact-form {
  opacity: 0;
  pointer-events: none;
}

.contact-scene.is-submitted .contact-success {
  opacity: 1;
}

@media (max-width: 900px) {
  .text-scene {
    min-height: 104svh;
  }
}

@media (max-width: 560px) {
  .statement {
    font-size: clamp(32px, 10.5vw, 58px);
  }

  .hero-video,
  .visual-scene video,
  .scrub-sticky video {
    object-position: center;
  }

  .villa-track {
    gap: 24px;
    padding: 0 24px;
  }

  .villa-track img {
    width: 42vw;
    height: 38svh;
  }

  .contact-scene {
    grid-template-rows: 0.8fr auto auto auto 0.6fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .visual-scene video,
  .contact-form button,
  .scroll-indicator svg {
    transition-duration: 0.01ms;
    animation-duration: 0.01ms;
  }
}
