/* EazyD Studio — HD holographic landing (holo-v1) */
:root {
  --orange: #ff8c1a; --orange-hi: #ffa94d; --navy: #0a1e4a; --navy-deep: #050f2a;
  --cyan: #3ee6ff; --blue: #4f8cff;
  --text: #f2f5fb; --text-muted: #c3cde3; --focus: #ffd166;
  --glass: rgba(16, 42, 92, .42); --glass-hi: rgba(28, 62, 128, .5);
  --holo: linear-gradient(120deg, #ff8c1a, #ffc06b 18%, #3ee6ff 40%, #4f8cff 58%, #ff8c1a 80%, #3ee6ff);
  --font-head: "Orbitron", "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --s1: .5rem; --s2: .75rem; --s3: 1.25rem; --s4: 2rem; --s5: 3.5rem;
  --max: 72rem; --header-h: 3.75rem; --r: 18px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0; min-height: 100vh; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; color: var(--text);
  background: var(--navy-deep);
  -webkit-font-smoothing: antialiased;
}
/* Nebula + soft starfield */
.starfield { position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.9), transparent 60%),
    radial-gradient(1px 1px at 72% 12%, rgba(207,224,255,.8), transparent 60%),
    radial-gradient(1.5px 1.5px at 38% 64%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 88% 48%, rgba(255,217,179,.8), transparent 60%),
    radial-gradient(1px 1px at 22% 82%, rgba(159,194,255,.8), transparent 60%),
    radial-gradient(1.5px 1.5px at 58% 34%, rgba(62,230,255,.7), transparent 60%),
    radial-gradient(1px 1px at 92% 86%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 5% 45%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% -5%, rgba(79,140,255,.45), transparent 65%),
    radial-gradient(ellipse 55% 45% at 90% 30%, rgba(255,140,26,.22), transparent 70%),
    radial-gradient(ellipse 60% 50% at 5% 70%, rgba(62,230,255,.14), transparent 70%),
    radial-gradient(ellipse 70% 50% at 70% 100%, rgba(255,140,26,.14), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 70%);
}
.starfield::after { content: ""; position: absolute; inset: -20%;
  background: conic-gradient(from 0deg at 50% 50%, transparent, rgba(62,230,255,.06), transparent 30%, rgba(255,140,26,.06), transparent 60%);
  filter: blur(40px); animation: nebula 60s linear infinite; }
@keyframes nebula { to { transform: rotate(360deg); } }
.cursor-glow { position: fixed; left: -300px; top: -300px; width: 600px; height: 600px; z-index: -1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, rgba(62,230,255,.12), rgba(255,140,26,.07) 40%, transparent 70%); opacity: 0; transition: opacity .4s; }
.cursor-glow.on { opacity: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ffc98f; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: var(--s2); top: -100%; z-index: 100; padding: var(--s1) var(--s2); background: var(--focus); color: #111; font-weight: 600; border-radius: 8px; }
.skip-link:focus { top: var(--s2); }

/* Glass + holo border utility */
.glass, .card, .feature, .godot-banner, .social a {
  position: relative; background: linear-gradient(160deg, var(--glass-hi), var(--glass));
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid transparent; border-radius: var(--r);
  box-shadow: 0 10px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08);
}
.card::before, .feature::before, .godot-banner::before, .social a::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: var(--holo); background-size: 300% 100%; opacity: .65;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: holo-shift 12s linear infinite; transition: opacity .25s;
}
@keyframes holo-shift { to { background-position: 300% 0; } }
/* sheen */
.card::after, .feature::after, .godot-banner::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; overflow: hidden;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.07) 45%, rgba(62,230,255,.08) 50%, transparent 60%) -150% 0 / 250% 100% no-repeat;
  animation: sheen 9s ease-in-out infinite;
}
@keyframes sheen { 0%, 60% { background-position: -150% 0; } 100% { background-position: 250% 0; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: var(--s2); min-height: var(--header-h); padding: 0 var(--s3);
  background: rgba(5,15,42,.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--holo); background-size: 300% 100%; animation: holo-shift 12s linear infinite; opacity: .8; }
.brand { display: flex; align-items: center; gap: .6rem; min-height: 44px; flex-shrink: 0; text-decoration: none; color: var(--text); font-family: var(--font-head); font-weight: 800; font-size: .95rem; letter-spacing: .04em; }
.brand img { width: 32px; height: 32px; border-radius: 50%; box-shadow: 0 0 12px rgba(255,140,26,.5); }
.nav { display: flex; gap: .25rem; margin-left: auto; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.nav::-webkit-scrollbar { display: none; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .8rem; white-space: nowrap; color: var(--text-muted); font-weight: 600; font-size: .95rem; text-decoration: none; border-radius: 999px; transition: background .2s, color .2s; }
.nav a:hover { color: var(--text); background: rgba(62,230,255,.1); }
.nav a[aria-current] { color: var(--orange); background: rgba(255,140,26,.12); }
@media (max-width: 639px) { .brand span { display: none; } .site-header { padding: 0 var(--s2); } }
@media (min-width: 900px) { .nav { -webkit-mask-image: none; mask-image: none; } }

main { max-width: var(--max); margin: 0 auto; padding: var(--s3) var(--s3) var(--s5); }
section[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

/* Hero + hologram */
.hero { position: relative; text-align: center; padding: var(--s4) 0 var(--s5); }
.holo { position: relative; width: min(64vw, 280px); margin: 0 auto var(--s4); padding-bottom: 46px; }
.holo__img { position: relative; z-index: 2; animation: float 6s ease-in-out infinite; }
.holo__img img { width: 100%; opacity: .96;
  filter: drop-shadow(-2px 0 0 rgba(62,230,255,.75)) drop-shadow(2px 0 0 rgba(255,80,40,.6)) drop-shadow(0 0 22px rgba(62,230,255,.45));
  animation: flicker 7s steps(1) infinite; }
.holo__img::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 50%;
  background: repeating-linear-gradient(180deg, rgba(62,230,255,.16) 0 1px, transparent 1px 4px);
  -webkit-mask: url(img/logo-holo-440.webp) center / contain no-repeat; mask: url(img/logo-holo-440.webp) center / contain no-repeat;
  mix-blend-mode: screen; animation: scan 4s linear infinite; }
.holo__img::before { content: ""; position: absolute; inset: -14%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,140,26,.35), rgba(62,230,255,.18) 45%, transparent 70%); filter: blur(12px); }
.holo__cone { position: absolute; z-index: 1; left: 50%; bottom: 14px; width: 110%; height: 85%; transform: translateX(-50%);
  background: linear-gradient(0deg, rgba(62,230,255,.32), rgba(79,140,255,.08) 60%, transparent);
  clip-path: polygon(38% 100%, 62% 100%, 100% 0, 0 0); filter: blur(3px); opacity: .7; animation: cone 4s ease-in-out infinite; }
