/* ============================================
   PIXELPULSE INFOSOLUTION — DESIGN SYSTEM
   ============================================ */

:root {
  /* Colors */
  --navy: #0A1F44;
  --navy-deep: #061230;
  --navy-soft: #1a3060;
  --orange: #F78F1E;
  --orange-deep: #E07816;
  --orange-soft: #FFB658;
  --cream: #F5F1EA;
  --cream-light: #FAF7F2;
  --ink: #0B1220;
  --ink-soft: #2a3142;
  --muted: #6b7280;
  --line: rgba(10, 31, 68, 0.12);
  --line-strong: rgba(10, 31, 68, 0.22);

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Spacing */
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);

  /* Radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 31, 68, 0.06), 0 2px 8px rgba(10, 31, 68, 0.04);
  --shadow-md: 0 4px 12px rgba(10, 31, 68, 0.08), 0 12px 32px rgba(10, 31, 68, 0.06);
  --shadow-lg: 0 20px 50px rgba(10, 31, 68, 0.18);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  cursor: none;
}

@media (max-width: 900px) {
  body { cursor: auto; }
}

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

/* ===== Typography ===== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--orange);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}

.h-display {
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.h-xl { font-size: clamp(40px, 5.5vw, 76px); line-height: 1.0; letter-spacing: -0.03em; }
.h-lg { font-size: clamp(28px, 3.5vw, 44px); }
.h-md { font-size: clamp(20px, 2vw, 28px); }

.lead {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 60ch;
  text-wrap: pretty;
}

/* ===== Layout ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
}

.section {
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--navy);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(247, 143, 30, 0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-ghost:hover {
  background: var(--navy);
  color: var(--cream);
}
.btn .arrow {
  transition: transform 0.4s var(--ease);
}
.btn:hover .arrow {
  transform: translateX(4px);
}

/* ===== Custom Cursor ===== */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 4px; height: 4px;
  background: var(--orange);
  border-radius: 50%;
  transition: width 0.15s, height 0.15s, background 0.15s;
}
.cursor-ring {
  width: 22px; height: 22px;
  border: 1.5px solid var(--cream);
  border-radius: 50%;
  transition: width 0.2s var(--ease), height 0.2s var(--ease), border-color 0.15s;
}
.cursor-dot.hover { width: 8px; height: 8px; }
.cursor-ring.hover {
  width: 38px; height: 38px;
  border-color: var(--orange);
}

.pixel-trail {
  position: fixed;
  width: 3px;
  height: 3px;
  pointer-events: none;
  z-index: 9998;
  transition: opacity 0.4s linear, transform 0.4s var(--ease-out);
}

/* ===== Reveal animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.reveal-clip {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s var(--ease-out);
}
.reveal-clip.in {
  clip-path: inset(0 0 0 0);
}

/* ===== Grid background pattern ===== */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* ===== Pixel decorations ===== */
.pixel-cluster {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(4, 6px);
  gap: 3px;
  pointer-events: none;
}
.pixel-cluster span {
  width: 6px; height: 6px;
  background: var(--orange);
  opacity: 0;
  animation: pixelPop 2s var(--ease) infinite;
}
.pixel-cluster span:nth-child(1) { animation-delay: 0.0s; }
.pixel-cluster span:nth-child(2) { animation-delay: 0.1s; background: var(--navy); }
.pixel-cluster span:nth-child(3) { animation-delay: 0.2s; }
.pixel-cluster span:nth-child(4) { animation-delay: 0.3s; }
.pixel-cluster span:nth-child(5) { animation-delay: 0.4s; background: var(--navy); }
.pixel-cluster span:nth-child(6) { animation-delay: 0.5s; }

@keyframes pixelPop {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  50% { opacity: 1; transform: scale(1); }
}

/* ===== Loader ===== */
.loader {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 32px;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.loader.done {
  opacity: 0;
  visibility: hidden;
}
.loader-rings {
  position: relative;
  width: 100px;
  height: 100px;
}
.loader-rings span {
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}
.loader-rings span:nth-child(2) {
  inset: 12px;
  border-top-color: var(--cream);
  animation-duration: 1.6s;
  animation-direction: reverse;
}
.loader-rings span:nth-child(3) {
  inset: 26px;
  border-top-color: var(--orange);
  animation-duration: 0.8s;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loader-text {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--cream);
  text-transform: uppercase;
}
.loader-progress {
  width: 200px;
  height: 1px;
  background: rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}
.loader-progress::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--orange);
  transform-origin: left;
  animation: loadFill 1.8s var(--ease) forwards;
}
@keyframes loadFill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 40px);
  max-width: 1280px;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(10, 31, 68, 0.95);
  border-color: rgba(255,255,255,0.1);
}
.nav.scrolled .nav-link { color: var(--cream); }
.nav.scrolled .nav-link:hover { color: var(--orange); }
.nav.scrolled .logo-text { color: var(--cream); }
.nav.scrolled .nav-cta {
  background: var(--orange);
  color: var(--navy);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
}
.nav-logo img {
  height: 32px;
  width: auto;
  transition: opacity 0.3s var(--ease);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  border-radius: 999px;
  transition: all 0.3s var(--ease);
  position: relative;
}
.nav-link:hover {
  color: var(--orange);
}
.nav-link.active::before {
  content: '';
  position: absolute;
  left: 16px; right: 16px;
  bottom: 4px;
  height: 2px;
  background: var(--orange);
}

