/* ===================================
   ALTALOGIK — Global Stylesheet
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;1,9..40,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- CSS Variables --- */
:root {
  --color-bg: #0A1628;
  --color-bg-card: #0D1F3C;
  --color-text: #E8F4FF;
  --color-text-muted: #7A9CC0;
  --color-accent: #00AADD;
  --color-teal: #00E5A0;
  --color-blue: #0055CC;
  --gradient-brand: linear-gradient(135deg, #00E5A0 0%, #00AADD 50%, #0055CC 100%);
  --nav-height: 72px;
  --section-pad: 96px;
  --container-max: 1280px;
  --radius: 8px;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

::selection {
  background: var(--color-accent);
  color: var(--color-bg);
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-accent); border-radius: 2px; }

/* --- Typography --- */
h1 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; line-height: 1.1; }
h2 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; line-height: 1.2; }
h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 500; line-height: 1.3; }
p  { line-height: 1.7; }
a  { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

.mono { font-family: 'JetBrains Mono', monospace; }

/* --- Gradient text --- */
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

/* --- Reveal on scroll --- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   NAVBAR
   =================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, backdrop-filter 0.4s ease,
              border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(232, 244, 255, 0.06);
}

.navbar .container {
  display: flex;
  align-items: center;
}

/* --- Navbar 3-column inner grid --- */
.navbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  flex: 1;
}

.navbar-col--left {
  justify-self: start;
  display: flex;
  align-items: center;
  margin-left: 180px;
}

.navbar-col--center {
  justify-self: center;
}

.navbar-col--right {
  justify-self: end;
  display: flex;
  align-items: center;
}

/* --- Logo --- */
.logo-img {
  height: 32px;
  width: auto;
  display: block;
  mix-blend-mode: screen;
}

.navbar-col--left .logo-img { height: 80px; }
footer .logo-img             { height: 80px; }

/* --- Nav links --- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

/* --- Nav social icons (desktop, in .navbar-col--right) --- */
.navbar-socials-desktop {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: 16px;
}

.nav-social-link {
  display: flex;
  align-items: center;
  color: var(--color-text-muted);
  transition: color 0.2s;
}
.nav-social-link:hover { color: var(--color-accent); }

.nav-link {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  overflow: hidden;
  display: block;
  line-height: 1.5;
  padding: 2px 0;
}

/* Text-split hover: two identical layers, top slides up on hover */
.nav-link-inner {
  display: block;
  position: relative;
}

.nav-link-inner::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-text);
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.nav-link:hover .nav-link-inner::after {
  clip-path: inset(0 0 0 0);
}

.nav-link--active {
  color: var(--color-text);
}

.nav-link--active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 1px;
}

/* --- Hamburger --- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1010;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Mobile overlay nav --- */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.nav-overlay-links {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.nav-overlay-links a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--color-text);
  transition: color 0.2s;
  display: block;
}
.nav-overlay-links a:hover { color: var(--color-accent); }

.nav-overlay-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  list-style: none;
  margin-top: 8px;
}

/* ===================================
   HERO
   =================================== */

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
  text-align: center;
}

#tubes-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--color-accent);
  letter-spacing: 0.12em;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 0.2s forwards;
}

.hero-title {
  font-size: clamp(48px, 6.5vw, 84px);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 0.4s forwards;
}

.hero-title .line-break {
  display: block;
}

.hero-sub {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 44px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 0.6s forwards;
}

.btn-primary {
  display: inline-block;
  background: var(--gradient-brand);
  color: var(--color-bg);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 4px;
  border: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.2s ease;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 0.8s forwards;
}

/* Shimmer sweep */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 80%
  );
  transform: translateX(-150%);
  animation: shimmer 2.5s infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0%   { transform: translateX(-150%); }
  60%  { transform: translateX(250%); }
  100% { transform: translateX(250%); }
}

