/* ============================================================
   TOUCHMOBI — Design System v2 ("Cinematic Editorial")
   Same brand palette, new layout language:
   full-bleed video hero, hairline rules, editorial rows,
   generous whitespace — no more stacked glass cards.
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors (brand — unchanged) */
  --bg-primary: #06060c;
  --bg-secondary: #0c0c16;
  --bg-surface: #12121f;
  --bg-card: #141423;
  --bg-card-hover: #1b1b30;

  --accent: #00d4aa;
  --accent-glow: rgba(0, 212, 170, 0.18);
  --accent-strong: rgba(0, 212, 170, 0.35);
  --accent-secondary: #7c3aed;
  --accent-secondary-glow: rgba(124, 58, 237, 0.15);
  --accent-tertiary: #f59e0b;

  --text-primary: #edeef2;
  --text-secondary: #a0a0b8;
  --text-muted: #656580;
  --text-on-accent: #06060c;

  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.22);

  /* Gradients */
  --gradient-hero: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(0, 212, 170, 0.09) 0%, transparent 60%),
                     radial-gradient(ellipse 40% 50% at 85% 60%, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
  --gradient-contact: radial-gradient(ellipse at center, rgba(0, 212, 170, 0.1) 0%, transparent 70%);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Sora', sans-serif;

  /* Spacing */
  --section-gap: 120px;
  --container-width: 1240px;
  --container-padding: 24px;

  /* Animation */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --transition-fast: 200ms ease;
  --transition-base: 350ms var(--ease-out-expo);

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { max-width: 100%; }

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

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

/* ---------- Section Shared ---------- */
.section {
  padding: var(--section-gap) 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 64px;
}

.section__tag {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section__tag::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  max-width: 720px;
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.65;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 15px 34px;
  border-radius: 100px;
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  position: relative;
}

.btn--primary {
  background: var(--accent);
  color: var(--text-on-accent);
  box-shadow: 0 0 40px var(--accent-glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px rgba(0, 212, 170, 0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

/* ---------- Link arrow (editorial) ---------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: gap var(--transition-fast);
}
.link-arrow:hover { gap: 14px; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background var(--transition-base), border-color var(--transition-base);
  border-bottom: 1px solid transparent;
}
.header--scrolled {
  background: rgba(6, 6, 12, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav__logo-img {
  display: block;
  height: 28px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav__link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-heading);
  transition: color var(--transition-fast);
}
.nav__link:hover { color: var(--text-primary); }
.nav__link--cta {
  padding: 9px 22px;
  border: 1px solid var(--accent-strong);
  border-radius: 100px;
  color: var(--accent);
  transition: all var(--transition-fast);
}
.nav__link--cta:hover {
  background: var(--accent);
  color: var(--text-on-accent);
}

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-base);
  border-radius: 2px;
}
.nav__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   HERO — full-bleed video background
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-primary);
}

/* Video layer: always has a designed gradient underneath, so the
   hero looks complete even before (or without) any video file. */
.hero__media {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.014) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 75%);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero__video.is-playing { opacity: 1; }

/* Readability overlay above the video */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(6, 6, 12, 0.92) 0%, rgba(6, 6, 12, 0.55) 55%, rgba(6, 6, 12, 0.35) 100%),
    linear-gradient(to top, var(--bg-primary) 0%, transparent 30%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 140px;
  padding-bottom: 48px;
}

.hero__tag {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__tag::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  max-width: 780px;
}
.hero__title-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 44px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Bottom bar inside hero: stats + clip indicator */
.hero__bar {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 64px;
}
.hero__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.hero__stats {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.hero__stat-value {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text-primary);
  display: block;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero__stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 8px;
  display: block;
}
.hero__stat-label--inline {
  color: var(--accent);
  margin: 0 8px;
}

/* Clip indicator dots */
.hero__clips {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.hero__clips-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 6px;
}
.hero__clip-dot {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  border: none;
  background: var(--border-strong);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition-fast);
}
.hero__clip-dot:hover { background: var(--text-secondary); }
.hero__clip-dot.active { background: var(--accent); }
.hero__clip-dot.is-dead { opacity: 0.25; pointer-events: none; }

/* ============================================================
   SERVICES — editorial rows
   ============================================================ */
.services-list {
  border-top: 1px solid var(--border);
}

.service-row {
  display: grid;
  grid-template-columns: 100px 1.1fr 1.4fr auto;
  gap: 40px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background var(--transition-base), padding var(--transition-base);
  position: relative;
}
.service-row:hover {
  background: linear-gradient(90deg, rgba(0, 212, 170, 0.04), transparent 60%);
}

.service-row__index {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  transition: color var(--transition-fast);
}
.service-row:hover .service-row__index { color: var(--accent); }

.service-row__title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.service-row__badge {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 10px;
}
.service-row__badge--secondary { color: #a78bfa; }
.service-row__badge--tertiary { color: #fbbf24; }

.service-row__meta {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}
.service-row__tags {
  display: block;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.service-row__arrow {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-hover);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-base);
  flex-shrink: 0;
}
.service-row:hover .service-row__arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-on-accent);
  transform: rotate(-45deg);
}
.service-row__arrow svg { width: 18px; height: 18px; }

