/* ============================================
   NEMO HUB — Minimal · Pantone · Sans editorial
   ============================================ */

:root {
  /* White / cream + BURGUNDY palette */
  --bg: #f3eee3;           /* warm cream */
  --bg-2: #e9e2d3;
  --ink: #241015;          /* near-black with burgundy undertone */
  --ink-soft: #3a2026;
  --mute: #8a6d72;         /* muted mauve-grey */
  --rule: rgba(36, 16, 21, 0.12);
  --rule-strong: rgba(36, 16, 21, 0.28);
  --accent: #7a2335;       /* BURGUNDY */
  --accent-soft: #9c4254;
  --warm: #a83a4b;         /* lighter burgundy / wine */

  --sans: "Space Grotesk", "Helvetica Neue", sans-serif;
  --sans-alt: "Inter", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Cube backdrop — warm gradient behind cube, ALWAYS visible */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, #faf4e8, transparent 70%),
    radial-gradient(ellipse 100% 80% at 80% 80%, rgba(168,58,75,0.10), transparent 60%),
    radial-gradient(ellipse 100% 100% at 20% 70%, rgba(122,35,53,0.10), transparent 60%),
    linear-gradient(180deg, #f3ece0, #e6d8c4);
}

html, body {
  background: transparent;
  color: var(--ink);
  font-family: var(--sans-alt);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font: inherit; color: inherit; background: none; border: none; }

/* ============================================
   TOP BAR — sticky navigation
   ============================================ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(236, 229, 213, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 32px;
  height: 64px;
  gap: 40px;
}
.topbar-brand {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.topbar-brand span { color: var(--mute); font-weight: 400; }
.topbar-nav {
  display: flex;
  gap: 2px;
  justify-content: center;
}
.topbar-nav a {
  font-family: var(--sans-alt);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.3s, color 0.3s;
  position: relative;
}
.topbar-nav a:hover,
.topbar-nav a.active {
  background: var(--ink);
  color: var(--bg);
}
.topbar-cta {
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 9px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background 0.3s, color 0.3s;
}
.topbar-cta:hover { background: var(--ink); color: var(--bg); }

/* ============================================
   LOGO 3D CUBE — persistent rotating background
   ============================================ */
.cube-stage {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  opacity: 1;
  transition: opacity 0.2s linear;
  filter: drop-shadow(0 40px 60px rgba(26,26,26,0.28));
}
.cube-stage canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
/* Soft halo behind cube */
.cube-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(193,135,107,0.18), transparent 55%);
  pointer-events: none;
}

/* Sections need to sit ABOVE the cube but allow it to peek through edges */
section { z-index: 3; }

/* Hero specifically lets cube be center stage */
.hero { z-index: 3; }
.hero-logo-placeholder { display: none; }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  padding: 140px 40px 60px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}
.hero-meta {
  position: absolute;
  top: 100px;
  left: 40px;
  right: 40px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--mute);
  text-transform: uppercase;
  font-family: var(--sans-alt);
}

.hero-logo-placeholder {
  flex: 1;
  min-height: 58vh;
  position: relative;
}

.hero-title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(40px, 6.8vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 1400px;
  margin-top: 40px;
}
.hero-title .thin {
  font-weight: 300;
  color: var(--accent);
}
.hero-sub {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 40px;
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.hero-sub .k {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--mute);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hero-sub .v {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  max-width: 280px;
}
.hero-sub-cta {
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.05em;
  transition: transform 0.3s;
}
.hero-sub-cta:hover { transform: translateX(4px); }

.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mute);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-hint::after {
  content: "";
  width: 1px;
  height: 32px;
  background: var(--mute);
  animation: pulse 2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes pulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ============================================
   SECTION HEADS
   ============================================ */
section {
  position: relative;
  z-index: 3;
}
.sec {
  padding: 160px 40px;
  position: relative;
}
.sec.alt {
  background: var(--bg-2);
}

/* ============================================
   SECTION THEMES — color rhythm
   ============================================ */
/* CRITICAL: the tinted panel + blur + edge-fade live on a ::before layer
   BEHIND the content, so the section TEXT stays 100% crisp/legible while
   only the colored panel feathers to transparent at top/bottom, letting
   the cube show through the joins. */
.sec, .contact-wrap {
  margin-top: 22vh;
  position: relative;
  isolation: isolate;
}
.sec::before, .contact-wrap.theme-ink::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--panel, rgba(243,238,227,0.58));
  -webkit-mask-image: linear-gradient(180deg,
    rgba(0,0,0,0) 0,
    rgba(0,0,0,1) 130px,
    rgba(0,0,0,1) calc(100% - 130px),
    rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(180deg,
    rgba(0,0,0,0) 0,
    rgba(0,0,0,1) 130px,
    rgba(0,0,0,1) calc(100% - 130px),
    rgba(0,0,0,0) 100%);
}
.hero { margin-top: 0; }

