/* ============================================================
   Bruce Vu — Portfolio Design System
   Inspired by Claude/Anthropic warm editorial aesthetic
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Primary */
  --color-near-black: #141413;
  --color-terracotta: #c96442;
  --color-coral: #d97757;

  /* Secondary */
  --color-error: #b53333;
  --color-focus: #3898ec;

  /* Surfaces */
  --color-parchment: #f5f4ed;
  --color-ivory: #faf9f5;
  --color-white: #ffffff;
  --color-warm-sand: #e8e6dc;
  --color-dark-surface: #30302e;
  --color-deep-dark: #141413;

  /* Neutrals */
  --color-charcoal-warm: #4d4c48;
  --color-olive-gray: #5e5d59;
  --color-stone-gray: #87867f;
  --color-dark-warm: #3d3d3a;
  --color-warm-silver: #b0aea5;

  /* Borders */
  --color-border-cream: #f0eee6;
  --color-border-warm: #e8e6dc;
  --color-border-dark: #30302e;

  /* Rings */
  --color-ring-warm: #d1cfc5;
  --color-ring-subtle: #dedcd1;
  --color-ring-deep: #c2c0b6;

  /* Typography */
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;
  --space-5xl: 120px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 32px;

  /* Shadows */
  --shadow-ring: 0px 0px 0px 1px;
  --shadow-whisper: 0px 4px 24px rgba(0, 0, 0, 0.05);
  --shadow-ring-inset: inset 0px 0px 0px 1px;

  /* Transition */
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.60;
  color: var(--color-near-black);
  background-color: var(--color-parchment);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--color-near-black);
}

.heading-display {
  font-size: 4rem;
  line-height: 1.10;
  letter-spacing: -0.02em;
}

.heading-section {
  font-size: 3.25rem;
  line-height: 1.20;
}

.heading-sub-large {
  font-size: 2.3rem;
  line-height: 1.30;
}

.heading-sub {
  font-size: 2rem;
  line-height: 1.10;
}

.heading-sub-small {
  font-size: 1.6rem;
  line-height: 1.20;
}

.heading-feature {
  font-size: 1.3rem;
  line-height: 1.20;
}

.text-body-large {
  font-size: 1.25rem;
  line-height: 1.60;
}

.text-body {
  font-size: 1rem;
  line-height: 1.60;
}

.text-body-small {
  font-size: 0.94rem;
  line-height: 1.60;
}

.text-caption {
  font-size: 0.88rem;
  line-height: 1.43;
}

.text-label {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.12px;
  text-transform: uppercase;
}

.text-overline {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.60;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ---------- Section Base ---------- */
.section {
  padding: var(--space-5xl) 0;
  position: relative;
  overflow: hidden;
}

.section--light {
  background-color: var(--color-parchment);
  color: var(--color-near-black);
}

.section--dark {
  background-color: var(--color-near-black);
  color: var(--color-ivory);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-ivory);
}

.section--dark p {
  color: var(--color-warm-silver);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section__overline {
  color: var(--color-terracotta);
  margin-bottom: var(--space-md);
  display: block;
}

.section__title {
  margin-bottom: var(--space-md);
}

.section__subtitle {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  color: var(--color-olive-gray);
  max-width: 600px;
  margin: 0 auto;
}

.section--dark .section__subtitle {
  color: var(--color-warm-silver);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  transition: all var(--transition-base);
  background-color: transparent;
}

.nav--scrolled {
  background-color: rgba(245, 244, 237, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-cream);
  padding: var(--space-sm) 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav__logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border-cream);
}

.nav__logo-text {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--color-near-black);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--color-olive-gray);
  position: relative;
  padding: var(--space-xs) 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-terracotta);
  transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-near-black);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background-color: var(--color-terracotta);
  color: var(--color-ivory);
  border-radius: var(--radius-md);
  font-size: 0.94rem;
  font-weight: 500;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-ring) var(--color-terracotta);
}

.nav__cta:hover {
  background-color: var(--color-coral);
  transform: translateY(-1px);
}

/* Mobile menu */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  cursor: pointer;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-near-black);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.nav__hamburger--active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger--active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger--active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-terracotta);
  color: var(--color-ivory);
  box-shadow: var(--shadow-ring) var(--color-terracotta);
}

.btn--primary:hover {
  background-color: var(--color-coral);
  transform: translateY(-2px);
  box-shadow: 0px 4px 16px rgba(201, 100, 66, 0.3);
}

.btn--secondary {
  background-color: var(--color-warm-sand);
  color: var(--color-charcoal-warm);
  box-shadow: var(--shadow-ring) var(--color-ring-warm);
}

