/* ═══════════════════════════════════════════
   TOKENS
═══════════════════════════════════════════ */
:root {
  --bg:        #071019;
  --bg-deep:   #03070d;
  --ink:       #fffaeb;
  --muted:     rgba(255,250,235,.70);
  --quiet:     rgba(255,250,235,.46);
  --dim:       rgba(255,250,235,.28);
  --line:      rgba(255,250,235,.13);
  --line-soft: rgba(255,250,235,.07);
  --teal:      #35d6d0;
  --teal-dim:  rgba(53,214,208,.16);
  --red:       #d91656;
  --coral:     #ff6b5e;
  --cream:     #fffaeb;
  --gold:      #ffd686;
  --font:      "Onest", "Plus Jakarta Sans", system-ui, sans-serif;
  --ease-out:  cubic-bezier(.16,1,.3,1);
  --ease-soft: cubic-bezier(.2,.9,.2,1);
  --mx: 0; --my: 0;
}

/* ═══════════════════════════════════════════
   RESET
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body { position: fixed; inset: 0; min-height: 100dvh; }

button, a, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: transparent; }
a { text-decoration: none; -webkit-tap-highlight-color: transparent; }
img, svg { display: block; }

/* ═══════════════════════════════════════════
   LOADER
═══════════════════════════════════════════ */
.site-loader {
  position: fixed; inset: 0; z-index: 999;
  display: grid; place-items: center; align-content: center; gap: 20px;
  background:
    radial-gradient(circle at 48% 36%, rgba(53,214,208,.14), transparent 32%),
    radial-gradient(circle at 60% 68%, rgba(217,22,86,.12), transparent 30%),
    #071019;
  overflow: hidden;
  transition: opacity .7s ease, filter .7s ease, transform .7s ease;
}
.site-loader.is-leaving {
  opacity: 0; filter: blur(20px); transform: scale(1.04);
  pointer-events: none;
}

.loader-orbit {
  position: absolute;
  width: min(320px, 78vw); aspect-ratio: 1;
  border: 1px solid rgba(255,250,235,.04);
  border-radius: 50%;
  animation: loaderOrbit 10s linear infinite;
}
.loader-orbit::before, .loader-orbit::after {
  content: ""; position: absolute;
  width: 6px; height: 6px; border-radius: 50%;
  top: -3px; left: 43%;
  background: var(--teal); box-shadow: 0 0 18px var(--teal);
}
.loader-orbit::after {
  background: var(--coral); box-shadow: 0 0 18px var(--coral);
  top: auto; bottom: -3px; left: 57%;
}

/* 3-ring spinner */
.loader {
  width: 56px; aspect-ratio: 1;
  display: grid;
  border: 3px solid transparent; border-radius: 50%;
  border-right-color: var(--teal);
  animation: spin 1s linear infinite;
  filter: drop-shadow(0 0 12px rgba(53,214,208,.32));
}
.loader::before, .loader::after {
  content: ""; grid-area: 1/1;
  border: inherit; border-radius: 50%;
}
.loader::before { margin: 4px; border-right-color: var(--coral); animation: spin 1.7s linear infinite reverse; }
.loader::after  { margin: 10px; border-right-color: rgba(255,250,235,.65); animation: spin 2.9s linear infinite; }

.loader-line {
  width: min(320px, 88vw);
  color: rgba(255,250,235,.78);
  font-size: .73rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; text-align: center;
  animation: loaderPulse 2.8s ease-in-out infinite;
}

/* ═══════════════════════════════════════════
   SCENE
═══════════════════════════════════════════ */
.site-shell {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  padding: 14px;
  isolation: isolate;
  overflow: hidden;
  perspective: 1400px;
}

/* ═══════════════════════════════════════════
   BACKGROUND
═══════════════════════════════════════════ */
.bg-stage, .bg-stage > * { position: absolute; inset: 0; }
.bg-stage { z-index: -5; overflow: hidden; }

.bg-floral {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 78% 50%;
  opacity: .36;
  filter: saturate(1.1) contrast(1.06) brightness(.72);
  transform: scale(1.1) translate3d(calc(var(--mx)*-12px), calc(var(--my)*-9px), 0);
  animation: floralBreathe 18s ease-in-out infinite;
}

.bg-wash {
  background:
    radial-gradient(circle at 18% 44%, rgba(53,214,208,.11), transparent 28%),
    radial-gradient(circle at 76% 58%, rgba(217,22,86,.12), transparent 30%),
    linear-gradient(90deg, rgba(3,7,13,.98) 0%, rgba(5,12,20,.9) 44%, rgba(5,12,20,.44) 100%),
    linear-gradient(180deg, rgba(3,7,13,.56), rgba(3,7,13,.93));
}

