/* ===== PROTOZI AGENCY - Global Styles ===== */

/* ===== Page Transition Curtain ===== */
#page-curtain {
  position: fixed;
  inset: 0;
  /* dark panel with thin gold leading edge */
  background: linear-gradient(to right, var(--bg-nav, #0d0d0d) 96%, var(--accent, #00AEEF) 96%);
  z-index: 10000;
  transform: scaleX(0);
  transform-origin: right;
  pointer-events: none;
  will-change: transform;
}
#page-curtain.pt-active { pointer-events: all; }

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== Custom Properties ===== */
:root {
  --bg: #111111;
  --bg-card: #1a1a1a;
  --bg-nav: #0d0d0d;
  --accent: #00AEEF;
  --accent-hover: #33BEFF;
  --text: #ffffff;
  --text-muted: #999999;
  --border: rgba(255, 255, 255, 0.08);
  --font-heading: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --transition: 0.3s ease;
  --max-width: 1280px;
  --logo-pink:   #E91E8C;
  --logo-green:  #2DB34A;
  --logo-blue:   #00AEEF;
  --logo-yellow: #F7D000;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== Grain Texture ===== */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  opacity: 0.035;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
  animation: grain-shift 8s steps(10) infinite;
  will-change: transform;
}

@keyframes grain-shift {
  0%  { transform: translate(0, 0); }
  10% { transform: translate(-2%, -3%); }
  20% { transform: translate(3%, 1%); }
  30% { transform: translate(-1%, 4%); }
  40% { transform: translate(4%, -2%); }
  50% { transform: translate(-3%, 2%); }
  60% { transform: translate(2%, -4%); }
  70% { transform: translate(-4%, 1%); }
  80% { transform: translate(1%, 3%); }
  90% { transform: translate(3%, -1%); }
  100%{ transform: translate(0, 0); }
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}
h1 { font-size: clamp(3rem, 8vw, 7rem); }
h2 { font-size: clamp(2rem, 5vw, 4rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.8rem); }
p { font-size: 1rem; color: var(--text-muted); line-height: 1.75; }

/* ===== Layout Utilities ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }

/* ===== Tag / Badge ===== */
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition);
}
.btn img { width: 12px; height: 12px; }
.btn-primary {
  background: var(--accent);
  color: #111;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-dark {
  background: #222;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-dark:hover { background: #333; }
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  transition: var(--transition);
}
.btn-arrow:hover { color: var(--accent); gap: 0.75rem; }
.btn-arrow img { width: 12px; }

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 44px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { margin-left: 1rem; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Mobile Menu ===== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-nav);
  z-index: 999;
  padding: 2rem;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  color: var(--text-muted);
  transition: var(--transition);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:hover { color: var(--accent); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: calc(72px + env(safe-area-inset-top, 0px));
}
.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #0d1117;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.80);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  padding: 0 2rem;
}
.hs-line {
  display: block;
}
.hs-line--title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 8vw, 9rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
  overflow: visible;
}
.hs-sub-wrap {
  height: 0;
  overflow: hidden;
}
.hs-line--sub {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 4.5vw, 5rem);
  line-height: 0.92;
  overflow: hidden;
  padding-bottom: 0.05em;
  margin-bottom: -0.05em;
}
.hs-line--title + .hs-line--title { margin-top: 0.4rem; }
.hs-sub-wrap + .hs-line--title { margin-top: 0.4rem; }
.hs-inner {
  display: block;
}
.hs-line--title .hs-inner {
  color: var(--text);
}
.hero-label {
  position: absolute;
  z-index: 3;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  top: 50%;
  transform: translateY(-50%);
  text-decoration: none;
  transition: opacity 0.3s;
}
.hero-label--left { left: 5rem; }
.hero-label--right { right: 5rem; }
.hero-label--right:hover { opacity: 0.7; }
.hero-socials {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 3;
}
.hero-social {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.65);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  transition: color 0.45s ease, border-color 0.45s ease;
}
.hero-social::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -10%;
  width: 120%;
  height: 110%;
  background: #fff;
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  transform: translateY(105%);
  transition: transform 0.55s cubic-bezier(0.33, 1, 0.68, 1);
  z-index: 0;
}
.hero-social:hover::before { transform: translateY(0); }
.hero-social:hover { color: #000; border-color: #fff; }
.hero-social svg { position: relative; z-index: 1; }
.hero-scroll-cli {
  display: none;
  position: absolute;
  bottom: calc(2.5rem + 46px + 0.9rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  white-space: nowrap;
  user-select: none;
  align-items: center;
}
.hero-scroll-text {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  width: 0;
  animation: typewrite 4s infinite;
}
@keyframes typewrite {
  0%  { width: 0ch;                  animation-timing-function: steps(11, end); }
  30% { width: calc(11ch + 1.6em);  animation-timing-function: steps(1, end); }
  80% { width: calc(11ch + 1.6em);  animation-timing-function: steps(1, end); }
  81% { width: 0ch; }
  100%{ width: 0ch; }
}
.hero-scroll-cursor {
  display: inline-block;
  width: 0.45em;
  height: 0.85em;
  background: #fff;
  vertical-align: text-bottom;
  margin-left: 0.4em;
  animation: cliCursor 1s step-end infinite;
}
@keyframes cliCursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.hero-tag {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: block;
  opacity: 0;
}
.hero h1 {
  font-size: clamp(5rem, 14vw, 12rem);
  line-height: 0.9;
  color: var(--text);
  margin-bottom: 0;
}
.hero h1 span { display: block; opacity: 0; }
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-top: 2rem;
}
.scroll-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 3rem;
  transition: var(--transition);
  opacity: 0;
}
.scroll-indicator:hover { color: var(--accent); }
.scroll-indicator::before {
  content: '';
  width: 1px;
  height: 40px;
  background: var(--text-muted);
  display: block;
}

/* ===== Page Hero ===== */
.page-hero {
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: calc(72px + env(safe-area-inset-top, 0px));
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.3;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}
.page-hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--text);
}

