/* ═══════════════════════════════════════════════════════
   YVB&Co — Design System
   Version 2.1 · Reformatted & Polished
   ═══════════════════════════════════════════════════════ */

/* ─── 0. Design Tokens ─── */
:root {
  --ink: #0b0d0b;
  --paper: #ffffff;
  --soft: #e3e6de;
  --rule: rgba(255, 255, 255, 0.12);
  --signal: #d0fb50;
  --signal-ink: #152000;
  --shade: #171a16;
  --brand: var(--paper);
  --bg: var(--ink);
  --mono: 'DM Mono', monospace;
  --sans: 'Manrope', Arial, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Typography Scale */
  --text-h1: clamp(42px, 7vw, 80px);
  --text-h2: clamp(32px, 5vw, 56px);
  --text-h3: clamp(20px, 3vw, 28px);
  --text-body: clamp(15px, 1.1vw, 17px);
  --text-small: clamp(13px, 0.9vw, 15px);
  --text-label: clamp(11px, 0.75vw, 13px);
  --text-display: clamp(48px, 8vw, 150px);
}

/* ─── 1. Reset & Base ─── */
* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
}

body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
  font-size: var(--text-body);
}

:root.light {
  --ink: #f2f1e9;
  --paper: #121410;
  --soft: #20221e;
  --rule: rgba(18, 20, 16, 0.12);
  --signal: #3f6104;
  --signal-ink: #ffffff;
  --shade: #e5e4dc;
  --brand: var(--paper);
  --bg: var(--ink);
}

::selection {
  background: var(--signal);
  color: var(--signal-ink);
}

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

button, input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 200;
  background: var(--signal);
  color: var(--signal-ink);
  padding: 12px 20px;
  font: 700 12px var(--sans);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

/* Focus-visible styles for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

/* ─── 2. Page Load Transition ─── */
body {
  opacity: 0;
  animation: page-enter 0.6s var(--ease-out-expo) 0.05s forwards;
}

body.navigating {
  animation: page-exit 0.3s ease forwards;
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes page-exit {
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* ─── 3. System HUD ─── */
.system-hud {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 8px 3.5vw;
  display: flex;
  gap: 24px;
  font: var(--text-label) var(--mono);
  color: var(--soft);
  pointer-events: none;
  letter-spacing: 0.08em;
}

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

.status-ok {
  color: var(--signal);
  font-weight: 600;
}

.status-val {
  color: var(--paper);
}

/* ─── 4. Atmospheric Overlays ─── */
.crt-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  background:
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.05) 50%),
    linear-gradient(90deg, rgba(255, 0, 0, 0.01), rgba(0, 255, 0, 0.005), rgba(0, 0, 255, 0.01));
  background-size: 100% 4px, 3px 100%;
  opacity: 0.5;
}

.page-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.042;
  z-index: 10;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

/* ─── 5. Custom Cursor ─── */
/* Removed per user request */

/* ─── 6. Scroll Progress ─── */
.scroll-progress {
  position: fixed;
  z-index: 24;
  right: 20px;
  top: 50%;
  height: 82px;
  width: 2px;
  background: color-mix(in srgb, var(--paper) 15%, transparent);
  transform: translateY(-50%);
  pointer-events: none;
  border-radius: 2px;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 3px;
  background: var(--signal);
  transform: scaleY(var(--scroll-progress, 0));
  transform-origin: top;
  box-shadow: 0 0 18px color-mix(in srgb, var(--signal) 70%, transparent),
              0 0 6px color-mix(in srgb, var(--signal) 40%, transparent);
  border-radius: 2px;
  margin-left: -0.5px;
}

/* ─── 7. Header ─── */
.site-header {
  position: fixed;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  width: 100%;
  height: 86px;
  padding: 30px 3.5vw 0;
  transition: background 0.3s, height 0.3s, border 0.3s;
}

.site-header.scrolled {
  height: 66px;
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 700 15px/1 var(--sans);
  letter-spacing: -0.07em;
}

.brand svg {
  width: 24px;
  fill: none;
  stroke: var(--signal);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.brand span span {
  color: var(--signal);
}

/* Desktop Navigation */
.desktop-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 28px;
  font-size: var(--text-label);
  color: var(--soft);
}

.desktop-nav a {
  position: relative;
  transition: color 0.2s;
}

.desktop-nav a:hover {
  color: var(--paper);
}

/* Active nav link indicator */
.desktop-nav a.active {
  color: var(--paper);
}

.desktop-nav a.active::after, .footer-links a.active::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--signal);
  animation: nav-active-in 0.3s var(--ease-out-expo);
}


@keyframes nav-active-in {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

.header-actions {
  margin-left: auto;
  display: flex;
  gap: 15px;
  align-items: center;
}

/* ─── 8. Buttons ─── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 23px;
  background: var(--signal);
  color: var(--signal-ink);
  padding: 16px 19px;
  border: 0;
  font-size: var(--text-label);
  font-weight: 800;
  line-height: 1;
  transition: transform 0.25s var(--ease-spring), background 0.25s, box-shadow 0.25s;
}

.button:hover {
  transform: translateY(-3px);
  background: #e0ff86;
  box-shadow: 0 8px 25px color-mix(in srgb, var(--signal) 25%, transparent);
}

.button:active {
  transform: translateY(-1px) scale(0.97);
  transition-duration: 0.08s;
}

.button i, .text-link i {
  font-style: normal;
  font-size: var(--text-small);
  transition: transform 0.25s var(--ease-spring);
  display: inline-block;
}

.button:hover i {
  transform: translate(3px, -3px);
}

.button--small {
  padding: 12px 14px;
  gap: 10px;
  font-size: var(--text-label);
}

.button--light {
  background: var(--paper);
  color: var(--ink);
  --soft: color-mix(in srgb, var(--ink) 65%, transparent);
  --rule: color-mix(in srgb, var(--ink) 12%, transparent);
}

.button--light:hover {
  background: var(--paper);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Theme toggle */
.theme-toggle {
  width: 31px;
  height: 31px;
  border: 1px solid var(--rule);
  background: transparent;
  border-radius: 50%;
  padding: 4px;
  transition: transform 0.3s var(--ease-spring), border-color 0.2s;
}

.theme-toggle:hover {
  border-color: var(--signal);
  transform: rotate(30deg);
}

.theme-toggle:active {
  transform: scale(0.9);
}

.theme-toggle span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset -6px -3px 0 var(--ink);
  transition: box-shadow 0.3s;
}

/* Menu button */
.menu-button {
  display: none;
  width: 38px;
  height: 31px;
  border: 0;
  background: transparent;
  padding: 0;
}

.menu-button span {
  display: block;
  background: var(--paper);
  height: 1px;
  width: 27px;
  margin: 7px auto;
  transition: transform 0.25s;
}

/* ─── 9. Mobile Menu ─── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 18;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 8vw 7vh;
  background: var(--ink);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.5s cubic-bezier(0.76, 0, 0.24, 1), visibility 0.5s;
  pointer-events: none;
  visibility: hidden;
}

.mobile-menu.open {
  clip-path: inset(0);
  pointer-events: auto;
  visibility: visible;
}

.mobile-menu a {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: var(--text-h2);
  font-weight: 700;
  letter-spacing: -0.07em;
  display: flex;
  justify-content: space-between;
  transition: padding-left 0.2s;
}

.mobile-menu a:hover {
  padding-left: 12px;
}

.mobile-menu i {
  color: var(--signal);
  font-style: normal;
}

.menu-note {
  margin-top: auto;
  font-size: var(--text-small);
  color: var(--soft);
}

/* ─── 10. Hero Section ─── */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 136px 5.8vw 45px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: clamp(40px, 4vw, 80px) clamp(40px, 4vw, 80px);
  mask-image: radial-gradient(ellipse at 50% 50%, #000, transparent 80%);
  animation: grid-pulse 8s ease-in-out infinite;
}

@keyframes grid-pulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.65; }
}

.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.035) 0%, transparent 65%);
  z-index: -1;
  pointer-events: none;
}

.engineering-core {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.9;
  filter: drop-shadow(0 0 20px rgba(208, 251, 80, 0.12));
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 11px;
  font: var(--text-label) var(--mono);
  letter-spacing: 0.045em;
  color: var(--soft);
  text-transform: uppercase;
  animation: hero-soft-in 0.7s 0.25s both;
}

