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

:root {
  --bg-deep:    #0b0b2a;
  --bg-mid:     #13133d;
  --accent:     #7c6dfa;
  --accent-dim: rgba(124,109,250,0.18);
  --text:       #e8e6ff;
  --text-dim:   rgba(232,230,255,0.45);
  --text-faint: rgba(232,230,255,0.2);
  --border:     rgba(124,109,250,0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  overflow-x: hidden;
  cursor: none;
}

.cursor-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s;
}

.cursor-ring {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(124, 109, 250, 0.6);
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width 0.2s, height 0.2s, opacity 0.2s, border-color 0.2s;
}

/* ── ENTRANCE ANIMATION ── */

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── HERO ── */

.hero {
  --mx: 50%;
  --my: 60%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 60px 24px;
  background:
    radial-gradient(ellipse 60% 50% at var(--mx) var(--my), rgba(124,109,250,0.12) 0%, transparent 70%),
    linear-gradient(160deg, #0b0b2a 0%, #13133d 60%, #0f0f35 100%);
  border-bottom: 1px solid var(--border);
}

/* faint grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,109,250,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,109,250,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  filter: url(#hero-grain);
  z-index: 1;
}

.parallax-layer {
  transform: translateY(var(--py, 0px));
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-eyebrow {
  font-family: 'Syne', sans-serif;
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.5em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 32px;
  opacity: 0;
  animation: heroReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.hero-wordmark {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-optical-sizing: auto;
  font-size: clamp(72px, 14vw, 152px);
  letter-spacing: 0.06em;
  color: var(--text);
  line-height: 0.95;
  opacity: 0;
  animation: heroReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
  transition: letter-spacing 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              font-weight 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: default;
}

.hero-wordmark:hover {
  letter-spacing: 0.08em;
}

.hero-wordmark .blum-letter { font-style: italic; }

.hero-wordmark span {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-rule {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 32px auto;
  opacity: 0;
  animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.9s both;
}

.hero-tagline {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  opacity: 0;
  animation: heroReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 1.1s both;
}


/* ── SCROLL REVEAL ── */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity  0.75s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── CONTACT ── */

.contact {
  padding: 108px 24px;
  background: linear-gradient(180deg, var(--bg-mid) 0%, #0f0f38 100%);
}

.contact-inner {
  max-width: 900px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Syne', sans-serif;
  font-weight: 200;
  font-size: 10px;
  letter-spacing: 0.45em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-label::after {
  content: '';
  height: 1px;
  background: var(--border);
  width: 80px;
}

.contact-intro {
  font-family: 'Syne', sans-serif;
  font-weight: 200;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: -32px;
  margin-bottom: 48px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-label {
  font-family: 'Syne', sans-serif;
  font-weight: 200;
  font-size: 9px;
  letter-spacing: 0.4em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.info-value {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.02em;
  color: var(--text);
  transition: color 0.25s;
  cursor: default;
}

.info-value:hover {
  color: var(--accent);
}

/* ── FORM ── */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.form-field label {
  font-family: 'Syne', sans-serif;
  font-weight: 200;
  font-size: 9px;
  letter-spacing: 0.35em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.form-field::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.form-field:focus-within::after {
  transform: scaleX(1);
}

.form-field input,
.form-field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-weight: 300;
  font-size: 13px;
  padding: 12px 0;
  outline: none;
  resize: none;
  width: 100%;
  letter-spacing: 0.05em;
  transition: border-color 0.25s;
}

.form-field input:hover,
.form-field textarea:hover {
  border-color: rgba(124, 109, 250, 0.38);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: transparent;
  outline: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-faint);
}

.form-submit {
  margin-right: auto;
  margin-top: 8px;
  padding: 14px 36px;
  border: 1px solid var(--accent);
  /* sweep animation via background-position */
  background: linear-gradient(to right, var(--accent) 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: right center;
  color: var(--accent);
  font-family: 'Syne', sans-serif;
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  cursor: none;
  transition: background-position 0.4s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s,
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.form-submit:hover {
  background-position: left center;
  color: var(--bg-deep);
}

.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-status {
  font-size: 11px;
  letter-spacing: 0.15em;
  min-height: 20px;
}

.form-status.success {
  color: var(--accent);
}

.form-status.error {
  color: #fa6d6d;
}

/* ── FOOTER ── */

.footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-deep);
  font-family: 'Syne', sans-serif;
  flex-wrap: wrap;
  gap: 12px;
}

.footer span {
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.footer-credit a {
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.25s;
}

.footer-credit a:hover {
  color: var(--accent);
}

/* ── VENTURES ── */

.ventures {
  padding: 80px 24px;
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
}

.ventures-inner {
  max-width: 900px;
  margin: 0 auto;
}

.ventures-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.pillar-label {
  font-family: 'Syne', sans-serif;
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.pillar-rule {
  height: 1px;
  background: linear-gradient(to right, rgba(124, 109, 250, 0.4), transparent);
  width: 100%;
}

/* ── RESPONSIVE ── */

@media (max-width: 640px) {
  .ventures {
    padding: 60px 20px;
  }

  .ventures-pillars {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact {
    padding: 80px 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-wordmark {
    letter-spacing: 0.04em;
  }
}

@media (pointer: coarse) {
  body {
    cursor: auto;
  }
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* ── REDUCED MOTION ── */

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow,
  .hero-wordmark,
  .hero-rule,
  .hero-tagline {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero-wordmark {
    transition: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .parallax-layer {
    transform: none !important;
  }

  .form-submit {
    transition: none;
    background: transparent;
  }

  .form-submit:hover {
    background: var(--accent);
    color: var(--bg-deep);
  }
}
