﻿/* ============================================================
   nCode Digital — Digital Product Studio
   Ultra-Premium Hero · Swiss Editorial × Engineering Systems
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary:     #F5F5F2;
  --bg-secondary:   #ECECEA;
  --bg-panel:       #E8E8E5;
  --ink:            #121212;
  --ink-mid:        #3A3A38;
  --ink-light:      #888884;
  --ink-xlight:     #B8B8B4;
  --accent-orange:  #FF7133;
  --accent-purple:  #6E5BFF;
  --border:         rgba(18,18,18,0.10);
  --border-strong:  rgba(18,18,18,0.20);

  --font-sans: 'Turret Road', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --nav-h: 64px;
  --strip-h: 36px;
  --grid-col: 12;
  --grid-gap: 24px;
  --max-w: 1440px;

  /* easing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.4, 0, 0.2, 1);
  --ease-system:   cubic-bezier(0.16, 1, 0.3, 1);

  /* motion timing */
  --motion-fast:   160ms;
  --motion-medium: 260ms;
  --motion-slow:   420ms;

  /* system colors */
  --green-system:  #22B567;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-primary);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Use Inter for body-copy elements where Turret Road is too wide */
.descriptor__text,
.btn__label,
.metric__label,
.footer-strip__tag,
.footer-strip__scroll-label,
.nav__link {
  font-family: 'Inter', system-ui, sans-serif;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Skip navigation link ────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -48px;
  left: 0;
  background: var(--ink);
  color: var(--bg-primary);
  padding: 10px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 9999;
  transition: top 0.2s;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* ── Utilities ────────────────────────────────────────────── */
.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(245,245,242,0.88);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease-in-out);
}

.nav--scrolled {
  background: rgba(245,245,242,0.96);
  border-bottom-color: var(--border-strong);
}

.nav__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.nav__ident {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav__label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  padding: 3px 6px;
  border: 1px solid var(--border);
  border-radius: 2px;
}

.nav__lang-btn {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  padding: 3px 6px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  line-height: 1;
}

.nav__lang-btn:hover {
  border-color: var(--accent-orange);
  color: var(--ink);
}

.nav__lang-opt {
  transition: color 0.2s;
}

.nav__lang-opt--active {
  color: var(--accent-orange);
}

.nav__lang-sep {
  opacity: 0.5;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mid);
  transition: color 0.2s;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-orange);
  transition: width 0.25s var(--ease-out-expo);
}

.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { width: 100%; }

.nav__status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.nav__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-orange);
  animation: pulse-dot 3.5s var(--ease-system) infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.nav__status-text {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--ink-light);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Static dot grid background */
.hero__grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(20,20,20,0.18) 1px, transparent 1px);
  background-size: 96px 96px;
  overflow: hidden;
}

/* Meta strip */
.hero__meta-strip {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 40px;
  height: var(--strip-h);
  border-bottom: 1px solid var(--border);
  background: rgba(236,236,234,0.5);
  overflow: hidden;
}

.meta-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-light);
  text-transform: uppercase;
  white-space: nowrap;
}

.meta-divider {
  width: 1px;
  height: 12px;
  background: var(--border-strong);
  flex-shrink: 0;
}

.meta-coord {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--ink-xlight);
  margin-left: auto;
}

/* Main content grid */
.hero__content {
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 64px 40px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Left column ──────────────────────────────────────────── */
.hero__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
  padding-top: 16px;
  max-width: 640px;
}

/* Blueprint image — top-left corner */
.hero__blueprint-img2 {
  position: absolute;
  top: calc(var(--nav-h) + var(--strip-h));
  left: 0;
  z-index: 1;
  pointer-events: none;
  width: 820px;
}

.hero__blueprint-img2 img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top left;
  opacity: 0.25;
}

/* Blueprint image — bottom-right corner */
.hero__blueprint-img {
  position: absolute;
  bottom: 48px;
  right: 0;
  z-index: 1;
  pointer-events: none;
  width: 680px;
}

.hero__blueprint-img img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: bottom right;
  opacity: 0.25;
}

/* ── Hero floating keycaps ──────────────────────────────── */
.hero-keys {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hkey {
  position: absolute;
  width: 52px;
  height: 52px;
  padding: 6px 6px 12px 6px;
  border-radius: 12px;
  background: #d8d3c4;
  box-shadow:
    0 5px 0 0 rgba(0,0,0,0.14),
    0 10px 14px rgba(0,0,0,0.15);
  animation-name: hkey-fall;
  animation-duration: var(--dur, 6s);
  animation-delay: var(--delay, 0s);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
  will-change: transform, opacity;
}

.hkey--wide {
  width: 86px;
}

.hkey--accent {
  background: #c4480f;
  box-shadow:
    0 5px 0 0 rgba(110,35,0,0.38),
    0 10px 16px rgba(238,91,20,0.30);
}

.hkey__face {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #2b2620;
  background: radial-gradient(circle at 50% 25%, #fbf9f4, #e7e2d5 75%);
  box-shadow:
    inset 0 2px 2px rgba(255,255,255,0.75),
    inset 0 -3px 4px rgba(0,0,0,0.08);
}

.hkey__face--accent {
  color: #2a1303;
  background: radial-gradient(circle at 50% 25%, #ffa454, #ee5b14 75%);
  box-shadow:
    inset 0 2px 2px rgba(255,255,255,0.42),
    inset 0 -3px 4px rgba(0,0,0,0.14);
}

@keyframes hkey-fall {
  0% {
    transform: translateY(-40px) rotate(var(--r, -4deg));
    opacity: 0;
  }
  12% { opacity: 0.80; }
  78% { opacity: 0.80; }
  100% {
    transform: translateY(60px) rotate(calc(var(--r, -4deg) * -0.6));
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .hero-keys { display: none; }
}

/* Eyebrow */
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(10px);
  animation: reveal 0.5s 0.1s var(--ease-system) forwards;
}

.eyebrow__index {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent-orange);
}

.eyebrow__rule {
  flex: 0 0 40px;
  height: 1px;
  background: var(--border-strong);
}

.eyebrow__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ink-mid);
  text-transform: uppercase;
}

/* Headline */
.hero__headline {
  display: flex;
  flex-direction: column;
  gap: 0px;
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.02em;
  overflow: hidden;
}

.headline__line {
  display: block;
  opacity: 0;
  transform: translateY(16px);
}

.headline__line--1 {
  font-size: clamp(56px, 7vw, 100px);
  color: var(--ink);
  animation: line-reveal 0.8s 0.25s var(--ease-out-expo) forwards;
}

.headline__line--2 {
  font-size: clamp(56px, 7vw, 100px);
  color: var(--ink);
  animation: line-reveal 0.8s 0.38s var(--ease-out-expo) forwards;
}

.headline__line--3 {
  font-size: clamp(56px, 7vw, 100px);
  color: var(--accent-orange);
  animation: line-reveal 0.8s 0.51s var(--ease-out-expo) forwards;
}

@keyframes line-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Descriptor */
.hero__descriptor {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(10px);
  animation: reveal 0.5s 0.6s var(--ease-system) forwards;
}

.hero__left .descriptor__marker {
  display: none;
}

.descriptor__marker {
  flex-shrink: 0;
  width: 2px;
  height: 60px;
  background: var(--accent-orange);
  border-radius: 1px;
  margin-top: 4px;
}

.descriptor__text {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-mid);
  letter-spacing: -0.01em;
}

/* Actions */
.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(10px);
  animation: reveal 0.5s 0.72s var(--ease-system) forwards;
}

.btn {
  display: inline-flex;
  padding: 5px 5px 13px 5px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.btn__surface {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 26px;
  height: 44px;
  border-radius: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.btn--primary {
  background: #1a1612;
  box-shadow:
    0 6px 0 0 rgba(0,0,0,0.45),
    0 10px 20px rgba(0,0,0,0.22);
}

.btn--primary .btn__surface {
  color: #f5f5f2;
  background: radial-gradient(circle at 50% 20%, #3d3530, #231f1b 80%);
  box-shadow:
    inset 0 2px 2px rgba(255,255,255,0.10),
    inset 0 -2px 4px rgba(0,0,0,0.30);
}

.btn--ghost {
  background: #b5b0a2;
  box-shadow:
    0 6px 0 0 rgba(0,0,0,0.18),
    0 10px 16px rgba(0,0,0,0.13);
}

.btn--ghost .btn__surface {
  color: #2b2620;
  background: radial-gradient(circle at 50% 20%, #fbf9f4, #e7e2d5 80%);
  box-shadow:
    inset 0 2px 2px rgba(255,255,255,0.75),
    inset 0 -2px 4px rgba(0,0,0,0.08);
}

.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 0 0 rgba(0,0,0,0.45), 0 14px 24px rgba(0,0,0,0.28); }
.btn--ghost:hover   { transform: translateY(-2px); box-shadow: 0 8px 0 0 rgba(0,0,0,0.18), 0 14px 20px rgba(0,0,0,0.16); }

.btn--primary:active { transform: translateY(5px); box-shadow: 0 1px 0 0 rgba(0,0,0,0.45), 0 2px 6px rgba(0,0,0,0.18); }
.btn--ghost:active   { transform: translateY(5px); box-shadow: 0 1px 0 0 rgba(0,0,0,0.18), 0 2px 4px rgba(0,0,0,0.10); }

.btn__arrow {
  display: flex;
  align-items: center;
}

/* Module bar */
.hero__module-bar {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  animation: reveal 0.5s 0.84s var(--ease-system) forwards;
}

.module-bar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  flex: 1;
}

.module-bar__divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.module-bar__key {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-light);
  text-transform: uppercase;
}

.module-bar__sep {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--ink-xlight);
}

.module-bar__val {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-mid);
}

.module-bar__val--accent {
  color: var(--accent-orange);
}

/* ── Right column ─────────────────────────────────────────── */
.hero__right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 0;
  transform: translateX(12px);
  animation: reveal-right 0.8s 0.45s var(--ease-system) forwards;
}

@keyframes reveal-right {
  to { opacity: 1; transform: translateX(0); }
}

/* Architecture diagram */
.hero__arch {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

/* Header */
.arch__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(18,18,18,0.03);
  border-bottom: 1px solid var(--border);
}

.arch__header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.arch__title {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink-mid);
  text-transform: uppercase;
}

.arch__header-sep {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--ink-xlight);
}

.arch__eco-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--accent-purple);
  transition: opacity 0.25s;
}

.arch__ref-id {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--ink-xlight);
}

/* Footer */
.arch__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: rgba(18,18,18,0.03);
  border-top: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}

.arch__footer-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.arch__footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.arch__status-live {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-light);
  text-transform: uppercase;
}

.arch__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3DCC6A;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

.arch__stat {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--ink-xlight);
  text-transform: uppercase;
  white-space: nowrap;
}

.arch__stat-val {
  color: var(--ink-mid);
  font-weight: 600;
}

.arch__stat-val--accent { color: var(--accent-orange); }

.arch__stat-sep {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--border-strong);
}

.arch__timestamp {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  color: var(--ink-xlight);
}

/* Project dot buttons */
.arch__project-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.arch__dot-btn {
  width: 16px;
  height: 3px;
  border-radius: 2px;
  border: none;
  background: var(--border-strong);
  cursor: pointer;
  padding: 0;
  transition: all 0.25s var(--ease-out-expo);
}

.arch__dot-btn--active {
  background: var(--accent-orange);
  width: 24px;
}

.arch__dot-btn:hover:not(.arch__dot-btn--active) {
  background: var(--ink-light);
}

/* Architecture canvas with nodes */
.arch__canvas {
  position: relative;
  width: 100%;
  height: 360px;
  padding: 24px;
}

.arch__connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.arch__connectors line {
  stroke: var(--border-strong);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  opacity: 0;
  transition: opacity 0.4s;
}

.arch__connectors line.visible {
  opacity: 1;
  animation: dash-flow 3s linear infinite;
}

@keyframes dash-flow {
  to { stroke-dashoffset: -24; }
}

/* Nodes */
.arch__node {
  position: absolute;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  background: var(--bg-primary);
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  z-index: 1;
  opacity: 0;
  transform: scale(0.85);
}

.arch__node.revealed {
  opacity: 1;
  transform: scale(1);
}

.arch__node:hover {
  border-color: var(--accent-orange);
  background: rgba(255,113,51,0.04);
  transform: scale(1.06);
  z-index: 5;
  box-shadow: 0 4px 24px rgba(255,113,51,0.14);
}

/* Center (YOUR BUSINESS) */
.arch__node--center {
  border-color: var(--accent-orange);
  background: rgba(255,113,51,0.05);
  z-index: 3;
}

.arch__node--center.revealed {
  opacity: 1;
  transform: scale(1);
}

.arch__node--center:hover {
  transform: scale(1.06);
}

/* Satellite nodes — position set by JS */
.arch__node--sat {
  transition:
    opacity 0.25s var(--ease-out-expo),
    transform 0.3s var(--ease-out-expo),
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}

.arch__node--sat.revealed {
  opacity: 1;
  transform: scale(1);
}

.arch__node-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 3px;
  padding: 4px;
}

.arch__node-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-align: center;
}

.arch__node-sub {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  text-align: center;
}

