/* ==========================================================================
   UNDER GROUND VISION INDIA — Design System
   Palette, type, layout primitives, components
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand — navy / amber, drawn from the UVI identity */
  --navy-950: #061626;
  --navy-900: #0a2137;
  --navy-800: #0f2c46;
  --navy-700: #173d5c;
  --navy-600: #21507a;
  --blue-600: #1b4fa8;
  --blue-500: #2c68c9;

  --amber-400: #f7a94a;
  --amber-500: #f0912f;
  --amber-600: #db7c12;
  --amber-700: #a45c06;

  /* Neutrals */
  --ink: #0b1b2b;
  --body: #43536a;
  --muted: #5f6e82;
  --line: #dde5ee;
  --line-strong: #c6d3e0;
  --surface: #f4f7fa;
  --surface-2: #eaf0f6;
  --white: #ffffff;

  /* On-dark text */
  --on-dark: #e8eef6;
  --on-dark-muted: #9fb2c7;
  --on-dark-line: rgba(255, 255, 255, 0.14);

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.0625rem;
  --fs-xl: 1.25rem;
  --fs-2xl: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem);
  --fs-3xl: clamp(1.625rem, 1.2rem + 1.7vw, 2.375rem);
  --fs-4xl: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
  --fs-5xl: clamp(2.375rem, 1.4rem + 4vw, 4.25rem);

  /* Space */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 80px;
  --sp-10: 96px;
  --sp-11: 128px;

  --gutter: clamp(20px, 5vw, 48px);
  --max: 1220px;

  /* Shape */
  --r-sm: 3px;
  --r: 5px;
  --r-lg: 10px;
  --r-xl: 16px;
  --r-pill: 999px;

  /* Elevation */
  --sh-1: 0 1px 2px rgba(11, 27, 43, 0.05), 0 1px 3px rgba(11, 27, 43, 0.04);
  --sh-2: 0 4px 12px rgba(11, 27, 43, 0.07), 0 2px 4px rgba(11, 27, 43, 0.04);
  --sh-3: 0 18px 40px -12px rgba(11, 27, 43, 0.24), 0 4px 12px rgba(11, 27, 43, 0.06);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 220ms;

  --header-h: 72px;
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-lg);
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-5xl);
  font-weight: 800;
  letter-spacing: -0.03em;
}
h2 {
  font-size: var(--fs-4xl);
}
h3 {
  font-size: var(--fs-2xl);
  letter-spacing: -0.015em;
  line-height: 1.2;
}
h4 {
  font-size: var(--fs-xl);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

p {
  margin: 0 0 1em;
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--blue-600);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

img {
  height: auto;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

li {
  margin-bottom: 0.4em;
}

strong,
b {
  font-weight: 600;
  color: var(--ink);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--sp-7) 0;
}

::selection {
  background: var(--amber-500);
  color: var(--navy-950);
}

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

.section--dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--amber-400);
}

/* ---------- 3. Utilities ---------- */
.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: calc(860px + var(--gutter) * 2);
}

.section {
  padding-block: clamp(56px, 7vw, 104px);
  position: relative;
}

.section--tight {
  padding-block: clamp(40px, 4.5vw, 64px);
}

.section--surface {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--dark {
  background: var(--navy-900);
  color: var(--on-dark);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #fff;
}

.section--dark p {
  color: var(--on-dark);
}

.section--dark strong {
  color: #fff;
}

.section--dark a {
  color: var(--amber-400);
}

.lede {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--body);
  max-width: 62ch;
}

.section--dark .lede {
  color: var(--on-dark);
}

.small {
  font-size: var(--fs-sm);
}

.muted {
  color: var(--muted);
}

.section--dark .muted {
  color: var(--on-dark-muted);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.center {
  text-align: center;
}
.center .lede,
.center p {
  margin-inline: auto;
}

.stack > * + * {
  margin-top: var(--sp-4);
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  background: var(--amber-500);
  color: var(--navy-950);
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--r);
  transition: top 150ms var(--ease);
}