.hero-meta span:last-child {
  margin-left: auto;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: var(--signal);
  border-radius: 50%;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--signal) 15%, transparent);
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--signal) 15%, transparent); }
  50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--signal) 8%, transparent); }
}

.hero-content {
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}


.eyebrow, .section-label {
  font: var(--text-label) var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-kicker {
  color: var(--signal);
  margin: 0 0 18px;
  animation: hero-soft-in 0.7s 0.25s both;
}

/* ─── 11. Typography ─── */
h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  max-width: 1190px;
  margin: 0 auto;
  font-size: var(--text-h1);
  font-weight: 700;
  letter-spacing: -0.092em;
  line-height: 0.82;
  text-align: center;
}

.hero h1 {
  font-size: var(--text-display);
  width: fit-content;
  margin: 0 auto;
  transform: translateX(-5vw);
}

h2 {
  font-size: var(--text-h2);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

h3 {
  font-size: var(--text-h3);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero h1 span {
  display: block;
  text-align: left;
  animation: hero-word-in 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero h1 span:first-child {
  color: transparent;
  -webkit-text-stroke: 2px var(--paper);
  transition: color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero h1:hover span:first-child {
  color: var(--paper);
}

.hero h1 span:nth-child(2) {
  animation-delay: 0.11s;
}

.hero h1 .indent {
  margin-left: 3.5em; /* Aligns roughly with the 2nd E in ENGINEER */
}

em {
  color: var(--signal);
  font-style: normal;
}

.hero h1 em {
  opacity: 0;
  animation: neon-flicker 1.5s 0.8s forwards;
}

@keyframes neon-flicker {
  0% { opacity: 0; text-shadow: none; }
  5% { opacity: 1; text-shadow: 0 0 15px var(--signal); }
  10% { opacity: 0.1; text-shadow: none; }
  15% { opacity: 1; text-shadow: 0 0 20px var(--signal); }
  25% { opacity: 0; text-shadow: none; }
  35% { opacity: 0.8; text-shadow: 0 0 10px var(--signal); }
  40% { opacity: 0.2; text-shadow: none; }
  60% { opacity: 1; text-shadow: 0 0 25px var(--signal); }
  70% { opacity: 0.5; text-shadow: 0 0 5px var(--signal); }
  100% { opacity: 1; text-shadow: 0 0 12px color-mix(in srgb, var(--signal) 40%, transparent); }
}

.hero-bottom {
  margin: 36px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  animation: hero-soft-in 0.7s 0.38s both;
}

.hero-bottom p {
  color: var(--soft);
  max-width: 285px;
  font-size: var(--text-small);
  line-height: 1.65;
  margin: 0;
}

/* Hero bottom elements */
.scroll-cue {
  position: absolute;
  bottom: 39px;
  left: 5.8vw;
  font: var(--text-label) var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--soft);
  display: flex;
  gap: 10px;
  align-items: center;
  transition: color 0.2s;
}

.scroll-cue:hover {
  color: var(--paper);
}

@keyframes pulse-line {
  0% { transform: scaleX(0); transform-origin: left; opacity: 0; }
  20% { transform: scaleX(1); opacity: 1; }
  80% { transform: scaleX(1); transform-origin: left; opacity: 1; }
  81% { transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; opacity: 0; }
}

.scroll-cue span {
  width: 33px;
  height: 1px;
  background: var(--signal);
  animation: pulse-line 2.5s infinite ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue span { animation: none; transform: scaleX(1); opacity: 1; }
}

.hero-index {
  position: absolute;
  bottom: 39px;
  right: 5.8vw;
  font: var(--text-label) var(--mono);
  color: var(--soft);
}

.hero-index span {
  margin: 0 8px;
  color: var(--signal);
}

@keyframes float-marker {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.core-label {
  position: absolute;
  font: var(--text-label) var(--mono);
  color: var(--soft);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  transition: transform 0.1s linear;
  animation: float-marker 4s infinite ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
  .core-label { animation: none; }
}

.core-label b {
  color: var(--signal);
  font-weight: 500;
}

.core-label--one {
  top: 30%;
  right: 16%;
}

.core-label--two {
  bottom: 22%;
  right: 6.5%;
  animation-delay: -2s;
}

/* ─── 12. Sections ─── */
.section {
  padding: 145px 5.8vw;
}

.section-label {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  position: relative;
}

.section-label span {
  color: var(--signal);
}

.section-label p {
  margin: 0;
  color: var(--soft);
  font-weight: 600;
  font-size: var(--text-label);
}

.section-label:after {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.25;
  position: absolute;
  top: 5px;
  left: 73px;
}

/* ─── 13. Intro Section ─── */
.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 5%;
  background: var(--paper);
  color: var(--ink);
  --soft: color-mix(in srgb, var(--ink) 65%, transparent);
  --rule: color-mix(in srgb, var(--ink) 12%, transparent);
}

.intro-copy {
  max-width: 1110px;
  margin: 0 auto;
}

.display-copy {
  font-size: var(--text-h1);
  line-height: 1.04;
  letter-spacing: -0.075em;
  font-weight: 700;
  margin: 0;
}

.accent-copy {
  color: var(--soft);
}

.intro-detail {
  border-top: 1px solid var(--rule);
  margin: 58px 0 0 auto;
  padding-top: 18px;
  max-width: 367px;
}

.intro-detail p {
  font-size: var(--text-small);
  line-height: 1.65;
  color: var(--soft);
}

.text-link {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  font-size: var(--text-label);
  font-weight: 800;
  transition: gap 0.2s;
}

.text-link:hover {
  gap: 20px;
}

.text-link i {
  color: var(--signal);
}

/* ─── 14. Social Proof / Metrics Strip ─── */
.proof-strip {
  padding: 48px 5.8vw;
  background: var(--ink);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.proof-strip-inner {
  display: flex;
  justify-content: center;
  gap: clamp(30px, 6vw, 80px);
  flex-wrap: wrap;
}

.proof-stat {
  text-align: center;
  min-width: 130px;
}

.proof-stat b {
  display: block;
  font-size: var(--text-h3);
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--paper);
  line-height: 1;
}

.proof-stat span {
  display: block;
  font: var(--text-label) var(--mono);
  color: var(--soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 10px;
}

/* ─── 15. Statement Band / Ticker ─── */
.statement-band {
  overflow: hidden;
  background: var(--signal);
  color: var(--signal-ink);
  font-weight: 800;
  font-size: var(--text-h2);
  letter-spacing: -0.07em;
  white-space: nowrap;
  line-height: 1.2;
}

.ticker {
  width: max-content;
  padding: 16px 0;
  animation: ticker 20s linear infinite;
  will-change: transform;
}

.ticker i {
  font-style: normal;
  margin: 0 24px;
  font-size: 0.7em;
}

@keyframes ticker {
  to { transform: translateX(-33.333%); }
}

/* ─── 16. Work / Projects Section ─── */
.work {
  background:
    radial-gradient(ellipse 45% 40% at 10% 20%, rgba(208, 251, 80, 0.07), transparent 68%),
    radial-gradient(ellipse 45% 42% at 92% 83%, rgba(106, 147, 95, 0.07), transparent 72%),
    var(--ink);
}

.section-heading, .services-head, .process-title, .faq {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.small-copy {
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--soft);
  margin: 0;
}

.work-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  margin-top: 70px;
}

.project {
  min-height: 520px;
  position: relative;
  border: 1px solid var(--rule);
  padding: 20px;
  overflow: hidden;
  cursor: pointer;
  background: var(--ink);
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.2, 1), border-color 0.3s;
}

.project:hover {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--signal) 30%, transparent);
}

.project:active {
  transform: translateY(-4px) scale(0.99);
}

.project-number {
  display: flex;
  justify-content: space-between;
  font: var(--text-label) var(--mono);
  color: var(--soft);
}

.project-number span {
  color: var(--signal);
}