.arch__node--center .arch__node-label { color: var(--accent-orange); font-size: 10px; }

/* Hover description panel */
.arch__desc-panel {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18,18,18,0.84);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 2px;
  padding: 6px 14px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
  max-width: calc(100% - 24px);
  text-align: center;
  z-index: 10;
}

.arch__desc-panel--visible { opacity: 1; }

.arch__desc-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent-orange);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.arch__desc-lines,
.arch__desc-idle {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: rgba(245,245,242,0.65);
}

/* Corner annotations */
.arch__anno {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--ink-xlight);
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0.6;
}

.arch__anno--tl { top: 10px; left: 12px; }
.arch__anno--tr { top: 10px; right: 12px; }

/* Center pulse ring */
.arch__node-pulse {
  position: absolute;
  inset: -8px;
  border-radius: 5px;
  border: 1px solid rgba(255,107,61,0.3);
  animation: pulse-ring 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes pulse-ring {
  0%   { opacity: 0.7; transform: scale(1); }
  70%  { opacity: 0; transform: scale(1.12); }
  100% { opacity: 0; transform: scale(1.12); }
}

/* ══════════════════════════════════════════════════════════
   HERO VISUAL PANEL — Core Architecture Module
   ══════════════════════════════════════════════════════════ */

/* Panel container */
.hero-visual-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ── Panel Header ────────────────────────────────────────── */
.hero-visual-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  height: 44px;
  background: rgba(18,18,18,0.03);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.hvh__left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hvh__title {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink-mid);
  text-transform: uppercase;
}

.hvh__sep {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--ink-xlight);
}

.hvh__active {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent-orange);
  text-transform: uppercase;
}

.hvh__ref {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--ink-xlight);
}

/* ── Main Canvas ─────────────────────────────────────────── */
.hero-visual-canvas {
  flex: 1;
  display: grid;
  grid-template-columns: 100px 1fr 100px;
  align-items: center;
  position: relative;
  padding: 20px 12px;
  gap: 8px;
  min-height: 440px;
}

/* Ambient background SVG */
.hero-data-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Pulsing orange nodes on the background */
.hvp-node {
  animation: hvp-pulse 3s ease-in-out infinite;
}
.hvp-node--2 { animation-delay: 1.1s; }
.hvp-node--3 { animation-delay: 2s; }
.hvp-node--4 { animation-delay: 0.6s; }

@keyframes hvp-pulse {
  0%, 100% { opacity: 0.35; r: 2; }
  50%       { opacity: 0.8;  r: 2.8; }
}

/* ── Capability Card Columns ─────────────────────────────── */
.hvc__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 2;
  align-self: center;
}

/* ── Capability Cards ────────────────────────────────────── */
.hero-capability-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: 0 2px 8px rgba(18,18,18,0.055);
  transition: border-color 0.22s var(--ease-out-expo), transform 0.22s var(--ease-out-expo), box-shadow 0.22s;
  cursor: default;
}

.hero-capability-card:hover {
  border-color: var(--accent-orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(18,18,18,0.09);
}

.hero-capability-card:hover .hcc__dash {
  width: 20px;
}

.hcc__icon {
  color: var(--ink-mid);
  display: block;
  margin-bottom: 4px;
}

.hcc__title {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-transform: uppercase;
}

.hcc__sublabel {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 9px;
  color: var(--ink-xlight);
  line-height: 1.2;
}

.hcc__dash {
  display: block;
  width: 12px;
  height: 2px;
  background: var(--accent-orange);
  border-radius: 1px;
  margin-top: 4px;
  transition: width 0.3s var(--ease-out-expo);
}

/* Staggered float animations for cards */
.hvc__col--left .hero-capability-card:nth-child(1)  { animation: card-float-a 5.5s ease-in-out infinite; }
.hvc__col--left .hero-capability-card:nth-child(2)  { animation: card-float-b 6.2s ease-in-out infinite; animation-delay: 0.8s; }
.hvc__col--left .hero-capability-card:nth-child(3)  { animation: card-float-a 5.8s ease-in-out infinite; animation-delay: 1.6s; }
.hvc__col--right .hero-capability-card:nth-child(1) { animation: card-float-b 6s   ease-in-out infinite; animation-delay: 0.4s; }
.hvc__col--right .hero-capability-card:nth-child(2) { animation: card-float-a 5.6s ease-in-out infinite; animation-delay: 1.2s; }
.hvc__col--right .hero-capability-card:nth-child(3) { animation: card-float-b 6.4s ease-in-out infinite; animation-delay: 2s; }

@keyframes card-float-a {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}
@keyframes card-float-b {
  0%, 100% { transform: translateY(-3px); }
  50%       { transform: translateY(3px); }
}

/* ── Center Architecture Column ──────────────────────────── */
.hvc__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
  padding: 8px 0;
}

/* ── Floating Layers ─────────────────────────────────────── */
.hero-layer-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.hero-layer {
  width: 88%;
  height: 30px;
  background: rgba(245,245,242,0.90);
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  position: relative;
  box-shadow: 0 3px 10px rgba(18,18,18,0.07);
}

/* Width taper: wider layers at top, narrowing toward core */
.hero-layer--1 { width: 94%; }
.hero-layer--2 { width: 88%; }
.hero-layer--3 { width: 82%; }
.hero-layer--4 { width: 82%; }
.hero-layer--5 { width: 88%; }

/* Layer float animations — staggered */
.hero-layer--1 { animation: layer-float-a 7s ease-in-out infinite; }
.hero-layer--2 { animation: layer-float-b 8s ease-in-out infinite; animation-delay: 0.5s; }
.hero-layer--3 { animation: layer-float-a 6.5s ease-in-out infinite; animation-delay: 1s; }
.hero-layer--4 { animation: layer-float-b 7.5s ease-in-out infinite; animation-delay: 1.5s; }
.hero-layer--5 { animation: layer-float-a 8.5s ease-in-out infinite; animation-delay: 0.8s; }

@keyframes layer-float-a {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}
@keyframes layer-float-b {
  0%, 100% { transform: translateY(-3px); }
  50%       { transform: translateY(4px); }
}

.hl__tag {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-xlight);
  text-transform: uppercase;
  flex-shrink: 0;
}

.hl__content {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  justify-content: center;
}

.hl__bar {
  display: block;
  height: 3px;
  width: 22px;
  background: var(--border-strong);
  border-radius: 1px;
  opacity: 0.6;
}
.hl__bar--wide  { width: 32px; }
.hl__bar--short { width: 14px; }

.hl__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-orange);
  opacity: 0.7;
}

/* Orange accent mark on layer right edge */
.hl__accent {
  display: block;
  width: 3px;
  height: 14px;
  background: var(--accent-orange);
  border-radius: 1px;
  opacity: 0.55;
  flex-shrink: 0;
}

/* ── Central Core Object ─────────────────────────────────── */
.hero-core-object {
  width: 82%;
  height: 120px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  position: relative;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 8px 28px rgba(18,18,18,0.11),
    0 2px 6px rgba(18,18,18,0.07);
  animation: core-float 6s ease-in-out infinite;
  overflow: hidden;
}

@keyframes core-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

/* Corner bolts */
.hero-core-bolt {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-primary);
  z-index: 2;
}
.hero-core-bolt--tl { top: 7px;  left: 7px;  }
.hero-core-bolt--tr { top: 7px;  right: 7px; }
.hero-core-bolt--bl { bottom: 7px; left: 7px; }
.hero-core-bolt--br { bottom: 7px; right: 7px; }

/* Subtle interior grid texture */
.hero-core-grid {
  position: absolute;
  inset: 14px;
  background-image:
    linear-gradient(rgba(18,18,18,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18,18,18,0.07) 1px, transparent 1px);
  background-size: 12px 12px;
  border-radius: 2px;
  pointer-events: none;
}

/* Orange active slot */
.hero-core-slot {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}

.hero-core-slot-label {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent-orange);
  text-transform: uppercase;
}

.hero-core-slot-bar {
  display: block;
  width: 32px;
  height: 3px;
  background: var(--accent-orange);
  border-radius: 1px;
  opacity: 0.75;
}

/* Dark port strip at bottom */
.hero-core-port {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  align-items: center;
}

.hero-core-port span {
  display: block;
  width: 16px;
  height: 5px;
  background: var(--ink);
  border-radius: 1px;
  opacity: 0.18;
}

/* ── Panel Footer ────────────────────────────────────────── */
.hero-visual-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  height: 40px;
  background: rgba(18,18,18,0.03);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  gap: 12px;
  flex-wrap: wrap;
}

.hvf__left {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-light);
  text-transform: uppercase;
}

.hvf__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3DCC6A;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

.hvf__bars {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hvf__bar {
  display: block;
  height: 3px;
  width: 20px;
  background: var(--border-strong);
  border-radius: 2px;
}

.hvf__bar--orange {
  background: var(--accent-orange);
  width: 28px;
}

.hvf__right {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--ink-xlight);
  text-transform: uppercase;
}

.hvf__sep {
  color: var(--border-strong);
  font-size: 7px;
}

.hvf__accent { color: var(--accent-orange); }

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-layer,
  .hero-core-object,
  .hero-capability-card,
  .hvc__col--left .hero-capability-card,
  .hvc__col--right .hero-capability-card,
  .hvp-node,
  .hvf__status-dot {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── Responsive — tablet ─────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-visual-canvas {
    grid-template-columns: 90px 1fr 90px;
    min-height: 380px;
    padding: 16px 10px;
  }
  .hero-core-object { height: 100px; }
}

/* ── Responsive — mobile ─────────────────────────────────── */
@media (max-width: 768px) {
  .hero-visual-canvas {
    grid-template-columns: 82px 1fr 82px;
    min-height: 340px;
    padding: 14px 8px;
    gap: 6px;
  }

  .hvc__col {
    gap: 10px;
  }

  /* Hide middle capability cards on mobile, keep 2 per side */
  .hvc__col--left .hero-capability-card:nth-child(2),
  .hvc__col--right .hero-capability-card:nth-child(2) {
    display: none;
  }

  .hero-layer--1 { width: 96%; }
  .hero-layer--2 { width: 90%; }
  .hero-layer--3 { width: 84%; }
  .hero-layer--4 { width: 84%; }
  .hero-layer--5 { width: 90%; }

  .hero-core-object { height: 90px; }
}

/* ── Metrics (legacy — kept for grid, no visible cards) ───── */
.hero__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric__card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, background 0.25s;
}

.metric__card:hover {
  border-color: var(--border-strong);
  background: var(--bg-panel);
}

.metric__card--highlight {
  border-color: rgba(110,91,255,0.2);
  background: rgba(110,91,255,0.04);
}

.metric__card--highlight:hover {
  border-color: rgba(110,91,255,0.4);
}

.metric__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric__index {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-xlight);
}

.metric__status {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-light);
  padding: 2px 5px;
  border: 1px solid var(--border);
  border-radius: 1px;
}

.metric__status--active {
  color: var(--accent-orange);
  border-color: rgba(255,107,61,0.25);
  background: rgba(255,107,61,0.06);
}

.metric__status--pulse {
  color: var(--accent-purple);
  border-color: rgba(110,91,255,0.25);
  background: rgba(110,91,255,0.06);
}

.metric__value {
  display: flex;
  align-items: baseline;
  gap: 3px;
  line-height: 1;
}

.metric__number {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.metric__card--highlight .metric__number {
  color: var(--accent-purple);
}

.metric__sign {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-light);
  letter-spacing: 0.04em;
  margin-left: 1px;
}

.metric__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-light);
  text-transform: uppercase;
}

.metric__bar {
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
  margin-top: 4px;
}

.metric__bar-fill {
  height: 100%;
  background: var(--accent-orange);
  border-radius: 1px;
  width: 0%;
  transition: width 1.4s var(--ease-out-expo);
}

.metric__card--highlight .metric__bar-fill {
  background: var(--accent-purple);
}

/* ── Footer strip ─────────────────────────────────────────── */
.hero__footer-strip {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 48px;
  border-top: 1px solid var(--border);
  background: rgba(236,236,234,0.4);
  margin-top: auto;
}

.footer-strip__left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-strip__tag {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-xlight);
  text-transform: uppercase;
}

.footer-strip__sep {
  font-size: 10px;
  color: var(--border-strong);
}

.footer-strip__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-strip__scroll-label {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-xlight);
  text-transform: uppercase;
}

.footer-strip__scroll-line {
  width: 40px;
  height: 1px;
  background: var(--border);
  overflow: hidden;
  border-radius: 1px;
}

.scroll-line__inner {
  height: 100%;
  background: var(--ink);
  animation: scroll-progress 4s ease-in-out infinite;
}

@keyframes scroll-progress {
  0%   { width: 0%; transform: translateX(0); }
  50%  { width: 100%; transform: translateX(0); }
  100% { width: 0%; transform: translateX(100%); }
}

/* ── Reveal keyframe ──────────────────────────────────────── */
@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Background grid drawn on canvas ─────────────────────── */
/* (Handled by JS; canvas is sized by CSS) */

/* ╔══════════════════════════════════════════════════════════╗
   ║  ABOUT — COMPANY PROFILE                                ║
   ╚══════════════════════════════════════════════════════════╝ */

