/* main.css */

/* ─── Material icons ─── */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ─── Smooth scroll ─── */
html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  position: relative;
  max-width: 100%;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(180deg, rgba(43, 108, 238, 0.05), transparent 34%, rgba(24, 224, 255, 0.025));
  background-size: 44px 44px, 44px 44px, 100% 100%;
  opacity: 0.55;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 82%, transparent 100%);
}

/* ─── Reveal on scroll ─── */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  position: relative;
}
[data-reveal].is-visible {
  animation: tech-section-focus 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes tech-section-focus {
  0% {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(6px) saturate(0.8);
  }
  55% {
    filter: blur(0px) saturate(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: none;
  }
}

/* ─── Hero ─── */
.hero-panel {
  backdrop-filter: blur(20px);
  background: rgba(16, 22, 34, 0.88);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hero-bg {
  background-attachment: fixed;
}

#hero h1 {
  max-width: min(100%, 48rem);
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.52);
  text-wrap: balance;
}

#hero h1 .text-primary {
  text-shadow:
    0 0 22px rgba(43, 108, 238, 0.55),
    0 0 44px rgba(24, 224, 255, 0.14);
}

/* ─── Service / project cards ─── */
.card-elevated {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 1px 0 rgba(255, 255, 255, 0.03);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease;
}

.card-elevated > * {
  position: relative;
  z-index: 1;
}

.card-elevated::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  padding: 1px;
  background:
    linear-gradient(135deg,
      rgba(82, 139, 255, 0.82),
      rgba(255, 255, 255, 0.08) 32%,
      rgba(24, 224, 255, 0.34) 62%,
      rgba(43, 108, 238, 0.18));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.18;
  transition: opacity 0.28s ease;
}

.card-elevated::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 28%, rgba(43, 108, 238, 0.16) 42%, rgba(255, 255, 255, 0.09) 50%, rgba(24, 224, 255, 0.12) 58%, transparent 72%);
  opacity: 0;
  transform: translate3d(-42%, -8%, 0) rotate(8deg) scale(1.8);
  transition: opacity 0.32s ease, transform 0.5s ease;
}

.card-elevated:hover {
  transform: translateY(-6px);
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.58),
    0 0 34px rgba(43, 108, 238, 0.12);
  border-color: rgba(83, 143, 255, 0.48);
  background:
    linear-gradient(145deg, rgba(43, 108, 238, 0.12), rgba(16, 22, 34, 0.74));
}

.card-elevated:hover::before {
  opacity: 0.56;
}

.card-elevated:hover::after {
  opacity: 1;
  transform: translate3d(42%, 8%, 0) rotate(8deg) scale(1.8);
}

/* ─── Project cards with screenshot ─── */
.project-card {
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-7px);
  border-color: rgba(83, 143, 255, 0.52);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.58),
    0 0 40px rgba(43, 108, 238, 0.14);
}

.card-thumb-wrap {
  position: relative;
  overflow: hidden;
  background: #0d1220;
}

.card-thumb-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05), transparent 18%, transparent 78%, rgba(0, 0, 0, 0.18)),
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 5px);
  opacity: 0.28;
}

.card-thumb-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 34%, rgba(107, 164, 255, 0.28) 49%, rgba(255, 255, 255, 0.18) 52%, transparent 66%);
  transform: translateX(-135%);
  transition: transform 0.86s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card .card-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: top center;
  display: block;
  background: #0d1220;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.project-card:hover .card-thumb {
  transform: scale(1.045);
  filter: saturate(1.12) contrast(1.04);
}

.project-card:hover .card-thumb-wrap::after {
  transform: translateX(135%);
}

.project-card.featured .card-thumb {
  height: 210px;
}

/* ─── Tag pills ─── */
.tag-pill {
  display: inline-block;
  font-size: 0.68rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  border-radius: 9999px;
  border: 1px solid rgba(43, 108, 238, 0.3);
  color: rgba(147, 180, 253, 0.85);
  background: rgba(43, 108, 238, 0.1);
}

.capability-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 760px;
  margin-top: 14px;
}

.capability-cloud span {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.66);
  background:
    linear-gradient(135deg, rgba(43, 108, 238, 0.13), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.capability-cloud span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 18%, rgba(255, 255, 255, 0.12) 45%, transparent 72%);
  transform: translateX(-130%);
  transition: transform 0.55s ease;
}

.capability-cloud span:hover {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(83, 143, 255, 0.38);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(43, 108, 238, 0.12);
}

.capability-cloud span:hover::after {
  transform: translateX(130%);
}

