:root {
  --bg: #16181c;
  --bg2: #1e2026;
  --bg3: #252830;
  --purple: #7c3aed;
  --cyan: #22d3ee;
  --grad: linear-gradient(135deg, #7c3aed, #22d3ee);
  --grad-text: linear-gradient(90deg, #a855f7, #22d3ee);
  --white: #f0f2f7;
  --muted: #8b90a0;
  --border: rgba(255, 255, 255, 0.07);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}

.flower-svg {
  width: 100%;
  height: 100%;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 5vw;
  background: rgba(22, 24, 28, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 2px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

nav.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

nav.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

nav.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

section {
  padding: 100px 5vw;
  scroll-margin-top: 95px;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 0.95;
  margin-bottom: 1.5rem;
}

.section-title .grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 60px;
}

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 100px 5vw 60px;
  position: relative;
  overflow: hidden;
}

.hero-bg-shape {
  position: absolute;
  top: -80px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle at center, rgba(124, 58, 237, 0.18), transparent 70%);
  pointer-events: none;
}

.hero-flower {
  position: absolute;
  bottom: 40px;
  right: 8vw;
  width: 200px;
  height: 200px;
  opacity: 0.18;
}

.hero-content {
  max-width: 680px;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.35);
  color: #a78bfa;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s ease both;
}

.hero-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 0.92;
  letter-spacing: 2px;
  animation: fadeUp 0.7s ease 0.1s both;
}

.hero-name span {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  margin-top: 1.25rem;
  font-size: 1.02rem;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.7;
  animation: fadeUp 0.7s ease 0.2s both;
}

.hero-role {
  margin-top: 1.1rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  letter-spacing: 3px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeUp 0.7s ease 0.15s both;
}

.hero-tagline {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.6px;
  color: var(--white);
  animation: fadeUp 0.7s ease 0.2s both;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
  animation: fadeUp 0.7s ease 0.35s both;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.3px;
}

.hero-badge-available {
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.3);
  color: #4ade80;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  animation: fadeUp 0.7s ease 0.3s both;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 0.8rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: border-color 0.2s, transform 0.2s;
}

.btn-outline:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.hero-contacts {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  animation: fadeUp 0.7s ease 0.4s both;
}

.hero-contacts a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}

.hero-contacts a:hover {
  color: var(--cyan);
}

#about {
  background: var(--bg2);
  position: relative;
  overflow: hidden;
}

.about-flower {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  opacity: 0.08;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
  align-items: center;
}

.about-text p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: -4px;
}

.about-photo {
  min-height: 230px;
  height: 100%;
  border-radius: 18px;
  border: 1px solid var(--border);
  background-color: var(--bg3);
  background-image: linear-gradient(rgba(22, 24, 28, 0.12), rgba(22, 24, 28, 0.3)),
    url('https://materevenue.com/wp-content/uploads/2025/02/business-team-discussing-ideas-startup_86047-97-1536x1229.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

#experience {
  background: var(--bg2);
}

.exp-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.exp-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.8rem 2rem;
  transition: border-color 0.2s, transform 0.2s;
}

.exp-card:hover {
  border-color: rgba(124, 58, 237, 0.35);
  transform: translateY(-2px);
}

.exp-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.exp-org {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.exp-org-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 1px;
  color: #fff;
}

.exp-role {
  font-weight: 600;
  font-size: 0.98rem;
}

.exp-hourly {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.85rem;
}

.exp-company {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.1rem;
}

.exp-status {
  flex-shrink: 0;
  font-size: 0.72rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}

.exp-status.active {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.25);
  color: #4ade80;
}

.exp-status.upcoming {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}

.exp-desc {
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.75;
}

#skills {
  background: var(--bg);
}

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

.skill-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}

.skill-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-4px);
}

.skill-card-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.skill-card-title {
  font-weight: 600;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--muted);
}

.tag.purple {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.3);
  color: #a78bfa;
}

.tag.cyan {
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.25);
  color: var(--cyan);
}

#approach {
  background: var(--bg2);
  position: relative;
  overflow: hidden;
  padding: 0;
}

