/* ============================================================
   AgentLab / Christoph Hellmuth — Studio Stylesheet
   Matching the exact branding and architectural styling of https://agentlab.framer.ai/
   Load order: tokens.css → motion.css → styles.css
   ============================================================ */

@import url('./design-system/motion.css');

:root {
  --surface: #ffffff;
  --surface-2: #f7f7f7;
  --surface-card: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.92);
  --line: #e6e6e6;
  --line-soft: #efefef;
  --line-bright: #558bfb;
  --ink: #000000;
  --ink-dim: #4d4d4d;
  --ink-faint: #737373;
  --brand: #558bfb;
  --brand-cobalt: #0036fa;
  --brand-bright: #558bfb;
  --brand-ink: #ffffff;
  --brand-glow: rgba(85, 139, 251, 0.2);
  --maxw: 1200px;
  --header-h: 68px;
  --z-header: 50;
  --z-sticky: 60;
  --z-skip: 200;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  background-color: #ffffff;
}

body {
  margin: 0;
  background-color: #ffffff;
  color: #000000;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transform: none !important;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--motion-fast), border-color var(--motion-fast), background-color var(--motion-fast);
}

/* ============================================================
   AgentLab Exposed 1px Architectural Grid Rails & Nodes
   ============================================================ */

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

@media (max-width: 720px) {
  .container {
    padding: 0 20px;
  }
}

/* 8x8 Square Intersection Nodes at Section/Container Rail Crossings */
.section > .container::before,
.section > .container::after,
.statstrip > .container::before,
.statstrip > .container::after,
.blog-hero > .container::before,
.blog-hero > .container::after,
.journey-hero > .container:first-child::before,
.journey-hero > .container:first-child::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 9px;
  height: 9px;
  background: #ffffff;
  border: 1px solid #d4d4d4;
  z-index: 5;
  pointer-events: none;
}

.section > .container::before,
.statstrip > .container::before,
.blog-hero > .container::before,
.journey-hero > .container:first-child::before {
  left: -5px;
}

.section > .container::after,
.statstrip > .container::after,
.blog-hero > .container::after,
.journey-hero > .container:first-child::after {
  right: -5px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #000000;
  color: #ffffff;
  padding: 10px 18px;
  z-index: var(--z-skip);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.skip-link:focus { left: 0; }

/* ============================================================
   AgentLab Signature Eyebrow Tag (Dual-Parallelogram Blue Mark)
   ============================================================ */

.eyebrow, .badge, .tag, .pill, .blog-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: #000000;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0 0 18px;
  width: fit-content;
}

.eyebrow .status-dot,
.badge .status-dot,
.tag .status-dot,
.pill .status-dot {
  display: none;
}

.eyebrow::before,
.badge::before,
.tag::before,
.blog-card-tag::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 10px;
  flex: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='10' viewBox='0 0 18 10' fill='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='18' y1='0' x2='0' y2='0' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%230036FA'/%3E%3Cstop offset='0.55' stop-color='%23558BFB'/%3E%3Cstop offset='1' stop-color='%23C0E2F9'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpolygon points='5,0 18,0 16,4 3,4' fill='url(%23g)'/%3E%3Cpolygon points='2,6 15,6 13,10 0,10' fill='url(%23g)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #558bfb;
  display: inline-block;
}

