/*
 * Precision Dark Engineering stylesheet for the consulting experience (`/` and
 * `/cv/`, `/certificates/`, `/projects/`).
 *
 * Kept intentionally separate from `static/css/catppuccin.css` + `site.css`,
 * which remain dedicated to `/terminal/` so neither view carries unused CSS
 * or risks selector collisions. Zero external font/asset requests.
 */

:root {
  --bg-canvas: #07090e;
  --bg-alt: #0a0d15;
  --bg-surface: #0d111b;
  --bg-elevated: #131927;
  --bg-glass: rgba(7, 9, 14, 0.82);

  --border-subtle: rgba(148, 163, 184, 0.12);
  --border-medium: rgba(148, 163, 184, 0.22);
  --border-strong: rgba(96, 165, 250, 0.38);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-cobalt: #3b82f6;
  --accent-cobalt-hover: #2563eb;
  --accent-sapphire: #60a5fa;
  --accent-tint: rgba(59, 130, 246, 0.12);

  --status-emerald: #10b981;
  --status-emerald-tint: rgba(16, 185, 129, 0.12);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --container-max: 1160px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-canvas);
  color: var(--text-primary);
}

body.consulting-body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Subtle architectural blueprint grid + radial hero glow */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 35%, transparent 100%);
}

.hero-glow {
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: min(960px, 100vw);
  height: 520px;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.16) 0%, rgba(37, 99, 235, 0.05) 45%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

a {
  color: var(--accent-sapphire);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

a:hover {
  color: #93c5fd;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-sapphire);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Sticky Header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-primary);
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.18), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: var(--accent-sapphire);
  flex-shrink: 0;
}

.brand-logo-svg {
  width: 1.45rem;
  height: 1.45rem;
}

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

.brand-name {
  font-weight: 650;
  font-size: 0.96rem;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.brand-role {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

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

.nav-terminal {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.nav-terminal:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.nav-terminal-mobile {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.93rem;
  line-height: 1.2;
  padding: 0.78rem 1.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-sm {
  font-size: 0.85rem;
  padding: 0.5rem 0.95rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--accent-cobalt);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 24px rgba(59, 130, 246, 0.24);
}

.btn-primary:hover {
  background: var(--accent-cobalt-hover);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45), 0 0 28px rgba(59, 130, 246, 0.36);
}

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

.btn-secondary:hover {
  background: #1a2234;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

/* ---- Hero + Blueprint ---- */

.hero-section {
  padding: 4.5rem 0 2.75rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 3rem;
  align-items: center;
}

.availability-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.26);
  font-size: 0.8rem;
  margin-bottom: 1.35rem;
}

.avail-primary {
  color: #d1fae5;
  font-weight: 500;
}

.avail-sep,
.avail-meta {
  color: var(--text-secondary);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-emerald);
  display: inline-block;
  flex-shrink: 0;
}

.status-dot.pulse {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
}

