/* ============================================================
   NIRMANIFY TECHNOLOGIES — DESIGN SYSTEM
   Modern, edge-to-edge layout with enhanced typography
   ============================================================ */

:root {
  color-scheme: dark;
  --ink: #07090e;
  --ink-2: #0b0f17;
  --ink-3: #121824;
  --ink-card: rgba(18, 24, 36, 0.72);
  --paper: #f4f6fa;
  --paper-2: #e8ecf4;
  --bone: #f2f5f9;
  --cyan: #00d2ff;
  --cyan-hi: #6fe3ff;
  --cyan-lo: #008eb3;
  --cyan-glow: rgba(0, 210, 255, 0.25);
  --slate: #9bb0c9;
  --slate-2: #65758c;
  --line: rgba(242, 245, 249, 0.10);
  --line-2: rgba(242, 245, 249, 0.18);
  --line-cyan: rgba(0, 210, 255, 0.32);
  --line-dark: rgba(10, 15, 25, 0.14);
  --maxw: 1560px;
  --gut: clamp(24px, 4vw, 72px);
  --display: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', 'SF Mono', Consolas, Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

img, svg, canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

p {
  margin: 0;
}

::selection {
  background: var(--cyan);
  color: #06090e;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   PRIMITIVES & WRAPPER
   ============================================================ */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1.5px;
  background: var(--cyan);
  opacity: 0.85;
  flex: none;
}

.eyebrow.is-dark {
  color: var(--cyan-lo);
}

.eyebrow.is-dark::before {
  background: var(--cyan-lo);
}

.h-sec {
  font-size: clamp(34px, 4.6vw, 68px);
  letter-spacing: -0.035em;
}

.h-sub {
  font-size: clamp(24px, 2.8vw, 40px);
  letter-spacing: -0.025em;
}

.lede {
  font-size: clamp(17.5px, 1.35vw, 21px);
  color: var(--slate);
  max-width: 66ch;
  font-weight: 400;
  line-height: 1.65;
}

.mono-note {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-2);
}

.sec {
  padding-block: clamp(90px, 9vw, 150px);
  position: relative;
}

/* Scroll reveal classes */
.js .rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.js .rv.in {
  opacity: 1;
  transform: none;
}

.rv-d1 { transition-delay: 0.08s; }
.rv-d2 { transition-delay: 0.16s; }
.rv-d3 { transition-delay: 0.24s; }
.rv-d4 { transition-delay: 0.32s; }
.rv-d5 { transition-delay: 0.40s; }

/* Buttons */
.btn {
  --bg: var(--cyan);
  --fg: #05080e;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 30px;
  border-radius: 100px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 0.45s var(--ease), background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
  cursor: pointer;
}

.btn:hover {
  background: var(--cyan-hi);
  box-shadow: 0 12px 36px -10px var(--cyan-glow);
}

.btn .arw {
  transition: transform 0.4s var(--ease);
}

.btn:hover .arw {
  transform: translateX(6px);
}

.btn.ghost {
  --bg: transparent;
  --fg: var(--bone);
  border-color: var(--line-2);
}

.btn.ghost:hover {
  background: rgba(242, 245, 249, 0.08);
  border-color: var(--cyan);
  color: var(--cyan-hi);
  box-shadow: none;
}