/* ===== Client Logos ===== */
.logos-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.logos-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  animation: scroll-logos 20s linear infinite;
  width: max-content;
}
.logos-track img {
  height: 28px;
  width: auto;
  opacity: 0.5;
  filter: brightness(0) invert(1);
  transition: var(--transition);
}
.logos-track img:hover { opacity: 1; }
@keyframes scroll-logos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== About Section ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/5;
  position: relative;
}
.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Case Study Cards ===== */
.cs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.cs-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16/9;
  display: block;
}
.cs-card:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 21/9;
}
.cs-card img.cs-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.cs-card:hover img.cs-img { transform: scale(1.05); }
.cs-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 60%);
}
.cs-info {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
}
.cs-logo { height: 28px; margin-bottom: 0.75rem; }
.cs-title { font-family: var(--font-heading); font-size: 1.8rem; color: var(--text); }
.cs-year { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ===== Services ===== */
.services-list { display: flex; flex-direction: column; }
.service-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.4s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
/* white bg fill from left — the Awwwards signature move */
.service-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.65s cubic-bezier(0.76, 0, 0.24, 1);
  z-index: 0;
  pointer-events: none;
}
.service-item:hover::before { transform: scaleX(1); }
.service-item:hover { border-color: transparent; padding-left: 0; }
.service-num {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-muted);
  min-width: 3rem;
  padding-top: 0.25rem;
  position: relative;
  z-index: 1;
  transition: color 0.4s ease;
}
.service-item:hover .service-num { color: var(--accent); }
.service-content { flex: 1; position: relative; z-index: 1; }
.service-name {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text);
  transition: color 0.35s ease;
}
.service-item:hover .service-name { color: #111111; }
.service-desc { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.5rem; transition: color 0.35s ease; }
.service-item:hover .service-desc { color: rgba(17,17,17,0.6); }
.service-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.service-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  transition: color 0.35s ease, border-color 0.35s ease;
}
.service-item:hover .service-tag { border-color: rgba(17,17,17,0.2); color: rgba(17,17,17,0.55); }
.service-arrow {
  color: var(--text-muted);
  font-size: 1.5rem;
  align-self: center;
  position: relative;
  z-index: 1;
  transition: color 0.35s ease, transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  will-change: transform;
}
.service-item:hover .service-arrow { color: #111111; transform: translateX(10px) scale(1.15); }
/* Entrance override — skew adds kinetic feel */
.service-item.reveal {
  transform: translateY(50px) skewY(2deg);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.85s cubic-bezier(0.16,1,0.3,1);
}
.service-item.reveal.visible { transform: none; }

/* ===== Testimonials v2 ===== */
.testimonial-list {
  display: block;
}
.tcard {
  display: grid;
  grid-template-columns: 1fr 240px 170px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  min-height: 260px;
  position: sticky;
  top: 88px;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
  will-change: transform;
  transform-origin: top center;
}
.tcard:last-child { margin-bottom: 0; }
.tcard:nth-child(1) { z-index: 1; }
.tcard:nth-child(2) { z-index: 2; }
.tcard:nth-child(3) { z-index: 3; }
.tcard-left {
  padding: 2.5rem 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}
.tcard-quote {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
  flex: 1;
}
.tcard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.tcard-author { display: flex; align-items: center; gap: 0.75rem; }
.tcard-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.tcard-name { font-weight: 700; font-size: 0.78rem; color: var(--text); text-transform: uppercase; letter-spacing: 0.04em; }
.tcard-role { font-size: 0.75rem; color: var(--text-muted); margin-top: 1px; }
.tcard-logo {
  height: 22px;
  width: auto;
  opacity: 0.55;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}
.tcard-img-wrap {
  position: relative;
  overflow: hidden;
  border-left: 1px solid var(--border);
}
.tcard-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tcard-stats {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  border-left: 1px solid var(--border);
  padding: 2.5rem 2rem;
}
.tcard-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.tcard-stat:first-child { padding-top: 0; }
.tcard-stat:last-child { padding-bottom: 0; border-bottom: none; }
.tstat-num {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.tstat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tcard-video {
  margin-top: 1.25rem;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.tcard-video > div { display: block; }

/* ===== Light Section Theme ===== */
.section-light {
  background: #ffffff;
  color: #212121;
}
.section-light h1, .section-light h2, .section-light h3,
.section-light h4, .section-light h5, .section-light h6 { color: #212121; }
.section-light p { color: #555555; }
.section-light a:not(.btn):not(.btn-arrow):not(.service-item):not(.blog-card):not(.cs-card) { color: #212121; }
.section-light .tag {
  background: rgba(33, 33, 33, 0.06);
  color: #212121;
  border-color: rgba(33, 33, 33, 0.18);
}
.section-light .divider { background: #212121; }
.section-light .btn-arrow { color: #212121; }
.section-light .btn-arrow::after { background: #212121; }

/* Logos on light bg */
.section-light .logos-track img { filter: brightness(0); }
.section-light.logos-section {
  border-top-color: rgba(33, 33, 33, 0.1);
  border-bottom-color: rgba(33, 33, 33, 0.1);
}

/* About */
.section-light .about-grid p { color: #555555; }

/* Services */
.section-light .service-item { border-bottom-color: rgba(33, 33, 33, 0.1); }
.section-light .service-item::before { background: #111111; }
.section-light .service-num { color: #999999; }
.section-light .service-name { color: #212121; }
.section-light .service-desc { color: #666666; }
.section-light .service-tag {
  color: #555555;
  border-color: rgba(33, 33, 33, 0.15);
}
.section-light .service-arrow { color: #888888; }
.section-light .service-item:hover .service-name { color: #ffffff; }
.section-light .service-item:hover .service-desc { color: rgba(255, 255, 255, 0.7); }
.section-light .service-item:hover .service-tag { border-color: rgba(255, 255, 255, 0.25); color: rgba(255, 255, 255, 0.65); }
.section-light .service-item:hover .service-arrow { color: #ffffff; }

/* Testimonials */
.section-light .tcard {
  background: #ffffff;
  border-color: rgba(33, 33, 33, 0.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
.section-light .tcard-img-wrap { border-left-color: rgba(33, 33, 33, 0.1); }
.section-light .tcard-stats { border-left-color: rgba(33, 33, 33, 0.1); }
.section-light .tcard-stat { border-bottom-color: rgba(33, 33, 33, 0.1); }
.section-light .tcard-quote { color: #212121; }
.section-light .tcard-name { color: #212121; }
.section-light .tcard-role { color: #666666; }
.section-light .tstat-num { color: #212121; }
.section-light .tstat-label { color: #888888; }
.section-light .tcard-logo { filter: brightness(0); opacity: 0.5; }

/* Form */
.section-light .form-section {
  background: #f5f5f5;
  border: 1px solid rgba(33, 33, 33, 0.1);
}
.section-light .form-group label { color: #212121; }
.section-light input[type="text"],
.section-light input[type="email"],
.section-light input[type="tel"],
.section-light select,
.section-light textarea {
  background: #ffffff;
  border-color: rgba(33, 33, 33, 0.18);
  color: #212121;
}
.section-light input::placeholder { color: #aaaaaa; }
.cfn-section input[type="text"],
.cfn-section input[type="email"],
.cfn-section input[type="tel"] { background: #e8e8e8; }
.section-light .checkbox-label {
  color: #555555;
  border-color: rgba(33, 33, 33, 0.12);
}
.section-light .checkbox-label:hover { border-color: rgba(33, 33, 33, 0.35); color: #212121; }

/* Blog */
.section-light .blog-card {
  background: #f5f5f5;
  border-color: rgba(33, 33, 33, 0.1);
}
.section-light .blog-card:hover { border-color: rgba(33, 33, 33, 0.25); }
.section-light .blog-title { color: #212121; }
.section-light .blog-author { color: #777777; }
.section-light .blog-cat { background: rgba(33, 33, 33, 0.08); color: #333333; }
.section-light .blog-date { color: #888888; }
.section-light .blog-body { border-top-color: rgba(33, 33, 33, 0.1); }

/* ===== Awards ===== */
.awards-section { background: var(--bg-card); }
.awards-list { display: flex; flex-direction: column; }
.award-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.award-item:hover { padding-left: 0.5rem; }
.award-name { font-size: 0.95rem; color: var(--text); }
.award-client { font-size: 0.85rem; color: var(--text-muted); }

/* ===== Process Steps ===== */
.process-steps {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.process-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.process-step::after {
  content: '→';
  color: var(--accent);
  margin-left: 0.5rem;
}
.process-step:last-child::after { display: none; }

/* ===== Contact Form ===== */
.form-section { background: var(--bg-card); border-radius: var(--radius-md); padding: 3rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: #1a1a1a; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.checkbox-label:hover { border-color: var(--accent); color: var(--text); }
.checkbox-label input[type="checkbox"] { accent-color: var(--accent); }

/* ===== Contact Form New (Framer-style) ===== */
.cfn-section {
  background: #e8e8e8 !important;
  padding: 5rem 0 6rem;
}
.cfn-heading {
  font-size: clamp(4.5rem, 9vw, 10.5rem);
  font-style: normal;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  color: #212121;
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 4rem;
  font-family: var(--font-heading);
}
.cfn-form { display: flex; flex-direction: column; gap: 0; }
.cfn-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}
.cfn-groups--single {
  grid-template-columns: 1fr;
}
.cfn-pills--centered { justify-content: center; }
.cfn-group-label {
  font-size: clamp(4.5rem, 9vw, 10.5rem);
  font-weight: 900;
  text-transform: uppercase;
  font-style: normal;
  font-family: var(--font-heading);
  color: #212121 !important;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 1.5rem;
}
.cfn-service-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #212121;
  text-align: center;
  margin-bottom: 1rem;
}
.cfn-pills { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.cfn-pill { cursor: pointer; }
.cfn-pill input[type="radio"] { display: none; }
.cfn-pill span {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 100px;
  border: 1px solid rgba(33,33,33,0.25);
  font-size: 0.78rem;
  font-weight: 500;
  color: #212121;
  background: transparent;
  transition: border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
  white-space: nowrap;
}
.cfn-pill:hover span { border-color: rgba(33,33,33,0.5); background: rgba(33,33,33,0.06); }
.cfn-pill input:checked + span {
  background: #212121;
  border-color: #212121;
  color: #fff;
}
.cfn-bottom {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 2rem;
}
.cfn-inputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.cfn-input-wrap { display: flex; flex-direction: column; gap: 0.45rem; }
.cfn-input-wrap label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #212121;
}
.cfn-input-wrap input {
  background: transparent;
  border: none;
  border-bottom: 1px dashed rgba(33,33,33,0.3);
  border-radius: 0;
  padding: 0.55rem 0;
  font-size: 0.88rem;
  color: #212121;
  outline: none;
  font-family: var(--font-body);
  transition: border-color 0.22s ease;
}
.cfn-input-wrap input:focus { border-bottom-color: #212121; border-bottom-style: solid; }
.cfn-input-wrap input::placeholder { color: rgba(33,33,33,0.4); }
.cfn-submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #212121;
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 0 0.4rem 0 1.4rem;
  height: 48px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-family: var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.22s ease, transform 0.2s ease;
}
.cfn-submit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: #212121;
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}
.cfn-submit:hover { background: #000; transform: translateY(-1px); }
@media (max-width: 768px) {
  .cfn-heading { font-size: clamp(3rem, 13vw, 5rem); }
  .cfn-groups { grid-template-columns: 1fr; gap: 1.5rem; }
  .cfn-bottom { gap: 1.5rem; }
  .cfn-inputs { grid-template-columns: 1fr; gap: 1.5rem; }
  .cfn-submit { align-self: stretch; justify-content: center; }
}

/* ===== Blog Cards ===== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: block;
  transition: var(--transition);
}
.blog-card:hover { transform: translateY(-4px); border-color: rgba(0,174,239,0.2); }
.blog-img-wrap { aspect-ratio: 4/3; overflow: hidden; }
.blog-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-img-wrap img { transform: scale(1.05); }
.blog-body { padding: 1.5rem; }
.blog-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.blog-cat {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.blog-date { font-size: 0.75rem; color: var(--text-muted); }
.blog-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.blog-author { font-size: 0.8rem; color: var(--text-muted); }

/* ===== Team Cards ===== */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.team-card {
  display: block;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.team-card:hover { transform: translateY(-4px); border-color: rgba(0,174,239,0.2); }
.team-img-wrap { aspect-ratio: 3/4; overflow: hidden; }
.team-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.team-card:hover .team-img-wrap img { transform: scale(1.05); }
.team-body { padding: 1.25rem; }
.team-name { font-family: var(--font-heading); font-size: 1.4rem; color: var(--text); }
.team-role { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }
.team-socials { display: flex; gap: 0.75rem; margin-top: 0.75rem; }
.team-socials a { opacity: 0.5; transition: var(--transition); }
.team-socials a:hover { opacity: 1; }
.team-socials img { width: 16px; height: 16px; filter: brightness(0) invert(1); }

/* ===== Career Cards ===== */
.career-list { display: flex; flex-direction: column; gap: 1rem; }
.career-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  transition: var(--transition);
  text-decoration: none;
}
.career-card:hover { border-color: var(--accent); transform: translateX(4px); }
.career-title { font-family: var(--font-heading); font-size: 1.8rem; color: var(--text); }
.career-meta { display: flex; align-items: center; gap: 1rem; margin-top: 0.5rem; }
.career-type {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
}
.career-location { font-size: 0.8rem; color: var(--text-muted); }
.career-arrow { font-size: 1.5rem; color: var(--text-muted); transition: var(--transition); }
.career-card:hover .career-arrow { color: var(--accent); }

/* ===== FAQ Accordion ===== */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: var(--transition);
}
.faq-question:hover { color: var(--accent); }
.faq-icon {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg); border-color: var(--accent); color: var(--accent); }
.faq-answer { display: none; padding-bottom: 1.5rem; }
.faq-item.open .faq-answer { display: block; }
.faq-answer p { color: var(--text-muted); line-height: 1.75; }

/* ===== Pricing ===== */
.pricing-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}
.toggle-label { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }
.toggle-switch {
  width: 52px;
  height: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}
.toggle-switch.active { background: var(--accent); border-color: var(--accent); }
.toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--text);
  border-radius: 50%;
  transition: var(--transition);
}
.toggle-switch.active .toggle-knob { transform: translateX(24px); }
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 3rem;
  max-width: 480px;
}
.pricing-card.featured { border-color: var(--accent); }
.pricing-plan-name {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.pricing-price {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--text);
  margin: 1rem 0;
}
.pricing-period { font-size: 0.85rem; color: var(--text-muted); }
.pricing-features { margin: 2rem 0; display: flex; flex-direction: column; gap: 0.75rem; }
.pricing-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.pricing-feature::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}
.timeline-list { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.timeline-phase { font-weight: 600; font-size: 0.95rem; }
.timeline-dur { font-size: 0.85rem; color: var(--accent); }

/* ===== Contact Info ===== */
.contact-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 4rem; }
.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
}
.contact-info-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.contact-info-value { font-size: 1rem; color: var(--text); }

/* ===== Case Study Detail ===== */
.cs-detail-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.cs-detail-meta-item {}
.cs-detail-meta-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.cs-detail-meta-value { font-weight: 600; font-size: 0.95rem; }
.cs-hero-img {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 3rem;
  aspect-ratio: 16/7;
  object-fit: cover;
}
.cs-content h3 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
  color: var(--text);
}
.cs-content p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.8; }
.cs-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; }
.cs-gallery img { border-radius: var(--radius-md); aspect-ratio: 4/3; object-fit: cover; }

/* ===== Blog Detail ===== */
.blog-detail-header { margin-bottom: 2rem; }
.blog-detail-meta { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1rem; }
.blog-hero-img {
  width: 100%;
  border-radius: var(--radius-md);
  margin: 2rem 0;
  aspect-ratio: 16/7;
  object-fit: cover;
}
.blog-content h2, .blog-content h3 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin: 2rem 0 1rem;
  color: var(--text);
}
.blog-content p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.8; }

/* ===== Team Detail ===== */
.team-detail-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}
.team-detail-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
}
.team-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.team-detail-meta { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.team-meta-item { display: flex; gap: 0.5rem; font-size: 0.9rem; }
.team-meta-label { color: var(--text-muted); font-weight: 600; min-width: 120px; }
.team-meta-value { color: var(--text); }

/* ===== Career Detail ===== */
.career-detail-content { max-width: 800px; }
.career-detail-content h4 {
  font-size: 1.4rem;
  margin: 2rem 0 1rem;
  color: var(--text);
}
.career-detail-content p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; }

/* ===== About Working Process ===== */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.process-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.process-num {
  font-family: var(--font-heading);
  font-size: 6rem;
  color: rgba(0,174,239,0.1);
  position: absolute;
  bottom: -1rem;
  right: 1rem;
  line-height: 1;
}
.process-step-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.process-card h4 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.process-card p { font-size: 0.85rem; }

/* ===== Stats ===== */
.stats-row { display: flex; gap: 3rem; margin: 2rem 0; }
.stat-item {}
.stat-big {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--accent);
}
.stat-desc { font-size: 0.85rem; color: var(--text-muted); }

/* ===== Service Detail ===== */
.service-detail-content { max-width: 800px; }
.service-detail-content h2 { margin-bottom: 1.5rem; }
.service-detail-content p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; }
.service-detail-content h3 { font-size: 1.6rem; margin: 2rem 0 1rem; }
.service-feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.service-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.service-feature-item::before { content: '→'; color: var(--accent); }

/* ===== CTA Section ===== */
.cta-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 5rem 2rem;
}
.cta-section h2 { margin-bottom: 2rem; }

/* ===== 404 ===== */
.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  padding-top: 72px;
}
.not-found h1 { font-size: clamp(6rem, 20vw, 16rem); color: rgba(0,174,239,0.1); margin-bottom: -2rem; }
.not-found h2 { font-size: 2rem; margin-bottom: 1rem; }
.not-found p { margin-bottom: 2rem; }

/* ===== Footer ===== */
.footer {
  background: var(--bg-nav);
  border-top: 1px solid var(--border);
  padding: 0 0 2rem;
}
.footer-social-bar {
  display: flex;
  border-bottom: 1px solid var(--border);
}
.footer-social-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.2rem 1rem;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: color 0.45s ease;
}
.footer-social-link:last-child { border-right: none; }
.footer-social-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--logo-pink);
  transform: translateY(100%);
  transition: transform 0.55s cubic-bezier(0.33, 1, 0.68, 1);
  z-index: 0;
}
.footer-social-link span { position: relative; z-index: 1; }
.footer-social-link:hover { color: #ffffff; }
.footer-social-link:hover::before { transform: translateY(0); }
.footer .container { padding-top: 4rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.footer-logo { margin-bottom: 1rem; }
.footer-logo img { height: 32px; }
.footer-desc { font-size: 0.875rem; color: var(--text-muted); max-width: 260px; }
.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col ul a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-col ul a:hover { color: var(--accent); padding-left: 0.25rem; }
.footer-contact-item { display: flex; gap: 0.5rem; font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.footer-bottom {
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copyright { font-size: 0.8rem; color: var(--text-muted); }

/* ===== Sections & Dividers ===== */
.section-header { margin-bottom: 3rem; }
.divider { width: 60px; height: 2px; background: var(--accent); margin: 1rem 0; }

/* ===== Back Link ===== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
  transition: var(--transition);
}
.back-link:hover { color: var(--accent); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .grid-4, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cs-detail-meta { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 3rem; }
  .contact-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; gap: 6px; }
  h1 { font-size: clamp(3rem, 12vw, 6rem); }
  .hero h1 { font-size: clamp(4rem, 16vw, 8rem); }
  .hs-line--title { font-size: clamp(2.4rem, 13vw, 6rem); }
  .hero-content { padding: 0 1.5rem; }
  .hero-label { display: none; }
  .hero-scroll-cli { display: flex; }
  .grid-2, .grid-3, .cs-grid, .blog-grid, .form-grid { grid-template-columns: 1fr; }
  .cs-card:first-child { aspect-ratio: 16/9; }
  .about-grid { grid-template-columns: 1fr; }
  .team-detail-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .stats-row { flex-wrap: wrap; gap: 1.5rem; }
  .cs-detail-meta { grid-template-columns: repeat(2, 1fr); }
  .service-feature-list { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
  .career-card { flex-direction: column; align-items: flex-start; }
  .tcard { grid-template-columns: 1fr; top: 72px; margin-bottom: 1rem; }
  .tcard-img-wrap { height: 220px; border-left: none; border-top: 1px solid var(--border); }
  .section-light .tcard-img-wrap { border-top-color: rgba(33,33,33,0.1); }
  .tcard-stats { flex-direction: row; padding: 1.5rem 2rem; border-left: none; border-top: 1px solid var(--border); gap: 2rem; }
  .section-light .tcard-stats { border-top-color: rgba(33,33,33,0.1); }
  .tcard-stat { padding: 0; border-bottom: none; border-right: 1px solid var(--border); padding-right: 2rem; }
  .tcard-stat:last-child { border-right: none; padding-right: 0; }
  .section-light .tcard-stat { border-right-color: rgba(33,33,33,0.1); }
  .tstat-num { font-size: 2rem; }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .container { padding: 0 1.25rem; }
  .form-section { padding: 1.5rem; }
  .hs-line--title { font-size: clamp(2rem, 14vw, 3.5rem); }
  .hero-content { padding: 0 1.25rem; }
}

/* ===== Nav scrolled state ===== */
.nav.scrolled {
  background: rgba(13, 13, 13, 0.98);
  box-shadow: 0 1px 20px rgba(0,0,0,0.4);
}

/* ===== Page Load ===== */
body { opacity: 0; }
body.page-ready { opacity: 1; transition: opacity 0.4s ease; }

/* ===== Preloader ===== */
#preloader {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 2rem clamp(1.5rem, 4vw, 3rem) 3rem;
}
#preloader.exit {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.85s cubic-bezier(0.76, 0, 0.24, 1);
}
#preloader-inner { display: flex; flex-direction: column; gap: 0.25rem; }
#preloader-label {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
#preloader-num {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 20vw, 16rem);
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}
#preloader-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  width: 0%;
  transition: width 0.06s linear;
}

/* ===== Scroll Reveal ===== */
/* Spring easing: fast out, slight overshoot feel */
:root {
  --spring: cubic-bezier(0.16, 1, 0.3, 1);
  --spring-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.75s var(--spring),
              transform 0.75s var(--spring);
}
.reveal.reveal-up-far {
  transform: translateY(60px);
}
.reveal.reveal-down {
  transform: translateY(-40px);
}
.reveal.reveal-left {
  transform: translateX(-40px);
}
.reveal.reveal-right {
  transform: translateX(40px);
}
.reveal.reveal-scale-sm {
  transform: scale(0.95);
  opacity: 0;
}
.reveal.reveal-scale-big {
  /* Matches Framer's video scale(0.4) reveal */
  transform: scale(0.4);
  opacity: 0;
  transition: opacity 1s var(--spring),
              transform 1s var(--spring);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.4s; }

/* ===== Text Mask Reveal (Framer-style) ===== */
/* Wrapper: overflow:hidden clips the text below the baseline */
.line-mask {
  display: block;
  overflow: hidden;
  /* slight padding so descenders aren't clipped */
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
/* Inner text starts below the mask, slides up into view */
.line-inner {
  display: block;
  transform: translateY(105%);
  transition: transform 0.9s var(--spring);
  will-change: transform;
}
.line-mask.visible .line-inner {
  transform: translateY(0);
}
/* Stagger delays for multi-line headings */
.line-mask:nth-child(2) .line-inner { transition-delay: 0.1s; }
.line-mask:nth-child(3) .line-inner { transition-delay: 0.2s; }
.line-mask:nth-child(4) .line-inner { transition-delay: 0.3s; }

/* Hero entrance handled by GSAP after preloader */

/* ===== Featured Creations – Scroll Reveal ===== */
.cs-reveal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.cs-reveal-grid .cs-card:first-child {
  grid-column: 1 / -1;
  height: 560px;
  aspect-ratio: unset;
}
.cs-reveal-grid .cs-card {
  height: 400px;
  aspect-ratio: unset;
  transform: translateY(28px);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.cs-reveal-grid .cs-card.revealed { transform: translateY(0); }

/* wipe-reveal cover — lifts from bottom to top */
.cs-reveal-grid .cs-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg);
  z-index: 5;
  transform-origin: bottom;
  transform: scaleY(1);
  transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}
.cs-reveal-grid .cs-card.revealed::before { transform: scaleY(0); }

/* stagger right-column cards */
.cs-reveal-grid .cs-card:nth-child(3),
.cs-reveal-grid .cs-card:nth-child(5) { transition-delay: 0.2s; }
.cs-reveal-grid .cs-card:nth-child(3)::before,
.cs-reveal-grid .cs-card:nth-child(5)::before { transition-delay: 0.2s; }

/* ghost project number */
.cs-num {
  position: absolute;
  top: 0.4rem;
  right: 1rem;
  font-family: var(--font-heading);
  font-size: clamp(5rem, 10vw, 9rem);
  color: rgba(255,255,255,0.055);
  line-height: 1;
  z-index: 2;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.02em;
}

/* gold accent line that sweeps in */
.cs-reveal-grid .cs-info::before {
  content: '';
  display: block;
  height: 2px;
  background: var(--accent);
  width: 0;
  margin-bottom: 1rem;
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.55s;
}
.cs-reveal-grid .cs-card.revealed .cs-info::before { width: 48px; }

/* parallax wrapper injected by JS — oversized so image never shows edges */
.cs-parallax-wrap {
  position: absolute;
  inset: -24px;
  will-change: transform;
  z-index: 0;
}
.cs-parallax-wrap .cs-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cs-reveal-grid .cs-card:hover .cs-parallax-wrap .cs-img { transform: scale(1.04); }

@media (max-width: 768px) {
  .cs-reveal-grid { grid-template-columns: 1fr; }
  .cs-reveal-grid .cs-card:first-child { height: 300px; }
  .cs-reveal-grid .cs-card { height: 260px; }
  .cs-reveal-grid .cs-card:nth-child(3),
  .cs-reveal-grid .cs-card:nth-child(5) { transition-delay: 0s; }
  .cs-reveal-grid .cs-card:nth-child(3)::before,
  .cs-reveal-grid .cs-card:nth-child(5)::before { transition-delay: 0s; }
}

/* ===== Featured Creations – Single Column ===== */
.cs-featured-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}
.cs-featured-title {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.88;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.02em;
}
.cs-featured-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem 0.8rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s;
  flex-shrink: 0;
  align-self: flex-end;
}
.cs-featured-btn:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.4); }
.cs-btn-plus {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1;
}

.cs-featured-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cs-feat-entry {
  display: block;
  text-decoration: none;
  position: sticky;
  top: 88px;
  margin-bottom: 1.5rem;
  background: var(--bg);
}
.cs-feat-entry:nth-child(1) { z-index: 1; }
.cs-feat-entry:nth-child(2) { z-index: 2; }
.cs-feat-entry:nth-child(3) { z-index: 3; }
.cs-feat-entry:nth-child(4) { z-index: 4; }
.cs-feat-entry:nth-child(5) { z-index: 5; }
.cs-feat-entry:nth-child(6) { z-index: 6; }

.cs-feat-img-box {
  position: relative;
  width: 100%;
  height: 440px;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.cs-feat-img-box .cs-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease, filter 0.6s ease;
}
.cs-feat-entry:hover .cs-feat-img-box .cs-img {
  transform: scale(1.15);
  filter: blur(8px);
}

/* centered logo overlay */
.cs-feat-center-logo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}
.cs-center-logo {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.cs-center-logo.cs-logo-company {
  height: auto;
  width: 55%;
  max-width: 240px;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.8));
  opacity: 0.92;
}
.cs-center-logo.cs-logo-white {
  filter: brightness(0) invert(1) drop-shadow(0 2px 12px rgba(0,0,0,0.8));
}
.cs-center-logo-txt {
  display: block;
  text-align: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.35;
  opacity: 0.92;
  text-shadow: 0 2px 12px rgba(0,0,0,0.55);
}

/* meta row below card */
.cs-feat-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.cs-feat-name {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1;
}
.cs-feat-year { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.35rem; }
.cs-feat-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: border-color 0.3s, color 0.3s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cs-feat-entry:hover .cs-feat-arrow {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(-45deg);
}

/* parallax wrap compatibility */
.cs-feat-img-box .cs-parallax-wrap {
  position: absolute;
  inset: -24px;
  will-change: transform;
  z-index: 0;
}
.cs-feat-img-box .cs-parallax-wrap .cs-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.cs-feat-entry:hover .cs-feat-img-box .cs-parallax-wrap .cs-img { transform: scale(1.04); }

@media (max-width: 768px) {
  .cs-feat-img-box { height: 280px; }
  .cs-featured-title { font-size: clamp(2.8rem, 12vw, 4rem); }
  .cs-featured-header { margin-bottom: 2.5rem; }
}

/* ===== FAQ smooth animation ===== */
.faq-answer {
  display: block;
  max-height: 0;
  overflow: hidden;
  padding-bottom: 0;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease,
              padding-bottom 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  opacity: 1;
  padding-bottom: 1.5rem;
}

/* ===== Cursor Glow ===== */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,174,239,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: left, top;
}

/* ===== Hover line animation for nav links ===== */
.nav-links a:not(.btn) {
  position: relative;
}
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after {
  width: 100%;
}

/* ===== Marquee pause on hover ===== */
.logos-section:hover .logos-track { animation-play-state: paused; }

/* ===== Statement Pin Section ===== */
.statement-section {
  background: var(--bg);
}
.statement-pin {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 4rem 0;
}
.statement-text {
  display: block;
}
.statement-line {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 8vw, 9rem);
  line-height: 1.05;
  overflow: hidden;
  padding-top: 0.4em;
  margin-top: -0.4em;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.statement-inner {
  display: block;
  font-style: normal;
  color: var(--text);
  transform: translateY(160%);
  will-change: transform;
}
.statement-line--stroke .statement-inner {
  -webkit-text-stroke: 2px var(--text);
  color: transparent;
}

/* ===== Valori Section ===== */
.valori-section {
  background: var(--bg-card);
  overflow: hidden;
  padding-top: 0;
}

.valori-ticker-wrap {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
}
.valori-ticker-item {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  letter-spacing: 0.04em;
  color: var(--text);
}

.valori-cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}
.vcard {
  grid-column: span 2;
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  overflow: hidden;
  cursor: default;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.vcard:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}
.vcard:nth-child(4) { grid-column: 2 / span 2; }
.vcard:nth-child(5) { grid-column: 4 / span 2; }

.vcard-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.vcard-head {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}
.vcard-num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(33, 33, 33, 0.35);
  flex-shrink: 0;
}
.vcard-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #212121;
  line-height: 1.2;
  margin: 0;
}
.vcard-desc {
  font-size: 0.875rem;
  color: rgba(33, 33, 33, 0.62);
  line-height: 1.7;
  margin: 0 0 1.5rem 0;
  flex: 1;
}
.vcard-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.vcard-tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(33, 33, 33, 0.6);
  border: 1px solid rgba(33, 33, 33, 0.15);
  border-radius: 100px;
  padding: 0.25rem 0.7rem;
  letter-spacing: 0.02em;
  transition: border-color 0.3s ease, color 0.3s ease;
}