/* ============================================================
   PHILOSOPHY — hairline columns
   ============================================================ */
.philosophy {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.philosophy__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.philosophy__card {
  padding: 8px 32px 8px 0;
  margin-right: 32px;
  border-right: 1px solid var(--border);
}
.philosophy__card:last-child {
  border-right: none;
  margin-right: 0;
}

.philosophy__number {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  display: block;
  margin-bottom: 20px;
}

.philosophy__card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.philosophy__card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   RESULTS — metric band
   ============================================================ */
.results__band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.result-card {
  padding: 56px 32px;
  border-right: 1px solid var(--border);
  transition: background var(--transition-base);
}
.result-card:last-child { border-right: none; }
.result-card:hover { background: rgba(255, 255, 255, 0.02); }

.result-card__metric {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 3.6vw, 3.4rem);
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.result-card__label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.result-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============================================================
   CTA
   ============================================================ */
.cta-section {
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-contact);
  pointer-events: none;
}

.cta__inner {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.cta__inner .section__tag { justify-content: center; }
.cta__inner .section__title { margin-left: auto; margin-right: auto; margin-bottom: 20px; }

.cta__desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin: 0 auto 44px;
  line-height: 1.65;
  max-width: 560px;
}

.cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   PAGE HERO (non-home pages)
   ============================================================ */
.page-hero {
  position: relative;
  padding: 190px 0 100px;
  overflow: hidden;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}
.page-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.014) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 75%);
}
.page-hero__content {
  position: relative;
  z-index: 2;
}
.page-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 760px;
}
.page-hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.65;
}

/* ============================================================
   SERVICE DETAIL (Services page)
   ============================================================ */
.service-detail {
  padding: 100px 0;
}
.service-detail--alt {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.service-detail__layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 72px;
  align-items: start;
}
.service-detail__layout--reverse {
  grid-template-columns: 360px 1fr;
}
.service-detail__layout--reverse .service-detail__visual {
  order: -1;
}

.service-detail__badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 18px;
}
.service-detail__badge--secondary { color: #a78bfa; }
.service-detail__badge--tertiary { color: #fbbf24; }

.service-detail__keywords {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.service-detail__desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 640px;
}

.service-detail__subheading {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.service-detail__list {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.service-detail__list li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  padding: 22px 0 22px 28px;
  border-top: 1px solid var(--border);
  border-left: 2px solid var(--accent-strong);
}
.service-detail__list li:last-child { border-bottom: 1px solid var(--border); }
.service-detail__list li strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-heading);
}

.service-detail__card {
  position: sticky;
  top: 110px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
}
.service-detail__icon-lg {
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
  color: var(--accent);
}
.service-detail__icon-lg svg {
  width: 100%;
  height: 100%;
}
.service-detail__card h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.service-detail__card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   ABOUT INTRO
   ============================================================ */
.about-intro {
  max-width: 780px;
}
.about-intro__lead {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
}
.about-intro__lead strong { color: var(--text-primary); font-weight: 600; }

/* ============================================================
   JOURNEY / TIMELINE
   ============================================================ */
.journey {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.timeline {
  position: relative;
  max-width: 860px;
}

.timeline__line {
  position: absolute;
  left: 108px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent-strong), var(--border), var(--accent-strong));
}