/* ============================================================
   PRELOADER
   ============================================================ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--ink);
  display: grid;
  place-items: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}

#loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ldr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.ldr-logo-wrap {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--line-cyan);
  box-shadow: 0 0 40px var(--cyan-glow);
  padding: 4px;
  background: #090e18;
}

.ldr-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.ldr-ring {
  width: 80px;
  height: 80px;
  position: relative;
}

.ldr-ring i {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--line-2);
  border-radius: 50%;
}

.ldr-ring i:nth-child(1) {
  border-top-color: var(--cyan);
  animation: spin 1.1s linear infinite;
}

.ldr-ring i:nth-child(2) {
  inset: 14px;
  border-right-color: var(--cyan);
  animation: spin 1.7s linear infinite reverse;
}

.ldr-ring i:nth-child(3) {
  inset: 28px;
  border-bottom-color: var(--cyan);
  animation: spin 2.3s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.ldr-txt {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.3em;
  color: var(--slate-2);
  text-transform: uppercase;
}

/* ============================================================
   NAV (CORNER-TO-CORNER FLUID EXTENSION)
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}

.nav.stuck {
  background: rgba(7, 9, 14, 0.88);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--line);
}

.nav .wrap {
  max-width: 100%;
  padding-inline: clamp(24px, 4vw, 64px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--line-cyan);
  background: #0a0f19;
  flex: none;
  box-shadow: 0 0 18px rgba(0, 210, 255, 0.25);
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease;
}

.brand:hover .brand-badge {
  transform: rotate(15deg) scale(1.06);
  box-shadow: 0 0 28px rgba(0, 210, 255, 0.45);
}

.brand-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  display: flex;
  flex-direction: column;
}

.brand-name b {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--bone);
  line-height: 1.05;
}

.brand-name span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-top: 3px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 15px;
  color: #a4b2c6;
  font-weight: 600;
  position: relative;
  padding-block: 6px;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--cyan);
  transition: width 0.4s var(--ease);
}

.nav-links a:hover, .nav-links a.is-on {
  color: #ffffff;
}

.nav-links a:hover::after, .nav-links a.is-on::after {
  width: 100%;
}

.has-sub {
  position: relative;
}

.sub-t {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
  font: 600 15px/1 var(--body);
  color: #a4b2c6;
  transition: color 0.3s;
}

.sub-t svg {
  width: 10px;
  height: 10px;
  transition: transform 0.35s var(--ease);
}

.has-sub:hover .sub-t, .sub-t[aria-expanded="true"] {
  color: #ffffff;
}

.has-sub:hover .sub-t svg, .sub-t[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.nav-sub {
  position: absolute;
  top: calc(100% + 14px);
  left: -20px;
  min-width: 320px;
  padding: 12px;
  background: #0d121c;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.88);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease), visibility 0.32s;
}

.has-sub:hover .nav-sub, .has-sub:focus-within .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-sub a {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  transition: background 0.25s ease;
}

.nav-sub a:hover {
  background: rgba(0, 210, 255, 0.09);
}

.nav-sub a::after {
  display: none;
}

.nav-sub b {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  color: var(--bone);
  letter-spacing: -0.01em;
}

.nav-sub span {
  display: block;
  font-size: 12.5px;
  color: var(--slate-2);
  margin-top: 3px;
  line-height: 1.4;
}

.nav-cta {
  font-size: 14.5px;
  font-weight: 700;
  padding: 11px 24px;
  border: 1px solid var(--line-cyan);
  border-radius: 100px;
  color: var(--bone);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.nav-cta:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #05080e;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--bone);
  margin: 3.5px auto;
  transition: 0.3s;
}

/* ============================================================
   HERO SECTION (WELL-PROPORTIONED FULL-VIEWPORT LAYOUT)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

#instrument {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 1;
  transition: opacity 1.6s ease 0.2s;
}

.js #instrument {
  opacity: 0;
}

.js #instrument.lit {
  opacity: 1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: clamp(60px, 7vw, 110px) clamp(60px, 7vw, 110px);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 30% 50%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 70% at 30% 50%, #000 20%, transparent 78%);
  opacity: 0.45;
}

.hero-in {
  position: relative;
  z-index: 3;
  width: 100%;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(84px, 11vh, 120px);
  padding-bottom: clamp(36px, 5vh, 60px);
}

.hero h1 {
  font-size: clamp(38px, 5.2vw, 84px);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: none;
  margin-block: 20px 0;
  max-width: 20ch;
  line-height: 1.05;
}

.hero h1 .ln {
  display: block;
  overflow: hidden;
}

.hero h1 .ln > span {
  display: block;
  transition: transform 1.1s var(--ease);
}

.js .hero h1 .ln > span {
  transform: translateY(105%);
}

.hero.ready h1 .ln:nth-child(1) > span {
  transition-delay: 0.15s;
}

.hero.ready h1 .ln:nth-child(2) > span {
  transition-delay: 0.28s;
}

.js .hero.ready h1 .ln > span {
  transform: none;
}

.hero h1 em {
  font-style: normal;
  color: var(--cyan);
  background: linear-gradient(135deg, var(--cyan-hi), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lede {
  margin-top: 26px;
  max-width: 60ch;
  font-size: clamp(18px, 1.45vw, 22px);
  color: #b3c0d2;
  line-height: 1.62;
}

.hero-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.readout {
  position: relative;
  width: 100%;
  margin-top: auto;
  z-index: 3;
  border-top: 1px solid var(--line);
  background: rgba(7, 9, 14, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.readout .wrap {
  max-width: 100%;
  padding-inline: clamp(24px, 4vw, 64px);
}

.readout-in {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 16px;
  flex-wrap: wrap;
}

.ro {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--slate-2);
  text-transform: uppercase;
  display: flex;
  gap: 10px;
  align-items: center;
}

.ro b {
  color: var(--bone);
  font-weight: 600;
}

.ro .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.6);
  animation: pulse 2.6s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(0, 210, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); }
}

/* ============================================================
   THESIS & PHILOSOPHY (ABOUT)
   ============================================================ */
.thesis {
  border-top: 1px solid var(--line);
}

.thesis-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
}