.ambient {
  position: absolute; border-radius: 50%;
  filter: blur(64px); opacity: .26; mix-blend-mode: screen;
  animation: ambientFloat 13s ease-in-out infinite;
}
.a-teal { width: 40vw; height: 40vw; inset: 4% auto auto 6%; background: rgba(53,214,208,.3); }
.a-red  { width: 36vw; height: 36vw; inset: auto 6% 6% auto; background: rgba(217,22,86,.3); animation-delay: -6s; }

.grain {
  pointer-events: none; opacity: .15;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

/* canvas starfield */
#starfield { position: absolute; inset: 0; pointer-events: none; }

/* random premium background moments — JS spawns these quietly behind the card */
.bg-events {
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
  mix-blend-mode: screen;
}

.bg-event {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: var(--size, 220px);
  height: var(--size, 220px);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.72) rotate(var(--rot, 0deg));
  will-change: transform, opacity, filter;
  pointer-events: none;
}

.bg-event--bloom {
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,250,235,.26) 0 1px, transparent 2px),
    radial-gradient(circle at 42% 38%, rgba(53,214,208,.34), transparent 26%),
    radial-gradient(circle at 62% 58%, rgba(217,22,86,.25), transparent 34%),
    radial-gradient(circle, rgba(255,214,134,.10), transparent 58%);
  filter: blur(10px);
  animation: bgBloom var(--dur, 3600ms) var(--ease-out) forwards;
}

.bg-event--ring {
  border-radius: 50%;
  border: 1px solid rgba(53,214,208,.18);
  box-shadow:
    0 0 36px rgba(53,214,208,.08),
    inset 0 0 28px rgba(255,250,235,.035);
  background:
    radial-gradient(circle, transparent 58%, rgba(255,250,235,.055) 59%, transparent 62%),
    conic-gradient(from 120deg, transparent 0 30%, rgba(53,214,208,.22), transparent 46% 68%, rgba(217,22,86,.16), transparent 84% 100%);
  filter: blur(.2px);
  animation: bgRing var(--dur, 4200ms) var(--ease-out) forwards;
}

.bg-event--comet {
  width: var(--size, 310px);
  height: 2px;
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      transparent 0%,
      rgba(53,214,208,.05) 18%,
      rgba(255,250,235,.72) 52%,
      rgba(255,107,94,.26) 72%,
      transparent 100%);
  box-shadow: 0 0 18px rgba(53,214,208,.2);
  transform-origin: 50% 50%;
  animation: bgComet var(--dur, 1600ms) cubic-bezier(.16,1,.3,1) forwards;
}

.bg-event--signal {
  width: var(--size, 138px);
  height: calc(var(--size, 138px) * .62);
  border-left: 1px solid rgba(53,214,208,.23);
  border-top: 1px solid rgba(255,250,235,.12);
  background:
    linear-gradient(90deg, rgba(53,214,208,.08), transparent 36%),
    linear-gradient(180deg, rgba(255,250,235,.06), transparent 48%);
  filter: drop-shadow(0 0 18px rgba(53,214,208,.10));
  animation: bgSignal var(--dur, 2600ms) var(--ease-out) forwards;
}
.bg-event--signal::before,
.bg-event--signal::after {
  content: "";
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(53,214,208,.86);
  box-shadow: 0 0 16px rgba(53,214,208,.55);
}
.bg-event--signal::before { left: -3px; top: -3px; }
.bg-event--signal::after  { right: 12%; bottom: 18%; background: rgba(255,107,94,.75); box-shadow: 0 0 16px rgba(255,107,94,.45); }

/* ═══════════════════════════════════════════
   CARD  ← desktop first, fills comfortable
═══════════════════════════════════════════ */
.card {
  position: relative; z-index: 2;
  width:  min(1020px, calc(100vw - 28px));
  height: min(640px,  calc(100dvh - 28px));
  min-height: 0;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  grid-template-rows: 1fr 58px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    radial-gradient(circle at calc(50% + var(--mx)*26%) calc(50% + var(--my)*22%),
      rgba(53,214,208,.10), transparent 30%),
    rgba(7,14,23,.58);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.024) inset,
    0 32px 100px rgba(0,0,0,.52),
    0 0 120px rgba(53,214,208,.04);
  transform:
    perspective(1400px)
    rotateX(calc(var(--my)*-6deg))
    rotateY(calc(var(--mx)*6deg));
  transition: transform .3s ease, box-shadow .3s ease;
}

/* inner bevel */
.card-edge {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  border: 1px solid rgba(255,255,255,.03);
  border-radius: inherit;
}

/* scan shimmer */
.card-scan {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,250,235,.09), transparent);
  width: 14%;
  transform: translateX(-200%) skewX(-14deg);
  animation: scan 9s ease-in-out infinite;
}