.btn-primary:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 32px rgba(0, 229, 160, 0.3), 0 0 20px rgba(0, 229, 160, 0.25), 0 0 40px rgba(0, 170, 221, 0.1);
  opacity: 1;
}

/* Hero orb — parallax */
.hero-orb {
  position: absolute;
  top: 12%;
  right: 8%;
  width: 420px;
  height: 420px;
  background: var(--gradient-brand);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
  pointer-events: none;
  will-change: transform;
  z-index: 1;
}

.hero-orb-2 {
  position: absolute;
  bottom: 8%;
  left: 0%;
  width: 280px;
  height: 280px;
  background: linear-gradient(135deg, #0055CC 0%, #00AADD 100%);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 1;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===================================
   STATS SHOWCASE
   =================================== */

#stats-showcase {
  padding: var(--section-pad) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  padding: 36px 28px 28px;
  border-left: 3px solid transparent;
  border-image: var(--gradient-brand) 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  overflow: hidden;
}

.stat-card-number {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.stat-card-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(11px, 0.9vw, 13px);
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
  line-height: 1.4;
}

.stat-bar {
  height: 3px;
  background: rgba(232, 244, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: auto;
}

.stat-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-brand);
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-card {
    padding: 28px 24px 22px;
  }
}

/* ===================================
   ETHOS SECTION
   =================================== */

#ethos {
  padding: var(--section-pad) 0;
}

.ethos-blocks {
  display: flex;
  flex-direction: column;
  gap: 60px;
  max-width: 960px;
}

.ethos-block {
  position: relative;
  padding-left: 24px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.ethos-block:hover {
  transform: scale(1.02);
  box-shadow: 0 0 24px rgba(0, 229, 160, 0.15), 0 0 48px rgba(0, 170, 221, 0.08);
}

.ethos-block:nth-child(even) {
  margin-left: auto;
  padding-left: 24px;
}

.ethos-number {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 96px;
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.12;
  position: absolute;
  top: -20px;
  left: -16px;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.ethos-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 32px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.ethos-text {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 560px;
  position: relative;
  z-index: 1;
  line-height: 1.8;
}

/* ===================================
   SERVICES SECTION — HOME
   =================================== */

#servizi-home {
  padding: var(--section-pad) 0 40px;
}

.section-header {
  margin-bottom: 48px;
}

.section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--color-accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 3.5vw, 48px);
}

.accordion { border-top: 1px solid rgba(232,244,255,0.08); }

.accordion-item { border-bottom: 1px solid rgba(232,244,255,0.08); }

.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}

.accordion-trigger:hover { background: rgba(232,244,255,0.02); }

.accordion-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--color-accent);
}

.accordion-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  color: var(--color-text);
}

.accordion-claim {
  font-style: italic;
  font-size: 13px;
  color: var(--color-text-muted);
}

.accordion-icon {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(232,244,255,0.2);
  border-radius: 50%;
  position: relative;
  transition: transform 0.3s ease, border-color 0.2s;
  flex-shrink: 0;
}

.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background: var(--color-text);
  border-radius: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.accordion-icon::before { width: 10px; height: 1.5px; }

.accordion-icon::after {
  width: 1.5px;
  height: 10px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
  border-color: var(--color-accent);
  transform: rotate(45deg);
}

.accordion-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-body:not([hidden]) { max-height: 200px; }

.accordion-desc {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.75;
  padding-bottom: 12px;
  max-width: 680px;
}

.accordion-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-accent);
  padding-bottom: 28px;
  transition: opacity 0.2s;
}

.accordion-link:hover { opacity: 0.7; }

/* ===================================
   CAROUSEL — CASE STUDY
   =================================== */

#case-study-home {
  padding: var(--section-pad) 0;
  /* overflow handled solely by .carousel-viewport */
}

.carousel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}

.carousel-counter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.carousel-counter .cc-current {
  color: var(--color-text);
  font-size: 20px;
}

.carousel-arrows {
  display: flex;
  gap: 12px;
}