.thesis h2 {
  font-size: clamp(28px, 3.4vw, 50px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.thesis h2 u {
  text-decoration: none;
  color: var(--cyan);
  border-bottom: 2px solid var(--cyan);
  padding-bottom: 2px;
}

.thesis-body p + p {
  margin-top: 22px;
}

.thesis-body p {
  color: var(--slate);
  font-size: clamp(16.5px, 1.25vw, 19.5px);
  line-height: 1.65;
}

.thesis-body strong {
  color: #ffffff;
  font-weight: 600;
}

.focus-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
  padding: 18px 28px;
  background: rgba(0, 210, 255, 0.05);
  border: 1px solid var(--line-cyan);
  border-radius: 100px;
  width: fit-content;
}

.focus-step {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone);
  font-weight: 700;
}

.focus-arw {
  color: var(--cyan);
  font-size: 14px;
}

/* ============================================================
   MISSION & VISION PILLARS
   ============================================================ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: clamp(40px, 5vw, 68px);
}

.pillar-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px 30px;
  background: var(--ink-card);
  backdrop-filter: blur(10px);
  transition: transform 0.5s var(--ease), border-color 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-cyan);
  box-shadow: 0 20px 40px -20px rgba(0, 210, 255, 0.18);
}

.pillar-card .p-num {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 20px;
  display: block;
}

.pillar-card h3 {
  font-size: 24px;
  margin-bottom: 14px;
  color: var(--bone);
}

.pillar-card p {
  color: var(--slate);
  font-size: 15.5px;
  line-height: 1.6;
}

/* ============================================================
   CAPABILITY RAIL (SERVICES)
   ============================================================ */
.rail-outer {
  position: relative;
  height: auto;
}

.rail-sticky {
  position: static;
  height: auto;
  overflow: visible;
  padding-block: clamp(84px, 9vw, 140px);
  justify-content: flex-start;
}

.rail-head {
  padding-inline: var(--gut);
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(30px, 4vw, 52px);
}

.rail-nav {
  display: flex;
  gap: 12px;
  flex: none;
}

.rail-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: none;
  color: var(--bone);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease), background 0.35s var(--ease), opacity 0.3s;
}

.rail-btn svg {
  width: 19px;
  height: 19px;
}

.rail-btn:hover:not(:disabled) {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 210, 255, 0.08);
}

.rail-btn:disabled {
  opacity: 0.25;
  cursor: default;
}

.rail-track {
  display: flex;
  gap: 24px;
  padding-inline: max(var(--gut), calc((100vw - var(--maxw))/2 + var(--gut)));
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  padding-block: 6px 12px;
  will-change: transform;
}

.rail-track::-webkit-scrollbar {
  display: none;
}

.rail-track.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  user-select: none;
}

.cap {
  flex: none;
  width: clamp(300px, 28vw, 380px);
  min-height: clamp(400px, 48vh, 480px);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px 30px 30px;
  background: linear-gradient(168deg, rgba(242, 245, 249, 0.05), rgba(242, 245, 249, 0.01));
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 0.5s ease, transform 0.6s var(--ease);
  scroll-snap-align: start;
}

.cap::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(340px 240px at var(--mx, 50%) var(--my, 0%), rgba(0, 210, 255, 0.16), transparent 70%);
  transition: opacity 0.5s ease;
}

.cap:hover {
  border-color: rgba(0, 210, 255, 0.45);
  transform: translateY(-6px);
}

.cap:hover::after {
  opacity: 1;
}

.cap-n {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.2em;
  color: var(--cyan);
  font-weight: 600;
}

.cap-ico {
  width: 48px;
  height: 48px;
  margin-top: 24px;
  color: var(--cyan);
}

.cap h3 {
  font-size: clamp(23px, 1.9vw, 28px);
  margin-top: 20px;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--bone);
}

.cap p {
  color: var(--slate);
  font-size: 15.5px;
  margin-top: 14px;
  line-height: 1.6;
}

.cap ul {
  list-style: none;
  margin: auto 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}

.cap li {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #8c9cb3;
  text-transform: uppercase;
  padding-block: 5.5px;
  display: flex;
  gap: 10px;
}

.cap li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  margin-top: 7px;
  flex: none;
  opacity: 0.85;
}

.rail-prog-wrap {
  padding-inline: var(--gut);
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
}

.rail-prog {
  position: static;
  height: 1.5px;
  background: var(--line);
  margin: 30px auto 0;
  width: 100%;
  padding: 0;
}

.rail-prog i {
  display: block;
  height: 2px;
  background: var(--cyan);
  width: 12%;
  transition: width 0.12s linear;
}

/* ============================================================
   HOW WE BUILD & TWO SPEEDS SECTION
   ============================================================ */
