/* Plaimaker — shared site styles (index.php, en/index.php).
   Tokens, layout, components. Page-only rules can stay inline in each page. */
/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --bg:        #050505;
  --dark-gray: #1d1d1d;
  --white:     #f6f6f6;
  --gray:      rgba(246,246,246,0.85);
  --border:    rgba(255,255,255,0.2);
  --border-s:  rgba(255,255,255,0.08);
  --gradient:  linear-gradient(90deg,
    rgb(230,143,248)  0%,
    rgb(249,137,185)  19.723%,
    rgb(251,172,194)  44.32%,
    rgb(251,199,133)  65.273%,
    rgb(229,212,255)  84.708%,
    rgb(210,227,255)  100%);
  --font: 'Geist', system-ui, sans-serif;
  --mono: 'Geist Mono', 'Courier New', monospace;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap {
  max-width: 1064px;
  margin: 0 auto;
  padding: 0 48px;
}
.wrap-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
}
.wrap-hero {
  max-width: 848px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  position: relative;
  width: 100%;
}

/* ============================================================
   UTILITY
   ============================================================ */
.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mono { font-family: var(--mono); }

/* Dotted background pattern */
.dots-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.09) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 0%, transparent 100%);
}
.dots-bg-full {
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 20%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 20%, black 0%, transparent 100%);
}

.divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

/* ============================================================
   FIXED NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 100;
  /* overflow visible so the goo blur can bleed outside bounds */
  transition:
    opacity   0.4s ease,
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar.nav-faded {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(20px);
}

/* The goo filter is applied here so the pills can merge */
.navbar-pills {
  display: flex;
  align-items: stretch;
  gap: 4px;
  white-space: nowrap;
  filter: url(#goo);
  transform: translateZ(0);
}

.navbar-logo,
.navbar-status,
.navbar-cta {
  background: var(--dark-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 99px;
}

.navbar-logo {
  padding: 10px 22px;
  height: 44px;
  flex-shrink: 0;
}

.navbar-logo img {
  width: 40px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  display: block;
}

.navbar-status {
  padding: 8px 16px;
  gap: 8px;
}

.navbar-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: dot-pulse 2s ease-out infinite;
}

@keyframes dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  60%  { box-shadow: 0 0 0 5px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.navbar-count {
  display: none;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--white);
}

.navbar-bullet {
  display: none;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--white);
  opacity: 0.5;
}

.navbar-ea {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.navbar-cta {
  cursor: pointer;
  background: var(--white);
  color: var(--dark-gray);
  font-family: var(--mono);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0;
  overflow: hidden;
  /* Explicit width so we can animate it */
  max-width: 220px;
  padding: 12px 24px;
  transition:
    max-width  0.55s cubic-bezier(0.4, 0, 0.2, 1),
    padding    0.55s cubic-bezier(0.4, 0, 0.2, 1),
    margin     0.45s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity    0.2s  ease;
}
.navbar-cta:hover { opacity: 0.85; }
/* Dark ring around the white CTA: the goo filter merges it with the pills,
   so the button reads as set INTO the navbar instead of stuck next to it */
.navbar-cta { box-shadow: 0 0 0 5px var(--dark-gray); margin: 0 5px 0 5px; }
.navbar-cta.hidden { box-shadow: 0 0 0 0 var(--dark-gray); margin-left: -4px; margin-right: 0; }

/* Collapsed state — pill shrinks into the status pill */
.navbar-cta.hidden {
  max-width: 0;
  padding-left: 0;
  padding-right: 0;
  /* Pull it flush against status so the blur bridge forms */
  margin-left: -4px;
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 160px;
  position: relative;
  text-align: center;
}

/* Form success state — shown after email submission (or restored on return visits) */
.signup-success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.signup-success-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 20px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--white);
}
.signup-success-badge b { font-weight: 400; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.invite-chip {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: -12px;
  padding: 6px 14px; border-radius: 99px;
  font-family: var(--mono); font-size: 12px; text-transform: uppercase;
  background: rgba(14,14,14,0.6); border: 1px solid var(--border-s);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.invite-chip[hidden] { display: none; }
.invite-chip b { font-weight: 400; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Dot-grid canvas background — hero section only */
.hero-dither {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

/* Side + corner vignette over the dot-grid, behind the card */
.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse 65% 105% at 50% 50%, transparent 40%, var(--bg) 82%);
}

/* Rotated glass card decoration — fixed so it follows the viewport while scrolling */
.hero-card-deco {
  position: fixed;
  width: 340px;
  height: 493px;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%) rotate(-4.8deg);
  border-radius: 16px;
  pointer-events: none;
  z-index: 2;
  will-change: transform;
}

/* ── Glass effect layers (applied inside .hero-card-deco) ── */
.glass-effect {
  -webkit-backdrop-filter: saturate(120%) blur(8px);
  backdrop-filter: saturate(120%) blur(8px);
  pointer-events: none;
  isolation: isolate;
  color: #201d1d;
  border-radius: inherit;
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.glass-effect__fill {
  opacity: 1;
  border-radius: inherit;
  background-color: rgba(255,255,255,0.04);
  position: absolute;
  inset: 0;
}
.glass-effect__fill-burn {
  opacity: .03;
  mix-blend-mode: color-burn;
  border-radius: inherit;
  background-color: currentColor;
  position: absolute;
  inset: 0;
}
.glass-effect__highlight-soft {
  mix-blend-mode: overlay;
  border-radius: inherit;
  position: absolute;
  inset: 0;
  box-shadow: inset -.28125em -.28125em .09375em -.328125em #ffffff80;
}
.glass-effect__highlight-strong {
  border-radius: inherit;
  position: absolute;
  inset: 0;
  box-shadow: inset .28125em .28125em .09375em -.328125em #fffc;
}
.glass-effect__edge-light {
  border-radius: inherit;
  mix-blend-mode: plus-lighter;
  position: absolute;
  inset: 0;
  box-shadow: inset .1875em .28125em .09375em -.1875em #b3b3b380;
}
.glass-effect__edge-dark {
  mix-blend-mode: overlay;
  border-radius: inherit;
  position: absolute;
  inset: 0;
  box-shadow: inset -.1875em -.28125em .09375em -.1875em #b3b3b34d;
}
.glass-effect__inner-glow {
  mix-blend-mode: darken;
  border-radius: inherit;
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 1.75em #f2f2f21a;
}


.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 848px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-label-br { display: none; }

.hero-label {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1.4;
}

.hero-heading {
  font-family: var(--font);
  font-weight: 600;
  font-size: clamp(34px, 6.4vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--white);
  text-wrap: balance;
}

.hero-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--white);
  max-width: 560px;
  text-wrap: pretty;
}
.hero-body p { opacity: 0.85; }
.hero-body .hero-body-sub { opacity: 0.55; font-size: 15px; }

