:root {
  --bg: #0e1116;
  --bg-elevated: #161a21;
  --surface: #1a1f27;
  --surface-2: #222832;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef1f3;
  --muted: #a5adb6;
  --accent: #84ecff;
  --accent-strong: #ffffff;
  --accent-soft: #b8d4ff;
  --accent-warm: #f0cf93;
  --accent-blue: #3b5aff;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1120px;
  --header-height: 76px;
  --ticker-height: 36px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(circle at 82% 8%, rgba(132, 236, 255, 0.10), transparent 26%),
    radial-gradient(circle at 18% 74%, rgba(132, 236, 255, 0.06), transparent 28%),
    linear-gradient(180deg, #11141a 0%, #0c0f13 100%);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "cv11", "ss01", "ss03";
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 0;
  background:
    radial-gradient(ellipse at center, rgba(12, 8, 24, 0) 30%, rgba(12, 8, 24, 0.14) 58%, rgba(12, 8, 24, 0.62) 82%, rgba(12, 8, 24, 0.94) 100%),
    radial-gradient(circle at 50% 90%, rgba(132, 236, 255, 0.12), transparent 52%);
  opacity: 0.5;
  mix-blend-mode: screen;
}

.bg-rings {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(170vw, 1800px);
  height: min(170vw, 1800px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.62;
  mix-blend-mode: screen;
  filter: saturate(1.1) contrast(1.04);
  animation: ringsDrift 46s ease-in-out infinite, ringsSpin 150s linear infinite;
}

.bg-rings svg {
  width: 100%;
  height: 100%;
}

.bg-rings circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: ringPulse 5s ease-in-out infinite, ringBreathe 5s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

@keyframes ringBreathe {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.4); }
}

@keyframes ringsDrift {
  0%, 100% { translate: -50% -50%; }
  25%      { translate: calc(-50% + 2.4%) calc(-50% - 3%); }
  50%      { translate: calc(-50% - 2.8%) calc(-50% + 2.2%); }
  75%      { translate: calc(-50% + 1.6%) calc(-50% + 3.4%); }
}

@keyframes ringsSpin {
  from { rotate: 0deg; }
  to   { rotate: 360deg; }
}

body::after {
  z-index: 0;
  background:
  radial-gradient(circle at 72% 38%, rgba(130, 60, 230, 0.05), transparent 32%),
  radial-gradient(circle at 22% 28%, rgba(100, 40, 200, 0.04), transparent 26%),
  radial-gradient(circle at center, transparent 0 24%, rgba(18, 12, 28, 0.05) 34%, rgba(18, 12, 28, 0.28) 56%, rgba(12, 15, 19, 0.86) 82%, rgba(12, 15, 19, 0.98) 100%),
  linear-gradient(180deg, rgba(12, 15, 19, 0.36), rgba(12, 15, 19, 0.74));
} 
img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 30;
  background: var(--accent);
  color: #101214;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* ── Dashboard ────────────────────────────────────────── */

#live-dashboard .section-intro {
  margin-bottom: 2.5rem;
}

#live-dashboard .section-intro h2 {
  white-space: nowrap;
  max-width: none;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.dashboard-panel {
  background:
    linear-gradient(180deg, rgba(184, 168, 255, 0.06), rgba(132, 236, 255, 0.03)),
    rgba(13, 15, 20, 0.85);
  border: 1px solid rgba(184, 168, 255, 0.18);
  border-radius: 1.2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  max-width: 720px;
  margin: 0 auto;
  box-shadow:
    0 0 0 1px rgba(184, 168, 255, 0.06),
    0 24px 48px rgba(0, 0, 0, 0.35);
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.dashboard-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 220, 255, 1);
  animation: tickerDotPulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

.dashboard-live-label {
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(0, 220, 255, 0.9);
}

.dashboard-event-name {
  font-size: 0.80rem;
  font-weight: 600;
  color: var(--muted);
  margin-left: 0.4rem;
  letter-spacing: 0.04em;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.dashboard-kpi {
  text-align: center;
  padding: 1rem 0.5rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-kpi-value {
  display: block;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  background: linear-gradient(135deg, rgba(200, 60, 255, 1), rgba(0, 230, 255, 1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dashboard-kpi-unit {
  font-size: 0.55em;
  font-weight: 600;
  opacity: 0.7;
}

.dashboard-kpi-label {
  display: block;
  font-size: 0.70rem;
  color: var(--muted);
  margin-top: 0.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-feed {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 160px;
  overflow: hidden;
  border-radius: 0.6rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.8rem 1rem;
  font-size: 0.78rem;
  font-family: monospace;
  color: var(--muted);
}

.dashboard-feed-row {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  opacity: 0;
  transform: translateY(-6px);
  animation: feedRowIn 0.35s ease forwards;
}

.dashboard-feed-row.dimmed {
  opacity: 0.35;
}

.dashboard-feed-time {
  color: rgba(132, 236, 255, 0.55);
  flex-shrink: 0;
}

.dashboard-feed-gate {
  color: rgba(184, 168, 255, 0.7);
  flex-shrink: 0;
}

.dashboard-feed-ticket {
  color: var(--text);
}

.dashboard-feed-ok {
  color: rgba(0, 220, 100, 0.9);
  margin-left: auto;
  flex-shrink: 0;
}

@keyframes feedRowIn {
  to { opacity: 1; transform: translateY(0); }
}

.dashboard-gate {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dashboard-gate-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  min-width: 100px;
}

.dashboard-gate-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 200, 100, 0.9);
  box-shadow: 0 0 8px rgba(0, 200, 100, 0.6);
  flex-shrink: 0;
}

.dashboard-gate-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}

.dashboard-gate-status {
  font-size: 0.70rem;
  color: rgba(0, 200, 100, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-gate-bar-wrap {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.dashboard-gate-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(200, 60, 255, 0.8), rgba(0, 230, 255, 0.8));
  transition: width 2s ease;
}

.dashboard-gate-pct {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
  min-width: 38px;
  text-align: right;
}

/* ── Live ticker ──────────────────────────────────────── */

.live-ticker {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem clamp(1rem, 4vw, 3rem);
  background: rgba(13, 15, 20, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 220, 255, 0.15);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  overflow: hidden;
}

.live-ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 220, 255, 1);
  flex-shrink: 0;
  animation: tickerDotPulse 1.4s ease-in-out infinite;
}

@keyframes tickerDotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 220, 255, 0.6); }
  50%       { opacity: 0.6; box-shadow: 0 0 0 5px rgba(0, 220, 255, 0); }
}

.live-ticker-text {
  transition: opacity 0.4s ease;
}

.live-ticker-text.fade {
  opacity: 0;
}

.site-header {
  position: sticky;
  top: var(--ticker-height, 36px);
  z-index: 20;
  background: rgba(15, 17, 22, 0.92);
  border-bottom: 1px solid var(--border);
  transition:
    transform 0.28s ease,
    opacity 0.22s ease;
  will-change: transform, opacity;
}