/* Project UI mockups */
.project-ui {
  position: absolute;
  inset: 17% 7% 14%;
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.project:hover .project-ui {
  transform: scale(1.035) translateY(-6px);
}

/* ERP UI Mockup */
.erp-ui {
  background: #f4f5f0;
  color: #20221e;
  padding: 12px;
  border-radius: 4px;
  box-shadow: 0 30px 70px #0008;
}

.ui-top {
  height: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #d8dad3;
}

.ui-logo {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: #24375d;
  color: #fff;
  font: var(--text-label) Arial;
  display: grid;
  place-items: center;
}

.ui-search {
  height: 8px;
  width: 100px;
  background: #e2e4dd;
  border-radius: 3px;
  margin-left: 5px;
}

.ui-avatar {
  margin-left: auto;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #e7bd9b;
}

.erp-layout {
  display: flex;
  height: calc(100% - 25px);
}

.ui-sidebar {
  width: 17%;
  border-right: 1px solid #e0e2dd;
  padding: 15px 8px;
}

.ui-sidebar i {
  display: block;
  width: 70%;
  height: 5px;
  margin: 11px 0;
  background: #e0e2dd;
}

.ui-sidebar i:nth-child(2) {
  background: #b3ce62;
}

.erp-main {
  flex: 1;
  padding: 22px;
}

.ui-title-line {
  width: 33%;
  height: 8px;
  background: var(--shade);
  margin-bottom: 24px;
}

.ui-stats {
  display: flex;
  gap: 12px;
}

.ui-stats b {
  height: 56px;
  flex: 1;
  background: #e8ebe4;
  border-radius: 2px;
}

.ui-stats b:nth-child(1) {
  background: #d9ecac;
}

.ui-table {
  margin-top: 18px;
  border: 1px solid #e2e4dd;
  padding: 8px;
}

.ui-table i {
  display: block;
  height: 8px;
  margin: 6px;
  background: #e4e6e0;
}

.ui-table i:nth-child(2),
.ui-table i:nth-child(4) {
  width: 65%;
}

/* Dues UI Mockup */
.dues-ui {
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #2b3457, #151b32);
}

.dues-window {
  width: 72%;
  min-width: 255px;
  background: #fff;
  color: #2a3146;
  border-radius: 7px;
  box-shadow: 0 23px 43px #070b1b99;
  overflow: hidden;
  transform: rotate(-4deg);
}

.dues-head {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border-bottom: 1px solid #e8e9ed;
  font: var(--text-label) var(--sans);
}

.mini-mark {
  background: #6957d4;
  color: #fff;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  font-weight: 800;
}

.dues-head i {
  margin-left: auto;
  width: 32px;
  height: 7px;
  background: #e8e8ec;
  border-radius: 4px;
}

.dues-body {
  padding: 22px 24px;
  font-size: var(--text-label);
}

.dues-body p {
  color: #8b8f9d;
  margin-bottom: 4px;
}

.dues-body > b {
  font-size: var(--text-small);
}

.dues-progress {
  background: #f0f2f6;
  padding: 13px;
  margin: 19px 0;
  font-size: var(--text-label);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.dues-progress strong {
  color: #6957d4;
}

.dues-progress i {
  grid-column: span 2;
  height: 3px;
  background: #d9dce5;
}

.dues-progress i b {
  display: block;
  width: 67%;
  height: 100%;
  background: #6957d4;
}

.due-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #eee;
  padding: 10px 0;
}

.due-item > i {
  width: 7px;
  height: 7px;
  border: 1px solid #aeb3c1;
  border-radius: 50%;
}

.due-item em {
  margin-left: auto;
  font-size: var(--text-label);
  color: #3b9d73;
}

.due-item em.pending {
  color: #d38b4c;
}

.project-info {
  position: absolute;
  bottom: 18px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.project-info p {
  font-size: var(--text-h3);
  letter-spacing: -0.055em;
  font-weight: 700;
  margin: 0 0 5px;
}

.project-info span {
  font-size: var(--text-label);
  color: var(--soft);
}

.circle-link {
  border: 1px solid var(--rule);
  border-radius: 50%;
  width: 39px;
  height: 39px;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--text-body);
  transition: background 0.2s, border-color 0.2s;
}

.circle-link:hover {
  background: var(--signal);
  color: var(--signal-ink);
  border-color: var(--signal);
}

/* ─── 17. Services Section ─── */
.services {
  background: var(--paper);
  color: var(--ink);
  --soft: color-mix(in srgb, var(--ink) 65%, transparent);
  --rule: color-mix(in srgb, var(--ink) 12%, transparent);
}

.services-list {
  margin-top: 95px;
  border-top: 1px solid var(--rule);
}

.service-row {
  display: grid;
  grid-template-columns: 8% 1.55fr 0.95fr 40px;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  padding: 27px 0;
  transition: padding 0.3s, color 0.3s;
}

.service-row:hover {
  padding-left: 15px;
  color: var(--signal);
}

.service-row > span {
  font: var(--text-label) var(--mono);
  color: var(--soft);
}

.service-row h2 {
  margin: 0;
  font-size: var(--text-h2);
  letter-spacing: -0.07em;
}

.service-row h2 em {
  color: var(--soft);
}

.service-row p {
  color: var(--soft);
  font-size: var(--text-label);
  line-height: 1.6;
  margin: 0;
}

.service-row > i {
  font-style: normal;
  color: var(--signal);
  font-size: var(--text-h3);
  transition: transform 0.2s;
}

.service-row:hover > i {
  transform: translate(3px, -3px);
}

/* ─── 18. Builder Section ─── */
.builder {
  min-height: 780px;
  position: relative;
  overflow: hidden;
  padding: 120px 5.8vw;
  background: radial-gradient(circle at 72% 35%, rgba(208, 251, 80, 0.085), transparent 28%), var(--ink);
  display: grid;
  place-items: center;
}

.builder-backdrop {
  position: absolute;
  inset: 0;
}

.builder-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#fff1 1px, transparent 1px),
    linear-gradient(90deg, #fff1 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, #000 0, transparent 67%);
}

.orb {
  position: absolute;
  border: 1px solid #d0fb5066;
  border-radius: 50%;
}

.orb--one {
  width: 540px;
  height: 540px;
  left: 5%;
  top: 18%;
}

.orb--two {
  width: 870px;
  height: 870px;
  right: -10%;
  top: -12%;
  border-color: #d0fb502e;
}

.builder-content {
  position: relative;
  width: min(100%, 920px);
}

.builder h2,
.unicorn h2,
.process h2,
.faq h2,
.contact h2 {
  font-size: var(--text-h1);
  line-height: 0.94;
  letter-spacing: -0.085em;
  margin: 20px 0;
}

.builder-lede {
  max-width: 330px;
  color: var(--soft);
  font-size: var(--text-small);
  line-height: 1.6;
}

.builder-form {
  margin-top: 42px;
}

.input-wrapper {
  border-bottom: 1px solid #778069;
  position: relative;
  margin-bottom: 24px;
}

.input-wrapper textarea {
  width: 100%;
  color: var(--paper);
  border: 0;
  background: transparent;
  padding: 16px 0;
  font-size: clamp(16px, 2vw, 25px);
  font-family: var(--sans);
  outline: none;
  letter-spacing: -0.04em;
  resize: vertical;
  min-height: 48px;
}

.input-wrapper textarea::placeholder {
  color: #686d65;
}

.word-counter {
  position: absolute;
  right: 0;
  bottom: 8px;
  font: var(--text-label) var(--mono);
  color: #686d65;
}

.copilot-chat {
  margin-top: 42px;
  background: color-mix(in srgb, var(--paper) 2%, transparent);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}

.chat-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-small);
  font-weight: 700;
  color: var(--paper);
}

.chat-messages {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-height: 400px;
  overflow-y: auto;
}

.message {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}

.message.user {
  align-self: flex-end;
}

.message.ai {
  align-self: flex-start;
}

.message .text {
  padding: 16px;
  border-radius: 12px;
  font-size: var(--text-small);
  line-height: 1.6;
}

.message.user .text {
  background: var(--paper);
  color: var(--ink);
  --soft: color-mix(in srgb, var(--ink) 65%, transparent);
  --rule: color-mix(in srgb, var(--ink) 12%, transparent);
  border-bottom-right-radius: 4px;
}

.message.ai .text {
  background: color-mix(in srgb, var(--paper) 6%, transparent);
  color: var(--paper);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--rule);
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 8px 0;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background: var(--soft);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out both;
}
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

.chat-input-form {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--rule);
  background: color-mix(in srgb, var(--bg) 50%, transparent);
}

.chat-input-form input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--paper);
  font: var(--text-small) var(--sans);
  outline: none;
}

.chat-input-form input::placeholder {
  color: var(--soft);
}

.chat-input-form button {
  background: var(--signal);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  transition: opacity 0.2s;
}

.chat-input-form button:hover {
  opacity: 0.8;
}

.chat-input-form button svg {
  width: 16px;
  height: 16px;
}

