/* Six Squares Media — landing styles (video-bg) */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: #0a0a0c;
}
button { font: inherit; cursor: pointer; }

.page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  position: relative;
  overflow-x: hidden;
  color: var(--fg);
}

/* ── Video background ─────────────────────────────────────────── */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.bg-scrim, .bg-vignette {
  position: absolute;
  inset: 0;
}
.bg-grain {
  position: absolute;
  inset: -50%;
  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.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Everything above the bg */
.topbar, .stage, .footer { position: relative; z-index: 1; }

/* ── Top bar ──────────────────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 40px;
  font-size: 12.5px;
  letter-spacing: 0.01em;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 12px rgba(0,0,0,0.35);
}
.wm-mark {
  display: grid;
  grid-template-columns: repeat(3, 6px);
  grid-template-rows: repeat(2, 6px);
  gap: 2px;
}
.wm-sq { width: 6px; height: 6px; border-radius: 1px; display: block; }
.wm-text { font-size: 13px; }

.topnav {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.topnav .dot {
  width: 6px; height: 6px; border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(214,163,106,0.16);
}

/* ── Stage ─────────────────────────────────────────────────────── */
.stage {
  display: flex;
  padding: 40px;
  min-height: 0;
}
.page--left   .stage { align-items: center;  justify-content: flex-start; }
.page--center .stage { align-items: center;  justify-content: center; text-align: center; }
.page--lower  .stage { align-items: flex-end; justify-content: flex-start; padding-bottom: 80px; }

.hero-copy {
  width: min(66vw, 1100px);
  max-width: 100%;
  display: flex; flex-direction: column;
  gap: 24px;
  padding: 8px 0;
}
.page--center .hero-copy { align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 11px/1 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-line {
  display: inline-block;
  width: 32px; height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.headline {
  margin: 0;
  font-size: 88px;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.lede {
  margin: 0;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.6;
  max-width: 62ch;
  color: var(--muted);
  text-wrap: pretty;
  text-shadow: 0 1px 18px rgba(0,0,0,0.35);
}
.lede-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.page--light .headline, .page--light .lede { text-shadow: 0 1px 18px rgba(255,255,255,0.45); }

.cta-row {
  display: flex; align-items: center; gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.page--center .cta-row { justify-content: center; }

.cta {
  appearance: none; border: 0;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #1a1814;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 12px 36px rgba(0,0,0,0.28);
}
.cta:hover { transform: translateY(-1px); }
.cta:active { transform: translateY(0); }

.cta-secondary {
  font: 12px/1 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 13px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.page--light .cta-secondary { background: rgba(0,0,0,0.04); }
.cta-secondary:hover { color: var(--fg); border-color: var(--borderStrong, rgba(255,255,255,0.32)); }

/* ── Footer ────────────────────────────────────────────────────── */
.footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 40px;
  font: 11px/1 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-mid { opacity: 0.85; }

/* ── Drawer ────────────────────────────────────────────────────── */
.drawer-scrim {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  z-index: 100;
  backdrop-filter: blur(2px);
}
.drawer-scrim.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(460px, 100vw);
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
  z-index: 101;
  display: flex; flex-direction: column;
  box-shadow: -24px 0 60px rgba(0,0,0,0.4);
}
.drawer.is-open { transform: translateX(0); }

.drawer-hd {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 28px 32px 24px;
  gap: 16px;
}
.drawer-eyebrow {
  font: 11px/1 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.drawer-title {
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.drawer-x {
  appearance: none;
  width: 32px; height: 32px;
  border-radius: 999px;
  border: 1px solid;
  background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  transition: opacity .2s ease;
  flex-shrink: 0;
}
.drawer-x:hover { opacity: 0.7; }

.drawer-form {
  display: flex; flex-direction: column;
  gap: 18px;
  padding: 20px 32px 32px;
  overflow-y: auto;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field-lbl {
  font: 11px/1 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.field-input {
  border: 1px solid;
  border-radius: 6px;
  transition: border-color .2s ease;
}
.field-input:focus-within { border-color: var(--accent); }
.field-input input,
.field-input textarea {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 12px 14px;
  font-size: 14px;
  resize: vertical;
}
.field-input textarea { min-height: 96px; }
.field-input input::placeholder,
.field-input textarea::placeholder { color: currentColor; opacity: 0.35; }

.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid;
  border-radius: 6px;
  overflow: hidden;
}
.seg-opt {
  appearance: none;
  border: 0;
  padding: 11px 10px;
  font-size: 13px;
  letter-spacing: 0.01em;
  transition: background .2s ease, color .2s ease;
  border-right: 1px solid rgba(127,127,127,0.18);
}
.seg-opt:last-child { border-right: 0; }
.seg-opt.is-on { font-weight: 500; }

.drawer-submit {
  appearance: none; border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 16px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform .2s ease, opacity .2s ease;
  margin-top: 6px;
}
.drawer-submit:not(:disabled):hover { transform: translateY(-1px); }
.drawer-submit:disabled { cursor: not-allowed; }
.drawer-fineprint {
  font: 11px/1.5 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.04em;
  margin: 4px 2px 0;
}
.drawer-error {
  font: 12px/1.5 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.02em;
  margin: 2px 2px 0;
}

.drawer-sent {
  padding: 16px 32px 32px;
  display: flex; flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.sent-mark {
  width: 44px; height: 44px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  animation: pop 600ms cubic-bezier(.2,.7,.2,1);
}
@keyframes pop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.sent-copy {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}
.sent-sub {
  font: 12px/1.4 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.04em;
  margin: 0;
}
.sent-close {
  appearance: none;
  background: transparent;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid;
  font: 11px/1 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

@media (max-width: 720px) {
  .topbar, .footer { padding-left: 24px; padding-right: 24px; }
  .stage { padding: 24px; }
  .hero-copy { width: 100%; gap: 18px; }
  .page--lower .stage { padding-bottom: 56px; }
  .footer { flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
  .footer-mid { width: 100%; order: 3; }
  .topnav { font-size: 11px; }
  .headline { font-size: 70px; }
}