/* Nithinlabs — design system */
:root {
  --ink: #0b0d12;
  --ink-2: #262a33;
  --muted: #5b6069;
  --muted-2: #8b9098;
  --paper: #fafaf8;
  --surface: #ffffff;
  --sunken: #f3f2ee;
  --line: #e7e5e0;
  --line-2: #d6d3cc;
  --accent: #2747f5;
  --accent-2: #1b34c9;
  --accent-soft: #eef1fe;
  --violet: #6b5bd6;
  --violet-soft: #f0edfb;
  --grid-line: rgba(11, 13, 18, 0.05);
  --ok: #0e9f6e;
  --ok-soft: #e6f6ef;
  --warn: #a16207;
  --warn-soft: #fdf3e1;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --container: 1200px;
  --header-h: 64px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

h1 {
  font-size: clamp(2.5rem, 1.5rem + 4.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.9rem, 1.35rem + 2.1vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.032em;
}

h3 {
  font-size: 1.125rem;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

p {
  margin: 0;
}

::selection {
  background: var(--accent);
  color: #fff;
}

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

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 200;
  padding: 0.5rem 0.9rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: 14px;
}

.skip-link:focus {
  top: 0.75rem;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.mono {
  font-family: var(--mono);
}

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

/* ---------- Kicker / section heads ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform-origin: left center;
}

.sec-head {
  display: grid;
  gap: 1rem 3rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.sec-head .kicker {
  grid-column: 1 / -1;
}

.sec-head p {
  color: var(--muted);
  font-size: 17px;
  max-width: 46ch;
}

@media (min-width: 900px) {
  .sec-head {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: end;
  }
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 44px;
  padding: 0 1.1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

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

.btn .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: #000;
}

.btn-primary:disabled {
  background: var(--ink-2);
  cursor: progress;
  opacity: 0.85;
}

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

.btn-outline:hover {
  border-color: var(--ink);
}

.btn-light {
  background: #fff;
  color: var(--ink);
}

.btn-light:hover {
  background: var(--sunken);
}

.btn-ghost-light {
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.btn-ghost-light:hover {
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}

.link-arrow:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.link-arrow .icon {
  width: 14px;
  height: 14px;
  transition: transform 0.25s var(--ease);
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}

.site-header.is-scrolled {
  border-color: var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.logo-word {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 0;
  background: transparent;
  display: grid;
  place-items: center;
  overflow: visible;
  flex-shrink: 0;
}

.logo-mark .logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.nav {
  display: none;
  gap: 0.25rem;
  margin-right: auto;
}

.nav a {
  position: relative;
  padding: 0.4rem 0.7rem;
  font-size: 14.5px;
  color: var(--muted);
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover {
  color: var(--ink);
  background: var(--sunken);
}

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

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: -13px;
  height: 2px;
  background: var(--ink);
}

.header-cta {
  display: none;
  height: 38px;
  font-size: 14px;
}

.nav-toggle {
  margin-left: auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-content: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 899px) {
  .nav-open {
    border-color: var(--line);
    background: var(--paper);
  }

  .nav-open .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .nav-open .nav a {
    padding: 0.8rem 0.25rem;
    font-size: 17px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .nav-open .nav a:hover {
    background: none;
  }

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

@media (min-width: 900px) {
  .nav {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
  opacity: 0.6;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-grid > *,
.tabs > *,
.contact-grid > *,
.detail-grid > *,
.two-col > * {
  min-width: 0;
}

@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 4rem;
  }
}

.hero h1 .soft {
  color: var(--muted-2);
}

.hero-sub {
  margin: 1.5rem 0 2rem;
  max-width: 52ch;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  color: var(--muted);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-points .icon {
  width: 14px;
  height: 14px;
  color: var(--ok);
  stroke-width: 2.2;
}

/* ---------- Live demo ---------- */
.demo {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 0 rgba(11, 13, 18, 0.03), 0 30px 60px -30px rgba(11, 13, 18, 0.22);
  overflow: hidden;
}

.demo-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.demo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-soft);
}

.demo-badge {
  margin-left: auto;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-body {
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

.demo-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.demo-metrics > div {
  padding: 0.75rem 0.85rem;
  display: grid;
  gap: 0.2rem;
}

.demo-metrics > div + div {
  border-left: 1px solid var(--line);
}

.m-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.m-value {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.bump {
  animation: bump 0.6s var(--ease);
}

.demo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.9rem;
  background: var(--sunken);
  border-radius: var(--r);
}

.demo-item strong {
  display: block;
  font-weight: 500;
  color: var(--ink);
  font-size: 14.5px;
}

.demo-item span {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-2);
}

.demo-price {
  font-family: var(--mono);
  font-size: 15px !important;
  font-weight: 500;
  color: var(--ink) !important;
}

.demo-log {
  list-style: none;
  margin: 0;
  padding: 0;
}

.demo-log li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0 0.75rem;
  align-items: center;
  padding: 0.6rem 0.1rem;
  border-top: 1px solid var(--line);
  transition: opacity 0.3s;
  opacity: 0.45;
}

.demo-log li:first-child {
  border-top: 0;
}

.log-icon {
  position: relative;
  grid-row: span 2;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background 0.3s, border-color 0.3s;
}

.log-icon .icon {
  width: 12px;
  height: 12px;
  stroke-width: 3;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.25s, transform 0.3s var(--ease);
}

.log-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.log-value {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  min-height: 1.2em;
}

.demo-log li.is-active {
  opacity: 1;
}

.demo-log li.is-active .log-icon {
  border-color: var(--accent);
  border-top-color: transparent;
  animation: spin 0.7s linear infinite;
}

.demo-log li.is-done {
  opacity: 1;
}

.demo-log li.is-done .log-icon {
  background: var(--ok);
  border-color: var(--ok);
}

.demo-log li.is-done .log-icon .icon {
  opacity: 1;
  transform: none;
}

.demo-run {
  width: 100%;
}

.demo-note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  text-align: center;
}