.site-header.is-hidden {
  transform: translateY(calc(-100% - var(--ticker-height, 36px)));
  opacity: 0;
}

.site-header .container {
  width: min(calc(100% - 1.25rem), 1380px);
}

.header-inner {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "brand actions";
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  flex: 0 0 auto;
}

.brand-text-link {
  justify-self: start;
  grid-area: brand;
  color: var(--text);
}

.brand-logo {
  width: auto;
  height: 4.9rem;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-logo-inline {
  height: 3.8rem;
}

.brand-text {
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.header-actions {
  justify-self: end;
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  transition:
    border-color 0.22s ease,
    background-color 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.nav-link:hover {
  background: rgba(132, 236, 255, 0.08);
  border-color: rgba(132, 236, 255, 0.28);
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(59, 90, 255, 0.55);
}

.nav-link[aria-current="page"] {
  background: rgba(132, 236, 255, 0.12);
  border-color: rgba(132, 236, 255, 0.36);
  color: var(--text);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(132, 236, 255, 0.05);
  flex: 0 0 auto;
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  min-width: 2.55rem;
  min-height: 2.2rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lang-btn[aria-pressed="true"] {
  background: var(--accent);
  color: #101214;
  font-weight: 600;
}

.lang-btn:hover {
  transform: translateY(-1px);
}

.lang-btn:focus-visible,
.button:focus-visible,
.brand:focus-visible,
.nav-link:focus-visible,
.contact-card a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.section {
  padding: 5rem 0;
  position: relative;
  overflow: clip;
}

.section[id] {
  scroll-margin-top: calc(var(--header-height) + var(--ticker-height, 36px) + 1.25rem);
}

.section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.016), rgba(255, 255, 255, 0.008) 14%, transparent 34%),
    radial-gradient(circle at 18% 18%, rgba(255, 103, 199, 0.1), transparent 24%),
    radial-gradient(circle at 82% 14%, rgba(132, 236, 255, 0.08), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(159, 118, 255, 0.06), transparent 26%); */
  opacity: 0.96;
}

.hero {
  padding-top: 4rem;
  position: relative;
  overflow: clip;
  /* background: */
    /* radial-gradient(circle at 78% 14%, rgba(132, 236, 255, 0.14), transparent 26%),
    radial-gradient(circle at 18% 78%, rgba(255, 103, 199, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent 72%); */
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.case-panel,
.contact-card,
.service-card {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.008)) padding-box,
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, rgba(100, 40, 200, 0.55), rgba(132, 236, 255, 0.28)) border-box;
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  isolation: isolate;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: min(100%, 62rem);
  margin-left: auto;
  margin-right: auto;
  padding: clamp(1.6rem, 3vw, 3rem) 0;
}

.hero-copy::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -60%;
  width: clamp(24rem, 70vw, 60rem);
  height: clamp(12rem, 35vw, 28rem);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(180, 0, 255, 0.28) 0%, rgba(0, 200, 255, 0.16) 40%, transparent 70%);
  animation: heroGlow 3s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes heroGlow {
  0%, 100% {
    opacity: 0.55;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.18);
  }
}

.hero-tagline {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 1rem;
  margin-bottom: 2rem;
  opacity: 0.75;
}


.hero-timeline {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
}

.timeline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto;
  grid-template-areas:
    ".     lbl-b  lbl-d  lbl-a  ."
    ".     ab-b   ab-d   ab-a   ."
    "ell-l ax-l   event  ax-r   ell-r"
    ".     bl-b   bl-d   bl-a   .";
  column-gap: 1rem;
  row-gap: 0.4rem;
  align-items: center;
  justify-items: center;
}

.timeline-label {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.timeline-label-before { grid-area: lbl-b; }
.timeline-label-during { grid-area: lbl-d; color: var(--accent-soft); }
.timeline-label-after  { grid-area: lbl-a; }

.timeline-cell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.9rem;
  justify-items: center;
  align-items: center;
  width: 100%;
}

.timeline-cell-above.timeline-cell-before { grid-area: ab-b; }
.timeline-cell-above.timeline-cell-during { grid-area: ab-d; }
.timeline-cell-above.timeline-cell-after  { grid-area: ab-a; }
.timeline-cell-below.timeline-cell-before { grid-area: bl-b; }
.timeline-cell-below.timeline-cell-during { grid-area: bl-d; }
.timeline-cell-below.timeline-cell-after  { grid-area: bl-a; }

.timeline-cell-during {
  grid-template-columns: repeat(2, minmax(0, auto));
  gap: 0.55rem 0.7rem;
}

.timeline-task {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(26, 31, 39, 0.7);
  border: 1px solid rgba(132, 236, 255, 0.22);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  animation: tagPulse 3.4s ease-in-out infinite;
}


@keyframes tagPulse {
  0%, 100% {
    box-shadow: 0 0 0 2px rgba(59, 90, 255, 0.08), 0 0 6px rgba(59, 90, 255, 0.10);
    border-color: rgba(132, 236, 255, 0.22);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(0, 200, 255, 0.00), 0 0 24px rgba(0, 200, 255, 0.50);
    border-color: rgba(0, 230, 255, 0.75);
  }
}

.timeline-task::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(132, 236, 255, 0.55) 50%, transparent 100%);
  transform: translateX(-110%);
  pointer-events: none;
}

.timeline-task:hover {
  border-color: rgba(132, 236, 255, 0.6);
  transform: translateY(-1px);
  animation: taskPulseGlow 0.75s ease-out forwards;
}

.timeline-task:hover::before {
  animation: scanBeam 0.65s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ── Hero CRT scanlines + glitch bars ────────────────────── */

.hero-scanlines {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.05) 0px,
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  opacity: 0.4;
  animation: scanlineDrift 9s linear infinite;
}

@keyframes scanlineDrift {
  0%   { background-position: 0 0; opacity: 0.32; }
  50%  { background-position: 0 40px; opacity: 0.48; }
  100% { background-position: 0 0; opacity: 0.32; }
}

.glitch-bar {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(10, 70, 10, 0.9) 0%,
    rgba(0, 0, 0, 0.9) 18%,
    rgba(224, 255, 20, 0.95) 38%,
    rgba(0, 0, 0, 0.9) 58%,
    rgba(15, 90, 15, 0.9) 78%,
    rgba(224, 255, 20, 0.9) 100%
  );
  mix-blend-mode: screen;
  opacity: 0;
  animation: glitchBarSweep 0.22s steps(2) forwards;
}

@keyframes glitchBarSweep {
  0%   { opacity: 0; transform: translateX(-3%) scaleY(1); }
  20%  { opacity: 1; transform: translateX(2%) scaleY(2.2); }
  40%  { opacity: 0.7; transform: translateX(-4%) scaleY(1); }
  60%  { opacity: 1; transform: translateX(3%) scaleY(3); }
  100% { opacity: 0; transform: translateX(0) scaleY(1); }
}