/* Email form */
.email-form {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

/* Email field: same type size and height as the CTA next to it, with a frosted
   backing so what you type stays readable over the dot grid and glass card. */
/* Layers, back to front: ::before (frosted fill + border) → .caret-clip (typing
   trail) → input (transparent, text on top) → ::after (gradient ring). */
.email-wrap {
  position: relative;
  display: flex;
  border-radius: 99px;
  isolation: isolate;
}
.email-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  -webkit-backdrop-filter: blur(18px) saturate(140%);
          backdrop-filter: blur(18px) saturate(140%);
  background: rgba(14,14,14,0.62);
  border: 1px solid rgba(255,255,255,0.18);
  transition: border-color 0.25s, background-color 0.25s;
  pointer-events: none;
}
.email-wrap:focus-within::before { border-color: rgba(255,255,255,0.32); background-color: rgba(14,14,14,0.75); }
.email-form.has-error .email-wrap::before { border-color: rgba(249,137,137,0.7); }
.email-input {
  position: relative;
  z-index: 2;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 99px;
  padding: 0 24px;
  height: calc(16px * 1.2 + 2em);   /* = .bpa-content: 1em padding top/bottom at 16px */
  width: 300px;
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.2;
  text-transform: lowercase;
  color: var(--white);
  caret-color: rgb(249,137,185);
  outline: none;
  transition: border-color 0.25s, background-color 0.25s;
}
.email-input::placeholder { color: rgba(246,246,246,0.5); }

/* Typing trail: a soft streak that ends at the caret and fades behind it,
   violet at the head → greyish lilac → transparent. Position/length set by JS. */
.caret-clip {
  position: absolute;
  inset: 1px;
  z-index: 1;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}
.caret-trail {
  /* crisp rectangle behind the text: 0% at the left → 80% at the caret */
  position: absolute;
  top: 50%;
  left: 0;
  height: 22px;
  margin-top: -11px;
  width: var(--len, 40px);
  transform: translateX(var(--x, 0px));
  border-radius: 2px;
  background: linear-gradient(90deg,
    rgba(229,212,255,0) 0%,
    rgba(200,188,222,0.35) 45%,
    rgba(230,143,248,0.8) 100%);
  opacity: 0;
  transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.5s ease;
}
.email-wrap.is-trailing .caret-trail { opacity: 1; transition-duration: 0.2s, 0.28s, 0.12s; }
@media (prefers-reduced-motion: reduce) { .caret-clip { display: none; } }

/* Typing feedback: the brand gradient ring brightens on each keystroke and
   its colour slides along with the text length (set by JS as --kx). */
.email-wrap::after {
  content: '';
  position: absolute;
  z-index: 3;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(90deg,
    rgb(230,143,248), rgb(249,137,185), rgb(251,199,133), rgb(229,212,255), rgb(210,227,255), rgb(230,143,248));
  background-size: 300% 100%;
  background-position: var(--kx, 0%) 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, background-position 0.5s cubic-bezier(0.22,1,0.36,1);
}
.email-wrap:focus-within::after { opacity: 0.35; }
.email-wrap.is-typing::after { opacity: 1; transition: opacity 0.08s ease, background-position 0.5s cubic-bezier(0.22,1,0.36,1); }

/* ============================================================
   ANIMATED BUTTONS — primary (light) + secondary (dark)
   Character stagger on hover
   ============================================================ */

/* Shared outer wrapper */
.btn-primary,
.btn-parliamone {
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  display: inline-flex;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

/* Pill container */
.bpa-content {
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  padding: 1em 1.75em;
  display: flex;
  position: relative;
}

/* Background layer — animates inset on hover */
.bpa-bg {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  transition: inset 0.6s cubic-bezier(0.625, 0.05, 0, 1);
}

/* Text — clips the sliding chars */
.bpa-text {
  font-size: 1em;
  text-transform: uppercase;
  font-family: var(--mono);
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  display: inline-block;
  z-index: 1;
}

/* Each split character */
.bpa-text span {
  display: inline-block;
  position: relative;
  text-shadow: 0px 1.3em currentColor;
  transform: translateY(0em) rotate(0.001deg);
  transition: transform 0.6s cubic-bezier(0.625, 0.05, 0, 1);
}

/* Space chars need to preserve their width */
.bpa-text span.bpa-space { white-space: pre; }

/* Color themes */
.btn-primary .bpa-content { color: var(--dark-gray); }
.btn-primary .bpa-bg      { background-color: var(--white); }

.btn-parliamone .bpa-content { color: var(--white); }
.btn-parliamone .bpa-bg      { background-color: var(--dark-gray); }

/* Secondary (on light backgrounds): outlined dark pill, same size as the primary */
.btn-secondary-dark {
  font-family: var(--mono); font-size: 16px; line-height: 1.2;
  display: inline-flex; cursor: pointer;
}
.btn-secondary-dark .bpa-content { color: var(--dark-gray); }
/* Frosted, no stroke: lighter fill + blur so it reads clearly over the dot pattern */
.btn-secondary-dark .bpa-bg {
  background-color: rgba(255,255,255,0.62);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
          backdrop-filter: blur(14px) saturate(140%);
  transition: inset 0.6s cubic-bezier(0.625, 0.05, 0, 1), background-color 0.3s;
}
@media (hover: hover) and (pointer: fine) {
  .btn-secondary-dark:hover .bpa-text span { transform: translateY(-1.3em) rotate(0.001deg); }
  .btn-secondary-dark:hover .bpa-bg { inset: 0.2em; background-color: rgba(255,255,255,0.8); }
}

/* Hover — mouse devices only */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover .bpa-text span,
  .btn-parliamone:hover .bpa-text span { transform: translateY(-1.3em) rotate(0.001deg); }

  .btn-primary:hover .bpa-bg      { inset: 0.2em; }
  .btn-parliamone:hover .bpa-bg   { inset: 0.2em; }
}


/* ============================================================
   IL CONTESTO
   ============================================================ */
.contesto {
  padding: 200px 0;
  position: relative;
}

.contesto-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  position: relative;
  z-index: 2;
}


.section-label {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.8;
  letter-spacing: 0;
  line-height: 1.4;
}

/* Heading with tool ticker inline */
.contesto-heading-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.ticker-unit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.contesto-h2 {
  font-weight: 600;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: var(--white);
}

/* Tool ticker pill — one logo at a time; each arrival makes the pill
   breathe out a little and settle back to its fixed width (GSAP, see toolTicker()) */
.tool-ticker {
  position: relative;
  width: 150px;
  height: 50px;
  flex-shrink: 0;
}
.tool-ticker-bg {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--dark-gray);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
  will-change: transform;
}
.tool-ticker-clip {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  overflow: hidden;
}
.tool-ticker-img {
  --lh: 12px;
  position: absolute;
  inset: 0;
  justify-content: center;
  opacity: 0;
}
.tool-ticker-img.is-on { opacity: 1; }   /* first logo visible before JS runs */

.contesto-h2-block {
  font-weight: 600;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: var(--white);
  text-align: center;
}

.contesto-body {
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.32px;
  color: var(--white);
  opacity: 0.8;
  max-width: 592px;
}

/* Closing text (So cosa stai pensando…) */
.so-section {
  padding: 40px 0;
  text-align: center;
}

