/* Hallmark · shape: Bento Grid · genre: modern-minimal · theme: Vantage (by request) · draw: 33120c · job: hire · redesign: full
   hero: Settled · nav: floating pill · footer: statement · imagery: product sample in hero · signature: interactive 3D spatial LiDAR point cloud globe and Colombo packet telemetry · vantage: terrain/steel
   axes: dark/grotesk-sans/chromatic-lime · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H5 E5 S4 R5 V5 · weakest: S, generic pod claims; anchored hero around the exact UTC+5:30 Colombo to Sydney and London shift-overlap instrument */
/* Hallmark · hero-review: P5 H5 E5 S5 R5 V5 · weakest: R, readout clock wrapped at 1280 and instrument footer floated mid-panel; pinned instrument layer to full height and set readout values nowrap */
/* Hallmark · finish-review: P5 H5 E5 S5 R5 V5 · weakest: R, footer ledger stayed 3-col at 375 and onboarding cards wrapped h3 titles in 3 narrow columns; stacked footer ledger on mobile and onboarding steps as full-width rows */
/* Hallmark · dropped tailwindcss, gsap, scrolltrigger, #testimonials, testimonials · stripped CDN scripts per static architecture and removed anonymous testimonials per Gate 46a */
/* Hallmark · dropped 99.4%, 199+, 11+, 97%, $41m, 2%, 24hours, 3weeks, 99.99%, 62%, 85%, 8+ · removed unverified marketing percentages and repeated stat counters per Gates 46a and 69 */
/* Hallmark · dropped high-performance, engineered for scale, one engineering powerhouse, colombo hub, colombo engineering hub, how we accelerate, technical discovery, 48-hour pod, continuous delivery, proven impact, real-time payment, unified cloud, multi-region kubernetes, trusted by, ready to deploy, colombo delivery, direct enterprise, request a technical · condensed verbose section headings into direct nouns per Gates 19 and 58 */

@import url("./tokens.css");
@import url("./base.css");

/* Smooth Scroll & Sticky Header Offset (Gate 27 compliant) */
html {
  scroll-padding-top: 5.5rem;
}

#home,
#services,
#corridors,
#portfolio,
#about,
#contact {
  scroll-margin-top: 5.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Typography & Vantage variable axis discipline (2 weights: 300 and 400) */
body {
  font-weight: 300;
  font-variation-settings: "SHRP" 0;
  color: var(--color-ink-2);
}

h1,
h2 {
  font-weight: 300;
  font-variation-settings: "SHRP" 100;
  color: var(--color-ink);
}

h3 {
  font-weight: 400;
  font-variation-settings: "SHRP" 100;
  color: var(--color-ink);
  letter-spacing: -0.02em;
}

strong,
th,
label,
.num {
  font-weight: 400;
  color: var(--color-ink);
}

/* Vantage Corner-Tick Frame (.ticks) */
.ticks {
  position: relative;
}

.ticks::before {
  content: "";
  position: absolute;
  inset: 0;
  border: var(--rule-hair) solid var(--color-rule-2);
  pointer-events: none;
  -webkit-mask: conic-gradient(from 90deg at var(--tick) var(--tick), transparent 25%, var(--color-ink) 0)
    calc(-1 * var(--rule-hair)) calc(-1 * var(--rule-hair)) /
    calc(100% - 2 * var(--tick) + 2 * var(--rule-hair))
    calc(100% - 2 * var(--tick) + 2 * var(--rule-hair));
  mask: conic-gradient(from 90deg at var(--tick) var(--tick), transparent 25%, var(--color-ink) 0)
    calc(-1 * var(--rule-hair)) calc(-1 * var(--rule-hair)) /
    calc(100% - 2 * var(--tick) + 2 * var(--rule-hair))
    calc(100% - 2 * var(--tick) + 2 * var(--rule-hair));
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-md);
  z-index: var(--z-tooltip);
  padding: var(--space-xs) var(--space-md);
  background-color: var(--color-accent);
  color: var(--color-accent-ink);
  border-radius: var(--radius-card);
  text-decoration: none;
  font-weight: 400;
  transform: translateY(-200%);
  transition: transform var(--dur-micro) var(--ease-out);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* Floating Pill Navigation (#main-header) */
.site-header {
  position: fixed;
  top: var(--space-md);
  left: 0;
  right: 0;
  z-index: var(--z-sticky-nav);
  pointer-events: none;
}

.site-header__pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--space-xs) var(--space-lg);
  background-color: var(--color-paper-2);
  color: var(--color-ink);
  border: var(--rule-hair) solid var(--color-rule-2);
  border-radius: var(--radius-pill);
  transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}

