*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black: #000000;
  --white: #ffffff;
  --off-white: #f5f5f3;
  --gray: #888888;
  --light-gray: #e8e8e8;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 2px; }
::-webkit-scrollbar-track { background: var(--white); }
::-webkit-scrollbar-thumb { background: var(--black); }

/* ── PROGRESS BAR ── */
#progress-bar {
  position: fixed; top: 0; left: 0;
  height: 2px; background: var(--black);
  z-index: 99999; width: 0%;
  transition: width 0.1s linear;
}

/* ── PRELOADER ── */
#preloader {
  position: fixed; inset: 0; background: var(--black); z-index: 99000;
  display: flex; align-items: center; justify-content: center;
  transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1);
}
#preloader.done { transform: translateY(-100%); }
.preloader-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 6rem;
  letter-spacing: -4px;
  color: var(--white);
  overflow: hidden;
  display: flex;
  gap: 0;
}
.preloader-logo span {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
  animation: letterUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.preloader-logo span:nth-child(1) { animation-delay: 0.3s; }
.preloader-logo span:nth-child(2) { animation-delay: 0.5s; }
.preloader-logo span:nth-child(3) { animation-delay: 0.7s; }
.preloader-logo span:nth-child(4) { animation-delay: 0.9s; }
@keyframes letterUp { to { transform: translateY(0); opacity: 1; } }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  padding: 24px 5%;
  background: var(--black);
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0);
  transition: border-color 0.4s ease, padding 0.3s ease;
}
nav.scrolled {
  padding: 16px 5%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 28px; width: auto; display: block; }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 500;
  color: var(--white); text-decoration: none; letter-spacing: 0.5px;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--white);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 500;
  color: var(--white); text-decoration: none; letter-spacing: 0.5px;
  border: 1px solid var(--white); padding: 10px 22px;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--white); color: var(--black); }

/* ── HAMBURGER MENU ── */
.nav-right { display: flex; align-items: center; gap: 20px; }
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  width: 40px; height: 40px; background: none; border: none;
  cursor: pointer; gap: 6px; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 1.5px; background: var(--white);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.2s;
  transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile overlay */
.mobile-menu-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 9990;
  opacity: 0; transition: opacity 0.3s;
}
.mobile-menu-overlay.active { opacity: 1; }
body.menu-open { overflow: hidden; }