.band {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0, 210, 255, 0.04), transparent 70%);
}

.two {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(30px, 6vw, 86px);
  align-items: start;
}

.cols-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 28px;
  background: rgba(242, 245, 249, 0.025);
  transition: border-color 0.5s ease, background 0.5s ease, transform 0.6s var(--ease);
}

.panel:hover {
  border-color: rgba(0, 210, 255, 0.35);
  background: rgba(0, 210, 255, 0.035);
  transform: translateY(-4px);
}

.panel h3 {
  font-size: 21px;
  letter-spacing: -0.022em;
  margin-bottom: 12px;
  color: var(--bone);
}

.panel h3 .n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 0.16em;
  display: block;
  margin-bottom: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.panel p {
  color: var(--slate);
  font-size: 15.5px;
  line-height: 1.6;
}

/* ============================================================
   SOLUTIONS (LIGHT / HIGH-CONTRAST CHAPTER)
   ============================================================ */
.paper {
  background: var(--paper);
  color: #0f141f;
}

.paper .lede {
  color: #4b5568;
}

.paper .mono-note {
  color: #697386;
}

.prod-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 76px);
}

.prod-head h2 {
  color: #0c111c;
}

.prods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.prod {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-dark);
  border-radius: 24px;
  padding: clamp(28px, 3vw, 40px);
  background: #ffffff;
  position: relative;
  overflow: hidden;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.prod:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 64px -30px rgba(12, 17, 28, 0.25);
}

.prod-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-lo);
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(0, 142, 179, 0.28);
  border-radius: 100px;
  width: fit-content;
  font-weight: 600;
}

.prod h3 {
  font-size: clamp(26px, 2.5vw, 36px);
  color: #0c111c;
  margin-top: 20px;
  letter-spacing: -0.03em;
}

.prod .sub {
  color: #4b5568;
  margin-top: 14px;
  font-size: 16px;
  min-height: 4.8em;
  line-height: 1.55;
}

.prod-list {
  list-style: none;
  padding: 22px 0 0;
  margin: 22px 0 auto;
  border-top: 1px solid var(--line-dark);
  display: grid;
  gap: 12px;
}

.prod-list li {
  font-size: 15px;
  color: #2e3748;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.5;
}

.prod-list li svg {
  width: 17px;
  height: 17px;
  color: var(--cyan-lo);
  flex: none;
  margin-top: 3px;
}

.prod-viz {
  height: 140px;
  margin-top: 26px;
  border-radius: 16px;
  background: #090e18;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(10, 15, 25, 0.15);
}

.prod-viz canvas {
  width: 100%;
  height: 100%;
}

/* ============================================================
   SELECTED PROJECT EXPERIENCE (WORK)
   ============================================================ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.job {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px 30px 28px;
  position: relative;
  background: rgba(242, 245, 249, 0.022);
  overflow: hidden;
  transition: border-color 0.5s ease, background 0.5s ease, transform 0.6s var(--ease);
  display: flex;
  flex-direction: column;
}

.job:hover {
  border-color: rgba(0, 210, 255, 0.45);
  background: rgba(0, 210, 255, 0.035);
  transform: translateY(-5px);
}

.job-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.job-geo {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  text-transform: uppercase;
  font-weight: 600;
}

.job h3 {
  font-size: 23px;
  margin-top: 20px;
  letter-spacing: -0.025em;
  color: var(--bone);
}

.job p {
  color: var(--slate);
  font-size: 15.5px;
  margin-top: 14px;
  line-height: 1.6;
  margin-bottom: auto;
}

.job-stack {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-2);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 5px 12px;
  background: rgba(242, 245, 249, 0.03);
}

/* ============================================================
   TECHNOLOGY STACK MATRIX
   ============================================================ */
.tech-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
  margin-bottom: 30px;
}

.tech-tab {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 100px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--slate);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tech-tab:hover, .tech-tab.active {
  border-color: var(--cyan);
  color: var(--bone);
  background: rgba(0, 210, 255, 0.12);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tech-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  background: var(--ink-card);
  transition: transform 0.4s var(--ease), border-color 0.4s ease;
}

.tech-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-cyan);
}

.tech-card h4 {
  font-size: 20px;
  color: var(--bone);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tech-card h4 .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.tech-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-pill {
  font-family: var(--mono);
  font-size: 13px;
  padding: 7px 15px;
  border-radius: 8px;
  background: rgba(242, 245, 249, 0.05);
  color: var(--bone);
  border: 1px solid rgba(242, 245, 249, 0.08);
}

.tech-principle {
  margin-top: 40px;
  padding: 26px 32px;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(0, 210, 255, 0.09), transparent);
  border: 1px solid var(--line-cyan);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.tech-principle b {
  font-family: var(--display);
  font-size: 20px;
  color: var(--bone);
}

.tech-principle .chain {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ============================================================
   DELIVERY PROCESS (7-STAGE PIPELINE)
   ============================================================ */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
  margin-top: clamp(42px, 5vw, 68px);
}

.process-step {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 20px;
  background: var(--ink-card);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.4s var(--ease), border-color 0.4s ease, background 0.4s ease;
}

.process-step:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  background: rgba(0, 210, 255, 0.04);
}