.site-header.is-scrolled .site-header__pill {
  background-color: var(--color-paper-3);
  color: var(--color-ink);
  border-color: var(--color-muted);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--color-ink);
  font-weight: 400;
  font-size: var(--text-md);
  white-space: nowrap;
}

.brand-link__logo {
  width: var(--space-lg);
  height: var(--space-lg);
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.site-nav__link {
  color: var(--color-ink-2);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 400;
  padding: var(--space-2xs) var(--space-xs);
  border-radius: var(--radius-card);
  white-space: nowrap;
  transition: color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out);
}

.site-nav__link:hover {
  color: var(--color-ink);
  background-color: var(--color-paper-3);
}

.site-nav__link:active {
  transform: translateY(1px);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xs) var(--space-md);
  border: var(--rule-hair) solid var(--color-rule-2);
  border-radius: var(--radius-pill);
  background-color: var(--color-paper);
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out);
}

.header-cta:hover {
  border-color: var(--color-ink);
  background-color: var(--color-paper-3);
  color: var(--color-ink);
}

.header-cta:active {
  transform: translateY(1px);
}

.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: var(--space-xl);
  height: var(--space-xl);
  padding: 0;
  background-color: var(--color-paper);
  color: var(--color-ink);
  border: var(--rule-hair) solid var(--color-rule-2);
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.mobile-drawer {
  pointer-events: auto;
  margin-top: var(--space-xs);
  padding: var(--space-md) var(--space-lg);
  background-color: var(--color-paper-2);
  color: var(--color-ink);
  border: var(--rule-hair) solid var(--color-rule-2);
  border-radius: var(--radius-card);
}

.mobile-drawer__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-link {
  display: block;
  padding: var(--space-xs) var(--space-sm);
  color: var(--color-ink);
  text-decoration: none;
  font-size: var(--text-md);
  font-weight: 400;
  border-radius: var(--radius-card);
  white-space: nowrap;
}

.mobile-nav-link:hover {
  background-color: var(--color-paper-3);
  color: var(--color-ink);
}