.holo__base { position: absolute; z-index: 1; left: 50%; bottom: 0; width: 52%; height: 28px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(ellipse, rgba(62,230,255,.9), rgba(79,140,255,.4) 40%, transparent 70%);
  box-shadow: 0 0 30px rgba(62,230,255,.5), inset 0 0 0 1px rgba(255,140,26,.6); }
.holo__base::after { content: ""; position: absolute; inset: 30% 18%; border-radius: 50%; border: 1px solid rgba(255,140,26,.8); }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes scan { to { background-position: 0 40px; } }
@keyframes cone { 50% { opacity: .5; } }
@keyframes flicker { 0%, 100% { opacity: .96; } 42% { opacity: .82; } 43% { opacity: .96; } 71% { opacity: .9; } 72% { opacity: .96; } }

.hero__title { margin: 0 0 var(--s3); font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 7vw, 3.6rem); line-height: 1.1; letter-spacing: .02em;
  background: linear-gradient(100deg, #fff 20%, #ffd2a3 45%, var(--orange) 55%, #bff6ff 75%, #fff); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: holo-shift 14s linear infinite;
  filter: drop-shadow(0 0 18px rgba(255,140,26,.35)); }
.hero__tagline { margin: 0 auto var(--s4); max-width: 42ch; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--text-muted); }
.hero__tagline strong { color: var(--orange); }
.hero__actions { display: flex; flex-direction: column; gap: var(--s2); max-width: 20rem; margin: 0 auto; }
.hero__actions--left { margin: 0; }
.hero__sub { margin: var(--s3) 0 0; }
.hero__sub a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-muted); font-weight: 600; text-decoration: none; }
.hero__sub a:hover { color: var(--cyan); text-decoration: underline; }

/* Buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .8rem 1.5rem; font-weight: 600; font-size: 1rem; text-decoration: none; border-radius: 999px; border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: linear-gradient(135deg, #ffa94d, var(--orange) 55%, #f07a00); color: #1a0d00; box-shadow: 0 6px 24px rgba(255,140,26,.4), inset 0 1px 0 rgba(255,255,255,.4); }
.btn--primary:hover { color: #1a0d00; box-shadow: 0 8px 32px rgba(255,140,26,.55), 0 0 0 1px rgba(62,230,255,.6), inset 0 1px 0 rgba(255,255,255,.4); }
.btn--lg { min-height: 56px; padding: 1rem 1.9rem; font-size: 1.1rem; }
.btn--secondary, .btn--ghost { color: var(--text); background: linear-gradient(#0c2152, #0a1b44) padding-box, var(--holo) border-box; background-size: 100% 100%, 300% 100%; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--secondary:hover, .btn--ghost:hover { color: var(--text); box-shadow: 0 0 24px rgba(62,230,255,.35); }

/* Sections */
.section { margin-bottom: var(--s5); }
.section__title { margin: 0 0 var(--s2); font-family: var(--font-head); font-weight: 800; font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1.25; color: var(--orange); letter-spacing: .02em; }
.section__title::after { content: ""; display: block; width: 64px; height: 3px; margin-top: .6rem; border-radius: 3px; background: linear-gradient(90deg, var(--orange), var(--cyan)); }
.section__lead { margin: 0 0 var(--s4); max-width: 60ch; color: var(--text-muted); }
.section__note { margin: var(--s3) 0 0; color: var(--text-muted); }

/* Cards */
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.card { display: flex; flex-direction: column; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.card:hover, .card:focus-within { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.45), 0 0 28px rgba(62,230,255,.15); }
.card:hover::before, .card:focus-within::before { opacity: 1; }
.card__media { display: block; aspect-ratio: 315 / 250; margin: 6px 6px 0; border-radius: calc(var(--r) - 6px); overflow: hidden; background: var(--navy-deep); }
.card__media img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; transition: transform .4s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__media img.contain { object-fit: contain; image-rendering: auto; }
.card__body { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; padding: var(--s3); }
.card__title { margin: 0 0 var(--s1); font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; letter-spacing: .02em; }
.card__text { margin: 0 0 var(--s2); color: var(--text-muted); font-size: 1rem; }
.card__link { margin-top: auto; display: inline; padding: .7rem 0; line-height: 1.6; font-weight: 600; text-decoration: none; }
.card__link::after { content: "\00a0→"; transition: padding .15s; }
.card__link:hover { text-decoration: underline; }
.card:hover .card__link::after, .card__link:focus-visible::after { padding-left: 4px; }
.card--row { flex-direction: row; align-items: flex-start; }
.card__icon { position: relative; z-index: 1; display: grid; place-items: center; width: 72px; height: 72px; margin: var(--s3) 0 0 var(--s3); flex-shrink: 0; border-radius: 16px;
  background: linear-gradient(var(--navy), var(--navy)) padding-box, var(--holo) border-box; border: 1px solid transparent; box-shadow: 0 0 18px rgba(62,230,255,.2); }
.card__icon img { width: 48px; height: 48px; }
.pill { align-self: flex-start; margin-bottom: var(--s1); padding: .2rem .7rem; font-size: .8rem; font-weight: 600; letter-spacing: .03em; color: #1a0d00; background: var(--orange); border-radius: 999px; }

/* SAPIENTIA */
.feature { overflow: hidden; display: grid; gap: var(--s3); grid-template-areas: "head" "media" "body"; align-items: start; padding: var(--s4) var(--s3);
  background: radial-gradient(circle at 85% 40%, rgba(255,140,26,.28), transparent 45%), radial-gradient(circle at 10% 15%, rgba(62,230,255,.2), transparent 45%), linear-gradient(135deg, rgba(13,35,82,.7), rgba(5,15,42,.7)); }
.feature::before { opacity: .9; }
.feature__head { grid-area: head; position: relative; z-index: 1; }
.feature__kicker { margin: 0 0 var(--s1); font-size: .85rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.feature__title { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 6vw, 3rem); letter-spacing: .06em; color: var(--text); text-shadow: 0 0 24px rgba(255,140,26,.55), -1px 0 rgba(62,230,255,.6), 1px 0 rgba(255,80,40,.5); }
.feature__media { grid-area: media; position: relative; z-index: 1; margin: 0; justify-self: center; width: min(100%, 22rem); border-radius: 14px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px rgba(62,230,255,.45), 0 0 40px rgba(255,140,26,.3), 0 20px 50px rgba(0,0,0,.5); }
.feature__video { display: block; width: 100%; height: auto; aspect-ratio: 540 / 676; object-fit: cover; }
.feature__body { grid-area: body; position: relative; z-index: 1; }
.feature__text { margin: 0 0 var(--s3); color: var(--text-muted); font-size: 1.1rem; }
.feature__note { margin: var(--s3) 0 0; color: var(--text-muted); font-size: .95rem; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 var(--s3); padding: 0; }
.facts li { padding: .3rem .8rem; font-size: .9rem; font-weight: 600; color: var(--text); border-radius: 999px; background: rgba(62,230,255,.1); box-shadow: inset 0 0 0 1px rgba(62,230,255,.4); }

/* Godot banner */
.godot-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s3); padding: var(--s3) var(--s4); }
.godot-banner > * { position: relative; z-index: 1; }
.godot-banner__title { margin: 0; font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; color: var(--text); }
.godot-banner p { margin: .2rem 0 0; color: var(--text-muted); }