.approach-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.approach-photo {
  height: 260px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.approach-photo-a {
  background-image: linear-gradient(rgba(13, 17, 23, 0.2), rgba(13, 17, 23, 0.35)),
    url('https://images.unsplash.com/photo-1517694712202-14dd9538aa97?w=800&q=80');
  background-color: #0d1117;
}

.approach-photo-b {
  background-image: linear-gradient(rgba(17, 24, 36, 0.2), rgba(17, 24, 36, 0.35)),
    url('https://images.unsplash.com/photo-1552664730-d307ca884978?w=800&q=80');
  background-color: #111824;
}

.approach-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
  padding: 60px 5vw;
  align-items: start;
  position: relative;
}

.approach-flower-br {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 200px;
  height: 200px;
  opacity: 0.12;
  pointer-events: none;
}

.approach-big-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.9;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.approach-sub-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.7rem;
}

.approach-sub-title+.approach-sub-title,
.approach-sub-text+.approach-sub-title,
.approach-sub-title-spaced {
  margin-top: 2rem;
}

.approach-sub-text {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.8;
}

.code-win {
  width: 88%;
  max-width: 370px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.code-bar {
  background: #2d2d2d;
  padding: 8px 12px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-dot-red {
  background: #ff5f57;
}

.code-dot-yellow {
  background: #febc2e;
}

.code-dot-green {
  background: #28c840;
}

.code-body {
  background: #0d1117;
  padding: 1rem 1.2rem;
  font-family: monospace;
  font-size: 0.71rem;
  line-height: 1.65;
}

.cp {
  color: #c792ea;
}

.cc {
  color: #80deea;
}

.cg {
  color: #a5e844;
}

.cy {
  color: #ffcb6b;
}

.cm {
  color: #546e7a;
}

.cw {
  color: #eeffff;
}

#projects {
  background: var(--bg);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.project-card:hover {
  border-color: rgba(34, 211, 238, 0.3);
  transform: translateY(-4px);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover::before {
  opacity: 1;
}

.project-badge {
  display: inline-block;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: var(--cyan);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.project-badge.active {
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.3);
  color: #4ade80;
}

.project-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.project-desc {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-actions {
  margin-top: 1.15rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  color: var(--white);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid rgba(34, 211, 238, 0.45);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.project-link:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  transform: translateY(-1px);
}

#quizey {
  background: var(--bg);
}

.quizey-status {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.quizey-status-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.quizey-status-label {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: -4px;
}

.quizey-intro {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.85;
  max-width: 780px;
  margin-bottom: 3rem;
}

.quizey-phases {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.quizey-phase {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: 10px;
  padding: 1.6rem 1.9rem;
  transition: border-color 0.2s;
}

.quizey-phase:hover {
  border-color: rgba(124, 58, 237, 0.3);
  border-left-color: var(--purple);
}

.quizey-phase-active {
  border-left-color: var(--cyan);
  background: rgba(34, 211, 238, 0.04);
}

.quizey-phase-active:hover {
  border-left-color: var(--cyan);
}

.quizey-phase-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
}

.quizey-phase-title {
  font-weight: 600;
  font-size: 0.98rem;
}

.quizey-phase-tag {
  flex-shrink: 0;
  font-size: 0.68rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
}

.quizey-phase-tag.doing {
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: var(--cyan);
}

.quizey-phase-tag.next {
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: #a78bfa;
}

.quizey-phase-tag.future {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
}

.quizey-phase-text {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.quizey-phase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.quizey-rule {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.75;
  max-width: 700px;
}

#collab {
  background: var(--bg2);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.collab-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

.collab-left {
  padding: 70px 5vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.collab-flower {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 130px;
  height: 130px;
  opacity: 0.14;
  pointer-events: none;
}

.collab-big-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 5.5vw, 5rem);
  line-height: 0.9;
  margin-bottom: 2.8rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.collab-point {
  margin-bottom: 2rem;
}

.collab-point-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.collab-point-text {
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.78;
}

.collab-right {
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  overflow: hidden;
  position: relative;
}

.collab-visual {
  opacity: 0.55;
}

#problem {
  background: var(--bg);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.problem-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.problem-left {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px 4vw 60px 5vw;
  overflow: hidden;
}

.problem-arc {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 65%;
  padding-bottom: 65%;
  background: var(--bg2);
  border-radius: 0 0 100% 0;
  z-index: 0;
}

.problem-big-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 5.5vw, 5rem);
  line-height: 0.9;
  position: relative;
  z-index: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.problem-right {
  padding: 60px 5vw 60px 3vw;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.problem-screen {
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2.2rem;
  background: #0d1117;
  display: flex;
  align-items: center;
  justify-content: center;
}

.problem-point {
  margin-bottom: 2rem;
}

.problem-point-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.problem-point-text {
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.78;
}

#certs {
  background: var(--bg2);
}

.certs-grid,
.certs-featured {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.certs-sub-label {
  margin-bottom: 1rem;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
}

.certs-more-label {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.certs-more {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.certs-other {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cert-pill.compact {
  flex-direction: row;
  align-items: center;
  gap: 0;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.07);
}

.cert-pill.compact .cert-pill-name {
  font-size: 0.76rem;
  font-weight: 500;
}

.cert-pill.compact .cert-pill-name::after {
  content: ' · ';
  color: var(--muted);
}

.cert-pill.compact .cert-pill-org {
  font-size: 0.72rem;
}

.cert-pill {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  transition: border-color 0.2s;
}

.cert-pill:hover {
  border-color: rgba(124, 58, 237, 0.35);
}

.cert-pill-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
}

.cert-pill-org {
  font-size: 0.74rem;
  color: var(--muted);
}

.cert-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  transition: border-color 0.2s;
}

.cert-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
}

.cert-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.cert-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.cert-org {
  color: var(--muted);
  font-size: 0.78rem;
}

.cert-status {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.25);
  color: #4ade80;
}

.cert-status.progress {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}

.growing-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.growing-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 1rem;
}

.growing-tag {
  flex-shrink: 0;
  font-size: 0.68rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.growing-tag.learning {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}

.growing-tag.reading {
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: #a78bfa;
}

.growing-tag.next {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
}

.growing-text {
  font-size: 0.85rem;
  color: var(--white);
}

#vision {
  background: var(--bg2);
}

.vision-intro {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.85;
  max-width: 780px;
  margin-bottom: 3rem;
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.vision-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}

.vision-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-4px);
}

