/* Cogens India — page-specific styles layered on top of the Zoho-Inspired DS */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-family-primary);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--fg-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button { font-family: inherit; }

/* ---------- Layout primitives ---------- */
.container-wide     { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.container-standard { max-width: 1140px; margin: 0 auto; padding: 0 32px; }
.container-narrow   { max-width: 720px;  margin: 0 auto; padding: 0 32px; }

/* ---------- Section heading rule ---------- */
.section-heading {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.section-heading .zd-h2 { color: var(--text-strong); }
.section-heading .rule {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--brand-red);
  border: 0;
  margin: 18px auto 0;
}
.section-heading.left { text-align: left; margin: 0; }
.section-heading.left .rule { margin: 18px 0 0; }

/* italic accent words inside headings */
.h-italic { font-style: italic; font-weight: 600; }
.h-italic.blue { color: var(--brand-blue); }
.h-italic.red  { color: var(--brand-red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit; font-size: 14px; font-weight: 500;
  padding: 12px 22px; border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-standard),
              color    var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand-red); color: #fff; border-color: var(--brand-red);
}
.btn-primary:hover { background: var(--brand-red-hover); border-color: var(--brand-red-hover); }
.btn-secondary {
  background: transparent; color: var(--brand-blue); border-color: var(--brand-blue);
}
.btn-secondary:hover { background: rgba(26,95,191,0.06); }
.btn-secondary.on-dark { color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-secondary.on-dark:hover { background: rgba(255,255,255,0.08); border-color: #fff; }
.btn-compact { padding: 9px 16px; font-size: 13px; }

.chev::after { content: '\203A'; margin-left: 6px; font-weight: 400; }

/* ---------- Sticky nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: 68px;
  display: flex; align-items: center;
}
.nav-inner {
  width: 100%; max-width: 1280px; margin: 0 auto;
  padding: 0 32px;
  display: flex; align-items: center; gap: 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text-strong);
}
.nav-logo img { height: 28px; width: auto; display: block; }
.nav-logo .mark {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--brand-blue);
  display: grid; place-items: center;
  color: #fff; font-weight: 600; font-size: 13px;
  letter-spacing: -0.02em;
}
.nav-logo .word {
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--text-strong);
}
.nav-links {
  display: flex; gap: 24px; margin-left: 12px;
}
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-strong); }
.nav-right {
  margin-left: auto;
  display: flex; align-items: center; gap: 18px;
}
.nav-right .lang {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; color: var(--text-muted);
  cursor: pointer; text-decoration: none;
}
.nav-right .phone {
  font-size: 13px; color: var(--text-body); font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.nav-right .phone strong { color: var(--text-strong); font-weight: 600; }

/* Mobile hamburger toggle — hidden on desktop, expanded in Phase 2 responsive polish */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  margin-left: auto;
  background: transparent; border: 0; padding: 10px 8px;
  cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text-strong); border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease-standard), opacity var(--dur-fast) var(--ease-standard);
}

/* ---------- Hero ---------- */
.hero { background: #fff; padding: 96px 0 88px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center;
}
.hero h1 {
  font-size: 40px; font-weight: 600; letter-spacing: -0.015em;
  color: var(--text-strong); margin: 14px 0 0; line-height: 1.15;
  text-wrap: balance;
}
.hero .sub {
  margin-top: 22px; font-size: 17px; line-height: 1.6;
  color: var(--text-body); max-width: 520px;
}
.hero .cta-row {
  margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap;
}
.hero-art { display: grid; place-items: center; }

/* ---------- Trust bar ---------- */
.trust {
  background: var(--off-white);
  padding: 64px 0;
  text-align: center;
}
.trust .label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted);
}
.trust-row {
  margin-top: 28px;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px;
  align-items: center;
}
.logo-placeholder {
  height: 36px; display: grid; place-items: center;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; color: #9CA3AF;
  border: 1px dashed #D6DAE0; border-radius: 4px;
  background: #fff;
}
.trust .view-cases {
  margin-top: 28px; display: inline-block;
  font-size: 13px; font-weight: 500; color: var(--brand-blue);
  text-decoration: none;
}
.trust .view-cases:hover { text-decoration: underline; }

