:root {
  --ink: #1f2933;
  --muted: #5f6b76;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --soft: #f5f7f8;
  --tint: #eef5f4;
  --line: #dde4e8;
  --teal: #0f766e;
  --blue: #2563eb;
  --orange: #f97316;
  --gold: #d99a22;
  --green: #3f8f5f;
  --rose: #c2415d;
  --shadow: 0 22px 60px rgba(31, 41, 51, 0.12);
  --header-bg: rgba(251, 250, 247, 0.88);
  --header-line: rgba(221, 228, 232, 0.75);
  --card-shadow: 0 12px 36px rgba(31, 41, 51, 0.08);
}

:root[data-theme="dark"] {
  --ink: #edf4f8;
  --muted: #aab8c5;
  --paper: #0d1420;
  --panel: #151f2d;
  --soft: #101a27;
  --tint: #102720;
  --line: #2a394b;
  --teal: #38d8c6;
  --blue: #78a7ff;
  --orange: #ff9b4a;
  --gold: #e7b64e;
  --green: #7ac99a;
  --rose: #f27a98;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
  --header-bg: rgba(13, 20, 32, 0.9);
  --header-line: rgba(42, 57, 75, 0.82);
  --card-shadow: 0 12px 36px rgba(0, 0, 0, 0.26);
}

:root[data-theme="dark"] .proof-strip span,
:root[data-theme="dark"] .metric-grid div,
:root[data-theme="dark"] .work-card,
:root[data-theme="dark"] .lab-card,
:root[data-theme="dark"] .thinking-grid article,
:root[data-theme="dark"] .deep-card,
:root[data-theme="dark"] .eval-grid article,
:root[data-theme="dark"] .case-tile,
:root[data-theme="dark"] .insight-grid div,
:root[data-theme="dark"] .impact-list span,
:root[data-theme="dark"] .ai-flow div,
:root[data-theme="dark"] .backlog-flow div,
:root[data-theme="dark"] .workflow div,
:root[data-theme="dark"] .decision-list div,
:root[data-theme="dark"] .field-grid div {
  background: #152234;
  border-color: #304259;
}

:root[data-theme="dark"] .metric-grid strong,
:root[data-theme="dark"] .fit-score strong {
  color: var(--gold);
}

:root[data-theme="dark"] .button.primary,
:root[data-theme="dark"] .case-filter.active,
:root[data-theme="dark"] .fake-submit,
:root[data-theme="dark"] .workflow strong,
:root[data-theme="dark"] .copilot-actions a,
:root[data-theme="dark"] .copilot-form button {
  color: #07131f;
  border-color: var(--teal);
  background: var(--teal);
}

:root[data-theme="dark"] .button.secondary,
:root[data-theme="dark"] .case-filter,
:root[data-theme="dark"] .copilot-prompts button,
:root[data-theme="dark"] .copilot-actions button {
  color: var(--ink);
  background: #101a27;
  border-color: #33465e;
}

:root[data-theme="dark"] .fit-check {
  border-color: rgba(57, 210, 199, 0.34);
  background:
    linear-gradient(135deg, rgba(57, 210, 199, 0.14), rgba(79, 140, 255, 0.08)),
    #101a27;
}

:root[data-theme="dark"] .fit-check summary {
  color: var(--ink);
  border-color: rgba(57, 210, 199, 0.74);
  background:
    linear-gradient(135deg, rgba(57, 210, 199, 0.18), rgba(245, 183, 73, 0.08)),
    #152234;
  box-shadow: 0 18px 42px rgba(57, 210, 199, 0.14);
}

:root[data-theme="dark"] .fit-check-copy small {
  color: #b8c7d7;
}

:root[data-theme="dark"] .work-card a,
:root[data-theme="dark"] .deep-card a,
:root[data-theme="dark"] .tile-body a,
:root[data-theme="dark"] .text-link,
:root[data-theme="dark"] .mini-live-link {
  color: var(--teal);
}