/* ── HERO ── */
#hero {
  min-height: 100vh; background: var(--black);
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 0 5% 8%;
  position: relative; overflow: hidden;
}
.hero-top-label {
  position: absolute; top: 160px; left: 5%;
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  font-weight: 500; color: rgba(255,255,255,0.4); letter-spacing: 1px;
  text-transform: uppercase;
}
.hero-counter {
  position: absolute; top: 160px; right: 5%;
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  color: rgba(255,255,255,0.3);
}
.hero-headline {
  font-size: clamp(3.5rem, 9.5vw, 9rem); font-weight: 400;
  color: var(--white); line-height: 0.95; letter-spacing: -4px;
  overflow: hidden;
  display: flex; align-items: center; gap: 20px;
}
.hero-headline .line { overflow: hidden; display: block; }
.hero-headline .line span {
  display: block; transform: translateY(110%);
  animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-headline .line:nth-child(1) span { animation-delay: 0.9s; }
.hero-headline .line:nth-child(2) span { animation-delay: 1.05s; }
.hero-headline .line:nth-child(3) span { animation-delay: 1.2s; }.hero-logo {
  height: 2em; width: auto; display: block;
  opacity: 0; animation: fadeIn 1s ease 1.2s forwards;
}@keyframes slideUp { to { transform: translateY(0); } }
.hero-bottom {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: 48px; flex-wrap: wrap; gap: 24px;
}
.hero-desc {
  font-size: 16px; color: rgba(255,255,255,0.5);
  max-width: 380px; line-height: 1.75;
  opacity: 0; animation: fadeIn 1s ease 1.5s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }
.hero-cta-wrap {
  display: flex;
  gap: 32px;
  align-items: stretch;
  opacity: 0;
  animation: fadeIn 1s ease 1.6s forwards;
}
.btn-white {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  background: var(--white);
  color: var(--black);
  border: none;
  padding: 20px 48px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 1px;
  height: 64px;
  box-sizing: border-box;
}
.btn-white:hover { background: var(--off-white); }
.btn-ghost-white {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 20px 48px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 1px;
  height: 64px;
  box-sizing: border-box;
}
.btn-ghost-white:hover { border-color: var(--white); }
.hero-scroll-hint {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: rgba(255,255,255,0.3); letter-spacing: 2px; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
  opacity: 0; animation: fadeIn 1s ease 2s forwards;
  position: absolute; bottom: 48px; right: 5%;
  writing-mode: vertical-rl;
}
.scroll-line { width: 1px; height: 40px; background: rgba(255,255,255,0.2); display: block; }

/* ── MARQUEE ── */
.marquee-section {
  background: var(--black); border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0; overflow: hidden;
}
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee 30s linear infinite; }
.marquee-item {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 400;
  color: rgba(255,255,255,0.3); letter-spacing: 2px; text-transform: uppercase;
  padding: 0 40px; border-right: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
}
.marquee-item.highlight { color: rgba(255,255,255,0.7); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── SECTIONS ── */
section { padding: 120px 5%; position: relative; }
.section-label {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase; color: var(--gray);
  display: flex; align-items: center; gap: 14px; margin-bottom: 60px;
}
.section-label::before { content: ''; display: block; width: 32px; height: 1px; background: var(--gray); }
.section-title { font-size: 48px; font-weight: 400; line-height: 1.1; letter-spacing: -2px; }
.section-title strong { font-weight: 800; }

/* ── INTRO ── */
#intro { background: var(--white); }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-top: 80px; }
.intro-big { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; line-height: 1.3; letter-spacing: -1.5px; }
.intro-right { display: flex; flex-direction: column; gap: 40px; }
.intro-stat { border-top: 1px solid var(--light-gray); padding-top: 24px; }
.stat-number { font-size: 56px; font-weight: 300; letter-spacing: -3px; line-height: 1; }
.stat-number span { font-size: 32px; }
.stat-text { font-size: 14px; color: var(--gray); margin-top: 8px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.5px; }

/* ── SERVICES ── */
#services { background: var(--black); }
#services .section-label { color: rgba(255,255,255,0.3); }
#services .section-label::before { background: rgba(255,255,255,0.3); }
#services .section-title { color: var(--white); }
.services-list { margin-top: 72px; border-top: 1px solid rgba(255,255,255,0.1); }
.service-row {
  display: grid; grid-template-columns: 60px 1fr 1fr auto;
  align-items: center; gap: 40px;
  padding: 36px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative; overflow: hidden;
}
.service-row::before {
  content: ''; position: absolute; inset: 0; background: var(--white);
  transform: translateX(-101%); transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1); z-index: 0;
}
.service-row:hover::before { transform: translateX(0); }
.service-row > * { position: relative; z-index: 1; transition: color 0.3s; }
.service-row:hover .svc-num,
.service-row:hover .svc-name,
.service-row:hover .svc-tags,
.service-row:hover .svc-arrow { color: var(--black) !important; }
.svc-num { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: rgba(255,255,255,0.25); letter-spacing: 1px; }
.svc-name { font-size: 24px; font-weight: 500; color: var(--white); letter-spacing: -0.5px; }
.svc-tags { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: rgba(255,255,255,0.35); letter-spacing: 1px; }
.svc-arrow { color: rgba(255,255,255,0.3); font-size: 20px; justify-self: end; }

/* ── PROCESS ── */
#process { background: var(--off-white); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--light-gray); margin-top: 72px; }
.process-card { background: var(--off-white); padding: 48px 36px; }
.process-num { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--gray); letter-spacing: 2px; margin-bottom: 48px; }
.process-name { font-size: 24px; font-weight: 500; letter-spacing: -0.5px; margin-bottom: 16px; }
.process-desc { font-size: 14px; color: var(--gray); line-height: 1.75; }

