/* ── TOKENS ─────────────────────────────────────────────── */
/* Fonts loaded via <link> in each HTML file — no @import here */
:root {
  --bg:          #F9F7F2;
  --text:        #0F172A;
  --text-muted:  #60728A;
  --accent:      #F59E0B;
  --dark:        #0F172A;
  --border:      #E5E7EB;
  --card:        #ffffff;
  --success:     #10B981;
  --bg-glass: rgba(249, 247, 242, 0.95);
  --success-bg:     #F0FDF4;
  --success-border: #BBF7D0;
  --success-text:   #065F46;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* ── FADE-IN ────────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ── NAV ────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem); height: 64px;
  background: var(--bg-glass); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.nav.scrolled { border-color: var(--border); box-shadow: 0 1px 8px rgba(0,0,0,.06); }
.nav-logo { font-size: 1rem; font-weight: 800; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: .875rem; font-weight: 500; color: var(--text-muted); text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-size: .875rem; font-weight: 700;
  padding: .5rem 1.125rem; border-radius: 8px;
  background: var(--dark); color: #fff; text-decoration: none;
  transition: opacity .15s, transform .15s;
}
.nav-cta:hover { opacity: .85; transform: translateY(-1px); }
.nav-links a.active { color: var(--text); }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 9px;
  background: transparent; border: none; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── FOCUS VISIBLE (accessibility) ─────────────────────── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.page-content { padding-top: 64px; }

/* ── SHARED SECTION ─────────────────────────────────────── */
section { padding: 5rem clamp(1.5rem, 5vw, 4rem); max-width: 1100px; margin: 0 auto; }
.eyebrow { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .75rem; }
.section-title { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.2; margin-bottom: .75rem; }
.section-sub { font-size: 1rem; color: var(--text-muted); max-width: 560px; line-height: 1.7; margin-bottom: 2.5rem; }

/* ── AVAILABILITY BADGE ─────────────────────────────────── */
.avail-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--success-bg); border: 1px solid var(--success-border); color: var(--success-text);
  font-size: .8125rem; font-weight: 700; padding: .35rem .875rem;
  border-radius: 100px; margin-bottom: 1.25rem;
}
.avail-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pulse 2s ease-in-out infinite; }
.avail-badge--flush { margin-bottom: 0; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* ── HERO ───────────────────────────────────────────────── */
#hero {
  max-width: none; padding: 7rem clamp(1.5rem, 5vw, 4rem) 4rem;
  position: relative; overflow: hidden;
}
#hero::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245,158,11,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 1100px; margin: 0 auto; }
.hero-headline { font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 900; line-height: .95; letter-spacing: -.05em; margin-bottom: 1.25rem; }
.hero-headline .accent-line { display: inline-block; position: relative; }
.hero-headline .accent-line::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 6px; background: var(--accent); border-radius: 3px; }
.hero-sub { font-size: clamp(1rem, 1.5vw, 1.125rem); color: var(--text-muted); max-width: 560px; line-height: 1.75; margin-bottom: 2rem; }
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.5rem; border-radius: 10px;
  background: var(--dark); color: #fff; font-weight: 700; font-size: 1rem;
  text-decoration: none; transition: opacity .15s, transform .15s;
}
.btn-primary:hover { opacity: .85; transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.5rem; border-radius: 10px;
  background: transparent; color: var(--text); font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1.5px solid var(--border);
  transition: border-color .15s, transform .15s;
}
.btn-secondary:hover { border-color: #94A3B8; transform: translateY(-1px); }
.role-tags { display: flex; gap: .5rem; flex-wrap: wrap; }
.role-tag { background: #F1F5F9; border: 1px solid var(--border); color: #475569; font-size: .8125rem; font-weight: 500; padding: .3rem .75rem; border-radius: 100px; }
.role-tag.accent { background: #FEF3C7; border-color: #FCD34D; color: #92400E; }

/* ── STATS BAR ──────────────────────────────────────────── */
.stats-bar { background: var(--dark); padding: 2.5rem clamp(1.5rem, 5vw, 4rem); }
.stats-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 0 1rem; border-right: 1px solid rgba(255,255,255,.08); }
.stat:last-child { border-right: none; }
.stat-number { font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 900; color: var(--accent); letter-spacing: -.04em; line-height: 1; }
.stat-label { font-size: .8125rem; color: #94A3B8; margin-top: .5rem; line-height: 1.4; }

/* ── PROJECT CARDS ──────────────────────────────────────── */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(480px, 1fr)); gap: 1.5rem; }
.project-card {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: 16px; padding: 2rem;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.project-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); transform: translateY(-3px); border-color: #CBD5E1; }
.cat-badge { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .625rem; border-radius: 100px; white-space: nowrap; }
.cat-ux  { background: #FCE7F3; color: #9D174D; }
.cat-ai  { background: #D1FAE5; color: #065F46; }
.cat-sys { background: #E0E7FF; color: #3730A3; }
.cat-eng { background: #FEF3C7; color: #92400E; }
.card-title { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: .5rem; }
.card-desc { font-size: .9375rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 1.25rem; flex: 1; }
.card-outcome { background: var(--success-bg); border-left: 3px solid var(--success); padding: .625rem .875rem; font-size: .875rem; color: var(--success-text); border-radius: 0 6px 6px 0; margin-bottom: 1rem; }
.card-outcome strong { color: #059669; }
.stack-chips { display: flex; flex-wrap: wrap; gap: .375rem; margin-bottom: 1rem; }
.chip { font-size: .75rem; font-weight: 500; padding: .25rem .625rem; background: #F8FAFC; border: 1px solid var(--border); border-radius: 100px; color: var(--text-muted); }
.card-link { display: flex; align-items: center; gap: .375rem; color: var(--accent); font-size: .9375rem; font-weight: 700; text-decoration: none; border-top: 1px solid #F1F5F9; padding-top: 1rem; margin-top: auto; transition: gap .15s; }
.card-link:hover { gap: .625rem; }

/* ── ABOUT ──────────────────────────────────────────────── */
.about-wrap { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-wrap section { padding: 5rem clamp(1.5rem, 5vw, 4rem); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 2.5rem; }
.about-text p { font-size: 1rem; color: #475569; line-height: 1.8; margin-bottom: 1rem; }
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--text); font-weight: 600; }
.skill-groups { display: flex; flex-direction: column; gap: .75rem; }
.skill-group { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.125rem; }
.skill-group-label { font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .625rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: .375rem; }
.skill-tag { font-size: .8125rem; font-weight: 500; padding: .3rem .75rem; border-radius: 8px; background: var(--card); color: var(--text); border: 1px solid var(--border); }

/* ── CONTACT ────────────────────────────────────────────── */
.contact-wrap { background: var(--dark); }
.contact-wrap section { max-width: none; padding: 5rem clamp(1.5rem, 5vw, 4rem); text-align: center; }
.contact-wrap .eyebrow { color: var(--accent); }
.contact-wrap .section-title { color: #fff; }
.contact-wrap .section-sub { color: #94A3B8; margin: 0 auto 2.5rem; max-width: 480px; }
.contact-cards { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.contact-card {
  display: flex; align-items: center; gap: .75rem;
  padding: .875rem 1.5rem; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05);
  font-size: .9375rem; font-weight: 500; color: #E5E7EB;
  text-decoration: none; cursor: pointer;
  transition: border-color .15s, transform .15s, background .15s;
  font-family: inherit;
}
.contact-card:hover { border-color: rgba(255,255,255,.25); transform: translateY(-2px); background: rgba(255,255,255,.08); }

/* ── FOOTER ─────────────────────────────────────────────── */
footer {
  background: var(--dark); border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem clamp(1.5rem, 5vw, 4rem);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; font-size: .8125rem; color: var(--text-muted);
}
footer a { color: #94A3B8; text-decoration: none; font-weight: 500; transition: color .15s; }
footer a:hover { color: #CBD5E1; }

/* ── CASE STUDY: BREADCRUMB ─────────────────────────────── */
.breadcrumb {
  padding: .875rem clamp(1.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border); background: var(--card);
  display: flex; align-items: center; gap: .5rem; font-size: .875rem;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; font-weight: 500; transition: color .15s; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--text); font-weight: 600; }

/* ── CASE STUDY: PROJECT HERO ───────────────────────────── */
.project-hero { padding: 4rem clamp(1.5rem, 5vw, 4rem) 3rem; max-width: 1100px; margin: 0 auto; border-bottom: 1px solid var(--border); }
.project-meta { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.role-badge { font-size: .875rem; font-weight: 500; color: var(--text-muted); background: #F1F5F9; border: 1px solid var(--border); padding: .25rem .75rem; border-radius: 100px; }
.project-title { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; letter-spacing: -.05em; line-height: .95; margin-bottom: 1.25rem; }
.project-title em { font-style: normal; color: var(--accent); }
.project-lede { font-size: 1.125rem; color: #475569; line-height: 1.75; max-width: 640px; margin-bottom: 2.5rem; }
.hero-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.metric-card { background: var(--card); border: 1.5px solid var(--border); border-radius: 12px; padding: 1.25rem; text-align: center; }
.metric-number { font-size: 2rem; font-weight: 900; color: var(--text); letter-spacing: -.04em; line-height: 1; }
.metric-number.green { color: var(--success); }
.metric-label { font-size: .8125rem; color: #94A3B8; margin-top: .375rem; line-height: 1.4; }

/* ── CASE STUDY: BODY ───────────────────────────────────── */
.cs-body { max-width: 1100px; margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 4rem) 4rem; }
.cs-section { padding: 3rem 0; border-bottom: 1px solid var(--border); }
.cs-section:last-child { border-bottom: none; }
.cs-heading { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 1rem; }
.cs-text { font-size: 1rem; color: #475569; line-height: 1.8; }
.cs-text + .cs-text { margin-top: .875rem; }

/* ── CASE STUDY: PROCESS STEPS ──────────────────────────── */
.process-steps { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 1rem; align-items: start; }
.step-num { width: 40px; height: 40px; background: var(--dark); color: var(--accent); font-size: .875rem; font-weight: 800; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: .375rem; }
.step-desc { font-size: .9375rem; color: var(--text-muted); line-height: 1.65; }

/* ── CASE STUDY: TECH BLOCK ─────────────────────────────── */
.tech-block { background: var(--dark); border-radius: 12px; padding: 1.75rem; margin-top: 1.5rem; }
.tech-block-label { font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #94A3B8; margin-bottom: .75rem; }
.tech-chips { display: flex; flex-wrap: wrap; gap: .375rem; margin-bottom: 1.25rem; }
.tech-chip { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #E2E8F0; font-size: .8125rem; font-weight: 500; padding: .3rem .75rem; border-radius: 8px; }
.tech-chip.primary { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.3); color: #FCD34D; }
.code-block { background: #161B22; border-radius: 8px; padding: 1.25rem; margin-top: 1.25rem; border: 1px solid rgba(255,255,255,.06); overflow-x: auto; }
.code-file { font-size: .75rem; color: #4B5563; font-family: var(--font-mono); margin-bottom: .75rem; display: flex; align-items: center; gap: .5rem; }
.code-file::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--success); flex-shrink: 0; display: inline-block; }
.code-body { font-family: var(--font-mono); font-size: .875rem; line-height: 1.9; color: #E5E7EB; white-space: pre; }
.code-kw  { color: #7C3AED; }
.code-fn  { color: #60A5FA; }
.code-str { color: #F87171; }
.code-cm  { color: #4B5563; }
.code-dec { color: #34D399; }
.code-num { color: #FBBF24; }

/* ── CASE STUDY: OUTCOME ────────────────────────────────── */
.outcome-block { background: var(--dark); border-radius: 12px; padding: 1.75rem; margin-top: 1.5rem; }
.outcome-block .outcome-label { font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.outcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.outcome-item { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 10px; padding: 1.25rem; }
.outcome-icon { font-size: 1.375rem; margin-bottom: .625rem; }
.outcome-title { font-size: 1rem; font-weight: 700; color: #F9FAFB; margin-bottom: .375rem; }
.outcome-desc { font-size: .875rem; color: #94A3B8; line-height: 1.6; }

/* ── NEXT PROJECT NAV ───────────────────────────────────── */
.next-project {
  background: var(--card); border-top: 1px solid var(--border);
  padding: 1.5rem clamp(1.5rem, 5vw, 4rem);
  display: flex; justify-content: space-between; align-items: center;
}
.next-back { display: flex; align-items: center; gap: .5rem; color: var(--text-muted); text-decoration: none; font-size: .9375rem; font-weight: 600; transition: color .15s; }
.next-back:hover { color: var(--text); }
.next-forward { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; text-decoration: none; }
.next-label { font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #94A3B8; }
.next-title { font-size: 1rem; font-weight: 700; color: var(--accent); display: flex; align-items: center; gap: .375rem; transition: gap .15s; }
.next-forward:hover .next-title { gap: .625rem; }

/* ── DEMO: SHARED ───────────────────────────────────────── */
.demo-note { font-size: .8125rem; color: var(--text-muted); margin-top: .75rem; font-style: italic; }

/* ── DEMO: COMPONENT PLAYGROUND ─────────────────────────── */
.playground { background: var(--card); border: 1.5px solid var(--border); border-radius: 16px; overflow: hidden; margin-top: 1.5rem; }
.pg-tabs { display: flex; gap: .25rem; padding: .75rem .75rem 0; background: #F8FAFC; border-bottom: 1px solid var(--border); }
.pg-tab {
  font-family: inherit; font-size: .875rem; font-weight: 600; color: var(--text-muted);
  background: transparent; border: 1px solid transparent; border-bottom: none;
  border-radius: 8px 8px 0 0; padding: .5rem 1.125rem; cursor: pointer;
  transition: color .15s, background .15s;
}
.pg-tab:hover { color: var(--text); }
.pg-tab.active { background: var(--card); color: var(--text); border-color: var(--border); margin-bottom: -1px; }
.pg-stage {
  min-height: 150px; display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.5rem;
  background-image: radial-gradient(circle, #E2E8F0 1px, transparent 1px); background-size: 16px 16px;
}
.pg-controls { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: flex-end; padding: 1rem 1.25rem; border-top: 1px solid var(--border); }
.pg-control { display: flex; flex-direction: column; gap: .375rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.pg-control select {
  font-family: inherit; font-size: .875rem; font-weight: 500; color: var(--text);
  background: var(--card); border: 1.5px solid var(--border); border-radius: 8px; padding: .4rem .625rem;
}
.pg-control.pg-check { flex-direction: row; align-items: center; gap: .5rem; padding-bottom: .5rem; cursor: pointer; }
.pg-control.pg-check input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.pg-code { background: #161B22; padding: 1rem 1.25rem; font-family: var(--font-mono); font-size: .8125rem; line-height: 1.7; color: #E5E7EB; white-space: pre; overflow-x: auto; }

/* Demo components (recreations) */
.demo-btn { font-family: inherit; font-weight: 600; border-radius: 8px; border: 1.5px solid transparent; cursor: pointer; transition: opacity .15s, transform .15s; }
.demo-btn:hover:not(:disabled) { opacity: .85; transform: translateY(-1px); }
.demo-btn:disabled { opacity: .45; cursor: not-allowed; }
.demo-btn--sm { padding: .375rem .875rem; font-size: .8125rem; }
.demo-btn--md { padding: .625rem 1.25rem; font-size: .9375rem; }
.demo-btn--lg { padding: .875rem 1.75rem; font-size: 1.0625rem; }
.demo-btn--primary { background: var(--dark); color: #fff; }
.demo-btn--secondary { background: var(--card); color: var(--text); border-color: var(--border); }
.demo-btn--danger { background: #DC2626; color: #fff; }
.demo-badge { display: inline-flex; align-items: center; font-weight: 700; border-radius: 100px; border: 1px solid transparent; letter-spacing: .04em; text-transform: uppercase; }
.demo-badge--sm { font-size: .6875rem; padding: .2rem .625rem; }
.demo-badge--md { font-size: .8125rem; padding: .3rem .875rem; }
.demo-badge--neutral { background: #F1F5F9; border-color: var(--border); color: #475569; }
.demo-badge--success { background: var(--success-bg); border-color: var(--success-border); color: var(--success-text); }
.demo-badge--warning { background: #FEF3C7; border-color: #FCD34D; color: #92400E; }
.demo-badge--danger { background: #FEE2E2; border-color: #FECACA; color: #991B1B; }
.demo-alert { display: flex; align-items: flex-start; gap: .75rem; max-width: 440px; padding: .875rem 1.125rem; border-radius: 10px; border: 1px solid; font-size: .9375rem; line-height: 1.5; text-align: left; }
.demo-alert-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex-shrink: 0; margin-top: .375rem; }
.demo-alert--info { background: #EFF6FF; border-color: #BFDBFE; color: #1E40AF; }
.demo-alert--success { background: var(--success-bg); border-color: var(--success-border); color: var(--success-text); }
.demo-alert--warning { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.demo-alert--danger { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }

/* ── DEMO: UNIFYUXR WAVE MERGER ─────────────────────────── */
.inline-code { font-family: var(--font-mono); font-size: .875em; background: #F1F5F9; border: 1px solid var(--border); border-radius: 4px; padding: .1em .35em; }
.uxr-demo { background: var(--card); border: 1.5px solid var(--border); border-radius: 16px; padding: 1.5rem; margin-top: 1.5rem; }
.uxr-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 1.5rem; }
.uxr-slider label { display: block; font-size: .8125rem; font-weight: 700; color: var(--text); margin-bottom: .5rem; }
.uxr-slider .uxr-meta { color: var(--text-muted); font-weight: 500; }
.uxr-slider output { color: var(--accent); font-weight: 800; font-family: var(--font-mono); }
.uxr-slider input[type="range"] { width: 100%; accent-color: var(--accent); cursor: pointer; }
.uxr-chart-wrap { position: relative; height: 320px; }

/* ── DEMO: AI SESSION REPLAY ────────────────────────────── */
.replay { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.5rem; margin-top: 1.5rem; align-items: stretch; }
.replay-brief { background: var(--card); border: 1.5px solid var(--border); border-radius: 16px; padding: 1.5rem; display: flex; flex-direction: column; }
.replay-brief-label { font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .625rem; }
.replay-brief-text { font-size: .9375rem; color: #475569; line-height: 1.65; font-style: italic; margin-bottom: 1.25rem; }
.replay-btn {
  align-self: flex-start; font-family: inherit; font-size: .875rem; font-weight: 700;
  background: var(--dark); color: #fff; border: none; border-radius: 8px;
  padding: .5rem 1.125rem; cursor: pointer; margin-bottom: 1.25rem;
  transition: opacity .15s, transform .15s;
}
.replay-btn:hover { opacity: .85; transform: translateY(-1px); }
.replay-timeline { list-style: none; display: flex; flex-direction: column; gap: .625rem; margin-top: auto; }
.replay-timeline li { font-size: .8125rem; color: var(--text-muted); display: flex; gap: .625rem; align-items: baseline; opacity: .35; transition: opacity .3s; }
.replay-timeline li.on { opacity: 1; color: var(--text); }
.rt-time { font-family: var(--font-mono); font-size: .75rem; color: var(--accent); font-weight: 500; flex-shrink: 0; width: 2.6em; }
.replay-frame { background: var(--dark); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.rf-chrome { display: flex; align-items: center; gap: .375rem; padding: .625rem .875rem; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.08); }
.rf-chrome > span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.15); }
.rf-url { font-family: var(--font-mono); font-size: .6875rem; color: #64748B; background: rgba(255,255,255,.05); border-radius: 6px; padding: .2rem .625rem; margin-left: .5rem; }
.rf-body { padding: 1.25rem; display: flex; flex-direction: column; gap: .875rem; flex: 1; }
.rf-el { opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease; }
.rf-el.on { opacity: 1; transform: none; }
.rf-nav { display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 8px; padding: .55rem .875rem; color: #F9FAFB; font-size: .8125rem; font-weight: 700; }
.rf-nav-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); opacity: .8; }
.rf-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .625rem; }
.rf-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 8px; padding: .75rem; text-align: center; }
.rf-num { font-size: 1.25rem; font-weight: 900; color: #F9FAFB; line-height: 1.1; transition: color .3s; }
.rf-num.rf-warn { color: #FBBF24; }
.rf-num.rf-green { color: var(--success); }
.rf-lbl { font-size: .6875rem; color: #94A3B8; margin-top: .2rem; }
.rf-chart { display: flex; align-items: flex-end; gap: .45rem; height: 70px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 8px; padding: .625rem .75rem; }
.rf-chart span { flex: 1; height: var(--h); background: rgba(245,158,11,.55); border-radius: 3px 3px 0 0; }
.rf-done { font-size: .8125rem; font-weight: 700; color: var(--success); background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.25); border-radius: 8px; padding: .5rem .875rem; text-align: center; }

/* ── DEMO: FIDELITY COMPARISON ──────────────────────────── */
.fidelity-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.fc-panel { margin: 0; }
.fc-panel figcaption { font-size: .8125rem; font-weight: 600; color: var(--text-muted); margin-top: .75rem; text-align: center; }
.fc-screen { border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 11; display: flex; flex-direction: column; background: var(--card); }
/* Wireframe */
.fc-wire { background: #FAFAFA; }
.fcw-nav { height: 14%; background: #E5E7EB; border-bottom: 2px dashed #CBD5E1; }
.fcw-main { flex: 1; display: flex; }
.fcw-side { width: 22%; border-right: 2px dashed #CBD5E1; padding: 8% 10%; display: flex; flex-direction: column; gap: 18%; }
.fcw-side span { height: 8px; background: #D1D5DB; border-radius: 3px; }
.fcw-content { flex: 1; padding: 5%; display: flex; flex-direction: column; gap: 6%; }
.fcw-title { width: 45%; height: 10px; background: #D1D5DB; border-radius: 3px; }
.fcw-cards { display: flex; gap: 4%; height: 26%; }
.fcw-cards span { flex: 1; border: 2px dashed #CBD5E1; border-radius: 6px; background: #F3F4F6; }
.fcw-table { flex: 1; border: 2px dashed #CBD5E1; border-radius: 6px; padding: 4%; display: flex; flex-direction: column; gap: 8%; }
.fcw-table i { height: 6px; background: #E5E7EB; border-radius: 3px; }
/* High-fi */
.fch-nav { height: 14%; background: var(--dark); color: #F9FAFB; font-size: .6875rem; font-weight: 700; display: flex; align-items: center; padding: 0 5%; }
.fch-main { flex: 1; display: flex; background: #F8FAFC; }
.fch-side { width: 24%; background: var(--card); border-right: 1px solid var(--border); padding: 8% 0; display: flex; flex-direction: column; }
.fch-side span { font-size: .5625rem; font-weight: 600; color: var(--text-muted); padding: 6% 12%; }
.fch-side span.on { color: var(--text); background: #FEF3C7; border-right: 2px solid var(--accent); }
.fch-content { flex: 1; padding: 5%; display: flex; flex-direction: column; gap: 6%; }
.fch-title { font-size: .6875rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.fch-cards { display: flex; gap: 4%; height: 30%; }
.fch-card { flex: 1; background: var(--card); border: 1px solid var(--border); border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2%; }
.fch-card b { font-size: .8125rem; font-weight: 900; color: var(--text); }
.fch-card b.fch-warn { color: #D97706; }
.fch-card i { font-style: normal; font-size: .5rem; color: var(--text-muted); }
.fch-rows { flex: 1; background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: 4%; display: flex; flex-direction: column; gap: 8%; }
.fch-rows span { height: 6px; background: #F1F5F9; border-radius: 3px; }

/* ── DEMO: USER FLOW ────────────────────────────────────── */
.flow-title { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.02em; margin-top: 2.5rem; margin-bottom: 1rem; }
.flow { display: flex; align-items: center; gap: .625rem; flex-wrap: wrap; }
.flow-node { background: var(--card); border: 1.5px solid var(--border); border-radius: 10px; padding: .5rem 1rem; font-size: .8125rem; font-weight: 600; color: var(--text); }
.flow-node.flow-decision { border-color: var(--accent); background: #FEF3C7; color: #92400E; border-radius: 100px; }
.flow-node.flow-alt { border-style: dashed; color: var(--text-muted); }
.flow-arrow { color: #94A3B8; font-weight: 700; }

/* ── CARD PREVIEWS (homepage) ───────────────────────────── */
.card-preview {
  position: relative; height: 160px; border-radius: 10px; border: 1px solid var(--border);
  background: #F8FAFC; margin-bottom: 1.25rem; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  background-image: radial-gradient(circle, #E2E8F0 1px, transparent 1px); background-size: 14px 14px;
}
.card-preview .cat-badge { position: absolute; top: .625rem; right: .625rem; z-index: 1; }
.pv-pair { display: flex; align-items: center; gap: .75rem; width: 100%; max-width: 360px; }
.pv-arrow { color: var(--accent); font-weight: 800; font-size: 1.125rem; flex-shrink: 0; }
/* Mini wireframe */
.pv-wire { flex: 1; background: #FAFAFA; border: 1.5px dashed #CBD5E1; border-radius: 8px; padding: .5rem; display: flex; flex-direction: column; gap: .4rem; height: 104px; }
.pv-wire-bar { height: 10px; background: #E5E7EB; border-radius: 3px; }
.pv-wire-row { display: flex; gap: .3rem; flex: 1; }
.pv-wire-row span { flex: 1; border: 1.5px dashed #CBD5E1; border-radius: 4px; background: #F3F4F6; }
.pv-wire-block { height: 22px; border: 1.5px dashed #CBD5E1; border-radius: 4px; background: #F3F4F6; }
/* Mini high-fi */
.pv-hifi { flex: 1; background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: .5rem; display: flex; flex-direction: column; gap: .4rem; height: 104px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.pv-hifi-bar { height: 10px; background: var(--accent); border-radius: 3px; }
.pv-hifi-bar.pv-dark { background: var(--dark); }
.pv-hifi-row { display: flex; gap: .3rem; flex: 1; }
.pv-hifi-row span { flex: 1; background: #F8FAFC; border: 1px solid var(--border); border-radius: 4px; display: flex; align-items: center; justify-content: center; }
.pv-hifi-row b { font-size: .625rem; font-weight: 900; color: var(--text); }
.pv-hifi-row b.pv-warn { color: #D97706; }
.pv-hifi-row b.pv-green { color: var(--success); }
.pv-hifi-block { height: 22px; background: #F8FAFC; border: 1px solid var(--border); border-radius: 4px; padding: .25rem .375rem; display: flex; flex-direction: column; gap: .2rem; }
.pv-hifi-block i { height: 4px; background: #E2E8F0; border-radius: 2px; }
.pv-minichart { height: 22px; display: flex; align-items: flex-end; gap: .25rem; padding: 0 .125rem; }
.pv-minichart i { flex: 1; height: var(--h); background: rgba(245,158,11,.6); border-radius: 2px 2px 0 0; }
/* Mini terminal */
.pv-term { flex: 1; background: #161B22; border-radius: 8px; padding: .5rem .625rem; height: 104px; display: flex; flex-direction: column; gap: .45rem; }
.pv-term-dots { display: flex; gap: .25rem; }
.pv-term-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.2); }
.pv-term-line { font-family: var(--font-mono); font-size: .5625rem; color: #94A3B8; white-space: nowrap; overflow: hidden; }
.pv-term-line.pv-term-gen { color: var(--accent); }
/* Mini component set */
.pv-comps { display: flex; flex-direction: column; gap: .625rem; align-items: center; }
.pv-comp-row { display: flex; gap: .45rem; align-items: center; }
.pv-btn { font-size: .625rem; font-weight: 700; padding: .3rem .75rem; border-radius: 6px; }
.pv-btn-primary { background: var(--dark); color: #fff; }
.pv-btn-secondary { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.pv-btn-danger { background: #DC2626; color: #fff; }
.pv-pill { font-size: .5625rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .175rem .5rem; border-radius: 100px; border: 1px solid; }
.pv-pill-neutral { background: #F1F5F9; border-color: var(--border); color: #475569; }
.pv-pill-green { background: var(--success-bg); border-color: var(--success-border); color: var(--success-text); }
.pv-pill-amber { background: #FEF3C7; border-color: #FCD34D; color: #92400E; }
.pv-pill-red { background: #FEE2E2; border-color: #FECACA; color: #991B1B; }
.pv-alert { font-size: .625rem; font-weight: 600; color: var(--success-text); background: var(--success-bg); border: 1px solid var(--success-border); border-radius: 6px; padding: .3rem .625rem; }
/* Mini UnifyUXR */
.pv-uxr { display: flex; align-items: stretch; gap: 1rem; width: 100%; max-width: 320px; height: 104px; }
.pv-uxr-sliders { display: flex; flex-direction: column; justify-content: center; gap: .625rem; width: 35%; }
.pv-uxr-sliders span { position: relative; height: 5px; background: #E2E8F0; border-radius: 3px; }
.pv-uxr-sliders i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: var(--accent); border-radius: 3px; }
.pv-uxr-sliders i::after { content: ''; position: absolute; right: -5px; top: 50%; transform: translateY(-50%); width: 11px; height: 11px; border-radius: 50%; background: var(--card); border: 2.5px solid var(--accent); }
.pv-uxr-chart { flex: 1; background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: .5rem .625rem; display: flex; align-items: flex-end; gap: .25rem; }
.pv-uxr-chart i { flex: 1; height: var(--h); background: rgba(15,23,42,.3); border-radius: 2px 2px 0 0; }
.pv-uxr-chart i.pv-accent { background: var(--accent); }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .replay { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { justify-content: flex-start; }
  .nav-cta { margin-left: auto; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: .5rem 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border); box-shadow: 0 12px 24px rgba(0,0,0,.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: .875rem clamp(1.5rem, 5vw, 4rem); font-size: 1rem; }
  .work-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .stat { border-right: none; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .outcome-grid { grid-template-columns: 1fr; }
  .next-project { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .fidelity-compare { grid-template-columns: 1fr; }
  .uxr-controls { grid-template-columns: 1fr; gap: .875rem; }
  .uxr-chart-wrap { height: 260px; }
  .pg-controls { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { transition: none; }
  .avail-dot { animation: none; }
  .btn-primary, .btn-secondary, .nav-cta,
  .project-card, .card-link, .contact-card, .next-forward .next-title { transition: none; transform: none !important; }
}