.about {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}

/* Architectural blueprint grid — spacious single-level */
.about__grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(20,20,20,0.18) 1px, transparent 1px);
  background-size: 96px 96px;
  pointer-events: none;
  z-index: 0;
}

/* Meta strip — same structure as hero */
.about__meta-strip {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 40px;
  height: var(--strip-h);
  border-bottom: 1px solid var(--border);
  background: rgba(236,236,234,0.5);
  overflow: hidden;
}

/* ── Centered single-column layout ────────────────────────── */
.about__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 80px 40px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Content column — entry animation triggered by .in-view */
.about__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  width: 100%;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-system), transform 0.5s var(--ease-system);
}

.about.in-view .about__left {
  opacity: 1;
  transform: translateY(0);
}

/* Eyebrow — reuses eyebrow__* child classes without hero animation */
.about__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Headline */
.about__headline {
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.02em;
}

.about__hl {
  display: block;
  font-size: clamp(40px, 6vw, 88px);
}

.about__hl--accent { color: var(--ink); }
.hl-ink            { color: var(--accent-orange); }

/* Descriptor — reuses descriptor__* child classes without hero animation */
.about__descriptor {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
}

.about__descriptor .descriptor__marker {
  display: none;
}

.about__descriptor .descriptor__text {
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  text-align: center;
}

/* Capability tags */
.about__capability-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.about__cap-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-light);
  text-transform: uppercase;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
}

.about__cap-tag:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.about__cap-sep {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--border-strong);
}

/* Right column */
.about__right {
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.5s 0.1s var(--ease-system), transform 0.5s 0.1s var(--ease-system);
}

.about.in-view .about__right {
  opacity: 1;
  transform: translateX(0);
}


/* ── About Profile — Company editorial bento ────────────────── */
.about-profile {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 40px 72px;
  border-top: 1px solid var(--border);
}

.about-profile__hdr {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 64px;
  align-items: end;
  padding: 52px 0 32px;
}

.about-profile__title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 40px);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

.about-profile__intro {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-mid);
  max-width: 380px;
}

/* Bento grid */
.about-profile__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(148px, auto);
  gap: 10px;
  grid-template-areas:
    "year desc     desc     avail"
    "year founders founders values"
    "skills skills scope    contact";
}

/* Base block — keycap housing */
.ab-block {
  background: #bebebc;           /* outer housing / stem */
  border: none;
  border-radius: 14px;
  padding: 18px 20px 30px 20px;  /* extra bottom = stem area visible */
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  box-shadow:
    0 7px 0 0 rgba(0,0,0,0.18),
    0 14px 28px rgba(0,0,0,0.10);
  transition: box-shadow 0.12s ease, transform 0.12s ease;
  cursor: default;
}

/* Keycap face — light cream with inset depth */
.ab-block::before {
  content: '';
  position: absolute;
  inset: 0 0 10px 0;
  border-radius: 10px;
  background: radial-gradient(ellipse at 50% 15%, #ffffff, #f0efec 85%);
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,0.92),
    inset 0 -4px 8px rgba(0,0,0,0.07);
  z-index: 0;
  pointer-events: none;
}

/* All content sits above the face layer */
.ab-block > * { position: relative; z-index: 1; }

/* Press on hover */
.ab-block:hover {
  transform: translateY(5px);
  box-shadow:
    0 2px 0 0 rgba(0,0,0,0.18),
    0 4px 10px rgba(0,0,0,0.08);
}

/* Orange keycap housing */
.ab-block--orange {
  background: #a43107;
  box-shadow:
    0 7px 0 0 rgba(70,15,0,0.48),
    0 14px 28px rgba(210,70,10,0.26);
}

/* Orange keycap face */
.ab-block--orange::before {
  background: radial-gradient(ellipse at 50% 15%, #ffa25e, #ee5b14 80%);
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,0.40),
    inset 0 -4px 8px rgba(0,0,0,0.18);
}

.ab-block--orange:hover {
  box-shadow:
    0 2px 0 0 rgba(70,15,0,0.48),
    0 4px 10px rgba(210,70,10,0.18);
}

/* Grid area assignments */
.ab-block--year     { grid-area: year; }
.ab-block--desc     { grid-area: desc; }
.ab-block--avail    { grid-area: avail; }
.ab-block--founders { grid-area: founders; }
.ab-block--values   { grid-area: values; }
.ab-block--skills   { grid-area: skills; }
.ab-block--scope    { grid-area: scope; }
.ab-block--contact  { grid-area: contact; }

/* Labels */
.ab-block__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-light);
  line-height: 1;
  flex-shrink: 0;
}

.ab-block--orange .ab-block__label { color: rgba(255,255,255,0.55); }

/* Big number / word */
.ab-block__num {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(52px, 7vw, 88px);
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 0.88;
  margin-top: auto;
}

.ab-block--orange .ab-block__num { color: white; }

.ab-block__num--md {
  font-size: clamp(26px, 3vw, 38px);
}

.ab-block__sub {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-light);
  line-height: 1;
}

.ab-block--orange .ab-block__sub { color: rgba(255,255,255,0.45); }

/* Studio description text */
.ab-block__text {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-mid);
  margin-top: auto;
}

/* Founders */
.ab-block__founders-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  flex-wrap: wrap;
}

.ab-block__person {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ab-block__person-name {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(12px, 1.4vw, 16px);
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1;
}

.ab-block__person-role {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.ab-block__sep {
  font-family: var(--font-sans);
  font-size: 18px;
  color: var(--border-strong);
  font-weight: 300;
  align-self: center;
  line-height: 1;
}

/* Values list */
.ab-block__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: auto;
}

.ab-block__list li {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ab-block__list li::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-orange);
  flex-shrink: 0;
}

/* Skills tags */
.ab-block__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
}

.ab-block__tag {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 2px;
  padding: 6px 10px;
}

/* Contact */
.ab-block__link {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  margin-top: auto;
  transition: color 0.2s;
}

.ab-block__link:hover { color: var(--accent-orange); }

.ab-block__arr {
  font-size: 20px;
  color: var(--accent-orange);
  line-height: 1;
  margin-top: 2px;
}


/* ── HOW WE BUILD — Workflow Protocol ──────────────────────── */
.about__workflow {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 40px 80px;
}

.workflow__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 60px;
}

.workflow__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
}

.workflow__header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.workflow__proto {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-light);
  text-transform: uppercase;
}

.workflow__ref-id {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--accent-purple);
  text-transform: uppercase;
}

/* ── Process card stage ─────────────────────────────────── */
.workflow__year {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--ink-light);
}

/* ── Process stage — centered column ────────────────────── */
.workflow__stage {
  max-width: 720px;
  margin: 0 auto;
}

.workflow__big-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(52px, 9vw, 108px);
  color: var(--ink);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-align: center;
  user-select: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-system), transform 0.6s var(--ease-system);
}

.about.in-view .workflow__big-title {
  opacity: 1;
  transform: translateY(0);
}

/* Cards field — flex zig-zag column */
.workflow__cards {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 28px;
}

/* SVG connector cable — drawn dynamically via JS */
.workflow__svg-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
  opacity: 0;
  transition: opacity 0.5s 0.5s var(--ease-system);
}

.about.in-view .workflow__svg-line { opacity: 1; }

/* Individual card */
.wf-card {
  position: relative;
  z-index: 1;
  width: 305px;
  background: var(--bg-primary);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 20px 22px 22px;
  transform: none;
  transition: box-shadow 0.35s var(--ease-system), border-color 0.3s, transform 0.4s var(--ease-system);
  cursor: default;
  opacity: 0;
}

/* Zig-zag: odd cards left, even cards right */
.wf-card:nth-child(odd)  { align-self: flex-start; }
.wf-card:nth-child(even) { align-self: flex-end; }

/* Float only when not interacting — avoids transform conflict with hover */
@media (prefers-reduced-motion: no-preference) {
  .about.in-view .wf-card:not(:hover):not(:focus-visible) {
    animation: wf-float var(--dur, 6s) var(--dly, 0s) ease-in-out infinite alternate;
  }
}

.about.in-view .wf-card {
  opacity: 1;
  transition: opacity 0.5s var(--ease-system), box-shadow 0.35s var(--ease-system), border-color 0.3s, transform 0.35s var(--ease-system);
}

.about.in-view .wf-card:nth-child(1) { transition-delay: 0.08s; }
.about.in-view .wf-card:nth-child(2) { transition-delay: 0.18s; }
.about.in-view .wf-card:nth-child(3) { transition-delay: 0.28s; }
.about.in-view .wf-card:nth-child(4) { transition-delay: 0.38s; }
.about.in-view .wf-card:nth-child(5) { transition-delay: 0.48s; }

.wf-card:hover,
.wf-card:focus-visible {
  transform: rotate(var(--r)) translateY(-5px) scale(1.02);
  box-shadow: 0 16px 44px rgba(0,0,0,0.10), 0 3px 10px rgba(0,0,0,0.06);
  border-color: var(--accent-orange);
  z-index: 20;
  outline: none;
  animation: none;
}

.wf-card--accent {
  border-color: var(--accent-orange);
  background: rgba(255,113,51,0.02);
}

@keyframes wf-float {
  from { transform: translateY(0px); }
  to   { transform: translateY(-8px); }
}

/* Card inner */
.wf-card__num {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg-primary);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.wf-card--accent .wf-card__num,
.wf-card:hover .wf-card__num,
.wf-card:focus-visible .wf-card__num {
  background: var(--accent-orange);
}

.wf-card__name {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 28px 10px 0;
  transition: color 0.3s;
}

.wf-card--accent .wf-card__name { color: var(--accent-orange); }
.wf-card:hover .wf-card__name,
.wf-card:focus-visible .wf-card__name { color: var(--accent-orange); }

.wf-card__desc {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-mid);
  margin: 0;
}

/* Workflow footer */
.workflow__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 52px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.workflow__footer-note {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--ink-xlight);
  text-transform: uppercase;
}

.workflow__footer-ref {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  text-transform: uppercase;
}

/* ── Core Principles ──────────────────────────────────────── */
.about__principles {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 40px 88px;
}

.about__principles-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.about__principles-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
}

.principles__count {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--ink-xlight);
  text-transform: uppercase;
}

/* 4-column principles grid */
.about__principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.principle__card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity var(--motion-slow) var(--ease-system),
    transform var(--motion-slow) var(--ease-system),
    border-color 0.25s,
    background 0.25s,
    box-shadow 0.25s;
  cursor: default;
}

.about.in-view .principle__card:nth-child(1) { opacity:1; transform:translateY(0); transition-delay:0.10s; }
.about.in-view .principle__card:nth-child(2) { opacity:1; transform:translateY(0); transition-delay:0.18s; }
.about.in-view .principle__card:nth-child(3) { opacity:1; transform:translateY(0); transition-delay:0.26s; }
.about.in-view .principle__card:nth-child(4) { opacity:1; transform:translateY(0); transition-delay:0.34s; }

.principle__card:hover {
  border-color: var(--border-strong);
  background: var(--bg-panel);
  box-shadow: 0 6px 28px rgba(18,18,18,0.06);
}

.principle__card:hover .principle__bar-fill {
  background: var(--accent-orange);
}

.principle__card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.principle__num {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-xlight);
}

.principle__tag {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-light);
  padding: 2px 5px;
  border: 1px solid var(--border);
  border-radius: 1px;
  text-transform: uppercase;
}

.principle__name {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}

.principle__body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-light);
  flex: 1;
  letter-spacing: -0.005em;
}

.principle__bar {
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
  margin-top: auto;
}

.principle__bar-fill {
  height: 100%;
  background: var(--ink-xlight);
  border-radius: 1px;
  width: 0%;
  transition: width 1.5s var(--ease-out-expo), background 0.25s;
}

/* About footer strip */
.about__footer-strip {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 48px;
  border-top: 1px solid var(--border);
  background: rgba(236,236,234,0.4);
}

.about__footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1200px) {
  .hero__content {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }
  .hero__right {
    animation: reveal 1s 0.45s var(--ease-out-expo) forwards;
  }
  .hero__metrics {
    grid-template-columns: repeat(4, 1fr);
  }

  .about__content {
    padding: 56px 40px 48px;
  }

  .about__right {
    transform: translateY(20px);
  }

  .about.in-view .about__right {
    transform: translateY(0);
  }

  .about__principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wf-card { width: 260px; }

  .workflow__track-line { display: none; }

  /* Profile bento: collapse to 3 cols */
  .about-profile__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
      "year  desc    avail"
      "year  founders founders"
      "skills skills values"
      "scope contact contact";
  }
}