.vision-card-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.vision-card-title {
  font-weight: 600;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.vision-card-text {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.75;
}

.vision-quote {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--white);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.7;
  max-width: 760px;
}

#contact {
  background: var(--bg);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.contact-strip {
  width: 100%;
  height: 280px;
  position: relative;
  overflow: hidden;
}

.contact-strip-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1c22 0%, #21252f 50%, #1a1c22 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-strip-words {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.contact-strip-word {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 5.5rem;
  letter-spacing: 6px;
  color: var(--white);
  opacity: 0.07;
}

.contact-strip-flower {
  width: 80px;
  height: 80px;
  opacity: 0.12;
}

.contact-strip-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, var(--bg) 100%);
}

.contact-body {
  padding: 0 5vw 80px;
  position: relative;
  z-index: 1;
  margin-top: -60px;
}

.contact-title-row {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-flower-icon {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.contact-big-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 9vw, 8.5rem);
  line-height: 0.88;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-tagline {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 700px;
  margin-bottom: 3rem;
}

.contact-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  gap: 0;
}

.cbar-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--white);
  font-size: 0.88rem;
  padding-right: 2.5rem;
  margin-right: 2.5rem;
  border-right: 1px solid var(--border);
  transition: color 0.2s;
}

.cbar-item:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

.cbar-item:hover {
  color: var(--cyan);
}

.cbar-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}

.cbar-item:hover .cbar-icon {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
}

.cbar-item-static {
  cursor: default;
  pointer-events: none;
}

footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 1.8rem 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {

  .collab-wrap,
  .problem-wrap {
    grid-template-columns: 1fr;
  }

  .collab-right {
    min-height: 240px;
  }

  .problem-arc {
    display: none;
  }

  .approach-photos {
    grid-template-columns: 1fr;
  }

  .approach-photos .approach-photo:first-child {
    display: none;
  }

  .approach-bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  .about-grid,
  .skills-grid,
  .projects-grid,
  .certs-grid,
  .certs-featured,
  .vision-grid {
    grid-template-columns: 1fr;
  }

  .growing-item {
    align-items: flex-start;
  }

  .exp-card-top {
    align-items: flex-start;
  }

  .quizey-status {
    gap: 2rem;
  }

  nav {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.85rem;
    background: rgba(30, 32, 38, 0.98);
    border: 1px solid var(--border);
    border-radius: 16px;
  }

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

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.85rem 0.9rem;
    border-radius: 10px;
  }

  .nav-links a:hover {
    background: rgba(124, 58, 237, 0.12);
  }

  .hero-name {
    font-size: clamp(3.5rem, 14vw, 5rem);
  }

  .contact-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }

  .cbar-item {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
  }
}

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

/* ---- Flagship / supporting / foundations project tiers ---- */

.project-card.featured {
  grid-column: 1 / -1;
}

.project-badge.flagship {
  background: rgba(124, 58, 237, 0.14);
  border: 1px solid rgba(124, 58, 237, 0.4);
  color: #a78bfa;
}

/* ---- Experience bullet points ---- */

.exp-points {
  margin: 0.2rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.75;
}

.exp-points li {
  margin-bottom: 0.45rem;
}

.exp-points li:last-child {
  margin-bottom: 0;
}

.exp-points li::marker {
  color: var(--cyan);
}

.exp-status.neutral {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* ---- Project metric pills & engineering highlights ---- */

.project-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.metric-pill {
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.35);
  color: #c4b5fd;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.project-highlights {
  margin: 0 0 1.2rem;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.project-highlights li {
  margin-bottom: 0.5rem;
}

.project-highlights li:last-child {
  margin-bottom: 0;
}

.project-highlights li::marker {
  color: var(--cyan);
}

.project-actions .project-link + .project-link {
  margin-left: 1.25rem;
}

/* =========================================================
   SIGNATURE EXPERIENCE — The Engineering Behind the Intelligence
   ========================================================= */

#signature {
  background: var(--bg);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.sig-glow {
  position: absolute;
  top: -140px;
  left: -100px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle at center, rgba(124, 58, 237, 0.12), transparent 70%);
  pointer-events: none;
}

.sig-intro {
  color: var(--muted);
  max-width: 720px;
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  position: relative;
}

/* Chapter navigation */

.sig-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 3.5rem;
  position: relative;
}

.sig-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.4px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.sig-nav-link:hover {
  color: var(--white);
  border-color: rgba(34, 211, 238, 0.35);
}

.sig-nav-link[aria-current="true"] {
  background: rgba(124, 58, 237, 0.14);
  border-color: rgba(124, 58, 237, 0.4);
  color: #a78bfa;
}

.sig-nav-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 1.5px;
  color: var(--cyan);
}

/* Chapters */

.sig-chapter {
  position: relative;
  margin-bottom: 4.5rem;
  scroll-margin-top: 95px;
}

.sig-chapter:last-child {
  margin-bottom: 0;
}

.sig-chapter-head {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  margin-bottom: 1.75rem;
}

.sig-chapter-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4rem;
  line-height: 0.9;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sig-chapter-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
}

.sig-chapter-sub {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.3rem;
}

/* ---- Chapter 01: Engineering Philosophy ---- */

.phil-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.phil-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.6rem 1.7rem;
  transition: border-color 0.2s, transform 0.2s;
}

.phil-card:hover {
  border-color: rgba(124, 58, 237, 0.35);
  transform: translateY(-3px);
}

.phil-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 2px;
  color: var(--cyan);
  margin-bottom: 0.6rem;
}

.phil-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 0.5rem;
}

.phil-text {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

/* ---- Chapter 02: Engineering Mind simulator ---- */

.sim {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

.sim-noscript {
  color: #fbbf24;
  font-size: 0.9rem;
  line-height: 1.7;
}

.sim-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.sim-progress-label {
  font-size: 0.74rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--cyan);
}

.sim-dots {
  display: flex;
  gap: 0.4rem;
}

.sim-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.sim-dot.done {
  background: var(--purple);
}

.sim-dot.current {
  background: var(--cyan);
}

.sim-context {
  font-size: 0.79rem;
  color: var(--muted);
  border-left: 2px solid var(--cyan);
  padding-left: 0.8rem;
  margin-bottom: 1.1rem;
  line-height: 1.6;
}

.sim-situation {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--white);
  margin-bottom: 1.3rem;
  outline: none;
}