.carousel-arrow {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(232, 244, 255, 0.15);
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, border-color 0.2s;
  color: var(--color-text);
}

.carousel-arrow:hover {
  opacity: 0.65;
  border-color: var(--color-accent);
}

.carousel-arrow svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-slide {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  max-height: 420px;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--color-bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  opacity: 0.35;
  transform: scale(0.97);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide-img {
  max-height: 420px;
  overflow: hidden;
  background: linear-gradient(135deg, #0D1F3C, #0F2540);
}

.slide-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.carousel-slide:hover .slide-img img { transform: scale(1.04); }
.carousel-slide.active:hover {
  transform: scale(1.02);
  box-shadow: 0 0 24px rgba(0, 229, 160, 0.15), 0 0 48px rgba(0, 170, 221, 0.08);
}

.slide-content {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0; /* prevent grid blowout */
}

.slide-industry {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--color-accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.slide-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 26px;
  margin-bottom: 32px;
  line-height: 1.3;
}

.slide-kpi {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 52px;
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.slide-kpi-label {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 36px;
}

.slide-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
  align-self: flex-start;
}
.slide-link:hover { color: var(--color-accent); }

/* ===================================
   STATS SECTION
   =================================== */

#stats {
  padding: var(--section-pad) 0;
  background: linear-gradient(180deg, var(--color-bg) 0%, #071020 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item {
  padding: 40px 20px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.stat-item:hover {
  transform: scale(1.02);
  box-shadow: 0 0 24px rgba(0, 229, 160, 0.15), 0 0 48px rgba(0, 170, 221, 0.08);
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 72px;
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  display: block;
  min-height: 80px;
}

.stat-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-muted);
}

/* ===================================
   CTA SECTION
   =================================== */

#cta-banner {
  padding: 80px 0;
  background: var(--gradient-brand);
  text-align: center;
}

.cta-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}

.cta-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  color: var(--color-bg);
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 18px;
  color: rgba(10, 22, 40, 0.7);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.btn-dark {
  display: inline-block;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 16px 40px;
  border-radius: 4px;
  border: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-dark:hover {
  background: #071020;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 229, 160, 0.25), 0 0 40px rgba(0, 170, 221, 0.1);
}

/* ===================================
   FOOTER
   =================================== */

footer {
  background: #071020;
  padding: 64px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand a { display: block; margin-bottom: 16px; }

.footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 240px;
}

.footer-col-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-list a {
  font-size: 14px;
  color: rgba(122, 156, 192, 0.8);
  transition: color 0.2s;
}
.footer-nav-list a:hover { color: var(--color-text); }

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-contact-row span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--color-accent);
  width: 20px;
}

.footer-contact-row a,
.footer-contact-row p {
  font-size: 14px;
  color: rgba(122, 156, 192, 0.8);
  transition: color 0.2s;
}
.footer-contact-row a:hover { color: var(--color-text); }

.footer-bottom {
  border-top: 1px solid rgba(232, 244, 255, 0.07);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(122, 156, 192, 0.5);
}

/* ===================================
   INNER PAGE HERO
   =================================== */

.page-hero {
  padding: 120px 0 64px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(0, 85, 204, 0.14) 0%, transparent 60%);
  pointer-events: none;
}