.so-sub {
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(18px, 3.5vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.48px;
  color: var(--gray);
  margin-bottom: 16px;
}

.so-heading {
  font-weight: 600;
  font-size: clamp(22px, 4.5vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.64px;
  color: var(--white);
}

/* ============================================================
   BENTO GRID
   ============================================================ */
.bento-section {
  padding-bottom: 120px;
}

.bento-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bento-row {
  display: grid;
  gap: 16px;
}
.bento-row-3 { grid-template-columns: repeat(3, 1fr); }
.bento-row-2 { grid-template-columns: repeat(2, 1fr); }
/* Row 1: shorter, so each visual sits close under its copy instead of floating at the bottom */
.bento-row-3 .bento-card { height: 336px; }

.bento-card {
  height: 380px;
  border-radius: 24px;
  padding: 24px;
  overflow: hidden;
  position: relative;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bento-card-title {
  font-weight: 600;
  font-size: clamp(18px, 3.5vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.48px;
  color: var(--white);
  position: relative;
  z-index: 2;
}

.bento-card-desc {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.084px;
  color: var(--white);
  position: relative;
  z-index: 2;
}

/* Card visual areas */
.bento-visual {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

/* ---- Bracket corners (shared) ---- */
.bracket {
  position: absolute;
  width: 19px;
  height: 19px;
  border-color: var(--white);
  border-style: solid;
  border-width: 0;
}
.bracket-tl { top: -11px; left: -11px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 8px; }
.bracket-tr { top: -11px; right: -11px; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 8px; }
.bracket-bl { bottom: -11px; left: -11px; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 8px; }
.bracket-br { bottom: -11px; right: -11px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 8px; }

/* ---- Card 1: Esperimenti dal vivo ---- */
.card-esperimenti {
  overflow: hidden;
}
.esp-bg {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 344px;
  height: auto;
  pointer-events: none;
  z-index: 0;
  opacity: 0.50;
}
.esp-content {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 258px;
  height: 158px;
  z-index: 3;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Vector "episode" player */
.esp-player {
  border-radius: 8px 8px 0 0;
  background: #0d0d0d;
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom: 0;
  overflow: hidden;
  cursor: default;
}
.esp-screen { position: absolute; inset: 0; }
.esp-screen-bar {
  display: flex; align-items: center; gap: 3px;
  height: 16px; padding: 0 7px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-family: var(--mono); font-size: 7px; color: rgba(246,246,246,0.4);
}
.esp-screen-bar i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.esp-screen-bar span { margin-left: auto; margin-right: auto; }
.esp-screen-body {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding-top: 18px;
  background:
    radial-gradient(circle, rgba(255,255,255,0.12) 0.6px, transparent 0.8px) 0 0 / 7px 7px;
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
          mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
  height: 100%;
}
.esp-screen-eyebrow { font-family: var(--mono); font-size: 6px; text-transform: uppercase; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.esp-screen-h { font-size: 11px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; text-align: center; color: var(--white); }
.esp-screen-line { width: 110px; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.14); }
.esp-screen-line.short { width: 76px; }
.esp-screen-cta { width: 54px; height: 10px; border-radius: 99px; background: var(--white); margin-top: 3px; }
.esp-cursor { position: absolute; left: 60%; top: 58%; animation: esp-cursor 7s cubic-bezier(0.45,0,0.2,1) infinite; }
@keyframes esp-cursor {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-58px,-34px); }
  45%  { transform: translate(-30px,6px); }
  52%  { transform: translate(-30px,6px) scale(0.85); }
  56%  { transform: translate(-30px,6px); }
  80%  { transform: translate(40px,-18px); }
  100% { transform: translate(0,0); }
}
.esp-rec {
  position: absolute; top: 22px; left: 8px;
  display: flex; align-items: center; gap: 4px;
  padding: 2px 6px; border-radius: 99px;
  background: rgba(5,5,5,0.7);
  font-family: var(--mono); font-size: 7px; color: var(--white);
}
.esp-rec i { width: 4px; height: 4px; border-radius: 50%; background: #ff4d4d; animation: esp-rec 1.4s ease-in-out infinite; }
@keyframes esp-rec { 50% { opacity: 0.25; } }
.esp-play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -38%);
  display: flex; align-items: center; gap: 0;
  height: 34px; padding: 0 10px;
  border-radius: 99px;
  color: var(--dark-gray);
  background: rgba(246,246,246,0.92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; white-space: nowrap;
  transition: gap 0.45s cubic-bezier(0.22,1,0.36,1), padding 0.45s cubic-bezier(0.22,1,0.36,1);
}
.esp-play span { max-width: 0; overflow: hidden; transition: max-width 0.45s cubic-bezier(0.22,1,0.36,1); }
.esp-cam {
  position: absolute; right: 8px; bottom: 26px;
  width: 44px; height: 44px; border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(246,246,246,0.9);
  box-shadow: 0 6px 16px rgba(0,0,0,0.5);
}
.esp-cam img { width: 100%; height: 100%; object-fit: cover; }
.esp-timeline {
  position: absolute; left: 8px; right: 8px; bottom: 16px;
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 7px; color: rgba(246,246,246,0.6);
}
.esp-track { flex: 1; height: 2px; border-radius: 2px; background: rgba(255,255,255,0.15); overflow: hidden; }
.esp-track i { display: block; height: 100%; width: 22%; background: var(--gradient); animation: esp-progress 14s linear infinite; transform-origin: left; }
@keyframes esp-progress { from { width: 8%; } to { width: 92%; } }
@media (hover: hover) {
  .card-esperimenti:hover .esp-play { gap: 6px; padding: 0 14px 0 12px; }
  .card-esperimenti:hover .esp-play span { max-width: 80px; }
}

/* Card 1 — folder-stack rects behind the content image */
.esp-rect {
  position: absolute;
  border-radius: 4px;
  left: 50%;
}
.esp-rect-mid {
  width: 246px;
  height: 157px;
  background: #252525;
  bottom: -10px;
  transform: translateX(-50%);
  z-index: 2;
  transition: transform 0.4s 0.06s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.esp-rect-back {
  width: 234px;
  height: 164px;
  background: #383838;
  bottom: -10px;
  transform: translateX(-50%);
  z-index: 1;
  transition: transform 0.4s 0.12s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (hover: hover) {
  .card-esperimenti:hover .esp-content {
    transform: translateX(-50%) translateY(-10px);
  }
  .card-esperimenti:hover .esp-rect-mid {
    transform: translateX(-50%) translateY(-10px);
  }
  .card-esperimenti:hover .esp-rect-back {
    transform: translateX(-50%) translateY(-10px);
  }
}

/* ---- Card 2: Tool Carousel ---- */
.tool-carousel-outer {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  height: 130px;  /* explicit height so brackets can escape clip */
  z-index: 2;     /* above the dotted bg (z-index: 1) */
}
.tool-carousel-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  /* No border-radius, no gradients — card edge handles clipping */
}
.tool-carousel-track {
  position: absolute;
  top: 20px;  /* (130 - 90) / 2 */
  left: 0;
  display: flex;
  gap: 16px;
  will-change: transform;
}
.carousel-item {
  width: 150px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  transform-origin: center center;
}
/* Vector tool tiles — crisp at any DPR, zero image weight beyond the wordmarks */
.tool-tile {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: #0e0e0e;
  isolation: isolate;
}
.tool-tile::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 90% at 50% 120%, var(--glow) 0%, transparent 60%),
              radial-gradient(60% 60% at 0% 0%, rgba(255,255,255,0.06), transparent 70%);
}
.tool-tile--claude { --glow: rgba(217,119,87,0.75); }
.tool-tile--codex  { --glow: rgba(118,132,255,0.7); }
.tool-tile--cursor { --glow: rgba(150,150,150,0.55); }
/* Logo lockup: icon + vector wordmark from the sprite; height drives everything */
.lockup { --lh: 16px; display: inline-flex; align-items: center; gap: calc(var(--lh) * 0.4); color: var(--white); }
.lockup .lk-i { width: calc(var(--lh) * 1.25); height: calc(var(--lh) * 1.25); flex-shrink: 0; }
.lockup .lk-t { height: var(--lh); width: calc(var(--lh) * var(--ar)); }
/* Monochrome marks (Cursor, Copilot, all wordmarks) have no fill of their own:
   without this they inherit SVG's default black and vanish on the dark UI */
.lockup svg { fill: currentColor; }
.tool-tile-logo { --lh: 15px; }
.tool-tile-prompt {
  display: flex; align-items: center; gap: 3px;
  width: 118px; height: 18px; padding: 0 7px;
  border-radius: 99px;
  background: rgba(5,5,5,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  font-family: var(--mono); font-size: 7px; color: rgba(246,246,246,0.75);
  white-space: nowrap; overflow: hidden;
}
.tool-tile-prompt span::before { content: '> '; opacity: 0.5; }
.tool-tile-prompt i { width: 1px; height: 8px; background: var(--white); animation: esp-rec 1s steps(1) infinite; }
/* Bracket frame — uses bento_02_frame.svg (196×119) */
.carousel-bracket-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 196px;
  height: 119px;
  pointer-events: none;
  z-index: 5;
}
.carousel-bracket-wrap img {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---- Card 3: Incontra altri plaimaker ---- */
.c3-canvas {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: 0;            /* flush to card bottom — border-radius clips corners */
  width: 360px; height: 230px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
  /* fade top edge only; bottom is handled by the card's overflow:hidden */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 42%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 42%);
}

.c3-avatars {
  position: absolute;
  left: 0; right: 0;
  bottom: 20px;
  height: 150px;
  z-index: 2;
  pointer-events: none;
}

.c3-av {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
}
.c3-av img { width: 100%; height: 100%; object-fit: cover; display: block; }

/*
  Crescent arc with equal 8 px edge-to-edge gaps between every consecutive pair.
  av3 r=45 | av2/4 r=36 | av1/5 r=30
  av2 center = -(45+8+36) = -89px  →  left: calc(50% - 125px)
  av1 center = -(89+36+8+30) = -163px  →  left: calc(50% - 193px)
*/
.c3-av-3 {
  width: 90px; height: 90px;
  left: calc(50% - 45px); bottom: 50px;
  z-index: 3;
  animation: c3-bob 3.2s 0s ease-in-out infinite;
}
.c3-av-2 {
  width: 72px; height: 72px;
  left: calc(50% - 125px); bottom: 40px;
  z-index: 2;
  animation: c3-bob 3.2s 0.3s ease-in-out infinite;
}
.c3-av-4 {
  width: 72px; height: 72px;
  left: calc(50% + 53px); bottom: 40px;
  z-index: 2;
  animation: c3-bob 3.2s 0.3s ease-in-out infinite;
}
.c3-av-1 {
  width: 60px; height: 60px;
  left: calc(50% - 193px); bottom: 7px;
  z-index: 1;
  animation: c3-bob 3.2s 0.6s ease-in-out infinite;
}
.c3-av-5 {
  width: 60px; height: 60px;
  left: calc(50% + 133px); bottom: 7px;
  z-index: 1;
  animation: c3-bob 3.2s 0.6s ease-in-out infinite;
}

@keyframes c3-bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

/* ---- Card 4: Un toolkit condiviso — browser window, one tab per tool, real screen recordings ---- */
.tk-player {
  position: absolute;
  left: 24px; right: 24px; top: 132px; bottom: 0;
  z-index: 2;
}
.tk-window {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  background: #0b0b0b;
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom: 0;
  box-shadow: 0 -10px 40px -20px rgba(0,0,0,0.8);
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
@media (hover: hover) { .card-toolkit:hover .tk-window { transform: translateY(-6px); } }
.tk-chrome {
  display: flex;
  align-items: stretch;
  gap: 2px;
  height: 34px;
  padding: 0 6px 0 10px;
  border-bottom: 1px solid var(--border-s);
  flex-shrink: 0;
}
.tk-dots { display: flex; align-items: center; gap: 4px; margin-right: 8px; }
.tk-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.14); }
.tk-tab {
  all: unset;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: rgba(246,246,246,0.45);
  transition: color 0.3s;
}
.tk-tab:hover, .tk-tab.is-active { color: var(--white); }
.tk-tab:focus-visible { outline: 2px solid var(--white); outline-offset: -4px; border-radius: 6px; }
/* progress of the active recording, drawn on the tab's bottom edge */
.tk-bar {
  position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px;
  background: var(--gradient);
  transform-origin: left; transform: scaleX(0);
}
.tk-open {
  margin-left: auto;
  align-self: center;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--white);
  padding: 4px 9px;
  border-radius: 99px;
  background: rgba(255,255,255,0.08);
  transition: background 0.2s, opacity 0.2s;
}
.tk-open:hover { background: rgba(255,255,255,0.16); }
.tk-open.is-off { opacity: 0; pointer-events: none; }
.tk-stage { position: relative; flex: 1; min-height: 0; background: #000; }
.tk-pane {
  position: absolute; inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.tk-pane.is-active { opacity: 1; transform: none; }
.tk-video {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;   /* keep the app's header in view, crop the bottom */
  background: #000;
}
.tk-badge {
  position: absolute; right: 8px; bottom: 10px;
  font-family: var(--mono); font-size: 9px; text-transform: uppercase;
  padding: 3px 7px; border-radius: 99px;
  color: #062b14; background: #4ade80;
}
.tk-badge--soon { color: var(--white); background: rgba(5,5,5,0.7); border: 1px solid rgba(255,255,255,0.2); }

/* ---- Una library esclusiva ---- */
.library-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
  color: var(--white);
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 24px;
  z-index: 3;
}

/* Marquee of real Taccuino components (Library_Components/public/registry thumbnails).
   Starts at the same 132px line as the toolkit window next to it; 1.5 rows show,
   so the visible block matches that window's height (157 + 12 + 78 ≈ 248px). */
.library-marquee-wrap {
  position: absolute;
  top: 132px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.library-marquee-row { overflow: hidden; width: 100%; }
.library-marquee-track { display: flex; gap: 16px; width: max-content; }

/* Loop = 3 items + 3 gaps = 3 × (252 + 16) = 804px. Row 2 offset by one slot (1/3 of its cycle). */
.library-track-left  { animation: lib-left 30s linear infinite; }
.library-track-right { animation: lib-right 36s linear infinite -12s; }
@keyframes lib-left  { 0% { transform: translateX(0); }      100% { transform: translateX(-804px); } }
@keyframes lib-right { 0% { transform: translateX(-804px); } 100% { transform: translateX(0); } }
@media (hover: hover) { .card-library:hover .library-marquee-track { animation-play-state: paused; } }

.lib-item {
  position: relative;
  width: 252px;
  height: 157px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.lib-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1), filter 0.4s;
}
.lib-item figcaption {
  position: absolute; left: 8px; bottom: 8px;
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 99px;
  color: var(--white);
  background: rgba(5,5,5,0.72);
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}
@media (hover: hover) {
  .lib-item:hover img { transform: scale(1.04); }
  .lib-item:hover figcaption { opacity: 1; transform: none; }
}

/* ============================================================
   ABOUT / INTRO
   ============================================================ */
.about-section {
  padding: 120px 0;
}

.about-row {
  display: flex;
  align-items: center;
  gap: 48px;
}

.about-photo-col {
  position: relative;
  width: 308px;
  height: 405px;
  flex-shrink: 0;
}

.about-photo-container {
  width: 308px;
  height: 405px;
  border-radius: 24px;
  overflow: hidden;
  background: #090909;
  position: relative;
}

.about-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 30%;
  transform: scale(1.02);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.about-photo-col:hover .about-photo-img { transform: scale(1.06); }

/* Bottom shade so the caption reads on the sky */
.about-photo-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,5,5,0.85) 0%, rgba(5,5,5,0.2) 32%, transparent 55%);
}
.about-photo-caption {
  position: absolute;
  left: 20px; right: 20px; bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.about-photo-name { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--white); }