.process-num {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 12px;
  font-weight: 600;
}

.process-step h4 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--bone);
}

.process-step p {
  font-size: 14.5px;
  color: var(--slate);
  line-height: 1.5;
  margin-bottom: 18px;
}

.process-output {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--cyan-hi);
  letter-spacing: 0.06em;
  line-height: 1.45;
}

/* ============================================================
   INDUSTRIES WE SERVE
   ============================================================ */
.ind-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 42px;
}

.ind-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 28px;
  background: rgba(242, 245, 249, 0.02);
  transition: transform 0.4s var(--ease), border-color 0.4s ease;
}

.ind-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-cyan);
  background: rgba(0, 210, 255, 0.03);
}

.ind-card h4 {
  font-size: 21px;
  color: var(--bone);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.ind-card p {
  font-size: 15.5px;
  color: var(--slate);
  line-height: 1.55;
}

/* ============================================================
   SECURITY & DATA PROTECTION
   ============================================================ */
.sec-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 42px;
}

.sec-box {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 28px;
  background: var(--ink-card);
}

.sec-box h4 {
  font-size: 20px;
  color: var(--cyan-hi);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sec-box h4 svg {
  width: 20px;
  height: 20px;
  color: var(--cyan);
}

.sec-box p {
  font-size: 15.5px;
  color: var(--slate);
  line-height: 1.6;
}

/* ============================================================
   ENGAGEMENT & COMMERCIAL APPROACH
   ============================================================ */
.eng-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 42px;
}

.eng-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px 28px;
  background: rgba(242, 245, 249, 0.025);
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease), border-color 0.4s ease;
}

.eng-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  background: rgba(0, 210, 255, 0.03);
}

.eng-card h4 {
  font-size: 22px;
  color: var(--bone);
  margin-bottom: 12px;
}

.eng-card p {
  font-size: 15.5px;
  color: var(--slate);
  line-height: 1.55;
  margin-bottom: 22px;
}

.eng-card ul {
  list-style: none;
  padding: 18px 0 0;
  margin: auto 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.eng-card li {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--slate-2);
  text-transform: uppercase;
}

.eng-card li::before {
  content: "→ ";
  color: var(--cyan);
}

.comm-flow {
  margin-top: 48px;
  padding: 34px;
  border-radius: 22px;
  background: rgba(0, 210, 255, 0.025);
  border: 1px solid var(--line-cyan);
}

.flow-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
}

.flow-step {
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 16px 20px;
  background: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--bone);
  text-transform: uppercase;
  flex: 1;
  min-width: 150px;
  text-align: center;
}

.flow-step.active {
  border-color: var(--cyan);
  color: var(--cyan-hi);
  box-shadow: 0 0 24px rgba(0, 210, 255, 0.18);
}

.flow-arrow {
  color: var(--cyan);
  font-weight: bold;
}

/* ============================================================
   LEADERSHIP
   ============================================================ */
.lead-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 44px;
}

.leader-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 40px 36px;
  background: linear-gradient(170deg, rgba(242, 245, 249, 0.04), rgba(242, 245, 249, 0.01));
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 28px;
  align-items: start;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.4s ease;
}

.leader-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-cyan);
}

.lead-avatar {
  width: 110px;
  height: 110px;
  border-radius: 22px;
  background: #0d1422;
  border: 1.5px solid var(--line-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-family: var(--display);
  font-size: 32px;
  font-weight: 800;
  box-shadow: 0 0 28px rgba(0, 210, 255, 0.18);
}

.lead-info h3 {
  font-size: 26px;
  color: var(--bone);
  letter-spacing: -0.02em;
}

.lead-role {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-top: 6px;
  display: block;
  font-weight: 600;
}

.lead-info p {
  color: var(--slate);
  font-size: 16px;
  margin-top: 16px;
  line-height: 1.6;
}

.lead-links {
  display: flex;
  gap: 16px;
  margin-top: 22px;
}

.lead-links a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line-cyan);
  border-radius: 100px;
  transition: all 0.3s ease;
  font-weight: 600;
}

.lead-links a:hover {
  background: var(--cyan);
  color: #05080e;
}

/* ============================================================
   TRUST & MARQUEE
   ============================================================ */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0, 210, 255, 0.04), transparent 60%);
}