:root[data-theme="dark"] .button.secondary[href^="http"],
:root[data-theme="dark"] .mini-live-link,
:root[data-theme="dark"] .work-card a[href^="http"],
:root[data-theme="dark"] .deep-card a[href^="http"] {
  color: #07131f;
  border-color: rgba(56, 216, 198, 0.72);
  background: linear-gradient(135deg, var(--teal), #78a7ff);
  box-shadow: 0 14px 32px rgba(56, 216, 198, 0.14);
}

:root[data-theme="dark"] .node.outcome {
  color: #07131f;
  background: var(--teal);
}

:root[data-theme="dark"] .portfolio-build-visual,
:root[data-theme="dark"] .portfolio-build-content {
  background: #101a27;
  border-color: #304259;
}

:root[data-theme="dark"] .build-snapshot {
  background:
    linear-gradient(135deg, rgba(56, 216, 198, 0.12), rgba(120, 167, 255, 0.06)),
    #132537;
  border-color: rgba(56, 216, 198, 0.34);
}

:root[data-theme="dark"] .build-metrics div,
:root[data-theme="dark"] .build-loop div,
:root[data-theme="dark"] .portfolio-proof-grid div {
  background: #152234;
  border-color: #304259;
}

:root[data-theme="dark"] .build-loop span {
  color: #07131f;
}

:root[data-theme="dark"] .node.source,
:root[data-theme="dark"] .node.model,
:root[data-theme="dark"] .node.action {
  color: #07131f;
}

:root[data-theme="dark"] .assistant-mock,
:root[data-theme="dark"] .fit-result {
  background: #102720;
}

:root[data-theme="dark"] .browser-bar,
:root[data-theme="dark"] .fake-input,
:root[data-theme="dark"] .segmented span {
  color: var(--ink);
  background: #101a27;
}

:root[data-theme="dark"] .eyebrow {
  color: #7ff4e7;
}

:root[data-theme="dark"] .hero-copy h1,
:root[data-theme="dark"] .page-hero h1,
:root[data-theme="dark"] .contact-hero h1,
:root[data-theme="dark"] .section-heading h2 {
  color: #f8fbfd;
}

:root[data-theme="dark"] .copilot-head {
  color: #f8fbfd;
  background: linear-gradient(135deg, #0b1f2e, #0f766e);
}

:root[data-theme="dark"] .copilot-message.user {
  color: #07131f;
}

:root[data-theme="dark"] .copilot-message.user::before {
  color: rgba(7, 19, 31, 0.68);
}

:root[data-theme="dark"] .brand img {
  background: #f8fafc;
  border: 1px solid rgba(56, 216, 198, 0.42);
  box-shadow: 0 0 0 3px rgba(56, 216, 198, 0.12);
  filter: brightness(1.14) contrast(1.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  transition: background 0.22s ease, color 0.22s ease;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

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

.site-nav a,
.nav-toggle {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  background: transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
  border-color: var(--line);
  background: var(--panel);
}

.nav-toggle {
  display: none;
  cursor: pointer;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--panel);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.theme-toggle::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), #43c7b7);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.theme-toggle[aria-pressed="true"]::before {
  background: linear-gradient(135deg, var(--teal), #78a7ff);
  box-shadow: 0 0 0 3px rgba(56, 216, 198, 0.16);
}

.theme-toggle strong,
.language-toggle strong {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.language-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 44px;
  align-items: center;
  min-height: 40px;
  min-width: 132px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.language-toggle::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc((100% - 6px - 44px) + 0px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), #43c7b7);
  transition: left 0.22s ease, width 0.22s ease, background 0.22s ease;
}

.language-toggle[aria-pressed="true"]::before {
  left: calc(100% - 47px);
  width: 44px;
  background: linear-gradient(135deg, var(--teal), #78a7ff);
}

.language-option {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 32px;
  place-items: center;
  border-radius: 999px;
  line-height: 1;
  transition: color 0.18s ease;
}

.language-option.active {
  color: white;
}

.section-band,
.section,
.page-hero,
.case-picker,
.case-study,
.featured-cases,
.artifact-section,
.about-hero,
.timeline,
.automation-lab,
.workflow-section,
.contact-hero,
.contact-grid {
  width: min(1180px, calc(100% - clamp(40px, 8vw, 96px)));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(34px, 5vw, 72px) 0;
}

.hero-copy h1,
.page-hero h1,
.contact-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.2rem, 4.2vw, 3.95rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-text,
.page-hero p,
.contact-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.proof-strip span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  font-size: 0.86rem;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.button:hover,
.work-card a:hover,
.deep-card a:hover,
.tile-body a:hover,
.text-link:hover,
.mini-live-link:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: white;
  background: var(--ink);
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--panel);
}

.button::after {
  content: "→";
  font-size: 1rem;
  line-height: 1;
}

.button[href^="http"]::after {
  content: "↗";
}

.button.secondary[href^="http"] {
  color: #07131f;
  border-color: rgba(15, 118, 110, 0.36);
  background:
    linear-gradient(135deg, rgba(57, 210, 199, 0.94), rgba(120, 167, 255, 0.82)),
    var(--teal);
  box-shadow: 0 14px 32px rgba(15, 118, 110, 0.16);
}

.hero-panel {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.profile-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  object-fit: cover;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.metric-grid div {
  min-width: 0;
  min-height: 112px;
  padding: 16px;
  border-radius: 8px;
  background: #f4f6f1;
  overflow-wrap: anywhere;
}

.metric-grid strong {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 1;
}

.metric-grid span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 80px 0;
}

.product-thinking,
.featured-cases,
.artifact-section {
  padding: 60px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 26px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading h2,
.split-section h2,
.workflow-section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.thinking-grid,
.deep-dive-grid,
.eval-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.thinking-grid article,
.deep-card,
.eval-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--card-shadow);
}

.thinking-grid span,
.deep-card span,
.eval-grid span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.thinking-grid h3,
.deep-card h3,
.eval-grid h3 {
  margin: 12px 0 10px;
  font-size: 1.32rem;
  line-height: 1.18;
}

.thinking-grid p,
.deep-card p,
.eval-grid p {
  margin: 0;
  color: var(--muted);
}

.deep-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

.deep-card img {
  width: calc(100% + 44px);
  max-width: none;
  height: 168px;
  margin: -22px -22px 18px;
  object-fit: cover;
}

.deep-card dl {
  margin: 20px 0;
}

.deep-card a {
  margin-top: auto;
  font-weight: 850;
}

.compact-heading {
  margin-top: 22px;
}

.featured-grid,
.automation-lab,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.automation-proof-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: start;
}

.automation-proof-grid .lab-card {
  grid-column: span 2;
}

.automation-proof-grid .featured-wide {
  grid-column: span 2;
}

.automation-proof-grid .lab-card:nth-last-child(-n + 2) {
  grid-column: span 3;
}

.proof-grid .work-card {
  min-height: 430px;
}

.work-card,
.lab-card,
.contact-grid article {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--card-shadow);
  opacity: 1;
  transform: translateY(0);
}

.automation-lab .lab-card {
  display: flex;
  min-height: auto;
  flex-direction: column;
  padding: 18px;
}

.automation-lab .lab-card h2 {
  margin: 14px 0 10px;
  font-size: 1.28rem;
}

.automation-lab .lab-card p {
  margin: 0;
  font-size: 0.96rem;
}

.automation-lab .lab-card ul {
  display: grid;
  gap: 7px;
  margin-top: 13px;
  padding-left: 0;
  list-style: none;
}

.automation-lab .lab-card li {
  position: relative;
  padding-left: 16px;
  font-size: 0.92rem;
}

.automation-lab .lab-card li::before {
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  content: "";
}

.work-card img {
  width: calc(100% + 44px);
  max-width: none;
  height: 190px;
  margin: -22px -22px 18px;
  object-fit: cover;
}

.work-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.work-card h3,
.lab-card h2,
.contact-grid h2 {
  margin: 20px 0 12px;
  font-size: 1.45rem;
  line-height: 1.18;
}

.work-card p,
.lab-card p,
.contact-grid p {
  color: var(--muted);
}

.work-card a,
.deep-card a,
.tile-body a,
.text-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  font-weight: 850;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.work-card a::after,
.deep-card a::after,
.tile-body a::after,
.text-link::after {
  content: "→";
  line-height: 1;
}

.work-card a[href^="http"],
.deep-card a[href^="http"] {
  color: #07131f;
  border-color: rgba(15, 118, 110, 0.28);
  background: linear-gradient(135deg, rgba(57, 210, 199, 0.9), rgba(120, 167, 255, 0.72));
}

.work-card a[href^="http"]::after,
.deep-card a[href^="http"]::after {
  content: "↗";
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.card-actions a {
  margin-top: 8px;
}

.accent-orange {
  border-top: 5px solid var(--orange);
}

.accent-green {
  border-top: 5px solid var(--green);
}

.accent-blue {
  border-top: 5px solid var(--blue);
}

.split-section {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 80px 0 100px;
}

.split-section p {
  color: var(--muted);
  font-size: 1.1rem;
}

.system-map {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.node {
  display: grid;
  min-height: 150px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: white;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 900;
}

.node.source {
  background: var(--teal);
}

.node.model {
  background: var(--rose);
}

.node.action {
  background: var(--gold);
}

.node.outcome {
  background: var(--ink);
}

.page-hero,
.case-picker,
.contact-hero {
  padding: clamp(54px, 9vw, 110px) 0 46px;
}

.case-picker {
  padding-top: 0;
}

.case-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.case-filter {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--panel);
  font: inherit;
  font-weight: 850;
}

.case-filter.active {
  color: white;
  border-color: var(--ink);
  background: var(--ink);
}

.case-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.case-tile {
  overflow: hidden;
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--card-shadow);
  cursor: grab;
}

.case-tile.dragging {
  opacity: 0.55;
}

.case-tile[hidden] {
  display: none;
}