.btn--secondary:hover {
  background-color: var(--color-ring-warm);
  transform: translateY(-2px);
}

.btn--dark {
  background-color: var(--color-dark-surface);
  color: var(--color-ivory);
  box-shadow: var(--shadow-ring) var(--color-border-dark);
}

.btn--dark:hover {
  background-color: var(--color-charcoal-warm);
  transform: translateY(-2px);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-warm-silver);
  border: 1px solid var(--color-border-dark);
}

.btn--outline:hover {
  background-color: var(--color-dark-surface);
  color: var(--color-ivory);
  border-color: var(--color-olive-gray);
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__overline {
  color: var(--color-terracotta);
  margin-bottom: var(--space-lg);
  display: inline-block;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.10;
  color: var(--color-near-black);
  margin-bottom: var(--space-lg);
}

.hero__title span {
  color: var(--color-terracotta);
}

.hero__subtitle {
  font-size: 1.25rem;
  line-height: 1.60;
  color: var(--color-olive-gray);
  margin-bottom: var(--space-2xl);
  max-width: 500px;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__image img {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-full);
  position: relative;
  z-index: 2;
  animation: heroFloat 6s ease-in-out infinite;
}

/* Decorative geometric fragments */
.hero__decoration {
  position: absolute;
  z-index: 1;
}

.hero__geo {
  position: absolute;
  opacity: 0.15;
  animation: geoFloat 8s ease-in-out infinite;
}

.hero__geo--1 {
  top: 10%;
  right: -5%;
  width: 120px;
  height: 120px;
  background: var(--color-terracotta);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  animation-delay: 0s;
}

.hero__geo--2 {
  bottom: 15%;
  left: -8%;
  width: 80px;
  height: 80px;
  background: var(--color-warm-sand);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  animation-delay: 2s;
}

.hero__geo--3 {
  top: 30%;
  left: 5%;
  width: 60px;
  height: 60px;
  background: var(--color-terracotta);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  animation-delay: 4s;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes geoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(10deg); }
  66% { transform: translateY(10px) rotate(-5deg); }
}

/* ---------- About Section ---------- */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about__image {
  position: relative;
}

.about__image img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-whisper);
  max-width: 420px;
}

.about__image::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: 12px;
  bottom: 12px;
  border: 2px solid var(--color-terracotta);
  border-radius: var(--radius-xl);
  opacity: 0.3;
  z-index: -1;
}

.about__text p {
  margin-bottom: var(--space-md);
  font-size: 1.06rem;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.stat-card {
  text-align: center;
  padding: var(--space-lg);
  background-color: var(--color-dark-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-dark);
  transition: all var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-terracotta);
}

.stat-card__number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--color-terracotta);
  display: block;
  margin-bottom: var(--space-xs);
}

.stat-card__label {
  font-size: 0.82rem;
  color: var(--color-warm-silver);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ---------- Bento Grid — Skills ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: var(--space-md);
}

.bento__card {
  background-color: var(--color-ivory);
  border: 1px solid var(--color-border-cream);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
}

.bento__card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  transform: translateY(-3px);
  border-color: var(--color-border-warm);
}

.bento__card-inner {
  padding: var(--space-xl);
}

/* Hero card (spans 2 columns) */
.bento__card--hero {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--color-ivory), #faf8f2);
  border-color: rgba(201, 100, 66, 0.15);
}

.bento__card--hero:hover {
  border-color: rgba(201, 100, 66, 0.3);
}

/* Wide card (spans full width) */
.bento__card--wide {
  grid-column: 1 / -1;
  background-color: var(--color-parchment);
}

/* Visual illustration card */
.bento__card--visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--color-warm-sand) 0%, var(--color-parchment) 100%);
  padding: var(--space-lg);
  min-height: 200px;
}

.bento__card--visual img {
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
  border-radius: var(--radius-lg);
  transition: transform var(--transition-slow);
}

.bento__card--visual:hover img {
  transform: scale(1.04);
}

/* --- Icon containers --- */
.bento__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  transition: transform var(--transition-spring);
  overflow: hidden;
  background: transparent;
}

.bento__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.bento__card:hover .bento__icon {
  transform: scale(1.08) rotate(-3deg);
}

.bento__icon--ai,
.bento__icon--testing,
.bento__icon--tools,
.bento__icon--dev {
  background: transparent;
}

/* --- Typography --- */
.bento__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-near-black);
  margin-bottom: var(--space-sm);
}

.bento__card--hero .bento__title {
  font-size: 1.5rem;
}

.bento__title--method {
  font-size: 1rem;
  color: var(--color-olive-gray);
  font-style: italic;
  font-weight: 400;
  margin-bottom: var(--space-md);
}