/* ── Hero acid-drip letters ───────────────────────────── */

.hero-copy h1 .letter {
  display: inline-block;
  position: relative;
}

.hero-copy h1 .letter.acid-letter::after {
  content: attr(data-char);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #83933a 0%, #578d28 30%, #2d561d 62%, #091d07 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  clip-path: inset(0 0 100% 0);
  filter: drop-shadow(0 0 5px rgba(87, 125, 40, 0.55));
  animation: acidDrip 1.15s cubic-bezier(0.6, 0, 0.7, 1) forwards;
  pointer-events: none;
}

@keyframes acidDrip {
  0%   { clip-path: inset(0 0 100% 0); opacity: 1; }
  55%  { clip-path: inset(0 0 0% 0); opacity: 1; }
  82%  { clip-path: inset(0 0 0% 0); opacity: 0.7; }
  100% { clip-path: inset(0 0 0% 0); opacity: 0; }
}

/* ── Hero glitch ──────────────────────────────────────── */

h1.glitching {
  animation: heroGlitch 0.55s steps(1) forwards;
}

.brand-text.glitching {
  animation: brandGlitch 0.65s steps(1) forwards;
}

@keyframes brandGlitch {
  0%, 100% { transform: none; text-shadow: none; filter: none; opacity: 1; }
  4%  { transform: translateX(-7px) skewX(-4deg); text-shadow: 8px 0 rgba(0,230,255,1), -8px 0 rgba(200,60,255,0.9); filter: brightness(1.7); }
  7%  { transform: translateX(7px) skewX(4deg);  text-shadow: -8px 0 rgba(0,230,255,1), 8px 0 rgba(200,60,255,0.9); }
  9%  { transform: none; text-shadow: none; filter: none; }
  12% { opacity: 0.35; transform: translateX(-12px) skewX(-6deg); text-shadow: 12px 0 rgba(0,230,255,1), -12px 0 rgba(200,60,255,1); filter: brightness(2.0); }
  15% { opacity: 1;    transform: translateX(12px) skewX(6deg);   text-shadow: -12px 0 rgba(0,230,255,1), 12px 0 rgba(200,60,255,1); filter: brightness(1.6); }
  18% { transform: none; text-shadow: none; filter: none; }
  22% { opacity: 0.8; transform: translateX(-4px); text-shadow: 5px 0 rgba(0,230,255,0.8); }
  24% { transform: none; opacity: 1; text-shadow: none; }
  34% { opacity: 0.2; transform: translateX(16px) skewX(7deg);  text-shadow: -16px 0 rgba(200,60,255,1), 16px 0 rgba(0,230,255,0.8); filter: brightness(2.2); }
  37% { opacity: 1;   transform: translateX(-16px) skewX(-7deg); text-shadow: 16px 0 rgba(200,60,255,1); filter: brightness(1.7); }
  40% { transform: translateX(5px); text-shadow: -6px 0 rgba(0,230,255,0.9); }
  42% { transform: none; text-shadow: none; filter: none; }
  55% { opacity: 0.5; transform: translateX(-6px); text-shadow: 9px 0 rgba(0,230,255,1), -5px 0 rgba(200,60,255,0.9); filter: brightness(1.6) saturate(1.8); }
  57% { transform: none; text-shadow: none; filter: none; opacity: 1; }
}

@keyframes heroGlitch {
  0%, 100% {
    transform: none;
    text-shadow: none;
    filter: none;
    opacity: 1;
  }
  5% {
    transform: translateX(-8px) skewX(-3deg);
    text-shadow: 8px 0 rgba(0, 230, 255, 1), -8px 0 rgba(200, 60, 255, 0.9);
    filter: brightness(1.4);
  }
  8% {
    transform: translateX(8px) skewX(3deg);
    text-shadow: -8px 0 rgba(0, 230, 255, 1), 8px 0 rgba(200, 60, 255, 0.9);
  }
  10% {
    transform: none;
    text-shadow: none;
    filter: none;
  }
  13% {
    opacity: 0.7;
    transform: translateX(-10px) skewX(-4deg);
    text-shadow: 10px 0 rgba(0, 230, 255, 1), -10px 0 rgba(200, 60, 255, 1);
    filter: brightness(1.6) saturate(1.5);
  }
  16% {
    opacity: 1;
    transform: translateX(10px) skewX(4deg);
    text-shadow: -10px 0 rgba(0, 230, 255, 1), 10px 0 rgba(200, 60, 255, 1);
  }
  19% {
    transform: none;
    text-shadow: none;
    filter: none;
  }
  24% {
    transform: translateX(-2px);
    text-shadow: 3px 0 rgba(0, 230, 255, 0.6);
  }
  26% {
    transform: none;
    text-shadow: none;
  }
  35% {
    opacity: 0.5;
    transform: translateX(12px) skewX(5deg);
    text-shadow: -12px 0 rgba(200, 60, 255, 1), 12px 0 rgba(0, 230, 255, 0.8);
    filter: brightness(1.8);
  }
  38% {
    opacity: 1;
    transform: translateX(-12px) skewX(-5deg);
    text-shadow: 12px 0 rgba(200, 60, 255, 1);
    filter: brightness(1.4);
  }
  41% {
    transform: none;
    text-shadow: none;
    filter: none;
  }
  46% {
    transform: translateX(-3px);
    text-shadow: 4px 0 rgba(0, 230, 255, 0.7), -4px 0 rgba(200, 60, 255, 0.5);
  }
  48% {
    transform: none;
    text-shadow: none;
  }
}

@keyframes scanBeam {
  from { transform: translateX(-110%); }
  to   { transform: translateX(110%); }
}

@keyframes taskPulseGlow {
  0%   { box-shadow: 0 0 0 0 rgba(59, 90, 255, 0.55), 0 0 14px rgba(59, 90, 255, 0.30); }
  60%  { box-shadow: 0 0 0 10px rgba(59, 90, 255, 0.00), 0 0 18px rgba(59, 90, 255, 0.35); }
  100% { box-shadow: 0 0 0 0 rgba(59, 90, 255, 0.00), 0 0 18px rgba(59, 90, 255, 0.35); }
}

.timeline-task-during::before {
  background: linear-gradient(90deg, transparent 0%, rgba(184, 168, 255, 0.55) 50%, transparent 100%);
}

.timeline-task-during {
  border-color: rgba(184, 168, 255, 0.36);
  background: rgba(26, 31, 39, 0.78);
  animation: tagPulseDuring 3.4s ease-in-out infinite;
}