/* Primary & Secondary Controls (48px height, all states) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: calc(var(--space-lg) * 2);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-pill);
  border: var(--rule-hair) solid var(--color-accent);
  background-color: var(--color-accent);
  color: var(--color-accent-ink);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}

.btn:hover {
  background-color: var(--color-accent-hi);
  border-color: var(--color-accent-hi);
  color: var(--color-accent-ink);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn--line {
  background-color: transparent;
  color: var(--color-ink);
  border-color: var(--color-muted);
}

.btn--line:hover {
  background-color: var(--color-paper-2);
  color: var(--color-ink);
  border-color: var(--color-ink);
}

.link-action {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: var(--color-muted);
  text-underline-offset: 0.22em;
  white-space: nowrap;
  background: none;
  border: none;
  padding: var(--space-2xs) 0;
  cursor: pointer;
  transition: color var(--dur-micro) var(--ease-out), text-decoration-color var(--dur-micro) var(--ease-out);
}

.link-action:hover {
  color: var(--color-ink);
  text-decoration-color: var(--color-accent);
}

.link-action:active {
  transform: translateY(1px);
}

/* Section Rhythm & Surfaces (varied gaps across --section-gap-s, --section-gap, --section-gap-l) */
.hero {
  position: relative;
  overflow: clip;
  width: 100%;
  min-height: 100svh;
  padding-top: calc(var(--space-2xl) + var(--space-sm));
  padding-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.hero__container {
  position: static;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  pointer-events: none;
}

.section-services {
  padding-top: var(--section-gap-s);
  padding-bottom: var(--section-gap);
}

.section-corridors {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
  background-color: var(--color-paper-2);
  color: var(--color-ink-2);
  border-top: var(--rule-hair) solid var(--color-rule);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.section-portfolio {
  padding-top: var(--section-gap-l);
  padding-bottom: var(--section-gap);
}

.section-about {
  padding-top: var(--section-gap-l);
  padding-bottom: var(--section-gap-l);
  border-top: var(--rule-hair) solid var(--color-rule);
}

.section-contact {
  padding-top: var(--section-gap-l);
  padding-bottom: var(--section-gap-l);
  background-color: var(--color-paper-2);
  color: var(--color-ink-2);
  border-top: var(--rule-hair) solid var(--color-rule);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

/* Hero Grid & Signature Shift Instrument */
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 4.8fr) minmax(0, 7.2fr);
  gap: var(--space-xl);
  align-items: center;
  pointer-events: none;
}

.hero__copy {
  position: relative;
  z-index: var(--z-raised);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  pointer-events: none;
}

.hero__origin {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-ink-2);
  font-size: var(--text-xs);
  font-weight: 400;
}

.status-dot {
  width: var(--space-xs);
  height: var(--space-xs);
  border-radius: var(--radius-pill);
  background-color: var(--color-accent);
  color: var(--color-accent-ink);
  flex-shrink: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .status-dot {
    animation: status-blink 1.8s var(--ease-in-out) infinite;
  }
}

@keyframes status-blink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.25;
    transform: scale(0.82);
  }
}

.hero__coord {
  color: var(--color-ink-2);
  white-space: nowrap;
}

.hero__title {
  max-width: 15ch;
}

.hero__lead {
  color: var(--color-ink-2);
  max-width: 42ch;
}

.hero__actions {
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-2xs);
}

.hero__metrics {
  pointer-events: auto;
  width: 100%;
  max-width: 52ch;
  margin-top: var(--space-xs);
  padding-top: var(--space-md);
  border-top: var(--rule-hair) solid var(--color-rule-2);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.05fr) minmax(0, 0.85fr) minmax(0, 0.8fr);
  gap: var(--space-sm);
}

.hero__metric {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
  min-width: 0;
}

.hero__metric-meta {
  font-size: var(--text-xs);
  color: var(--color-muted);
  white-space: nowrap;
}

.hero__metric-val {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-ink);
  white-space: nowrap;
}

/* Hero Signature 3D Spatial LiDAR Globe (#hero-visual) */
.lidar-globe,
.lidar-globe[data-slot] {
  position: static;
  margin: 0;
  background: transparent;
  background-color: transparent;
  color: var(--color-ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
}

.lidar-globe__stage {
  position: static;
  height: clamp(420px, 60svh, 620px);
  width: 100%;
  pointer-events: none;
}

.lidar-globe__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  cursor: grab;
  touch-action: pan-y;
}

.lidar-globe__canvas:active {
  cursor: grabbing;
}

.lidar-globe__dock {
  position: relative;
  z-index: var(--z-raised);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
}

.lidar-globe__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.lidar-globe__hint {
  color: var(--color-ink-2);
  white-space: nowrap;
}

.corridor-switch {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
}

.corridor-pill {
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-pill);
  border: var(--rule-hair) solid var(--color-rule-2);
  background-color: var(--color-paper-2);
  color: var(--color-ink-2);
  font-size: var(--text-xs);
  font-weight: 400;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out);
}

.corridor-pill:hover {
  color: var(--color-ink);
  border-color: var(--color-muted);
}

.corridor-pill[aria-selected="true"] {
  background-color: var(--color-paper-3);
  color: var(--color-ink);
  border-color: var(--color-accent);
}