/* Conic spotlight hover effect */
.vcard-spotlight {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  opacity: 0;
  pointer-events: none;
  background: conic-gradient(
    from 0deg at 50% 50%,
    rgba(0, 174, 239, 0.0) 0deg,
    rgba(0, 174, 239, 0.18) 36deg,
    rgba(0, 174, 239, 0.0) 80deg,
    rgba(0, 174, 239, 0.0) 220deg,
    rgba(0, 174, 239, 0.12) 266deg,
    rgba(0, 174, 239, 0.0) 310deg,
    rgba(0, 174, 239, 0.0) 360deg
  );
  transition: opacity 0.5s ease;
}
.vcard:hover .vcard-spotlight {
  opacity: 1;
  animation: valori-spotlight-spin 5s linear infinite;
}
@keyframes valori-spotlight-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.vcard:hover .vcard-tag {
  border-color: rgba(33, 33, 33, 0.22);
}

@media (max-width: 900px) {
  .valori-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .vcard,
  .vcard:nth-child(4),
  .vcard:nth-child(5) {
    grid-column: span 1;
  }
}
@media (max-width: 540px) {
  .valori-cards {
    grid-template-columns: 1fr;
  }
  .valori-ticker-item { font-size: 2.2rem; }
}

/* ===== Framer-style Nav Override ===== */

