:root {
  --bg-void: #08090b;
  --bg-graphite: #0e1014;
  --bg-surface: #14171d;
  --bg-elevated: #1b1f27;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-amber: rgba(245, 158, 11, 0.36);

  --text-primary: #f3f4f6;
  --text-secondary: #a1a7b3;
  --text-muted: #6f7685;

  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-300: #fcd34d;
  --amber-glow: rgba(245, 158, 11, 0.16);
  --amber-deep: #92400e;

  --font-display: "Avenir Next", "Helvetica Neue", "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Menlo", ui-monospace, monospace;

  --max-width: 1240px;
  --nav-height: 68px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
}

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

html {
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg-void);
  color: var(--text-primary);
  overflow-x: clip;
}

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

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

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

:focus-visible {
  outline: 2px solid var(--amber-400);
  outline-offset: 3px;
}

/* Skip Link */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--amber-500);
  color: #090a0c;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 14px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

/* Top Recruiter-Friendly Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 200;
  background: rgba(8, 9, 11, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.88rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber-500);
  box-shadow: 0 0 12px var(--amber-500);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 30px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  padding: 6px 2px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--amber-400);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(20, 23, 29, 0.85);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.mode-toggle:hover {
  border-color: var(--border-amber);
  color: var(--text-primary);
}

.mode-toggle .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber-500);
}

.mode-toggle[aria-pressed="true"] .dot {
  background: var(--text-muted);
}

/* =========================================================
   HERO STAGE — SCROLL-DRIVEN 2.5D + 3D HARDWARE LAB
   ========================================================= */
.hero-stage {
  position: relative;
  height: 192vh;
  background: var(--bg-void);
}

.hero-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  width: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 38%, #17181d 0%, #0a0b0e 65%, #07080a 100%);
  touch-action: pan-y;
}

.lab-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.hero-stage.webgl-ready .lab-canvas {
  opacity: 1;
}

/* Vignette & subtle editorial frame overlay */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 65% at 50% 42%, transparent 45%, rgba(6, 7, 9, 0.72) 100%),
    linear-gradient(180deg, rgba(8, 9, 11, 0.58) 0%, transparent 18%, transparent 74%, rgba(8, 9, 11, 0.94) 100%);
}

/* Static Portrait Fallback Layer (visible before WebGL ready, or in Reduced Motion / No-WebGL mode) */
.hero-static-fallback {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  padding-top: var(--nav-height);
  transition: opacity 0.45s ease;
}

.hero-stage.webgl-ready:not(.static-mode) .hero-static-fallback {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.static-portrait-wrap {
  position: relative;
  width: min(76vw, 400px);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.75), 0 0 60px rgba(245, 158, 11, 0.08);
  background: #0d0e11;
}

.static-portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Editorial Overlay Typography (synced with scroll chapters) */
.hero-editorial {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-height) + 22px) clamp(18px, 4vw, 48px) 28px;
}

.hero-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(12, 14, 18, 0.72);
  backdrop-filter: blur(8px);
  border-radius: 999px;
}

.meta-pill strong {
  color: var(--amber-400);
  font-weight: 600;
}

.hero-chapters {
  position: relative;
  flex: 1;
  display: flex;
  align-items: flex-end;
  padding-bottom: 16px;
}

.hero-chapter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  align-items: end;
  gap: 28px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.hero-chapter.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.chapter-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-400);
  margin-bottom: 10px;
}

.chapter-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--amber-500);
}

.hero-display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6.4vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
}

.hero-display .accent {
  color: var(--amber-400);
}

.chapter-panel {
  justify-self: end;
  max-width: 430px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(11, 13, 17, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.chapter-panel p {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: #d3d7df;
  line-height: 1.55;
}

.chapter-panel p:last-child {
  margin-bottom: 0;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--amber-500);
  color: #090a0c;
}

.btn-primary:hover {
  background: var(--amber-400);
}

.btn-ghost {
  border: 1px solid var(--border-strong);
  background: rgba(18, 21, 27, 0.75);
  color: var(--text-primary);
}

.btn-ghost:hover {
  border-color: var(--amber-500);
  color: var(--amber-300);
}

.hero-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.scroll-progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  max-width: 340px;
}

.scroll-track {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 99px;
  overflow: hidden;
}

.scroll-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--amber-deep), var(--amber-400));
  transition: width 0.08s linear;
}

.stage-note {
  color: var(--text-muted);
}

/* =========================================================
   STATIC / REDUCED-MOTION HERO LAYOUT
   ========================================================= */
.hero-stage.static-mode {
  height: auto;
  min-height: 100svh;
  padding-top: var(--nav-height);
  padding-bottom: 56px;
  background: radial-gradient(circle at 72% 35%, rgba(245, 158, 11, 0.11) 0%, rgba(14, 16, 20, 0.98) 52%, #08090b 100%);
}

.hero-stage.static-mode .hero-viewport {
  position: relative;
  height: auto;
  min-height: calc(100svh - var(--nav-height) - 56px);
  overflow: visible;
  display: block;
  background: transparent;
}

.hero-stage.static-mode .lab-canvas,
.hero-stage.static-mode .hero-vignette,
.hero-stage.static-mode .hero-editorial {
  display: none;
}

.hero-stage.static-mode .hero-static-fallback {
  opacity: 1;
  pointer-events: auto;
  padding-top: 32px;
}

.static-hero-grid {
  display: none;
}

.hero-stage.static-mode .static-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 400px);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  width: 100%;
}