.page-breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.page-title {
  font-size: clamp(40px, 5vw, 64px);
  max-width: 760px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.page-subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 560px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ===================================
   CHI SIAMO PAGE
   =================================== */

.about-intro {
  padding: var(--section-pad) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-visual {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-visual-pattern {
  display: none;
}

.about-text h2 {
  font-size: 36px;
  margin-bottom: 24px;
}

.about-text p {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  line-height: 1.8;
}

.values-section {
  padding: 0 0 calc(var(--section-pad) + 120px); /* extra buffer so last card has time to appear */
}

/* Journey layout — alternating left/right cards with central SVG line */
.values-journey {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 32px;
}

.value-card {
  width: 42%;
  background: var(--color-bg-card);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  /* JS-driven reveal transition */
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.value-card--left  { align-self: flex-start; }
.value-card--right { align-self: flex-end;   }

/* Gradient border — left edge for left cards, right edge for right cards */
.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-brand);
}

.value-card--left::before  { left: 0;  right: auto; }
.value-card--right::before { right: 0; left: auto;  }

/* Partner page: cards without a positional modifier — line centred in left padding */
.partner-cta-strip .value-card::before { left: 14px; right: auto; }

.value-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 10px;
}

.value-text {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ── Mobile: single column, no SVG line ── */
@media (max-width: 768px) {
  #values-journey-svg { display: none; }

  .values-journey { gap: 24px; }

  .value-card {
    width: 100%;
    align-self: auto;
    /* Override any JS-set inline styles */
    opacity: 1 !important;
    transform: none !important;
  }
}

.team-section {
  padding: 0 0 var(--section-pad);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
}

.team-card {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease;
}
.team-card:hover { transform: translateY(-4px); }

.team-photo {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #0D1F3C 0%, #122845 100%);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0D1F3C 0%, #0F2540 100%);
}

.team-photo-placeholder svg {
  opacity: 0.2;
}

.team-info { padding: 24px; }

.team-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 6px;
}

.team-role {
  font-size: 13px;
  color: var(--color-accent);
  font-family: 'JetBrains Mono', monospace;
}

/* ===================================
   SERVICES PAGE
   =================================== */

.services-detail {
  padding: var(--section-pad) 0;
}

.service-detail-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
  padding: 40px 36px;
  background: var(--color-bg-card);
  margin-bottom: 2px;
  position: relative;
  transition: background 0.3s ease;
}

.service-detail-item:hover { background: #112847; }

.service-detail-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-brand);
}

.service-detail-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 80px;
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.18;
}

.service-detail-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 28px;
  margin-bottom: 8px;
}

.service-detail-claim {
  font-style: italic;
  color: var(--color-text-muted);
  font-size: 15px;
  margin-bottom: 20px;
}

.service-detail-desc {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 28px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 6px 14px;
  border: 1px solid rgba(0, 170, 221, 0.25);
  border-radius: 100px;
  color: var(--color-accent);
}

/* ===================================
   CASE STUDY — ANIMATED TITLE SCROLL
   =================================== */

#cs-title-scroll-container {
  height: 200vh;
  position: relative;
}

#cs-title-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#cs-title-sticky .page-hero {
  padding: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

#cs-title-sticky .page-hero .container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#cs-anim-title {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(232, 244, 255, 0.4);
  max-width: 900px;
  margin: 0 auto 24px;
  will-change: font-weight, letter-spacing, color;
}

@media (max-width: 768px) {
  #cs-title-scroll-container { height: 150vh; }
  #cs-anim-title { font-size: clamp(28px, 7vw, 48px); }
}

/* ===================================
   CASE STUDY INDEX PAGE
   =================================== */

.cs-index {
  padding: 60px 0;
}

.cs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cs-card {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cs-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 0 24px rgba(0, 229, 160, 0.15), 0 0 48px rgba(0, 170, 221, 0.08);
}

.cs-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, #0D1F3C, #0F2540);
  position: relative;
}

.cs-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.cs-card:hover .cs-card-img img { transform: scale(1.05); }

.cs-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: rgba(122, 156, 192, 0.3);
  letter-spacing: 0.1em;
}

.cs-card-body { padding: 32px 28px; }

.cs-industry {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--color-accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cs-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 20px;
  line-height: 1.35;
}