.sim-situation:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 6px;
}

.sim-options {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.3rem;
}

.sim-option {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.95rem 1.15rem;
  color: var(--white);
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.55;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s, opacity 0.2s;
}

.sim-option:hover:not(:disabled) {
  border-color: rgba(34, 211, 238, 0.4);
  transform: translateY(-1px);
}

.sim-option:disabled {
  cursor: default;
}

.sim-option.dimmed {
  opacity: 0.5;
}

.sim-option.correct {
  border-color: rgba(74, 222, 128, 0.5);
  background: rgba(74, 222, 128, 0.08);
  opacity: 1;
}

.sim-option.chosen-wrong {
  border-color: rgba(248, 113, 113, 0.5);
  background: rgba(248, 113, 113, 0.08);
  opacity: 1;
}

.sim-option-key {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 1px;
  color: var(--cyan);
  flex-shrink: 0;
  line-height: 1.4;
}

.sim-option.correct .sim-option-key {
  color: #4ade80;
}

.sim-option.chosen-wrong .sim-option-key {
  color: #f87171;
}

.sim-feedback {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.15rem 1.3rem;
  margin-bottom: 1.3rem;
  outline: none;
}

.sim-feedback:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.sim-feedback-verdict {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
}

.sim-feedback-verdict.ok {
  color: #4ade80;
}

.sim-feedback-verdict.no {
  color: #f87171;
}

.sim-feedback-note {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.sim-feedback-real {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--white);
}

.sim-feedback-real-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.sim-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.sim-intro-screen,
.sim-summary {
  text-align: center;
  padding: 1rem 0;
}

.sim-intro-title,
.sim-summary-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.sim-intro-text,
.sim-summary-text {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

.sim-summary-score {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.4rem;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.sim-intro-screen .sim-actions {
  justify-content: center;
}

.sim-summary .sim-actions {
  justify-content: center;
}

/* Buttons reused from the design system inside <button> elements */

button.btn-primary,
button.btn-outline {
  font-family: inherit;
  cursor: pointer;
}

button.btn-outline {
  background: transparent;
}

button.btn-primary {
  border: none;
}

/* ---- Chapter 03: The Builder's Log ---- */

.log-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.log-filter {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.38rem 0.95rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.log-filter:hover {
  color: var(--white);
  border-color: rgba(34, 211, 238, 0.35);
}

.log-filter[aria-pressed="true"] {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.35);
  color: var(--cyan);
}

.log-count {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
}

.log-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.log-entry {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.7rem;
  transition: border-color 0.2s, transform 0.2s;
}

.log-entry:hover {
  border-color: rgba(34, 211, 238, 0.25);
  transform: translateY(-2px);
}

.log-entry[hidden] {
  display: none;
}

.log-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.log-date {
  font-size: 0.74rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cyan);
}

.log-cat {
  font-size: 0.7rem;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: #a78bfa;
}

.log-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.log-text {
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.75;
  margin-bottom: 0.95rem;
}

.log-outcome {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.45rem 0.9rem;
  line-height: 1.6;
}

.log-outcome-label {
  color: var(--cyan);
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  flex-shrink: 0;
}

/* ---- Signature responsive ---- */

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

  .sim {
    padding: 1.4rem 1.1rem;
  }

  .sig-chapter-head {
    gap: 0.85rem;
  }

  .sig-chapter-num {
    font-size: 2rem;
  }

  .sig-chapter-title {
    font-size: 1.12rem;
  }

  .log-entry {
    padding: 1.3rem 1.2rem;
  }

  .sig-nav {
    margin-bottom: 2.75rem;
  }

  .sig-chapter {
    margin-bottom: 3.5rem;
    scroll-margin-top: 120px;
  }
}