@keyframes tagPulseDuring {
  0%, 100% {
    box-shadow: 0 0 0 2px rgba(180, 0, 255, 0.10), 0 0 8px rgba(180, 0, 255, 0.12);
    border-color: rgba(184, 168, 255, 0.36);
  }
  22% {
    box-shadow: 0 0 0 9px rgba(180, 0, 255, 0.00), 0 0 22px rgba(180, 0, 255, 0.50);
    border-color: rgba(200, 60, 255, 0.80);
  }
  45%, 60% {
    box-shadow: 0 0 0 2px rgba(180, 0, 255, 0.08), 0 0 6px rgba(180, 0, 255, 0.10);
    border-color: rgba(184, 168, 255, 0.30);
  }
  82% {
    box-shadow: 0 0 0 11px rgba(0, 200, 255, 0.00), 0 0 28px rgba(0, 200, 255, 0.50);
    border-color: rgba(0, 230, 255, 0.75);
  }
}

.timeline-task-during:hover {
  border-color: rgba(184, 168, 255, 0.6);
}

.timeline-cell-above .timeline-task::after,
.timeline-cell-below .timeline-task::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  height: 0.55rem;
  background: linear-gradient(180deg, rgba(132, 236, 255, 0.25), rgba(132, 236, 255, 0.75));
  transform: translateX(-50%);
  pointer-events: none;
}

.timeline-cell-above .timeline-task::after {
  top: 100%;
}

.timeline-cell-below .timeline-task::after {
  bottom: 100%;
  background: linear-gradient(180deg, rgba(132, 236, 255, 0.75), rgba(132, 236, 255, 0.25));
}

.timeline-cell-during .timeline-task::after {
  display: none;
}

.timeline-axis {
  position: relative;
  width: 100%;
  min-height: 12px;
}

.timeline-axis::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 2px;
  border-radius: 2px;
  transform: translateY(-50%);
}

.timeline-axis-left {
  grid-area: ax-l;
}

.timeline-axis-left::before {
  background: linear-gradient(90deg, rgba(132, 236, 255, 0.14) 0%, rgba(132, 236, 255, 0.48) 100%);
}

.timeline-axis-right {
  grid-area: ax-r;
}

.timeline-axis-right::before {
  background: linear-gradient(90deg, rgba(132, 236, 255, 0.48) 0%, rgba(132, 236, 255, 0.14) 100%);
}

.timeline-marker {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(132, 236, 255, 0.55);
  transform: translate(-50%, -50%);
}

.timeline-marker-left  { left: 25%; }
.timeline-marker-mid   { left: 50%; }
.timeline-marker-right { left: 75%; }

.timeline-cell-below .timeline-task:only-child {
  grid-column: 1 / -1;
}

.timeline-edge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(132, 236, 255, 0.6);
  user-select: none;
}

.timeline-edge-left { grid-area: ell-l; }
.timeline-edge-right { grid-area: ell-r; }

.timeline-wave {
  display: inline-flex;
  align-items: center;
}

.timeline-wave svg {
  width: 1.7rem;
  height: 0.75rem;
  overflow: visible;
  opacity: 0.85;
}

.timeline-ellipsis {
  color: inherit;
  font-size: 1.35rem;
  letter-spacing: 0.1em;
  line-height: 1;
}

.timeline-event {
  grid-area: event;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(184, 168, 255, 0.16), rgba(132, 236, 255, 0.08)),
    rgba(13, 15, 20, 0.78);
  border: 1px solid rgba(184, 168, 255, 0.42);
  box-shadow:
    0 0 0 8px rgba(184, 168, 255, 0.05),
    0 14px 28px rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.95rem;
  white-space: nowrap;
  text-align: center;
  animation: eventHeartbeat 4.2s ease-in-out infinite;
}

@keyframes eventHeartbeat {
  /* riposo */
  0% {
    box-shadow: 0 0 0 3px rgba(180, 0, 255, 0.15), 0 0 10px rgba(180, 0, 255, 0.20), 0 14px 28px rgba(0,0,0,0.30);
    border-color: rgba(200, 60, 255, 0.55);
  }
  /* primo battito — debole */
  10% {
    box-shadow: 0 0 0 14px rgba(180, 0, 255, 0.00), 0 0 28px rgba(180, 0, 255, 0.50), 0 14px 28px rgba(0,0,0,0.30);
    border-color: rgba(200, 60, 255, 0.90);
  }
  /* rientro */
  20% {
    box-shadow: 0 0 0 3px rgba(180, 0, 255, 0.12), 0 0 10px rgba(180, 0, 255, 0.18), 0 14px 28px rgba(0,0,0,0.30);
    border-color: rgba(200, 60, 255, 0.50);
  }
  /* secondo battito — medio */
  32% {
    box-shadow: 0 0 0 20px rgba(0, 200, 255, 0.00), 0 0 42px rgba(0, 200, 255, 0.60), 0 14px 28px rgba(0,0,0,0.30);
    border-color: rgba(0, 230, 255, 0.95);
  }
  /* pausa lunga */
  45%, 58% {
    box-shadow: 0 0 0 3px rgba(180, 0, 255, 0.10), 0 0 8px rgba(180, 0, 255, 0.14), 0 14px 28px rgba(0,0,0,0.30);
    border-color: rgba(200, 60, 255, 0.40);
  }
  /* terzo battito — fortissimo */
  70% {
    box-shadow: 0 0 0 30px rgba(0, 230, 255, 0.00), 0 0 70px rgba(0, 230, 255, 0.75), 0 0 120px rgba(180, 0, 255, 0.25), 0 14px 28px rgba(0,0,0,0.30);
    border-color: rgba(0, 240, 255, 1.00);
  }
  /* rientro finale */
  85%, 100% {
    box-shadow: 0 0 0 3px rgba(180, 0, 255, 0.15), 0 0 10px rgba(180, 0, 255, 0.20), 0 14px 28px rgba(0,0,0,0.30);
    border-color: rgba(200, 60, 255, 0.55);
  }
}

.eyebrow,
.section-kicker {
  margin: 0 0 1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.0;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  max-width: 100%;
}

h1 .title-line {
  display: block;
  white-space: nowrap;
}

.lead {
  margin-top: 1.35rem;
  max-width: 60ch;
  font-size: 1.06rem;
  color: var(--muted);
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition:
    transform 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    filter 0.22s ease,
    box-shadow 0.22s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: #101214;
  border-color: transparent;
  font-weight: 600;
}

.button-secondary {
  background: transparent;
  color: var(--accent);
  border-color: rgba(132, 236, 255, 0.40);
  font-weight: 600;
}

.button-primary:hover {
  background: #9df2ff;
  box-shadow: 0 12px 24px rgba(132, 236, 255, 0.16), 0 0 26px rgba(59, 90, 255, 0.55);
}

.button-secondary:hover {
  background: rgba(132, 236, 255, 0.10);
  border-color: rgba(132, 236, 255, 0.60);
  color: var(--accent-strong);
  box-shadow: 0 0 26px rgba(59, 90, 255, 0.50);
}

.section-grid,
.case-study-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 2rem;
  align-items: start;
}

.section#what-we-do .section-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.section#what-we-do .section-intro.editorial {
  max-width: min(100%, 92ch);
  margin-left: auto;
  margin-right: auto;
}