/* Transparent base, dark on scroll */
.nav {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  padding-top: env(safe-area-inset-top, 0px);
}
.nav.scrolled {
  background: rgba(13, 13, 13, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

/* Desktop: center nav-links + show hamburger */
@media (min-width: 769px) {
  .nav-inner {
    position: relative;
  }
  .nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    gap: 0.5rem;
  }
  .hamburger { display: flex; }
}

/* Pill links — wipe from bottom (mirrors hero-social animation) */
.nav-links a:not(.btn),
.nav-links .nav-cta {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.9);
  background-color: transparent;
  margin-left: 0;
  position: relative;
  transform: none;
  transition: color 0.45s ease, border-color 0.45s ease;
  white-space: nowrap;
}

/* Wipe-from-bottom fill — z-index:-1 keeps text readable without extra wrapper */
.nav-links a:not(.btn)::before,
.nav-links .nav-cta::before {
  content: '';
  display: block !important;
  position: absolute;
  bottom: 0;
  left: -10%;
  width: 120%;
  height: 110%;
  background: var(--logo-pink);
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  transform: translateY(105%);
  transition: transform 0.55s cubic-bezier(0.33, 1, 0.68, 1);
  z-index: -1;
  pointer-events: none;
}

/* Kill old underline */
.nav-links a:not(.btn)::after { display: none; }

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active,
.nav-links .nav-cta:hover {
  color: #ffffff;
  border-color: var(--logo-pink);
  transform: none;
}