/* Process map */
.process-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-top: 75px;
}

.map-line {
  position: absolute;
  top: 5px;
  left: 0;
  width: 100%;
  height: 1px;
  background: #727969;
}

.map-step {
  position: relative;
  font: var(--text-label) var(--mono);
  color: #82887b;
  transition: color 0.3s;
}

.map-step b {
  display: block;
  width: 11px;
  height: 11px;
  background: #727969;
  border-radius: 50%;
  margin-bottom: 12px;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.map-step.active {
  color: var(--paper);
}

.map-step.active b {
  background: var(--signal);
  transform: scale(1.35);
  box-shadow: 0 0 0 6px #d0fb5022;
}

.builder-status {
  margin: 30px 0 0;
  font: var(--text-label) var(--mono);
  color: var(--signal);
  min-height: 18px;
}

/* ─── 19. Unicorn / Products Section ─── */
.unicorn {
  background:
    radial-gradient(ellipse 46% 65% at 85% 34%, rgba(208, 251, 80, 0.08), transparent 70%),
    var(--ink);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10%;
  align-items: center;
  min-height: 760px;
}

.product-tag {
  font: var(--text-label) var(--mono);
  color: var(--signal);
  margin: 54px 0 0;
}

.unicorn-copy > p:not(.product-tag) {
  color: var(--soft);
  max-width: 320px;
  line-height: 1.7;
  font-size: var(--text-small);
}

.unicorn-visual {
  background: #d5ff58;
  min-height: 430px;
  display: grid;
  place-items: center;
  padding: 30px;
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring);
}

.unicorn-visual:hover {
  transform: scale(1.02);
}

.unicorn-card {
  position: relative;
  width: min(100%, 510px);
  height: 315px;
  background: #f9faef;
  color: #15170f;
  border-radius: 8px;
  box-shadow: 16px 17px 0 #9cc435;
  overflow: hidden;
}

.unicorn-nav {
  height: 48px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid #dee2d0;
  font-size: var(--text-label);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.unicorn-nav i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c9cdbd;
}

.unicorn-nav i:first-of-type {
  margin-left: auto;
}

.unicorn-inner {
  padding: 47px 45px;
}

.file-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 9px;
  background: #d5ff58;
  font-size: var(--text-h3);
  font-weight: 800;
}

.unicorn h3 {
  font-size: var(--text-h3);
  line-height: 0.98;
  letter-spacing: -0.07em;
  margin: 20px 0;
}

.unicorn h3 em {
  color: #879e31;
}

.unicorn-actions {
  display: flex;
  gap: 7px;
}

.unicorn-actions b {
  font-size: var(--text-label);
  padding: 7px 8px;
  border: 1px solid #d6dacd;
  border-radius: 99px;
  transition: background 0.2s;
}

.unicorn-actions b:hover {
  background: #e8ecde;
}

.unicorn-stamp {
  position: absolute;
  right: -15px;
  bottom: -45px;
  font-size: var(--text-display);
  line-height: 1;
  font-weight: 800;
  color: #e9ecd9;
  letter-spacing: -0.15em;
}

/* ─── 20. Process Section ─── */
.process {
}

.process-title {
  align-items: flex-start;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 80px;
  border-top: 1px solid var(--rule);
}

.process-card {
  min-height: 265px;
  padding: 20px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  transition: background 0.3s;
}

.process-card:hover {
  background: color-mix(in srgb, var(--ink) 4%, transparent);
}

.process-card:first-child {
  padding-left: 0;
}

.process-card:last-child {
  border-right: 0;
}

.process-card span {
  font: var(--text-label) var(--mono);
  color: #8d9189;
}

.process-card h3 {
  font-size: var(--text-h3);
  letter-spacing: -0.06em;
  margin: auto 0 12px;
}

.process-card p {
  font-size: var(--text-label);
  line-height: 1.55;
  color: var(--soft);
  margin: 0;
  max-width: 190px;
}

/* ─── 21. FAQ Section ─── */
.faq {
  background: var(--paper);
  color: var(--ink);
  --soft: color-mix(in srgb, var(--ink) 65%, transparent);
  --rule: color-mix(in srgb, var(--ink) 12%, transparent);
  padding-top: 0;
}

.faq-list {
  width: min(100%, 620px);
  border-top: 1px solid var(--rule);
}

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

.faq summary {
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: var(--text-small);
  transition: color 0.2s;
}

.faq summary:hover {
  color: var(--signal);
}

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

.faq summary i {
  font-style: normal;
  color: var(--signal);
  font-size: var(--text-h3);
  transition: transform 0.3s var(--ease-spring);
}

.faq details[open] summary i {
  transform: rotate(45deg);
}

.faq details p {
  font-size: var(--text-small);
  line-height: 1.65;
  color: var(--soft);
  margin: 0 30px 22px 0;
}

/* ─── 22. Contact Section ─── */
.contact {
  position: relative;
  min-height: 770px;
  overflow: hidden;
  padding: 118px 14.3vw 62px;
  background: var(--signal);
  color: var(--signal-ink);
  display: flex;
  flex-direction: column;
}

.contact:after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#15200014 1px, transparent 1px),
    linear-gradient(90deg, #15200014 1px, transparent 1px);
  background-size: 45px 45px;
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}

.contact-orbit {
  position: absolute;
  width: 700px;
  height: 700px;
  border: 1px solid #15200050;
  border-radius: 50%;
  right: -110px;
  top: -290px;
}

.contact-orbit:before,
.contact-orbit:after {
  content: "";
  position: absolute;
  border: 1px solid #15200030;
  border-radius: 50%;
  inset: 90px;
}

.contact-orbit:after {
  inset: 180px;
}

.contact-content, .contact-form {
  position: relative;
  z-index: 1;
}
.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
}

.contact h2 {
  margin: 22px 0 20px;
}

.contact h2 em {
  color: var(--signal-ink);
}

.contact-content > p:not(.eyebrow) {
  max-width: 350px;
  font-size: var(--text-small);
  line-height: 1.65;
  margin-bottom: 0;
}

.contact-form {
  width: min(100%, 650px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 18px;
  margin: 36px auto 38px;
}

.contact-form > div {
  border-bottom: 1px solid #15200069;
  padding-bottom: 7px;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font: var(--text-label) var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block;
  width: 100%;
  color: var(--signal-ink);
  background: transparent;
  border: 0;
  padding: 4px 0;
  outline: 0;
  font: 600 13px var(--sans);
  appearance: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--signal-ink);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--signal-ink); opacity: 0.6;
}

.contact-form select {
  cursor: pointer;
}

.contact-form textarea {
  height: 42px;
  resize: vertical;
}

.contact-form .form-description {
  grid-column: span 2;
}

.contact-form .button {
  justify-self: start;
  margin-top: 6px;
}

.form-status {
  align-self: center;
  margin: 0;
  font: var(--text-label) var(--mono);
  line-height: 1.5;
}

.contact-spec {
  position: relative;
  z-index: 1;
  margin-top: auto;
  border-top: 1px solid #15200050;
  padding-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  font: var(--text-label) var(--mono);
  line-height: 1.5;
}

.contact-spec span:last-child {
  text-align: right;
}

/* ─── 23. Footer ─── */
.footer {
  background: var(--ink);
  padding: 0;
  color: var(--soft);
  font-size: var(--text-label);
  border-top: 1px solid var(--rule);
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--signal) 30%, transparent), transparent);
}

.footer .brand {
  color: var(--paper);
}

.footer a {
  transition: color 0.2s;
}

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

.footer-top {
  padding: 40px 5.8vw 0;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-top p {
  margin: 0;
  color: var(--soft);
  font-size: var(--text-label);
}

.footer-nav {
  padding: 28px 5.8vw;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  align-items: start;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: var(--text-label);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}
.footer-contact span {
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--soft);
}
.footer-contact a {
  font-family: var(--mono);
  font-size: var(--text-label);
  color: var(--signal);
}
.footer-contact a:hover {
  color: var(--paper);
}

.footer-social {
  display: flex;
  gap: 14px;
  align-items: center;
}
.footer-social a {
  width: 22px;
  height: 22px;
  color: var(--soft);
  transition: color .2s, transform .2s;
}
.footer-social a:hover {
  color: var(--signal);
  transform: translateY(-2px);
}
.footer-social svg {
  width: 100%;
  height: 100%;
}