.section-intro h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  max-width: 18ch;
  color: var(--text);
}

.section#what-we-do .section-intro.editorial h2 {
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-intro.compact h2 {
  max-width: 17ch;
}

#services .section-intro.compact h2 {
  max-width: 34ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

#services .section-intro.compact h2 .title-line {
  display: block;
}

.supporting-copy,
.muted {
  color: var(--muted);
  max-width: 48ch;
  padding-top: 0.3rem;
}

.section#what-we-do .supporting-copy.editorial-copy {
  margin-top: 1.35rem;
  padding-top: 0;
  max-width: 58ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.phase-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto auto auto auto;
  column-gap: 1.3rem;
  row-gap: 0.9rem;
  margin-top: 3rem;
}

.phase-panel {
  position: relative;
  grid-row: 1 / -1;
  display: grid;
  grid-template-rows: subgrid;
  row-gap: 0.9rem;
  padding: 1.6rem 1.5rem 1.8rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008)) padding-box,
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, rgba(100, 40, 200, 0.55), rgba(132, 236, 255, 0.28)) border-box;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.phase-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28), 0 0 28px rgba(59, 90, 255, 0.45);
}

.phase-panel-during {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008)) padding-box,
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, rgba(130, 60, 230, 0.70), rgba(184, 168, 255, 0.45)) border-box;
}

.phase-panel-label {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
}

.phase-panel-during .phase-panel-label {
  color: var(--accent-soft);
}

.phase-panel-intro {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.phase-panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  grid-row: 3 / -1;
  display: grid;
  grid-template-rows: subgrid;
  row-gap: 0.75rem;
}

.phase-panel-list li {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(132, 236, 255, 0.04);
  border: 1px solid rgba(132, 236, 255, 0.10);
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.phase-panel-during .phase-panel-list li {
  background: rgba(184, 168, 255, 0.05);
  border-color: rgba(184, 168, 255, 0.14);
}

.phase-panel-item-title {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.phase-panel-item-detail {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.services-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.service-card {
  border-radius: var(--radius);
  padding: 1.6rem;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(132, 236, 255, 0.08);
  border-top: 2px solid rgba(132, 236, 255, 0.28);
  background:
    linear-gradient(155deg, rgba(132, 236, 255, 0.045) 0%, rgba(255, 255, 255, 0.005) 45%),
    var(--surface);
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

/* scan line */
.service-card::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(132, 236, 255, 0.92) 30%, rgba(132, 236, 255, 0.92) 70%, transparent);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
}

/* pulsing dot */
.service-card::after {
  content: '';
  position: absolute;
  top: 1.3rem;
  right: 1.3rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(132, 236, 255, 1);
  box-shadow: 0 0 6px rgba(132, 236, 255, 0.75);
  z-index: 3;
  animation: tickerDotPulse 2.2s ease-in-out infinite;
}

.service-card:nth-child(1)::after { animation-delay: 0s; }
.service-card:nth-child(2)::after { animation-delay: 0.55s; }
.service-card:nth-child(3)::after { animation-delay: 1.1s; }
.service-card:nth-child(4)::after { animation-delay: 1.65s; }

.service-card > :not(.service-glyphs) {
  position: relative;
  z-index: 2;
}

.service-glyphs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  transition: opacity 0.28s ease;
}

.service-glyph {
  position: absolute;
  font-family: 'Courier New', monospace;
  color: var(--glyph-color, rgba(132, 236, 255, 0.72));
  text-shadow: 0 0 10px var(--glyph-glow, rgba(132, 236, 255, 1));
  line-height: 1;
  opacity: 0;
  animation: glyphAppear var(--glyph-dur, 0.7s) ease-out forwards;
  user-select: none;
  pointer-events: none;
}

@keyframes glyphAppear {
  0%   { opacity: 0;                        transform: scale(0.65); }
  18%  { opacity: var(--glyph-op, 0.65);   transform: scale(1.08); }
  50%  { opacity: calc(var(--glyph-op, 0.65) * 0.55); transform: scale(1); }
  100% { opacity: 0;                        transform: scale(0.9) translateY(3px); }
}

.service-card:hover {
  transform: translateY(-5px);
  border-top-color: var(--accent);
  border-color: rgba(132, 236, 255, 0.18);
  box-shadow:
    0 20px 38px rgba(0, 0, 0, 0.32),
    0 0 36px rgba(132, 236, 255, 0.13);
}

.service-card:hover::before {
  animation: serviceScan 0.65s ease-out forwards;
}

@keyframes serviceScan {
  0%   { top: -2px; opacity: 0; }
  6%   { opacity: 1; }
  90%  { opacity: 0.85; }
  100% { top: calc(100% + 2px); opacity: 0; }
}


.service-card h3 {
  font-size: 1.22rem;
  line-height: 1.3;
  color: var(--text);
  font-weight: 700;
}

.service-copy {
  color: var(--muted);
  margin-top: auto;
  font-size: 1.03rem;
}

.case-panel,
.contact-card {
  border-radius: calc(var(--radius) + 4px);
  padding: 1.4rem;
}

.case-panel {
  border: 1px solid rgba(132, 236, 255, 0.1);
  border-top: 2px solid rgba(132, 236, 255, 0.38);
  background:
    linear-gradient(155deg, rgba(132, 236, 255, 0.04) 0%, rgba(255, 255, 255, 0.005) 50%),
    var(--surface);
}

.case-panel-id {
  display: block;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: rgba(132, 236, 255, 0.38);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

#case-study .section-intro h2 {
  color: var(--text);
}

#case-study .case-study-grid {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

#case-study .container {
  width: min(calc(100% - 2rem), 1320px);
}

#case-study .section-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 86ch;
  margin-left: auto;
  margin-right: auto;
}

#case-study .section-intro h2 {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

#case-study .muted {
  max-width: 68ch;
  margin-left: auto;
  margin-right: auto;
  padding-top: 1.1rem;
}

#case-study .case-panel {
  width: 100%;
}

#case-study .project-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  width: 100%;
  margin: 1.7rem auto 0;
}

#case-study .project-cards .case-panel {
  height: 100%;
}

#case-study .project-cards .case-panel:last-child .sales-chart-body {
  min-height: 13rem;
}

#case-study .project-cards .case-panel:last-child .sales-chart-bars {
  gap: 0.2rem;
}