.hero-stage:not(.static-mode) .static-hero-copy {
  display: none;
}

.static-hero-copy .hero-display {
  font-size: clamp(2.5rem, 5.2vw, 4.4rem);
  margin-bottom: 18px;
}

.static-hero-lead {
  font-size: 1.06rem;
  color: #d2d6de;
  max-width: 58ch;
  margin: 0 0 22px;
}

.static-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.fact-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.fact-chip strong {
  color: var(--amber-400);
}

/* =========================================================
   RECRUITER SNAPSHOT BAR
   ========================================================= */
.snapshot-strip {
  position: relative;
  z-index: 10;
  background: var(--bg-graphite);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 28px 0;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.snapshot-item {
  padding: 16px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.snapshot-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-400);
  margin-bottom: 6px;
}

.snapshot-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.snapshot-sub {
  margin: 4px 0 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

/* =========================================================
   SECTIONS — WORK, EXPERIENCE, CONTACT
   ========================================================= */
.content-section {
  position: relative;
  z-index: 10;
  padding: clamp(64px, 8vw, 108px) 0;
  background: var(--bg-void);
}

.content-section.alt-bg {
  background: var(--bg-graphite);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 40px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-400);
  margin-bottom: 10px;
}

.section-kicker::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--amber-500);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.section-desc {
  margin: 0;
  max-width: 46ch;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

/* =========================================================
   FEATURED CASE STUDY — RIGX SYSTEM (SANITIZED MOCKUP)
   ========================================================= */
.featured-case {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-amber);
  background:
    radial-gradient(circle at 90% 10%, rgba(245, 158, 11, 0.08), transparent 45%),
    var(--bg-surface);
  overflow: hidden;
  margin-bottom: 32px;
}

.featured-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 32px;
  padding: clamp(22px, 3.6vw, 40px);
  align-items: start;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--amber-glow);
  border: 1px solid var(--border-amber);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-300);
  margin-bottom: 16px;
}

.project-title-lg {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.featured-copy {
  margin: 0 0 20px;
  color: #cdd2dc;
  font-size: 0.97rem;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.workflow-steps li {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(10, 11, 14, 0.65);
  border: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.workflow-steps strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.86rem;
  margin-bottom: 2px;
}

.sanitized-disclaimer {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Implemented vs Planned status breakdown */
.scope-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 20px;
}

.scope-box {
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  background: rgba(8, 10, 14, 0.72);
  border: 1px solid var(--border-subtle);
}

.scope-box.planned {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.14);
}

.scope-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  padding: 2px 8px;
  border-radius: 999px;
}

.scope-label.live {
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.scope-label.next {
  background: rgba(245, 158, 11, 0.14);
  color: var(--amber-300);
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.scope-box ul {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 5px;
  font-size: 0.82rem;
  color: #cbd2dd;
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.inline-link {
  color: var(--amber-400);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-link:hover {
  color: var(--amber-300);
}

@media (max-width: 680px) {
  .scope-split {
    grid-template-columns: 1fr;
  }
}

/* Interactive Sanitized RIGX Mockup Shell */
.rigx-mockup {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: #0b0d11;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}

.mockup-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #13161d;
  border-bottom: 1px solid var(--border-subtle);
}

.mockup-dots {
  display: inline-flex;
  gap: 6px;
}

.mockup-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.mockup-dots span:first-child {
  background: var(--amber-500);
}

.mockup-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}

.mockup-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px;
  background: #0f1218;
  border-bottom: 1px solid var(--border-subtle);
}

.mockup-tab {
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.mockup-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.mockup-tab.is-active {
  background: var(--amber-glow);
  border-color: var(--border-amber);
  color: var(--amber-300);
}

.mockup-body {
  padding: 16px;
  min-height: 270px;
}

.mockup-pane {
  display: none;
}

.mockup-pane.is-active {
  display: block;
}

.mock-flow-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 14px;
}

.mock-stage {
  padding: 8px 6px;
  text-align: center;
  border-radius: 6px;
  background: #141821;
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  color: var(--text-secondary);
}

.mock-stage.active {
  border-color: var(--border-amber);
  color: var(--amber-300);
  background: rgba(245, 158, 11, 0.1);
}

.mock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.mock-table th,
.mock-table td {
  text-align: left;
  padding: 9px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mock-table th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.mock-table td {
  color: #d4d8e1;
}

.mock-id {
  font-family: var(--font-mono);
  color: var(--amber-400);
  white-space: nowrap;
}

.status-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  white-space: nowrap;
}

.status-tag.amber {
  background: rgba(245, 158, 11, 0.16);
  color: var(--amber-300);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-tag.ok {
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.mock-quote-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  background: #131720;
  border: 1px solid var(--border-subtle);
}

.mock-quote-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.mock-quote-row strong {
  color: var(--text-primary);
}

/* =========================================================
   OTHER PROJECTS GRID (4 PROJECTS)
   ========================================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.project-card:hover {
  border-color: var(--border-amber);
  transform: translateY(-2px);
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.project-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber-400);
  letter-spacing: 0.1em;
}

.project-category {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
}

.project-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.project-subtitle {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--amber-400);
}

.project-card p {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 0.93rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.project-tags li {
  padding: 4px 9px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.71rem;
  color: var(--text-secondary);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--amber-400);
}

.project-link:hover {
  color: var(--amber-300);
  text-decoration: underline;
}

.project-note {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* =========================================================
   EXPERIENCE TIMELINE & CAPABILITIES
   ========================================================= */
.experience-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: 32px;
  align-items: start;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  position: relative;
  padding: 22px 24px 22px 28px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--amber-500);
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-400);
  margin-bottom: 6px;
}