/* glow accent */
.card-glow {
  position: absolute; right: 28%; bottom: 8%;
  width: 220px; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(217,22,86,.16), transparent 66%);
  filter: blur(24px); pointer-events: none;
}

/* border-pulse: teal glow on edges that breathes */
.card-pulse {
  position: absolute; inset: -1px; z-index: 0; pointer-events: none;
  border-radius: inherit;
  background: transparent;
  box-shadow: 0 0 0 1px rgba(53,214,208,.0);
  animation: cardPulse 5s ease-in-out infinite;
}

/* ═══════════════════════════════════════════
   COPY PANEL
═══════════════════════════════════════════ */
.copy-panel {
  position: relative; z-index: 3;
  grid-column: 1; grid-row: 1;
  display: flex; flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 40px 32px 28px 40px;
  min-width: 0; overflow: hidden;
}

/* chips / tags */
.chip {
  display: inline-flex; align-items: center;
  height: 24px; padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255,250,235,.04);
  color: var(--quiet);
  font-size: 8.5px; font-weight: 800;
  letter-spacing: .22em; text-transform: uppercase;
  white-space: nowrap;
}

.topline { display: flex; gap: 6px; flex-wrap: nowrap; }

/* animated availability badge */
.role-badge {
  display: inline-flex; align-items: center; gap: 7px;
  width: fit-content; height: 24px; padding: 0 9px;
  border: 1px solid rgba(53,214,208,.24);
  border-radius: 2px;
  background: rgba(53,214,208,.06);
  color: var(--teal);
  font-size: 8.5px; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase;
}
.badge-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  animation: dotPulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

/* NAME — the hero element */
.name {
  font-size: clamp(54px, 8vw, 98px);
  font-weight: 900;
  line-height: .84;
  letter-spacing: -.07em;
  overflow: hidden;
}
.name-first {
  display: inline-block;
  color: var(--cream);
  animation: nameShimmer 8s ease-in-out 2.5s infinite;
}
.name-last {
  display: inline-block;
  color: color-mix(in srgb, var(--cream) 82%, var(--teal) 18%);
}

.rule {
  width: 64px; height: 2px; flex-shrink: 0;
  background: linear-gradient(90deg, var(--teal), var(--red), transparent);
}

/* typed line */
.title-line {
  color: var(--muted);
  font-size: clamp(13px, 1.35vw, 15.5px);
  font-weight: 600;
  line-height: 1.52; letter-spacing: -.01em;
  min-height: 1.52em;
}
.typer-cursor {
  display: inline-block;
  color: var(--teal);
  font-weight: 300;
  animation: blink .85s step-end infinite;
  margin-left: 1px;
}

.quip-stack { display: grid; gap: 8px; max-width: 92%; }
.quip-main {
  color: var(--cream);
  font-size: clamp(16px, 2.1vw, 24px);
  font-weight: 800;
  line-height: 1.22; letter-spacing: -.03em;
}
.quip-sub {
  color: rgba(255,250,235,.72);
  font-size: clamp(12px, 1.15vw, 14px);
  font-weight: 600;
  line-height: 1.44;
}

.chips-row { display: flex; flex-wrap: wrap; gap: 5px; }

/* ═══════════════════════════════════════════
   VISUAL PANEL
═══════════════════════════════════════════ */
.visual-panel {
  position: relative; z-index: 2;
  grid-column: 2; grid-row: 1;
  display: grid; place-items: stretch;
  overflow: hidden;
  border-left: 1px solid var(--line-soft);
  padding: 0;
}

.floral-veil {
  position: absolute; inset: -18% -10%;
  background: url("../img/floral-bg.jpg") center/cover no-repeat;
  opacity: .3;
  filter: saturate(1.08) brightness(.82);
  transform: translate3d(calc(var(--mx)*-15px), calc(var(--my)*-11px), 0) scale(1.04);
  animation: artDrift 22s ease-in-out infinite alternate;
}
.floral-veil::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(53,214,208,.12), transparent 32%),
    radial-gradient(circle at 65% 62%, rgba(217,22,86,.18), transparent 34%),
    linear-gradient(90deg, rgba(7,14,23,.84), rgba(7,14,23,.18));
}

/* portrait + caption as a single unit */
.portrait-wrap {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  height: 100%;
  padding: 16px 16px 16px 12px;
}

.portrait-box {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  background: rgba(255,250,235,.04);
  box-shadow: 0 20px 60px rgba(0,0,0,.38), inset 0 0 0 1px rgba(255,255,255,.03);
  transform: translate3d(calc(var(--mx)*7px), calc(var(--my)*6px), 0);
  transition: transform .3s ease;
}
.portrait-box img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 54% 30%;
  filter: contrast(1.04) saturate(1.04);
  transform: scale(1.06);
  transition: transform 1.3s var(--ease-out);
}
.site-shell.is-ready .portrait-box img { transform: scale(1); }

