:root {
  --bg:      #02040a;
  --bg-2:    #05070e;
  --panel:   #0a0e1a;
  --text:    #eaf0ff;
  --muted:   #9aa6c4;
  --faint:   #5f6c8c;
  --line:    rgba(255,255,255,0.10);
  --glass:   rgba(14,18,34,0.55);
  /* neon-dusk / HUD accent system */
  --cyan:    #5ee6ff;
  --violet:  #8b7bff;
  --magenta: #ff5cc8;
  --accent:  #5ee6ff;
  --accent-2:#ff5cc8;
  --grad:    linear-gradient(100deg, #5ee6ff 0%, #8b7bff 52%, #ff5cc8 100%);
  --glow-cyan: rgba(94,230,255,0.35);
  --glow-mag:  rgba(255,92,200,0.30);
  --max:     1180px;
  --ease:    cubic-bezier(.16,.84,.28,1);
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 400; line-height: 1.5; letter-spacing: -0.011em; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background:
    radial-gradient(120% 80% at 12% -8%, rgba(94,230,255,0.12), transparent 55%),
    radial-gradient(120% 90% at 100% 8%, rgba(255,92,200,0.10), transparent 52%),
    radial-gradient(140% 120% at 60% 108%, rgba(139,123,255,0.12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
/* ambient aurora haze — slow, subtle drift behind everything */
body::before {
  content: ""; position: fixed; inset: -20vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38vmax 30vmax at 20% 20%, rgba(94,230,255,0.11), transparent 62%),
    radial-gradient(42vmax 34vmax at 82% 30%, rgba(255,92,200,0.095), transparent 60%),
    radial-gradient(46vmax 38vmax at 55% 96%, rgba(139,123,255,0.095), transparent 62%);
  filter: blur(30px); animation: aurora 34s ease-in-out infinite alternate;
}
@keyframes aurora {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to   { transform: translate3d(3%, 3%, 0) scale(1.08); }
}
.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
a { color: inherit; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4, .brand, .eyebrow, .kicker, .subhead { font-family: var(--font-display); }

/* gradient text utility */
.grad-text, .eyebrow, .kicker, .subhead {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* scroll progress */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--grad); box-shadow: 0 0 16px var(--glow-cyan); z-index: 100; transition: width .1s linear; }

/* custom scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: rgba(139,123,255,.35); border-radius: 980px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(139,123,255,.55); background-clip: content-box; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 60; height: 64px;
  transition: background .4s var(--ease), border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(6,9,17,0.55); backdrop-filter: saturate(160%) blur(22px);
  -webkit-backdrop-filter: saturate(160%) blur(22px); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { font-weight: 600; letter-spacing: .01em; text-decoration: none; font-size: 1.06rem; }
.nav nav a { text-decoration: none; color: var(--muted); margin-left: 28px; font-size: .9rem; position: relative; transition: color .2s; }
.nav nav a:hover { color: var(--text); }
.nav nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad); border-radius: 980px; transition: width .3s var(--ease); }
.nav nav a:not(.btn):hover::after { width: 100%; }
.nav-left { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 0; background: rgba(255,255,255,.05); border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn { display: inline-block; cursor: pointer; text-decoration: none; border: none; position: relative;
  background: var(--grad); background-size: 160% 160%; color: #05070c; font-weight: 600; font-size: 1rem;
  padding: 13px 30px; border-radius: 980px; box-shadow: 0 8px 30px -8px var(--glow-cyan), 0 8px 30px -12px var(--glow-mag);
  transition: transform .18s var(--ease), box-shadow .35s, background-position .6s var(--ease); }
.btn:hover { background-position: 100% 0; box-shadow: 0 14px 46px -8px var(--glow-cyan), 0 14px 46px -10px var(--glow-mag); transform: translateY(-2px); }
.btn:active { transform: scale(.98); }
.btn-ghost { background: rgba(255,255,255,0.05); color: var(--text); border: 1px solid var(--line);
  box-shadow: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: transparent; color: var(--text);
  background: rgba(255,255,255,0.05); box-shadow: 0 0 0 1px rgba(94,230,255,.5), 0 12px 40px -14px var(--glow-cyan); }
.link-arrow { color: var(--cyan); text-decoration: none; font-size: 1.02rem; font-weight: 500; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; min-height: 660px; overflow: hidden; }
.hero .layer { position: absolute; inset: -6% ; width: 112%; height: 112%; opacity: .55; }
.hero .scene { width: 100%; height: 100%; display: block; }
.hero .photo { background: center/cover no-repeat; background-image: url('images/hero.jpg');
  animation: kenburns 24s ease-in-out infinite alternate; }
.hero .veil { position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(80% 60% at 15% 10%, rgba(94,230,255,.20), transparent 55%),
    radial-gradient(80% 60% at 88% 18%, rgba(255,92,200,.18), transparent 55%),
    linear-gradient(180deg, rgba(4,6,12,.45) 0%, rgba(4,6,12,.10) 38%, rgba(4,6,12,.82) 100%); }
@keyframes kenburns { from { transform: scale(1);} to { transform: scale(1.08);} }
.hero-overlay { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start; text-align: center; padding-top: 18vh; }
.eyebrow { text-transform: uppercase; letter-spacing: .44em; font-size: .72rem;
  margin: 0 0 24px; padding-left: .44em; }
.hero h1 { font-size: clamp(2.9rem, 7.5vw, 6rem); font-weight: 600; letter-spacing: -0.035em;
  margin: 0; line-height: 1.0; text-shadow: 0 4px 70px rgba(0,0,0,.6), 0 0 60px rgba(94,230,255,.12); }
.hero .sub { color: #d7e0f5; font-size: clamp(1.05rem, 2.4vw, 1.55rem); font-weight: 300;
  margin: 22px 0 0; max-width: 32ch; text-shadow: 0 2px 40px rgba(0,0,0,.6); }
.scroll-cue { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3;
  color: var(--faint); font-size: .72rem; letter-spacing: .25em; text-transform: uppercase;
  animation: float 2.4s ease-in-out infinite; }
@keyframes float { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }
.mist ellipse { animation: drift 28s ease-in-out infinite alternate; }
.mist ellipse:nth-child(2){ animation-duration: 36s; animation-direction: alternate-reverse; }
@keyframes drift { from{ transform: translateX(-44px);} to{ transform: translateX(44px);} }

/* ---------- Sections ---------- */
/* Sections are translucent frosted panels that stack and rise out of a portal
   as you scroll — the cyber particle field + guide-orb stay visible through them. */
.section { padding: clamp(86px, 13vw, 168px) 0; position: relative; z-index: 1;
  border-radius: 46px 46px 0 0; margin-top: -46px;
  background: linear-gradient(180deg, rgba(6,9,18,.34), rgba(3,5,12,.46));
  border-top: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 -34px 90px -34px rgba(0,0,0,.72), inset 0 1px 0 rgba(255,255,255,.06); }
.section.alt { background: linear-gradient(180deg, rgba(16,10,30,.34), rgba(5,4,14,.46)); }
/* glowing portal rim across the top of each panel — brightens as it arrives (--p = scroll progress) */
.section::before, .feature::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  z-index: 4; pointer-events: none; opacity: calc(.28 + .72 * var(--p, 1));
  background: linear-gradient(90deg, transparent, rgba(94,230,255,.95), rgba(139,123,255,.95) 50%, rgba(255,92,200,.95), transparent);
  box-shadow: 0 0 20px rgba(94,230,255,.6), 0 0 46px rgba(255,92,200,.35); }
.statement { text-align: center; }
.statement h2 { font-size: clamp(1.95rem, 4.8vw, 3.5rem); font-weight: 600; letter-spacing: -0.028em;
  line-height: 1.12; margin: 0 auto; max-width: 19ch; }
.statement p { color: var(--muted); font-size: 1.16rem; max-width: 60ch; margin: 24px auto 0; font-weight: 300; }
.kicker { text-align: center; text-transform: uppercase; letter-spacing: .32em;
  font-size: .74rem; margin: 0 0 20px; }

/* ---------- Flagship feature (full-bleed image + glass card) ---------- */
.feature { position: relative; z-index: 1; min-height: 78vh; display: flex; align-items: center; overflow: hidden;
  border-radius: 46px 46px 0 0; margin-top: -46px; border-top: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 -34px 90px -34px rgba(0,0,0,.72); }
.feature .bg { position: absolute; inset: -8%; background: center/cover no-repeat;
  background-image: linear-gradient(180deg, rgba(4,6,12,.32) 0%, rgba(4,6,12,.54) 100%);
  will-change: transform; }
.feat-tech   .bg { background-image: linear-gradient(180deg, rgba(4,6,12,.5), rgba(4,6,12,.8)), url('images/tech.jpg'); }
.feat-re     .bg { background-image: linear-gradient(180deg, rgba(4,6,12,.5), rgba(4,6,12,.8)), url('images/real-estate.jpg'); }
.feat-invest .bg { background-image: linear-gradient(180deg, rgba(4,6,12,.5), rgba(4,6,12,.8)), url('images/investments.jpg'); }
.feature.right .glass { margin-left: auto; margin-right: 4%; }
.feature .glass { position: relative; z-index: 2; max-width: 560px; margin-left: 4%;
  background: var(--glass); border: 1px solid var(--line); border-radius: 22px; padding: 48px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.08), 0 0 80px -30px var(--glow-cyan); }
.feature .tag { color: var(--cyan); text-transform: uppercase; letter-spacing: .28em; font-size: .72rem; margin: 0 0 14px; }
.feature h3 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 600; letter-spacing: -0.025em; margin: 0; }
.feature p { color: #cdd6ea; font-size: 1.14rem; font-weight: 300; margin: 18px 0 28px; }
.feature .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Venture grid (image tiles) ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 26px; }
.tile { position: relative; min-height: 280px; border-radius: 20px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); display: flex; align-items: flex-end;
  transition: transform .5s var(--ease), border-color .3s, box-shadow .4s; }