.about-photo-role {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-links { display: flex; gap: 8px; margin-top: 8px; }
.about-link {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 99px;
  border: 1px solid var(--border);
  transition: background 0.2s, border-color 0.2s;
}
.about-link:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.35); }

.about-bio-col {
  flex: 1;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-section-label {
  font-weight: 400;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.8;
}

.about-bio-text {
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: rgba(246,246,246,0.62);
  font-weight: 400;
  text-wrap: pretty;
}
.about-bio-text strong { color: var(--white); font-weight: 600; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
  padding: 120px 0;
}

.faq-inner {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  max-width: 1064px;
  margin: 0 auto;
  padding: 0 48px;
}

.faq-left {
  width: 307px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-left-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-heading {
  font-weight: 600;
  font-size: clamp(18px, 3.5vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.48px;
  color: var(--white);
}

.faq-subtext {
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: -0.084px;
  color: var(--gray);
}

.faq-accordion {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
}

.faq-q { font: inherit; }
/* question number: small grey superscript to the left of the question */
.faq-n {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  color: rgba(246,246,246,0.4);
  vertical-align: super;
  line-height: 0;
  margin-right: 8px;
}
.faq-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  font-weight: 600;
  font-size: clamp(16px, 3vw, 20px);
  line-height: 1.2;
  letter-spacing: -0.4px;
  color: var(--white);
}

.faq-toggle {
  font-size: clamp(16px, 3vw, 20px);
  flex-shrink: 0;
  font-weight: 400;
  line-height: 1.2;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.084px;
  color: var(--gray);
  margin-top: 0;
  height: 0;
  overflow: hidden;
  transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.35s ease;
}

.faq-item.open .faq-answer {
  margin-top: 8px;
}

/* ============================================================
   PER I TEAM
   ============================================================ */
.team-section {
  padding: 120px 48px;
  max-width: 1160px;
  margin: 0 auto;
}

.team-banner {
  border-radius: 24px;
  padding: 64px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 90% at 50% 50%, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 70%),
    conic-gradient(from 90deg at 50% 50%,
      rgb(210,227,255) 0deg,
      rgb(230,143,248) 13.7deg,
      rgb(249,137,185) 71deg,
      rgb(251,172,194) 160deg,
      rgb(251,199,133) 235deg,
      rgb(229,212,255) 305deg,
      rgb(210,227,255) 360deg
    );
}

/* Wave shader (from shader.plaimaker.space) over the static gradient, which stays as fallback */
.team-wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.team-wave.is-painted { opacity: 1; }
/* Fine film grain at screen resolution (tiny SVG noise tile, static) */
.team-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 1.2 -0.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

/* Iridescent dot field — revealed under the cursor, same dotted language as the
   hero/footer rings. Colour = brand-adjacent iridescent sweep that turns with the
   cursor; shape = 8px dot grid ∩ soft spotlight. --cx/--cy are px, set by JS. */
.team-pattern,
.team-format::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: conic-gradient(from var(--ca, 0deg) at var(--cx, 50%) var(--cy, 50%),
    #8b5cff, #ff4fa3, #ff9b5c, #ffd36b, #57d6ff, #8b5cff);
  -webkit-mask-image:
    radial-gradient(circle at 4px 4px, #000 1.1px, transparent 1.6px),
    radial-gradient(circle var(--cr, 200px) at var(--cx, 50%) var(--cy, 50%), #000 0%, rgba(0,0,0,0.5) 45%, transparent 100%);
  -webkit-mask-size: 8px 8px, 100% 100%;
  -webkit-mask-composite: source-in;
          mask-image:
    radial-gradient(circle at 4px 4px, #000 1.1px, transparent 1.6px),
    radial-gradient(circle var(--cr, 200px) at var(--cx, 50%) var(--cy, 50%), #000 0%, rgba(0,0,0,0.5) 45%, transparent 100%);
          mask-size: 8px 8px, 100% 100%;
          mask-composite: intersect;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.team-pattern { z-index: 1; --cr: 230px; }
@media (hover: hover) {
  .team-banner:hover .team-pattern { opacity: 0.4; }
}
/* On the cards: same field, much fainter, so copy stays fully readable */
.team-format { position: relative; overflow: hidden; }
.team-format > * { position: relative; z-index: 1; }
.team-format::before { --cr: 150px; z-index: 0; }
@media (hover: hover) {
  .team-format:hover::before { opacity: 0.14; }
}

.team-banner-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.team-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.team-formats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
/* No backdrop-filter: blurring a live shader glitched at the card edges and cost a
   full re-blur every frame. A translucent fill + inner highlight reads the same. */
.team-format {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(255,255,255,0.6);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
          backdrop-filter: blur(22px) saturate(150%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7), 0 10px 30px -18px rgba(80,20,90,0.35);
  color: var(--dark-gray);
  transform: translateZ(0);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), background 0.3s;
}
.team-format:hover { transform: translateY(-4px); background: rgba(255,255,255,0.7); }
.team-format-n { font-family: var(--mono); font-size: 11px; opacity: 0.55; }
.team-format h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.team-format p { font-size: 14px; line-height: 1.45; opacity: 0.78; }
.team-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(29,29,29,0.12);
}
.team-outcome { font-size: 16px; line-height: 1.4; color: var(--dark-gray); max-width: 460px; display: flex; flex-direction: column; gap: 8px; }
.team-note { font-size: 13px; line-height: 1.45; opacity: 0.7; }
.team-note a { text-decoration: underline; text-underline-offset: 3px; }
.team-ctas { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.team-link { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--dark-gray); opacity: 0.7; transition: opacity 0.2s; }
.team-link:hover { opacity: 1; }

.team-label {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--dark-gray);
  opacity: 0.8;
  line-height: 1.4;
}

.team-heading {
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--dark-gray);
}

.team-body {
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--dark-gray);
  opacity: 0.85;
  text-wrap: pretty;
}

/* ============================================================
   EARLY ACCESS CTA
   ============================================================ */
.cta-section {
  padding: 120px 80px;
  text-align: center;
}

.cta-inner {
  max-width: 848px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cta-label {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  line-height: 1.4;
}

.cta-heading {
  font-weight: 600;
  font-size: clamp(32px, 7vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.96px;
  color: var(--white);
}

.cta-body {
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.32px;
  color: var(--white);
  opacity: 0.8;
  max-width: 592px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 80px;
  position: relative;
  overflow: hidden;
}

/* Footer animated dot-ring canvas */
.footer-canvas {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  opacity: 0.18;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 100%, black 15%, rgba(0,0,0,0.6) 50%, transparent 80%);
          mask-image: radial-gradient(ellipse 85% 75% at 50% 100%, black 15%, rgba(0,0,0,0.6) 50%, transparent 80%);
}

.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 80px;
  position: relative;
  z-index: 2;
}

.footer-logo-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  font-weight: 600;
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: -0.96px;
  color: var(--white);
}