.case-tile img,
.tile-visual {
  width: 100%;
  height: 145px;
  object-fit: cover;
}

.tile-visual {
  display: grid;
  place-items: center;
  color: white;
  font-size: 1.6rem;
  font-weight: 950;
}

.tile-costco {
  background: linear-gradient(135deg, var(--teal), var(--blue));
}

.tile-verify {
  background: linear-gradient(135deg, var(--rose), var(--orange));
}

.tile-migration {
  background: linear-gradient(135deg, var(--ink), var(--green));
}

.tile-apple {
  background: linear-gradient(135deg, #111827, #3b82f6);
}

.tile-privacy {
  background: linear-gradient(135deg, #31572c, #f97316);
}

.tile-print {
  background: linear-gradient(135deg, #475569, #0f766e);
}

.tile-alignment {
  background: linear-gradient(135deg, #be123c, #0e7490);
}

.tile-ai {
  background: linear-gradient(135deg, #4338ca, #0891b2);
}

.tile-pipeline {
  background:
    radial-gradient(circle at 24% 28%, rgba(255, 255, 255, 0.32), transparent 22%),
    linear-gradient(135deg, #0f766e, #2563eb 52%, #7c3aed);
}

.tile-leadflow {
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.34), transparent 20%),
    linear-gradient(135deg, #071623, #0f766e 46%, #39d2c7);
}

.tile-body {
  padding: 16px;
}

.tile-body span {
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.tile-body h2 {
  margin: 10px 0 8px;
  font-size: 1.1rem;
  line-height: 1.16;
}

.tile-body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.tile-body a {
  font-weight: 850;
}

.case-study.case-hidden {
  display: none;
}

.case-study {
  padding: 46px 0;
  border-top: 1px solid var(--line);
}

.case-kicker {
  margin-bottom: 18px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.case-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 54px);
}

.case-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}

.case-sidebar,
.case-body {
  min-width: 0;
}

.case-sidebar h2,
.case-body h2 {
  margin: 0 0 22px;
  font-size: clamp(1.9rem, 3.4vw, 3.2rem);
  line-height: 1.04;
}

dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

dd {
  margin: 3px 0 0;
  font-weight: 750;
}

.case-body h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.case-body p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.05rem;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 18px 0 28px;
}

.insight-grid div,
.impact-list span {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.insight-grid strong,
.insight-grid span {
  display: block;
}

.insight-grid span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.94rem;
}

.ai-flow,
.backlog-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 20px 0 28px;
}

.ai-flow div,
.backlog-flow div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.ai-flow strong,
.ai-flow span,
.backlog-flow span,
.backlog-flow p {
  display: block;
}

.ai-flow strong,
.backlog-flow span {
  color: var(--ink);
  font-weight: 900;
}

.ai-flow span,
.backlog-flow p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.with-media {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: 28px;
  align-items: center;
}

.with-media.flipped {
  grid-template-columns: 1fr 0.95fr;
}

.with-media.flipped img {
  order: 2;
}

.with-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.impact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.impact-list span {
  font-weight: 800;
}

.visual-showcase {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 18px;
  align-items: stretch;
  margin: 34px 0 22px;
}

.showcase-copy,
.browser-mock {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--card-shadow);
}

.showcase-copy {
  padding: 22px;
}

.showcase-label {
  display: inline-block;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.showcase-copy h3 {
  margin: 12px 0 10px;
  font-size: 1.4rem;
  line-height: 1.15;
}

.showcase-copy p {
  margin-bottom: 18px;
}

.browser-mock {
  overflow: hidden;
  background: var(--soft);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #e9eef1;
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--rose);
}

.browser-bar span:nth-child(2) {
  background: var(--gold);
}

.browser-bar span:nth-child(3) {
  background: var(--green);
}

.browser-bar strong {
  margin-left: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.verification-card {
  width: min(420px, calc(100% - 32px));
  margin: 24px auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.costco-mark {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 900;
}

.verification-card p {
  margin: 8px 0 18px;
  font-size: 0.95rem;
}

.pipeline-card {
  display: grid;
  gap: 16px;
  width: min(520px, calc(100% - 32px));
  margin: 24px auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(57, 210, 199, 0.18), transparent 42%),
    var(--panel);
}

.pipeline-title {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 950;
}

.pipeline-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.pipeline-steps span {
  display: grid;
  min-height: 48px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--ink);
  font-size: 0.78rem;
  font-weight: 850;
}

.pipeline-summary {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.pipeline-summary strong {
  display: block;
  margin-bottom: 6px;
}

.pipeline-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.leadflow-card {
  display: grid;
  gap: 16px;
  width: min(520px, calc(100% - 32px));
  margin: 24px auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(57, 210, 199, 0.18), transparent 42%),
    var(--panel);
}

.leadflow-title {
  display: inline-flex;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  color: #071623;
  background: var(--teal);
  font-weight: 950;
}

.leadflow-offers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.leadflow-offers span {
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--soft);
  font-size: 0.82rem;
  font-weight: 850;
}

.leadflow-summary {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.leadflow-summary strong {
  display: block;
  margin-bottom: 6px;
}

.leadflow-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.mini-live-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 9px 12px;
  border: 1px solid rgba(15, 118, 110, 0.3);
  border-radius: 8px;
  color: #07131f;
  background: linear-gradient(135deg, rgba(57, 210, 199, 0.92), rgba(120, 167, 255, 0.76));
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mini-live-link::before {
  display: inline-grid;
  min-width: 34px;
  min-height: 22px;
  place-items: center;
  border-radius: 999px;
  color: #07131f;
  background: rgba(255, 255, 255, 0.68);
  content: "LIVE";
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0;
}

.mini-live-link::after {
  content: "↗";
  line-height: 1;
}

.verification-card label {
  display: block;
  margin: 12px 0 6px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.fake-input {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #8b96a0;
  background: var(--paper);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.segmented span,
.fake-submit {
  display: grid;
  min-height: 40px;
  place-items: center;
  border-radius: 8px;
  font-weight: 850;
}

.segmented span {
  border: 1px solid var(--line);
  background: var(--paper);
}

.fake-submit {
  margin-top: 18px;
  color: white;
  background: var(--ink);
}

.process-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 18px 0 30px;
}

.process-strip div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.process-strip strong {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: var(--teal);
}

.process-strip span {
  display: block;
  margin: 14px 0 6px;
  font-weight: 850;
}

.process-strip p {
  margin: 0;
  font-size: 0.9rem;
}

.automation-lab {
  padding: 12px 0 50px;
}

.artifact-layout {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 24px;
  align-items: start;
}

.compact-artifact {
  padding-top: 34px;
}

.compact-artifact .section-heading {
  margin-bottom: 18px;
}

.compact-artifact .section-heading h2 {
  font-size: clamp(2rem, 3.3vw, 3.2rem);
}

.portfolio-build {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  gap: 22px;
  align-items: start;
}

.portfolio-build-visual,
.portfolio-build-content {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--card-shadow);
}

.portfolio-build-visual {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(37, 99, 235, 0.05) 45%, rgba(217, 154, 34, 0.08)),
    var(--panel);
}

