@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --paper: #ffffff;
  --ink: #0a0a0a;
  --ink-70: #0a0a0ab3;
  --ink-45: #0a0a0a73;
  --ink-30: #0a0a0a4d;
  --gold: #a9781f;
  --gold-soft: #a9781f26;
  --line: #0a0a0a22;
  --line-strong: #0a0a0a4a;
  --surface: #f2f2f0;
  --dur: .5s;
}

[data-theme="dark"] {
  --paper: #0a0a0a;
  --ink: #f5f5f3;
  --ink-70: #f5f5f3b3;
  --ink-45: #f5f5f373;
  --ink-30: #f5f5f34d;
  --gold: #c69436;
  --gold-soft: #c6943626;
  --line: #f5f5f322;
  --line-strong: #f5f5f34a;
  --surface: #141412;
}

body {
  overflow-x: hidden;
  max-width: 100%;
}

html {
  background: var(--paper);
  transition: background .25s linear;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0 !important;
}

/* Prevent any media or table from ever causing horizontal scroll */
img,
video,
svg,
canvas,
iframe,
table {
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.7;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}

section {
  scroll-margin-top: 80px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .001s !important;
    transition-duration: .001s !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------- reveal-on-scroll base ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- header ---------------- */
header {
  padding: 26px 0;
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 40;
  transition: background .25s linear, padding .25s cubic-bezier(.2, .7, .2, 1);
}

header.scrolled {
  padding: 12px 0;
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 34px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  transition: width .25s cubic-bezier(.2, .7, .2, 1), height .25s cubic-bezier(.2, .7, .2, 1);
}

header.scrolled .brand img {
  width: 38px;
  height: 38px;
}

.word {
  font-family: 'Instrument Serif', serif;
  font-style: normal;
  font-weight: 400;
  font-size: 30px;
  letter-spacing: 0.06em;
  transition: font-size .25s cubic-bezier(.2, .7, .2, 1);
}

header.scrolled .word {
  font-size: 22px;
}

nav {
  display: flex;
  gap: 6px;
  font-size: 12px;
}

nav a {
  position: relative;
  text-decoration: none;
  color: var(--ink-70);
  padding: 8px 14px;
  transition: background .2s linear, color .2s linear;
}

nav a:hover,
nav a:focus-visible {
  color: var(--paper);
  background: var(--ink);
}

nav a.active {
  color: var(--paper);
  background: var(--ink);
  font-weight: 600;
}

nav a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  position: relative;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 60;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.2s ease;
  transform-origin: center;
}

.nav-toggle:hover {
  border-color: var(--gold);
}

.nav-toggle:hover .bar {
  background: var(--gold);
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--gold);
}

.nav-toggle[aria-expanded="true"] .bar-1 {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar-2 {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] .bar-3 {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-theme {
  display: none;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-70);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color .2s linear, color .2s linear;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--ink);
  color: var(--ink);
}

.theme-toggle .tt-dark {
  display: inline;
}

.theme-toggle .tt-light {
  display: none;
}

[data-theme="dark"] .theme-toggle .tt-dark {
  display: none;
}

[data-theme="dark"] .theme-toggle .tt-light {
  display: inline;
}

/* ---------------- hero ---------------- */
:root {
  --header-h: 73px;
}

.hero {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 84px 0 60px;
  background: var(--paper);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-bg-slide.is-active {
  opacity: 1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--paper);
  opacity: .28;
  z-index: 1;
}

.hero .wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

h1 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.005em;
  max-width: 13ch;
  text-shadow: 0 1px 24px var(--paper), 0 1px 3px var(--paper);
}

h1 i {
  font-style: italic;
  color: var(--gold);
}

.dek {
  margin-top: 24px;
  max-width: 52ch;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.8;
  background: var(--paper);
  display: inline-block;
  padding: 2px 6px;
  box-shadow: 0 0 0 6px var(--paper);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.actions {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  font-weight: 600;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 0.01em;
  transition: background .18s linear, color .18s linear, border-color .18s linear, transform .18s cubic-bezier(.2, .7, .2, 1);
}

.btn.primary {
  background: var(--ink);
  color: var(--paper);
}

.btn.primary:hover {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn:not(.primary):hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: translateY(-2px);
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  width: 100%;
}

.hero-cube-scene {
  --cube-size: 210px;
  --cube-half: 105px;
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.hero-cube-scene:active {
  cursor: grabbing;
}

.hero-photo-cube {
  width: var(--cube-size);
  height: var(--cube-size);
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transform: rotateX(-18deg) rotateY(32deg);
}

.cube-face {
  position: absolute;
  width: var(--cube-size);
  height: var(--cube-size);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(201, 168, 76, 0.45);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.45), 0 8px 32px rgba(0, 0, 0, 0.35);
  backface-visibility: visible;
}

.cube-face::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 16, 0.15);
  pointer-events: none;
}