.timeline__item {
  display: flex;
  gap: 56px;
  position: relative;
}

.timeline__marker {
  flex-shrink: 0;
  width: 108px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-muted);
  line-height: 1;
  padding-top: 32px;
  position: relative;
  z-index: 1;
  text-align: right;
  transition: color var(--transition-fast);
}
.timeline__marker::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 42px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border-strong);
  transition: all var(--transition-fast);
}
.timeline__item:hover .timeline__marker { color: var(--accent); }
.timeline__item:hover .timeline__marker::after { border-color: var(--accent); }

.timeline__marker--active {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.timeline__marker--active::after {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

.timeline__content {
  flex: 1;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.timeline__item:last-child .timeline__content { border-bottom: none; }

.timeline__content h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.timeline__content p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 620px;
}

/* ============================================================
   WHY US
   ============================================================ */
.why-us__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.why-us__card {
  padding: 8px 32px 8px 0;
  margin-right: 32px;
  border-right: 1px solid var(--border);
}
.why-us__card:last-child {
  border-right: none;
  margin-right: 0;
}

.why-us__card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  color: var(--accent);
}
.why-us__card-icon svg {
  width: 100%;
  height: 100%;
}

.why-us__card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.why-us__card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   TECH STACK
   ============================================================ */
.tech {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tech__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.tech__item {
  padding: 32px 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-base);
}
.tech__item:hover { background: rgba(0, 212, 170, 0.04); }

.tech__name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.tech__detail {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   CONTACT PAGE LAYOUT
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.contact-info__heading {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 36px;
}

.contact-info__methods {
  display: flex;
  flex-direction: column;
  margin-bottom: 44px;
  border-top: 1px solid var(--border);
}

.contact-info__method {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-primary);
  transition: padding var(--transition-base);
}
a.contact-info__method:hover { padding-left: 8px; }

.contact-info__icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-hover);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-info__icon svg {
  width: 18px;
  height: 18px;
}

.contact-info__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.contact-info__value {
  display: block;
  font-size: 1rem;
  font-weight: 500;
}

