:root {
  --bg-navy: #0a0e14;
  --bg-ink: #06090e;
  --brand-blue: #0072ff;
  --brand-green: #00ff9d;
  --brand-mint: #abf1ab;
  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(255, 255, 255, 0.085);
  --glass-stroke: rgba(255, 255, 255, 0.12);
  --text: #f6fff8;
  --text-muted: rgba(246, 255, 248, 0.68);
  --text-faint: rgba(246, 255, 248, 0.42);
  --danger: #ff6d6d;
  --radius: 28px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg-navy);
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(0, 114, 255, 0.20), transparent 34rem),
    radial-gradient(circle at 78% 10%, rgba(0, 255, 157, 0.12), transparent 31rem),
    linear-gradient(135deg, var(--bg-navy), #07111b 55%, #07150f);
  color: var(--text);
  font-family: "ABC Diatype", "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  background: rgba(0, 255, 157, 0.28);
  color: white;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.main-content {
  position: relative;
  z-index: 2;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.88), transparent 86%);
}

.bg-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle at center, transparent 18%, rgba(0,0,0,0.58) 100%);
}

.container {
  width: min(var(--max), calc(100vw - 40px));
  margin-inline: auto;
}

.section {
  padding: clamp(72px, 9vw, 128px) 0;
}

.section-tight {
  padding: clamp(48px, 7vw, 88px) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--brand-green);
  font-family: "ABC Diatype Semi-Mono", "JetBrains Mono", "SF Mono", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--brand-green);
  box-shadow: 0 0 24px rgba(0, 255, 157, 0.7);
}

.display-xl {
  margin: 0;
  font-size: clamp(3.35rem, 11vw, 9.75rem);
  line-height: 0.83;
  letter-spacing: -0.085em;
  font-weight: 900;
}

.display-lg {
  margin: 0;
  font-size: clamp(2.65rem, 7vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
  font-weight: 900;
}

.h2 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.5rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.3vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 850;
}

.lede {
  color: var(--text-muted);
  font-size: clamp(1.08rem, 1.7vw, 1.38rem);
  line-height: 1.48;
}

.copy {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.mono {
  font-family: "ABC Diatype Semi-Mono", "JetBrains Mono", "SF Mono", Consolas, monospace;
}

.glass-card {
  position: relative;
  border: 1px solid var(--glass-stroke);
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035));
  box-shadow: 0 28px 100px rgba(0,0,0,0.28);
  backdrop-filter: blur(18px);
}

.glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.16), transparent 22%, transparent 78%, rgba(0,255,157,0.08));
  opacity: 0.6;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  padding: 0.86rem 1.15rem;
  min-height: 46px;
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--text);
  background: rgba(255,255,255,0.055);
  font-weight: 800;
  letter-spacing: -0.015em;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0,255,157,0.58);
  background: rgba(0,255,157,0.10);
  box-shadow: 0 0 32px rgba(0,255,157,0.13);
  outline: none;
}

.btn-primary {
  border-color: transparent;
  color: #04120d;
  background: linear-gradient(135deg, var(--brand-green), #76fff9 45%, var(--brand-blue));
  box-shadow: 0 18px 60px rgba(0,255,157,0.18);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: #04120d;
  background: linear-gradient(135deg, #bdffd6, var(--brand-green) 38%, #75b7ff);
}

.tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.055);
  border-radius: 999px;
  padding: 0.38rem 0.62rem;
  color: rgba(246,255,248,0.78);
  font-family: "ABC Diatype Semi-Mono", "JetBrains Mono", "SF Mono", Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(6, 9, 14, 0.72);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}

.logo-img {
  display: block;
  width: clamp(168px, 19vw, 228px);
  height: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.62rem 0.82rem;
  color: rgba(246,255,248,0.72);
  font-weight: 750;
  font-size: 0.93rem;
  transition: color 180ms ease, background 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  color: var(--text);
  background: rgba(255,255,255,0.075);
  outline: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.phone-link {
  color: rgba(246,255,248,0.74);
  font-weight: 800;
  font-size: 0.9rem;
}

.mobile-menu-button {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: white;
}

.mobile-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
}

.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(4, 8, 12, 0.96);
  backdrop-filter: blur(20px);
  padding: 20px;
}

.mobile-panel-inner {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 40px);
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025));
  overflow: hidden;
}

.mobile-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-close {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: white;
  font-size: 1.6rem;
}

.mobile-links {
  display: grid;
  gap: 0.35rem;
  padding: 24px 18px 18px;
}

.mobile-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  border-radius: 20px;
  padding: 0 18px;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.mobile-links a::after {
  content: "↗";
  color: var(--brand-green);
  font-size: 1rem;
}

.mobile-panel-footer {
  margin-top: auto;
  padding: 18px;
  display: grid;
  gap: 0.8rem;
}

.hero {
  min-height: min(760px, calc(100svh - 76px));
  display: grid;
  align-items: center;
  padding: clamp(36px, 6vw, 72px) 0 clamp(56px, 8vw, 100px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 1.35rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.system-console {
  border-radius: 32px;
  overflow: hidden;
}

.console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: var(--text-faint);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.console-lights {
  display: flex;
  gap: 7px;
}

.console-lights span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.26);
}

.console-lights span:first-child { background: var(--brand-green); box-shadow: 0 0 18px rgba(0,255,157,0.7); }
.console-lights span:nth-child(2) { background: var(--brand-blue); }

.console-body {
  padding: clamp(18px, 3vw, 30px);
  display: grid;
  gap: 1rem;
}

.node-map {
  position: relative;
  min-height: 220px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  background:
    radial-gradient(circle at 35% 22%, rgba(0,255,157,0.18), transparent 14rem),
    radial-gradient(circle at 80% 72%, rgba(0,114,255,0.20), transparent 16rem),
    rgba(0,0,0,0.22);
  overflow: hidden;
}

.node-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 38px 38px;
}

.node {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--brand-green);
  box-shadow: 0 0 22px rgba(0,255,157,0.75);
  animation: pulse 2.6s ease-in-out infinite;
}

.node:nth-child(1) { left: 16%; top: 22%; }
.node:nth-child(2) { left: 44%; top: 40%; animation-delay: .4s; }
.node:nth-child(3) { left: 71%; top: 27%; animation-delay: .8s; background: var(--brand-blue); box-shadow: 0 0 22px rgba(0,114,255,0.75); }
.node:nth-child(4) { left: 83%; top: 74%; animation-delay: 1.1s; }
.node:nth-child(5) { left: 28%; top: 78%; animation-delay: 1.45s; background: var(--brand-blue); }

.connection {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,255,157,0.55), transparent);
  transform-origin: left center;
  animation: shimmer 4s linear infinite;
}

.connection.one { width: 210px; left: 17%; top: 26%; transform: rotate(21deg); }
.connection.two { width: 230px; left: 45%; top: 43%; transform: rotate(-14deg); animation-delay: 1s; }
.connection.three { width: 190px; left: 30%; top: 78%; transform: rotate(-27deg); animation-delay: 1.6s; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.metric-card {
  border-radius: 18px;
  padding: 1rem;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.095);
}

.metric-card strong {
  display: block;
  color: white;
  font-size: 1.38rem;
  letter-spacing: -0.045em;
}

.metric-card span {
  display: block;
  margin-top: 0.28rem;
  color: var(--text-faint);
  font-size: 0.72rem;
  line-height: 1.35;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.78; }
  50% { transform: scale(1.85); opacity: 1; }
}

@keyframes shimmer {
  0% { opacity: 0.2; filter: hue-rotate(0deg); }
  50% { opacity: 1; }
  100% { opacity: 0.2; filter: hue-rotate(80deg); }
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.pillar-card {
  min-height: 340px;
  padding: 1.2rem;
  border-radius: 28px;
  overflow: hidden;
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.pillar-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0,255,157,0.38);
  background: linear-gradient(145deg, rgba(0,255,157,0.09), rgba(255,255,255,0.04));
}

.pillar-card .index {
  color: var(--brand-green);
  font-family: "ABC Diatype Semi-Mono", "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 800;
}

.pillar-card h3 {
  margin: 1rem 0 0.7rem;
}

.pillar-card p {
  margin: 0;
}

.pillar-card ul {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.pillar-card li {
  display: flex;
  gap: 0.55rem;
  color: rgba(246,255,248,0.70);
  font-size: 0.92rem;
}

.pillar-card li::before {
  content: "/";
  color: var(--brand-green);
}

.work-ledger {
  display: grid;
  gap: 1rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.filter-btn {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.045);
  color: rgba(246,255,248,0.72);
  border-radius: 999px;
  padding: 0.72rem 0.9rem;
  font-weight: 800;
  transition: 180ms ease;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: rgba(0,255,157,0.55);
  background: rgba(0,255,157,0.1);
  color: white;
}

.project-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 190px 1fr 96px;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.045);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.project-row:hover,
.project-row:focus-within {
  transform: translateX(4px);
  border-color: rgba(0,255,157,0.34);
  background: rgba(255,255,255,0.075);
}

.project-title {
  display: grid;
  gap: 0.28rem;
}

.project-title strong {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.project-title span,
.project-category,
.project-stack {
  color: var(--text-faint);
  font-size: 0.8rem;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-thumb {
  width: 88px;
  height: 58px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  opacity: 0.86;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
}

.sticky-panel {
  position: sticky;
  top: 112px;
}

.blueprint-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.65fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: start;
}

.blueprint-media {
  position: sticky;
  top: 112px;
  border-radius: 32px;
  overflow: hidden;
}

.blueprint-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  opacity: 0.86;
  filter: saturate(0.84) contrast(1.05);
}

.arch-toggle {
  display: flex;
  gap: 0.4rem;
  padding: 0.36rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.1);
}

.arch-toggle button {
  border: 0;
  background: transparent;
  color: rgba(246,255,248,0.62);
  border-radius: 999px;
  padding: 0.58rem 0.8rem;
  font-weight: 900;
  font-size: 0.8rem;
  cursor: pointer;
}

.arch-toggle button.active {
  background: rgba(0,255,157,0.12);
  color: white;
}

.arch-diagram {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 10%;
  background: rgba(6, 9, 14, 0.78);
  backdrop-filter: blur(4px);
}

.arch-diagram svg {
  width: 100%;
  max-width: 720px;
  height: auto;
}

.ledger-panel {
  display: grid;
  gap: 1rem;
}

.ledger-block {
  border-radius: 24px;
  padding: 1.2rem;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.045);
}

.ledger-block h2,
.ledger-block h3 {
  margin: 0 0 0.7rem;
}

.ledger-block p,
.ledger-block li {
  color: var(--text-muted);
  line-height: 1.62;
}

.ledger-block ul {
  margin: 0;
  padding-left: 1rem;
}

.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

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

.person-card {
  border-radius: 28px;
  overflow: hidden;
}

.person-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4/4.6;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04);
}

.person-body {
  padding: 1.1rem;
}

.person-body h3 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -0.05em;
}

.person-body .role {
  display: block;
  margin-top: 0.28rem;
  color: var(--brand-green);
  font-family: "ABC Diatype Semi-Mono", "JetBrains Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.dna-bars {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.dna-bar {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 0.55rem;
  color: rgba(246,255,248,0.62);
  font-size: 0.72rem;
}

.dna-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.09);
  overflow: hidden;
}

.dna-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-green));
}

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

.field {
  display: grid;
  gap: 0.5rem;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: rgba(246,255,248,0.72);
  font-family: "ABC Diatype Semi-Mono", "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.input,
.textarea,
.select {
  width: 100%;
  min-height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.055);
  color: white;
  padding: 0 1rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.textarea {
  min-height: 160px;
  padding-block: 1rem;
  resize: vertical;
}

.select option {
  color: #04120d;
  background: white;
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: rgba(0,255,157,0.62);
  box-shadow: 0 0 0 4px rgba(0,255,157,0.12);
  background: rgba(255,255,255,0.085);
}

.form-error {
  color: var(--danger);
  font-size: 0.9rem;
}

.form-status {
  border-radius: 18px;
  padding: 1rem;
  background: rgba(0,255,157,0.1);
  border: 1px solid rgba(0,255,157,0.28);
  color: white;
}

.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(3, 7, 11, 0.68);
  backdrop-filter: blur(18px);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  padding: clamp(44px, 7vw, 76px) 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.footer-links a,
.footer-meta a {
  color: rgba(246,255,248,0.72);
}

.footer-links a:hover,
.footer-meta a:hover {
  color: white;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--text-faint);
  font-size: 0.88rem;
}


/* Lightweight utilities used by the static templates. */
.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-7{margin-top:1.75rem}.mt-8{margin-top:2rem}.mb-10{margin-bottom:2.5rem}.pt-0{padding-top:0!important}.relative{position:relative}.underline{text-decoration:underline}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-5xl{max-width:64rem}.rounded-32{border-radius:32px}.rounded-36{border-radius:36px}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-10{padding:2.5rem}.p-14{padding:3.5rem}.flex{display:flex}.grid{display:grid}.flex-wrap{flex-wrap:wrap}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.items-end{align-items:end}.items-start{align-items:start}.justify-end{justify-content:flex-end}.text-center{text-align:center}.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}.two-col{display:grid;grid-template-columns:.9fr 1.1fr;gap:clamp(28px,5vw,72px)}.three-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.two-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}.hero-compact-card{border-radius:36px;padding:clamp(1.5rem,4vw,3.5rem)}@media(max-width:1080px){.two-col,.three-grid,.two-grid{grid-template-columns:1fr}.p-14{padding:2rem}}