.dark .cube-face {
  border-color: rgba(201, 168, 76, 0.6);
}

.cube-front  { transform: rotateY(0deg) translateZ(var(--cube-half)); }
.cube-back   { transform: rotateY(180deg) translateZ(var(--cube-half)); }
.cube-right  { transform: rotateY(90deg) translateZ(var(--cube-half)); }
.cube-left   { transform: rotateY(-90deg) translateZ(var(--cube-half)); }
.cube-top    { transform: rotateX(90deg) translateZ(var(--cube-half)); }
.cube-bottom { transform: rotateX(-90deg) translateZ(var(--cube-half)); }

.cube-hud {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--ink-45);
  pointer-events: none;
  padding: 0 4px;
}

.cube-hud .hud-tag {
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
}

.cube-hud .hud-hint {
  opacity: 0.6;
}

.status {
  border: 1px solid var(--line-strong);
  padding: 18px 20px;
  justify-self: end;
  width: 100%;
  max-width: 260px;
  background: var(--paper);
}

.status .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  padding: 7px 0;
}

.status .row+.row {
  border-top: 1px dotted var(--line);
}

.status .k {
  color: var(--ink-45);
}

.status .v {
  font-weight: 600;
}

.led {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--gold);
  margin-right: 7px;
  transform: translateY(-1px);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .35;
  }
}

/* ---------------- the signal ---------------- */
.signal {
  padding: 64px 0 56px;
  background: var(--surface);
}

.signal .cap {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-45);
  margin-bottom: 16px;
}

.signal .cap .hint {
  color: var(--gold);
}

.signal-frame {
  position: relative;
  cursor: crosshair;
}

.signal-frame svg {
  display: block;
  width: 100%;
  height: auto;
}

.trace-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trace-draw {
  stroke-dasharray: 2200;
  stroke-dashoffset: 2200;
}

/* trace drawing is now handled via JS requestAnimationFrame */
.tick {
  stroke: var(--line-strong);
  stroke-width: 1;
}

.mark-line {
  stroke: var(--gold);
  stroke-width: 1;
}

.mark-dot {
  fill: var(--gold);
}

.axis-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  fill: var(--ink-45);
}

.axis-label.gold {
  fill: var(--gold);
  font-weight: 600;
}

.scrub-line {
  stroke: var(--ink);
  stroke-width: 1;
  opacity: 0;
  transition: opacity .12s linear;
}

.scrub-dot {
  fill: var(--paper);
  stroke: var(--gold);
  stroke-width: 2;
  opacity: 0;
  transition: opacity .12s linear;
}

.signal-frame.active .scrub-line,
.signal-frame.active .scrub-dot {
  opacity: 1;
}

.scrub-readout {
  position: absolute;
  top: -2px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  background: var(--ink);
  color: var(--paper);
  padding: 4px 8px;
  transform: translate(-50%, -100%);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .12s linear;
  pointer-events: none;
}

.signal-frame.active .scrub-readout {
  opacity: 1;
}

.signal-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 11px;
  color: var(--ink-45);
}

/* ---------------- section heads ---------------- */
.head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 38px;
}

.head .sq {
  display: none !important;
}

.head h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 2.8vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
  position: relative;
  display: inline-block;
  padding-bottom: 7px;
  margin-right: 56px;
  border-bottom: none;
}

.head h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 42%;
  width: calc(58% + 56px);
  height: 2.5px;
  background: var(--ink);
  pointer-events: none;
}

.head .n {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-45);
}

/* ---------------- services / disciplines ---------------- */
.disciplines {
  padding: 0;
  background: var(--paper);
}

.disciplines .head {
  padding: 64px 40px 0;
  max-width: 1180px;
  margin: 0 auto;
}

.disc-list {
  border-top: 1px solid var(--line-strong);
}

.disc {
  position: relative;
  border-bottom: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: 120px 1fr 340px;
  align-items: center;
  gap: 40px;
  padding: 38px 40px;
  max-width: 1180px;
  margin: 0 auto;
  cursor: default;
  transition: padding-left .3s cubic-bezier(.2, .7, .2, 1);
  overflow: hidden;
}

.disc::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}

.disc:hover {
  padding-left: 56px;
}

.disc:hover::before {
  transform: scaleY(1);
}

.disc .num {
  font-family: 'Instrument Serif', serif;
  font-size: 52px;
  font-weight: 400;
  color: var(--ink-30);
  line-height: 1;
  transition: color .3s linear;
}