.footer-bottom {
  padding: 18px 5.8vw;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-label);
  color: color-mix(in srgb, var(--soft) 60%, transparent);
}

/* ─── Knowledge Coming Soon ─── */
.knowledge-coming-soon {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.coming-soon-block {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  padding: 60px 0;
}
.coming-soon-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 28px;
  color: var(--soft);
}
.coming-soon-icon svg {
  width: 100%;
  height: 100%;
}
.coming-soon-block h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
}
.coming-soon-block p {
  color: var(--soft);
  font-size: var(--text-small);
  line-height: 1.65;
  max-width: 400px;
  margin: 0 auto;
}

/* ─── Process Lede ─── */
.process-lede {
  color: var(--soft);
  font-size: var(--text-small);
  line-height: 1.65;
  max-width: 480px;
  margin-top: 12px;
}


/* ─── 24. Case Study Dialog ─── */
.case-dialog {
  width: min(100% - 32px, 1040px);
  padding: 0;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 30px 100px #000a;
  overflow: hidden;
}

.case-dialog::backdrop,
.demo-dialog::backdrop {
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(9px);
}

.dialog-close {
  position: absolute;
  z-index: 2;
  right: 18px;
  top: 15px;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  border: 1px solid #ffffff44;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--text-h3);
  line-height: 1;
  transition: background 0.2s, border-color 0.2s;
}

.dialog-close:hover {
  background: var(--signal);
  color: var(--signal-ink);
  border-color: var(--signal);
}

.dialog-hero {
  min-height: 300px;
  padding: 55px 7%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: radial-gradient(circle at 75% 20%, var(--case-color), transparent 35%), #121711;
}

.dialog-hero p {
  font: var(--text-label) var(--mono);
  color: var(--signal);
}

.dialog-hero h2 {
  font-size: var(--text-h1);
  line-height: 0.9;
  letter-spacing: -0.08em;
  margin: 0;
  max-width: 700px;
}

.dialog-body {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
  padding: 45px 7% 55px;
}

.dialog-block {
  border-top: 1px solid #ffffff25;
  padding-top: 12px;
}

.dialog-block span {
  font: var(--text-label) var(--mono);
  color: var(--signal);
}

.dialog-block p {
  font-size: var(--text-small);
  line-height: 1.65;
  color: var(--soft);
  margin: 14px 0 0;
}

.dialog-tech {
  grid-column: span 2;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dialog-tech b {
  border: 1px solid #ffffff34;
  border-radius: 99px;
  font: var(--text-label) var(--mono);
  padding: 8px 10px;
  color: var(--soft);
}

/* Unicorn detail grid (moved from inline styles) */
.unicorn-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.detail-card {
  border: 1px solid var(--rule);
  padding: 15px;
  border-radius: 4px;
  transition: border-color 0.2s;
}

.detail-card:hover {
  border-color: color-mix(in srgb, var(--signal) 50%, transparent);
}

.detail-card b {
  display: block;
  color: var(--signal);
  margin-bottom: 8px;
}

.detail-card p {
  font-size: var(--text-label);
  color: var(--soft);
  margin: 0;
}

/* ─── 25. Demo Dialog ─── */
.demo-dialog {
  width: min(100% - 32px, 1050px);
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  --soft: color-mix(in srgb, var(--ink) 65%, transparent);
  --rule: color-mix(in srgb, var(--ink) 12%, transparent);
  box-shadow: 0 30px 100px #000a;
  grid-template-columns: 0.8fr 1.2fr;
  overflow: hidden;
}

.demo-dialog[open] {
  display: grid;
}

.demo-dialog .dialog-close {
  background: var(--ink);
  border-color: transparent;
}

.demo-intro {
  min-height: 580px;
  background: var(--ink);
  color: var(--paper);
  padding: 62px 44px 42px;
  display: flex;
  flex-direction: column;
}

.demo-intro .eyebrow {
  color: var(--signal);
}

.demo-intro h2 {
  font-size: var(--text-h1);
  line-height: 0.9;
  letter-spacing: -0.085em;
  margin: 27px 0 21px;
}

.demo-intro h2 em {
  color: var(--signal);
}

.demo-intro > p:not(.eyebrow) {
  max-width: 260px;
  color: var(--soft);
  font-size: var(--text-small);
  line-height: 1.65;
}

.demo-points {
  padding: 0;
  margin: auto 0 0;
  list-style: none;
  border-top: 1px solid #ffffff28;
}

.demo-points li {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid #ffffff28;
  padding: 11px 0;
  font-size: var(--text-label);
  line-height: 1.45;
}

.demo-points b {
  color: var(--signal);
  font: var(--text-label) var(--mono);
}

.demo-form {
  padding: 62px 48px 42px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px 20px;
  align-content: center;
}

.demo-form > div {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
}

.demo-form label {
  display: block;
  margin-bottom: 7px;
  color: var(--soft);
  font: var(--text-label) var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-form input,
.demo-form select,
.demo-form textarea {
  display: block;
  width: 100%;
  color: var(--ink);
  background: transparent;
  border: 0;
  padding: 0;
  outline: 0;
  font: 600 13px var(--sans);
  appearance: none;
}

.demo-form textarea {
  height: 50px;
  resize: vertical;
}

.demo-form input::placeholder,
.demo-form textarea::placeholder {
  color: var(--soft);
}

.demo-description {
  grid-column: span 2;
}

.demo-form .button {
  justify-self: start;
  align-self: center;
}

.demo-status {
  align-self: center;
  margin: 0;
  color: var(--signal);
  font: var(--text-label) var(--mono);
  line-height: 1.5;
}

/* ─── 26. Reveal Animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── 27. About Section (company.html) ─── */
.about {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.about:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49.95%, rgba(208, 251, 80, 0.11) 50%, transparent 50.05%),
    repeating-linear-gradient(0deg, transparent 0 69px, rgba(238, 244, 226, 0.045) 70px);
  mask-image: linear-gradient(100deg, transparent 0, #000 22%, #000 78%, transparent 100%);
}

.about-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 18% 1fr 190px;
  gap: 5%;
}

.about-main {
  max-width: 820px;
}

.about-display {
  font-size: var(--text-h1);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0;
}

.about-copy {
  max-width: 440px;
  margin: 45px 0 0;
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--soft);
}

.about-signals {
  margin-top: 37px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.about-signals span {
  font: var(--text-label) var(--mono);
  padding: 8px 12px;
  border: 1px solid var(--rule);
  color: var(--soft);
  transition: border-color 0.2s;
}

.about-signals span:hover {
  border-color: var(--signal);
}

.about-metric {
  align-self: end;
  border-top: 1px solid rgba(241, 241, 234, 0.22);
  padding-top: 12px;
}

.about-metric > span {
  font: var(--text-label) var(--mono);
  color: var(--signal);
}

.about-metric b {
  display: block;
  font-size: var(--text-small);
  margin: 48px 0 8px;
  letter-spacing: 0.04em;
}

.about-metric p {
  font-size: var(--text-label);
  line-height: 1.55;
  color: var(--soft);
  margin: 0;
}

/* ─── 28. Team Section (company.html) ─── */
.team {
  background: var(--paper);
  color: var(--ink);
  --soft: color-mix(in srgb, var(--ink) 65%, transparent);
  --rule: color-mix(in srgb, var(--ink) 12%, transparent);
}

.team-heading {
  display: grid;
  grid-template-columns: 18% 1fr;
  gap: 5%;
  align-items: start;
}

.team-heading h2 {
  font-size: var(--text-h1);
  letter-spacing: -0.087em;
  line-height: 0.9;
  margin: 0;
}

.team-heading > div:last-child > p {
  max-width: 330px;
  margin: 25px 0 0;
  color: var(--soft);
  font-size: var(--text-small);
  line-height: 1.65;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 76px;
}

.member-card {
  min-height: 353px;
  position: relative;
  overflow: hidden;
  padding: 14px;
  background: transparent;
  transform-style: preserve-3d;
  transition: transform 0.28s ease;
}

.member-card:hover {
}

.member-portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 0.85;
  overflow: hidden;
  border-radius: 4px;
  background: transparent;
  border: none;
  display: block;
  isolation: isolate;
}

.member-portrait img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: bottom;
}

.member-portrait:before,
.member-portrait:after {
  display: none;
}

.member-portrait span {
  font: var(--text-label)/1.45 var(--mono);
  letter-spacing: 0.05em;
  color: var(--soft);
}