.bento__desc {
  font-size: 0.9rem;
  color: var(--color-olive-gray);
  line-height: 1.55;
  margin-bottom: var(--space-lg);
}

/* --- Skill Progress Bars --- */
.bento__skills-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.bento__skill-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.bento__skill-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-charcoal-warm);
  min-width: 130px;
  flex-shrink: 0;
}

.bento__bar {
  flex: 1;
  height: 6px;
  background-color: var(--color-warm-sand);
  border-radius: 3px;
  overflow: hidden;
}

.bento__bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-terracotta), var(--color-coral));
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Tags (compact pills) --- */
.bento__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bento__tags span {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--color-warm-sand);
  color: var(--color-charcoal-warm);
  border-radius: var(--radius-2xl);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all var(--transition-base);
}

.bento__tags span:hover {
  background-color: var(--color-terracotta);
  color: var(--color-ivory);
}

/* --- Tool Grid (dot indicators) --- */
.bento__tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.bento__tool {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border-cream);
}

.bento__tool-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-charcoal-warm);
}

.bento__tool-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bento__tool-dot--adv { background-color: var(--color-terracotta); }
.bento__tool-dot--pro { background-color: var(--color-olive-gray); }
.bento__tool-dot--int { background-color: var(--color-warm-silver); }

.bento__legend {
  display: flex;
  gap: var(--space-md);
  font-size: 0.68rem;
  color: var(--color-stone-gray);
}

.bento__legend span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* --- Tool Grid 2x2 (mini-card cells) --- */
.bento__tool-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.bento__tool-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background-color: var(--color-parchment);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-terracotta);
  transition: all var(--transition-base);
}

.bento__tool-cell:hover {
  background-color: var(--color-warm-sand);
  transform: translateY(-1px);
}

.bento__tool-cell-label {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-stone-gray);
  line-height: 1;
}

.bento__tool-cell-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-near-black);
  line-height: 1.2;
}

/* --- Methodologies Flow --- */
.bento__method-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}

.bento__method {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-charcoal-warm);
  padding: 6px 16px;
  border: 1px solid var(--color-border-cream);
  border-radius: var(--radius-2xl);
  transition: all var(--transition-base);
  cursor: default;
}

.bento__method:hover {
  background-color: var(--color-terracotta);
  border-color: var(--color-terracotta);
  color: var(--color-ivory);
  transform: translateY(-1px);
}

.bento__method-sep {
  font-size: 0.6rem;
  color: var(--color-ring-warm);
  user-select: none;
}

/* Legacy skill-tag (still used in projects) */
.skill-tag {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--color-warm-sand);
  color: var(--color-charcoal-warm);
  border-radius: var(--radius-2xl);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ---------- Experience Timeline ---------- */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--color-terracotta),
    var(--color-border-dark)
  );
}

.timeline__item {
  position: relative;
  padding-left: 64px;
  padding-bottom: var(--space-3xl);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: 15px;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--color-terracotta);
  border: 3px solid var(--color-near-black);
  z-index: 2;
}

.timeline__dot--current {
  box-shadow: 0 0 0 4px rgba(201, 100, 66, 0.3);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(201, 100, 66, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(201, 100, 66, 0.1); }
}

.timeline__date {
  font-size: 0.82rem;
  color: var(--color-terracotta);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.timeline__role {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--color-ivory);
  margin-bottom: var(--space-xs);
}

.timeline__company {
  font-size: 1rem;
  color: var(--color-warm-silver);
  margin-bottom: var(--space-md);
}

.timeline__desc {
  font-size: 0.94rem;
  color: var(--color-stone-gray);
  line-height: 1.70;
}

.timeline__desc li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.timeline__desc li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-terracotta);
  font-weight: 500;
}

/* ---------- Projects Section ---------- */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

/* --- Card Container --- */
.project-card {
  position: relative;
  display: flex;
  background-color: var(--color-ivory);
  border: 1px solid var(--color-border-cream);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow:
    0 2px 8px rgba(20, 20, 19, 0.06),
    0 0 0 1px transparent;
}

.project-card:hover {
  border-color: rgba(201, 100, 66, 0.25);
  transform: translateY(-5px);
  box-shadow:
    0 12px 32px rgba(20, 20, 19, 0.1),
    0 0 0 1px rgba(201, 100, 66, 0.08);
}

/* --- Left Accent Bar --- */
.project-card__accent {
  width: 4px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--color-terracotta), var(--color-coral));
  transition: width var(--transition-base);
}

.project-card:hover .project-card__accent {
  width: 5px;
}