/* ---------- Logos marquee ---------- */
.logos {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.logos-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logos-label {
  flex: none;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-right: 2rem;
  border-right: 1px solid var(--line);
  line-height: 3;
}

.marquee {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

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

.marquee-group {
  display: flex;
  gap: 3.25rem;
  padding: 1.35rem 1.625rem;
}

.marquee-item {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--muted-2);
  white-space: nowrap;
  transition: color 0.2s;
}

.marquee-item:hover {
  color: var(--ink);
}

@media (max-width: 640px) {
  .logos-label {
    display: none;
  }
}

/* ---------- Tabs (home services) ---------- */
.tabs {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 960px) {
  .tabs {
    grid-template-columns: 330px 1fr;
    gap: 3rem;
    align-items: start;
  }
}

.tab-list {
  display: flex;
  overflow-x: auto;
  gap: 0.5rem;
  scrollbar-width: none;
}

.tab-list::-webkit-scrollbar {
  display: none;
}

.tab {
  position: relative;
  flex: none;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: baseline;
  gap: 0.15rem 0;
  padding: 0.65rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  text-align: left;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.tab-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
}

.tab-title {
  font-size: 15px;
  font-weight: 500;
}

.tab-desc {
  display: none;
}

.tab[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.tab[aria-selected="true"] .tab-num {
  color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 960px) {
  .tab-list {
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--line);
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }

  .tab {
    padding: 1.2rem 0.25rem;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .tab::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: 100%;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--ease);
  }

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

  .tab[aria-selected="true"] {
    background: none;
    color: var(--ink);
  }

  .tab[aria-selected="true"] .tab-num {
    color: var(--accent);
  }

  .tab[aria-selected="true"]::after {
    transform: scaleX(1);
  }

  .tab-title {
    font-size: 19px;
    letter-spacing: -0.02em;
  }

  .tab-desc {
    display: block;
    grid-column: 2;
    font-size: 14px;
    color: var(--muted-2);
  }
}

.tab-panel {
  animation: fadeUp 0.45s var(--ease);
}

.tab-panel[hidden] {
  display: none;
}

/* ---------- Service grid (hairline) ---------- */
.svc-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

@media (min-width: 700px) {
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.svc-row {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr 18px;
  gap: 1rem;
  align-items: start;
  padding: 1.5rem;
  background: var(--surface);
  transition: background 0.25s;
}

.svc-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(260px circle at var(--mx) var(--my), var(--accent-soft), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.svc-row:hover::before {
  opacity: 1;
}

.svc-row > * {
  position: relative;
}

.svc-row h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.svc-row p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.icon-box {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: border-color 0.25s, color 0.25s;
}

.svc-row:hover .icon-box {
  border-color: var(--accent);
  color: var(--accent);
}

.svc-arrow {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  color: var(--muted-2);
  transition: transform 0.3s var(--ease), color 0.25s;
}

.svc-row:hover .svc-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.svc-row[hidden] {
  display: none;
}

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(5, 1fr);
  }
}

.step {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 0;
  border-bottom: 1px solid var(--line);
  cursor: default;
}

@media (min-width: 900px) {
  .step {
    border-bottom: 0;
    padding: 1.75rem 1.5rem 0.5rem 0;
  }

  .step + .step {
    padding-left: 1.5rem;
    border-left: 1px solid var(--line);
  }
}

.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.step.is-current::before,
.step:hover::before {
  transform: scaleX(1);
}

.step-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
  transition: color 0.3s;
}

.step.is-current .step-num,
.step:hover .step-num {
  color: var(--accent);
}

.step h3 {
  margin: 0.85rem 0 0.5rem;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.step p {
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- Bento ---------- */
.bento {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

@media (min-width: 760px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
  }

  .cell-lg {
    grid-column: span 2;
  }
}

.cell {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 220px;
  padding: 1.75rem;
  background: var(--surface);
}

.cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx) var(--my), var(--accent-soft), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.cell:hover::before {
  opacity: 0.8;
}

.cell > * {
  position: relative;
}

.cell-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cell-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
}

.cell h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.cell p {
  font-size: 15px;
  color: var(--muted);
}

.cell-body {
  margin-top: auto;
}

.cell-lg .statement {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--ink);
  max-width: 24ch;
}

.cell-lg .statement span {
  color: var(--muted-2);
}

.cell-dark {
  background: var(--ink);
  color: #c9ccd3;
}

.cell-dark h3 {
  color: #fff;
}

.cell-dark p {
  color: #a3a7b0;
}

.cell-dark .cell-label {
  color: #7d828c;
}

.cell-dark::before {
  display: none;
}

/* ---------- Industries list ---------- */
.ind-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

/* ---------- Dark band: stats & quotes ---------- */
.band-ink {
  background: var(--ink);
  color: #a3a7b0;
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.band-ink .kicker {
  color: #8b9098;
}

.band-ink h2 {
  color: #fff;
}

.band-ink .sec-head p {
  color: #a3a7b0;
}

.quotes {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
}

@media (min-width: 860px) {
  .quotes {
    grid-template-columns: repeat(3, 1fr);
  }
}

.quote {
  margin: 0;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: border-color 0.25s, background 0.25s;
}

.quote:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.03);
}