.skip-link:focus {
  top: 12px;
}

/* ---------- 4. Typographic furniture ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--sp-4);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-700);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  flex: none;
}

.section--dark .eyebrow {
  color: var(--amber-400);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.section-head p {
  margin-top: var(--sp-3);
}

/* Numbered section marker: "01 / WHAT WE DO" + rule */
.section-marker {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.section-marker span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-700);
  white-space: nowrap;
}

.section-marker::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.section--dark .section-marker span {
  color: var(--amber-400);
}
.section--dark .section-marker::after {
  background: var(--on-dark-line);
}

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: var(--navy-900);
  --btn-fg: #fff;
  --btn-bd: var(--navy-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 24px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--sh-2);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn--primary {
  --btn-bg: var(--amber-500);
  --btn-fg: var(--navy-950);
  --btn-bd: var(--amber-500);
}

.btn--primary:hover {
  --btn-bg: var(--amber-400);
  --btn-bd: var(--amber-400);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy-900);
  --btn-bd: var(--line-strong);
}

.btn--ghost:hover {
  --btn-bd: var(--navy-900);
  --btn-bg: var(--surface);
}

.section--dark .btn--ghost,
.hero .btn--ghost {
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.34);
  --btn-bg: transparent;
}

.section--dark .btn--ghost:hover,
.hero .btn--ghost:hover {
  --btn-bd: #fff;
  --btn-bg: rgba(255, 255, 255, 0.08);
}

.btn--sm {
  min-height: 40px;
  padding: 9px 16px;
  font-size: 0.875rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* Buttons keep their own foreground on dark sections */
.section--dark .btn,
.section--dark .btn:hover {
  color: var(--btn-fg);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--navy-900);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: gap var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform var(--dur) var(--ease);
}

.link-arrow:hover {
  color: var(--amber-700);
  border-color: currentColor;
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

.section--dark .link-arrow {
  color: #fff;
}
.section--dark .link-arrow:hover {
  color: var(--amber-400);
}

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-950);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--amber-500) 0%, var(--amber-500) 22%, var(--blue-500) 22%, var(--blue-500) 34%, transparent 34%);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #fff;
  flex: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  color: var(--amber-500);
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: 0.015em;
  line-height: 1.05;
  color: #fff;
  white-space: nowrap;
}

.brand-name b {
  color: var(--amber-500);
  font-weight: 800;
}

.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  color: var(--on-dark-muted);
  margin-top: 3px;
}

.nav {
  margin-left: auto;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav li {
  margin: 0;
}

.nav a {
  display: block;
  padding: 10px 13px;
  border-radius: var(--r);
  color: var(--on-dark);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.nav a[aria-current="page"] {
  color: #fff;
}

.nav a[aria-current="page"]::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 6px;
  background: var(--amber-500);
  border-radius: 2px;
}

.header-cta {
  flex: none;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  margin-inline: auto;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}
.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.nav-cta {
  display: none;
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-900);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  /* engineering grid */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: -1px -1px;
  mask-image: radial-gradient(120% 90% at 20% 0%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 20% 0%, #000 25%, transparent 78%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 720px;
  height: 720px;
  right: -220px;
  top: -280px;
  background: radial-gradient(circle, rgba(27, 79, 168, 0.55) 0%, transparent 68%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(48px, 6.5vw, 92px) clamp(48px, 6vw, 84px);
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.25rem, 1.35rem + 3.7vw, 4rem);
  line-height: 1.02;
  margin-bottom: var(--sp-5);
}

.hero h1 em {
  font-style: normal;
  color: var(--amber-500);
}

.hero-sub {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.62;
  color: var(--on-dark);
  max-width: 54ch;
  margin-bottom: var(--sp-6);
}

.hero .btn-row {
  margin-bottom: var(--sp-6);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #cfdcea;
}

.hero-trust svg {
  width: 13px;
  height: 13px;
  color: var(--amber-500);
  flex: none;
}

/* Hero visual */
.hero-visual {
  position: relative;
}

.frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--navy-950);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7);
}

.frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.04);
}

.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 22, 38, 0.1) 0%, transparent 35%, rgba(6, 22, 38, 0.55) 100%);
  pointer-events: none;
}

/* Camera reticle corner ticks */
.reticle::before,
.reticle::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid var(--amber-500);
  z-index: 2;
  pointer-events: none;
}

.reticle::before {
  top: 14px;
  left: 14px;
  border-right: 0;
  border-bottom: 0;
}

.reticle::after {
  bottom: 14px;
  right: 14px;
  border-left: 0;
  border-top: 0;
}

.hero-badge {
  position: absolute;
  left: -18px;
  bottom: 26px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-radius: var(--r);
  background: var(--navy-950);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--sh-3);
}

.hero-badge .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber-500);
  flex: none;
  box-shadow: 0 0 0 4px rgba(240, 145, 47, 0.18);
}

.hero-badge b {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  color: #fff;
  letter-spacing: 0.01em;
}

.hero-badge span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--on-dark-muted);
  letter-spacing: 0.04em;
}

/* ---------- 8. Stat bar ---------- */
.stat-bar {
  background: var(--navy-950);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  padding: var(--sp-6) var(--sp-5);
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}

.stat b i {
  font-style: normal;
  color: var(--amber-500);
}

.stat > span {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  line-height: 1.5;
}

/* ---------- 9. Grids & cards ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.split--wide-left {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.4vw, 30px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.card h3 {
  font-size: 1.1875rem;
  margin-bottom: 0.5em;
}

.card p {
  font-size: 0.9375rem;
  line-height: 1.62;
  color: var(--body);
  margin-bottom: 0;
}

.card--hover:hover {
  border-color: var(--line-strong);
  box-shadow: var(--sh-2);
  transform: translateY(-2px);
}

.section--dark .card {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--on-dark-line);
}

.section--dark .card h3 {
  color: #fff;
}

.section--dark .card p {
  color: var(--on-dark);
}

.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--sp-4);
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--navy-800);
  flex: none;
}

.icon-chip svg {
  width: 22px;
  height: 22px;
}

.section--dark .icon-chip {
  background: rgba(240, 145, 47, 0.14);
  color: var(--amber-400);
}

.icon-chip--amber {
  background: rgba(240, 145, 47, 0.14);
  color: var(--amber-700);
}

/* Feature list with check ticks */
.tick-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tick-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.tick-list li:last-child {
  margin-bottom: 0;
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
}

.tick-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 9px;
  width: 6px;
  height: 3px;
  border-left: 1.6px solid var(--amber-700);
  border-bottom: 1.6px solid var(--amber-700);
  transform: rotate(-45deg);
}

.section--dark .tick-list li::before {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.section--dark .tick-list li::after {
  border-color: var(--amber-400);
}

/* ---------- 10. Media blocks ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--navy-950);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}

.media--4x3 img {
  aspect-ratio: 4 / 3;
}
.media--16x9 img {
  aspect-ratio: 16 / 9;
}
.media--3x2 img {
  aspect-ratio: 3 / 2;
}
.media--1x1 img {
  aspect-ratio: 1 / 1;
}

a.media:hover img {
  transform: scale(1.03);
}

.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 11. Steps / workflow ---------- */
.steps {
  display: grid;
  gap: 0;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: var(--sp-5);
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--amber-700);
  padding-top: 3px;
}

.step h3 {
  font-size: 1.125rem;
  margin-bottom: 0.35em;
}

.step p {
  font-size: 0.9375rem;
  color: var(--body);
  margin-bottom: 0;
}

.step-tag {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 2px 7px;
}

.section--dark .step {
  border-color: var(--on-dark-line);
}
.section--dark .step-num {
  color: var(--amber-400);
}
.section--dark .step p {
  color: var(--on-dark);
}
.section--dark .step-tag {
  color: var(--on-dark-muted);
  border-color: var(--on-dark-line);
}