/* ── PORTFOLIO ── */
#portfolio { background: var(--white); padding-bottom: 0; }
.portfolio-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 64px; flex-wrap: wrap; gap: 20px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--light-gray); margin: 0 -5%; }
.portfolio-card {
  background: var(--white); position: relative; overflow: hidden;
  aspect-ratio: 4/3; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 36px;
}
.portfolio-card-bg {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; font-size: 100px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s;
  filter: grayscale(1) opacity(0.07);
}
.portfolio-card:hover .portfolio-card-bg { transform: scale(1.05); filter: grayscale(1) opacity(0.12); }
.portfolio-card-content { position: relative; z-index: 1; }
.portfolio-cat { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gray); margin-bottom: 10px; }
.portfolio-name { font-size: 28px; font-weight: 500; letter-spacing: -1px; }
.portfolio-card-overlay {
  position: absolute; inset: 0; background: var(--black);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.4s; z-index: 2;
}
.portfolio-card:hover .portfolio-card-overlay { opacity: 1; }
.overlay-content { text-align: center; color: var(--white); }
.overlay-content h3 { font-size: 28px; font-weight: 500; letter-spacing: -1px; margin-bottom: 8px; }
.overlay-content p { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: rgba(255,255,255,0.4); letter-spacing: 1px; margin-bottom: 28px; }
.overlay-link {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--black); background: var(--white); padding: 10px 24px;
  letter-spacing: 1px; text-decoration: none; transition: background 0.2s;
}
.overlay-link:hover { background: var(--off-white); }

/* ── CLIENTS ── */
#clients { background: var(--off-white); }
.clients-slider {
  overflow: hidden;
  margin-top: 72px;
  position: relative;
}
.clients-track {
  display: flex;
  gap: 60px;
  animation: slideLeft 20s linear infinite;
  width: calc(200px * 8); /* 4 logos + 4 duplicates */
}
@keyframes slideLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.client-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  opacity: 0.6;
  transition: opacity 0.3s;
}
.client-logo img {
  max-width: 90px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: grayscale(0.2) brightness(0.98);
  transition: filter 0.3s;
}
.client-logo:hover img {
  filter: grayscale(0) brightness(1.05);
}
.client-logo:hover {
  opacity: 1;
}
.client-name {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  text-align: center;
}
.client-placeholder {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

/* ── ABOUT ── */
#about { background: var(--black); padding: 160px 5%; }
.about-quote {
  font-size: clamp(1.8rem, 4vw, 3.5rem); font-weight: 400;
  color: var(--white); line-height: 1.3; letter-spacing: -1.5px; max-width: 900px;
}
.about-quote em { font-style: italic; color: rgba(255,255,255,0.4); }
.about-bottom {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: 80px; padding-top: 60px; border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap; gap: 40px;
}
.about-info p { font-size: 16px; color: rgba(255,255,255,0.5); line-height: 1.75; max-width: 440px; }
.about-list { display: flex; flex-direction: column; gap: 16px; }
.about-list-item {
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  color: rgba(255,255,255,0.4); letter-spacing: 1px;
  display: flex; align-items: center; gap: 12px;
}
.about-list-item::before { content: '→'; color: rgba(255,255,255,0.2); }

/* ── TESTIMONIALS ── */
#testimonials { background: var(--off-white); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--light-gray); margin-top: 72px; }
.testi-card { background: var(--off-white); padding: 48px 36px; transition: background 0.3s; }
.testi-card:hover { background: var(--black); }
.testi-card:hover .testi-text,
.testi-card:hover .testi-name,
.testi-card:hover .testi-role { color: var(--white); }
.testi-card:hover .testi-quote-mark { color: rgba(255,255,255,0.1); }
.testi-quote-mark { font-size: 80px; font-weight: 800; line-height: 0.8; color: rgba(0,0,0,0.06); margin-bottom: 24px; letter-spacing: -2px; transition: color 0.3s; }
.testi-text { font-size: 16px; line-height: 1.8; margin-bottom: 36px; transition: color 0.3s; }
.testi-author { border-top: 1px solid var(--light-gray); padding-top: 24px; }
.testi-name { font-weight: 600; font-size: 15px; margin-bottom: 4px; transition: color 0.3s; }
.testi-role { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--gray); letter-spacing: 1px; transition: color 0.3s; }