.quote p {
  color: #e6e7ea;
  font-size: 16.5px;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.quote footer {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 12px;
  color: #8b9098;
}

.quote footer strong {
  display: block;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

.placeholder-note {
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-2);
}

/* ---------- FAQ ---------- */
.faq-wrap {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .faq-wrap {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
  }
}

.faq-aside p {
  margin: 1rem 0 1.5rem;
  color: var(--muted);
  max-width: 34ch;
}

.faq {
  border-top: 1px solid var(--line);
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

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

.faq-plus {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: transform 0.35s var(--ease), background 0.25s, border-color 0.25s;
}

.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: background 0.25s;
}

.faq-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq summary:hover .faq-plus {
  border-color: var(--ink);
}

.faq details[open] .faq-plus {
  transform: rotate(45deg);
  background: var(--ink);
  border-color: var(--ink);
}

.faq details[open] .faq-plus::before,
.faq details[open] .faq-plus::after {
  background: #fff;
}

.faq-body {
  padding: 0 3rem 1.5rem 0;
  color: var(--muted);
  font-size: 15.5px;
}

.faq details[open] .faq-body {
  animation: fadeUp 0.35s var(--ease);
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  display: grid;
  gap: 2rem;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  background: var(--ink);
  border-radius: 20px;
  color: #a3a7b0;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 80% at 100% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 100% 0%, #000, transparent 70%);
  pointer-events: none;
}

.cta > * {
  position: relative;
}

.cta h2 {
  color: #fff;
  max-width: 18ch;
}

.cta p {
  margin-top: 1rem;
  max-width: 46ch;
}

@media (min-width: 900px) {
  .cta {
    grid-template-columns: 1.4fr 1fr;
    align-items: end;
  }

  .cta .btn-row {
    justify-content: flex-end;
  }
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 50% 90% at 100% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 50% 90% at 100% 0%, #000, transparent 70%);
  opacity: 0.7;
  pointer-events: none;
}

.page-hero > .container {
  position: relative;
}

.page-hero h1 {
  font-size: clamp(2.3rem, 1.5rem + 3.2vw, 4rem);
  max-width: 18ch;
}

.page-hero .lead {
  margin-top: 1.25rem;
  max-width: 56ch;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  color: var(--muted);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
}

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

.breadcrumb a:hover {
  color: var(--ink);
}

.breadcrumb span[aria-hidden] {
  color: var(--line-2);
}

/* ---------- Services page ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}

.filter {
  position: relative;
  width: min(100%, 380px);
}

.filter .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.filter input {
  padding-left: 42px;
}

.filter-count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.pillar {
  display: grid;
  gap: 1.5rem;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-bottom: 1px solid var(--line);
}

.pillar:last-of-type {
  border-bottom: 0;
}

.pillar[hidden] {
  display: none;
}

@media (min-width: 960px) {
  .pillar {
    grid-template-columns: 300px 1fr;
    gap: 3rem;
  }

  .pillar-aside {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    align-self: start;
  }
}

.pillar-aside h2 {
  margin: 0.9rem 0 0.6rem;
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
}

.pillar-aside p {
  color: var(--muted);
  font-size: 15px;
}

.filter-empty {
  padding: 3rem 0;
  text-align: center;
  color: var(--muted);
}

.filter-empty:empty {
  display: none;
}

/* ---------- Service detail ---------- */
.detail-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 960px) {
  .detail-grid {
    grid-template-columns: 1.35fr 0.65fr;
    gap: 4rem;
    align-items: end;
  }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.5rem;
}

.panel .icon-box {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
}

.panel dl {
  margin: 0;
  display: grid;
}

.panel dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.panel dt {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.panel dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
  text-align: right;
}

.feature-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  padding: 1.5rem;
  background: var(--surface);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  transition: background 0.25s;
}

.feature:hover {
  background: var(--paper);
}

.feature .mono {
  font-size: 12px;
  color: var(--accent);
}

.feature p {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.checks li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.checks .icon {
  color: var(--ok);
  stroke-width: 2.2;
  width: 18px;
  height: 18px;
}

.two-col {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* ---------- Industries page ---------- */
.ind-block {
  display: grid;
  gap: 1rem 3rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.ind-block:first-child {
  border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
  .ind-block {
    grid-template-columns: 44px 0.8fr 1.2fr;
    gap: 1rem 2rem;
    align-items: baseline;
  }
}

.ind-block h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

.ind-block p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.ind-block:target h2 {
  color: var(--accent);
}

.chips-static {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink);
  background: var(--surface);
  transition: border-color 0.2s, color 0.2s;
}

.chip-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Case studies ---------- */
.case-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

@media (min-width: 900px) {
  .case-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.case {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--surface);
}

.case h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.case dl {
  margin: 0;
  display: grid;
  gap: 1rem;
}

.case dt {
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-2);
  margin-bottom: 0.25rem;
}

.case dd {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.tag {
  align-self: flex-start;
  padding: 2px 8px;
  background: var(--warn-soft);
  color: var(--warn);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- About ---------- */
.manifesto {
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.75rem);
  line-height: 1.18;
  letter-spacing: -0.032em;
  font-weight: 500;
  color: var(--ink);
  max-width: 28ch;
}

.manifesto span {
  color: var(--muted-2);
}

/* ---------- Forms ---------- */
.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: 1.35fr 0.65fr;
    gap: 4rem;
    align-items: start;
  }
}

.form {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.form-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

label,
legend {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-2);
}

input:hover,
textarea:hover {
  border-color: var(--muted-2);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(11, 13, 18, 0.06);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.field-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08) !important;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chips input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.chips label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 450;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.chips label:hover {
  border-color: var(--ink);
}

.chips label::before {
  content: "+";
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted-2);
  transition: transform 0.25s var(--ease), color 0.2s;
}

.chips input:checked + label {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.chips input:checked + label::before {
  content: "✓";
  color: #fff;
}

.chips input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.estimate {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding: 0.8rem 1rem;
  background: var(--sunken);
  border-radius: var(--r);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}

.estimate strong {
  color: var(--ink);
  font-weight: 500;
}

.estimate .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.form-foot small {
  font-size: 13px;
  color: var(--muted);
}

.form-foot small a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-2);
}

.form-message {
  display: none;
  padding: 0.8rem 1rem;
  border-radius: var(--r);
  font-size: 14px;
}

.form-message.show {
  display: block;
  animation: fadeUp 0.35s var(--ease);
}

.form-message.success {
  background: var(--ok-soft);
  color: #05603a;
}

.form-message.error {
  background: #fdecec;
  color: #a51c1c;
}

.next-steps {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.next-steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.next-steps .mono {
  font-size: 12px;
  color: var(--accent);
  padding-top: 3px;
}

.next-steps strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
}

.next-steps span {
  font-size: 14px;
  color: var(--muted);
}

.contact-list {
  display: grid;
  gap: 0;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.contact-list a,
.contact-list div {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  transition: color 0.2s;
}

.contact-list a:hover {
  color: var(--accent);
}

.contact-list .icon {
  color: var(--muted);
  width: 18px;
  height: 18px;
}

/* ---------- Referral programme ---------- */
.refer-hero-grid {
  display: grid;
  gap: 2rem;
  align-items: end;
}

@media (min-width: 860px) {
  .refer-hero-grid {
    grid-template-columns: 1.4fr 0.85fr;
    gap: 3rem;
  }
}

.reward-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.6rem 1.35rem 1.4rem;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 90% 0%, var(--accent-soft), transparent 55%),
    var(--surface);
  color: var(--ink);
  overflow: hidden;
}