/* Horizontal process rail */
.rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-5);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rail;
}

.rail li {
  position: relative;
  margin: 0;
  padding-top: 30px;
}

.rail li::before {
  counter-increment: rail;
  content: counter(rail, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--amber-700);
}

.rail li::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 34px;
  right: -12px;
  height: 1px;
  background: var(--line);
}

.rail li:last-child::after {
  display: none;
}

.rail h3 {
  font-size: 1rem;
  margin-bottom: 0.4em;
}

.rail p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--body);
  margin: 0;
}

.section--dark .rail li::before {
  color: var(--amber-400);
}
.section--dark .rail li::after {
  background: var(--on-dark-line);
}
.section--dark .rail p {
  color: var(--on-dark);
}

/* ---------- 12. Spec table ---------- */
.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.spec caption {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 12px;
}

.spec th,
.spec td {
  padding: 12px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.spec th {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--muted);
  width: 46%;
  padding-right: var(--sp-4);
}

.spec td {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.spec--prose td {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.section--dark .spec th,
.section--dark .spec td {
  border-color: var(--on-dark-line);
}
.section--dark .spec th {
  color: var(--on-dark-muted);
}
.section--dark .spec caption {
  color: var(--on-dark-muted);
}
.section--dark .spec td {
  color: #fff;
}

/* Rate table */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-wrap > table {
  min-width: 600px;
}

/* Keep the label column readable when the table scrolls on small screens */
.table-wrap .rate-table th:first-child,
.table-wrap .rate-table td:first-child {
  min-width: 150px;
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.rate-table th,
.rate-table td {
  padding: 10px 12px;
  text-align: right;
  border-bottom: 1px solid var(--line);
}

.rate-table th:first-child,
.rate-table td:first-child {
  text-align: left;
}

.rate-table thead th {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
}

.rate-table td {
  font-family: var(--font-mono);
  color: var(--ink);
}

.rate-table tbody tr:hover {
  background: var(--surface);
}

/* ---------- 13. Accordion ---------- */
.accordion {
  border-top: 1px solid var(--line);
}

.accordion details {
  border-bottom: 1px solid var(--line);
}

.accordion summary {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  transition: color var(--dur) var(--ease);
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary:hover {
  color: var(--amber-700);
}

.accordion summary::after {
  content: "";
  margin-left: auto;
  flex: none;
  width: 11px;
  height: 11px;
  margin-top: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease);
}

.accordion details[open] summary::after {
  transform: rotate(-135deg);
}

.accordion .panel {
  padding: 0 0 22px;
  max-width: 72ch;
}

.accordion .panel p,
.accordion .panel ul {
  font-size: 0.9375rem;
  color: var(--body);
  margin-bottom: 0.8em;
}

.section--dark .accordion {
  border-color: var(--on-dark-line);
}
.section--dark .accordion details {
  border-color: var(--on-dark-line);
}
.section--dark .accordion summary {
  color: #fff;
}
.section--dark .accordion summary:hover {
  color: var(--amber-400);
}
.section--dark .accordion .panel p,
.section--dark .accordion .panel ul {
  color: var(--on-dark);
}

/* ---------- 14. Callouts ---------- */
.callout {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber-500);
}

.callout svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--amber-700);
  margin-top: 3px;
}

.callout p {
  font-size: 0.9375rem;
  margin: 0;
}

.section--dark .callout {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--on-dark-line);
  border-left-color: var(--amber-500);
}
.section--dark .callout p {
  color: var(--on-dark);
}
.section--dark .callout svg {
  color: var(--amber-400);
}

.quote {
  margin: 0;
  padding: 0;
  border: 0;
}

.quote p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: #fff;
  margin-bottom: var(--sp-4);
}

.quote p::before {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--amber-500);
  margin-bottom: var(--sp-5);
}