.sec.theme-warm {
  --panel: rgba(233,219,200,0.62);
  color: var(--ink);
}
.sec.theme-warm .svc-row:hover { background: linear-gradient(90deg, rgba(255,255,255,0.5) 0%, transparent 80%); }
.sec.theme-warm .svc-row:hover .svc-title { color: var(--accent); }

.sec.theme-cream {
  --panel: rgba(243,238,227,0.56);
  color: var(--ink);
}
.sec.theme-cream-deep {
  --panel: rgba(237,229,214,0.6);
}

/* 'accent' sections are NOT dark blocks anymore — light scrim + dark text,
   burgundy headings for color rhythm. Keeps cube visible + text legible. */
.sec.theme-accent {
  --panel: rgba(243,238,227,0.56);
  color: var(--ink);
}
.sec.theme-accent .sec-head h2 { color: var(--ink); }
.sec.theme-accent .sec-head h2 .thin { color: var(--accent); }
.sec.theme-accent .sec-label { color: var(--mute); }
.sec.theme-accent .sec-label::before { background: var(--accent); }
.sec.theme-accent .sec-head-meta p { color: var(--ink-soft); }
.sec.theme-accent .about-body p, .sec.theme-accent .about-body .lead { color: var(--ink-soft); }
.sec.theme-accent .about-body .lead { color: var(--ink); }
.sec.theme-accent .about-stats { border-top-color: var(--rule); }
.sec.theme-accent .about-stats .cell { border-right-color: var(--rule); }
.sec.theme-accent .about-stats .num { color: var(--ink); }
.sec.theme-accent .about-stats .lbl { color: var(--mute); }
.sec.theme-accent .clients-grid { border-color: var(--rule); }
.sec.theme-accent .client-cell { border-color: var(--rule); }
.sec.theme-accent .client-cell:hover { background: rgba(122,35,53,0.05); }

.contact-wrap.theme-ink {
  --panel: rgba(243,238,227,0.85);
  color: var(--ink);
  max-width: none;
  padding: 140px 40px 60px;
}
.contact-wrap.theme-ink > * { max-width: 1600px; margin-left: auto; margin-right: auto; }
.contact-wrap.theme-ink .sec-label { color: var(--mute); }
.contact-wrap.theme-ink .sec-label::before { background: var(--accent); }
.contact-wrap.theme-ink .contact-big { color: var(--ink); }
.contact-wrap.theme-ink .contact-big .thin { color: var(--accent); }
.contact-wrap.theme-ink .contact-big a { border-bottom-color: var(--accent); color: var(--accent); }
.contact-wrap.theme-ink .contact-grid { border-top-color: var(--rule); }
.contact-wrap.theme-ink .contact-grid .k { color: var(--mute); }
.contact-wrap.theme-ink .contact-grid .v { color: var(--ink); }
.contact-wrap.theme-ink .footer-bottom { border-top-color: var(--rule); color: var(--mute); }

/* ============================================
   ITALY MAP — image-slot regions
   ============================================ */
.italy-map {
  position: relative;
  aspect-ratio: 3839/4813;
  width: 78%;
  max-width: 560px;
  margin: 0 auto;
}
.map-wrap { grid-template-columns: 0.9fr 1.1fr !important; }