.disc:hover .num {
  color: var(--ink);
}

.disc .tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 8px;
}

.disc h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 26px;
  font-weight: 400;
}

.disc p {
  font-size: 13px;
  color: var(--ink-70);
  line-height: 1.75;
  margin-bottom: 14px;
}

.disc ul {
  list-style: none;
  font-size: 12.5px;
  color: var(--ink-70);
  border-top: 1px solid var(--line);
}

.disc li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-70);
  letter-spacing: 0.01em;
  transition: color .2s ease, padding-left .25s ease;
}

.disc li::before {
  display: none !important;
  content: none !important;
}

.disc:hover li {
  color: var(--ink);
}

/* ---------------- devsecops engineering protocols ---------------- */
.devsecops {
  background: var(--paper);
  color: var(--ink);
  padding: 90px 0;
  border-top: 1px solid var(--line);
}

.devsecops .head .sq {
  background: var(--gold);
}

/* 2-column body layout */
.devsec-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ---- Left: image with hover panels ---- */
.devsec-visual {
  position: relative;
}

.devsec-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--surface);
}

.devsec-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

.devsec-image-wrap:hover .devsec-img {
  transform: scale(1.03);
}

/* Info panel — each has its own background image */
.devsec-panel {
  position: absolute;
  inset: 0;
  background-color: #111;
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s cubic-bezier(.2, .7, .2, 1), transform .4s cubic-bezier(.2, .7, .2, 1);
  pointer-events: none;
}

/* Dark gradient so text is always legible over any photo */
.devsec-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.90) 0%, rgba(0,0,0,0.60) 45%, rgba(0,0,0,0.30) 100%);
  pointer-events: none;
}

.devsec-panel.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Text content wrapper — generous padding from all edges */
.panel-content {
  position: relative;
  z-index: 1;
  padding: 32px 36px 52px;
}

.panel-index {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.panel-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #fff;
}

.panel-desc {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255,255,255,0.72);
  max-width: 360px;
}

/* Bottom strip of tab buttons */
.devsec-panel-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.15);
  z-index: 2;
}

.strip-tab {
  flex: 1;
  background: rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.45);
  border: none;
  border-right: 1px solid rgba(255,255,255,0.1);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 12px 0;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.strip-tab:last-child {
  border-right: none;
}

.strip-tab:hover,
.strip-tab.active {
  background: rgba(0,0,0,0.85);
  color: #fff;
}

/* ---- Right: editorial copy + ledger ---- */
.devsec-editorial {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.devsecops-lead-block {
  max-width: 100%;
}

.devsecops-headline {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 18px;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.devsecops-subtext {
  color: var(--ink-70);
  font-size: 14px;
  line-height: 1.85;
}

/* Engineering Verification Ledger Table */
.sec-ledger-wrap {
  border-top: 1px solid var(--line-strong);
  padding-top: 24px;
}

.sec-ledger-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}

.ledger-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-45);
}

.ledger-meta {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.sec-ledger-table {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.ledger-row {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 0.8fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  align-items: center;
  transition: padding-left .2s ease;
}

.ledger-row:last-child {
  border-bottom: none;
}

.ledger-row:not(.ledger-head):hover {
  padding-left: 8px;
}

.ledger-head {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-45);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 10px;
}

.col-scope {
  color: var(--ink);
  font-weight: 500;
}

.col-tech {
  color: var(--ink-70);
  font-size: 12px;
}

.col-cadence {
  color: var(--ink);
  text-align: right;
  font-size: 11.5px;
  font-family: 'JetBrains Mono', monospace;
}

/* Responsive */
@media (max-width: 900px) {
  .devsec-body {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .devsec-image-wrap {
    aspect-ratio: 16/9;
  }
  .devsecops-headline {
    font-size: clamp(20px, 5.5vw, 28px);
    word-break: break-word;
    hyphens: manual;
  }
  /* Collapse ledger to 2 columns on mobile (hide cadence) */
  .ledger-row {
    grid-template-columns: 1.5fr 1.5fr;
  }
  .col-cadence {
    display: none;
  }
  .sec-ledger-header {
    flex-direction: column;
    gap: 4px;
  }
  .devsec-editorial {
    overflow: hidden;
    width: 100%;
  }
  .devsecops-subtext {
    font-size: 13px;
  }
}



/* ---------------- process (sticky 4-stage scroll) ---------------- */
.process-section {
  background: var(--surface);
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}


.process-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('/static/img/nemesis_logo.png');
  background-size: cover;
  background-position: center;
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] .process-bg-image {
  opacity: 0.08;
}

.process-scroll-track {
  height: 320vh;
  position: relative;
  z-index: 1;
}

.process-sticky-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 40px 0;
}