/* ── CTA ── */
#cta { background: var(--black); padding: 160px 5%; text-align: center; }
.cta-headline {
  font-size: clamp(3rem, 8vw, 8rem); font-weight: 400;
  color: var(--white); letter-spacing: -4px; line-height: 0.95; margin-bottom: 60px;
}
.cta-headline strong { font-weight: 800; }
.magnetic-btn {
  display: inline-block; font-family: 'JetBrains Mono', monospace;
  font-size: 14px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
  color: var(--black); background: var(--white);
  padding: 20px 52px; text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
/* ══════════════════════════════════════════
   TEAM SECTION — append to style.css
   ══════════════════════════════════════════ */

#team {
  background: var(--white);
  border-top: 1px solid var(--light-gray);
}

.team-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.team-intro {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.75;
  max-width: 380px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--light-gray);
}

.team-card {
  background: var(--white);
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
  transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--black);
  transform: translateY(101%);
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
  z-index: 0;
}

.team-card:hover::before { transform: translateY(0); }

.team-card-inner,
.team-num { position: relative; z-index: 1; }

.team-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 2px;
  margin-bottom: 32px;
  transition: color 0.3s;
}

.team-card:hover .team-num { color: rgba(255,255,255,0.2); }

.team-img-wrap {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 28px;
  background: var(--light-gray);
  flex-shrink: 0;
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1);
  transition: filter 0.4s ease;
}

.team-card:hover .team-img { filter: grayscale(0); }

.team-initials {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 600;
  color: var(--white);
  background: var(--black);
}

.team-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.team-card:hover .team-role { color: rgba(255,255,255,0.4); }

.team-name {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -1px;
  color: var(--black);
  margin-bottom: 16px;
  transition: color 0.3s;
}

.team-card:hover .team-name { color: var(--white); }

.team-bio {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 28px;
  transition: color 0.3s;
}

.team-card:hover .team-bio { color: rgba(255,255,255,0.5); }

.team-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-stack span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--black);
  border: 1px solid var(--light-gray);
  padding: 5px 12px;
  transition: color 0.3s, border-color 0.3s;
}

.team-card:hover .team-stack span {
  color: rgba(255,255,255,0.6);
  border-color: rgba(255,255,255,0.15);
}

/* ── RESPONSIVE — TABLET ── */
@media (max-width: 900px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
  .team-header { flex-direction: column; align-items: flex-start; gap: 24px; }
  .team-intro { max-width: 100%; }
}

/* ── RESPONSIVE — MOBILE ── */
@media (max-width: 600px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-card { padding: 32px 24px; }
  .team-name { font-size: 22px; }
  .team-img-wrap { width: 72px; height: 72px; }
}