.nav-cta {
  background: var(--navy);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-cta:hover {
  background: var(--orange);
  color: var(--navy);
}

.nav-burger {
  display: none;
  width: 36px; height: 36px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.nav-burger span {
  width: 18px; height: 1.5px;
  background: var(--navy);
  transition: all 0.3s var(--ease);
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav.scrolled .nav-burger span { background: var(--cream); }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease);
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
}
.mobile-menu a:hover { color: var(--orange); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  position: relative;
  z-index: 2;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(56px, 11vw, 180px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--navy);
}
.hero-headline .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.hero-headline .word > span {
  display: inline-block;
  transform: translateY(110%);
  animation: wordRise 1s var(--ease-out) forwards;
}
.hero-headline .accent {
  color: var(--orange);
  font-style: italic;
  font-weight: 400;
}
.hero-headline .strike {
  position: relative;
  display: inline-block;
}
.hero-headline .strike::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 55%;
  height: 6px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  animation: strikeIn 0.8s var(--ease-out) 1.4s forwards;
}
@keyframes wordRise {
  to { transform: translateY(0); }
}
@keyframes strikeIn {
  to { transform: scaleX(1); }
}

.hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.hero-meta-block .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  display: block;
}
.hero-meta-block .value {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--navy);
  max-width: 36ch;
}

@media (max-width: 800px) {
  .hero-meta { grid-template-columns: 1fr; gap: 24px; }
}

/* Hero target/concentric circles */
.hero-target {
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 700px;
  height: 700px;
  pointer-events: none;
  z-index: 1;
}
.hero-target svg {
  width: 100%; height: 100%;
  animation: slowSpin 60s linear infinite;
}
.hero-target .static {
  position: absolute;
  inset: 0;
}
@keyframes slowSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1100px) {
  .hero-target { right: -250px; opacity: 0.4; }
}

.hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 30px;
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 2;
}
.hero-scroll-hint .line {
  width: 60px; height: 1px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.hero-scroll-hint .line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--orange);
  animation: scrollHint 2s var(--ease) infinite;
  transform-origin: left;
}
@keyframes scrollHint {
  0%   { transform: scaleX(0); transform-origin: left; }
  50%  { transform: scaleX(1); transform-origin: left; }
  51%  { transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* ===== Marquee Ticker ===== */
.marquee {
  background: var(--navy);
  color: var(--cream);
  padding: 20px 0;
  overflow: hidden;
  border-top: 1px solid var(--navy-soft);
  border-bottom: 1px solid var(--navy-soft);
}
.marquee-track {
  display: flex;
  gap: 60px;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-item {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 60px;
}
.marquee-item .dot {
  width: 12px; height: 12px;
  background: var(--orange);
  border-radius: 50%;
  display: inline-block;
}
.marquee-item.muted {
  color: transparent;
  -webkit-text-stroke: 1px var(--cream);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ===== Services ===== */
.services {
  background: var(--cream-light);
  position: relative;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
  align-items: end;
}
@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}

.section-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-num::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--orange);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  perspective: 1500px;
}
@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.6s var(--ease-out), box-shadow 0.4s var(--ease);
  transform-style: preserve-3d;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}
.service-card:hover .service-num,
.service-card:hover .service-arrow { color: var(--orange); }
.service-card:hover .service-tags span { border-color: rgba(255,255,255,0.2); color: var(--cream); }
.service-card:hover .service-title { color: var(--cream); }
.service-card:hover .service-desc { color: rgba(245,241,234,0.7); }

.service-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--muted);
  transform: translateZ(20px);
  transition: color 0.4s;
}
.service-icon {
  width: 56px; height: 56px;
  margin: 24px 0;
  transform: translateZ(40px);
}
.service-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 12px;
  transform: translateZ(30px);
  transition: color 0.4s;
  line-height: 1.1;
}
.service-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  transform: translateZ(20px);
  transition: color 0.4s;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
  transform: translateZ(15px);
}
.service-tags span {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: all 0.4s;
}
.service-arrow {
  position: absolute;
  top: 28px; right: 28px;
  font-size: 24px;
  color: var(--navy);
  transition: transform 0.4s var(--ease), color 0.4s;
  transform: translateZ(50px) rotate(-45deg);
}
.service-card:hover .service-arrow {
  transform: translateZ(50px) rotate(0deg);
}

