/* ─────────────────────────────────────────
   DESIGN SYSTEM — sivatayi.com
   Fonts: Space Grotesk + JetBrains Mono
   Palette: Pure black / white / grey
───────────────────────────────────────── */

:root {
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* palette */
  --bg: #f1f8ff;
  --bg2: #ffffff;
  --surface: #f9f9f9;
  --card: #ffffff;
  --card2: #f5f5f5;
  --border: #e5e5e5;
  --border2: #d0d0d0;
  --text: #000000;
  --text2: #4b4b4b;
  --text3: #9b9b9b;

  /* accent = black (no indigo) */
  --accent: #000000;
  --accent-s: #f5f5f5;
  --accent-b: #d0d0d0;
  --tag-fg: #000000;

  /* status colours — keep functional */
  --green: #16a34a;
  --amber: #d97706;
  --rose: #dc2626;
  --lilac: #7c3aed;

  /* radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;

  /* shadow */
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
}

/* optional dark mode — minimal inversion */
[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg2: #111111;
  --surface: #161616;
  --card: #1a1a1a;
  --card2: #1f1f1f;
  --border: #2a2a2a;
  --border2: #383838;
  --text: #f0f0f0;
  --text2: #a0a0a0;
  --text3: #606060;
  --accent: #f0f0f0;
  --accent-s: #1f1f1f;
  --accent-b: #3a3a3a;
  --tag-fg: #f0f0f0;
}

/* ─────────────────────────────────────────
   RESET + BASE
───────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  transition: background .3s, color .3s;
  overflow-x: hidden;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─────────────────────────────────────────
   AMBIENT GLOWS — hidden in this theme
───────────────────────────────────────── */
.glow-wrap,
.glow,
.g1,
.g2 {
  display: none;
}

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 56px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background .3s, border-color .3s;
}

[data-theme="dark"] header {
  background: rgba(10, 10, 10, 0.92);
}

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

.site-logo {
  height: 28px;
  width: auto;
  display: block;
}

[data-theme="dark"] .site-logo {
  filter: invert(1);
}

.nav-name {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text2);
  transition: color .2s;
  letter-spacing: 0.02em;
}

nav a:hover {
  color: var(--text);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text2);
  transition: background .2s, border-color .2s;
}

.theme-btn:hover {
  background: var(--card);
  border-color: var(--border2);
}

.btn-cta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--text);
  color: var(--bg);
  padding: 0.4rem 1.1rem;
  border-radius: var(--r-sm);
  letter-spacing: 0.02em;
  transition: opacity .2s;
}

.btn-cta:hover {
  opacity: 0.8;
}

/* ─────────────────────────────────────────
   LAYOUT WRAPPER
───────────────────────────────────────── */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 3rem;
  position: relative;
  z-index: 1;
}

/* ─────────────────────────────────────────
   HERO (#home)
───────────────────────────────────────── */
#home {
  padding: 7rem 0 5rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text2);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.3rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .4;
    transform: scale(.8);
  }
}

.hero-h1 {
  font-family: var(--font-body);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
  max-width: 820px;
}

.hero-h1 .italic {
  font-style: italic;
  font-weight: 400;
  color: var(--text);
}

.hero-h1 .muted {
  color: var(--text2);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text2);
  max-width: 540px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-desc strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.btn-primary {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--text);
  color: var(--bg);
  padding: 0.72rem 2rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--text);
  transition: opacity .2s, transform .15s;
}

.btn-primary:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}

.btn-outline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  background: transparent;
  color: var(--text);
  padding: 0.72rem 2rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border2);
  transition: border-color .2s, background .2s, transform .15s;
}

.btn-outline:hover {
  border-color: var(--text);
  background: var(--surface);
  transform: translateY(-1px);
}

/* RESUME SPLIT */
.resume-split {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.resume-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  border: 1px solid var(--border2);
  background: var(--surface);
  color: var(--text2);
  cursor: pointer;
  transition: border-color .2s, color .2s;
}