.nav-links a:not(.btn):hover::before,
.nav-links a:not(.btn).active::before,
.nav-links .nav-cta:hover::before {
  transform: translateY(0);
}

/* Hamburger: 2 lines only */
.hamburger span:nth-child(3) { display: none; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger.open span:nth-child(2) {
  opacity: 1;
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ===== Full-screen Overlay Menu ===== */

.mobile-menu {
  display: flex !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  height: -webkit-fill-available;
  background: #0d0d0d;
  z-index: 9999;
  flex-direction: column;
  padding: 2rem 4rem 3rem;
  padding-bottom: max(3rem, env(safe-area-inset-bottom, 3rem));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.38s ease, visibility 0.38s ease;
}
.mobile-menu.open {
  visibility: visible;
  opacity: 1;
  pointer-events: all;
}

/* Overlay header: logo + close btn (injected via JS) */
.overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4.5rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.overlay-logo-img { height: 34px; width: auto; }
.overlay-close-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s ease;
}
.overlay-close-btn:hover { color: #ffffff; }
.overlay-close-x {
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1;
}

/* 2-column link grid (JS injects wrapper) */
.overlay-links-grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
  grid-auto-flow: column;
  column-gap: 6rem;
  align-content: start;
  row-gap: 0;
}
.overlay-links-grid a {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.28);
  text-transform: uppercase;
  line-height: 1.18;
  border-bottom: none !important;
  padding: 0.1rem 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.38s ease, transform 0.38s ease, color 0.25s ease;
}
.mobile-menu.open .overlay-links-grid a {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu.open .overlay-links-grid a:hover {
  color: #ffffff;
  transform: translateX(6px);
}
/* Stagger */
.mobile-menu.open .overlay-links-grid a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open .overlay-links-grid a:nth-child(2) { transition-delay: 0.10s; }
.mobile-menu.open .overlay-links-grid a:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.open .overlay-links-grid a:nth-child(4) { transition-delay: 0.20s; }
.mobile-menu.open .overlay-links-grid a:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu.open .overlay-links-grid a:nth-child(6) { transition-delay: 0.30s; }
.mobile-menu.open .overlay-links-grid a:nth-child(7) { transition-delay: 0.35s; }
.mobile-menu.open .overlay-links-grid a:nth-child(8) { transition-delay: 0.40s; }

/* Right image panel (JS sets background-image) */
.overlay-image-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 30%;
  background-size: cover;
  background-position: center;
  opacity: 0.65;
}

