:root {
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);

  --font-ui: 'Nunito Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Nunito Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --font-size-xs: 11px;
  --font-size-sm: 13px;
  --font-size-md: 15px;
  --font-size-lg: 18px;

  /* palette (formerly themes/default.css) */
  --bg: #061418;
  --surf2: #0f2329;
  --border: #1a363e;
  --border2: #2d525c;
  --text: #ddf3f0;
  --muted: #a0c4c0;
  --muted2: #648682;
  --accent: #4dffb8;
  --horizon: #0a3038;
  --white: #ffffff;

  --accent-glow: rgba(77, 255, 184, 0.95);
  --accent-glow-soft: rgba(77, 255, 184, 0.85);
  --slide-nav-bg: rgba(6, 20, 24, 0.55);
  --slide-nav-bg-hover: rgba(6, 20, 24, 0.9);
}

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

:focus, :focus-visible { outline: none; }
* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: var(--font-size-sm);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Split layout ── */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
}

/* ── Left column (pitch) ── */
.split-left {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.left-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(32px, 5vw, 72px);
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  text-align: center;
  margin-top: clamp(8px, 5vh, 56px);
}
.hero {
  margin-top: auto;
  max-width: 470px;
}
.left-foot {
  margin-top: auto;
  padding-top: 40px;
  color: var(--muted2);
  font-size: var(--font-size-xs);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.left-foot a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 120ms;
}
.left-foot a:hover { color: var(--text); }

