/* ═══════════════════════════════════════════════
   MARIANNE ETTIA — Cinematic Founder Portfolio
   Design system: deep-space black, glassmorphism,
   bold editorial type, neon accents, spatial depth
   ═══════════════════════════════════════════════ */

:root {
  --bg: #050505;
  --surface: #0e0e0e;
  --text: #ffffff;
  --muted: rgba(255,255,255,0.55);
  --cyan: #06B6D4;
  --pink: #EC4899;
  --purple: #7C3AED;
  --border: 1px solid rgba(255,255,255,0.08);
  --glass: rgba(255,255,255,0.04);
  --glass-strong: rgba(255,255,255,0.07);
  --max-w: 84rem;
  --nav-h: 5rem;
  --ease: cubic-bezier(.22,1,.36,1);
  --font: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { color: #050505; background: #fff; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

p {
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  font-size: clamp(1rem, 1.05vw, 1.125rem);
}

strong { color: #fff; }

.container {
  width: min(var(--max-w), calc(100% - 3rem));
  margin: 0 auto;
}

/* ─── Texture & Glow ─── */

.noise {
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none; opacity: 0.18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed; width: 36rem; height: 36rem;
  border-radius: 50%; pointer-events: none; z-index: -1;
  left: var(--mx, 50%); top: var(--my, 40%);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(124,58,237,0.12), transparent 60%);
  transition: opacity .3s ease;
}

/* ─── Navigation ─── */

.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.2rem, 3vw, 2.8rem);
  mix-blend-mode: difference; color: #fff;
}

.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .76rem; font-weight: 800; letter-spacing: .15em;
  text-transform: uppercase; white-space: nowrap;
}

.live-dot {
  width: .5rem; height: .5rem; border-radius: 50%;
  background: #ff233f; flex-shrink: 0;
  position: relative;
}
.live-dot::after {
  content: ""; position: absolute; inset: -.45rem;
  border: 1px solid rgba(255,35,63,0.65); border-radius: 50%;
  animation: pulse 2s ease-out infinite;
}

.nav-links {
  display: flex; align-items: center;
  gap: clamp(1.4rem, 3vw, 2.8rem);
}

.nav-links a {
  font-size: .72rem; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; opacity: .78;
  transition: opacity .25s ease;
}
.nav-links a:hover { opacity: 1; }

.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.6rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; white-space: nowrap;
  transition: transform .3s var(--ease), opacity .3s ease;
}
.nav-cta:hover { transform: scale(1.04); }

/* ─── Hero ─── */

.hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden; isolation: isolate;
}

.hero-bg-text {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0; pointer-events: none;
  color: rgba(255,255,255,0.06);
  font-size: clamp(6rem, 16vw, 22rem);
  font-weight: 900; line-height: .82;
  letter-spacing: -.06em; text-align: center;
  text-transform: uppercase; white-space: nowrap;
}

.hero-inner {
  display: flex; align-items: center; justify-content: center;
  padding-top: var(--nav-h); width: 100%;
  position: relative; z-index: 1;
}

.card-stack {
  position: relative;
  width: min(52vw, 34rem);
  height: min(68vh, 40rem);
  perspective: 1200px;
}

.hero-card {
  position: absolute; border-radius: 1.6rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  background: var(--surface);
  box-shadow:
    0 40px 100px rgba(0,0,0,.7),
    0 0 60px rgba(124,58,237,0.12),
    inset 0 0 0 1px rgba(255,255,255,.04);
}

.back-card {
  width: 100%; height: 30%;
  top: 0; left: 50%; transform: translateX(-50%);
  z-index: 1;
  animation: floatBack 8s ease-in-out infinite;
}

.front-card {
  width: 86%; height: 74%;
  bottom: 0; left: 50%; transform: translateX(-50%);
  z-index: 2;
  animation: floatFront 8s ease-in-out infinite;
  box-shadow:
    0 50px 120px rgba(0,0,0,.8),
    0 0 80px rgba(6,182,212,0.1),
    inset 0 0 0 1px rgba(255,255,255,.06);
}

.card-visual {
  position: absolute; inset: 0;
  overflow: hidden;
}

