/* Shared mechanics for all sixco directions: base, cursor, waitlist dialog, founder cards.
   Each direction sets the variables below and styles everything else itself. */
:root {
  --bg: #07050f; --fg: #ece9fa; --muted: #a8a3c6; --line: rgba(166, 146, 255, 0.2); --line-strong: rgba(166, 146, 255, 0.38);
  --panel: #0e0a1d; --a1: #00ccff; --a1-ink: #04121a; --a2: #6633f5; --royal: #4b22c6; --deep: #2e0f8a;
  --ov: 7, 5, 15; /* founder overlay colour as r,g,b */
  --r: 4px;
  --display: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
html.modal-open { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 90; background: var(--bg); }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 300; line-height: 1.08; text-wrap: balance; margin: 0; }
:focus-visible { outline: 2px solid var(--a1); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.fill { color: var(--a1); border-bottom: 1px dashed currentColor; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
@keyframes rise { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* founder cards: structure and hover reveal */

/* waitlist dialog */
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 16px; background: rgba(4, 2, 12, 0.72); backdrop-filter: blur(8px); }
.modal.open { display: grid; animation: fade 0.25s ease both; }
.modal-panel { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--panel); color: var(--fg); border: 1px solid var(--line-strong); border-radius: var(--r); padding: clamp(24px, 4vw, 36px); animation: rise 0.45s var(--ease) both; }
.modal-panel h2 { font-size: 1.9rem; }
.modal-panel p { color: var(--muted); margin: 10px 0 22px; font-size: 16px; }
.modal-panel p.eyebrow { margin: 0 0 14px; color: var(--a1); }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; font-size: 18px; line-height: 1; }
.modal-close:hover { border-color: var(--a1); color: var(--a1); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field input { width: 100%; font: 400 16px var(--body); color: var(--fg); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 2px; padding: 13px 14px; }
.field input:focus { outline: none; border-color: var(--a1); box-shadow: 0 0 0 3px rgba(0, 204, 255, 0.18); }
.wl-status { min-height: 1.4em; margin: 4px 0 16px; font-size: 15px; color: var(--muted); }
.wl-status.ok { color: var(--a1); }
.wl-status.err { color: #ff7d98; }

/* custom cursor */
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 9999; opacity: 0; transition: opacity 0.2s; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--cur, var(--a1)); }
.cursor-ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid var(--cur, var(--a1)); border-radius: 50%; display: grid; place-items: center; transition: opacity 0.2s, width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease), background 0.3s, border-color 0.3s; }
.cursor-ring span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity 0.2s; }
.cursor-dot.on, .cursor-ring.on { opacity: 1; }
.cursor-ring.is-hover { width: 62px; height: 62px; margin: -31px 0 0 -31px; background: rgba(102, 51, 245, 0.26); }
.cursor-ring.has-label { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--a2); border-color: transparent; }
.cursor-ring.has-label span { opacity: 1; }
.cursor-ring.is-down { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.cursor-dot.hide, .cursor-ring.hide { opacity: 0; }
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor input, html.has-cursor textarea { cursor: text !important; }

@media (max-width: 900px) { .founders { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  body { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .modal-panel, .modal.open { animation: none; }
}