/* ── CONTACT ── */
#contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 100px; margin-top: 72px; }
.contact-info-title { font-size: 32px; font-weight: 500; letter-spacing: -1px; margin-bottom: 20px; line-height: 1.2; }
.contact-details { display: flex; flex-direction: column; }
.contact-detail { display: flex; flex-direction: column; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--light-gray); }
.contact-detail-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--gray); letter-spacing: 2px; text-transform: uppercase; }
.contact-detail-value { font-size: 16px; font-weight: 500; }
.contact-detail-value a { color: var(--black); text-decoration: none; }
.contact-detail-value a:hover { text-decoration: underline; }
.contact-form { display: flex; flex-direction: column; }
.form-field { border-bottom: 1px solid var(--light-gray); position: relative; }
.form-field label { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--gray); letter-spacing: 2px; text-transform: uppercase; display: block; padding: 24px 0 8px; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%; background: transparent; border: none; outline: none;
  font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 400;
  color: var(--black); padding: 0 0 24px; -webkit-appearance: none;
}
.form-field textarea { resize: none; min-height: 100px; }
.form-field::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--black); transition: width 0.4s ease; }
.form-field:focus-within::after { width: 100%; }
.form-row-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.submit-row { margin-top: 48px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.submit-btn {
  font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  background: var(--black); color: var(--white); border: none;
  padding: 16px 40px; transition: background 0.2s; cursor: pointer;
}
.submit-btn:hover { background: #222; }
.submit-note { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--gray); letter-spacing: 1px; }

/* ── LOCATION ── */
#location { background: var(--off-white); }
.location-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 80px; 
  margin-top: 72px; 
  align-items: start;
}
.location-content p { 
  font-size: 16px; 
  color: var(--gray); 
  line-height: 1.75; 
  margin-bottom: 48px; 
}
.location-details { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 60px; 
}
.location-address h3,
.location-hours h3 {
  font-size: 18px; 
  font-weight: 500; 
  letter-spacing: -0.5px; 
  margin-bottom: 12px;
}
.location-address p,
.location-hours p {
  font-size: 14px; 
  color: var(--gray); 
  line-height: 1.6;
}
.location-map {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.location-map iframe {
  width: 100%;
  height: 300px;
  border: 0;
}
.map-link {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: var(--black);
  color: var(--white);
  padding: 12px 20px;
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: background 0.2s;
}
.map-link:hover {
  background: #333;
}

/* ── FOOTER ── */
footer { background: var(--black); padding: 40px 5% 40px; }
.footer-logo { 
  text-align: center; 
  padding-bottom: 16px; 
  border-bottom: 1px solid rgba(255,255,255,0.08); 
  margin-bottom: 24px; 
}
.footer-logo img { 
  height: 56px; 
  width: auto; 
  display: block; 
  margin: 0 auto; 
}
.footer-logo-link {
  display: inline-block;
  transition: transform 0.3s ease;
  cursor: pointer;
}
.footer-logo-link:hover {
  transform: translateY(-2px);
}
.footer-top { display: flex; justify-content: center; align-items: center; padding-bottom: 48px; flex-wrap: wrap; gap: 24px; }
.footer-nav { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-nav a { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: rgba(255,255,255,0.4); text-decoration: none; letter-spacing: 1px; transition: color 0.2s; }
.footer-nav a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 32px; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: rgba(255,255,255,0.25); letter-spacing: 1px; }

/* ── REVEAL ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE — TABLET ── */
@media (max-width: 900px) {
  /* NAV */
  nav { padding: 20px 5%; }

  /* HERO */
  .hero-headline { letter-spacing: -2px; }

  /* INTRO */
  .intro-grid { grid-template-columns: 1fr; gap: 48px; }

  /* PROCESS */
  .process-grid { grid-template-columns: 1fr 1fr; }

  /* PORTFOLIO */
  .portfolio-grid { grid-template-columns: 1fr; }

  /* ALL PROJECTS */
  .all-projects-grid { grid-template-columns: 1fr 1fr; }

  /* CONTACT */
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }

  /* TESTIMONIALS */
  .testi-grid { grid-template-columns: 1fr; }

  /* SERVICES */
  .service-row { grid-template-columns: 40px 1fr auto; gap: 20px; }
  .svc-tags { display: none; }

  /* LOCATION */
  .location-grid { grid-template-columns: 1fr; gap: 40px; }
  .location-details { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* CLIENTS */
  .clients-slider { margin-top: 48px; }

  /* SECTION TITLES */
  .section-title { font-size: 36px; letter-spacing: -1px; }
}

/* ── RESPONSIVE — MOBILE ── */
@media (max-width: 600px) {
  /* GLOBAL */
  html, body { overflow-x: hidden; width: 100%; }
  section { padding: 72px 5%; }

  /* HERO */
  #hero { padding: 0 5% 10%; }
  .hero-headline {
    font-size: clamp(2.6rem, 13vw, 4.5rem);
    letter-spacing: -2px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .hero-logo { height: 1.8em; margin-top: 12px; }
  .hero-top-label { font-size: 10px; top: 100px; }
  .hero-counter { font-size: 10px; top: 100px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 24px; margin-top: 32px; }
  .hero-desc { font-size: 14px; max-width: 100%; }
  .hero-cta-wrap { flex-direction: column; width: 100%; gap: 12px; }
  .btn-white, .btn-ghost-white {
    width: 100%; font-size: 15px;
    padding: 16px 24px; height: auto;
    justify-content: center;
  }
  .hero-scroll-hint { display: none; }

  /* SECTION TITLES */
  .section-title { font-size: 28px; letter-spacing: -1px; }
  .section-label { font-size: 10px; margin-bottom: 32px; }

  /* INTRO */
  .intro-big { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .stat-number { font-size: 40px; }

  /* SERVICES */
  .service-row {
    grid-template-columns: 32px 1fr auto;
    gap: 12px;
    padding: 24px 0;
  }
  .svc-name { font-size: 17px; }
  .svc-tags { display: none; }
  .svc-num { font-size: 11px; }

  /* PROCESS */
  .process-grid { grid-template-columns: 1fr; }
  .process-card { padding: 32px 24px; }

  /* PORTFOLIO */
  .portfolio-grid { grid-template-columns: 1fr; margin: 0 -5%; }
  .portfolio-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .portfolio-card { aspect-ratio: 3/2; padding: 24px; }
  .portfolio-name { font-size: 20px; }

  /* ALL PROJECTS */
  .all-projects-grid { grid-template-columns: 1fr; }

  /* CLIENTS */
  .clients-track { gap: 32px; animation-duration: 25s; }
  .client-logo { min-width: 130px; }
  .client-logo img { max-width: 70px; max-height: 48px; }

  /* ABOUT */
  #about { padding: 80px 5%; }
  .about-quote { font-size: clamp(1.4rem, 5.5vw, 2rem); letter-spacing: -0.5px; }
  .about-bottom { flex-direction: column; gap: 32px; }

  /* TESTIMONIALS */
  .testi-grid { grid-template-columns: 1fr; }
  .testi-card { padding: 32px 24px; }
  .testi-quote-mark { font-size: 56px; }

  /* CTA */
  #cta { padding: 100px 5%; }
  .cta-headline { font-size: clamp(2.4rem, 10vw, 4rem); letter-spacing: -2px; margin-bottom: 40px; }
  .magnetic-btn { font-size: 12px; padding: 16px 32px; }

  /* CONTACT */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-info-title { font-size: 24px; }
  .form-row-grid { grid-template-columns: 1fr; gap: 0; }
  .submit-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .submit-btn { width: 100%; text-align: center; }

  /* LOCATION */
  .location-grid { grid-template-columns: 1fr; gap: 32px; }
  .location-details { grid-template-columns: 1fr; gap: 24px; }
  .location-map iframe { height: 220px; }
  .map-link {
    position: static;
    display: block;
    margin-top: 12px;
    text-align: center;
    width: 100%;
  }

  /* FOOTER */
  .footer-nav { gap: 16px; justify-content: center; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 8px; }

  /* WHATSAPP */
  .whatsapp-float { bottom: 16px; right: 16px; width: 50px; height: 50px; }
  .whatsapp-float svg { width: 24px; height: 24px; }
}
/* ── WHATSAPP FLOATING BUTTON ── */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 9000;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}
.whatsapp-float svg { display: block; }
.whatsapp-tooltip {
  position: absolute; right: 70px;
  background: var(--black); color: var(--white);
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 1px; white-space: nowrap;
  padding: 8px 14px;
  opacity: 0; pointer-events: none;
  transform: translateX(8px);
  transition: opacity 0.2s, transform 0.2s;
}
.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1; transform: translateX(0);
}

/* ── ALL PROJECTS PAGE ── */
.all-projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; background: var(--light-gray);
  margin-top: 64px;
}
.project-placeholder {
  grid-column: 1/-1;
  padding: 120px 40px; text-align: center;
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  color: var(--gray); letter-spacing: 2px; text-transform: uppercase;
  background: var(--white);
}