.card-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.back-visual {
  background:
    radial-gradient(circle at 55% 45%, rgba(236,72,153,0.65), transparent 50%),
    radial-gradient(circle at 35% 60%, rgba(124,58,237,0.6), transparent 45%),
    #0c0618;
}

.front-visual {
  background:
    radial-gradient(circle at 45% 55%, rgba(6,182,212,0.6), transparent 45%),
    radial-gradient(circle at 60% 35%, rgba(124,58,237,0.55), transparent 50%),
    #081824;
}

.card-label {
  position: absolute; z-index: 3;
  left: 50%; bottom: 50%; transform: translate(-50%, 50%);
  color: #fff; font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 700; letter-spacing: .35em;
  text-shadow: 0 2px 24px rgba(0,0,0,.85);
  white-space: nowrap;
}

.card-star {
  position: absolute; z-index: 3;
  right: 1.2rem; bottom: 1.2rem;
  color: rgba(255,255,255,0.45); font-size: 1rem;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 2.5rem;
  display: flex; flex-direction: column;
  align-items: center; gap: .8rem;
  z-index: 5;
}

.scroll-line {
  width: 1px; height: 3rem;
  background: rgba(255,255,255,0.35);
  animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-indicator span {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* ─── The Architecture Section ─── */

.section-cases {
  padding: clamp(8rem, 14vw, 14rem) 0 clamp(4rem, 8vw, 8rem);
}

.mega-heading {
  font-size: clamp(4.5rem, 13vw, 16rem);
  font-weight: 900; line-height: .82;
  letter-spacing: -.07em;
  text-transform: uppercase;
}

.mega-subtitle {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 1.3vw, 1.3rem);
  color: var(--muted); max-width: 42rem;
}

.row-divider {
  display: flex; align-items: center; gap: 1rem;
  margin: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted);
}

.divider-line {
  flex: 1; height: 1px;
  background: rgba(255,255,255,0.1);
}

/* ─── Venture Cards ─── */

.venture-card {
  border: var(--border); border-radius: 1.6rem;
  overflow: hidden; background: var(--surface);
  transition: transform .4s var(--ease), border-color .4s ease;
}

.venture-card:hover {
  transform: scale(1.01);
  border-color: rgba(255,255,255,0.14);
}

.venture-card.featured { margin-bottom: 1rem; }

.venture-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.5rem;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted);
}

.traffic-dots { display: flex; gap: .4rem; }
.traffic-dots span { width: .6rem; height: .6rem; border-radius: 50%; }
.traffic-dots span:nth-child(1) { background: #EC4899; }
.traffic-dots span:nth-child(2) { background: #F59E0B; }
.traffic-dots span:nth-child(3) { background: #10B981; }

.venture-visual {
  position: relative; min-height: 22rem; overflow: hidden;
}

.venture-card.featured .venture-visual {
  min-height: clamp(18rem, 36vw, 28rem);
  background:
    radial-gradient(circle at 50% 35%, rgba(236,72,153,0.7), transparent 45%),
    radial-gradient(circle at 45% 75%, rgba(124,58,237,0.65), transparent 50%),
    #0B0216;
}

.venture-visual img {
  width: 100%; height: 100%;
  object-fit: cover; position: absolute; inset: 0;
  filter: saturate(.9);
  transition: filter .6s var(--ease), transform .6s var(--ease);
}

.venture-card:hover .venture-visual img {
  filter: saturate(1.2); transform: scale(1.02);
}

.venture-info { padding: clamp(1.2rem, 2.5vw, 2rem); }

.venture-badge {
  display: inline-block;
  padding: .5rem .9rem; border-radius: 999px;
  background: rgba(255,255,255,0.08);
  font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  margin-bottom: 1rem;
}

.venture-info h3 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900; letter-spacing: -.05em;
  line-height: .9; text-transform: uppercase;
  margin-bottom: .8rem;
}

.venture-info h4 {
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 800; letter-spacing: -.02em;
  text-transform: uppercase; margin-bottom: .4rem;
}

.venture-info p { max-width: 42rem; }
.venture-type { font-size: .78rem !important; color: var(--muted) !important; letter-spacing: .05em; }

.venture-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.small-visual { min-height: 18rem; position: relative; }

.collective-bg {
  background:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,0.08), transparent 40%),
    linear-gradient(135deg, #111, #0B0216);
}

.arch-shape {
  position: absolute; inset: 18% 22% auto;
  height: 55%; border-radius: 14rem 14rem 1.2rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    linear-gradient(120deg, rgba(255,255,255,.18), transparent 28%, rgba(255,255,255,.06) 55%, rgba(236,72,153,.12)),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  backdrop-filter: blur(8px);
  transform: perspective(800px) rotateX(8deg);
}

.grid-bg {
  background:
    radial-gradient(circle at 55% 50%, rgba(124,58,237,0.18), transparent 45%),
    linear-gradient(135deg, #111, #0B0216);
}

.grid-lines {
  position: absolute; inset: 14%;
  border: 1px solid rgba(255,255,255,0.1);
  background:
    linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px),
    radial-gradient(circle at 55% 40%, rgba(124,58,237,0.25), transparent 50%);
  background-size: 36px 36px, 36px 36px, auto;
  transform: perspective(1000px) rotateX(55deg) rotateZ(-22deg);
}

/* ─── Thinking Section ─── */

.section-thinking {
  padding: clamp(6rem, 12vw, 12rem) 0;
  background:
    radial-gradient(circle at 50% 0, rgba(124,58,237,0.22), transparent 32rem),
    linear-gradient(180deg, transparent, rgba(11,2,22,0.5) 20%, var(--bg) 100%);
}

.section-kicker {
  display: block; margin-bottom: 1rem;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}

.section-heading {
  font-size: clamp(2.8rem, 7vw, 7rem);
  font-weight: 900; line-height: .84;
  letter-spacing: -.06em;
  text-transform: uppercase;
}

.thinking-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: start;
}