/* ---------- Challenge section ---------- */
.challenge { background: #fff; padding: 120px 0; }
.challenge h2 {
  font-size: 32px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--text-strong); margin: 0; line-height: 1.25;
  text-wrap: balance;
}
.challenge-cards {
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.challenge-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 6px; padding: 32px 28px;
  transition: border-color var(--dur-base) var(--ease-standard);
}
.challenge-card:hover { border-color: #C9CED5; }
.challenge-card .num {
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em;
  color: #B5BAC2; margin-bottom: 18px;
}
.challenge-card h3 {
  font-size: 18px; font-weight: 600; color: var(--text-strong);
  margin: 0 0 10px; line-height: 1.35;
}
.challenge-card p {
  font-size: 14px; color: var(--text-body); margin: 0; line-height: 1.6;
}

/* ---------- Value Matrix (pale blue band) ---------- */
.matrix { background: var(--brand-blue-light); padding: 120px 0; }
.matrix-cards {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.matrix-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 32px;
  display: flex; flex-direction: column;
  transition: border-color var(--dur-base) var(--ease-standard),
              transform var(--dur-base) var(--ease-standard);
}
.matrix-card:hover { border-color: #C9CED5; transform: translateY(-2px); }
.matrix-card .icon-wrap {
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center;
  margin-bottom: 22px;
  color: #fff;
}
.matrix-card .layer-tag {
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 8px;
}
.matrix-card h3 {
  font-size: 20px; font-weight: 600; color: var(--text-strong);
  margin: 0 0 10px;
}
.matrix-card .layer-sub {
  font-size: 13px; color: var(--text-muted); margin: 0 0 20px;
}
.matrix-card ul {
  list-style: none; padding: 0; margin: 0 0 0 0;
  display: flex; flex-direction: column; gap: 10px;
  border-top: 1px solid var(--border); padding-top: 20px;
}
.matrix-card li {
  font-size: 14px; color: var(--text-body); line-height: 1.5;
  padding-left: 18px; position: relative;
}
.matrix-card li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-blue);
}

/* ---------- Architecture flow ---------- */
.arch { background: #fff; padding: 120px 0; }
.arch-flow {
  margin-top: 72px;
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch; gap: 16px;
}
.arch-step {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 14px;
  padding: 8px 4px;
}
.arch-step .circle {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--brand-blue);
  letter-spacing: 0.04em;
}
.arch-step.final .circle {
  background: var(--brand-blue); border-color: var(--brand-blue);
  color: #fff; font-size: 24px; font-weight: 500;
}
.arch-step .step-label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted);
  margin-top: 4px;
}
.arch-step h4 {
  font-size: 17px; font-weight: 600; color: var(--text-strong);
  margin: 0;
}
.arch-step p {
  font-size: 13px; color: var(--text-muted); margin: 0;
  max-width: 200px; line-height: 1.5;
}
.arch-line {
  align-self: center;
  height: 1px; background: var(--border);
  width: 100%; min-width: 24px;
  position: relative;
  margin-top: 32px;
}
.arch-line::after {
  content: ''; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  transform: rotate(45deg);
}