.process-sticky-viewport .wrap {
  width: 100%;
}

.process-interactive-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 72px;
  align-items: center;
  margin-top: 24px;
}

/* Orbital SVG Diagram */
.process-diagram-wrap {
  position: relative;
  width: 350px;
  height: 350px;
  margin: 0 auto;
}

.process-orbital-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.orbit-outer-guide {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}

.orbit-ticks line {
  stroke: var(--line-strong);
  stroke-width: 1;
}

.orbital-wheel {
  transform-origin: 175px 175px;
  transition: transform .85s cubic-bezier(.34, 1.25, .64, 1);
}

.orbit-track {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 4 6;
}

.orbit-progress {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-dasharray: 816;
  stroke-dashoffset: 816;
  transform-origin: 175px 175px;
  transform: rotate(-90deg);
  transition: stroke-dashoffset .4s cubic-bezier(.2, .7, .2, 1);
  filter: none;
}

.orbit-tracer {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-dasharray: 90 726;
  stroke-linecap: round;
  transform-origin: 175px 175px;
  animation: orbitSweep 8s cubic-bezier(.45, 0, .55, 1) infinite;
  pointer-events: none;
  filter: none;
  opacity: 0.85;
}

[data-theme="dark"] .orbit-tracer {
  stroke: var(--ink);
  filter: none;
}

@keyframes orbitSweep {
  0% {
    transform: rotate(0deg);
  }

  45% {
    transform: rotate(360deg);
  }

  55% {
    transform: rotate(360deg);
  }

  95% {
    transform: rotate(-180deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.node-stem {
  stroke: var(--line);
  stroke-width: 1;
  transition: stroke .35s linear, stroke-width .35s linear;
}

.node-stem.active {
  stroke: var(--ink);
  stroke-width: 1.5;
}

.hub-base {
  fill: var(--paper);
  stroke: var(--line-strong);
  stroke-width: 1;
}

.hub-ring {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
  opacity: .35;
}

.hub-inner-ring {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}

.hub-logo {
  opacity: 0.9;
  transition: opacity .3s ease;
}


.orbital-node {
  cursor: pointer;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}

.orbital-node .node-bg {
  fill: var(--paper);
  transition: fill .25s ease;
}

.orbital-node .node-outline {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
  transition: stroke .25s ease, stroke-width .25s ease;
}

.orbital-node .node-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 600;
  fill: var(--ink-45);
  text-anchor: middle;
  dominant-baseline: middle;
  transition: fill .25s ease;
}

/* Active Node: High contrast inverted lens badge — Clean Black & White */
.orbital-node.active .node-bg {
  fill: var(--ink);
}

.orbital-node.active .node-outline {
  stroke: var(--ink);
  stroke-width: 1;
  filter: none;
}

.orbital-node.active .node-label {
  fill: var(--paper);
  font-weight: 700;
}

.orbital-node.passed .node-bg {
  fill: var(--paper);
}

.orbital-node.passed .node-outline {
  stroke: var(--line-strong);
  stroke-width: 1;
}

.orbital-node.passed .node-label {
  fill: var(--ink);
}

/* Right: Bespoke Editorial Phase Display */
.process-editorial-display {
  position: relative;
  border-left: 1px solid var(--line);
  padding-left: 48px;
  display: flex;
  flex-direction: column;
}

/* Stage Tab Headers */
.stage-nav-tabs {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 28px;
}

.stage-tab {
  background: none;
  border: none;
  padding: 6px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-45);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  transition: color .2s linear;
  text-decoration: none;
}

.stage-tab .tab-num {
  font-size: 11px;
  color: var(--ink-30);
  transition: color .2s linear;
}

.stage-tab:hover {
  color: var(--ink);
}

.stage-tab.is-active {
  color: var(--ink);
  font-weight: 600;
}

.stage-tab.is-active .tab-num {
  color: var(--ink);
  font-weight: 700;
}

.stage-tab.is-active::after {
  content: '';
  position: absolute;
  bottom: -13px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
  box-shadow: none;
}

/* Phase Content */
.process-phases-track {
  position: relative;
  min-height: 280px;
}

.process-phase-card {
  display: none;
  animation: phaseFadeIn .4s cubic-bezier(.2, .7, .2, 1);
}

.process-phase-card.is-active {
  display: block;
}

@keyframes phaseFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.phase-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
}

.phase-badge {
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.phase-cadence {
  color: var(--ink-45);
  font-size: 11px;
  border: 1px solid var(--line);
  padding: 2px 8px;
}

.process-phase-card h3 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.15;
  margin-bottom: 14px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.phase-lead {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-70);
  margin-bottom: 24px;
  max-width: 640px;
}