.thinking-right { padding: 1rem 0; }
.thinking-right p:first-child { margin-top: 0; }
.thinking-right p { margin-top: .8rem; }

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}

.cap-card {
  border: var(--border); border-radius: 1.6rem;
  padding: clamp(1.4rem, 2.2vw, 2rem);
  min-height: 20rem;
  background: linear-gradient(180deg, var(--glass-strong), var(--glass));
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), border-color .35s ease;
  position: relative; overflow: hidden;
}

.cap-card::before {
  content: ""; position: absolute; inset: -1px;
  background:
    radial-gradient(circle at 20% 10%, rgba(236,72,153,0.12), transparent 50%),
    radial-gradient(circle at 80% 85%, rgba(6,182,212,0.1), transparent 50%);
  pointer-events: none;
}

.cap-card:hover {
  transform: scale(1.02);
  border-color: rgba(255,255,255,0.16);
}

.cap-num {
  font-size: .78rem; font-weight: 700;
  letter-spacing: .2em; color: rgba(255,255,255,0.3);
  position: relative; z-index: 1;
}

.cap-card h3 {
  margin-top: auto; margin-bottom: .8rem;
  font-size: clamp(1.5rem, 2.5vw, 2.6rem);
  font-weight: 900; line-height: .9;
  letter-spacing: -.04em; text-transform: uppercase;
  position: relative; z-index: 1;
}

.cap-card p { margin: 0; position: relative; z-index: 1; }

/* ─── About Section ─── */

.section-about { padding: clamp(6rem, 12vw, 12rem) 0; }

.about-panel {
  border: var(--border); border-radius: 2rem;
  padding: clamp(2rem, 4vw, 4rem);
  min-height: 56vh;
  background:
    radial-gradient(circle at 80% 20%, rgba(236,72,153,0.08), transparent 22rem),
    radial-gradient(circle at 15% 75%, rgba(124,58,237,0.12), transparent 28rem),
    var(--glass);
  backdrop-filter: blur(8px);
}

.about-copy {
  max-width: 52rem; margin-left: auto;
  margin-top: clamp(2rem, 5vw, 4rem);
}

.about-copy p {
  font-size: clamp(1.05rem, 1.4vw, 1.4rem);
  line-height: 1.6;
}

.about-copy p + p { margin-top: .6rem; }

