.brand img {
  width: clamp(58px, 8vw, 106px);
}

.site-shell {
  --hero-background: #080610;
  isolation: isolate;
  background: transparent;
  color: #fff;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 3;
  height: auto;
  padding-bottom: 0;
  padding-top: max(30px, env(safe-area-inset-top));
  pointer-events: none;
  transition: padding-top .36s cubic-bezier(.2, .7, .25, 1);
}

#nav-mount { width: 100%; min-width: 0; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  --header-gap: clamp(10px, 3vw, 24px);
}

.header-inner nav { pointer-events: auto; }
.header-inner .nimbus-nav {
  /* Extend the pill left while preserving the wordmark and link positions. */
  padding-inline-start: 12px;
  margin-inline-start: -12px;
}
.header-inner .brand {
  flex: none;
  position: relative;
  z-index: 1;
  margin-inline-end: calc(var(--header-gap) + 4px);
  transition: margin-inline-end .36s cubic-bezier(.2, .7, .25, 1);
}
.header-inner .brand img { transition: width .36s cubic-bezier(.2, .7, .25, 1); }

.site-header.is-compact { padding-top: max(12px, env(safe-area-inset-top)); }
.site-header.is-compact .header-inner { --header-gap: clamp(14px, 4vw, 36px); }
.site-header.is-compact .brand img { width: clamp(56px, 7vw, 94px); }

.header-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgb(10 18 40 / 50%);
  border: 1px solid rgb(255 255 255 / 30%);
}
.header-fallback .brand { margin-inline-end: 0; }
.header-fallback a {
  display: grid;
  place-items: center;
  min-height: 42px;
  font-size: 12px;
}

@media (max-width: 700px) {
  :root { --header-height: 86px; }
  .site-header {
    padding-top: max(14px, env(safe-area-inset-top));
    padding-left: max(8px, env(safe-area-inset-left));
    padding-right: max(8px, env(safe-area-inset-right));
  }
  .site-header.is-compact { padding-top: max(6px, env(safe-area-inset-top)); }
}

@media (521px <= width <= 550px) {
  .header-inner .nimbus-item { padding-inline: 12px; }
}

main [id], .booking-form :is(input, select, textarea) { scroll-margin-top: 85px; }
#top { scroll-margin-top: 0; }

.hero {
  background: transparent;
  min-height: 100svh;
  padding-top: var(--header-height);
}

.site-gradient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--hero-background);
}

#gradient-mount {
  position: absolute;
  inset: 0;
}

.hero-gradient,
.hero-gradient::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-gradient {
  overflow: hidden;
  background: var(--hero-background);
}