/* Social */
.social { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.social a { display: flex; flex-direction: column; justify-content: center; min-height: 64px; padding: var(--s2) var(--s3); text-decoration: none; color: var(--text); word-break: break-word; transition: transform .2s, box-shadow .2s; }
.social a:hover { color: var(--text); transform: translateY(-2px); box-shadow: 0 0 24px rgba(62,230,255,.2); }
.social a:hover::before { opacity: 1; }
.social strong { color: var(--orange-hi); }
.social span { font-size: .95rem; color: var(--text-muted); }

/* Footer */
.site-footer { position: relative; padding: var(--s4) var(--s3); color: var(--text-muted); background: rgba(5,15,42,.8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--holo); opacity: .8; }
.site-footer p { margin: .35rem 0; }
.site-footer__cols { max-width: var(--max); margin: 0 auto; display: grid; gap: var(--s4); grid-template-columns: 1fr 1fr; }
.site-footer__brand { grid-column: 1 / -1; }
.site-footer__brand img { width: 40px; height: 40px; border-radius: 50%; margin-bottom: var(--s1); }
.site-footer h2 { margin: 0 0 var(--s1); font-family: var(--font-head); font-size: .85rem; letter-spacing: .08em; color: var(--orange); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-muted); text-decoration: none; }
.site-footer li a:hover { color: var(--orange-hi); text-decoration: underline; }
.site-footer__copy { max-width: var(--max); margin: var(--s4) auto 0 !important; padding-top: var(--s3); border-top: 1px solid rgba(62,230,255,.2); text-align: center; font-size: .9rem; }

/* Reveal */
.js-reveal main .section { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal main .section.is-visible { opacity: 1; transform: none; }

@media (min-width: 640px) {
  .hero__actions { flex-direction: row; justify-content: center; max-width: none; }
  .hero__actions--left { justify-content: flex-start; }
  .card-grid--four, .card-grid--two, .social { grid-template-columns: repeat(2, 1fr); }
  .feature { padding: var(--s5) var(--s4); }
}
@media (min-width: 760px) { .site-footer__cols { grid-template-columns: 1.5fr 1fr 1fr 1fr; } .site-footer__brand { grid-column: auto; } }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1.15fr 1fr; grid-template-areas: "head media" "body media"; column-gap: var(--s5); align-content: center; }
  .feature__head { align-self: end; }
  .feature__media { justify-self: end; }
}
@media (min-width: 1100px) {
  main { padding-left: var(--s4); padding-right: var(--s4); }
  .card-grid--four, .social { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-reveal main .section { opacity: 1; transform: none; }
  .cursor-glow { display: none; }
}

/* ===== motion-v1 ===== */
/* Parallax nebula layers */
.nebula { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.nebula__l { position: absolute; left: -10%; right: -10%; top: 0; height: 170vh; contain: strict; }
.n1 { background: radial-gradient(ellipse 40% 18% at 80% 12%, rgba(255,140,26,.14), transparent 70%), radial-gradient(ellipse 35% 15% at 15% 40%, rgba(79,140,255,.16), transparent 70%); }
.n2 { background: radial-gradient(ellipse 30% 12% at 25% 20%, rgba(62,230,255,.10), transparent 70%), radial-gradient(ellipse 30% 14% at 75% 55%, rgba(255,140,26,.10), transparent 70%); }
.n3 { background-image: radial-gradient(1.5px 1.5px at 10% 5%, rgba(255,255,255,.8), transparent 60%), radial-gradient(1px 1px at 60% 12%, rgba(62,230,255,.9), transparent 60%), radial-gradient(1.5px 1.5px at 85% 22%, rgba(255,201,143,.9), transparent 60%), radial-gradient(1px 1px at 30% 30%, #fff, transparent 60%), radial-gradient(1.5px 1.5px at 70% 40%, rgba(159,194,255,.9), transparent 60%); background-size: 100% 60vh; }

/* Glitch intro */
.hero__title { position: relative; }
.hero__title.glitch-in { animation: holo-shift 14s linear infinite, type-in .9s steps(12, end) both; }
.hero__title.glitch-in::before, .hero__title.glitch-in::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; -webkit-text-fill-color: currentColor; }
.hero__title.glitch-in::before { color: rgba(62,230,255,.85); animation: glitch-a 1.5s steps(2, end) both; }
.hero__title.glitch-in::after { color: rgba(255,90,40,.8); animation: glitch-b 1.5s steps(2, end) both; }
@keyframes type-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes glitch-a { 0% { transform: translate(-6px,0); clip-path: inset(10% 0 60% 0); } 30% { transform: translate(4px,-2px); clip-path: inset(50% 0 20% 0); } 60% { transform: translate(-3px,1px); clip-path: inset(30% 0 40% 0); } 100% { transform: none; clip-path: inset(0 0 100% 0); opacity: 0; } }
@keyframes glitch-b { 0% { transform: translate(6px,0); clip-path: inset(60% 0 10% 0); } 30% { transform: translate(-4px,2px); clip-path: inset(20% 0 55% 0); } 60% { transform: translate(3px,-1px); clip-path: inset(70% 0 5% 0); } 100% { transform: none; clip-path: inset(100% 0 0 0); opacity: 0; } }

/* Section scanline sweep */
.motion main .section { position: relative; }
.sweep { position: absolute; left: -2%; right: -2%; top: 0; height: 2px; z-index: 3; pointer-events: none; opacity: 0; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan) 30%, #fff 50%, var(--orange) 70%, transparent);
  box-shadow: 0 0 18px 4px rgba(62,230,255,.45), 0 -20px 40px rgba(62,230,255,.08); }
.is-visible > .sweep { animation: sweep 1.1s cubic-bezier(.4,0,.2,1) .05s 1 both; }
@keyframes sweep { 0% { opacity: 0; transform: translateY(0); } 10% { opacity: 1; } 85% { opacity: .9; } 100% { opacity: 0; transform: translateY(var(--sweep-h, 320px)); } }

/* Tilt cards */
.motion .card, .motion .social a { transform-style: preserve-3d; }
.motion .card.tilting, .motion .social a.tilting { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); transition: transform .08s linear, box-shadow .25s; }
.glare { position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; mix-blend-mode: screen;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.22), rgba(62,230,255,.12) 25%, rgba(255,140,26,.06) 45%, transparent 60%); }
.tilting > .glare { opacity: 1; }
@media (hover: none), (pointer: coarse) { .glare { display: none; } }
@media (prefers-reduced-motion: reduce) { .nebula__l { transform: none !important; } .sweep, .glare { display: none; } .card, .social a { transform: none !important; } }
@media (max-width: 639px) { .n2 { display: none; } }

