/* =========================================================
   Gamma Founder — Design System
   One stylesheet for every page. New pages must reuse these
   tokens and components so the brand stays consistent.
   ========================================================= */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #04060c;
  --bg-2: #070c18;
  --navy: #0a1226;
  --surface: #0c1427;
  --surface-2: #101a33;
  --line: rgba(140, 170, 255, 0.12);
  --line-strong: rgba(140, 170, 255, 0.24);
  --text: #e9eefb;
  --text-soft: #c3cde6;
  --muted: #8f9dbd;
  --blue: #3b82f6;
  --blue-2: #60a5fa;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --violet-2: #a78bfa;
  --grad: linear-gradient(120deg, #22d3ee 0%, #3b82f6 45%, #8b5cf6 100%);
  --grad-soft: linear-gradient(140deg, rgba(34, 211, 238, 0.14), rgba(59, 130, 246, 0.08) 45%, rgba(139, 92, 246, 0.14));
  --glow-cyan: 0 0 0 1px rgba(34, 211, 238, 0.35), 0 10px 40px -10px rgba(34, 211, 238, 0.45);
  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue-2); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--cyan); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.6em; color: #fff; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1.1em; color: var(--text-soft); }
ul, ol { color: var(--text-soft); padding-left: 1.2em; }
li { margin-bottom: 0.4em; }
strong { color: var(--text); font-weight: 600; }
::selection { background: rgba(34, 211, 238, 0.3); color: #fff; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--cyan); color: #00121a; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #00121a; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 820px; }

.section { padding: var(--section) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.section-line { border-top: 1px solid var(--line); }

.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--grad); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-soft); max-width: 62ch; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; letter-spacing: 0.01em;
  border: 1px solid var(--line-strong); color: var(--text); background: var(--b-bg);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease), color 0.2s;
  cursor: pointer; white-space: nowrap; overflow: hidden; isolation: isolate;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn:hover { transform: translateY(-2px); color: #fff; border-color: rgba(34, 211, 238, 0.6); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { border-color: transparent; color: #031018; background: var(--grad); background-size: 160% 100%; background-position: 0 0; box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.7); }
.btn-primary:hover { color: #031018; background-position: 100% 0; box-shadow: 0 16px 40px -12px rgba(34, 211, 238, 0.8); border-color: transparent; }
.btn-ghost { background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(6px); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; color: var(--text); }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.link-arrow:hover { color: var(--cyan); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.is-open { background: rgba(4, 6, 12, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand:hover { color: #fff; }
.brand img { height: 40px; width: auto; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 4px; position: relative; }
.nav a { position: relative; padding: 10px 14px; color: var(--text-soft); font-size: 0.94rem; font-weight: 500; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav-indicator { position: absolute; bottom: 4px; height: 2px; border-radius: 2px; background: var(--grad); left: 0; width: 0; opacity: 0; transition: transform 0.45s var(--ease), width 0.45s var(--ease), opacity 0.3s; pointer-events: none; }
.header-cta { margin-left: 10px; }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03); color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform 0.3s var(--ease), background 0.2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.is-open .nav-toggle span { background: transparent; }
.is-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.is-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 18px var(--gutter) 40px;
    background: rgba(4, 6, 12, 0.97); backdrop-filter: blur(16px);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
    overflow-y: auto;
  }
  .is-open .nav { opacity: 1; transform: none; visibility: visible; }
  .nav a { font-size: 1.15rem; padding: 16px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-indicator { display: none; }
  .header-cta { margin: 24px 0 0; }
  .nav a.header-cta { border-bottom: 0; padding: 0 24px; color: #031018; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 80px; overflow: hidden; isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(60% 50% at 78% 35%, rgba(59, 130, 246, 0.22), transparent 70%),
    radial-gradient(40% 40% at 90% 80%, rgba(139, 92, 246, 0.2), transparent 70%),
    radial-gradient(50% 50% at 10% 10%, rgba(34, 211, 238, 0.10), transparent 70%),
    var(--bg);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 200px; z-index: -1; background: linear-gradient(180deg, transparent, var(--bg)); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { margin-bottom: 36px; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03); font-size: 0.84rem; color: var(--text-soft); margin-bottom: 28px; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.hero-logo { margin-bottom: 28px; }
.hero-logo img { height: 64px; width: auto; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-meta div { font-size: 0.86rem; color: var(--muted); }
.hero-meta strong { display: block; font-family: var(--font-display); font-size: 1rem; color: #fff; font-weight: 600; }

/* Orbital core visual */
.core { position: relative; aspect-ratio: 1; width: 100%; max-width: 480px; margin-left: auto; }
.core svg { width: 100%; height: 100%; overflow: visible; }
.core .orbit { fill: none; stroke: rgba(140, 170, 255, 0.18); stroke-width: 1; }
.core .orbit-dash { fill: none; stroke: url(#coreGrad); stroke-width: 1.4; stroke-dasharray: 2 10; }
.core .spin-slow { transform-origin: 250px 250px; animation: spin 60s linear infinite; }
.core .spin-mid { transform-origin: 250px 250px; animation: spin 38s linear infinite reverse; }
.core .spin-fast { transform-origin: 250px 250px; animation: spin 24s linear infinite; }
.core .sat { fill: #fff; }
.core .core-glow { animation: breathe 6s ease-in-out infinite; transform-origin: 250px 250px; }
.core-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; font-family: var(--font-display); }
.core-label span { display: block; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.core-label strong { font-size: clamp(1.1rem, 2.2vw, 1.5rem); color: #fff; font-weight: 600; }
.core-chip { position: absolute; padding: 8px 14px; border-radius: 999px; font-size: 0.8rem; font-weight: 500; border: 1px solid var(--line-strong); background: rgba(8, 14, 30, 0.8); color: var(--text-soft); backdrop-filter: blur(8px); white-space: nowrap; animation: float 7s ease-in-out infinite; }
.core-chip:nth-of-type(1) { top: 8%; left: 2%; }
.core-chip:nth-of-type(2) { top: 26%; right: -4%; animation-delay: -2s; }
.core-chip:nth-of-type(3) { bottom: 18%; left: -4%; animation-delay: -4s; }
.core-chip:nth-of-type(4) { bottom: 4%; right: 8%; animation-delay: -1s; }
.core-chip i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 8px; vertical-align: middle; background: var(--cyan); }
.core-chip:nth-of-type(2) i { background: var(--blue-2); }
.core-chip:nth-of-type(3) i { background: var(--violet-2); }
.core-chip:nth-of-type(4) i { background: #fff; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { opacity: 0.55; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .core { max-width: 380px; margin: 8px auto 0; }
}
@media (max-width: 520px) {
  .core-chip { font-size: 0.72rem; padding: 6px 10px; }
  .core-chip:nth-of-type(2) { right: 0; }
  .core-chip:nth-of-type(3) { left: 0; }
}

/* Entrance choreography (JS adds .is-ready to <html>) */
.js [data-enter] { opacity: 0; transform: translateY(18px); filter: blur(6px); }
.js.is-ready [data-enter] { opacity: 1; transform: none; filter: none; transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.js.is-ready [data-enter="1"] { transition-delay: 0.05s; }
.js.is-ready [data-enter="2"] { transition-delay: 0.2s; }
.js.is-ready [data-enter="3"] { transition-delay: 0.35s; }
.js.is-ready [data-enter="4"] { transition-delay: 0.5s; }
.js.is-ready [data-enter="5"] { transition-delay: 0.65s; }
.js.is-ready [data-enter="6"] { transition-delay: 0.8s; }

/* Scroll reveal */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal-stagger] > * { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js [data-reveal-stagger].is-visible > * { opacity: 1; transform: none; }
.js [data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.js [data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.js [data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 0.24s; }
.js [data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 0.32s; }
.js [data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 0.40s; }
.js [data-reveal-stagger].is-visible > *:nth-child(7) { transition-delay: 0.48s; }
.js [data-reveal-stagger].is-visible > *:nth-child(8) { transition-delay: 0.56s; }
.js [data-reveal-stagger].is-visible > *:nth-child(n+9) { transition-delay: 0.62s; }

/* Page transition veil */
.page-veil { position: fixed; inset: 0; z-index: 999; background: var(--bg); pointer-events: none; opacity: 0; transition: opacity 0.22s ease; }
.page-veil.is-leaving { opacity: 1; }
.js body { animation: page-in 0.5s var(--ease) both; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(56px, 9vw, 110px)) 0 clamp(56px, 8vw, 96px); overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(50% 70% at 85% 10%, rgba(59, 130, 246, 0.2), transparent 70%), radial-gradient(40% 60% at 5% 100%, rgba(139, 92, 246, 0.14), transparent 70%), var(--bg); }
.page-hero .hero-canvas { opacity: 0.55; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 18ch; }
.page-hero .lead { margin-bottom: 30px; }
.page-hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: 1fr; } }

/* Breadcrumbs */
.breadcrumbs { margin-bottom: 26px; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.85rem; color: var(--muted); }
.breadcrumbs li { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: rgba(140, 170, 255, 0.35); }
.breadcrumbs a { color: var(--text-soft); }
.breadcrumbs [aria-current] { color: var(--cyan); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; padding: clamp(22px, 2.6vw, 32px); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 26, 51, 0.72), rgba(10, 16, 32, 0.72));
  border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.5s var(--ease); background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(34, 211, 238, 0.12), transparent 60%); }
.card:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, 0.32); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card-static:hover { transform: none; }

.icon {
  width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px;
  background: var(--grad-soft); border: 1px solid var(--line-strong); color: var(--cyan);
}
.icon svg { width: 24px; height: 24px; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.04em; border: 1px solid var(--line-strong); color: var(--text-soft); background: rgba(255, 255, 255, 0.03); }
.pill-live { color: #5eead4; border-color: rgba(94, 234, 212, 0.35); }
.pill-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #5eead4; box-shadow: 0 0 8px #5eead4; }
.pill-dev { color: #fcd34d; border-color: rgba(252, 211, 77, 0.35); }
.pill-dev::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fcd34d; }
.pill-online { color: var(--blue-2); border-color: rgba(96, 165, 250, 0.4); }
.pill-offline { color: var(--violet-2); border-color: rgba(167, 139, 250, 0.4); }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: 0 0 20px; }
.tag-list li { margin: 0; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 16px; height: 16px; border-radius: 50%; background: var(--grad-soft); border: 1px solid rgba(34, 211, 238, 0.5); }
.check-list li::after { content: ""; position: absolute; left: 5px; top: calc(0.42em + 4px); width: 6px; height: 4px; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg); }

/* ---------- Project cards ---------- */
.project-card { padding: 0; display: flex; flex-direction: column; }
.project-visual { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--navy); }
.project-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.project-visual.contain img { object-fit: contain; padding: 8%; }
.project-card:hover .project-visual img { transform: scale(1.04); }
.project-body { padding: clamp(22px, 2.4vw, 30px); display: flex; flex-direction: column; flex: 1; }
.project-body .pill { align-self: flex-start; margin-bottom: 16px; }
.project-body p { flex: 1; }
.project-body .link-arrow { margin-top: 8px; }
.project-card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; }
.project-card-wide .project-visual { aspect-ratio: auto; min-height: 320px; border-bottom: 0; border-right: 1px solid var(--line); }
@media (max-width: 800px) { .project-card-wide { grid-template-columns: 1fr; } .project-card-wide .project-visual { min-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); } }

/* Generated project art (used until official banners are supplied) */
.art { position: absolute; inset: 0; overflow: hidden; }
.art svg { width: 100%; height: 100%; }
.art-label { position: absolute; left: 24px; bottom: 20px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 3vw, 2rem); color: #fff; letter-spacing: -0.02em; }
.art-label small { display: block; font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.art-bol { background: radial-gradient(70% 90% at 70% 30%, rgba(34, 211, 238, 0.35), transparent 60%), radial-gradient(60% 80% at 20% 90%, rgba(59, 130, 246, 0.35), transparent 60%), #06101f; }
.art-zama { background: radial-gradient(70% 90% at 75% 25%, rgba(59, 130, 246, 0.35), transparent 60%), radial-gradient(60% 80% at 15% 85%, rgba(34, 211, 238, 0.22), transparent 60%), #060d1d; }
.art-sudagir { background: radial-gradient(70% 90% at 70% 30%, rgba(139, 92, 246, 0.35), transparent 60%), radial-gradient(60% 80% at 20% 90%, rgba(59, 130, 246, 0.25), transparent 60%), #0a0a1f; }
.art-future { background: radial-gradient(70% 90% at 60% 40%, rgba(167, 139, 250, 0.28), transparent 60%), radial-gradient(60% 80% at 10% 10%, rgba(34, 211, 238, 0.18), transparent 60%), #080b1c; }
.art .wave { stroke-dasharray: 6 8; animation: dash 12s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -280; } }

/* ---------- Split / feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-60 { grid-template-columns: 1.2fr 0.8fr; }
@media (max-width: 900px) { .split, .split-60 { grid-template-columns: 1fr; } }

.panel { border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--grad-soft); padding: clamp(28px, 4vw, 48px); position: relative; overflow: hidden; }
.panel-plain { background: linear-gradient(180deg, rgba(16, 26, 51, 0.6), rgba(8, 12, 24, 0.6)); }

.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.stat { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.stat strong { display: block; font-family: var(--font-display); font-size: 1.3rem; color: #fff; margin-bottom: 4px; }
.stat span { font-size: 0.88rem; color: var(--muted); }
@media (max-width: 720px) { .stat-row { grid-template-columns: 1fr; } }

/* Mission/vision */
.mv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.mv .card { padding: clamp(28px, 4vw, 44px); }
.mv .card h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
@media (max-width: 720px) { .mv { grid-template-columns: 1fr; } }

/* ---------- Ecosystem visualization ---------- */
.eco { position: relative; max-width: 980px; margin: 0 auto; }
.eco svg { width: 100%; height: auto; overflow: visible; }
.eco .eco-link { fill: none; stroke: rgba(140, 170, 255, 0.22); stroke-width: 1.2; }
.eco .eco-flow { fill: none; stroke: url(#ecoGrad); stroke-width: 2; stroke-dasharray: 4 14; animation: dash 6s linear infinite; }
.eco .eco-node rect { fill: #0b1428; stroke: rgba(140, 170, 255, 0.28); stroke-width: 1; transition: stroke 0.3s; }
.eco a:hover rect, .eco a:focus rect { stroke: var(--cyan); }
.eco a:focus { outline: none; }
.eco a:focus-visible rect { stroke: var(--cyan); stroke-width: 2; }
.eco .eco-node text { font-family: var(--font-display); fill: #fff; font-size: 17px; font-weight: 600; }
.eco .eco-node .sub { fill: #8f9dbd; font-size: 12px; font-weight: 500; font-family: var(--font-body); }
.eco .eco-hub circle.ring { fill: none; stroke: url(#ecoGrad); stroke-width: 1.5; }
.eco .eco-hub text { font-family: var(--font-display); fill: #fff; font-weight: 600; font-size: 20px; }
.eco .eco-hub .sub { fill: #8f9dbd; font-size: 11px; letter-spacing: 2px; font-family: var(--font-body); }
.eco .pulse { transform-origin: 490px 250px; animation: breathe 5s ease-in-out infinite; }
.eco-list { display: none; }
@media (max-width: 680px) {
  .eco svg { display: none; }
  .eco-list { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
  .eco-list li { margin: 0; }
  .eco-list .eco-hub-m { text-align: center; padding: 22px; border-radius: var(--radius); border: 1px solid rgba(34, 211, 238, 0.4); background: var(--grad-soft); }
  .eco-list a { display: block; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: #fff; font-family: var(--font-display); font-weight: 600; }
  .eco-list a span { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.85rem; color: var(--muted); }
}

/* ---------- Founder ---------- */
.founder-card { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.portrait { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line-strong); background: var(--navy); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.portrait-initials { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: radial-gradient(60% 60% at 50% 40%, rgba(59, 130, 246, 0.3), transparent 70%), var(--navy); }
.portrait-initials span { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 5rem); font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.portrait-initials small { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.portrait::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04); pointer-events: none; }
@media (max-width: 820px) { .founder-card { grid-template-columns: 1fr; } .portrait { max-width: 360px; } }

.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(180deg, var(--cyan), var(--violet), transparent); }
.timeline li { position: relative; padding: 0 0 30px 40px; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 2px solid var(--cyan); box-shadow: 0 0 12px rgba(34, 211, 238, 0.5); }
.timeline .when { font-family: var(--font-display); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); }
.timeline h3 { margin: 6px 0 8px; font-size: 1.15rem; }
.timeline p { margin-bottom: 6px; }
.source { font-size: 0.82rem; color: var(--muted); }
.source a { color: var(--muted); text-decoration: underline; text-decoration-color: rgba(140, 170, 255, 0.35); text-underline-offset: 3px; }
.source a:hover { color: var(--cyan); }

/* ---------- Articles ---------- */
.article-card { display: flex; flex-direction: column; padding: 0; }
.article-thumb { aspect-ratio: 16 / 9; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.article-thumb .art-label { font-size: 1.05rem; right: 24px; line-height: 1.3; }
.article-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: 0.82rem; color: var(--muted); margin-bottom: 12px; }
.article-body h3 { font-size: 1.2rem; }
.article-body p { flex: 1; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: var(--radius-l); padding: clamp(36px, 6vw, 72px); overflow: hidden; isolation: isolate; border: 1px solid var(--line-strong); background: radial-gradient(70% 120% at 100% 0%, rgba(59, 130, 246, 0.35), transparent 60%), radial-gradient(60% 100% at 0% 100%, rgba(139, 92, 246, 0.3), transparent 60%), var(--navy); }
.cta-band h2 { max-width: 20ch; }
.cta-band .lead { margin-bottom: 30px; }
.cta-band .grid-lines { position: absolute; inset: 0; z-index: -1; opacity: 0.35; background-image: linear-gradient(rgba(140, 170, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 170, 255, 0.08) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(70% 70% at 70% 30%, #000, transparent); -webkit-mask-image: radial-gradient(70% 70% at 70% 30%, #000, transparent); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-item .icon { margin: 0; flex: none; }
.contact-item h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-item p { margin: 0; overflow-wrap: anywhere; }

.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 0.88rem; font-weight: 500; color: var(--text); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: 12px; font: inherit; color: var(--text);
  background: rgba(4, 8, 18, 0.7); border: 1px solid var(--line-strong); transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18); }
.field .error { display: block; min-height: 1.2em; margin-top: 6px; font-size: 0.82rem; color: #fca5a5; }
.field [aria-invalid="true"] { border-color: #f87171; }
.form-note { font-size: 0.86rem; color: var(--muted); margin: 0; }
.form-status { padding: 16px 18px; border-radius: 12px; border: 1px solid rgba(94, 234, 212, 0.35); background: rgba(94, 234, 212, 0.06); color: var(--text); }
.form-status[hidden] { display: none; }
.form-status p { margin: 0 0 6px; color: var(--text-soft); }
.form-status p:last-child { margin: 0; }

/* ---------- Prose (legal & long-form) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.notice { padding: 18px 20px; border-radius: 12px; border: 1px solid rgba(252, 211, 77, 0.35); background: rgba(252, 211, 77, 0.06); color: var(--text-soft); font-size: 0.94rem; margin-bottom: 2em; }
.notice strong { color: #fde68a; }

/* ---------- Social ---------- */
.social { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.social li { margin: 0; }
.social a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-soft); font-size: 0.9rem; font-weight: 500; transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease); }
.social a:hover { color: #fff; border-color: rgba(34, 211, 238, 0.6); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg), #02040a); padding: clamp(56px, 8vw, 96px) 0 32px; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: 50%; top: -1px; width: min(720px, 80%); height: 1px; transform: translateX(-50%); background: var(--grad); opacity: 0.7; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr) 1.3fr; gap: 36px; }
.footer-brand p { font-size: 0.92rem; max-width: 34ch; margin-top: 18px; }
.site-footer h2 { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 18px; font-family: var(--font-display); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--text-soft); font-size: 0.92rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.footer-bottom p { margin: 0; color: var(--muted); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-legal a { color: var(--muted); font-size: 0.85rem; }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } .footer-contact { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; text-align: center; position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + 40px) 0 60px; }
.notfound .code { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 11rem); font-weight: 700; line-height: 1; letter-spacing: -0.05em; }
.notfound .btn-row { justify-content: center; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-l { margin-top: clamp(32px, 4vw, 56px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.divider { height: 1px; background: var(--line); margin: clamp(40px, 6vw, 72px) 0; }
.btn-row.center { justify-content: center; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .js [data-enter], .js [data-reveal], .js [data-reveal-stagger] > * { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* Future ventures (rendered from assets/js/ventures-data.js) */
.venture-body { display: flex; flex-direction: column; gap: 4px; }
.venture-body .pill { align-self: flex-start; margin-bottom: 12px; }

/* ---------- Official brand assets ---------- */
.brand .brand-mark { width: auto; height: 34px; }
.footer-logo { width: 120px; height: auto; }
.project-visual.contain img { object-fit: contain; padding: 0; }
.project-visual.banner-dark { background: #010805; }
.project-visual.banner-dark img { object-fit: contain; }
.hero-logo img { height: 72px; width: auto; }
.core-mark { position: absolute; left: 50%; top: 50%; width: 19%; transform: translate(-50%, -52%); filter: drop-shadow(0 0 18px rgba(34, 211, 238, 0.45)); }
.core-particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.js .core.has-particles .core-mark { opacity: 0; transition: opacity 1.2s var(--ease); }
.js .core.has-particles.is-formed .core-mark { opacity: 1; }

/* Full-bleed official banners (never cropped) */
.banner-frame { border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line-strong); background: #010805; box-shadow: var(--shadow); }
.banner-frame img { width: 100%; height: auto; }
.banner-frame.light { background: #fff; }

/* App screenshots */
.device-row { display: flex; align-items: flex-end; justify-content: center; gap: clamp(16px, 4vw, 40px); flex-wrap: wrap; }
.device-row figure { margin: 0; text-align: center; }
.device-row img { width: auto; max-height: 460px; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6)); }
.device-row .android img { max-height: 400px; }
.device-row figcaption { margin-top: 14px; font-size: 0.85rem; color: var(--muted); }
.device-wide { margin-top: clamp(28px, 4vw, 48px); }
.device-wide img { margin: 0 auto; max-width: min(648px, 100%); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6)); }
.qr-card { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: center; }
.qr-card img { border-radius: 14px; background: #fff; }
@media (max-width: 560px) { .qr-card { grid-template-columns: 1fr; } .qr-card img { max-width: 200px; } }
.logo-tile { display: flex; align-items: center; justify-content: center; padding: clamp(24px, 4vw, 40px); }
.logo-tile img { max-width: 260px; width: 100%; filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.5)); }
.badge-float { position: absolute; right: 18px; top: 18px; width: 72px; animation: float 7s ease-in-out infinite; }
.split .stat-row { grid-template-columns: 1fr; }
.project-visual.square { aspect-ratio: 1 / 1; max-height: 420px; }
.project-visual.square img { object-fit: contain; }
.footer-brand .brand img.footer-logo { width: 120px; height: auto; }
/* Mobile menu: a backdrop-filter on the header would trap the fixed nav inside it */
.site-header.is-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(4, 6, 12, 0.98); }
@media (max-width: 980px) { .nav { backdrop-filter: none; -webkit-backdrop-filter: none; } }
@media (max-width: 980px) {
  .nav { background: var(--bg); }
  .nav a.header-cta { border-radius: 999px; min-height: 52px; }
}

/* ---------- Founder portrait with platform icons ---------- */
.section-tech { overflow: hidden; isolation: isolate; }
.section-tech .hero-canvas { opacity: 0.7; }
.portrait-wrap { position: relative; max-width: 420px; margin: 0 auto; padding: 28px; transform-style: preserve-3d; transition: transform 0.6s var(--ease); }
.portrait-wrap .portrait { position: relative; z-index: 1; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(34, 211, 238, 0.18); }
.portrait-wrap .portrait picture, .portrait-wrap .portrait img { display: block; width: 100%; height: 100%; }
.portrait-wrap .portrait img { object-fit: cover; object-position: center 18%; transition: transform 1.2s var(--ease); }
.portrait-wrap:hover .portrait img { transform: scale(1.04); }
.portrait-wrap .portrait::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, transparent 60%, rgba(4, 6, 12, 0.55)); }
.portrait-badge { position: absolute; left: 16px; bottom: 16px; z-index: 2; padding: 6px 14px; border-radius: 999px; font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; color: #fff; background: rgba(8, 14, 30, 0.75); border: 1px solid rgba(34, 211, 238, 0.45); backdrop-filter: blur(8px); }
.portrait-orbit { position: absolute; inset: -4%; border-radius: 50%; border: 1px dashed rgba(96, 165, 250, 0.35); animation: spin 40s linear infinite; z-index: 0; }
.portrait-orbit::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; border: 1px solid rgba(139, 92, 246, 0.22); }
.portrait-orbit::after { content: ""; position: absolute; top: 50%; left: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }

.portrait-icons { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.portrait-icons li { position: absolute; margin: 0; pointer-events: auto; animation: float 6s ease-in-out infinite; }
.portrait-icons a { position: relative; display: block; width: 64px; height: 64px; border-radius: 18px; transition: transform 0.45s var(--ease), filter 0.45s var(--ease); filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.55)); }
.portrait-icons img { width: 100%; height: 100%; object-fit: contain; }
.portrait-icons a::after { content: ""; position: absolute; inset: -8px; border-radius: 22px; border: 2px solid rgba(34, 211, 238, 0); transition: border-color 0.4s, inset 0.4s var(--ease); }
.portrait-icons a:hover, .portrait-icons a:focus-visible { transform: translateY(-6px) scale(1.16) rotate(-4deg); filter: drop-shadow(0 0 18px rgba(34, 211, 238, 0.7)) drop-shadow(0 16px 22px rgba(0, 0, 0, 0.6)); }
.portrait-icons a:hover::after, .portrait-icons a:focus-visible::after { border-color: rgba(34, 211, 238, 0.7); inset: -6px; }
.pi-label { position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translate(-50%, 6px); white-space: nowrap; padding: 6px 12px; border-radius: 8px; font-size: 0.78rem; font-weight: 600; color: #fff; background: rgba(8, 14, 30, 0.92); border: 1px solid var(--line-strong); opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s var(--ease); }
.portrait-icons a:hover .pi-label, .portrait-icons a:focus-visible .pi-label { opacity: 1; transform: translate(-50%, 0); }
.pi-zama-shops { top: 8%; left: -4%; }
.pi-linkedin { top: 46%; left: -8%; animation-delay: -2s !important; }
.pi-youtube { bottom: 10%; left: -2%; animation-delay: -4s !important; }
.pi-gamma-founder { top: 4%; right: -4%; animation-delay: -1s !important; }
.pi-gamma-founder a { filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.25)) drop-shadow(0 12px 18px rgba(0, 0, 0, 0.55)); }
.pi-whatsapp { top: 42%; right: -8%; animation-delay: -3s !important; }
.pi-facebook { bottom: 12%; right: -4%; animation-delay: -5s !important; }
@media (max-width: 560px) {
  .portrait-wrap { padding: 22px; }
  .portrait-icons a { width: 52px; height: 52px; border-radius: 14px; }
  .pi-linkedin { left: -2%; } .pi-whatsapp { right: -2%; }
  .pi-zama-shops { left: 0; } .pi-gamma-founder { right: 0; }
}
.prose .btn { text-decoration: none; }
.more-card { display: flex; flex-direction: column; justify-content: center; }
.more-card .btn-row { flex-direction: column; align-items: flex-start; }

/* ---------- Dark-theme treatment for bright artwork ---------- */
.project-visual.banner-blue { background: linear-gradient(180deg, #4577dc 0%, #2b5bc0 50%, #1d438f 100%); }
.project-visual.banner-blue img { object-fit: contain; }
.banner-frame.soft-dark { position: relative; background: var(--navy); padding: clamp(10px, 1.6vw, 18px); }
.banner-frame.soft-dark img { border-radius: calc(var(--radius-l) - 10px); filter: brightness(0.86) saturate(1.08); transition: filter 0.6s var(--ease); }
.banner-frame.soft-dark:hover img { filter: none; }
.qr-card img { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.04); }

/* ---------- Cursor magnifier (desktop with a fine pointer only) ---------- */
.cursor-lens { position: fixed; left: 0; top: 0; z-index: 998; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; pointer-events: none; border: 1.5px solid rgba(34, 211, 238, 0.65); background: radial-gradient(circle, rgba(34, 211, 238, 0.10), rgba(34, 211, 238, 0) 70%); box-shadow: 0 0 18px rgba(34, 211, 238, 0.25); opacity: 0; transition: width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease), opacity 0.3s, border-color 0.3s; }
.cursor-lens.is-on { opacity: 1; }
.cursor-lens.is-zoom { width: 58px; height: 58px; margin: -29px 0 0 -29px; border-color: rgba(139, 92, 246, 0.75); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .zoomable { transition: scale 0.35s var(--ease); }
  .zoomable.is-zoomed { scale: 1.06; }
  .zoomable.zoom-text.is-zoomed { scale: 1.035; }
  .zoomable.zoom-media.is-zoomed { scale: 1.03; }
}

/* ---------- Official round logo in the hero core & ecosystem hub ---------- */
.core-mark { display: none; }
.core-logo { position: absolute; left: 50%; top: 50%; width: 24.8%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; z-index: 2; cursor: pointer; transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); box-shadow: 0 0 0 1.5px rgba(59, 130, 246, 0.85), 0 0 30px rgba(34, 211, 238, 0.35); }
.core-logo img { width: 100%; height: 100%; border-radius: 50%; display: block; position: relative; z-index: 1; }
.core-scan { position: absolute; inset: -14%; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 70%, rgba(34, 211, 238, 0.65) 85%, transparent 100%); -webkit-mask: radial-gradient(circle, transparent 63%, #000 64%, #000 70%, transparent 71%); mask: radial-gradient(circle, transparent 63%, #000 64%, #000 70%, transparent 71%); opacity: 0.35; animation: spin 6s linear infinite; }
.core-logo::before, .core-logo::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(34, 211, 238, 0.6); opacity: 0; pointer-events: none; }
.core:hover .core-logo { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.95), 0 0 50px rgba(34, 211, 238, 0.6), 0 0 90px rgba(139, 92, 246, 0.35); }
.core:hover .core-scan { opacity: 1; animation-duration: 1.6s; }
.core:hover .core-logo::before { animation: ripple 1.6s var(--ease) infinite; }
.core:hover .core-logo::after { animation: ripple 1.6s var(--ease) 0.8s infinite; }
.core:hover .spin-fast, .core:hover .spin-mid, .core:hover .spin-slow { animation-duration: 8s; }
@keyframes ripple { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(1.9); opacity: 0; } }
.js .core.has-particles .core-logo img { opacity: 0; transition: opacity 1.2s var(--ease); }
.js .core.has-particles.is-formed .core-logo img { opacity: 1; }

.eco .hub-scan { fill: none; stroke: url(#ecoGrad); stroke-width: 2; stroke-dasharray: 60 470; transform-origin: 490px 250px; animation: spin 8s linear infinite; opacity: 0.5; }
.eco .hub-wave { fill: none; stroke: rgba(34, 211, 238, 0.7); stroke-width: 1.5; transform-origin: 490px 250px; opacity: 0; }
.eco .hub-logo { transform-origin: 490px 250px; transition: transform 0.6s var(--ease), filter 0.6s var(--ease); }
.eco .eco-hub { cursor: pointer; }
.eco .eco-hub:hover .hub-logo { transform: scale(1.08); filter: drop-shadow(0 0 16px rgba(34, 211, 238, 0.7)); }
.eco .eco-hub:hover .hub-scan { opacity: 1; animation-duration: 1.8s; }
.eco .eco-hub:hover .hub-wave { animation: ripple 1.6s var(--ease) infinite; }
.eco .eco-hub:hover ~ a .eco-flow, .eco:hover .eco-flow { animation-duration: 2.5s; }

/* ---------- Banners always shown in full: frame follows the banner's own shape ---------- */
.project-visual.fit-banner img { object-fit: contain; padding: 0; }
.project-card:hover .project-visual.fit-banner img { transform: none; }
.project-visual.ar-bol { aspect-ratio: 1600 / 747; }
.project-visual.ar-zama { aspect-ratio: 1200 / 630; }
.project-card-wide .project-visual.fit-banner { min-height: 0; align-self: center; border-right: 0; }
.project-card-wide:has(.fit-banner) { align-items: center; }
@media (max-width: 800px) { .project-card-wide .project-visual.fit-banner { min-height: 0; } }