.reward-card .door-label {
  color: var(--muted);
}

.reward-card .door-value {
  color: var(--ink);
  font-family: var(--mono);
  letter-spacing: -0.06em;
}

.reward-card .door-caption {
  color: var(--muted);
}

.reward-card.frame::before,
.reward-card.frame::after {
  border-color: rgba(39, 71, 245, 0.45);
}

.reward-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  width: fit-content;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reward-badge .icon {
  width: 14px;
  height: 14px;
}

.reward-card-ink {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(120% 90% at 90% 0%, rgba(39, 71, 245, 0.35), transparent 55%),
    rgba(255, 255, 255, 0.04);
  color: #fff;
}

.reward-card-ink .door-label,
.reward-card-ink .door-caption {
  color: #a3a7b0;
}

.reward-card-ink .door-value {
  color: #fff;
}

.reward-card-ink.frame::before,
.reward-card-ink.frame::after {
  border-color: rgba(255, 255, 255, 0.55);
}

.refer-steps {
  margin-top: 0;
}

.referral-band {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.referral-band-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 860px) {
  .referral-band-inner {
    grid-template-columns: 1.4fr 0.85fr;
    gap: 3rem;
  }
}

.referral-band-copy h2 {
  margin-top: 1rem;
  color: #fff;
}

.referral-band-copy p {
  margin-top: 0.85rem;
  max-width: 46ch;
  color: #a3a7b0;
}

.referral-band-aside {
  display: grid;
  gap: 1rem;
  justify-items: stretch;
}

.referral-band-aside .btn {
  justify-self: start;
}

.contact-refer {
  display: grid;
  grid-template-columns: 40px 1fr 20px;
  gap: 0.85rem;
  align-items: center;
  margin-top: 1.5rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background:
    linear-gradient(135deg, var(--accent-soft), transparent 60%),
    var(--surface);
  color: var(--ink);
  transition: border-color 0.2s, transform 0.2s var(--ease);
}

.contact-refer:hover {
  border-color: rgba(39, 71, 245, 0.35);
  transform: translateY(-1px);
}

.contact-refer-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: #fff;
}

.contact-refer-icon .icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}

.contact-refer strong {
  display: block;
  font-weight: 600;
  font-size: 14.5px;
}

.contact-refer span span {
  display: block;
  margin-top: 0.15rem;
  font-size: 13.5px;
  color: var(--muted);
}

.contact-refer > .icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-top: 0.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--sunken);
}

.consent input {
  margin-top: 0.2rem;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.consent label {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.45;
}

.consent.field-error,
.consent:has(.field-error),
input.field-error + label {
  outline: none;
}

#ref-consent.field-error {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

.fieldset-hint {
  margin: 0.25rem 0 0.75rem;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.refer-fineprint {
  max-width: 70ch;
  padding: 1.25rem 1.35rem;
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  background: var(--sunken);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.refer-fineprint strong {
  color: var(--ink);
  font-weight: 600;
}

.refer-fineprint a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-2);
}

@media (max-width: 720px) {
  .refer-hero-grid {
    align-items: stretch;
  }

  .referral-band-aside {
    justify-items: stretch;
  }

  .referral-band-aside .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-refer {
    grid-template-columns: 36px 1fr 18px;
    padding: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-refer:hover,
  .reward-card:hover {
    transform: none;
  }
}

/* ---------- Prose (legal) ---------- */
.prose {
  max-width: 680px;
}

.prose h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 0.75rem;
}

.prose h2:first-child {
  margin-top: 0;
}

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

.prose a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-2);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.6fr repeat(3, 1fr);
  }
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 34ch;
  font-size: 14.5px;
  color: var(--muted);
}

.footer-col h4 {
  margin-bottom: 1rem;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.footer-col a {
  display: block;
  width: fit-content;
  padding: 0.3rem 0;
  font-size: 14.5px;
  color: var(--ink-2);
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: 3.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.footer-bottom nav {
  display: flex;
  gap: 1.25rem;
}

.footer-bottom a:hover {
  color: var(--ink);
}

.wordmark {
  margin: 0 0 -0.18em;
  font-size: clamp(4.5rem, 19vw, 17rem);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-2);
  user-select: none;
  white-space: nowrap;
  text-align: center;
}

/* ---------- 404 ---------- */
.error-page {
  min-height: 62vh;
  display: grid;
  place-items: center;
  padding: 4rem 0;
  text-align: center;
}

.error-code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 1rem;
}

.error-page p {
  margin: 1rem auto 2rem;
  max-width: 42ch;
  color: var(--muted);
}

.error-page .btn-row {
  justify-content: center;
}

/* ---------- Reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Keyframes ---------- */
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes bump {
  0% {
    color: var(--accent);
    transform: translateY(-3px);
  }
  100% {
    color: var(--ink);
    transform: none;
  }
}

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

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }

  .marquee-group[aria-hidden] {
    display: none;
  }
}

/* =========================================================
   V3 — flask brand, hub, pillar visuals, motion
   ========================================================= */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 200;
  background: var(--accent);
  transform-origin: left;
  pointer-events: none;
}

/* Circuit flask logo */
.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 0;
  background: transparent;
  display: grid;
  place-items: center;
  overflow: visible;
  flex-shrink: 0;
}

.logo-mark-sm {
  width: 28px;
  height: 28px;
}

.logo-mark .logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Headline word reveal */
h1 .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

h1 .word > span {
  display: inline-block;
}

.js h1[aria-label] .word > span {
  transform: translateY(110%);
  transition: transform 0.7s var(--ease);
}

.js h1.is-in .word > span {
  transform: none;
}

.js h1.is-in .word:nth-child(1) > span { transition-delay: 0.05s; }
.js h1.is-in .word:nth-child(2) > span { transition-delay: 0.12s; }
.js h1.is-in .word:nth-child(3) > span { transition-delay: 0.19s; }
.js h1.is-in .word:nth-child(4) > span { transition-delay: 0.26s; }
.js h1.is-in .word:nth-child(5) > span { transition-delay: 0.33s; }
.js h1.is-in .word:nth-child(6) > span { transition-delay: 0.4s; }

