:root {
  --bg: #FEFEF2;
  --bg-alt: #EAEDF6;
  --surface: #FFFFFF;
  --ink: #3D4770;
  --ink-muted: rgba(61, 71, 112, 0.68);
  --ink-soft: rgba(61, 71, 112, 0.42);
  --amber: #D4B32A;
  --amber-soft: rgba(212, 179, 42, 0.28);
  --teal: #929FC1;
  --teal-soft: rgba(146, 159, 193, 0.35);
  --coral: #929FC1;
  --line: rgba(61, 71, 112, 0.14);
  --line-strong: rgba(61, 71, 112, 0.28);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(61, 71, 112, 0.06), 0 8px 24px rgba(61, 71, 112, 0.10);
  --header-bg: rgba(254, 254, 242, 0.86);
  --display: 'Outfit', sans-serif;
  --mono: 'Inter', sans-serif;
  --body: 'Google Sans', sans-serif;
}

[data-theme="dark"] {
  --bg: #12162B;
  --bg-alt: #1A2038;
  --surface: #1E2440;
  --ink: #ECEDF7;
  --ink-muted: rgba(236, 237, 247, 0.68);
  --ink-soft: rgba(236, 237, 247, 0.42);
  --amber: #F0CC4E;
  --amber-soft: rgba(240, 204, 78, 0.22);
  --teal: #A9B4D6;
  --teal-soft: rgba(169, 180, 214, 0.25);
  --coral: #A9B4D6;
  --line: rgba(236, 237, 247, 0.12);
  --line-strong: rgba(236, 237, 247, 0.24);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 28px rgba(0, 0, 0, 0.5);
  --header-bg: rgba(18, 22, 43, 0.86);
}

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

html {
  scroll-behavior: smooth;
}

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

  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

* {
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  text-transform: none;
}

.eyebrow::before {
  content: "$";
  color: var(--amber);
  font-weight: 600;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.btn {
  font-family: var(--body);
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 13px;
}

/* ---------- NAV ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.brand small {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 10.5px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 8px 14px;
  border-radius: 8px;
  position: relative;
  transition: color .15s ease;
}

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

.nav-links a.active {
  color: var(--ink);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease, background-color .2s ease, color .2s ease;
}

.theme-toggle:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

/* ---------- HERO ---------- */
.hero {
  padding: 76px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.06;
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: var(--amber);
}

.hero p.lede {
  font-size: 17px;
  color: var(--ink-muted);
  max-width: 440px;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.stat-row {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.stat {
  font-family: var(--mono);
}

.stat b {
  display: block;
  font-family: var(--display);
  font-size: 22px;
  color: var(--ink);
  font-weight: 700;
}

.stat span {
  font-size: 11.5px;
  color: var(--ink-muted);
  letter-spacing: 0.03em;
}

/* console */
.console {
  background: #3D4770;
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 20px 60px rgba(26, 29, 34, 0.25);
  overflow: hidden;
  border: 1px solid #2A2E36;
}

.console-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #2A2E36;
}

.console-dots {
  display: flex;
  gap: 6px;
}

.console-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3A3E47;
  display: block;
}

.console-title {
  font-family: var(--mono);
  font-size: 11.5px;
  color: #8C909A;
  display: flex;
  align-items: center;
  gap: 6px;
}

.console-title .live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5FD9A4;
  animation: pulse2 1.8s infinite;
}

@keyframes pulse2 {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

.console-body {
  padding: 22px 20px;
  min-height: 300px;
  max-height: 360px;
  overflow-y: auto;
  font-family: var(--mono);
  font-size: 13.5px;
  color: #D8DAE0;
}

.console-body::-webkit-scrollbar {
  width: 6px;
}

.console-body::-webkit-scrollbar-thumb {
  background: #3A3E47;
  border-radius: 3px;
}

.msg {
  margin-bottom: 16px;
  display: flex;
  gap: 10px;
  opacity: 0;
  animation: fadeUp .4s ease forwards;
}

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

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

.msg .who {
  flex: 0 0 auto;
  font-weight: 600;
}

.msg.nova .who {
  color: var(--amber);
}

.msg.user .who {
  color: #7FB8B0;
}

.msg p {
  color: #C9CBD2;
  line-height: 1.55;
}

.typing {
  display: inline-flex;
  gap: 3px;
  padding-top: 4px;
}

.typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6E7280;
  display: block;
  animation: blink 1.1s infinite;
}

