/* ==========================================================================
   Mann Sen — portfolio
   Fonts: Instrument Serif (display), Archivo (sans / wordmark), IBM Plex Mono
   ========================================================================== */

:root {
  --bg-light: #f4f1fb;
  --bg-dark: #0f0a1e;
  --bg-dark-2: #160f2c;
  --ink: #0a0a0a;
  --paper: #ffffff;
  --white: #f6f2ff;
  --muted: rgba(246, 242, 255, 0.62);
  --line: rgba(246, 242, 255, 0.14);
  --violet: #8b5cf6;
  --violet-2: #c084fc;
  --lavender: #e9ddff;
  --magenta: #d946ef;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-black: "Archivo Black", "Archivo", Impact, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --gutter: clamp(16px, 3vw, 48px);
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}
@media (hover: none), (pointer: coarse) { body { cursor: auto; } .cursor { display: none !important; } }

a { color: inherit; text-decoration: none; }
img, video, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-transform: uppercase;
}
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bg-dark);
  background: var(--violet-2);
  padding: 0.28em 0.7em;
  border-radius: 999px;
  margin-bottom: 1.6rem;
}

/* Display type ------------------------------------------------------------ */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 8.2vw, 7.6rem);
  line-height: 0.86;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.display--md { font-size: clamp(2.3rem, 6.4vw, 5.6rem); }
.display--sm { font-size: clamp(1.8rem, 4.2vw, 3.6rem); }
.display__line { display: block; overflow: hidden; }
.display__line > * { display: inline-block; }
.display__line--indent { padding-left: clamp(1.5rem, 12vw, 12rem); }
.display em, .display .display__italic { font-style: italic; text-transform: none; color: var(--lavender); }
.display .arrow { font-style: normal; font-size: 0.55em; vertical-align: 0.25em; margin-right: 0.2em; color: var(--violet-2); }
.display .display__line--split { display: block; overflow: hidden; }
.display .display__line--split .w { display: inline-block; transform: translateY(110%); }
.is-visible .display__line--split .w { transform: translateY(0); transition: transform 1.2s var(--ease-out); }

.lead {
  font-size: clamp(1.02rem, 1.35vw, 1.3rem);
  line-height: 1.5;
  color: rgba(246, 242, 255, 0.86);
  max-width: 34em;
}
.lead + .lead { margin-top: 1.2em; }

/* Reveal helpers ---------------------------------------------------------- */
.reveal-lines .line { display: block; overflow: hidden; }
.reveal-lines .line > span { display: block; transform: translateY(110%); }
.reveal-lines.is-visible .line > span { transform: translateY(0); transition: transform 1s var(--ease-out); }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--font-sans); font-weight: 500; font-size: 0.86rem;
  letter-spacing: 0.01em; white-space: nowrap;
  border-radius: 999px; padding: 0.7em 1.15em;
  background: var(--lavender); color: var(--bg-dark);
  transition: transform 0.6s var(--ease-out), background 0.3s ease;
  position: relative; overflow: hidden;
}
.btn i { font-style: normal; transition: transform 0.5s var(--ease-out); }
.btn:hover { transform: translateY(-2px); background: var(--white); }
.btn:hover i { transform: translate(2px, -2px); }
.btn--pill { background: rgba(246, 242, 255, 0.92); backdrop-filter: blur(8px); }
.btn--big { font-size: 1.05rem; padding: 1em 1.6em; margin-top: 2.4rem; }
.link-ul { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; position: relative; }
.link-ul::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(1); transform-origin: right; transition: transform 0.5s var(--ease-out); }
.link-ul:hover::after { transform: scaleX(0); transform-origin: left; }