.portrait-shine {
  position: absolute; inset: -30% auto auto -36%;
  width: 42%; height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transform: rotate(18deg) translateX(-220%);
  opacity: .42; mix-blend-mode: soft-light;
  animation: sheen 8s 2s ease-in-out infinite;
}

/* caption strip — part of the portrait unit */
.portrait-caption {
  width: 100%;
  flex-shrink: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-top: 1px solid rgba(53,214,208,.18);
  border-radius: 0 0 3px 3px;
  background: rgba(5,10,18,.82);
  backdrop-filter: blur(14px);
}
.cap-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 10px var(--teal);
  flex-shrink: 0;
  animation: dotPulse 2.8s ease-in-out .6s infinite;
}
.cap-text {
  color: rgba(255,250,235,.82);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .02em; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════
   COMMAND BAR
═══════════════════════════════════════════ */
.command-bar {
  position: relative; z-index: 6;
  grid-column: 1/-1; grid-row: 2;
  display: flex; align-items: stretch;
  height: 58px;
  border-top: 1px solid var(--line);
  background: rgba(5,10,17,.56);
  backdrop-filter: blur(18px) saturate(140%);
  overflow: hidden;
}
/* subtle sweep across bar on load */
.command-bar::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(53,214,208,.04), transparent);
  transform: translateX(-100%);
  animation: barSweep 3s 2.8s ease-out forwards;
}

.bar-sep { width: 1px; background: var(--line-soft); flex-shrink: 0; }

/* base for all bar items */
.bar-cta, .bar-icon, .bar-save {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  overflow: hidden;
  border-right: 1px solid var(--line-soft);
  transition: background .22s ease, color .22s ease;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
/* shimmer sweep on hover */
.bar-cta::before, .bar-icon::before, .bar-save::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent, rgba(255,250,235,.1), transparent);
  transform: translateX(-140%);
  transition: transform .55s var(--ease-out);
}
.bar-cta:hover::before, .bar-icon:hover::before, .bar-save:hover::before { transform: translateX(140%); }