.cs-kpi {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 36px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.cs-kpi-label {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* ===================================
   CASE STUDY SINGLE PAGE
   =================================== */

.cs-detail {
  padding: var(--section-pad) 0;
}

.cs-hero-img {
  width: 100%;
  aspect-ratio: 21/9;
  background: linear-gradient(135deg, #0D1F3C, #0F2540, #071828);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
}

.cs-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-meta-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--color-bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 56px;
}

.cs-meta-cell {
  padding: 32px 28px;
  border-right: 1px solid rgba(232, 244, 255, 0.06);
}
.cs-meta-cell:last-child { border-right: none; }

.cs-meta-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  display: block;
}

.cs-meta-value {
  font-size: 15px;
  font-weight: 500;
}

.cs-body-section {
  margin-bottom: 48px;
}

.cs-body-section h2 {
  font-size: 28px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(232, 244, 255, 0.07);
}

.cs-body-section p {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.85;
  margin-bottom: 18px;
}

.cs-results-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.cs-result-tile {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cs-result-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand);
}

.cs-result-n {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 52px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 10px;
}

.cs-result-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.cs-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 48px;
  margin-top: 48px;
  border-top: 1px solid rgba(232, 244, 255, 0.07);
}

.cs-nav a {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.2s;
}
.cs-nav a:hover { color: var(--color-text); }

/* ===================================
   PARTNER PAGE
   =================================== */

.partner-intro-section {
  padding: 80px 0 40px;
}

.partner-intro-text {
  max-width: 640px;
  font-size: 18px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.partner-logos {
  padding: 0 0 var(--section-pad);
}

.partner-marquee-outer {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 56px;
}

/* fade edges */
.partner-marquee-outer::before,
.partner-marquee-outer::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 1;
  pointer-events: none;
}
.partner-marquee-outer::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg) 0%, transparent 100%);
}
.partner-marquee-outer::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg) 0%, transparent 100%);
}

.partner-marquee-track {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  width: max-content;
  will-change: transform;
  transform: translateZ(0);
}

.partner-card {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
}
.partner-card img {
  height: 80px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: brightness(1.2);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.partner-card:hover img {
  opacity: 1;
}

.partner-cta-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid rgba(232, 244, 255, 0.07);
}

.partner-cta-text h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.partner-cta-text p {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ===================================
   CONTATTI PAGE
   =================================== */

.contact-section {
  padding: var(--section-pad) 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-left h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.contact-left > p {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(232, 244, 255, 0.07);
}
.contact-detail-item:last-of-type { border-bottom: none; }

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--color-bg-card);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.contact-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  display: block;
}

.contact-value {
  font-size: 16px;
  font-weight: 500;
}

.contact-value a {
  color: var(--color-text);
  transition: color 0.2s;
}
.contact-value a:hover { color: var(--color-accent); }

.contact-cta-card {
  background: var(--color-bg-card);
  border-radius: 12px;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

.contact-cta-card::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: var(--gradient-brand);
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.13;
  pointer-events: none;
}

