/* Connet Industrial Design System — ported from Flutter ConnectCard */

:root {
  --ink: #070909;
  --paper: #eef2ed;
  --acid: #d1ff49;
  --panel: #101313;
  --panel-alt: #0b0e0d;
  --muted: #929b96;
  --line: rgba(238, 242, 237, 0.16);
  --dark-line: rgba(7, 9, 9, 0.2);
  --text-soft: #a7b0ab;
  --text-dim: #78817c;
  --header-h: 76px;
  --pad: clamp(20px, 4vw, 34px);
  --max: 1480px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--ink);
  color: var(--paper);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

body.has-custom-cursor {
  cursor: none;
}

body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor [role="button"],
body.has-custom-cursor input,
body.has-custom-cursor textarea,
body.has-custom-cursor select,
body.has-custom-cursor label {
  cursor: none;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* Typography helpers */
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 1.2px;
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
}

.section-tag {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.8px;
  color: var(--acid);
  margin-bottom: 28px;
  text-transform: uppercase;
}

.section-tag--ink {
  color: rgba(7, 9, 9, 0.55);
}

.section-tag--muted {
  color: #68716c;
}

.display {
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.04em;
}

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

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

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Logo (image) + optional text wordmark */
.site-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.site-logo img {
  height: 42px;
  width: auto;
  max-width: min(180px, 42vw);
  object-fit: contain;
  display: block;
}

.site-logo--footer img {
  height: 36px;
  max-width: 150px;
  /* Logo is dark-on-transparent; keep readable on ink footer */
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.wordmark {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--paper);
  display: inline-block;
}

.wordmark span {
  color: var(--acid);
}

.wordmark--ink {
  color: var(--ink);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 var(--pad);
  background: rgba(7, 9, 9, 0.74);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.site-header__nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.site-header__nav a {
  color: #b9c0bc;
  font-size: 12px;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.site-header__nav a:hover,
.site-header__nav a.is-active {
  color: var(--paper);
}

.site-header__cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--paper);
  transition: transform 0.28s var(--ease);
}

.site-header__cta .arrow {
  color: var(--acid);
  font-size: 18px;
}

.site-header__menu-btn {
  display: none;
  justify-self: end;
  width: 40px;
  height: 40px;
  color: var(--paper);
  font-size: 20px;
  border: 1px solid var(--line);
}

.scroll-progress {
  position: fixed;
  top: var(--header-h);
  left: 0;
  height: 2px;
  width: 0;
  background: var(--acid);
  z-index: 101;
  pointer-events: none;
}

/* Section indicator */
.section-indicator {
  position: fixed;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.section-indicator__line {
  width: 1px;
  height: 58px;
  background: linear-gradient(to bottom, var(--acid), var(--line));
}

.section-indicator__current {
  color: var(--acid);
  font-family: ui-monospace, monospace;
  font-size: 8px;
  letter-spacing: 0;
}

.section-indicator__total {
  color: #68716c;
  font-family: ui-monospace, monospace;
  font-size: 8px;
}

/* Custom cursor */
.cursor-ring,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor-ring {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(209, 255, 73, 0.46);
  transition: width 0.15s ease, height 0.15s ease, border-color 0.15s ease;
}

.cursor-dot {
  width: 4px;
  height: 4px;
  background: var(--acid);
}

/* Shell layout */
.site-main {
  min-height: 100vh;
}

.page-pad {
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.page-shell {
  max-width: var(--max);
  margin: 0 auto;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  object-position: 36% center;
  filter: brightness(0.72);
  will-change: transform;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(238, 242, 237, 0.045) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  background-position: 0 76px;
  border-top: 1px solid transparent;
}

.hero__grid::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 76px;
  height: 1px;
  background: rgba(238, 242, 237, 0.045);
}

.hero__pointer-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle 30vmax at var(--px, 70%) var(--py, 40%),
    rgba(209, 255, 73, 0.13),
    transparent 70%
  );
}

.hero__scanline {
  position: absolute;
  left: 43%;
  right: -8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(209, 255, 73, 0.7), transparent);
  box-shadow: 0 0 28px rgba(209, 255, 73, 0.28);
  animation: hero-scan 24s ease-in-out infinite;
  pointer-events: none;
}