.resume-pill:hover {
  border-color: var(--text);
  color: var(--text);
}

.resume-pill span {
  opacity: 0.45;
  font-weight: 400;
}

/* STATS */
.hero-stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-right: none;
  min-width: 0;
}

.stat:first-child {
  border-radius: var(--r-sm) 0 0 var(--r-sm);
}

.stat:last-child {
  border-right: 1px solid var(--border);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.stat-n {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.03em;
}

.stat-n em {
  font-style: normal;
  color: var(--text2);
  font-size: 1.4rem;
}

.stat-l {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* TARGET ROLES */
.roles-bar {
  margin-top: 2.5rem;
  padding: 1.2rem 1.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.roles-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text3);
}

.role-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.25rem 0.8rem;
  border-radius: 100px;
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text2);
  transition: border-color .2s, color .2s;
}

.role-tag:hover {
  border-color: var(--text);
  color: var(--text);
}

/* ─────────────────────────────────────────
   SECTION HEADERS
───────────────────────────────────────── */
.sec-header {
  margin-bottom: 2.5rem;
}

.sec-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text3);
  margin-bottom: 0.75rem;
}

.sec-title {
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}

.sec-sub {
  font-size: 0.9rem;
  color: var(--text2);
  margin-top: 0.5rem;
  max-width: 520px;
  line-height: 1.75;
}

/* ─────────────────────────────────────────
   ABOUT (#about)
───────────────────────────────────────── */
#about {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.position-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5px;
  background: var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-top: 2rem;
}

.pos-card {
  background: var(--card);
  padding: 2.5rem;
}

.pos-card.accent {
  background: var(--surface);
}

.pos-num {
  font-family: var(--font-mono);
  font-size: 64px;
  font-weight: 700;
  color: var(--text);
  opacity: 0.06;
  line-height: 1;
  margin-bottom: 1rem;
}

.pos-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.pos-card p {
  font-size: 0.83rem;
  color: var(--text2);
  line-height: 1.75;
}

.pos-card blockquote {
  margin-top: 1.2rem;
  padding: 0.9rem 1.1rem;
  background: var(--surface);
  border-left: 3px solid var(--text);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 0.83rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
}

/* ─────────────────────────────────────────
   AI + DESIGN (#ai-design)
───────────────────────────────────────── */
#ai-design {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.process-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin: 2rem 0;
}

.proc-step {
  background: var(--card);
  padding: 1.8rem 2.5rem;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: start;
  gap: 2rem;
  transition: background .2s;
}

.proc-step:hover {
  background: var(--surface);
}

.proc-n {
  font-family: var(--font-mono);
  font-size: 56px;
  font-weight: 700;
  color: var(--text);
  opacity: 0.07;
  line-height: 1;
  margin-top: -4px;
}

.proc-body h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.proc-body p {
  font-size: 0.8rem;
  color: var(--text2);
  line-height: 1.65;
  max-width: 480px;
}

.proc-tools {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: flex-end;
  padding-top: 0.2rem;
}

.proc-tool {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  color: var(--text3);
  white-space: nowrap;
}

/* HIL BLOCK */
.hil-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 2rem 0;
}

.hil-left h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.hil-left p {
  font-size: 0.83rem;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 1.2rem;
}

.hil-principles {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.hil-p {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.hil-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text);
  margin-top: 8px;
  flex-shrink: 0;
}

.hil-p p {
  font-size: 0.81rem;
  color: var(--text);
  line-height: 1.6;
}

.hil-p p span {
  color: var(--text2);
}

.loop-diagram {
  display: flex;
  flex-direction: column;
}

.loop-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.loop-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-radius: var(--r-sm);
  margin-bottom: 0.4rem;
  border: 1px solid var(--border);
}

.loop-role {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.18rem 0.55rem;
  border-radius: 100px;
  white-space: nowrap;
}

.role-h {
  background: rgba(22, 163, 74, .1);
  color: #16a34a;
  border: 1px solid rgba(22, 163, 74, .25);
}