.typing i:nth-child(2) {
  animation-delay: .15s;
}

.typing i:nth-child(3) {
  animation-delay: .3s;
}

@keyframes blink {

  0%,
  60%,
  100% {
    opacity: .3;
  }

  30% {
    opacity: 1;
  }
}

.console-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 20px 16px;
}

.chip {
  font-family: var(--mono);
  font-size: 12px;
  color: #C9CBD2;
  border: 1px solid #383C45;
  background: #22252C;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}

.chip:hover {
  border-color: var(--amber);
  color: #fff;
}

/* Confirmation prompt inside the chat */
.confirm-row {
  align-items: flex-start;
  max-height: 80px;
}

.confirm-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.confirm-yes,
.confirm-no {
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
}

.confirm-yes {
  background: var(--amber);
  border: 1px solid var(--amber);
  color: #1A1C22;
  font-weight: 600;
}

.confirm-yes:hover {
  background: #F0CC4E;
  transform: translateX(2px);
}

.confirm-no {
  background: transparent;
  border: 1px solid #383C45;
  color: #8C909A;
}

.confirm-no:hover {
  border-color: #6E7280;
  color: #C9CBD2;
}

.console-input {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #2A2E36;
  padding: 12px 16px;
}

.console-input span {
  color: var(--amber);
  font-family: var(--mono);
}

.console-input input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #E8E9ED;
  font-family: var(--mono);
  font-size: 13.5px;
}

.console-input input::placeholder {
  color: #5A5E68;
}

.console-input button {
  background: var(--amber);
  border: none;
  color: var(--ink);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

section {
  padding: 88px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  gap: 24px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: 32px;
}

.section-head p {
  color: var(--ink-muted);
  font-size: 15px;
  max-width: 420px;
}

/* ---------- HERO PHOTO ---------- */
.hero-photo {
  position: relative;
}

.photo-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg-alt), var(--bg));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 4/4.6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}


.dot-grid {
  position: absolute;
  width: 64px;
  height: 64px;
  opacity: .5;
}

.dot-grid svg {
  width: 100%;
  height: 100%;
}

.dot-grid.tr {
  top: -18px;
  right: -18px;
}

.dot-grid.bl {
  bottom: -18px;
  left: -18px;
}

.photo-badge {
  position: absolute;
  top: 24px;
  right: -14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px 9px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
  font-size: 12.5px;
  font-weight: 500;
}

.photo-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5FBE86;
  animation: pulse2 1.8s infinite;
}

.photo-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 12px;
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  box-shadow: var(--shadow);
  max-width: 200px;
  line-height: 1.5;
  z-index: 2;
}

/* ---------- PROFILE / DEFINITION ---------- */
.profile-section {
  background: var(--bg-alt);
}

.profile-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: stretch;
}

.definition-card {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
}

.def-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.def-word {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
}

.def-phon {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink-muted);
}

.def-pos {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--teal);
  border: 1px solid var(--teal-soft);
  background: var(--teal-soft);
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: lowercase;
}

.def-list {
  list-style: none;
  margin: 20px 0 22px;
  counter-reset: def;
}

.def-list li {
  counter-increment: def;
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.55;
}

.def-list li::before {
  content: counter(def);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
  font-weight: 600;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--amber-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.def-origin {
  font-size: 13px;
  color: var(--ink-muted);
  font-style: italic;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-bottom: 20px;
}

.def-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: auto;
}

.def-fact {
  font-family: var(--mono);
}

.def-fact span {
  display: block;
  font-size: 10.5px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.def-fact b {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- WORK CAROUSEL ---------- */
.projects-carousel-wrap {
  position: relative;
}

.work-carousel {
  overflow: hidden;
  cursor: grab;
  user-select: none;
}

.work-carousel:active {
  cursor: grabbing;
}

.work-grid {
  display: flex;
  gap: 24px;
  transition: transform .45s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}

.work-card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 300px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* Carousel navigation controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.carousel-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease, opacity .2s ease;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.carousel-arrow:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: scale(1.08);
}

.carousel-arrow:disabled {
  opacity: 0.28;
  pointer-events: none;
}

.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s ease, width .2s ease, border-radius .2s ease;
}