/* Hero spotlight */
.hero {
  --spot-x: 70%;
  --spot-y: 30%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--spot-x) var(--spot-y), rgba(39, 71, 245, 0.12), transparent 60%);
  pointer-events: none;
  transition: background 0.15s linear;
}

/* Section draw-in border */
.section[data-section],
.band-ink[data-section] {
  position: relative;
}

.section[data-section]::before,
.band-ink[data-section]::before {
  content: "";
  position: absolute;
  top: 0;
  left: max(1.25rem, calc((100% - var(--container)) / 2));
  right: max(1.25rem, calc((100% - var(--container)) / 2));
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease);
}

.band-ink[data-section]::before {
  background: rgba(255, 255, 255, 0.14);
}

.section[data-section].is-drawn::before,
.band-ink[data-section].is-drawn::before {
  transform: scaleX(1);
}

/* Tab indicator */
.tab-indicator {
  display: none;
}

@media (min-width: 960px) {
  .tab-indicator {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--ink);
    transform: translateY(0);
    transition: transform 0.45s var(--ease);
    pointer-events: none;
    z-index: 1;
  }

  .tab::after {
    display: none;
  }
}

.tab-visual {
  margin-bottom: 1rem;
}

/* Pillar micro-illustrations */
.viz {
  position: relative;
  height: 88px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
  margin-top: 1rem;
}

.tab-panel .viz {
  margin-top: 0;
  margin-bottom: 1rem;
}

.panel-visual .viz {
  margin: 0 0 1rem;
  height: 72px;
}

.viz-grow {
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
  gap: 0.5rem;
}

.viz-chat {
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  padding: 0.45rem 0.7rem;
  border-radius: 10px 10px 10px 3px;
  max-width: 70%;
  animation: popIn 2.8s var(--ease) infinite;
}

.viz-bubble {
  position: absolute;
  top: 10px;
  right: 12px;
  background: var(--ok-soft);
  color: var(--ok);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
  animation: badgePop 2.8s var(--ease) infinite;
}

.viz-sell {
  display: grid;
  place-items: center;
}

.viz-cart {
  color: var(--ink);
  animation: cartBounce 2.4s var(--ease) infinite;
}

.viz-cart .icon {
  width: 28px;
  height: 28px;
}

.viz-drop {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
  top: -12px;
  animation: dropIn 2.4s var(--ease) infinite;
}

.viz-drop.d1 { left: 42%; animation-delay: 0s; }
.viz-drop.d2 { left: 50%; background: var(--ok); animation-delay: 0.35s; }
.viz-drop.d3 { left: 58%; background: var(--ink); animation-delay: 0.7s; }

.viz-money {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.75rem;
}

.viz-invoice {
  width: 54px;
  display: grid;
  gap: 5px;
}

.viz-invoice i {
  display: block;
  height: 4px;
  background: var(--line-2);
  border-radius: 2px;
  transform-origin: left;
  animation: printLine 2.6s var(--ease) infinite;
}

.viz-invoice i:nth-child(1) { width: 100%; animation-delay: 0s; }
.viz-invoice i:nth-child(2) { width: 80%; animation-delay: 0.15s; }
.viz-invoice i:nth-child(3) { width: 90%; animation-delay: 0.3s; }
.viz-invoice i:nth-child(4) { width: 55%; animation-delay: 0.45s; }

.viz-tick {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ok-soft);
  color: var(--ok);
  display: grid;
  place-items: center;
  animation: badgePop 2.6s var(--ease) infinite;
}

.viz-tick .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.4;
}

.viz-operate {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  padding: 14px 18px 12px;
}

.viz-operate span {
  display: block;
  width: 7px;
  height: var(--h, 40px);
  min-height: 14px;
  background: var(--line-2);
  border-radius: 2px 2px 0 0;
  transform-origin: bottom;
  animation: barPulse 3.2s var(--ease) infinite alternate;
}

.viz-operate span:nth-child(2) { animation-delay: 0.25s; }
.viz-operate span:nth-child(3) { background: rgba(39, 71, 245, 0.2); animation-delay: 0.5s; }
.viz-operate span:nth-child(4) { animation-delay: 0.75s; }
.viz-operate span:nth-child(5) { animation-delay: 1s; }

.viz-build {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.75rem;
}

.viz-phone {
  width: 22px;
  height: 38px;
  border: 1.5px solid var(--ink);
  border-radius: 5px;
  position: relative;
}

.viz-phone::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 8px;
  height: 2px;
  background: var(--ink);
  transform: translateX(-50%);
}

.viz-server {
  width: 36px;
  display: grid;
  gap: 4px;
}

.viz-server i {
  display: block;
  height: 8px;
  border: 1.5px solid var(--line-2);
  border-radius: 2px;
  background: var(--sunken);
}

.viz-server i::after {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  margin: 2px 0 0 4px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse 1.6s infinite;
}

.viz-pulse {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 8px;
  height: 16px;
  color: var(--accent);
  opacity: 0.7;
}

.viz-pulse path {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: drawStroke 2.4s var(--ease) infinite;
}

.viz.is-paused *,
.viz.is-paused {
  animation-play-state: paused !important;
}

@keyframes popIn {
  0% { opacity: 0.85; transform: translateY(4px) scale(0.98); }
  12% { opacity: 1; transform: none; }
  70% { opacity: 1; transform: none; }
  85% { opacity: 0.9; transform: translateY(-2px); }
  100% { opacity: 0.85; transform: translateY(4px) scale(0.98); }
}

@keyframes badgePop {
  0%, 100% { opacity: 0.9; transform: scale(0.95); }
  20% { opacity: 1; transform: scale(1.05); }
  40%, 75% { opacity: 1; transform: none; }
}

@keyframes dropIn {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 1; }
  55% { transform: translateY(48px); opacity: 0; }
  100% { transform: translateY(48px); opacity: 0; }
}

