/* ===== MatraLabs · cinematic pages · shared styles ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

:root {
  --obsidian: #070709;
  --obsidian-deep: #050505;
  --violet: #7C3AED;
  --violet-deep: #6D28D9;
  --violet-soft: #8B5CF6;
  --emerald: #10B981;
  --slate: #1E293B;
  --tech-white: #F8FAFC;
}

body {
  font-family: 'Satoshi', sans-serif;
  background: var(--obsidian-deep);
  color: var(--tech-white);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  -webkit-user-select: none; -ms-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
input, textarea { -webkit-user-select: text; user-select: text; }
img { -webkit-user-drag: none; user-drag: none; }

/* Background: obsidian + soft violet glow + particles */
.bg-glow {
  position: fixed; inset: 0; z-index: -10; pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(124,58,237,0.18), transparent 60%),
    radial-gradient(50% 50% at 0% 100%, rgba(16,185,129,0.07), transparent 60%),
    var(--obsidian);
}
#particles-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
main, footer { position: relative; z-index: 2; }

/* ===== Liquid glass ===== */
.glass {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 8px 30px rgba(0,0,0,0.35);
}

/* ===== Nav (single glass pill, merged with the wordmark) ===== */
nav {
  position: fixed; top: 1rem; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center; padding: 0 0.9rem;
}
.nav-pill {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.4rem 0.5rem 0.4rem 1.15rem; border-radius: 999px;
  max-width: calc(100vw - 1.8rem);
}
.nav-pill > * { position: relative; z-index: 1; }
.nav-brand { display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; flex: none; }
.nav-brand .wm {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 1.4rem; line-height: 1; color: #fff; transform: translateY(-1px); letter-spacing: 0.01em;
}
.nav-brand .wm .labs { color: var(--emerald); text-shadow: 0 0 10px rgba(16,185,129,0.55), 0 0 4px rgba(16,185,129,0.7); }
.nav-sep { width: 1px; height: 22px; background: rgba(255,255,255,0.16); margin: 0 0.25rem; flex: none; }
.nav-links { display: flex; align-items: center; gap: 0.1rem; }
.nav-links .link {
  padding: 0.5rem 0.72rem; font-family: 'Satoshi', sans-serif; font-size: 0.85rem; font-weight: 500;
  color: rgba(255,255,255,0.9); text-decoration: none; border-radius: 999px; white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.nav-links .link:hover { background: rgba(255,255,255,0.10); color: #fff; }
.nav-links .link.active { background: rgba(255,255,255,0.14); color: #fff; }
.nav-pill .cta-white { margin-left: 0.25rem; }
@media (max-width: 860px) { .nav-links, .nav-sep { display: none; } }

/* White neon CTA */
.cta-white {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #fff; color: #000; border-radius: 999px;
  padding: 0.55rem 1rem; font-size: 0.875rem; font-weight: 600;
  font-family: 'Satoshi', sans-serif; text-decoration: none; white-space: nowrap;
  transition: box-shadow 0.5s ease, transform 0.2s ease;
}
.cta-white:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(255,255,255,0.95), 0 0 34px rgba(255,255,255,0.7), 0 0 70px rgba(255,255,255,0.45);
}
.cta-white svg { width: 1rem; height: 1rem; }

/* Glass pill (ghost) button */
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.45rem;
  border-radius: 999px; padding: 0.7rem 1.4rem;
  font-family: 'Satoshi', sans-serif; font-size: 0.875rem; font-weight: 500;
  color: var(--tech-white); text-decoration: none; white-space: nowrap;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.16);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.btn-ghost:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.3); transform: translateY(-1px); }
.btn-ghost svg { width: 1rem; height: 1rem; }

