:root {
  color-scheme: dark;
  --glass-deep: #0d2a25;
  --glass-forest: #143c35;
  --glass-mist: #dde9e1;
  --amber: #e8a950;
  --amber-light: #f6d48a;
  --limestone: #f7f5ef;
  --line: rgb(221 233 225 / 22%);
  --shadow: rgb(0 0 0 / 25%);
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --body: Inter, "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--glass-deep);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 92% 8%, rgb(232 169 80 / 14%), transparent 21rem),
    radial-gradient(circle at 12% 100%, rgb(221 233 225 / 7%), transparent 28rem),
    var(--glass-deep);
  color: var(--limestone);
  font-family: var(--body);
}

a {
  color: inherit;
}

.page-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 1440px);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 3.5rem) clamp(1.1rem, 5vw, 6rem) 1.25rem;
  overflow: hidden;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-note,
.district,
.site-footer {
  margin: 0;
}

.demo-note {
  color: var(--amber-light);
}

.district {
  color: var(--glass-mist);
  opacity: 0.78;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(18rem, 0.82fr);
  align-items: center;
  gap: clamp(2rem, 8vw, 9rem);
  padding-block: clamp(2.5rem, 7vh, 5.5rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.phone-label {
  margin: 0;
  color: var(--glass-mist);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 8ch;
  margin: 0.8rem 0 2rem;
  font-family: var(--display);
  font-size: clamp(2.75rem, 6.5vw, 4.875rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.065em;
}

h1 span {
  color: var(--amber-light);
  font-size: 0.77em;
  letter-spacing: -0.055em;
}

.phone-number {
  display: inline-block;
  margin-top: 0.52rem;
  color: var(--limestone);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  letter-spacing: -0.03em;
  text-decoration-color: rgb(232 169 80 / 55%);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
  margin-top: 2.25rem;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 8.7rem;
  min-height: 3.2rem;
  padding: 0.82rem 1rem 0.82rem 1.12rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  font-size: 0.83rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.action span {
  margin-left: 1.3rem;
  font-size: 1rem;
}

.action-primary {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--glass-deep);
}

.action-secondary {
  background: rgb(20 60 53 / 30%);
  color: var(--limestone);
}

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

.action-primary:hover {
  background: var(--amber-light);
  border-color: var(--amber-light);
}

.action-secondary:hover {
  border-color: rgb(246 212 138 / 62%);
  background: rgb(221 233 225 / 9%);
}

.keyhole-stage {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 0.9;
  width: 100%;
  max-width: 33rem;
  justify-self: end;
}

.glass-panel {
  position: absolute;
  inset: 5%;
  border: 1px solid rgb(221 233 225 / 17%);
  border-radius: 48% 52% 42% 58% / 44% 43% 57% 56%;
}

.glass-panel-back {
  inset: 13% 0 0 13%;
  background: linear-gradient(145deg, rgb(221 233 225 / 12%), rgb(20 60 53 / 10%));
  box-shadow: -1.2rem 1.4rem 3.5rem var(--shadow);
  transform: rotate(7deg);
}

.glass-panel-front {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgb(246 212 138 / 17%), transparent 45%),
    linear-gradient(315deg, rgb(221 233 225 / 12%), rgb(20 60 53 / 33%));
  backdrop-filter: blur(2px);
}

.keyhole {
  position: relative;
  width: clamp(8.7rem, 22vw, 13.8rem);
  height: clamp(13rem, 33vw, 20.5rem);
  filter: drop-shadow(0 0 1.8rem rgb(232 169 80 / 20%));
}

.keyhole::before,
.keyhole::after {
  position: absolute;
  display: block;
  background: var(--glass-deep);
  content: "";
}

.keyhole::before {
  z-index: 1;
  top: 0;
  left: 50%;
  width: 56%;
  aspect-ratio: 1;
  border: 1px solid rgb(246 212 138 / 47%);
  border-radius: 50%;
  box-shadow: inset 0 0 2rem rgb(0 0 0 / 28%);
  transform: translateX(-50%);
}

.keyhole::after {
  bottom: 0;
  left: 50%;
  width: 46%;
  height: 65%;
  border-inline: 1px solid rgb(246 212 138 / 47%);
  clip-path: polygon(23% 0, 77% 0, 100% 100%, 0 100%);
  transform: translateX(-50%);
}

.keyhole-stage p {
  position: absolute;
  bottom: 6%;
  margin: 0;
  color: var(--glass-mist);
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.7em;
  opacity: 0.42;
}

.site-footer {
  justify-content: flex-start;
  color: var(--glass-mist);
  opacity: 0.76;
}

.site-footer a {
  text-decoration-color: rgb(246 212 138 / 54%);
  text-underline-offset: 0.22em;
}

:focus-visible {
  outline: 3px solid var(--amber-light);
  outline-offset: 4px;
}

@media (max-width: 700px) {
  .page-shell {
    padding-inline: 1.15rem;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.42rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    padding-block: 2.5rem 1.6rem;
  }

  h1 {
    margin-bottom: 1.5rem;
  }

  .actions {
    margin-top: 1.7rem;
  }

  .action {
    flex: 1 1 8.2rem;
  }

  .keyhole-stage {
    width: min(78vw, 20rem);
    margin-inline: auto;
    justify-self: center;
  }
}

@media (max-width: 360px) {
  .actions {
    display: grid;
  }

  .action {
    width: 100%;
  }
}

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