/* ============================================================
   AgentLab Sharp Rectangular Buttons (border-radius: 0px)
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #000000;
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  padding: 14px 22px;
  border-radius: 0;
  border: 1px solid #000000;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition:
    transform 150ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    opacity 150ms ease;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover:not(:disabled) {
    background: #0036fa;
    border-color: #0036fa;
    color: #ffffff;
  }
}

.btn:active:not(:disabled) {
  transform: scale(0.97);
}

/* Submit button in-flight label morph */
.btn-label-out,
.btn-label-in {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    transform 150ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-label-in {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  pointer-events: none;
}

.btn[data-submitting="true"] .btn-label-out {
  opacity: 0;
  transform: translateY(-8px) scale(0.95);
}

.btn[data-submitting="true"] .btn-label-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.btn-lg {
  padding: 15px 26px;
  font-size: 12px;
}

.btn-sm {
  padding: 10px 16px;
  font-size: 12px;
}

.btn-ghost, .btn-secondary {
  background: #ffffff;
  color: #000000;
  border: 1px solid #e6e6e6;
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover:not(:disabled), .btn-secondary:hover:not(:disabled) {
    background: #f7f7f7;
    border-color: #000000;
    color: #000000;
  }
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   Top Announcement Bar (AgentLab Pitch-Black Shimmer Strip)
   ============================================================ */

.topbar {
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: #ffffff;
  position: relative;
  z-index: calc(var(--z-header) + 1);
}

.topbar .container {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  padding-top: 9px;
  padding-bottom: 9px;
  flex-wrap: wrap;
  border-left-color: rgba(255, 255, 255, 0.12);
  border-right-color: rgba(255, 255, 255, 0.12);
}

.topbar span {
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar .status-dot {
  width: 6px;
  height: 6px;
  background: #558bfb;
  box-shadow: 0 0 8px #558bfb;
}

.topbar a {
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.topbar a:hover {
  background: #558bfb;
  border-color: #558bfb;
  color: #ffffff;
}

/* ============================================================
   AgentLab Full-Width Sticky Architectural Navbar
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo svg, .logo img {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: #000000;
  line-height: 1.15;
  margin: 0;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--ink-dim);
  letter-spacing: 0.05em;
  line-height: 1.15;
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

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

.nav a {
  color: var(--ink-dim);
  font-size: 14px;
  font-weight: 400;
  transition: color var(--motion-fast);
}

.nav a:hover, .nav a[aria-current="page"] {
  color: #000000;
}

.nav a.btn {
  color: #ffffff;
  padding: 11px 18px;
  font-size: 12px;
  font-weight: 500;
}

.nav a.btn:hover {
  color: #ffffff;
}

.theme-toggle { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #000000;
  margin: 4px 0;
  transition: transform var(--motion-normal);
}

/* ============================================================
   Headings & Editorial Serif Display Typography (Merriweather)
   ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: #000000;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.18;
  text-wrap: balance;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
  font-weight: 300;
  margin: 0 0 18px;
  max-width: 22em;
  color: #000000;
}

.section-lede {
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.625;
  max-width: 60ch;
  margin: 0 0 48px;
}

.acc {
  color: #0036fa;
}

/* ============================================================
   Architectural Sections & Alternating Light / Pitch-Black Bands
   ============================================================ */

.section {
  padding: 0;
  position: relative;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.section > .container {
  padding-top: 96px;
  padding-bottom: 96px;
}

.section.alt {
  background: #fafafa;
}

/* Pitch-Black Editorial Section (#problem & .section-dark)
   Matches AgentLab's "THE PROBLEM" full-bleed #000000 grid section */
#problem,
.section-dark {
  background: #000000;
  color: #ffffff;
  border-top: 1px solid #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

#problem > .container,
.section-dark > .container {
  border-left-color: rgba(255, 255, 255, 0.14);
  border-right-color: rgba(255, 255, 255, 0.14);
}

#problem > .container::before,
#problem > .container::after,
.section-dark > .container::before,
.section-dark > .container::after {
  background: #000000;
  border-color: rgba(255, 255, 255, 0.3);
}

#problem .eyebrow,
.section-dark .eyebrow {
  color: #ffffff;
}

#problem .section-title,
#problem h2,
#problem h3,
.section-dark .section-title,
.section-dark h2,
.section-dark h3 {
  color: #ffffff;
}

#problem .section-lede,
.section-dark .section-lede {
  color: rgba(255, 255, 255, 0.68);
}

/* Pain / Problem Symptoms — AgentLab 1px Dark Grid with Isometric 3D Icons */
.symptom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 40px 0 36px;
  padding: 0;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #000000;
}

.symptom-grid li {
  background: #000000;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  padding: 36px 32px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15.5px;
  line-height: 1.625;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  transition: background-color var(--motion-fast);
  position: relative;
}

.symptom-grid li:nth-child(2n) {
  border-right: 0;
}

.symptom-grid li:nth-last-child(-n+2) {
  border-bottom: 0;
}

/* Isometric 3D Cobalt & Slate Animated Icons per Problem Cell (matches AgentLab) */
.symptom-icon-wrap {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  position: relative;
}

.symptom-icon {
  display: block;
  width: 60px;
  height: 60px;
  overflow: visible;
  filter: drop-shadow(0 8px 20px rgba(0, 54, 250, 0.28));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.symptom-grid li:hover {
  background: rgba(85, 139, 251, 0.06);
  color: #ffffff;
}

.symptom-grid li:hover .symptom-icon {
  filter: drop-shadow(0 10px 26px rgba(85, 139, 251, 0.52));
  transform: translateY(-2px) scale(1.04);
}

/* Smooth transitions on individual 3D isometric parts */
.symptom-icon g,
.symptom-icon circle,
.symptom-icon line {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: no-preference) {
  /* Icon 1: Squad Silos — 3D cubes drifting & pulsing */
  .icon-silos .iso-part-front {
    animation: isoFloatFront 4.2s ease-in-out infinite;
  }
  .icon-silos .iso-part-back {
    animation: isoFloatBack 4.2s ease-in-out infinite;
  }
  .icon-silos .iso-part-shard {
    animation: isoFloatShard 3.4s ease-in-out infinite;
  }
  .icon-silos .iso-conduit-line {
    animation: isoDashFlow 2.4s linear infinite;
  }

  /* Icon 2: Design-Code Drift — Split 3D torus oscillating around parity spark */
  .icon-drift .iso-ring-left {
    animation: isoRingLeft 4.5s ease-in-out infinite;
  }
  .icon-drift .iso-ring-right {
    animation: isoRingRight 4.5s ease-in-out infinite;
  }
  .icon-drift .iso-ring-core {
    animation: isoCorePulse 2.6s ease-in-out infinite;
  }
  .icon-drift .iso-connector {
    animation: isoDashFlow 2.4s linear infinite;
  }

  /* Icon 3: Tribal Knowledge — 3D Cobalt arch & signal packet */
  .icon-tribal .iso-arch-top {
    animation: isoArchHover 4s ease-in-out infinite;
  }
  .icon-tribal .iso-loop-bottom {
    animation: isoLoopSubtle 4s ease-in-out infinite;
  }
  .icon-tribal .iso-signal-dot {
    animation: isoSignalTravel 3.2s ease-in-out infinite;
  }

  /* Icon 4: Governance Stack — 3-tier levitating isometric prisms */
  .icon-governance .iso-stack-top {
    animation: isoStackTop 3.6s ease-in-out infinite;
  }
  .icon-governance .iso-stack-mid {
    animation: isoStackMid 3.6s ease-in-out infinite;
  }
  .icon-governance .iso-stack-base {
    animation: isoStackBase 3.6s ease-in-out infinite;
  }

  /* Hover states: snap/align 3D parts into unified system lock */
  .symptom-grid li:hover .iso-part-front,
  .symptom-grid li:hover .iso-part-back,
  .symptom-grid li:hover .iso-part-shard,
  .symptom-grid li:hover .iso-ring-left,
  .symptom-grid li:hover .iso-ring-right,
  .symptom-grid li:hover .iso-arch-top,
  .symptom-grid li:hover .iso-stack-top,
  .symptom-grid li:hover .iso-stack-mid {
    animation-play-state: paused;
    transform: translate3d(0, 0, 0) scale(1.03);
  }
}

@keyframes isoFloatFront {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-2px, 2.5px, 0); }
}

@keyframes isoFloatBack {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(2.5px, -2.5px, 0); }
}

@keyframes isoFloatShard {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(3px, 2px, 0); }
}

@keyframes isoDashFlow {
  0% { stroke-dashoffset: 12; }
  100% { stroke-dashoffset: 0; }
}

@keyframes isoRingLeft {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(2px, -2px, 0); }
}

@keyframes isoRingRight {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-2px, 2px, 0); }
}

@keyframes isoCorePulse {
  0%, 100% { transform: scale(0.92); opacity: 0.75; }
  50% { transform: scale(1.18); opacity: 1; }
}

@keyframes isoArchHover {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -3.5px, 0); }
}

@keyframes isoLoopSubtle {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(1.5px, 1.5px, 0); }
}