@keyframes cartBounce {
  0%, 40%, 100% { transform: none; }
  50% { transform: translateY(3px); }
  60% { transform: translateY(-2px); }
}

@keyframes printLine {
  0%, 10% { transform: scaleX(0); }
  30%, 70% { transform: scaleX(1); }
  90%, 100% { transform: scaleX(0); transform-origin: right; }
}

@keyframes barPulse {
  from { transform: scaleY(0.88); opacity: 0.7; }
  to { transform: scaleY(1); opacity: 1; }
}

@keyframes drawStroke {
  0% { stroke-dashoffset: 120; }
  40%, 70% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -120; }
}

/* System hub */
.hub {
  max-width: 640px;
  margin-inline: auto;
}

.hub-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.hub-link {
  stroke: var(--line-2);
  stroke-width: 1.5;
  stroke-dasharray: 6 8;
  fill: none;
  animation: dashFlow 12s linear infinite;
  transition: stroke 0.3s, stroke-width 0.3s;
}

.hub-link.is-hot {
  stroke: var(--accent);
  stroke-width: 2.2;
  animation-duration: 4s;
}

.hub-core {
  color: var(--ink);
}

.hub-core-ring {
  fill: var(--surface);
  stroke: var(--ink);
  stroke-width: 1.5;
}

.hub-node rect {
  fill: var(--surface);
  stroke: var(--line-2);
  stroke-width: 1.25;
  transition: fill 0.25s, stroke 0.25s;
}

.hub-node text {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  fill: var(--ink);
  pointer-events: none;
}

.hub-node {
  cursor: pointer;
  outline: none;
}

.hub-node:hover rect,
.hub-node:focus-visible rect,
.hub-node.is-hot rect {
  stroke: var(--accent);
  fill: var(--accent-soft);
}

.hub-tip {
  margin-top: 1rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  min-height: 1.4em;
}

@keyframes dashFlow {
  to { stroke-dashoffset: -140; }
}

/* Sparklines */
.spark {
  width: 72px;
  height: 22px;
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.spark path {
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  transition: stroke-dashoffset 1.4s var(--ease);
}

/* CTA steps */
.cta-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.cta-steps li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 12px;
  color: #8b9098;
}

.cta-steps span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  font-size: 10px;
  color: #fff;
}

/* 404 tipped flask */
.tipped-flask {
  width: min(180px, 50vw);
  margin: 0 auto 1.5rem;
  color: var(--muted-2);
}

.related-chips {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* Magnetic button helper */
.btn[data-magnetic] {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .orbit-dash,
  .pulse {
    animation: none !important;
  }
  .hub-link,
  .viz-chat,
  .viz-bubble,
  .viz-drop,
  .viz-cart,
  .viz-invoice i,
  .viz-tick,
  .viz-operate span,
  .viz-server i::after,
  .viz-pulse path,
  .logo:hover .flask-bubble,
  .logo:hover .flask-liquid {
    animation: none !important;
  }
  .js h1[aria-label] .word > span {
    transform: none !important;
  }
  .section[data-section]::before,
  .band-ink[data-section]::before {
    transform: none;
  }
  .spark path {
    stroke-dashoffset: 0;
  }
  .hub-link,
  .connector {
    stroke-dasharray: none;
  }
  [data-scroll] {
    transform: none !important;
    opacity: 1 !important;
  }
  .story-section,
  .story-pin {
    height: auto !important;
    min-height: 0 !important;
    position: static !important;
    top: auto !important;
  }
  .site-header.is-hidden {
    transform: none !important;
  }
  .sec-head h2,
  .kicker::before {
    clip-path: none !important;
    transform: none !important;
  }
}

/* =========================================================
   nithinlabs.com visual adoption — light theme
   ========================================================= */

.blueprint {
  position: relative;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
}

.blueprint > * {
  position: relative;
  z-index: 1;
}

.frame {
  position: relative;
}

.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--accent);
  border-style: solid;
  opacity: 0.55;
  pointer-events: none;
  z-index: 2;
}

.frame::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}

.frame::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 1px 1px 0;
}

/* Hero kicker chip */
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.75rem;
  padding: 10px 14px;
  border: 1px solid rgba(39, 71, 245, 0.22);
  background: var(--accent-soft);
  color: var(--accent);
  font: 500 10px var(--mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(39, 71, 245, 0.35);
  animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(39, 71, 245, 0.35); }
  70% { box-shadow: 0 0 0 8px rgba(39, 71, 245, 0); }
  100% { box-shadow: 0 0 0 0 rgba(39, 71, 245, 0); }
}

/* Orbit hub diagram */
.orbit-hub {
  position: relative;
  max-width: 640px;
  margin-inline: auto;
  padding: 2.75rem 1.25rem 1.25rem;
}

.orbit-stage {
  position: relative;
  max-width: 480px;
  margin-inline: auto;
}

.orbit-svg {
  position: relative;
  width: 100%;
  height: auto;
  overflow: visible;
}

.orbit {
  fill: none;
  stroke: rgba(39, 71, 245, 0.18);
  stroke-width: 1;
}

.orbit-dash {
  fill: none;
  stroke: rgba(39, 71, 245, 0.45);
  stroke-width: 1;
  stroke-dasharray: 3 7;
  transform-origin: 275px 285px;
  animation: orbitSpin 48s linear infinite;
}

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

.connector {
  fill: none;
  stroke: rgba(39, 71, 245, 0.28);
  stroke-width: 1.25;
  transition: stroke 0.3s, stroke-width 0.3s;
}

.connector.is-hot,
.hub-link.is-hot {
  stroke: var(--accent);
  stroke-width: 2.2;
}

.node {
  fill: var(--surface);
  stroke: var(--accent);
  stroke-width: 1.3;
  transition: fill 0.25s, stroke 0.25s, stroke-width 0.25s;
}

.node-violet {
  fill: var(--surface);
  stroke: var(--violet);
  stroke-width: 1.3;
  transition: fill 0.25s, stroke 0.25s, stroke-width 0.25s;
}

.node.is-hot,
.node-violet.is-hot {
  fill: var(--accent-soft);
  stroke: var(--accent);
  stroke-width: 2;
}