/* ===== showpiece-v1 ===== */
body { overflow-x: clip; }
/* Hero 3D stage */
.holo-stage { position: relative; display: grid; place-items: center; height: clamp(340px, 58vh, 560px); margin: 0 auto var(--s3); }
.holo-stage .holo { margin: 0; transition: opacity .8s; }
.holo-canvas { position: absolute; top: 0; left: 50%; width: 100vw; height: 100%; transform: translateX(-50%); opacity: 0; transition: opacity .8s; pointer-events: none; }
.holo-stage.gl .holo-canvas { opacity: 1; }
.holo-stage.gl .holo { opacity: 0; }
@media (min-width: 640px) { .holo-stage .holo { width: 300px; } }

/* SAPIENTIA projection reveal */
.proj .feature__media { overflow: visible; border-radius: 0; background: none; box-shadow: none; padding-bottom: 36px; perspective: 900px; }
.proj__screen { position: relative; z-index: 1; border-radius: 14px; overflow: hidden; background: #000; transform-style: preserve-3d;
  box-shadow: 0 0 0 1px rgba(62,230,255,.5), 0 0 40px rgba(62,230,255,.35), 0 0 60px rgba(255,140,26,.2); }
.proj__screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(62,230,255,.07) 0 1px, transparent 1px 3px); }
.proj__beam { position: absolute; z-index: 0; left: 50%; bottom: 18px; width: 170%; height: 125%; pointer-events: none; overflow: hidden; transform: translateX(-50%); transform-origin: bottom; mix-blend-mode: screen;
  clip-path: polygon(42% 100%, 58% 100%, 100% 0, 0 0);
  background: radial-gradient(ellipse 40% 90% at 50% 100%, rgba(140,245,255,.32), transparent 70%), linear-gradient(to top, rgba(62,230,255,.26), rgba(79,140,255,.08) 55%, transparent 88%), repeating-linear-gradient(90deg, rgba(120,240,255,.05) 0 2px, transparent 2px 22px); }