.timeline-item h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.timeline-org {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.timeline-item p {
  margin: 0;
  color: #c5cad4;
  font-size: 0.92rem;
}

.capabilities-card {
  padding: 26px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: grid;
  gap: 20px;
}

.cap-group h3 {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-400);
}

.cap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.cap-list li {
  position: relative;
  padding-left: 16px;
  font-size: 0.92rem;
  color: #cdd2dc;
}

.cap-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber-500);
}

/* =========================================================
   CONTACT SECTION (NO INVENTED DETAILS)
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 28px;
}

.contact-card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.contact-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.contact-card p {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.contact-meta-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(8, 9, 11, 0.65);
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

.contact-meta-list .label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-meta-list .value {
  color: var(--text-primary);
  text-align: right;
}

.contact-meta-list .value.placeholder {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--amber-300);
}

.verified-links {
  display: grid;
  gap: 10px;
}

.verified-link-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(8, 9, 11, 0.65);
  transition: border-color 0.2s ease;
}

.verified-link-row:hover {
  border-color: var(--border-amber);
}

.verified-link-row span {
  font-size: 0.9rem;
  font-weight: 600;
}

.verified-link-row small {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber-400);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-void);
  padding: 28px 0 40px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* =========================================================
   RESPONSIVE — TABLET & MOBILE
   ========================================================= */
@media (max-width: 960px) {
  .featured-top,
  .experience-layout,
  .contact-grid,
  .hero-stage.static-mode .static-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-chapter {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .chapter-panel {
    justify-self: start;
    max-width: 100%;
  }

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

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

@media (max-width: 680px) {
  :root {
    --nav-height: 58px;
  }

  .hero-stage {
    height: 138vh;
  }

  .nav-inner {
    gap: 8px;
  }

  .brand-mark {
    font-size: 0.76rem;
    gap: 6px;
    letter-spacing: 0.05em;
  }

  .nav-links {
    gap: 8px;
  }

  .nav-links a {
    font-size: 0.67rem;
    letter-spacing: 0.02em;
  }

  .brand-text-full,
  .mode-label-full {
    display: none;
  }

  .mode-toggle {
    padding: 5px 9px;
    font-size: 0.66rem;
    gap: 5px;
  }

  .hero-top-meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.64rem;
  }

  .meta-pill {
    padding: 4px 9px;
  }

  .hero-display {
    font-size: clamp(1.85rem, 9.5vw, 2.7rem);
  }

  .chapter-panel {
    padding: 12px 14px;
  }

  .chapter-panel p {
    font-size: 0.82rem;
    margin-bottom: 10px;
  }

  .hero-cta-row {
    margin-top: 10px;
  }

  .btn {
    padding: 8px 13px;
    font-size: 0.78rem;
  }

  .hero-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .scroll-progress-wrap {
    width: 100%;
    max-width: none;
  }

  .workflow-steps {
    grid-template-columns: 1fr;
  }

  .mock-flow-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-meta-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .contact-meta-list .value {
    text-align: left;
  }
}

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

  .hero-chapter,
  .project-card,
  .btn,
  .ability-tile,
  .tile-glare,
  .ability-inspector {
    transition: none;
  }

  .ability-tile {
    transform: none !important;
  }
}

/* =========================================================
   MY CORE ABILITIES — BEVELED DARK-GLASS 3D TILE GRID
   ========================================================= */
.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;
}

.abilities-section {
  position: relative;
  z-index: 10;
  padding: clamp(72px, 9vw, 118px) 0;
  background:
    radial-gradient(ellipse 56% 36% at 50% 6%, rgba(99, 102, 241, 0.10) 0%, rgba(5, 6, 9, 0) 70%),
    radial-gradient(ellipse 40% 28% at 50% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 65%),
    #040507;
  border-bottom: 1px solid var(--border-subtle);
}

.abilities-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.abilities-header {
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 54px);
}

.abilities-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.68);
  margin-bottom: 12px;
}