@media (max-width: 640px) {
  #hero {
    max-width: 100%;
    min-width: 0;
  }

  #hero h1 {
    max-width: 22rem;
    font-size: clamp(2.05rem, 9vw, 2.55rem);
    line-height: 1.16;
  }

  #hero p {
    max-width: 22rem;
  }

  #hero .inline-flex {
    max-width: 100%;
    white-space: normal;
  }

  .capability-cloud {
    justify-content: flex-start;
    width: 100%;
    gap: 7px;
  }

  .capability-cloud span {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 0.72rem;
  }
}

/* ─── Process steps ─── */
.process-step {
  opacity: 0;
  transform: translateY(20px);
  transition: box-shadow 0.38s ease, border-color 0.38s ease;
}
.process-step.step-visible {
  animation: process-pulse 0.7s cubic-bezier(0.34, 1.3, 0.64, 1) both;
}

@keyframes process-pulse {
  0% {
    opacity: 0;
    transform: translateY(20px);
    box-shadow: 0 0 0 rgba(43, 108, 238, 0);
    border-color: rgba(255, 255, 255, 0.08);
  }
  52% {
    box-shadow:
      0 20px 54px rgba(0, 0, 0, 0.38),
      0 0 42px rgba(43, 108, 238, 0.18);
    border-color: rgba(83, 143, 255, 0.42);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.045),
      0 1px 0 rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
  }
}

/* ─── Scroll cue ─── */
.scroll-cue {
  animation: scroll-bounce 1.7s infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%       { transform: translateY(7px); opacity: 1; }
}

/* ─── Language pills ─── */
.lang-pill {
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2px 9px;
  font-size: 0.68rem;
  line-height: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.18s ease;
}
.lang-pill:hover {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.4);
}
.lang-pill.lang-active {
  background: #2b6cee;
  color: #fff;
  border-color: transparent;
}

@media (max-width: 640px) {
  header {
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }

  header > div:first-child {
    gap: 8px;
  }

  header > div:first-child span:last-child {
    font-size: 0.95rem;
  }

  .lang-pill {
    padding: 2px 6px;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
  }

  .mobile-cta {
    display: none !important;
  }

  .mobile-cta::before {
    content: "→";
    font-size: 1rem;
    line-height: 1;
  }
}

@media (max-width: 420px) {
  header {
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }

  header > div:first-child {
    gap: 8px;
  }

  header > div:first-child .material-symbols-outlined {
    font-size: 1.65rem;
  }

  header > div:first-child span:last-child {
    font-size: 0.9rem;
  }

  .lang-pill {
    padding: 2px 6px;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
  }

  .mobile-cta {
    display: none !important;
  }

  .mobile-cta::before {
    content: "→";
    font-size: 1rem;
    line-height: 1;
  }
}

@media (max-width: 360px) {
  .mobile-cta {
    display: none !important;
  }
}

/* Survey landing */
.survey-shell {
  min-width: 0;
}

.survey-panel,
.survey-side-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(145deg, rgba(16, 22, 34, 0.92), rgba(16, 22, 34, 0.7)),
    radial-gradient(circle at 18% 0%, rgba(43, 108, 238, 0.16), transparent 34%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.survey-panel {
  border-radius: 18px;
  padding: clamp(24px, 5vw, 46px);
}

.survey-form-panel {
  padding-bottom: 112px;
}

.survey-side-panel {
  border-radius: 16px;
  align-self: start;
  padding: 26px;
  position: sticky;
  top: 96px;
}

.survey-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.survey-trust-grid div {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.survey-trust-grid strong {
  display: block;
  color: #fff;
  font-size: 1.45rem;
  line-height: 1;
  margin-bottom: 6px;
}

.survey-trust-grid span {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.76rem;
  line-height: 1.35;
}

.survey-step-count {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(43, 108, 238, 0.34);
  color: rgba(147, 180, 253, 0.95);
  background: rgba(43, 108, 238, 0.11);
  font-weight: 800;
  font-size: 0.78rem;
}

.survey-progress {
  height: 6px;
  width: 100%;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.survey-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #2b6cee, #68e0b7);
  transition: width 0.25s ease;
}

.survey-option-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.survey-option {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
  font-weight: 700;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.survey-option:hover,
.survey-option.is-selected {
  border-color: rgba(43, 108, 238, 0.55);
  background: rgba(43, 108, 238, 0.12);
  color: #fff;
}

.survey-option:active {
  transform: scale(0.99);
}

.survey-option .material-symbols-outlined {
  color: rgba(43, 108, 238, 0.95);
  font-size: 1.25rem;
}

.survey-textarea {
  min-height: 170px;
  width: 100%;
  resize: vertical;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  padding: 15px 16px;
  font-size: 0.95rem;
  line-height: 1.6;
  outline: none;
}

.survey-textarea:focus,
.survey-field input:focus {
  border-color: rgba(43, 108, 238, 0.62);
  box-shadow: 0 0 0 3px rgba(43, 108, 238, 0.12);
}

.survey-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.survey-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  font-weight: 700;
}

.survey-field input {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  padding: 0 14px;
  outline: none;
}

.survey-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 22, 34, 0.92);
  backdrop-filter: blur(12px);
}