.role-a {
  background: var(--surface);
  color: var(--text2);
  border: 1px solid var(--border);
}

.loop-action {
  font-size: 0.8rem;
  color: var(--text);
  font-weight: 500;
}

.loop-arr {
  color: var(--text3);
  margin: 0 0 0.4rem 1.5rem;
  font-size: 0.8rem;
}

/* AI TOOLS */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5px;
  background: var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin: 2rem 0;
}

.tool-card {
  background: var(--card);
  padding: 1.6rem;
}

.tool-card:hover {
  background: var(--surface);
}

.tool-icon {
  margin-bottom: 0.8rem;
  color: var(--text);
  display: flex;
}

.tool-card h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.tool-card p {
  font-size: 0.74rem;
  color: var(--text2);
  line-height: 1.6;
}

.tool-use {
  margin-top: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--green);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.tool-use::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* METRICS */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5px;
  background: var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin: 2rem 0;
}

.metric-card {
  background: var(--card);
  padding: 1.8rem;
}

.metric-big {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.metric-big em {
  color: var(--text2);
  font-style: normal;
  font-size: 1.5rem;
}

.metric-card h5 {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.metric-card p {
  font-size: 0.72rem;
  color: var(--text2);
  line-height: 1.5;
}

/* ─────────────────────────────────────────
   CASE STUDIES (#work)
───────────────────────────────────────── */
#work {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.cs-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cs-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 260px;
  transition: border-color .25s, transform .2s, box-shadow .2s;
  cursor: pointer;
}

.cs-card:hover {
  border-color: var(--text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* VISUAL SIDE — replace all gradients with flat grey */
.cs-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  background: var(--surface);
}

.cs-v-indigo,
.cs-v-purple,
.cs-v-amber,
.cs-v-rose,
.cs-v-teal {
  background: var(--surface);
}

.cs-img-wrap {
  width: 240px;
  height: 160px;
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  z-index: 1;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.cs-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--surface);
  font-size: 0.62rem;
  color: var(--text3);
  text-align: center;
  padding: 0.5rem;
}

.cs-img-placeholder svg {
  opacity: 0.25;
}

.cs-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.4rem 0.7rem;
  z-index: 2;
}

[data-theme="dark"] .cs-badge {
  background: rgba(0, 0, 0, 0.7);
  border-color: var(--border);
}

.cs-badge-n {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.cs-badge-l {
  font-family: var(--font-mono);
  font-size: 0.54rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* BODY SIDE */
.cs-body {
  padding: 2rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cs-cat {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  margin-bottom: 0.8rem;
}

.cat-ai {
  background: #f0f0ff;
  color: #4040cc;
  border: 1px solid #d0d0f0;
}

.cat-ux {
  background: #fff8ec;
  color: #c07000;
  border: 1px solid #f0d8a0;
}

.cat-saas {
  background: #f0fff8;
  color: #006640;
  border: 1px solid #a0f0d0;
}

.cat-game {
  background: #fff0f0;
  color: #b00020;
  border: 1px solid #f0c0c0;
}

.cat-agent {
  background: #f5f0ff;
  color: #6600cc;
  border: 1px solid #d0b0f0;
}

.cs-body h2 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.cs-desc {
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 1.2rem;
}

.cs-metrics {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.cs-m {
  display: flex;
  flex-direction: column;
}

.cs-m-n {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.04em;
}

.cs-m-l {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cs-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.cs-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.16rem 0.5rem;
  color: var(--text3);
}

.cs-open-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.4rem 1rem;
  border: 1px solid var(--border2);
  border-radius: var(--r-sm);
  background: var(--surface);
  transition: border-color .2s, background .2s;
}

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

/* ─────────────────────────────────────────
   CONTACT (#contact)
───────────────────────────────────────── */
#contact {
  padding: 5rem 0 6rem;
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5px;
  background: var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-top: 2rem;
}

.contact-card {
  background: var(--card);
  padding: 2.5rem;
}

.contact-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-card p {
  font-size: 0.83rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--border2);
  border-radius: var(--r-sm);
  background: var(--surface);
  transition: background .2s, border-color .2s;
}

.contact-link:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.awards-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.award-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.5;
}