@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;
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .split-section,
  .blueprint-shell,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .sticky-panel,
  .blueprint-media {
    position: relative;
    top: auto;
  }

  .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .desktop-nav,
  .header-actions .phone-link,
  .header-actions .desktop-cta {
    display: none;
  }

  .mobile-menu-button {
    display: block;
  }

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

  .project-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16/8;
  }

  .people-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 640px) {
  .container {
    width: min(100vw - 28px, var(--max));
  }

  .hero {
    min-height: auto;
    padding-top: 32px;
  }

  .display-xl {
    font-size: clamp(3rem, 17vw, 5.4rem);
  }

  .metric-grid,
  .pillar-grid,
  .people-grid {
    grid-template-columns: 1fr;
  }

  .pillar-card {
    min-height: 0;
  }
}
#shader-bg { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -10; pointer-events: none; opacity: .8; }
.mobile-panel[hidden], [hidden] { display: none !important; }

/* v2.2 refinement pass: tighter rhythm, visible white logo, opaque mobile drawer, and restored secret-sauce people animation. */
.display-xl {
  font-size: clamp(3.25rem, 8.6vw, 7.8rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.display-lg {
  font-size: clamp(2.45rem, 5.8vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.058em;
}

.h2 {
  font-size: clamp(2rem, 4.3vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.h3 { line-height: 1.08; }

.hero {
  min-height: auto;
  padding: clamp(34px, 5vw, 62px) 0 clamp(44px, 6vw, 74px);
}

.hero-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.68fr);
  gap: clamp(24px, 4.2vw, 56px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-title {
  max-width: 10.5ch;
  text-wrap: balance;
}

.system-console {
  position: relative;
  z-index: 1;
  max-width: 510px;
  justify-self: end;
}

.logo-img { width: clamp(158px, 16vw, 216px); }

.proof-strip {
  border-block: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.035);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

.proof-item {
  padding: clamp(1rem, 2.4vw, 1.45rem);
  border-inline: 1px solid rgba(255,255,255,0.06);
}

.proof-item strong {
  display: block;
  color: var(--text);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.proof-item span {
  display: block;
  margin-top: 0.42rem;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.secret-sauce-section {
  padding: clamp(54px, 8vw, 96px) 0;
}

.secret-sauce-block {
  position: relative;
  height: clamp(260px, 46vw, 520px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 30%, rgba(0,114,255,0.16), transparent 28rem),
    #0d3b28;
}

.secret-scroll {
  margin: 0;
  white-space: nowrap;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.92;
  font-size: clamp(3.2rem, 9.8vw, 8.4rem);
  color: var(--text);
  transition: transform 520ms ease-out;
  will-change: transform;
}

.secret-circle {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(128px, 28vw, 420px);
  height: clamp(128px, 28vw, 420px);
  border-radius: 999px;
  overflow: hidden;
  background: #70c7c3;
  box-shadow: 0 28px 100px rgba(0,0,0,0.28);
}

.secret-circle .secret-scroll { color: #0d3b28; }

.people-feature { padding-top: clamp(44px, 6vw, 76px); }

.mobile-panel {
  background: #04080c;
  backdrop-filter: none;
  padding: 14px;
}

.mobile-panel-inner {
  min-height: calc(100svh - 28px);
  max-height: calc(100svh - 28px);
  overflow-y: auto;
  background:
    radial-gradient(circle at 85% 8%, rgba(0,255,157,0.12), transparent 18rem),
    linear-gradient(145deg, #07101a, #03070b 76%);
  border-color: rgba(255,255,255,0.18);
}

.mobile-panel-top {
  background: rgba(3,7,11,0.94);
}

.mobile-panel-top .logo-img { width: min(58vw, 210px); }

.mobile-panel-copy { padding: 18px 18px 4px; }

.mobile-links { padding: 14px 18px 10px; }

.mobile-links a {
  min-height: 58px;
  border-radius: 18px;
  padding: 0 18px;
  background: rgba(255,255,255,0.07);
  font-size: clamp(1.15rem, 7vw, 1.6rem);
  letter-spacing: -0.035em;
}

.mobile-panel-footer {
  padding: 18px;
  background: rgba(3,7,11,0.50);
  border-top: 1px solid rgba(255,255,255,0.09);
}

.mobile-panel-footer .btn { width: 100%; }
.mobile-panel-footer .copy { margin: 0; color: var(--text-faint); }
.mobile-panel-footer .copy a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }

.connect-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.connect-note .copy { flex-basis: 100%; }

.footer-side {
  display: grid;
  align-content: start;
  gap: 1.4rem;
}

.footer-proof {
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 24px;
  background: rgba(255,255,255,0.045);
  padding: 1rem;
}

.footer-proof span {
  display: block;
  color: var(--text-faint);
  font-family: "ABC Diatype Semi-Mono", "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-proof strong {
  display: block;
  margin-top: 0.32rem;
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .system-console { justify-self: stretch; max-width: none; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .header-inner { min-height: 66px; }
  .hero-title { max-width: 9.3ch; }
}

@media (max-width: 640px) {
  .display-xl { font-size: clamp(3.25rem, 15vw, 4.9rem); line-height: 0.94; }
  .display-lg { font-size: clamp(2.6rem, 12vw, 4.2rem); line-height: 0.98; }
  .h2 { font-size: clamp(2.1rem, 10vw, 3.2rem); }
  .hero { padding-top: 28px; }
  .hero-proof { display: none; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-item { border-inline: 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .secret-sauce-block { height: 240px; }
  .secret-scroll { font-size: clamp(2.8rem, 13vw, 4.6rem); }
}

/* v2.3 refinement pass: real case visuals, random homepage selections, customer-facing connect copy, and cleaner case study spacing. */
.hero-title { max-width: 9.5ch; }
.hero-proof .tag { white-space: nowrap; }

.hero-metric-grid {
  grid-template-columns: 1fr;
}

.hero-metric-grid .metric-card {
  display: grid;
  grid-template-columns: 0.68fr 1.32fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.9rem;
}

.hero-metric-grid .metric-card strong {
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero-metric-grid .metric-card span {
  margin-top: 0;
  font-size: 0.76rem;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(1.4rem, 3vw, 2.4rem);
}

.section-heading-row > div { max-width: 860px; }
.section-heading-row .btn { flex: 0 0 auto; }

.work-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.4rem);
}

.work-card {
  border-radius: 30px;
  overflow: hidden;
  min-height: 100%;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.work-card:hover,
.work-card:focus-within {
  transform: translateY(-5px);
  border-color: rgba(0,255,157,0.36);
  background: linear-gradient(145deg, rgba(0,255,157,0.08), rgba(255,255,255,0.045));
  box-shadow: 0 30px 100px rgba(0,0,0,0.34), 0 0 42px rgba(0,255,157,0.08);
}

.work-card a {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
}

.work-card-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16/10;
  padding: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(0,255,157,0.10), transparent 17rem),
    radial-gradient(circle at 80% 70%, rgba(0,114,255,0.16), transparent 18rem),
    rgba(0,0,0,0.24);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  overflow: hidden;
}

.work-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  filter: saturate(0.96) contrast(1.02);
}

.work-card-body {
  display: grid;
  align-content: start;
  gap: 0.82rem;
  padding: clamp(1rem, 2vw, 1.25rem);
}

.work-card-body .eyebrow {
  font-size: 0.64rem;
}

.work-card-body h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.35rem, 2.4vw, 2.05rem);
  line-height: 1.02;
  letter-spacing: -0.052em;
}

.work-card-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.work-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.3rem;
}

.work-card-meta span {
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  padding: 0.34rem 0.55rem;
  color: rgba(246,255,248,0.62);
  font-family: "ABC Diatype Semi-Mono", "JetBrains Mono", monospace;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[data-random-item][hidden] { display: none !important; }

.project-row {
  grid-template-columns: minmax(170px, 0.34fr) minmax(0, 1fr) 190px minmax(220px, 0.8fr);
  gap: 1.1rem;
  padding: 0.95rem;
  border-radius: 28px;
}

.project-visual {
  display: block;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(0,255,157,0.12), transparent 10rem),
    rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.10);
}

.project-thumb {
  display: block;
  width: 100%;
  height: 118px;
  aspect-ratio: auto;
  border-radius: 0;
  border: 0;
  opacity: 0.96;
  background: rgba(0,0,0,0.18);
}

.project-title strong {
  font-size: clamp(1.28rem, 2.1vw, 1.95rem);
  line-height: 1.04;
}

.project-title span:last-child {
  color: var(--text-muted);
  line-height: 1.45;
}

.blueprint-shell {
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.64fr);
}

.blueprint-media {
  padding: 0;
  background:
    radial-gradient(circle at 22% 10%, rgba(0,255,157,0.10), transparent 22rem),
    radial-gradient(circle at 86% 80%, rgba(0,114,255,0.14), transparent 24rem),
    rgba(255,255,255,0.045);
}

.case-visual-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  color: var(--text-faint);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.case-visual-frame {
  display: grid;
  place-items: center;
  min-height: clamp(340px, 48vw, 620px);
  padding: clamp(0.75rem, 2vw, 1.25rem);
  background: rgba(0,0,0,0.14);
}

.blueprint-media img {
  width: 100%;
  height: 100%;
  max-height: 620px;
  aspect-ratio: auto;
  border-radius: 22px;
  opacity: 0.98;
  filter: saturate(0.96) contrast(1.03);
  background: rgba(0,0,0,0.18);
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  min-width: min(100%, 360px);
}

.connect-note .tag {
  background: rgba(0,255,157,0.07);
}

.form-grid .btn-primary {
  width: 100%;
}

.site-footer .h2 { max-width: 760px; }
.footer-cta-grid { align-items: start; }

@media (max-width: 1180px) {
  .work-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-row { grid-template-columns: 180px minmax(0,1fr); }
  .project-category, .project-stack { grid-column: 2; }
}

@media (max-width: 1080px) {
  .section-heading-row,
  .cta-panel {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }
  .section-heading-row .btn,
  .cta-actions { justify-self: start; }
  .cta-actions { justify-content: flex-start; }
  .blueprint-shell { grid-template-columns: 1fr; }
  .case-visual-frame { min-height: auto; }
  .blueprint-media img { max-height: none; }
}

@media (max-width: 760px) {
  .hero-metric-grid .metric-card { grid-template-columns: 1fr; }
  .work-card-grid { grid-template-columns: 1fr; }
  .project-row { grid-template-columns: 1fr; }
  .project-category,
  .project-stack { grid-column: auto; }
  .project-thumb { height: auto; min-height: 200px; }
  .case-visual-label { display: grid; }
  .case-visual-frame { padding: 0.75rem; }
}

@media (max-width: 640px) {
  .hero-title { max-width: 10ch; }
  .work-card-body h3 { font-size: clamp(1.45rem, 8vw, 2.1rem); }
  .work-card-media { aspect-ratio: 16/11; }
  .project-thumb { min-height: 180px; }
  .cta-actions .btn { width: 100%; }
}

/* v2.3 refinement pass: stronger portfolio visuals, random homepage selections, no duplicate architecture toggle, cleaner public-facing contact copy. */
.hero-title,
.display-xl,
.display-lg,
.h2,
.h3 {
  text-wrap: balance;
}

.hero-copy .lede {
  max-width: 720px;
}

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

.system-console .metric-grid {
  gap: 0.9rem;
}

.system-console .metric-card {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.system-console .metric-card strong {
  font-size: clamp(1.05rem, 1.65vw, 1.45rem);
  line-height: 1.02;
}

.system-console .metric-card span {
  font-size: 0.73rem;
  line-height: 1.42;
  color: rgba(246,255,248,0.58);
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(1.6rem, 4vw, 3rem);
}

.section-heading-row > div {
  max-width: 760px;
}

.work-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.work-card-grid.random-list [data-random-item]:nth-of-type(n+5) {
  display: none;
}

.people-grid.random-list [data-random-item]:nth-of-type(n+4) {
  display: none;
}

.random-list .is-random-hidden,
.work-card-grid.random-list.is-randomized .is-random-hidden,
.people-grid.random-list.is-randomized .is-random-hidden {
  display: none !important;
}

.work-card {
  border-radius: 30px;
  overflow: hidden;
  min-height: 100%;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.work-card:hover,
.work-card:focus-within {
  transform: translateY(-5px);
  border-color: rgba(0,255,157,0.42);
  background: linear-gradient(145deg, rgba(0,255,157,0.08), rgba(255,255,255,0.04));
}

.work-card a {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
}

.work-card-image {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.work-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 48%, rgba(6,9,14,0.18));
}

.work-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.04);
  transition: transform 360ms ease, filter 360ms ease;
}

.work-card:hover .work-card-image img,
.work-card:focus-within .work-card-image img {
  transform: scale(1.035);
  filter: saturate(1.04) contrast(1.05);
}

.work-card-body {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  align-content: start;
}

.work-card-kicker {
  color: var(--brand-green);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.work-card h3 {
  margin: 0;
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.work-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.work-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-top: 0.2rem;
}

.project-row {
  grid-template-columns: 180px minmax(0, 1.15fr) 180px minmax(220px, 0.8fr);
  gap: 1.15rem;
  padding: 0.82rem;
  border-radius: 28px;
  min-height: 150px;
}

.project-thumb-wrap {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
}

.project-thumb {
  display: block;
  width: 100%;
  height: 128px;
  object-fit: cover;
  border-radius: 0;
  border: 0;
  opacity: 0.96;
  filter: saturate(0.94) contrast(1.04);
}

.project-title strong {
  line-height: 1.08;
}

.project-title span:last-child {
  max-width: 58ch;
  line-height: 1.45;
}

.project-category {
  color: var(--brand-green);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blueprint-media {
  top: 104px;
}

.blueprint-media .relative {
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}

.blueprint-media img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  opacity: 0.98;
  filter: saturate(0.94) contrast(1.04);
}

.blueprint-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  padding: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.blueprint-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  object-fit: cover;
}

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

.connect-note .tag {
  background: rgba(0,255,157,0.065);
  border-color: rgba(0,255,157,0.20);
}

.form-grid .btn-primary {
  min-height: 58px;
  width: 100%;
}

.footer-main .h2 {
  max-width: 760px;
}

@media (max-width: 1180px) {
  .work-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-row {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .project-category,
  .project-stack {
    grid-column: 2;
  }
}

@media (max-width: 860px) {
  .section-heading-row {
    display: grid;
    align-items: start;
  }

  .work-card-grid {
    grid-template-columns: 1fr;
  }

  .work-card-grid.random-list [data-random-item]:nth-of-type(n+4) {
    display: none;
  }

  .project-row {
    grid-template-columns: 1fr;
    padding: 0.9rem;
  }

  .project-thumb-wrap {
    width: 100%;
  }

  .project-thumb {
    aspect-ratio: 16 / 10;
    height: auto;
  }

  .project-category,
  .project-stack {
    grid-column: auto;
  }

  .blueprint-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 640px) {
  .proof-grid,
  .system-console .metric-grid {
    grid-template-columns: 1fr;
  }

  .system-console .metric-card {
    min-height: 0;
  }

  .blueprint-gallery {
    grid-template-columns: 1fr;
  }

  .mobile-panel-copy .copy {
    font-size: 0.94rem;
  }
}

/* v2.3.1 visual/card refinements after review feedback. */
.work-card-grid,
.work-card-grid.work-card-grid-wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.2vw, 1.65rem);
}

[data-randomize] [data-random-item]:nth-of-type(n+4) {
  display: none;
}

[data-randomize] [data-random-item][hidden] {
  display: none !important;
}

.work-card-media {
  aspect-ratio: 16 / 9;
  border-bottom-color: rgba(255,255,255,0.12);
}

.work-card-media img,
.work-card-image img {
  object-fit: cover;
}

.work-card-body {
  padding: clamp(1.05rem, 2.1vw, 1.45rem);
}

.work-card-body h3,
.work-card h3 {
  font-size: clamp(1.3rem, 2.05vw, 1.9rem);
  line-height: 1.06;
  letter-spacing: -0.046em;
}

.work-card-body p,
.work-card p {
  font-size: 0.96rem;
  line-height: 1.55;
}

.work-card-meta {
  margin-top: 0.35rem;
}

.blueprint-media .console-top {
  background: rgba(3,7,11,0.46);
}

.blueprint-media > .relative {
  padding: clamp(0.75rem, 2vw, 1.2rem);
}

.blueprint-media > .relative > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  max-height: none;
  object-fit: cover;
  border-radius: 24px;
  opacity: 1;
}