.hero-gradient i {
  position: absolute;
  display: block;
  width: clamp(360px, 61vw, 1080px);
  aspect-ratio: 1.1;
  background: radial-gradient(closest-side, #251dff 0 31%, #3928f5 43%, #19affb 60%, #46d4ff 66%, #d069ef 77%, #6e21c1 85%, transparent 100%);
  animation: gradient-drift 20s linear infinite;
  animation-play-state: paused;
}

.site-shell.ready .hero-gradient i { animation-play-state: running; }
.site-gradient:has(canvas) .hero-gradient { display: none; }
.hero-gradient i:first-child { left: -14%; bottom: -53%; }
.hero-gradient i:nth-child(2) {
  right: -14%;
  top: -58%;
  animation-duration: 27s;
  animation-direction: reverse;
  animation-delay: -11s;
}

.hero-gradient::after {
  content: "";
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.91' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%237f7f7f' d='M0 0h180v180H0z' filter='url(%23grain)'/%3E%3C/svg%3E");
  opacity: .61;
  mix-blend-mode: overlay;
}

@keyframes gradient-drift {
  from { transform: rotate(0deg) translate3d(8%, 0, 0) rotate(0deg); }
  to { transform: rotate(360deg) translate3d(8%, 0, 0) rotate(-360deg); }
}

.hero-inner { padding: 74px 0; }
.hero h1 {
  margin: 0 0 21px;
  font-size: clamp(46px, 6.8vw, 90px);
  font-weight: 720;
  text-shadow: 0 2px 22px #08061085;
}
.hero-copy {
  color: #f3effc;
  max-width: 540px;
  text-shadow: 0 1px 3px #080610, 0 2px 14px #080610;
}

.booking-submit {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  border-radius: 8px;
  padding: 12px 21px;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
/* Cartoon Button by oldkong88 on 21st.dev, adapted for the booking link. */
.hero-cta {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  margin-top: 29px;
  padding: 0 21px;
  overflow: hidden;
  border: 2px solid #2b1645;
  border-radius: 999px;
  background: #e3c8ff;
  color: #211034;
  box-shadow: 0 3px 0 #8855cf;
  font-size: 15px;
  font-weight: 700;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.hero-cta span { position: relative; }
.hero-cta::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -80%;
  width: 44px;
  background: rgb(255 255 255 / 50%);
  transform: skewX(-12deg);
  transition: left 500ms ease-in-out;
  pointer-events: none;
}
@media (hover: hover) {
  .hero-cta:hover { transform: translateY(-4px); box-shadow: 0 4px 0 #8855cf; }
  .hero-cta:hover::before { left: 130%; }
}
.hero-cta:active { transform: translateY(1px); box-shadow: none; }
.hero-cta:focus-visible { outline-color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .hero-cta { transition: none; }
  .hero-cta:is(:hover, :active) { transform: none; }
  .hero-cta::before { display: none; }
}

.contact {
  display: grid;
  gap: clamp(36px, 7vw, 104px);
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
}
.contact h2 { margin-bottom: 16px; }
.contact > div > p:not(.section-label) { color: #e7e3ef; line-height: 1.6; }
.contact .email-link { font-size: clamp(20px, 2.7vw, 36px); margin-top: 18px; overflow-wrap: anywhere; gap: 12px; }
.intro .section-label, .approach .section-label, .contact .section-label,
.intro-copy, .approach-grid > div:nth-child(2) > p, .contact-lines,
.service-description, .site-footer { color: #e7e3ef; }
.approach { background: transparent; }
.site-footer, .email-link, .squeeze-controls button { border-color: rgb(255 255 255 / 42%); }
.squeeze-controls button { color: #fff; background: rgb(16 12 25 / 64%); }
.squeeze-controls button:hover { color: var(--ink); background: #fff; border-color: #fff; }
.site-footer a:hover, .email-link:hover, .contact-lines a:hover { color: #e9c7ff; }
.skip-link { color: var(--ink); }
.intro, .approach, .contact > div, .site-footer { text-shadow: 0 1px 12px #090614, 0 2px 4px #090614; }

.booking-form {
  display: grid;
  gap: 24px;
  align-self: start;
  padding: clamp(18px, 4vw, 54px);
  background: #0d0d0d;
  color: #f5f5f5;
  color-scheme: dark;
  border: 1px solid #303030;
  border-radius: 14px;
}
.booking-fields { display: grid; gap: 18px; min-width: 0; border: 0; margin: 0; padding: 0; }
.booking-fields[hidden] { display: none; }
.booking-form label { display: grid; gap: 8px; min-width: 0; font-size: 16px; font-weight: 650; }
.booking-form :is(input, select, textarea) {
  width: 100%;
  min-height: 46px;
  padding: 10px;
  background: #171717;
  color: #f5f5f5;
  border: 1px solid #505050;
  border-radius: 11px;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
}
.booking-form :is(input, textarea)::placeholder { color: #a1a1a1; }
.booking-form textarea { resize: vertical; }
.booking-form .booking-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 400; line-height: 1.55; cursor: pointer; }
.booking-consent input[type="checkbox"] { flex: 0 0 18px; width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: #e4d8ff; cursor: pointer; }
.booking-form :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.booking-submit { width: 100%; min-height: 44px; border-radius: 11px; background: #e6e6e6; color: #111; font-size: 16px; }
.booking-submit:hover { background: #fff; }
.booking-note { margin: 0; font-size: 13px; line-height: 1.5; color: #b9b9b9; }
.booking-note:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; }
.booking-form[data-sent] .booking-note { font-size: 16px; color: #f5f5f5; }
.booking-submit:disabled { opacity: .6; cursor: wait; }

@media (pointer: fine) {
  html { cursor: url('./assets/site-cursor.svg') 3 2, auto; }
  :is(a[href], button:not(:disabled), select, summary) {
    cursor: url('./assets/site-cursor.svg') 3 2, pointer;
  }
}

@media (max-width: 800px) { .contact { grid-template-columns: minmax(0, 1fr); } }

@media (orientation: landscape) and (max-height: 500px) {
  :root { --header-height: 74px; }
  .site-header { padding-top: max(10px, env(safe-area-inset-top)); }
  .site-header.is-compact { padding-top: max(6px, env(safe-area-inset-top)); }
  .hero { padding-top: max(var(--header-height), calc(env(safe-area-inset-top) + 64px)); }
  .hero-inner { padding-block: 16px 20px; }
  .hero h1 { font-size: clamp(32px, 10svh, 48px); margin-bottom: 14px; }
  .hero-cta { margin-top: 18px; }
}
@media (max-width: 570px) {
  main [id], .booking-form :is(input, select, textarea) { scroll-margin-top: 68px; }
  #top { scroll-margin-top: 0; }
  .hero h1 { font-size: clamp(40px, 10vw, 57px); }
  .hero-gradient i:first-child { left: -57%; bottom: -28%; }
  .hero-gradient i:nth-child(2) { right: -55%; top: -30%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-gradient i { animation: none; }
  .site-header, .header-inner .brand, .header-inner .brand img { transition: none; }
}

.service-detail-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin-top: 16px;
}
.service-detail-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: #f5eaff;
  text-decoration: underline;
  text-underline-offset: .2em;
  text-shadow: 0 1px 4px #090614, 0 2px 14px #090614;
}