.carousel-dot.active {
  background: var(--amber);
  width: 22px;
  border-radius: 4px;
}

.carousel-counter {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  min-width: 36px;
  text-align: center;
}

.work-visual {
  height: 168px;
  position: relative;
  overflow: hidden;
}

.work-visual.v1 {
  background: linear-gradient(135deg, #F2D965, var(--bg));
}

.work-visual.v2 {
  background: linear-gradient(135deg, #929FC1, var(--bg));
}

.work-visual.v3 {
  background: linear-gradient(135deg, #2E3760, #3D4770);
}

/* Real screenshot thumbnail inside a card */
.work-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .4s ease;
}

.work-card:hover .work-thumb {
  transform: scale(1.04);
}

.work-body {
  padding: 20px;
}

.work-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--teal);
  margin-bottom: 8px;
  display: block;
}

.work-body h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.work-body p {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.work-details-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: var(--bg-alt);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease, color .15s ease;
  letter-spacing: 0.02em;
}

.work-details-btn:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: translateX(3px);
}

/* mini visuals drawn in css */
.bars {
  position: absolute;
  bottom: 18px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 90px;
}

.bars i {
  flex: 1;
  background: var(--amber);
  border-radius: 4px 4px 0 0;
  opacity: .85;
}

.inbox-lines {
  position: absolute;
  inset: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inbox-lines i {
  height: 10px;
  border-radius: 5px;
  background: var(--teal);
  opacity: .18;
}

.inbox-lines i:nth-child(1) {
  width: 60%;
  opacity: .5;
  background: var(--teal);
}

.inbox-lines i:nth-child(2) {
  width: 90%;
}

.inbox-lines i:nth-child(3) {
  width: 75%;
}

.inbox-lines i:nth-child(4) {
  width: 40%;
}

.node-map {
  position: absolute;
  inset: 0;
}

.node-map svg {
  width: 100%;
  height: 100%;
}

/* ---------- CAPABILITIES ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cap-card:hover {
  border-color: var(--amber);
  transform: translateY(-3px);
}

.cap-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.cap-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.cap-card p {
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* ---------- SKILL FILTERS ---------- */
.skill-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.skill-pill {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}

.skill-pill:hover {
  border-color: var(--amber);
  color: var(--ink);
  transform: translateY(-1px);
}

.skill-pill.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

[data-theme="dark"] .skill-pill.active {
  background: var(--amber);
  color: var(--bg);
  border-color: var(--amber);
}

.cap-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: border-color .15s ease, transform .15s ease, opacity .25s ease, scale .25s ease;
}

.cap-card.hidden {
  opacity: 0;
  scale: 0.95;
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

.tools-strip {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.tools-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  flex: 0 0 auto;
}

.tools-list {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.tool-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-muted);
  font-weight: 500;
}

.tool-item svg {
  width: 18px;
  height: 18px;
  color: var(--ink-soft);
}

/* ---------- EXPERIENCE & EDUCATION ---------- */
.process-alt {
  background: var(--bg-alt);
}

.exp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.exp-col-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--teal);
  text-transform: uppercase;
  font-weight: 600;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 28px;
}

.exp-col-label svg {
  color: var(--amber);
  flex: 0 0 auto;
}

.exp-timeline {
  position: relative;
  padding-left: 24px;
}

.exp-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: var(--line-strong);
}

.exp-entry {
  position: relative;
  margin-bottom: 36px;
}

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

.exp-dot {
  position: absolute;
  left: -24px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line-strong);
  z-index: 1;
  transition: border-color .2s ease;
}

.exp-entry:hover .exp-dot {
  border-color: var(--amber);
}

.exp-dot.accent-dot {
  background: var(--amber);
  border-color: var(--amber);
}

.exp-content {}

.exp-period {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  display: block;
}

.exp-role {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--ink);
}