/* send note */
.bar-cta {
  width: clamp(130px, 21vw, 200px);
  padding: 0 16px;
  color: #071019;
  background: linear-gradient(135deg, var(--red) 0%, var(--coral) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}
.bar-cta svg { width: 14px; height: 14px; fill: #071019; flex-shrink: 0; position: relative; z-index: 2; }
.bar-cta span { font-size: 8.5px; font-weight: 900; letter-spacing: .34em; text-transform: uppercase; position: relative; z-index: 2; }

/* icons */
.bar-icon { width: 62px; }
.bar-icon svg { width: 22px; height: 22px; fill: var(--muted); transition: fill .2s ease, transform .22s var(--ease-out); position: relative; z-index: 2; }
.bar-icon:hover { background: rgba(53,214,208,.06); }
.bar-icon:hover svg { fill: var(--teal); transform: translateY(-2px); }

/* teal variant for Book a call */
.bar-cta--teal {
  color: #071019;
  background: linear-gradient(135deg, var(--teal) 0%, color-mix(in srgb, var(--teal) 72%, var(--cream) 28%) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.bar-cta--teal svg { fill: #071019; }
.pulse-wa::after {
  content: ""; position: absolute; inset: 12px;
  border: 1px solid rgba(53,214,208,.45); border-radius: 50%;
  opacity: 0; animation: waPulse 4.2s ease-in-out infinite;
}

/* save */
.bar-save {
  margin-left: auto;
  width: clamp(88px, 12vw, 126px);
  border-right: 0; border-left: 1px solid var(--line-soft);
  color: var(--teal); background: rgba(53,214,208,.04); padding: 0 14px;
}
.bar-save svg { width: 14px; height: 14px; fill: var(--teal); flex-shrink: 0; position: relative; z-index: 2; }
.bar-save span { font-size: 8.5px; font-weight: 900; letter-spacing: .3em; text-transform: uppercase; position: relative; z-index: 2; }
.bar-save:hover { background: rgba(53,214,208,.1); }

/* ═══════════════════════════════════════════
   FLOATING AVAILABILITY BADGE
═══════════════════════════════════════════ */
.avail-badge {
  position: absolute;
  bottom: calc(58px + 28px);
  right: max(28px, calc((100vw - 1020px) / 2 + 8px));
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px;
  border: 1px solid rgba(53,214,208,.22);
  border-radius: 2px;
  background: rgba(5,10,18,.72);
  backdrop-filter: blur(18px);
  color: rgba(255,250,235,.68);
  font-size: 8px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  animation: badgeFloat 5s ease-in-out infinite;
  z-index: 10;
}
.avail-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #3ddc84; box-shadow: 0 0 10px #3ddc84;
  animation: dotPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   REVEALS
═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(7px);
}
.reveal.is-visible {
  opacity: 1; transform: none; filter: none;
  transition: opacity .72s var(--ease-out), transform .72s var(--ease-out), filter .72s var(--ease-out);
}

/* ═══════════════════════════════════════════
   MODALS
═══════════════════════════════════════════ */
.form-modal, .qr-modal {
  position: fixed; inset: 0; z-index: 100;
  pointer-events: none; opacity: 0;
  transition: opacity .34s ease;
}
.form-modal[aria-hidden="false"], .qr-modal[aria-hidden="false"] {
  opacity: 1; pointer-events: auto;
}

.modal-bd {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 36% 44%, rgba(53,214,208,.09), transparent 28%),
    radial-gradient(circle at 68% 62%, rgba(217,22,86,.09), transparent 30%),
    rgba(3,7,13,.80);
  backdrop-filter: blur(18px);
}

.form-panel, .qr-panel {
  position: absolute;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    radial-gradient(circle at top right, rgba(53,214,208,.11), transparent 36%),
    radial-gradient(circle at bottom left, rgba(217,22,86,.13), transparent 40%),
    rgba(7,14,23,.94);
  box-shadow: 0 36px 100px rgba(0,0,0,.52);
  backdrop-filter: blur(30px) saturate(148%);
  -webkit-backdrop-filter: blur(30px) saturate(148%);
  overflow: hidden;
}

/* desktop: slide from left, obvious movement */
.form-panel {
  top: 50%;
  left: max(14px, calc((100vw - 1020px) / 2));
  width: min(410px, calc(100vw - 28px));
  padding: 32px;
  transform: translate3d(-120px, -50%, 0);
  opacity: .2;
  transition: transform .48s var(--ease-out), opacity .28s ease;
}
.form-modal[aria-hidden="false"] .form-panel {
  transform: translate3d(0, -50%, 0); opacity: 1;
}

.qr-panel {
  left: 50%; top: 50%;
  width: min(350px, calc(100vw - 28px));
  padding: 28px; text-align: center;
  transform: translate3d(-50%, -46%, 0) scale(.95);
  opacity: 0;
  transition: transform .52s var(--ease-out), opacity .38s ease;
}
.qr-modal[aria-hidden="false"] .qr-panel {
  transform: translate3d(-50%, -50%, 0) scale(1); opacity: 1;
}

.panel-x {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  border: 1px solid var(--line); border-radius: 2px;
  background: rgba(255,250,235,.04);
  display: grid; place-items: center;
  transition: background .2s ease;
}
.panel-x span {
  position: absolute; left: 8px; right: 8px; top: 50%;
  height: 1px; background: var(--muted);
}
.panel-x span:first-child { transform: rotate(45deg); }
.panel-x span:last-child  { transform: rotate(-45deg); }
.panel-x:hover { background: rgba(255,250,235,.09); }

.panel-eyebrow {
  color: var(--teal);
  font-size: 8px; font-weight: 900; letter-spacing: .28em; text-transform: uppercase;
  margin-bottom: 10px;
}
.form-panel h2, .qr-panel h2 {
  color: var(--cream);
  font-size: clamp(22px, 3.8vw, 30px);
  font-weight: 900; line-height: .96; letter-spacing: -.065em;
  max-width: 290px; margin-bottom: 10px;
}
.qr-panel h2 { margin-inline: auto; }

.panel-sub {
  color: var(--quiet); font-size: 12.5px; font-weight: 600;
  line-height: 1.48; margin-bottom: 20px;
}

#contactForm { display: grid; gap: 12px; }

.field-wrap { display: grid; gap: 5px; transform: translateX(-12px); opacity: 0; }
.form-modal[aria-hidden="false"] .field-wrap:nth-of-type(1) { animation: fieldIn .5s .16s var(--ease-out) forwards; }
.form-modal[aria-hidden="false"] .field-wrap:nth-of-type(2) { animation: fieldIn .5s .22s var(--ease-out) forwards; }
.form-modal[aria-hidden="false"] .field-wrap:nth-of-type(3) { animation: fieldIn .5s .28s var(--ease-out) forwards; }

.field-wrap > span {
  color: var(--dim); font-size: 8px; font-weight: 900;
  letter-spacing: .24em; text-transform: uppercase;
}
.field-wrap input, .field-wrap textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 2px;
  background: rgba(255,250,235,.05); color: var(--cream);
  padding: 10px 12px; font-size: 13px; font-weight: 600;
  outline: none; resize: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field-wrap input::placeholder, .field-wrap textarea::placeholder { color: rgba(255,250,235,.3); }
.field-wrap input:focus, .field-wrap textarea:focus {
  border-color: rgba(53,214,208,.72);
  background: rgba(255,250,235,.07);
  box-shadow: 0 0 0 3px rgba(53,214,208,.09);
}
.field-wrap.has-error input, .field-wrap.has-error textarea {
  border-color: rgba(255,107,94,.76);
  box-shadow: 0 0 0 3px rgba(255,107,94,.09);
}

.form-submit {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: 46px; border-radius: 2px; overflow: hidden;
  background: linear-gradient(135deg, var(--teal), color-mix(in srgb, var(--teal) 68%, var(--cream) 32%));
  color: #071019; font-size: 8.5px; font-weight: 900;
  letter-spacing: .28em; text-transform: uppercase;
  margin-top: 4px;
}
.form-submit::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.44), transparent);
  transform: translateX(-130%);
  animation: buttonSweep 3.8s ease-in-out infinite;
}
.form-submit:disabled { opacity: .72; cursor: wait; }
.btn-text, .btn-check { position: relative; z-index: 2; }
.btn-check { display: none; font-size: 16px; letter-spacing: 0; }
#contactForm.is-success .btn-text { display: none; }
#contactForm.is-success .btn-check { display: block; }