/* Preloader --------------------------------------------------------------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  transform-origin: top;
}
.preloader__word {
  font-family: var(--font-black); font-weight: 400;
  font-size: clamp(3rem, 12vw, 11rem); letter-spacing: -0.04em; line-height: 1;
  display: flex;
}
.preloader__word span { display: inline-block; opacity: 0; transform: translateY(40%) rotate(4deg); }
.preloader__apos { color: var(--violet-2); }
.preloader__meta { position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); display: flex; justify-content: space-between; }
.preloader__meta span { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; }
.preloader__count { font-variant-numeric: tabular-nums; }

/* Cursor ------------------------------------------------------------------ */
.cursor { position: fixed; top: 0; left: 0; z-index: 1100; pointer-events: none; mix-blend-mode: difference; }
/* while the entry gate is up the background is pale, so use a solid dark cursor */
.cursor.is-dark { mix-blend-mode: normal; }
.cursor.is-dark .cursor__dot { background: #2a1f4d; }
.cursor.is-dark .cursor__ring { border-color: rgba(42,31,77,0.8); }
.cursor.is-dark.is-link .cursor__ring { background: rgba(139,92,246,0.18); border-color: #8b5cf6; }
.cursor__dot { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); }
.cursor__ring { position: absolute; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.9); transform: translate(-50%, -50%) scale(1); transition: transform 0.45s var(--ease-out), opacity 0.3s ease, background 0.3s ease; }
.cursor__label { position: absolute; transform: translate(-50%, -50%); font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; color: #fff; opacity: 0; transition: opacity 0.3s ease; white-space: nowrap; }
.cursor.is-link .cursor__ring { transform: translate(-50%, -50%) scale(1.6); background: rgba(255, 255, 255, 0.15); }
.cursor.is-view .cursor__ring, .cursor.is-drag .cursor__ring { transform: translate(-50%, -50%) scale(2.6); background: #fff; }
.cursor.is-view .cursor__label, .cursor.is-drag .cursor__label { opacity: 1; mix-blend-mode: difference; }
.cursor.is-view .cursor__dot, .cursor.is-drag .cursor__dot { opacity: 0; }
.cursor.is-hidden { opacity: 0; }

/* Header ------------------------------------------------------------------ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 1.1rem var(--gutter);
  mix-blend-mode: difference; color: #fff;
  transform: translateY(-120%);
}
.header__logo { font-family: var(--font-display); font-size: 1.55rem; letter-spacing: -0.01em; line-height: 1; }
.header__logo-main { color: #fff; }
.header__logo-alt { color: var(--violet-2); font-style: italic; }
.header__nav { display: flex; gap: 1.6rem; }
.header__nav a { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; position: relative; padding-bottom: 2px; }
.header__nav a span { font-size: 0.55rem; vertical-align: super; margin-right: 0.25em; opacity: 0.6; }
.header__nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-out); }
.header__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header__right { display: flex; justify-content: flex-end; align-items: center; gap: 1.2rem; }
.header__time { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; opacity: 0.8; }
.header .btn { mix-blend-mode: normal; }
/* glass bar once the page has scrolled: a frosted, tinted layer behind the header content */
.header::before {
  content: ""; position: absolute; inset: 8px calc(var(--gutter) * 0.5); z-index: -1; border-radius: 18px;
  background: linear-gradient(180deg, rgba(28, 20, 54, 0.62), rgba(15, 10, 30, 0.52));
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(233, 221, 255, 0.12);
  box-shadow: 0 10px 40px rgba(5, 3, 14, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0; transform: translateY(-6px) scale(0.985); transition: opacity 0.45s ease, transform 0.6s var(--ease-out);
  pointer-events: none;
}
.header { transition: padding 0.5s var(--ease-out); }
.header.is-scrolled { mix-blend-mode: normal; padding-top: 1.35rem; padding-bottom: 1.35rem; padding-left: calc(var(--gutter) * 0.5 + 1.2rem); padding-right: calc(var(--gutter) * 0.5 + 1.2rem); }
.header.is-scrolled::before { opacity: 1; transform: none; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header::before { background: rgba(15, 10, 30, 0.92); }
}
@media (max-width: 860px) {
  .header { grid-template-columns: 1fr auto; }
  .header__nav { display: none; }
  .header__time { display: none; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; height: 100svh; min-height: 560px;
  background: var(--paper); color: var(--ink); overflow: hidden;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero__wordmark {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-black); font-weight: 400;
  font-size: 15vw; letter-spacing: -0.04em; line-height: 1; margin: 0;
  color: var(--ink); z-index: 0; pointer-events: none; user-select: none;
}
.hero.is-baked .hero__wordmark { opacity: 0; }
.hero.is-fallback .hero__canvas { display: none; }
.hero.is-fallback .hero__video { opacity: 1; }
.hero.is-fallback .hero__wordmark { color: #fff; mix-blend-mode: difference; z-index: 2; }
.hero__ui { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero__ui .mono { color: var(--ink); }
.hero__corner { position: absolute; }
.hero__corner--tl { top: 5.2rem; left: var(--gutter); }
.hero__corner--tr { top: 5.2rem; right: var(--gutter); text-align: right; }
.hero__corner--bl { bottom: var(--gutter); left: var(--gutter); }
.hero__corner--br { bottom: var(--gutter); right: var(--gutter); text-align: right; }
.hero__hint { display: inline-flex; align-items: center; gap: 0.6em; }
.hero__hint-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.8); opacity: 0.4; } }
.hero__scroll { position: absolute; left: 50%; bottom: var(--gutter); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.hero__scroll i { width: 1px; height: 46px; background: var(--ink); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 50%; background: var(--paper); animation: scrollLine 1.8s var(--ease-in-out) infinite; }
@keyframes scrollLine { 0% { transform: translateY(-100%); } 100% { transform: translateY(220%); } }
@media (max-width: 860px) {
  .hero__corner--tr, .hero__corner--bl { display: none; }
  .hero__wordmark { font-size: 21vw; }
}

/* ==========================================================================
   INTRO — particle MANN over a purple lake
   ========================================================================== */
.intro { position: relative; height: 220vh; background: var(--bg-dark); }
.intro__sky, .intro__stars, .intro__stage, .intro__water, .intro__content { position: absolute; left: 0; right: 0; }
.intro__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.intro__shake { position: absolute; inset: -12px; will-change: transform; }
.intro__sky, .intro__stars, .intro__stage, .intro__content { top: 0; height: 100%; }
.intro__sky {
  top: 0; height: 100svh;
  background:
    radial-gradient(120% 70% at 50% 100%, rgba(139, 92, 246, 0.28) 0%, rgba(139, 92, 246, 0) 60%),
    linear-gradient(180deg, #16112b 0%, #2a1a4d 45%, #4a2a80 62%, #2a1a4d 63%, #120c22 100%);
}
.intro__stars { top: 0; height: 100svh; pointer-events: none; overflow: hidden; }
.intro__stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: 0.55; animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0.15; } 50% { opacity: 0.8; } }
.intro__stage { top: 0; height: 100svh; }
.intro__stage .particle-canvas { width: 100% !important; height: 100% !important; }
.intro__water {
  top: 62svh; height: 38svh; pointer-events: none;
  background: linear-gradient(180deg, rgba(74, 42, 128, 0.9) 0%, rgba(20, 12, 36, 0.1) 60%, rgba(15, 10, 30, 1) 100%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,1));
}
.intro__water::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 7px);
  mix-blend-mode: overlay; opacity: 0.6;
  animation: ripple 6s linear infinite;
}
@keyframes ripple { from { background-position: 0 0; } to { background-position: 0 14px; } }
.intro__content { top: 0; height: 100svh; padding: 0 var(--gutter) var(--gutter); display: flex; flex-direction: column; justify-content: flex-end; z-index: 3; pointer-events: none; }
.intro__kicker { color: var(--muted); margin-bottom: 1.6rem; max-width: 24em; }
.intro__title { text-shadow: 0 10px 60px rgba(10, 5, 25, 0.6); }
.intro .display__italic { font-size: 0.72em; display: inline-block; margin-bottom: 0.15em; }