.contact-cta-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 30px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.contact-cta-card p {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* Single-cycle slide-in for the CTA card button.
   Starts at the left edge of the card content area (calc accounts for
   the card's 52px horizontal padding) and settles at the horizontal
   center of the card. Runs once — no infinite loop. */
@keyframes contactBtnEnter {
  from {
    transform: translateX(calc(-100% - 52px));
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.contact-cta-card .btn-primary {
  display: block;
  width: fit-content;
  margin: 0 auto;           /* centers the button inside the card */
  opacity: 0;
  animation: contactBtnEnter 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.4s 1 forwards;
  position: relative;
  z-index: 1;
  /* overflow: hidden inherited from global .btn-primary — confines ::after shimmer */
}

/* ===================================
   STAGGERED TEXT REVEAL
   =================================== */

.word-reveal {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom; /* prevents extra gap below clipped area */
  line-height: inherit;
}

.word-inner {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              opacity   0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.word-inner.revealed {
  transform: translateY(0);
  opacity: 1;
}

/* Gradient-text inner spans keep the gradient */
.word-inner.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===================================
   HORIZONTAL SCROLL — SERVIZI
   =================================== */

.h-scroll-outer {
  /* Height set dynamically in JS based on track overflow */
  position: relative;
  padding-bottom: var(--section-pad);
}

.h-scroll-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: var(--nav-height);
  padding-bottom: 56px;
}

.h-scroll-header {
  padding: 40px max(40px, calc((100vw - var(--container-max)) / 2 + 40px)) 32px;
  flex-shrink: 0;
}

.h-scroll-header .section-eyebrow { margin-bottom: 8px; }
.h-scroll-header .section-title   { font-size: clamp(28px, 3vw, 40px); }

.h-scroll-track {
  display: flex;
  align-items: stretch;
  gap: 24px;
  padding: 0 max(40px, calc((100vw - var(--container-max)) / 2 + 40px));
  flex: 1;
  will-change: transform;
}

.h-scroll-card {
  width: 380px;
  flex-shrink: 0;
  background: var(--color-bg-card);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.h-scroll-card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 24px rgba(0, 229, 160, 0.15), 0 0 48px rgba(0, 170, 221, 0.08);
}

.h-scroll-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gradient-brand);
}

.h-scroll-card-bg-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 96px;
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.08;
  position: absolute;
  top: -8px;
  right: 12px;
  pointer-events: none;
  user-select: none;
}

.h-scroll-card-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.h-scroll-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 6px;
  line-height: 1.3;
}

.h-scroll-card-claim {
  font-style: italic;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.h-scroll-card-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 20px;
}

.h-scroll-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.h-scroll-card-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid rgba(0, 170, 221, 0.2);
  border-radius: 100px;
  color: var(--color-accent);
}

.h-scroll-card-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  transition: opacity 0.2s;
}
.h-scroll-card-link:hover { opacity: 0.7; }

/* Progress bar */
.h-scroll-progress {
  flex-shrink: 0;
  margin: 0 max(40px, calc((100vw - var(--container-max)) / 2 + 40px));
  margin-top: 24px;
  height: 1px;
  background: rgba(232, 244, 255, 0.08);
  border-radius: 1px;
  overflow: hidden;
}

.h-scroll-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-brand);
  border-radius: 1px;
  /* No CSS transition — JS updates this in rAF for smoothness */
}

/* Mobile: flat stack, no sticky */
@media (max-width: 768px) {
  .h-scroll-outer  { height: auto !important; }
  .h-scroll-sticky {
    position: relative;
    height: auto;
    overflow: visible;
    padding-top: 0;
    padding-bottom: 0;
  }
  .h-scroll-header { padding: 0 20px 28px; }
  .h-scroll-track  {
    flex-direction: column;
    padding: 0 20px;
    gap: 16px;
  }
  .h-scroll-card { width: 100%; }
  .h-scroll-progress { display: none; }
}

/* ===================================
   RESPONSIVE — 768px
   =================================== */