.award-icon {
  flex-shrink: 0;
  color: var(--text);
  display: inline-flex;
  align-items: center;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.footer-name {
  font-size: 1rem;
  font-weight: 700;
}

.footer-sub {
  font-size: 0.72rem;
  color: var(--text3);
  margin-top: 0.2rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text3);
  font-weight: 500;
  transition: color .2s;
}

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

/* ─────────────────────────────────────────
   MODAL
───────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 900px;
  min-height: 400px;
  position: relative;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text2);
  transition: background .2s;
}

.modal-close:hover {
  background: var(--text);
  color: var(--bg);
}

.modal-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text3);
}

.modal-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--border);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.modal-box iframe {
  width: 100%;
  border: none;
  display: block;
  min-height: 600px;
  border-radius: var(--r-xl);
}

/* INLINE CASE STUDY */
.cs-full {
  padding: 3rem;
  max-height: 80vh;
  overflow-y: auto;
}

.cs-full h1 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cs-full .cs-full-meta {
  font-size: 0.78rem;
  color: var(--text3);
  margin-bottom: 2rem;
}

.cs-full-img {
  width: 100%;
  height: 300px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text3);
  margin-bottom: 2rem;
  flex-direction: column;
  gap: 0.5rem;
}

.cs-full-img svg {
  opacity: 0.25;
}

.cs-full-img--loaded {
  background: none;
  border: none;
  padding: 0;
}

.cs-section {
  margin-bottom: 2rem;
}

.cs-section h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.cs-section p {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.75;
}

.cs-kpi-row {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.cs-kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1rem 1.4rem;
}

.cs-kpi-n {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.04em;
}

.cs-kpi-l {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ─────────────────────────────────────────
   UTILITIES
───────────────────────────────────────── */
.sep {
  height: 1px;
  background: var(--border);
  margin: 0;
}

.divider {
  margin: 4rem 0;
  border: none;
  border-top: 1px solid var(--border);
}

/* ─────────────────────────────────────────
   PROJECT VAULT (#projects)
───────────────────────────────────────── */
#projects {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.project-controls {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.search-input {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: .5rem 1rem;
  font-family: var(--font-body);
  font-size: .8rem;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
}

.search-input::placeholder {
  color: var(--text3);
}

.search-input:focus {
  border-color: var(--border2);
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 600;
  padding: .28rem .8rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text3);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}

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

.projects-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--text3);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5px;
  background: var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.project-card {
  background: var(--card);
  padding: 1.5rem;
  cursor: pointer;
  transition: background .2s;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  min-height: 160px;
}

.project-card:hover {
  background: var(--surface);
}

.project-codename {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
}

.project-cat-label {
  font-family: var(--font-mono);
  font-size: .58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text3);
  margin-top: .1rem;
}

.project-hook {
  font-size: .76rem;
  color: var(--text2);
  line-height: 1.5;
  flex: 1;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: auto;
  padding-top: .5rem;
  border-top: 1px solid var(--border);
}

.project-episode {
  font-family: var(--font-mono);
  font-size: .55rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.build-story-link {
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border2);
  padding: .15rem .5rem;
  border-radius: 4px;
  transition: background .2s, color .2s;
}

.build-story-link:hover {
  background: var(--text);
  color: var(--bg);
}

/* VAULT GATE */
#vaultGate {
  padding: 2.5rem 0 3.5rem;
}

.vault-gate-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.vault-stat {
  background: var(--card);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  align-items: center;
  text-align: center;
}

.vault-stat-n {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--text);
  line-height: 1;
}

.vault-stat-l {
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text3);
}

.vault-gate-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

.vault-unlock-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  color: var(--text2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: .5rem 1.3rem;
  cursor: pointer;
  transition: all .2s;
  letter-spacing: .02em;
}