.tile:hover { transform: translateY(-6px); border-color: rgba(94,230,255,.45); box-shadow: 0 30px 70px -30px var(--glow-cyan); }
.tile .bg { position: absolute; inset: 0; background: center/cover no-repeat; transition: transform .8s var(--ease);
  background-image: linear-gradient(180deg, rgba(4,6,12,.15) 0%, rgba(4,6,12,.88) 100%); }
.tile:hover .bg { transform: scale(1.06); }
.tile-p1 .bg { background-image: linear-gradient(180deg, rgba(4,6,12,.2), rgba(4,6,12,.9)), url('images/portfolio-1.jpg'); background-color:#0b1622; }
.tile-p2 .bg { background-image: linear-gradient(180deg, rgba(4,6,12,.2), rgba(4,6,12,.9)), url('images/portfolio-2.jpg'); background-color:#0c1424; }
.tile-p3 .bg { background-image: linear-gradient(180deg, rgba(4,6,12,.2), rgba(4,6,12,.9)), url('images/portfolio-3.jpg'); background-color:#0d1622; }
.tile-p4 .bg { background-image: linear-gradient(180deg, rgba(4,6,12,.2), rgba(4,6,12,.9)), url('images/portfolio-4.jpg'); background-color:#0a1220; }
.tile .content { position: relative; z-index: 2; padding: 34px; }
.tile .tag { color: var(--cyan); font-size: .7rem; text-transform: uppercase; letter-spacing: .24em; margin: 0 0 10px; }
.tile h3 { font-size: 1.55rem; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.02em; }
.tile p { color: var(--muted); font-weight: 300; margin: 0 0 18px; }

/* ---------- Services cards + sub-headings ---------- */
.section-head { text-align: center; max-width: 50ch; margin: 0 auto; }
.section-head h2 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); font-weight: 600; letter-spacing: -0.028em; margin: 0; }
.section-head p { color: var(--muted); font-size: 1.12rem; font-weight: 300; margin: 18px auto 0; }
.subhead { text-align: center; text-transform: uppercase; letter-spacing: .26em;
  font-size: .74rem; margin: 56px 0 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.scard { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 30px;
  display: block; color: inherit; text-decoration: none; overflow: hidden;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s; }
.scard::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s; pointer-events: none; }
a.scard, a.scard:link, a.scard:visited, a.scard:hover, a.scard:focus { cursor: pointer; text-decoration: none; }
a.scard h4, a.scard p { text-decoration: none; }
a.scard::after { content: "Schedule a consultation →"; display: block; margin-top: 14px;
  color: var(--cyan); font-size: .82rem; opacity: 0; transition: opacity .3s; }
a.scard:hover::after { opacity: 1; }
.scard:hover { transform: translateY(-4px); box-shadow: 0 26px 60px -30px var(--glow-mag); }
.scard:hover::before { opacity: 1; }
.scard h4 { margin: 0 0 10px; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.scard p { margin: 0; color: var(--muted); font-weight: 300; }
.locked { display: inline-flex; align-items: center; gap: 9px; color: var(--cyan);
  font-size: .72rem; text-transform: uppercase; letter-spacing: .26em; margin: 0 0 16px; }
.locked::before { content: "🔒"; font-size: .9rem; }

/* ---------- About (portrait + text) ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.portrait { aspect-ratio: 4/5; border-radius: 20px; border: 1px solid var(--line); background: center/cover no-repeat;
  background-color: #0b1220;
  background-image: linear-gradient(160deg, rgba(94,230,255,.12), rgba(255,92,200,.1) 60%, rgba(4,6,12,.5)), url('images/about.jpg');
  box-shadow: 0 40px 90px -40px var(--glow-cyan); }
.about-text h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 600; letter-spacing: -0.025em; margin: 0 0 18px; }
.about-text p { color: var(--muted); font-size: 1.12rem; font-weight: 300; }

/* ---------- Connect / form (glass) ---------- */
.connect { max-width: 680px; margin: 0 auto; }
.lead-form { position: relative; margin-top: 34px; background: var(--glass); border: 1px solid var(--line); border-radius: 22px;
  padding: 36px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 40px 100px -34px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.07), 0 0 80px -34px var(--glow-mag); }
.lead-form label { display: block; margin-bottom: 18px; font-size: .84rem; color: var(--muted); letter-spacing: .02em; }
.lead-form input, .lead-form select, .lead-form textarea { width: 100%; margin-top: 8px; padding: 14px 16px;
  font: inherit; color: var(--text); background: rgba(255,255,255,0.05); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .25s, box-shadow .25s, background .25s; }
.lead-form input::placeholder, .lead-form textarea::placeholder { color: var(--faint); }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: rgba(94,230,255,.7);
  background: rgba(255,255,255,0.07); box-shadow: 0 0 0 3px rgba(94,230,255,.14); }
.lead-form select option { color: #0a1215; }
.lead-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead-form .checkbox { display: flex; align-items: center; gap: 10px; color: var(--text); }
.lead-form .checkbox input { width: auto; margin: 0; }
.form-msg { min-height: 1.3em; font-weight: 500; }
.form-msg.ok { color: #6ee7a8; }
.form-msg.err { color: #ff8a9c; }

/* ---------- Footer ---------- */
.footer { background: #04060b; color: var(--muted); padding: 58px 0; font-size: .92rem; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 26px; }
.footer a { color: var(--cyan); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .legal { color: var(--faint); font-size: .82rem; }
.footer strong { color: var(--text); font-weight: 600; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .mist ellipse, .scroll-cue, .hero .photo, body::before { animation: none; }
}

/* ---------- Real Estate in-place affordable reveal ---------- */
.re-pane { transition: opacity .55s var(--ease), transform .55s var(--ease); }
.re-pane.leaving { opacity: 0; transform: translateY(-14px); pointer-events: none; }
#reAffordable { opacity: 0; transform: translateY(24px) scale(.985); position: relative; }
#reAffordable::before { content: ""; position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--cyan), var(--magenta), transparent);
  transition: width .8s var(--ease) .15s; }
#reAffordable.show { opacity: 1; transform: none; }
#reAffordable.show::before { width: 80%; }
.re-back { display: inline-block; margin-bottom: 14px; color: var(--cyan); cursor: pointer; font-size: .9rem; }
.re-back:hover { text-decoration: underline; }
.ah-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 16px 0 6px; }
.ah-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s; }
.ah-card:hover { transform: translateY(-4px); border-color: rgba(94,230,255,.4); box-shadow: 0 24px 56px -30px var(--glow-cyan); }
.ah-card .img { aspect-ratio: 16/10; background: linear-gradient(150deg, #12233a, #0b1424) center/cover no-repeat;
  display: flex; align-items: center; justify-content: center; color: #35507a; font-size: 1.8rem; }
.ah-card .b { padding: 12px 14px; }
.ah-card .c { font-weight: 600; }
.ah-card .a { color: var(--muted); font-size: .8rem; margin: 2px 0 6px; }
.ah-card .pr { font-weight: 600; font-size: .95rem; margin-top: 4px; color: var(--cyan); }
.ah-tag { display: inline-block; background: rgba(110,231,168,.16); color: #6ee7a8; border-radius: 980px; padding: 2px 9px; font-size: .7rem; }
.offer-btn { display: inline-block; margin-top: 12px; background: var(--grad); color: #05070c; font-weight: 600;
  font-size: .82rem; padding: 8px 16px; border-radius: 980px; text-decoration: none;
  box-shadow: 0 6px 20px -8px var(--glow-cyan); transition: box-shadow .3s, transform .15s; }
.offer-btn:hover { box-shadow: 0 10px 30px -8px var(--glow-cyan); transform: translateY(-1px); }
.offer-btn.ghost { background: rgba(255,255,255,.06); color: var(--text); box-shadow: none; }
.offer-btn.ghost:hover { box-shadow: 0 0 0 1px rgba(94,230,255,.5); transform: translateY(-1px); }
.listing-cta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.listing-cta .offer-btn { margin-top: 0; }

/* ---------- Privacy doc ---------- */
.doc { max-width: 720px; padding: 130px 0 80px; }
.doc h1 { font-weight: 600; letter-spacing: -0.02em; }
.doc h2 { font-size: 1.2rem; margin-top: 30px; font-weight: 600; }
.doc p, .doc li { color: var(--muted); font-weight: 300; }
.back { display: inline-block; margin-bottom: 22px; color: var(--cyan); text-decoration: none; }

/* ============ MOTION LAYER ============ */
/* Component 1 — global animated portal background (particles + portal + shooting star, drawn on one canvas) */
#fx-canvas { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .95; }

/* cyberpunk scanline overlay — faint screen texture over everything */
body::after { content: ""; position: fixed; inset: 0; z-index: 3; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(120,220,255,.03) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay; opacity: .5; }

/* rotating HUD ring decorations in the hero */
.hud { position: absolute; z-index: 2; width: 260px; height: 260px; pointer-events: none; opacity: .55; mix-blend-mode: screen; }
.hud svg { width: 100%; height: 100%; display: block; }
.hud .r { transform-origin: 100px 100px; transform-box: fill-box; animation: hudspin linear infinite; }
.hud-1 { top: 13%; right: 6%; }
.hud-2 { bottom: 15%; left: 5%; width: 180px; height: 180px; opacity: .34; }
@keyframes hudspin { to { transform: rotate(360deg); } }

/* Component 3 — scroll fade-in section wrapper (assembles into view via IntersectionObserver).
   Timing/intensity tunable from motion.js CONFIG.reveal → these CSS vars. */
.reveal-section { opacity: 0;
  transform: translateY(var(--rev-translate, 40px)) scale(var(--rev-scale, .985));
  filter: blur(var(--rev-blur, 6px));
  transition: opacity var(--rev-dur, 1.35s) var(--rev-ease, cubic-bezier(.34,.02,.18,1)),
              transform var(--rev-dur, 1.35s) var(--rev-ease, cubic-bezier(.34,.02,.18,1)),
              filter var(--rev-dur, 1.35s) var(--rev-ease, cubic-bezier(.34,.02,.18,1));
  will-change: opacity, transform, filter; }
.reveal-section.in { opacity: 1; transform: none; filter: none; }

/* headline mask-reveal */
.reveal-h .w { display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.02; }
.reveal-h .w > span { display: inline-block; transform: translateY(115%); transition: transform .95s var(--ease); }
.reveal-h.in .w > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  #fx-canvas, .hud { display: none; }
  .reveal-h .w > span { transform: none; }
  .reveal-section { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hud { display: none; }
  /* keep the constellation vivid on phones (match desktop) */
  #fx-canvas { opacity: .9; }
  /* drop the focus-in blur on phones (keep fade+translate) for performance */
  .reveal-section { filter: none !important; }
  /* same translucent panels as desktop so the sharp constellation shows through */
  .section {
    background: linear-gradient(180deg, rgba(6,9,18,.34), rgba(3,5,12,.46));
    border-radius: 34px 34px 0 0; margin-top: -34px; }
  .section.alt { background: linear-gradient(180deg, rgba(16,10,30,.34), rgba(5,4,14,.46)); }
  .feature { border-radius: 34px 34px 0 0; margin-top: -34px; }
  .grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .lead-form .row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .nav nav { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 2px; padding: 8px; background: rgba(4,7,14,.96); backdrop-filter: saturate(160%) blur(22px);
    -webkit-backdrop-filter: saturate(160%) blur(22px); border-bottom: 1px solid var(--line); display: none; z-index: 55; }
  .nav nav.open { display: flex; }
  .nav nav a { margin-left: 0; padding: 13px 16px; border-radius: 10px; font-size: 1rem; }
  .nav nav a:not(.btn)::after { display: none; }
  .hero-overlay { padding-top: 24vh; }
  .feature .glass { margin: 0 16px; padding: 34px; }
}