.build-snapshot {
  padding: 20px;
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 8px;
  background: var(--tint);
}

.build-snapshot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.build-snapshot-top span,
.artifact-kicker {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.build-snapshot h3,
.portfolio-build-content h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.12;
}

.build-snapshot p,
.portfolio-build-content p {
  margin: 12px 0 0;
  color: var(--muted);
}

.portfolio-build-case .mini-live-link {
  padding: 7px 10px;
  font-size: 0.86rem;
}

.portfolio-build-case .mini-live-link::before {
  min-width: 30px;
  min-height: 20px;
}

.build-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.build-metrics div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.build-metrics small,
.build-metrics strong {
  display: block;
}

.build-metrics small {
  color: var(--muted);
  font-weight: 850;
}

.build-metrics strong {
  margin-top: 4px;
  font-size: 1.05rem;
}

.build-loop {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.build-loop div {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 12px;
  align-items: start;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.build-loop div::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -7px;
  width: 12px;
  height: 2px;
  background: var(--teal);
}

.build-loop div:nth-child(2)::after,
.build-loop div:last-child::after {
  display: none;
}

.build-loop span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  color: #07131f;
  background: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
}

.build-loop strong {
  display: block;
}

.build-loop p {
  grid-column: 2;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.portfolio-build-content {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 24px;
}

.portfolio-build-content p {
  font-size: 0.98rem;
  line-height: 1.52;
}

.portfolio-proof-grid {
  display: grid;
  gap: 10px;
}

.portfolio-proof-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.portfolio-proof-grid strong,
.portfolio-proof-grid span {
  display: block;
}

.portfolio-proof-grid span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.42;
}

.artifact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.portfolio-build-case .artifact-actions .button {
  min-height: 42px;
  padding: 10px 12px;
  font-size: 0.92rem;
}

.assistant-mock {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--tint);
  box-shadow: var(--shadow);
}

.assistant-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  font-weight: 850;
}

.assistant-header strong {
  color: var(--teal);
}

.message-row {
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.message-row span {
  display: block;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.message-row p {
  margin: 6px 0 0;
  color: var(--ink);
}

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

.field-grid div {
  padding: 12px;
  border-radius: 8px;
  background: var(--panel);
}

.field-grid small,
.field-grid strong {
  display: block;
}

.field-grid small {
  color: var(--muted);
  font-weight: 800;
}

.decision-list {
  display: grid;
  gap: 10px;
}

.decision-list div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.decision-list strong,
.decision-list span {
  display: block;
}

.decision-list span {
  margin-top: 6px;
  color: var(--muted);
}

.lab-card span,
.timeline-item span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.lab-card ul {
  margin: 18px 0 0;
  padding-left: 19px;
  color: var(--muted);
}

.workflow-section {
  padding: 24px 0 90px;
}

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

.workflow div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.workflow strong {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--ink);
}

.workflow span {
  display: block;
  margin: 18px 0 8px;
  font-weight: 850;
}

.workflow p {
  margin: 0;
  color: var(--muted);
}

.about-hero {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  padding: clamp(54px, 9vw, 110px) 0 60px;
}

.about-hero img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.about-hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 5rem);
  line-height: 1;
}

.about-hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.18rem;
}

.timeline {
  display: grid;
  gap: 14px;
  padding-bottom: 90px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 0.34fr 0.34fr 1fr;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.timeline-item h2,
.timeline-item p {
  margin: 0;
}

.timeline-item p {
  color: var(--muted);
}

.contact-hero {
  min-height: 58vh;
}

.contact-grid {
  padding-bottom: 90px;
  grid-template-columns: repeat(2, 1fr);
}

.resume-links {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.resume-links a {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--soft);
  text-decoration: none;
}

.resume-links a:hover {
  border-color: var(--teal);
}

.resume-links strong,
.resume-links span {
  display: block;
}

.resume-links span {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 64px) 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer span {
  color: var(--ink);
  font-weight: 850;
}

.site-footer a {
  color: var(--muted);
  font-weight: 750;
  text-decoration: none;
}

.mobile-limit-toggle,
.mobile-collapse-toggle {
  display: none;
}

.mobile-collapse-toggle[hidden] {
  display: none !important;
}

.copilot-shell {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: grid;
  justify-items: end;
  gap: 12px;
  pointer-events: none;
}

.copilot-launcher,
.copilot-stage,
.copilot-arrival,
.copilot-panel {
  pointer-events: auto;
}

.copilot-stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--ink);
  background: radial-gradient(circle at 72% 26%, rgba(14, 116, 144, 0.22), transparent 26%),
    linear-gradient(135deg, rgba(251, 250, 247, 0.9), rgba(245, 247, 248, 0.74));
  backdrop-filter: blur(9px);
  font: inherit;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.24s ease, transform 0.24s ease;
  pointer-events: none;
}

.copilot-shell.spotlight .copilot-stage {
  opacity: 1;
  transform: scale(1);
  animation: stageFadeOut 0.24s ease 2.62s forwards;
  pointer-events: auto;
}

.copilot-stage::after {
  content: "";
  position: fixed;
  right: 34px;
  bottom: 22px;
  width: 154px;
  height: 44px;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at center, rgba(249, 115, 22, 0.46), rgba(249, 115, 22, 0) 58%),
    radial-gradient(ellipse at center, rgba(15, 23, 42, 0.34), rgba(15, 23, 42, 0) 70%);
  filter: blur(1px);
  opacity: 0;
  transform: scale(0.3);
  pointer-events: none;
}

.copilot-stage::before {
  content: "";
  position: fixed;
  right: 58px;
  bottom: 42px;
  width: 110px;
  height: 92px;
  background:
    radial-gradient(circle at 18% 76%, rgba(249, 115, 22, 0.78) 0 5px, transparent 6px),
    radial-gradient(circle at 38% 58%, rgba(15, 118, 110, 0.58) 0 6px, transparent 7px),
    radial-gradient(circle at 56% 72%, rgba(249, 115, 22, 0.7) 0 4px, transparent 5px),
    radial-gradient(circle at 72% 52%, rgba(15, 23, 42, 0.32) 0 6px, transparent 7px),
    radial-gradient(circle at 86% 78%, rgba(249, 115, 22, 0.58) 0 4px, transparent 5px);
  opacity: 0;
  transform: translateY(18px) scale(0.55);
  filter: blur(0.2px);
  pointer-events: none;
}

.copilot-shell.spotlight .copilot-stage::after {
  animation: landingBoom 2.85s ease both;
}

.copilot-shell.spotlight .copilot-stage::before {
  animation: landingSplash 2.85s ease both;
}

.web-strand {
  position: absolute;
  top: -8vh;
  left: 49%;
  width: 3px;
  height: 44vh;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(31, 41, 51, 0.78), rgba(31, 41, 51, 0.08));
  transform-origin: top;
  opacity: 0;
}