@media (max-width: 768px) {
  :root { --nav-h: 56px; }

  .nav__grid { padding: 0 20px; grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
  .nav__menu-ctrl { justify-content: flex-end; margin-left: auto; }

  .hero__meta-strip { padding: 0 20px; gap: 12px; }
  .meta-coord { display: none; }

  .hero__content { padding: 32px 20px 24px; }

  .headline__line--1,
  .headline__line--2,
  .headline__line--3 { font-size: clamp(40px, 12vw, 64px); }

  .hero__actions { flex-direction: column; align-items: flex-start; }

  .hero__module-bar { flex-direction: column; }
  .module-bar__divider { width: 100%; height: 1px; }
  .module-bar__item { justify-content: center; }

  .hero__metrics { grid-template-columns: 1fr 1fr; }

  .arch__canvas { height: 280px; }

  .hero__footer-strip { padding: 0 20px; }
  .footer-strip__left { gap: 10px; }
  .footer-strip__tag:nth-child(n+4) { display: none; }
  .footer-strip__sep:nth-child(n+4) { display: none; }

  /* About responsive */
  .about__meta-strip { padding: 0 20px; gap: 12px; }

  .about__content { padding: 40px 20px 32px; }

  .about__hl { font-size: clamp(24px, 8vw, 44px); }


  /* Profile bento: 2 cols on mobile */
  .about-profile { padding: 0 20px 56px; }
  .about-profile__hdr {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 36px 0 24px;
  }
  .about-profile__title { white-space: normal; }
  .about-profile__grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: minmax(120px, auto);
    grid-template-areas:
      "year   avail"
      "desc   desc"
      "founders founders"
      "skills skills"
      "values scope"
      "contact contact";
  }

  /* Smaller description text on mobile */
  .ab-block__text { font-size: 14px; line-height: 1.6; }

  /* Skills tags: horizontal rows, wrapping */
  .ab-block__tags { flex-direction: row; flex-wrap: wrap; gap: 5px; }
  .ab-block__tag  { font-size: 11px; }

  .about__workflow { padding: 0 20px 56px; }
  .workflow__header { margin-bottom: 36px; }

  /* Mobile: full-width cards, no rotation */
  .wf-card,
  .wf-card:nth-child(odd),
  .wf-card:nth-child(even) {
    width: 100%;
    align-self: stretch;
    transform: rotate(0deg) !important;
    animation: none !important;
  }

  .workflow__svg-line { display: none; }

  .wf-card:hover { transform: translateY(-4px) scale(1.01) !important; }

  .about__principles { padding: 0 20px 56px; }
  .about__principles-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  .about__footer-strip { padding: 0 20px; }
}

@media (max-width: 480px) {
  .hero__metrics { grid-template-columns: 1fr 1fr; }
  .metric__number { font-size: 28px; }

  .footer-strip__left .footer-strip__tag:nth-child(n+2) { display: none; }
  .footer-strip__left .footer-strip__sep { display: none; }

  .about__principles-grid { grid-template-columns: 1fr; }
  .principle__name { font-size: 22px; }
}

/* ╔══════════════════════════════════════════════════════════╗
   ║  SERVICES — CAPABILITY MATRIX                           ║
   ╚══════════════════════════════════════════════════════════╝ */

.services {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}

/* Blueprint grid — larger cells, structural feel */
.services__grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(20,20,20,0.18) 1px, transparent 1px);
  background-size: 96px 96px;
  pointer-events: none;
  z-index: 0;
}

/* Horizontal guide lines — architectural spacing */
.services__guide-h {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(18,18,18,0.04);
  pointer-events: none;
  z-index: 0;
}
.services__guide-h--1 { top: 33%; }
.services__guide-h--2 { top: 66%; }

/* Corner reference markers */
.services__ref-mark {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--ink-xlight);
  text-transform: uppercase;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}
.services__ref-mark--tl { top: 44px; left: 12px; }
.services__ref-mark--tr { top: 44px; right: 12px; }
.services__ref-mark--bl { bottom: 56px; left: 12px; }
.services__ref-mark--br { bottom: 56px; right: 12px; }

/* Meta strip */
.services__meta-strip {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 40px;
  height: var(--strip-h);
  border-bottom: 1px solid var(--border);
  background: rgba(236,236,234,0.5);
  overflow: hidden;
}

/* ── Header ───────────────────────────────────────────────── */
.services__header {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 80px 40px 72px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: end;
}

.services__header-left {
  display: flex;
  flex-direction: column;
  gap: 36px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-system), transform 0.5s var(--ease-system);
}

.services.in-view .services__header-left {
  opacity: 1;
  transform: translateY(0);
}

.services__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
}

.services__headline {
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.services__hl {
  display: block;
  font-size: clamp(36px, 4.6vw, 68px);
}

.services__hl--ink    { color: var(--ink); }
.services__hl--accent { color: var(--accent-orange); }

.services__header-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.5s 0.1s var(--ease-system), transform 0.5s 0.1s var(--ease-system);
}

.services.in-view .services__header-right {
  opacity: 1;
  transform: translateX(0);
}

.services__descriptor {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.services__header-tags {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.services__proto {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-light);
  text-transform: uppercase;
}

/* ── Sidebar labels ───────────────────────────────────────── */
.services__sidebar-l,
.services__sidebar-r {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
  z-index: 3;
}

.services__sidebar-l { left: 4px; }
.services__sidebar-r { right: 4px; align-items: flex-end; }

.services__sidebar-l span,
.services__sidebar-r span {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--ink-xlight);
  text-transform: uppercase;
  writing-mode: vertical-rl;
  opacity: 0.5;
}

/* ── Corner metadata ──────────────────────────────────────── */
.services__corner-meta {
  position: absolute;
  top: calc(var(--strip-h) + 12px);
  right: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  pointer-events: none;
  z-index: 3;
}

.services__corner-meta span {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--ink-xlight);
  text-transform: uppercase;
  opacity: 0.55;
}

/* ── Capabilities overview bar ────────────────────────────── */
.services__cap-overview {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 10px 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(236,236,234,0.3);
}

.services__cap-ov-label {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink-mid);
  text-transform: uppercase;
}

.services__cap-ov-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.services__cap-ov-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3DCC6A;
  flex-shrink: 0;
}

.services__cap-ov-text {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--ink-light);
  text-transform: uppercase;
}

/* ── Matrix wrap + matrix grid ────────────────────────────── */
.services__matrix-wrap {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 40px 56px;
}

.services__matrix {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0;
}

/* ── Module cards ─────────────────────────────────────────── */
.cap__card {
  background: var(--bg-primary);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  position: relative;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.65s var(--ease-out-expo),
    transform 0.65s var(--ease-out-expo),
    background 0.25s;
  cursor: default;
}

.cap__card-left {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-right: 1px solid var(--border);
}

.cap__card-right {
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cap__card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.cap__card:hover {
  background: var(--bg-secondary);
}

.cap__card--active {
  background: var(--bg-primary);
}

.cap__card--active:hover {
  background: var(--bg-secondary);
}

/* Card header row: num + module_id + badge */
.cap__card-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cap__card-hdr-l {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cap__num {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-mid);
}

.cap__dash {
  font-family: var(--font-mono);
  font-size: 7px;
  color: var(--ink-xlight);
  letter-spacing: -0.04em;
}

.cap__mod-id {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-light);
  text-transform: uppercase;
}

.cap__badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 1px;
  border: 1px solid;
}

.cap__badge--verified {
  border-color: rgba(61,204,106,0.3);
  background: rgba(61,204,106,0.06);
}

.cap__badge--verified .cap__badge-dot { background: #3DCC6A; }

.cap__badge--verified span:last-child {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #3DCC6A;
  text-transform: uppercase;
}

.cap__badge--active {
  border-color: rgba(255,113,51,0.3);
  background: rgba(255,113,51,0.06);
}

.cap__badge--active .cap__badge-dot { background: var(--accent-orange); }

.cap__badge--active span:last-child {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-orange);
  text-transform: uppercase;
}

.cap__badge-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Module name block */
.cap__name-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cap__name {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}

.cap__name-rule {
  width: 32px;
  height: 2px;
  background: var(--accent-orange);
  flex-shrink: 0;
}

.cap__desc {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-light);
  letter-spacing: -0.005em;
}

/* Tech section */
.cap__tech {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cap__section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink-xlight);
  text-transform: uppercase;
}

.cap__tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.cap__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-xlight);
  padding: 3px 6px;
  border: 1px solid var(--border);
  border-radius: 1px;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
}

.cap__card:hover .cap__tag {
  border-color: var(--border-strong);
  color: var(--ink-light);
}

.cap__inner-rule {
  height: 1px;
  background: var(--border);
  margin: 2px 0;
}

/* Focus areas */
.cap__focus {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cap__focus-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cap__focus-arr {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--accent-orange);
}

.cap__focus-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
}

.cap__focus-item {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateX(4px);
  transition: opacity 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
}

.cap__card.revealed .cap__focus-item:nth-child(1) { transition-delay: 0.08s; opacity: 1; transform: translateX(0); }
.cap__card.revealed .cap__focus-item:nth-child(2) { transition-delay: 0.12s; opacity: 1; transform: translateX(0); }
.cap__card.revealed .cap__focus-item:nth-child(3) { transition-delay: 0.16s; opacity: 1; transform: translateX(0); }
.cap__card.revealed .cap__focus-item:nth-child(4) { transition-delay: 0.20s; opacity: 1; transform: translateX(0); }

.cap__focus-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-orange);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.cap__card:hover .cap__focus-dot {
  transform: scale(1.4);
}

.cap__focus-text {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
  text-transform: uppercase;
}

/* Blueprint SVG drawing */
.cap__blueprint {
  border: 1px solid var(--border);
  border-radius: 2px;
  background: rgba(18,18,18,0.015);
  padding: 8px;
  flex: 1;
  overflow: hidden;
  transition: border-color 0.25s;
}

.cap__card:hover .cap__blueprint {
  border-color: var(--border-strong);
}

.cap__blueprint-svg {
  display: block;
  width: 100%;
  height: auto;
}

.bp__dot {
  transition: fill 0.25s;
}

.cap__card:hover .bp__dot {
  fill: #FF7133;
}

/* Card footer */
.cap__card-ftr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  gap: 8px;
  flex-wrap: wrap;
}

.cap__ftr-date {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ink-xlight);
  text-transform: uppercase;
}

.cap__ftr-status {
  display: flex;
  align-items: center;
  gap: 5px;
}

.cap__ftr-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cap__ftr-dot--stable { background: #3DCC6A; }
.cap__ftr-dot--active { background: var(--accent-orange); }

.cap__ftr-label {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-light);
  text-transform: uppercase;
}

/* ── More details button ──────────────────────────────────── */
.cap__more-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: auto 0 0;
  padding: 0 16px;
  height: 44px;
  background: var(--accent-orange);
  border: 1px solid var(--accent-orange);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.cap__more-btn:hover {
  background: #e8622c;
  border-color: #e8622c;
}

.cap__more-btn:hover .cap__more-btn__arrow {
  transform: translateX(4px);
}

.cap__more-btn__label {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #ffffff;
  text-transform: uppercase;
  transition: color 0.2s;
}

.cap__more-btn:hover .cap__more-btn__label {
  color: #ffffff;
}

.cap__more-btn__arrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #ffffff;
  transition: transform 0.2s var(--ease-out-expo);
}

/* ── Status strip ─────────────────────────────────────────── */
.services__status-strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.services__status-wrap {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}

.services__ss-hdr {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.services__ss-title {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink-mid);
  text-transform: uppercase;
}

.services__ss-online {
  display: flex;
  align-items: center;
  gap: 6px;
}

.services__ss-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3DCC6A;
  flex-shrink: 0;
}

.services__ss-label {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #3DCC6A;
  text-transform: uppercase;
}

.services__ss-ref {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ink-xlight);
  text-transform: uppercase;
  margin-left: auto;
}

.services__ss-caps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.services__ss-cap {
  background: var(--bg-secondary);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease-out-expo), transform 0.45s var(--ease-out-expo), background 0.2s;
  cursor: default;
}

.services__ss-cap:hover {
  background: var(--bg-primary);
}

.services.in-view .services__ss-cap { opacity: 1; transform: translateY(0); }
.services.in-view .services__ss-cap:nth-child(1) { transition-delay: 0.55s; }
.services.in-view .services__ss-cap:nth-child(2) { transition-delay: 0.62s; }
.services.in-view .services__ss-cap:nth-child(3) { transition-delay: 0.69s; }
.services.in-view .services__ss-cap:nth-child(4) { transition-delay: 0.76s; }
.services.in-view .services__ss-cap:nth-child(5) { transition-delay: 0.83s; }
.services.in-view .services__ss-cap:nth-child(6) { transition-delay: 0.90s; }

.services__ss-cap-name {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-mid);
  text-transform: uppercase;
  line-height: 1.3;
}

.services__ss-cap-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
}