.case-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-footer .h2 {
  font-size: clamp(2rem, 3.7vw, 3.45rem);
  line-height: 1.08;
}

.footer-main {
  gap: clamp(2rem, 8vw, 7rem);
}

@media (max-width: 1180px) {
  .work-card-grid,
  .work-card-grid.work-card-grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .work-card-grid,
  .work-card-grid.work-card-grid-wide,
  .case-metrics {
    grid-template-columns: 1fr;
  }
  .work-card-media,
  .work-card-image {
    aspect-ratio: 16 / 10;
  }
  .blueprint-media > .relative > img {
    aspect-ratio: 16 / 11;
  }
}

/* Ensure client-side randomized homepage selections are visible after JS reorders them. */
.work-card-grid.random-list.is-randomized [data-random-item],
.people-grid.random-list.is-randomized [data-random-item] {
  display: block;
}

.work-card-grid.random-list.is-randomized [data-random-item].is-random-hidden,
.people-grid.random-list.is-randomized [data-random-item].is-random-hidden {
  display: none !important;
}

/* v2.4 refinement pass: original-style rotating hero, tighter operating model, stronger work visuals, and clearer footer navigation. */
.hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.68fr);
  align-items: center;
}

.hero-rotating-title {
  max-width: 10.8ch;
  line-height: 0.95;
  letter-spacing: -0.062em;
}

.hero-rotating-title > span:first-child {
  display: block;
}

.rotating-word-wrap {
  display: block;
  min-height: 1.04em;
  color: var(--brand-green);
}