.vault-unlock-btn:hover {
  border-color: var(--text);
  color: var(--text);
  background: var(--card);
}

.vault-gate-note {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--text3);
  margin: 0;
}

/* LABS SECTION */
.lab-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px dashed var(--border);
}

.lab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.lab-eyebrow {
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text3);
  margin-bottom: .25rem;
}

.lab-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text2);
}

.lab-unlock-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  color: var(--text3);
  border: 1px dashed var(--border);
  background: var(--surface);
  border-radius: 100px;
  padding: .4rem 1.1rem;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}

.lab-unlock-btn:hover {
  border-color: var(--text);
  color: var(--text);
  background: var(--card);
}

.lab-badge {
  font-family: var(--font-mono);
  font-size: .5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .1rem .42rem;
  border-radius: 100px;
  background: var(--surface);
  color: var(--text3);
  border: 1px solid var(--border);
}

/* CODENAME KEY MODAL */
.codekey-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  padding: 1rem;
}

.codekey-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.codekey-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 680px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.codekey-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.codekey-head h3 {
  font-size: .95rem;
  font-weight: 700;
  margin: 0;
}

.codekey-close {
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: .25rem;
}

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

.codekey-body {
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.codekey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: .4rem;
}

.codekey-row {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  padding: .4rem .5rem;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color .2s;
}

.codekey-row:hover {
  border-color: var(--border2);
}

.codekey-code {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .02em;
  white-space: nowrap;
  min-width: 90px;
}

.codekey-name {
  font-size: .7rem;
  color: var(--text2);
}

.codekey-foot {
  font-size: .62rem;
  color: var(--text3);
  text-align: center;
  padding: .75rem 1.5rem 1rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* STATUS BADGES — keep coloured for functional differentiation */
.badge {
  font-family: var(--font-mono);
  font-size: .55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .14rem .48rem;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  white-space: nowrap;
}

.badge-live {
  background: rgba(22, 163, 74, .1);
  color: #16a34a;
  border: 1px solid rgba(22, 163, 74, .25);
}

.badge-built {
  background: rgba(37, 99, 235, .1);
  color: #3b82f6;
  border: 1px solid rgba(37, 99, 235, .2);
}

.badge-proto {
  background: rgba(91, 94, 244, .08);
  color: #4547cc;
  border: 1px solid rgba(91, 94, 244, .2);
}

.badge-early {
  background: rgba(217, 119, 6, .1);
  color: #d97706;
  border: 1px solid rgba(217, 119, 6, .2);
}

.badge-concept,
.badge-completed {
  background: var(--surface);
  color: var(--text3);
  border: 1px solid var(--border);
}

.badge-market {
  background: rgba(8, 145, 178, .1);
  color: #06b6d4;
  border: 1px solid rgba(8, 145, 178, .2);
}

.badge-mature {
  background: rgba(5, 150, 105, .1);
  color: #10b981;
  border: 1px solid rgba(5, 150, 105, .2);
}

.badge-appstore {
  background: rgba(37, 99, 235, .1);
  color: #3b82f6;
  border: 1px solid rgba(37, 99, 235, .2);
}

.pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}

/* ─────────────────────────────────────────
   GENERATIVE HUMAN FRAMEWORK (#consulting)
───────────────────────────────────────── */
#consulting {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.arg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5px;
  background: var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-top: 2rem;
}

.arg-card {
  background: var(--card);
  padding: 2.5rem;
}

.arg-card.accent {
  background: var(--surface);
}

.arg-num {
  font-family: var(--font-mono);
  font-size: 64px;
  font-weight: 700;
  color: var(--text);
  opacity: 0.06;
  line-height: 1;
  margin-bottom: 1rem;
}

.arg-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .6rem;
}

.arg-card p {
  font-size: .83rem;
  color: var(--text2);
  line-height: 1.75;
}

.arg-card blockquote {
  margin-top: 1.2rem;
  padding: .9rem 1.1rem;
  background: var(--surface);
  border-left: 3px solid var(--text);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: .83rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
}

