:root {
  --white: #ffffff;
  --ink: #080b0c;
  --sky: #8baeba;
  --sky-deep: #607f88;
  --neem: #2fa99a;
  --neem-bright: #6de1cf;
  --panel-line: rgba(8, 11, 12, 0.16);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--white);
  background: var(--sky-deep);
  font-family: "Montserrat", Arial, sans-serif;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button {
  color: inherit;
}

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

.landing {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--sky);
}

.hero-video,
.scene-wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  z-index: -3;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0) scale(1.005);
}

.scene-wash {
  z-index: -2;
  background: linear-gradient(180deg, rgba(5, 11, 13, 0.12), rgba(5, 11, 13, 0.28));
}

.site-header {
  position: absolute;
  top: clamp(36px, 7.2vh, 84px);
  left: clamp(30px, 5vw, 92px);
  right: clamp(30px, 8.5vw, 158px);
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
}

.brand,
.services-menu {
  pointer-events: auto;
}

.brand {
  display: block;
  width: clamp(154px, 13.2vw, 238px);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

.services-menu {
  position: relative;
}

.menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 4;
  background: rgba(5, 12, 14, 0.22);
  opacity: 0;
  will-change: opacity;
  transition: opacity 160ms ease;
}

.menu-scrim[data-open="true"] {
  opacity: 1;
}

.services-trigger {
  min-height: 44px;
  margin-top: -6px;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 0;
  background: transparent;
  font-size: clamp(14px, 1.15vw, 20px);
  font-weight: 500;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    opacity 160ms ease,
    transform 140ms var(--ease-out);
}

.services-trigger:active,
.panel-close:active,
.services-cta:active,
.waitlist-form button:active {
  transform: scale(0.97);
}

.services-trigger:focus-visible,
.panel-close:focus-visible,
.services-cta:focus-visible,
.waitlist-form button:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

.services-panel {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  width: min(440px, calc(100vw - 40px));
  max-height: min(720px, calc(100svh - 126px));
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  box-shadow:
    0 24px 58px rgba(7, 24, 27, 0.26),
    0 2px 8px rgba(7, 24, 27, 0.08);
  contain: layout paint;
  backface-visibility: hidden;
  opacity: 0;
  transform: translateY(-10px) scale(0.97);
  transform-origin: top right;
  will-change: opacity, transform;
  transition:
    opacity 160ms ease,
    transform 190ms var(--ease-out);
}

.services-panel[data-open="true"] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.services-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 26px 0;
}

.panel-kicker {
  margin: 0 0 10px;
  color: #b7232f;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.services-panel h2 {
  margin: 0;
  max-width: 320px;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

.panel-close {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  margin: -5px -7px 0 0;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(8, 11, 12, 0.06);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  transition:
    background-color 160ms ease,
    transform 140ms var(--ease-out);
}

.panel-intro {
  margin: 13px 26px 22px;
  max-width: 340px;
  color: rgba(8, 11, 12, 0.58);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
}

.service-list {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--panel-line);
  list-style: none;
}

.service-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  min-height: 72px;
  align-items: center;
  padding: 12px 26px;
  border-bottom: 1px solid var(--panel-line);
  transition:
    color 160ms ease,
    background-color 160ms ease;
}

.service-index {
  align-self: start;
  padding-top: 3px;
  color: #b7232f;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.service-copy {
  display: grid;
  gap: 4px;
}

.service-copy strong {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.service-copy small {
  color: rgba(8, 11, 12, 0.52);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
}

.services-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 26px 24px;
  background: #f0f5f4;
}

.services-panel-footer p {
  margin: 0;
  color: rgba(8, 11, 12, 0.58);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
}