@keyframes isoSignalTravel {
  0%, 100% { transform: translate3d(-6px, 3.5px, 0); opacity: 0.65; }
  50% { transform: translate3d(5px, -3px, 0); opacity: 1; }
}

@keyframes isoStackTop {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -4.5px, 0); }
}

@keyframes isoStackMid {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -2px, 0); }
}

@keyframes isoStackBase {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, 1.5px, 0); }
}

.turn {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 300;
  color: #ffffff;
  margin: 0;
  max-width: 48ch;
}

/* ============================================================
   Proof / Stat Strip (Architectural 3-Column Metric Grid)
   ============================================================ */

.statstrip {
  border-top: 0;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  padding: 0;
}

.statstrip > .container {
  padding: 0;
}

.statstrip dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.statstrip dl > div {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
}

.statstrip dl > div:last-child {
  border-right: 0;
}

.statstrip dt {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 3.8vw, 3.25rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #000000;
  line-height: 1.05;
}

.statstrip dd {
  margin: 10px 0 0;
  color: var(--ink-dim);
  font-size: 14.5px;
  max-width: 26ch;
}

.statstrip-ref {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  background: #fafafa;
}

.statstrip-ref p {
  margin: 0;
  padding: 16px 32px;
  border-right: 1px solid var(--line);
}

.statstrip-ref p:last-child {
  border-right: 0;
}

/* ============================================================
   Interactive Health Check Quiz (AgentLab Architectural Card)
   ============================================================ */

.quiz {
  padding: 44px;
  max-width: 860px;
  margin: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
  position: relative;
}

.quiz-progress {
  height: 4px;
  background: #efefef;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 32px;
}

.quiz-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #0036fa 0%, #558bfb 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--motion-slow);
}

.quiz-step { display: none; }
.quiz-step.is-active {
  display: block;
  animation: agent-step-forward 180ms cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}
.quiz[data-dir="back"] .quiz-step.is-active {
  animation-name: agent-step-back;
}

@keyframes agent-step-forward {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes agent-step-back {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes agent-fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .quiz-step.is-active,
  .quiz-result {
    animation-duration: 150ms;
    animation-name: studio-fade-only;
  }
}

@keyframes studio-fade-only {
  from { opacity: 0; }
  to { opacity: 1; }
}

.quiz-q {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 300;
  color: #000000;
  margin: 0 0 24px;
}

.quiz-opts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-opt {
  text-align: left;
  background: #fafafa;
  border: 1px solid var(--line);
  color: #000000;
  padding: 16px 20px;
  min-height: 54px;
  border-radius: 0;
  font-size: 15px;
  font-family: var(--font-sans);
  cursor: pointer;
  transition:
    transform 150ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
  display: flex;
  align-items: center;
}

@media (hover: hover) and (pointer: fine) {
  .quiz-opt:hover {
    border-color: #000000;
    background: #000000;
    color: #ffffff;
  }
}

.quiz-opt:active:not(:disabled) {
  transform: scale(0.97);
}

.quiz-result {
  text-align: center;
  animation: agent-fade-up 220ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  padding: 12px 0;
}

.score-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 24px;
  display: grid;
  place-content: center;
  background: conic-gradient(var(--ring-color, #0036fa) var(--p, 0%), #efefef 0);
  position: relative;
}

.score-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  background: #ffffff;
  border-radius: 50%;
}

.score-ring span {
  position: relative;
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  color: #000000;
}

.score-ring small {
  position: relative;
  display: block;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 11px;
}

#scoreTitle {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 300;
  margin: 0 0 10px;
  color: #000000;
}

#scoreText {
  color: var(--ink-dim);
  max-width: 52ch;
  margin: 0 auto 28px;
  font-size: 15.5px;
  line-height: 1.625;
}

.result-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.quiz-restart {
  margin-top: 22px;
  background: none;
  border: 0;
  color: var(--ink-dim);
  cursor: pointer;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font-sans);
}

.quiz-restart:hover {
  color: #000000;
  text-decoration: underline;
}

/* ============================================================
   Services & Definition Split
   ============================================================ */

.services-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.split-kicker {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 600;
  color: #0036fa;
}

.if-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: #fafafa;
}

.if-list li {
  padding: 20px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.6;
  position: relative;
  padding-left: 42px;
}

.if-list li:nth-child(2n) {
  border-right: 0;
}

.if-list li:nth-last-child(-n+2) {
  border-bottom: 0;
}

.if-list li::before {
  content: "▪";
  position: absolute;
  left: 20px;
  top: 20px;
  color: #0036fa;
}

.service-dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: #ffffff;
}

.service-dl > div {
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-dl > div:nth-child(3n) {
  border-right: 0;
}

.service-dl dt {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 18px;
  color: #000000;
}

.service-dl dd {
  margin: 10px 0 0;
  color: var(--ink-dim);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ============================================================
   Audit Feature Panel
   ============================================================ */

.audit-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 48px;
}

.audit-copy h2 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 38px);
  margin: 8px 0 14px;
  color: #000000;
}

.audit-copy > p {
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.625;
  max-width: 52ch;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.ticks li {
  position: relative;
  padding-left: 24px;
  margin: 12px 0;
  color: var(--ink-dim);
  font-size: 15px;
}

.ticks li strong {
  color: #000000;
}

.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #0036fa;
  font-weight: 700;
}

.fineprint {
  color: var(--ink-faint);
  font-size: 13.5px;
  margin: 0 0 22px;
}

/* Live Terminal Code Card */
.code-card {
  background: #000000;
  border: 1px solid #000000;
  border-radius: 0;
  overflow: hidden;
}

.code-dots {
  display: flex;
  gap: 7px;
  padding: 12px 16px;
  background: #0d1017;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.code-dots span {
  width: 8px;
  height: 8px;
  border-radius: 0;
  background: #333;
}

