/* ==========================================================================
   MAHESWARI INFRATEL — Brand-aligned light theme
   Palette: navy #1A2C42 · steel #3D5A78 · crimson #D32027 · cream #F6F3EC
   ========================================================================== */

@import url('https://api.fontshare.com/v2/css?f[]=satoshi@900,700,500,400&f[]=general-sans@600,500,400&f[]=jetbrains-mono@500,400&display=swap');

:root {
  /* Surfaces */
  --bg: #F4F1EA;            /* warm cream */
  --bg-2: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #ECEEF2;     /* very pale blue-gray */
  --surface-3: #E2E6EC;
  --line: rgba(26, 44, 66, 0.10);
  --line-strong: rgba(26, 44, 66, 0.22);

  /* Brand */
  --navy: #1A2C42;          /* logo deep navy */
  --navy-2: #2A4060;
  --steel: #3D5A78;         /* logo mid blue */
  --steel-2: #6B829B;
  --crimson: #D32027;       /* logo red */
  --crimson-2: #B01A20;
  --crimson-soft: rgba(211, 32, 39, 0.08);

  /* Text */
  --text: var(--navy);
  --text-2: #3D5A78;
  --muted: #6F8499;
  --muted-2: #9DAEC0;

  /* Aliases */
  --accent: var(--crimson);
  --accent-2: var(--crimson-2);
  --accent-line: rgba(211, 32, 39, 0.5);

  --grad-navy: linear-gradient(135deg, #1A2C42 0%, #3D5A78 60%, #6B829B 100%);
  --grad-accent: linear-gradient(135deg, #D32027 0%, #FF4F56 100%);

  --font-display: 'Satoshi', 'Inter', system-ui, sans-serif;
  --font-body: 'General Sans', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --shadow-card: 0 12px 40px -16px rgba(26, 44, 66, 0.18);
  --shadow-glow: 0 20px 50px -16px rgba(211, 32, 39, 0.45);

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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
  overflow-x: hidden;
  cursor: none;
}
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; color: inherit; font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; background: none; border: none; outline: none; }

/* Background grid + soft glow ---------------------------------------- */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(26,44,66,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,44,66,0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
  z-index: 1;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
}

/* Custom cursor ------------------------------------------------------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot { width: 6px; height: 6px; background: var(--crimson); }
.cursor-ring {
  width: 32px; height: 32px;
  border: 1.5px solid rgba(26, 44, 66, 0.32);
  transition: width .25s var(--ease), height .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.cursor-ring.is-hover {
  width: 56px; height: 56px;
  border-color: var(--crimson);
  background: rgba(211,32,39,0.06);
}
@media (max-width: 900px) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* Scroll progress + loader ------------------------------------------- */
.scroll-progress {
  position: fixed; left: 0; top: 0;
  height: 2px; width: 0;
  background: var(--grad-accent);
  z-index: 200;
  transition: width 0.1s linear;
}
.loader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 1000;
  display: grid; place-items: center;
  transition: opacity 0.45s var(--ease), visibility 0.45s var(--ease);
  cursor: none;
}
.loader.is-done { opacity: 0; visibility: hidden; }
/* Hide custom cursor while loader is covering the screen */
.loader:not(.is-done) ~ .cursor-dot,
.loader:not(.is-done) ~ .cursor-ring { opacity: 0; }
.loader-mark {
  position: relative;
  animation: loaderIn 0.6s var(--ease) both;
}
.loader-logo {
  display: block;
  width: clamp(200px, 38vw, 340px);
  height: auto;
}
.loader-mark::after {
  content: ''; position: absolute; bottom: -10px; left: 0;
  height: 2px; background: var(--crimson);
  width: 0; animation: load 0.9s var(--ease) forwards;
}
@keyframes loaderIn {
  from { opacity: 0; transform: translateY(10px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes load { to { width: 100%; } }

/* Layout shell ------------------------------------------------------- */
.shell {
  position: relative; z-index: 5;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3.5vw, 3rem);
}

/* Navigation --------------------------------------------------------- */
.nav {
  position: fixed; top: 0.9rem; left: 0.9rem; right: 0.9rem;
  z-index: 100;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  box-shadow: 0 8px 28px -16px rgba(26,44,66,0.18);
}
.nav.is-hidden { transform: translateY(-150%); opacity: 0; }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.55rem 0.7rem 0.55rem 1rem;
  gap: 1rem;
}
.nav-brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--navy);
  flex-shrink: 0;
}
.nav-logo { height: 34px; width: auto; }
@media (max-width: 600px) { .nav-logo { height: 26px; } }
.nav-brand-text { display: none; }
.nav-links {
  display: none;
  gap: 1.6rem; align-items: center;
}
@media (min-width: 800px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: 0.875rem;
  color: var(--text-2);
  transition: color 0.2s var(--ease);
  font-weight: 500;
}
.nav-links a:hover { color: var(--crimson); }
.nav-cta {
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.85rem;
  padding: 0.7rem 1.25rem;
  background: var(--crimson);
  color: #fff;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--crimson-2); transform: translateY(-1px); box-shadow: var(--shadow-glow); }

/* Hamburger toggle --------------------------------------------------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px 10px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  transform-origin: center;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav panel --------------------------------------------------- */
.nav-mobile-panel {
  display: none;
  flex-direction: column;
  padding: 0.5rem 0.75rem 0.85rem;
  gap: 0.15rem;
  border-top: 1px solid var(--line);
}
.nav-mobile-panel.is-open { display: flex; }
.nav-mobile-panel a {
  font-size: 0.975rem;
  color: var(--text-2);
  font-weight: 500;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-mobile-panel a:hover { color: var(--navy); background: rgba(26,44,66,0.05); }
.nav-mobile-cta {
  margin-top: 0.5rem;
  background: var(--crimson) !important;
  color: #fff !important;
  text-align: center;
  border-radius: 999px !important;
  font-family: var(--font-display);
  font-weight: 700;
}
.nav-mobile-cta:hover { background: var(--crimson-2) !important; }

/* Switch to hamburger on mobile -------------------------------------- */
@media (max-width: 800px) {
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav.nav-open { border-radius: 1.2rem; }
}

/* Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 600px;
  height: 100vh;
  max-height: 920px;
  display: flex; align-items: center;
  padding: 6rem 0 2rem;
  overflow: hidden;
}
.hero-canvas {
  position: absolute; inset: 0;
  z-index: 0;
  opacity: 0.85;
}
.hero-glow {
  position: absolute; pointer-events: none;
  width: 50vw; height: 50vw;
  border-radius: 50%;
  filter: blur(120px);
  background: radial-gradient(circle, rgba(211,32,39,0.18), transparent 60%);
  top: -15vw; right: -15vw;
  z-index: 1;
}
.hero-glow-2 {
  position: absolute; pointer-events: none;
  width: 50vw; height: 50vw;
  border-radius: 50%;
  filter: blur(140px);
  background: radial-gradient(circle, rgba(61,90,120,0.20), transparent 60%);
  bottom: -20vw; left: -15vw;
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 3;
  display: flex; flex-direction: column;
  gap: 1.1rem;
  width: 100%;
  max-width: 1100px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255,255,255,0.5);
  width: fit-content;
}
.hero-eyebrow::before {
  content: ''; width: 6px; height: 6px;
  background: var(--crimson); border-radius: 50%;
  box-shadow: 0 0 10px var(--crimson);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.4; } }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 5.2vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--navy);
  margin: 0;
  max-width: 100%;
  word-wrap: break-word;
}
.hero h1 .em {
  font-style: italic;
  font-weight: 700;
  padding-right: 0.05em;
}
.hero h1 .steel { padding-right: 0.05em; }
.hero-line {
  display: block;
  /* extend bottom so descenders aren't clipped during the slide-in */
  clip-path: inset(-0.05em -0.25em -0.25em -0.1em);
  padding-bottom: 0.1em;
}
.hero-line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: hero-slide-in 1.05s cubic-bezier(0.16,1,0.3,1) forwards;
  will-change: transform;
}
.hero-line:nth-child(1) > span { animation-delay: 0.35s; }
.hero-line:nth-child(2) > span { animation-delay: 0.45s; }
@keyframes hero-slide-in { to { transform: translateY(0); } }