.marquee {
  overflow: hidden;
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-in {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: slide 36s linear infinite;
}

.marquee:hover .marquee-in {
  animation-play-state: paused;
}

@keyframes slide {
  to { transform: translateX(-50%); }
}

.mq {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--slate-2);
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.mq::after {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  opacity: 0.8;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
}

#seal {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: min(72vw, 780px);
  aspect-ratio: 1;
  opacity: 0.4;
  pointer-events: none;
}

.contact-in {
  position: relative;
  z-index: 2;
}

.contact h2 {
  font-size: clamp(38px, 6vw, 92px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.contact h2 em {
  font-style: normal;
  color: var(--cyan);
}

.contact-form-wrap {
  margin-top: 52px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(30px, 6vw, 84px);
  align-items: start;
}

.c-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.c-form .full {
  grid-column: 1 / -1;
}

.f-group label {
  display: block;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 9px;
  font-weight: 500;
}

.f-group input, .f-group select, .f-group textarea {
  width: 100%;
  background: rgba(242, 245, 249, 0.04);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 16px 18px;
  color: var(--bone);
  font: 400 15.5px var(--body);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.f-group select {
  cursor: pointer;
  color-scheme: dark;
}

.f-group select option,
select option {
  background-color: #0b0f17;
  color: #f2f5f9;
  padding: 10px 14px;
}

.f-group input:focus, .f-group select:focus, .f-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(0, 210, 255, 0.05);
}

/* Custom Select Dropdown Engine */
.custom-select-native {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(242, 245, 249, 0.04);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 16px 18px;
  color: var(--bone);
  font: 400 15.5px var(--body);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.3s ease, background 0.3s ease;
  user-select: none;
}

.custom-select-trigger:focus,
.custom-select.is-open .custom-select-trigger {
  outline: none;
  border-color: var(--cyan);
  background: rgba(0, 210, 255, 0.05);
}

.custom-select-val {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 12px;
}

.custom-select-arrow {
  color: var(--slate);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}

.custom-select.is-open .custom-select-arrow {
  transform: rotate(180deg);
  color: var(--cyan);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #0b0f17;
  border: 1px solid rgba(0, 210, 255, 0.35);
  border-radius: 14px;
  padding: 8px;
  z-index: 150;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 20px rgba(0, 210, 255, 0.15);
  display: none;
  max-height: 280px;
  overflow-y: auto;
  backdrop-filter: blur(12px);
}

.custom-select.is-open .custom-select-options {
  display: block;
  animation: csDropIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes csDropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.custom-select-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 9px;
  color: #f2f5f9 !important; /* ALWAYS CRISP WHITE - NEVER INVISIBLE! */
  font-size: 15px;
  font-family: var(--body);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.custom-select-opt:hover {
  background: rgba(0, 210, 255, 0.12);
  color: var(--cyan-hi) !important;
}

.custom-select-opt.is-selected {
  background: rgba(0, 210, 255, 0.18);
  color: var(--cyan) !important;
  font-weight: 600;
}

.custom-select-opt .opt-check {
  color: var(--cyan);
  opacity: 0;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s ease;
}

.custom-select-opt.is-selected .opt-check {
  opacity: 1;
}

.cinfo-box {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px 32px;
  background: var(--ink-card);
  backdrop-filter: blur(10px);
}

.cinfo-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 26px;
}

.cinfo-item svg {
  width: 24px;
  height: 24px;
  color: var(--cyan);
  flex: none;
  margin-top: 3px;
}

.cinfo-item b {
  display: block;
  font-family: var(--display);
  font-size: 17.5px;
  color: var(--bone);
}

.cinfo-item p, .cinfo-item a {
  font-size: 15.5px;
  color: var(--slate);
  margin-top: 4px;
  transition: color 0.3s;
}

.cinfo-item a:hover {
  color: var(--cyan);
}

/* ============================================================
   FOOTER (FULL-SPANNING)
   ============================================================ */
.site-foot {
  border-top: 1px solid var(--line);
  padding-top: clamp(56px, 6vw, 88px);
  background: #05070b;
}

.site-foot .wrap {
  max-width: 100%;
  padding-inline: clamp(24px, 4vw, 64px);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(44px, 5vw, 68px);
}

.foot-blurb {
  color: var(--slate);
  font-size: 15.5px;
  margin-top: 22px;
  max-width: 38ch;
  line-height: 1.6;
}

.foot-col h4 {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 20px;
}

.foot-col a, .foot-col p {
  display: block;
  font-size: 15px;
  color: var(--slate);
  margin-bottom: 12px;
  transition: color 0.3s;
}

.foot-col a:hover {
  color: #ffffff;
}

.foot {
  border-top: 1px solid var(--line);
  padding-block: 32px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.foot p, .foot a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.13em;
  color: var(--slate-2);
  text-transform: uppercase;
}

.foot a:hover {
  color: var(--cyan);
}

.socials {
  display: flex;
  gap: 22px;
}

/* ============================================================
   CURSOR GLOW
   ============================================================ */
#glow {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.08), transparent 62%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.6s ease;
  mix-blend-mode: screen;
}

/* ============================================================
   ASK NIRMANIFY (AI ASSISTANT CHAT WIDGET)
   ============================================================ */
.ask-btn {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 22px 15px 18px;
  border: 0;
  border-radius: 100px;
  cursor: pointer;
  background: var(--cyan);
  color: #05080e;
  font: 700 15px/1 var(--body);
  letter-spacing: -0.01em;
  box-shadow: 0 18px 44px -14px rgba(0, 210, 255, 0.65);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.ask-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 54px -14px rgba(0, 210, 255, 0.9);
}

.ask-btn svg {
  width: 20px;
  height: 20px;
}

body.ask-open .ask-btn {
  transform: scale(0.85);
  opacity: 0;
  pointer-events: none;
}

.ask {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 71;
  width: min(440px, calc(100vw - 32px));
  height: min(660px, calc(100vh - 44px));
  height: min(660px, calc(100dvh - 44px));
  display: flex;
  flex-direction: column;
  background: #0a0e17;
  border: 1px solid var(--line-cyan);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.95);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}