/* ---------- Outcomes (full-bleed brand blue) ---------- */
.outcomes {
  background: var(--brand-blue);
  color: #fff;
  padding: 120px 0;
  text-align: center;
}
.outcomes .section-heading .zd-h2 { color: #fff; }
.outcomes .section-heading .rule { background: #fff; }
.outcomes-grid {
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.outcome {
  text-align: left;
  padding: 0 4px;
}
.outcome .ico {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  margin-bottom: 24px;
  color: #fff;
  border-bottom: 2px solid rgba(255,255,255,0.4);
  padding: 0 0 16px 0;
  width: 40px;
}
.outcome h4 {
  font-size: 18px; font-weight: 600; color: #fff;
  margin: 0 0 10px;
}
.outcome p {
  font-size: 14px; color: rgba(255,255,255,0.82);
  margin: 0; line-height: 1.6;
}

/* ---------- Technology ---------- */
.tech { background: #fff; padding: 120px 0; }
.tech-intro {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px;
  align-items: end;
  margin-bottom: 64px;
}
.tech-intro h2 {
  font-size: 32px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--text-strong); margin: 14px 0 0; line-height: 1.25;
  text-wrap: balance;
}
.tech-intro .rule {
  display: block; width: 32px; height: 2px;
  background: var(--brand-red); border: 0;
  margin: 18px 0 0;
}
.tech-intro p {
  font-size: 16px; color: var(--text-body);
  line-height: 1.7; margin: 0;
}
.tech-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.tech-tile {
  background: #fff; border: 1px solid var(--border);
  border-radius: 6px; padding: 24px;
  display: flex; gap: 16px; align-items: flex-start;
  text-decoration: none; color: inherit;
  transition: border-color var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard);
}
.tech-tile:hover { border-color: #C9CED5; box-shadow: 0 1px 3px rgba(15, 20, 25, 0.04); }
.tech-tile:hover .name { color: var(--brand-blue-deep); }
.tech-tile .name, .tech-tile .desc { text-decoration: none; }
.tech-tile .swatch {
  width: 40px; height: 40px; border-radius: 8px;
  flex-shrink: 0;
  display: grid; place-items: center;
  color: #fff; font-weight: 600; font-size: 13px;
  letter-spacing: -0.01em;
}
.tech-tile img.swatch {
  object-fit: contain;
  background: transparent;
  display: block;
}
.tech-tile .name {
  font-size: 16px; font-weight: 600; color: var(--text-strong);
  margin: 0 0 4px;
}
.tech-tile .desc {
  font-size: 13px; color: var(--text-muted);
  margin: 0; line-height: 1.5;
}
.tech-cta-row {
  margin-top: 48px; display: flex; gap: 12px; justify-content: center;
}

/* ---------- Process ---------- */
.process { background: var(--off-white); padding: 96px 0; }
.process-cards {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.process-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 6px; padding: 32px 28px;
  position: relative;
}
.process-card .pnum {
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em;
  color: var(--brand-blue); margin-bottom: 16px;
}
.process-card h3 {
  font-size: 22px; font-weight: 600; color: var(--text-strong);
  margin: 0 0 12px;
}
.process-card p {
  font-size: 14px; color: var(--text-body); margin: 0 0 14px; line-height: 1.6;
}
.process-card ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.process-card li {
  font-size: 13px; color: var(--text-muted);
  padding-left: 16px; position: relative; line-height: 1.5;
}
.process-card li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 6px; height: 1px; background: var(--text-muted);
}

/* ---------- Final CTA ---------- */
.finalcta {
  background: var(--brand-blue-light);
  padding: 96px 0;
  text-align: center;
}
.finalcta h2 {
  font-size: 36px; font-weight: 600; letter-spacing: -0.015em;
  color: var(--text-strong); margin: 0; line-height: 1.2;
  text-wrap: balance;
  max-width: 720px; margin-left: auto; margin-right: auto;
}
.finalcta p {
  margin: 22px auto 0; font-size: 16px; line-height: 1.6;
  color: var(--text-body); max-width: 560px;
}
.finalcta .cta-row {
  margin-top: 36px; display: flex; gap: 12px; justify-content: center;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 80px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 48px;
  padding-bottom: 56px;
}
.footer-brand .word {
  font-size: 18px; font-weight: 600; color: #fff;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 10px;
}
.footer-brand .word .mark {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--brand-blue);
  display: grid; place-items: center;
  color: #fff; font-weight: 600; font-size: 13px;
}
.footer-logo { height: 28px; width: auto; display: block; }
.footer-brand .tagline {
  margin-top: 16px; font-size: 13px; color: rgba(255,255,255,0.6);
  line-height: 1.6; max-width: 280px;
}
.footer-brand .contact {
  margin-top: 24px;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13px;
}
.footer-brand .contact a { color: rgba(255,255,255,0.78); text-decoration: none; }
.footer-brand .contact a:hover { color: #fff; }
.footer-brand .contact .lbl { color: rgba(255,255,255,0.45); margin-right: 6px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-col h4 {
  font-size: 13px; font-weight: 600; color: #fff;
  margin: 0 0 16px; letter-spacing: 0;
}
.footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.footer-col a {
  font-size: 13px; color: rgba(255,255,255,0.65); text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard);
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.5);
}
.footer-bottom .legal { display: flex; gap: 18px; }
.footer-bottom .legal a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-bottom .legal a:hover { color: #fff; }
.footer-socials {
  display: flex; gap: 12px;
}
.footer-socials a {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: grid; place-items: center;
  color: rgba(255,255,255,0.7);
  transition: border-color var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard);
}
.footer-socials a:hover { border-color: #fff; color: #fff; }

/* ---------- Sub-page hero 2-column grids ---------- */
.vm-hero-grid,
.cs-hero-grid,
.blog-hero-grid,
.careers-hero-grid,
.contact-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-illus {
  width: 100%;
  max-width: 520px;
  margin-left: auto;
}
.hero-illus svg { width: 100%; height: auto; display: block; }

@media (max-width: 960px) {
  .vm-hero-grid,
  .cs-hero-grid,
  .blog-hero-grid,
  .careers-hero-grid,
  .contact-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-illus { margin: 0 auto; max-width: 460px; }
}

/* ---------- Testimonials ---------- */
.testimonials {
  background: var(--off-white);
  padding: 96px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.testimonials .section-heading {
  text-align: center;
  margin-bottom: 56px;
}
.testimonials .section-heading .rule {
  margin: 16px auto 0;
  width: 32px; height: 2px;
  background: var(--brand-red);
  border: 0;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 28px 28px;
  margin: 0;
  display: flex;
  flex-direction: column;
  transition:
    transform var(--dur-base) var(--ease-standard),
    box-shadow var(--dur-base) var(--ease-standard),
    border-color var(--dur-base) var(--ease-standard);
}
.testimonial:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-raised);
  border-color: #C9CED5;
}
.testimonial .quote-mark {
  color: var(--brand-blue);
  opacity: 0.15;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.testimonial blockquote {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-strong);
  font-weight: 500;
  letter-spacing: -0.005em;
  flex: 1;
}
.testimonial figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.testimonial .t-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.005em;
}
.testimonial .t-role {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}
.testimonial .t-tag {
  display: block;
  align-self: flex-end;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}