.exp-org {
  font-size: 13px;
  color: var(--amber);
  font-weight: 500;
  margin-bottom: 10px;
  font-family: var(--mono);
}

.exp-desc {
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.exp-tags span {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--teal);
  border: 1px solid var(--teal-soft);
  background: var(--teal-soft);
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.exp-quotes {
  border-top: 1px solid var(--line);
  padding-top: 40px;
}

/* ---------- TESTIMONIALS ---------- */
.testi-wrap {
  position: relative;
}

.testi-track {
  display: flex;
  gap: 24px;
  overflow: hidden;
}

.testi-card {
  flex: 0 0 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  transition: opacity .3s ease;
}

.testi-card q {
  display: block;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 24px;
  color: var(--ink);
}

.testi-who {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--teal-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 600;
  color: var(--teal);
  font-size: 13px;
}

.testi-who b {
  display: block;
  font-size: 14px;
}

.testi-who span {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.testi-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 26px;
}

.testi-dots button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: var(--line-strong);
  cursor: pointer;
  padding: 0;
}

.testi-dots button.on {
  background: var(--amber);
  width: 20px;
  border-radius: 4px;
  transition: width .2s ease;
}

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}

.contact-info h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--ink-muted);
  font-size: 15px;
  margin-bottom: 28px;
  max-width: 380px;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14.5px;
}

.contact-line svg {
  width: 18px;
  height: 18px;
  color: var(--teal);
  flex: 0 0 auto;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  margin-bottom: 7px;
  letter-spacing: 0.03em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 11px 13px;
  font-family: var(--body);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  transition: border-color .15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber);
}

.field {
  margin-bottom: 14px;
}

.field textarea {
  resize: vertical;
  min-height: 90px;
}

.form-status {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--teal);
  min-height: 18px;
  margin-top: 8px;
  transition: color .2s ease;
  line-height: 1.5;
}

.form-status.success {
  color: #5FD9A4;
}

.form-status.error {
  color: #E07373;
}

#formSubmitBtn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
}

.foot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.foot-row .brand {
  font-size: 15px;
}

.foot-links {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--ink-muted);
}

.foot-links a:hover {
  color: var(--ink);
}

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

  .profile-grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .photo-badge {
    right: 14px;
  }

  .work-card {
    flex: 0 0 calc(50% - 12px);
  }

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

  .exp-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .nav-links {
    display: none;
  }

  .menu-btn {
    display: block;
  }
}

@media (max-width:640px) {
  .wrap {
    padding: 0 20px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .photo-caption {
    left: 16px;
    bottom: -24px;
    max-width: 160px;
  }

  .def-facts {
    grid-template-columns: 1fr 1fr;
  }

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

  .work-card {
    flex: 0 0 calc(100% - 0px);
    min-width: unset;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .stat-row {
    gap: 22px;
  }

  .skill-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .drawer {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px 20px 0 0;
    top: auto !important;
    bottom: 0;
    right: 0;
    left: 0;
    max-height: 90vh;
  }
}

/* ---------- PROJECT DRAWER ---------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(18, 22, 43, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  display: flex;
  justify-content: flex-end;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.drawer {
  position: relative;
  width: min(520px, 92vw);
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: -8px 0 48px rgba(0, 0, 0, 0.18);
}

.drawer-backdrop.open .drawer {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.drawer-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--teal);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.drawer-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-alt);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.drawer-close:hover {
  border-color: var(--ink);
  transform: rotate(90deg);
}

/* Screenshot carousel inside drawer */
.drawer-carousel {
  position: relative;
  flex-shrink: 0;
  height: 220px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.dcarousel-track {
  display: flex;
  height: 100%;
  transition: transform .35s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}

.dcarousel-slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Real screenshot image */
.dcarousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Placeholder shown when no screenshot yet */
.dcarousel-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--bg-alt), var(--bg));
  color: var(--ink-soft);
}

.dcarousel-placeholder svg {
  opacity: 0.4;
}

.dcarousel-placeholder span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  opacity: 0.5;
}

/* Color accent strip per project */
.dcarousel-slide.dv1 .dcarousel-placeholder {
  background: linear-gradient(135deg, rgba(242, 217, 101, 0.18), var(--bg-alt));
}