.orbit-center {
  position: absolute;
  width: 24%;
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid rgba(39, 71, 245, 0.45);
  background: var(--surface);
  box-shadow:
    0 0 0 8px rgba(39, 71, 245, 0.04),
    0 0 0 18px rgba(39, 71, 245, 0.025);
  pointer-events: none;
}

.orbit-center .logo-mark {
  width: 48px;
  height: 48px;
}

.orbit-center .caption {
  font: 8.5px var(--mono);
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: lowercase;
  white-space: nowrap;
}

.connected-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.connected-grid > * {
  min-width: 0;
}

@media (max-width: 959px) {
  .connected-copy {
    order: -1;
  }
}

@media (min-width: 960px) {
  .connected-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }

  .connected-visual .orbit-hub {
    margin-inline: 0;
  }
}

.connected-copy h2 {
  margin-top: 1rem;
}

.connected-lead {
  margin-top: 1rem;
  font-size: 17px;
  color: var(--muted);
  max-width: 46ch;
}

.flow-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.flow-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.75rem;
  padding: 0.85rem 0.85rem;
  border-bottom: 1px solid var(--line);
  cursor: default;
  transition: background 0.25s, box-shadow 0.25s;
}

.flow-item strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.25s;
}

.flow-item p {
  margin-top: 0.15rem;
  font-size: 14px;
  color: var(--muted);
}

.flow-num {
  padding-top: 2px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
  transition: color 0.25s;
}

.flow-item:hover strong {
  color: var(--accent);
}

.orbit-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.5rem;
}

.art-label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font: 10px var(--mono);
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: var(--ink-2);
}

.art-label i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.art-label.violet i {
  background: var(--violet);
}

.art-corner {
  font: 10px var(--mono);
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.art-corner.top {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
}

.orbit-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line-2);
}

.orbit-hub .hub-node rect {
  fill: var(--surface);
  stroke: var(--line-2);
  stroke-width: 1.25;
}

.orbit-hub .hub-node text {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  fill: var(--ink);
}

.orbit-hub .hub-node:hover rect,
.orbit-hub .hub-node:focus-visible rect,
.orbit-hub .hub-node.is-hot rect {
  stroke: var(--accent);
  fill: var(--accent-soft);
}

.orbit-hub .hub-tip {
  margin: 0;
  text-align: right;
}

@media (max-width: 720px) {
  .orbit-hub {
    padding: 2.5rem 0.75rem 1rem;
  }

  .art-label {
    padding: 6px 9px;
    font-size: 9px;
  }

  .orbit-center .caption {
    display: none;
  }

  .orbit-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .orbit-hub .hub-tip {
    text-align: left;
  }
}

/* Expertise rows (industries) */
.expertise-row {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr 24px;
  align-items: center;
  gap: 0.85rem 1rem;
  padding: 1.35rem 0.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  isolation: isolate;
  transition: padding 0.35s var(--ease);
}

.expertise-row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--surface);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s var(--ease);
}

.expertise-row:hover {
  padding-left: 1rem;
  padding-right: 1rem;
}

.expertise-row:hover::before {
  transform: scaleY(1);
}

.expertise-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
}

.expertise-row .expertise-title {
  font-size: clamp(1.2rem, 1rem + 1vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  transition: color 0.25s;
}

.expertise-row .expertise-desc {
  display: none;
  font-size: 14px;
  color: var(--muted);
}

.expertise-row .tag-list {
  display: none;
  flex-wrap: wrap;
  gap: 0.4rem;
  grid-column: 2;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sunken);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

.expertise-row .icon {
  color: var(--muted-2);
  transform: rotate(-45deg);
  transition: transform 0.35s var(--ease), color 0.25s;
  justify-self: end;
}

.expertise-row:hover .expertise-title {
  color: var(--accent);
}

.expertise-row:hover .icon {
  color: var(--accent);
  transform: none;
}

@media (min-width: 800px) {
  .expertise-row {
    grid-template-columns: 60px minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1.15fr) 24px;
    align-items: center;
  }

  .expertise-row .expertise-desc {
    display: block;
  }

  .expertise-row .tag-list {
    display: flex;
    grid-column: auto;
    justify-content: flex-end;
  }
}

@media (max-width: 799px) {
  .expertise-row .tag-list {
    display: flex;
  }
}

/* Stat door cards */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  border-top: none;
}

@media (min-width: 860px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.door {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.35rem 1.15rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}

.door:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.door.frame::before,
.door.frame::after {
  border-color: rgba(255, 255, 255, 0.55);
}

.door-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8b9098;
}