.project-card__accent--soon {
  background: var(--color-border-cream);
}

/* --- Card Content --- */
.project-card__content {
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

/* --- Header Row --- */
.project-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

/* --- Icon Wrap --- */
.project-card__icon-wrap {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background-color: var(--color-warm-sand);
  border: 1px solid var(--color-border-cream);
  transition: all var(--transition-spring);
  overflow: hidden;
}

.project-card:hover .project-card__icon-wrap {
  background-color: rgba(201, 100, 66, 0.08);
  border-color: rgba(201, 100, 66, 0.2);
  transform: scale(1.06) rotate(-3deg);
}

.project-card__icon-wrap--soon {
  background-color: var(--color-warm-sand);
  border-color: var(--color-border-cream);
  opacity: 0.7;
}

.project-card__icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* --- Status Badge --- */
.project-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 5px 12px;
  border-radius: var(--radius-2xl);
}

.project-card__status--shipped {
  color: var(--color-terracotta);
  background-color: rgba(201, 100, 66, 0.08);
  border: 1px solid rgba(201, 100, 66, 0.18);
}

.project-card__status--soon {
  color: var(--color-stone-gray);
  background-color: var(--color-warm-sand);
  border: 1px solid var(--color-border-cream);
}

.project-card__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.project-card__status--shipped .project-card__status-dot {
  background-color: var(--color-terracotta);
  box-shadow: 0 0 5px rgba(201, 100, 66, 0.4);
  animation: statusPulse 2.5s ease-in-out infinite;
}

.project-card__status--soon .project-card__status-dot {
  background-color: var(--color-ring-warm);
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* --- Title --- */
.project-card__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-near-black);
  margin-bottom: var(--space-sm);
  transition: color var(--transition-base);
}

.project-card:hover .project-card__title {
  color: var(--color-terracotta);
}

/* --- Description --- */
.project-card__desc {
  font-size: 0.9rem;
  color: var(--color-olive-gray);
  line-height: 1.65;
  margin-bottom: var(--space-lg);
  flex: 1;
}

/* --- Tags --- */
.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-lg);
}

.project-tag {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--color-warm-sand);
  border: 1px solid var(--color-border-cream);
  color: var(--color-charcoal-warm);
  border-radius: var(--radius-2xl);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all var(--transition-base);
}

.project-tag:hover {
  background-color: rgba(201, 100, 66, 0.08);
  border-color: rgba(201, 100, 66, 0.2);
  color: var(--color-terracotta);
}

.project-tag--ghost {
  background-color: transparent;
  border: 1px dashed var(--color-ring-warm);
  color: var(--color-stone-gray);
}

.project-tag--ghost:hover {
  border-color: var(--color-ring-deep);
  background-color: var(--color-warm-sand);
  color: var(--color-olive-gray);
}

/* --- Footer --- */
.project-card__footer {
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border-cream);
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 500;
  font-size: 0.85rem;
  transition: all var(--transition-base);
}

.project-card__link--internal {
  color: var(--color-stone-gray);
  cursor: default;
}

.project-card__link--internal svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

.project-card__link--soon {
  color: var(--color-stone-gray);
  font-style: italic;
  cursor: default;
}

/* --- Coming Soon Card --- */
.project-card--coming {
  border: 1px dashed var(--color-ring-warm);
  background-color: var(--color-parchment);
}

.project-card--coming:hover {
  border-color: var(--color-ring-deep);
  background-color: var(--color-ivory);
}




/* ---------- Contact Section ---------- */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

/* --- Contact Card (left column) --- */
.contact-card {
  background-color: var(--color-dark-surface);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-card__avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--color-parchment);
  margin-bottom: var(--space-lg);
  border: 3px solid var(--color-border-dark);
}

.contact-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.contact-card__name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-ivory);
  margin-bottom: 2px;
}

.contact-card__role {
  font-size: 0.88rem;
  color: var(--color-terracotta);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-lg);
}

.contact-card__text {
  font-size: 0.94rem;
  color: var(--color-warm-silver);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  max-width: 320px;
}

.contact-card__email {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 20px;
  background-color: rgba(201, 100, 66, 0.08);
  border: 1px solid rgba(201, 100, 66, 0.2);
  border-radius: var(--radius-2xl);
  color: var(--color-coral);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: var(--space-xl);
  transition: all var(--transition-base);
}

.contact-card__email:hover {
  background-color: rgba(201, 100, 66, 0.15);
  border-color: rgba(201, 100, 66, 0.4);
  transform: translateY(-1px);
}

.contact-card__socials {
  display: flex;
  gap: var(--space-md);
}