.phase-grid-deliverables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  border-top: 1px dotted var(--line);
  padding-top: 20px;
}

.deliv-col .deliv-heading {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-45);
  margin-bottom: 12px;
}

.deliv-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
}

.deliv-col ul li {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-strong);
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.5;
}

.deliv-col ul li:first-child {
  border-top: 1px solid var(--line-strong);
}

.deliv-col ul li::before {
  display: none;
}

.deliv-note {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-70);
}

.phase {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px dotted var(--line);
  align-items: baseline;
  transition: padding-left .25s cubic-bezier(.2, .7, .2, 1);
}

.phase:last-child {
  border-bottom: 1px dotted var(--line);
}

.phase:hover {
  padding-left: 10px;
}

.phase .pn {
  font-size: 11px;
  color: var(--gold);
}

.phase h4 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 19px;
}

.phase p {
  font-size: 12.5px;
  color: var(--ink-70);
  margin-top: 4px;
  max-width: 44ch;
}

/* ---------------- work / products (editorial full-bleed cards) ---------------- */
.work {
  padding: 80px 0;
  background: var(--paper);
}

.work-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 16px;
}

.work-card {
  position: relative;
  height: 500px;
  overflow: hidden;
  border: none;
  background: var(--surface);
  box-shadow: 0 16px 44px -12px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform .65s cubic-bezier(0.19, 1, 0.22, 1), box-shadow .65s cubic-bezier(0.19, 1, 0.22, 1);
}

[data-theme="light"] .work-card {
  box-shadow: 0 16px 44px -12px rgba(0, 0, 0, 0.09);
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px -12px rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .work-card:hover {
  box-shadow: 0 24px 56px -12px rgba(0, 0, 0, 0.16);
}

/* Full Bleed Background Image */
.work-card .card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.work-card .card-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(15%) contrast(105%);
  transition: transform .8s cubic-bezier(0.19, 1, 0.22, 1), filter .7s ease;
}

.work-card:hover .card-bg-img {
  transform: scale(1.06);
  filter: grayscale(40%) brightness(0.32);
}

.work-card .card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 8, 0.95) 0%, rgba(8, 8, 8, 0.35) 45%, transparent 100%);
  transition: opacity .5s ease;
}

[data-theme="light"] .work-card .card-scrim {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.35) 45%, transparent 100%);
}

/* Bottom Tray Overlay (Smooth Slide Up to fill on Hover) */
.work-card .card-drawer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 24px 28px 24px;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.35);
  color: #f5f5f3;
  transform: translateY(calc(100% - 180px));
  transition: transform .65s cubic-bezier(0.19, 1, 0.22, 1), background .5s ease, border-color .5s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100%;
}

[data-theme="light"] .work-card .card-drawer {
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid rgba(0, 0, 0, 0.09);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.07);
  color: #0a0a0a;
}

.work-card:hover .card-drawer {
  transform: translateY(0);
  background: rgba(10, 10, 10, 0.97);
  border-top-color: transparent;
  box-shadow: none;
}

[data-theme="light"] .work-card:hover .card-drawer {
  background: rgba(255, 255, 255, 0.98);
  border-top-color: transparent;
}

/* Drawer Peek Top Content */
.drawer-peek {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.card-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  padding: 4px 10px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
}

[data-theme="light"] .card-tag {
  background: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.85);
}

.card-index {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}

[data-theme="light"] .card-index {
  color: rgba(10, 10, 10, 0.45);
}

.card-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: #ffffff;
}

[data-theme="light"] .card-title {
  color: #0a0a0a;
}

.card-summary {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
  max-width: 100%;
  letter-spacing: 0.005em;
}

[data-theme="light"] .card-summary {
  color: rgba(10, 10, 10, 0.92);
}

/* Drawer Expanded Content (Fades & slides in on hover) */
.drawer-expanded {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity .45s ease .1s, transform .55s cubic-bezier(0.19, 1, 0.22, 1) .1s;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  justify-content: space-between;
}

[data-theme="light"] .drawer-expanded {
  border-top-color: rgba(10, 10, 10, 0.08);
}