.services__ss-cap-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.services__ss-cap-dot--green  { background: #3DCC6A; }
.services__ss-cap-dot--orange { background: var(--accent-orange); }

.services__ss-cap-lbl {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.services__ss-cap-lbl--green  { color: #3DCC6A; }
.services__ss-cap-lbl--orange { color: var(--accent-orange); }

/* Services footer strip */
.services__footer-strip {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 48px;
  border-top: 1px solid var(--border);
  background: rgba(236,236,234,0.4);
}

.services__footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ── Services responsive ──────────────────────────────────── */
@media (max-width: 1200px) {
  .services__sidebar-l,
  .services__sidebar-r { display: none; }

  .services__ss-caps { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .services__meta-strip { padding: 0 20px; gap: 12px; }
  .services__header { padding: 48px 20px 40px; grid-template-columns: 1fr; gap: 32px; }
  .services__matrix-wrap { padding: 0 20px; }
  .services__matrix { grid-template-columns: 1fr; }
  .services__cap-overview { padding: 10px 20px; }
  .services__status-wrap { padding: 0 20px; }
  .services__footer-strip { padding: 0 20px; }
  .services__hl { font-size: clamp(32px, 10vw, 52px); }
  .cap__name { font-size: 22px; }
  .services__ss-caps { grid-template-columns: repeat(2, 1fr); }
  .services__corner-meta { right: 20px; }
  .cap__card { grid-template-columns: 1fr; }
  .cap__card-left { border-right: none; border-bottom: 1px solid var(--border); }
}

@media (max-width: 480px) {
  .services__matrix { grid-template-columns: 1fr; }
  .services__ss-caps { grid-template-columns: repeat(2, 1fr); }
  .cap__focus-list { grid-template-columns: 1fr; }
  .cap__card { grid-template-columns: 1fr; }
  .cap__card-left { border-right: none; border-bottom: 1px solid var(--border); }
}

/* ============================================================
   SECTION 04 — DEPLOYED_SYSTEMS / PROJECT ARCHIVE
   ============================================================ */

.projects {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}

.projects__grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(20,20,20,0.18) 1px, transparent 1px);
  background-size: 96px 96px;
  pointer-events: none;
  z-index: 0;
}

/* ── Sidebar labels ───────────────────────────────────────── */
.projects__sidebar-l,
.projects__sidebar-r {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
  z-index: 3;
}

.projects__sidebar-l { left: 4px; }
.projects__sidebar-r { right: 4px; align-items: flex-end; }

.projects__sidebar-l span,
.projects__sidebar-r span {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--ink-xlight);
  text-transform: uppercase;
  writing-mode: vertical-rl;
  opacity: 0.5;
}

/* ── Meta strip ───────────────────────────────────────────── */
.projects__meta-strip {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 40px;
  height: var(--strip-h);
  border-bottom: 1px solid var(--border);
  background: rgba(236,236,234,0.5);
  overflow: hidden;
}

/* ── Corner metadata ──────────────────────────────────────── */
.projects__corner-meta {
  position: absolute;
  top: calc(var(--strip-h) + 12px);
  right: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  pointer-events: none;
  z-index: 3;
}

.projects__corner-meta span {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--ink-xlight);
  text-transform: uppercase;
  opacity: 0.55;
}

/* ── Header ───────────────────────────────────────────────── */
.projects__header {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 80px 40px 72px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: end;
}

.projects__header-left {
  display: flex;
  flex-direction: column;
  gap: 36px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-system), transform 0.5s var(--ease-system);
}

.projects.in-view .projects__header-left {
  opacity: 1;
  transform: translateY(0);
}

.projects__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
}

.projects__headline {
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.projects__hl {
  display: block;
  font-size: clamp(36px, 4.6vw, 68px);
}

.projects__hl--ink    { color: var(--ink); }
.projects__hl--accent { color: var(--accent-orange); }

.projects__header-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.5s 0.1s var(--ease-system), transform 0.5s 0.1s var(--ease-system);
}

.projects.in-view .projects__header-right {
  opacity: 1;
  transform: translateX(0);
}

.projects__descriptor {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.projects__header-tags {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.projects__proto {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-light);
  text-transform: uppercase;
}

/* ── Panel wrap ───────────────────────────────────────────── */
.projects__panel-wrap {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 40px 80px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s 0.15s var(--ease-system), transform 0.5s 0.15s var(--ease-system);
}

.projects.in-view .projects__panel-wrap {
  opacity: 1;
  transform: translateY(0);
}

/* ── Editorial layout: name left, module right ─────────────── */
.proj-editorial {
  display: grid;
  grid-template-columns: 320px 1fr;
  border-top: 1px solid var(--border);
}

/* ── Project name list (left column) ──────────────────────── */
.proj-list {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

/* ── Project entries (editorial style) ────────────────────── */
.proj-entry {
  padding: 36px 32px 32px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  outline: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0.28;
  background: transparent;
  transition: opacity 0.35s var(--ease-out-expo);
}

.proj-entry:last-child { border-bottom: none; }

.proj-entry:hover {
  opacity: 0.6;
  background: transparent;
}

.proj-entry--active {
  opacity: 1;
  background: transparent;
}

.proj-entry--active:hover {
  opacity: 1;
  background: transparent;
}

.proj-entry__num {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--ink-light);
  text-transform: uppercase;
}

.proj-entry--active .proj-entry__num { color: var(--accent-orange); }

.proj-entry__name {
  font-family: var(--font-sans);
  font-size: clamp(28px, 3vw, 35px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: var(--ink);
  transition: color 0.2s;
}

.proj-entry__foot {
  display: flex;
  align-items: center;
  gap: 8px;
}

.proj-entry__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border-strong);
  flex-shrink: 0;
  transition: background 0.2s;
}

.proj-entry__dot--orange { background: var(--accent-orange); }

.proj-entry__status {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-xlight);
  text-transform: uppercase;
  transition: color 0.2s;
}

.proj-entry__status--orange { color: var(--accent-orange); }

/* Hide case-file title: left column is the title in editorial layout */
.proj-editorial .case-file__title { display: none; }

/* ── Case File (right column) ─────────────────────────────── */
.case-file {
  display: flex;
  flex-direction: column;
  min-height: 520px;
}

.case-file__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(18,18,18,0.025);
  flex-shrink: 0;
  gap: 16px;
  flex-wrap: wrap;
}

.case-file__bar-id {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-mid);
  text-transform: uppercase;
}

.case-file__bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.case-file__bar-status {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-light);
  text-transform: uppercase;
}

.case-file__bar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.case-file__bar-dot--green  { background: #3DCC6A; }
.case-file__bar-dot--orange { background: var(--accent-orange); }

.case-file__sys-badge {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #3DCC6A;
  border: 1px solid rgba(61,204,106,0.35);
  background: rgba(61,204,106,0.06);
  padding: 2px 7px;
  border-radius: 1px;
  text-transform: uppercase;
}

/* Content area: main expanded (aside hidden) */
.case-file__content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.case-file__aside { display: none; }

.case-file__main {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.case-file__title {
  font-family: var(--font-sans);
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
  transition: opacity 0.3s;
}

.case-file__rows {
  display: flex;
  flex-direction: column;
}

.case-file__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.case-file__row:last-child { border-bottom: none; }

.case-file__key {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-light);
  text-transform: uppercase;
  padding-top: 1px;
  flex-shrink: 0;
}

.case-file__val {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink-mid);
  text-transform: uppercase;
}

.case-file__val--p {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-mid);
  letter-spacing: -0.003em;
  text-transform: none;
}

.case-file__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.case-file__tag {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 1px;
  text-transform: uppercase;
  background: transparent;
  transition: border-color 0.2s, color 0.2s;
}

/* Aside: metadata column */
.case-file__aside {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
}

.case-file__aside-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 0 9px 14px;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: opacity 0.3s;
}

.case-file__aside-item:last-child { border-bottom: none; }

.case-file__aside-sq {
  position: absolute;
  left: 0;
  top: 13px;
  width: 5px;
  height: 5px;
  background: var(--accent-orange);
  flex-shrink: 0;
}

.case-file__aside-key {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--ink-xlight);
  text-transform: uppercase;
}

.case-file__aside-val {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-mid);
  text-transform: uppercase;
}

/* Panel footer */
.case-file__ftr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  border-top: 1px solid var(--border);
  background: rgba(18,18,18,0.02);
  flex-shrink: 0;
  gap: 16px;
  flex-wrap: wrap;
}

.case-file__ftr-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.case-file__ftr-item {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ink-xlight);
  text-transform: uppercase;
}

.case-file__ftr-sep {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--border-strong);
}

.case-file__ftr-prod-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3DCC6A;
  vertical-align: middle;
  margin-left: 4px;
}

.case-file__cta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 1px solid var(--accent-orange);
  background: var(--accent-orange);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 1px;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.case-file__cta:hover {
  background: #e05e20;
  border-color: #e05e20;
}

.case-file__cta-arr {
  transition: transform 0.2s var(--ease-out-expo);
}

.case-file__cta:hover .case-file__cta-arr {
  transform: translateX(3px);
}

/* ── Project detail blocks ────────────────────────────────── */
.proj-detail {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.proj-detail__block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.proj-detail__block:last-child { border-bottom: none; }

.proj-detail__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-orange);
  text-transform: uppercase;
}

.proj-detail__text {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  letter-spacing: -0.003em;
  margin: 0;
}

.proj-detail__value {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.proj-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.proj-detail__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink);
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 1px;
  text-transform: uppercase;
}

/* Transition on case switch */
.case-file--switching .case-file__title,
.case-file--switching .proj-detail {
  opacity: 0;
  transition: opacity 0.15s;
}

/* ── Section footer strip ─────────────────────────────────── */
.projects__footer-strip {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 48px;
  border-top: 1px solid var(--border);
  background: rgba(236,236,234,0.4);
}

.projects__footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ── Projects responsive ──────────────────────────────────── */
@media (max-width: 1200px) {
  .projects__sidebar-l,
  .projects__sidebar-r { display: none; }
}

@media (max-width: 1100px) {
  .proj-editorial { grid-template-columns: 260px 1fr; }
  .proj-entry__name { font-size: clamp(24px, 2.6vw, 38px); }
}

@media (max-width: 960px) {
  .proj-editorial { grid-template-columns: 220px 1fr; }
  .case-file__content { grid-template-columns: 1fr 180px; }
  .proj-entry { padding: 28px 20px 24px; }
}

/* ── Mobile project cards (hidden on desktop) ─────────────── */
.proj-mobile-list { display: none; }

@media (max-width: 768px) {
  .projects__header { padding: 48px 20px 40px; grid-template-columns: 1fr; gap: 32px; }
  .projects__panel-wrap { padding: 0 20px 56px; }
  .projects__meta-strip { padding: 0 20px; gap: 12px; }
  .projects__footer-strip { padding: 0 20px; }
  .projects__corner-meta { right: 20px; }
  .projects__hl { font-size: clamp(32px, 10vw, 52px); }

  /* Hide desktop editorial layout, show mobile cards */
  .proj-editorial { display: none; }
  .proj-mobile-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
  }

  /* Individual project card */
  .proj-mcard {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-primary);
  }
  .proj-mcard:last-child { border-bottom: none; }

  .proj-mcard__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
  }
  .proj-mcard__num {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    color: var(--accent-orange);
    letter-spacing: 0.08em;
  }
  .proj-mcard__badge {
    font-family: var(--font-mono);
    font-size: 7px;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 3px 7px;
    border-radius: 2px;
    border: 1px solid;
  }
  .proj-mcard__badge--green  { color: #3DCC6A; border-color: #3DCC6A; }
  .proj-mcard__badge--orange { color: var(--accent-orange); border-color: var(--accent-orange); }

  .proj-mcard__title {
    font-family: var(--font-sans);
    font-size: clamp(22px, 6vw, 30px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--ink);
    margin: 0 0 20px;
  }
  .proj-mcard__block { margin-bottom: 16px; }
  .proj-mcard__block:last-of-type { margin-bottom: 20px; }

  .proj-mcard__label {
    display: block;
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--accent-orange);
    margin-bottom: 6px;
    text-transform: uppercase;
  }
  .proj-mcard__desc {
    font-size: 13px;
    line-height: 1.65;
    color: var(--ink-light, #555);
    margin: 0;
  }
  .proj-mcard__type {
    font-size: 13px;
    color: var(--ink);
    font-weight: 500;
  }
  .proj-mcard__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .proj-mcard__tag {
    font-family: var(--font-mono);
    font-size: 7px;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 2px;
    background: var(--bg-secondary, #f5f5f2);
    color: var(--ink);
    text-transform: uppercase;
  }
  .proj-mcard__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent-orange);
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
  }
  .proj-mcard__cta:hover { border-bottom-color: var(--accent-orange); }
}

@media (max-width: 480px) {
  .projects__header { padding: 36px 20px 32px; }
  .proj-mcard { padding: 20px 16px; }
}

/* ============================================================
   SECTION 08 — CONTACT_TERMINAL / PROJECT INTAKE
   ============================================================ */

.contact {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}

.contact__grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(20,20,20,0.18) 1px, transparent 1px);
  background-size: 96px 96px;
  pointer-events: none;
  z-index: 0;
}

/* ── Sidebars ─────────────────────────────────────────────── */
.contact__sidebar-l,
.contact__sidebar-r {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
  z-index: 3;
}

.contact__sidebar-l { left: 4px; }
.contact__sidebar-r { right: 4px; align-items: flex-end; }

.contact__sidebar-l span,
.contact__sidebar-r span {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--ink-xlight);
  text-transform: uppercase;
  writing-mode: vertical-rl;
  opacity: 0.5;
}

/* ── Meta strip ───────────────────────────────────────────── */
.contact__meta-strip {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 40px;
  height: var(--strip-h);
  border-bottom: 1px solid var(--border);
  background: rgba(236,236,234,0.5);
  overflow: hidden;
}

/* ── Corner metadata ──────────────────────────────────────── */
.contact__corner-meta {
  position: absolute;
  top: calc(var(--strip-h) + 12px);
  right: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  pointer-events: none;
  z-index: 3;
}