.contact-info__address h3,
.contact-info__social h3 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  color: var(--text-primary);
}
.contact-info__address {
  margin-bottom: 40px;
}
.contact-info__address address {
  font-style: normal;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.contact-info__social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.contact-info__social-link {
  font-size: 0.88rem;
  color: var(--accent);
  text-decoration: none;
  padding: 9px 18px;
  border: 1px solid var(--accent-strong);
  border-radius: 100px;
  transition: all var(--transition-fast);
  font-weight: 500;
}
.contact-info__social-link:hover {
  background: var(--accent);
  color: var(--text-on-accent);
}

/* Contact Form */
.contact-form__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
}
.contact-form__heading {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.contact-form__subtext {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.6;
}

.form-group { margin-bottom: 22px; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 9px;
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
}
.form-input {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}
.form-input:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-input::placeholder { color: var(--text-muted); }

.form-textarea {
  resize: vertical;
  min-height: 130px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23656580' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-select option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 80px 0 36px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer__logo {
  display: inline-block;
  margin-bottom: 16px;
}
.footer__logo img {
  display: block;
  height: 26px;
  width: auto;
}

.footer__tagline {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 500;
  font-family: var(--font-heading);
}

.footer__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 360px;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 12px; }
.footer__col a {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__address { font-style: normal; }

/* ============================================================
   SCROLL REVEAL — gated behind .js so a broken script
   can never hide content (the live-server bug fix).
   ============================================================ */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out-expo),
              transform 0.7s var(--ease-out-expo);
}
html.js [data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.services__grid [data-reveal]:nth-child(1),
.why-us__grid [data-reveal]:nth-child(1),
.tech__grid [data-reveal]:nth-child(4n+1) { transition-delay: 0ms; }
.why-us__grid [data-reveal]:nth-child(2),
.tech__grid [data-reveal]:nth-child(4n+2) { transition-delay: 80ms; }
.why-us__grid [data-reveal]:nth-child(3),
.tech__grid [data-reveal]:nth-child(4n+3) { transition-delay: 160ms; }
.why-us__grid [data-reveal]:nth-child(4),
.tech__grid [data-reveal]:nth-child(4n+4) { transition-delay: 240ms; }

.philosophy__grid [data-reveal]:nth-child(1) { transition-delay: 0ms; }
.philosophy__grid [data-reveal]:nth-child(2) { transition-delay: 100ms; }
.philosophy__grid [data-reveal]:nth-child(3) { transition-delay: 200ms; }
.philosophy__grid [data-reveal]:nth-child(4) { transition-delay: 300ms; }

.results__band [data-reveal]:nth-child(1) { transition-delay: 0ms; }
.results__band [data-reveal]:nth-child(2) { transition-delay: 100ms; }
.results__band [data-reveal]:nth-child(3) { transition-delay: 200ms; }
.results__band [data-reveal]:nth-child(4) { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .service-row {
    grid-template-columns: 60px 1fr auto;
    gap: 24px;
  }
  .service-row__meta {
    grid-column: 2;
    grid-row: 2;
  }

  .philosophy__grid,
  .why-us__grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 48px;
  }
  .philosophy__card:nth-child(2n),
  .why-us__card:nth-child(2n) {
    border-right: none;
    margin-right: 0;
  }

  .results__band {
    grid-template-columns: repeat(2, 1fr);
  }
  .result-card:nth-child(2n) { border-right: none; }
  .result-card:nth-child(-n+2) { border-bottom: 1px solid var(--border); }

  .tech__grid { grid-template-columns: repeat(2, 1fr); }

  .footer__grid { grid-template-columns: 1fr 1fr; }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .service-detail__layout,
  .service-detail__layout--reverse {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .service-detail__layout--reverse .service-detail__visual { order: 0; }
  .service-detail__card { position: static; }

  .hero__bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  :root { --section-gap: 88px; }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(12, 12, 22, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 36px;
    transition: right var(--transition-base);
    border-left: 1px solid var(--border);
  }
  .nav__links.active { right: 0; }
  .nav__toggle { display: flex; }

  .hero__content { padding-top: 120px; }
  .hero__stats { gap: 32px; }
  .hero__stat-value { font-size: 1.5rem; }

  .service-row {
    grid-template-columns: 1fr auto;
    padding: 36px 0;
  }
  .service-row__index { display: none; }
  .service-row__meta { grid-column: 1 / -1; grid-row: 2; }
  .service-row__arrow { grid-row: 1; grid-column: 2; }

  .philosophy__grid,
  .why-us__grid,
  .tech__grid {
    grid-template-columns: 1fr;
  }
  .philosophy__card,
  .why-us__card {
    border-right: none;
    margin-right: 0;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
  }
  .philosophy__card:last-child,
  .why-us__card:last-child { border-bottom: none; }

  .results__band { grid-template-columns: 1fr; }
  .result-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 40px 24px;
  }
  .result-card:last-child { border-bottom: none; }

  .timeline__item { gap: 28px; }
  .timeline__marker {
    width: 72px;
    font-size: 1.1rem;
  }
  .timeline__line { left: 72px; }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .contact-form__card { padding: 32px 24px; }
  .about-intro__lead { font-size: 1.05rem; }
  .page-hero { padding: 150px 0 72px; }
}

@media (max-width: 480px) {
  .hero__actions,
  .cta__actions {
    flex-direction: column;
  }
  .btn { justify-content: center; }
  .hero__clips { display: none; }
  .section__title { font-size: 1.8rem; }
}