.survey-primary-btn,
.survey-secondary-btn {
  height: 48px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 800;
  transition: opacity 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.survey-primary-btn {
  flex: 1;
  color: #fff;
  background: #2b6cee;
}

.survey-secondary-btn {
  width: 112px;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.survey-primary-btn:hover {
  background: rgba(43, 108, 238, 0.9);
}

.survey-secondary-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.survey-primary-btn:disabled,
.survey-secondary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.survey-side-item {
  display: flex;
  gap: 12px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.86rem;
  line-height: 1.55;
}

.survey-side-item .material-symbols-outlined {
  flex: 0 0 auto;
  color: #2b6cee;
  font-size: 1.25rem;
  margin-top: 1px;
}

.survey-mini-card {
  border-radius: 12px;
  border: 1px solid rgba(43, 108, 238, 0.22);
  background: rgba(43, 108, 238, 0.09);
  padding: 14px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  line-height: 1.55;
}

@media (min-width: 768px) {
  .survey-option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .survey-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .survey-side-panel {
    display: none;
  }
}

@media (max-width: 640px) {
  .survey-panel {
    border-radius: 14px;
    padding: 22px;
  }

  .survey-form-panel {
    padding-bottom: 102px;
  }

  .survey-trust-grid {
    grid-template-columns: 1fr;
  }

  .survey-actions {
    position: fixed;
    z-index: 60;
    padding: 12px;
  }

  .survey-secondary-btn {
    width: 96px;
  }
}

/* ─── Stat counters ─── */
.stat-item {
  text-align: center;
  position: relative;
  padding: 2px 4px;
}
.stat-item::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 42px;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(83, 143, 255, 0.7), transparent);
  opacity: 0.55;
}
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 20px rgba(43, 108, 238, 0.28);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.stat-value.stat-animated {
  color: #dce8ff;
  text-shadow:
    0 0 18px rgba(43, 108, 238, 0.45),
    0 0 34px rgba(43, 108, 238, 0.18);
}
.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 5px;
}

/* ─── CSS Scroll snap — desktop only ─── */
@media (min-width: 1024px) {
  html {
    /* snap container */
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-padding-top: 72px; /* header height */
  }

  .snap-section {
    scroll-snap-align: start;
    min-height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Lavori: tall section — snap to top but let it overflow naturally */
  #lavori {
    scroll-snap-align: start;
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

/* Mobile: normal scroll, no snap */
@media (max-width: 1023px) {
  .snap-section {
    min-height: auto;
  }
}

/* ─── CTA section ─── */
.cta-section {
  background: rgba(43, 108, 238, 0.07);
  border: 1px solid rgba(43, 108, 238, 0.2);
  border-radius: 1rem;
}

/* ─── Form inputs override ─── */
.form-input {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #e8eaf0 !important;
  transition: border-color 0.18s ease !important;
}
.form-input:focus {
  border-color: rgba(43, 108, 238, 0.6) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(43, 108, 238, 0.12) !important;
}
.form-input::placeholder {
  color: rgba(255, 255, 255, 0.25) !important;
}

.form-status {
  border-radius: 0.5rem;
  padding: 12px 14px;
  font-size: 0.82rem;
  line-height: 1.5;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-status-success {
  color: rgba(185, 255, 210, 0.95);
  background: rgba(20, 160, 80, 0.1);
  border-color: rgba(20, 160, 80, 0.32);
}

.form-status-error {
  color: rgba(255, 205, 205, 0.95);
  background: rgba(220, 60, 60, 0.1);
  border-color: rgba(220, 60, 60, 0.32);
}

#contact-form.is-submitting {
  opacity: 0.78;
}

#contact-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

/* ─── Hero glow orb ─── */
.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(43, 108, 238, 0.13) 0%,
    rgba(43, 108, 238, 0.05) 40%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-accent-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(43, 108, 238, 0.0) 20%,
    rgba(43, 108, 238, 0.5) 50%,
    rgba(43, 108, 238, 0.0) 80%,
    transparent 100%);
  pointer-events: none;
}

#hero {
  position: relative;
  overflow: hidden;
  justify-content: flex-start;
  min-height: auto;
  scroll-snap-align: none;
}

#hero > :not(.hero-glow):not(.hero-accent-line) {
  position: relative;
  z-index: 1;
}

#hero .hero-glow,
#hero .hero-accent-line {
  position: absolute;
  z-index: 0;
}