/* Solid single-tint burgundy Italy at 70% opacity */
.italy-solid {
  position: absolute;
  inset: 0;
  background-color: var(--accent);
  opacity: 0.7;
  -webkit-mask-image: url("assets/italy-pin.png");
          mask-image: url("assets/italy-pin.png");
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
}
.italy-base { fill: rgba(26,26,26,0.06); stroke: rgba(26,26,26,0.4); stroke-width: 2.4; }
.italy-base-nord   { fill: #d4cdbf; }
.italy-base-centro { fill: #a83a4b; opacity: 0.55; }
.italy-base-sud    { fill: #7a2335; opacity: 0.65; }
.italy-outline {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3.2;
  pointer-events: none;
  filter: drop-shadow(0 6px 14px rgba(26,26,26,0.22));
}
.italy-slot-wrap { width: 100%; height: 100%; }
.italy-slot-wrap image-slot {
  width: 100%; height: 100%; display: block;
  background: transparent;
  border: none;
  border-radius: 0;
}
.italy-label-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 44px;
  fill: var(--ink);
  letter-spacing: 0.22em;
  text-anchor: middle;
  paint-order: stroke;
  stroke: var(--bg);
  stroke-width: 12;
  stroke-linejoin: round;
  pointer-events: none;
}

.map-howto {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px dashed var(--rule-strong);
}
.map-howto .k {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.map-howto p { font-size: 13px; line-height: 1.55; color: var(--ink-soft); }

.sec-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  margin-bottom: 100px;
  align-items: start;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}
.sec-head-meta {
  padding-top: 16px;
}
.sec-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mute);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.sec-label::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.sec-head-meta p {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 200px;
}
.sec-head h2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(44px, 6vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 1000px;
}
.sec-head h2 .thin {
  font-weight: 300;
  color: var(--accent);
}

/* ============================================
   ABOUT
   ============================================ */
.about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1600px;
  margin: 0 auto;
}
.about-body p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.about-body .lead {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.about-body p + p { margin-top: 20px; }
.about-stats {
  margin-top: 100px;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.about-stats .cell {
  padding: 28px 24px 28px 0;
  border-right: 1px solid var(--rule);
}
.about-stats .cell:last-child { border-right: none; padding-right: 0; }
.about-stats .num {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 56px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.about-stats .lbl {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--mute);
  text-transform: uppercase;
  margin-top: 10px;
}

/* ============================================
   SERVICES
   ============================================ */
.svc-list {
  max-width: 1600px;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}
.svc-row {
  display: grid;
  grid-template-columns: 80px 1.4fr 2fr 100px;
  gap: 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
  transition: padding 0.4s, background 0.4s;
  cursor: pointer;
}
.svc-row:hover {
  padding-left: 20px;
  background: linear-gradient(90deg, var(--bg-2) 0%, transparent 80%);
}
.svc-row:hover .svc-title { color: var(--accent); }
.svc-row:hover .svc-arrow { transform: translateX(6px) rotate(-45deg); }
.svc-num {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--mute);
  padding-top: 6px;
}
.svc-title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.3s;
}
.svc-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 520px;
}
.svc-arrow {
  justify-self: end;
  padding-top: 8px;
  font-size: 22px;
  color: var(--ink);
  transition: transform 0.4s;
  display: inline-block;
}

.svc-secondary {
  margin-top: 80px;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.svc-sec-item {
  padding: 32px 24px 32px 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.svc-sec-item:nth-child(3n) { border-right: none; }
.svc-sec-item .k {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--mute);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.svc-sec-item h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 10px;
}
.svc-sec-item p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ============================================
   CASE STUDIES
   ============================================ */
.cases {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 120px;
}
.case {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.case.flip { grid-template-columns: 1.2fr 1fr; }
.case.flip .case-visual { order: 2; }
.case-visual {
  aspect-ratio: 4/5;
  background: var(--ink);
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.case-visual.v-warm { background: var(--warm); }
.case-visual.v-accent { background: var(--accent); }
.case-visual.v-light { background: var(--bg-2); }
.case-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.15), transparent 60%);
  pointer-events: none;
}
/* Real case photo — covers the panel, no overlay scrim/text */
.case-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.case-visual:has(.case-photo)::after { display: none; }
.case-visual-meta {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}
.case-visual.v-light .case-visual-meta { color: var(--mute); }
.case-visual-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
}
.case-visual-center .label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 18px;
}
.case-visual.v-light .case-visual-center .label { color: var(--mute); }
.case-visual-center h5 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(38px, 4.6vw, 72px);
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: #fff;
}
.case-visual.v-light .case-visual-center h5 { color: var(--ink); }
.case-visual-footer {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.case-visual.v-light .case-visual-footer { color: var(--mute); }

.case-info .tags {
  display: flex;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 24px;
}
.case-info .tags span.primary { color: var(--accent); font-weight: 500; }
.case-info h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(36px, 4.8vw, 64px);
  letter-spacing: -0.03em;
  line-height: 0.98;
  color: var(--ink);
  margin-bottom: 24px;
}
.case-info h3 .thin { font-weight: 300; color: var(--mute); }
.case-info p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 16px;
  max-width: 540px;
}
.case-meta {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 540px;
}
.case-meta .k {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--mute);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.case-meta .v {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
}

/* ============================================
   TEAM
   ============================================ */