.form-msg {
  min-height: 18px; font-size: 11.5px; font-weight: 700;
  line-height: 1.38; color: var(--muted);
}
.form-msg.is-success { color: var(--teal); }
.form-msg.is-error   { color: var(--coral); }

.qr-frame {
  width: 200px; height: 200px;
  margin: 20px auto 14px; padding: 9px;
  border: 1px solid var(--line); border-radius: 2px;
  background: rgba(255,250,235,.97);
}
.qr-frame img { width: 100%; height: 100%; object-fit: contain; }

.qr-dl {
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 20px;
  border: 1px solid rgba(53,214,208,.28); border-radius: 2px;
  background: rgba(53,214,208,.06); color: var(--teal);
  font-size: 8px; font-weight: 900; letter-spacing: .28em; text-transform: uppercase;
  transition: background .2s ease, border-color .2s ease;
}
.qr-dl svg { width: 14px; height: 14px; fill: var(--teal); }
.qr-dl:hover { background: rgba(53,214,208,.13); border-color: rgba(53,214,208,.5); }

/* ═══════════════════════════════════════════
   CAL MODAL
═══════════════════════════════════════════ */
.cal-modal {
  position: fixed; inset: 0; z-index: 100;
  pointer-events: none; opacity: 0;
  transition: opacity .34s ease;
}
.cal-modal[aria-hidden="false"] {
  opacity: 1; pointer-events: auto;
}

/* centered and wide enough for Cal.com's standard 3-column month view */
.cal-panel {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -40%) translateX(80px);
  opacity: .2;
  width: min(1080px, calc(100vw - 56px));
  height: min(670px, calc(100dvh - 28px));
  max-height: calc(100dvh - 28px);
  padding: 22px 22px 0;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    radial-gradient(circle at top left, rgba(53,214,208,.09), transparent 36%),
    radial-gradient(circle at bottom right, rgba(217,22,86,.11), transparent 40%),
    rgba(7,14,23,.96);
  box-shadow: 0 36px 100px rgba(0,0,0,.54);
  backdrop-filter: blur(30px) saturate(148%);
  -webkit-backdrop-filter: blur(30px) saturate(148%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .48s var(--ease-out), opacity .28s ease;
}
.cal-modal[aria-hidden="false"] .cal-panel {
  transform: translate(-50%, -50%) translateX(0);
  opacity: 1;
}

.cal-panel h2 {
  color: var(--cream);
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 900; line-height: .96; letter-spacing: -.065em;
  margin-bottom: 12px;
  flex-shrink: 0;
}

/* Tall crop: keep the standard Cal.com 3-column card, push the footer below the crop, and hide chrome scrollbars. */
.cal-scale-wrap {
  flex: 1 1 auto;
  height: auto;
  min-height: 500px;
  overflow: hidden;
  margin: 0 -22px;
  border-top: 1px solid rgba(255,250,235,.08);
  position: relative;
}

/* Cover the Cal.com footer without shortening the booking card. */
.cal-scale-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(42px, 6vh, 52px);
  pointer-events: none;
  z-index: 6;
  background:
    linear-gradient(to bottom, rgba(7,14,23,0), rgba(7,14,23,.98) 34%, rgba(7,14,23,.98)),
    radial-gradient(circle at bottom right, rgba(217,22,86,.12), transparent 70%);
}

.cal-scale-wrap,
#cal-embed {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cal-scale-wrap::-webkit-scrollbar,
#cal-embed::-webkit-scrollbar {
  display: none;
}

#cal-embed {
  width: 100%;
  height: 100%;
  min-height: 500px;
  overflow: hidden;
}