body.ask-open .ask {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.ask-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: #0d131f;
}

.ask-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  flex: none;
  box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.6);
  animation: pulse 2.6s infinite;
}

.ask-head b {
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: -0.02em;
  flex: 1;
}

.ask-head span {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-2);
  font-weight: 400;
  margin-top: 4px;
}

.ask-x {
  background: none;
  border: 0;
  color: var(--slate);
  cursor: pointer;
  padding: 6px;
  line-height: 0;
  border-radius: 8px;
  transition: color 0.3s, background 0.3s;
}

.ask-x:hover {
  color: var(--bone);
  background: rgba(242, 245, 249, 0.06);
}

.ask-log {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
}

.ask-log::-webkit-scrollbar {
  width: 5px;
}

.ask-log::-webkit-scrollbar-thumb {
  background: rgba(242, 245, 249, 0.16);
  border-radius: 4px;
}

.msg {
  max-width: 88%;
  font-size: 15px;
  line-height: 1.6;
  border-radius: 18px;
  padding: 13px 18px;
  animation: msgIn 0.35s var(--ease) both;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
}

.msg.bot {
  background: rgba(242, 245, 249, 0.05);
  border: 1px solid var(--line);
  color: var(--bone);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.msg.me {
  background: var(--cyan);
  color: #05080e;
  align-self: flex-end;
  font-weight: 600;
  border-bottom-right-radius: 4px;
}

.msg a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.msg.me a {
  color: #05080e;
}

.typing {
  display: flex;
  gap: 5px;
  padding: 14px 18px;
  align-self: flex-start;
  background: rgba(242, 245, 249, 0.05);
  border: 1px solid var(--line);
  border-radius: 18px;
  border-bottom-left-radius: 4px;
}

.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--slate);
  animation: bob 1.2s infinite;
}

.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.30s; }

@keyframes bob {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 22px 14px;
}

.chip-b {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 15px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  background: none;
  color: var(--slate);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-align: left;
}

.chip-b:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 210, 255, 0.08);
}

.ask-acts {
  display: flex;
  gap: 10px;
  padding: 0 22px 14px;
}

.act-b {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 11px 10px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: none;
  color: var(--slate);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.act-b:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 210, 255, 0.08);
}

.act-b svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.ask-foot {
  border-top: 1px solid var(--line);
  padding: 14px 16px;
  display: flex;
  gap: 10px;
  align-items: center;
  background: #0d131f;
}

.ask-foot input {
  flex: 1;
  min-width: 0;
  background: rgba(242, 245, 249, 0.04);
  border: 1px solid var(--line-2);
  border-radius: 100px;
  padding: 13px 18px;
  color: var(--bone);
  font: 400 15px var(--body);
}

.ask-foot input:focus {
  outline: none;
  border-color: var(--cyan);
}

.ask-send {
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--cyan);
  color: #05080e;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.35s var(--ease);
}

.ask-send:hover {
  transform: scale(1.08);
}

.ask-send svg {
  width: 18px;
  height: 18px;
}

