/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; margin: 0; }

:root {
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --ink: #ffffff;
  --ink-dim: rgba(255, 255, 255, 0.62);
  --ink-faint: rgba(255, 255, 255, 0.34);
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.22);
  --accent-1: #b67aff;
  --accent-2: #ff7a4a;
  --accent-gradient: linear-gradient(95deg, #b67aff 0%, #ff5d8f 45%, #ff7a4a 100%);
  --container: 1140px;
  --radius: 18px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Background video mosaic ---------- */
.bg-mosaic {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(182,122,255,0.10) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(255,122,74,0.10) 0%, transparent 60%),
    #050505;
}
.bg-cell {
  position: relative;
  overflow: hidden;
}
.bg-cell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%) contrast(1.05) brightness(0.85);
  transform: scale(1.02);
}
.bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.85) 55%, rgba(0,0,0,0.95) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 35%, rgba(0,0,0,0.55) 65%, rgba(0,0,0,0.92) 100%);
  pointer-events: none;
}
.bg-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Page wrapper ---------- */
.page {
  position: relative;
  z-index: 1;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 96px 0 120px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 920px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 56px;
  padding: 8px 16px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color .3s ease, background .3s ease, transform .3s ease;
}
.brand:hover {
  border-color: var(--line-strong);
  background: rgba(255,255,255,0.06);
}
.brand-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: invert(1) brightness(1.4);
}
.brand-text {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.display {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  color: var(--ink);
}
.display em {
  font-style: normal;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.lead {
  font-size: clamp(17px, 1.4vw, 21px);
  color: var(--ink-dim);
  max-width: 560px;
  margin: 0 0 44px;
  font-weight: 400;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 40px;
}
.meta li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.025);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-width: 0;
}
.meta-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
}
.meta-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

/* ---------- Buttons ---------- */
.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .3s ease, background .3s ease, border-color .3s ease, color .3s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.btn-icon-left { margin-right: -2px; }

.btn-primary {
  background: var(--accent-gradient);
  color: #0b0608;
  box-shadow: 0 14px 40px -16px rgba(255, 122, 74, 0.6), 0 6px 20px -10px rgba(182, 122, 255, 0.5);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 48px -16px rgba(255, 122, 74, 0.75), 0 8px 22px -10px rgba(182, 122, 255, 0.65);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(255,255,255,0.04);
  border-color: var(--line-strong);
  color: var(--ink);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-1px);
}

.hero-hint {
  margin: 0;
  font-size: 13px;
  color: var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.hero-hint .dot { color: rgba(255,255,255,0.18); }

/* ---------- Scroll cue ---------- */
.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 38px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  opacity: 0.7;
  transition: opacity .3s ease, border-color .3s ease;
}
.scroll-cue:hover { opacity: 1; border-color: rgba(255,255,255,0.6); }
.scroll-cue span {
  display: block;
  width: 2px;
  height: 6px;
  background: #fff;
  border-radius: 2px;
  animation: scroll-bounce 2s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ---------- Booking section ---------- */
.booking {
  position: relative;
  padding: 100px 0 80px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 12%, #000 30%, #000 100%);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}
.eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 14px;
  font-weight: 500;
}
.display-sm {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.sub {
  font-size: 16px;
  color: var(--ink-dim);
  margin: 0;
}

.calendly-wrap {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  box-shadow:
    0 30px 80px -30px rgba(255, 122, 74, 0.15),
    0 10px 40px -20px rgba(182, 122, 255, 0.15);
}
.calendly-wrap::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  padding: 1px;
  background: var(--accent-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.35;
  pointer-events: none;
}
.calendly-inline-widget {
  background: #0a0a0a;
  border-radius: 22px;
}

.alt-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
  padding: 18px 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
  font-size: 14px;
  color: var(--ink-dim);
  max-width: max-content;
  margin-left: auto;
  margin-right: auto;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: color .25s ease;
}
.phone-link svg {
  width: 16px;
  height: 16px;
  color: var(--accent-2);
}
.phone-link:hover { color: var(--accent-2); }

/* ---------- Instagram CTA ---------- */
.social {
  position: relative;
  padding: 0 0 64px;
  background: #000;
}
.social .container {
  display: flex;
  justify-content: center;
}
.ig-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .25s ease, box-shadow .3s ease, background .3s ease, border-color .3s ease;
  overflow: hidden;
  isolation: isolate;
}
.ig-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity .35s ease;
  z-index: -1;
}
.ig-btn:hover {
  transform: translateY(-2px);
  border-color: transparent;
  color: #0b0608;
  box-shadow: 0 18px 48px -16px rgba(255, 122, 74, 0.55), 0 8px 22px -10px rgba(182, 122, 255, 0.45);
}
.ig-btn:hover::before { opacity: 1; }
.ig-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.ig-handle {
  color: var(--ink-faint);
  font-weight: 500;
  transition: color .3s ease;
}
.ig-btn:hover .ig-handle { color: rgba(11, 6, 8, 0.7); }

/* ---------- Footer ---------- */
.site-footer {
  background: #000;
  border-top: 1px solid var(--line);
  padding: 56px 0 36px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 60px;
  align-items: start;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: invert(1) brightness(1.4);
}
.footer-name {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.footer-tag {
  display: block;
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 2px;
}
.footer-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-info li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
}
.footer-info a {
  font-size: 14px;
  color: var(--ink);
  transition: color .25s ease;
}
.footer-info a:hover { color: var(--accent-2); }
.footer-copy {
  grid-column: 1 / -1;
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

/* ---------- Reveal animation ----------
   Only hide content when JS is confirmed loaded (html.js set by inline bootstrap).
   If JS fails to execute (CDN issue, MIME error, etc.) content stays visible. */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}
html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-info { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero { padding: 64px 0 96px; }
  .brand { margin-bottom: 36px; }
  .display { font-size: clamp(36px, 11vw, 56px); }
  .lead { font-size: 16px; margin-bottom: 32px; }
  .meta { gap: 8px; margin-bottom: 28px; }
  .meta li { padding: 11px 14px; flex: 1 1 calc(50% - 8px); }
  .meta li:first-child { flex-basis: 100%; }
  .ctas { width: 100%; }
  .btn { flex: 1 1 100%; padding: 15px 22px; }
  .hero-hint { font-size: 12px; }
  .hero-hint .dot { display: none; }
  .booking { padding: 64px 0 56px; }
  .section-head { margin-bottom: 32px; }
  .calendly-inline-widget { height: 1040px !important; }
  .footer-info { grid-template-columns: 1fr; gap: 18px; }
  .scroll-cue { display: none; }
  .social { padding: 0 0 48px; }
  .ig-btn { padding: 14px 22px; font-size: 14px; gap: 10px; }
  .ig-handle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
  .bg-cell video { display: none; }
}

/* Mobile/tablet: single full-screen video (vertical 4K source = perfect framing on a phone) */
@media (max-width: 900px) {
  .bg-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }
  .bg-cell { display: none; }
  .bg-cell:first-child { display: block; }
  .bg-overlay {
    background:
      radial-gradient(ellipse at center, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.85) 70%, rgba(0,0,0,0.96) 100%);
  }
}