.code-dots span:first-child { background: #558bfb; }
.code-dots span:nth-child(2) { background: #0036fa; }
.code-dots span:nth-child(3) { background: #c0e2f9; }

.code-card pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
}

.code-card code {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: #ffffff;
}

.c-key { color: #d469ff; }
.c-var { color: #558bfb; }
.c-prop { color: #c0e2f9; }
.c-str { color: #adff30; }
.c-com { color: rgba(255, 255, 255, 0.45); font-style: italic; }

/* ============================================================
   Selected Work Architectural Grid
   ============================================================ */

.work-bento {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: #ffffff;
}

.work-bento > li {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  background: #ffffff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 24px;
  transition: background-color var(--motion-fast);
}

.work-bento > li:hover {
  background: #fafafa;
}

.work-bento-feature {
  grid-column: 1;
  grid-row: 1 / 3;
}

.work-media {
  display: block;
  overflow: hidden;
  border-radius: 0;
  border: 1px solid var(--line);
  background: #f5f5f5;
  position: relative;
}

.work-bento img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0;
  border: 1px solid var(--line);
  transition: transform var(--motion-slow);
}

.work-bento > li:hover img {
  transform: scale(1.02);
}

.work-bento-feature img {
  aspect-ratio: 4 / 3;
  border: 0;
}

.work-bento h3 {
  font-family: var(--font-serif);
  font-weight: 300;
  margin: 4px 0 6px;
  font-size: 20px;
  color: #000000;
}

.work-bento p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 44ch;
}

.work-bento a {
  color: #0036fa;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-block;
  margin-top: 8px;
}

.work-bento a:hover {
  text-decoration: underline;
}

.work-bento-text {
  justify-content: space-between;
  min-height: 220px;
}

/* ============================================================
   Lead Magnet & Forms
   ============================================================ */

/* Feature flag: forms stay hidden unless script.js adds .feature-forms to <html>
   (CONFIG.features.forms). The layouts below collapse to one column without them. */
/* Presentations are hidden from the header nav and footer for now.
   Delete this rule to bring the links back on every page. */
.nav a[href$="presentations.html"],
.footer-col a[href$="presentations.html"] {
  display: none;
}

:root:not(.feature-forms) [data-feature="forms"] {
  display: none !important;
}

:root:not(.feature-forms) .magnet {
  grid-template-columns: 1fr;
}

:root:not(.feature-forms) .contact-grid {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

.magnet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.magnet-copy h2 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(26px, 3.2vw, 38px);
  margin: 8px 0 14px;
  color: #000000;
}

.magnet-copy > p {
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.625;
}

.magnet-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 20px;
}

.magnet-links a {
  color: #000000;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #000000;
  padding-bottom: 2px;
}

.magnet-links a:hover {
  color: #0036fa;
  border-bottom-color: #0036fa;
}

.lead-form {
  padding: 36px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 0;
  transition: height 220ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.lead-form.is-exiting > * {
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity 150ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

.lead-form.is-done {
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 1;
  transform: scale(1) translateY(0);
  transition:
    opacity 220ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
  @starting-style {
    opacity: 0;
    transform: scale(0.96) translateY(6px);
  }
}

.field-error {
  display: block;
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: #dc2626;
  margin-top: 6px;
  max-height: 40px;
  opacity: 1;
  transform: translateY(0);
  overflow: hidden;
  transition:
    opacity 150ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 150ms cubic-bezier(0.16, 1, 0.3, 1),
    max-height 180ms cubic-bezier(0.215, 0.61, 0.355, 1),
    margin-top 180ms cubic-bezier(0.215, 0.61, 0.355, 1);
  @starting-style {
    opacity: 0;
    transform: translateY(-4px);
    max-height: 0;
    margin-top: 0;
  }
}

.field-error[hidden] {
  display: block !important;
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}

.form-summary {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(220, 38, 38, 0.45);
  background: rgba(220, 38, 38, 0.06);
  color: #dc2626;
  font-size: 13px;
  max-height: 160px;
  opacity: 1;
  transform: translateY(0);
  overflow: hidden;
  transition:
    opacity 150ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 150ms cubic-bezier(0.16, 1, 0.3, 1),
    max-height 180ms cubic-bezier(0.215, 0.61, 0.355, 1),
    margin-bottom 180ms cubic-bezier(0.215, 0.61, 0.355, 1),
    padding 180ms cubic-bezier(0.215, 0.61, 0.355, 1);
  @starting-style {
    opacity: 0;
    transform: translateY(-4px);
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
}

.form-summary[hidden] {
  display: block !important;
  max-height: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}

.lead-form h3 {
  font-family: var(--font-serif);
  font-weight: 300;
  margin: 0 0 22px;
  font-size: 22px;
  color: #000000;
}

.lead-form label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #000000;
  margin-bottom: 16px;
}

.lead-form .opt {
  color: var(--ink-faint);
  font-weight: 400;
  text-transform: none;
}

.lead-form input[type=text],
.lead-form input[type=email],
.lead-form textarea {
  width: 100%;
  margin-top: 6px;
  background: #f7f7f7;
  border: 1px solid var(--line);
  color: #000000;
  padding: 12px 14px;
  border-radius: 0;
  font-size: 14.5px;
  font-family: var(--font-sans);
  transition: all var(--motion-fast);
}

.lead-form input::placeholder,
.lead-form textarea::placeholder {
  color: var(--ink-faint);
}

.lead-form input:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: #0036fa;
  background: #ffffff;
}

.lead-form .consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-dim);
  line-height: 1.5;
}

.lead-form .consent input {
  margin-top: 3px;
  flex: none;
  width: 16px;
  height: 16px;
  accent-color: #000000;
}

.lead-form .consent a {
  color: #0036fa;
  text-decoration: underline;
}

.lead-form .btn {
  width: 100%;
  margin-top: 8px;
}

.form-note {
  font-size: 13.5px;
  margin: 12px 0 0;
  min-height: 1.2em;
}

.form-note.ok { color: #0b7a4b; }
.form-note.err { color: #dc2626; }

/* ============================================================
   AgentLab Architectural Accordion FAQ
   ============================================================ */

.faq {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: start;
  border: 1px solid var(--line);
  background: #ffffff;
}

.faq details {
  padding: 0 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  border-radius: 0;
  transition: background-color var(--motion-fast);
}

.faq details:nth-child(2n) {
  border-right: 0;
}

.faq details:hover {
  background: #fafafa;
}

.faq summary {
  cursor: pointer;
  padding: 24px 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 17px;
  color: #000000;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

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

.faq summary::after {
  content: "+";
  color: #000000;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 400;
  transition: transform var(--motion-normal);
  flex: none;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  color: #0036fa;
}

.faq details p {
  margin: 0 0 24px;
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.625;
}

/* ============================================================
   Pre-Footer Pitch-Black & Cobalt ASCII-Matrix CTA Section
   Matches AgentLab's "Ready to orchestrate your next big leap?"
   ============================================================ */

.cta-section {
  background: #000000;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  position: relative;
  overflow: hidden;
}

/* Cobalt Blue Diagonal Facet & Subtle Grid Backdrop */
.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 46%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 54, 250, 0.65) 45%, rgba(85, 139, 251, 0.85) 80%, rgba(192, 226, 249, 0.9) 100%);
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0% 100%);
  pointer-events: none;
  z-index: 0;
}

.cta-section > .container,
.cta-inner {
  border-left-color: rgba(255, 255, 255, 0.14);
  border-right-color: rgba(255, 255, 255, 0.14);
  background: transparent;
  border-top: 0;
  border-bottom: 0;
  border-radius: 0;
  box-shadow: none;
  padding-top: 96px;
  padding-bottom: 96px;
  position: relative;
  z-index: 1;
}

.cta-section > .container::before,
.cta-section > .container::after {
  background: #000000;
  border-color: rgba(255, 255, 255, 0.3);
}

.cta-inner .eyebrow {
  color: #ffffff;
}

.cta-inner h2 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.015em;
  color: #ffffff;
  margin: 0 0 16px;
  max-width: 18em;
}