#cal-embed iframe {
  display: block;
  width: calc(100% + 24px) !important;
  max-width: none !important;
  height: calc(100% + 128px) !important;
  min-height: 650px !important;
  margin-right: -24px !important;
  border: 0 !important;
  overflow: hidden !important;
}

/* loading state */
#cal-embed.is-loading {
  display: grid;
  place-items: center;
}
#cal-embed.is-loading::after {
  content: "";
  width: 36px; aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: 50%;
  border-right-color: var(--teal);
  animation: spin .9s linear infinite;
  filter: drop-shadow(0 0 8px rgba(53,214,208,.3));
}

/* mobile: bottom sheet, allow scroll */
@media (max-width: 640px) {
  .cal-panel {
    left: 8px; right: 8px; bottom: 8px;
    top: auto; width: auto;
    height: auto;
    max-height: 92dvh;
    padding: 20px 16px 0;
    transform: translateY(120%);
    opacity: .2;
    overflow-y: auto;
    transition: transform .48s var(--ease-out), opacity .28s ease;
  }
  .cal-modal[aria-hidden="false"] .cal-panel {
    transform: translateY(0); opacity: 1;
  }
  .cal-panel h2 { font-size: 18px; margin-bottom: 12px; }
  .cal-scale-wrap { flex: 1 1 auto; height: auto; margin: 0 -16px; min-height: 500px; }
  #cal-embed { height: 500px; min-height: 500px; }
  #cal-embed iframe { width: 100% !important; height: 500px !important; min-height: 500px !important; margin-right: 0 !important; }
}

/* ═══════════════════════════════════════════
   KEYFRAMES
═══════════════════════════════════════════ */
@keyframes spin        { to { transform: rotate(1turn); } }
@keyframes loaderOrbit { to { transform: rotate(382deg); } }
@keyframes loaderPulse {
  0%,100% { opacity: .62; transform: translateY(0); }
  50%     { opacity: 1;   transform: translateY(-2px); }
}
@keyframes floralBreathe {
  0%,100% { transform: scale(1.1) translate3d(calc(var(--mx)*-12px), calc(var(--my)*-9px), 0); }
  50%     { transform: scale(1.14) translate3d(calc(var(--mx)*-12px - 10px), calc(var(--my)*-9px + 6px), 0); }
}
@keyframes ambientFloat {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50%     { transform: translate3d(20px,-18px,0) scale(1.08); }
}
@keyframes scan {
  0%,56%,100% { transform: translateX(-200%) skewX(-14deg); opacity: 0; }
  64%         { opacity: .28; }
  78%         { transform: translateX(760%) skewX(-14deg); opacity: 0; }
}
@keyframes artDrift {
  from { transform: translate3d(calc(var(--mx)*-15px), calc(var(--my)*-11px), 0) scale(1.04); }
  to   { transform: translate3d(calc(var(--mx)*-15px - 15px), calc(var(--my)*-11px + 10px), 0) scale(1.1); }
}
@keyframes sheen {
  0%,50% { transform: rotate(18deg) translateX(-220%); }
  68%,100%{ transform: rotate(18deg) translateX(390%); }
}
@keyframes dotPulse {
  0%,100% { opacity: .6; transform: scale(.9); box-shadow: 0 0 6px currentColor; }
  50%     { opacity: 1;  transform: scale(1.1); box-shadow: 0 0 14px currentColor; }
}
@keyframes waPulse {
  0%,68%,100% { transform: scale(.75); opacity: 0; }
  76%         { opacity: .6; }
  88%         { transform: scale(1.55); opacity: 0; }
}
@keyframes blink     { 0%,100%{opacity:1} 50%{opacity:0} }
@keyframes fieldIn   { to { transform: translateX(0); opacity: 1; } }
@keyframes buttonSweep {
  0%,44%,100% { transform: translateX(-130%); }
  60%         { transform: translateX(130%); }
}
@keyframes cardPulse {
  0%,100% { box-shadow: 0 0 0 1px rgba(53,214,208,.0); }
  50%     { box-shadow: 0 0 0 1px rgba(53,214,208,.18), 0 0 32px rgba(53,214,208,.06); }
}
@keyframes badgeFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-4px); }
}
@keyframes nameShimmer {
  0%,88%,100% { text-shadow: none; }
  92% { text-shadow: 0 0 40px rgba(255,250,235,.18); }
}
@keyframes barSweep {
  from { transform: translateX(-100%); }
  to   { transform: translateX(200%); }
}