.footer-tagline {
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.32px;
  color: var(--white);
  opacity: 0.8;
}

.footer-menu {
  display: flex;
  gap: 16px;
}

.footer-menu-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 240px;
}

.footer-menu-label {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--gray);
  line-height: 1.4;
  margin-bottom: 4px;
}

.footer-menu-link {
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.32px;
  color: var(--white);
  opacity: 0.8;
  transition: opacity 0.2s;
}
.footer-menu-link:hover { opacity: 1; }

/* Copy-email links: the action is stated up front, and confirmed in place */
.footer-copy { display: inline-flex; align-items: baseline; gap: 10px; }
.fc-hint {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: rgba(246,246,246,0.7);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.footer-copy:hover .fc-hint { background: var(--white); color: var(--dark-gray); border-color: var(--white); }
.footer-copy.is-copied { opacity: 1; }
.footer-copy.is-copied .fc-label { color: #4ade80; }
.footer-copy.is-copied .fc-hint { visibility: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.footer-sub {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: relative;
  z-index: 2;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-sub-url {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--gray);
}

.footer-beta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  filter:
    drop-shadow(0 0 8px rgba(230,143,248,0.5))
    drop-shadow(0 0 18px rgba(249,137,185,0.25));
}

.footer-beta-text {
  background: linear-gradient(90deg,
    rgb(230,143,248) 0%,
    rgb(249,137,185) 20%,
    rgb(251,172,194) 40%,
    rgb(251,199,133) 60%,
    rgb(229,212,255) 80%,
    rgb(230,143,248) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: beta-shimmer 3s linear infinite;
}

@keyframes beta-shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.footer-beta-star {
  display: inline-block;
  background: linear-gradient(135deg, rgb(230,143,248), rgb(251,199,133));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: star-spin 4s ease-in-out infinite;
  transform-origin: center;
}

@keyframes star-spin {
  0%   { transform: scale(1)    rotate(0deg);   }
  50%  { transform: scale(1.25) rotate(180deg); }
  100% { transform: scale(1)    rotate(360deg); }
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: nowrap;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--gray);
  justify-content: flex-end;
  justify-self: end;
}

.footer-legal-link {
  font-size: 12px;
  font-family: var(--mono);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .wrap { padding: 0 16px; }
  .wrap-wide { padding: 0 16px; }

  /* Nav */
  .navbar { bottom: 16px; }
  .navbar-bullet { display: none; }
  .navbar-cta { font-size: 12px; padding: 10px 16px; }

  /* Hero */
  .hero { padding: 16px; }
  .hero-label-br { display: inline; }
  .hero-card-deco { display: none; }
  .hero-label { font-size: 16px; width: 100%; text-align: center; }
  .email-form { flex-direction: column; width: 100%; }
  .email-wrap, .email-input { width: 100%; }
  .btn-primary { width: 100%; justify-content: center; }
  .btn-primary .bpa-content { flex: 1; justify-content: center; }

  /* Contesto — .wrap-hero already gives 24px horizontal margin */
  .contesto { padding: 120px 0; }
  .contesto-inner { padding: 0; }
  .contesto-heading-row { flex-wrap: wrap; justify-content: center; gap: 6px; }

  /* Ticker pill — scaled down to match mobile heading size */
  .tool-ticker { width: 112px; height: 38px; }
  .tool-ticker-img { --lh: 9px; }

  /* Bento */
  .bento-row-3 { grid-template-columns: 1fr; }
  .bento-row-2 { grid-template-columns: 1fr; }
  .bento-card { height: auto; min-height: 320px; }
  .bento-visual { position: relative; bottom: auto; left: auto; transform: none; margin-top: auto; }

  /* About */
  .about-row { flex-direction: column; }
  .about-row { gap: 32px; align-items: stretch; }
  .about-photo-col { width: 100%; height: 360px; }
  .about-photo-container { width: 100%; height: 100%; }

  /* FAQ */
  .faq-inner { flex-direction: column; padding: 0 16px; gap: 32px; }
  .faq-left { width: 100%; }
  .faq-subtext { font-size: 16px; }
  .faq-answer { font-size: 16px; }

  /* Team */
  .team-section { padding: 80px 16px; }
  .team-body { font-size: 16px; }
  .team-formats { grid-template-columns: 1fr; }

  /* Toolkit player flows under the copy on mobile */
  .tk-player { position: relative; left: auto; right: auto; top: auto; bottom: auto; margin: 16px -24px -24px; }
  .tk-window { height: auto; }
  .tk-stage { flex: none; aspect-ratio: 16 / 10; }
  .tk-tab { padding: 0 7px; font-size: 11px; }
  .bento-row-3 .bento-card { height: auto; }
  .library-marquee-wrap { position: relative; top: auto; margin: 16px -24px -24px; }
  .lib-item { width: 200px; height: 125px; }
  @keyframes lib-left  { 0% { transform: translateX(0); }      100% { transform: translateX(-648px); } }
  @keyframes lib-right { 0% { transform: translateX(-648px); } 100% { transform: translateX(0); } }

  /* Section labels & small text → minimum 16px */
  .section-label { font-size: 16px; }
  .about-section-label { font-size: 16px; }
  .cta-label { font-size: 16px; }
  .bento-card-desc { font-size: 16px; }

  /* CTA */
  .cta-section { padding: 80px 16px; }

  /* Footer */
  .footer { padding: 60px 16px 84px; }
  .footer-main { flex-direction: column; gap: 40px; margin-bottom: 32px; }
  .footer-menu { flex-wrap: wrap; }
  /* Stacked and centred: badge → legal links → copyright, nothing wraps mid-item */
  .footer-sub {
    grid-template-columns: 1fr;
    grid-template-areas: "beta" "legal" "url";
    justify-items: center;
    gap: 16px;
    padding-top: 28px;
  }
  .footer-beta { grid-area: beta; }
  .footer-legal { grid-area: legal; justify-self: center; justify-content: center; gap: 8px 20px; flex-wrap: wrap; }
  .footer-sub-url { grid-area: url; white-space: nowrap; opacity: 0.6; }
}

@media (max-width: 1200px) {
  .team-banner { padding: 56px; }
  .bento-row-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .team-banner { padding: 32px 20px; }
}
@media (max-width: 900px) {
  .team-formats { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .bento-row-3 { grid-template-columns: 1fr; }
  .bento-row-2 { grid-template-columns: 1fr; }
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Text reveal system ──────────────────────────────────────────
   One mechanism for hero, contesto and CTA. Applied only when JS is on
   (html.js) so content never stays hidden without scripts.
   line  → masked slide-up + blur-to-sharp, per line
   rise  → soft slide-up + blur, for rows that can't be masked (ticker)
   fade  → quiet fade/slide for eyebrows, body copy and forms
   .sheen → the brand gradient sweeps across the text once, then settles white */
.reveal-line {
  display: block;
  overflow: hidden;
  /* room for descenders inside the clip */
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.reveal-line > span { display: inline-block; }

.sheen,
.reveal-line > span {
  background-image: linear-gradient(100deg,
    var(--white) 0%, var(--white) 36%,
    rgb(230,143,248) 42%, rgb(249,137,185) 47%,
    rgb(251,199,133) 53%, rgb(229,212,255) 59%,
    var(--white) 66%, var(--white) 100%);
  background-size: 320% 100%;
  background-position: 0% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.js [data-reveal] { will-change: transform, opacity, filter; }
.js [data-reveal="fade"] { opacity: 0; transform: translateY(14px); filter: blur(6px); }
.js [data-reveal="rise"] { opacity: 0; transform: translateY(0.45em); filter: blur(10px); }
.js [data-reveal="line"] > span { transform: translateY(105%); filter: blur(8px); opacity: 0; }
.js [data-reveal] .sheen,
.js [data-reveal="line"] > span,
.js .sheen[data-reveal] { background-position: 100% 0; }

.is-revealed [data-reveal="fade"],
.is-revealed [data-reveal="rise"] {
  animation: rv-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s) both;
}
.is-revealed [data-reveal="line"] > span {
  animation:
    rv-line 1s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s) both,
    rv-sheen 1.5s cubic-bezier(0.45, 0, 0.2, 1) calc(var(--d, 0s) + 0.05s) both;
}
.is-revealed [data-reveal] .sheen,
.is-revealed .sheen[data-reveal] {
  animation: rv-sheen 1.5s cubic-bezier(0.45, 0, 0.2, 1) calc(var(--d, 0s) + 0.05s) both;
}
.is-revealed .sheen[data-reveal] {
  animation:
    rv-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s) both,
    rv-sheen 1.5s cubic-bezier(0.45, 0, 0.2, 1) calc(var(--d, 0s) + 0.05s) both;
}
@keyframes rv-in    { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes rv-line  { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes rv-sheen { to { background-position: 0% 0; } }

/* Settled state drops will-change so layers are released */
.reveal-done [data-reveal] { will-change: auto; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal],
  .js [data-reveal="line"] > span { opacity: 1; transform: none; filter: none; animation: none !important; }
  .js .sheen, .js [data-reveal="line"] > span { background-position: 0% 0; }
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 92px;
  right: 24px;
  z-index: 99;
  max-width: 300px;
  background: var(--dark-gray);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.cookie-banner.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-banner-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--gray);
  cursor: pointer;
  font-size: 14px;
  font-family: var(--mono);
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}
.cookie-banner-close:hover { color: var(--white); }
.cookie-banner-text {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--gray);
  line-height: 1.7;
  padding-right: 16px;
}
.cookie-banner-text a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-banner-ok {
  align-self: flex-start;
  background: var(--white);
  color: var(--dark-gray);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  border: none;
  border-radius: 99px;
  padding: 8px 20px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.cookie-banner-ok:hover { opacity: 0.85; }
@media (max-width: 768px) {
  .cookie-banner {
    bottom: 80px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
}

/* ============================================================
   PASS OVERLAY
   ============================================================ */
.pass-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.pass-overlay.visible {
  opacity: 1;
  pointer-events: all;
}
.pass-rays-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
/* Block (not flex) so tall content scrolls from the top instead of being clipped above */
.pass-overlay { display: block; overflow-y: auto; overscroll-behavior: contain; }
.pass-overlay-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 72px;
  padding: 48px 24px;
  width: 100%;
  min-height: 100%;
}

/* Right-hand panel: what just happened + what happens next */
.pass-panel {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  transform: translateY(12px);
  filter: blur(6px);
  transition: opacity 0.7s 0.45s cubic-bezier(0.22,1,0.36,1), transform 0.7s 0.45s cubic-bezier(0.22,1,0.36,1), filter 0.7s 0.45s ease;
}
.pass-overlay.visible .pass-panel { opacity: 1; transform: none; filter: none; }
.pass-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pass-eyebrow::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74,222,128,0.15);
}
.pass-title {
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--white);
  text-wrap: balance;
}
.pass-lead {
  font-size: 15px;
  line-height: 1.5;
  color: var(--white);
  opacity: 0.7;
}
.pass-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-s);
  margin-top: 4px;
}
.pass-steps li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-s);
  font-size: 14px;
  line-height: 1.45;
  color: rgba(246,246,246,0.8);
}
.pass-step-n {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 20px;
  opacity: 0.45;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .pass-overlay-inner { flex-direction: column; gap: 40px; justify-content: flex-start; padding: 72px 20px 40px; }
  .pass-panel { text-align: left; }
}