.social-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-dark-surface);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-md);
  color: var(--color-warm-silver);
  font-size: 1.25rem;
  transition: all var(--transition-base);
}

.social-link:hover {
  background-color: var(--color-terracotta);
  border-color: var(--color-terracotta);
  color: var(--color-ivory);
  transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-warm-silver);
  letter-spacing: 0.3px;
}

.form-input,
.form-textarea {
  padding: 12px 16px;
  background-color: var(--color-dark-surface);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-lg);
  color: var(--color-ivory);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.60;
  transition: all var(--transition-base);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-stone-gray);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 3px rgba(201, 100, 66, 0.15);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-submit {
  align-self: flex-start;
}

.form-status {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.94rem;
  display: none;
}

.form-status--success {
  display: block;
  background-color: rgba(201, 100, 66, 0.1);
  color: var(--color-coral);
  border: 1px solid rgba(201, 100, 66, 0.3);
}

.form-status--error {
  display: block;
  background-color: rgba(181, 51, 51, 0.1);
  color: var(--color-error);
  border: 1px solid rgba(181, 51, 51, 0.3);
}

/* ---------- Footer ---------- */
.footer {
  background-color: var(--color-near-black);
  border-top: 1px solid var(--color-border-dark);
  padding: var(--space-2xl) 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__copy {
  font-size: 0.88rem;
  color: var(--color-stone-gray);
}

.footer__tagline {
  font-family: var(--font-serif);
  font-size: 0.94rem;
  color: var(--color-stone-gray);
  font-style: italic;
}

.footer__socials {
  display: flex;
  gap: var(--space-sm);
}

.footer__social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-stone-gray);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  font-size: 1rem;
}

.footer__social-link:hover {
  color: var(--color-terracotta);
  background-color: var(--color-dark-surface);
}

/* ---------- Blog Page — Coming Soon ---------- */

/* Nav modifier for blog: always show background */
.nav--blog {
  background-color: rgba(245, 244, 237, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-cream);
}

.nav__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-olive-gray);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border-cream);
  border-radius: 999px;
  transition: all 0.2s var(--transition-base);
}

.nav__back:hover {
  color: var(--color-terracotta);
  border-color: rgba(201, 100, 66, 0.3);
  background-color: rgba(201, 100, 66, 0.05);
  gap: 12px;
}

/* Blog main layout */
.blog-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5xl) var(--space-lg) var(--space-3xl);
}

/* Coming Soon section */
.coming-soon {
  max-width: 900px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.coming-soon__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coming-soon__img-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.coming-soon__img-wrap::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at 60% 40%, rgba(201, 100, 66, 0.08) 0%, transparent 70%);
  border-radius: var(--radius-xl);
  z-index: 0;
}

.coming-soon__img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  position: relative;
  z-index: 1;
  transition: transform 0.6s var(--transition-base);
}

.coming-soon__img:hover {
  transform: translateY(-6px);
}

.coming-soon__badge {
  position: absolute;
  bottom: 16px;
  right: -12px;
  background-color: var(--color-near-black);
  color: var(--color-parchment);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: var(--space-sm) var(--space-md);
  border-radius: 999px;
  z-index: 2;
  animation: blogFloat 3s ease-in-out infinite;
}

@keyframes blogFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.coming-soon__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.coming-soon__overline {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-terracotta);
  display: flex;
  align-items: center;
  gap: 10px;
}

.coming-soon__overline::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--color-terracotta);
  border-radius: 2px;
}

.coming-soon__title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--color-near-black);
}

.coming-soon__title em {
  color: var(--color-terracotta);
  font-style: italic;
}

.coming-soon__desc {
  font-size: 1rem;
  color: var(--color-olive-gray);
  line-height: 1.7;
}

/* Topics preview */
.coming-soon__topics {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.coming-soon__topics-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-warm-silver);
  margin-bottom: var(--space-xs);
}

.coming-soon__topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background-color: var(--color-warm-sand);
  border: 1px solid var(--color-border-cream);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-charcoal-warm);
  transition: all 0.2s var(--transition-base);
}

.topic-chip:hover {
  background-color: rgba(201, 100, 66, 0.08);
  border-color: rgba(201, 100, 66, 0.25);
  color: var(--color-terracotta);
}

.topic-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-terracotta);
  opacity: 0.6;
}

/* Notify form */
.coming-soon__notify {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notify-form {
  display: flex;
  gap: var(--space-sm);
}

.notify-input {
  flex: 1;
  padding: 11px var(--space-md);
  background-color: var(--color-ivory);
  border: 1px solid var(--color-border-cream);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--color-near-black);
  outline: none;
  transition: border-color 0.2s;
}