.card-thumb-wrap {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Fintech = blue */
.thumb-fintech {
  background: linear-gradient(135deg, #0c1e3d 0%, #0d1a30 60%, #101622 100%);
  border-bottom: 1px solid rgba(43,108,238,0.2);
}
.thumb-fintech .material-symbols-outlined { color: rgba(43,108,238,0.5); }

/* SaaS = purple */
.thumb-saas {
  background: linear-gradient(135deg, #1a0d2e 0%, #150f22 60%, #101622 100%);
  border-bottom: 1px solid rgba(120,80,220,0.2);
}
.thumb-saas .material-symbols-outlined { color: rgba(120,80,220,0.5); }

/* Data / analytics = teal */
.thumb-data {
  background: linear-gradient(135deg, #0a1e1e 0%, #0d1a1a 60%, #101622 100%);
  border-bottom: 1px solid rgba(20,160,120,0.2);
}
.thumb-data .material-symbols-outlined { color: rgba(20,160,120,0.5); }

/* Community = indigo */
.thumb-community {
  background: linear-gradient(135deg, #0f1230 0%, #0e1228 60%, #101622 100%);
  border-bottom: 1px solid rgba(80,100,220,0.2);
}
.thumb-community .material-symbols-outlined { color: rgba(80,100,220,0.5); }

/* VC / startup = amber */
.thumb-vc {
  background: linear-gradient(135deg, #1e1400 0%, #181200 60%, #101622 100%);
  border-bottom: 1px solid rgba(200,140,20,0.2);
}
.thumb-vc .material-symbols-outlined { color: rgba(200,140,20,0.5); }

/* Real estate = stone */
.thumb-realestate {
  background: linear-gradient(135deg, #141414 0%, #121212 60%, #101622 100%);
  border-bottom: 1px solid rgba(160,140,120,0.2);
}
.thumb-realestate .material-symbols-outlined { color: rgba(160,140,120,0.5); }

/* Ecom = rose */
.thumb-ecom {
  background: linear-gradient(135deg, #1e0a10 0%, #180810 60%, #101622 100%);
  border-bottom: 1px solid rgba(220,60,80,0.2);
}
.thumb-ecom .material-symbols-outlined { color: rgba(220,60,80,0.5); }

.thumb-domain {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.08em;
  font-family: monospace;
}

.project-outcome {
  font-size: 0.72rem;
  color: rgba(100,200,140,0.85);
  line-height: 1.5;
  padding: 6px 10px;
  background: rgba(20,160,80,0.07);
  border-left: 2px solid rgba(20,160,80,0.35);
  border-radius: 0 4px 4px 0;
  margin-top: 2px;
}

.contact-signature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
}

.sig-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2b6cee;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: -0.03em;
}

.sig-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2px;
}

.sig-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.42);
  line-height: 1.5;
}

/* ─── Custom scrollbar ─── */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(43, 108, 238, 0.45) rgba(255, 255, 255, 0.04);
}
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}
::-webkit-scrollbar-thumb {
  background: rgba(43, 108, 238, 0.45);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(43, 108, 238, 0.75);
}

/* ─── Dot nav ─── */
#dot-nav {
  transition: opacity 0.4s ease;
}

.dot-nav-item {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
}
.dot-nav-item:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.25);
}
.dot-nav-item.dot-active {
  background: #2b6cee;
  border-color: rgba(43, 108, 238, 0.5);
  transform: scale(1.4);
  box-shadow: 0 0 7px rgba(43, 108, 238, 0.55);
}

@media (max-width: 1023px) {
  #dot-nav { display: none !important; }
}

/* ─── Mobile card stagger reveal ─── */
[data-card-reveal] {
  opacity: 0;
  transform: translateY(28px) scale(0.96);
}
[data-card-reveal].card-visible {
  animation: card-tech-focus 0.62s cubic-bezier(0.34, 1.3, 0.64, 1) both;
}

@keyframes card-tech-focus {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
    filter: blur(4px);
  }
  60% {
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: none;
  }
}

/* ─── Section badge wipe-in ─── */
[data-reveal].is-visible .section-badge {
  animation: badge-reveal 0.55s cubic-bezier(0.77, 0, 0.175, 1) both;
  animation-delay: 0.08s;
}
@keyframes badge-reveal {
  0%   { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0% 0 0); }
}

/* ─── Section heading slide-in ─── */
[data-reveal].is-visible .section-title {
  animation: heading-reveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.15s;
}
@keyframes heading-reveal {
  0% {
    transform: translateY(12px);
    filter: blur(3px);
  }
  100% {
    transform: translateY(0);
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal],
  [data-card-reveal],
  .process-step {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .section-badge {
    clip-path: none !important;
  }

  .section-title {
    transform: none !important;
    filter: none !important;
  }

  .scroll-cue {
    animation: none !important;
  }
}