@keyframes hero-scan {
  0%, 100% { top: 18%; }
  50% { top: 78%; }
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(7, 9, 9, 0.96) 0%,
    rgba(7, 9, 9, 0.86) 27%,
    rgba(7, 9, 9, 0.42) 48%,
    rgba(7, 9, 9, 0.08) 72%,
    rgba(7, 9, 9, 0.5) 100%
  );
  pointer-events: none;
}

.hero__meta {
  position: absolute;
  top: 99px;
  left: var(--pad);
  right: var(--pad);
  display: flex;
  justify-content: space-between;
  z-index: 2;
}

.hero__status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 14px rgba(209, 255, 73, 0.7);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 138px clamp(20px, 7vw, 7vw) 66px;
  max-width: 100%;
}

.hero__title {
  font-size: clamp(58px, 8.1vw, 128px);
  font-weight: 500;
  line-height: 0.87;
  letter-spacing: -0.071em;
  color: var(--paper);
  max-width: 14ch;
  will-change: transform;
}

.hero__lead-row {
  margin-top: 46px;
  display: flex;
  align-items: flex-end;
  gap: 32px;
}

.hero__lead {
  max-width: 580px;
  color: #b7bfba;
  font-size: clamp(15px, 1.35vw, 20px);
  line-height: 1.5;
}

.hero__scroll-btn {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(209, 255, 73, 0.5);
  display: grid;
  place-items: center;
  color: var(--acid);
  font-size: 20px;
  transition: transform 0.28s var(--ease), border-color 0.2s ease;
}

.hero__scroll-btn:hover {
  border-color: var(--acid);
}

.hero__telemetry {
  position: absolute;
  right: var(--pad);
  bottom: 34px;
  z-index: 2;
  width: min(260px, calc(100% - 40px));
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  will-change: transform;
}

.telemetry-cell {
  padding: 10px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.telemetry-cell .label {
  font-family: ui-monospace, monospace;
  font-size: 8px;
  color: #6f7873;
  letter-spacing: 1.2px;
}

.telemetry-cell .value {
  margin-top: 5px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--paper);
}

/* ========== MANIFESTO ========== */
.manifesto {
  background: var(--paper);
  color: var(--ink);
  min-height: 92vh;
  padding: clamp(110px, 12vw, 150px) clamp(20px, 7vw, 7vw);
}

.manifesto__title {
  font-size: clamp(48px, 6.8vw, 108px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 1280px;
}

.manifesto__title .dim {
  color: #8b938e;
}

.manifesto__divider {
  margin-top: 100px;
  height: 1px;
  background: var(--dark-line);
}

.manifesto__bottom {
  margin-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 70px;
}

.manifesto__text {
  max-width: 600px;
  font-size: clamp(18px, 1.65vw, 25px);
  line-height: 1.48;
  color: var(--ink);
}

.signal-line {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.signal-line span {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  color: #6d7670;
  letter-spacing: 1.2px;
}

.signal-line__seg {
  width: clamp(25px, 5vw, 74px);
  margin: 0 12px;
  height: 1px;
  background: #aeb5b0;
  position: relative;
}

.signal-line__seg::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--panel);
  transform: translateY(-50%);
}

/* ========== CAPABILITIES / PLATFORM ========== */
.capabilities {
  background: var(--ink);
  padding: 136px var(--pad) 110px;
}