.work-card:hover .drawer-expanded {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.card-description {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .card-description {
  color: rgba(10, 10, 10, 0.85);
}

.card-specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.specs-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
}

[data-theme="light"] .specs-label {
  color: rgba(10, 10, 10, 0.45);
}

/* Unique Non-AI Geometric Dot Indicators */
.specs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .specs-list {
  color: rgba(10, 10, 10, 0.9);
}

.specs-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.specs-list li::before {
  content: '▪';
  font-size: 8px;
  color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

[data-theme="light"] .specs-list li::before {
  color: rgba(0, 0, 0, 0.45);
}

.card-meta-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}

[data-theme="light"] .card-meta-foot {
  border-top-color: rgba(10, 10, 10, 0.08);
}

.card-tech {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .card-tech {
  color: rgba(10, 10, 10, 0.5);
}

.card-action {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 600;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform .25s ease;
}

[data-theme="light"] .card-action {
  color: #0a0a0a;
}

.work-card:hover .card-action .arr {
  transform: translateX(4px);
}

/* ---------------- readouts ---------------- */
.readouts {
  padding: 64px 0;
  background: var(--surface);
}

.readouts .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.dial {
  padding: 0 26px;
  position: relative;
}

.dial+.dial {
  border-left: 1px solid var(--line);
}

.dial:first-child {
  padding-left: 0;
}

.dial svg {
  width: 88px;
  height: 52px;
  display: block;
  margin-bottom: 14px;
}

.dial .arc {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 2;
}

.dial .arc-fill {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  transition: stroke-dashoffset 1.1s cubic-bezier(.2, .7, .2, 1);
}

.dial.in .arc-fill {
  stroke-dashoffset: 0;
}

.dial .needle {
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  transform-origin: 44px 48px;
  transform: rotate(-70deg);
  transition: transform 1.1s cubic-bezier(.2, .7, .2, 1);
}

.dial.in .needle {
  transform: rotate(0deg);
}

.dial .pivot {
  fill: var(--ink);
}

.dial .label {
  font-size: 11px;
  color: var(--ink-45);
  margin-bottom: 6px;
}

.dial .value {
  font-size: 15px;
  font-weight: 600;
}

.dial .value small {
  font-weight: 400;
  color: var(--ink-45);
  font-size: 11px;
}

/* ---------------- contact ---------------- */
.contact {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
  align-items: center;
  width: 100%;
}

.contact-headline {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 52px);
  white-space: nowrap;
  line-height: 1.1;
  color: var(--ink);
  margin-top: 12px;
}

.contact .dek {
  margin-top: 20px;
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.8;
}

.contact-methods {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.contact-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 600;
}

.phone-list,
.email-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phone-item {
  font-size: 14.5px;
  color: var(--ink);
  text-decoration: none;
  transition: color .2s linear;
}

.phone-item:hover {
  color: var(--gold);
}

.email-list .email {
  font-size: 14.5px;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  text-decoration: none;
  align-self: flex-start;
  transition: color .2s linear, border-color .2s linear;
}

.email-list .email:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.africa-map-wrap {
  position: absolute;
  right: 3%;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  max-width: 45vw;
  height: auto;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  transition: opacity .25s linear;
}

.africa-map-img {
  width: 100%;
  height: auto;
  display: block;
}

.africa-map-dark {
  display: none;
}

.africa-map-light {
  display: block;
}

[data-theme="dark"] .africa-map-dark {
  display: block;
}

[data-theme="dark"] .africa-map-light {
  display: none;
}

[data-theme="dark"] .africa-map-wrap {
  opacity: 0.28;
}

form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

form h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  margin-bottom: 4px;
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--ink-45);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line-strong);
  padding: 16px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color .2s linear;
  outline: none;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--ink-70);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--ink);
}

/* form feedback alert banner */
.form-feedback {
  padding: 14px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid var(--line-strong);
  margin-bottom: 8px;
  display: none;
  transition: opacity 0.35s ease;
}

.form-feedback.is-success {
  display: block !important;
  background: rgba(201, 168, 76, 0.08);
  border-color: var(--gold);
  color: var(--ink);
}

.form-feedback.is-error {
  display: block !important;
  background: rgba(239, 68, 68, 0.08);
  border-color: #ef4444;
  color: #ef4444;
}

.btn.submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* field error state */
.field.has-error label {
  color: #ef4444 !important;
}

.field.has-error input,
.field.has-error textarea,
.field.has-error .select-trigger {
  border-color: #ef4444 !important;
  color: #ef4444;
}

.field.has-error input::placeholder,
.field.has-error textarea::placeholder {
  color: rgba(239, 68, 68, 0.45);
}

/* custom select dropdown */
.custom-select {
  position: relative;
  width: 100%;
}

.select-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  padding: 16px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14.5px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color .2s linear;
  outline: none;
}

.select-trigger:hover {
  border-color: var(--ink-70);
}

.custom-select.is-open .select-trigger,
.select-trigger:focus-visible {
  border-color: var(--ink);
}

.select-arrow {
  color: var(--ink);
  transition: transform .22s cubic-bezier(.2, .7, .2, 1);
  flex-shrink: 0;
}