.door-value {
  font-size: clamp(2.1rem, 1.5rem + 2vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.door-caption {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  font-family: var(--mono);
  font-size: 12px;
  color: #a3a7b0;
}

.door-caption .icon {
  width: 14px;
  height: 14px;
}

.door .spark {
  margin-top: 0.35rem;
}

.door.is-in .spark path {
  stroke-dashoffset: 0;
}

/* =========================================================
   Scroll interactions + mobile polish
   ========================================================= */

[data-scroll] {
  --p: 0;
}

[data-scroll-lift] {
  transform: translateY(calc(var(--p) * -24px));
  opacity: calc(1 - (var(--p) * 0.15));
  will-change: transform, opacity;
}

.hero.blueprint[data-scroll-parallax] {
  background-position: 0 calc(var(--p) * -48px);
}

.site-header {
  transition: transform 0.28s var(--ease), border-color 0.25s, background 0.25s;
}

.site-header.is-hidden {
  transform: translateY(-110%);
}

/* Staggered reveals */
.js [data-reveal].is-in > *:nth-child(1) { transition-delay: 0.04s; }
.js [data-reveal].is-in > *:nth-child(2) { transition-delay: 0.1s; }
.js [data-reveal].is-in > *:nth-child(3) { transition-delay: 0.16s; }
.js [data-reveal].is-in > *:nth-child(4) { transition-delay: 0.22s; }
.js [data-reveal].is-in > *:nth-child(5) { transition-delay: 0.28s; }

.js [data-reveal] .kicker::before,
.js .connected-copy .kicker::before {
  transform: scaleX(0.25);
  transition: transform 0.55s var(--ease);
}

.js [data-reveal].is-in .kicker::before,
.js .connected-copy.is-in .kicker::before {
  transform: none;
}

.js .sec-head h2 {
  clip-path: inset(0 0 100% 0);
  transform: translateY(12px);
  transition: clip-path 0.7s var(--ease), transform 0.7s var(--ease);
}

.js [data-reveal].is-in.sec-head h2,
.js .sec-head.is-in h2,
.js [data-reveal].is-in .sec-head h2 {
  clip-path: inset(0 0 0 0);
  transform: none;
}

.js .connected-copy h2 {
  clip-path: inset(0 0 100% 0);
  transform: translateY(12px);
  transition: clip-path 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .connected-copy.is-in h2 {
  clip-path: inset(0 0 0 0);
  transform: none;
}

/* Industries stagger */
.js .ind-list[data-reveal] > li {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.js .ind-list[data-reveal].is-in > li {
  opacity: 1;
  transform: none;
}

.js .ind-list[data-reveal].is-in > li:nth-child(1) { transition-delay: 0.02s; }
.js .ind-list[data-reveal].is-in > li:nth-child(2) { transition-delay: 0.06s; }
.js .ind-list[data-reveal].is-in > li:nth-child(3) { transition-delay: 0.1s; }
.js .ind-list[data-reveal].is-in > li:nth-child(4) { transition-delay: 0.14s; }
.js .ind-list[data-reveal].is-in > li:nth-child(5) { transition-delay: 0.18s; }
.js .ind-list[data-reveal].is-in > li:nth-child(6) { transition-delay: 0.22s; }
.js .ind-list[data-reveal].is-in > li:nth-child(7) { transition-delay: 0.26s; }
.js .ind-list[data-reveal].is-in > li:nth-child(8) { transition-delay: 0.3s; }

/* Door stagger */
.js .stats[data-reveal] > .door {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), border-color 0.25s, background 0.25s;
}

.js .stats[data-reveal].is-in > .door {
  opacity: 1;
  transform: none;
}

.js .stats[data-reveal].is-in > .door:nth-child(1) { transition-delay: 0.05s; }
.js .stats[data-reveal].is-in > .door:nth-child(2) { transition-delay: 0.12s; }
.js .stats[data-reveal].is-in > .door:nth-child(3) { transition-delay: 0.19s; }
.js .stats[data-reveal].is-in > .door:nth-child(4) { transition-delay: 0.26s; }

/* Story / pinned connected section */
.story-section {
  position: relative;
}

.story-pin {
  position: relative;
}

.flow-item.is-active {
  background: var(--surface);
  box-shadow: inset 2px 0 0 var(--accent);
}

.flow-item.is-active strong,
.flow-item.is-active .flow-num {
  color: var(--accent);
}

.hub-link.is-active,
.connector.is-active {
  stroke: var(--accent);
  stroke-width: 2;
}

.hub-node.is-active rect {
  stroke: var(--accent);
  fill: var(--accent-soft);
}

.node.is-active,
.node-violet.is-active {
  fill: var(--accent-soft);
  stroke: var(--accent);
  stroke-width: 2;
}

.flow-dots {
  display: none;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 0.85rem;
}

.flow-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-2);
  transition: background 0.25s, transform 0.25s;
}

.flow-dots span.is-active {
  background: var(--accent);
  transform: scale(1.25);
}

.orbit-dash {
  animation: none;
  transform-origin: 275px 285px;
  transform: rotate(calc(var(--p, 0) * 90deg));
}

@media (min-width: 960px) {
  .story-section {
    height: 260vh;
  }

  .story-pin {
    position: sticky;
    top: calc(var(--header-h) + 0.5rem);
    min-height: calc(100vh - var(--header-h) - 1rem);
    display: flex;
    align-items: center;
    padding: 1.5rem 0;
  }

  .story-pin .connected-grid {
    flex: 1;
    max-width: min(100% - 2.5rem, var(--container));
  }
}

/* Mobile CTA bar */
.mobile-cta {
  display: none;
}

@media (max-width: 720px) {
  .mobile-cta {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    display: none;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    padding: 0.55rem;
    background: rgba(11, 13, 18, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(11, 13, 18, 0.28);
    transform: translateY(120%);
    transition: transform 0.3s var(--ease);
  }

  .mobile-cta.is-visible {
    display: grid;
    transform: translateY(0);
  }

  .mobile-cta[hidden] {
    display: none !important;
  }

  .mobile-cta-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 1rem;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-size: 14.5px;
    font-weight: 500;
  }

  .mobile-cta-wa {
    display: grid;
    place-items: center;
    width: 44px;
    min-height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }

  .mobile-cta-wa .icon {
    width: 18px;
    height: 18px;
  }

  body {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }

  .hero {
    padding: clamp(2rem, 6vw, 3rem) 0 clamp(2.5rem, 6vw, 3.5rem);
  }

  .demo-metrics {
    font-size: 13px;
  }

  .demo-log {
    font-size: 13px;
  }

  .connected-visual .orbit-hub {
    max-width: 320px;
    padding: 2rem 0.25rem 0.75rem;
  }

  .flow-list {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0.25rem;
    border-top: none;
    padding: 0.25rem 0 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .flow-list::-webkit-scrollbar {
    display: none;
  }

  .flow-item {
    flex: 0 0 min(78vw, 280px);
    scroll-snap-align: center;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    padding: 1rem;
    min-height: 44px;
  }

  .flow-item + .flow-item {
    border-left: 1px solid var(--line);
  }

  .expertise-row {
    grid-template-columns: 32px 1fr 20px;
  }

  .flow-item.is-active {
    box-shadow: none;
    border-color: rgba(39, 71, 245, 0.35);
  }

  .flow-dots {
    display: flex;
  }

  .stats {
    gap: 0.65rem;
  }

  .door {
    padding: 1rem 0.85rem;
  }

  .tab-list {
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0.5rem;
    padding-bottom: 0.25rem;
  }

  .tab {
    scroll-snap-align: start;
    min-height: 44px;
  }

  .nav a,
  .btn,
  .expertise-row,
  .svc-row {
    min-height: 44px;
  }
}

@media (min-width: 721px) {
  .mobile-cta {
    display: none !important;
  }
}