.abilities-heading {
  margin: 0;
  font-family: "Iowan Old Style", "Baskerville", "Georgia", "Times New Roman", serif;
  font-size: clamp(2.35rem, 5.2vw, 3.85rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #f8fafc;
}

.abilities-accent {
  font-style: italic;
  font-weight: 400;
  padding-right: 0.08em;
  background: linear-gradient(100deg, #3b82f6 0%, #6366f1 42%, #8b5cf6 74%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(99, 102, 241, 0.34));
}

/* Responsive centered tile grid: 7 cols desktop, 4 tablet, 3 phone */
.abilities-grid {
  --ability-cols: 7;
  --ability-gap: 18px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  max-width: 920px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--ability-gap);
}

.ability-cell {
  flex: 0 0 calc((100% - (var(--ability-cols) - 1) * var(--ability-gap)) / var(--ability-cols));
  max-width: calc((100% - (var(--ability-cols) - 1) * var(--ability-gap)) / var(--ability-cols));
  perspective: 720px;
}

.ability-tile {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  touch-action: manipulation;
  transform-style: preserve-3d;
  will-change: transform;

  /* Beveled dark-glass 3D tile surface */
  background:
    linear-gradient(155deg, rgba(34, 38, 48, 0.92) 0%, rgba(16, 18, 24, 0.96) 46%, rgba(10, 11, 15, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-top-color: rgba(255, 255, 255, 0.21);
  border-bottom-color: rgba(0, 0, 0, 0.85);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -3px 6px rgba(0, 0, 0, 0.72),
    inset 1px 0 0 rgba(255, 255, 255, 0.05),
    inset -1px 0 0 rgba(255, 255, 255, 0.04),
    0 3px 0 rgba(4, 5, 8, 0.96),
    0 18px 34px -10px rgba(0, 0, 0, 0.92),
    0 6px 14px -4px rgba(0, 0, 0, 0.78);

  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.22s ease,
    box-shadow 0.26s ease;
}

/* Soft glass top reflection sheen */
.ability-tile::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 46%;
  border-radius: 20px 20px 50% 50% / 20px 20px 18px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075) 0%, rgba(255, 255, 255, 0.01) 65%, transparent 100%);
  pointer-events: none;
}

/* Dynamic cursor-following highlight (idle opacity 0) */
.tile-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(
    circle 96px at var(--mx, 50%) var(--my, 35%),
    rgba(255, 255, 255, 0.20) 0%,
    rgba(129, 140, 248, 0.11) 42%,
    transparent 74%
  );
  transition: opacity 0.24s ease;
}

.tile-icon {
  position: relative;
  z-index: 2;
  width: 56%;
  height: 56%;
  display: grid;
  place-items: center;
  transform: translateZ(14px);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.58));
}

.tile-icon svg,
.tile-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.tile-icon-round {
  width: 60%;
  height: 60%;
  border-radius: 50%;
  overflow: hidden;
  background: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.22), 0 6px 12px rgba(0, 0, 0, 0.6);
}

.tile-icon-round img {
  object-fit: cover;
}

.tile-icon-rounded {
  width: 58%;
  height: 58%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.55);
}

/* AI Agent Platforms Subgroup & Clean Text Badges */
.abilities-subgroup {
  width: 100%;
  margin-top: clamp(32px, 4.2vw, 44px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.abilities-subgroup-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 520px;
  margin-bottom: 22px;
}

.subgroup-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}

.abilities-subgroup-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(203, 213, 225, 0.78);
  white-space: nowrap;
}

.tile-badge {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 84%;
  text-align: center;
  transform: translateZ(14px);
}

.tile-badge-mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 36px;
  padding: 0 9px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 14px rgba(0, 0, 0, 0.45);
}

.tile-badge-name {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  color: rgba(226, 232, 240, 0.82);
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge-openclaw .tile-badge-mono {
  border-color: rgba(244, 63, 94, 0.36);
  background: rgba(244, 63, 94, 0.12);
  color: #fda4af;
}

.badge-hermes .tile-badge-mono {
  border-color: rgba(129, 140, 248, 0.38);
  background: rgba(99, 102, 241, 0.14);
  color: #c7d2fe;
}

.badge-maus .tile-badge-mono {
  border-color: rgba(56, 189, 248, 0.36);
  background: rgba(56, 189, 248, 0.12);
  color: #bae6fd;
}

.badge-grok .tile-badge-mono {
  border-color: rgba(251, 191, 36, 0.36);
  background: rgba(245, 158, 11, 0.12);
  color: #fde68a;
}

.badge-dots .tile-badge-mono {
  border-color: rgba(192, 132, 252, 0.38);
  background: rgba(168, 85, 247, 0.14);
  color: #e9d5ff;
}

.ability-tile.is-tilting {
  transition:
    transform 0.07s linear,
    border-color 0.2s ease,
    box-shadow 0.22s ease;
}

.ability-tile:hover,
.ability-tile:focus-visible,
.ability-tile.is-active {
  border-color: rgba(129, 140, 248, 0.48);
  border-top-color: rgba(196, 181, 253, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -3px 6px rgba(0, 0, 0, 0.74),
    0 4px 0 rgba(4, 5, 8, 0.96),
    0 24px 44px -10px rgba(0, 0, 0, 0.95),
    0 0 28px -6px rgba(99, 102, 241, 0.34);
}

.ability-tile:hover .tile-glare,
.ability-tile:focus-visible .tile-glare,
.ability-tile.is-active .tile-glare {
  opacity: 1;
}

/* Semantic HTML Inspector Panel below grid */
.ability-inspector {
  width: 100%;
  max-width: 640px;
  margin-top: clamp(28px, 4vw, 38px);
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(20, 23, 31, 0.88) 0%, rgba(12, 14, 19, 0.94) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 30px -12px rgba(0, 0, 0, 0.8);
  text-align: center;
  transition: border-color 0.22s ease;
}

.ability-inspector.has-selection {
  border-color: rgba(129, 140, 248, 0.42);
}

.inspector-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}

.inspector-kind {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.32);
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
}

.inspector-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: #f8fafc;
}

.inspector-desc {
  margin: 0;
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.55;
}

@media (max-width: 960px) {
  .abilities-grid {
    --ability-cols: 4;
    --ability-gap: 16px;
    max-width: 520px;
  }

  .ability-tile {
    border-radius: 19px;
  }
}