/* ── Card ── */
.pass-card-wrap { perspective: 1000px; }
.pass-card {
  width: 340px;
  height: 493px;
  background: #0a0a0a;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 56px;
  transform: rotate(-4.8deg);
  opacity: 0; /* animated in via JS */
  box-shadow: 0 0 80px rgba(80,0,200,0.22), 0 28px 80px rgba(0,0,0,0.75);
}

/* Cursor-tracking pattern reveal on hover (same mechanic as team banner) */
.pass-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  border-radius: 16px;
  background-image: url('/assets/images/team_pattern.svg');
  background-size: cover;
  background-position: center;
  mix-blend-mode: overlay;
  -webkit-mask-image: radial-gradient(circle 140px at var(--mx, 50%) var(--my, 50%), black 0%, transparent 70%);
  mask-image: radial-gradient(circle 140px at var(--mx, 50%) var(--my, 50%), black 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
@media (hover: hover) and (pointer: fine) {
  .pass-card:hover::after { opacity: 0.18; }
}

/* Header */
.pass-card-header {
  height: 72px;
  display: flex;
  flex-shrink: 0;
}
.pass-card-header-gradient {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  background: linear-gradient(135deg,
    rgb(230,143,248)  0%,
    rgb(249,137,185) 25%,
    rgb(251,172,194) 50%,
    rgb(251,199,133) 75%,
    rgb(229,212,255) 100%
  );
  background-size: 200% 200%;
  animation: pass-mark-shift 6s ease-in-out infinite alternate;
  display: flex;
  align-items: center;
  justify-content: center;
}
@keyframes pass-mark-shift {
  0%   { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}
.pass-card-mark {
  width: 100px;
  height: 100px;
  object-fit: contain;
}
.pass-card-header-right {
  flex: 1;
  display: flex;
  align-items: center;
  padding-left: 18px;
  padding-right: 16px;
  justify-content: flex-end;
}
.pass-card-ea-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--white);
  white-space: nowrap;
}