.connection-card {
  margin-top: 1.5rem;
  border: var(--border); border-radius: 2rem;
  padding: clamp(2rem, 4vw, 4rem);
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.06), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(6,182,212,0.08), transparent 45%),
    var(--glass);
  backdrop-filter: blur(8px);
  max-width: 68rem; margin-left: auto;
  transition: transform .35s var(--ease), border-color .35s ease;
}

.connection-card:hover {
  transform: scale(1.008);
  border-color: rgba(255,255,255,0.14);
}

.connection-heading {
  font-size: clamp(2.2rem, 6vw, 6rem);
  font-weight: 900; line-height: .88;
  letter-spacing: -.06em; text-transform: uppercase;
  max-width: 48rem; margin-bottom: 1.5rem;
}

.connection-card p:not(.section-kicker) { max-width: 44rem; }
.connection-card p + p { margin-top: .4rem; }

/* ─── Footer ─── */

.site-footer {
  position: relative; overflow: hidden;
  padding: clamp(8rem, 16vw, 16rem) 0 clamp(2rem, 4vw, 4rem);
  background:
    radial-gradient(circle at 50% 60%, rgba(124,58,237,0.16), transparent 30rem),
    linear-gradient(180deg, transparent, #000);
}

.footer-bg-text {
  position: absolute; top: 8%; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.04);
  font-size: clamp(6rem, 17vw, 24rem);
  font-weight: 900; line-height: .75;
  letter-spacing: -.08em; text-align: center;
  white-space: nowrap; pointer-events: none;
}

.footer-heading {
  font-size: clamp(3.5rem, 10vw, 12rem);
  font-weight: 900; line-height: .82;
  letter-spacing: -.07em; text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.footer-sub { max-width: 38rem; margin-bottom: 2rem; }

.button-primary {
  display: inline-flex; align-items: center;
  padding: 1rem 2rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: #fff; border: none;
  transition: transform .3s var(--ease);
}
.button-primary:hover { transform: scale(1.04); }

.footer-bottom {
  margin-top: clamp(5rem, 12vw, 10rem);
  padding-top: 1.2rem; border-top: var(--border);
  display: flex; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}

.footer-col {
  display: flex; flex-direction: column; gap: .4rem;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}

.footer-col strong { color: #fff; font-weight: 800; }
.footer-label { margin-bottom: .4rem; color: rgba(255,255,255,0.35); }
.footer-links a { opacity: .65; transition: opacity .25s ease; }
.footer-links a:hover { opacity: 1; }

/* ─── Scroll Reveal ─── */

.reveal {
  opacity: 0;
  transform: translateY(2.2rem) scale(.985);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }

/* ─── Keyframes ─── */

@keyframes pulse {
  0%   { transform: scale(.3); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes floatBack {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-.8rem); }
}

@keyframes floatFront {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(.6rem); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: .35; }
  50%      { opacity: .85; }
}

/* ─── Responsive ─── */

@media (max-width: 1100px) {
  .thinking-layout { grid-template-columns: 1fr; }
  .capability-grid { grid-template-columns: 1fr 1fr; }
  .cap-card { min-height: 16rem; }
  .cap-card h3 { margin-top: 5rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 4.2rem; }
  .container { width: min(100% - 1.5rem, var(--max-w)); }
  .nav-links { display: none; }
  .site-nav { padding: 0 1rem; }
  .brand { font-size: .65rem; }
  .nav-cta { font-size: .62rem; padding: .72rem 1rem; }
  .hero-bg-text { font-size: clamp(4rem, 22vw, 10rem); }
  .card-stack { width: min(80vw, 22rem); height: min(65vh, 32rem); }
  .front-card { width: 92%; }
  .capability-grid { grid-template-columns: 1fr; }
  .venture-grid { grid-template-columns: 1fr; }
  .about-panel, .connection-card, .venture-card, .cap-card { border-radius: 1.2rem; }
  .footer-bottom { flex-direction: column; }
  .footer-heading { font-size: clamp(2.8rem, 12vw, 6rem); }
  .mega-heading { font-size: clamp(3.5rem, 16vw, 8rem); }
  .connection-heading { font-size: clamp(1.8rem, 8vw, 4rem); }
  .section-heading { font-size: clamp(2.2rem, 10vw, 5rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