/* ── MOBILE MENU ── */
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .mobile-menu-overlay { display: block; }
  .nav-links {
    display: flex !important;
    position: fixed; top: 0; right: -100%; bottom: 0;
    width: min(300px, 80vw);
    background: var(--black);
    flex-direction: column; justify-content: center;
    gap: 4px; padding: 40px 32px;
    z-index: 9995;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid rgba(255,255,255,0.07);
    list-style: none;
  }
  .nav-links.open { right: 0; }
  .nav-links li a {
    font-size: 20px; font-weight: 500;
    font-family: 'Inter', sans-serif; letter-spacing: -0.5px;
    padding: 14px 0; display: block;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: var(--white);
  }
  .whatsapp-float { bottom: 16px; right: 16px; width: 50px; height: 50px; }
  .whatsapp-tooltip { display: none; }
  .all-projects-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   CODA Enhanced Animations
   ══════════════════════════════════════════ */

/* ── CUSTOM CURSOR ── */
#coda-cursor {
  position: fixed;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid #fff;
  outline: 1.5px solid #000;
  pointer-events: none;
  z-index: 999999;
  top: 0; left: 0;
  margin: -19px 0 0 -19px;
  transition: width 0.3s cubic-bezier(0.16,1,0.3,1),
              height 0.3s cubic-bezier(0.16,1,0.3,1),
              margin 0.3s cubic-bezier(0.16,1,0.3,1);
}
#coda-cursor-dot {
  position: fixed;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  outline: 1px solid #000;
  pointer-events: none;
  z-index: 999999;
  top: 0; left: 0;
  margin: -3px 0 0 -3px;
}
#coda-cursor.hover {
  width: 60px; height: 60px;
  margin: -30px 0 0 -30px;
  background: rgba(255,255,255,0.1);
}
#coda-cursor.click {
  width: 22px; height: 22px;
  margin: -11px 0 0 -11px;
}
body.light-section #coda-cursor {
  border-color: #000;
  outline-color: rgba(255,255,255,0.5);
}
body.light-section #coda-cursor-dot {
  background: #000;
  outline-color: rgba(255,255,255,0.5);
}
/* Cursor auto-switch handled via JS body class */