.custom-select.is-open .select-arrow {
  transform: rotate(180deg);
}

.select-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  list-style: none;
  padding: 6px 0;
  margin: 0;
  z-index: 60;
  display: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .select-options {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
}

.custom-select.is-open .select-options {
  display: block;
}

.select-option {
  padding: 12px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--ink-70);
  cursor: pointer;
  border: none;
  transition: background .12s linear, color .12s linear;
}

.select-option:hover {
  background: var(--ink);
  color: var(--paper);
}

.select-option.is-selected {
  color: var(--ink);
  font-weight: 700;
}

.select-option.is-selected:hover {
  background: var(--ink);
  color: var(--paper);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.submit {
  align-self: flex-start;
  margin-top: 6px;
}

/* ---------------- footer ---------------- */
footer {
  border-top: none;
  position: relative;
}

footer a:hover {
  color: var(--ink);
}

.footer-copy {
  margin-left: 280px;
  line-height: 1.8;
}

@media (max-width: 900px) {
  .footer-copy {
    margin-left: 0;
  }

  /* Hide social buttons on mobile — they collide with footer text */
  footer > div[style*="position: absolute"][style*="top: 40px"] {
    display: none;
  }
}

/* Scroll-to-top arrow button (clearly visible at all times, highlighted on hover) */
.scroll-top-btn {
  position: absolute;
  right: 40px;
  bottom: 24px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  background: var(--surface);
  color: var(--gold);
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
  z-index: 2;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.scroll-top-btn:hover {
  background: var(--gold);
  color: var(--paper);
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.3);
}

@media (max-width: 600px) {
  .scroll-top-btn {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width:900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-right {
    align-items: stretch;
  }

  .hero-cube-scene {
    --cube-size: 170px;
    --cube-half: 85px;
    max-width: 100%;
    height: 270px;
  }

  .status {
    justify-self: start;
    max-width: 100%;
  }

  .disciplines .grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .disc {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px 24px;
  }

  .disc .num {
    font-size: 34px;
  }

  .disc:hover {
    padding-left: 24px;
  }

  .readouts .grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 32px;
  }

  .dial+.dial {
    border-left: none;
  }

  .dial {
    padding-left: 0;
  }

  .ring-area {
    grid-template-columns: 1fr;
  }

  .ring-wrap {
    margin: 0 auto;
  }

  .cards, .work-cards-grid {
    grid-template-columns: 1fr;
  }

  .work-card {
    height: 480px;
  }

  .work-card .card-drawer {
    transform: translateY(calc(100% - 186px));
    padding: 22px 22px 22px;
  }

  .sec-pillars-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding-bottom: 36px;
    margin-bottom: 36px;
  }

  .sec-ledger-wrap {
    padding: 20px 0;
    overflow-x: hidden;
  }

  .sec-ledger-table {
    width: 100%;
    min-width: unset;
  }

  .process-interactive-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .process-diagram-wrap {
    width: 260px;
    height: 260px;
  }

  .process-editorial-display {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 28px;
  }

  .stage-nav-tabs {
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .phase-grid-deliverables {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .africa-map-wrap {
    width: 320px;
    right: -60px;
    opacity: 0.18;
  }

  /* Mobile header controls */
  .desktop-theme-toggle {
    display: none !important;
  }

  .nav-toggle {
    display: flex;
  }

  .header-right {
    gap: 12px;
  }

  nav {
    position: fixed;
    top: var(--header-h, 72px);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line-strong);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 4px;
    font-size: 15px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    max-height: calc(100vh - var(--header-h, 72px));
    overflow-y: auto;
    z-index: 55;
  }

  nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  nav a {
    padding: 12px 14px;
    font-size: 14px;
    border-bottom: 1px solid var(--line);
    display: block;
    width: 100%;
  }

  nav a.active {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201, 168, 76, 0.08);
  }

  /* Mobile Theme Mode directly under the links */
  .mobile-nav-theme {
    display: block;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line-strong);
  }

  .mobile-nav-theme .theme-toggle {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 12px;
  }
}

/* ---------------- faq ---------------- */
.faq {
  padding: 90px 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.faq-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  align-items: start;
}

.faq-side-note {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-45);
  position: sticky;
  top: 100px;
}

.faq-side-note a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-col-items {
  border-top: 1px solid var(--line-strong);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  padding: 22px 0;
  cursor: pointer;
  text-align: left;
  gap: 24px;
  color: var(--ink);
  font-family: 'Instrument Serif', serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  transition: color .2s ease;
}

.faq-q:hover {
  color: var(--ink-70);
}