.notify-input::placeholder {
  color: var(--color-warm-silver);
}

.notify-input:focus {
  border-color: rgba(201, 100, 66, 0.4);
  box-shadow: 0 0 0 3px rgba(201, 100, 66, 0.08);
}

.notify-btn {
  padding: 11px 20px;
  background-color: var(--color-terracotta);
  color: var(--color-ivory);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s var(--transition-base);
}

.notify-btn:hover {
  background-color: var(--color-coral);
  transform: translateY(-1px);
}

.notify-note {
  font-size: 0.75rem;
  color: var(--color-warm-silver);
}

/* Back CTA */
.coming-soon__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-olive-gray);
  transition: gap 0.2s, color 0.2s;
}

.coming-soon__cta:hover {
  color: var(--color-terracotta);
  gap: 12px;
}

/* Progress indicator */
.coming-soon__progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-warm-silver);
}

.progress-bar {
  height: 4px;
  background-color: var(--color-warm-sand);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--color-terracotta), var(--color-coral));
  border-radius: 2px;
  animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.6; }
}

/* Blog footer (light variant) */
.blog-footer {
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--color-border-cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--color-warm-silver);
}

/* Fade-up animation for blog */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.7s var(--transition-base) forwards;
}

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

.fade-up:nth-child(1) { animation-delay: 0.1s; }
.fade-up:nth-child(2) { animation-delay: 0.2s; }
.fade-up:nth-child(3) { animation-delay: 0.3s; }
.fade-up:nth-child(4) { animation-delay: 0.4s; }
.fade-up:nth-child(5) { animation-delay: 0.5s; }
.fade-up:nth-child(6) { animation-delay: 0.6s; }

/* Blog responsive — Tablet */
@media (max-width: 860px) {
  .coming-soon {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .coming-soon__visual {
    order: -1;
  }

  .coming-soon__img-wrap {
    max-width: 300px;
    margin: 0 auto;
  }

  .coming-soon__img-wrap::before {
    inset: -12px;
  }

  .coming-soon__badge {
    right: 0;
    bottom: -12px;
  }

  .coming-soon__overline {
    justify-content: center;
  }

  .coming-soon__topic-list {
    justify-content: center;
  }

  .coming-soon__cta {
    justify-content: center;
  }

  .coming-soon__progress {
    max-width: 400px;
    margin: 0 auto;
  }
}

/* Blog responsive — Mobile */
@media (max-width: 560px) {
  .blog-main {
    padding: 100px var(--space-md) var(--space-2xl);
  }

  .coming-soon {
    gap: 28px;
  }

  .coming-soon__img-wrap {
    max-width: 240px;
  }

  .coming-soon__title {
    font-size: 1.9rem;
  }

  .coming-soon__desc {
    font-size: 0.94rem;
  }

  .notify-form {
    flex-direction: column;
  }

  .notify-btn {
    width: 100%;
  }

  .blog-footer {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
    padding: var(--space-md);
  }
}

/* ---------- Scroll Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* Slide from left */
.reveal--left {
  opacity: 0;
  transform: translateX(-40px);
}

.reveal--left.reveal--visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide from right */
.reveal--right {
  opacity: 0;
  transform: translateX(40px);
}

.reveal--right.reveal--visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale up */
.reveal--scale {
  opacity: 0;
  transform: scale(0.9);
}

.reveal--scale.reveal--visible {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Career Highlight Banner ---------- */
.career-highlight {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  background: linear-gradient(135deg, rgba(201, 100, 66, 0.08), rgba(201, 100, 66, 0.02));
  border: 1px solid rgba(201, 100, 66, 0.2);
  border-radius: 999px;
  padding: 10px var(--space-lg) 10px 10px;
  margin-bottom: var(--space-3xl);
  /* Center horizontally within the timeline max-width */
  max-width: 100%;
}

/* Wrapper to center the inline-flex banner */
.career-highlight-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-3xl);
}

.career-highlight-wrap .career-highlight {
  margin-bottom: 0;
}

