:root {
  --bg: #0a0a14;
  --bg-soft: #100e1f;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --border-soft: rgba(255, 255, 255, 0.06);
  --text-primary: #f2f0f5;
  --text-secondary: #a8a4b8;
  --text-muted: #6e6a80;
  --accent: #7b61ff;
  --accent-2: #9d8cff;
  --accent-soft: rgba(123, 97, 255, 0.14);
  --accent-border: rgba(157, 140, 255, 0.35);
  --font-display: 'Fraunces', serif;
  --font-body: 'Manrope', sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0; }
em, .italic { font-style: italic; }
.grad {
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 10, 20, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 0.5px solid var(--border-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-body); font-weight: 600; font-size: 16px; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 500; color: #0a0a14; font-size: 15px;
}
.site-nav { display: flex; gap: 32px; }
.nav-link { font-size: 14px; color: var(--text-secondary); transition: color .15s; }
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.header-actions { display: flex; align-items: center; gap: 12px; }

/* Mobile hamburger menu (CSS-only, no JS) */
.mobile-nav-checkbox { display: none; }
.mobile-nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 32px; height: 32px; cursor: pointer;
}
.mobile-nav-burger span { display: block; width: 100%; height: 1.5px; background: var(--text-primary); border-radius: 2px; transition: transform .2s, opacity .2s; }
.mobile-nav-panel {
  display: none; flex-direction: column; gap: 2px;
  padding: 8px 32px 20px; border-top: 0.5px solid var(--border-soft);
}
.mobile-nav-panel .nav-link { padding: 12px 0; font-size: 15px; border-bottom: 0.5px solid var(--border-soft); }
.mobile-nav-auth { display: none; }
.mobile-nav-checkbox:checked ~ .mobile-nav-panel { display: flex; }
.mobile-nav-checkbox:checked ~ .header-inner .mobile-nav-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mobile-nav-checkbox:checked ~ .header-inner .mobile-nav-burger span:nth-child(2) { opacity: 0; }
.mobile-nav-checkbox:checked ~ .header-inner .mobile-nav-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: 100px; font-size: 14px; font-weight: 500;
  border: 0.5px solid var(--border); transition: all .15s; white-space: nowrap;
}
.btn-ghost { color: var(--text-primary); background: transparent; }
.btn-ghost:hover { background: var(--surface); }
.btn-primary {
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  color: #0a0a14; border: none;
}
.btn-primary:hover { opacity: 0.9; }
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* Badge pill */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px;
  background: var(--surface); border: 0.5px solid var(--border);
  font-size: 12px; color: var(--text-secondary); letter-spacing: 0.03em;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); }

/* Hero */
.hero { padding: 64px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero-title { font-size: 48px; margin: 20px 0 24px; }
.hero-sub { color: var(--text-secondary); font-size: 16px; max-width: 460px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; }
/* Hero — full-bleed background image with overlaid text */
.hero-full { position: relative; min-height: 640px; display: flex; align-items: center; overflow: hidden; }
.hero-full-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
/* The mask is applied to the <img> itself, so its percentages resolve against the
   photo's own box and the fade always lands on the real edges at any viewport. */
.hero-full-bg img {
  display: block; position: absolute;
  height: 86%; width: auto; top: 7%; right: 6%;
  transform: scaleX(-1);
  mask-image: radial-gradient(ellipse 48% 50% at 50% 45%, black 18%, rgba(0,0,0,0.7) 55%, transparent 92%);
  -webkit-mask-image: radial-gradient(ellipse 48% 50% at 50% 45%, black 18%, rgba(0,0,0,0.7) 55%, transparent 92%);
}
/* Dark scrim so the type stays readable over the photo, denser on the text side */
.hero-full-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,20,0.72) 0%, rgba(10,10,20,0.42) 32%, rgba(10,10,20,0.10) 60%, transparent 100%),
    linear-gradient(to bottom, rgba(10,10,20,0.35) 0%, transparent 24%, transparent 74%, var(--bg) 100%);
}
.hero-full-inner { position: relative; z-index: 1; padding: 88px 32px; max-width: var(--wrap); width: 100%; }
.hero-full-title { font-size: 52px; max-width: 15ch; margin: 20px 0 22px; }
.hero-full-sub { color: var(--text-secondary); font-size: 16px; max-width: 46ch; margin-bottom: 32px; }
.hero-full-quote {
  margin-top: 44px; max-width: 340px; padding: 20px 22px;
  background: rgba(15, 13, 30, 0.72); backdrop-filter: blur(10px);
  border: 0.5px solid var(--border); border-radius: var(--radius);
}
.hero-full-quote p { font-family: var(--font-display); font-style: italic; font-size: 15px; margin: 0 0 10px; }
.hero-full-quote .cite { font-size: 12px; color: var(--text-muted); letter-spacing: 0.03em; }