.member-portrait b {
  font-size: clamp(60px, 8vw, 90px);
  line-height: 0.8;
  letter-spacing: -0.15em;
  color: var(--paper);
  filter: drop-shadow(0 4px 16px rgba(208, 251, 80, 0.1));
  transition: transform 0.3s ease;
}

.member-portrait i {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 8px;
  height: 8px;
  background: var(--signal);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(208, 251, 80, 0.25);
}

.member-meta {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 8px;
  margin-top: 16px;
  align-items: start;
}

.member-meta > span {
  font: var(--text-label) var(--mono);
  color: var(--soft);
  padding-top: 5px;
}

.member-meta h3 {
  font-size: var(--text-body);
  letter-spacing: -0.06em;
  color: inherit;
  margin: 0;
}

.member-meta p {
  grid-column: 2;
  font-size: var(--text-label);
  opacity: 0.8;
  color: inherit;
  margin: -4px 0 0;
}

.member-desc {
  font-size: 14px !important;
  margin-top: 12px !important;
  line-height: 1.5 !important;
  opacity: 0.7 !important;
  color: inherit !important;
}

/* Portrait color variations removed for dark theme consistency */

/* Role tooltip */
.role-tooltip {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--signal);
  color: var(--signal-ink);
  font: var(--text-label) var(--mono);
  padding: 4px 8px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 10;
  animation: fade-in 0.2s ease;
}

/* ─── 29. Careers Section (careers.html) ─── */
.careers {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8%;
}

.careers:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 17% 24%, rgba(208, 251, 80, 0.13), transparent 23%),
    linear-gradient(90deg, rgba(241, 241, 234, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(241, 241, 234, 0.045) 1px, transparent 1px);
  background-size: auto, 70px 70px, 70px 70px;
  mask-image: linear-gradient(90deg, #000 0, transparent 86%);
}

.careers-heading, .career-form {
  position: relative;
  z-index: 1;
}

.careers-heading h2 {
  font-size: var(--text-h1);
  letter-spacing: -0.09em;
  line-height: 0.9;
  margin: 38px 0 23px;
}

.careers-heading > p {
  max-width: 340px;
  color: var(--soft);
  font-size: var(--text-small);
  line-height: 1.7;
  margin: 0;
}

.careers-art {
  position: absolute;
  right: -5vw;
  top: -125px;
  width: 52vw;
  height: 600px;
  color: rgba(208, 251, 80, 0.06);
  font-size: clamp(160px, 26vw, 420px);
  font-weight: 800;
  letter-spacing: -0.14em;
  line-height: 1;
  pointer-events: none;
}

.careers-art i {
  position: absolute;
  left: 8%;
  top: 52%;
  width: 75%;
  height: 1px;
  background: var(--signal);
  transform: rotate(-25deg);
  opacity: 0.55;
}

.careers-art i:nth-child(3) {
  top: 69%;
  left: 16%;
  opacity: 0.22;
  transform: rotate(25deg);
}

.careers-art i:nth-child(4) {
  top: 83%;
  left: -7%;
  opacity: 0.28;
  transform: rotate(-5deg);
}

.career-form {
  align-self: end;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 20px;
  padding: 34px 0 17px;
  border-top: 1px solid rgba(241, 241, 234, 0.22);
}

.career-form > div {
  border-bottom: 1px solid rgba(241, 241, 234, 0.22);
  padding-bottom: 9px;
}

.career-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--soft);
  font: var(--text-label) var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.career-form input,
.career-form select,
.career-form textarea {
  width: 100%;
  display: block;
  border: 0;
  background: transparent;
  color: var(--paper);
  outline: 0;
  padding: 0;
  font: 600 13px var(--sans);
  appearance: none;
}

.career-form input::placeholder,
.career-form textarea::placeholder {
  color: var(--soft);
}

.career-form textarea {
  height: 48px;
  resize: vertical;
}

.career-note {
  grid-column: span 2;
}

.career-form .button {
  justify-self: start;
}

.career-status {
  align-self: center;
  margin: 0;
  color: var(--signal);
  font: var(--text-label)/1.5 var(--mono);
}

/* ─── 30. Studio Logs (careers.html) ─── */
.studio-logs {
  margin: 40px 0;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: var(--text-label);
  color: var(--soft);
}

.logs-header {
  padding: 8px 12px;
  background: var(--rule);
  color: var(--paper);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--signal);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.logs-container {
  padding: 12px;
  height: 180px;
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.log-entry {
  opacity: 0;
  animation: log-in 0.3s ease forwards;
  white-space: nowrap;
}

.log-entry span {
  color: var(--signal);
  margin-right: 8px;
}

/* ─── 31. Keyframe Animations ─── */
@keyframes hero-word-in {
  from {
    opacity: 0;
    transform: translateY(65px) skewY(5deg);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) skewY(0);
    filter: blur(0);
  }
}