.cta-inner > p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 16.5px;
  line-height: 1.625;
  max-width: 58ch;
  margin: 0 0 40px;
}

.cta-inner .btn {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.cta-inner .btn:hover {
  background: #558bfb;
  color: #ffffff;
  border-color: #558bfb;
}

.cta-inner .btn-ghost {
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.cta-inner .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
}

.cta-inner .magnet-links a {
  color: #c0e2f9;
  border-bottom-color: rgba(192, 226, 249, 0.4);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  text-align: left;
}

.contact-card {
  background: rgba(8, 11, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--motion-normal);
  text-decoration: none;
  backdrop-filter: blur(12px);
}

.contact-card:hover {
  border-color: #558bfb;
  background: rgba(12, 18, 32, 0.95);
  transform: translateY(-2px);
}

.contact-card h3 {
  font-family: var(--font-serif);
  font-weight: 300;
  color: #ffffff;
  margin: 0 0 10px;
  font-size: 24px;
}

.contact-card p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.contact-card-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 24px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-card-facts dt {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-card-facts dd {
  margin: 6px 0 0;
  font-size: 14px;
  color: #ffffff;
  font-weight: 500;
}

.contact-card-arrow {
  color: #ffffff;
  background: #0036fa;
  padding: 12px 18px;
  width: fit-content;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background-color var(--motion-fast);
}

.contact-card:hover .contact-card-arrow {
  background: #558bfb;
}

.cta-section .lead-form {
  background: rgba(8, 11, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.cta-section .lead-form h3,
.cta-section .lead-form label {
  color: #ffffff;
}

.cta-section .lead-form input[type=text],
.cta-section .lead-form input[type=email],
.cta-section .lead-form textarea {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.cta-section .lead-form input:focus,
.cta-section .lead-form textarea:focus {
  border-color: #558bfb;
  background: rgba(255, 255, 255, 0.1);
}

.cta-section .lead-form .consent {
  color: rgba(255, 255, 255, 0.7);
}

.cta-section .lead-form .consent a {
  color: #c0e2f9;
}

.contact-detail {
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.contact-detail a {
  color: #ffffff;
  text-decoration: underline;
}

/* ============================================================
   AgentLab Pitch-Black Footer + Giant LED Dot-Matrix Wordmark
   ============================================================ */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0;
  background: #000000;
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.site-footer > .container {
  border-left-color: rgba(255, 255, 255, 0.14);
  border-right-color: rgba(255, 255, 255, 0.14);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px 24px;
  padding-top: 64px;
  padding-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand .brand-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 300;
  color: #ffffff;
}

.footer-brand .brand-sub {
  font-family: var(--font-sans);
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 28ch;
  line-height: 1.5;
}

.footer-heading {
  font-family: var(--font-mono);
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
  letter-spacing: 0.08em;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  transition: color var(--motion-fast);
}

.footer-col a:hover {
  color: #558bfb;
}

.footer-legal {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  margin: 0;
  padding: 24px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Giant AgentLab LED Dot-Matrix Wordmark Band at bottom of footer */
.site-footer::after {
  content: "";
  display: block;
  width: 100%;
  max-width: var(--maxw);
  height: 130px;
  margin: 0 auto;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  background-color: #000000;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 130' fill='none'%3E%3Cdefs%3E%3Cpattern id='dots' width='12' height='12' patternUnits='userSpaceOnUse'%3E%3Crect x='2' y='2' width='5' height='5' fill='rgba(255,255,255,0.08)'/%3E%3C/pattern%3E%3ClinearGradient id='wordgrad' x1='0' y1='0' x2='1200' y2='0' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0%25' stop-color='%23FFFFFF' stop-opacity='0.28'/%3E%3Cstop offset='50%25' stop-color='%23558BFB' stop-opacity='0.65'/%3E%3Cstop offset='100%25' stop-color='%230036FA' stop-opacity='0.45'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='1200' height='130' fill='url(%23dots)'/%3E%3Ctext x='600' y='102' text-anchor='middle' font-family='JetBrains Mono, monospace' font-weight='700' font-size='104' letter-spacing='14' fill='url(%23wordgrad)' stroke='%23000000' stroke-width='2' stroke-dasharray='4 4'%3EAGENT STUDIO%3C/text%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  opacity: 0.95;
}

/* Sticky mobile CTA */
.sticky-cta {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: var(--z-sticky);
  text-align: center;
  background: #000000;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 15px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* ============================================================
   Responsive Breakpoints
   ============================================================ */

@media (max-width: 1080px) {
  .work-bento { grid-template-columns: 1fr 1fr; }
  .work-bento-feature { grid-column: 1 / -1; grid-row: auto; }
}

@media (max-width: 880px) {
  .audit-panel, .magnet, .contact-grid, .services-split, .faq, .footer-grid, .statstrip dl, .statstrip-ref, .symptom-grid, .if-list, .service-dl {
    grid-template-columns: 1fr;
  }
  .statstrip dl > div,
  .statstrip-ref p,
  .symptom-grid li,
  .if-list li,
  .service-dl > div,
  .faq details {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .statstrip-ref p:last-child {
    border-bottom: 0;
  }
  .symptom-grid li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }
  .audit-panel { padding: 32px 24px; }
  .header-inner { padding: 0 20px; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    padding: 16px 20px 24px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .nav a.btn { margin-top: 12px; text-align: center; }
  .nav-toggle { display: block; }
  body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
  .sticky-cta { display: block; }
}

@media (max-width: 520px) {
  .section > .container { padding-top: 64px; padding-bottom: 64px; }
  .quiz { padding: 24px 18px; }
  .contact-card-facts { grid-template-columns: 1fr; }
}

/* ============================================================
   Blog Index & Article Template (AgentLab Architectural Layout)
   ============================================================ */

.blog-hero {
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  position: relative;
}

.blog-hero > .container {
  padding-top: 72px;
  padding-bottom: 56px;
}

.blog-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.5vw, 3.5rem);
  letter-spacing: -0.015em;
  font-weight: 300;
  margin: 0 0 16px;
  line-height: 1.14;
  color: #000000;
}

.blog-hero .lede {
  color: var(--ink-dim);
  font-size: 17px;
  line-height: 1.625;
  max-width: 52em;
  margin: 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px 36px;
  padding: 56px 0 88px;
  border-bottom: 1px solid var(--line);
}

.blog-grid > .blog-card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  margin-bottom: 8px;
}

.blog-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background-color var(--motion-fast), border-color var(--motion-fast);
}

.blog-card:hover {
  background: #fafafa;
  border-color: rgba(0, 54, 250, 0.28);
}

.blog-card-media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #001a72;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.blog-grid > .blog-card:first-child .blog-card-media {
  border-bottom: 0;
  border-right: 1px solid var(--line);
  height: 100%;
}

.blog-card-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--motion-slow);
}

.blog-card:hover .blog-card-thumb {
  transform: scale(1.03);
}

.blog-card-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 300;
  margin: 0 0 12px;
  line-height: 1.3;
  color: #000000;
}

.blog-card h2 a:hover {
  color: #0036fa;
}

.blog-card-body > p:not(.blog-card-tag):not(.blog-card-meta) {
  margin: 0 0 24px;
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.625;
}

.blog-card-meta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
}