/* ==========================================================================
   HOW IT BEGAN — story over a sticky background year that later zooms
   ========================================================================== */
.began { position: relative; background: var(--bg-dark); }
.began__bg { position: sticky; top: 0; height: 100svh; overflow: hidden; z-index: 0; }
.began__reveal, .began__stage { position: absolute; inset: 0; }
.began__reveal { opacity: 0; display: flex; align-items: center; justify-content: center; padding: var(--gutter); background: radial-gradient(70% 60% at 50% 50%, rgba(139,92,246,0.16), transparent 70%), var(--bg-dark); }
.began__reveal-inner { width: min(100%, 1100px); }
.zoom__title .display__line { overflow: hidden; }
.zoom__title .w { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease-out); }
.began__reveal.is-visible .zoom__title .w { transform: translateY(0); }
.began__hint { color: var(--muted); margin-top: 2rem; opacity: 0; transition: opacity 0.8s ease 0.5s; }
.began__reveal.is-visible .began__hint { opacity: 1; }
.began__stage { pointer-events: none; }
.began__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.began__plate { will-change: transform; }
.began__grid {
  position: relative; z-index: 1; margin-top: -100svh;
  padding: 18vh var(--gutter) 22vh;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4vw; align-items: start;
}
.began__left { position: sticky; top: 16vh; }
.began__right { padding-top: 1rem; }
.began__zoom { position: relative; height: 260vh; pointer-events: none; }
@media (max-width: 860px) { .began__grid { grid-template-columns: 1fr; } .began__left { position: static; margin-bottom: 2rem; } }

/* ==========================================================================
   TIMELINE
   ========================================================================== */
.timeline { padding: 6vh var(--gutter) 10vh; }
.timeline__wrap { display: grid; grid-template-columns: minmax(220px, 0.9fr) 1.6fr; gap: 4vw; align-items: start; }

/* sticky rail: chapter counter, big year, range, and a visual that follows the active item */
.timeline__rail { position: sticky; top: 14vh; }
.timeline__chapter { color: var(--muted); }
.timeline__chapter b { color: var(--violet-2); font-weight: 500; }
.timeline__year { font-family: var(--font-display); font-size: clamp(5rem, 12vw, 11rem); line-height: 0.85; margin: 1rem 0 0.6rem; overflow: hidden; height: 0.9em; }
.timeline__year span { display: block; }
.timeline__range { color: var(--muted); margin-bottom: 2rem; }
.timeline__visual { position: relative; width: min(100%, 320px); aspect-ratio: 4/5; }
.timeline__tile { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; opacity: 0; transform: translateY(12px) scale(0.98); transition: opacity 0.6s ease, transform 0.9s var(--ease-out); border: 1px solid var(--line); background: #1a1330; }
.timeline__tile.is-on { opacity: 1; transform: none; }
.timeline__tile img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.timeline__tile > .mono { position: absolute; left: 0.9rem; bottom: 0.8rem; color: var(--white); font-size: 0.6rem; letter-spacing: 0.1em; text-shadow: 0 2px 10px rgba(0,0,0,0.6); }
.timeline__tile--mono { display: flex; align-items: center; justify-content: center; background: radial-gradient(80% 70% at 30% 20%, rgba(192,132,252,0.35), transparent 60%), linear-gradient(160deg, #241a45, #0f0a1e); }
.timeline__tile--mono::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 12px); }
.timeline__tile--mono b { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 9rem; line-height: 1; color: rgba(233,221,255,0.28); }

/* main column: drawn progress line, nodes, items that light up as they pass */
.timeline__main { position: relative; padding-left: 2.2rem; }
.timeline__line { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line); }
.timeline__line i { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: linear-gradient(180deg, var(--violet-2), var(--violet)); transform-origin: top; transform: scaleY(0); box-shadow: 0 0 12px rgba(192,132,252,0.6); }
.timeline__list { position: relative; }
.timeline__item {
  position: relative; display: grid; grid-template-columns: 8rem 1fr; column-gap: 2rem;
  padding: 2.4rem 0 2.6rem; border-bottom: 1px solid var(--line);
  opacity: 0.38; transition: opacity 0.6s ease, transform 0.8s var(--ease-out);
}
.timeline__item.is-active { opacity: 1; }
.timeline__item:hover { transform: translateX(6px); }
.timeline__node { position: absolute; left: calc(-2.2rem - 4px); top: 2.85rem; width: 9px; height: 9px; border-radius: 50%; background: var(--bg-dark); border: 1px solid var(--muted); transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.6s var(--ease-out); }
.timeline__item.is-active .timeline__node { background: var(--violet-2); border-color: var(--violet-2); box-shadow: 0 0 0 6px rgba(192,132,252,0.18), 0 0 18px rgba(192,132,252,0.7); transform: scale(1.3); }
.timeline__years { color: var(--violet-2); padding-top: 0.35rem; }
.timeline__role { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.4rem); line-height: 1.02; font-weight: 400; }
.timeline__org { color: var(--muted); margin-top: 0.4rem; }
.timeline__desc { color: rgba(246, 242, 255, 0.8); max-width: 60ch; margin-top: 0.8rem; }
.timeline__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.timeline__chips li { border: 1px solid var(--line); border-radius: 999px; padding: 0.4em 0.8em; color: var(--muted); font-size: 0.62rem; letter-spacing: 0.08em; transition: color 0.4s ease, border-color 0.4s ease, transform 0.6s var(--ease-out); }
.timeline__item.is-active .timeline__chips li { color: var(--white); border-color: rgba(192,132,252,0.5); }
.timeline__item.is-active .timeline__chips li:nth-child(2n) { transition-delay: 0.08s; }
.timeline__edu { margin-top: 4rem; display: grid; grid-template-columns: 9rem 1fr; column-gap: 2rem; }
.timeline__edu ul { display: flex; flex-wrap: wrap; gap: 1rem 2.4rem; color: var(--muted); padding-top: 0.25rem; }
@media (max-width: 900px) {
  .timeline__wrap { grid-template-columns: 1fr; }
  .timeline__rail { position: static; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1rem; margin-bottom: 2rem; }
  .timeline__visual { display: none; }
  .timeline__year { font-size: clamp(3.5rem, 18vw, 6rem); }
}
@media (max-width: 700px) { .timeline__item, .timeline__edu { grid-template-columns: 1fr; row-gap: 0.4rem; } }