.capabilities__head {
  max-width: var(--max);
  margin: 0 auto 76px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.capabilities__head p {
  color: #aeb6b1;
  font-size: 22px;
  line-height: 1.35;
  text-align: right;
}

.platform-explorer {
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.platform-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.platform-tab {
  height: 72px;
  padding: 0 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  transition: background 0.2s ease;
}

.platform-tab:hover {
  background: rgba(238, 242, 237, 0.04);
}

.platform-tab.is-active {
  background: var(--acid);
}

.platform-tab .code {
  font-family: ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 1px;
  color: #424945;
  margin-bottom: 6px;
}

.platform-tab.is-active .code {
  color: rgba(7, 9, 9, 0.54);
}

.platform-tab .label {
  font-size: 12px;
  letter-spacing: 1.3px;
  color: #68716c;
}

.platform-tab.is-active .label {
  color: var(--ink);
}

.platform-body {
  display: grid;
  grid-template-columns: 95fr 135fr;
  min-height: 620px;
  align-items: stretch;
}

.platform-body .platform-panels {
  display: flex;
  flex-direction: column;
}

.platform-panels {
  min-height: 500px;
}

.platform-copy {
  padding: clamp(24px, 5vw, 84px);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 500px;
  height: 100%;
}

.platform-copy[hidden] {
  display: none;
}

.platform-copy .eyebrow {
  color: var(--acid);
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 1.2px;
  margin-bottom: 28px;
}

.platform-copy h3 {
  font-size: clamp(38px, 4vw, 68px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: 36px;
}

.platform-copy p {
  color: #a9b2ad;
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.55;
  margin-bottom: 42px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.bordered-tag {
  padding: 7px 10px;
  border: 1px solid var(--line);
  font-family: ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.6px;
  color: #78827c;
  text-transform: uppercase;
}

.platform-visual {
  position: relative;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  min-height: 620px;
  background: var(--panel-alt);
  perspective: 900px;
}

.platform-visual canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ========== MARQUEE ========== */
.marquee {
  height: 46px;
  background: var(--acid);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
  white-space: nowrap;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 0 22px;
  font-family: ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 1.2px;
  color: var(--ink);
  text-transform: uppercase;
}

.marquee__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ========== SERVICES ========== */
.services-section {
  background: var(--acid);
  color: var(--ink);
  padding: clamp(100px, 10vw, 140px) var(--pad) clamp(100px, 10vw, 130px);
}

.services-section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.services-section__title {
  font-size: clamp(50px, 6.6vw, 104px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 42px;
}

.services-section__lead {
  max-width: 780px;
  color: rgba(7, 9, 9, 0.68);
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.5;
  margin-bottom: 82px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  min-height: 410px;
  padding: 28px;
  border: 1px solid rgba(7, 9, 9, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  transform-style: preserve-3d;
}

.service-card:hover {
  z-index: 2;
}

.service-card__code {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  color: var(--ink);
  letter-spacing: 1.2px;
  margin-bottom: 58px;
}

.service-card h3 {
  font-size: clamp(28px, 2.5vw, 42px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}

.service-card__summary {
  color: rgba(7, 9, 9, 0.67);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 30px;
}

.service-card__list {
  list-style: none;
}

.service-card__list li {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  font-family: ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 1px;
  color: rgba(7, 9, 9, 0.72);
  text-transform: uppercase;
}

.service-card__list li::before {
  content: "↳ ";
  color: var(--ink);
  flex-shrink: 0;
}

/* ========== PROJECTS / PROOF ========== */
.proof {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(100px, 10vw, 150px) var(--pad) 130px;
}

.proof__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.proof__title {
  font-size: clamp(58px, 8vw, 126px);
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: -0.04em;
  margin-bottom: clamp(60px, 6vw, 96px);
}

.proof__title .dim {
  color: #909893;
}

.proof__divider {
  height: 1px;
  background: var(--dark-line);
}

.case-row {
  display: block;
  width: 100%;
  padding: 38px 18px;
  border-bottom: 1px solid var(--dark-line);
  color: inherit;
  position: relative;
  transition: background 0.2s ease;
}

.case-row:hover {
  background: rgba(7, 9, 9, 0.035);
}

.case-row__grid {
  display: grid;
  grid-template-columns: 32fr 120fr 55fr;
  gap: 48px;
  align-items: start;
}

.case-row__index {
  font-family: ui-monospace, monospace;
  font-size: 9px;
  color: #777f7a;
  letter-spacing: 1.2px;
}

.case-row__type {
  font-family: ui-monospace, monospace;
  font-size: 9px;
  color: #777f7a;
  letter-spacing: 1.2px;
  margin-bottom: 13px;
}

.case-row__title {
  font-size: clamp(27px, 2.4vw, 40px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.case-row__text {
  max-width: 660px;
  color: #5d6560;
  font-size: 16px;
  line-height: 1.55;
}

.case-row__metric {
  text-align: right;
}

.case-row__metric-value {
  font-family: ui-monospace, monospace;
  font-size: clamp(22px, 2.4vw, 38px);
  color: var(--ink);
  letter-spacing: -1.5px;
  margin-bottom: 9px;
}

.case-row__metric-label {
  color: #777f7a;
  font-size: 11px;
  line-height: 1.35;
}

.case-row__open {
  position: absolute;
  right: 18px;
  top: 18px;
  font-family: ui-monospace, monospace;
  font-size: 8px;
  letter-spacing: 1px;
  color: #777f7a;
}

.proof__empty {
  padding: 80px 0;
  color: #5d6560;
  font-size: 18px;
}

/* ========== PEOPLE ========== */
.people-section {
  background: var(--ink);
  padding: 136px var(--pad) 130px;
}

.people-section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.people-section__title {
  font-size: clamp(50px, 6.6vw, 104px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: 40px;
}

.people-section__lead {
  color: #a7b0ab;
  font-size: 19px;
  line-height: 1.5;
  max-width: 720px;
  margin-bottom: 82px;
}

.people-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.person-card {
  min-height: 420px;
  padding: 30px;
  background: var(--panel-alt);
  border: 1px solid var(--line);
}

.person-card__top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 66px;
}

.person-card__code {
  font-family: ui-monospace, monospace;
  font-size: 9px;
  color: var(--acid);
  letter-spacing: 1.2px;
}

.person-card__badge {
  font-family: ui-monospace, monospace;
  font-size: 8px;
  color: #4f5953;
  letter-spacing: 1.2px;
}

.person-card h3 {
  font-size: clamp(34px, 3.2vw, 52px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 15px;
}

.person-card__role {
  font-family: ui-monospace, monospace;
  font-size: 9px;
  color: var(--acid);
  letter-spacing: 1.1px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.person-card__desc {
  color: #a7b0ab;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 30px;
}

/* ========== SYSTEMS ========== */
.systems {
  background: var(--panel-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 34fr 100fr;
  min-height: 720px;
}

.systems__aside {
  padding: 80px 34px 42px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.systems__aside .mono {
  color: #626b66;
}

.systems__main {
  padding: 100px clamp(20px, 7vw, 7vw);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.systems__title {
  font-size: clamp(50px, 6.6vw, 104px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.04em;
  margin-bottom: 50px;
}

.systems__text {
  max-width: 800px;
  color: #a7b0ab;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.5;
  margin-bottom: 70px;
}

.systems__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.systems__tags span {
  font-family: ui-monospace, monospace;
  font-size: 9px;
  color: #69736d;
  letter-spacing: 1.2px;
}

/* ========== METHOD ========== */
.method {
  background: var(--acid);
  color: var(--ink);
  padding: clamp(100px, 10vw, 140px) var(--pad) 130px;
}

.method__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.method__title {
  font-size: clamp(50px, 6.4vw, 102px);
  font-weight: 500;
  line-height: 0.93;
  letter-spacing: -0.04em;
  margin-bottom: clamp(55px, 6vw, 92px);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.method-card {
  min-height: 400px;
  padding: 28px;
  border: 1px solid rgba(7, 9, 9, 0.25);
  position: relative;
  display: flex;
  flex-direction: column;
}

.method-card__num {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  color: var(--ink);
  letter-spacing: 1.2px;
  margin-bottom: 70px;
}

.method-card h3 {
  font-size: clamp(32px, 3vw, 48px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.method-card p {
  max-width: 390px;
  color: rgba(7, 9, 9, 0.67);
  font-size: 16px;
  line-height: 1.55;
}

.method-card__code {
  margin-top: auto;
  align-self: flex-end;
  font-family: ui-monospace, monospace;
  font-size: 9px;
  color: var(--ink);
  letter-spacing: 1.2px;
  padding-top: 40px;
}

/* ========== CONTACT CTA ========== */
.contact-cta {
  position: relative;
  min-height: 850px;
  background: var(--ink);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.contact-cta__bg {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  opacity: 0.28;
  pointer-events: none;
}

.contact-cta__letter {
  border-right: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 18vw;
  font-weight: 700;
  color: #111615;
  will-change: transform;
}

.contact-cta__inner {
  position: relative;
  z-index: 1;
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.contact-cta__title {
  font-size: clamp(53px, 7.8vw, 124px);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.04em;
  margin-bottom: 76px;
}

.contact-cta__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid rgba(209, 255, 73, 0.6);
  border-bottom: 1px solid rgba(209, 255, 73, 0.6);
  color: var(--acid);
  font-size: clamp(18px, 1.7vw, 26px);
  transition: background 0.2s ease, padding 0.2s ease;
}

.contact-cta__link:hover {
  background: rgba(209, 255, 73, 0.04);
  padding-left: 12px;
  padding-right: 12px;
}

.contact-cta__link .arrow {
  font-size: 24px;
}

/* ========== FOOTER ========== */
.site-footer {
  min-height: 110px;
  padding: 30px var(--pad);
  background: var(--ink);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.site-footer__center {
  font-family: ui-monospace, monospace;
  font-size: 8px;
  color: #606964;
  letter-spacing: 1.2px;
  text-align: center;
}

.site-footer__right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: ui-monospace, monospace;
  font-size: 8px;
  color: #606964;
  letter-spacing: 1.2px;
}

.site-footer a:hover {
  color: var(--acid);
}

/* ========== INNER PAGES ========== */
.page-hero {
  padding: calc(var(--header-h) + 80px) var(--pad) 80px;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}

.page-hero__eyebrow {
  margin-bottom: 24px;
}

.page-hero h1 {
  font-size: clamp(42px, 6vw, 92px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  max-width: 16ch;
}

.page-hero p {
  max-width: 680px;
  color: var(--text-soft);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5;
}

.page-section {
  padding: 80px var(--pad) 100px;
}

.page-section--paper {
  background: var(--paper);
  color: var(--ink);
}

.page-section--ink {
  background: var(--ink);
}

.page-section--acid {
  background: var(--acid);
  color: var(--ink);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 0;
  max-width: var(--max);
  margin: 0 auto;
}

.cards-grid--gap {
  gap: 1px;
  background: var(--line);
}

.inner-card {
  background: var(--panel-alt);
  border: 1px solid var(--line);
  padding: 28px;
  min-height: 220px;
  transition: background 0.2s ease, transform 0.18s ease;
  cursor: pointer;
}

.inner-card:hover {
  background: var(--panel);
}

.inner-card h3 {
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 24px 0 16px;
}

.inner-card p {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.5;
}

.inner-card--paper {
  background: transparent;
  border-color: rgba(7, 9, 9, 0.2);
  color: var(--ink);
}

.inner-card--paper p {
  color: rgba(7, 9, 9, 0.65);
}

.inner-card--paper:hover {
  background: rgba(7, 9, 9, 0.04);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(7, 9, 9, 0.82);
  backdrop-filter: blur(8px);
}

.modal.is-open,
.modal.active {
  display: grid;
}

.modal-content {
  width: min(640px, 100%);
  max-height: min(80vh, 720px);
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 36px 32px;
  position: relative;
}

.modal-content h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.modal-content p {
  color: var(--text-soft);
  margin-bottom: 16px;
  line-height: 1.55;
}

.modal-content ul {
  list-style: none;
  margin-top: 20px;
}

.modal-content li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: #c5cdc8;
  font-size: 14px;
}

.modal-content li i {
  color: var(--acid);
  margin-right: 8px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}

/* Forms (cooperation) */
.cooperation-page,
.privacy-page {
  padding: calc(var(--header-h) + 60px) var(--pad) 100px;
}

.cooperation-wrapper,
.privacy-container {
  max-width: 720px;
  margin: 0 auto;
}

.cooperation-title,
.privacy-container h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 16px;
}

.cooperation-text,
.privacy-lead {
  color: var(--text-soft);
  margin-bottom: 40px;
  font-size: 17px;
  line-height: 1.5;
}

.cooperation-form {
  display: grid;
  gap: 22px;
}

.form-group label {
  display: block;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 1.2px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.form-control {
  width: 100%;
  background: var(--panel-alt);
  border: 1px solid var(--line);
  color: var(--paper);
  padding: 14px 16px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: rgba(209, 255, 73, 0.55);
}

.form-control.is-invalid {
  border-color: #ff7752;
}

.invalid-feedback {
  color: #ff7752;
  font-size: 12px;
  margin-top: 8px;
}

.required {
  color: var(--acid);
}

.consent-checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-soft);
  text-transform: none;
  letter-spacing: 0;
  font-family: Arial, sans-serif;
  line-height: 1.45;
}

.consent-checkbox input {
  margin-top: 3px;
  accent-color: var(--acid);
}

.consent-checkbox a {
  color: var(--acid);
  text-decoration: underline;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: 0.4px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--acid);
  color: var(--ink);
  border-color: var(--acid);
}

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

.btn-secondary {
  color: var(--paper);
}

.btn-secondary:hover {
  border-color: rgba(238, 242, 237, 0.4);
}

.alert {
  padding: 14px 16px;
  border: 1px solid var(--line);
  margin-bottom: 20px;
  font-size: 14px;
}

.alert-success {
  border-color: rgba(209, 255, 73, 0.45);
  color: var(--acid);
}

.alert-error {
  border-color: rgba(255, 119, 82, 0.5);
  color: #ff7752;
}

/* Privacy content */
.privacy-content {
  line-height: 1.7;
  color: #c5cdc8;
}

.privacy-content h2,
.privacy-content h3 {
  color: var(--paper);
  margin: 2rem 0 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.privacy-content p {
  margin-bottom: 1rem;
}

.privacy-content ul,
.privacy-content ol {
  margin: 0 0 1rem 1.5rem;
}

.privacy-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.privacy-content th,
.privacy-content td {
  border: 1px solid var(--line);
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
}

.privacy-content th {
  background: var(--panel);
}

.privacy-actions {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.privacy-actions a {
  color: var(--acid);
}

.privacy-empty {
  color: var(--text-soft);
  padding: 2rem;
  border: 1px dashed var(--line);
  text-align: center;
}

/* Projects hub / detail overrides for industrial look */
.projects-hero,
.project-hero-detail {
  padding: calc(var(--header-h) + 80px) var(--pad) 70px;
  background: var(--ink);
}

.projects-hero h1,
.project-hero-detail h1 {
  font-size: clamp(42px, 6vw, 92px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.projects-hero h1 span,
.project-hero-detail h1 span {
  color: var(--acid);
}

.hero-description,
.project-lead {
  color: var(--text-soft);
  font-size: clamp(16px, 1.4vw, 20px);
  max-width: 680px;
  line-height: 1.5;
}

.projects-hub-section,
.project-content {
  padding: 60px var(--pad) 100px;
  background: var(--paper);
  color: var(--ink);
}

.projects-hub-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--dark-line);
  border: 1px solid var(--dark-line);
}

.project-hub-card,
.project-card {
  background: var(--paper);
  padding: 32px;
  min-height: 280px;
  display: block;
  color: inherit;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.project-hub-card:hover,
.project-card:hover,
.project-card--link:hover {
  background: rgba(7, 9, 9, 0.04);
}

.project-card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.project-card--link:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: -2px;
}

.project-hub-card--link {
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.project-hub-card--link:hover .project-hub-card__cta,
.project-hub-card--link:focus-visible .project-hub-card__cta {
  color: var(--ink);
  text-decoration: underline;
}

.project-hub-card--link:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: -2px;
}

.project-hub-card__title {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.project-hub-card__desc {
  color: #5d6560;
  line-height: 1.5;
  margin-bottom: 28px;
}

.project-hub-card__preview {
  border: 1px solid var(--dark-line);
  padding: 16px;
  margin-bottom: 28px;
}

.project-hub-card__preview-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  margin-bottom: 12px;
}

.project-hub-card__preview-body h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.project-hub-card__preview-body p {
  color: #5d6560;
  font-size: 14px;
  line-height: 1.5;
}

.project-hub-card__empty {
  color: #777f7a;
  margin-bottom: 28px;
  font-family: ui-monospace, monospace;
  font-size: 11px;
}

.project-hub-card__cta {
  color: var(--ink);
  letter-spacing: 1px;
  display: inline-block;
  margin-top: auto;
}

/* Clickable cards (services, about, etc.) */
.open-detail-card,
.service-card.open-detail-card,
.person-card.open-detail-card {
  cursor: pointer;
}

.open-detail-card:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 2px;
}

.service-card.open-detail-card:hover {
  background: rgba(7, 9, 9, 0.04);
}

.case-row {
  cursor: pointer;
}

.project-category-badge {
  display: inline-block;
  font-family: ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 1.2px;
  color: #777f7a;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.project-content h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.project-section {
  max-width: 900px;
  margin: 0 auto 60px;
}

.project-description {
  color: #5d6560;
  font-size: 17px;
  line-height: 1.6;
}

.features-list {
  list-style: none;
}

.features-list li {
  padding: 14px 0;
  border-top: 1px solid var(--dark-line);
  color: #3d4540;
  font-size: 15px;
}

.features-list li::before {
  content: "↳ ";
  color: var(--ink);
}

.gallery-container {
  position: relative;
  border: 1px solid var(--dark-line);
  background: var(--ink);
}

.gallery-viewport {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}

.gallery-slide {
  display: none;
}

.gallery-slide.active {
  display: block;
}

.gallery-slide img,
.single-preview-image img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(7, 9, 9, 0.7);
  color: var(--acid);
  z-index: 2;
}

.gallery-arrow.prev { left: 12px; }
.gallery-arrow.next { right: 12px; }

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: var(--ink);
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a433e;
}

.gallery-dot.active {
  background: var(--acid);
}

.gallery-placeholder {
  padding: 60px;
  text-align: center;
  color: #5d6560;
  border: 1px dashed var(--dark-line);
}

.projects-category-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 0;
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: rgba(7, 9, 9, 0.96);
  backdrop-filter: blur(16px);
  padding: 40px var(--pad);
  flex-direction: column;
  gap: 28px;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.mobile-nav a:hover {
  color: var(--acid);
}

/* Partner / misc */
.partner-block {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px;
  border: 1px solid var(--line);
  background: var(--panel-alt);
}

.partner-block img {
  max-height: 120px;
  width: auto;
  margin: 0 auto;
}

.partner-block h3 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.partner-block p {
  color: var(--text-soft);
  margin-bottom: 10px;
  line-height: 1.5;
}

.partner-block a {
  color: var(--acid);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1080px) {
  .site-header__nav {
    display: none;
  }

  .site-header__menu-btn {
    display: grid;
    place-items: center;
  }

  .site-header__cta span:not(.arrow) {
    display: none;
  }

  .site-header__inner {
    grid-template-columns: 1fr auto auto;
  }
}

@media (max-width: 980px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .projects-hub-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  body.has-custom-cursor {
    cursor: auto;
  }

  .cursor-ring,
  .cursor-dot,
  .section-indicator {
    display: none !important;
  }

  .platform-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .platform-body {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .platform-visual {
    min-height: 500px;
  }

  .manifesto__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 68px;
  }

  .case-row__grid {
    grid-template-columns: 0.17fr 1fr;
    gap: 20px;
  }

  .case-row__metric {
    grid-column: 2;
    text-align: left;
    margin-top: 8px;
  }

  .systems {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .systems__aside {
    min-height: 150px;
    padding: 32px 20px 42px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .method-card {
    min-height: 320px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }

  .site-footer__right {
    justify-self: center;
    flex-direction: column;
  }

  .partner-block {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__image {
    object-position: 24% center;
  }
}

@media (max-width: 760px) {
  .people-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: max(820px, 100vh);
  }

  .hero__content {
    padding: 170px 20px 150px;
  }

  .hero__title {
    font-size: clamp(49px, 14.5vw, 74px);
  }

  .hero__lead-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__scroll-btn {
    width: 46px;
    height: 46px;
  }

  .hero__veil {
    background: linear-gradient(
      180deg,
      rgba(7, 9, 9, 0.95),
      rgba(7, 9, 9, 0.68)
    );
  }

  .hero__telemetry {
    left: 20px;
    right: 20px;
    bottom: 24px;
    width: auto;
    grid-template-columns: repeat(4, 1fr);
  }

  .telemetry-cell {
    padding: 9px 7px;
  }

  .telemetry-cell .value {
    font-size: 9px;
  }

  .capabilities__head {
    flex-direction: column;
  }

  .capabilities__head p {
    text-align: left;
    font-size: 18px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 350px;
  }

  .case-row {
    padding: 38px 0;
  }

  .case-row__grid {
    grid-template-columns: 1fr;
  }

  .case-row__metric {
    grid-column: 1;
  }

  .contact-cta {
    min-height: 700px;
  }

  .contact-cta__letter:nth-child(n + 4) {
    display: none;
  }

  .contact-cta__bg {
    grid-template-columns: repeat(3, 1fr);
  }

  .platform-visual {
    min-height: 390px;
  }
}