.proj__core { position: absolute; left: 50%; bottom: 0; width: 12%; height: 100%; transform: translateX(-50%); background: linear-gradient(to top, rgba(190,252,255,.45), rgba(90,200,255,.1) 60%, transparent); filter: blur(10px); }
.proj__dust { position: absolute; inset: 0; }
.proj__dust i { position: absolute; bottom: 0; width: var(--s); height: var(--s); border-radius: 50%; background: #bff8ff; box-shadow: 0 0 6px #6fe9ff; opacity: 0; }
.proj__emitter { position: absolute; z-index: 0; left: 50%; bottom: 8px; width: 90%; height: 22px; border-radius: 50%; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(160,250,255,.95), rgba(62,230,255,.4) 40%, transparent 70%); box-shadow: 0 0 0 1px rgba(255,140,26,.45); filter: blur(1px); }
.proj__line { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--cyan); box-shadow: 0 0 16px 4px var(--cyan); opacity: 0; pointer-events: none; }
.proj__bars { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.proj__bars i { position: absolute; left: 0; right: 0; background: linear-gradient(90deg, transparent, rgba(120,240,255,.85), transparent); opacity: 0; }
.proj__corner { position: absolute; z-index: 2; width: 16px; height: 16px; border: 2px solid var(--orange); }
.c1 { top: 6px; left: 6px; border-right: 0; border-bottom: 0; } .c2 { top: 6px; right: 6px; border-left: 0; border-bottom: 0; }
.c3 { bottom: 6px; left: 6px; border-right: 0; border-top: 0; } .c4 { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }
.glitch { position: relative; }
.glitch::before, .glitch::after { content: attr(data-t); position: absolute; inset: 0; pointer-events: none; text-shadow: none; opacity: 0; mix-blend-mode: screen; }
.glitch::before { color: var(--orange); clip-path: inset(0 0 60% 0); }
.glitch::after { color: var(--blue); clip-path: inset(55% 0 0 0); }

/* motion states (JS adds .motion, then .on when in view) */
.motion .proj:not(.on) .proj__screen, .motion .proj:not(.on) .glitch { clip-path: inset(0 0 100% 0); opacity: .2; }
.motion .proj:not(.on) .proj__beam { transform: translateX(-50%) scaleY(0); opacity: 0; }
.motion .proj:not(.on) .proj__emitter { transform: translateX(-50%) scaleX(.1); opacity: 0; }
.motion .proj:not(.on) .proj__corner { opacity: 0; }
.motion .proj.on .glitch { animation: p-wipe 1.1s cubic-bezier(.2,.7,.2,1) both, p-flick 5s 1.2s infinite; }
.motion .proj.on .glitch::before { opacity: .8; animation: p-gl1 3s 1.2s infinite steps(1); }
.motion .proj.on .glitch::after { opacity: .8; animation: p-gl2 3.5s 1.2s infinite steps(1); }
.motion .proj.on .proj__emitter { animation: p-emit .7s cubic-bezier(.2,.8,.2,1) both; }
.motion .proj.on .proj__beam { animation: p-beam 1s .25s cubic-bezier(.2,.8,.2,1) both, p-beamp 3.5s 1.4s ease-in-out infinite; }
.motion .proj.on .proj__dust i { animation: p-rise var(--d) var(--dl) linear infinite; }
.motion .proj.on .proj__screen { animation: p-wipe 1.1s .35s cubic-bezier(.2,.7,.2,1) both, p-settle 1.6s .35s cubic-bezier(.2,.8,.2,1) both; }
.motion .proj.on .proj__screen video { animation: p-chroma 1.6s .4s both; }
.motion .proj.on .proj__line { animation: p-sweep 1.4s .45s ease-out both; }
.motion .proj.on .proj__bars i { animation: p-bar .7s cubic-bezier(.2,.8,.2,1) both; }
.motion .proj.on .proj__corner { animation: p-cin .5s 1.5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes p-wipe { 0% { clip-path: inset(0 0 100% 0); opacity: .2; } 100% { clip-path: inset(-40px); opacity: 1; } }
@keyframes p-sweep { 0% { top: 0; opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes p-chroma { 0% { filter: hue-rotate(90deg) saturate(3) brightness(1.8); opacity: .3; } 30% { opacity: .9; } 40% { opacity: .4; } 60% { filter: none; opacity: 1; } 100% { filter: none; opacity: 1; } }
@keyframes p-flick { 0%, 96%, 100% { opacity: 1; } 97% { opacity: .6; } 99% { opacity: .8; } }
@keyframes p-gl1 { 0%, 90% { transform: translate(-2px, 0); } 92% { transform: translate(-7px, 2px); clip-path: inset(20% 0 50% 0); } 95% { transform: translate(3px, -1px); } }
@keyframes p-gl2 { 0%, 88% { transform: translate(2px, 0); } 90% { transform: translate(7px, -2px); clip-path: inset(60% 0 10% 0); } 94% { transform: translate(-3px, 1px); } }
@keyframes p-emit { from { transform: translateX(-50%) scaleX(.1); opacity: 0; } to { transform: translateX(-50%) scaleX(1); opacity: 1; } }
@keyframes p-beam { from { transform: translateX(-50%) scaleY(0); opacity: 0; } to { transform: translateX(-50%) scaleY(1); opacity: 1; } }
@keyframes p-beamp { 50% { opacity: .75; } }
@keyframes p-rise { 0% { transform: translate(0, 0); opacity: 0; } 15%, 85% { opacity: var(--o); } 100% { transform: translate(var(--dx), calc(-1 * var(--h))); opacity: 0; } }
@keyframes p-settle { 0% { transform: rotateX(18deg) scale(.92); } 55% { transform: rotateX(-2deg) scale(1.01); } 75% { transform: skewX(1.5deg); } 100% { transform: none; } }
@keyframes p-bar { 0% { opacity: 0; transform: translateX(var(--fx)) scaleX(.3); } 50% { opacity: .9; } 100% { opacity: 0; transform: none; } }
@keyframes p-cin { 0% { opacity: 0; transform: scale(1.8); } 60%, 100% { opacity: 1; } 100% { transform: none; } }
@media (max-width: 600px) { .glitch::before { transform: translate(-1px, 0) !important; } .glitch::after { transform: translate(1px, 0) !important; } }
@media (prefers-reduced-motion: reduce) { .glitch::before, .glitch::after { opacity: .6; } .proj__line, .proj__bars, .proj__dust { display: none; } }

/* ===== interactive-v1 ===== */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.starfield-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.holo-stage { touch-action: pan-y; cursor: grab; }
.holo-stage:active { cursor: grabbing; }
/* card flip */
.card.flippable { overflow: visible; perspective: 1000px; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; cursor: pointer; }
.card.flippable::before, .card.flippable::after { display: none; }
.card__inner { position: relative; flex: 1; display: grid; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.card.flipped .card__inner { transform: rotateY(180deg); }
.card__face { grid-area: 1 / 1; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r); -webkit-backface-visibility: hidden; backface-visibility: hidden;
  background: linear-gradient(160deg, rgba(28,62,128,.75), rgba(16,42,92,.7)); box-shadow: 0 10px 40px rgba(0,0,0,.35), inset 0 0 0 1px rgba(62,230,255,.35); }
.card__face--back { transform: rotateY(180deg); padding: var(--s3); justify-content: center; gap: var(--s1);
  background: radial-gradient(circle at 80% 10%, rgba(255,140,26,.25), transparent 50%), radial-gradient(circle at 10% 90%, rgba(62,230,255,.2), transparent 50%), linear-gradient(160deg, #10306a, #0a1e4a); box-shadow: 0 10px 40px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,140,26,.6); }
.card__back-title { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: var(--orange); }
.card__face--back .card__link { margin-top: var(--s2); }
.card__flip { position: absolute; z-index: 4; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: .3rem; min-height: 32px; padding: .2rem .7rem; font: 600 .8rem var(--font-body); color: var(--text); cursor: pointer;
  border: 1px solid rgba(62,230,255,.55); border-radius: 999px; background: rgba(5,15,42,.8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.card__flip:hover { border-color: var(--orange); color: var(--orange-hi); }
.card.flippable .card__body { position: relative; z-index: 1; }
/* sound toggle */
.sound-toggle { position: fixed; z-index: 50; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 1rem; font: 600 .9rem var(--font-body); color: var(--text); cursor: pointer;
  border-radius: 999px; border: 1px solid transparent; background: linear-gradient(#0c2152, #0a1b44) padding-box, var(--holo) border-box; box-shadow: 0 6px 24px rgba(0,0,0,.4); }
.sound-toggle[aria-pressed="true"] { color: #1a0d00; background: linear-gradient(135deg, #ffa94d, var(--orange)) padding-box, var(--holo) border-box; }
.sound-toggle__icon { font-size: 1.05rem; }
/* easter egg */
.egg-toast { position: fixed; z-index: 60; left: 50%; top: calc(var(--header-h) + 16px); width: min(92vw, 30rem); transform: translateX(-50%); padding: .9rem 1.1rem; text-align: center; color: var(--text); border-radius: 16px;
  background: linear-gradient(rgba(10,30,74,.92), rgba(10,30,74,.92)) padding-box, var(--holo) border-box; border: 1px solid transparent; box-shadow: 0 0 40px rgba(62,230,255,.35); }
.egg-toast strong { display: block; font-family: var(--font-head); color: var(--orange); letter-spacing: .04em; }
.egg-toast.show { animation: egg-in .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes egg-in { from { opacity: 0; transform: translate(-50%, -12px) scale(.96); } to { opacity: 1; transform: translateX(-50%); } }
.warping .nebula__l { filter: hue-rotate(40deg) brightness(1.4); transition: filter .4s; }
.warping .holo-stage { animation: warp-shake .25s linear 8; }
@keyframes warp-shake { 50% { transform: translate(1px, -1px); } }
@media (prefers-reduced-motion: reduce) { .card__inner { transition: none; } }
@media (max-width: 639px) { .sound-toggle { padding: 0; width: 44px; justify-content: center; } .sound-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
/* flip button below the card faces, not over the image */
.card__flip { position: relative; top: auto; right: auto; align-self: flex-end; margin: .6rem .25rem 0 0; min-height: 36px; }
.card.flippable .card__body, .card__face--back { padding-bottom: 3.6rem; }
.card__flip { position: absolute; top: auto; right: auto; left: var(--s3); bottom: 14px; margin: 0; align-self: auto; }

.feature.proj > * { min-width: 0; }

/* ---- hero flip card: logo <-> playable demo ---- */
.flip { position: relative; perspective: 1600px; height: clamp(340px, 58vh, 560px); margin: 0 auto var(--s3); }
.flip .holo-stage { margin: 0; height: 100%; }
.flip__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: transform .9s cubic-bezier(.6,.05,.25,1), opacity .9s, visibility 0s .45s; }
.flip__front { transform: rotateY(0deg); }
.flip__back { transform: rotateY(180deg); visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 0 var(--s2, 12px); }
.flip.is-flipped .flip__front { transform: rotateY(-180deg); visibility: hidden; }
.flip.is-flipped .flip__back { transform: rotateY(0deg); visibility: visible; }
.flip--fade .flip__face { transform: none !important; transition: opacity .5s, visibility 0s .25s; }
.flip--fade .flip__back { opacity: 0; } .flip--fade.is-flipped .flip__back { opacity: 1; } .flip--fade.is-flipped .flip__front { opacity: 0; }
.flip__screen { position: relative; width: min(100%, calc((clamp(340px, 58vh, 560px) - 56px) * 16 / 9)); aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #16306e 0%, var(--navy) 45%, #040b20 100%);
  border: 1px solid rgba(255,140,26,.55); box-shadow: 0 0 0 1px rgba(62,230,255,.15), 0 0 40px rgba(255,140,26,.25), 0 0 90px rgba(79,140,255,.18); }
.flip__screen::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(1px 1px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 68% 14%, #cfe9ff, transparent), radial-gradient(1.5px 1.5px at 84% 62%, #ffd2a1, transparent), radial-gradient(1px 1px at 32% 78%, #fff, transparent), radial-gradient(1px 1px at 50% 45%, #9fdcff, transparent); }
.flip__screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .6s; background: #000; }
.flip__screen.is-ready iframe { opacity: 1; }
.flip__prompt, .flip__loading { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px; text-align: center; }
.flip__prompt[hidden], .flip__loading[hidden] { display: none; }
.flip__q { margin: 0; font-family: var(--font-head); font-size: clamp(1rem, 3.6vw, 1.5rem); color: #fff; }
.flip__q strong { color: var(--orange); }
.flip__note { margin: 0 0 6px; font-size: .85rem; color: var(--text-muted, #b9c4e0); }
.flip__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.flip__actions .btn { min-height: 44px; padding: 0 18px; }
.flip__loading p { margin: 0; font-family: var(--font-head); font-size: .9rem; letter-spacing: .05em; color: var(--cyan); }
.flip__spin { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(62,230,255,.2); border-top-color: var(--orange); animation: flipspin .9s linear infinite; }
@keyframes flipspin { to { transform: rotate(360deg); } }
.flip__bar { width: min(70%, 320px); height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.flip__bar i { display: block; height: 100%; width: 4%; background: linear-gradient(90deg, var(--orange), var(--cyan)); transition: width .3s; }
.flip__tools { display: flex; gap: 8px; }
.flip__btn { min-height: 36px; padding: 0 14px; border-radius: 999px; font: 600 .82rem/1 var(--font-body, Inter, sans-serif); cursor: pointer;
  color: #fff; background: rgba(10,30,74,.75); border: 1px solid rgba(255,140,26,.6); backdrop-filter: blur(6px); }
.flip__btn:hover:not(:disabled) { background: var(--orange); color: var(--navy); }
.flip__btn:disabled { opacity: .45; cursor: default; }
.flip__btn--play { position: absolute; z-index: 3; left: 50%; bottom: 6px; transform: translateX(-50%); }
@media (prefers-reduced-motion: reduce) { .flip__spin { animation-duration: 3s; } }