.dcarousel-slide.dv2 .dcarousel-placeholder {
  background: linear-gradient(135deg, rgba(146, 159, 193, 0.2), var(--bg-alt));
}

.dcarousel-slide.dv3 .dcarousel-placeholder {
  background: linear-gradient(135deg, rgba(46, 55, 96, 0.35), var(--bg-alt));
}

/* Slide label badge */
.dcarousel-slide-label {
  position: absolute;
  bottom: 10px;
  left: 12px;
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
}

/* Arrow buttons */
.dcarousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background .15s ease, opacity .15s ease;
  backdrop-filter: blur(4px);
}

.dcarousel-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
}

.dcarousel-arrow:disabled {
  opacity: 0.25;
  pointer-events: none;
}

.dcarousel-prev {
  left: 12px;
}

.dcarousel-next {
  right: 12px;
}

/* Dot indicators */
.dcarousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.dcarousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s ease, transform .2s ease;
}

.dcarousel-dot.active {
  background: #fff;
  transform: scale(1.3);
}


.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.drawer-body::-webkit-scrollbar {
  width: 5px;
}

.drawer-body::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 3px;
}

.drawer-section-label {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-section-label::before {
  content: "";
  width: 3px;
  height: 12px;
  background: var(--amber);
  border-radius: 2px;
  display: block;
  flex-shrink: 0;
}

.drawer-desc {
  font-size: 14.5px;
  color: var(--ink-muted);
  line-height: 1.65;
}

.drawer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-list li {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.55;
}

.drawer-list li::before {
  content: "✓";
  color: var(--amber);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.drawer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.drawer-chip {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--teal);
  border: 1px solid var(--teal-soft);
  background: var(--teal-soft);
  padding: 4px 11px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.drawer-outcome {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.6;
  border-left: 3px solid var(--amber);
}

.drawer-footer {
  padding: 16px 28px 20px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Project external links row */
.drawer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.drawer-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: var(--bg-alt);
  border-radius: 999px;
  padding: 7px 14px;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
  letter-spacing: 0.02em;
}

.drawer-link-btn:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: translateY(-1px);
}

.drawer-link-btn svg {
  flex-shrink: 0;
  display: block;
}

/* Expand button in carousel */
.dcarousel-expand {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(4px);
  transition: background .15s ease, transform .15s ease;
}

.dcarousel-expand:hover {
  background: rgba(0, 0, 0, 0.65);
  transform: scale(1.08);
}

/* ---------- SCREENSHOT LIGHTBOX ---------- */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(8, 10, 20, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.lightbox-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(900px, 95vw);
  width: 100%;
  gap: 16px;
  transform: scale(0.95);
  transition: transform .25s cubic-bezier(0.32, 0.72, 0, 1);
}

.lightbox-backdrop.open .lightbox-box {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: transform .15s ease, border-color .15s ease;
}

.lightbox-close:hover {
  transform: rotate(90deg);
  border-color: var(--ink);
}

.lightbox-img-wrap {
  width: 100%;
  max-height: 72vh;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  min-height: 260px;
}

.lightbox-img-wrap img {
  width: 100%;
  height: 100%;
  max-height: 72vh;
  object-fit: contain;
  display: block;
}

/* Placeholder inside lightbox */
.lightbox-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  height: 300px;
  color: var(--ink-soft);
  border: 2px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--bg-alt);
}

.lightbox-placeholder svg {
  opacity: 0.35;
}

.lightbox-placeholder p {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-align: center;
  max-width: 220px;
  line-height: 1.6;
}

.lightbox-caption {
  font-family: var(--mono);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.03em;
  text-align: center;
}

.lightbox-counter {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.05em;
}

/* Lightbox prev/next arrows */
.lightbox-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 -20px;
  pointer-events: none;
  z-index: 5;
}

.lightbox-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.48);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: all;
  backdrop-filter: blur(6px);
  transition: background .15s ease;
  flex-shrink: 0;
}

.lightbox-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
}

.lightbox-arrow:disabled {
  opacity: 0.2;
  pointer-events: none;
}

.lightbox-prev {
  margin-left: -52px;
}

.lightbox-next {
  margin-right: -52px;
}