.contact__corner-meta span {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--ink-xlight);
  text-transform: uppercase;
  opacity: 0.55;
}

/* ── Header ───────────────────────────────────────────────── */
.contact__header {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 80px 40px 72px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: end;
}

.contact__header-left {
  display: flex;
  flex-direction: column;
  gap: 36px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-system), transform 0.5s var(--ease-system);
}

.contact.in-view .contact__header-left {
  opacity: 1;
  transform: translateY(0);
}

.contact__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact__headline {
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.contact__hl {
  display: block;
  font-size: clamp(36px, 4.6vw, 68px);
}

.contact__hl--ink    { color: var(--ink); }
.contact__hl--accent { color: var(--accent-orange); }

.contact__header-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.5s 0.1s var(--ease-system), transform 0.5s 0.1s var(--ease-system);
}

.contact.in-view .contact__header-right {
  opacity: 1;
  transform: translateX(0);
}

.contact__descriptor {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact__header-tags {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.contact__proto {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-light);
  text-transform: uppercase;
}

/* ── Panel wrap ───────────────────────────────────────────── */
.contact__panel-wrap {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 40px 80px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s 0.15s var(--ease-system), transform 0.5s 0.15s var(--ease-system);
}

.contact.in-view .contact__panel-wrap {
  opacity: 1;
  transform: translateY(0);
}

.contact__panel {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-primary);
}

/* ── Intake form (full width) ────────────────────────────── */
.intake {
  display: flex;
  flex-direction: column;
}

.intake__hdr {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(18,18,18,0.025);
  flex-shrink: 0;
}

.intake__title {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink-mid);
  text-transform: uppercase;
}

.intake__form {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.intake__fields {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 24px 24px 0;
  flex: 1;
}

.intake__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 20px;
}

.intake__label {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink-light);
  text-transform: uppercase;
  cursor: pointer;
}

.intake__input,
.intake__select,
.intake__textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 1px;
  padding: 10px 12px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.003em;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.intake__input:focus,
.intake__select:focus,
.intake__textarea:focus {
  border-color: var(--accent-orange);
}

.intake__input::placeholder,
.intake__textarea::placeholder {
  color: var(--ink-xlight);
  font-size: 12px;
}

.intake__textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.6;
}

/* Custom select wrapper with arrow */
.intake__select-wrap {
  position: relative;
}

.intake__select-wrap::after {
  content: '↓';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-light);
  pointer-events: none;
}

.intake__select {
  padding-right: 32px;
  cursor: pointer;
  color: var(--ink-light);
}

/* Actions: button + metadata */
.intake__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  margin-top: auto;
  flex-wrap: wrap;
}

.intake__submit {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  border: 1px solid #f97316;
  border-radius: 1px;
  background: #f97316;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}

.intake__submit:hover {
  border-color: #ea6c0a;
  background: #ea6c0a;
}

.intake__submit--sent {
  border-color: #3DCC6A;
  color: #3DCC6A;
}

.intake__submit-arr {
  transition: transform 0.2s var(--ease-out-expo);
}

.intake__submit:hover .intake__submit-arr {
  transform: translateX(3px);
}

.intake__foot-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.intake__foot-item {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--ink-xlight);
  text-transform: uppercase;
}

.intake__foot-sep {
  font-family: var(--font-mono);
  font-size: 7px;
  color: var(--border-strong);
}

/* ── Contact actions (2 CTA cards replacing the inline form) ── */
.contact__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  padding: 24px;
}

.contact__action-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  transition: transform 0.2s var(--ease-out-expo), border-color 0.2s, background 0.2s;
}

.contact__action-card--primary {
  background: rgba(255,113,51,0.04);
}

.contact__action-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-orange);
}

.contact__action-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contact__action-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-xlight);
}

.contact__action-badge {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-light);
  text-transform: uppercase;
}

.contact__action-title {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.contact__action-desc {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-mid);
  flex: 1;
}

.contact__action-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-top: 8px;
}

.contact__action-arr {
  transition: transform 0.2s var(--ease-out-expo);
}

.contact__action-card:hover .contact__action-arr {
  transform: translateX(3px);
}

@media (max-width: 640px) {
  .contact__actions { grid-template-columns: 1fr; padding: 16px; }
}

/* ── Checkbox group (extended intake form) ───────────────── */
.intake__checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.intake__checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 1px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  color: var(--ink-mid);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.intake__checkbox:has(input:checked) {
  border-color: var(--accent-orange);
  color: var(--ink);
}

.intake__checkbox input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.intake__checkbox-box {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  transition: border-color 0.2s;
}

.intake__checkbox-box::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--accent-orange);
  border-radius: 1px;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.15s, transform 0.15s;
}

.intake__checkbox input:checked + .intake__checkbox-box {
  border-color: var(--accent-orange);
}

.intake__checkbox input:checked + .intake__checkbox-box::after {
  opacity: 1;
  transform: scale(1);
}

/* ── System status panel (right column) ──────────────────── */
.contact-status {
  display: flex;
  flex-direction: column;
  background: rgba(236,236,234,0.3);
}

.contact-status__hdr {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(18,18,18,0.025);
  flex-shrink: 0;
}

.contact-status__title {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink-mid);
  text-transform: uppercase;
}

.contact-status__block {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-status__label {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink-xlight);
  text-transform: uppercase;
}

.contact-status__rule {
  height: 1px;
  background: var(--border);
  flex-shrink: 0;
  margin: 0;
}

/* Ready status */
.contact-status__ready {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-status__ready-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3DCC6A;
  flex-shrink: 0;
  animation: pulse-dot 3.5s var(--ease-system) infinite;
}

.contact-status__ready-lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #3DCC6A;
  text-transform: uppercase;
}

/* Available modules list */
.contact-status__modules {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-status__module {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.contact-status__mod-name {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-mid);
  text-transform: uppercase;
}

.contact-status__badge {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.contact-status__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-status__dot--green  { background: #3DCC6A; }
.contact-status__dot--orange { background: var(--accent-orange); }

.contact-status__lbl {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-status__lbl--green  { color: #3DCC6A; }
.contact-status__lbl--orange { color: var(--accent-orange); }

/* Response protocol */
.contact-status__protocol {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.contact-status__proto-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.contact-status__proto-key {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  text-transform: uppercase;
}

.contact-status__proto-val {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-mid);
  text-transform: uppercase;
}

.contact-status__proto-val--green  { color: #3DCC6A; }
.contact-status__proto-val--orange { color: var(--accent-orange); }

/* Contact channels */
.contact-status__channels {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-status__channel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.15s;
  cursor: pointer;
}

.contact-status__channel:last-child { border-bottom: none; }

.contact-status__chan-name {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-mid);
  text-transform: uppercase;
  transition: color 0.2s;
}

.contact-status__channel:hover .contact-status__chan-name {
  color: var(--ink);
}

.contact-status__chan-arr {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-xlight);
  transition: transform 0.2s var(--ease-out-expo), color 0.2s;
}

.contact-status__channel:hover .contact-status__chan-arr {
  transform: translateX(3px);
  color: var(--accent-orange);
}

/* Status panel footer */
.contact-status__ftr {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: rgba(18,18,18,0.02);
  margin-top: auto;
  flex-wrap: wrap;
}

.contact-status__ftr-item {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--ink-xlight);
  text-transform: uppercase;
}

.contact-status__ftr-sep {
  font-family: var(--font-mono);
  font-size: 7px;
  color: var(--border-strong);
}

.contact-status__ftr-verified {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #3DCC6A;
  text-transform: uppercase;
}

/* ── Section footer strip ─────────────────────────────────── */
.contact__footer-strip {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 48px;
  border-top: 1px solid var(--border);
  background: rgba(236,236,234,0.4);
}

.contact__footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ── Contact responsive ───────────────────────────────────── */
@media (max-width: 1200px) {
  .contact__sidebar-l,
  .contact__sidebar-r { display: none; }
}

@media (max-width: 960px) {
}

@media (max-width: 768px) {
  .contact__header { padding: 48px 20px 40px; grid-template-columns: 1fr; gap: 32px; }
  .contact__panel-wrap { padding: 0 20px 56px; }
  .contact__panel { grid-template-columns: 1fr; }
  .intake { border-bottom: none; }
  .contact__meta-strip { padding: 0 20px; gap: 12px; }
  .contact__footer-strip { padding: 0 20px; }
  .contact__corner-meta { right: 20px; }
  .contact__hl { font-size: clamp(32px, 10vw, 52px); }
  .intake__fields { padding: 20px 20px 0; }
  .intake__actions { padding: 16px 20px; }
}

@media (max-width: 480px) {
  .contact__panel { grid-template-columns: 1fr; }
  .intake__actions { flex-direction: column; align-items: flex-start; }
}


/* ============================================================
   SECTION 09 — FOOTER
   ============================================================ */

.encode-footer-terminal {
  --orange:   #FF7133;
  --bg:       #FF7133;
  --line:     rgba(255,255,255,0.25);
  --ink:      #fff;
  --muted:    rgba(255,255,255,0.7);
}

.encode-footer-terminal {
  position: relative;
  padding: 48px 48px 0;
  background-color: var(--bg);
  color: var(--ink);
  border-top: none;
  overflow: hidden;
  font-family: 'Inter', system-ui, sans-serif;
}

.eft-wrap {
  max-width: 1280px;
  margin: 0 auto;
}

/* ── TOP ROW ── */
.eft-top-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: start;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

/* Nav links */
.eft-top-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.eft-top-nav__link {
  font-family: 'Turret Road', 'Courier New', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}

.eft-top-nav__link:hover {
  color: rgba(255,255,255,0.6);
}

/* Contact info columns */
.eft-top-info {
  display: flex;
  gap: 48px;
}

.eft-top-info__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eft-top-info__link {
  font-family: 'Turret Road', 'Courier New', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.eft-top-info__link:hover {
  color: #fff;
}

/* CTA button */
.eft-cta-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  width: 100px;
  height: 100px;
  background: #fff;
  color: var(--orange);
  text-decoration: none;
  padding: 12px;
  font-family: 'Turret Road', 'Courier New', monospace;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
}

.eft-cta-btn:hover {
  background: rgba(255,255,255,0.88);
  transform: scale(1.03);
}

.eft-cta-btn__arrow {
  font-size: 20px;
  line-height: 1;
  align-self: flex-end;
}

/* ── WORDMARK ── */
.eft-wordmark-wrap {
  position: relative;
  margin-top: 40px;
  line-height: 0.85;
  overflow: hidden;
}

.eft-wordmark {
  display: block;
  font-family: 'Turret Road', 'Courier New', monospace;
  font-size: clamp(120px, 20vw, 280px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  text-transform: lowercase;
  white-space: nowrap;
  user-select: none;
}

.eft-wordmark__copy {
  display: block;
  position: absolute;
  right: 0;
  bottom: 16px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .encode-footer-terminal { padding-inline: 28px; }
  .eft-top-row { grid-template-columns: 1fr 1fr auto; gap: 32px; }
}

@media (max-width: 768px) {
  .encode-footer-terminal { padding-top: 40px; }
  .eft-top-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .eft-top-info { flex-direction: column; gap: 24px; }
  .eft-cta-btn { width: 88px; height: 88px; }
  .eft-wordmark { font-size: clamp(80px, 22vw, 160px); }
}

@media (max-width: 480px) {
  .encode-footer-terminal { padding-inline: 20px; }
  .eft-wordmark { font-size: clamp(64px, 22vw, 120px); }
}
/* ╔══════════════════════════════════════════════════════════╗
   ║  MENU_TERMINAL — Hamburger Button + Navigation Panel    ║
   ╚══════════════════════════════════════════════════════════╝ */

/* ── Navbar control area ──────────────────────────────────── */
.nav__menu-ctrl {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* ── Hamburger trigger button ─────────────────────────────── */
.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 10px;
  height: 34px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-mid);
  text-transform: uppercase;
  transition: border-color 0.2s var(--ease-in-out), color 0.2s;
  position: relative;
  white-space: nowrap;
}

.menu-btn:hover {
  border-color: var(--accent-orange);
  color: var(--ink);
}

.menu-btn--open {
  border-color: var(--accent-orange);
  color: var(--ink);
}

.menu-btn__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-orange);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.menu-btn__label {
  line-height: 1;
}

/* Hamburger lines */
.menu-btn__icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3.5px;
  width: 16px;
  flex-shrink: 0;
  margin-left: 4px;
}

.menu-btn__line {
  display: block;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  transform-origin: center;
  transition:
    transform 0.22s var(--ease-out-expo),
    opacity 0.16s,
    width 0.22s var(--ease-out-expo);
}

.menu-btn__line:nth-child(1) { width: 16px; }
.menu-btn__line:nth-child(2) { width: 11px; margin-left: auto; }
.menu-btn__line:nth-child(3) { width: 16px; }

.menu-btn:hover .menu-btn__line:nth-child(2) { width: 16px; }

/* Open state: morph to X */
.menu-btn--open .menu-btn__line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.menu-btn--open .menu-btn__line:nth-child(2) {
  opacity: 0;
  width: 0;
}
.menu-btn--open .menu-btn__line:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* ── Overlay ──────────────────────────────────────────────── */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(245, 244, 239, 0.65);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s var(--ease-in-out);
}