/* Fluid glass button — translucent glass with a living, drifting light inside */
.btn-fluid {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.75rem; border-radius: 999px;
  font-family: 'Satoshi', sans-serif; font-weight: 600; font-size: 0.9rem;
  color: #fff; text-decoration: none; white-space: nowrap; cursor: pointer;
  background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.42), inset 0 -8px 18px rgba(255,255,255,0.05), 0 12px 30px rgba(0,0,0,0.4);
  transition: transform 0.25s ease, box-shadow 0.45s ease, border-color 0.3s ease;
}
.btn-fluid > span, .btn-fluid > svg { position: relative; z-index: 2; }
.btn-fluid > svg { width: 1rem; height: 1rem; }
.btn-fluid::before {
  content: ''; position: absolute; inset: -50%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 55% at 28% 30%, rgba(255,255,255,0.40), transparent 60%),
    radial-gradient(46% 50% at 72% 70%, rgba(139,92,246,0.45), transparent 62%),
    radial-gradient(40% 45% at 60% 32%, rgba(16,185,129,0.22), transparent 60%);
  filter: blur(10px); opacity: 0.55; mix-blend-mode: screen;
  animation: fluidDrift 8s ease-in-out infinite alternate;
}
.btn-fluid::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(120deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.05) 18%, transparent 42%);
  opacity: 0.6;
}
@keyframes fluidDrift {
  0%   { transform: translate(-8%, -6%) rotate(0deg) scale(1); }
  50%  { transform: translate(10%, 8%) rotate(10deg) scale(1.12); }
  100% { transform: translate(-5%, 9%) rotate(-8deg) scale(1.06); }
}
.btn-fluid:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.40); box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 18px 46px rgba(124,58,237,0.4), 0 0 0 1px rgba(255,255,255,0.08); }
.btn-fluid:hover::before { opacity: 0.9; animation-duration: 4s; }
.btn-fluid:active { transform: translateY(0) scale(0.985); }
@media (prefers-reduced-motion: reduce) { .btn-fluid::before { animation: none; } }

/* Chip / eyebrow */
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 999px; padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
  font-family: 'JetBrains Mono', monospace; font-size: 0.68rem;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--violet-soft);
}

/* ===== Layout ===== */
.wrap { max-width: 76rem; margin: 0 auto; padding: 0 2rem; }
@media (min-width: 1024px) { .wrap { padding: 0 4rem; } }

.page-hero { padding-top: 11rem; padding-bottom: 4rem; }
@media (min-width: 768px) { .page-hero { padding-top: 13rem; padding-bottom: 5rem; } }
.page-hero h1 {
  font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 5.5rem); line-height: 1.08; letter-spacing: 0;
  max-width: 22ch; margin-top: 1.25rem;
}
.page-hero p.lead {
  margin-top: 1.5rem; max-width: 46rem;
  font-size: clamp(1rem, 2.5vw, 1.2rem); line-height: 1.6; color: #cbd5e1;
}

.section { padding-block: 3rem; }
@media (min-width: 768px) { .section { padding-block: 4.5rem; } }
.section-head { margin-bottom: 2.5rem; }
.section-head .eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem;
  letter-spacing: 0.35em; text-transform: uppercase; color: var(--violet-soft);
}
.section-head h2 {
  font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; margin-top: 0.75rem;
}