/* ─────────────────────────────────────────
   PROJECT OVERLAY
───────────────────────────────────────── */
.proj-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}

.proj-overlay.open {
  display: flex;
}

.proj-panel {
  width: 100%;
  max-width: 740px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  max-height: 88vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  margin: auto;
  box-shadow: var(--shadow-lg);
}

.proj-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: .9rem;
  cursor: pointer;
  color: var(--text2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.proj-close:hover {
  background: var(--text);
  color: var(--bg);
}

.proj-nav-btns {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.proj-nav-btn {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  color: var(--text3);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: .32rem .75rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all .2s;
}

.proj-nav-btn:hover {
  color: var(--text);
  border-color: var(--border2);
}

.proj-counter {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--text3);
}

.proj-codename {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  margin: .75rem 0 .2rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.proj-cat {
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text3);
  margin-bottom: .5rem;
}

.proj-hook {
  font-size: .95rem;
  color: var(--text2);
  font-style: italic;
  margin-bottom: 1.2rem;
}

.proj-section-label {
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text3);
  margin-bottom: .4rem;
}

.proj-problem,
.proj-brief-content {
  font-size: .85rem;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.proj-brief-content h1,
.proj-brief-content h2,
.proj-brief-content h3 {
  color: var(--text);
  margin: 1.2rem 0 .5rem;
  font-weight: 700;
}

.proj-brief-content p {
  margin-bottom: .8rem;
}

.proj-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.proj-cs-link {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  color: var(--text);
  padding: .4rem 1rem;
  border: 1px solid var(--border2);
  border-radius: var(--r-sm);
  background: var(--surface);
  margin-left: auto;
  transition: background .2s, border-color .2s;
}

.proj-cs-link:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* GALLERY */
.gallery-main {
  width: 100%;
  height: 280px;
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: .5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main img,
.gallery-main video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-strip {
  display: flex;
  gap: .4rem;
  margin-bottom: 1rem;
  overflow-x: auto;
}

.gallery-item {
  width: 56px;
  height: 42px;
  border-radius: var(--r-sm);
  overflow: hidden;
  cursor: pointer;
  opacity: .4;
  transition: opacity .2s;
  border: 2px solid transparent;
  flex-shrink: 0;
}

.gallery-item.active {
  opacity: 1;
  border-color: var(--text);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ARTIFACT VIEWER */
.art-overlay {
  position: fixed;
  inset: 0;
  z-index: 1800;
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(8px);
  display: none;
  flex-direction: column;
}

.art-overlay.open {
  display: flex;
}

.art-topbar {
  height: 52px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  flex-shrink: 0;
}

.art-topbar-title {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text2);
}

.art-close-btn {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  color: var(--text3);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: .32rem .85rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all .2s;
}

.art-close-btn:hover {
  color: var(--text);
  border-color: var(--border2);
}

.art-iframe {
  flex: 1;
  width: 100%;
  border: none;
  background: #fff;
}

.art-btns {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}

.art-btn {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  padding: .42rem 1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text2);
  cursor: pointer;
  transition: all .2s;
}

.art-btn:hover {
  border-color: var(--border2);
  color: var(--text);
  background: var(--card);
}

.art-btn.primary {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

/* GATE MODAL */
.gate-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
}

.gate-modal.open {
  display: flex;
}

.gate-panel {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  max-width: 440px;
  width: 90%;
  box-shadow: var(--shadow-lg);
}

.gate-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: var(--text);
}

.gate-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: .75rem;
}

.gate-body {
  font-size: .82rem;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.gate-input-row {
  display: flex;
  gap: .5rem;
}

.gate-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: .6rem 1rem;
  font-family: var(--font-body);
  font-size: .84rem;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
}

.gate-input:focus {
  border-color: var(--border2);
}

.gate-unlock-btn {
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 700;
  background: var(--text);
  color: var(--bg);
  padding: .6rem 1.4rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  border: none;
  transition: opacity .2s;
}