/* Progressive scroll reveal (scoped strictly to JS-enabled full-motion sessions) */
html.js-reveal [data-reveal="pending"] {
  opacity: 0;
  transform: translateY(var(--space-md));
}

html.js-reveal [data-reveal="visible"] {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out);
}

/* Section Headers */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--gap-columns);
  align-items: end;
  margin-bottom: var(--space-2xl);
}

.section-head__desc {
  color: var(--color-ink-2);
  font-size: var(--text-md);
}

/* Section 1: Services Bento Grid (#services-grid) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap-columns);
}

.service-card {
  padding: var(--space-xl);
  background-color: var(--color-paper-2);
  color: var(--color-ink-2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-lg);
  min-height: 280px;
  transition: background-color var(--dur-short) var(--ease-out);
}

.service-card:hover {
  background-color: var(--color-paper-3);
  color: var(--color-ink);
}

.service-card--wide {
  grid-column: span 7;
}

.service-card--narrow {
  grid-column: span 5;
}

.service-card__top {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.service-card__title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
}

.service-card__index {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.service-card__body {
  color: var(--color-ink-2);
  font-size: var(--text-md);
}

.service-card__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: var(--rule-hair) solid var(--color-rule);
}

.spec-inline {
  font-size: var(--text-xs);
  color: var(--color-muted);
}

/* Section 2: Interactive 24-Hour Global Corridor Synchronization Timeline (#corridors) */
.corridor-matrix,
.corridor-matrix[data-slot] {
  margin: 0;
  background: var(--color-paper);
  background-color: var(--color-paper);
  color: var(--color-ink-2);
  overflow: clip;
}

.corridor-matrix__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  background-color: var(--color-paper);
}

.corridor-matrix__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}

.corridor-matrix__label {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-muted);
  white-space: nowrap;
}

.corridor-matrix__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
}

.matrix-pill {
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-pill);
  border: var(--rule-hair) solid var(--color-rule-2);
  background-color: var(--color-paper-2);
  color: var(--color-ink-2);
  font-size: var(--text-xs);
  font-weight: 400;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out);
}

.matrix-pill:hover {
  color: var(--color-ink);
  border-color: var(--color-muted);
}

.matrix-pill[aria-selected="true"] {
  background-color: var(--color-paper-3);
  color: var(--color-ink);
  border-color: var(--color-accent);
}

.corridor-matrix__customizer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}

.corridor-matrix__presets {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
}

.matrix-preset {
  padding: var(--space-2xs) var(--space-xs);
  border-radius: var(--radius-card);
  border: var(--rule-hair) solid var(--color-rule-2);
  background-color: var(--color-paper);
  color: var(--color-ink-2);
  font-size: var(--text-xs);
  font-weight: 400;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out);
}

.matrix-preset:hover {
  border-color: var(--color-muted);
  color: var(--color-ink);
  background-color: var(--color-paper-2);
}

.matrix-preset.is-active {
  border-color: var(--color-accent);
  color: var(--color-ink);
  background-color: var(--color-paper-2);
}

.corridor-matrix__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-xs) var(--space-lg);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  background-color: var(--color-paper-2);
  font-size: var(--text-xs);
}

.corridor-matrix__states {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
}

.matrix-legend-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-ink-2);
  white-space: nowrap;
}

.matrix-swatch {
  width: var(--space-sm);
  height: var(--space-xs);
  flex-shrink: 0;
}

.matrix-swatch--sync {
  background-color: color-mix(in oklab, var(--color-accent) 26%, var(--color-paper-2));
  box-shadow: inset 0 2px 0 0 var(--color-accent);
}

.matrix-swatch--build {
  background-color: var(--color-paper-3);
  box-shadow: inset 0 2px 0 0 var(--point-mid);
}

.matrix-swatch--rest {
  background-color: var(--color-paper);
  box-shadow: inset 0 0 0 1px var(--color-rule-2);
}