.case-status {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.case-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(132, 236, 255, 0.10);
  border: 1px solid rgba(132, 236, 255, 0.28);
  color: var(--text);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.case-pill-demo {
  min-height: 2.2rem;
  padding: 0.4rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.case-pill-soft {
  background: rgba(240, 207, 147, 0.08);
  border-color: rgba(240, 207, 147, 0.32);
  color: var(--accent-warm);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.case-panel-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.1rem;
  padding: 1.8rem 1rem;
  border: 1px solid rgba(240, 207, 147, 0.1);
  border-top: 2px solid rgba(240, 207, 147, 0.28);
  background: linear-gradient(155deg, rgba(240, 207, 147, 0.04) 0%, transparent 50%);
  box-shadow: none;
}

.case-panel-cta .case-status {
  margin-bottom: 0.2rem;
  justify-content: center;
}

.case-cta-title {
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  font-weight: 700;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

.case-cta-copy {
  color: var(--muted);
  max-width: 52ch;
  font-size: 1.05rem;
  margin-left: auto;
  margin-right: auto;
}

.case-cta-button {
  margin-top: 0.4rem;
}

.case-note {
  color: var(--muted);
  margin-bottom: 1rem;
}

.sales-chart {
  margin: 1.15rem 0 1.15rem;
  padding: 1rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(132, 236, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.006)),
    var(--surface);
  box-shadow: var(--shadow);
}

.sales-chart-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.9rem;
}

.sales-chart-head > div {
  grid-column: 2;
  justify-self: center;
  text-align: center;
}

.sales-chart-title {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
}

.sales-chart-subtitle {
  margin-top: 0.35rem;
  color: var(--muted);
  max-width: 56ch;
  font-size: 0.94rem;
  font-weight: 400;
  text-align: center;
}

.sales-chart-badge {
  grid-column: 3;
  justify-self: end;
  flex: 0 0 auto;
  min-height: 1.95rem;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(132, 236, 255, 0.22);
  background: rgba(132, 236, 255, 0.08);
  color: var(--text);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

#case-study .sales-chart-badge {
  display: none;
}

.sales-chart-body {
  display: grid;
  grid-template-columns: 4.1rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: stretch;
  min-height: 14rem;
}

.sales-chart-yaxis {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.2rem 0.2rem 0.85rem 1.7rem;
  color: var(--text);
  font-size: 0.7rem;
  line-height: 1;
  font-weight: 600;
  text-align: right;
}

.sales-chart-canvas {
  position: relative;
  min-height: 14rem;
  border: 0;
  border-radius: 0 0 14px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(132, 236, 255, 0.07), transparent 44%),
    radial-gradient(circle at bottom right, rgba(200, 60, 255, 0.04), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.006), transparent 24%);
}

.sales-chart-grid {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to top,
      transparent 0,
      transparent calc(20% - 1px),
      rgba(132, 236, 255, 0.1) calc(20% - 1px),
      rgba(132, 236, 255, 0.1) 20%
    );
  opacity: 0.45;
}

.sales-chart-axis-unit {
  position: absolute;
  top: 50%;
  left: 0.85rem;
  display: inline-block;
  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: center;
  white-space: nowrap;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #8cf3ff;
  line-height: 1;
  pointer-events: none;
}

.sales-chart-yaxis span:not(.sales-chart-axis-unit) {
  text-align: right;
}

.sales-chart-bars {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 0.24rem;
  align-items: end;
  padding: 0.75rem 0.28rem 0.95rem 0.28rem;
}

.sales-chart-bar {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sales-chart-bar-fill {
  width: 100%;
  height: var(--bar-height, 20%);
  border-radius: 10px 10px 0 0;
  transform-origin: bottom;
  transform: scaleY(0.08);
  transition: transform 1.05s cubic-bezier(0.16, 1, 0.3, 1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 20%),
    linear-gradient(180deg, rgba(132, 236, 255, 1) 0%, rgba(130, 60, 255, 0.9) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 10px rgba(132, 236, 255, 0.2);
}

.sales-chart.is-visible .sales-chart-bar-fill {
  transform: scaleY(1);
}

.sales-chart-bar-day {
  position: absolute;
  bottom: -1.12rem;
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
}

.sales-chart-svg {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.sales-chart-area {
  fill: rgba(100, 60, 255, 0.08);
  stroke: none;
}

.sales-chart-xaxis {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: 1fr;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 700;
  text-align: center;
}

.sales-chart-axis-months {
  font-size: 0.88rem;
  color: #8cf3ff;
  text-shadow: none;
}

.sales-chart-festival {
  color: var(--accent-warm);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.metrics {
  display: grid;
  gap: 0.85rem;
  max-width: 34rem;
  margin: 0 auto;
  justify-items: center;
}

.metric {
  width: 100%;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(132, 236, 255, 0.04);
  border: 1px solid rgba(132, 236, 255, 0.12);
  text-align: center;
}

.metric-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, rgba(200, 60, 255, 1), rgba(0, 230, 255, 1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-label {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.contact-intro {
  margin-top: 0.75rem;
}

.contact-card {
  display: block;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.008)),
    var(--surface);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(132, 236, 255, 0.14);
  border-radius: 12px;
  padding: 0.88rem 1rem;
  background: rgba(10, 12, 18, 0.62);
  color: var(--text);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(238, 241, 243, 0.36);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(132, 236, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(132, 236, 255, 0.14);
}

.form-field textarea {
  resize: vertical;
  min-height: 9rem;
}

.contact-form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.form-note {
  margin: 0;
  color: rgba(242, 244, 245, 0.72);
  font-size: 0.92rem;
  max-width: 38ch;
}

.site-outro {
  padding-top: 1rem;
  padding-bottom: 4rem;
}

.site-outro-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.8fr) minmax(240px, 0.8fr);
  gap: 1.4rem;
  align-items: start;
  padding: 1.6rem;
  border-top: 1px solid rgba(132, 236, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.006)),
    rgba(26, 31, 39, 0.4);
  border-radius: calc(var(--radius) + 4px);
}

.site-outro-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.site-outro-logo {
  width: auto;
  height: 4.2rem;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 16px rgba(132, 236, 255, 0.12));
}

.site-outro-name {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--text);
  text-transform: uppercase;
}

.site-outro-tagline {
  margin: 0.55rem 0 0;
  max-width: 26ch;
  color: rgba(242, 244, 245, 0.8);
}

.site-outro-column {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.site-outro-column-right {
  justify-self: end;
  text-align: left;
}

.site-outro-label {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-outro-link {
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

.site-outro-link:hover {
  color: var(--accent);
}

.site-outro-note {
  margin: 0.35rem 0 0;
  color: rgba(242, 244, 245, 0.72);
  font-size: 0.94rem;
  max-width: 28ch;
}

#contact .section-intro.compact h2 {
  color: var(--text);
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

#contact .contact-intro {
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  line-height: 1.7;
}

.contact-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
}

.contact-list div {
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  background: rgba(132, 236, 255, 0.04);
  border: 1px solid rgba(132, 236, 255, 0.14);
}

.contact-list dt {
  color: var(--accent);
  text-transform: lowercase;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
  margin-bottom: 0;
  display: inline;
  font-weight: 700;
}

.contact-list dd {
  margin: 0;
  display: inline;
  color: var(--text);
  font-size: 1.08rem;
}

.contact-list a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-color: rgba(132, 236, 255, 0.45);
  text-underline-offset: 0.18em;
  font-size: 1.08rem;
  font-weight: 600;
}

.contact-list dt::after {
  content: " ";
}