@media (max-width: 540px) {
  .sim-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .sim-option {
    padding: 0.85rem 0.95rem;
  }

  .sim-actions .btn-primary,
  .sim-actions .btn-outline {
    width: 100%;
    text-align: center;
  }
}

/* ---- Global accessibility polish ---- */

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* ============ Engineering signature refinements ============ */

/* ---- About: areas of interest ---- */

.about-interests {
  margin-top: 1.35rem;
}

.about-interests-label {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.about-interests-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

/* ---- Experience: intro, type chips, outcome row ---- */

#experience {
  border-bottom: 1px solid var(--border);
}

.exp-intro {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
  max-width: 640px;
  margin: -0.4rem 0 1.6rem;
}

.exp-chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.exp-type {
  flex-shrink: 0;
  font-size: 0.72rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.35);
  color: #a78bfa;
}

.exp-outcome {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: 10px;
  padding: 0.45rem 0.9rem;
  line-height: 1.6;
  margin-top: 0.9rem;
}

.exp-outcome-label {
  color: var(--cyan);
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  flex-shrink: 0;
}

.exp-outcome + .exp-points {
  margin-top: 0.85rem;
}

/* ---- Projects: explore line ---- */

.projects-explore {
  margin-top: 1.7rem;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

.projects-explore a {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: none;
}

.projects-explore a:hover {
  text-decoration: underline;
}

/* ---- Quizey: phase tabs ---- */

.qphase-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.qphase-tab {
  font-family: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.qphase-tab:hover {
  color: var(--white);
  border-color: rgba(124, 58, 237, 0.45);
}

.qphase-tab.active {
  background: rgba(124, 58, 237, 0.14);
  border-color: rgba(124, 58, 237, 0.5);
  color: var(--white);
}

.qphase-tab:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ---- Simulator: free navigation + results breakdown ---- */

.sim-nav {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.sim-nav .btn-primary,
.sim-nav .btn-outline {
  padding: 0.6rem 1.3rem;
  font-size: 0.85rem;
}

.sim-nav .btn-primary {
  margin-left: auto;
}

.sim-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.sim-nav-btn:disabled:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.2);
}

.sim-nav .btn-outline:not(:disabled) {
  background: var(--grad);
  border: none;
  color: #fff;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
}

.sim-nav .btn-outline:not(:disabled):hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.sim-nav-exit {
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--muted);
  background: none;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.sim-nav-exit:hover {
  color: var(--white);
  border-color: var(--border);
}

.sim-nav-exit:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.sim-summary-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.2rem 0 1.1rem;
}

.sim-metric {
  font-size: 0.78rem;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--muted);
}

.sim-metric.ok {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.08);
}

.sim-metric.no {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.08);
}

.sim-metric.skip {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.08);
}

.sim-summary-note {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.7;
  max-width: 560px;
  margin: -0.6rem auto 1.4rem;
}

/* ---- Refinements: mobile ---- */

@media (max-width: 540px) {
  .sim-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .sim-nav .btn-primary {
    margin-left: 0;
  }

  .sim-nav .btn-primary,
  .sim-nav .btn-outline {
    text-align: center;
  }

  .qphase-tab {
    flex: 1 1 auto;
    text-align: center;
  }

  .exp-intro {
    margin-top: 0;
  }
}

/* ============ Signature framing, pipeline ribbon & closing creed ============ */

.sig-framing {
  position: relative;
  margin-bottom: 2.25rem;
}

.sig-framing-quote {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  line-height: 1.35;
  max-width: 920px;
  margin-bottom: 0.9rem;
}

.sig-framing-sub {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 720px;
  margin-bottom: 1.7rem;
}

.sig-ribbon {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 2.4rem;
  margin: 0;
  padding: 0;
}

.sig-ribbon-step {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  font-size: 0.82rem;
  letter-spacing: 0.4px;
  color: var(--white);
}

.sig-ribbon-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.02rem;
  letter-spacing: 1.5px;
  color: var(--cyan);
}

.sig-ribbon-step:not(:last-child)::after {
  content: '\2192';
  position: absolute;
  right: -1.6rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cyan);
  font-size: 0.95rem;
}

