/* Direction D: Synapse. Violet panels, black statements, light work section, Geist throughout. */
:root {
  --bg: #08070c;
  --fg: #f4f2fa;
  --muted: #a9a4bb;
  --line: rgba(244, 242, 250, 0.12);
  --accent: #8b5cf6;
  --violet: #5b21d6;
  --light: #f2f1f6;
  --ink: #111018;
  --font-display: 'Geist', system-ui, sans-serif;
  --font-body: 'Geist', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --pad: clamp(16px, 4vw, 48px);
}

/* Floating pill nav, centred */
.nav {
  left: 50%; right: auto; top: 14px; transform: translateX(-50%);
  width: max-content; max-width: calc(100vw - 24px);
  padding: 6px 6px 6px 18px; gap: 22px;
  background: rgba(16, 14, 24, 0.62); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px; color: var(--fg);
}
.nav__brand { font-family: var(--font-body); font-weight: 600; font-size: 14px; letter-spacing: 0; text-transform: none; }
.nav__links a { font-family: var(--font-body); font-size: 13px; letter-spacing: 0; text-transform: none; }
.nav__cta { min-height: 36px; padding: 0 16px; border-radius: 999px; background: #fff; color: #111; opacity: 1 !important; }
.nav__toggle { min-height: 36px; font-family: var(--font-body); letter-spacing: 0; text-transform: none; font-size: 13px; }
@media (max-width: 720px) { .nav { gap: 14px; } .nav__links { right: 0; top: calc(100% + 8px); } }

.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--white { background: #fff; color: #111; }
.btn--white .todo { color: var(--violet); }
.btn--glass { background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); }

/* ---------- Hero panel ---------- */
.hero { padding: 12px; }
.hero__panel {
  position: relative; overflow: hidden; border-radius: 28px;
  height: calc(100vh - 24px); height: calc(100svh - 24px); min-height: 560px;
  background:
    radial-gradient(ellipse 70% 60% at 75% 55%, #8f5cff 0%, transparent 60%),
    radial-gradient(ellipse 90% 70% at 20% 110%, #c06bff 0%, transparent 55%),
    linear-gradient(160deg, #3a10a8 0%, #5b21d6 45%, #2a0d6b 100%);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; }
.hero__canvas.is-ready { opacity: 1; }
.hero__content { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 26px; max-width: 560px; padding: clamp(110px, 18vh, 180px) clamp(24px, 6vw, 88px) 40px; }
.hero__title { font-weight: 600; font-size: clamp(46px, 6.4vw, 96px); line-height: 0.98; letter-spacing: -0.045em; }
.hero__title span { display: block; color: rgba(255, 255, 255, 0.55); }
.hero__lede { max-width: 40ch; color: rgba(255, 255, 255, 0.82); font-size: 17px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__note { display: inline-flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, 0.72); font-size: 13px; }
.dots { display: inline-flex; }
.dots i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #4a1bb8; margin-left: -6px; background: linear-gradient(135deg, #f2c58b, #c06bff); }
.dots i:first-child { margin-left: 0; background: linear-gradient(135deg, #b7f0d2, #5b8cff); }
.dots i:last-child { background: linear-gradient(135deg, #ffd1e0, #ff6b8a); }
@media (max-width: 760px) {
  .hero__content { padding-top: 96px; }
  .hero__lede { font-size: 16px; }
}

/* ---------- Statement ---------- */
.statement { position: relative; height: 220vh; }
.statement__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; padding: 0 var(--pad); }
.statement__word { position: absolute; font-weight: 600; font-size: clamp(60px, 12vw, 200px); line-height: 0.9; letter-spacing: -0.05em; }
.statement__word--1 { left: var(--pad); top: 12vh; transform: translateX(calc(var(--p, 0) * -6vw)); }
.statement__word--2 { right: var(--pad); bottom: 12vh; transform: translateX(calc(var(--p, 0) * 6vw)); }
.sparkle { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; transform: translate(-50%, -50%) scale(calc(0.4 + var(--p, 0) * 1.4)) rotate(calc(var(--p, 0) * 90deg)); filter: drop-shadow(0 0 18px rgba(196, 170, 255, 0.9)) drop-shadow(0 0 60px rgba(139, 92, 246, 0.8)); }
.sparkle::before { content: ''; position: absolute; inset: -140%; border-radius: 50%; background: radial-gradient(circle, rgba(139, 92, 246, 0.45), transparent 60%); z-index: -1; }
.statement__copy { position: absolute; left: var(--pad); bottom: 12vh; max-width: 380px; display: flex; flex-direction: column; gap: 14px; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) {
  .statement__word--1 { top: 14vh; }
  .statement__word--2 { bottom: auto; top: 62vh; }
  .statement__copy { bottom: 5vh; right: var(--pad); max-width: none; font-size: 14px; }
  .sparkle { top: 44%; width: 80px; height: 80px; }
}

/* ---------- Work (light) ---------- */
.work { position: relative; height: 300vh; background: var(--light); color: var(--ink); }
.work__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; justify-content: center; perspective: 1400px; }
.work__marquee { position: absolute; top: 50%; left: 0; display: flex; gap: 0.35em; white-space: nowrap; font-weight: 600; font-size: clamp(90px, 15vw, 240px); letter-spacing: -0.05em; line-height: 1; transform: translate(calc(var(--p, 0) * -55% + 10%), -50%); color: var(--ink); }
.work__cards { position: relative; z-index: 2; display: flex; gap: clamp(18px, 3vw, 44px); transform-style: preserve-3d; }
.wcard {
  position: relative; width: clamp(220px, 21vw, 300px); aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; color: #fff;
  box-shadow: 0 40px 80px -30px rgba(40, 20, 90, 0.55);
  transform: rotateY(calc(var(--r, 0) * 1deg)) translateZ(0);
}
.wcard__art { position: absolute; inset: 0; }
.wcard__art--1 { background: radial-gradient(circle at 30% 30%, #c39bff, transparent 55%), linear-gradient(160deg, #5b21d6, #1a0b45); }
.wcard__art--2 { background: radial-gradient(circle at 40% 70%, #b8ff5c, transparent 40%), linear-gradient(170deg, #0f1712, #0a0a0c); }
.wcard__art--3 { background: conic-gradient(from 210deg at 60% 45%, #f4f4f6, #9aa0aa, #e8e8ec, #6f7580, #f4f4f6); }
.wcard__art--3 ~ .wcard__body, .wcard__art--3 ~ .wcard__top { color: #111; }
.wcard__top { position: absolute; left: 16px; right: 16px; top: 16px; display: flex; justify-content: space-between; font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.wcard__body { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.wcard h3 { font-weight: 600; font-size: 24px; letter-spacing: -0.03em; line-height: 1.05; }
.wcard p { font-size: 13.5px; line-height: 1.45; opacity: .85; }
.work__more { position: absolute; bottom: 64px; left: 50%; transform: translateX(-50%); font-size: 14px; color: #555; white-space: nowrap; }
.work__more .todo { color: var(--violet); }
@media (max-width: 860px) {
  .work { height: auto; padding: 96px 0 120px; }
  .work__sticky { position: relative; height: auto; flex-direction: column; gap: 40px; overflow: hidden; }
  .work__marquee { position: relative; top: auto; transform: none; font-size: 64px; animation: syn-marquee 18s linear infinite; }
  .work__cards { flex-direction: column; align-items: center; }
  .wcard { width: min(320px, 82vw); transform: none; }
  .work__more { position: static; transform: none; white-space: normal; text-align: center; padding: 0 var(--pad); }
}
@keyframes syn-marquee { to { transform: translateX(-50%); } }
.reduced .work { height: auto; padding: 96px 0; }
.reduced .work__sticky { position: relative; height: auto; flex-direction: column; gap: 40px; }
.reduced .work__marquee { position: relative; transform: none; top: auto; }
.reduced .work__more { position: static; transform: none; }

/* ---------- Capabilities (dark, depth gallery) ---------- */
.caps { position: relative; padding: clamp(120px, 16vw, 220px) var(--pad); overflow: hidden; }
.caps__ghosts i { position: absolute; border-radius: 18px; opacity: .55; filter: blur(var(--b, 10px)); transform: translateY(calc(var(--y, 0) * 1px)); }
.caps__ghosts i:nth-child(1) { --b: 14px; left: 4%; top: 12%; width: 140px; height: 180px; background: linear-gradient(160deg, #5b21d6, #1a0b45); }
.caps__ghosts i:nth-child(2) { --b: 6px; right: 6%; top: 8%; width: 110px; height: 150px; background: linear-gradient(160deg, #6b2a7a, #2a0d3b); }
.caps__ghosts i:nth-child(3) { --b: 18px; left: 12%; bottom: 10%; width: 120px; height: 120px; background: radial-gradient(circle, #8b1d2c, #1a0a0e); }
.caps__ghosts i:nth-child(4) { --b: 10px; right: 14%; bottom: 14%; width: 160px; height: 110px; background: radial-gradient(circle at 40% 60%, #b8ff5c, #13240d 60%); }
.caps__ghosts i:nth-child(5) { --b: 22px; left: 40%; top: 4%; width: 90px; height: 90px; background: linear-gradient(160deg, #1f3b6b, #0b1424); }
.caps__ghosts i:nth-child(6) { --b: 4px; right: 34%; bottom: 4%; width: 70px; height: 90px; background: linear-gradient(160deg, #3a3a44, #121216); }
.caps__title { position: relative; text-align: center; font-weight: 600; font-size: clamp(40px, 6vw, 88px); letter-spacing: -0.045em; line-height: 1; margin-bottom: clamp(48px, 6vw, 80px); }
.caps__grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1080px; margin: 0 auto; }
.cap { display: flex; flex-direction: column; gap: 12px; padding: 28px; min-height: 240px; border-radius: 22px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.cap__no { font: 500 11px/1 var(--font-mono); color: var(--accent); }
.cap h3 { margin-top: auto; font-weight: 600; font-size: 26px; letter-spacing: -0.03em; }
.cap p { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .caps__grid { grid-template-columns: 1fr; } .cap { min-height: 0; } }

/* ---------- Contact ---------- */
.contact { padding: 12px; }
.contact__panel {
  display: flex; flex-direction: column; align-items: center; gap: 36px; text-align: center;
  padding: clamp(96px, 14vw, 200px) var(--pad); border-radius: 28px;
  background: radial-gradient(ellipse 60% 70% at 50% 100%, #c06bff, transparent 70%), linear-gradient(160deg, #3a10a8, #5b21d6 50%, #2a0d6b);
}
.contact__title { font-weight: 600; font-size: clamp(44px, 7vw, 110px); line-height: 0.98; letter-spacing: -0.045em; }
.contact__title span { display: block; color: rgba(255, 255, 255, 0.6); }

/* ---------- Footer (light) ---------- */
.footer { background: var(--light); color: var(--ink); padding: clamp(64px, 8vw, 110px) var(--pad) 90px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
.footer__brand { display: flex; flex-direction: column; gap: 12px; }
.footer__word { font-weight: 600; font-size: clamp(48px, 7vw, 112px); line-height: .9; letter-spacing: -0.05em; }
.footer__tag { color: #66637a; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-content: start; }
.footer__cols > div { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__cols h3 { font: 500 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: #8a879a; margin-bottom: 6px; }
.footer__cols a { text-decoration: none; }
.footer__cols a:hover { color: var(--violet); }
.footer__cols .todo { color: var(--violet); }
.footer__base { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(17, 16, 24, .12); color: #8a879a; }
@media (max-width: 860px) { .footer { grid-template-columns: 1fr; } }