.contact-list div > * + * {
  margin-left: 0.3rem;
}

.contact-list div:hover {
  border-color: rgba(132, 236, 255, 0.32);
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(59, 90, 255, 0.48);
}

.site-footer {
  border-top: 1px solid rgba(132, 236, 255, 0.14);
  padding: 1.35rem 0 1.9rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.footer-logo {
  width: auto;
  height: 2.15rem;
  display: block;
  object-fit: contain;
  opacity: 0.95;
}

.lang {
  display: none;
}

html[data-lang="it"] .lang-it,
html[data-lang="en"] .lang-en {
  display: inline;
}


@media (max-width: 1120px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand actions";
    row-gap: 0.65rem;
    padding: 0.75rem 0;
  }

  .brand-text-link {
    align-self: center;
  }

  .header-actions {
    justify-content: space-between;
    width: 100%;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .nav-list {
    justify-content: flex-start;
  }

  .hero-grid,
  .section-grid,
  .case-study-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
    grid-template-areas:
      "lbl-b"
      "ab-b"
      "bl-b"
      "lbl-d"
      "ab-d"
      "event"
      "bl-d"
      "lbl-a"
      "ab-a"
      "bl-a";
    row-gap: 0.8rem;
  }

  .timeline-axis,
  .timeline-edge,
  .timeline-marker {
    display: none;
  }

  .timeline-cell-above .timeline-task::after,
  .timeline-cell-below .timeline-task::after {
    display: none;
  }

  .timeline-label {
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px dashed rgba(132, 236, 255, 0.18);
    width: 100%;
  }

  .timeline-label-before {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .timeline-event {
    margin: 0.35rem 0;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-outro-inner {
    grid-template-columns: 1fr;
  }

  .site-outro-brand {
    flex-direction: column;
  }

  .site-outro-column-right {
    justify-self: start;
  }

  #case-study .project-cards {
    grid-template-columns: 1fr;
  }

  .sales-chart-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    grid-template-columns: 1fr;
  }

  .sales-chart-head > div,
  .sales-chart-badge {
    grid-column: 1;
    justify-self: center;
  }

  .sales-chart-body {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sales-chart-yaxis {
    display: none;
  }

  .sales-chart-canvas {
    min-height: 13rem;
  }

  .sales-chart-bars {
    gap: 0.28rem;
  }

  .section#what-we-do .supporting-copy.editorial-copy {
    max-width: 54ch;
  }

  .section#what-we-do .section-intro.editorial {
    max-width: 100%;
    margin-left: 0;
  }

  .phase-panels {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 1rem;
    margin-top: 2.2rem;
  }

  .phase-panel {
    grid-row: auto;
    grid-template-rows: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .phase-panel-list {
    grid-row: auto;
    grid-template-rows: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  h1 {
    font-size: clamp(1.6rem, 5vw, 2.1rem);
    max-width: 100%;
  }

  .brand-logo {
    height: 3.2rem;
  }

  body::before {
    background:
      radial-gradient(ellipse at center, rgba(12, 8, 24, 0) 30%, rgba(12, 8, 24, 0.16) 60%, rgba(12, 8, 24, 0.68) 84%, rgba(12, 8, 24, 0.96) 100%),
      radial-gradient(circle at 50% 92%, rgba(132, 236, 255, 0.1), transparent 52%),
      url("images/Soundwaves_round.svg") center 94% / min(146vw, 1180px) no-repeat;
    opacity: 0.22;
    -webkit-mask-image: radial-gradient(circle at 50% 92%, rgba(0, 0, 0, 1) 0 30%, rgba(0, 0, 0, 0.98) 46%, rgba(0, 0, 0, 0.74) 60%, rgba(0, 0, 0, 0) 82%);
    mask-image: radial-gradient(circle at 50% 92%, rgba(0, 0, 0, 1) 0 30%, rgba(0, 0, 0, 0.98) 46%, rgba(0, 0, 0, 0.74) 60%, rgba(0, 0, 0, 0) 82%);
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 120px;
  }

  .section {
    padding: 4rem 0;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero-timeline {
    margin-top: 1.3rem;
  }

  .timeline-label {
    font-size: 0.72rem;
  }

  .timeline-task {
    font-size: 0.75rem;
    min-height: 2rem;
    padding: 0.4rem 0.75rem;
  }

  .timeline-event {
    font-size: 0.85rem;
    padding: 0.8rem 1.2rem;
    letter-spacing: 0.16em;
  }

  h1 {
    font-size: clamp(1.4rem, 6.5vw, 1.9rem);
    line-height: 1.05;
    max-width: 100%;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 0.95rem;
  }

  .service-card {
    min-height: 220px;
    padding: 1.35rem;
  }

  .sales-chart {
    padding: 0.9rem;
  }

  .sales-chart-title {
    font-size: 0.95rem;
  }

  .sales-chart-subtitle {
    font-size: 0.92rem;
  }

  .sales-chart-xaxis {
    font-size: 0.62rem;
  }

  .header-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "actions";
    gap: 0.55rem 0.75rem;
  }

  .brand-text-link {
    max-width: 100%;
    justify-self: start;
  }

  .brand-text {
    font-size: 1.05rem;
    white-space: normal;
    max-width: 100%;
  }

  .brand-logo-inline {
    height: 3.2rem;
  }

  .header-actions {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    justify-self: stretch;
    overflow: hidden;
  }

  .site-nav {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
  }

  .nav-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: flex-start;
    gap: 0.25rem;
    padding-bottom: 2px;
  }

  .nav-list::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    padding-inline: 0.65rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.8rem;
  }

  body::before {
    background:
      radial-gradient(ellipse at center, rgba(12, 8, 24, 0) 28%, rgba(12, 8, 24, 0.16) 58%, rgba(12, 8, 24, 0.7) 84%, rgba(12, 8, 24, 0.96) 100%),
      radial-gradient(circle at 50% 94%, rgba(132, 236, 255, 0.08), transparent 52%),
      url("images/Soundwaves_round.svg") center 96% / min(168vw, 980px) no-repeat;
    opacity: 0.18;
    -webkit-mask-image: radial-gradient(circle at 50% 94%, rgba(0, 0, 0, 1) 0 32%, rgba(0, 0, 0, 0.98) 48%, rgba(0, 0, 0, 0.74) 62%, rgba(0, 0, 0, 0) 84%);
    mask-image: radial-gradient(circle at 50% 94%, rgba(0, 0, 0, 1) 0 32%, rgba(0, 0, 0, 0.98) 48%, rgba(0, 0, 0, 0.74) 62%, rgba(0, 0, 0, 0) 84%);
  }

}

@media (prefers-reduced-motion: reduce) {
  .hero-scanlines,
  .glitch-bar,
  h1.glitching,
  .brand-text.glitching,
  .hero-copy::before,
  .bg-rings,
  .bg-rings circle,
  .acid-letter::after {
    animation: none !important;
  }
}

