/* =================================================================
   BURRI STUDIO — PROGETTI (Projects showcase framework)
   Editorial split layout: narrative left / carousel right.
   Framework only — project slides injected later.
   ================================================================= */

section.pj-section {
  position: relative; overflow: hidden; background: var(--bg);
  padding: clamp(64px, 10vh, 120px) 0 var(--section-py);
}
.pj-section .pj-atmo {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 44% 40% at 82% 22%, rgba(56,109,255,0.05), transparent 62%),
    radial-gradient(ellipse 38% 44% at 12% 82%, rgba(100,181,255,0.03), transparent 60%);
}
.pj-section .container { position: relative; z-index: 1; }

.pj-layout {
  display: grid; grid-template-columns: 440px 1fr; gap: 130px;
  align-items: start;
}

/* ---------- LEFT narrative column ---------- */
.pj-lead { position: relative; padding-top: 6px; margin-left: -8.5%; }
.pj-title {
  font-family: var(--font-display); font-size: clamp(40px, 5vw, 68px);
  font-weight: 700; line-height: 1.0; letter-spacing: -0.04em;
  color: var(--text); margin: 0; text-transform: uppercase;
  white-space: nowrap;
}
.pj-title .pj-title-accent { color: var(--ice); }
.pj-bar {
  width: 48px; height: 3px; background: var(--ice); margin: 16px 0 20px;
  box-shadow: 0 0 8px var(--ice-glow);
}
.pj-desc {
  font-family: var(--font-body); font-size: 17px; font-weight: 300;
  line-height: 1.6; color: var(--text-3); margin: 0 0 44px; max-width: 380px;
}

/* Counter + progress + nav wrapper — transparent on desktop (no layout
   change); regrouped into a single cluster on mobile via mobile.css */
.pj-meta { display: contents; }

/* Counter */
.pj-counter { display: flex; align-items: baseline; gap: 10px; margin-bottom: 36px; }
.pj-counter-cur {
  font-family: var(--font-display); font-size: 56px; font-weight: 700;
  line-height: 1; color: var(--text); letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.pj-counter-sep { font-family: var(--font-display); font-size: 28px; font-weight: 300; color: var(--text-4); }
.pj-counter-total {
  font-family: var(--font-display); font-size: 28px; font-weight: 300;
  color: var(--text-3); letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.pj-counter-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-4); margin-left: 6px; align-self: center;
}

/* Progress track */
.pj-progress {
  width: 100%; max-width: 300px; height: 2px; background: var(--hairline-2);
  position: relative; margin-bottom: 40px; overflow: hidden;
}
.pj-progress-fill {
  position: absolute; left: 0; top: 0; height: 100%; width: 33%;
  background: var(--ice); box-shadow: 0 0 8px var(--ice-glow);
  transition: width 0.6s var(--ease-out), left 0.6s var(--ease-out);
}

/* Navigation controls */
.pj-nav { display: flex; align-items: center; gap: 14px; }
.pj-nav-btn {
  width: 54px; height: 54px; border-radius: 50%;
  background: transparent; border: 1px solid var(--hairline-3);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); cursor: pointer;
  transition: border-color 0.4s var(--ease-out), color 0.4s, background 0.4s, transform 0.4s;
}
.pj-nav-btn svg { width: 20px; height: 20px; }
.pj-nav-btn:hover {
  border-color: var(--ice); color: var(--ice-soft);
  background: rgba(56,109,255,0.08); transform: translateY(-2px);
}
.pj-nav-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }
.pj-nav-btn:disabled:hover { border-color: var(--hairline-3); color: var(--text-2); background: transparent; }

/* ---------- RIGHT showcase (carousel + info below) ---------- */
.pj-showcase { display: flex; flex-direction: column; gap: 36px; }

/* ---------- RIGHT carousel stage ---------- */
.pj-stage {
  position: relative;
  min-height: 560px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.022), rgba(255,255,255,0.005));
  border: 1px solid var(--hairline-2);
  box-shadow: 0 50px 110px -50px rgba(0,0,0,0.9);
  margin-right: -25%;
}
/* Inner track for slides */
.pj-track {
  position: relative; width: 100%; height: 100%; min-height: 560px;
  display: flex; transition: transform 0.7s var(--ease-out);
}