.career-highlight__badge {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(201, 100, 66, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.career-highlight__badge img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.career-highlight__text {
  font-size: 0.9rem;
  color: var(--color-warm-silver);
  line-height: 1.4;
  white-space: nowrap;
}

.career-highlight__text strong {
  color: var(--color-coral);
}

/* ---------- Timeline Product Line ---------- */
.timeline__product {
  font-size: 0.85rem;
  color: var(--color-stone-gray);
  font-style: italic;
  margin-bottom: var(--space-md);
}

/* ---------- Skill Level Indicator ---------- */
.skill-card__level {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border-cream);
}

.skill-level {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: var(--radius-2xl);
}

.skill-level[data-level="advanced"] {
  background-color: rgba(201, 100, 66, 0.1);
  color: var(--color-terracotta);
}

.skill-level[data-level="proficient"] {
  background-color: rgba(94, 93, 89, 0.1);
  color: var(--color-olive-gray);
}

.skill-level[data-level="learning"] {
  background-color: rgba(56, 152, 236, 0.08);
  color: var(--color-focus);
}

/* ---------- QA Methodologies ---------- */
.methodologies {
  margin-top: var(--space-3xl);
  text-align: center;
}

.methodologies__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-olive-gray);
  margin-bottom: var(--space-lg);
  font-weight: 400;
  font-style: italic;
}

.methodologies__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

.method-tag {
  display: inline-block;
  padding: 6px 16px;
  background-color: transparent;
  border: 1px solid var(--color-border-cream);
  color: var(--color-charcoal-warm);
  border-radius: var(--radius-2xl);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all var(--transition-base);
}

.method-tag:hover {
  background-color: var(--color-terracotta);
  border-color: var(--color-terracotta);
  color: var(--color-ivory);
  transform: translateY(-1px);
}


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

/* Tablet */
@media (max-width: 991px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-2xl);
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__image {
    order: -1;
  }

  .hero__image img {
    max-width: 340px;
  }

  .about__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about__image {
    display: flex;
    justify-content: center;
  }

  .about__image img {
    max-width: 320px;
  }

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

  .contact__image {
    order: -1;
    margin-bottom: var(--space-lg);
  }

  .heading-display,
  .hero__title {
    font-size: 2.8rem;
  }

  .heading-section {
    font-size: 2.5rem;
  }

  .section {
    padding: var(--space-4xl) 0;
  }

  /* Bento: 2 columns on tablet */
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento__card--hero {
    grid-column: span 2;
  }
}

/* ==========================================
   MOBILE DESIGN — Condensed, Swipeable
   ========================================== */
@media (max-width: 767px) {

  /* --- Nav --- */
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--color-parchment);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px var(--space-xl) var(--space-xl);
    gap: var(--space-lg);
    transition: right var(--transition-base);
    border-left: 1px solid var(--color-border-cream);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.08);
    z-index: 999;
  }

  .nav__links--open {
    right: 0;
  }

  .nav__hamburger {
    display: flex;
    z-index: 1001;
  }

  .nav__link {
    font-size: 1.1rem;
    width: 100%;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border-cream);
  }

  .nav__cta {
    width: 100%;
    justify-content: center;
    margin-top: var(--space-md);
  }

  /* --- Section spacing (less overwhelming) --- */
  .section {
    padding: var(--space-2xl) 0;
  }

  .section__header {
    margin-bottom: var(--space-lg);
  }

  .heading-section {
    font-size: 1.8rem;
  }

  .section__subtitle {
    font-size: 0.9rem;
  }

  /* --- Hero --- */
  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: var(--space-2xl);
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 0.95rem;
    margin-bottom: var(--space-lg);
  }

  .hero__overline {
    font-size: 0.7rem;
  }

  .hero__image img {
    max-width: 240px;
  }

  /* Hide geometric decorations on mobile */
  .hero__geo {
    display: none;
  }

  .hero__actions {
    gap: var(--space-sm);
  }

  /* --- About (condensed) --- */
  .about__text p {
    font-size: 0.95rem;
  }

  /* Mobile: horizontal stat cards */
  .about__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xs);
    margin-top: var(--space-lg);
  }

  .stat-card {
    padding: var(--space-md) var(--space-sm);
  }

  .stat-card__number {
    font-size: 1.5rem;
  }

  .stat-card__label {
    font-size: 0.68rem;
  }

  /* --- Bento Grid: Mobile Layout --- */
  .bento {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .bento__card--hero {
    grid-column: span 1;
  }

  .bento__card--visual {
    min-height: 160px;
    padding: var(--space-md);
  }

  .bento__card--visual img {
    max-height: 180px;
  }

  .bento__card-inner {
    padding: var(--space-lg);
  }

  .bento__skill-name {
    min-width: 110px;
    font-size: 0.78rem;
  }

  .bento__tool-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xs);
  }

  .bento__method-flow {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: var(--space-xs);
  }

  .bento__method-flow::-webkit-scrollbar {
    display: none;
  }

  .bento__method {
    flex-shrink: 0;
    font-size: 0.78rem;
    padding: 5px 12px;
  }

  .bento__method-sep {
    flex-shrink: 0;
  }

  /* --- Experience (condensed timeline) --- */
  .career-highlight-wrap {
    margin-bottom: var(--space-xl);
  }

  .career-highlight {
    white-space: normal;
    padding: var(--space-sm) var(--space-md) var(--space-sm) var(--space-sm);
    border-radius: var(--radius-lg);
  }

  .career-highlight__text {
    font-size: 0.85rem;
    white-space: normal;
  }

  .timeline::before {
    left: 12px;
  }

  .timeline__item {
    padding-left: 40px;
    padding-bottom: var(--space-xl);
  }

  .timeline__dot {
    left: 4px;
    width: 18px;
    height: 18px;
  }

  .timeline__role {
    font-size: 1.2rem;
  }

  .timeline__company {
    font-size: 0.88rem;
  }

  .timeline__product {
    font-size: 0.78rem;
  }

  .timeline__desc {
    font-size: 0.85rem;
  }

  .timeline__desc li {
    padding-left: var(--space-md);
    margin-bottom: var(--space-xs);
  }

  /* --- Projects: Single column on mobile --- */
  .projects__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    overflow-x: visible;
  }

  .project-card__content {
    padding: var(--space-lg);
  }

  .project-card__title {
    font-size: 1.25rem;
  }

  .project-card__desc {
    font-size: 0.875rem;
  }

  .project-card__icon-wrap {
    width: 44px;
    height: 44px;
  }

  .project-card__icon-img {
    width: 28px;
    height: 28px;
  }

  /* --- Contact (stacked, clean) --- */
  .contact__inner {
    gap: var(--space-xl);
  }

  .contact__image img {
    max-width: 240px;
  }

  .contact__socials {
    justify-content: center;
  }

  .form-textarea {
    min-height: 100px;
  }

  /* --- Footer --- */
  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }

  .footer__tagline {
    font-size: 0.82rem;
  }
}