@media (max-width: 768px) {
  .mobile-menu {
    padding: max(1.5rem, env(safe-area-inset-top, 1.5rem)) 1.5rem max(2rem, env(safe-area-inset-bottom, 2rem));
  }
  .overlay-header { margin-bottom: 2rem; }
  .overlay-links-grid {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    column-gap: 0;
  }
  .overlay-links-grid a { font-size: clamp(1.8rem, 9vw, 2.8rem); white-space: normal; }
  .overlay-image-panel { display: none; }
}

/* ===== Mobile: nav hide on scroll ===== */
@media (max-width: 768px) {
  #nav {
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.38s ease, background 0.3s ease;
  }
  body.nav-scrolled #nav {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
  }
}

/* ===== Scroll-to-top FAB ===== */
.fab-top {
  position: fixed;
  bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  left: 1.5rem;
  z-index: 9998;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.fab-top.fab-top--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.fab-top.fab-on-light {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.2);
  color: rgba(20, 20, 20, 0.85);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255,255,255,0.08);
}
@media (min-width: 769px) {
  .fab-top { display: none !important; }
}

/* ===== Nexit Brand Color Accents ===== */

/* 1. Preloader bar: logo rainbow */
#preloader-bar {
  background: linear-gradient(90deg, var(--logo-pink) 0%, var(--logo-blue) 40%, var(--logo-green) 70%, var(--logo-yellow) 100%);
}