@media (max-width: 680px) {
  .abilities-grid {
    --ability-cols: 3;
    --ability-gap: 12px;
    max-width: 344px;
  }

  .ability-tile {
    border-radius: 17px;
  }

  .ability-inspector {
    padding: 15px 16px;
  }

  .inspector-name {
    font-size: 1rem;
  }

  .inspector-desc {
    font-size: 0.86rem;
  }
}

/* =========================================================
   B2B SERVICES, WORKFLOW DIAGRAM, PROCESS & ENQUIRY FORM
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 26px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  border-color: var(--border-amber);
  transform: translateY(-2px);
}

.service-card.primary-service {
  border-color: rgba(245, 158, 11, 0.24);
  background:
    radial-gradient(circle at 95% 8%, rgba(245, 158, 11, 0.06), transparent 48%),
    var(--bg-surface);
}

.service-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
}

.service-card p {
  margin: 0 0 14px;
  color: #cbd1dc;
  font-size: 0.94rem;
}

.service-example {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(8, 9, 12, 0.65);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.service-example strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-400);
  margin-bottom: 4px;
}

.service-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Example Workflow Diagram */
.workflow-diagram {
  padding: 24px 26px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(18, 21, 28, 0.92), rgba(11, 13, 18, 0.96));
  border: 1px solid var(--border-strong);
}

.workflow-diagram-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
}

.workflow-diagram-title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-400);
}

.workflow-diagram-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.workflow-chain {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.workflow-node {
  position: relative;
  padding: 14px 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(8, 9, 12, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.workflow-node::after {
  content: "\2192";
  position: absolute;
  right: -11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--amber-400);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  z-index: 2;
}

.workflow-node:last-child::after {
  display: none;
}

.workflow-step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--amber-400);
  margin-bottom: 5px;
}

.workflow-node strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.workflow-node span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* How We Work & Enterprise Trust */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.process-step {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--amber-500);
}

.process-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--amber-400);
  margin-bottom: 8px;
}

.process-step h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.process-step p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 20px;
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.trust-list li {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(8, 9, 12, 0.65);
  border: 1px solid var(--border-subtle);
  font-size: 0.86rem;
  color: #cdd2dc;
}

.trust-list strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 3px;
}

/* Three-tier scope badge (Live / Prototype / Planned) */
.scope-triple {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 18px;
}

.scope-label.proto {
  background: rgba(99, 102, 241, 0.16);
  color: #c7d2fe;
  border: 1px solid rgba(129, 140, 248, 0.34);
}

/* Discuss Your Project Enquiry Form */
.enquiry-form {
  display: grid;
  gap: 14px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cbd5e1;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(8, 9, 12, 0.86);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color 0.18s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--amber-400);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: #f87171;
}

.field-error {
  font-size: 0.78rem;
  color: #fca5a5;
  min-height: 1.1em;
}

.privacy-box {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.06);
  font-size: 0.82rem;
  color: #d6dbe5;
  line-height: 1.5;
}

.privacy-box strong {
  color: var(--amber-300);
}

.form-status {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  line-height: 1.5;
}

.form-status.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fecaca;
}

.form-status.preview-ok {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #a7f3d0;
}

.preview-notice-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--border-amber);
  color: var(--amber-300);
  margin-bottom: 14px;
}

.abilities-toolkit-note {
  margin: 18px auto 0;
  max-width: 62ch;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Hero display sizing refined for business headline */
.hero-headline-main {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 3.85vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.78);
}

.hero-headline-main .accent {
  color: var(--amber-400);
}

.hero-identity-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e2e8f0;
}

.hero-identity-line strong {
  color: var(--amber-400);
}

/* Service Landing Pages shared styles */
.subpage-main {
  padding-top: calc(var(--nav-height) + 42px);
  padding-bottom: 84px;
}

.subpage-hero {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-subtle);
}

.subpage-hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 4.4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.subpage-lead {
  margin: 0 0 20px;
  max-width: 64ch;
  font-size: 1.03rem;
  color: #d2d7e0;
  line-height: 1.65;
}

.subpage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0 32px;
}

.subpage-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.subpage-card h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.24rem;
}

.subpage-card p {
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: 0.93rem;
}

.subpage-card p:last-child {
  margin-bottom: 0;
}

/* Before/After comparison + Walkthrough sequence on RIGX Case Study */
.before-after-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0 32px;
}