.sig-creed {
  position: relative;
  margin-top: 0.5rem;
  padding: 2.75rem 2rem;
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at top left, rgba(124, 58, 237, 0.16), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(34, 211, 238, 0.1), transparent 50%),
    var(--bg2);
  text-align: center;
  overflow: hidden;
}

.sig-creed-text {
  position: relative;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  line-height: 1.55;
  max-width: 800px;
  margin: 0 auto;
}

/* ============ Inside My Engineering Mind: jump pills + architecture bypass ============ */

.mind-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}

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

.sim-pill {
  font-family: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.sim-pill:hover {
  color: var(--white);
  border-color: rgba(34, 211, 238, 0.35);
}

.sim-pill.answered:not(.active) {
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.07);
  color: #4ade80;
}

.sim-pill.active {
  background: rgba(124, 58, 237, 0.16);
  border-color: rgba(124, 58, 237, 0.5);
  color: var(--white);
}

.mind-reveal {
  font-size: 0.8rem;
  padding: 0.5rem 1.05rem;
}

.mind-reveal[aria-pressed="true"] {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.5);
  color: var(--white);
}

/* One-click architecture & trade-offs reveal */

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

.sim-reveal-head {
  text-align: center;
  margin-bottom: 0.35rem;
}

.sim-reveal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  outline: none;
}

.sim-reveal-title:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 6px;
}

.sim-reveal-sub {
  color: var(--muted);
  font-size: 0.87rem;
  margin-top: 0.4rem;
}

.sim-reveal-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1.3rem;
  transition: border-color 0.2s;
}

.sim-reveal-card:hover {
  border-color: rgba(124, 58, 237, 0.35);
}

.sim-reveal-num {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.55rem;
  line-height: 1.5;
}

.sim-reveal-q {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--white);
  margin-bottom: 0.85rem;
}

.sim-reveal-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.sim-reveal-solution {
  border-left: 3px solid #4ade80;
  background: rgba(74, 222, 128, 0.07);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  font-size: 0.87rem;
  line-height: 1.65;
  color: var(--white);
  margin-bottom: 0.8rem;
}

.sim-reveal-real {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--white);
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  padding-top: 0.75rem;
  margin-bottom: 0.8rem;
}

.sim-reveal-trades {
  margin-bottom: 0.2rem;
}

.sim-reveal-trades ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.65;
}

.sim-reveal-trades li {
  margin-bottom: 0.3rem;
}

.sim-reveal-trades li::marker {
  color: #f87171;
}

.sim-reveal-open {
  margin-top: 0.95rem;
  font-size: 0.8rem;
  padding: 0.5rem 1.1rem;
}

.sim-reveal-actions {
  justify-content: center;
  margin-top: 0.5rem;
}

/* ============ Abu Prompt — grounded knowledge companion ============ */

/* ---- Visual stage: navy studio blend, vignette, rim glow, float ---- */

.abu-stage {
  position: relative;
  background: #0b111e;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 0 22px rgba(34, 211, 238, 0.12),
    inset 0 0 0 1px rgba(34, 211, 238, 0.14);
}

.abu-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(11, 17, 30, 0.78) 100%);
  pointer-events: none;
}

.abu-stage-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.abu-stage-img.active {
  opacity: 1;
}

@keyframes abuFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.abu-stage-hero {
  aspect-ratio: 16 / 9;
  animation: abuFloat 6.5s ease-in-out infinite;
}

.abu-stage-drawer {
  flex: 0 0 92px;
  width: 92px;
  height: 92px;
  border-radius: 14px;
}

/* ---- Hero companion card ---- */

.hero-companion {
  flex: 0 0 auto;
  width: min(380px, 100%);
  position: relative;
  z-index: 1;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem;
  animation: fadeUp 0.7s ease 0.45s both;
}

.abu-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.95rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--cyan);
}

.abu-badge-dot {
  color: #4ade80;
  font-size: 0.6rem;
  line-height: 1;
}