@media (max-width: 480px) {
  h1 {
    max-width: 15ch;
  }

  h1 .title-line {
    white-space: normal;
  }

  .section {
    padding: 3rem 0;
  }

  .hero {
    padding-top: 1.5rem;
  }

  .hero-timeline {
    margin-top: 1rem;
  }

  .timeline {
    row-gap: 0.5rem;
  }

  .timeline-task {
    font-size: 0.72rem;
    padding: 0.35rem 0.65rem;
  }

  .dashboard-kpis {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-kpi:last-child {
    grid-column: 1 / -1;
  }

  .dashboard-panel {
    padding: 1.1rem;
    gap: 1.2rem;
  }

  .phase-panel {
    padding: 1.1rem 1rem 1.3rem;
  }

  .phase-panel-list li {
    padding: 0.55rem 0.75rem;
  }

  .case-panel,
  .contact-card {
    padding: 1rem;
  }

  .metric {
    padding: 0.8rem 0.75rem;
  }

  .live-ticker {
    font-size: 0.68rem;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }

  .section-intro h2 {
    font-size: clamp(1.4rem, 5.5vw, 1.9rem);
  }

  .hero-tagline {
    font-size: clamp(0.88rem, 3.5vw, 1rem);
  }

  .button {
    padding: 0.65rem 1rem;
    min-height: 2.6rem;
  }

}

/* ── Popovers ─────────────────────────────────────────────────────────────── */

[data-popover] {
  cursor: default;
  text-decoration: underline dotted rgba(132, 236, 255, 0.4);
  text-underline-offset: 3px;
}

.ffeo-popover {
  position: fixed;
  z-index: 900;
  width: 210px;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)) padding-box,
    linear-gradient(var(--bg-elevated), var(--bg-elevated)) padding-box,
    linear-gradient(135deg, rgba(100, 40, 200, 0.75), rgba(132, 236, 255, 0.45)) border-box;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(59, 90, 255, 0.22);
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.ffeo-popover.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.pop-title {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin: 0 0 0.6rem;
}

/* Line chart */
.pop-svg { display: block; width: 100%; overflow: visible; }

.pop-line {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: popDrawLine 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.pop-dot {
  opacity: 0;
  animation: popFadeIn 0.25s ease forwards;
}

@keyframes popDrawLine {
  to { stroke-dashoffset: 0; }
}

@keyframes popFadeIn {
  to { opacity: 1; }
}

/* Access counter */
.pop-counter {
  text-align: center;
  padding: 0.3rem 0 0.1rem;
}

.pop-counter-num {
  display: block;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.pop-counter-label {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* Checklist */
.pop-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.pop-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.3s ease;
}

.pop-check::before {
  content: '○';
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.3s ease;
  flex-shrink: 0;
}

.pop-check.is-checked { color: var(--text); }

.pop-check.is-checked::before {
  content: '✓';
  color: var(--accent);
}

/* Bar chart */
.pop-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 54px;
  width: 100%;
}

.pop-bar {
  flex: 1;
  background: linear-gradient(to top, var(--accent-blue), var(--accent));
  border-radius: 3px 3px 0 0;
  transform: scaleY(0);
  transform-origin: bottom;
  animation: popGrowBar 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes popGrowBar {
  to { transform: scaleY(1); }
}

/* Issue dots */
.pop-issue::before {
  content: '●';
  color: #ff5f5f;
  transition: color 0.4s ease;
}

.pop-issue.is-resolved { color: var(--text); }
.pop-issue.is-resolved::before { content: '✓'; color: var(--accent); }

/* Network */
.pop-node {
  opacity: 0;
  animation: popFadeIn 0.3s ease forwards;
}

.pop-edge {
  opacity: 0;
  animation: popFadeIn 0.3s ease forwards;
  stroke-opacity: 0.5;
}

/* Progress bars */
.pop-progress-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pop-progress-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pop-progress-label {
  font-size: 0.72rem;
  color: var(--muted);
}

.pop-progress-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.pop-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(to right, var(--accent-blue), var(--accent));
  border-radius: 99px;
  animation: popFillBar 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes popFillBar {
  to { width: 100%; }
}

/* Status board */
.pop-status-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.pop-status-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  opacity: 0;
  animation: popSlideIn 0.25s ease forwards;
}

.pop-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background-color 0.4s ease;
}

.pop-status-in-wait    { background: #f0a04a; }
.pop-status-in-progress { background: #f0cf4a; }
.pop-status-active     { background: #4af0a0; }
.pop-status-dot.pop-status-active { background: #4af0a0; }

.pop-status-name { color: var(--muted); flex: 1; }

.pop-status-label { font-size: 0.7rem; }
.pop-status-label-in-wait    { color: #f0a04a; }
.pop-status-label-in-progress { color: #f0cf4a; }
.pop-status-label-active     { color: #4af0a0; }
.pop-status-label.pop-status-label-active { color: #4af0a0; transition: color 0.4s ease; }

/* KPI dashboard */
.pop-kpi { display: flex; flex-direction: column; gap: 0.2rem; }

.pop-kpi-main {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.pop-kpi-num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.pop-kpi-trend {
  font-size: 0.78rem;
  font-weight: 600;
  color: #4af0a0;
}

.pop-kpi-sub {
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.pop-kpi-spark { margin-top: 0.2rem; }

.pop-kpi-trend-label {
  font-size: 0.65rem;
  color: var(--muted);
  opacity: 0.7;
}

/* Gate capacity */
.pop-gates {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pop-gate-row {
  opacity: 0;
  animation: popSlideIn 0.25s ease forwards;
}

.pop-gate-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 0.2rem;
}

.pop-gate-name { color: var(--muted); }
.pop-gate-count { color: var(--text); font-variant-numeric: tabular-nums; }

.pop-gate-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(to right, var(--accent-blue), var(--accent));
  border-radius: 99px;
  animation: popFillTo 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes popFillTo {
  to { width: var(--pct); }
}

/* Ledger */
.pop-ledger {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.pop-ledger-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  animation: popSlideIn 0.25s ease forwards;
}

.pop-ledger-item { color: var(--muted); }
.pop-ledger-amount { color: var(--text); font-weight: 500; }

.pop-ledger-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0.2rem 0;
  opacity: 0;
  animation: popFadeIn 0.2s ease forwards;
}

.pop-ledger-total .pop-ledger-item { color: var(--text); font-weight: 600; }
.pop-ledger-total .pop-ledger-amount { color: var(--accent); font-weight: 700; }

/* Notification list */
.pop-notif-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pop-notif-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  opacity: 0;
  transform: translateX(-6px);
  animation: popSlideIn 0.3s ease forwards;
}

.pop-notif-label { color: var(--muted); }

.pop-notif-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(132, 236, 255, 0.1);
  border-radius: 99px;
  padding: 0.1rem 0.5rem;
}

@keyframes popSlideIn {
  to { opacity: 1; transform: translateX(0); }
}