/* Number row */
.pass-card-number-row {
  display: flex;
  align-items: flex-start;
  padding: 0 24px;
  flex-shrink: 0;
  gap: 8px;
}
.pass-card-tagline {
  flex: 1;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--white);
  line-height: 1.55;
  opacity: 0.75;
}
.pass-card-number {
  font-family: var(--mono);
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Details */
.pass-card-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.pass-detail-block {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.pass-detail-row {
  display: flex;
  justify-content: space-between;
}
.pass-detail-label {
  font-family: var(--mono);
  font-size: 10px;
  color: #646464;
}
.pass-detail-value {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--white);
  word-break: break-all;
}

/* Barcode */
.pass-card-barcode-wrap {
  display: flex;
  align-items: center;
  background: #0a0a0a;
  padding: 16px 24px;
}
.pass-barcode {
  width: 100%;
  height: 46px;
  display: block;
}

/* Footer */
.pass-card-footer {
  display: flex;
  justify-content: space-between;
  padding: 0 24px;
  font-family: var(--mono);
  font-size: 10px;
  color: #646464;
  flex-shrink: 0;
}

/* Logotype watermark — sits in the 56px bottom padding zone */
.pass-card-logotype {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.2;
  pointer-events: none;
  overflow: hidden;
}
.pass-card-logotype img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

/* ── Actions ── */
.pass-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.pass-action-btn {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.pass-action-btn:hover { background: rgba(255,255,255,0.18); }
.pass-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.pass-action-btn--primary { background: var(--white); color: var(--dark-gray); border-color: var(--white); }
.pass-action-btn--primary:hover { background: var(--white); opacity: 0.9; }
.pass-action-btn--primary.is-done, .pass-action-btn.is-done { background: #4ade80; border-color: #4ade80; color: #062b14; }

.pass-action-btn:focus-visible, .pass-close-btn:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.pass-action-btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.08);
}

/* ── Close button ── */
.pass-close-btn {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}
.pass-close-btn:hover { background: rgba(255,255,255,0.15); }

@media (max-width: 400px) {
  .pass-card { width: 300px; height: auto; min-height: 450px; }
  .pass-card-number { font-size: 36px; }
}


/* ============================================================
   MENTORSHIP CONTACT DRAWER (partials/contact-form.php)
   Slides in from the right; one question per step (see shared.js → contactDrawer)
   ============================================================ */
.cd-overlay { position: fixed; inset: 0; z-index: 300; visibility: hidden; pointer-events: none; }
.cd-overlay.is-open { visibility: visible; pointer-events: auto; }
.cd-backdrop {
  position: absolute; inset: 0;
  background: rgba(5,5,5,0.55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity 0.45s ease;
}
.cd-overlay.is-open .cd-backdrop { opacity: 1; }
.cd-panel {
  position: absolute; top: 0; right: 0; height: 100%; max-height: 100dvh;
  width: min(560px, 100vw);
  background: #111;
  box-shadow: -1px 0 0 rgba(255,255,255,0.08), -40px 0 120px rgba(0,0,0,0.5);
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex; flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain;
}
.cd-overlay.is-open .cd-panel { transform: none; }
.cd-head {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 32px;
  background: #111; border-bottom: 1px solid var(--border-s);
}
.cd-eyebrow { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--white); }
.cd-close {
  all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: rgba(246,246,246,0.6);
  transition: color 0.2s;
}
.cd-close:hover { color: var(--white); }
.cd-close:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; border-radius: 4px; }
.cd-body { flex: 1; display: flex; flex-direction: column; padding: 32px 32px 40px; }
.cd-intro { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.cd-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.cd-title { font-size: clamp(24px, 4vw, 30px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.cd-sub { margin-top: 6px; font-size: 14px; color: rgba(246,246,246,0.6); }

.cf { display: flex; flex-direction: column; position: relative; }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cf-progress { height: 2px; background: rgba(255,255,255,0.1); margin-bottom: 28px; border-radius: 2px; overflow: hidden; }
.cf-progress span { display: block; height: 100%; width: 12.5%; background: var(--gradient); transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.cf-step { display: none; }
.cf-step.is-active { display: flex; flex-direction: column; gap: 20px; animation: cf-step-in 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes cf-step-in { from { opacity: 0; transform: translateX(14px); } }
.cf-q { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; text-wrap: balance; }
.cf-q em { display: block; margin-top: 6px; font-style: normal; font-weight: 400; font-size: 14px; letter-spacing: 0; color: rgba(246,246,246,0.5); }
.cf-num { display: block; margin-bottom: 10px; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0; color: rgba(246,246,246,0.45); }
.cf-line {
  width: 100%;
  font: 20px/1.4 var(--font);
  color: var(--white);
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(255,255,255,0.2);
  padding: 10px 0 12px;
  outline: none; border-radius: 0;
  transition: border-color 0.2s;
}
.cf-line::placeholder { color: rgba(246,246,246,0.3); }
.cf-line:focus { border-bottom-color: var(--white); }
.cf-area { font-size: 17px; resize: vertical; min-height: 140px; }
.cf-invalid { border-bottom-color: rgba(249,137,137,0.8) !important; }
.cf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-chip {
  all: unset; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; line-height: 1;
  padding: 12px 16px; border-radius: 99px;
  color: rgba(246,246,246,0.88);
  border: 1px solid rgba(255,255,255,0.16);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.cf-chip:hover { border-color: rgba(255,255,255,0.4); }
.cf-chip:active { transform: scale(0.97); }
.cf-chip:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.cf-chip[aria-pressed="true"] { background: var(--white); color: var(--dark-gray); border-color: var(--white); }
/* priority number: dark disc, light figure, readable on the white selected chip */
.cf-rank {
  display: none; font-style: normal;
  width: 20px; height: 20px; border-radius: 50%;
  font-family: var(--mono); font-size: 11px; line-height: 20px; text-align: center;
  background: var(--dark-gray); color: var(--white);
}
.cf-chip[aria-pressed="true"] .cf-rank { display: inline-block; }
.cf-error { margin-top: 18px; font-size: 14px; color: #f98989; }
.cf-nav { display: flex; align-items: center; gap: 10px; padding-top: 32px; }
.cf-btn {
  all: unset; cursor: pointer;
  font-family: var(--mono); font-size: 14px; text-transform: uppercase;
  padding: 14px 22px; border-radius: 99px;
  color: var(--white); background: rgba(255,255,255,0.06);
  transition: background 0.2s, opacity 0.2s, transform 0.15s;
}
.cf-btn:hover { background: rgba(255,255,255,0.12); }
.cf-btn:active { transform: scale(0.98); }
.cf-btn:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.cf-btn--next, .cf-btn--send { margin-left: auto; background: var(--white); color: var(--dark-gray); }
.cf-btn--next:hover, .cf-btn--send:hover { background: var(--white); opacity: 0.9; }
.cf-btn[disabled] { opacity: 0.5; pointer-events: none; }
.cf.is-first .cf-btn--back { visibility: hidden; }
.cf-btn--send { display: none; }
.cf.is-last .cf-btn--next { display: none; }
.cf.is-last .cf-btn--send { display: inline-block; }
.cf.is-done > :not(.cf-done) { display: none !important; }
.cf.is-done { flex: 1; justify-content: center; }
.cd-body:has(.cf.is-done) .cd-intro { display: none; }
.cf-done[hidden] { display: none !important; }
.cf-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; animation: cf-step-in 0.5s ease both; }
.cf-done-mark { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; color: var(--dark-gray); background: var(--gradient); }
.cf-done-t { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }
.cf-done-p { font-size: 16px; line-height: 1.5; color: rgba(246,246,246,0.7); max-width: 380px; text-wrap: balance; }
.cf-done-p b { color: var(--white); font-weight: 400; }
body.cd-lock { overflow: hidden; }
@media (max-width: 600px) {
  .cd-head { padding: 18px 20px; }
  .cd-body { padding: 24px 20px 32px; }
  .cf-q { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .cd-panel, .cd-backdrop { transition: none; } .cf-step.is-active, .cf-done { animation: none; } }