.abu-intro-copy {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.abu-intro-copy code {
  font-family: ui-monospace, 'Cascadia Code', Menlo, monospace;
  font-size: 0.84em;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: #67e8f9;
  padding: 0.05em 0.35em;
  border-radius: 5px;
}

.abu-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.abu-chip {
  font-family: inherit;
  font-size: 0.76rem;
  line-height: 1.45;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.abu-chip:hover {
  color: var(--white);
  border-color: rgba(34, 211, 238, 0.4);
}

.abu-cta {
  margin-top: 1.05rem;
}

/* ---- Floating launcher ---- */

.abu-launcher {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--bg3);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 999px;
  padding: 0.4rem 1.05rem 0.4rem 0.4rem;
  cursor: pointer;
  color: var(--white);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.5),
    0 0 18px rgba(34, 211, 238, 0.15);
  transition: transform 0.2s, border-color 0.2s;
}

.abu-launcher:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
}

.abu-launcher[hidden] {
  display: none;
}

.abu-launcher-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  border: 1px solid rgba(34, 211, 238, 0.4);
  background: #0b111e;
}

/* ---- Backdrop + slide-over drawer ---- */

.abu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 310;
  background: rgba(6, 8, 14, 0.55);
}

.abu-backdrop[hidden] {
  display: none;
}

.abu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 320;
  width: min(430px, 100vw);
  display: flex;
  flex-direction: column;
  background: #12141a;
  border-left: 1px solid rgba(34, 211, 238, 0.22);
  box-shadow:
    -14px 0 44px rgba(0, 0, 0, 0.55),
    -2px 0 26px rgba(34, 211, 238, 0.07);
  animation: abuSlide 0.32s ease;
}

.abu-drawer[hidden] {
  display: none;
}

@keyframes abuSlide {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

/* ---- Dynamic 5-state header ---- */

.abu-drawer-head {
  position: relative;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.05rem 2.6rem 1.05rem 1.05rem;
  border-bottom: 1px solid var(--border);
}

.abu-head-meta {
  flex: 1;
  min-width: 0;
}

.abu-head-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.abu-head-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.2rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--cyan);
}

.abu-state-msg {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
}

.abu-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.25rem 0.45rem;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.abu-close:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

/* ---- Transcript ---- */

.abu-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.abu-msg {
  max-width: 88%;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.65;
}

.abu-msg.user {
  align-self: flex-end;
  background: var(--grad);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.abu-msg.bot {
  align-self: flex-start;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--white);
  border-bottom-left-radius: 4px;
}

.abu-msg.bot.uncertain {
  background: rgba(251, 191, 36, 0.07);
  border-color: rgba(251, 191, 36, 0.4);
}

.abu-cites {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.6rem;
}

.abu-cite {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: #67e8f9;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.abu-cite::before {
  content: '\2197';
}

.abu-cite:hover {
  background: rgba(34, 211, 238, 0.18);
  border-color: var(--cyan);
  text-decoration: none;
}

.abu-suggests {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

/* ---- Chips row + input ---- */

.abu-drawer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--border);
}

.abu-input-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
}

.abu-input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  color: var(--white);
  font-family: inherit;
  font-size: 0.87rem;
}

.abu-input::placeholder {
  color: var(--muted);
}

.abu-send {
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

.abu-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Companion: responsive ---- */

@media (max-width: 1080px) {
  #hero {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 2.5rem;
  }

  .hero-content {
    max-width: 720px;
  }

  .hero-companion {
    width: min(470px, 100%);
  }

  .hero-flower {
    right: -40px;
    opacity: 0.1;
  }
}

@media (max-width: 768px) {
  .mind-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .mind-reveal {
    width: 100%;
    text-align: center;
  }

  .abu-stage-drawer {
    flex-basis: 78px;
    width: 78px;
    height: 78px;
  }
}

@media (max-width: 540px) {
  .sig-ribbon {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }

  .sig-ribbon-step:not(:last-child)::after {
    display: none;
  }

  .sig-creed {
    padding: 2rem 1.2rem;
  }

  .abu-cta {
    width: 100%;
  }

  .abu-launcher {
    right: 0.9rem;
    bottom: 0.9rem;
  }

  .abu-drawer {
    width: 100vw;
  }
}

/* ---- Companion: reduced motion ---- */

@media (prefers-reduced-motion: reduce) {

  .abu-stage-hero,
  .abu-drawer {
    animation: none !important;
  }

  .abu-stage-img {
    transition: none !important;
  }
}