.stage-card {
  display: none;
  position: absolute;
  right: max(7vw, 28px);
  bottom: max(12vh, 72px);
  width: min(390px, calc(100vw - 40px));
  padding: 18px 20px;
  border: 1px solid rgba(31, 41, 51, 0.16);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 30px 90px rgba(31, 41, 51, 0.28);
  text-align: left;
  animation: stageCardPop 0.38s ease 1.35s both;
}

.stage-card span,
.stage-card strong,
.stage-card em {
  display: block;
}

.stage-card span {
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.stage-card strong {
  margin-top: 7px;
  font-size: clamp(1.1rem, 2vw, 1.42rem);
  line-height: 1.18;
}

.stage-card em {
  margin-top: 10px;
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.copilot-launcher {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 9px 16px 9px 9px;
  border: 1px solid rgba(31, 41, 51, 0.18);
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--ink), #0e7490);
  box-shadow: 0 20px 55px rgba(31, 41, 51, 0.24);
  font: inherit;
  cursor: pointer;
}

.copilot-shell.spotlight .copilot-launcher,
.copilot-shell.spotlight .copilot-arrival {
  opacity: 0;
  transform: translateY(10px) scale(0.94);
  animation: none !important;
  pointer-events: none;
}

.copilot-shell:not(.spotlight).landed .copilot-launcher {
  animation: landingLauncherPop 0.42s cubic-bezier(.2, 1.4, .24, 1) both, copilotPulse 1.1s ease-in-out 1 0.45s;
}

.spider-agent {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #1e3a8a;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.95), 0 16px 36px rgba(15, 23, 42, 0.3);
}

.spider-agent.spider-hero {
  --spider-hero-size: min(80vw, 80vh);
  position: fixed;
  left: 50vw;
  top: 50vh;
  width: var(--spider-hero-size);
  height: var(--spider-hero-size);
  background: transparent;
  box-shadow: none;
  transform: translate(-50%, -50%);
  transform-origin: center;
  animation: spiderHeroFly 2.65s cubic-bezier(.2, .94, .16, 1) both;
}

.spider-agent.spider-hero::after {
  content: "";
  position: absolute;
  inset: 18% 8% 4%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0) 66%);
  filter: blur(8px);
  transform: translate(10%, 14%);
  z-index: -2;
}

.spider-agent.mini {
  animation: spiderMiniBlink 3s ease-in-out infinite;
}

.spider-agent.avatar {
  width: 38px;
  height: 38px;
  background: #1e3a8a;
}

.spider-mask,
.spider-suit {
  position: absolute;
  border-radius: 999px;
}

.spider-mask {
  top: 5%;
  width: 74%;
  height: 66%;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.34), transparent 18%),
    radial-gradient(circle at 68% 78%, rgba(127, 29, 29, 0.4), transparent 32%),
    linear-gradient(145deg, #fb3b35 0%, #dc2626 46%, #991b1b 100%);
  border: 3px solid #172033;
  box-shadow: inset -10px -14px 24px rgba(127, 29, 29, 0.34), inset 8px 9px 18px rgba(255, 255, 255, 0.18);
  z-index: 2;
}

.spider-mask::before {
  content: "";
  position: absolute;
  inset: 11%;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 48%, rgba(255, 255, 255, 0.15) 49%, transparent 51%),
    linear-gradient(14deg, transparent 48%, rgba(255, 255, 255, 0.12) 49%, transparent 51%),
    linear-gradient(-16deg, transparent 48%, rgba(255, 255, 255, 0.12) 49%, transparent 51%);
  pointer-events: none;
}

.spider-suit {
  bottom: 7%;
  width: 64%;
  height: 52%;
  background:
    radial-gradient(circle at 34% 18%, rgba(255, 255, 255, 0.18), transparent 22%),
    linear-gradient(145deg, #2563eb 0%, #1d4ed8 48%, #1e3a8a 100%);
  border: 3px solid #172033;
  box-shadow: inset -9px -12px 18px rgba(15, 23, 42, 0.28), inset 7px 8px 14px rgba(255, 255, 255, 0.12);
  z-index: 1;
}

.spider-agent.spider-hero .spider-mask {
  border-width: clamp(4px, 0.9vw, 8px);
}

.spider-agent.spider-hero .spider-suit {
  border-width: clamp(4px, 0.9vw, 8px);
}

.spider-eye {
  position: absolute;
  top: 25%;
  width: 30%;
  height: 26%;
  border: 3px solid #172033;
  border-radius: 75% 35% 70% 35%;
  background: radial-gradient(circle at 35% 28%, white 0%, #eef7fb 55%, #cbd5e1 100%);
  box-shadow: inset -4px -5px 7px rgba(15, 23, 42, 0.12);
  z-index: 2;
}

.spider-agent.spider-hero .spider-eye {
  border-width: clamp(3px, 0.65vw, 6px);
}

.eye-left {
  left: 12%;
  transform: rotate(-15deg);
}

.eye-right {
  right: 12%;
  transform: scaleX(-1) rotate(-15deg);
}

.spider-smile {
  position: absolute;
  left: 50%;
  bottom: 18%;
  width: 23%;
  height: 10%;
  border-bottom: 3px solid rgba(23, 32, 51, 0.9);
  border-radius: 0 0 999px 999px;
  transform: translateX(-50%);
}

.spider-web {
  position: absolute;
  left: 50%;
  bottom: 82%;
  width: 4px;
  height: 86vh;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(31, 41, 51, 0.04), rgba(31, 41, 51, 0.72));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45);
  transform: translateX(-50%);
  transform-origin: bottom;
  z-index: 0;
  pointer-events: none;
}

.spider-leg {
  position: absolute;
  width: 34%;
  height: 8%;
  border-radius: 999px;
  background: linear-gradient(180deg, #1f2937, #0f172a);
  box-shadow: inset 0 4px 6px rgba(255, 255, 255, 0.08), 0 8px 18px rgba(15, 23, 42, 0.18);
  z-index: 0;
}

.leg-a {
  left: -16%;
  top: 28%;
  transform: rotate(24deg);
}

.leg-b {
  right: -16%;
  top: 28%;
  transform: rotate(-24deg);
}

.leg-c {
  left: -13%;
  bottom: 28%;
  transform: rotate(-18deg);
}

.leg-d {
  right: -13%;
  bottom: 28%;
  transform: rotate(18deg);
}

.spider-agent.spider-hero .spider-leg {
  height: 6%;
}

.spider-agent.spider-hero::before {
  content: "";
  position: absolute;
  left: -18%;
  top: 44%;
  width: 38%;
  height: 7%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(14, 116, 144, 0), rgba(14, 116, 144, 0.32));
  filter: blur(1px);
  transform: rotate(-8deg);
}