.testimonials-cta {
  display: block;
  margin: 40px auto 0;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-blue);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard);
}
.testimonials-cta:hover { color: var(--brand-blue-deep); }

@media (max-width: 960px) {
  .testimonials { padding: 64px 0; }
  .testimonials .section-heading { margin-bottom: 32px; }
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding: 64px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .challenge, .matrix, .arch, .outcomes, .tech, .process, .finalcta { padding: 64px 0; }
  .challenge-cards, .matrix-cards, .process-cards { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .arch-flow { grid-template-columns: 1fr; }
  .arch-line { transform: none; width: 1px; height: 24px; min-width: unset; margin: 0 auto; }
  .arch-line::after { top: auto; bottom: -3px; right: -3px; transform: rotate(135deg); }
  .tech-intro { grid-template-columns: 1fr; gap: 24px; }
  .trust-row { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   RESPONSIVE LAYER (Phase 2 — mobile/tablet polish)
   Breakpoints:
     <= 960px  tablet & small laptops
     <= 640px  phones
   ============================================================ */

/* ---------- Mobile nav drawer ---------- */
@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
    margin-left: auto;
    order: 3;
  }
  .nav-inner {
    gap: 16px;
    padding: 0 20px;
  }
  /* Hide phone + book-audit on mobile; they reappear inside the drawer */
  .nav-right {
    display: none;
  }
  /* Slide-out drawer */
  .nav-links {
    position: fixed;
    top: 68px; right: 0; bottom: 0; left: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 24px 24px 40px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--dur-base) var(--ease-standard);
    visibility: hidden;
    z-index: var(--z-overlay);
  }
  .nav.is-open .nav-links {
    transform: translateX(0);
    visibility: visible;
  }
  .nav-links a,
  .nav-zoho-trigger {
    padding: 14px 0;
    font-size: 17px;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a.active { color: var(--brand-blue); }
  .nav-zoho-wrap { width: 100%; }
  .nav-zoho-menu {
    position: static;
    transform: none;
    box-shadow: none;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    pointer-events: auto;
    border-radius: 0;
    transition: max-height var(--dur-base) var(--ease-standard);
  }
  .nav-zoho-menu.open {
    transform: none;
    max-height: 800px;
    margin-bottom: 8px;
  }
  .nav-zoho-menu-inner {
    display: block;
    padding: 8px 0 12px;
    grid-template-columns: 1fr;
  }
  .nav-zoho-overview {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 0 0 12px;
    margin-bottom: 8px;
  }
  .nav-zoho-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .nav-zoho-item {
    padding: 10px 12px;
    border-radius: 6px;
  }
  .nav-zoho-item:hover { background: var(--off-white); }

  /* Lock scroll when drawer open */
  body.nav-open { overflow: hidden; }

  /* Hamburger to "X" when open */
  .nav.is-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav.is-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  .nav.is-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ---------- Typography scale ---------- */
@media (max-width: 960px) {
  .hero h1,
  .about-hero h1,
  .blog-hero h1,
  .careers-hero h1,
  .cs-hero h1,
  .contact-hero h1,
  .zhero h1,
  .zsub-hero h1,
  .vm-hero h1 {
    font-size: 36px;
    line-height: 1.15;
  }
  .zd-h2,
  .finalcta h2,
  .about-origin h2,
  .about-founders h2,
  .about-principles h2,
  .about-firm h2,
  .cs-process h2,
  .blog-list .blog-featured h2 {
    font-size: 26px;
    line-height: 1.25;
  }
  .hero .sub,
  .about-hero .sub,
  .blog-hero .sub,
  .careers-hero .sub,
  .cs-hero .sub {
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .hero h1,
  .about-hero h1,
  .blog-hero h1,
  .careers-hero h1,
  .cs-hero h1,
  .contact-hero h1,
  .zhero h1,
  .zsub-hero h1,
  .vm-hero h1 {
    font-size: 30px;
  }
  .zd-h2 { font-size: 22px; }
}

/* ---------- Containers, spacing, hero ---------- */
@media (max-width: 960px) {
  .container-standard,
  .container-wide,
  .container-narrow { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 640px) {
  .hero { padding: 48px 0 56px; }
  .challenge, .matrix, .arch, .outcomes, .tech, .process, .finalcta {
    padding: 48px 0;
  }
  .trust-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .cta-row .btn { width: 100%; justify-content: center; text-align: center; }
}

/* ---------- About page ---------- */
@media (max-width: 960px) {
  .about-hero { padding: 64px 0 56px; }
  .about-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-architecture-grid { grid-template-columns: 1fr; }
  .about-origin-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-firm-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-principles-grid { grid-template-columns: 1fr; }
  .founder-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .founder-portrait { max-width: 140px; }
  .firm-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .firm-facts { grid-template-columns: 1fr; }
}

/* ---------- Value matrix page ---------- */
@media (max-width: 960px) {
  .vm-hero { padding: 64px 0 48px; }
  .vm-layer {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 48px 0;
  }
  .vm-layers { padding: 48px 0; }
}

/* ---------- Case studies ---------- */
@media (max-width: 960px) {
  .cs-hero { padding: 64px 0 48px; }
  .cs-phases { grid-template-columns: 1fr 1fr; gap: 16px; }
  .cs-meta { grid-template-columns: 1fr 1fr; gap: 16px; }
  .cs-impl-grid { grid-template-columns: 1fr; }
  .cs-outcomes { grid-template-columns: 1fr; }
  .tabs-bar { flex-wrap: wrap; gap: 8px; }
  .cs-tab { flex: 1 1 calc(50% - 4px); justify-content: center; }
}
@media (max-width: 640px) {
  .cs-phases { grid-template-columns: 1fr; }
  .cs-meta { grid-template-columns: 1fr; }
  .cs-tab { flex: 1 1 100%; }
}

/* ---------- Careers ---------- */
@media (max-width: 960px) {
  .careers-hero { padding: 64px 0 48px; }
  .careers-belief-grid { grid-template-columns: 1fr; gap: 24px; }
  .role { grid-template-columns: 1fr; gap: 12px; }
  .role .btn { justify-self: flex-start; }
}

/* ---------- Blog ---------- */
@media (max-width: 960px) {
  .blog-hero { padding: 64px 0 48px; }
  .blog-featured { grid-template-columns: 1fr; gap: 24px; }
  .blog-featured .right { order: -1; }
  .blog-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Contact ---------- */
@media (max-width: 960px) {
  .contact-hero { padding: 64px 0 48px; }
  .contact-grid,
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- Zoho overview page ---------- */
@media (max-width: 960px) {
  .zhero { padding: 64px 0 48px; }
  .zhero-grid { grid-template-columns: 1fr; gap: 32px; }
  .why-grid { grid-template-columns: 1fr; gap: 16px; }
  .zproducts { grid-template-columns: 1fr; gap: 16px; }
  .zfooter-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Zoho sub-pages (CRM, Books, etc.) ---------- */
@media (max-width: 960px) {
  .zsub-hero { padding: 64px 0 48px; }
  .zsub-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .zsub-cap-grid, .zsub-out-grid, .zsub-int-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Footer ---------- */
@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
  }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