.hero-title {
  margin: 0 0 1.2rem;
  font-size: clamp(2.15rem, 4.1vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-lead {
  margin: 0 0 2rem;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/* Schematic Blueprint Card */
.blueprint-card {
  background: linear-gradient(180deg, rgba(19, 25, 39, 0.92) 0%, rgba(11, 15, 25, 0.96) 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.blueprint-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: rgba(7, 9, 14, 0.65);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.blueprint-dots {
  display: inline-flex;
  gap: 0.35rem;
}

.blueprint-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.25);
}

.blueprint-filename {
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blueprint-status {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: var(--status-emerald);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.68rem;
}

.blueprint-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bp-stage-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bp-step-tag {
  color: var(--accent-sapphire);
  background: var(--accent-tint);
  border: 1px solid rgba(96, 165, 250, 0.28);
  padding: 0.05rem 0.38rem;
  border-radius: 4px;
}

.bp-row {
  display: grid;
  gap: 0.6rem;
}

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

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

.bp-node {
  background: rgba(7, 9, 14, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.bp-node-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-primary);
  font-size: 0.82rem;
}

.bp-node-head svg {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--accent-sapphire);
  flex-shrink: 0;
}

.bp-node span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.bp-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.15rem 0;
}

.bp-arrow {
  width: 1rem;
  height: 1rem;
  color: var(--accent-sapphire);
  flex-shrink: 0;
}

.bp-connector-pill {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.12);
  border: 1px dashed rgba(96, 165, 250, 0.38);
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
}

.bp-zone {
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: rgba(15, 23, 42, 0.45);
  border-radius: var(--radius-md);
  padding: 0.75rem;
}

.bp-zone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.bp-zone-title {
  color: var(--accent-sapphire);
  font-weight: 600;
}

.bp-zone-meta {
  color: var(--text-muted);
}

.bp-subnode {
  background: rgba(7, 9, 14, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.bp-subnode-accent {
  border-color: rgba(96, 165, 250, 0.36);
  background: rgba(30, 58, 138, 0.16);
}

.bp-subnode-kicker {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-sapphire);
}

.bp-subnode strong {
  font-size: 0.78rem;
  color: var(--text-primary);
}

.bp-subnode span:last-child {
  font-size: 0.69rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.blueprint-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  background: rgba(7, 9, 14, 0.7);
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.blueprint-footer strong {
  color: var(--text-primary);
}

.blueprint-footer .emerald-text {
  color: var(--status-emerald);
}

.bp-sep {
  color: var(--text-muted);
}

.blueprint-caption {
  margin: 0.6rem 0 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ---- Metrics Bar ---- */

.metrics-bar {
  margin: 3.25rem 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.metric-cell {
  padding: 1.4rem 1.5rem;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.metric-cell:last-child {
  border-right: none;
}

.metric-label {
  order: 2;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0.3rem;
}

.metric-value {
  order: 1;
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
}

.metric-emerald {
  color: var(--status-emerald);
}

.metric-detail {
  order: 3;
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- Stack Strip ---- */

.stack-strip {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(13, 17, 27, 0.45);
}

.stack-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.stack-kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  flex-shrink: 0;
}

.pill-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
}

.compliance-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #93c5fd;
  background: var(--accent-tint);
  border: 1px solid rgba(96, 165, 250, 0.28);
  padding: 0.16rem 0.52rem;
  border-radius: 4px;
}

/* ---- Sections & Typography ---- */

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-intro {
  max-width: 44rem;
  margin-bottom: 2.75rem;
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-sapphire);
}

.section-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.16;
  letter-spacing: -0.028em;
  color: var(--text-primary);
}

.section-lead {
  margin: 0;
  font-size: 1.02rem;
  color: var(--text-secondary);
}

/* ---- Cards & Grids ---- */

.surface-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.surface-card:hover {
  border-color: var(--border-medium);
}

.three-col-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.domain-badges {
  margin-bottom: 1rem;
}

.card-title {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.card-subtitle {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.card-body {
  margin: 0 0 1.2rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.domain-card .card-body {
  margin-bottom: 0;
}

.service-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.service-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-sapphire);
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.check-list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-sapphire);
}

/* ---- Case Studies ---- */

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.case-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.case-domain {
  color: var(--accent-sapphire);
  font-weight: 600;
}

.case-scope {
  color: var(--text-muted);
}

.case-headline {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.case-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.case-block p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.case-label {
  margin: 0 0 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}

.case-outcomes {
  background: rgba(7, 9, 14, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.05rem;
  margin-top: auto;
}

.outcome-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.outcome-list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
}

.outcome-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--status-emerald);
}

/* Proof Strip (Certs & OSS) */
.proof-strip {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.proof-box {
  padding: 1.4rem 1.6rem;
}

.proof-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.proof-title {
  margin: 0;
  font-size: 1rem;
  color: var(--text-primary);
}

.text-link {
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.proof-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.proof-items li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

.proof-items li:first-child {
  padding-top: 0;
  border-top: none;
}

.proof-items strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.proof-sub {
  display: block;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.verify-pill {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  padding: 0.25rem 0.58rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.verify-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

/* ---- Engagement Tiers & Handover Guarantee ---- */

.tier-card {
  display: flex;
  flex-direction: column;
}

.tier-featured {
  border-color: var(--border-strong);
  background: linear-gradient(180deg, rgba(30, 58, 138, 0.14) 0%, var(--bg-surface) 42%);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.tier-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.tier-step {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tier-badge {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 600;
  color: #dbeafe;
  background: rgba(59, 130, 246, 0.22);
  border: 1px solid rgba(96, 165, 250, 0.4);
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
}

.tier-cadence {
  margin: -0.25rem 0 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-sapphire);
}

.tier-ideal {
  margin: 0 0 1.15rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(7, 9, 14, 0.5);
  border: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.tier-ideal strong {
  color: var(--text-primary);
}

.tier-cta {
  margin-top: auto;
  padding-top: 1.5rem;
}

.handover-banner {
  margin-top: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.6rem 1.85rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.08) 0%, rgba(13, 17, 27, 0.95) 55%);
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.handover-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 10px;
  background: var(--status-emerald-tint);
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: var(--status-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.handover-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.handover-title {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  color: var(--text-primary);
}

.handover-body {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-secondary);
}

/* ---- FAQ (<details> zero-JS accordion) ---- */

.faq-container {
  max-width: 52rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item[open] {
  border-color: var(--border-medium);
}

.faq-question {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text-primary);
}

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

.faq-chevron {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--accent-sapphire);
  line-height: 1;
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.35rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.faq-answer p {
  margin: 0;
}

/* ---- Closing CTA Banner ---- */

.cta-section {
  padding: 4.5rem 0 5.5rem;
}

.cta-banner {
  text-align: center;
  padding: 3.5rem 2rem;
  border-radius: 18px;
  background:
    radial-gradient(ellipse 75% 85% at 50% 0%, rgba(59, 130, 246, 0.2), transparent 70%),
    var(--bg-surface);
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.cta-heading {
  margin: 0 auto 0.9rem;
  max-width: 28ch;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.cta-body {
  margin: 0 auto 2rem;
  max-width: 54ch;
  color: var(--text-secondary);
  font-size: 1.02rem;
}

.cta-actions {
  justify-content: center;
}

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #05070b;
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-summary {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 38ch;
}

.footer-heading {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.9rem;
}

.footer-list a {
  color: var(--text-secondary);
}

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

.mono-link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-meta-right {
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

/* ---- Subpages (/cv/, /certificates/, /projects/) ---- */

.subpage-main {
  padding: 3rem 0 5rem;
}

.subpage-container {
  max-width: 56rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

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

.subpage-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.subpage-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.subpage-lead,
.subpage-lead p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.02rem;
}

.cv-section {
  margin-bottom: 3rem;
}

.subpage-h2 {
  margin: 0 0 1.25rem;
  font-size: 1.3rem;
  letter-spacing: -0.015em;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.skill-card {
  padding: 1.25rem 1.4rem;
}

.skill-category {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-card {
  padding: 1.4rem 1.6rem;
}

.timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.85rem;
}

.timeline-role {
  margin: 0;
  font-size: 1.08rem;
  color: var(--text-primary);
}

.timeline-company {
  margin: 0.15rem 0 0;
  font-size: 0.92rem;
  color: var(--accent-sapphire);
  font-weight: 500;
}

.timeline-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.subpage-cards {
  display: grid;
  gap: 1rem;
}

.subpage-cards.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-card {
  padding: 1.25rem 1.5rem;
}

.cert-card-top,
.proj-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--status-emerald);
  background: var(--status-emerald-tint);
  border: 1px solid rgba(16, 185, 129, 0.26);
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
}

.proj-card-top .card-title {
  margin: 0;
}

/* ---- Responsive Breakpoints ---- */

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .nav-terminal-mobile {
    display: inline-flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

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

  .metric-cell:nth-child(2) {
    border-right: none;
  }

  .metric-cell:nth-child(1),
  .metric-cell:nth-child(2) {
    border-bottom: 1px solid var(--border-subtle);
  }

  .three-col-grid,
  .bento-grid,
  .case-grid,
  .proof-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1.1rem;
  }

  .brand-role {
    display: none;
  }

  .hero-section {
    padding: 2.75rem 0 2rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .bp-row.two,
  .bp-row.three,
  .skills-grid,
  .subpage-cards.two-col {
    grid-template-columns: 1fr;
  }

  .metrics-bar {
    grid-template-columns: 1fr;
  }

  .metric-cell {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.15rem 1.25rem;
  }

  .metric-cell:last-child {
    border-bottom: none;
  }

  .handover-banner {
    flex-direction: column;
    padding: 1.35rem;
  }

  .cta-banner {
    padding: 2.5rem 1.25rem;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