.blog-card-link {
  color: #000000;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.blog-card-link:hover {
  color: #0036fa;
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 28px 0 0;
}

.blog-filter {
  appearance: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #ffffff;
  color: #000000;
  border: 1px solid var(--line);
  padding: 10px 14px;
  min-height: 44px;
  cursor: pointer;
}

.blog-filter:hover { border-color: #0036fa; }

.blog-filter.is-active {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.blog-filter.is-active:hover {
  background: #0036fa;
  border-color: #0036fa;
}

.blog-filter:focus-visible {
  outline: 2px solid #0036fa;
  outline-offset: 2px;
}

.blog-filter-count { margin-left: 8px; opacity: 0.7; }

.blog-filter-empty {
  margin: 24px 0 0;
  color: var(--ink-dim);
  font-size: 15px;
}

.blog-filters + .blog-grid { padding-top: 28px; }

.blog-card[hidden] { display: none !important; }

.blog-grid > .blog-card.is-lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  margin-bottom: 8px;
}

.blog-grid > .blog-card.is-lead .blog-card-media {
  border-bottom: 0;
  border-right: 1px solid var(--line);
  height: 100%;
}

.blog-card-kicker,
.article-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 18px;
}

.blog-card-kicker .blog-card-tag,
.article-kicker .eyebrow { margin: 0; }

.article > .article-kicker {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.blog-format {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  padding: 4px 8px;
  line-height: 1.2;
}

.blog-format.is-essay {
  color: #0036fa;
  border-color: rgba(0, 54, 250, 0.35);
}

.blog-card-cover,
.article-essay-cover {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  background: linear-gradient(160deg, #001a72 0%, #0036fa 62%, #558bfb 100%);
  color: #ffffff;
}

.blog-card-cover {
  position: absolute;
  inset: 0;
  padding: 28px;
}

.article-essay-cover {
  aspect-ratio: 16 / 9;
  padding: 36px;
}

.blog-card-cover-kicker,
.article-essay-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c4e4ff;
}

.blog-card-cover-title,
.article-essay-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.15;
  color: #ffffff;
}

.blog-card-cover-title {
  font-size: 26px;
  max-width: 16em;
}

.blog-card.is-lead .blog-card-cover-title,
.article-essay-title {
  font-size: clamp(32px, 4vw, 48px);
  max-width: 11em;
}