@media (max-width: 768px) {
  :root {
    --section-pad: 80px;
  }

  .container { padding: 0 20px; }

  /* Navbar */
  .nav-links { display: none; }
  .navbar-socials-desktop { display: none; }
  .hamburger { display: flex; }
  .navbar-col--left { margin-left: 0; }

  /* Hero */
  #hero { padding-top: calc(var(--nav-height) + 16px); }
  .hero-content { margin-top: 0; }
  .hero-title { font-size: clamp(36px, 10vw, 52px); }
  .hero-orb { width: 240px; height: 240px; right: -5%; top: 8%; }
  .hero-orb-2 { display: none; }

  /* Ethos */
  .ethos-block:nth-child(even) { margin-left: 0; }
  .ethos-title { font-size: 26px; }

  /* Accordion */
  .accordion-trigger { grid-template-columns: 40px 1fr auto; padding: 20px 0; }
  .accordion-claim { display: none; }

  /* Carousel */
  .carousel-viewport { overflow: hidden; width: 100%; }
  .carousel-slide {
    width: 100%;
    min-width: 100%;
    grid-template-columns: 1fr;
  }
  .slide-img { display: none; }
  .slide-content { padding: 24px 20px 32px; }
  .slide-title { font-size: clamp(16px, 4.5vw, 22px); }
  .slide-kpi { font-size: clamp(28px, 8vw, 40px); }
  .slide-kpi-label { font-size: 13px; }
  .slide-industry { font-size: 12px; min-height: 24px; display: block; }

  /* Stats */
  .stats-grid { grid-template-columns: 1fr; gap: 16px; }
  .stat-number { font-size: 56px; }

  /* Pages — 2-col → 1-col */
  .about-grid,
  .contact-layout,
  .partner-cta-strip,
  .cs-meta-row { grid-template-columns: 1fr; }

  .cs-meta-row { display: flex; flex-direction: column; }
  .cs-meta-cell { border-right: none; border-bottom: 1px solid rgba(232,244,255,0.06); }
  .cs-meta-cell:last-child { border-bottom: none; }

  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }

  .service-detail-item {
    grid-template-columns: 1fr;
    padding: 36px 28px;
    gap: 12px;
  }
  .service-detail-num { font-size: 56px; }

  .cs-grid { grid-template-columns: 1fr; }
  .cs-results-strip { grid-template-columns: 1fr; }


  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10,22,40,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.open {
  opacity: 1; visibility: visible;
}
.modal-box {
  background: var(--color-bg-card);
  border: 1px solid rgba(232,244,255,0.08);
  border-radius: 12px;
  padding: 48px 40px;
  width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  position: relative;
  animation: modalIn 0.4s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal-close {
  position: absolute; top: 20px; right: 20px;
  background: none; border: none; cursor: pointer;
  color: var(--color-text-muted); padding: 4px;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--color-text); }
.modal-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--color-accent);
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 12px;
}
.modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px; font-weight: 700;
  margin-bottom: 8px;
}
.modal-sub {
  font-size: 15px; color: var(--color-text-muted);
  margin-bottom: 32px; line-height: 1.6;
}
.modal-form { display: flex; flex-direction: column; gap: 20px; }
.modal-field { display: flex; flex-direction: column; gap: 6px; }
.modal-field label {
  font-size: 13px; font-weight: 500; color: var(--color-text-muted);
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.04em;
}
.modal-field input,
.modal-field select,
.modal-field textarea {
  background: rgba(232,244,255,0.04);
  border: 1px solid rgba(232,244,255,0.1);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--color-text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}
.modal-field input:focus,
.modal-field select:focus,
.modal-field textarea:focus {
  border-color: var(--color-accent);
}
.modal-field select option { background: var(--color-bg-card); }
.modal-field textarea { resize: vertical; min-height: 100px; }
.modal-privacy {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px; background: rgba(232,244,255,0.03);
  border: 1px solid rgba(232,244,255,0.06);
  border-radius: var(--radius);
}
.modal-privacy input[type="checkbox"] {
  width: 18px; height: 18px; min-width: 18px;
  accent-color: var(--color-accent);
  margin-top: 2px; cursor: pointer;
}
.modal-privacy label {
  font-size: 13px; color: var(--color-text-muted); line-height: 1.5; cursor: pointer;
}
.modal-privacy label a { color: var(--color-accent); text-decoration: underline; }
.modal-submit {
  background: var(--gradient-brand);
  color: var(--color-bg);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700; font-size: 15px;
  padding: 14px 32px; border: none;
  border-radius: var(--radius); cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.modal-submit:hover { opacity: 0.9; transform: translateY(-1px); }
.modal-success {
  text-align: center; padding: 40px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.modal-success h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px; font-weight: 700;
}
.modal-success p { color: var(--color-text-muted); font-size: 15px; }

@media (max-width: 768px) {
  .modal-box { padding: 32px 24px; }
  .modal-title { font-size: 22px; }
}

/* ===================================
   RESPONSIVE — 1200px
   =================================== */