.service-card .corner-pixel {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: grid;
  grid-template-columns: repeat(3, 4px);
  gap: 2px;
  opacity: 0.4;
}
.service-card .corner-pixel span {
  width: 4px; height: 4px;
  background: currentColor;
}

/* ===== Pulse waveform ===== */
.pulse-section {
  background: var(--navy);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.pulse-section h2 { color: var(--cream); }
.pulse-section .lead { color: rgba(245,241,234,0.65); }

.pulse-canvas {
  width: 100%;
  height: 280px;
  margin: 60px 0;
  position: relative;
}

.pulse-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  overflow: hidden;
}
@media (max-width: 800px) { .pulse-services-grid { grid-template-columns: repeat(2, 1fr); } }

.pulse-pill {
  background: var(--navy);
  padding: 28px 24px;
  cursor: pointer;
  transition: background 0.3s var(--ease);
  position: relative;
}
.pulse-pill:hover, .pulse-pill.active {
  background: var(--navy-soft);
}
.pulse-pill .pp-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--orange);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}
.pulse-pill .pp-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
}
.pulse-pill .pp-dot {
  position: absolute;
  top: 28px; right: 24px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: all 0.3s;
}
.pulse-pill:hover .pp-dot, .pulse-pill.active .pp-dot {
  background: var(--orange);
  box-shadow: 0 0 12px var(--orange);
}

/* ===== About / Stats ===== */
.about {
  position: relative;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: 60px;
}
.stat {
  background: var(--cream);
  padding: 36px 28px;
  position: relative;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--navy);
  line-height: 1;
  display: flex;
  align-items: baseline;
}
.stat-num .suffix {
  font-size: 0.5em;
  color: var(--orange);
  margin-left: 4px;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
}

.about-image {
  background: var(--navy);
  border-radius: var(--r-lg);
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 8px, rgba(247,143,30,0.08) 8px 9px),
    radial-gradient(circle at 70% 30%, rgba(247,143,30,0.15), transparent 50%);
}
.about-image-label {
  position: absolute;
  top: 24px; left: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--orange);
  letter-spacing: 0.2em;
}
.about-image-glyph {
  position: relative;
  z-index: 2;
  width: 70%;
  aspect-ratio: 1;
}

/* ===== Testimonials ===== */
.testimonials {
  background: var(--cream-light);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 800px) { .testimonials-grid { grid-template-columns: 1fr; } }

.t-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px;
  position: relative;
  perspective: 1200px;
  min-height: 320px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.8s var(--ease-out);
}
.t-card:hover {
  transform: rotateY(180deg);
}
.t-face {
  position: absolute;
  inset: 0;
  padding: 40px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
}
.t-front {
  background: var(--cream);
}
.t-back {
  background: var(--navy);
  color: var(--cream);
  transform: rotateY(180deg);
  justify-content: center;
  align-items: center;
  text-align: center;
}
.t-quote-mark {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 0.6;
  color: var(--orange);
  margin-bottom: 12px;
}
.t-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  flex: 1;
}
.t-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.t-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}
.t-name { font-weight: 600; font-size: 14px; color: var(--navy); }
.t-role { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }

.t-back .t-rating {
  color: var(--orange);
  letter-spacing: 4px;
  font-size: 18px;
  margin-bottom: 16px;
}
.t-back .t-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.t-back .t-headline {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.t-back .t-meta {
  font-size: 13px;
  color: rgba(245,241,234,0.6);
}

/* ===== Careers ===== */
.careers {
  background: var(--navy);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.careers h2 { color: var(--cream); }
.careers .lead { color: rgba(245,241,234,0.65); }
.careers .section-num { color: rgba(245,241,234,0.5); }

.careers-list {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
}
.career-row {
  display: grid;
  grid-template-columns: 80px 2fr 1fr 1fr 60px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: padding 0.4s var(--ease), background 0.4s;
  position: relative;
  cursor: pointer;
}
.career-row::before {
  content: '';
  position: absolute;
  left: -100%;
  top: 0; bottom: 0;
  width: 100%;
  background: var(--orange);
  transition: left 0.5s var(--ease);
  z-index: 0;
}
.career-row:hover::before { left: 0; }
.career-row:hover > * { color: var(--navy); position: relative; z-index: 1; }
.career-row:hover { padding-left: 24px; padding-right: 24px; }

.career-row > * { transition: color 0.4s; }
.c-num { font-family: var(--font-mono); font-size: 12px; color: rgba(245,241,234,0.5); }
.c-title { font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.c-meta { font-family: var(--font-mono); font-size: 12px; color: rgba(245,241,234,0.6); letter-spacing: 0.05em; }
.c-arrow { text-align: right; font-size: 22px; }

@media (max-width: 800px) {
  .career-row { grid-template-columns: 50px 1fr 40px; gap: 12px; }
  .c-meta { display: none; }
  .c-title { font-size: 18px; }
}

/* ===== Contact ===== */
.contact {
  background: var(--cream-light);
  position: relative;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-form {
  display: grid;
  gap: 20px;
}
.field {
  position: relative;
}
.field input, .field textarea {
  width: 100%;
  padding: 18px 0 14px;
  font-family: var(--font-body);
  font-size: 16px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  color: var(--navy);
  resize: none;
  outline: none;
  transition: border-color 0.3s;
}
.field input:focus, .field textarea:focus { border-color: var(--orange); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field label {
  position: absolute;
  top: 18px; left: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
  transition: all 0.3s var(--ease);
}
.field.has-value label, .field input:focus + label, .field textarea:focus + label {
  top: -2px;
  font-size: 9px;
  color: var(--orange);
}

.contact-info {
  border-left: 1px solid var(--line);
  padding-left: 40px;
}
.info-block {
  margin-bottom: 32px;
}
.info-block .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.info-block .val {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--navy);
  line-height: 1.4;
  word-break: break-word;
}
.info-block a:hover { color: var(--orange); }

.socials {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.socials a {
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.socials a:hover {
  background: var(--navy);
  color: var(--orange);
  border-color: var(--navy);
  transform: translateY(-2px);
}

/* ===== Footer ===== */
.footer {
  background: var(--navy-deep);
  color: var(--cream);
  padding: 60px 0 30px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.footer-logo img { height: 40px; filter: brightness(0) invert(1); }
.footer p { font-size: 14px; color: rgba(245,241,234,0.6); max-width: 38ch; }

.footer-meta {
  margin-top: 22px;
  display: grid;
  gap: 6px;
}
.footer-meta .fm-line {
  font-size: 14px;
  color: rgba(245,241,234,0.7);
}
.footer-meta .fm-line strong {
  color: var(--cream);
  font-weight: 500;
}
.footer-meta .fm-gstin {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(247,143,30,0.85);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--cream);
  margin-bottom: 22px;
  font-weight: 600;
}
.footer-col ul { list-style: none; display: grid; gap: 14px; }
.footer-col a {
  font-size: 15px;
  color: rgba(245,241,234,0.7);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--orange); }

.footer-contact-list { display: grid; gap: 18px; }
.footer-contact-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: start;
  gap: 12px;
  font-size: 14px;
  color: rgba(245,241,234,0.7);
  line-height: 1.55;
}
.footer-contact-list .fc-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  margin-top: 2px;
}
.footer-contact-list a {
  color: rgba(245,241,234,0.85);
  transition: color 0.2s;
}
.footer-contact-list a:hover { color: var(--orange); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  font-size: 13px;
  color: rgba(245,241,234,0.5);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom-links {
  display: flex;
  gap: 28px;
}
.footer-bottom-links a {
  font-size: 13px;
  color: rgba(245,241,234,0.7);
  transition: color 0.2s;
}
.footer-bottom-links a:hover { color: var(--orange); }

/* Big watermark name */
.watermark {
  font-family: var(--font-display);
  font-size: clamp(80px, 18vw, 280px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.08);
  margin-top: 60px;
  white-space: nowrap;
  overflow: hidden;
  text-align: center;
}

/* ===== Legal pages (privacy / terms) ===== */
.legal-page {
  padding: 160px 0 100px;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
}
.legal-page .legal-head { margin-bottom: 60px; }
.legal-page .legal-head .h-xl {
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.95;
  margin: 14px 0 24px;
  color: var(--navy);
}
.legal-page .legal-head .lead {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.legal-body {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.legal-body h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--navy);
  margin: 48px 0 14px;
  letter-spacing: -0.01em;
}
.legal-body p { margin: 0 0 18px; }
.legal-body ul {
  margin: 0 0 22px;
  padding-left: 22px;
  list-style: disc;
}
.legal-body li { margin-bottom: 10px; }
.legal-body strong { color: var(--navy); font-weight: 600; }
.legal-body a {
  color: var(--orange);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.legal-body a:hover { color: var(--navy); }

/* Utility */
.split-text { display: inline-block; }
.split-text .char {
  display: inline-block;
  transition: color 0.3s, transform 0.3s var(--ease);
}
.split-text:hover .char {
  animation: charBounce 0.6s var(--ease);
}
@keyframes charBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); color: var(--orange); }
}