/* ==========================================================================
   AI IN THE LOOP
   ========================================================================== */
.ai { padding: 14vh var(--gutter); border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%); }
.ai__head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3vw; align-items: end; margin-bottom: 5rem; }
.ai__lead { padding-bottom: 0.6rem; }
@media (max-width: 900px) { .ai__head { grid-template-columns: 1fr; } }

.ai__demo {
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: rgba(255, 255, 255, 0.02); backdrop-filter: blur(6px);
}
.ai__prompt { display: flex; gap: 1.2rem; align-items: center; padding: 1rem 1.4rem; border-bottom: 1px solid var(--line); }
.ai__prompt-label { color: var(--violet-2); }
.ai__prompt-text { color: var(--white); text-transform: none; font-size: 0.8rem; min-height: 1.4em; }
.ai__caret { display: inline-block; width: 0.55em; height: 1em; background: var(--violet-2); vertical-align: -0.15em; margin-left: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ai__stage { position: relative; height: clamp(320px, 42vw, 560px); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ai__stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 50%, rgba(139, 92, 246, 0.18), transparent 70%); }

.ai__mock {
  position: relative; width: min(64%, 640px); aspect-ratio: 16 / 10; border-radius: 12px;
  background: #1a1330; border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 40px 100px rgba(0,0,0,0.5);
  padding: 0; overflow: hidden; transform: scale(0.94); opacity: 0;
}
.ai__mock > * { opacity: 0; transform: translateY(12px); }
.ai__mock-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.ai__mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.ai__mock-nav { display: flex; align-items: center; gap: 10px; padding: 12px 18px; }
.ai__mock-nav b { width: 42px; height: 10px; border-radius: 3px; background: var(--lavender); }
.ai__mock-nav span { width: 26px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.3); }
.ai__mock-nav em { margin-left: auto; width: 54px; height: 16px; border-radius: 999px; background: var(--violet); }
.ai__mock-hero { padding: 18px 18px 6px; }
.ai__mock-h1 { height: 18px; width: 72%; border-radius: 4px; background: linear-gradient(90deg, #fff, rgba(255,255,255,0.7)); margin-bottom: 8px; }
.ai__mock-h1--short { width: 46%; }
.ai__mock-p { height: 8px; width: 58%; border-radius: 3px; background: rgba(255,255,255,0.35); margin: 12px 0 14px; }
.ai__mock-cta { width: 84px; height: 22px; border-radius: 999px; background: var(--violet-2); }
.ai__mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px 18px 18px; }
.ai__mock-cards div { aspect-ratio: 4/3; border-radius: 8px; background: linear-gradient(135deg, rgba(139,92,246,0.5), rgba(217,70,239,0.35)); }
.ai__mock.is-crafted .ai__mock-cards div:nth-child(1) { background: linear-gradient(135deg, #8b5cf6, #d946ef); }
.ai__mock.is-crafted .ai__mock-cards div:nth-child(2) { background: linear-gradient(135deg, #c084fc, #8b5cf6); }
.ai__mock.is-crafted .ai__mock-cards div:nth-child(3) { background: linear-gradient(135deg, #e9ddff, #c084fc); }

.ai__variants { position: absolute; inset: 0; pointer-events: none; }
.ai__variant {
  --ink: rgba(246,242,255,0.85); --dim: rgba(246,242,255,0.28); --acc: #c084fc; --acc2: #8b5cf6;
  position: absolute; width: 27%; aspect-ratio: 16/10; border-radius: 10px; padding: 7% 5% 5%;
  border: 1px solid rgba(255,255,255,0.14); background: #1a1330; opacity: 0; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.ai__variant[data-tone="b"] { --acc: #f0abfc; --acc2: #d946ef; background: #1c1136; }
.ai__variant[data-tone="c"] { --acc: #e9ddff; --acc2: #a78bfa; background: #171233; }
.ai__variant[data-tone="d"] { --acc: #fbcfe8; --acc2: #c084fc; background: #1f1436; }
.ai__variant[data-v="1"] { left: 5%; top: 9%; }
.ai__variant[data-v="2"] { right: 5%; top: 7%; }
.ai__variant[data-v="3"] { left: 7%; bottom: 8%; }
.ai__variant[data-v="4"] { right: 7%; bottom: 10%; }
.ai__variant.is-picked { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc), 0 24px 70px rgba(139,92,246,0.45); }
.ai__vlabel { position: absolute; top: 5px; left: 8px; font-size: 0.5rem; letter-spacing: 0.12em; color: var(--dim); }
/* drawn UI primitives */
.ai__variant .v-nav { display: flex; align-items: center; gap: 4%; margin-bottom: 8%; }
.ai__variant .v-nav b { width: 14%; height: 5px; border-radius: 2px; background: var(--ink); }
.ai__variant .v-nav i { width: 9%; height: 3px; border-radius: 2px; background: var(--dim); }
.ai__variant .v-nav em { margin-left: auto; width: 16%; height: 8px; border-radius: 999px; background: var(--acc2); }
.ai__variant .v-nav.center { justify-content: center; }
.ai__variant .v-h1 { height: 9px; width: 70%; border-radius: 2px; background: var(--ink); margin-bottom: 4%; }
.ai__variant .v-h1.short { width: 44%; }
.ai__variant .v-h1.center { margin-left: auto; margin-right: auto; }
.ai__variant .v-h2 { height: 7px; width: 40%; border-radius: 2px; background: var(--ink); margin-bottom: 6%; }
.ai__variant .v-p { height: 4px; width: 58%; border-radius: 2px; background: var(--dim); margin: 5% 0; }
.ai__variant .v-p.short { width: 40%; }
.ai__variant .v-cta { width: 26%; height: 10px; border-radius: 999px; background: var(--acc); }
.ai__variant .v-cta.center { margin: 6% auto 0; }
.ai__variant .v-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; margin-top: 7%; }
.ai__variant .v-row span { aspect-ratio: 4/3; border-radius: 4px; background: linear-gradient(135deg, var(--acc2), var(--acc)); opacity: 0.8; }
.ai__variant .v-cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: 6%; }
.ai__variant .v-img { border-radius: 5px; background: linear-gradient(160deg, var(--acc2), var(--acc)); position: relative; min-height: 60px; }
.ai__variant .v-img u { position: absolute; left: 12%; bottom: 12%; width: 40%; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.7); }
.ai__variant .v-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; }
.ai__variant .v-tiles span { aspect-ratio: 1; border-radius: 4px; background: linear-gradient(135deg, var(--acc2), var(--acc)); opacity: 0.75; }
.ai__variant .v-tiles span:nth-child(2n) { opacity: 0.45; }
.ai__variant .v-lines { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; margin-top: 8%; }
.ai__variant .v-lines i { display: block; height: 3px; border-radius: 2px; background: var(--dim); margin-bottom: 9%; }
.ai__variant .v-lines i:last-child { width: 60%; }
/* the crafted mockup borrows the picked variant's tone */
.ai__mock[data-tone="b"] .ai__mock-cta { background: #f0abfc; }
.ai__mock[data-tone="c"] .ai__mock-cta { background: #e9ddff; }
.ai__mock[data-tone="d"] .ai__mock-cta { background: #fbcfe8; }

.ai__steps { display: flex; gap: 2rem; padding: 1rem 1.4rem; border-top: 1px solid var(--line); overflow-x: auto; }
.ai__steps span { color: var(--muted); white-space: nowrap; transition: color 0.3s ease; }
.ai__steps span.is-active { color: var(--white); }
.ai__steps span.is-done { color: var(--violet-2); }

.ai__pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 5rem; }
.ai__pillars li { background: var(--bg-dark-2); padding: 1.8rem 1.4rem 2.2rem; }
.ai__pillars li .mono { color: var(--violet-2); display: block; margin-bottom: 1.8rem; }
.ai__pillars h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; line-height: 1; margin-bottom: 0.8rem; }
.ai__pillars p { color: rgba(246,242,255,0.72); font-size: 0.92rem; }
@media (max-width: 1000px) { .ai__pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ai__pillars { grid-template-columns: 1fr; } }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services { padding: 14vh var(--gutter); border-top: 1px solid var(--line); background: var(--bg-dark-2); position: relative; overflow: hidden; }
.services__head { margin-bottom: 4rem; }
.services__list { border-top: 1px solid var(--line); position: relative; z-index: 1; }
.services__list li {
  display: grid; grid-template-columns: 5rem 1fr auto; align-items: center; gap: 1.5rem;
  padding: 1.35rem 0; border-bottom: 1px solid var(--line); position: relative;
  transition: color 0.4s ease;
}
.services__list li .mono:first-child { color: var(--muted); }
.services__name { font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 3rem); line-height: 1; transition: transform 0.6s var(--ease-out); }
.services__list li:hover .services__name { transform: translateX(1.2rem); }
.services__tag { color: var(--violet-2); }
.services__list li::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--violet-2); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease-out);
}
.services__list li:hover::after { transform: scaleX(1); }
.services__preview {
  position: fixed; z-index: 700; width: 22vw; max-width: 340px; min-width: 200px; aspect-ratio: 4/3; border-radius: 12px;
  pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(0.85) rotate(-4deg);
  transition: opacity 0.35s ease, transform 0.6s var(--ease-out); overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}
.services__preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
.services__preview::before { content: ""; position: absolute; inset: 0; background: var(--tone, linear-gradient(135deg, #8b5cf6, #d946ef)); }
.services__preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.services__preview.has-image { aspect-ratio: 4/5; width: 18vw; }
.services__preview::after { content: attr(data-label); position: absolute; left: 14px; bottom: 12px; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; color: #fff; }
.services__tools { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 3rem; }
.services__tools span { border: 1px solid var(--line); border-radius: 999px; padding: 0.45em 0.9em; color: var(--muted); }

/* ==========================================================================
   WORK
   ========================================================================== */
.work { padding: 14vh var(--gutter); border-top: 1px solid var(--line); background: var(--bg-dark); }
.work__head { margin-bottom: 4rem; }
.work__note { margin-top: 1.8rem; color: var(--violet-2); }
.work__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4rem 3rem; }
.project:nth-child(even) { transform: translateY(6rem); }
.project__link { display: block; }
.project__media { overflow: hidden; border-radius: 14px; aspect-ratio: 16/11; position: relative; }
.project__art {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  transition: transform 1s var(--ease-out);
  background-size: cover; background-position: top center;
}
.project:hover .project__art { transform: scale(1.05); }
.project__art span {
  font-family: var(--font-display); font-style: italic; font-size: 30vw; line-height: 1; color: rgba(255,255,255,0.9);
  mix-blend-mode: overlay; transition: transform 1.2s var(--ease-out);
}
.project:hover .project__art span { transform: translateY(-4%) rotate(-3deg); }
.project__art--a { background: linear-gradient(135deg, #2a1a4d, #8b5cf6 60%, #e9ddff); }
.project__art--b { background: linear-gradient(160deg, #d946ef, #4a1d96 55%, #0f0a1e); }
.project__art--c { background: linear-gradient(135deg, #0f0a1e, #6d28d9 50%, #c084fc); }
.project__art--d { background: linear-gradient(200deg, #c084fc, #1e1b4b 60%, #0f0a1e); }
.project__art--e { background: linear-gradient(135deg, #f0abfc, #8b5cf6 45%, #1e1b4b); }
.project__art--f { background: linear-gradient(150deg, #312e81, #d946ef 70%, #fbcfe8); }
.project__art.has-image {
  background-color: #1a1330;
  background-image: var(--shot);
  background-size: 100% auto;          /* fit the page width to the box; the page's own height stays */
  background-position: top center;     /* start on the navigation bar and hero */
  background-repeat: no-repeat;
  transition: transform 1s var(--ease-out), background-position 8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.project:hover .project__art.has-image { background-position: bottom center; transform: scale(1.02); }
.project__art.has-image span { display: none; }
.project__art.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(15,10,30,0.55)); }
.project__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; color: var(--muted); margin-top: 1.1rem; }
.project__title { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1; margin-top: 0.5rem; }
.project__tags { color: var(--violet-2); margin-top: 0.5rem; }
@media (max-width: 760px) { .work__grid { grid-template-columns: 1fr; gap: 3rem; } .project:nth-child(even) { transform: none; } }

/* ==========================================================================
   ME
   ========================================================================== */
.me { padding: 14vh var(--gutter); border-top: 1px solid var(--line); background: var(--bg-dark-2); }
.me__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4vw; align-items: center; }
.me__frame {
  position: relative; aspect-ratio: 4/5; border-radius: 16px; overflow: hidden;
  background: radial-gradient(80% 70% at 30% 20%, rgba(192,132,252,0.35), transparent 60%), linear-gradient(160deg, #241a45, #0f0a1e);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
}
.me__frame::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 12px); }
.me__initials { font-family: var(--font-display); font-style: italic; font-size: 24vw; line-height: 1; color: rgba(233,221,255,0.25); }
.me__photo-note { position: absolute; left: 1rem; bottom: 1rem; color: var(--muted); }
.me__chip { color: var(--violet-2); margin: 1.6rem 0 0.6rem; }
.me__links { display: flex; gap: 2rem; margin-top: 2rem; }
.me__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 5rem; }
.me__stats div { background: var(--bg-dark-2); padding: 1.6rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; }
.me__stat { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: 0.9; }
.me__stats .mono { color: var(--muted); }
@media (max-width: 860px) { .me__grid { grid-template-columns: 1fr; } .me__stats { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { padding: 14vh var(--gutter); border-top: 1px solid var(--line); background: var(--bg-dark); display: grid; grid-template-columns: 1fr 1.6fr; gap: 3vw; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; display: grid; grid-template-columns: 3rem 1fr auto; align-items: center; gap: 1rem;
  padding: 1.4rem 0; font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.9rem); line-height: 1;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .mono { color: var(--muted); font-size: 0.68rem; }
.faq__item summary i { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: transform 0.5s var(--ease-out), background 0.3s ease; }
.faq__item summary i::before, .faq__item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1px; background: currentColor; transform: translate(-50%, -50%); }
.faq__item summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] summary i { transform: rotate(45deg); background: rgba(192,132,252,0.2); }
.faq__body { padding: 0 0 1.6rem 4rem; max-width: 60ch; color: rgba(246,242,255,0.8); }
.faq__body p { overflow: hidden; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } .faq__body { padding-left: 0; } }

/* ==========================================================================
   CONTACT / FOOTER
   ========================================================================== */
.contact { padding: 16vh var(--gutter) 0; border-top: 1px solid var(--line); position: relative; overflow: hidden; background: radial-gradient(80% 50% at 50% 110%, rgba(139,92,246,0.35), transparent 60%), var(--bg-dark); }
.contact__top { text-align: left; }
.contact__title .display__italic { font-size: 0.72em; }
.contact__sub { color: var(--muted); margin-top: 1.4rem; max-width: 34em; }
.contact__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 8rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.contact__grid .tag { margin-bottom: 1rem; }
.contact__grid a, .contact__grid p, .contact__grid button { display: block; margin-bottom: 0.6rem; color: rgba(246,242,255,0.85); text-align: left; }
.contact__grid a:hover { color: var(--violet-2); }
.copy { position: relative; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.02em; }
.copy span { position: absolute; left: 0; top: 0; color: var(--violet-2); opacity: 0; transition: opacity 0.3s ease; background: var(--bg-dark); }
.copy.is-copied span { opacity: 1; }
.contact__bottom { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-top: 4rem; padding: 1.4rem 0; border-top: 1px solid var(--line); color: var(--muted); }
@media (max-width: 860px) { .contact__grid { grid-template-columns: repeat(2, 1fr); } }

/* Utilities --------------------------------------------------------------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* ==========================================================================
   ENTRY GATE (shown before the site, Emotion-style)
   ========================================================================== */
.gate {
  position: fixed; inset: 0; z-index: 1000;
  background: #f4effc; color: #241a45;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.gate__glow {
  position: absolute; left: 0; top: 0; width: 46vw; height: 46vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,255,255,0.85) 22%, rgba(233,221,255,0.45) 48%, rgba(233,221,255,0) 70%);
  filter: blur(28px); pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.gate__glow--2 {
  width: 30vw; height: 30vw; filter: blur(40px);
  background: radial-gradient(circle, rgba(192,132,252,0.55) 0%, rgba(192,132,252,0.18) 45%, rgba(192,132,252,0) 70%);
}
.gate__center { position: relative; text-align: center; z-index: 2; }
.gate__logo { font-family: var(--font-display); font-size: clamp(2.2rem, 3.6vw, 3.4rem); line-height: 1; letter-spacing: -0.01em; color: #2a1f4d; }
.gate__logo em { font-style: italic; color: #8b5cf6; }
.gate__tagline { margin-top: 1.4rem; color: #2a1f4d; letter-spacing: 0.06em; font-size: 0.74rem; }
.gate__actions {
  position: absolute; left: 50%; bottom: clamp(2rem, 6vh, 5rem); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 1.4rem; z-index: 2;
  opacity: 0; pointer-events: none; transition: opacity 0.8s ease;
}
.gate__actions.is-ready { opacity: 1; pointer-events: auto; }
.gate__btn { display: inline-flex; align-items: center; gap: 0.7em; font-family: var(--font-sans); font-size: 1.02rem; font-weight: 500; color: #2a1f4d; }
.gate__btn--audio {
  padding: 1.05em 2em; border-radius: 999px; color: #3b2a6b;
  background: linear-gradient(120deg, rgba(255,255,255,0.9), rgba(214,196,255,0.9) 55%, rgba(192,132,252,0.75));
  box-shadow: 0 0 0 1px rgba(139,92,246,0.35), 0 18px 50px rgba(139,92,246,0.28), inset 0 1px 0 rgba(255,255,255,0.9);
  transition: transform 0.6s var(--ease-out), box-shadow 0.4s ease;
}
.gate__btn--audio:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 0 0 1px rgba(139,92,246,0.5), 0 24px 60px rgba(139,92,246,0.4), inset 0 1px 0 #fff; }
.gate__btn--mute { position: relative; font-size: 0.98rem; }
.gate__btn--mute::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: rgba(42,31,77,0.35); transform: scaleX(1); transform-origin: right; transition: transform 0.5s var(--ease-out); }
.gate__btn--mute:hover::after { transform: scaleX(0); transform-origin: left; }
.gate__progress {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 1.2rem;
  display: flex; align-items: center; gap: 2.4rem; color: rgba(42,31,77,0.7); font-size: 0.66rem; letter-spacing: 0.1em;
  transition: opacity 0.6s ease;
}
.gate__progress.is-done { opacity: 0; }
.gate__bar { flex: 0 0 18vw; height: 1px; background: rgba(42,31,77,0.15); position: relative; }
.gate__bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #8b5cf6; }
.gate__pct { color: #8b5cf6; font-variant-numeric: tabular-nums; margin-left: auto; }
@media (max-width: 700px) { .gate__progress span:not(.gate__bar):not(.gate__pct) { display: none; } .gate__bar { flex: 1; } }

/* Header sound toggle */
.sound { display: inline-flex; align-items: center; gap: 0.5rem; }
.sound__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound__bars i { width: 2px; height: 3px; background: currentColor; transition: height 0.3s ease; }
.sound[aria-pressed="true"] .sound__bars i { animation: soundbar 0.9s ease-in-out infinite; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(2) { animation-delay: 0.15s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(3) { animation-delay: 0.3s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(4) { animation-delay: 0.45s; }
@keyframes soundbar { 0%, 100% { height: 3px; } 50% { height: 12px; } }
.sound__label { font-size: 0.62rem; letter-spacing: 0.1em; }

/* ==========================================================================
   START A PROJECT — modal that hands the message to WhatsApp
   ========================================================================== */
.pm { position: fixed; inset: 0; z-index: 950; display: flex; align-items: center; justify-content: center; padding: var(--gutter); }
.pm[hidden] { display: none; }
.pm__backdrop { position: absolute; inset: 0; background: rgba(8, 5, 18, 0.72); backdrop-filter: blur(10px); }
.pm__panel {
  position: relative; width: min(760px, 100%); max-height: calc(100vh - 2 * var(--gutter)); overflow: auto;
  background: linear-gradient(160deg, #1c1436, #120c24); border: 1px solid rgba(233,221,255,0.16); border-radius: 22px;
  padding: clamp(1.4rem, 3vw, 2.6rem); box-shadow: 0 40px 120px rgba(0,0,0,0.6), 0 0 0 1px rgba(139,92,246,0.15) inset;
}
.pm__close { position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--white); font-size: 0.9rem; transition: background 0.3s ease, transform 0.5s var(--ease-out); }
.pm__close:hover { background: rgba(192,132,252,0.18); transform: rotate(90deg); }
.pm__title { font-family: var(--font-display); font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 0.95; margin: 0 0 0.8rem; }
.pm__title em { font-style: italic; color: var(--violet-2); }
.pm__sub { color: var(--muted); margin-bottom: 1.8rem; }
.pm__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.pm__field { display: flex; flex-direction: column; gap: 0.5rem; }
.pm__field--full { grid-column: 1 / -1; }
.pm__field > .mono { color: var(--muted); font-size: 0.64rem; letter-spacing: 0.1em; }
.pm__field input, .pm__field select, .pm__field textarea {
  width: 100%; font: 500 0.98rem var(--font-sans); color: var(--white);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(233,221,255,0.16); border-radius: 12px; padding: 0.85em 1em;
  outline: none; transition: border-color 0.3s ease, background 0.3s ease; cursor: none;
}
.pm__field input::placeholder, .pm__field textarea::placeholder { color: rgba(246,242,255,0.35); }
.pm__field input:focus, .pm__field select:focus, .pm__field textarea:focus { border-color: var(--violet-2); background: rgba(192,132,252,0.08); }
.pm__field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--violet-2) 50%), linear-gradient(135deg, var(--violet-2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.pm__field select option { background: #1c1436; color: var(--white); }
.pm__field textarea { resize: vertical; min-height: 110px; }
.pm__field.is-invalid input, .pm__field.is-invalid select, .pm__field.is-invalid textarea { border-color: #f472b6; }
.pm__error { color: #f9a8d4; margin-top: 1rem; }
.pm__actions { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; margin-top: 1.6rem; }
.pm__send { margin-top: 0; background: #25d366; color: #06210f; }
.pm__send:hover { background: #3ee07a; }
.pm__note { color: var(--muted); }
.pm__note a { color: var(--white); border-bottom: 1px solid currentColor; }
.pm__done { text-align: center; padding: 2rem 0 1rem; }
.pm__done-title { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.05; margin-bottom: 1rem; }
.pm__done a { color: var(--violet-2); border-bottom: 1px solid currentColor; }
@media (max-width: 640px) { .pm { padding: 0; align-items: flex-end; } .pm__panel { border-radius: 22px 22px 0 0; max-height: 92vh; } .pm__grid { grid-template-columns: 1fr; } }
@media (hover: none), (pointer: coarse) { .pm__field input, .pm__field select, .pm__field textarea { cursor: auto; } }

/* ==========================================================================
   AI PROOF STRIP — real creatives, auto-scrolling, pause on hover
   ========================================================================== */
.ai__proof { margin-top: 5rem; }
.ai__proof-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3vw; align-items: end; margin-bottom: 2.4rem; }
.ai__proof-note { color: var(--muted); padding-bottom: 0.4rem; }
@media (max-width: 900px) { .ai__proof-head { grid-template-columns: 1fr; } }
.ai__strip { position: relative; overflow: hidden; margin: 0 calc(-1 * var(--gutter)); padding: 0.5rem 0 1rem;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ai__track { display: flex; gap: 1.2rem; width: max-content; padding: 0 var(--gutter); will-change: transform; }
.ai__strip { cursor: none; user-select: none; touch-action: pan-y; }
.ai__strip.is-dragging .ai__shot { transform: scale(0.98); }
.ai__shot img { -webkit-user-drag: none; pointer-events: none; }
@keyframes aiStrip { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ai__shot { position: relative; margin: 0; height: clamp(240px, 36vh, 380px); flex: 0 0 auto; border-radius: 14px; overflow: hidden;
  background: #1a1330; box-shadow: 0 24px 60px rgba(0,0,0,0.45); transition: transform 0.7s var(--ease-out); }
.ai__shot img { display: block; height: 100%; width: auto; object-fit: cover; }
.ai__shot:hover { transform: translateY(-8px) scale(1.02); }
.ai__shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 1rem; padding: 2.2rem 0.9rem 0.8rem;
  background: linear-gradient(180deg, transparent, rgba(10,6,22,0.85)); color: var(--white); font-size: 0.6rem; letter-spacing: 0.1em; opacity: 0; transition: opacity 0.4s ease; }
.ai__shot:hover figcaption { opacity: 1; }

/* ==========================================================================
   FOOTER FINALE — the MANN mark, lines and lightning over the outlined MANNSEN,
   on the footer's own background
   ========================================================================== */
.contact__finale { position: relative; height: max(calc(18.6vw * 0.78), 220px); margin-top: 2rem;
  cursor: none; user-select: none; touch-action: pan-y; }
.contact__finale .wire__stage { position: absolute; inset: 0; z-index: 1; }
.contact__finale .wire__stage .wire__canvas { width: 100% !important; height: 100% !important; display: block; }
.contact__finale .wire__fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.wire__hint { position: absolute; right: var(--gutter); bottom: var(--gutter); z-index: 3; text-align: right; color: rgba(246,242,255,0.6); pointer-events: none; }
.wire__hint em { font-style: normal; color: #8ec5ff; }
@media (hover: none), (pointer: coarse) { .wire__hint { display: none; } }
