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

:root {
  --bg: #ffffff;
  --text: #000000;
  --muted: #42495a;
  --border: #e0e0e0;
  --card-hover: #fafafa;
  --font: 'Mulish', sans-serif;
}

[data-theme="dark"] {
  --bg: #111111;
  --text: #f0f0ee;
  --muted: #8a8a9a;
  --border: #252525;
  --card-hover: #1a1a1a;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s, color 0.2s;
}

a { color: inherit; }

/* ─── WRAP ─── */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── HEADER ─── */
header {
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 58px;
}

.logo {
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.15s;
}

.logo:hover { color: var(--text); }

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2px;
}

.nav-links a {
  font-size: 16px;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 12px;
  transition: color 0.15s;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 16px;
}

.theme-btn {
  background: var(--text);
  border: 1px solid var(--text);
  cursor: pointer;
  color: var(--bg);
  font-size: 13px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  line-height: 1;
}

.theme-btn:hover { opacity: 0.75; }

.hire-btn {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--bg) !important;
  background: var(--text);
  text-decoration: none;
  padding: 7px 18px;
  border-radius: 20px;
  transition: opacity 0.15s;
}

.hire-btn:hover { opacity: 0.75; }

/* ─── HERO ─── */
.hero-section { padding-bottom: 32px; }

.hero-wrap {
  max-width: 850px;
  padding: 64px 0 16px;
}

h1.hero-description {
  font-size: 38.4px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-link {
  display: inline-block;
  margin-top: 32px;
  font-size: 16px;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.15s;
}

.hero-link:hover { color: var(--text); }

/* ─── SECTION DIVIDERS ─── */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
}

/* ─── SECTIONS ─── */
section { padding-bottom: 32px; }

.section-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 32px;
  padding-bottom: 0;
}

/* ─── GRID ─── */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 48px;
  row-gap: 0;
  padding-top: 8px;
}

/* ─── PROJECT CARD ─── */
.grid-item {
  display: flex;
  flex-direction: column;
  padding-bottom: 24px;
  margin-bottom: 24px;
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
}