.hero-sub {
  max-width: 60ch;
  font-size: clamp(0.95rem, 1.1vw, 1.075rem);
  color: var(--text-2);
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; margin-top: 0.5rem; }

/* Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.95rem 1.45rem;
  border-radius: 999px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn-primary { background: var(--crimson); color: #fff; }
.btn-primary:hover { background: var(--crimson-2); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-primary .arrow { transition: transform 0.3s var(--ease); }
.btn-primary:hover .arrow { transform: translate(3px, -3px); }
.btn-ghost { color: var(--navy); border: 1.5px solid var(--line-strong); background: rgba(255,255,255,0.5); }
.btn-ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.hero-stats {
  display: flex; gap: 2rem; flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-top: 0.5rem;
}
.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 0.15rem;
  text-transform: none;
}
@media (max-height: 760px) {
  .hero-stats { display: none; }
}
@media (max-width: 700px) {
  .hero { height: auto; min-height: 100vh; padding-top: 7rem; padding-bottom: 4rem; }
  .hero-stats { gap: 1.25rem; }
}

/* Sections ----------------------------------------------------------- */
.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  position: relative; z-index: 5;
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--crimson);
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 0.85rem;
}
.section-tag::before {
  content: ''; width: 28px; height: 1px; background: var(--crimson);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.65rem, 4.6vw, 3.8rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  max-width: 22ch;
  color: var(--navy);
  overflow: visible;
  padding-bottom: 0.05em;
}
.section-title .em { font-style: italic; font-weight: 700; }
.section-title .steel { font-weight: 900; }