.quote footer {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

/* ---------- 15. Case study cards ---------- */
.case {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: stretch;
  padding: clamp(20px, 2.5vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.case:hover {
  border-color: var(--line-strong);
  box-shadow: var(--sh-2);
}

.case .media img {
  aspect-ratio: 4 / 3;
}

.case-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.case-body h3 {
  font-size: 1.375rem;
  margin-bottom: 0.4em;
}

.case-body p {
  font-size: 0.9375rem;
  margin-bottom: var(--sp-4);
}

.case-actions {
  margin-top: var(--sp-2);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  white-space: nowrap;
}

.tag--amber {
  border-color: rgba(240, 145, 47, 0.5);
  background: rgba(240, 145, 47, 0.1);
  color: var(--amber-700);
}

.tag--green {
  border-color: rgba(23, 140, 92, 0.4);
  background: rgba(23, 140, 92, 0.08);
  color: #106b46;
}

.tag--navy {
  border-color: rgba(27, 79, 168, 0.35);
  background: rgba(27, 79, 168, 0.07);
  color: var(--blue-600);
}

.section--dark .tag {
  border-color: var(--on-dark-line);
  color: var(--on-dark-muted);
}

.section--dark .tag--amber {
  border-color: rgba(240, 145, 47, 0.45);
  background: rgba(240, 145, 47, 0.12);
  color: var(--amber-400);
}

.section--dark .media-caption {
  color: var(--on-dark-muted);
}

/* ---------- 16. CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--navy-800);
  color: #fff;
  isolation: isolate;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(240, 145, 47, 0.1) 0 14px,
    transparent 14px 28px
  );
  mask-image: linear-gradient(90deg, #000 0%, transparent 36%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 36%);
}

.cta-band h2,
.cta-band h3 {
  color: #fff;
}

.cta-band .btn {
  color: var(--btn-fg);
}

.cta-band .btn--ghost {
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.34);
  --btn-bg: transparent;
}

.cta-band .btn--ghost:hover {
  --btn-bd: #fff;
  --btn-bg: rgba(255, 255, 255, 0.08);
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  padding-block: clamp(40px, 5vw, 64px);
}

.cta-inner h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.25rem);
  margin-bottom: 8px;
  max-width: 22ch;
}

.cta-inner p {
  color: var(--on-dark);
  margin: 0;
  max-width: 46ch;
}

/* ---------- 17. Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: var(--on-dark);
  font-size: 0.9375rem;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(48px, 6vw, 72px);
}

.footer-brand .brand {
  margin-bottom: var(--sp-4);
}

.footer-brand p {
  font-size: 0.9375rem;
  color: var(--on-dark-muted);
  max-width: 34ch;
  margin-bottom: var(--sp-5);
}

.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--sp-4);
  line-height: 1.4;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--on-dark-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--dur) var(--ease);
}

.footer-col a:hover {
  color: var(--amber-400);
}

.footer-contact li {
  color: var(--on-dark-muted);
  line-height: 1.5;
}

.footer-contact a {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: var(--on-dark-muted);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: var(--on-dark-muted);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #fff;
}

/* ---------- 18. Page header (inner pages) ---------- */
.page-head {
  position: relative;
  background: var(--navy-900);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}

.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, #000, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
}

.page-head-inner {
  padding-block: clamp(40px, 5vw, 68px) clamp(36px, 4.5vw, 60px);
}

.page-head .breadcrumb,
.page-head h1,
.page-head p {
  max-width: 820px;
}

.page-head h1 {
  color: #fff;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  margin-bottom: var(--sp-4);
}

.page-head p {
  color: var(--on-dark);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  max-width: 62ch;
  margin: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--sp-5);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  list-style: none;
  padding: 0;
}

.breadcrumb li {
  margin: 0;
}

.breadcrumb a {
  color: var(--on-dark-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.3);
}

/* ---------- 19. Forms ---------- */
.form {
  display: grid;
  gap: var(--sp-4);
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.field .hint {
  font-size: 0.8125rem;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(44, 104, 201, 0.18);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--body);
}

.checkbox input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin-top: 3px;
  flex: none;
  accent-color: var(--amber-600);
}