/* Single Article Styling */
.article-wrap { padding: 0; }
.article {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 40px 96px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.article > * {
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-dim);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.article-back:hover { color: #0036fa; }
.article h1 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  color: #000000;
}
.article-meta {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 12.5px;
  margin: 0 0 32px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.article-visual {
  max-width: 920px;
  margin: 0 auto 36px;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #001a72;
}
.article-visual img { display: block; width: 100%; height: auto; }
.article-lede {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 20px;
  line-height: 1.6;
  color: #000000;
  margin: 0 auto 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.article-body h2 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 28px;
  margin: 48px auto 16px;
  color: #000000;
}
.article-body p {
  color: var(--ink-dim);
  font-size: 19px;
  line-height: 1.65;
  margin: 0 auto 22px;
}
.article-body ul, .article-body ol {
  color: var(--ink-dim);
  font-size: 19px;
  line-height: 1.65;
  margin: 0 auto 24px;
  padding-left: 22px;
}
.article-body li { margin: 8px 0; }
.article-body strong { color: #000000; font-weight: 600; }
.article-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: #f5f5f5;
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 0;
  color: #0036fa;
}
.article-body em { font-style: italic; }
.article-body blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid #558bfb;
}
.article-body blockquote p {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.45;
  color: #000000;
  margin: 0 0 10px;
}
.article-body blockquote cite {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-style: normal;
  color: var(--ink-faint);
}
.article-table-wrap {
  overflow-x: auto;
  margin: 32px 0 36px;
  border-top: 1px solid #000000;
}
.article-table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.5;
}
.article-table th,
.article-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-dim);
}
.article-table thead th {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.article-table tbody th { color: #000000; font-weight: 600; width: 28%; }
.article-figure { margin: 36px 0; }
.article-figure svg {
  display: block;
  width: 100%;
  height: auto;
  background: #fafafa;
  border: 1px solid var(--line);
}
.article-figure figcaption {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-faint);
  margin-top: 10px;
}

/* Essay diagram: slow at the ends, fast in the middle, system underneath. */
.article-figure .flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 36px;
  row-gap: 14px;
  background: #fafafa;
  border: 1px solid var(--line);
  padding: 20px 20px 16px;
}
.article-figure .flow .phases,
.article-figure .flow .links {
  display: contents;
}
.article-figure .flow li {
  margin: 0;
  list-style: none;
}
.article-figure .flow .phases li {
  position: relative;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 3px solid #000000;
  padding: 14px 14px 16px;
}
.article-figure .flow .phases li:nth-child(1) { grid-column: 1; }
.article-figure .flow .phases li:nth-child(2) { grid-column: 2; }
.article-figure .flow .phases li:nth-child(3) { grid-column: 3; }
.article-figure .flow .phases li.fast { border-top-color: #558bfb; }
.article-figure .flow .phases li + li::before {
  content: "→";
  position: absolute;
  left: -26px;
  top: 42%;
  transform: translateY(-50%);
  color: var(--ink-faint);
  font-size: 16px;
  line-height: 1;
}
.article-figure .flow .tag {
  display: block;
  width: auto;
  margin: 0;
  padding: 0;
  gap: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
  color: #0036fa;
  background: none;
  border: 0;
}
.article-figure .flow .tag::before { content: none; display: none; }
.article-figure .flow .fast .tag { color: #558bfb; }
.article-figure .flow .phases strong {
  display: block;
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 26px;
  line-height: 1.15;
  color: #000000;
}
.article-figure .flow .what {
  display: block;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink-dim);
}
.article-figure .flow .links li {
  grid-row: 2;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--ink-faint);
}
.article-figure .flow .links li:nth-child(1) { grid-column: 1; }
.article-figure .flow .links li:nth-child(2) { grid-column: 2; }
.article-figure .flow .links li:nth-child(3) { grid-column: 3; }
.article-figure .flow .base {
  grid-column: 1 / -1;
  grid-row: 3;
  background: #ffffff;
  border: 1px dashed var(--line);
  padding: 14px 16px;
  text-align: center;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink-dim);
}
.article-figure .flow .base strong {
  display: block;
  margin: 0 0 4px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #000000;
}
@media (max-width: 720px) {
  .article-figure .flow { grid-template-columns: 1fr; row-gap: 18px; }
  .article-figure .flow .phases li:nth-child(1) { grid-column: 1; grid-row: 1; }
  .article-figure .flow .links li:nth-child(1) { grid-column: 1; grid-row: 2; }
  .article-figure .flow .phases li:nth-child(2) { grid-column: 1; grid-row: 3; }
  .article-figure .flow .links li:nth-child(2) { grid-column: 1; grid-row: 4; }
  .article-figure .flow .phases li:nth-child(3) { grid-column: 1; grid-row: 5; }
  .article-figure .flow .links li:nth-child(3) { grid-column: 1; grid-row: 6; }
  .article-figure .flow .base { grid-row: 7; }
  .article-figure .flow .phases li + li::before { content: none; }
}
.article-cta {
  margin-top: 64px;
  padding: 44px;
  background: #000000;
  color: #ffffff;
  border: 1px solid #000000;
  border-radius: 0;
}
.article-cta h2 { font-family: var(--font-serif); font-weight: 300; color: #ffffff; font-size: 26px; margin: 0 0 12px; }
.article-cta p { color: rgba(255, 255, 255, 0.76); font-size: 15.5px; margin: 0 0 24px; max-width: 52ch; }
.article-cta .btn { background: #ffffff; color: #000000; border-color: #ffffff; }
.article-cta .btn:hover { background: #558bfb; color: #ffffff; border-color: #558bfb; }
.article-cta .btn-ghost { background: transparent; color: #ffffff; border-color: rgba(255, 255, 255, 0.3); }
.article-cta .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #ffffff; border-color: #ffffff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.footer-inner {
  padding-top: 56px;
  padding-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}
.footer-nav a:hover {
  color: #558bfb;
}

@media (max-width: 720px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 0 64px;
  }
  .blog-grid > .blog-card:first-child,
  .blog-grid > .blog-card.is-lead {
    grid-template-columns: 1fr;
    margin-bottom: 0;
  }
  .blog-grid > .blog-card:first-child .blog-card-media,
  .blog-grid > .blog-card.is-lead .blog-card-media {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

/* ============================================================
   Social Series Index & Post Pages (AgentLab Architectural Grid)
   ============================================================ */

.social-series-index > .container {
  padding-top: 64px;
  padding-bottom: 96px;
}

.social-series-index h1 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 4.5vw, 3.5rem);
  margin: 0 0 16px;
  color: #000000;
}

.social-series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  background: #ffffff;
}

.social-series-card {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  transition: background-color var(--motion-fast);
}

.social-series-card:hover {
  background: #fafafa;
}

.social-series-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.social-series-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.social-post-code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #0036fa;
  margin: 0 0 8px;
}

.social-series-card-body h2 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 19px;
  margin: 0 0 8px;
  color: #000000;
}

.social-series-card-body p {
  font-size: 14px;
  color: var(--ink-dim);
  margin: 0 0 16px;
}

.social-series-card-meta {
  margin-top: auto !important;
  margin-bottom: 0 !important;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint) !important;
}

.social-post-wrap {
  padding: 0;
}

.social-post {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 40px 96px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.social-post > * {
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

.social-post h1 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 4vw, 3rem);
  margin: 0 auto 14px;
}

.social-hook {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 19px;
  color: #000000;
  margin: 0 auto 16px;
}

.social-post-visual {
  max-width: 640px;
  margin: 28px auto 36px;
  border: 1px solid var(--line);
  background: #fafafa;
}