.team-grid {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.team-card {
  padding: 36px 28px 36px 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.3s;
}
.team-card:nth-child(3n) { border-right: none; }
.team-card:hover { background: var(--bg-2); }
.team-card .role {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 20px;
}
.team-card h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.team-card .id {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--mute);
  margin-top: 20px;
}

.team-tech {
  max-width: 1600px;
  margin: 60px auto 0;
}
.team-tech-lbl {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.team-tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-tech-grid .row .r {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--mute);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.team-tech-grid .row .n {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
}

/* ============================================
   MAP
   ============================================ */
.map-wrap {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.map-copy .lead {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 20px;
}
.map-copy p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.regions-chips {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.regions-chips span {
  font-size: 10px;
  letter-spacing: 0.15em;
  padding: 8px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  color: var(--ink);
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.3s;
}
.regions-chips span.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.map-svg-wrap {
  aspect-ratio: 3/4;
  position: relative;
}
.map-svg-wrap svg { width: 100%; height: 100%; overflow: visible; }
.map-region {
  fill: rgba(26, 26, 26, 0.06);
  stroke: rgba(26, 26, 26, 0.3);
  stroke-width: 0.6;
  transition: fill 0.3s, stroke 0.3s;
  transform-origin: center;
  transform-box: fill-box;
}
.map-region.op {
  fill: rgba(26, 26, 26, 0.12);
  stroke: rgba(26, 26, 26, 0.6);
}
.map-region.active,
.map-region:hover {
  fill: var(--accent) !important;
  stroke: var(--accent);
}
.map-city circle { fill: var(--warm); }
.map-city text {
  font-family: var(--sans-alt);
  font-size: 10px;
  fill: var(--ink-soft);
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ============================================
   CLIENTS
   ============================================ */
.clients-grid {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.client-cell {
  aspect-ratio: 16/9;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 28px 34px;
  cursor: pointer;
  transition: background 0.35s;
}
.client-cell:hover { background: rgba(122,35,53,0.05); }

/* Logos: greyscale-desaturated by default (keeps internal shapes),
   return to natural color + scale up on hover. */
.logo-color {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.35s, transform 0.4s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}
.client-cell:hover .logo-color {
  filter: grayscale(0) opacity(1);
  transform: scale(1.12);
}

/* ============================================
   CONTACT / FOOTER
   ============================================ */
.contact-wrap {
  min-height: 80vh;
  padding: 160px 40px 40px;
  max-width: 1600px;
  margin: 0 auto;
}
.contact-big {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 1100px;
}
.contact-big .thin { font-weight: 300; color: var(--accent); }
.contact-big a {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 2px;
  transition: letter-spacing 0.3s;
}
.contact-big a:hover { letter-spacing: 0.005em; }
.contact-grid {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.contact-grid .k {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--mute);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.contact-grid .v {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.4;
}
.footer-bottom {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--mute);
  text-transform: uppercase;
}

/* ============================================
   TWEAKS
   ============================================ */
.tweaks {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 500;
  background: #fff;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  padding: 16px;
  min-width: 260px;
  font-family: var(--sans-alt);
  font-size: 11px;
  display: none;
  box-shadow: 0 20px 40px rgba(26,26,26,0.12);
}
.tweaks.show { display: block; }
.tweaks h5 {
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  margin-bottom: 14px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.tweaks label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  gap: 10px;
}
.tweaks label:last-child { border-bottom: none; }
.tweaks input[type="range"] { width: 100px; accent-color: var(--accent); }
.tweaks input[type="color"] { border: none; width: 36px; height: 22px; padding: 0; background: none; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .topbar { grid-template-columns: auto auto; }
  .topbar-nav { display: none; }
  .hero-sub { grid-template-columns: 1fr; }
  .sec-head { grid-template-columns: 1fr; margin-bottom: 48px; }
  .about-body { grid-template-columns: 1fr; gap: 32px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .about-stats .cell { border-right: none; border-bottom: 1px solid var(--rule); }
  .svc-row { grid-template-columns: 1fr; gap: 8px; }
  .svc-arrow { display: none; }
  .svc-secondary { grid-template-columns: 1fr; }
  .svc-sec-item { border-right: none; padding-right: 0; }
  .case, .case.flip { grid-template-columns: 1fr; gap: 32px; }
  .case.flip .case-visual { order: 0; }
  .team-grid { grid-template-columns: 1fr; }
  .team-card { border-right: none; padding-right: 0; }
  .team-tech-grid { grid-template-columns: 1fr 1fr; }
  .map-wrap { grid-template-columns: 1fr; gap: 40px; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