.faq-icon {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 300;
  color: var(--ink-45);
  flex-shrink: 0;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), color .2s ease;
  line-height: 1;
}

.faq-q[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  color: var(--ink);
}

.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s cubic-bezier(.2, .7, .2, 1);
}

.faq-a p {
  padding-bottom: 24px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-70);
  max-width: 640px;
}

@media (max-width: 720px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .faq-side-note {
    position: static;
  }
}

@media (max-width: 600px) {
  .brand {
    gap: 10px;
  }
  .brand img {
    width: 38px;
    height: 38px;
  }
  .word {
    font-size: 22px;
  }
  .head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .head h2 {
    font-size: 24px;
    margin-right: 0;
  }
  .head h2::after {
    width: calc(58% + 40px);
  }
  .head .n {
    margin-left: 0;
  }
}

/* ---------------- Work Section Platform Stats Strip (Hairline Dividers) ---------------- */
.work-header-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0 36px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.work-stats-row {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat-pill {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.stat-pill .val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
}

.stat-pill .lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-70);
}

.work-all-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.work-all-link:hover {
  color: var(--gold);
}

/* View All 8 Platforms Footer Strip */
.work-view-all-bar {
  margin-top: 36px;
  padding: 24px 0 8px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.work-view-all-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.work-view-all-text .count-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 600;
}

.work-view-all-text .view-note {
  font-size: 13.5px;
  color: var(--ink-70);
}

/* ---------------- Dedicated Case Studies Subpage (/our-work) ---------------- */
.subpage-hero {
  padding: 80px 0 54px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.subpage-breadcrumbs {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-45);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.subpage-breadcrumbs a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.subpage-breadcrumbs a:hover {
  color: var(--gold);
}

.subpage-breadcrumbs .sep {
  color: var(--line-strong);
}

.subpage-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}

.subpage-head h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.05;
  margin-bottom: 18px;
}

.subpage-head .dek {
  max-width: 60ch;
  font-size: 15.5px;
  line-height: 1.75;
}

/* Work Telemetry Banner (Refined hairline lines) */
.work-telemetry-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 40px;
}

.telemetry-item {
  background: var(--paper);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.telemetry-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.telemetry-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-70);
}

/* Case Studies Layout with Pictures */
.case-studies-section {
  padding: 80px 0;
  background: var(--paper);
}

.case-studies-list {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.case-study-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 12px 36px -12px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.case-study-card:hover {
  border-color: var(--ink-45);
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.65);
}

.study-media {
  position: relative;
  width: 100%;
  height: 250px;
  background: #08090b;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.study-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  filter: saturate(0.85) brightness(0.88);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), filter 0.65s ease;
}

.case-study-card:hover .study-img {
  transform: scale(1.03);
  filter: saturate(1) brightness(1);
}

.study-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}

.study-media-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(10, 12, 16, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--gold);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  z-index: 2;
}

.study-body {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
}

.study-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 22px;
}

.study-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-45);
}

.study-status-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border: 1px solid currentColor;
}

.status-live {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}

.status-prod {
  color: var(--ink);
  background: rgba(120, 120, 120, 0.08);
}

.status-review {
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.08);
}

.study-header h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.15;
  margin-bottom: 4px;
}

.study-subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 28px;
}

.study-grid-details {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

.study-specs-col {
  border-right: 1px solid var(--line);
  padding-right: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.spec-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.spec-k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-45);
}

.spec-v {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.4;
}

.study-narrative-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.narrative-block h3 {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 8px;
}

.narrative-block p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-70);
}

.built-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.built-list li {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-70);
  padding-left: 16px;
  position: relative;
}

.built-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 4px;
  height: 4px;
  background: var(--gold);
}

.study-stack-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 6px;
}

.stack-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-45);
}

.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.stack-pills .pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.study-action-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 6px;
}

.demo-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-45);
}

.study-nda-note {
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-70);
}

/* Subpage Call to Action */
.subpage-cta-banner {
  margin-top: 80px;
  padding: 54px 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.subpage-cta-banner h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.15;
}

.subpage-cta-banner p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-70);
  max-width: 50ch;
}

.cta-actions {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 900px) {
  .work-telemetry-banner {
    grid-template-columns: 1fr 1fr;
  }
  .study-media {
    height: 190px;
  }
  .study-body {
    padding: 28px 22px;
  }
  .study-grid-details {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .study-specs-col {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .subpage-cta-banner {
    padding: 36px 20px;
  }
}

@media (max-width: 600px) {
  .work-telemetry-banner {
    grid-template-columns: 1fr;
  }
  .study-specs-col {
    grid-template-columns: 1fr;
  }
  .work-stats-row {
    gap: 16px;
  }
}