.corridor-matrix__scroll {
  width: 100%;
  overflow-x: auto;
  scrollbar-color: var(--color-muted) var(--color-paper);
}

.corridor-matrix__grid {
  display: flex;
  flex-direction: column;
  min-width: 920px;
  width: 100%;
}

.matrix-row {
  display: grid;
  grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  background-color: var(--color-paper);
  transition: opacity var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}

.matrix-row--axis {
  background-color: var(--color-paper-2);
}

.matrix-row--anchor {
  background-color: color-mix(in oklab, var(--color-paper-2) 65%, var(--color-paper));
}

.matrix-row.is-dimmed {
  opacity: 0.45;
}

.matrix-row.is-focused {
  background-color: var(--color-paper-2);
}

.matrix-head {
  position: sticky;
  left: 0;
  z-index: var(--z-raised);
  padding: var(--space-sm) var(--space-md);
  background-color: var(--color-paper);
  border-right: var(--rule-hair) solid var(--color-rule-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3xs);
}

.matrix-row--axis .matrix-head,
.matrix-row.is-focused .matrix-head {
  background-color: var(--color-paper-2);
}

.matrix-head__title {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-ink);
}

.matrix-head__sub {
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.matrix-head__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
}

.matrix-badge {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-ink-2);
  padding: 0 var(--space-2xs);
  background-color: var(--color-paper-3);
}

.matrix-badge--accent {
  color: var(--color-accent);
}

.matrix-clock {
  font-size: var(--text-xs);
  color: var(--color-ink);
}

.matrix-head__city {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-ink);
  white-space: nowrap;
}

.matrix-head__shift {
  font-size: var(--text-xs);
  color: var(--color-muted);
  white-space: nowrap;
}

.matrix-track {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  align-items: stretch;
}

.matrix-cell {
  position: relative;
  min-height: 52px;
  padding: var(--space-2xs) var(--space-3xs);
  border-right: var(--rule-hair) solid var(--color-rule);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xs);
  font-size: var(--text-xs);
  user-select: none;
  cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}

.matrix-cell:last-child {
  border-right: none;
}

.matrix-row--axis .matrix-cell {
  min-height: 38px;
  background-color: var(--color-paper-2);
  color: var(--color-muted);
  cursor: default;
}

.matrix-cell__hour {
  font-size: var(--text-xs);
  line-height: 1.1;
}

.matrix-cell__tag {
  font-size: 0.6875rem;
  line-height: 1;
  color: var(--color-muted);
}

/* Three Visual Operational States (Live Sync, Autonomous Build, Rest Window) */
.matrix-cell--sync {
  background-color: color-mix(in oklab, var(--color-accent) 18%, var(--color-paper-2));
  color: var(--color-ink);
  box-shadow: inset 0 2px 0 0 var(--color-accent), inset 0 -1px 0 0 var(--color-accent);
}

.matrix-cell--sync .matrix-cell__tag {
  color: var(--color-accent);
}

.matrix-cell--build {
  background-color: var(--color-paper-3);
  color: var(--color-ink-2);
  box-shadow: inset 0 2px 0 0 var(--point-mid);
}

.matrix-cell--build .matrix-cell__tag {
  color: var(--color-ink-2);
}

.matrix-cell--rest {
  background-color: var(--color-paper);
  color: var(--color-muted);
}

/* Live "Now" Vertical Hairline Marker & Column Hover Scrubber */
.matrix-cell.is-now {
  box-shadow: inset 2px 0 0 0 var(--color-accent);
}

.matrix-cell--sync.is-now {
  box-shadow: inset 2px 0 0 0 var(--color-accent), inset 0 2px 0 0 var(--color-accent), inset 0 -1px 0 0 var(--color-accent);
}

.matrix-cell--build.is-now {
  box-shadow: inset 2px 0 0 0 var(--color-accent), inset 0 2px 0 0 var(--point-mid);
}

.matrix-row--axis .matrix-cell.is-now {
  color: var(--color-accent);
  font-weight: 400;
}