.menu-overlay--visible {
  opacity: 1;
  pointer-events: all;
}

/* ── Panel ────────────────────────────────────────────────── */
.menu-panel {
  position: fixed;
  top: 12px;
  right: 12px;
  width: 480px;
  height: calc(100vh - 24px);
  background: var(--bg-primary);
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  overflow: hidden;

  /* Hidden state */
  opacity: 0;
  transform: translateX(16px);
  pointer-events: none;
  transition:
    opacity 0.22s var(--ease-out-expo),
    transform 0.22s var(--ease-out-expo);
}

.menu-panel--open {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

/* ── Panel header ─────────────────────────────────────────── */
.menu-panel__hdr {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  height: 44px;
  border-bottom: 1px solid var(--border);
  background: rgba(18,18,18,0.025);
  flex-shrink: 0;
}

.menu-panel__hdr-title {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink-mid);
  text-transform: uppercase;
}

.menu-panel__hdr-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.menu-panel__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3DCC6A;
  flex-shrink: 0;
  animation: pulse-dot 3.5s var(--ease-system) infinite;
}

.menu-panel__status-lbl {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-light);
  text-transform: uppercase;
}

.menu-panel__close {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-light);
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
  margin-left: 8px;
}

.menu-panel__close:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

/* ── Meta row ─────────────────────────────────────────────── */
.menu-panel__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 20px;
  border-bottom: 1px dotted var(--border);
  flex-shrink: 0;
}

.menu-panel__meta-ref,
.menu-panel__meta-ver {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ink-xlight);
  text-transform: uppercase;
}

/* ── Panel body (scrollable) ──────────────────────────────── */
.menu-panel__body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
}

/* ── Navigation links ─────────────────────────────────────── */
.menu-nav {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border);
}

.menu-nav__item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  height: 72px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  position: relative;
  transition: background 0.18s;
  overflow: hidden;
}

.menu-nav__item:last-child {
  border-bottom: none;
}

/* Active left accent line */
.menu-nav__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 2px;
  height: 32px;
  background: var(--accent-orange);
  transform-origin: center;
  transition: transform 0.2s var(--ease-out-expo);
  border-radius: 1px;
}

.menu-nav__item:hover {
  background: rgba(245, 244, 239, 0.7);
}

.menu-nav__item:hover::before {
  transform: translateY(-50%) scaleY(1);
}

.menu-nav__num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-orange);
  flex-shrink: 0;
  width: 22px;
}

.menu-nav__label {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(20px, 3.5vw, 26px);
  letter-spacing: 0.02em;
  color: var(--ink);
  flex: 1;
  line-height: 1;
  transition: color 0.18s;
}

.menu-nav__item:hover .menu-nav__label {
  color: var(--accent-orange);
}

.menu-nav__arrow {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-orange);
  flex-shrink: 0;
  transition: transform 0.2s var(--ease-out-expo);
}

.menu-nav__item:hover .menu-nav__arrow {
  transform: translateX(4px);
}

/* Stagger animation when panel opens */
.menu-panel--open .menu-nav__item:nth-child(1) { animation: menu-row-in 0.3s 0.06s var(--ease-out-expo) both; }
.menu-panel--open .menu-nav__item:nth-child(2) { animation: menu-row-in 0.3s 0.10s var(--ease-out-expo) both; }
.menu-panel--open .menu-nav__item:nth-child(3) { animation: menu-row-in 0.3s 0.14s var(--ease-out-expo) both; }
.menu-panel--open .menu-nav__item:nth-child(4) { animation: menu-row-in 0.3s 0.18s var(--ease-out-expo) both; }
.menu-panel--open .menu-nav__item:nth-child(5) { animation: menu-row-in 0.3s 0.22s var(--ease-out-expo) both; }

@keyframes menu-row-in {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Contact channels ─────────────────────────────────────── */
.menu-channels {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.menu-channels__label {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink-xlight);
  text-transform: uppercase;
  padding: 14px 20px 10px;
  border-bottom: 1px solid var(--border);
}

.menu-channels__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  height: 48px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.16s;
}

.menu-channels__row:last-child {
  border-bottom: none;
}

.menu-channels__row:hover {
  background: rgba(245, 244, 239, 0.7);
}

.menu-channels__row:hover .menu-channels__arrow {
  transform: translateX(3px);
}

.menu-channels__key {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-light);
  text-transform: uppercase;
  width: 84px;
  flex-shrink: 0;
}

.menu-channels__val {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink-mid);
  text-transform: uppercase;
  flex: 1;
}

.menu-channels__arrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-orange);
  flex-shrink: 0;
  transition: transform 0.18s var(--ease-out-expo);
}

/* ── CTA button ───────────────────────────────────────────── */
.menu-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px;
  padding: 0 20px;
  height: 52px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-cta:hover {
  border-color: var(--accent-orange);
  background: rgba(255,113,51,0.03);
}

.menu-cta:hover .menu-cta__arrow {
  transform: translateX(4px);
}

.menu-cta__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-transform: uppercase;
  transition: color 0.2s;
}

.menu-cta:hover .menu-cta__label {
  color: var(--ink);
}

.menu-cta__arrow {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-orange);
  transition: transform 0.2s var(--ease-out-expo);
}

/* ── Panel footer ─────────────────────────────────────────── */
.menu-panel__ftr {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-top: 1px solid var(--border);
  background: rgba(18,18,18,0.02);
  flex-shrink: 0;
}

.menu-panel__ftr-item {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--ink-xlight);
  text-transform: uppercase;
}

.menu-panel__ftr-sep {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--border-strong);
}

.menu-panel__ftr-ready {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #3DCC6A;
  text-transform: uppercase;
}

/* ── Prevent body scroll when menu is open ────────────────── */
body.menu-open {
  overflow: hidden;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 540px) {
  .menu-panel {
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
  }

  .menu-nav__item {
    height: 80px;
  }

  .menu-nav__label {
    font-size: clamp(22px, 7vw, 28px);
  }

  .menu-channels__row {
    height: 54px;
  }

  .menu-cta {
    margin: 16px;
    height: 56px;
  }
}

/* ╔══════════════════════════════════════════════════════════╗
   ║  SERVICE DETAIL MODAL                                   ║
   ╚══════════════════════════════════════════════════════════╝ */

body.modal-open { overflow: hidden; }

/* ── Overlay ──────────────────────────────────────────────── */
.svc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.45);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s var(--ease-in-out);
}

.svc-overlay--visible {
  opacity: 1;
  pointer-events: all;
}

/* ── Modal container ──────────────────────────────────────── */
.svc-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 8px));
  width: 860px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  background: var(--bg-primary);
  border: 1px solid var(--border-strong);
  box-shadow: 0 16px 64px rgba(18, 18, 18, 0.10);
  z-index: 500;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.22s var(--ease-out-expo),
    transform 0.22s var(--ease-out-expo);
}

.svc-modal--open {
  opacity: 1;
  transform: translate(-50%, -50%);
  pointer-events: all;
}

/* ── Header bar ───────────────────────────────────────────── */
.svc-modal__hdr {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 20px;
  height: 44px;
  border-bottom: 1px solid var(--border);
  background: rgba(18, 18, 18, 0.025);
  flex-shrink: 0;
  gap: 12px;
}

.svc-modal__hdr-id {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink-mid);
  text-transform: uppercase;
}

.svc-modal__hdr-center {
  display: flex;
  align-items: center;
  gap: 6px;
}

.svc-modal__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3DCC6A;
  flex-shrink: 0;
  animation: pulse-dot 3.5s var(--ease-system) infinite;
}

.svc-modal__status-dot--orange {
  background: var(--accent-orange);
}

.svc-modal__status-lbl {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-light);
  text-transform: uppercase;
}

.svc-modal__close {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-light);
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.svc-modal__close:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

/* ── Metadata row ─────────────────────────────────────────── */
.svc-modal__meta {
  display: flex;
  justify-content: space-between;
  padding: 7px 20px;
  border-bottom: 1px dotted var(--border);
  flex-shrink: 0;
}

.svc-modal__meta-ref,
.svc-modal__meta-ver {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ink-xlight);
  text-transform: uppercase;
}

/* ── Scrollable body ──────────────────────────────────────── */
.svc-modal__body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}

/* ── Title area ───────────────────────────────────────────── */
.svc-modal__title-area {
  padding: 32px 32px 28px;
  border-bottom: 1px solid var(--border);
}

.svc-modal__title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(28px, 5vw, 48px);
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.svc-modal__intro-wrap {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.svc-modal__intro-bar {
  flex-shrink: 0;
  width: 2px;
  min-height: 44px;
  background: var(--accent-orange);
  border-radius: 1px;
  align-self: stretch;
}

.svc-modal__intro-text {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--accent-orange);
  letter-spacing: -0.01em;
}

/* ── Content grid ─────────────────────────────────────────── */
.svc-modal__grid {
  display: grid;
  grid-template-columns: 58% 1px 42%;
}

.svc-modal__col-l,
.svc-modal__col-r {
  padding: 28px 28px;
  display: flex;
  flex-direction: column;
}

.svc-modal__col-div {
  background: var(--border);
  width: 1px;
  align-self: stretch;
}

/* ── Content blocks ───────────────────────────────────────── */
.svc-modal__block {
  padding-bottom: 20px;
}

.svc-modal__block--last {
  padding-bottom: 4px;
}

.svc-modal__rule {
  height: 1px;
  background: var(--border);
  margin-bottom: 20px;
}

.svc-modal__block-lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink-xlight);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.svc-modal__block-body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.72;
  color: var(--ink-mid);
  letter-spacing: -0.005em;
}

/* ── Lists ────────────────────────────────────────────────── */
.svc-modal__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.svc-modal__list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-mid);
}

.svc-modal__list-item::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  min-width: 5px;
  background: var(--accent-orange);
  flex-shrink: 0;
  margin-top: 5px;
}

/* ── Tool tags ────────────────────────────────────────────── */
.svc-modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.svc-modal__tag {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  padding: 4px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 1px;
  text-transform: uppercase;
}

/* ── Project scope table ──────────────────────────────────── */
.svc-modal__scope {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.svc-modal__scope-row {
  display: grid;
  grid-template-columns: 96px 18px 1fr;
  align-items: center;
}

.svc-modal__scope-key {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-mid);
  text-transform: uppercase;
}

.svc-modal__scope-sep {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--ink-xlight);
  text-align: center;
}

.svc-modal__scope-val {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-orange);
  text-transform: uppercase;
}

/* ── Action bar ───────────────────────────────────────────── */
.svc-modal__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-top: 1px solid var(--border);
  background: rgba(18, 18, 18, 0.02);
  flex-shrink: 0;
}

.svc-modal__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  height: 44px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.2s var(--ease-out-expo), background 0.2s;
}

.svc-modal__btn--primary {
  background: var(--ink);
  color: var(--bg-primary);
  border: 1.5px solid var(--ink);
}

.svc-modal__btn--primary:hover {
  background: var(--ink-mid);
  border-color: var(--ink-mid);
}

.svc-modal__btn--primary:hover .svc-modal__btn-arr {
  transform: translateX(3px);
}

.svc-modal__btn--secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-strong);
}

.svc-modal__btn--secondary:hover {
  border-color: var(--accent-orange);
}

.svc-modal__btn--secondary:hover .svc-modal__btn-arr {
  transform: translateX(3px);
}

.svc-modal__btn-arr {
  transition: transform 0.2s var(--ease-out-expo);
}

.svc-modal__view-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent-orange);
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.18s;
}

.svc-modal__view-link:hover { opacity: 0.72; }
.svc-modal__view-link:hover .svc-modal__btn-arr { transform: translateX(3px); }

/* ── Footer strip ─────────────────────────────────────────── */
.svc-modal__ftr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 20px;
  border-top: 1px solid var(--border);
  background: rgba(18, 18, 18, 0.015);
  flex-shrink: 0;
}

.svc-modal__ftr-item {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--ink-xlight);
  text-transform: uppercase;
}

.svc-modal__ftr-sep {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--border-strong);
}

.svc-modal__ftr-ready {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #3DCC6A;
  text-transform: uppercase;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .svc-modal {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .svc-modal__title-area { padding: 24px 20px 20px; }

  .svc-modal__grid {
    grid-template-columns: 1fr;
  }

  .svc-modal__col-div { display: none; }

  .svc-modal__col-l,
  .svc-modal__col-r {
    padding: 20px 20px;
  }

  .svc-modal__actions {
    flex-wrap: wrap;
    padding: 14px 20px;
  }

  .svc-modal__btn { width: 100%; justify-content: space-between; }

  .svc-modal__view-link {
    margin-left: 0;
    width: 100%;
  }
}

/* ─── MOTION SYSTEM ─────────────────────────────────────────── */

/* Hero scan line */
@keyframes scanHeroGrid {
  0%   { transform: translateX(-100%); opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { transform: translateX(100vw); opacity: 0; }
}

.hero-grid-scan {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(255,107,0,0.18), transparent);
  animation: scanHeroGrid 12s linear infinite;
  pointer-events: none;
  z-index: 1;
}

/* Hero horizontal scan line — bottom to top */
@keyframes scanHeroGridH {
  0%   { transform: translateY(100vh); opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { transform: translateY(-100%); opacity: 0; }
}

.hero-grid-scan-h {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,107,0,0.18), transparent);
  animation: scanHeroGridH 16s linear infinite;
  pointer-events: none;
  z-index: 1;
}