/* ── Mark + wordmark ── */
.mark {
  display: block;
  color: var(--accent);
}
.mark svg {
  display: block;
  width: clamp(150px, 17vw, 232px);
  height: auto;
}
.wordmark {
  margin-top: 0;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.15em;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--white);
}
.beta {
  margin-top: 0.2em;
  padding: 0.26em 0.5em;
  font-size: 0.2em;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: lowercase;
  color: var(--white);
  background: color-mix(in srgb, var(--white) 12%, transparent);
  border: 0.5px solid var(--white);
  border-radius: 999px;
  line-height: 1;
}
.intro {
  margin-top: 24px;
  max-width: 440px;
  font-size: var(--font-size-md);
  color: var(--muted);
  line-height: 1.65;
  max-height: 16em;
  overflow: hidden;
  transition:
    opacity 220ms ease,
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
    max-height 360ms cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Actions ── */
.actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
  max-height: 60px;
  overflow: visible;
  transition:
    opacity 220ms ease,
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
    max-height 360ms cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* When the invite form is open, collapse the description + request button away. */
.hero.invite-open .intro,
.hero.invite-open .actions {
  opacity: 0;
  max-height: 0;
  margin-top: 0;
  transform: translateX(-24px);
  pointer-events: none;
  overflow: hidden;
}
.btn {
  font-family: var(--font-ui);
  font-size: var(--font-size-md);
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity 120ms, background 120ms, border-color 120ms, box-shadow 120ms;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
}
.btn-primary {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}
.btn-primary:hover { opacity: 0.85; }
.btn-ghost {
  color: var(--text);
  background: transparent;
  box-shadow:
    0 0 0 1px var(--border2),
    0 0 18px 2px color-mix(in srgb, var(--accent-glow-soft) 18%, transparent),
    0 0 6px color-mix(in srgb, var(--accent-glow) 23%, transparent);
}
.btn-ghost:hover {
  background: var(--surf2);
  box-shadow:
    0 0 0 1px var(--muted),
    0 0 24px 3px color-mix(in srgb, var(--accent-glow-soft) 28%, transparent),
    0 0 8px color-mix(in srgb, var(--accent-glow) 30%, transparent);
}
.btn svg { width: 16px; height: 16px; }

/* ── Invite form ── */
.invite-form {
  max-width: 440px;
  margin-top: 0;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateX(-24px);
  pointer-events: none;
  transition:
    grid-template-rows 360ms cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 360ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 240ms ease;
}
.invite-form.is-open {
  grid-template-rows: 1fr;
  margin-top: 18px;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.invite-inner {
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  padding: 20px;
  background: color-mix(in srgb, var(--surf2) 70%, var(--bg));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px color-mix(in srgb, var(--bg) 60%, transparent);
}
/* Message + the button row stretch across both columns. */
.invite-field--full,
.invite-actions {
  grid-column: 1 / -1;
}
/* Honeypot — visually gone and out of layout, but present for bots to fill. */
.invite-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .invite-form { transition: opacity 160ms ease; }
}
.invite-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.invite-field label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.invite-optional {
  font-weight: 400;
  text-transform: none;
  color: var(--muted2);
}
.invite-field input,
.invite-field textarea {
  width: 100%;
  font-family: var(--font-ui);
  font-size: var(--font-size-sm);
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  transition: border-color 120ms, box-shadow 120ms;
}
.invite-field textarea {
  resize: vertical;
  min-height: 64px;
}
.invite-field input:focus,
.invite-field textarea:focus {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    0 0 14px color-mix(in srgb, var(--accent-glow-soft) 22%, transparent);
}
.invite-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
/* Quiet secondary "Back" button — no glow, so it never clips during the
   slide animation and keeps "Send request" as the prominent action. */
#invite-back {
  color: var(--muted);
  background: transparent;
  border-color: var(--border2);
  box-shadow: none;
}
#invite-back:hover {
  color: var(--text);
  background: var(--surf2);
  border-color: var(--muted);
  box-shadow: none;
}
.invite-status {
  font-size: var(--font-size-sm);
  color: var(--muted);
}
.invite-status--ok  { color: var(--accent); }
.invite-status--err { color: #ff8a8a; }

/* ── Thank-you panel (slides in the same way the form did) ── */
.invite-thanks {
  max-width: 440px;
  margin-top: 0;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateX(-24px);
  pointer-events: none;
  transition:
    grid-template-rows 360ms cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 360ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 240ms ease;
}
.invite-thanks.is-open {
  grid-template-rows: 1fr;
  margin-top: 22px;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.invite-thanks-inner {
  min-height: 0;
  overflow: hidden;
}
.invite-thanks-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}
.invite-thanks-body {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 420px;
}
.invite-thanks-body + .invite-thanks-body {
  margin-top: 12px;
}
.invite-thanks-email {
  color: var(--text);
}
@media (prefers-reduced-motion: reduce) {
  .invite-thanks { transition: opacity 160ms ease; }
}


/* ── Right column (product) — full-bleed ── */
.split-right {
  position: relative;
  padding: 0;
  background: var(--bg);
  border-left: 1px solid var(--border);
  overflow: hidden;
}
.shot-wrap {
  width: 100%;
  height: 100%;
}
.slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}
.shot-wrap { position: relative; overflow: hidden; }
.shot-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.slides {
  position: relative;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0;
  aspect-ratio: auto !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  background: var(--bg);
}
.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1200ms ease;
}
.slide.active { opacity: 1; }
.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pan-from, 50%) center;
  transform: scale(var(--zoom, 1)); /* static zoom, varied per slide; not animated */
  will-change: object-position;
  /* Runs on every slide (not just the active one) so a slide never snaps
     position while it is fading out. slideshow.js restarts it on entry —
     while the incoming slide is still ~0 opacity — so each visit is a
     fresh left → right loop starting from the slide's own --pan-from. */
  animation: pan var(--pan-dur, 10s) linear infinite;
}
@keyframes pan {
  from { object-position: var(--pan-from, 50%) center; }
  to   { object-position: var(--pan-to, 50%) center; }
}
@media (prefers-reduced-motion: reduce) {
  .slide img { animation: none; }
}
.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--slide-nav-bg);
  border: 1px solid var(--border2);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text);
  opacity: 0;
  transition: opacity 160ms, background 160ms;
  font-family: inherit;
}
.slides:hover .slide-nav,
.slides:focus-within .slide-nav { opacity: 1; }
.slide-nav:hover { background: var(--slide-nav-bg-hover); }
.slide-prev { left: 12px; }
.slide-next { right: 12px; }
.slide-nav svg { width: 16px; height: 16px; }
.slide-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.slide-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  box-shadow: 0 1px 4px rgba(0,0,0,0.6);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 160ms;
}
.slide-dot:hover { background: var(--muted); }
.slide-dot.active { background: var(--accent); }

/* ── Stack on narrow viewports ── */
@media (max-width: 880px) {
  .split {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .split-left {
    min-height: 100vh;
    min-height: 100dvh;
  }
  .split-right {
    height: 70vh;
    height: 70dvh;
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 640px) {
  .wordmark { font-size: 30px; }
}