/* Contact detail list */
.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.contact-list li:first-child {
  padding-top: 0;
}

.contact-list svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 4px;
  color: var(--amber-700);
}

.contact-list b {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact-list span,
.contact-list a {
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.5;
}

.contact-list a:hover {
  color: var(--blue-600);
  text-decoration: underline;
}

/* ---------- 20. Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}

.js .reveal[data-delay="1"] {
  transition-delay: 80ms;
}
.js .reveal[data-delay="2"] {
  transition-delay: 160ms;
}
.js .reveal[data-delay="3"] {
  transition-delay: 240ms;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 21. Responsive ---------- */
@media (max-width: 1080px) {
  .header-inner {
    gap: var(--sp-4);
  }
  .nav a {
    padding: 10px 9px;
    font-size: 0.85rem;
  }
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 940px) {
  :root {
    --header-h: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .header-cta {
    display: none;
  }

  .nav {
    position: fixed;
    inset: calc(var(--header-h) + 3px) 0 auto 0;
    margin: 0;
    padding: var(--sp-4) var(--gutter) var(--sp-6);
    background: var(--navy-950);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--sh-3);
    display: none;
    max-height: calc(100vh - var(--header-h) - 3px);
    overflow-y: auto;
  }

  .nav.is-open {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav a {
    padding: 14px 4px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
  }

  .nav a[aria-current="page"]::after {
    display: none;
  }

  .nav a[aria-current="page"] {
    color: var(--amber-400);
  }

  .nav-cta {
    display: block;
    margin-top: var(--sp-3);
  }

  .nav .nav-cta .btn {
    width: 100%;
    padding: 13px 20px;
    border: 1px solid var(--amber-500);
    border-radius: var(--r);
    background: var(--amber-500);
    color: var(--navy-950);
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    justify-content: center;
  }

  .nav .nav-cta .btn:hover {
    background: var(--amber-400);
    color: var(--navy-950);
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-7);
    padding-block: var(--sp-8) var(--sp-8);
  }

  .hero-visual {
    max-width: 640px;
  }

  .hero-badge {
    left: 12px;
    bottom: 12px;
  }

  .split,
  .split--wide-left {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-6);
  }

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

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

  .rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-5) var(--sp-6);
  }

  .rail li::after {
    display: none;
  }

  .case {
    grid-template-columns: minmax(0, 1fr);
  }

  .stat-bar-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat {
    padding: var(--sp-5) var(--sp-4);
    border-top: 1px solid rgba(255, 255, 255, 0.09);
  }

  .stat:nth-child(-n + 2) {
    border-top: 0;
  }

  .stat:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 1rem;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-6);
  }

  .step {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: var(--sp-4);
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-inner .btn-row {
    width: 100%;
  }

  .brand-name {
    font-size: 0.9375rem;
  }

  .brand-sub {
    letter-spacing: 0.34em;
  }
}

@media (max-width: 420px) {
  .brand-mark {
    width: 28px;
    height: 28px;
  }
  .brand-name {
    font-size: 0.8125rem;
    white-space: normal;
  }
  .btn {
    width: 100%;
  }
  .btn-row {
    width: 100%;
  }
  .hero-badge {
    position: static;
    margin-top: 14px;
  }
}

/* ---------- 22. Print ---------- */
@media print {
  .site-header,
  .nav-toggle,
  .cta-band,
  .site-footer,
  .hero-visual {
    display: none !important;
  }
  .js .reveal,
  .js .reveal.is-in {
    opacity: 1 !important;
    transform: none !important;
  }
  body {
    font-size: 11pt;
    color: #000;
  }
  .section {
    padding-block: 16pt;
  }
  .card,
  .case {
    break-inside: avoid;
  }
}