@keyframes hero-soft-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes portrait-orbit {
  to { transform: rotate(360deg); }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes log-in {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}



/* ─── 32. Custom Cursor — Fine pointer ─── */
@media (pointer: fine) {
  .member-card:hover .member-portrait b { transform: translateZ(18px) translateY(-3px); }
  .member-portrait b { transition: transform 0.3s ease; }
}

/* Applied by JS after custom cursor is confirmed working */
/* Removed per user request */

/* ─── 33. Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .engineering-core { display: none; }
  body { opacity: 1; animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ─── 34. Reduced Transparency ─── */
@media (prefers-reduced-transparency: reduce) {
  .crt-overlay { display: none; }
  .page-noise { display: none; }
  .site-header.scrolled { background: var(--ink); backdrop-filter: none; }
  .case-dialog::backdrop, .demo-dialog::backdrop { backdrop-filter: none; }
}

/* ─── 35. Responsive — Mid-width ─── */
@media (max-width: 1000px) {
  .desktop-nav { gap: 16px; font-size: var(--text-label); }
  .about-grid, .team-heading { grid-template-columns: 15% 1fr; }
  .about-metric { grid-column: 2; max-width: 230px; }
  .careers { grid-template-columns: 1fr; gap: 54px; }
  .career-form { max-width: 650px; }
  .careers-art { right: -17vw; top: 40px; opacity: 0.55; }
}

/* ─── 36. Responsive — Mobile ─── */
@media (max-width: 800px) {
  .site-header { height: 70px; padding: 0 6vw; }
  .desktop-nav, .header-actions .button { display: none; }
  .menu-button { display: block; }

  .scroll-progress { right: 10px; height: 45px; top: 72px; transform: none; }

  .hero {
    padding: 104px 6vw 32px;
    background: radial-gradient(ellipse 75% 40% at 60% 37%, rgba(208, 251, 80, 0.15), transparent 70%), var(--ink);
  }
  .hero:before { background-size: 43px 43px; opacity: 0.26; }
  .hero-meta span:last-child { display: none; }
  .hero-content { margin: auto; }
  .hero h1 { transform: none; }
  .hero h1 span:first-child { -webkit-text-stroke: 1px var(--paper); }
  .hero h1 .indent { margin-left: 0; }
  .hero-bottom { margin: 28px auto 0; }
  
  .scroll-cue { bottom: 24px; left: 6vw; }
  .hero-index { bottom: 25px; right: 6vw; }
  .core-label--one { right: 7%; top: 23%; }
  .core-label--two { display: none; }

  .section { padding: 88px 6vw; }
  .intro { display: block; }
  .intro .section-label { margin-bottom: 55px; }
  .intro-detail { margin-left: 0; margin-top: 40px; }

  .work-grid, .unicorn { grid-template-columns: 1fr; }
  .work-grid { margin-top: 40px; }
  .project { min-height: 430px; }
  .project--dues { min-height: 390px; }

  .services-head, .process-title, .faq { display: block; }
  .services-head .small-copy { margin-top: 45px; }
  .services-list { margin-top: 55px; }
  .service-row { grid-template-columns: 28px 1fr 25px; padding: 22px 0; }
  .service-row p { display: none; }

  .builder { min-height: 710px; padding: 90px 6vw; }
  .builder-form { display: block; border: 0; }
  .builder-form input { display: block; width: 100%; border-bottom: 1px solid #778069; margin-bottom: 16px; }
  .builder-form .button { width: 100%; }

  .process-map { grid-template-columns: repeat(3, 1fr); row-gap: 28px; margin-top: 55px; }
  .map-line { display: none; }

  .unicorn { gap: 40px; min-height: 0; }
  .unicorn-visual { min-height: 350px; padding: 20px; }
  .unicorn-card { height: 275px; }
  .unicorn-inner { padding: 34px 28px; }

  .process-grid { grid-template-columns: repeat(2, 1fr); margin-top: 55px; }
  .process-card:nth-child(2) { border-right: 0; }
  .process-card { min-height: 210px; padding-left: 15px; }
  .process-card:nth-child(3) { padding-left: 0; }

  .faq-title { margin-bottom: 50px; }

  .contact { padding: 90px 6vw 35px; min-height: 690px; }
  .contact-form { grid-template-columns: 1fr; margin: 29px 0 34px; }
  .contact-form .form-description { grid-column: span 1; }
  .contact-form .button { width: 100%; }
  .form-status { min-height: 20px; }
  .contact-spec { grid-template-columns: 1fr 1fr; gap: 17px; }
  .contact-spec span:last-child { grid-column: span 2; text-align: left; }

  .footer-nav { grid-template-columns: 1fr; gap: 20px; }
  .footer-links { gap: 12px; }
  .footer-contact { text-align: left; }
  .footer-bottom { flex-direction: column; gap: 4px; align-items: flex-start; }

  .dialog-body { display: block; padding: 32px 7%; }
  .dialog-block { margin-bottom: 27px; }
  .dialog-tech { margin-bottom: 0; }
  .dialog-tech b { font-size: var(--text-label); }

  .demo-dialog[open] { display: block; max-height: calc(100dvh - 24px); overflow: auto; }
  .demo-intro { min-height: 0; padding: 55px 25px 29px; }
  .demo-intro h2 { font-size: 12vw; }
  .demo-points { margin-top: 32px; }
  .demo-form { display: grid; grid-template-columns: 1fr; padding: 34px 25px; gap: 22px; }
  .demo-description { grid-column: span 1; }
  .demo-form .button { width: 100%; }
  .demo-status { min-height: 20px; }

  .theme-toggle { margin-left: auto; }

  .about-grid, .team-heading { display: flex; flex-direction: column; align-items: center; }
  .about .section-label, .team-heading .section-label { margin-bottom: 48px; }
  .about-metric { max-width: 260px; margin: 55px 0 0; }
  .about-metric b { margin-top: 26px; }

  .team-grid { grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
  .member-card { min-height: 274px; padding: 10px; }
  .member-portrait { height: auto; padding: 0; }
  .member-portrait b { font-size: var(--text-h2); }
  .member-portrait span { font-size: var(--text-label); }
  .member-meta { margin-top: 12px; }
  .member-meta h3 { font-size: var(--text-small); }

  .careers { min-height: 0; display: block; padding-top: 90px; padding-bottom: 85px; }
  .careers-heading { max-width: 500px; }
  .careers-art { width: 100vw; height: 350px; right: -39vw; top: 92px; font-size: var(--text-display); }
  .career-form { display: grid; grid-template-columns: 1fr; margin-top: 54px; gap: 21px; padding-bottom: 0; }
  .career-note { grid-column: span 1; }
  .career-form .button { width: 100%; }
  .career-status { min-height: 18px; }

  .proof-strip-inner { gap: 24px; }
  .proof-stat { min-width: 100px; }
}

/* ─── 37. Responsive — Small ─── */
@media (max-width: 460px) {
  h1 { font-size: 15.5vw; }
  .hero-bottom p { max-width: 265px; }
  .project-ui { inset: 20% 5% 17%; }
  .project-info { left: 16px; right: 16px; bottom: 15px; }
  .project-info p { font-size: var(--text-body); }
  .project-info span { font-size: var(--text-label); max-width: 230px; display: block; }
  .erp-main { padding: 15px; }
  .ui-sidebar { padding: 10px 4px; }
  .dues-window { min-width: 0; width: 88%; }
  .unicorn-actions b:nth-child(3) { display: none; }
  .display-copy { font-size: var(--text-h2); }
  .contact h2 { font-size: 14vw; }
  .team-grid { grid-template-columns: 1fr; }
  .member-card { min-height: 257px; }
  .member-portrait { height: auto; }
  .about-display { font-size: 12.5vw; }
  .careers-heading h2 { font-size: 13.5vw; }
}

/* ═══════════════════════════════════════════════════
   17. SKIP LINK
   ═══════════════════════════════════════════════════ */
.skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 99999;
  background: var(--signal);
  color: var(--ink);
  padding: 10px 20px;
  font-family: var(--mono);
  font-size: var(--text-small);
  border-radius: 0 0 6px 6px;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus {
  top: 0;
}

/* ═══════════════════════════════════════════════════
   18. ACTIVE NAV STATE
   ═══════════════════════════════════════════════════ */
.desktop-nav a.active {
  color: var(--signal);
  position: relative;
}
.desktop-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--signal);
  border-radius: 1px;
}

/* ═══════════════════════════════════════════════════
   19. CASE STUDY SECTIONS (work.html)
   ═══════════════════════════════════════════════════ */
.case-study {
  padding: 100px 5.8vw;
  border-top: 1px solid var(--rule);
}
.case-study-header {
  margin-bottom: 60px;
}
.case-study-type {
  font-family: var(--mono);
  font-size: var(--text-label);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 16px;
}
.case-study-header h2 {
  font-size: var(--text-h2);
  line-height: 1.1;
  letter-spacing: -.025em;
}
.case-study-body {
  max-width: 960px;
}
.case-study-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

/* ═══════════════════════════════════════════════════
   20. SERVICE DETAIL SECTIONS (services.html)
   ═══════════════════════════════════════════════════ */
.service-detail {
  padding: 100px 5.8vw;
  border-top: 1px solid var(--rule);
}
.service-detail-header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}
.service-detail-number {
  font-family: var(--mono);
  font-size: var(--text-small);
  color: var(--signal);
  letter-spacing: .06em;
  flex-shrink: 0;
}
.service-detail-header h2 {
  font-size: var(--text-h2);
  line-height: 1.15;
  letter-spacing: -.02em;
}
.service-detail-body {
  max-width: 960px;
}
.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
  margin-bottom: 36px;
}

/* ═══════════════════════════════════════════════════
   21. DETAIL CARDS (Unicorn capabilities, etc.)
   ═══════════════════════════════════════════════════ */
.unicorn-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 15px;
}
.detail-card {
  border: 1px solid var(--rule);
  padding: 20px;
  border-radius: 6px;
  transition: border-color .25s, transform .25s;
}
.detail-card:hover {
  border-color: var(--signal);
  transform: translateY(-3px);
}
.detail-card b {
  display: block;
  color: var(--signal);
  margin-bottom: 10px;
  font-size: var(--text-small);
}
.detail-card p {
  font-size: var(--text-label);
  color: var(--soft);
  margin: 0;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════
   22. STUDIO LOGS ANIMATION (careers.html)
   ═══════════════════════════════════════════════════ */
.studio-logs {
  background: rgba(11, 13, 11, .85);
  border: 1px solid var(--rule);
  border-radius: 8px;
  margin: 40px 0;
  max-width: 640px;
  overflow: hidden;
}
.logs-header {
  font-family: var(--mono);
  font-size: var(--text-label);
  letter-spacing: .1em;
  color: var(--signal);
  padding: 12px 18px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  display: inline-block;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}
.logs-container {
  padding: 14px 18px;
  min-height: 140px;
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}
.log-line {
  font-family: var(--mono);
  font-size: var(--text-label);
  color: var(--soft);
  padding: 3px 0;
  opacity: 0;
  animation: log-appear .4s ease forwards;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@keyframes log-appear {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.light .studio-logs {
  background: rgba(247, 247, 243, .9);
}

/* ═══════════════════════════════════════════════════
   23. PAGE LOAD ANIMATION
   ═══════════════════════════════════════════════════ */
body:not(.page-loaded) main {
  opacity: 0;
  transform: translateY(12px);
}
body.page-loaded main {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .5s ease, transform .5s ease;
}

/* ═══════════════════════════════════════════════════
   24. PROOF STRIP
   ═══════════════════════════════════════════════════ */
.proof-strip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 40px 5.8vw;
}
.proof-strip-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  max-width: 960px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.proof-stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.proof-stat b {
  font-family: var(--mono);
  font-size: var(--text-h3);
  color: var(--signal);
  letter-spacing: -.02em;
}
.proof-stat span {
  font-size: var(--text-label);
  color: var(--soft);
  line-height: 1.45;
}

/* ═══════════════════════════════════════════════════
   25. RESPONSIVE — NEW SECTIONS
   ═══════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .case-study { padding: 60px 5vw; }
  .case-study-grid { grid-template-columns: 1fr; gap: 28px; }
  .service-detail { padding: 60px 5vw; }
  .service-detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .service-detail-header { flex-direction: column; gap: 8px; }
  .unicorn-detail-grid { grid-template-columns: 1fr; }
  .proof-strip-inner { gap: 24px; }
  .proof-stat { flex-basis: 40%; }
  .studio-logs { margin: 24px 0; }
}

/* ═══════════════════════════════════════════════════
   26. PAGE DIFFERENTIATION (ISSUE 2)
   ═══════════════════════════════════════════════════ */

/* Products Page — Catalog Feel */
.products-page .service-row {
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}
.products-page .services-list {
  display: flex;
  flex-direction: column;
}
.products-page .service-detail:nth-child(even) {
  background: var(--shade);
}

/* Company Page — Narrative Feel */
.company-page .about-display {
  font-size: var(--text-h1);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}
.company-page .team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px;
}
.company-page .member-card .member-portrait {
  height: 400px; /* Larger cards */
}

/* How We Work Page — Procedural Feel */
.process-page .process-list {
  position: relative;
  padding-left: 40px;
}
.process-page .process-list::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 15px;
  width: 2px;
  background: var(--rule);
}
.process-page .process-step {
  position: relative;
  margin-bottom: 80px;
}
.process-page .process-step::before {
  content: '';
  position: absolute;
  left: -40px;
  top: 10px;
  width: 32px;
  height: 2px;
  background: var(--signal);
}
.process-page .process-step h2 {
  font-size: var(--text-h2);
}