.matrix-cell.is-scrubbed {
  background-color: color-mix(in oklab, var(--point-hi) 14%, var(--color-paper-3));
  color: var(--color-ink);
}

.matrix-cell--sync.is-scrubbed {
  background-color: color-mix(in oklab, var(--color-accent) 30%, var(--color-paper-2));
}

/* Bottom 4-Column Telemetry Summary Bar */
.corridor-matrix__summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background-color: var(--color-paper);
}

.matrix-summary-cell {
  padding: var(--space-md) var(--space-lg);
  border-right: var(--rule-hair) solid var(--color-rule);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.matrix-summary-cell:last-child {
  border-right: none;
}

.matrix-summary-meta {
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.matrix-summary-val {
  font-size: var(--text-md);
  font-weight: 400;
  color: var(--color-ink);
}

.matrix-summary-sub {
  font-size: var(--text-xs);
  color: var(--color-ink-2);
}

/* Section 3: Portfolio Architecture Rows (#portfolio) */
.case-list {
  display: flex;
  flex-direction: column;
  border-top: var(--rule-hair) solid var(--color-rule-2);
}

.case-row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr);
  gap: var(--gap-columns);
  align-items: baseline;
  padding: var(--space-xl) var(--space-md);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  transition: background-color var(--dur-short) var(--ease-out);
}

.case-row:hover {
  background-color: var(--color-paper-2);
  color: var(--color-ink);
}

.case-row__sector {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.case-row__main {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.case-row__desc {
  color: var(--color-ink-2);
  font-size: var(--text-md);
}

.case-row__stack {
  font-size: var(--text-sm);
  color: var(--color-ink-2);
}

/* Section 4: About / Operating Calibration (#about) */
.calibration-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-2xl);
  align-items: start;
}

.calibration-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.layer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.layer-pill {
  min-height: calc(var(--space-lg) * 2);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-pill);
  border: var(--rule-hair) solid var(--color-rule-2);
  background-color: var(--color-paper-2);
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  font-weight: 400;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out);
}

.layer-pill:hover {
  color: var(--color-ink);
  border-color: var(--color-muted);
}

.layer-pill[aria-selected="true"] {
  background-color: var(--color-paper-3);
  color: var(--color-ink);
  border-color: var(--color-accent);
}

.calibration-panel {
  padding: var(--space-xl);
  background-color: var(--color-paper-2);
  color: var(--color-ink-2);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-lg);
}

.calibration-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

.calibration-step {
  padding: var(--space-md);
  background-color: var(--color-paper);
  color: var(--color-ink-2);
  border: var(--rule-hair) solid var(--color-rule);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  transition: border-color var(--dur-micro) var(--ease-out);
}

.calibration-step.is-active {
  border-color: var(--color-accent);
}

.calibration-step__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-xs);
}

.calibration-step__num {
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.calibration-step__text {
  font-size: var(--text-sm);
  color: var(--color-ink-2);
}

/* Section 5: Consultation Form (#contact) */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-2xl);
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-ledger {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg);
  background-color: var(--color-paper);
  color: var(--color-ink-2);
}

.contact-ledger__row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-sm);
}

.contact-ledger__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-form-box {
  padding: var(--space-xl);
  background-color: var(--color-paper);
  color: var(--color-ink);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

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

.form-label {
  font-size: var(--text-sm);
  color: var(--color-ink);
}

.form-control {
  width: 100%;
  min-height: calc(var(--space-lg) * 2);
  padding: var(--space-sm) var(--space-md);
  background-color: var(--color-paper-2);
  color: var(--color-ink);
  border: var(--rule-hair) solid var(--color-muted);
  border-radius: var(--radius-card);
  font-size: var(--text-md);
  transition: border-color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out);
}

.form-control::placeholder {
  color: var(--color-muted);
}

.form-control:hover {
  border-color: var(--color-ink-2);
}