/* 2. Page curtain leading edge: pink instead of gold */
#page-curtain {
  background: linear-gradient(to right, var(--bg-nav, #0d0d0d) 96%, var(--logo-pink) 96%);
}

/* 3. Section divider dot (callback to yellow "i" dot in logo) */
.divider {
  position: relative;
  overflow: visible;
}
.divider::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--logo-yellow);
}

/* 4. Service numbers: logo color rotation */
.service-item:nth-child(1) .service-num { color: var(--logo-pink); }
.service-item:nth-child(2) .service-num { color: var(--logo-green); }
.service-item:nth-child(3) .service-num { color: var(--logo-blue); }
.service-item:nth-child(4) .service-num { color: var(--logo-yellow); }
/* On hover (white bg fill) restore gold — higher specificity wins */
.service-item:nth-child(1):hover .service-num,
.service-item:nth-child(2):hover .service-num,
.service-item:nth-child(3):hover .service-num,
.service-item:nth-child(4):hover .service-num { color: var(--accent); }

/* 5. Stats row numbers: logo colors */
.stats-row .stat-item:nth-child(1) .stat-big { color: var(--logo-pink); }
.stats-row .stat-item:nth-child(2) .stat-big { color: var(--logo-blue); }
.stats-row .stat-item:nth-child(3) .stat-big { color: var(--logo-green); }
.stats-row .stat-item:nth-child(4) .stat-big { color: var(--logo-yellow); }