.ask-note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-2);
  text-align: center;
  padding: 0 22px 10px;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1300px) {
  .process-timeline {
    grid-template-columns: repeat(4, 1fr);
  }
  .eng-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1080px) {
  .prods {
    grid-template-columns: 1fr;
  }
  .work-grid {
    grid-template-columns: 1fr 1fr;
  }
  .thesis-grid, .two, .contact-form-wrap, .prod-head {
    grid-template-columns: 1fr;
  }
  .pillars-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tech-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .leader-card {
    grid-template-columns: 1fr;
  }
  .lead-grid {
    grid-template-columns: 1fr;
  }
  .ind-grid, .sec-principles {
    grid-template-columns: 1fr 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta {
    display: none;
  }
  .burger {
    display: grid;
  }
  .work-grid, .cols-2, .tech-grid, .ind-grid, .sec-principles, .eng-grid, .c-form {
    grid-template-columns: 1fr;
  }
  .process-timeline {
    grid-template-columns: 1fr;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .rail-nav, .rail-prog, .rail-prog-wrap {
    display: none;
  }
  .rail-track {
    flex-direction: column;
    overflow: visible;
    cursor: auto;
    gap: 18px;
    padding-inline: var(--gut);
  }
  .cap {
    width: 100%;
    min-height: 0;
  }
  #seal {
    opacity: 0.2;
    right: -40%;
  }

  /* Hero section mobile fix: eliminate overlap between buttons and readout */
  .hero {
    min-height: auto;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 84px;
    padding-bottom: 0;
    overflow: hidden;
  }

  .hero-in {
    padding-top: clamp(16px, 4vh, 28px);
    padding-bottom: 24px;
    padding-inline: var(--gut);
    flex: 1 0 auto;
  }

  .hero h1 {
    font-size: clamp(30px, 8.5vw, 42px);
    line-height: 1.12;
  }

  .hero-lede {
    margin-top: 18px;
    font-size: clamp(15px, 3.8vw, 17px);
    line-height: 1.6;
  }

  .hero-acts {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 26px;
    width: 100%;
  }

  .hero-acts .btn {
    width: 100%;
    justify-content: center;
    padding: 15px 22px;
    font-size: 15.5px;
  }

  /* Readout in natural document flow so it never collides with buttons */
  .readout {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100%;
    margin-top: auto;
    background: rgba(7, 9, 14, 0.98);
    border-top: 1px solid var(--line);
    z-index: 3;
  }

  .readout .wrap {
    padding-inline: var(--gut);
  }

  .readout-in {
    flex-direction: column;
    gap: 8px;
    padding-block: 16px;
  }

  .ro {
    font-size: 11.5px;
    line-height: 1.5;
    flex-wrap: wrap;
    word-break: break-word;
  }

  .focus-chain {
    border-radius: 18px;
    width: 100%;
    padding: 14px 18px;
    justify-content: center;
  }

  /* Mobile menu in flow */
  .nav-in {
    height: 72px;
  }
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #080b11;
    border-bottom: 1px solid var(--line);
    padding: 4px var(--gut) 26px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.5s var(--ease), opacity 0.3s ease, visibility 0.3s;
  }
  body.menu-open .nav-links {
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
  }
  body.menu-open .nav {
    background: #080b11;
    border-bottom-color: transparent;
  }
  .nav-links > a, .sub-t {
    width: 100%;
    padding: 18px 0;
    font-size: 17px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    justify-content: space-between;
    color: var(--bone);
  }
  .nav-links > a::after {
    display: none;
  }
  .has-sub {
    width: 100%;
    position: static;
  }
  .nav-sub {
    position: static;
    min-width: 0;
    left: auto;
    top: auto;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease);
  }
  .sub-t[aria-expanded="true"] ~ .nav-sub {
    max-height: 380px;
    padding: 10px 0 16px;
  }
  .nav-sub a {
    background: rgba(242, 245, 249, 0.04);
    margin-bottom: 8px;
    padding: 14px 16px;
    border-radius: 12px;
  }
  .nav-mob-cta {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 100px;
    background: var(--cyan);
    color: #05080e;
    font-weight: 700;
    font-size: 16px;
  }
  .nav-mob-cta::after {
    display: none;
  }
  .burger {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
  .burger span {
    transition: transform 0.35s var(--ease), opacity 0.25s ease;
  }
  body.menu-open .burger span:nth-child(1) {
    transform: translateY(3.5px) rotate(45deg);
  }
  body.menu-open .burger span:nth-child(2) {
    transform: translateY(-3.5px) rotate(-45deg);
  }
  body.menu-open {
    overflow: hidden;
  }
}

.nav-mob-cta {
  display: none;
}

@media (max-width: 520px) {
  .ask {
    right: 8px;
    left: 8px;
    bottom: 8px;
    width: auto;
    height: min(580px, calc(100vh - 16px));
    height: min(580px, calc(100dvh - 16px));
  }
  .ask-btn {
    right: 16px;
    bottom: 16px;
    padding: 14px 18px;
    font-size: 14px;
  }
}