@keyframes bgBloom {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.58) rotate(var(--rot,0deg)); filter: blur(16px); }
  16%  { opacity: .58; }
  58%  { opacity: .34; filter: blur(11px); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 14px)), calc(-50% + var(--dy, -18px))) scale(1.22) rotate(calc(var(--rot,0deg) + 8deg)); filter: blur(24px); }
}
@keyframes bgRing {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.52) rotate(var(--rot,0deg)); }
  14%  { opacity: .52; }
  60%  { opacity: .25; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, -8px)), calc(-50% + var(--dy, 10px))) scale(1.7) rotate(calc(var(--rot,0deg) + 24deg)); }
}
@keyframes bgComet {
  0%   { opacity: 0; transform: translate(calc(-50% - 120px), calc(-50% + 44px)) rotate(var(--rot, -18deg)) scaleX(.42); filter: blur(2px); }
  18%  { opacity: .75; }
  64%  { opacity: .55; filter: blur(.2px); }
  100% { opacity: 0; transform: translate(calc(-50% + 170px), calc(-50% - 62px)) rotate(var(--rot, -18deg)) scaleX(1.16); filter: blur(5px); }
}
@keyframes bgSignal {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.88) rotate(var(--rot,0deg)); clip-path: inset(0 100% 100% 0); }
  18%  { opacity: .46; clip-path: inset(0 0 0 0); }
  68%  { opacity: .28; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 10px)), calc(-50% + var(--dy, -14px))) scale(1.02) rotate(calc(var(--rot,0deg) + 2deg)); clip-path: inset(0 0 0 0); }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — mid-range tablet landscape
═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .card {
    width: calc(100vw - 24px);
    grid-template-columns: 1.2fr .8fr;
  }
  .name { font-size: clamp(48px, 8.5vw, 72px); }
  .quip-main { font-size: clamp(14px, 2.2vw, 19px); }
  .avail-badge { right: 16px; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — mobile portrait
   Strategy: portrait as blurred BG layer,
   copy panel takes full width on top
═══════════════════════════════════════════ */
@media (max-width: 640px) {
  .site-shell { padding: 8px; }

  .card {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    /* single-column: copy fills, visual is abs behind */
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 52px;
    transform: none !important;
  }

  /* copy panel: full width, content left-padded */
  .copy-panel {
    grid-column: 1; grid-row: 1;
    z-index: 4;
    padding: 24px 20px 18px 24px;
    gap: 12px;
    justify-content: center;
    /* leave right breathing room for ghost portrait */
    padding-right: 46%;
  }

  /* visual panel: absolute, full height, right-anchored */
  .visual-panel {
    position: absolute;
    inset: 0 0 52px auto;
    width: 52%;
    z-index: 2;
    padding: 16px 10px 16px 0;
    border-left: 0;
    pointer-events: none;
    /* fade the portrait into the copy side */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 28%);
    mask-image: linear-gradient(to right, transparent 0%, black 28%);
  }

  .portrait-wrap {
    width: 100%;
    max-width: 180px;
    align-self: center;
    justify-self: end;
    opacity: .82;
  }

  /* caption strip: hide on mobile — too cramped */
  .portrait-caption { display: none; }

  /* availability badge repositioned */
  .avail-badge {
    bottom: calc(52px + 10px);
    right: 12px;
  }

  /* scale names down for mobile */
  .name { font-size: clamp(40px, 12.5vw, 58px); }
  .topline .chip:nth-child(2) { display: none; }
  .title-line { font-size: 12px; }
  .quip-main { font-size: clamp(14px, 4.6vw, 19px); }
  .quip-sub  { font-size: clamp(11.5px, 3vw, 13px); color: rgba(255,250,235,.72); }
  .chips-row .chip:nth-child(n+3) { display: none; }

  /* command bar */
  .command-bar { height: 52px; }
  .bar-cta { width: clamp(96px, 24vw, 130px); padding: 0 10px; }
  .bar-icon { width: 44px; }
  .bar-icon svg { width: 18px; height: 18px; }
  .bar-save { width: clamp(68px, 16vw, 90px); }

  /* form: bottom sheet on mobile */
  .form-panel {
    left: 8px; right: 8px; bottom: 8px;
    top: auto; width: auto;
    max-height: min(90dvh, 660px);
    padding: 24px 20px;
    transform: translateY(120%) scale(.98);
    opacity: 0;
    transition: transform .56s var(--ease-out), opacity .38s ease;
  }
  .form-modal[aria-hidden="false"] .form-panel {
    transform: translateY(0) scale(1); opacity: 1;
  }
  .form-panel h2 { font-size: 22px; }
}

/* ═══════════════════════════════════════════
   EXTRA SMALL / SHORT VIEWPORT
═══════════════════════════════════════════ */
@media (max-width: 390px), (max-height: 680px) {
  .copy-panel { gap: 7px; padding-right: 42%; }
  .name       { font-size: clamp(36px, 12vw, 48px); }
  .quip-stack { display: none; }
  .chips-row  { display: none; }
}

/* ═══════════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
  .typer-cursor { animation: none; opacity: 1; }
  .bg-event { display: none !important; }
}