.services-cta {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: var(--white);
  background: var(--ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  transition:
    background-color 160ms ease,
    transform 140ms var(--ease-out);
}

.cta-arrow {
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
}

.ghost-title {
  position: absolute;
  top: 49.2%;
  left: 4.7vw;
  right: 4vw;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(82px, 13.1vw, 242px);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: 0;
  text-align: left;
  white-space: nowrap;
  transform: translateY(-50%);
  mix-blend-mode: screen;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.waitlist {
  position: absolute;
  right: clamp(48px, 8.6vw, 160px);
  bottom: clamp(116px, 14.5vh, 172px);
  z-index: 3;
  width: min(510px, 33vw);
}

.waitlist > p:first-of-type {
  margin: 0 0 26px;
  font-size: clamp(14px, 1.15vw, 20px);
  font-weight: 500;
  line-height: 1.52;
  letter-spacing: 0;
  text-wrap: pretty;
  text-shadow: 0 2px 16px rgba(38, 62, 68, 0.28);
}

.waitlist-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(160px, 11vw, 196px);
  gap: 10px;
  width: 100%;
  min-height: 58px;
}

.waitlist-form input {
  min-width: 0;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  font-size: 16px;
  outline: none;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.waitlist-form input::placeholder {
  color: rgba(31, 49, 54, 0.58);
}

.waitlist-form button {
  position: relative;
  display: flex;
  min-height: 58px;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  overflow: visible;
  color: var(--white);
  background: #050505;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 140ms var(--ease-out);
}

.button-label {
  transition:
    opacity 180ms ease,
    filter 180ms ease;
}

.success-check {
  width: 20px;
  height: 20px;
  margin-right: -2px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 180ms ease,
    transform 220ms var(--ease-out);
}

.success-check path {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke-dashoffset 280ms var(--ease-out) 80ms;
}

.waitlist-form button::after {
  position: absolute;
  inset: -2px;
  border: 2px solid var(--neem-bright);
  border-radius: inherit;
  content: "";
  opacity: 0;
  pointer-events: none;
}

.waitlist-form[data-state="success"] button {
  background: var(--neem);
}

.waitlist-form[data-state="success"] button::after {
  animation: success-ring 520ms var(--ease-out);
}

.waitlist-form[data-state="success"] .success-check {
  opacity: 1;
  transform: scale(1);
}

.waitlist-form[data-state="success"] .success-check path {
  stroke-dashoffset: 0;
}

.waitlist-form[data-state="error"] input {
  border-color: #ffe0e0;
  box-shadow: 0 0 0 2px rgba(109, 15, 23, 0.18);
}

.form-status {
  min-height: 18px;
  margin: 8px 2px 0;
  font-size: 11px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 180ms ease,
    transform 220ms var(--ease-out);
}

.waitlist-form[data-state="error"] + .form-status,
.waitlist-form[data-state="success"] + .form-status {
  opacity: 1;
  transform: translateY(0);
}

.location-tag {
  position: absolute;
  left: clamp(30px, 5vw, 92px);
  bottom: clamp(62px, 10.5vh, 122px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: clamp(13px, 1.06vw, 18px);
  font-weight: 500;
  line-height: 1.3;
  text-shadow: 0 2px 16px rgba(38, 62, 68, 0.28);
}

.location-tag svg {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

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

@media (hover: hover) and (pointer: fine) {
  .services-trigger:hover {
    opacity: 0.72;
  }

  .panel-close:hover {
    background: rgba(8, 11, 12, 0.08);
  }

  .service-list li:hover {
    color: #176b60;
    background: rgba(47, 169, 154, 0.08);
  }

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

  .waitlist-form input:hover {
    border-color: var(--neem-bright);
    background: rgba(255, 255, 255, 0.82);
  }

  .waitlist-form button:hover {
    background: var(--neem);
  }
}

.waitlist-form input:focus {
  border-color: var(--neem-bright);
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 0 3px rgba(109, 225, 207, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.waitlist-form input:focus-visible {
  outline: none;
}

@keyframes success-ring {
  0% {
    opacity: 0.65;
    transform: scale(0.98);
  }

  100% {
    opacity: 0;
    transform: scale(1.12);
  }
}

@media (max-width: 1060px) {
  .site-header {
    right: 48px;
  }

  .ghost-title {
    top: 43%;
    font-size: clamp(72px, 13vw, 136px);
  }

  .waitlist {
    right: 48px;
    bottom: 104px;
    width: min(480px, 48vw);
  }

  .location-tag {
    bottom: 66px;
  }
}

@media (max-width: 720px) {
  .landing {
    min-height: 100svh;
    padding-bottom: max(28px, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
  }

  .hero-video {
    position: fixed;
    object-position: center;
  }

  .scene-wash {
    position: fixed;
    background: linear-gradient(180deg, rgba(5, 11, 13, 0.14), rgba(5, 11, 13, 0.34));
  }

  .site-header {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    align-items: center;
    padding:
      max(22px, env(safe-area-inset-top))
      18px
      0;
  }

  .brand {
    width: 148px;
  }

  .services-trigger {
    min-height: 48px;
    margin-top: 0;
    font-size: 13px;
  }

  .services-panel {
    position: fixed;
    top: max(72px, calc(env(safe-area-inset-top) + 60px));
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100svh - max(88px, calc(env(safe-area-inset-top) + 76px)));
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    overflow-y: auto;
    transform-origin: top right;
  }

  .ghost-title {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: calc(100% - 36px);
    margin: 178px auto 0;
    font-size: 64px;
    line-height: 0.88;
    text-align: center;
    white-space: nowrap;
    transform: none;
  }

  .waitlist {
    position: relative;
    right: auto;
    bottom: auto;
    width: calc(100% - 36px);
    max-width: 560px;
    margin: 150px auto 0;
  }

  .waitlist > p:first-of-type {
    max-width: 520px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.55;
  }

  .waitlist-form {
    grid-template-columns: minmax(0, 1fr) minmax(142px, 41%);
    width: 100%;
  }

  .waitlist-form input,
  .waitlist-form button {
    width: 100%;
    min-height: 54px;
    font-size: 13px;
  }

  .location-tag {
    position: relative;
    left: auto;
    bottom: auto;
    width: calc(100% - 36px);
    margin: 38px auto 0;
    font-size: 12px;
  }

  .location-tag svg {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }
}

@media (max-width: 520px) {
  .ghost-title {
    margin-top: 164px;
    font-size: 54px;
  }

  .waitlist {
    margin-top: 138px;
  }
}

@media (max-width: 420px) {
  .brand {
    width: 132px;
  }

  .ghost-title {
    width: calc(100% - 28px);
    margin-top: 148px;
    font-size: 49px;
  }

  .waitlist {
    width: calc(100% - 32px);
    margin-top: 126px;
  }

  .waitlist > p:first-of-type {
    font-size: 13px;
    line-height: 1.58;
  }

  .services-panel-header {
    padding: 22px 20px 0;
  }

  .services-panel h2 {
    font-size: 23px;
  }

  .panel-intro {
    margin-inline: 20px;
  }

  .service-list li {
    padding-inline: 20px;
  }

  .services-panel-footer {
    align-items: stretch;
    flex-direction: column;
    padding: 18px 20px 20px;
  }

  .services-cta {
    width: 100%;
  }

  .waitlist-form {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .waitlist-form input,
  .waitlist-form button {
    min-height: 56px;
    border-radius: 999px;
  }

  .location-tag {
    width: calc(100% - 32px);
    gap: 10px;
    margin-top: 32px;
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .site-header {
    padding-inline: 14px;
  }

  .brand {
    width: 122px;
  }

  .ghost-title {
    margin-top: 138px;
    font-size: 44px;
  }

  .waitlist {
    width: calc(100% - 28px);
    margin-top: 112px;
  }

  .services-panel {
    right: 8px;
    left: 8px;
  }

  .services-panel-header,
  .service-list li {
    padding-inline: 16px;
  }

  .panel-intro {
    margin-inline: 16px;
  }

  .services-panel-footer {
    padding-inline: 16px;
  }
}

@media (orientation: landscape) and (max-width: 900px) and (max-height: 520px) {
  .landing {
    min-height: 700px;
    padding-bottom: 24px;
    overflow-y: auto;
  }

  .hero-video,
  .scene-wash {
    position: fixed;
  }

  .site-header {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    align-items: center;
    padding: 14px 24px 0;
  }

  .brand {
    width: 126px;
  }

  .services-trigger {
    min-height: 44px;
    margin-top: 0;
    font-size: 13px;
  }

  .services-panel {
    position: fixed;
    top: 12px;
    right: 12px;
    bottom: 12px;
    left: auto;
    width: min(430px, calc(100% - 24px));
    max-height: none;
    overflow-y: auto;
  }

  .ghost-title {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: calc(100% - 48px);
    margin: 94px 24px 0;
    font-size: 66px;
    line-height: 0.9;
    text-align: left;
    white-space: nowrap;
    transform: none;
  }

  .waitlist {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(520px, calc(100% - 48px));
    margin: 82px 24px 0 auto;
  }

  .waitlist > p:first-of-type {
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.5;
  }

  .waitlist-form input,
  .waitlist-form button {
    min-height: 52px;
    font-size: 13px;
  }

  .location-tag {
    position: relative;
    left: auto;
    bottom: auto;
    width: calc(100% - 48px);
    margin: 30px 24px 0;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    transform: none;
  }

  .services-panel,
  .menu-scrim,
  .services-trigger,
  .panel-close,
  .services-cta,
  .waitlist-form input,
  .waitlist-form button,
  .success-check,
  .success-check path,
  .form-status {
    transition-duration: 0ms;
  }

  .waitlist-form[data-state="success"] button::after {
    animation: none;
  }
}