.grid-item_title {
  font-size: 22.4px;
  font-weight: 700;
  color: var(--text);
  padding: 19.2px 0 0;
  margin-bottom: 16px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.grid-item figure {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
}

.thumb {
  width: 100%;
  aspect-ratio: 16/10;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  transition: transform 0.4s ease;
}

.grid-item:hover .thumb { transform: scale(1.015); }

/* Project palette — matched to actual brand colours */
.thumb--somadesk  { background: linear-gradient(140deg, #0c1a12 0%, #1a3d25 60%, #2d7a46 100%); }
.thumb--uxie      { background: linear-gradient(140deg, #1a0a2e 0%, #3d1a6b 60%, #7c3aed 100%); }
.thumb--gtcure    { background: linear-gradient(140deg, #1e2260 0%, #3b3fa8 60%, #6b4fcf 100%); }
.thumb--kleverai  { background: linear-gradient(140deg, #0d1b2a 0%, #1a3a5c 60%, #0f6b7a 100%); }
.thumb--connetinbot { background: linear-gradient(140deg, #122a1c 0%, #1e5c35 60%, #2d8a50 100%); }
.thumb--connetin  { background: linear-gradient(140deg, #2a1222 0%, #5c1e3a 60%, #962b5e 100%); }

.grid-item > p {
  font-size: 14.4px;
  color: var(--muted);
  line-height: 1.65;
  padding: 12px 0 0;
}

.read_more_container {
  margin-top: 12px;
}

.read_more {
  font-size: 14.4px;
  color: var(--muted);
  text-decoration: none;
  position: relative;
  z-index: 1;
  transition: color 0.15s;
}

.read_more:hover { color: var(--text); }

/* Invisible full-card link overlay */
.grid-item .card-link {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* ─── ABOUT ─── */
.about-section .wrap { padding-top: 32px; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  padding: 32px 0 64px;
}

.about-heading {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.about-body > p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 14px;
}

.exp-list { margin-top: 24px; border-top: 1px solid var(--border); }

.exp-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.exp-role  { font-size: 14px; font-weight: 600; }
.exp-co    { font-size: 13px; color: var(--muted); margin-top: 2px; }
.exp-year  { font-size: 13px; color: var(--muted); white-space: nowrap; padding-left: 16px; }

/* ─── FOOTER ─── */
footer { border-top: 1px solid var(--border); }

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy { font-size: 14px; color: var(--muted); }

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

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

/* ─── PROJECT DETAIL ─── */
.project-hero { padding-bottom: 32px; }
.project-hero .hero-wrap { padding-bottom: 0; }

.project-hero h1.hero-description { font-size: 32px; }

.page-section { padding-bottom: 64px; }

.text-holder {
  padding-top: 32px;
}

/* Content block (after hero image) — centered reading column */
.hero-img + .text-holder {
  max-width: 780px;
  margin: 0 auto;
}

.project-meta {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.meta-item { }
.meta-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.meta-value { font-size: 14px; }

.text-holder h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 32px 0 12px;
}

.text-holder p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.proto-wrap {
  margin: 40px 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card-hover);
}

.proto-wrap iframe {
  display: block;
  width: 100%;
  height: 600px;
  border: none;
}

.proto-label {
  font-size: 12px;
  color: var(--muted);
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.proto-label a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}

.proto-label a:hover { color: var(--text); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 0;
  transition: color 0.15s;
}

.back-link:hover { color: var(--text); }

.next-project {
  margin-top: 32px;
  padding: 32px 0 64px;
  border-top: 1px solid var(--border);
}

.next-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.next-link {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.15s;
}

.next-link:hover { opacity: 0.5; }

/* ─── PROJECT IMAGES ─── */
.project-img {
  width: 100%;
  display: block;
  border-radius: 8px;
  margin: 32px 0;
  cursor: zoom-in;
}

/* ─── HERO IMAGE (full wrap width, natural height) ─── */
.hero-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 24px 0 40px;
}

/* ─── LIGHTBOX ─── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  overflow: auto;
  padding: 24px;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }

.lb-close {
  position: fixed;
  top: 16px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  z-index: 10000;
}
.lb-close:hover { background: rgba(255, 255, 255, 0.25); }

.lb-img {
  max-width: 90vw;
  max-height: 85vh;
  display: block;
  border-radius: 6px;
  cursor: zoom-in;
}

.lb-hint {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  white-space: nowrap;
  font-family: var(--font);
  margin: 0;
}

/* ─── EXPERIENCE TOGGLE ─── */
.exp-more { display: none; }
.exp-more.open { display: block; }
.exp-toggle {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  padding: 12px 0 4px;
  text-align: left;
  transition: color 0.15s;
}
.exp-toggle:hover { color: var(--text); }

.grid-item figure img {
  width: 100%;
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.grid-item:hover figure img { transform: scale(1.015); }

/* ─── RESEARCH STATS CALLOUT ─── */
.research-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin: 24px 0 32px;
}

.stat-item {
  background: var(--bg);
  padding: 24px 20px;
  text-align: center;
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* ─── AFFINITY MAP ─── */
.affinity-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 32px;
}

.affinity-cluster {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.affinity-cluster-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 14px;
  background: var(--card-hover);
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.affinity-notes {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg);
}

.affinity-note {
  background: var(--card-hover);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.affinity-map-full {
  grid-column: 1 / -1;
}

/* ─── PERSONA CARDS ─── */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0 32px;
}

.persona-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
}

.persona-card-header {
  padding: 20px;
  background: linear-gradient(140deg, #1a0a2e 0%, #3d1a6b 60%, #7c3aed 100%);
  color: #fff;
}

.persona-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 12px;
  font-style: normal;
}

.persona-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
}

.persona-role {
  font-size: 11px;
  opacity: 0.7;
  letter-spacing: 0.02em;
}

.persona-card-body {
  padding: 18px;
}

.persona-quote {
  font-size: 12.5px;
  font-style: italic;
  color: var(--muted);
  border-left: 3px solid #7c3aed;
  padding-left: 12px;
  margin-bottom: 16px;
  line-height: 1.6;
}

.persona-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  margin-top: 14px;
  display: block;
}

.persona-section-label:first-child { margin-top: 0; }

.persona-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.persona-list li {
  font-size: 12.5px;
  color: var(--muted);
  padding: 2px 0;
  display: flex;
  gap: 8px;
  line-height: 1.55;
}

.persona-list li::before {
  content: "—";
  color: var(--border);
  flex-shrink: 0;
}

/* ─── COMPETITIVE TABLE ─── */
.competitive-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 32px;
  font-size: 13px;
}

.competitive-table th {
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px;
  border-bottom: 2px solid var(--border);
}

.competitive-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  vertical-align: middle;
}

.competitive-table tr:last-child td { border-bottom: none; }

.competitive-table tr.uxie-row td {
  color: var(--text);
  font-weight: 700;
  background: var(--card-hover);
}

.competitive-table .platform-name {
  font-weight: 600;
  color: var(--text);
}

.competitive-table tr.uxie-row .platform-name { color: #7c3aed; }

.ct-yes { color: #22c55e; font-weight: 700; }
.ct-no  { color: var(--border); }
.ct-partial { color: var(--muted); font-size: 11px; }

/* ─── DESIGN DECISION BLOCKS ─── */
.decision-block {
  margin: 0 0 40px;
  padding: 28px 0 0;
  border-top: 1px solid var(--border);
}

.decision-number {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.decision-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--text);
  line-height: 1.3;
}

/* ─── WIREFRAME PLACEHOLDER ─── */
.wireframe-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--card-hover);
  border: 2px dashed var(--border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 24px;
  color: var(--muted);
}

.wireframe-placeholder-icon {
  font-size: 28px;
  opacity: 0.35;
}

.wireframe-placeholder-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.4;
}

/* ─── SCREENSHOT GALLERY ─── */
.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0 32px;
}

.screenshot-gallery-item {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.screenshot-gallery-item img {
  width: 100%;
  display: block;
  cursor: zoom-in;
  transition: transform 0.4s ease;
}

.screenshot-gallery-item:hover img { transform: scale(1.02); }

.gallery-caption {
  font-size: 11px;
  color: var(--muted);
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  background: var(--card-hover);
}

/* ─── EXPORT BUTTON ─── */
.export-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
  margin-top: 8px;
}

.export-btn:hover { color: var(--text); border-color: var(--text); }

/* ─── IMAGE STRIP (horizontal scroll for 2+ sequential images) ─── */
.img-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 20px 0 24px;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.img-strip::-webkit-scrollbar { height: 3px; }
.img-strip::-webkit-scrollbar-track { background: transparent; }
.img-strip::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.img-strip .project-img {
  flex: 0 0 70%;
  width: 70%;
  margin: 0;
  scroll-snap-align: start;
  border-radius: 8px;
  object-fit: cover;
}

/* ─── PERSONA CAROUSEL ─── */
.persona-carousel { margin: 24px 0 32px; }

/* viewport clips the sliding track */
.persona-carousel-viewport {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.persona-carousel-track {
  display: flex;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.persona-card--wide {
  flex: 0 0 100%;
  display: flex;
  flex-direction: row;
}

.persona-card--wide .persona-card-header {
  flex: 0 0 200px;
  padding: 32px 20px;
  background: linear-gradient(140deg, #1a0a2e 0%, #3d1a6b 60%, #7c3aed 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.persona-avatar-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: block;
  margin-bottom: 14px;
  background: rgba(255,255,255,0.1);
}

.persona-card--wide .persona-card-body {
  flex: 1;
  padding: 24px 28px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.persona-card--wide .persona-quote { margin-bottom: 16px; }

/* Vertical stacking — sections fill full width */
.persona-columns {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.carousel-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  line-height: 1;
  font-family: var(--font);
}

.carousel-btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

.carousel-dots { display: flex; gap: 8px; align-items: center; }

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active { background: var(--text); transform: scale(1.3); }

/* ─── THUMBNAIL HERO SCREEN (dashboard mockup inside gradient card) ─── */
.thumb { position: relative; }

.thumb-hero-screen {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 82%;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  display: block;
  pointer-events: none;
}

/* ─── CASE STUDY HERO FRAME (gradient container with floating screen) ─── */
.case-hero-frame {
  width: 100%;
  aspect-ratio: 16/7;
  border-radius: 8px;
  overflow: hidden;
  margin: 24px 0 40px;
  position: relative;
  background: linear-gradient(140deg, #1a0a2e 0%, #3d1a6b 60%, #7c3aed 100%);
}

.case-hero-screen {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 12px 48px rgba(0,0,0,0.5);
  display: block;
  pointer-events: none;
}

/* ─── SECTION SUBHEADING ─── */
.subsection-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 36px 0 12px;
}

/* ─── SOMADESK — ARCHITECTURE FLOW ─── */
.sd-flow {
  display: flex;
  gap: 0;
  margin: 20px 0 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.sd-flow-step {
  flex: 1;
  padding: 20px;
  background: var(--bg);
  border-right: 1px solid var(--border);
}

.sd-flow-step:last-child { border-right: none; }

.sd-flow-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.sd-flow-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.sd-flow-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}

/* ─── SOMADESK — AGENT LIFECYCLE ─── */
.lifecycle {
  margin: 20px 0 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.lifecycle-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.lifecycle-row:last-child { border-bottom: none; }

.lifecycle-row--gate { background: var(--card-hover); }

.lifecycle-badge {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  flex-shrink: 0;
  margin-top: 2px;
}

.lifecycle-badge--agent { background: #dbeafe; color: #1d4ed8; }
.lifecycle-badge--human { background: #dcfce7; color: #166534; }

[data-theme="dark"] .lifecycle-badge--agent { background: #1e3a5f; color: #93c5fd; }
[data-theme="dark"] .lifecycle-badge--human { background: #14532d; color: #86efac; }

.lifecycle-content strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

.lifecycle-content p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 !important;
}

/* ─── SOMADESK — BYOK COMPARISON ─── */
.byok-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin: 20px 0 28px;
}

.byok-col { background: var(--bg); padding: 20px 24px; }

.byok-col-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.byok-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.byok-row:last-child { border-bottom: none; }

.byok-key { color: var(--muted); }

.byok-val { font-weight: 700; color: var(--text); text-align: right; }

.byok-val--green { color: #166534; }
[data-theme="dark"] .byok-val--green { color: #86efac; }

/* ─── TECH TAGS ─── */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 8px;
}

.tech-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--card-hover);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  h1.hero-description { font-size: 28px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 680px) {
  .grid { grid-template-columns: 1fr; }
  h1.hero-description { font-size: 24px; }
  .hero-wrap { padding: 40px 0 16px; }
  .nav-links a { padding: 4px 8px; font-size: 14px; }
  .hire-btn { padding: 6px 14px; font-size: 12px; }
  .about-grid { padding-bottom: 40px; }
  .proto-wrap iframe { height: 420px; }
  .persona-grid { grid-template-columns: 1fr; }
  .affinity-map { grid-template-columns: 1fr 1fr; }
  .screenshot-gallery { grid-template-columns: 1fr; }
  .research-stats { grid-template-columns: 1fr; gap: 0; }
  .persona-card--wide { flex-direction: column; }
  .persona-card--wide .persona-card-header { flex: 0 0 auto; flex-direction: row; gap: 14px; align-items: center; padding: 18px 20px; }
  .persona-avatar-img { margin-bottom: 0; flex-shrink: 0; }
  .img-strip .project-img { flex: 0 0 85%; width: 85%; }
}

@media (max-width: 540px) {
  .affinity-map { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .header-inner { padding: 0 16px; }
  .wrap { padding: 0 16px; }
  .footer-inner { padding: 16px; }
  .nav-links { display: none; }
}