.rotating-word {
  display: inline-block;
  color: transparent;
  background: linear-gradient(135deg, var(--brand-green), #bffff0 48%, var(--brand-blue));
  -webkit-background-clip: text;
  background-clip: text;
  transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
}

.rotating-word.is-changing {
  opacity: 0;
  transform: translateY(0.14em);
  filter: blur(5px);
}

.hero-copy .lede {
  margin-top: clamp(1.25rem, 2.2vw, 1.75rem);
}

.system-console {
  max-width: 480px;
}

.system-console .console-top {
  padding: 12px 14px;
  font-size: 0.66rem;
  letter-spacing: 0.11em;
}

.system-console .console-body {
  padding: clamp(14px, 2.2vw, 22px);
  gap: 0.75rem;
}

.system-console .node-map {
  min-height: 170px;
  border-radius: 22px;
}

.system-console .metric-grid {
  gap: 0.65rem;
}

.system-console .metric-card {
  min-height: 92px;
  padding: 0.82rem;
  border-radius: 20px;
}

.system-console .metric-card strong {
  font-size: clamp(0.98rem, 1.35vw, 1.22rem);
  line-height: 1.04;
}

.system-console .metric-card span {
  font-size: 0.68rem;
  line-height: 1.35;
}

.home-work-section .work-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.home-work-section .work-card-image {
  aspect-ratio: 16 / 9;
}

.home-work-section .work-card-body {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

.home-work-section .work-card h3 {
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  line-height: 1.02;
}

.home-work-section .work-card p {
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
}

.footer-side {
  gap: 1.65rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.footer-links a {
  min-height: 56px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.055);
  color: rgba(246,255,248,0.84);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.footer-links a::after {
  content: "↗";
  color: var(--brand-green);
  font-weight: 900;
  transform: translateY(-1px);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
  border-color: rgba(0,255,157,0.42);
  background: rgba(0,255,157,0.09);
  transform: translateY(-2px);
  outline: none;
}

.footer-proof {
  padding: 1.15rem;
  border-radius: 24px;
}

.footer-proof strong {
  font-size: clamp(1.18rem, 2vw, 1.72rem);
}

.blueprint-media > .relative > img[src*="closeflow"] {
  object-fit: cover;
  object-position: center center;
}

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

  .system-console {
    max-width: none;
    justify-self: stretch;
  }
}

@media (max-width: 860px) {
  .home-work-section .work-card-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-rotating-title {
    max-width: 9.8ch;
    font-size: clamp(3rem, 13vw, 4.55rem);
    line-height: 0.98;
  }

  .rotating-word-wrap {
    min-height: 1.12em;
  }

  .system-console .node-map {
    min-height: 132px;
  }

  .system-console .metric-grid {
    grid-template-columns: 1fr;
  }

  .footer-main {
    gap: 2.25rem;
  }
}

/* v2.4 review pass: restored original-style animated hero, tighter proof console, clearer footer navigation, and improved case-study visuals. */
.hero-dynamic-title {
  max-width: 12.2ch;
  font-size: clamp(3.05rem, 7.2vw, 6.9rem);
  line-height: 0.96;
  letter-spacing: -0.058em;
}

.hero-word {
  display: inline-block;
  color: var(--brand-green);
  text-shadow: 0 0 32px rgba(0,255,157,0.18);
  transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
}

.hero-word.is-changing {
  opacity: 0;
  transform: translateY(0.12em);
  filter: blur(6px);
}

.hero-copy .lede {
  max-width: 680px;
}

.system-console {
  max-width: 540px;
}

.console-top {
  padding: 12px 14px;
}

.console-body {
  padding: clamp(14px, 2.2vw, 22px);
  gap: 0.85rem;
}

.node-map {
  min-height: clamp(180px, 22vw, 250px);
}

.hero-metric-grid,
.system-console .metric-grid,
.system-console .hero-metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.hero-metric-grid .metric-card,
.system-console .metric-card {
  min-height: 104px;
  display: block;
  padding: 0.84rem;
}

.hero-metric-grid .metric-card strong,
.system-console .metric-card strong {
  display: block;
  font-size: clamp(0.92rem, 1.25vw, 1.14rem);
  line-height: 1.05;
  letter-spacing: -0.032em;
}

.hero-metric-grid .metric-card span,
.system-console .metric-card span {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.66rem;
  line-height: 1.34;
}

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

.work-card-grid,
.work-card-grid.work-card-grid-wide {
  gap: clamp(1.2rem, 2.4vw, 1.8rem);
}

.work-card-media,
.work-card-image {
  aspect-ratio: 16 / 10;
}

.work-card-body {
  padding: clamp(1.1rem, 2vw, 1.55rem);
}

.work-card-body h3,
.work-card h3 {
  line-height: 1.08;
}

.blueprint-gallery img {
  background: rgba(255,255,255,0.06);
}

.footer-side {
  gap: 1.2rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.footer-links a {
  position: relative;
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.045);
  padding: 0 0.95rem;
  color: rgba(246,255,248,0.78);
  font-weight: 850;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.footer-links a::after {
  content: "↗";
  color: var(--brand-green);
  opacity: 0.78;
  font-size: 0.86rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0,255,157,0.36);
  background: rgba(0,255,157,0.085);
  color: white;
  outline: none;
}

.footer-proof strong {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.14;
}

.cta-panel {
  grid-template-columns: minmax(0, 0.92fr) auto;
}

.cta-panel .h2 {
  max-width: 900px;
}

@media (max-width: 1080px) {
  .hero-dynamic-title {
    max-width: 12.5ch;
  }
  .hero-metric-grid,
  .system-console .metric-grid,
  .system-console .hero-metric-grid,
  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hero-dynamic-title {
    font-size: clamp(3.05rem, 14vw, 5.1rem);
    max-width: 9.7ch;
  }
  .hero-metric-grid,
  .system-console .metric-grid,
  .system-console .hero-metric-grid,
  .proof-grid,
  .footer-links {
    grid-template-columns: 1fr;
  }
  .node-map {
    min-height: 190px;
  }
}

/* v2.5 refinement pass: shorter hero, cleaner row alignment, tighter console copy, and aligned people skill bars. */
.hero-grid {
  grid-template-columns: minmax(0, 0.88fr) minmax(340px, 0.62fr);
  gap: clamp(28px, 5vw, 68px);
}

.hero-copy {
  gap: 1rem;
}

.hero-short-title {
  max-width: 11.2ch;
  font-size: clamp(3.25rem, 6.65vw, 6.25rem);
  line-height: 0.98;
  letter-spacing: -0.056em;
}

.hero-short-title span {
  color: var(--text);
}

.hero-maker-line {
  margin: 0;
  max-width: 680px;
  color: rgba(246,255,248,0.86);
  font-size: clamp(1.08rem, 1.7vw, 1.42rem);
  line-height: 1.32;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.hero-maker-line .hero-word {
  color: var(--brand-green);
  text-shadow: 0 0 30px rgba(0,255,157,0.22);
}

.hero-copy .lede {
  max-width: 620px;
  margin-top: 0.1rem;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.52;
}

.hero-ctas {
  margin-top: 0.25rem;
}

.system-console {
  max-width: 500px;
}

.system-console .node-map {
  min-height: clamp(156px, 18vw, 210px);
}

.hero-metric-grid,
.system-console .metric-grid,
.system-console .hero-metric-grid {
  align-items: stretch;
}

.hero-metric-grid .metric-card,
.system-console .metric-card {
  display: grid;
  grid-template-rows: minmax(2.4em, auto) 1fr;
  align-content: start;
  min-height: 96px;
}

.proof-grid {
  align-items: stretch;
}

.proof-item {
  display: grid;
  grid-template-rows: minmax(2.35em, auto) 1fr;
  align-items: start;
}

.pillar-card {
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.pillar-card .copy {
  min-height: 6.25rem;
}

.pillar-card ul {
  margin-top: auto;
}

.home-work-section .section-heading-row > div {
  max-width: 700px;
}

.home-work-section .section-heading-row .lede {
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.5;
}

.people-feature .section-heading-row,
.people-feature .mb-10 {
  max-width: 720px;
}

.people-grid {
  align-items: stretch;
}

.person-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.person-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.person-body .copy {
  flex: 1;
  margin-bottom: 1rem;
}

.dna-bars {
  margin-top: auto;
}

.dna-bar {
  grid-template-columns: 94px minmax(0, 1fr) 30px;
}

.cta-panel .lede,
.footer-main .copy {
  max-width: 660px;
}

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

  .hero-short-title {
    max-width: 11.5ch;
  }

  .system-console {
    max-width: none;
  }
}

@media (max-width: 860px) {
  .hero-short-title {
    font-size: clamp(3rem, 12vw, 5rem);
    max-width: 9.8ch;
  }

  .pillar-card .copy {
    min-height: 0;
  }

  .pillar-card {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .hero-short-title {
    font-size: clamp(3rem, 13vw, 4.55rem);
    line-height: 1;
  }

  .hero-maker-line {
    font-size: 1.08rem;
  }

  .proof-item {
    grid-template-rows: auto auto;
  }

  .person-body .copy {
    flex: none;
  }
}


/* v2.5 review pass: shorter homepage hero, tighter model copy, aligned proof cards, and aligned people DNA bars. */
.hero-slim {
  padding-top: clamp(32px, 4.6vw, 58px);
  padding-bottom: clamp(44px, 6vw, 76px);
}

.hero-slim .hero-grid {
  grid-template-columns: minmax(0, 0.94fr) minmax(340px, 0.62fr);
  gap: clamp(28px, 5vw, 68px);
}

.hero-slim .hero-copy {
  gap: 1.05rem;
  max-width: 690px;
}

.hero-slim .hero-dynamic-title {
  max-width: 11.4ch;
  font-size: clamp(3.25rem, 6.3vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero-slim .hero-copy .lede {
  max-width: 590px;
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  line-height: 1.48;
  margin-top: 0.1rem;
}

.hero-slim .hero-ctas,
.hero-slim .hero-proof {
  margin-top: 0.1rem;
}

.hero-slim .system-console {
  max-width: 500px;
}

.hero-slim .system-console .console-top {
  padding: 11px 13px;
}

.hero-slim .system-console .console-body {
  padding: clamp(13px, 2vw, 19px);
  gap: 0.7rem;
}

.hero-slim .node-map {
  min-height: clamp(148px, 18vw, 205px);
}

.hero-metric-grid,
.system-console .hero-metric-grid {
  align-items: stretch;
}

.hero-metric-grid .metric-card,
.system-console .hero-metric-grid .metric-card {
  min-height: 118px;
  display: grid;
  grid-template-rows: minmax(2.25em, auto) 1fr;
  align-content: start;
  gap: 0.45rem;
}

.hero-metric-grid .metric-card strong,
.system-console .hero-metric-grid .metric-card strong {
  min-height: 2.25em;
  display: flex;
  align-items: flex-start;
}

.hero-metric-grid .metric-card span,
.system-console .hero-metric-grid .metric-card span {
  margin-top: 0;
  align-self: start;
}

.proof-grid {
  align-items: stretch;
}

.proof-item {
  display: grid;
  grid-template-rows: minmax(2.2em, auto) 1fr;
  align-content: start;
}

.proof-item strong {
  min-height: 2.2em;
  display: flex;
  align-items: flex-start;
}

.pillar-grid {
  align-items: stretch;
}

.pillar-card {
  display: grid;
  grid-template-rows: auto minmax(2.7em, auto) minmax(5.2em, auto) 1fr;
}

.pillar-card h3 {
  align-self: start;
}

.people-grid {
  align-items: stretch;
}

.person-card {
  display: flex;
  flex-direction: column;
}

.person-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.person-body .role {
  min-height: 2.15em;
}

.person-body .copy {
  min-height: 10.2em;
}

.dna-bars {
  margin-top: auto;
  padding-top: 1rem;
}

.dna-bar {
  grid-template-columns: minmax(104px, 0.34fr) minmax(120px, 1fr) 42px;
  gap: 0.7rem;
}

.dna-bar > span:first-child {
  white-space: nowrap;
}

.dna-bar > span:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.footer-links a {
  min-height: 60px;
  padding-inline: 1.05rem;
  background: rgba(255,255,255,0.06);
  color: rgba(246,255,248,0.9);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.025);
}

.footer-links a::after {
  opacity: 1;
  font-size: 0.95rem;
}

.footer-proof strong {
  max-width: 32rem;
}

@media (max-width: 1180px) {
  .hero-slim .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-slim .hero-dynamic-title {
    max-width: 12.4ch;
  }

  .hero-slim .system-console {
    max-width: none;
  }
}

@media (max-width: 860px) {
  .person-body .copy {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .hero-slim .hero-dynamic-title {
    max-width: 10.6ch;
    font-size: clamp(3.05rem, 12.5vw, 4.7rem);
    line-height: 1.02;
  }

  .hero-slim .hero-copy .lede {
    font-size: 1.02rem;
  }

  .hero-slim .node-map {
    min-height: 170px;
  }

  .hero-metric-grid .metric-card,
  .system-console .hero-metric-grid .metric-card,
  .proof-item,
  .pillar-card {
    grid-template-rows: none;
  }

  .hero-metric-grid .metric-card strong,
  .system-console .hero-metric-grid .metric-card strong,
  .proof-item strong {
    min-height: 0;
  }

  .person-body .role,
  .person-body .copy {
    min-height: 0;
  }

  .dna-bar {
    grid-template-columns: 92px minmax(0, 1fr) 36px;
  }
}

/* v2.6 refinement pass: smaller homepage hero, cleaner operating model module, and stronger capability bullet spacing. */
.hero-slim {
  padding-top: clamp(28px, 4.2vw, 52px);
  padding-bottom: clamp(42px, 5.6vw, 70px);
}

.hero-slim .hero-grid {
  grid-template-columns: minmax(0, 0.86fr) minmax(390px, 0.66fr);
  gap: clamp(32px, 5.4vw, 76px);
}

.hero-slim .hero-copy {
  max-width: 650px;
  gap: 1rem;
}

.hero-slim .hero-balanced-title {
  max-width: 720px;
  font-size: clamp(3.15rem, 5.35vw, 5.25rem);
  line-height: 0.96;
  letter-spacing: -0.066em;
}

.hero-slim .hero-copy .lede {
  max-width: 540px;
  font-size: clamp(0.98rem, 1.18vw, 1.12rem);
  line-height: 1.46;
  margin-top: 0;
}

.hero-slim .hero-ctas {
  margin-top: 0.15rem;
}

.hero-slim .hero-proof {
  display: none;
}

.hero-slim .system-console {
  max-width: 540px;
}

.hero-slim .system-console .console-body {
  padding: clamp(14px, 2vw, 20px);
  gap: 0.95rem;
}

.hero-slim .node-map {
  min-height: clamp(132px, 15.5vw, 182px);
}

.model-list {
  display: grid;
  gap: 0.62rem;
}

.model-card {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.8rem 0.9rem;
}

.model-index {
  color: var(--brand-green);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  line-height: 1.1;
  padding-top: 0.12rem;
}

.model-card strong {
  display: block;
  color: var(--text);
  font-size: clamp(1rem, 1.18vw, 1.18rem);
  line-height: 1.02;
  letter-spacing: -0.038em;
}

.model-card span:not(.model-index) {
  display: block;
  margin-top: 0.25rem;
  color: rgba(246, 255, 248, 0.62);
  font-size: clamp(0.72rem, 0.83vw, 0.84rem);
  line-height: 1.36;
}

.pillar-card {
  grid-template-rows: auto auto auto auto;
}

.pillar-card .copy {
  min-height: 0;
}

.pillar-card ul {
  margin-top: clamp(1.7rem, 2.8vw, 2.6rem) !important;
}

.pillar-card li {
  gap: 0.7rem;
}

.people-feature .person-body .copy,
.people-page .person-body .copy {
  line-height: 1.55;
}

@media (max-width: 1180px) {
  .hero-slim .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-slim .hero-balanced-title {
    max-width: 760px;
  }

  .hero-slim .system-console {
    max-width: 680px;
  }
}

@media (max-width: 760px) {
  .hero-slim .hero-balanced-title {
    max-width: 10.8ch;
    font-size: clamp(2.85rem, 11vw, 4.25rem);
    line-height: 0.98;
  }

  .hero-slim .hero-copy .lede {
    max-width: 34rem;
    font-size: 1rem;
  }

  .model-card {
    grid-template-columns: 1.8rem minmax(0, 1fr);
    gap: 0.65rem;
    padding: 0.78rem;
  }

  .model-card strong {
    font-size: 1rem;
  }

  .model-card span:not(.model-index) {
    font-size: 0.74rem;
  }

  .pillar-card ul {
    margin-top: 1.35rem !important;
  }
}

/* v2.7 refinement pass: align capability separators/bullets and case-study tag rows across cards. */
@media (min-width: 1081px) {
  .pillar-grid {
    align-items: stretch;
  }

  .pillar-card {
    display: grid;
    grid-template-rows: auto minmax(3.55em, auto) minmax(10.1rem, auto) auto;
    min-height: 430px;
  }

  .pillar-card h3 {
    align-self: start;
    min-height: 3.35em;
    margin: 1rem 0 0.9rem;
  }

  .pillar-card .copy {
    min-height: 10.1rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
  }

  .pillar-card ul {
    align-self: start;
    margin-top: 0 !important;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
  }

  .work-card a {
    height: 100%;
  }

  .work-card-body {
    display: grid;
    grid-template-rows: auto minmax(3.55em, auto) minmax(5.4rem, 1fr) auto;
    align-content: stretch;
    height: 100%;
  }

  .work-card-body h3,
  .work-card h3 {
    align-self: start;
    min-height: 3.05em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .work-card-body p,
  .work-card p {
    min-height: 5.4rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .work-card-tags,
  .work-card-meta {
    align-self: end;
    margin-top: 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
  }

  .home-work-section .work-card-body {
    grid-template-rows: auto minmax(2.45em, auto) minmax(4.9rem, 1fr) auto;
  }

  .home-work-section .work-card h3 {
    min-height: 2.25em;
    -webkit-line-clamp: 2;
  }

  .home-work-section .work-card p {
    min-height: 4.9rem;
    -webkit-line-clamp: 3;
  }
}

@media (max-width: 1080px) {
  .pillar-card,
  .work-card-body {
    min-height: 0;
  }

  .pillar-card .copy,
  .work-card-body h3,
  .work-card h3,
  .work-card-body p,
  .work-card p {
    min-height: 0;
  }

  .pillar-card ul {
    margin-top: 1.35rem !important;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .work-card-tags,
  .work-card-meta {
    padding-top: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}


/* v3.1 mobile QA pass: readable secret-sauce band, non-overlapping case-study visuals, and stable mobile CTA layout. */
@media (max-width: 1080px) {
  .blueprint-shell {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }

  .blueprint-media {
    position: relative !important;
    top: auto !important;
    z-index: 1;
    margin: 0 0 1rem;
  }

  .blueprint-media > .relative {
    overflow: hidden;
    padding: clamp(0.65rem, 3vw, 0.95rem);
  }

  .blueprint-media img,
  .blueprint-media > .relative > img {
    position: static !important;
    display: block;
    width: 100%;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }

  .blueprint-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ledger-panel {
    position: relative;
    z-index: 2;
  }

  .cta-panel {
    display: flex !important;
    flex-direction: column;
    align-items: stretch !important;
    gap: 1.15rem;
  }

  .cta-actions {
    min-width: 0 !important;
    width: 100%;
    justify-content: stretch !important;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(var(--max), calc(100vw - 30px));
  }

  .section,
  .section-tight {
    padding-top: clamp(46px, 12vw, 68px);
    padding-bottom: clamp(46px, 12vw, 68px);
  }

  .hero-slim {
    padding-top: 34px;
    padding-bottom: 44px;
  }

  .hero-slim .hero-grid {
    gap: 1.35rem;
  }

  .hero-slim .hero-copy {
    max-width: 100%;
    gap: 0.8rem;
  }

  .hero-slim .hero-balanced-title {
    max-width: 100%;
    font-size: clamp(2.72rem, 11.2vw, 3.85rem);
    line-height: 1;
    letter-spacing: -0.055em;
    text-wrap: balance;
  }

  .hero-slim .hero-copy .lede {
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.44;
  }

  .hero-slim .hero-ctas {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
    width: 100%;
  }

  .hero-slim .hero-ctas .btn {
    width: 100%;
  }

  .hero-slim .system-console {
    display: none;
  }

  .work-card a {
    display: block;
  }

  .work-card-media,
  .work-card-image {
    position: relative;
    z-index: 1;
    aspect-ratio: 16 / 10;
  }

  .work-card-body {
    position: relative;
    z-index: 2;
    display: block;
    height: auto;
    min-height: 0;
    padding: 1.1rem;
    background: linear-gradient(180deg, rgba(6,9,14,0.98), rgba(8,18,22,0.94));
  }

  .work-card-body h3,
  .work-card h3,
  .work-card-body p,
  .work-card p {
    display: block;
    min-height: 0;
    overflow: visible;
    -webkit-line-clamp: unset;
  }

  .work-card-body h3,
  .work-card h3 {
    font-size: clamp(1.55rem, 8vw, 2.25rem);
    line-height: 1.03;
  }

  .work-card-body p,
  .work-card p {
    font-size: 0.98rem;
    line-height: 1.48;
    margin-top: 0.85rem;
  }

  .work-card-tags,
  .work-card-meta {
    margin-top: 1rem;
    padding-top: 0.9rem;
  }

  .blueprint-media {
    border-radius: 26px;
  }

  .blueprint-media .console-top {
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.8rem 0.95rem;
    font-size: 0.62rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .blueprint-media > .relative > img {
    border-radius: 18px;
    aspect-ratio: 16 / 10;
  }

  .blueprint-gallery {
    grid-template-columns: 1fr;
  }

  .ledger-block {
    padding: 1rem;
    border-radius: 22px;
  }

  .secret-sauce-section {
    padding: 34px 0 42px;
  }

  .secret-sauce-block {
    height: clamp(260px, 78vw, 360px) !important;
    padding: 1.25rem;
  }

  .secret-scroll {
    position: relative;
    z-index: 3;
    width: min(92vw, 26rem);
    max-width: 100%;
    white-space: normal !important;
    text-align: center;
    text-wrap: balance;
    font-size: clamp(2.05rem, 10.3vw, 3.25rem) !important;
    line-height: 0.92;
    letter-spacing: -0.058em;
    transform: none !important;
  }

  .secret-circle {
    z-index: 1;
    width: clamp(145px, 48vw, 205px);
    height: clamp(145px, 48vw, 205px);
    opacity: 0.9;
  }

  .secret-circle .secret-scroll {
    display: none;
  }

  .hero-compact-card {
    padding: 1.1rem !important;
    border-radius: 28px;
    overflow: hidden;
  }

  .cta-panel > div:first-child {
    min-width: 0;
  }

  .cta-panel .h2 {
    max-width: 100%;
    font-size: clamp(2.2rem, 10vw, 3.25rem);
    line-height: 1;
    letter-spacing: -0.055em;
    text-wrap: balance;
    overflow-wrap: normal;
    word-break: normal;
  }

  .cta-panel .lede {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.45;
  }

  .cta-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.72rem;
  }

  .cta-actions .btn {
    width: 100%;
    min-height: 54px;
  }
}

@media (max-width: 420px) {
  .hero-slim .hero-balanced-title {
    font-size: clamp(2.45rem, 11.4vw, 3.2rem);
  }

  .secret-scroll {
    font-size: clamp(1.9rem, 9.5vw, 2.65rem) !important;
    width: min(90vw, 22rem);
  }

  .cta-panel .h2 {
    font-size: clamp(2rem, 9.6vw, 2.9rem);
  }
}

/* v3.4 layout QA pass: align work-card dividers/tag rows and let desktop secret-sauce animation complete before leaving view. */
@media (min-width: 1081px) {
  .work-card {
    height: 100%;
  }

  .work-card a {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
    min-height: 100%;
  }

  .work-card-body {
    display: grid;
    grid-template-rows: auto 5.1rem 6.2rem auto;
    align-content: stretch;
    height: 100%;
    min-height: 0;
  }

  .work-card-body h3,
  .work-card h3 {
    height: 5.1rem;
    min-height: 0 !important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    align-self: start;
  }

  .work-card-body p,
  .work-card p {
    height: 6.2rem;
    min-height: 0 !important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    align-self: start;
  }

  .work-card-tags,
  .work-card-meta {
    align-self: start;
    min-height: 4.65rem;
    margin-top: 0 !important;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .work-card-grid-wide .work-card-body {
    grid-template-rows: auto 5.6rem 7rem auto;
  }

  .work-card-grid-wide .work-card-body h3,
  .work-card-grid-wide .work-card h3 {
    height: 5.6rem;
  }

  .work-card-grid-wide .work-card-body p,
  .work-card-grid-wide .work-card p {
    height: 7rem;
  }

  .home-work-section .work-card-body {
    grid-template-rows: auto 4.15rem 5.6rem auto;
  }

  .home-work-section .work-card h3,
  .home-work-section .work-card-body h3 {
    height: 4.15rem;
    -webkit-line-clamp: 2;
  }

  .home-work-section .work-card p,
  .home-work-section .work-card-body p {
    height: 5.6rem;
    -webkit-line-clamp: 3;
  }

  .secret-sauce-section {
    height: 168vh;
    padding: 0;
    display: block;
  }

  .secret-sauce-block {
    position: sticky;
    top: 82px;
    height: min(520px, calc(100vh - 82px));
    min-height: 420px;
  }

  .secret-scroll {
    transition: transform 120ms linear;
  }
}

/* v3.5 work page/mobile QA: compact mobile category navigation, stronger work-card baseline alignment, and fuller secret-sauce desktop travel. */
.filter-controls {
  display: grid;
  gap: 0.95rem;
}

.filter-select-wrap {
  display: none;
}

@media (min-width: 1081px) {
  .work-card-grid,
  .work-card-grid.work-card-grid-wide {
    align-items: stretch;
  }

  .work-card-grid-wide .work-card,
  .work-card-grid .work-card {
    height: 100%;
  }

  .work-card-grid-wide .work-card a,
  .work-card-grid .work-card a {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
  }

  .work-card-grid-wide .work-card-body {
    grid-template-rows: auto 5.8rem 8.25rem minmax(4.75rem, auto) !important;
    height: 100%;
  }

  .work-card-grid-wide .work-card-body h3,
  .work-card-grid-wide .work-card h3 {
    height: 5.8rem !important;
    min-height: 5.8rem !important;
    max-height: 5.8rem !important;
    -webkit-line-clamp: 3;
  }

  .work-card-grid-wide .work-card-body p,
  .work-card-grid-wide .work-card p {
    height: 8.25rem !important;
    min-height: 8.25rem !important;
    max-height: 8.25rem !important;
    -webkit-line-clamp: 5;
  }

  .work-card-grid-wide .work-card-meta,
  .work-card-grid-wide .work-card-tags {
    align-self: start !important;
    min-height: 4.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .home-work-section .work-card-body {
    grid-template-rows: auto 4.25rem 5.8rem minmax(4.25rem, auto) !important;
  }

  .home-work-section .work-card h3,
  .home-work-section .work-card-body h3 {
    height: 4.25rem !important;
    min-height: 4.25rem !important;
    max-height: 4.25rem !important;
  }

  .home-work-section .work-card p,
  .home-work-section .work-card-body p {
    height: 5.8rem !important;
    min-height: 5.8rem !important;
    max-height: 5.8rem !important;
  }

  .secret-sauce-section {
    height: 228vh;
    overflow: hidden;
  }

  .secret-sauce-block {
    top: 86px;
    height: min(680px, calc(100vh - 86px));
    min-height: 520px;
  }

  .secret-scroll {
    font-size: clamp(4.1rem, 8.4vw, 8.2rem);
  }
}

@media (max-width: 760px) {
  .filter-controls {
    gap: 1rem;
    margin-bottom: 0.25rem;
  }

  .filter-controls .filter-row {
    display: none;
  }

  .filter-select-wrap {
    display: grid;
    gap: 0.45rem;
    width: 100%;
  }

  .filter-select-wrap span {
    color: var(--brand-green);
    font-family: "ABC Diatype Semi-Mono", "JetBrains Mono", monospace;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .filter-select {
    width: 100%;
    min-height: 3.7rem;
    border: 1px solid rgba(0, 255, 157, 0.44);
    border-radius: 999px;
    padding: 0 3rem 0 1.15rem;
    color: var(--text);
    background:
      linear-gradient(45deg, transparent 50%, rgba(246,255,248,0.8) 50%) calc(100% - 1.35rem) 1.55rem / 0.48rem 0.48rem no-repeat,
      linear-gradient(135deg, rgba(246,255,248,0.8) 50%, transparent 50%) calc(100% - 1.02rem) 1.55rem / 0.48rem 0.48rem no-repeat,
      linear-gradient(135deg, rgba(0,255,157,0.16), rgba(0,114,255,0.08)),
      rgba(255,255,255,0.06);
    box-shadow: 0 18px 55px rgba(0, 255, 157, 0.08);
    font: 900 1rem/1 "ABC Diatype", Inter, system-ui, sans-serif;
    appearance: none;
  }

  .filter-select:focus-visible {
    outline: 3px solid rgba(0, 255, 157, 0.34);
    outline-offset: 3px;
  }

  .work-ledger {
    gap: 1.2rem;
  }
}

/* v3.6 people animation correction: keep "The people behind the work" copy, shorten the dead space, and move the desktop secret-sauce phrase fully across the viewport. */
.people-page-intro {
  padding-top: clamp(44px, 6vw, 78px);
}

.people-page-grid {
  padding-top: 0;
}

@media (min-width: 1081px) {
  .secret-sauce-section {
    height: 156vh !important;
    margin: 0;
    overflow: hidden;
  }

  .secret-sauce-block {
    top: 82px !important;
    height: min(560px, calc(100vh - 82px)) !important;
    min-height: 460px !important;
  }

  .secret-scroll {
    font-size: clamp(3.6rem, 7.35vw, 7.2rem) !important;
    transition: transform 90ms linear !important;
  }

  .secret-sauce-section + .section-tight {
    padding-top: clamp(34px, 4.2vw, 58px) !important;
  }

  .secret-sauce-section + .people-page-intro {
    padding-top: clamp(34px, 4vw, 56px) !important;
  }
}

@media (max-width: 1080px) {
  .secret-sauce-section + .section-tight,
  .secret-sauce-section + .people-page-intro {
    padding-top: clamp(38px, 8vw, 58px) !important;
  }
}

/* v3.6 QA pass: restore people section title, reduce secret-sauce dead space, and lock card meta baselines. */
@media (min-width: 1081px) {
  .secret-sauce-section {
    height: 176vh !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
  }

  .secret-sauce-block {
    top: 86px !important;
    height: min(620px, calc(100vh - 86px)) !important;
    min-height: 500px !important;
  }

  .secret-scroll {
    font-size: clamp(3.85rem, 7.7vw, 7.45rem) !important;
  }

  .people-feature {
    padding-top: clamp(26px, 3.2vw, 52px) !important;
  }

  .work-card-grid,
  .work-card-grid.work-card-grid-wide {
    align-items: stretch !important;
    grid-auto-rows: 1fr;
  }

  .work-card-grid .work-card,
  .work-card-grid.work-card-grid-wide .work-card {
    height: 100% !important;
  }

  .work-card-grid .work-card a,
  .work-card-grid.work-card-grid-wide .work-card a {
    display: grid !important;
    grid-template-rows: auto 1fr !important;
    height: 100% !important;
  }

  .work-card-grid .work-card-body,
  .work-card-grid.work-card-grid-wide .work-card-body {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 0 !important;
  }

  .work-card-grid.work-card-grid-wide .work-card-body h3,
  .work-card-grid.work-card-grid-wide .work-card h3 {
    flex: 0 0 auto;
    height: 5.8rem !important;
    min-height: 5.8rem !important;
    max-height: 5.8rem !important;
    margin-bottom: 0 !important;
  }

  .work-card-grid.work-card-grid-wide .work-card-body p,
  .work-card-grid.work-card-grid-wide .work-card p {
    flex: 0 0 auto;
    height: 8.25rem !important;
    min-height: 8.25rem !important;
    max-height: 8.25rem !important;
    margin-bottom: 1rem !important;
  }

  .work-card-grid.work-card-grid-wide .work-card-meta,
  .work-card-grid.work-card-grid-wide .work-card-tags {
    flex: 0 0 auto;
    margin-top: auto !important;
    min-height: 4.9rem !important;
    padding-top: 1rem !important;
    align-content: flex-start !important;
    align-items: flex-start !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  }

  .home-work-section .work-card-body h3,
  .home-work-section .work-card h3,
  .case-related-section .work-card-body h3,
  .case-related-section .work-card h3 {
    flex: 0 0 auto;
    height: 4.35rem !important;
    min-height: 4.35rem !important;
    max-height: 4.35rem !important;
  }

  .home-work-section .work-card-body p,
  .home-work-section .work-card p,
  .case-related-section .work-card-body p,
  .case-related-section .work-card p {
    flex: 0 0 auto;
    height: 5.8rem !important;
    min-height: 5.8rem !important;
    max-height: 5.8rem !important;
    margin-bottom: 1rem !important;
  }

  .home-work-section .work-card-tags,
  .home-work-section .work-card-meta,
  .case-related-section .work-card-tags,
  .case-related-section .work-card-meta {
    flex: 0 0 auto;
    margin-top: auto !important;
    min-height: 4.55rem !important;
    padding-top: 1rem !important;
    align-content: flex-start !important;
    align-items: flex-start !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  }
}

/* v3.6 people animation QA: separate the secret-sauce animation from the People section, show the full desktop phrase, and remove the dead scroll gap. */
.secret-sauce-section[data-secret-mode="full-phrase"] {
  height: auto !important;
  padding: clamp(30px, 4.8vw, 58px) 0 clamp(22px, 3.6vw, 42px) !important;
  margin: 0 !important;
  overflow: hidden;
}

.secret-sauce-section[data-secret-mode="full-phrase"] .secret-sauce-block {
  position: relative !important;
  top: auto !important;
  height: clamp(300px, 34vw, 500px) !important;
  min-height: 0 !important;
  padding: clamp(2rem, 4vw, 4rem) clamp(1rem, 3vw, 3rem);
  overflow: hidden;
}

.secret-sauce-section[data-secret-mode="full-phrase"] .secret-scroll {
  width: min(94vw, 1640px);
  max-width: calc(100vw - 2rem);
  white-space: normal !important;
  text-align: center;
  text-wrap: balance;
  font-size: clamp(3.4rem, 7.1vw, 7.35rem) !important;
  line-height: 0.84;
  letter-spacing: -0.07em;
  transform: none !important;
  transition: none !important;
}

.secret-sauce-section[data-secret-mode="full-phrase"] .secret-circle {
  width: clamp(160px, 23vw, 360px);
  height: clamp(160px, 23vw, 360px);
  animation: secret-orb-drift 9s ease-in-out infinite alternate;
}

.secret-sauce-section[data-secret-mode="full-phrase"] .secret-circle .secret-scroll {
  width: min(94vw, 1640px);
  max-width: calc(100vw - 2rem);
  transform: none !important;
}

.secret-sauce-section[data-secret-mode="full-phrase"] + .people-feature,
.secret-sauce-section[data-secret-mode="full-phrase"] + .people-page-intro,
.secret-sauce-section[data-secret-mode="full-phrase"] + .section-tight {
  padding-top: clamp(22px, 3.8vw, 46px) !important;
}

@keyframes secret-orb-drift {
  0% { transform: translate3d(-4vw, -2%, 0) scale(0.98); }
  45% { transform: translate3d(2vw, 2%, 0) scale(1.04); }
  100% { transform: translate3d(5vw, -1%, 0) scale(1); }
}

@media (max-width: 760px) {
  .secret-sauce-section[data-secret-mode="full-phrase"] {
    padding: 30px 0 28px !important;
  }

  .secret-sauce-section[data-secret-mode="full-phrase"] .secret-sauce-block {
    height: clamp(260px, 78vw, 360px) !important;
    padding: 1.25rem;
  }

  .secret-sauce-section[data-secret-mode="full-phrase"] .secret-scroll {
    width: min(92vw, 26rem);
    font-size: clamp(2.05rem, 10.3vw, 3.25rem) !important;
    line-height: 0.92;
    letter-spacing: -0.058em;
  }

  .secret-sauce-section[data-secret-mode="full-phrase"] .secret-circle {
    animation: none;
  }
}

/* v3.6 final secret-sauce scroll tuning: full phrase travels through desktop view without a long dead gap. */
@media (min-width: 1081px) {
  .secret-sauce-section {
    height: 148vh !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
  }

  .secret-sauce-block {
    top: 86px !important;
    height: min(560px, calc(100vh - 86px)) !important;
    min-height: 460px !important;
  }

  .secret-scroll {
    font-size: clamp(3.55rem, 7.05vw, 6.85rem) !important;
    line-height: 0.86 !important;
    transition: transform 80ms linear !important;
  }

  .secret-sauce-section + .people-feature,
  .secret-sauce-section + .people-page-intro,
  .secret-sauce-section + .section-tight {
    padding-top: clamp(24px, 3.2vw, 44px) !important;
  }
}

/* v3.7 secret-sauce fix: remove the broken text mask, keep the phrase readable, and remove the dead scroll gap before People. */
.secret-sauce-section {
  height: auto !important;
  min-height: 0 !important;
  padding: clamp(18px, 2.7vw, 38px) 0 clamp(10px, 2.2vw, 26px) !important;
  margin: 0 !important;
  overflow: hidden !important;
}

.secret-sauce-block {
  position: relative !important;
  top: auto !important;
  height: clamp(260px, 28vw, 430px) !important;
  min-height: 0 !important;
  display: grid !important;
  place-items: center !important;
  padding: clamp(1.25rem, 3vw, 3rem) clamp(1rem, 3vw, 3rem) !important;
  overflow: hidden !important;
}

.secret-scroll,
.secret-sauce-section .secret-scroll,
.secret-sauce-section[data-secret-mode="static-reveal"] .secret-scroll {
  position: relative !important;
  z-index: 3 !important;
  width: min(94vw, 1480px) !important;
  max-width: calc(100vw - 2rem) !important;
  margin: 0 auto !important;
  white-space: normal !important;
  text-align: center !important;
  text-wrap: balance;
  font-size: clamp(3rem, 6.05vw, 6.15rem) !important;
  line-height: 0.88 !important;
  letter-spacing: -0.065em !important;
  transform: none !important;
  transition: none !important;
}

.secret-circle,
.secret-sauce-section[data-secret-mode="static-reveal"] .secret-circle {
  position: absolute !important;
  inset: auto !important;
  z-index: 1 !important;
  width: clamp(170px, 22vw, 360px) !important;
  height: clamp(170px, 22vw, 360px) !important;
  border-radius: 999px !important;
  overflow: visible !important;
  background: #70c7c3 !important;
  opacity: 0.96 !important;
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.22), 0 0 120px rgba(112, 199, 195, 0.2) !important;
  animation: secret-orb-float 8s ease-in-out infinite alternate;
}

.secret-circle .secret-scroll,
.secret-sauce-section[data-secret-mode="static-reveal"] .secret-circle .secret-scroll {
  display: none !important;
}

.secret-sauce-section + .people-feature,
.secret-sauce-section + .people-page-intro,
.secret-sauce-section + .section-tight {
  padding-top: clamp(14px, 2.5vw, 34px) !important;
  margin-top: 0 !important;
}

@keyframes secret-orb-float {
  0% { transform: translate3d(-8vw, -3%, 0) scale(0.98); }
  50% { transform: translate3d(0, 2%, 0) scale(1.04); }
  100% { transform: translate3d(8vw, -2%, 0) scale(1); }
}

@media (min-width: 1081px) {
  .secret-sauce-section {
    height: auto !important;
    min-height: 0 !important;
    padding-top: clamp(20px, 2.5vw, 40px) !important;
    padding-bottom: clamp(10px, 2vw, 28px) !important;
  }

  .secret-sauce-block {
    height: clamp(300px, 28vw, 430px) !important;
    min-height: 0 !important;
  }
}

@media (max-width: 760px) {
  .secret-sauce-section {
    padding: 28px 0 24px !important;
  }

  .secret-sauce-block {
    height: clamp(230px, 68vw, 330px) !important;
    padding: 1.1rem !important;
  }

  .secret-scroll,
  .secret-sauce-section .secret-scroll,
  .secret-sauce-section[data-secret-mode="static-reveal"] .secret-scroll {
    width: min(90vw, 25rem) !important;
    max-width: calc(100vw - 2rem) !important;
    font-size: clamp(2rem, 10.2vw, 3.2rem) !important;
    line-height: 0.92 !important;
    letter-spacing: -0.055em !important;
  }

  .secret-circle,
  .secret-sauce-section[data-secret-mode="static-reveal"] .secret-circle {
    width: clamp(140px, 44vw, 205px) !important;
    height: clamp(140px, 44vw, 205px) !important;
    animation: none !important;
  }
}


/* v3.7 final people animation/mobile CTA correction: full secret-sauce phrase, no masking, no long scroll gap, and no duplicate home CTA block. */
.secret-sauce-section.secret-sauce-section--fixed {
  height: auto !important;
  min-height: 0 !important;
  padding: clamp(38px, 5vw, 72px) 0 clamp(18px, 2.6vw, 34px) !important;
  margin: 0 !important;
  overflow: hidden !important;
}

.secret-sauce-section.secret-sauce-section--fixed .secret-sauce-block {
  position: relative !important;
  top: auto !important;
  height: clamp(300px, 30vw, 470px) !important;
  min-height: 0 !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  padding: clamp(1.5rem, 3.6vw, 4rem) clamp(1rem, 3vw, 3rem) !important;
}

.secret-sauce-section.secret-sauce-section--fixed .secret-scroll {
  position: relative !important;
  z-index: 2 !important;
  width: min(92vw, 1420px) !important;
  max-width: calc(100vw - 2rem) !important;
  white-space: normal !important;
  text-align: center !important;
  text-wrap: balance;
  font-size: clamp(3.7rem, 7vw, 7.2rem) !important;
  line-height: 0.86 !important;
  letter-spacing: -0.068em !important;
  transform: none !important;
  transition: none !important;
}

.secret-sauce-section.secret-sauce-section--fixed .secret-circle {
  z-index: 1 !important;
  width: clamp(170px, 25vw, 380px) !important;
  height: clamp(170px, 25vw, 380px) !important;
  opacity: 0.92 !important;
  pointer-events: none;
  animation: secret-orb-drift-v37 8.5s ease-in-out infinite alternate !important;
}

.secret-sauce-section.secret-sauce-section--fixed .secret-circle .secret-scroll {
  display: none !important;
}

.secret-sauce-section.secret-sauce-section--fixed + .people-feature,
.secret-sauce-section.secret-sauce-section--fixed + .people-page-intro,
.secret-sauce-section.secret-sauce-section--fixed + .section-tight {
  padding-top: clamp(12px, 2.2vw, 28px) !important;
}

@keyframes secret-orb-drift-v37 {
  0% { transform: translate3d(-13vw, -3%, 0) scale(0.96); }
  50% { transform: translate3d(0, 2%, 0) scale(1.04); }
  100% { transform: translate3d(13vw, -1%, 0) scale(1); }
}

@media (min-width: 1081px) {
  .secret-sauce-section.secret-sauce-section--fixed {
    padding-bottom: clamp(10px, 1.4vw, 24px) !important;
  }
}

@media (max-width: 760px) {
  .secret-sauce-section.secret-sauce-section--fixed {
    padding: 28px 0 18px !important;
  }

  .secret-sauce-section.secret-sauce-section--fixed .secret-sauce-block {
    height: auto !important;
    min-height: 260px !important;
    padding: 2rem 1rem !important;
  }

  .secret-sauce-section.secret-sauce-section--fixed .secret-scroll {
    width: min(90vw, 24rem) !important;
    font-size: clamp(2.15rem, 10.5vw, 3.15rem) !important;
    line-height: 0.94 !important;
    letter-spacing: -0.058em !important;
  }

  .secret-sauce-section.secret-sauce-section--fixed .secret-circle {
    width: clamp(145px, 48vw, 205px) !important;
    height: clamp(145px, 48vw, 205px) !important;
    animation: none !important;
  }
}

/* v3.7 correction: readable secret-sauce marquee, orb behind text, no dead scroll gap, and single mobile CTA. */
.secret-sauce-section.secret-sauce-marquee {
  height: auto !important;
  min-height: 0 !important;
  padding: clamp(24px, 3.8vw, 46px) 0 clamp(8px, 1.8vw, 22px) !important;
  margin: 0 !important;
  overflow: hidden !important;
}

.secret-sauce-section.secret-sauce-marquee .secret-sauce-block {
  position: relative !important;
  top: auto !important;
  height: clamp(280px, 27vw, 420px) !important;
  min-height: 0 !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  padding: clamp(1.5rem, 3vw, 3rem) 0 !important;
  background:
    radial-gradient(circle at 76% 26%, rgba(0, 114, 255, 0.18), transparent 28rem),
    linear-gradient(120deg, #0b3b27 0%, #0d4a34 44%, #07364a 100%) !important;
}

.secret-sauce-section.secret-sauce-marquee .secret-circle {
  position: absolute !important;
  inset: auto !important;
  z-index: 0 !important;
  width: clamp(160px, 23vw, 380px) !important;
  height: clamp(160px, 23vw, 380px) !important;
  border-radius: 999px !important;
  overflow: visible !important;
  background: rgba(112, 199, 195, 0.94) !important;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.30), 0 0 80px rgba(112, 199, 195, 0.18) !important;
  pointer-events: none !important;
  animation: secret-circle-float-v37 8s ease-in-out infinite alternate;
}

.secret-sauce-section.secret-sauce-marquee .secret-marquee-track {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  width: max-content;
  min-width: max-content;
  will-change: transform;
  animation: secret-marquee-v37 22s linear infinite;
}

.secret-sauce-section.secret-sauce-marquee .secret-marquee-track span {
  display: block;
  white-space: nowrap;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -0.068em;
  line-height: 0.88;
  font-size: clamp(3.35rem, 5.75vw, 6rem);
  color: var(--text);
  text-shadow: 0 14px 60px rgba(0, 0, 0, 0.24);
}

.secret-sauce-section.secret-sauce-marquee + .people-feature,
.secret-sauce-section.secret-sauce-marquee + .people-page-intro,
.secret-sauce-section.secret-sauce-marquee + .section-tight {
  padding-top: clamp(24px, 3.2vw, 42px) !important;
}

@keyframes secret-marquee-v37 {
  0% { transform: translate3d(12vw, 0, 0); }
  100% { transform: translate3d(calc(-33.333% - 2rem), 0, 0); }
}

@keyframes secret-circle-float-v37 {
  0% { transform: translate3d(-7vw, -2%, 0) scale(0.98); }
  50% { transform: translate3d(1vw, 2%, 0) scale(1.04); }
  100% { transform: translate3d(7vw, -1%, 0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .secret-sauce-section.secret-sauce-marquee .secret-marquee-track,
  .secret-sauce-section.secret-sauce-marquee .secret-circle {
    animation: none !important;
  }
}

@media (max-width: 760px) {
  .secret-sauce-section.secret-sauce-marquee {
    padding: 22px 0 14px !important;
  }

  .secret-sauce-section.secret-sauce-marquee .secret-sauce-block {
    height: clamp(230px, 62vw, 300px) !important;
    padding: 1.25rem !important;
  }

  .secret-sauce-section.secret-sauce-marquee .secret-circle {
    width: clamp(140px, 52vw, 230px) !important;
    height: clamp(140px, 52vw, 230px) !important;
    animation: none !important;
  }

  .secret-sauce-section.secret-sauce-marquee .secret-marquee-track {
    width: 100%;
    min-width: 0;
    justify-content: center;
    animation: none !important;
    transform: none !important;
  }

  .secret-sauce-section.secret-sauce-marquee .secret-marquee-track span {
    width: min(92vw, 28rem);
    white-space: normal;
    text-align: center;
    text-wrap: balance;
    font-size: clamp(2.25rem, 11vw, 3.45rem);
    line-height: 0.92;
    letter-spacing: -0.058em;
  }

  .secret-sauce-section.secret-sauce-marquee .secret-marquee-track span:not(:first-child) {
    display: none;
  }

  .home-work-section + .secret-sauce-section.secret-sauce-marquee,
  .secret-sauce-section.secret-sauce-marquee + .people-feature,
  .secret-sauce-section.secret-sauce-marquee + .people-page-intro,
  .secret-sauce-section.secret-sauce-marquee + .section-tight {
    padding-top: 22px !important;
  }
}

/* v3.8 secret-sauce redesign: no ticker, no masking, no sticky gap. The full phrase stays visible while a soft orb and word rhythm create motion. */
.secret-sauce-section.secret-sauce-reveal {
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: clamp(44px, 6vw, 86px) 0 clamp(28px, 4vw, 54px) !important;
  overflow: clip !important;
  background:
    radial-gradient(circle at 70% 18%, rgba(0, 114, 255, 0.18), transparent 30rem),
    radial-gradient(circle at 24% 80%, rgba(0, 255, 157, 0.10), transparent 26rem),
    linear-gradient(120deg, #0a3a27 0%, #0d4b35 45%, #07364b 100%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.secret-sauce-section.secret-sauce-reveal .secret-sauce-block {
  position: relative !important;
  top: auto !important;
  isolation: isolate;
  width: min(100%, 1680px) !important;
  height: auto !important;
  min-height: clamp(300px, 34vw, 560px) !important;
  margin: 0 auto !important;
  padding: clamp(2rem, 4vw, 5rem) clamp(1.25rem, 5vw, 6rem) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(1.15rem, 2vw, 2rem) !important;
  overflow: visible !important;
}

.secret-sauce-section.secret-sauce-reveal .secret-reveal-orb {
  position: absolute;
  z-index: -1;
  width: clamp(175px, 24vw, 430px);
  height: clamp(175px, 24vw, 430px);
  border-radius: 999px;
  background: #70c7c3;
  opacity: 0.88;
  box-shadow:
    0 42px 140px rgba(0, 0, 0, 0.32),
    0 0 120px rgba(112, 199, 195, 0.24);
  transform: translate3d(-18vw, -6%, 0) scale(0.9);
  animation: secret-spotlight-orb-v38 8.5s cubic-bezier(.65, 0, .35, 1) infinite alternate;
  pointer-events: none;
}

.secret-sauce-section.secret-sauce-reveal .secret-reveal-glow {
  position: absolute;
  inset: 13% 9%;
  z-index: -2;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 255, 157, 0.16), rgba(0, 114, 255, 0.13));
  filter: blur(60px);
  opacity: 0.75;
  pointer-events: none;
}

.secret-sauce-section.secret-sauce-reveal .secret-reveal-line {
  position: relative;
  z-index: 1;
  width: min(96vw, 1420px);
  max-width: calc(100vw - 2rem);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: clamp(0.16em, 1.2vw, 0.24em);
  row-gap: 0.02em;
  color: var(--text);
  text-align: center;
  text-transform: uppercase;
  font-size: clamp(4rem, 7.1vw, 9.25rem);
  font-weight: 900;
  letter-spacing: -0.072em;
  line-height: 0.84;
  text-wrap: balance;
  text-shadow: 0 16px 70px rgba(0, 0, 0, 0.28);
}

.secret-sauce-section.secret-sauce-reveal .secret-reveal-word {
  display: inline-block;
  transform: translate3d(0, 0, 0);
  opacity: 0.96;
  will-change: transform, opacity;
  animation: secret-word-breathe-v38 7.2s ease-in-out infinite;
  animation-delay: calc(var(--word-index) * 140ms);
}

.secret-sauce-section.secret-sauce-reveal .secret-reveal-rule {
  position: relative;
  width: min(760px, 58vw);
  height: 2px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.secret-sauce-section.secret-sauce-reveal .secret-reveal-rule::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 255, 157, 0), rgba(0, 255, 157, 0.95), rgba(0, 114, 255, 0.95), rgba(0, 114, 255, 0));
  transform: translateX(-100%);
  animation: secret-rule-scan-v38 4.8s ease-in-out infinite;
}

.secret-sauce-section.secret-sauce-reveal + .people-feature,
.secret-sauce-section.secret-sauce-reveal + .people-page-intro,
.secret-sauce-section.secret-sauce-reveal + .section-tight {
  padding-top: clamp(22px, 3vw, 44px) !important;
  margin-top: 0 !important;
}

@keyframes secret-spotlight-orb-v38 {
  0% { transform: translate3d(-22vw, -8%, 0) scale(0.9); }
  42% { transform: translate3d(-2vw, 4%, 0) scale(1.04); }
  100% { transform: translate3d(22vw, -4%, 0) scale(0.94); }
}

@keyframes secret-word-breathe-v38 {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.94; }
  35% { transform: translate3d(0, -0.045em, 0); opacity: 1; }
  62% { transform: translate3d(0, 0.018em, 0); opacity: 0.98; }
}

@keyframes secret-rule-scan-v38 {
  0%, 18% { transform: translateX(-100%); }
  55% { transform: translateX(0%); }
  82%, 100% { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
  .secret-sauce-section.secret-sauce-reveal .secret-reveal-orb,
  .secret-sauce-section.secret-sauce-reveal .secret-reveal-word,
  .secret-sauce-section.secret-sauce-reveal .secret-reveal-rule::after {
    animation: none !important;
  }
}

@media (max-width: 900px) {
  .secret-sauce-section.secret-sauce-reveal {
    padding: 34px 0 24px !important;
  }

  .secret-sauce-section.secret-sauce-reveal .secret-sauce-block {
    min-height: clamp(250px, 64vw, 360px) !important;
    padding: 2.35rem 1.25rem !important;
  }

  .secret-sauce-section.secret-sauce-reveal .secret-reveal-line {
    width: min(92vw, 34rem);
    max-width: calc(100vw - 2rem);
    font-size: clamp(2.55rem, 12vw, 4.8rem);
    line-height: 0.9;
    letter-spacing: -0.06em;
  }

  .secret-sauce-section.secret-sauce-reveal .secret-reveal-orb {
    width: clamp(150px, 46vw, 240px);
    height: clamp(150px, 46vw, 240px);
    transform: translate3d(0, 0, 0) scale(1);
    animation: secret-spotlight-orb-mobile-v38 7s ease-in-out infinite alternate;
  }

  .secret-sauce-section.secret-sauce-reveal .secret-reveal-rule {
    width: min(78vw, 25rem);
  }

  .secret-sauce-section.secret-sauce-reveal + .people-feature,
  .secret-sauce-section.secret-sauce-reveal + .people-page-intro,
  .secret-sauce-section.secret-sauce-reveal + .section-tight {
    padding-top: 24px !important;
  }
}

@keyframes secret-spotlight-orb-mobile-v38 {
  0% { transform: translate3d(-10vw, -4%, 0) scale(0.96); }
  100% { transform: translate3d(10vw, 4%, 0) scale(1.02); }
}

/* v3.9 people animation refinement: slightly more leading on the secret-sauce phrase without changing the animation model. */
.secret-sauce-section.secret-sauce-reveal .secret-reveal-line {
  line-height: 0.92 !important;
  row-gap: 0.06em !important;
}

@media (max-width: 900px) {
  .secret-sauce-section.secret-sauce-reveal .secret-reveal-line {
    line-height: 0.98 !important;
    row-gap: 0.08em !important;
  }
}

/* v3.9 secret sauce + work ordering QA: more readable leading, mobile-safe composition, tighter handoff to People, and steadier card baselines. */
.secret-sauce-section.secret-sauce-reveal {
  padding-top: clamp(36px, 4.6vw, 68px) !important;
  padding-bottom: clamp(20px, 2.8vw, 38px) !important;
}

.secret-sauce-section.secret-sauce-reveal .secret-sauce-block {
  min-height: clamp(230px, 24vw, 405px) !important;
  gap: clamp(1rem, 1.45vw, 1.55rem) !important;
}

.secret-sauce-section.secret-sauce-reveal .secret-reveal-line {
  line-height: 1.02 !important;
  row-gap: 0.075em !important;
  letter-spacing: -0.064em !important;
}

.secret-sauce-section.secret-sauce-reveal + .people-feature,
.secret-sauce-section.secret-sauce-reveal + .people-page-intro,
.secret-sauce-section.secret-sauce-reveal + .section-tight {
  padding-top: clamp(16px, 2vw, 30px) !important;
}

.work-card-grid.work-card-grid-wide .work-card a,
.work-ledger .work-card a {
  height: 100%;
}

.work-card-grid.work-card-grid-wide .work-card-body,
.work-ledger .work-card-body {
  display: grid !important;
  grid-template-rows: auto minmax(5.9rem, auto) minmax(9.25rem, 1fr) auto;
  align-content: start;
}

.work-card-grid.work-card-grid-wide .work-card-body h3,
.work-ledger .work-card-body h3 {
  min-height: 5.9rem !important;
  align-self: start;
}

.work-card-grid.work-card-grid-wide .work-card-body p,
.work-ledger .work-card-body p {
  min-height: 9.25rem !important;
}

.work-card-grid.work-card-grid-wide .work-card-meta,
.work-card-grid.work-card-grid-wide .work-card-tags,
.work-ledger .work-card-meta,
.work-ledger .work-card-tags {
  align-self: end;
  margin-top: 0 !important;
  padding-top: 1.25rem !important;
}

.home-work-section .work-card-body,
.case-related-section .work-card-body {
  display: grid !important;
  grid-template-rows: auto minmax(4.8rem, auto) minmax(7.25rem, 1fr) auto;
}

.home-work-section .work-card h3,
.home-work-section .work-card-body h3,
.case-related-section .work-card h3,
.case-related-section .work-card-body h3 {
  min-height: 4.8rem !important;
}

.home-work-section .work-card p,
.home-work-section .work-card-body p,
.case-related-section .work-card p,
.case-related-section .work-card-body p {
  min-height: 7.25rem !important;
}

.home-work-section .work-card-tags,
.home-work-section .work-card-meta,
.case-related-section .work-card-tags,
.case-related-section .work-card-meta {
  align-self: end;
  margin-top: 0 !important;
  padding-top: 1.1rem !important;
}

@media (max-width: 900px) {
  .secret-sauce-section.secret-sauce-reveal {
    padding: 30px 0 18px !important;
  }

  .secret-sauce-section.secret-sauce-reveal .secret-sauce-block {
    min-height: 0 !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 2.15rem 1.25rem 2.05rem !important;
    gap: 1rem !important;
  }

  .secret-sauce-section.secret-sauce-reveal .secret-reveal-line {
    display: block !important;
    width: min(100%, 35rem) !important;
    max-width: 100% !important;
    margin: 0 !important;
    text-align: left !important;
    font-size: clamp(2.9rem, 13.5vw, 4.7rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.055em !important;
    text-wrap: balance;
  }

  .secret-sauce-section.secret-sauce-reveal .secret-reveal-word {
    display: inline !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    margin-right: 0.12em;
  }

  .secret-sauce-section.secret-sauce-reveal .secret-reveal-orb {
    z-index: -1;
    width: clamp(130px, 42vw, 210px) !important;
    height: clamp(130px, 42vw, 210px) !important;
    left: auto !important;
    right: -7vw !important;
    top: 0.45rem !important;
    opacity: 0.38 !important;
    animation: secret-spotlight-orb-mobile-v39 7.5s ease-in-out infinite alternate !important;
  }

  .secret-sauce-section.secret-sauce-reveal .secret-reveal-glow {
    inset: 8% -8% 4% 22% !important;
    opacity: 0.5 !important;
  }

  .secret-sauce-section.secret-sauce-reveal .secret-reveal-rule {
    width: min(74vw, 18rem) !important;
    margin-left: 0 !important;
  }

  .secret-sauce-section.secret-sauce-reveal + .people-feature,
  .secret-sauce-section.secret-sauce-reveal + .people-page-intro,
  .secret-sauce-section.secret-sauce-reveal + .section-tight {
    padding-top: 18px !important;
  }

  .work-card-grid.work-card-grid-wide .work-card-body,
  .work-ledger .work-card-body,
  .home-work-section .work-card-body,
  .case-related-section .work-card-body {
    display: flex !important;
    min-height: 0 !important;
  }

  .work-card-grid.work-card-grid-wide .work-card-body h3,
  .work-ledger .work-card-body h3,
  .home-work-section .work-card h3,
  .home-work-section .work-card-body h3,
  .case-related-section .work-card h3,
  .case-related-section .work-card-body h3,
  .work-card-grid.work-card-grid-wide .work-card-body p,
  .work-ledger .work-card-body p,
  .home-work-section .work-card p,
  .home-work-section .work-card-body p,
  .case-related-section .work-card p,
  .case-related-section .work-card-body p {
    min-height: 0 !important;
  }
}

@keyframes secret-spotlight-orb-mobile-v39 {
  0% { transform: translate3d(-2vw, -3%, 0) scale(0.95); }
  100% { transform: translate3d(4vw, 5%, 0) scale(1.04); }
}

/* v3.9 final QA: increase secret-sauce leading, make mobile readable, and keep public/non-confidential work visuals interspersed. */
.secret-sauce-section.secret-sauce-reveal .secret-reveal-line {
  line-height: 1.02 !important;
  row-gap: 0.12em !important;
  column-gap: clamp(0.18em, 1.35vw, 0.28em) !important;
}

.secret-sauce-section.secret-sauce-reveal .secret-reveal-word {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .secret-sauce-section.secret-sauce-reveal {
    padding: 30px 0 18px !important;
  }

  .secret-sauce-section.secret-sauce-reveal .secret-sauce-block {
    min-height: 0 !important;
    padding: 2rem 1rem 1.7rem !important;
    gap: 1rem !important;
  }

  .secret-sauce-section.secret-sauce-reveal .secret-reveal-line {
    width: min(90vw, 28rem) !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    row-gap: 0.08em !important;
    font-size: clamp(2.75rem, 12.5vw, 4.35rem) !important;
    line-height: 1.06 !important;
    letter-spacing: -0.058em !important;
    text-align: center !important;
  }

  .secret-sauce-section.secret-sauce-reveal .secret-reveal-word {
    display: block !important;
    white-space: nowrap !important;
  }

  .secret-sauce-section.secret-sauce-reveal .secret-reveal-orb {
    width: clamp(135px, 38vw, 210px) !important;
    height: clamp(135px, 38vw, 210px) !important;
    opacity: 0.42 !important;
    animation: secret-spotlight-orb-mobile-v39 7.5s ease-in-out infinite alternate !important;
  }

  .secret-sauce-section.secret-sauce-reveal .secret-reveal-rule {
    width: min(64vw, 18rem) !important;
  }
}

@keyframes secret-spotlight-orb-mobile-v39 {
  0% { transform: translate3d(-8vw, -6%, 0) scale(0.94); }
  100% { transform: translate3d(8vw, 4%, 0) scale(1.02); }
}


/* v4.1 mobile work-card regression fix: keep card content stacked after baseline-alignment overrides. */
@media (max-width: 900px) {
  .work-card-grid.work-card-grid-wide .work-card a,
  .work-ledger .work-card a,
  .home-work-section .work-card a,
  .case-related-section .work-card a,
  .work-card-grid.random-list .work-card a {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    height: auto !important;
    min-width: 0 !important;
  }

  .work-card-grid.work-card-grid-wide .work-card-body,
  .work-ledger .work-card-body,
  .home-work-section .work-card-body,
  .case-related-section .work-card-body,
  .work-card-grid.random-list .work-card-body {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 0.78rem !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    grid-template-rows: none !important;
    align-content: start !important;
    overflow: visible !important;
  }

  .work-card-grid.work-card-grid-wide .work-card-body .eyebrow,
  .work-ledger .work-card-body .eyebrow,
  .work-card-grid.random-list .work-card-kicker,
  .home-work-section .work-card-kicker,
  .case-related-section .work-card-kicker {
    width: 100% !important;
    max-width: 100% !important;
  }

  .work-card-grid.work-card-grid-wide .work-card-body h3,
  .work-ledger .work-card-body h3,
  .home-work-section .work-card h3,
  .home-work-section .work-card-body h3,
  .case-related-section .work-card h3,
  .case-related-section .work-card-body h3,
  .work-card-grid.random-list .work-card h3,
  .work-card-grid.random-list .work-card-body h3 {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    text-wrap: balance;
  }

  .work-card-grid.work-card-grid-wide .work-card-body p,
  .work-ledger .work-card-body p,
  .home-work-section .work-card p,
  .home-work-section .work-card-body p,
  .case-related-section .work-card p,
  .case-related-section .work-card-body p,
  .work-card-grid.random-list .work-card p,
  .work-card-grid.random-list .work-card-body p {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .work-card-grid.work-card-grid-wide .work-card-meta,
  .work-ledger .work-card-meta,
  .home-work-section .work-card-tags,
  .home-work-section .work-card-meta,
  .case-related-section .work-card-tags,
  .case-related-section .work-card-meta,
  .work-card-grid.random-list .work-card-tags,
  .work-card-grid.random-list .work-card-meta {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-self: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-top: 0.95rem !important;
    padding-top: 0.9rem !important;
    gap: 0.45rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    overflow: visible !important;
  }

  .work-card-grid.work-card-grid-wide .work-card-meta span,
  .work-ledger .work-card-meta span,
  .work-card-tags .tag,
  .work-card-meta .tag {
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
}

/* v4.2 mobile secret-sauce polish: center the scanning rule without changing the desktop orb animation. */
@media (max-width: 900px) {
  .secret-sauce-section.secret-sauce-reveal .secret-sauce-block {
    align-items: center !important;
  }

  .secret-sauce-section.secret-sauce-reveal .secret-reveal-rule {
    margin-left: auto !important;
    margin-right: auto !important;
    margin-inline: auto !important;
    align-self: center !important;
  }
}

/* v4.4 branded custom 404 page: branded route recovery screen for Amplify 404 rewrites. */
/* v4.9 404 route layout polish: fix route cards, debugger code, and message spacing. */
.not-found-hero {
  min-height: min(760px, calc(100vh - 96px));
  display: grid;
  align-items: center;
  overflow: hidden;
}

.not-found-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.78fr);
  gap: clamp(2.2rem, 6vw, 5rem);
  align-items: center;
}

.not-found-copy {
  position: relative;
  z-index: 2;
}

.not-found-copy .display-lg {
  max-width: 11ch;
}

.not-found-console {
  border-radius: 34px;
  overflow: hidden;
  min-height: 480px;
  transform: rotate(1.05deg);
}

.not-found-console::before {
  content: "";
  position: absolute;
  inset: auto -25% -25% auto;
  width: 65%;
  height: 65%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 255, 157, 0.24), transparent 68%);
  filter: blur(22px);
  pointer-events: none;
}

.not-found-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 310px;
  margin: clamp(1.2rem, 3vw, 2rem);
  padding: clamp(1rem, 2.2vw, 1.35rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(rgba(255,255,255,0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.065) 1px, transparent 1px),
    radial-gradient(circle at 22% 22%, rgba(0, 255, 157, 0.22), transparent 34%),
    radial-gradient(circle at 78% 76%, rgba(0, 114, 255, 0.24), transparent 38%),
    rgba(3, 12, 18, 0.72);
  background-size: 46px 46px, 46px 46px, auto, auto, auto;
}

.not-found-message {
  position: relative;
  z-index: 4;
  max-width: 27ch;
  margin: 0 0 0.55rem;
  color: rgba(247, 255, 249, 0.93);
  font-size: clamp(0.82rem, 1.45vw, 1.03rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.7);
}

.not-found-code,
.not-found-number {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.015em;
  width: 100%;
  color: rgba(246, 255, 248, 0.96);
  font-size: clamp(7.5rem, 14vw, 12.5rem);
  font-weight: 950;
  line-height: 0.78;
  letter-spacing: -0.095em;
  text-shadow: 0 0 48px rgba(0, 255, 157, 0.22);
}

.not-found-code span,
.not-found-number span {
  display: block;
}

.not-found-orbit {
  position: absolute;
  z-index: 3;
  inset: 23% 19% 11%;
  border: 1px solid rgba(0, 255, 157, 0.28);
  border-radius: 999px;
  animation: not-found-orbit-spin 14s linear infinite;
  pointer-events: none;
}

.not-found-orbit::before,
.not-found-orbit::after,
.not-found-orbit span {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--brand-green);
  box-shadow: 0 0 28px rgba(0, 255, 157, 0.55);
}

.not-found-orbit::before { top: -8px; left: 50%; }
.not-found-orbit::after { right: -8px; top: 50%; background: var(--brand-blue); }
.not-found-orbit span:nth-child(1) { left: -8px; top: 58%; }
.not-found-orbit span:nth-child(2) { bottom: -8px; left: 42%; background: #76fff9; }
.not-found-orbit span:nth-child(3) { top: 18%; right: 10%; opacity: 0.55; }
.not-found-orbit span:nth-child(4) { bottom: 24%; left: 12%; background: var(--brand-blue); opacity: 0.7; }

.not-found-pulse {
  position: absolute;
  z-index: 1;
  inset: 54% auto auto 50%;
  width: min(48%, 260px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0,255,157,0.18), transparent 66%);
  animation: not-found-pulse 3.2s ease-in-out infinite;
  pointer-events: none;
}

.not-found-diagnostics,
.not-found-log {
  display: grid;
  gap: 0;
  padding: 0 clamp(1.2rem, 3vw, 2rem) clamp(1.2rem, 3vw, 2rem);
  color: var(--text-muted);
  font-family: "ABC Diatype Semi-Mono", "JetBrains Mono", "SF Mono", Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.not-found-diagnostics div,
.not-found-log span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 0.74rem 0;
}

.not-found-diagnostics strong {
  color: rgba(235, 255, 239, 0.82);
  font-weight: 850;
  text-align: right;
}

.not-found-routes-section {
  padding-top: 0 !important;
}

.not-found-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.4vw, 1.15rem);
  margin-top: clamp(1.3rem, 3vw, 2rem);
}

.not-found-route,
.not-found-links .ledger-block {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: 0.8rem;
  min-height: 170px;
  padding: clamp(1rem, 1.8vw, 1.25rem);
  border-radius: 24px;
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.not-found-route strong,
.not-found-links .ledger-block strong {
  display: block;
  max-width: 11ch;
  font-size: clamp(1.08rem, 1.65vw, 1.45rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.not-found-route span,
.not-found-links .ledger-block span {
  display: block;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.42;
}

.not-found-route:hover,
.not-found-route:focus-visible,
.not-found-links .ledger-block:hover,
.not-found-links .ledger-block:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(0,255,157,0.46);
  background: rgba(0,255,157,0.06);
  outline: none;
}

@keyframes not-found-orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes not-found-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.78); opacity: 0.36; }
  50% { transform: translate(-50%, -50%) scale(1.08); opacity: 0.72; }
}

@media (max-width: 1100px) {
  .not-found-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .not-found-hero {
    min-height: auto;
  }

  .not-found-grid {
    grid-template-columns: 1fr;
  }

  .not-found-console {
    min-height: 0;
    transform: none;
  }

  .not-found-screen {
    min-height: 250px;
  }

  .not-found-code,
  .not-found-number {
    font-size: clamp(6.4rem, 27vw, 9.5rem);
  }

  .not-found-message {
    max-width: 25ch;
    font-size: 0.82rem;
  }

  .not-found-copy .display-lg {
    max-width: 10ch;
  }
}

@media (max-width: 640px) {
  .not-found-links {
    grid-template-columns: 1fr;
  }

  .not-found-route,
  .not-found-links .ledger-block {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .not-found-orbit,
  .not-found-pulse {
    animation: none !important;
  }
}