/* ---------- Project slide (pure visual showcase) ---------- */
.pj-slide {
  position: relative; flex: 0 0 100%; width: 100%; min-height: 560px;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  padding: 20px 16px;
}
.pj-slide-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 46% 44% at 50% 44%, rgba(56,109,255,0.16), transparent 66%),
    radial-gradient(ellipse 32% 36% at 64% 70%, rgba(100,181,255,0.06), transparent 64%);
  animation: pjGlowPulse 5s ease-in-out infinite alternate;
}
@keyframes pjGlowPulse {
  0%   { opacity: 0.55; }
  100% { opacity: 0.9; }
}
.pj-slide-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000, transparent 80%);
}
/* Occasional soft light sweeping through the grid — barely noticeable */
.pj-grid-sweep {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(var(--ice-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--ice-soft) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(115deg, transparent 40%, rgba(0,0,0,0.5) 50%, transparent 60%);
  mask-image: linear-gradient(115deg, transparent 40%, rgba(0,0,0,0.5) 50%, transparent 60%);
  -webkit-mask-size: 300% 300%; mask-size: 300% 300%;
  -webkit-mask-position: 130% 0; mask-position: 130% 0;
  animation: pjGridSweep 7.1s ease-in-out infinite;
}
@keyframes pjGridSweep {
  0%   { -webkit-mask-position: 130% 0; mask-position: 130% 0; }
  75%  { -webkit-mask-position: -30% 0; mask-position: -30% 0; }
  75.1%, 100% { -webkit-mask-position: 130% 0; mask-position: 130% 0; }
}

/* Info panel (left) — REMOVED: info now lives below the carousel */
.pj-info, .pj-info-scrim { display: none; }

/* Floating browser-framed screenshot (centered showcase) */
.pj-shot {
  position: relative; z-index: 2;
  width: 96%; max-width: 1100px;
  transform: translate(var(--px, 0px), calc(-3% + var(--py, 0px)));
  transition: transform 0.5s var(--ease-out);
  will-change: transform;
}
.pj-shot-frame {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--hairline-3);
  background: #0A0E16;
  box-shadow:
    0 50px 100px -30px rgba(0,0,0,0.85),
    0 0 60px -10px rgba(56,109,255,0.25),
    inset 0 1px 0 rgba(255,255,255,0.06);
}
.pj-shot-bar {
  height: 34px; display: flex; align-items: center; gap: 12px; padding: 0 14px;
  background: linear-gradient(180deg, #141A26, #0E121C);
  border-bottom: 1px solid rgba(0,0,0,0.5);
}
.pj-shot-lights { display: flex; gap: 7px; }
.pj-shot-lights i { width: 11px; height: 11px; border-radius: 50%; background: #2A3346; }
.pj-shot-lights i:nth-child(1) { background: #2A3346; }
.pj-shot-lights i:nth-child(2) { background: #2A3346; }
.pj-shot-lights i:nth-child(3) { background: #2A3346; }
.pj-shot-url {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-3);
  background: rgba(0,0,0,0.3); padding: 3px 14px; border-radius: 6px;
  letter-spacing: 0.04em;
}
.pj-shot-viewport { position: relative; overflow: hidden; }
.pj-shot-viewport img { display: block; width: 100%; height: auto; }
.pj-shot-sheen {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,0.06) 48%, rgba(255,255,255,0.01) 56%, transparent 64%);
  background-size: 250% 100%; background-position: 120% 0;
  animation: pjSheen 5.7s ease-in-out infinite;
}
@keyframes pjSheen {
  0%   { background-position: 120% 0; }
  47%  { background-position: -40% 0; }
  47.1%, 100% { background-position: 120% 0; }
}

/* =========================================================
   PROJECT 02 — La Colombina (warm gold restaurant identity)
   ========================================================= */
/* Gold glow override — grid + grid sweep hidden for cleaner composition */
.pj-slide--gold .pj-slide-glow {
  background:
    radial-gradient(ellipse 48% 46% at 50% 46%, rgba(212,175,55,0.18), transparent 66%),
    radial-gradient(ellipse 34% 38% at 62% 70%, rgba(232,196,90,0.08), transparent 64%);
}
.pj-slide--gold .pj-slide-grid,
.pj-slide--gold .pj-grid-sweep { display: none; }

/* Large brand-icon watermark — partially cropped by the carousel edges */
.pj-col-watermark {
  position: absolute; z-index: 0; pointer-events: none;
  top: 50%; left: 50%;
  width: 88%; max-width: 880px;
  transform: translate(-58%, -60%);
  display: flex; align-items: center; justify-content: center;
  opacity: 0.035;
  animation: pjWatermarkBreathe 12s ease-in-out infinite alternate;
}
.pj-col-watermark img { width: 100%; height: auto; display: block; filter: saturate(0.7); }
@keyframes pjWatermarkBreathe {
  0%   { opacity: 0.028; transform: translate(-58%, -60%) scale(1); }
  100% { opacity: 0.045; transform: translate(-58%, -60%) scale(1.03); }
}

/* Refined golden flow lines (reinterpreted from the table card filigree) */
.pj-col-lines {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%;
  pointer-events: none;
}
.pj-line {
  fill: none; stroke: url(#pjGoldGrad); stroke-width: 1;
  stroke: rgba(212,175,55,0.22);
  stroke-dasharray: 1400; stroke-dashoffset: 1400;
  animation: pjLineDraw 9s ease-in-out infinite;
}
.pj-line-1 { animation-delay: 0s;   stroke: rgba(212,175,55,0.20); }
.pj-line-2 { animation-delay: 0.5s; stroke: rgba(232,196,90,0.14); }
.pj-line-3 { animation-delay: 1.2s; stroke: rgba(212,175,55,0.20); }
.pj-line-4 { animation-delay: 1.7s; stroke: rgba(232,196,90,0.14); }
@keyframes pjLineDraw {
  0%   { stroke-dashoffset: 1400; opacity: 0; }
  18%  { opacity: 1; }
  55%  { stroke-dashoffset: 0; opacity: 1; }
  78%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -1400; opacity: 0; }
}

/* Connected composition: table card + phone */
.pj-col {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  gap: 0; perspective: 1600px;
  transform: translate(var(--px, 0px), var(--py, 0px));
  transition: transform 0.5s var(--ease-out);
}

/* Physical QR table card — angled, behind */
.pj-col-card {
  position: relative; z-index: 1;
  width: 270px; flex-shrink: 0;
  border-radius: 12px; overflow: hidden;
  transform: rotateY(11deg) rotate(-3deg);
  border: 1px solid rgba(212,175,55,0.35);
  box-shadow:
    0 44px 90px -34px rgba(0,0,0,0.85),
    0 0 60px -12px rgba(212,175,55,0.3),
    inset 0 1px 0 rgba(255,255,255,0.06);
  margin-right: -34px;
  animation: pjColCardBreathe 9s ease-in-out infinite;
}
.pj-col-card img { display: block; width: 100%; height: auto; }
@keyframes pjColCardBreathe {
  0%, 100% { box-shadow: 0 44px 90px -34px rgba(0,0,0,0.85), 0 0 60px -12px rgba(212,175,55,0.26), inset 0 1px 0 rgba(255,255,255,0.06); }
  50%      { box-shadow: 0 44px 90px -34px rgba(0,0,0,0.85), 0 0 78px -10px rgba(212,175,55,0.42), inset 0 1px 0 rgba(255,255,255,0.06); }
}

/* Digital menu phone — upright, in front */
.pj-col-phone {
  position: relative; z-index: 3;
  width: 248px; flex-shrink: 0;
  padding: 9px; border-radius: 38px;
  background: linear-gradient(160deg, #16161c, #0a0a0e);
  border: 1px solid rgba(212,175,55,0.28);
  transform: rotateY(-6deg) rotate(2deg) translateY(-10px);
  box-shadow:
    0 54px 110px -38px rgba(0,0,0,0.9),
    0 0 70px -14px rgba(212,175,55,0.28),
    inset 0 1px 0 rgba(255,255,255,0.08);
}
.pj-col-phone-screen {
  position: relative; border-radius: 30px; overflow: hidden;
  background: #1a3a6b;
}
.pj-col-phone-screen img { display: block; width: 100%; height: auto; }
.pj-col-phone-notch {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 64px; height: 7px; border-radius: 6px; background: rgba(0,0,0,0.5);
  z-index: 4;
}

/* =========================================================
   PROJECT 03 — Launchup Bot Automation (blue ecosystem)
   ========================================================= */
.pj-bot {
  position: relative; z-index: 2;
  width: 100%; max-width: 760px; height: 420px;
  margin: 0 auto;
  transform: translate(var(--px, 0px), var(--py, 0px));
  transition: transform 0.5s var(--ease-out);
}
.pj-bot-links {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none;
}
.pj-bot-link {
  fill: none; stroke: rgba(56,109,255,0.34); stroke-width: 1.5;
  stroke-dasharray: 4 7; stroke-linecap: round;
  animation: pjBotDash 22s linear infinite;
}
.pj-bot-link--ring { stroke: rgba(56,109,255,0.22); stroke-width: 1.3; }
.pj-bot-node { fill: var(--ice-soft); filter: drop-shadow(0 0 5px rgba(100,181,255,0.8)); opacity: 0.85; }
.pj-bot-pulse--orbit { fill: rgba(100,181,255,0.85); }
@keyframes pjBotDash { to { stroke-dashoffset: -220; } }
.pj-bot-pulse { fill: #64B5FF; filter: drop-shadow(0 0 5px rgba(100,181,255,0.9)); }
.pj-bot-pulse--dim { fill: rgba(100,181,255,0.6); }

/* Central ecosystem brand */
.pj-bot-core {
  position: absolute; top: 18%; left: 50%; transform: translate(-50%, -50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.pj-bot-core-badge {
  width: 96px; height: 96px; border-radius: 24px; overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #ffffff, #eef2fb);
  border: 1px solid rgba(56,109,255,0.35);
  box-shadow: 0 0 0 6px rgba(56,109,255,0.08), 0 20px 50px -16px rgba(0,0,0,0.7), 0 0 40px -6px rgba(56,109,255,0.4);
  display: flex; align-items: center; justify-content: center;
  animation: pjBotCoreGlow 5s ease-in-out infinite alternate;
}
.pj-bot-core-badge img { width: 100%; height: 100%; object-fit: cover; }
@keyframes pjBotCoreGlow {
  0%   { box-shadow: 0 0 0 6px rgba(56,109,255,0.06), 0 20px 50px -16px rgba(0,0,0,0.7), 0 0 34px -8px rgba(56,109,255,0.3); }
  100% { box-shadow: 0 0 0 6px rgba(56,109,255,0.12), 0 20px 50px -16px rgba(0,0,0,0.7), 0 0 50px -4px rgba(56,109,255,0.5); }
}
.pj-bot-core-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-2);
}

/* Module cards (glassmorphism) */
.pj-bot-mod {
  position: absolute; z-index: 4; width: 218px;
  display: flex; align-items: center; gap: 13px;
  padding: 16px 18px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
  border: 1px solid rgba(56,109,255,0.22);
  box-shadow: 0 24px 50px -26px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.pj-bot-mod--verify  { top: 96px;  left: 0; }
.pj-bot-mod--ai      { top: 96px;  right: 0; }
.pj-bot-mod--tickets { bottom: 44px; left: 50%; transform: translateX(-50%); }
.pj-bot-mod-ico {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px;
  background: rgba(56,109,255,0.12); border: 1px solid rgba(56,109,255,0.3);
  display: flex; align-items: center; justify-content: center; color: var(--ice-soft);
}
.pj-bot-mod-ico svg { width: 19px; height: 19px; }
.pj-bot-mod-name {
  display: block; font-family: var(--font-display); font-size: 15px; font-weight: 600;
  color: var(--text); letter-spacing: -0.01em; margin-bottom: 2px;
}
.pj-bot-mod-desc {
  display: block; font-family: var(--font-body); font-size: 11.5px; font-weight: 300;
  line-height: 1.4; color: var(--text-3);
}

@media (max-width: 600px) {
  .pj-bot { height: 360px; }
  .pj-bot-mod { width: 180px; padding: 12px 14px; }
  .pj-bot-mod-desc { display: none; }
}

/* Empty-state placeholder (framework fallback) */
.pj-empty {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px; text-align: center;
}
.pj-empty-grid {
  position: absolute; inset: 0; opacity: 0.5;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent 75%);
}
.pj-empty-ico {
  width: 56px; height: 56px; border-radius: 16px; position: relative; z-index: 1;
  background: rgba(56,109,255,0.1); border: 1px solid rgba(56,109,255,0.26);
  display: flex; align-items: center; justify-content: center; color: var(--ice-soft);
}
.pj-empty-ico svg { width: 26px; height: 26px; }
.pj-empty-text {
  position: relative; z-index: 1;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-4);
}

/* Slide indicators (bottom of stage) */
.pj-dots {
  position: absolute; left: 28px; bottom: 24px; z-index: 3;
  display: flex; align-items: center; gap: 8px;
}
.pj-dot {
  width: 28px; height: 3px; border-radius: 2px; background: var(--hairline-3);
  transition: background 0.4s, width 0.4s;
}
.pj-dot.is-active { width: 44px; background: var(--ice); box-shadow: 0 0 8px var(--ice-glow); }

/* Slide meta overlay (bottom-right of stage) */
.pj-stage-meta {
  position: absolute; right: 28px; bottom: 22px; z-index: 3; text-align: right;
}
.pj-stage-meta-tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-2);
}

/* ---------- Project presentation (below carousel) ---------- */
.pj-below {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 28px;
  padding: 4px 8px;
}
.pj-below-icon {
  width: 56px; height: 56px; border-radius: 15px; flex-shrink: 0;
  background: rgba(56,109,255,0.1); border: 1px solid rgba(56,109,255,0.26);
  display: flex; align-items: center; justify-content: center; color: var(--ice-soft);
}
.pj-below-icon svg { width: 26px; height: 26px; }
.pj-below-main { min-width: 0; }
.pj-below-cat {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ice-soft);
  margin-bottom: 10px;
}
.pj-below-name {
  font-family: var(--font-display); font-size: 32px; font-weight: 700;
  line-height: 1; letter-spacing: -0.03em; color: var(--text); margin: 0 0 12px;
}
.pj-below-desc {
  font-family: var(--font-body); font-size: 15px; font-weight: 300;
  line-height: 1.6; color: var(--text-3); margin: 0; max-width: 540px;
}
.pj-below-btn {
  display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text);
  padding: 16px 28px; border: 1px solid var(--hairline-3); border-radius: 100px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: border-color 0.4s var(--ease-out), background 0.4s, color 0.4s, transform 0.4s;
}
.pj-below-btn svg { width: 15px; height: 15px; transition: transform 0.4s var(--ease-out); }
.pj-below-btn:hover {
  border-color: var(--ice); background: rgba(56,109,255,0.1);
  color: var(--ice-soft); transform: translateY(-2px);
}
.pj-below-btn:hover svg { transform: translate(3px, -3px); }

/* Gold theme for the below-info when project 02 is active */
.pj-below.is-gold .pj-below-icon {
  background: rgba(212,175,55,0.1); border-color: rgba(212,175,55,0.3); color: #e8c45a;
}
.pj-below.is-gold .pj-below-cat { color: #e8c45a; }

/* Pending (not-yet-built) slide dot */
.pj-dot--pending { opacity: 0.4; cursor: default; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .pj-layout { grid-template-columns: 1fr; gap: 44px; }
  .pj-lead { max-width: 520px; }
  .pj-desc { max-width: 460px; }
  .pj-stage { min-height: 440px; }
  .pj-track, .pj-slide { min-height: 440px; }
}
@media (max-width: 600px) {
  .pj-stage { min-height: 320px; }
  .pj-track, .pj-slide { min-height: 320px; }
  .pj-nav-btn { width: 48px; height: 48px; }
  .pj-below { grid-template-columns: auto 1fr; row-gap: 20px; }
  .pj-below-btn { grid-column: 1 / -1; justify-content: center; }
}