/* Grid node activation points */
@keyframes nodeActivate {
  0%   { opacity: 0; transform: scale(0.6); }
  20%  { opacity: 0.7; transform: scale(1); }
  80%  { opacity: 0.5; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.8); }
}

.grid-node {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.grid-node--1 {
  top: 192px;
  left: 288px;
  animation: nodeActivate 6s var(--ease-system) 1.2s infinite;
}

.grid-node--2 {
  top: 96px;
  right: 384px;
  animation: nodeActivate 6s var(--ease-system) 4s infinite;
}

.grid-node--3 {
  bottom: 192px;
  left: 480px;
  animation: nodeActivate 6s var(--ease-system) 7s infinite;
}

.grid-node--4 {
  top: 288px;
  right: 192px;
  animation: nodeActivate 6s var(--ease-system) 10.5s infinite;
}

/* Motion utility classes */
.motion-section,
.motion-block {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--motion-slow) var(--ease-system),
    transform var(--motion-slow) var(--ease-system);
}

.motion-section.in-view,
.motion-block.in-view {
  opacity: 1;
  transform: translateY(0);
}

.motion-divider {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 600ms var(--ease-system);
}

.motion-divider.in-view {
  transform: scaleX(1);
}

.status-pulse {
  animation: pulse-dot 3.5s var(--ease-system) infinite;
}

/* Navbar entrance */
@keyframes navItemIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav__logo-img {
  animation: navItemIn 280ms var(--ease-system) 0ms both;
}

.nav__label,
.nav__lang-btn {
  animation: navItemIn 280ms var(--ease-system) 40ms both;
}

.nav__links {
  animation: navItemIn 280ms var(--ease-system) 80ms both;
}

.nav__menu-ctrl {
  animation: navItemIn 280ms var(--ease-system) 120ms both;
}

/* Menu panel entrance */
.menu-panel {
  transition:
    opacity var(--motion-medium) var(--ease-system),
    transform var(--motion-medium) var(--ease-system),
    visibility var(--motion-medium);
}

/* Case file content switch */
.case-file__detail-wrap,
.case-file__preview-wrap {
  transition:
    opacity 180ms var(--ease-system),
    transform 180ms var(--ease-system);
}

.case-file__detail-wrap.switching,
.case-file__preview-wrap.switching {
  opacity: 0.45;
  transform: translateY(4px);
}

/* Contact label focus */
.intake__field:focus-within .intake__label {
  color: var(--orange);
  transition: color var(--motion-fast) var(--ease-system);
}

.intake__field:focus-within .intake__input,
.intake__field:focus-within .intake__textarea {
  border-color: var(--orange);
}

/* ─── SECTION SCANNER — línea de escáner sutil en cada sección ── */

@keyframes secScanV {
  0%   { transform: translateX(-100%); opacity: 0; }
  4%   { opacity: 1; }
  96%  { opacity: 1; }
  100% { transform: translateX(100vw);  opacity: 0; }
}

@keyframes secScanH {
  0%   { transform: translateY(-100%); opacity: 0; }
  4%   { opacity: 1; }
  96%  { opacity: 1; }
  100% { transform: translateY(200vh);  opacity: 0; }
}

/* Barra vertical (izquierda → derecha) */
.about__grid-bg::before,
.services__grid-bg::before,
.projects__grid-bg::before,
.contact__grid-bg::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent 10%, rgba(255,113,51,0.15) 50%, transparent 90%);
  pointer-events: none;
  z-index: 1;
}

/* Barra horizontal (arriba → abajo) */
.about__grid-bg::after,
.services__grid-bg::after,
.projects__grid-bg::after,
.contact__grid-bg::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 1px;
  background: linear-gradient(to right, transparent 5%, rgba(255,113,51,0.10) 50%, transparent 95%);
  pointer-events: none;
  z-index: 1;
}

/* Tiempos escalonados — ninguna sección escanea en sincronía */
.about__grid-bg::before    { animation: secScanV 14s  3s linear infinite; }
.about__grid-bg::after     { animation: secScanH 19s  7s linear infinite; }
.services__grid-bg::before { animation: secScanV 13s  1s linear infinite; }
.services__grid-bg::after  { animation: secScanH 17s 12s linear infinite; }
.projects__grid-bg::before { animation: secScanV 16s  5s linear infinite; }
.projects__grid-bg::after  { animation: secScanH 21s  4s linear infinite; }
.contact__grid-bg::before  { animation: secScanV 12s  2s linear infinite; }
.contact__grid-bg::after   { animation: secScanH 15s  9s linear infinite; }

/* ─── REDUCED MOTION ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  /* Disable scan line and grid nodes */
  .hero-grid-scan,
  .hero-grid-scan-h,
  .grid-node,
  .about__grid-bg::before,
  .about__grid-bg::after,
  .services__grid-bg::before,
  .services__grid-bg::after,
  .projects__grid-bg::before,
  .projects__grid-bg::after,
  .contact__grid-bg::before,
  .contact__grid-bg::after {
    animation: none;
    opacity: 0;
  }

  /* Disable section reveal motion — show instantly */
  .motion-section,
  .motion-block {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .motion-divider {
    transform: scaleX(1);
    transition: none;
  }

  /* Disable all pulse animations */
  .status-pulse,
  [class*="__dot"],
  [class*="-dot"] {
    animation: none;
  }

  /* Disable headline entrance animation */
  .headline__line {
    animation: none;
    opacity: 1;
    transform: none;
    clip-path: none;
  }

  /* Disable hero panel entrance */
  .hero__right,
  .hero__left {
    animation: none;
    opacity: 1;
    transform: none;
  }

  /* Disable navbar entrance */
  .nav__logo-img,
  .nav__label,
  .nav__lang-btn,
  .nav__links,
  .nav__menu-ctrl {
    animation: none;
    opacity: 1;
    transform: none;
  }

  /* Disable all transitions */
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  /* Disable smooth scroll */
  html {
    scroll-behavior: auto;
  }
}

/* ╔══════════════════════════════════════════════════════════╗
   ║  RESPONSIVE — COMPREHENSIVE MOBILE ENHANCEMENTS         ║
   ║  tablets, phones & iPhone SE (≤ 390px / ≤ 375px)       ║
   ╚══════════════════════════════════════════════════════════╝ */

/* ── Universal overflow safeguard ────────────────────────── */
html { overflow-x: hidden; }

/* ── All mobile (≤ 768px) improvements ──────────────────── */
@media (max-width: 768px) {
  /* Center hero CTA buttons — hero__left is center-aligned */
  .hero__actions {
    align-items: center;
    width: 100%;
  }

  /* Remove HTML <br> inside descriptor text — let content reflow naturally */
  .descriptor__text br { display: none; }

  /* Meta strips: horizontally scrollable so they never clip */
  .hero__meta-strip,
  .about__meta-strip,
  .services__meta-strip,
  .projects__meta-strip,
  .contact__meta-strip {
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .hero__meta-strip::-webkit-scrollbar,
  .about__meta-strip::-webkit-scrollbar,
  .services__meta-strip::-webkit-scrollbar,
  .projects__meta-strip::-webkit-scrollbar,
  .contact__meta-strip::-webkit-scrollbar { display: none; }

  /* Footer strips: allow wrap instead of forcing fixed height */
  .hero__footer-strip,
  .about__footer-strip,
  .services__footer-strip,
  .projects__footer-strip,
  .contact__footer-strip {
    flex-wrap: wrap;
    height: auto;
    min-height: 48px;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 8px;
  }
}

/* ── Small phones (≤ 480px) ──────────────────────────────── */
@media (max-width: 480px) {
  /* Nav: tighter horizontal padding */
  .nav__grid  { padding: 0 16px; }
  .nav__ident { gap: 10px; }

  /* Hero: slightly smaller headline for tight screens */
  .headline__line--1,
  .headline__line--2,
  .headline__line--3 { font-size: clamp(36px, 11vw, 52px); }

  /* Hero descriptor: smaller body text */
  .descriptor__text { font-size: 15px; }

  /* Hero CTA: full-width stacked buttons */
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 340px;
  }
  .btn          { display: flex; width: 100%; }
  .btn__surface { flex: 1; justify-content: center; }

  /* About bento: reduce block padding & number size for 2-col grid */
  .ab-block         { padding: 14px 15px 24px; border-radius: 10px; }
  .ab-block::before { border-radius: 7px; }
  .ab-block__num    { font-size: clamp(36px, 10vw, 52px); }

  /* Workflow: hide long reference label */
  .workflow__footer-ref { display: none; }
  .workflow__big-title  { font-size: clamp(44px, 8vw, 90px); }

  /* Services: tighter card padding */
  .cap__card-left  { padding: 20px 18px 18px; }
  .cap__card-right { padding: 20px 16px 18px; }

  /* Contact: trim excess footer-meta items */
  .intake__foot-meta > :nth-child(n+4) { display: none; }
}

/* ── iPhone SE & very small phones (≤ 390px) ─────────────── */
@media (max-width: 390px) {
  /* ── Nav ─────────────────────────────────────────────── */
  .nav__grid     { padding: 0 12px; }
  .nav__logo-img { height: 30px; max-width: 120px; }
  .nav__ident    { gap: 8px; }

  /* ── Hero ────────────────────────────────────────────── */
  .headline__line--1,
  .headline__line--2,
  .headline__line--3 { font-size: clamp(32px, 9.5vw, 44px); }

  .hero__content      { padding: 20px 16px 16px; }
  .hero__footer-strip { padding-left: 16px; padding-right: 16px; }

  /* ── All section meta-strips ─────────────────────────── */
  .hero__meta-strip,
  .about__meta-strip,
  .services__meta-strip,
  .projects__meta-strip,
  .contact__meta-strip { padding: 0 16px; gap: 10px; }

  /* ── About headline & content ────────────────────────── */
  .about__content      { padding: 28px 16px 20px; }
  .about__hl           { font-size: clamp(20px, 7.5vw, 34px); }
  .about-profile       { padding: 0 16px 36px; }
  .about-profile__hdr  { padding: 24px 0 16px; gap: 10px; }
  .about__workflow     { padding: 0 16px 36px; }
  .about__footer-strip { padding-left: 16px; padding-right: 16px; }

  /* About bento: single-column layout for very small screens */
  .about-profile__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "year"
      "avail"
      "desc"
      "founders"
      "skills"
      "values"
      "scope"
      "contact";
  }
  /* Restore bigger numbers now blocks are full-width */
  .ab-block__num { font-size: clamp(52px, 14vw, 80px); }
  .ab-block      { padding: 14px 16px 24px; }
  .ab-block__text { font-size: 13px; line-height: 1.55; }
  .ab-block__tags { flex-direction: row; flex-wrap: wrap; gap: 5px; }
  .ab-block__tag  { font-size: 11px; }

  /* ── Services ────────────────────────────────────────── */
  .services__header       { padding: 32px 16px 28px; }
  .services__matrix-wrap  { padding: 0 16px; }
  .services__hl           { font-size: clamp(26px, 8.5vw, 44px); }
  .cap__card-left         { padding: 16px 16px 14px; }
  .cap__card-right        { padding: 16px 14px 14px; }
  .cap__name              { font-size: 18px; }
  .services__footer-strip { padding-left: 16px; padding-right: 16px; }

  /* ── Projects ────────────────────────────────────────── */
  .projects__header       { padding: 32px 16px 28px; }
  .projects__panel-wrap   { padding: 0 16px 36px; }
  .projects__hl           { font-size: clamp(24px, 8vw, 40px); }
  .proj-entry             { min-width: 110px; padding: 14px 12px; }
  .proj-entry__name       { font-size: clamp(13px, 4vw, 18px); }
  .case-file__main        { padding: 16px 14px; }
  .case-file__bar         { padding: 10px 14px; }
  .case-file__ftr         { padding: 10px 14px; }
  .projects__footer-strip { padding-left: 16px; padding-right: 16px; }

  /* ── Contact ─────────────────────────────────────────── */
  .contact__header        { padding: 32px 16px 28px; }
  .contact__panel-wrap    { padding: 0 16px 36px; }
  .contact__hl            { font-size: clamp(24px, 8vw, 40px); }
  .intake__fields         { padding: 14px 14px 0; }
  .intake__actions        { padding: 12px 14px; gap: 12px; flex-direction: column; align-items: flex-start; }
  .intake__submit         { width: 100%; justify-content: center; }
  .intake__foot-meta      { display: none; }
  .contact__footer-strip  { padding-left: 16px; padding-right: 16px; }

  /* ── Footer ──────────────────────────────────────────── */
  .encode-footer-terminal { padding-inline: 16px; padding-top: 28px; }
  .eft-top-row            { gap: 20px; }
  .eft-cta-btn            { width: 80px; height: 80px; font-size: 12px; }
  .eft-wordmark           { font-size: clamp(54px, 18vw, 90px); }
}