.form-control:focus-visible {
  border-color: var(--color-focus);
  background-color: var(--color-paper-3);
  color: var(--color-ink);
}

.form-control:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.form-control[aria-invalid="true"] {
  border-color: var(--color-error);
}

textarea.form-control {
  min-height: var(--space-3xl);
  resize: vertical;
}

.form-footer {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-status {
  min-height: var(--space-lg);
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  border-radius: var(--radius-card);
}

.form-status.is-error {
  color: var(--color-error);
  background-color: var(--color-paper-2);
  border: var(--rule-hair) solid var(--color-error);
}

.form-status.is-notice {
  color: var(--color-ink);
  background-color: var(--color-paper-2);
  border: var(--rule-hair) solid var(--color-rule-2);
}

/* Statement Footer */
.site-footer {
  padding-top: var(--section-gap-s);
  padding-bottom: var(--space-2xl);
  background-color: var(--color-paper);
  color: var(--color-ink-2);
}

.site-footer__statement {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-xl);
  padding-bottom: var(--space-2xl);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.site-footer__headline {
  font-size: var(--text-section);
  color: var(--color-ink);
  max-width: 22ch;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding-top: var(--space-lg);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__link {
  color: var(--color-ink-2);
  text-decoration: none;
  white-space: nowrap;
}

.site-footer__link:hover {
  color: var(--color-ink);
}

.site-footer__ledger {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: var(--rule-hair) solid var(--color-rule);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.site-footer__ledger-col {
  max-width: 60ch;
}

/* Responsive Breakpoints */
@media (min-width: 64rem) {
  .lidar-globe,
  .lidar-globe[data-slot] {
    margin-bottom: var(--space-lg);
  }

  .lidar-globe__dock {
    position: absolute;
    bottom: var(--space-xl);
    right: var(--gutter);
    align-items: flex-end;
    text-align: right;
  }

  .lidar-globe__status {
    justify-content: flex-end;
  }

  .corridor-switch {
    justify-content: flex-end;
  }
}

@media (max-width: 63.9375rem) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--space-3xl) + var(--space-md));
    padding-bottom: var(--space-2xl);
  }

  .hero__grid,
  .section-head,
  .calibration-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xl);
  }

  .lidar-globe,
  .lidar-globe[data-slot] {
    position: relative;
    gap: var(--space-sm);
  }

  .lidar-globe__stage {
    position: relative;
    height: clamp(300px, 46svh, 400px);
  }

  .service-card--wide,
  .service-card--narrow {
    grid-column: span 6;
  }

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

  .matrix-summary-cell:nth-child(2) {
    border-right: none;
  }

  .matrix-summary-cell:nth-child(1),
  .matrix-summary-cell:nth-child(2) {
    border-bottom: var(--rule-hair) solid var(--color-rule);
  }

  .case-row {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-sm);
  }

  .calibration-steps,
  .site-footer__ledger {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 52rem) {
  .site-nav,
  .header-cta {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .service-card--wide,
  .service-card--narrow {
    grid-column: 1 / -1;
  }

  .hero__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-sm) var(--space-md);
  }

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

@media (max-width: 40rem) {
  .site-header__pill {
    padding: var(--space-xs) var(--space-md);
  }

  .service-card,
  .calibration-panel,
  .contact-form-box {
    padding: var(--space-md);
  }

  .corridor-matrix__toolbar,
  .corridor-matrix__legend,
  .matrix-summary-cell {
    padding: var(--space-sm) var(--space-md);
  }

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

  .matrix-summary-cell {
    border-right: none;
    border-bottom: var(--rule-hair) solid var(--color-rule);
  }

  .matrix-summary-cell:last-child {
    border-bottom: none;
  }

  .matrix-row {
    grid-template-columns: 192px minmax(680px, 1fr);
  }

  .matrix-head {
    padding: var(--space-xs) var(--space-sm);
  }

  .matrix-head__city,
  .matrix-head__shift {
    white-space: normal;
  }

  .lidar-globe__stage {
    height: 280px;
  }
}