.gate-unlock-btn:hover {
  opacity: 0.8;
}

.gate-error {
  color: var(--rose);
  font-size: .75rem;
  margin-top: .5rem;
  display: none;
}

.gate-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.2rem 0;
}

.gate-dismiss {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text3);
  background: none;
  border: none;
  cursor: pointer;
  padding: .3rem .75rem;
  transition: color .2s;
}

.gate-dismiss:hover {
  color: var(--text2);
}

/* ─────────────────────────────────────────
   TOP 10 FEATURED (#featured)
───────────────────────────────────────── */
#featured {
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--border);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-top: 2.5rem;
}

.feat-card {
  background: var(--card);
  padding: 1.5rem;
  position: relative;
  cursor: pointer;
  transition: background .2s;
  overflow: hidden;
}

.feat-card:hover {
  background: var(--surface);
}


.feat-rank {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--text3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: .18rem .55rem;
}


.feat-codename {
  font-family: var(--font-mono);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: .2rem;
}

.feat-cat {
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: .75rem;
}

.feat-hook {
  font-size: .8rem;
  line-height: 1.55;
  color: var(--text2);
  margin-bottom: 1rem;
}

.feat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  flex-wrap: wrap;
}

.feat-cta {
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 700;
  color: var(--text3);
  transition: color .15s;
}

.feat-card:hover .feat-cta {
  color: var(--text);
}


/* ─────────────────────────────────────────
   MOBILE RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 768px) {
  .wrap {
    padding: 0 1.25rem;
  }

  header {
    padding: 0 1.25rem;
  }

  .btn-cta {
    display: none;
  }

  nav {
    display: none;
  }

  .nav-name {
    font-size: 15px;
  }

  #home {
    padding: 3rem 0 2.5rem;
  }

  #about,
  #ai-design,
  #work,
  #projects,
  #featured,
  #consulting,
  #contact {
    padding: 3rem 0;
  }

  .hero-h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-stats {
    gap: 0;
    flex-wrap: wrap;
  }

  .stat {
    flex: 1 0 calc(50% - 1px);
  }

  .stat:nth-child(odd):last-child {
    flex: 1 0 100%;
    border-right: 1px solid var(--border);
  }

  .stat:first-child {
    border-radius: var(--r-sm) 0 0 0;
  }

  .stat:last-child {
    border-radius: 0 0 var(--r-sm) var(--r-sm);
  }

  .stat-n {
    font-size: 1.6rem;
  }

  .roles-bar {
    padding: 1rem 1.2rem;
  }

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

  .pos-card {
    padding: 1.75rem;
  }

  .proc-step {
    grid-template-columns: 56px 1fr;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
  }

  .proc-tools {
    display: none;
  }

  .proc-n {
    font-size: 42px;
  }

  .hil-block {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.75rem;
  }

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

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

  .cs-card {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .cs-visual {
    min-height: 200px;
  }

  .cs-img-wrap {
    width: 200px;
    height: 135px;
  }

  .cs-body {
    padding: 1.5rem;
  }

  .cs-metrics {
    gap: 1.25rem;
  }

  .cs-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

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

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

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

  footer {
    padding: 1.75rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .proj-overlay {
    padding: .5rem;
    align-items: flex-end;
  }

  .proj-panel {
    max-height: 92vh;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    padding: 1.5rem;
    margin: 0;
  }

  .proj-codename {
    font-size: 1.4rem;
  }

  .art-topbar {
    padding: 0 1rem;
  }

  .art-topbar-title {
    font-size: .72rem;
    max-width: 60%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal-box {
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    max-height: 92vh;
    overflow-y: auto;
  }

  .modal-box iframe {
    min-height: 80vh;
  }

  .cs-full {
    padding: 1.5rem;
  }
}

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

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

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

  .hero-stats {
    gap: 0;
  }

  .nav-name {
    font-size: 14px;
  }

  .project-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input {
    max-width: 100%;
  }

  .projects-count {
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .vault-gate-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}