/* Atmospheric fog drifting over the photo — ties the image into the page background */
.hero-fog {
  position: absolute; inset: -10%; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 40% at 70% 72%, rgba(123,97,255,0.20) 0%, transparent 62%),
    radial-gradient(ellipse 45% 35% at 30% 85%, rgba(157,140,255,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 60% 30% at 85% 30%, rgba(80,110,220,0.16) 0%, transparent 65%);
  filter: blur(24px);
  animation: fog-drift 42s ease-in-out infinite alternate;
}
/* Vignette that melts the photo's hard edges into the page background */
.hero-full-bg::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 92% 88% at 72% 45%, transparent 30%, rgba(10,10,20,0.55) 72%, var(--bg) 100%);
}
@keyframes fog-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-3%, -2%, 0) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) { .hero-fog { animation: none; } }
.hero-quote {
  position: absolute; left: -32px; bottom: -28px; max-width: 300px;
  background: rgba(15, 13, 30, 0.9); backdrop-filter: blur(8px);
  border: 0.5px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px;
}
.hero-quote p { font-family: var(--font-display); font-style: italic; font-size: 15px; margin: 0 0 10px; }
.hero-quote .cite { font-size: 12px; color: var(--text-muted); letter-spacing: 0.03em; }

/* Marquee */
.marquee-wrap { border-top: 0.5px solid var(--border-soft); border-bottom: 0.5px solid var(--border-soft); overflow: hidden; padding: 20px 0; }
.marquee { display: flex; gap: 28px; white-space: nowrap; font-family: var(--font-display); font-style: italic; font-size: 18px; color: var(--text-secondary); animation: scroll 28s linear infinite; width: max-content; }
.marquee span.dot { font-style: normal; opacity: 0.4; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee { animation: none; } }

/* Section */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.eyebrow { font-size: 13px; letter-spacing: 0.04em; color: var(--accent-2); margin-bottom: 14px; display: block; }
.section-title { font-size: 34px; margin-bottom: 20px; }
.section-lead { color: var(--text-secondary); max-width: 640px; font-size: 16px; }

/* Cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: border-color .15s, background .15s;
}
.card:hover { border-color: var(--accent-border); background: var(--surface-hover); }
.card-title { font-family: var(--font-display); font-size: 19px; margin-bottom: 10px; }
.card-desc { color: var(--text-secondary); font-size: 14px; }
.card-eyebrow { font-size: 11px; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 10px; font-family: var(--font-body); }

/* Disclosure (native details/summary, no JS needed) */
.journal-disclosure summary { list-style: none; cursor: pointer; display: inline-flex; }
.journal-disclosure summary::-webkit-details-marker { display: none; }
.journal-disclosure[open] summary { margin-bottom: 4px; }

/* Forms */
.form-card { max-width: 420px; margin: 64px auto; background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 36px; }
.form-title { font-size: 26px; margin-bottom: 8px; }
.form-sub { color: var(--text-secondary); font-size: 14px; margin-bottom: 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 0.5px solid var(--border); background: rgba(255,255,255,0.03);
  color: var(--text-primary); font-family: var(--font-body); font-size: 14px;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-border); }
.form-error { background: rgba(224, 90, 90, 0.1); border: 0.5px solid rgba(224,90,90,0.35); color: #f0a3a3; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 18px; }
.form-note { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 20px; }

/* Footer */
.site-footer { border-top: 0.5px solid var(--border-soft); padding: 64px 0 28px; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-desc { color: var(--text-muted); font-size: 13px; margin-top: 16px; max-width: 320px; }
.footer-title { font-size: 12px; color: var(--text-muted); letter-spacing: 0.05em; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-secondary); margin-bottom: 10px; }
.footer-col a:hover { color: var(--text-primary); }
.footer-disclaimer { border-top: 0.5px solid var(--border-soft); padding-top: 24px; font-size: 12px; color: var(--text-muted); max-width: 760px; }

@media (max-width: 860px) {
  .site-nav { display: none; }
  .desktop-auth { display: none; }
  .mobile-nav-burger { display: flex; }
  .mobile-nav-auth { display: flex; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 0.5px solid var(--border-soft); }
  .hero-full { min-height: 640px; }
  .hero-full-inner { padding: 88px 24px 56px; }
  .hero-full-title { font-size: 34px; max-width: none; }
  .hero-full-sub { max-width: none; }
  .hero-full-quote { max-width: none; margin-top: 32px; }
  /* Narrow screen: full-width crop anchored to the top — no side edges to hide,
     so only the bottom needs to fade out into the page background. */
  .hero-full-bg img {
    width: 100%; height: 56%; top: 0; left: 0; right: auto;
    object-fit: cover; object-position: 32% top;
    transform: none;
    filter: brightness(1.7) saturate(1.15);
    mask-image: linear-gradient(to bottom, black 42%, rgba(0,0,0,0.55) 72%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 42%, rgba(0,0,0,0.55) 72%, transparent 100%);
  }
  .hero-full-bg { filter: none; }
  .hero-fog { inset: -15% -10% 40% -10%; }
  .hero-full-bg::before {
    background: radial-gradient(ellipse 130% 46% at 50% 16%, transparent 58%, rgba(10,10,20,0.32) 88%, var(--bg) 100%);
  }
  .hero-full-bg::after {
    background:
      linear-gradient(to bottom, rgba(10,10,20,0.10) 0%, rgba(10,10,20,0.22) 26%, rgba(10,10,20,0.62) 48%, var(--bg) 68%);
  }
  .hero-actions { flex-wrap: wrap; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