.spider-agent.mini::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 50%;
  width: 26px;
  height: 5px;
  border-radius: 999px;
  background: rgba(14, 116, 144, 0.34);
  box-shadow: -18px 0 0 rgba(14, 116, 144, 0.16), -34px 0 0 rgba(14, 116, 144, 0.07);
  transform: translateY(-50%);
}

.copilot-launcher strong {
  max-width: 120px;
  font-size: 0.95rem;
  line-height: 1.1;
}

.copilot-shell.nudge .copilot-launcher {
  animation: copilotFlyIn 0.9s cubic-bezier(.2, .8, .2, 1), copilotPulse 1.3s ease-in-out 2 0.9s;
}

.copilot-shell.nudge .spider-agent.mini {
  animation: copilotFloat 2.4s ease-in-out infinite;
}

.copilot-arrival {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: min(330px, calc(100vw - 28px));
  padding: 14px 16px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(31, 41, 51, 0.2);
  font: inherit;
  text-align: left;
  opacity: 0;
  transform: translate(26px, 18px) scale(0.92);
  transition: opacity 0.22s ease, transform 0.22s ease;
  cursor: pointer;
  pointer-events: none;
}

.copilot-arrival::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: -9px;
  width: 18px;
  height: 18px;
  background: var(--panel);
  border-right: 1px solid rgba(15, 118, 110, 0.2);
  border-bottom: 1px solid rgba(15, 118, 110, 0.2);
  transform: rotate(45deg);
}

.copilot-arrival span,
.copilot-arrival strong {
  display: block;
}

.copilot-arrival span {
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.copilot-arrival strong {
  margin-top: 4px;
  line-height: 1.28;
}

.copilot-shell.arrival .copilot-arrival {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  animation: arrivalWiggle 1.1s ease 0.3s 1;
  pointer-events: auto;
}

.copilot-panel {
  width: min(390px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 28px 80px rgba(31, 41, 51, 0.28);
}

.copilot-shell.expanded .copilot-panel {
  width: min(720px, calc(100vw - 44px));
}

.copilot-panel[hidden] {
  display: none;
}

.copilot-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  color: white;
  background: linear-gradient(135deg, var(--ink), var(--teal));
}

.copilot-head > div {
  flex: 1 1 auto;
  min-width: 0;
}

.copilot-head-avatar {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
}

.copilot-head span,
.copilot-head strong {
  display: block;
}

.copilot-head span {
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
  opacity: 0.84;
}

.copilot-head strong {
  margin-top: 3px;
  font-size: 1.04rem;
}

.copilot-close,
.copilot-expand {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.copilot-expand {
  font-size: 0.95rem;
}

.copilot-body {
  display: grid;
  max-height: min(430px, calc(100vh - 320px));
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  gap: 12px;
  padding: 14px;
  background: var(--soft);
}

.copilot-shell.expanded .copilot-body {
  max-height: min(560px, calc(100vh - 300px));
  grid-template-columns: 1fr;
}

.copilot-panel:has(> .fit-check[open]) .copilot-body {
  max-height: min(300px, calc(100vh - 540px));
}

.copilot-shell.conversation-active .copilot-prompts {
  order: 4;
}

.copilot-shell.conversation-active .copilot-messages {
  order: 2;
}

.copilot-shell.conversation-active .fit-check {
  order: 3;
}

.copilot-shell.conversation-active .copilot-prompts button {
  opacity: 0.72;
}

.copilot-shell.conversation-active .copilot-prompts.collapsed button,
.copilot-shell.conversation-active .copilot-prompt-summary button {
  opacity: 1;
}

.fit-check {
  padding: 10px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(57, 210, 199, 0.12), transparent 48%),
    var(--panel);
}

.copilot-panel > .fit-check {
  margin: 0 12px 12px;
  padding: 7px;
}

.copilot-panel > .fit-check[open] {
  max-height: min(320px, calc(100vh - 360px));
  overflow-x: hidden;
  overflow-y: auto;
}

.fit-check:not([open]) {
  padding: 8px;
}

.copilot-panel > .fit-check:not([open]) {
  padding: 6px;
}

.fit-check:not([open]) > :not(summary) {
  display: none;
}

.fit-check summary {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(57, 210, 199, 0.62);
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(57, 210, 199, 0.18), rgba(79, 140, 255, 0.08)),
    var(--paper);
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.16);
  font-weight: 900;
  list-style: none;
  cursor: pointer;
}

.copilot-panel > .fit-check summary {
  min-height: 50px;
  padding: 8px 10px;
}

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

.fit-check summary::before {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: #07131f;
  background: var(--teal);
  box-shadow: 0 8px 20px rgba(57, 210, 199, 0.32);
  content: "JD";
  font-size: 0.74rem;
  font-weight: 950;
}

.copilot-panel > .fit-check summary::before {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.fit-check summary::after {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #07131f;
  background: var(--gold);
  content: ">";
  font-size: 1rem;
  font-weight: 950;
}

.copilot-panel > .fit-check summary::after {
  width: 26px;
  height: 26px;
}

.fit-check[open] summary::after {
  transform: rotate(90deg);
}

.fit-check summary:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
}

.fit-check summary:focus-visible {
  outline: 3px solid rgba(57, 210, 199, 0.34);
  outline-offset: 3px;
}

.fit-check-copy {
  display: grid;
  gap: 4px;
}

.fit-check-copy strong {
  font-size: 0.96rem;
  line-height: 1.18;
}

.copilot-panel > .fit-check .fit-check-copy strong {
  font-size: 0.88rem;
}

.fit-check-copy small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.copilot-panel > .fit-check .fit-check-copy small {
  font-size: 0.7rem;
}

.fit-check textarea {
  width: 100%;
  min-height: 96px;
  margin-top: 12px;
  padding: 10px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
}

.fit-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
  margin-top: 10px;
}

.fit-controls label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.file-picker {
  position: relative;
  display: grid;
  min-height: 38px;
  align-items: center;
  padding: 8px 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  font-size: 0.82rem;
  cursor: pointer;
}

.file-picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-picker-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fit-controls button {
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: var(--teal);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
}

.fit-result {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: var(--tint);
  overflow-wrap: anywhere;
}