.ba-card {
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.ba-card.after {
  border-color: var(--border-amber);
  background: radial-gradient(circle at 95% 10%, rgba(245, 158, 11, 0.07), transparent 50%), var(--bg-surface);
}

.ba-card h3 {
  margin: 8px 0 12px;
  font-family: var(--font-display);
  font-size: 1.18rem;
}

.walkthrough-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.walkthrough-step-card {
  padding: 22px;
  border-radius: var(--radius-md);
  background: #0b0d11;
  border: 1px solid var(--border-strong);
}

@media (max-width: 960px) {
  .services-grid,
  .workflow-chain,
  .process-steps,
  .trust-grid,
  .trust-list,
  .scope-triple,
  .subpage-grid,
  .before-after-grid {
    grid-template-columns: 1fr;
  }

  .workflow-node::after {
    content: "\2193";
    right: auto;
    left: 50%;
    top: auto;
    bottom: -15px;
    transform: translateX(-50%);
  }

  .workflow-chain {
    gap: 18px;
  }
}

@media (max-width: 680px) {
  a.mode-toggle {
    display: none;
  }

  .mock-quote-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .mock-quote-row strong,
  .mock-quote-row .mock-id {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .walkthrough-step-card {
    padding: 14px;
  }

  .mock-quote-card {
    padding: 12px;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .hero-headline-main {
    font-size: clamp(1.38rem, 6.2vw, 1.85rem);
    line-height: 1.1;
  }

  .hero-identity-line {
    font-size: 0.64rem;
    gap: 4px 8px;
  }
}

/* =========================================================
   CINEMATIC SECTION-BY-SECTION SCROLL TRANSITIONS
   (Distinct choreography per transition, unified graphite + warm amber language)
   ========================================================= */

/* Warm architectural horizon seam between Hero -> About */
.transition-about {
  position: relative;
}

.transition-about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  max-width: var(--max-width);
  height: 1px;
  transform: translateX(-50%) scaleX(1);
  background: linear-gradient(90deg, transparent 0%, rgba(245, 158, 11, 0.55) 50%, transparent 100%);
  opacity: 0.9;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}

/* Active only when JS + full motion are enabled; no-JS and reduced-motion see everything immediately */
.js-motion-ready .transition-about::before {
  transform: translateX(-50%) scaleX(0.18);
  opacity: 0.15;
}

.js-motion-ready .transition-about .contact-card {
  opacity: 0.01;
  transform: translateX(-18px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-motion-ready .transition-about .capabilities-card {
  opacity: 0.01;
  transform: translateX(18px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.12s, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

.js-motion-ready .transition-about.is-revealed::before {
  transform: translateX(-50%) scaleX(1);
  opacity: 0.95;
}

.js-motion-ready .transition-about.is-revealed .contact-card,
.js-motion-ready .transition-about.is-revealed .capabilities-card {
  opacity: 1;
  transform: translateX(0);
}

/* About -> Services: 4 service cards stagger in with subtle lift, shadow & top warm rim */
.js-motion-ready .transition-services .service-card {
  opacity: 0.01;
  transform: translateY(26px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition:
    opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.56s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.56s ease,
    border-color 0.25s ease;
}

.js-motion-ready .transition-services .service-card:nth-child(2) { transition-delay: 0.08s; }
.js-motion-ready .transition-services .service-card:nth-child(3) { transition-delay: 0.16s; }
.js-motion-ready .transition-services .service-card:nth-child(4) { transition-delay: 0.24s; }

.js-motion-ready .transition-services.is-revealed .service-card {
  opacity: 1;
  transform: translateY(0);
  box-shadow: 0 22px 44px -18px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(251, 191, 36, 0.12);
}

/* Sequential bus-signal lightup on the 5-step Example Workflow diagram */
.js-motion-ready .transition-services .workflow-node {
  opacity: 0.18;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease;
}

.js-motion-ready .transition-services.is-revealed .workflow-node:nth-child(1) { transition-delay: 0.28s; }
.js-motion-ready .transition-services.is-revealed .workflow-node:nth-child(2) { transition-delay: 0.36s; }
.js-motion-ready .transition-services.is-revealed .workflow-node:nth-child(3) { transition-delay: 0.44s; }
.js-motion-ready .transition-services.is-revealed .workflow-node:nth-child(4) { transition-delay: 0.52s; }
.js-motion-ready .transition-services.is-revealed .workflow-node:nth-child(5) { transition-delay: 0.60s; }

.js-motion-ready .transition-services.is-revealed .workflow-node {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(245, 158, 11, 0.22);
}

/* Services -> Featured Work: Heading stays immediately readable; RIGX System mockup enters in 3 depth layers */
.js-motion-ready .transition-rigx .rigx-mockup {
  opacity: 0.01;
  transform: translateY(18px) scale(0.985);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.7s ease;
}

.js-motion-ready .transition-rigx .mockup-chrome,
.js-motion-ready .transition-rigx .mockup-tabs {
  opacity: 0.01;
  transform: translateX(14px);
  transition: opacity 0.45s ease 0.14s, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.14s;
}

.js-motion-ready .transition-rigx .mockup-body {
  opacity: 0.01;
  transform: translateY(12px);
  transition: opacity 0.5s ease 0.26s, transform 0.54s cubic-bezier(0.22, 1, 0.36, 1) 0.26s;
}

.js-motion-ready .transition-rigx.is-revealed .rigx-mockup {
  opacity: 1;
  transform: translateY(0) scale(1);
  box-shadow: 0 32px 68px -16px rgba(0, 0, 0, 0.85), 0 0 42px -12px rgba(245, 158, 11, 0.20);
}

.js-motion-ready .transition-rigx.is-revealed .mockup-chrome,
.js-motion-ready .transition-rigx.is-revealed .mockup-tabs,
.js-motion-ready .transition-rigx.is-revealed .mockup-body {
  opacity: 1;
  transform: translate(0, 0);
}

/* Featured Work -> Contact: Quiet atmospheric settle so "Discuss Your Project" stands out serenely */
.transition-contact {
  background: radial-gradient(ellipse 68% 50% at 32% 48%, rgba(245, 158, 11, 0.055) 0%, #07080a 72%);
}

.js-motion-ready .transition-contact .contact-card:first-child {
  opacity: 0.72;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  transition: opacity 0.8s ease, border-color 0.85s ease, box-shadow 0.9s ease;
}

.js-motion-ready .transition-contact.is-revealed .contact-card:first-child {
  opacity: 1;
  border-color: rgba(245, 158, 11, 0.36);
  box-shadow: 0 28px 64px -22px rgba(0, 0, 0, 0.9), 0 0 40px -16px rgba(245, 158, 11, 0.16);
}

/* Mobile restraint: smaller travel, faster transitions, easy-to-tap buttons */
@media (max-width: 680px) {
  .btn {
    min-height: 44px;
  }

  .js-motion-ready .transition-about .contact-card,
  .js-motion-ready .transition-about .capabilities-card {
    transform: translateY(10px);
  }

  .js-motion-ready .transition-services .service-card {
    transform: translateY(14px);
  }

  .js-motion-ready .transition-rigx .rigx-mockup,
  .js-motion-ready .transition-rigx .mockup-chrome,
  .js-motion-ready .transition-rigx .mockup-tabs,
  .js-motion-ready .transition-rigx .mockup-body {
    transform: translateY(10px);
  }
}

/* Reduced motion OR Static mode: show all content immediately without animated movement */
@media (prefers-reduced-motion: reduce) {
  .js-motion-ready [data-transition],
  .js-motion-ready [data-transition] * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.static-transitions [data-transition],
.static-transitions [data-transition] * {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* =========================================================
   SIMPLIFIED EDITORIAL HERO (BESIDE PORTRAIT ON DESKTOP,
   BELOW FACE ON MOBILE, ZERO ROUNDED TEXT CARD)
   ========================================================= */
.hero-vignette {
  background:
    linear-gradient(90deg, rgba(7, 8, 11, 0.86) 0%, rgba(7, 8, 11, 0.52) 38%, rgba(7, 8, 11, 0.08) 64%, rgba(7, 8, 11, 0.34) 100%),
    linear-gradient(180deg, rgba(8, 9, 11, 0.56) 0%, transparent 18%, transparent 72%, rgba(8, 9, 11, 0.94) 100%);
}

.hero-overlay {
  position: relative;
  z-index: 4;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: var(--nav-height);
  padding-bottom: 24px;
  pointer-events: none;
}

.hero-split {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.hero-copy-lockup {
  pointer-events: auto;
  max-width: 560px;
}

.hero-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.85rem, 5.4vw, 4.95rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: #f8fafc;
  text-shadow: 0 10px 36px rgba(0, 0, 0, 0.72);
}

.hero-role {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.12rem, 1.85vw, 1.52rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--amber-400);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.75);
}

.hero-founder {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.78);
}

.hero-copy-lockup .hero-cta-row {
  margin-top: 26px;
}

/* Fallback static portrait hidden smoothly once WebGL is ready unless in static mode */
.hero-fallback-figure {
  justify-self: end;
  width: min(100%, 400px);
  pointer-events: auto;
  transition: opacity 0.45s ease;
}

.hero-stage.webgl-ready:not(.static-mode) .hero-fallback-figure {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.hero-stage.static-mode {
  height: auto;
  min-height: 100svh;
  padding-top: 0;
  padding-bottom: 0;
}

.hero-stage.static-mode .hero-overlay {
  padding-top: calc(var(--nav-height) + 32px);
  padding-bottom: 48px;
}

.hero-stage.static-mode .hero-bottom-bar {
  display: none;
}

@media (max-width: 960px) {
  .hero-split {
    grid-template-columns: 1fr;
    align-items: end;
    padding-bottom: 12px;
  }

  .hero-fallback-figure {
    order: -1;
    justify-self: center;
    width: min(74vw, 330px);
  }

  .hero-stage.webgl-ready:not(.static-mode) .hero-fallback-figure {
    display: none;
  }

  .hero-vignette {
    background:
      linear-gradient(180deg, rgba(8, 9, 11, 0.48) 0%, transparent 16%, transparent 48%, rgba(7, 8, 11, 0.88) 72%, rgba(7, 8, 11, 0.97) 100%);
  }

  .hero-copy-lockup {
    max-width: 100%;
  }
}

@media (max-width: 680px) {
  .hero-overlay {
    padding-bottom: 16px;
  }

  .hero-name {
    font-size: clamp(2.15rem, 10vw, 2.75rem);
    line-height: 1.02;
  }

  .hero-role {
    margin-top: 8px;
    font-size: 0.98rem;
    line-height: 1.32;
  }

  .hero-founder {
    margin-top: 6px;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  .hero-copy-lockup .hero-cta-row {
    margin-top: 16px;
  }

  .hero-bottom-bar {
    padding-top: 10px;
  }
}

/* =========================================================
   ANTI-SLOP EDITORIAL REFINEMENTS
   (Restraint, sharp hierarchy, hairline grids, zero pill bloat)
   ========================================================= */
.mode-toggle {
  border-radius: 5px;
  padding: 6px 11px;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(14, 16, 21, 0.7);
}

.hero-scroll-cue {
  padding-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(161, 167, 179, 0.72);
}

.hero-stage.static-mode .hero-scroll-cue {
  display: none;
}

/* Services — Clean Architectural Editorial Grid (No nested boxes or pill badges) */
.services-editorial {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border-strong);
  margin-bottom: 40px;
}

.service-item {
  display: flex;
  flex-direction: column;
  padding: 30px 30px 28px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.service-item:nth-child(even) {
  padding-left: 34px;
  padding-right: 0;
  border-left: 1px solid var(--border-subtle);
}

.service-item-wide {
  grid-column: 1 / -1;
  padding: 30px 0 28px;
  border-left: none;
}

.service-item-wide .service-body,
.service-item-wide .service-eg {
  max-width: 72ch;
}

.service-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.service-num {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--amber-400);
  letter-spacing: 0.08em;
}

.service-item h3,
.project-row-item h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #f8fafc;
}

.service-body {
  margin: 0 0 14px;
  color: #c7cdd8;
  font-size: 0.95rem;
  line-height: 1.62;
}

.service-eg {
  margin: 0 0 18px;
  padding-left: 14px;
  border-left: 2px solid rgba(245, 158, 11, 0.55);
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
}

.service-eg strong {
  color: #e2e8f0;
  font-weight: 600;
}

.service-links {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding-top: 6px;
}

.editorial-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: #cbd5e1;
  transition: color 0.18s ease;
}

.editorial-link:hover {
  color: var(--amber-300);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.editorial-link.primary {
  color: var(--amber-400);
  font-weight: 600;
}

/* Flat Editorial Workflow Strip */
.workflow-strip {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.workflow-strip .workflow-node {
  background: rgba(14, 16, 21, 0.55);
  border-color: rgba(255, 255, 255, 0.07);
}

/* Featured Work — RIGX System Focal Showcase + Cinematic Chapter Transition */
.chapter-work {
  position: relative;
}

.chapter-work::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  max-width: var(--max-width);
  height: 2px;
  transform: translateX(-50%) scaleX(1);
  background: linear-gradient(90deg, transparent 0%, rgba(245, 158, 11, 0.78) 50%, transparent 100%);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}

.js-motion-ready .chapter-work::before {
  transform: translateX(-50%) scaleX(0.08);
  opacity: 0.12;
}

.js-motion-ready .chapter-work.is-revealed::before {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

.rigx-feature {
  padding: clamp(24px, 3.6vw, 40px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(245, 158, 11, 0.28);
  background:
    radial-gradient(circle at 86% 14%, rgba(245, 158, 11, 0.07), transparent 46%),
    #11141a;
  margin-bottom: 44px;
}

.rigx-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.28fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

.rigx-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-400);
  margin-bottom: 10px;
}

.rigx-spec-list {
  margin: 0 0 22px;
  border-top: 1px solid var(--border-subtle);
}

.rigx-spec-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.86rem;
}

.rigx-spec-row dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-400);
}

.rigx-spec-row dd {
  margin: 0;
  color: #d2d7e0;
  line-height: 1.5;
}

.mockup-app-name {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f8fafc;
}

.status-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #cbd5e1;
  white-space: nowrap;
}

.status-text.amber {
  color: var(--amber-400);
}

.status-text.ok {
  color: #6ee7b7;
}

/* Supporting Projects — Hairline Editorial Index */
.projects-editorial {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border-strong);
}

.project-row-item {
  display: flex;
  flex-direction: column;
  padding: 26px 28px 26px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.project-row-item:nth-child(even) {
  padding-left: 32px;
  padding-right: 0;
  border-left: 1px solid var(--border-subtle);
}

.project-sub-meta {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--amber-400);
}

/* Inspector & Preview Notes without pill clutter */
.inspector-kind {
  border: none;
  background: none;
  padding: 0;
  border-radius: 0;
}

.preview-inline-note {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.04em;
  color: var(--amber-300);
}

/* Restrained quiet reveals everywhere outside Featured Work */
.js-motion-ready .transition-quiet .container {
  opacity: 0.28;
  transition: opacity 0.45s ease;
}

.js-motion-ready .transition-quiet.is-revealed .container {
  opacity: 1;
}

@media (max-width: 960px) {
  .services-editorial,
  .projects-editorial,
  .rigx-feature-grid {
    grid-template-columns: 1fr;
  }

  .service-item,
  .service-item:nth-child(even),
  .project-row-item,
  .project-row-item:nth-child(even) {
    padding: 24px 0;
    border-left: none;
  }
}

@media (max-width: 680px) {
  .rigx-spec-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

/* Portfolio launch refinement: keep the case-study entrance reachable on mobile. */
.hero-case-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  color: #fcd38b;
  text-decoration: underline;
  text-underline-offset: .2em;
  font-size: .9rem;
}
.hero-copy-lockup .hero-cta-row { gap: 8px 18px; align-items: center; }
@media (max-width: 680px) {
  .nav-links a, .mode-toggle, .hero-copy-lockup .btn, .mockup-tab, .subpage-hero .btn {
    min-height: 44px;
  }
  .nav-links a { display: flex; align-items: center; }
  .hero-viewport, .hero-stage.static-mode .hero-viewport { overflow-clip-margin: 0; }
  .hero-fallback-figure { width: min(64vw, 285px, 38svh); }
  .hero-stage.static-mode .hero-overlay { padding-top: calc(var(--nav-height) + 16px); padding-bottom: 22px; }
}
.hero-stage:not(.static-mode) { height: 158svh; }
@media (max-width: 680px) {
  .hero-stage:not(.static-mode) { height: 130svh; }
}