/* Animated highlighted text — shimmer always active ------------------ */
.em, .steel {
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shine 5s linear infinite;
  display: inline-block;
  padding-bottom: 0.14em;
  padding-right: 0.22em;
  margin-bottom: -0.14em;
  overflow: visible;
}
.em {
  background-image: linear-gradient(
    100deg,
    #B01A20 0%,
    #D32027 25%,
    #FF8A8A 45%,
    #FFFFFF 50%,
    #FF8A8A 55%,
    #D32027 75%,
    #B01A20 100%
  );
}
.steel {
  background-image: linear-gradient(
    100deg,
    #1A2C42 0%,
    #2A4060 25%,
    #6B829B 45%,
    #B7C7D6 50%,
    #6B829B 55%,
    #2A4060 75%,
    #1A2C42 100%
  );
  animation-duration: 6s;
}
@keyframes shine {
  0%   { background-position: 200% 0; }
  100% { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .em, .steel { animation: none; background-position: 0 0; }
}
.section-lede {
  max-width: 60ch;
  color: var(--text-2);
  font-size: 1.02rem;
  margin-bottom: 3rem;
}

/* Section header split (text left, image right) ---------------------- */
.section-header-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 3.5rem;
}
.section-header-text .section-lede { margin-bottom: 0; }
.section-header-img {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface);
  border: 1px solid var(--line);
}
.section-cover-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
.section-cover-img.is-hidden { display: none; }
.section-cover-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.75rem;
  color: var(--text-3, rgba(26,44,66,0.25));
  background:
    repeating-linear-gradient(45deg, transparent, transparent 18px, rgba(26,44,66,0.03) 18px, rgba(26,44,66,0.03) 19px);
}
.section-cover-placeholder svg {
  width: 44px; height: 44px;
  opacity: 0.35;
}
.section-cover-placeholder span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.5;
}
/* Hide placeholder once a real image loads */
.section-header-img:has(.section-cover-img:not(.is-hidden)) .section-cover-placeholder {
  display: none;
}

/* Trusted by --------------------------------------------------------- */
.trusted {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.2rem 0;
  background: var(--surface);
}
.trusted-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.3rem;
  text-align: center;
}
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex; gap: 4.5rem;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-item {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--steel);
  white-space: nowrap;
  display: flex; align-items: center; gap: 4.5rem;
  transition: color 0.3s var(--ease);
}
.marquee-item:hover { color: var(--crimson); }
.marquee-item::after {
  content: ''; width: 8px; height: 8px;
  background: var(--crimson); border-radius: 50%;
  display: inline-block; flex-shrink: 0;
}
.client-logo {
  height: 100px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  filter: grayscale(100%) contrast(0.75);
  opacity: 0.65;
  transition: filter 0.3s var(--ease), opacity 0.3s var(--ease);
}
.marquee-item:hover .client-logo {
  filter: grayscale(0%) contrast(1);
  opacity: 1;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Services ----------------------------------------------------------- */
.services-stack {
  display: grid; gap: 1.1rem;
}
.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 2.25rem;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.service-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(211,32,39,0.08), transparent 50%);
  opacity: 0; transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.service-card:hover { border-color: var(--accent-line); transform: translateY(-3px); box-shadow: 0 22px 60px -22px rgba(26,44,66,0.25); }