/* 6. Portfolio grid card accent sweep line: logo colors */
.cs-reveal-grid .cs-card:nth-child(1) .cs-info::before { background: var(--logo-pink); }
.cs-reveal-grid .cs-card:nth-child(2) .cs-info::before { background: var(--logo-green); }
.cs-reveal-grid .cs-card:nth-child(3) .cs-info::before { background: var(--logo-blue); }
.cs-reveal-grid .cs-card:nth-child(4) .cs-info::before { background: var(--logo-yellow); }
.cs-reveal-grid .cs-card:nth-child(5) .cs-info::before { background: var(--logo-pink); }

/* 7. Portfolio featured list arrow: logo color per entry on hover */
.cs-feat-entry:nth-child(1):hover .cs-feat-arrow { border-color: var(--logo-pink); color: var(--logo-pink); }
.cs-feat-entry:nth-child(2):hover .cs-feat-arrow { border-color: var(--logo-green); color: var(--logo-green); }
.cs-feat-entry:nth-child(3):hover .cs-feat-arrow { border-color: var(--logo-blue); color: var(--logo-blue); }
.cs-feat-entry:nth-child(4):hover .cs-feat-arrow { border-color: var(--logo-yellow); color: var(--logo-yellow); }
.cs-feat-entry:nth-child(5):hover .cs-feat-arrow { border-color: var(--logo-pink); color: var(--logo-pink); }

/* 8. Hero social icons: pink hover fill */
.hero-social::before { background: var(--logo-pink); }
.hero-social:hover { color: #ffffff; border-color: var(--logo-pink); }

/* 9. Process step arrows: logo color per step */
.process-step:nth-child(1)::after { color: var(--logo-pink); }
.process-step:nth-child(2)::after { color: var(--logo-green); }
.process-step:nth-child(3)::after { color: var(--logo-blue); }
.process-step:nth-child(4)::after { color: var(--logo-yellow); }

/* 10. Nav active: fill already handled by wipe-from-bottom ::before */


/* 11. Cursor glow: blue tint (matches primary accent) */
.cursor-glow {
  background: radial-gradient(circle, rgba(0, 174, 239, 0.06) 0%, transparent 70%);
}