/* ==========================================
   SMALL MOBILE (< 480px) — Extra compact
   ========================================== */
@media (max-width: 479px) {
  .container {
    padding: 0 var(--space-md);
  }

  .hero__title {
    font-size: 1.7rem;
  }

  .hero__subtitle {
    font-size: 0.88rem;
  }

  .hero__image img {
    max-width: 200px;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .heading-section {
    font-size: 1.5rem;
  }

  .about__stats {
    gap: var(--space-xs);
  }

  .stat-card {
    padding: var(--space-sm);
  }

  .stat-card__number {
    font-size: 1.2rem;
  }

  .stat-card__label {
    font-size: 0.62rem;
  }

  /* Even narrower cards */
  .skills__grid .skill-card {
    flex: 0 0 250px;
  }

  .projects__grid .project-card {
    flex: 0 0 260px;
  }

  .timeline__role {
    font-size: 1.1rem;
  }

  .timeline__desc li {
    font-size: 0.82rem;
  }

  .section__subtitle {
    font-size: 0.85rem;
  }
}

/* ---------- Mobile Overlay ---------- */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(20, 20, 19, 0.5);
  z-index: 997;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.nav-overlay--visible {
  opacity: 1;
  pointer-events: all;
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-parchment);
}

::-webkit-scrollbar-thumb {
  background: var(--color-ring-warm);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-stone-gray);
}

/* ---------- Selection ---------- */
::selection {
  background-color: rgba(201, 100, 66, 0.2);
  color: var(--color-near-black);
}

/* ---------- Loading Animation ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__content {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero__image {
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

/* ---------- Hero Particles Canvas ---------- */
.hero__particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ---------- Back to Top Button ---------- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-terracotta);
  color: var(--color-ivory);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.8);
  transition: all var(--transition-spring);
  box-shadow: 0 4px 16px rgba(201, 100, 66, 0.3);
}

.back-to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background-color: var(--color-coral);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 24px rgba(201, 100, 66, 0.4);
}

.back-to-top:active {
  transform: translateY(0) scale(0.95);
}

/* ---------- Cursor Glow (Desktop) ---------- */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 100, 66, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.cursor-glow--visible {
  opacity: 1;
}

/* ---------- Skill Tag Hover ---------- */
.skill-tag {
  transition: all var(--transition-base);
}

.skill-tag:hover {
  background-color: var(--color-terracotta);
  color: var(--color-ivory);
  transform: translateY(-1px);
}


/* ---------- Social Link Tooltip ---------- */
.social-link {
  position: relative;
}

.social-link::before {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 4px 10px;
  background-color: var(--color-dark-surface);
  color: var(--color-warm-silver);
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-base);
  border: 1px solid var(--color-border-dark);
}

.social-link:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero__image img {
    animation: none;
  }

  .hero__geo {
    animation: none;
  }

  .hero__particles {
    display: none;
  }
}