.service-card:hover::before { opacity: 1; }
.service-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--crimson);
  letter-spacing: 0.2em;
}
.service-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 1.1rem;
  color: var(--navy);
}
.service-desc {
  color: var(--text-2);
  font-size: 0.97rem;
  line-height: 1.6;
}
.service-icon {
  width: 56px; height: 56px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  display: grid; place-items: center;
  margin: 1.25rem 0 2rem;
  background: var(--crimson-soft);
  color: var(--crimson);
}
.service-icon svg { width: 24px; height: 24px; }
.service-list { display: grid; gap: 0.3rem; }
.service-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem; align-items: start;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  transition: padding 0.3s var(--ease);
}
.service-item:first-child { border-top: 0; }
.service-item-num {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 0.74rem;
  padding-top: 0.18rem;
}
.service-item-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.35;
  display: flex; align-items: start; justify-content: space-between; gap: 1rem;
  color: var(--navy);
}
.service-item-toggle {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: background 0.3s var(--ease);
  position: relative;
}
.service-item-toggle::before, .service-item-toggle::after {
  content: ''; position: absolute;
  background: var(--navy);
  border-radius: 1px;
}
.service-item-toggle::before { width: 9px; height: 1.5px; }
.service-item-toggle::after { width: 1.5px; height: 9px; transition: transform 0.4s var(--ease); }
.service-item.is-open .service-item-toggle { background: var(--crimson); }
.service-item.is-open .service-item-toggle::before,
.service-item.is-open .service-item-toggle::after { background: #fff; }
.service-item.is-open .service-item-toggle::after { transform: rotate(90deg); }
.service-item-body {
  grid-column: 2;
  max-height: 0; overflow: hidden;
  transition: max-height 0.5s var(--ease), padding 0.5s var(--ease), opacity 0.5s var(--ease);
  opacity: 0;
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.6;
}
.service-item.is-open .service-item-body { max-height: 400px; padding-top: 0.7rem; opacity: 1; }
.service-item-body ul { list-style: none; padding-left: 0; }
.service-item-body li {
  padding-left: 1.1rem; position: relative; padding-bottom: 0.35rem;
}
.service-item-body li::before {
  content: ''; position: absolute; left: 0; top: 0.65em;
  width: 6px; height: 1px; background: var(--crimson);
}

@media (max-width: 900px) {
  .service-card { grid-template-columns: 1fr; padding: 1.75rem; gap: 1.75rem; }
}

/* About -------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}
/* Heading lives inside the left column — let it fill naturally */
.about-left .section-title {
  max-width: none;
  margin-bottom: 2rem;
}
.about-body { margin-top: 0; }
.about-body p { color: var(--text-2); margin-bottom: 1rem; font-size: 1rem; }
.about-body p:first-of-type {
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 1.6rem;
  letter-spacing: -0.01em;
}
.vm-grid { display: grid; gap: 1rem; align-content: start; }
.vm-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.vm-card:hover { border-color: var(--accent-line); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.vm-card h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 0.6rem;
}
.vm-card p {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--navy);
  letter-spacing: -0.005em;
  font-weight: 500;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

/* Why us ------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
.why-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 2.2rem;
  min-height: 280px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.why-card::before {
  content: '';
  position: absolute; bottom: -50%; right: -30%;
  width: 80%; height: 100%;
  background: var(--grad-accent);
  filter: blur(80px);
  opacity: 0; transition: opacity 0.6s var(--ease);
}
.why-card:hover { border-color: var(--accent-line); }
.why-card:hover::before { opacity: 0.12; }
.why-num {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  -webkit-text-stroke: 1.5px var(--navy);
  color: transparent;
  position: relative; z-index: 1;
  transition: -webkit-text-stroke-color 0.4s var(--ease);
}
.why-card:hover .why-num { -webkit-text-stroke: 1.5px var(--crimson); }
.why-content { position: relative; z-index: 1; }
.why-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
  color: var(--navy);
}
.why-desc { color: var(--text-2); font-size: 0.94rem; line-height: 1.55; }
@media (max-width: 800px) { .why-grid { grid-template-columns: 1fr; } }

/* Lead form ---------------------------------------------------------- */
.form-wrap {
  position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(2rem, 5vw, 4rem);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.form-wrap::before {
  content: '';
  position: absolute;
  top: -50%; left: 50%; transform: translateX(-50%);
  width: 120%; height: 120%;
  background: radial-gradient(circle, rgba(211,32,39,0.08), transparent 50%);
  pointer-events: none;
}
.form-wrap > * { position: relative; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
  margin-top: 2rem;
}
.form-grid .full { grid-column: 1 / -1; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 1.4rem 1.1rem 0.55rem;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--navy);
  font-size: 0.98rem;
  font-family: var(--font-body);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; padding-top: 1.7rem; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A2C42' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}
.field select option { background: #fff; color: var(--navy); }
.field label {
  position: absolute; left: 1.1rem; top: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  pointer-events: none;
  transition: top 0.25s var(--ease), font-size 0.25s var(--ease), color 0.25s var(--ease), letter-spacing 0.25s var(--ease);
  font-family: var(--font-mono);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent-line);
  background: #fff;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select:focus + label,
.field select:valid + label {
  top: 0.4rem;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crimson);
}
.field-required { color: var(--crimson); }
.form-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  margin-top: 2.2rem;
}
.form-actions p { color: var(--muted); font-size: 0.85rem; max-width: 30ch; }
.form-feedback {
  margin-top: 1.25rem;
  padding: 0.95rem 1.1rem;
  border-radius: 11px;
  font-size: 0.92rem;
  border: 1px solid;
}
.form-feedback.success { background: rgba(40,160,80,0.08); border-color: rgba(40,160,80,0.35); color: #1F7A3D; }
.form-feedback.error { background: rgba(211,32,39,0.06); border-color: rgba(211,32,39,0.32); color: var(--crimson-2); }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

/* Footer ------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 4.5rem 0 2.5rem;
  position: relative; z-index: 5;
}
.footer .shell { color: rgba(255,255,255,0.85); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer h5 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.1rem;
}
.footer p, .footer a { color: rgba(255,255,255,0.78); font-size: 0.92rem; line-height: 1.6; }
.footer a { transition: color 0.2s var(--ease); }
.footer a:hover { color: #FF4F56; }
.footer-brand {
  display: flex; align-items: center; gap: 0.85rem;
  margin-bottom: 1rem;
}
.footer-logo { height: 38px; width: auto; flex-shrink: 0; filter: brightness(0) invert(1); }
.footer-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1;
  color: #fff;
}
.footer-contact-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.footer-contact-icon {
  width: 14px; height: 14px; flex-shrink: 0;
  opacity: 0.65; stroke: currentColor;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5); font-size: 0.8rem;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  gap: 1rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-contact-link { justify-content: center; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* Mobile typography fixes -------------------------------------------- */
@media (max-width: 600px) {
  /* Let headings flow naturally — forced line breaks look choppy */
  .section-title br { display: none; }

  /* Tighten heading scale so nothing feels over- or under-sized */
  .section-title {
    font-size: clamp(1.5rem, 7.5vw, 2rem);
    max-width: 100%;
    letter-spacing: -0.025em;
  }

  /* About-left heading fills the column cleanly */
  .about-left .section-title { max-width: 100%; }

  /* Hero headline — slightly smaller so it doesn't dominate */
  .hero h1 { font-size: clamp(1.75rem, 8vw, 2.4rem); }

  /* Section lede paragraph — comfortable reading size */
  .section-lede { font-size: 0.95rem; }
}

/* Stack section header to single column on mobile/tablet */
@media (max-width: 900px) {
  .section-header-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .section-header-img { aspect-ratio: 16 / 9; }
}

/* Tablet range — headings slightly reduced from desktop */
@media (min-width: 601px) and (max-width: 900px) {
  .section-title {
    font-size: clamp(1.7rem, 4vw, 2.8rem);
  }
}

/* Reveal animations -------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(22px); transition: opacity 0.55s var(--ease-out-expo), transform 0.55s var(--ease-out-expo); }
.reveal-stagger.is-in > * { opacity: 1; transform: none; }
.reveal-stagger.is-in > *:nth-child(1) { transition-delay: 0.04s; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: 0.28s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}