/* ── SCRAMBLE CHAR ── */
.scramble-char {
  color: rgba(255,255,255,0.25);
  font-weight: 400;
}
#services .scramble-char,
#process .scramble-char { color: rgba(0,0,0,0.2); }

/* ── REVEAL — enhanced ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1),
              transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Reveal variants */
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-scale { transform: scale(0.92); }
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible { transform: translateX(0) scale(1); }

/* ── HERO PARALLAX ── */
#hero { will-change: background-position; }
.hero-headline { will-change: transform; }

/* ── SERVICE ROW — number transition ── */
.svc-num {
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1),
              color 0.3s ease !important;
}

/* ── PORTFOLIO CARD — tilt ── */
.portfolio-card {
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1) !important;
}

/* ── PROCESS CARD — border glow on hover ── */
.process-card {
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.4s cubic-bezier(0.16,1,0.3,1);
  position: relative;
  overflow: hidden;
}
.process-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.03) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.process-card:hover {
  background: var(--white);
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}
.process-card:hover::after { opacity: 1; }

/* ── TESTIMONIAL CARD — smooth hover ── */
.testi-card {
  transition: background 0.4s ease, transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s ease;
}
.testi-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.12); }

/* ── NAV LINK underline — thicker ── */
.nav-links a::after {
  height: 1.5px;
  transition: width 0.4s cubic-bezier(0.16,1,0.3,1) !important;
}

/* ── CTA BUTTON — pulse ring ── */
.magnetic-btn {
  position: relative;
  overflow: hidden;
}
.magnetic-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--black);
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.76,0,0.24,1);
  z-index: 0;
}
.magnetic-btn:hover::before { transform: translateX(0); }
.magnetic-btn span,
.magnetic-btn { position: relative; z-index: 1; }
.magnetic-btn:hover { color: var(--white); }

/* ── ABOUT LIST ITEM — arrow bounce ── */
.about-list-item::before {
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
  display: inline-block;
}
.about-list-item:hover::before { transform: translateX(6px); }

/* ── SECTION LABEL — animated line ── */
.section-label::before {
  transition: width 0.6s cubic-bezier(0.16,1,0.3,1);
  width: 0;
}
.section-label.visible-label::before { width: 32px; }

/* ── CONTACT FORM FIELD — focus glow ── */
.form-field::after {
  transition: width 0.5s cubic-bezier(0.16,1,0.3,1) !important;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
}

/* ── WHATSAPP — pulse animation ── */
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: waPulse 2s ease-out infinite;
  z-index: -1;
}
@keyframes waPulse {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ── SMOOTH SECTION TRANSITIONS ── */
section { transition: background 0.3s ease; }

/* ── FOOTER LOGO HOVER ── */
.footer-logo-link {
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.3s ease;
}
.footer-logo-link:hover { transform: translateY(-4px); opacity: 0.8; }

/* ── CLIENT LOGO HOVER ── */
.client-logo {
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.client-logo:hover { transform: translateY(-4px) scale(1.05); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-thumb { background: linear-gradient(to bottom, #000, #555); }

/* ── SELECTION ── */
::selection { background: #000; color: #fff; }

/* ── HIDE CURSOR ON MOBILE ── */
@media (max-width: 768px) {
  body, a, button { cursor: auto !important; }
  #coda-cursor, #coda-cursor-dot { display: none !important; }
  #grain-canvas { display: none !important; }
  .hero-headline { will-change: unset !important; }
}