.fit-score {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.fit-score strong {
  color: var(--teal);
  font-size: 2.4rem;
  line-height: 1;
}

.fit-score span {
  color: var(--ink);
  font-weight: 900;
}

.fit-result p {
  margin: 8px 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.fit-columns {
  display: grid;
  gap: 10px;
}

.fit-columns b {
  display: block;
  margin-bottom: 4px;
}

.fit-columns ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.84rem;
}

.copilot-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.copilot-prompt-summary {
  display: flex;
  flex: 1 0 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 2px 2px;
}

.copilot-prompt-summary span,
.copilot-prompts small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.copilot-prompts small {
  align-self: center;
  padding-left: 2px;
}

.copilot-prompts button {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--panel);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.copilot-prompts button.featured {
  color: #07131f;
  border-color: rgba(57, 210, 199, 0.66);
  background:
    linear-gradient(135deg, rgba(57, 210, 199, 0.94), rgba(120, 167, 255, 0.74)),
    var(--teal);
}

.copilot-prompts .copilot-prompt-toggle {
  padding: 6px 10px;
  color: #07131f;
  border-color: rgba(57, 210, 199, 0.58);
  background: var(--teal);
  font-size: 0.76rem;
}

.copilot-prompts.collapsed {
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.copilot-prompts.collapsed button:not(.copilot-prompt-toggle) {
  max-width: 100%;
}

.copilot-messages {
  display: grid;
  gap: 10px;
}

.copilot-message {
  max-width: 82%;
  padding: 11px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(31, 41, 51, 0.07);
  overflow-wrap: anywhere;
}

.copilot-shell.expanded .copilot-message {
  max-width: 74%;
}

.copilot-message::before {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  content: "Fit Agent";
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.copilot-message p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.45;
}

.copilot-message.bot {
  justify-self: start;
  color: var(--ink);
  background: var(--panel);
  border-bottom-left-radius: 5px;
}

.copilot-message.user {
  justify-self: end;
  color: white;
  background: var(--teal);
  border-color: rgba(15, 118, 110, 0.42);
  border-bottom-right-radius: 5px;
}

.copilot-message.user::before {
  color: rgba(255, 255, 255, 0.72);
  content: "You";
  text-align: right;
}

.copilot-message.typing p {
  color: var(--muted);
}

.copilot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.copilot-actions a,
.copilot-actions button {
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.copilot-actions button {
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
}

.copilot-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.copilot-form input {
  min-width: 0;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.copilot-form button {
  min-height: 42px;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: var(--ink);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

@keyframes copilotPulse {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes copilotFlyIn {
  0% {
    opacity: 0;
    transform: translate(26px, 18px) scale(0.75) rotate(8deg);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0);
  }
}

@keyframes copilotFloat {
  0%, 100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-4px) rotate(2deg);
  }
}

@keyframes spiderHeroFly {
  0% {
    opacity: 0;
    left: 10vw;
    top: 8vh;
    transform: translate(-50%, -50%) rotate(-22deg) scale(0.045);
  }
  16% {
    opacity: 1;
    left: 22vw;
    top: 20vh;
    transform: translate(-50%, -50%) rotate(18deg) scale(0.13);
  }
  38% {
    opacity: 1;
    left: 40vw;
    top: 76vh;
    transform: translate(-50%, -50%) rotate(24deg) scale(0.48);
  }
  62% {
    opacity: 1;
    left: 58vw;
    top: 38vh;
    transform: translate(-50%, -50%) rotate(-16deg) scale(1);
  }
  79% {
    opacity: 1;
    left: 77vw;
    top: 69vh;
    transform: translate(-50%, -50%) rotate(11deg) scale(0.3);
  }
  92% {
    opacity: 1;
    left: calc(100vw - 96px);
    top: calc(100vh - 72px);
    transform: translate(-50%, -50%) rotate(-8deg) scale(0.07);
  }
  96% {
    opacity: 1;
    left: calc(100vw - 96px);
    top: calc(100vh - 58px);
    transform: translate(-50%, -50%) rotate(3deg) scale(0.082);
  }
  100% {
    opacity: 0;
    left: calc(100vw - 96px);
    top: calc(100vh - 58px);
    transform: translate(-50%, -50%) rotate(0) scale(0.068);
  }
}

@keyframes spiderHeroBreathe {
  0%, 100% {
    transform: translate(0, 0) scale(0.84) rotate(0);
  }
  50% {
    transform: translate(0, -8px) scale(0.87) rotate(1deg);
  }
}

@keyframes spiderMiniBlink {
  0%, 88%, 100% {
    filter: saturate(1);
  }
  92% {
    filter: saturate(1.25) brightness(1.08);
  }
}

@keyframes webSwing {
  0% {
    opacity: 0;
    transform: rotate(-24deg) scaleY(0.4);
  }
  35% {
    opacity: 1;
    transform: rotate(12deg) scaleY(1);
  }
  70% {
    transform: rotate(-6deg) scaleY(0.88);
  }
  100% {
    opacity: 0.65;
    transform: rotate(0) scaleY(0.82);
  }
}

@keyframes stageCardPop {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes stageFadeOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
  }
}

@keyframes landingBoom {
  0%, 82% {
    opacity: 0;
    transform: translateY(0) scale(0.25);
  }
  89% {
    opacity: 1;
    transform: translateY(0) scale(0.82);
  }
  94% {
    opacity: 0.85;
    transform: translateY(-6px) scale(1.28);
  }
  100% {
    opacity: 0;
    transform: translateY(-18px) scale(1.9);
  }
}

@keyframes landingSplash {
  0%, 82% {
    opacity: 0;
    transform: translateY(18px) scale(0.55);
  }
  88% {
    opacity: 1;
    transform: translateY(0) scale(0.9);
  }
  94% {
    opacity: 0.86;
    transform: translateY(-34px) scale(1.18);
  }
  100% {
    opacity: 0;
    transform: translateY(-58px) scale(1.34);
  }
}

@keyframes landingLauncherPop {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.78);
  }
  60% {
    opacity: 1;
    transform: translateY(-4px) scale(1.06);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes arrivalWiggle {
  0%, 100% {
    transform: translate(0, 0) scale(1) rotate(0);
  }
  25% {
    transform: translate(-4px, -2px) scale(1.02) rotate(-1deg);
  }
  55% {
    transform: translate(3px, 1px) scale(1.01) rotate(1deg);
  }
}

@media (max-width: 1080px) {
  .case-layout,
  .visual-showcase {
    grid-template-columns: 1fr;
  }

  .case-sidebar {
    position: static;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-width: 42px;
    padding: 0;
    color: var(--ink);
    font-size: 0;
  }

  .nav-toggle::before {
    width: 21px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
    content: "";
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .hero,
  .section-heading,
  .split-section,
  .case-layout,
  .with-media,
  .with-media.flipped,
  .artifact-layout,
  .portfolio-build,
  .about-hero,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .case-sidebar {
    position: static;
  }

  .with-media.flipped img {
    order: 0;
  }

  .featured-grid,
  .thinking-grid,
  .deep-dive-grid,
  .eval-grid,
  .automation-lab,
  .workflow,
  .case-board,
  .visual-showcase {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-strip,
  .ai-flow,
  .backlog-flow,
  .build-loop {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .automation-proof-grid .lab-card,
  .automation-proof-grid .featured-wide,
  .automation-proof-grid .lab-card:nth-last-child(-n + 2) {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand menu"
      "theme language";
    gap: 10px 8px;
    align-items: center;
    padding: 12px 14px;
  }

  .brand {
    grid-area: brand;
    min-width: 0;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .brand span {
    max-width: 118px;
    overflow: hidden;
    font-size: 0.98rem;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-toggle {
    grid-area: menu;
    justify-self: end;
    min-height: 36px;
  }

  .theme-toggle {
    grid-area: theme;
    justify-self: start;
    min-height: 36px;
    padding: 6px 9px;
    font-size: 0.78rem;
  }

  .theme-toggle::before {
    width: 16px;
    height: 16px;
  }

  .language-toggle {
    grid-area: language;
    justify-self: end;
    min-height: 36px;
    min-width: 118px;
    font-size: 0.74rem;
  }

  .language-option {
    min-height: 28px;
  }

  .site-nav {
    right: 14px;
    left: 14px;
  }

  .section-band,
  .section,
  .page-hero,
  .case-picker,
  .case-study,
  .featured-cases,
  .artifact-section,
  .about-hero,
  .timeline,
  .automation-lab,
  .workflow-section,
  .contact-hero,
  .contact-grid {
    width: min(100% - 32px, 1180px);
  }

  .section,
  .product-thinking,
  .featured-cases,
  .artifact-section {
    padding: 42px 0;
  }

  .hero {
    gap: 18px;
    padding: 30px 0 34px;
  }

  .hero-copy,
  .hero-panel {
    min-width: 0;
  }

  .hero-panel {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .profile-photo {
    display: none;
  }

  .metric-grid {
    gap: 8px;
  }

  .metric-grid div {
    min-height: auto;
    padding: 12px;
  }

  .metric-grid strong {
    font-size: 1.48rem;
  }

  .metric-grid span {
    margin-top: 6px;
    font-size: 0.78rem;
  }

  .hero-actions {
    width: 100%;
    gap: 8px;
    margin-top: 22px;
  }

  .hero-actions .button {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .hero-actions .button.primary {
    flex-basis: 100%;
  }

  .proof-strip {
    flex-wrap: wrap;
    max-width: 100%;
    padding: 0 0 4px;
    overflow-x: visible;
  }

  .proof-strip::-webkit-scrollbar {
    display: none;
  }

  .proof-strip span {
    flex: 1 1 calc(50% - 4px);
    max-width: none;
    padding: 7px 9px;
    font-size: 0.8rem;
    overflow-wrap: anywhere;
    text-align: center;
    white-space: normal;
  }

  .page-hero,
  .case-picker,
  .contact-hero {
    padding: 40px 0 28px;
  }

  .section-heading {
    gap: 8px;
    margin-bottom: 18px;
  }

  .case-filterbar {
    flex-wrap: nowrap;
    margin-right: -16px;
    margin-left: -16px;
    padding: 0 16px 10px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .case-filterbar::-webkit-scrollbar {
    display: none;
  }

  .case-filter {
    flex: 0 0 auto;
    min-height: 42px;
  }

  .hero-copy h1,
  .page-hero h1,
  .contact-hero h1,
  .about-hero h1 {
    font-size: 2.22rem;
    line-height: 1.02;
  }

  .section-heading h2,
  .split-section h2,
  .workflow-section h2,
  .compact-artifact .section-heading h2 {
    font-size: 2rem;
  }

  .featured-grid,
  .thinking-grid,
  .deep-dive-grid,
  .eval-grid,
  .automation-lab,
  .workflow,
  .case-board,
  .contact-grid,
  .metric-grid,
  .insight-grid,
  .system-map,
  .visual-showcase,
  .process-strip,
  .ai-flow,
  .backlog-flow,
  .pipeline-steps,
  .build-metrics,
  .build-loop,
  .field-grid {
    grid-template-columns: 1fr;
  }

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

  .mobile-limit:not(.is-expanded) > [data-mobile-extra="true"] {
    display: none;
  }

  .mobile-collapsible {
    position: relative;
  }

  .mobile-collapsible:not(.is-expanded) {
    max-height: var(--mobile-collapsed-height, 720px);
    overflow: hidden;
  }

  .mobile-collapsible:not(.is-expanded)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 88px;
    background: linear-gradient(180deg, rgba(251, 250, 247, 0), var(--paper) 78%);
    pointer-events: none;
  }

  .mobile-limit-toggle,
  .mobile-collapse-toggle {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px auto 24px;
    padding: 10px 14px;
    border: 1px solid rgba(15, 118, 110, 0.32);
    border-radius: 8px;
    color: #07131f;
    background: linear-gradient(135deg, rgba(57, 210, 199, 0.94), rgba(120, 167, 255, 0.78));
    font: inherit;
    font-size: 0.92rem;
    font-weight: 900;
    cursor: pointer;
  }

  .mobile-limit-toggle::after,
  .mobile-collapse-toggle::after {
    content: "↓";
    line-height: 1;
  }

  .mobile-limit.is-expanded + .mobile-limit-toggle::after,
  .mobile-collapsible.is-expanded + .mobile-collapse-toggle::after {
    content: "↑";
  }

  .work-card,
  .deep-card,
  .thinking-grid article,
  .eval-grid article,
  .lab-card,
  .contact-grid article {
    min-height: auto;
    padding: 18px;
  }

  .work-card img,
  .deep-card img {
    width: calc(100% + 36px);
    height: 150px;
    margin: -18px -18px 16px;
  }

  .proof-grid .work-card {
    min-height: auto;
  }

  .automation-lab {
    padding-bottom: 32px;
  }

  .automation-proof-grid .lab-card,
  .automation-proof-grid .featured-wide {
    grid-column: span 1;
  }

  .artifact-layout {
    gap: 16px;
  }

  .portfolio-build {
    gap: 14px;
  }

  .portfolio-build-visual,
  .portfolio-build-content {
    padding: 14px;
  }

  .build-snapshot {
    padding: 16px;
  }

  .build-snapshot-top {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 14px;
  }

  .build-loop div::after {
    display: none;
  }

  .artifact-actions .button {
    width: 100%;
  }

  .assistant-mock,
  .message-row,
  .decision-list div {
    padding: 14px;
  }

  .field-grid div {
    padding: 10px;
  }

  .case-study {
    padding: 34px 0;
  }

  .workflow-section {
    padding: 18px 0 56px;
  }

  .contact-hero {
    min-height: auto;
  }

  .timeline {
    padding-bottom: 52px;
  }

  .site-footer a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
  }

  .contact-actions .button {
    width: 100%;
  }

  .copilot-shell {
    right: 14px;
    bottom: 14px;
  }

  .copilot-launcher strong {
    display: none;
  }

  .copilot-stage {
    align-items: start;
    padding-top: 16vh;
  }

  .spider-agent.spider-hero {
    width: min(88vw, 430px);
    height: min(88vw, 430px);
  }

  .stage-card {
    right: 20px;
    bottom: 72px;
    width: calc(100vw - 40px);
  }

  .fit-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .site-header {
    padding-right: 12px;
    padding-left: 12px;
  }

  .brand span {
    max-width: 104px;
    font-size: 0.94rem;
  }

  .nav-toggle {
    padding-right: 9px;
    padding-left: 9px;
  }

  .theme-toggle {
    gap: 5px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .language-toggle {
    min-width: 110px;
  }
}