.social-post-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.social-post-visual figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
}

.social-section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0036fa;
  margin: 32px 0 12px;
}

.social-caption p,
.social-ig-note {
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.65;
}

.social-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.social-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 10px;
  background: #f5f5f5;
  border: 1px solid var(--line);
  color: #000000;
}

.social-post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  margin: 36px auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
}

.social-nav-link:hover {
  color: #0036fa;
}

/* ============================================================
   GDPR / TDDDG Cookie Consent Banner & Native Dialog Modals
   (AgentLab Architectural Grid System)
   ============================================================ */

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
}

/* Only the modal settings dialog dims the page; the consent banner must never block or nudge. */
.studio-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.cookie-banner::backdrop {
  display: none;
}

/* Non-modal bottom architectural cookie banner (<dialog popover="manual">).
   Explicit inset/size override the UA popover + dialog centering defaults. */
.cookie-banner {
  position: fixed;
  inset: auto 24px 24px 24px;
  width: auto;
  height: auto;
  max-width: 1120px;
  margin: 0 auto;
  overflow: visible;
  background: #ffffff;
  color: #000000;
  border: 1px solid #000000;
  border-radius: 0;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
  z-index: 140;
  padding: 0;
}

/* 8x8 architectural corner nodes on banner */
.cookie-banner::before,
.cookie-banner::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 9px;
  height: 9px;
  background: #ffffff;
  border: 1px solid #000000;
  pointer-events: none;
}

.cookie-banner::before { left: -5px; }
.cookie-banner::after { right: -5px; }

.cookie-banner-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 24px 32px;
}

.cookie-banner-copy .eyebrow {
  margin-bottom: 8px;
}

.cookie-banner-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 20px;
  line-height: 1.25;
  margin: 0 0 8px;
  color: #000000;
}

.cookie-banner-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 72ch;
}

.cookie-banner-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  font-size: 12.5px;
  font-family: var(--font-mono);
  color: var(--ink-faint);
}

.cookie-banner-links button,
.cookie-banner-links a {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: #0036fa;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner-links button:hover,
.cookie-banner-links a:hover {
  color: #000000;
}

/* Equal prominence buttons (GDPR / TDDDG compliant: Reject & Accept identical weight) */
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.cookie-banner-actions .btn {
  min-width: 148px;
  min-height: 44px;
}

.btn-equal-reject {
  background: #000000;
  color: #ffffff;
  border: 1px solid #000000;
}

/* Native <dialog> shared architectural frame */
.studio-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  background: #ffffff;
  color: #000000;
  border: 1px solid #000000;
  border-radius: 0;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.studio-dialog[open] {
  display: flex;
  flex-direction: column;
}

.studio-dialog > form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.studio-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 32px 20px;
  background: #000000;
  color: #ffffff;
  border-bottom: 1px solid var(--line);
}

.studio-dialog-header .eyebrow {
  color: #ffffff;
  margin-bottom: 8px;
}

.studio-dialog-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.2;
  margin: 0;
  color: #ffffff;
}

.studio-dialog-close {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 16px;
  cursor: pointer;
  flex: none;
  transition: background-color var(--motion-fast), border-color var(--motion-fast);
}

.studio-dialog-close:hover {
  background: #0036fa;
  border-color: #558bfb;
}

.studio-dialog-body {
  padding: 28px 32px;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
  min-height: 0;
}

.studio-dialog-lede {
  margin: 0 0 20px;
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.6;
}

.cookie-status-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
  background: #fafafa;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
}

.cookie-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #000000;
  font-weight: 500;
}

.cookie-status-dot {
  width: 8px;
  height: 8px;
  background: #15a06f;
  display: inline-block;
}

.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cookie-category {
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 20px 22px;
  transition: border-color var(--motion-fast);
}

.cookie-category:hover {
  border-color: #d0d0d0;
}

.cookie-category-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cookie-category-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 17px;
  margin: 0 0 4px;
  color: #000000;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-category-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  background: #f5f5f5;
  border: 1px solid var(--line);
  color: var(--ink-dim);
}

.cookie-category-badge.is-essential {
  background: #eef4ff;
  border-color: rgba(0, 54, 250, 0.25);
  color: #0036fa;
}

.cookie-category-desc {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-dim);
}

/* Accessible toggle control */
.cookie-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #000000;
  cursor: pointer;
  user-select: none;
  min-height: 44px;
  flex: none;
}

.cookie-toggle-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #0036fa;
  cursor: pointer;
}

.cookie-toggle-label input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.75;
}

/* Cookie inventory details table inside category */
.cookie-details {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.cookie-details summary {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #0036fa;
  cursor: pointer;
  font-weight: 500;
}

.cookie-details summary:hover {
  text-decoration: underline;
}

.cookie-table-wrap {
  margin-top: 10px;
  overflow-x: auto;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  text-align: left;
  border: 1px solid var(--line);
}

.cookie-table caption {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  padding-bottom: 6px;
}

.cookie-table th,
.cookie-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.cookie-table th {
  background: #fafafa;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-dim);
}

.cookie-table td code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #0036fa;
  background: #f5f5f5;
  padding: 1px 5px;
  border: 1px solid var(--line);
}

.studio-dialog-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 32px;
  background: #fafafa;
  border-top: 1px solid var(--line);
}

.studio-dialog-footer-right {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
}

.cookie-fineprint {
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-faint);
}

/* Footer Cookie Settings Button */
.footer-cookie-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: color var(--motion-fast);
  width: fit-content;
}

.footer-cookie-btn:hover {
  color: #558bfb;
}

@media (max-width: 880px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 76px; /* Sit cleanly above mobile .sticky-cta */
  }
  .cookie-banner-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }
  .cookie-banner-actions {
    justify-content: stretch;
  }
  .cookie-banner-actions .btn {
    flex: 1 1 calc(50% - 6px);
  }
  .studio-dialog-header,
  .studio-dialog-body,
  .studio-dialog-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  .legal-tabs {
    padding: 0 12px;
  }
}

@media (pointer: coarse) {
  .cookie-banner-actions .btn,
  .studio-dialog-footer .btn,
  .cookie-toggle-label {
    min-height: 48px;
  }
}