/* Knowledge Page — Magazine Feel */
.knowledge-page .case-study-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.knowledge-page .case-study-grid .dialog-block {
  border: none;
  padding: 0;
}

/* Careers Page — Bolder Opening */
.careers-page .join-art {
  font-size: clamp(80px, 15vw, 200px);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--signal);
  margin-bottom: 40px;
}
.careers-page .studio-logs {
  opacity: 1; /* Visible on load */
  transform: none;
  height: 300px;
  overflow-y: auto;
  border: 1px solid var(--rule);
  padding: 20px;
  background: var(--shade);
}


/* Footer Columns added for architecture expansion */
.footer-links {
  gap: 40px;
  flex-wrap: wrap;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col .eyebrow {
  margin-bottom: 4px;
  opacity: 0.5;
}
.footer-col a {
  text-transform: none;
  font-size: var(--text-small);
}

/* Docs Layout */
.docs-layout {
  display: flex;
  margin-top: 100px; /* clear header */
  min-height: 100vh;
}
.docs-sidebar {
  width: 280px;
  flex-shrink: 0;
  border-right: 1px solid var(--rule);
  padding: 40px 30px;
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  overflow-y: auto;
}
.docs-sidebar a {
  display: block;
  padding: 8px 0;
  color: var(--soft);
  font-size: var(--text-small);
  transition: color 0.2s;
}
.docs-sidebar a:hover, .docs-sidebar a.active {
  color: var(--signal);
}
.docs-content {
  flex-grow: 1;
  padding: 60px 5%;
  max-width: 900px;
}
.docs-content code {
  font-family: var(--mono);
  background: var(--shade);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: var(--text-small);
  color: var(--paper);
}
.docs-content pre {
  background: var(--ink);
  border: 1px solid var(--rule);
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: var(--text-small);
  line-height: 1.5;
  color: var(--soft);
  margin: 24px 0;
}
.docs-content h1 { font-size: var(--text-h2); margin-bottom: 20px; }
.docs-content h2 { font-size: var(--text-h3); margin: 40px 0 16px; border-bottom: 1px solid var(--rule); padding-bottom: 12px;}
.docs-content p { color: var(--soft); line-height: 1.7; margin-bottom: 16px; }

/* Auth Layout */
.auth-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--shade);
  border: 1px solid var(--rule);
  padding: 40px;
  border-radius: 8px;
}
.auth-card input {
  width: 100%;
  background: transparent;
  border: 1px solid var(--rule);
  padding: 12px 16px;
  color: var(--paper);
  border-radius: 4px;
  margin-bottom: 16px;
  outline: none;
}
.auth-card input:focus {
  border-color: var(--signal);
}

/* Products Grid */
.our-products {
  padding-bottom: 80px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.product-card {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.product-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 1px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
  border-color: rgba(208, 251, 80, 0.4);
  background: rgba(208, 251, 80, 0.02);
  transform: translateY(-4px);
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card-header {
  margin-bottom: 24px;
}

.product-category {
  font: var(--text-label) var(--mono);
  text-transform: uppercase;
  color: var(--signal);
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 16px;
  border: 1px solid rgba(208, 251, 80, 0.2);
  padding: 4px 8px;
  background: rgba(208, 251, 80, 0.05);
}

.product-card h3 {
  font-size: var(--text-h3);
  margin-bottom: 8px;
  letter-spacing: -0.04em;
  color: var(--paper);
}

.product-tagline {
  color: var(--soft);
  font-size: var(--text-small);
  margin-bottom: 0;
}

.product-desc {
  color: var(--soft);
  font-size: var(--text-small);
  line-height: 1.6;
  margin-bottom: 32px;
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
  flex-grow: 1;
}

.product-features li {
  color: var(--soft);
  font-size: var(--text-small);
  line-height: 1.5;
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}

.product-features li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--signal);
  font-size: var(--text-label);
  top: 1px;
  opacity: 0.7;
}

.product-actions {
  margin-top: auto;
}



/* ─── Accessibility & Placeholders ─── */
::placeholder { color: var(--soft); }

.section-label p, .eyebrow, .sub-type { letter-spacing: 0.1em; line-height: 1.4; }

.button, .button *, a[href*='mailto'], .link-with-icon, .tag, .pill, .chip, .metric-label, .sub-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ─── Micro-Interactions ─── */
@media (prefers-reduced-motion: no-preference) {
  /* Links */
  a:not(.button):hover { opacity: 0.8; transition: opacity 0.2s var(--ease-out-expo); }
  
  /* Arrows */
  .button:hover i, .button:hover svg, a:hover svg { transform: translate(3px, -3px); transition: transform 0.25s var(--ease-out-expo); }
  i, svg { transition: transform 0.25s var(--ease-out-expo); }
  
  /* Cards */
  .card, .member-card, .metric-card, .submission-card, .feature-card {
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo), border-color 0.3s var(--ease-out-expo);
  }
  .card:hover, .member-card:hover, .metric-card:hover, .submission-card:hover, .feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--soft);
  }
  
  /* Buttons active state */
  .button:active, button:active { transform: scale(0.98); }
  
  /* Header Blur */
  .site-header.scrolled { backdrop-filter: blur(12px); background: rgba(11, 13, 11, 0.85); border-bottom: 1px solid var(--rule); }
  .light .site-header.scrolled { background: rgba(242, 241, 233, 0.85); }
}


/* ─── Modal Animation ─── */
dialog[open] {
  animation: modal-fade-in 0.3s var(--ease-out-expo) forwards;
}
dialog::backdrop {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  animation: backdrop-fade-in 0.3s var(--ease-out-expo) forwards;
}
@keyframes modal-fade-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes backdrop-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.logo svg path { stroke: var(--paper); }
.logo span { color: var(--paper); }

.footer-right-col {
  grid-column: 2 / -1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}
.footer-contact-social {
  display: flex;
  gap: 40px;
  align-items: center;
}
@media (max-width: 800px) {
  .footer-right-col {
    grid-column: 1 / -1;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-contact-social {
    flex-wrap: wrap;
    gap: 20px;
  }
}

.contact :focus-visible,
.contact button:focus-visible,
.contact a:focus-visible,
.contact input:focus-visible,
.contact select:focus-visible,
.contact textarea:focus-visible {
  outline-color: var(--signal-ink);
}

@media (prefers-contrast: more) {
  :root, html.light {
    --soft: var(--paper) !important;
    --rule: var(--paper) !important;
  }
  .button, .career-form input, .demo-form input {
    border: 2px solid var(--paper) !important;
  }
}

@media (forced-colors: active) {
  .button, .theme-toggle, .demo-form input, .career-form input {
    border: 1px solid CanvasText;
  }
}