/* ===== Cards / grids ===== */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  border-radius: 1.25rem; padding: 1.75rem;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 12px 40px rgba(0,0,0,0.35);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  border-color: rgba(139,92,246,0.45); transform: translateY(-4px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 24px 60px rgba(0,0,0,0.5);
}
.card .idx {
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--violet);
  letter-spacing: 0.3em; text-transform: uppercase; display: block; margin-bottom: 1rem;
}
.card h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.4rem; margin-bottom: 0.7rem; }
.card p { color: #cbd5e1; font-size: 0.9rem; line-height: 1.6; }
.card .tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.1rem; }
.card .tags span {
  font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: #94a3b8; border: 1px solid rgba(255,255,255,0.12);
  padding: 0.2rem 0.5rem; border-radius: 999px;
}
.card a.more {
  margin-top: 1.25rem; display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--violet-soft); text-decoration: none;
  transition: color 0.2s;
}
.card a.more:hover { color: #fff; }

/* ===== Project cards (transparency cards, CV-portfolio layout) ===== */
.proj {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 1.25rem; padding: 1.85rem 1.85rem 1.6rem;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 12px 40px rgba(0,0,0,0.35);
  transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}
.proj::before {
  content: ''; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  transition: opacity 0.6s ease;
  background: linear-gradient(135deg, rgba(124,58,237,0.16), rgba(16,185,129,0.06));
}
.proj:hover {
  transform: translateY(-5px); border-color: rgba(139,92,246,0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 26px 70px rgba(0,0,0,0.55);
}
.proj:hover::before { opacity: 1; }
.proj > * { position: relative; z-index: 1; }
.proj-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2.5rem; }
.proj-id { display: block; font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--violet-soft); }
.proj-cat { display: block; margin-top: 0.3rem; font-family: 'JetBrains Mono', monospace; font-size: 0.58rem; letter-spacing: 0.25em; text-transform: uppercase; color: #64748b; }
.proj-icon { padding: 0.55rem; border: 1px solid rgba(255,255,255,0.14); border-radius: 0.6rem; color: #94a3b8; transition: color 0.3s, border-color 0.3s; }
.proj:hover .proj-icon { color: var(--violet-soft); border-color: rgba(139,92,246,0.5); }
.proj-icon svg { width: 1.15rem; height: 1.15rem; display: block; }
.proj-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.85rem; letter-spacing: -0.02em; text-transform: uppercase; margin-bottom: 1.1rem; }
.proj-desc { font-family: 'JetBrains Mono', monospace; font-size: 0.66rem; line-height: 2; letter-spacing: 0.12em; text-transform: uppercase; color: #94a3b8; margin-bottom: 1.6rem; }
.proj-tech { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; margin-bottom: 1.3rem; }
.proj-tech span { font-family: 'JetBrains Mono', monospace; font-size: 0.58rem; letter-spacing: 0.15em; text-transform: uppercase; color: #94a3b8; border: 1px solid rgba(255,255,255,0.12); padding: 0.22rem 0.5rem; border-radius: 999px; }
.proj-link { display: inline-flex; align-items: center; gap: 0.45rem; font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--violet-soft); text-decoration: none; transition: color 0.2s; }
.proj-link:hover { color: #fff; }
.proj-link svg { width: 0.85rem; height: 0.85rem; transition: transform 0.2s; }
.proj-link:hover svg { transform: translate(2px, -2px); }
.proj-scanline { position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; opacity: 0; transition: opacity 0.4s; background: linear-gradient(to right, transparent, var(--violet), transparent); }
.proj:hover .proj-scanline { opacity: 0.6; }

/* ===== Scroll-sync showcase (glass frames) ===== */
.scrub { position: relative; }
.scrub[data-mode="iframe"] { height: 320vh; }
.scrub[data-mode="shot"] { height: 240vh; }
.scrub-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.scrub-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; width: 100%; max-width: 88rem; }
@media (min-width: 900px) {
  .scrub-grid { gap: 3rem; }
  /* screen column is a fixed size on both sides => all screens identical & large */
  .scrub[data-side="right"] .scrub-grid { grid-template-columns: 1fr min(56vw, 760px); }
  .scrub[data-side="left"]  .scrub-grid { grid-template-columns: min(56vw, 760px) 1fr; }
}
.scrub[data-side="left"] .scrub-text { order: 2; }
.scrub[data-side="left"] .scrub-screen-wrap { order: 1; }

.scrub-id { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--violet-soft); }
.scrub-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.9rem); letter-spacing: -0.02em; text-transform: uppercase; margin: 0.8rem 0 1rem; }
.scrub-desc { color: #cbd5e1; line-height: 1.65; max-width: 34rem; }
.scrub .proj-tech { margin: 1.4rem 0; }

.scrub-screen {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 1.4rem;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 36px 90px rgba(0,0,0,0.6);
}
.scrub-view { position: absolute; inset: 11px; border-radius: 1rem; overflow: hidden; background: #050505; }
.scrub-iframe { position: absolute; top: 0; left: 0; border: 0; pointer-events: none; }
.scrub-img { position: absolute; top: 0; left: 0; width: 100%; pointer-events: none; will-change: transform; user-select: none; }
.scrub-tag { position: absolute; top: 0.85rem; left: 0.95rem; z-index: 2; font-family: 'JetBrains Mono', monospace; font-size: 0.55rem; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255,255,255,0.55); }

/* ===== Business cards (print work) ===== */
.bizcards { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .bizcards { grid-template-columns: 1fr 1fr; } }
.bizcard {
  border-radius: 1.5rem; padding: 1.25rem;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 16px 50px rgba(0,0,0,0.4);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.bizcard:hover { transform: translateY(-4px); border-color: rgba(139,92,246,0.4); }
.bizcard .mock { width: 100%; border-radius: 1rem; overflow: hidden; border: 1px solid rgba(255,255,255,0.12); background: #0b0b0d; }
.bizcard .mock img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s ease; }
.bizcard:hover .mock img { transform: scale(1.03); }
.bizcard .brand { display: flex; align-items: center; justify-content: space-between; margin: 1.1rem 0.15rem 0.9rem; }
.bizcard .brand b { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.15rem; color: #fff; }
.bizcard .brand span { font-family: 'JetBrains Mono', monospace; font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--violet-soft); }
.bizcard .faces { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.bizcard figure { margin: 0; }
.bizcard figure img { display: block; width: 100%; aspect-ratio: 7 / 4; object-fit: cover; border-radius: 0.65rem; border: 1px solid rgba(255,255,255,0.10); }
.bizcard figcaption { margin-top: 0.45rem; font-family: 'JetBrains Mono', monospace; font-size: 0.55rem; letter-spacing: 0.22em; text-transform: uppercase; color: #64748b; }

/* ===== Contact form ===== */
.contact-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 920px) { .contact-grid { grid-template-columns: 0.82fr 1.18fr; gap: 3rem; } }

.contact-aside h3 { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; font-size: 2rem; line-height: 1.15; }
.contact-aside p { color: #94a3b8; margin-top: 1rem; line-height: 1.6; }
.channels-v { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 1.8rem; }
.channels-v .channel { padding: 1.1rem 1.25rem; border-radius: 1rem; }

.form-card {
  border-radius: 1.6rem; padding: 1.8rem;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 30px 80px rgba(0,0,0,0.55);
}
@media (min-width: 560px) { .form-card { padding: 2.2rem; } }
.form-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: #94a3b8; margin-bottom: 0.55rem; }
.field input, .field textarea {
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 0.85rem;
  padding: 0.9rem 1.05rem; color: #fff;
  font-family: 'Satoshi', sans-serif; font-size: 0.95rem;
  outline: none; transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #5b6678; }
.field input:focus, .field textarea:focus {
  border-color: rgba(139,92,246,0.75);
  background: rgba(124,58,237,0.06);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.18), 0 0 26px rgba(124,58,237,0.28);
}
.submit { width: 100%; justify-content: center; border: 0; cursor: pointer; padding: 0.9rem 1.6rem; font-size: 0.9rem; margin-top: 0.4rem; }
.submit:disabled { opacity: 0.6; cursor: default; box-shadow: none; transform: none; }
.form-status { margin-top: 1rem; min-height: 1.2em; font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.04em; color: #94a3b8; }
.form-status.ok { color: var(--emerald); text-shadow: 0 0 12px rgba(16,185,129,0.5); }
.form-status.err { color: #f87171; }

/* Definition rows (about / contact) */
.rows { border-top: 1px solid rgba(255,255,255,0.10); }
.row {
  display: grid; grid-template-columns: 1fr; gap: 0.35rem;
  padding: 1.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.10);
}
@media (min-width: 720px) { .row { grid-template-columns: 12rem 1fr; gap: 2rem; align-items: baseline; } }
.row .k { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--violet-soft); }
.row .v h4 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.15rem; }
.row .v p { color: #94a3b8; font-size: 0.9rem; margin-top: 0.2rem; }

/* CTA band */
.cta-band { text-align: center; padding-top: 5rem; padding-bottom: 6rem; }
.cta-band h2 {
  font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.1; margin-bottom: 2rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* Pricing / risk-free offer */
.offer-lead { max-width: 54rem; margin: -1rem 0 2.5rem; color: #94a3b8; }
.pricing { display: grid; gap: 1.25rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 980px) { .pricing { grid-template-columns: 1.35fr 1fr; } }
.plan { border-radius: 1.5rem; padding: 2rem; }
@media (min-width: 768px) { .plan { padding: 2.5rem; } }
.plan-badge { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--violet-soft); border: 1px solid rgba(139,92,246,0.4); border-radius: 999px; padding: 0.3rem 0.7rem; margin-bottom: 1rem; }
.plan-name { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.6rem; color: #fff; margin-bottom: 0.75rem; }
.plan-price { display: flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 1rem; }
.price-old { font-family: 'Syne', sans-serif; font-size: 1.4rem; color: #64748b; text-decoration: line-through; }
.price-new { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(2.6rem, 8vw, 3.4rem); line-height: 1; color: #fff; display: inline-flex; align-items: baseline; gap: 0.5rem; text-shadow: 0 0 28px rgba(124,58,237,0.45); }
.price-new .price-cur { color: var(--violet-soft); }
.price-vat { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: #94a3b8; align-self: center; }
.plan-note { color: #94a3b8; font-size: 0.92rem; line-height: 1.6; margin-bottom: 1.5rem; max-width: 38rem; }
.feat { list-style: none; display: grid; gap: 0.7rem; margin-bottom: 1.75rem; }
.feat li { position: relative; padding-left: 1.9rem; color: #cbd5e1; font-size: 0.95rem; line-height: 1.4; }
.feat li::before { content: ""; position: absolute; left: 0; top: 0.05em; width: 1.2rem; height: 1.2rem; border-radius: 999px; background: rgba(124,58,237,0.16); border: 1px solid rgba(139,92,246,0.5); }
.feat li::after { content: ""; position: absolute; left: 0.42rem; top: 0.28em; width: 0.32rem; height: 0.6rem; border: solid var(--violet-soft); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.plan-cta { width: fit-content; }
.plan-side { display: grid; gap: 1.25rem; }
.store, .addons { border-radius: 1.5rem; padding: 1.5rem; }
.store-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.6rem; }
.store-head h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.15rem; color: #fff; }
.incl { font-family: 'JetBrains Mono', monospace; font-size: 0.56rem; letter-spacing: 0.2em; text-transform: uppercase; padding: 0.28rem 0.6rem; border-radius: 999px; color: var(--emerald); border: 1px solid rgba(16,185,129,0.45); background: rgba(16,185,129,0.1); white-space: nowrap; }
.incl.ghost { color: #94a3b8; border-color: rgba(255,255,255,0.18); background: transparent; }
.store-sub { color: #94a3b8; font-size: 0.85rem; margin-bottom: 1.1rem; }
.store-grid { display: grid; gap: 0.9rem 1.1rem; grid-template-columns: 1fr 1fr; }
.store-item h4 { font-size: 0.86rem; color: #fff; margin-bottom: 0.2rem; }
.store-item p { font-size: 0.76rem; color: #8b97a8; line-height: 1.4; }
.addon-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-top: 1px solid rgba(255,255,255,0.08); }
.addon-row:first-of-type { border-top: 0; }
.addon-row span { font-size: 0.86rem; color: #cbd5e1; line-height: 1.35; }
.addon-row b { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: var(--violet-soft); white-space: nowrap; }
@media (max-width: 520px) { .store-grid { grid-template-columns: 1fr; } }

/* Limitless band */
.limitless { text-align: center; border-radius: 1.75rem; padding: 3rem 1.5rem; }
@media (min-width: 768px) { .limitless { padding: 4rem 3rem; } }
.limitless h2 { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.12; margin-bottom: 1rem; }
.limitless p { color: #94a3b8; max-width: 46rem; margin: 0 auto 2rem; line-height: 1.6; }

/* FAQ */
.faq { display: grid; gap: 0.8rem; max-width: 52rem; }
.faq details { border: 1px solid rgba(255,255,255,0.1); border-radius: 1rem; background: rgba(255,255,255,0.03); overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 1.3rem; font-family: 'Syne', sans-serif; font-weight: 600; font-size: 1rem; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: 'JetBrains Mono', monospace; color: var(--violet-soft); font-size: 1.3rem; line-height: 1; transition: transform 0.3s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.3rem 1.2rem; color: #94a3b8; font-size: 0.92rem; line-height: 1.6; }

/* Contact channels */
.channels { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .channels { grid-template-columns: repeat(3, 1fr); } }
.channel { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.5rem; border-radius: 1.25rem; text-decoration: none; }
.channel .k { font-family: 'JetBrains Mono', monospace; font-size: 0.66rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--violet-soft); }
.channel .v { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.15rem; color: #fff; }
.channel:hover .v { color: var(--violet-soft); }

/* Footer (glassmorphism) */
.site-footer { padding: 4rem 0 2.5rem; margin-top: 2rem; }
.footer-glass {
  border-radius: 1.75rem; padding: 2.25rem;
  background: rgba(255,255,255,0.045);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 30px 80px rgba(0,0,0,0.5);
}
@media (min-width: 768px) { .footer-glass { padding: 3rem 3.25rem; } }

.footer-cols { display: grid; gap: 2.25rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) { .footer-cols { grid-template-columns: repeat(3, 1fr) 1.7fr; gap: 2rem; } }

.fcol { display: flex; flex-direction: column; gap: 0.8rem; }
.fhead { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase; color: #64748b; margin-bottom: 0.35rem; }
.fcol a { color: #cbd5e1; text-decoration: none; font-size: 0.92rem; width: fit-content; transition: color 0.2s; }
.fcol a:hover { color: #fff; }
.fcol .fmuted { color: #64748b; font-size: 0.92rem; }

.fbrand { display: flex; flex-direction: column; gap: 1rem; }
.fbrand .wm { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 1.6rem; color: #fff; line-height: 1; }
.fbrand .wm .labs { color: var(--emerald); text-shadow: 0 0 10px rgba(16,185,129,0.5); }
.fbrand p { color: #94a3b8; font-size: 0.9rem; line-height: 1.6; max-width: 30rem; }

.fcapture {
  display: flex; align-items: center; gap: 0.5rem; max-width: 27rem; margin-top: 0.2rem;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px; padding: 0.4rem 0.4rem 0.4rem 1.05rem;
}
.fcapture svg { width: 1rem; height: 1rem; color: #64748b; flex-shrink: 0; }
.fcapture input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: #fff;
  font-family: 'Satoshi', sans-serif; font-size: 0.9rem; padding: 0.5rem 0.2rem;
}
.fcapture input::placeholder { color: #64748b; }
.fcapture button {
  flex-shrink: 0; border: 0; cursor: pointer; white-space: nowrap;
  background: #fff; color: #000; border-radius: 999px; padding: 0.62rem 1.15rem;
  font-family: 'Satoshi', sans-serif; font-weight: 600; font-size: 0.82rem;
  transition: box-shadow 0.45s ease, transform 0.2s ease;
}
.fcapture button:hover { transform: translateY(-1px); box-shadow: 0 0 12px rgba(255,255,255,0.9), 0 0 30px rgba(255,255,255,0.5); }
.fcapture button:disabled { opacity: 0.65; cursor: default; box-shadow: none; transform: none; }

.footer-base {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08);
  color: #64748b; font-size: 0.8rem; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.05em;
}

/* ===== Motion ===== */
@keyframes enterBlur {
  from { filter: blur(10px); opacity: 0; transform: translateY(20px); }
  to { filter: blur(0); opacity: 1; transform: translateY(0); }
}
.enter { animation: enterBlur 0.8s cubic-bezier(0.16,1,0.3,1) both; }
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.26s; }

.reveal { opacity: 0; transform: translateY(42px); filter: blur(16px); transition: opacity 1.3s ease, transform 1.3s cubic-bezier(0.22, 1, 0.36, 1), filter 1.3s ease; }
.reveal.is-visible { opacity: 1; transform: none; filter: none; }

/* Steam reveal — text materialises out of mist, left -> right */
@keyframes steamReveal {
  0%   { opacity: 0; filter: blur(12px); transform: translateY(8px); -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  100% { opacity: 1; filter: blur(0);    transform: translateY(0);   -webkit-mask-position: 0% 0;   mask-position: 0% 0; }
}
.steam {
  -webkit-mask-image: linear-gradient(to right, #000 50%, rgba(0,0,0,0) 85%);
  mask-image: linear-gradient(to right, #000 50%, rgba(0,0,0,0) 85%);
  -webkit-mask-size: 220% 100%; mask-size: 220% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  animation: steamReveal 1.4s cubic-bezier(0.33, 1, 0.68, 1) both;
  will-change: filter, opacity, mask-position;
}
.steam.s-1 { animation-delay: 0.08s; }
.steam.s-2 { animation-delay: 0.26s; }
.steam.s-3 { animation-delay: 0.46s; }
@media (prefers-reduced-motion: reduce) {
  .steam { animation: none; -webkit-mask-image: none; mask-image: none; opacity: 1; filter: none; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .enter, .reveal { animation: none; opacity: 1; transform: none; filter: none; transition: none; }
}

/* ===== Stronger refractive glass (all panels) ===== */
.glass, .nav-center, .card, .proj, .bizcard, .form-card, .scrub-screen, .footer-glass, .btn-ghost, .chip, .fcapture, .channel {
  backdrop-filter: blur(34px) saturate(185%) brightness(1.03);
  -webkit-backdrop-filter: blur(34px) saturate(185%) brightness(1.03);
}
.glass, .nav-center, .card, .bizcard, .form-card, .scrub-screen, .footer-glass, .chip, .fcapture, .channel {
  background-image: linear-gradient(135deg, rgba(255,255,255,0.028) 0%, rgba(255,255,255,0.006) 60%);
  border-color: rgba(255,255,255,0.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.20),
    inset 0 0 0 1px rgba(255,255,255,0.02),
    inset 0 -12px 26px rgba(255,255,255,0.012),
    0 18px 50px rgba(0,0,0,0.5);
}
/* glass surface needs a positioning context for the specular layer */
.glass, .nav-center, .card, .bizcard, .form-card, .footer-glass, .chip, .fcapture, .channel, .btn-ghost { position: relative; }
/* specular sheen + refractive edge light */
.glass::after, .nav-center::after, .card::after, .bizcard::after, .form-card::after, .footer-glass::after, .chip::after, .fcapture::after, .channel::after, .btn-ghost::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    linear-gradient(125deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.02) 15%, transparent 34%),
    linear-gradient(305deg, rgba(255,255,255,0.04) 0%, transparent 26%);
  mix-blend-mode: screen; opacity: 0.22;
}
/* keep inner content above the sheen */
.card > *, .bizcard > *, .nav-center > *, .form-card > *, .footer-glass > *, .fcapture > *, .channel > *, .nav-logo .wm { position: relative; z-index: 1; }

/* ===== Living fluid flux inside every glass panel ===== */
.glass, .nav-center, .card, .bizcard, .form-card, .footer-glass, .fcapture, .channel { overflow: hidden; }
.glass::before,
.nav-center::before,
.card::before,
.bizcard::before,
.form-card::before,
.footer-glass::before,
.fcapture::before,
.channel::before,
.proj::after {
  content: ''; position: absolute; inset: -40%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(34% 50% at 28% 30%, rgba(255,255,255,0.12), transparent 60%),
    radial-gradient(42% 46% at 72% 68%, rgba(139,92,246,0.24), transparent 62%),
    radial-gradient(36% 42% at 58% 30%, rgba(16,185,129,0.13), transparent 60%);
  filter: blur(16px); opacity: 0.4; mix-blend-mode: screen;
  animation: fluidDrift 9s ease-in-out infinite alternate;
}
@media (prefers-reduced-motion: reduce) {
  .glass::before, .nav-center::before, .card::before, .bizcard::before, .form-card::before,
  .footer-glass::before, .fcapture::before, .channel::before, .proj::after { animation: none; }
}

/* Antigravity background lives on the cards + footer instead of the flux */
.card::before, .bizcard::before, .footer-glass::before { content: none; }
.ag-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; border-radius: inherit;
  opacity: 0; filter: blur(8px);
  transition: opacity 0.7s ease, filter 0.7s ease;
}
.ag-canvas.ag-on { opacity: 1; filter: blur(0); }

/* GlassSurface (React Bits) — real refraction on the navbar.
   Chromium applies the SVG displacement; other engines drop this line and keep the blur-glass fallback above. */
.nav-pill {
  backdrop-filter: url(#glass-surface) blur(3px) saturate(175%) brightness(1.05);
}

/* ===== Mobile performance + polish ===== */
@media (max-width: 768px) {
  /* lighter glass on phones (cheaper to composite) */
  .glass, .nav-center, .card, .proj, .bizcard, .form-card, .scrub-screen, .footer-glass, .btn-ghost, .chip, .fcapture, .channel {
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
  }
  /* drop the expensive SVG refraction from the navbar on phones */
  .nav-pill {
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
  }
  /* remove the animated flux layers (heavy blurred + screen blend) */
  .glass::before, .nav-center::before, .chip::before, .fcapture::before,
  .channel::before, .form-card::before, .proj::after { display: none; }
  /* footer brand + email capture span full width so they aren't cramped */
  .footer-cols .fbrand { grid-column: 1 / -1; }
  .fcapture { max-width: 100%; }
}

/* ===== Mobile staggered menu ===== */
.nav-burger { display: none; }
.menu-open { overflow: hidden; }
@media (max-width: 860px) {
  .nav-pill .cta-white { display: none; }
  .nav-burger {
    display: inline-flex; flex-direction: column; gap: 5px; align-items: center; justify-content: center;
    width: 38px; height: 38px; border: 0; background: transparent; cursor: pointer; margin-left: 0.1rem; flex: none;
  }
  .nav-burger span { width: 19px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s ease; }
  .nav-burger.open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
}
.stagger-menu {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
  background: rgba(7,7,9,0.5);
  backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
  opacity: 0; pointer-events: none; transition: opacity 0.45s ease;
}
.stagger-menu.open { opacity: 1; pointer-events: auto; }
.stagger-inner { display: flex; flex-direction: column; gap: 0.5rem; text-align: center; padding: 2rem; }
.stagger-link {
  font-family: 'Instrument Serif', serif; font-style: italic; font-size: clamp(2rem, 9vw, 2.9rem); line-height: 1.15;
  color: #fff; text-decoration: none;
  transform: translateY(48px); opacity: 0; filter: blur(8px);
  transition: transform 0.55s cubic-bezier(.22,1,.36,1), opacity 0.55s ease, filter 0.55s ease;
}
.stagger-menu.open .stagger-link { transform: none; opacity: 1; filter: none; transition-delay: calc(0.07s * var(--i) + 0.12s); }
.stagger-link.active { color: var(--violet-soft); }
@media (prefers-reduced-motion: reduce) { .stagger-link { transition: opacity 0.2s; transform: none; filter: none; } }

/* ===== Projects shown as a phone on mobile ===== */
@media (max-width: 768px) {
  .scrub-screen { aspect-ratio: 10 / 19; max-width: 300px; margin: 0 auto; border-radius: 2rem; }
  .scrub-view { inset: 8px; border-radius: 1.5rem; }
  .scrub[data-mode="iframe"] { height: 260vh; }
  .scrub[data-mode="shot"] { height: 220vh; }
  /* always: text first, then the phone screen (same on every panel) */
  .scrub-grid { gap: 1.4rem; }
  .scrub[data-side="left"] .scrub-text,
  .scrub[data-side="right"] .scrub-text { order: 0; }
  .scrub[data-side="left"] .scrub-screen-wrap,
  .scrub[data-side="right"] .scrub-screen-wrap { order: 1; }
  /* smaller phone so text + phone fit one screen without clipping */
  .scrub-screen { max-width: 215px; }
  /* title wraps at the space (OVERKILL / PERFORMANCE), no ugly mid-word break */
  .scrub-title { font-size: clamp(1.3rem, 5.6vw, 1.8rem); margin: 0.5rem 0 0.7rem; }
  .scrub-desc { font-size: 0.9rem; line-height: 1.5; }
  .scrub .proj-tech { margin: 1rem 0; }
}
