/* ============ Tokens ============ */
:root {
  /* Palette taken from the reference design (bootcamps.techdestination.com) */
  --ink: #1a0b3d;
  --ink-2: #2e1065;
  --deep: #12082e;
  --purple: #6d28d9;
  --purple-2: #a855f7;
  --violet-soft: #f1ecff;
  --lav: #ece7f8;
  --yellow: #fde047;
  --yellow-2: #fef08a;
  --white: #ffffff;
  --text: #1a0b3d;
  --muted: #4a4068;
  --muted-light: #c8bfea;
  --line: #e7e0fa;
  --green: #16a34a;
  --radius-xl: 32px;
  --radius-lg: 26px;
  --radius: 18px;
  --shadow: 0 30px 70px -45px rgba(46, 16, 101, .45);
  --font-head: "League Spartan", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--lav);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; }
p { margin: 0; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ============ Shared bits ============ */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot--violet { background: var(--purple-2); box-shadow: 0 0 10px var(--purple-2); }
.dot--yellow { background: var(--yellow); box-shadow: 0 0 10px var(--yellow); }
.dot--green { background: var(--green); }
.pulse { animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; border: 0;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  transition: transform .2s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--xs { padding: 9px 14px; font-size: 13px; gap: 8px; }
.btn--yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 10px 30px -8px rgba(255, 212, 59, .6); }
.btn--yellow:hover { background: var(--yellow-2); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,.14); }
.btn--outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn--outline:hover { background: rgba(255,255,255,.1); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--white { background: #fff; color: var(--ink); }
.btn--line { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.arrow { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(20,7,46,.12); font-size: 13px; }
.btn--ghost .arrow, .btn--outline .arrow, .btn--dark .arrow { background: rgba(255,255,255,.15); }
.arrow--yellow, .btn--dark .arrow--yellow { background: var(--yellow); color: var(--ink); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 700;
  font-family: var(--font-head);
}
.chip__ico { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-style: normal; font-size: 10px; }
.chip--soft { background: #fff3c4; color: var(--ink); padding: 6px 12px; }

.eyebrow { font-family: var(--font-head); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow--light { color: var(--muted-light); }
.center { display: block; text-align: center; }

.h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; color: var(--ink); }
.h2--xl { font-size: clamp(34px, 5vw, 56px); }
.h2--light { color: #fff; }
mark { background: linear-gradient(transparent 12%, var(--yellow) 12%, var(--yellow) 92%, transparent 92%); color: inherit; padding: 0 .12em; }
.yellow { color: var(--yellow); }
.muted { color: var(--muted); line-height: 1.65; font-size: 16px; }
.muted--light { color: var(--muted-light); }

/* ============ Ticker ============ */
.ticker { background: var(--yellow); color: var(--ink); overflow: hidden; font-family: var(--font-head); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.ticker__track { display: flex; gap: 28px; width: max-content; padding: 8px 0; animation: scroll 40s linear infinite; }

@keyframes scroll { to { transform: translateX(-50%); } }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(60% 50% at 50% 35%, rgba(139, 92, 246, .45), transparent 70%),
    radial-gradient(40% 40% at 0% 100%, rgba(107, 46, 230, .5), transparent 70%),
    radial-gradient(40% 40% at 100% 0%, rgba(107, 46, 230, .45), transparent 70%),
    linear-gradient(180deg, #1a0a3d 0%, #2a0f63 55%, #1a0a3d 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent);
  pointer-events: none;
}

.nav {
  position: sticky; top: 0; z-index: 50;
  width: min(1180px, 100% - 32px); margin: 18px auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--purple-2), var(--purple)); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 15px; border: 1px solid rgba(255,255,255,.25); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--font-head); }
.brand__text strong { font-weight: 800; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; }
.brand__text small { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }

.nav__links {
  display: flex; gap: 4px; padding: 6px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px; backdrop-filter: blur(10px);
}
.nav__links a { padding: 8px 16px; border-radius: 999px; font-size: 14px; color: rgba(255,255,255,.85); transition: background .2s; }
.nav__links a:hover, .nav__links a.active { background: rgba(255,255,255,.12); color: #fff; }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav__toggle span { width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.hero__inner {
  position: relative; text-align: center;
  width: min(1180px, 100% - 32px); margin: 0 auto;
  padding: 90px 0 70px;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; font-size: 13px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
}
.hero__title {
  margin-top: 22px;
  font-size: clamp(42px, 9vw, 104px); font-weight: 900; letter-spacing: -.02em; line-height: .95;
  text-shadow: 0 10px 40px rgba(139, 92, 246, .5);
}
.hero__sub {
  display: inline-block; margin-top: 18px;
  padding: 8px 22px; border-radius: 999px;
  background: #fff; color: var(--ink);
  font-family: var(--font-head); font-weight: 800; font-size: clamp(18px, 2.6vw, 30px);
  transform: rotate(-1.5deg);
  box-shadow: 0 14px 40px -10px rgba(0,0,0,.4);
}
.grad { background: linear-gradient(90deg, var(--purple), #c026d3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { max-width: 560px; margin: 24px auto 0; color: rgba(255,255,255,.78); font-size: 17px; line-height: 1.6; }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero__stats {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px;
  font-size: 14px; color: rgba(255,255,255,.7);
}
.hero__stats b { color: #fff; font-family: var(--font-head); font-size: 16px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 12px; font-size: 13px; font-weight: 500;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(8px);
}
.pill--float { position: absolute; animation: float 6s ease-in-out infinite; }
.p1 { top: 70px; left: 2%; }
.p2 { top: 200px; left: 0; animation-delay: -1s; }
.p3 { top: 320px; left: 4%; animation-delay: -2s; background: rgba(255,212,59,.12); border-color: rgba(255,212,59,.35); }
.p4 { top: 60px; right: 4%; animation-delay: -3s; }
.p5 { top: 190px; right: 0; animation-delay: -4s; }
.p6 { top: 320px; right: 6%; animation-delay: -5s; background: rgba(255,212,59,.12); border-color: rgba(255,212,59,.35); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ============ Big band ============ */
.band { background: var(--deep); overflow: hidden; border-block: 1px solid rgba(255,255,255,.06); }
.band__track {
  display: flex; align-items: center; gap: 36px; width: max-content; padding: 22px 0;
  font-family: var(--font-head); font-weight: 900; font-size: clamp(36px, 6vw, 72px); color: #fff; letter-spacing: .02em;
  animation: scroll 30s linear infinite;
}
.band .outline { color: transparent; -webkit-text-stroke: 1.5px rgba(196, 181, 253, .5); }
.band .star { color: var(--yellow); font-size: .5em; }

/* ============ Sections ============ */
.section { padding: 90px 0; position: relative; }
.section--lav { background: var(--lav); }
.section--white { background: #fff; }
.section--dark {
  background: radial-gradient(50% 60% at 0% 40%, rgba(107,46,230,.35), transparent 70%), var(--deep);
  color: #fff;
}
.section--glow { background: radial-gradient(45% 35% at 50% 70%, rgba(139,92,246,.45), transparent 70%), var(--deep); }

.panel {
  width: min(1180px, 100% - 32px); margin: 0 auto 32px;
  background: #fff; border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow);
}
.panel:last-child { margin-bottom: 0; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 28px; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: center; }
.about__text .muted { margin-top: 18px; }
.circle-btn { display: grid; place-items: center; margin-top: 40px; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--ink); font-size: 20px; transition: background .2s, color .2s; }
.circle-btn:hover { background: var(--ink); color: #fff; }
.about__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.photo-card {
  position: relative; overflow: hidden; min-height: 340px;
  border-radius: var(--radius-lg); color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .3s;
}
.photo-card:hover { transform: translateY(-6px); }
.pc1 { background: linear-gradient(160deg, #3b1d8a, #170834); }
.pc2 { background: linear-gradient(160deg, #6b2ee6, #2a0f63); }
.pc3 { background: linear-gradient(160deg, #8b5cf6, #3b1d8a); }
.photo-card__num { position: absolute; top: 14px; left: 14px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; z-index: 1; }
.photo-card__art { position: absolute; inset: 0 0 45% 0; display: grid; place-items: center; font-size: 84px; color: rgba(255,255,255,.85); }
.photo-card__art::before { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(rgba(255,212,59,.35), transparent 70%); }
.photo-card__art svg { position: relative; stroke-width: 1.2; }
.photo-card__body { position: relative; padding: 16px; background: linear-gradient(transparent, rgba(10,3,25,.6) 30%); }
.photo-card__body h3 { font-size: 20px; font-weight: 700; }
.photo-card__body p { margin-top: 6px; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.8); }
.tag-btn { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding: 8px 8px 8px 14px; border-radius: 999px; background: var(--purple); font-size: 12px; font-weight: 600; }
.tag-btn b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.2); }
.tag-btn--yellow { background: var(--yellow); color: var(--ink); }
.tag-btn--yellow b { background: rgba(20,7,46,.12); }

/* Stats bento */
.bento { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: center; }
.bento__text .muted { margin: 18px 0 28px; }
.bento__grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.tile { position: relative; border-radius: var(--radius-lg); padding: 22px; min-height: 180px; overflow: hidden; }
.tile--purple { background: linear-gradient(150deg, #7c3aed, #5b21b6); color: #fff; }
.tile--yellow { background: var(--yellow); color: var(--ink); grid-row: 2; }
.tile--portrait { grid-column: 2; grid-row: 1 / span 2; background: linear-gradient(170deg, #4c1d95, #1a0a3d); color: #fff; padding: 0; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; }
.tile__num { font-family: var(--font-head); font-size: 56px; font-weight: 800; line-height: 1; }
.tile__plus { font-family: var(--font-head); font-size: 32px; font-weight: 800; }
.tile h4 { margin-top: 8px; font-size: 18px; }
.tile p { margin-top: 18px; font-size: 13px; line-height: 1.5; opacity: .85; }
.tile--yellow::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 120px; height: 120px; border-radius: 50%; border: 18px solid rgba(20,7,46,.07); }
.portrait { position: absolute; inset: 0; display: grid; place-items: center; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait__initials {
  display: grid; place-items: center; width: 150px; height: 150px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-2), #c026d3); font-family: var(--font-head); font-weight: 900; font-size: 54px;
  box-shadow: 0 0 0 10px rgba(255,255,255,.06), 0 0 0 22px rgba(255,255,255,.03);
  margin-bottom: 90px;
}
.tile__caption { position: relative; padding: 22px; background: linear-gradient(transparent, rgba(10,3,25,.85) 40%); }
.tile__caption h4 { font-size: 24px; line-height: 1.1; }
.tile__caption h4 span { color: var(--yellow); }
.tile__caption p { margin-top: 6px; }

/* Projects carousel */
.tags-row { display: flex; gap: 10px; flex-wrap: wrap; }
.carousel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 20px 0 36px; flex-wrap: wrap; }
.carousel-head .h2 { max-width: 640px; }
.carousel-nav { display: flex; align-items: center; gap: 10px; }
.counter { font-size: 13px; color: var(--muted); margin-right: 6px; font-family: var(--font-head); }
.counter b { color: var(--ink); }
.nav-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 22px; line-height: 1; transition: transform .2s, background .2s; }
.nav-btn:hover { transform: scale(1.06); background: var(--purple); }
.nav-btn--light { background: var(--violet-soft); color: var(--ink); }
.nav-btn--light:hover { color: #fff; }

.carousel {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px max(16px, (100% - 1180px) / 2) 24px;
  scroll-padding-inline: max(16px, (100% - 1180px) / 2);
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.pcard {
  flex: 0 0 300px; scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #f5f1ff, #ece4ff); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pcard__top { display: flex; align-items: center; gap: 6px; padding: 18px 18px 0; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 11px; font-weight: 600; }
.pcard__ico { margin-left: auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 16px; color: var(--purple); }
.pcard h3 { padding: 22px 18px 0; font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.pcard p { padding: 12px 18px 22px; font-size: 14px; line-height: 1.6; color: var(--muted); flex: 1; }
.pcard__foot {
  position: relative; padding: 18px; min-height: 130px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  background: radial-gradient(80% 90% at 80% 20%, #8b5cf6, transparent 60%), linear-gradient(140deg, #3b1d8a, #1a0a3d);
  overflow: hidden;
}
.pcard__foot::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; box-shadow: 0 0 0 30px rgba(255,255,255,.03); }
.pcard__date { align-self: flex-start; padding: 5px 10px; border-radius: 8px; background: rgba(255,255,255,.12); color: #fff; font-size: 11px; font-weight: 600; }
.pcard__link { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 8px 16px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; font-family: var(--font-head); transition: background .2s; }
.pcard__link b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; }
.pcard__link:hover { background: var(--yellow); }
.pcard__link .gh-ico { margin-right: 8px; font-family: ui-monospace, monospace; font-size: 11px; color: var(--purple); }
.pcard__link--request { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.pcard__link--request b { background: rgba(255,255,255,.18); }
.pcard__link--request:hover { background: rgba(255,255,255,.12); }
.pcard__sublink { position: relative; z-index: 1; margin-top: -14px; align-self: flex-end; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.8); }
.pcard__sublink:hover { color: var(--yellow); }
.feature__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* Card actions: live preview + code (dev) / preview (docs) */
.pcard__actions { position: relative; z-index: 1; display: flex; gap: 8px; }
.act {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 10px; border-radius: 999px; border: 0;
  background: #fff; color: var(--ink);
  font-family: var(--font-head); font-size: 12.5px; font-weight: 600;
  transition: background .2s, transform .2s;
}
.act svg { font-size: 16px; flex: none; }
.act:hover { background: var(--yellow); transform: translateY(-2px); }
.act--off { background: rgba(255,255,255,.1); color: rgba(255,255,255,.55); border: 1px dashed rgba(255,255,255,.3); cursor: not-allowed; }
.act--off:hover { background: rgba(255,255,255,.1); transform: none; }
.act--wide { flex: 1; cursor: pointer; }
.pcard--doc .pcard__ico { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }

/* Preview modal */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(12, 4, 30, .65); backdrop-filter: blur(4px); animation: fade .2s ease; }
.modal__dialog {
  position: relative; width: min(620px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: #fff; border-radius: var(--radius-xl); padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.6); animation: pop .25s ease;
}
.modal__dialog::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--purple), var(--purple-2) 70%, var(--yellow)); border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.modal__close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--violet-soft); color: var(--ink); font-size: 14px; }
.modal__close:hover { background: var(--yellow); }
.modal__eyebrow { font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--purple); }
.modal h3 { margin-top: 8px; font-size: clamp(22px, 3vw, 28px); font-weight: 800; color: var(--ink); padding-right: 40px; }
.modal__meta { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.modal__desc { margin-top: 14px; color: var(--muted); line-height: 1.65; }
.modal__points ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.modal__points li { position: relative; padding-left: 26px; line-height: 1.5; font-size: 15px; }
.modal__points li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); font-size: 10px; font-weight: 800; }
.modal__stack { margin-top: 18px; padding: 10px 14px; border-radius: 12px; background: var(--lav); font-size: 13px; font-weight: 600; color: var(--ink); }
.modal__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
body.modal-open { overflow: hidden; }

/* Skills */
.skills { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: center; }
.skills__text .h2 { margin: 12px 0 18px; }
.skills__list { display: grid; gap: 14px; }
.skill-row {
  display: flex; gap: 16px; align-items: center;
  padding: 18px 20px; border-radius: var(--radius);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  transition: background .25s, border-color .25s, transform .25s;
}
.skill-row:hover { background: rgba(255,255,255,.07); border-color: rgba(255,212,59,.35); transform: translateX(4px); }
.skill-row__ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 18px; }
.skill-row h4 { font-size: 16px; font-weight: 600; }
.skill-row p { margin-top: 4px; font-size: 14px; color: var(--muted-light); }

/* Steps */
.steps { display: grid; grid-template-columns: 1fr 1.15fr; gap: 50px; align-items: center; }
.steps__text .h2 { margin: 12px 0 18px; }
.steps__text .muted { margin-bottom: 28px; }
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; position: relative; }
.steps__list::before { content: ""; position: absolute; left: 20px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(var(--purple-2), var(--purple)); }
.step { position: relative; display: flex; align-items: center; gap: 16px; }
.step__n { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--purple-2), var(--purple)); color: #fff; font-family: var(--font-head); font-weight: 700; box-shadow: 0 0 0 5px var(--lav); z-index: 1; }
.step p { flex: 1; display: flex; align-items: center; padding: 14px 18px; background: #fff; border-radius: var(--radius); font-weight: 500; font-size: 15px; box-shadow: 0 6px 20px -12px rgba(42,14,102,.3); }
.step__tag { position: absolute; right: 14px; padding: 4px 10px; border-radius: 999px; background: var(--violet-soft); color: var(--purple); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.step--final .step__n { background: var(--yellow); color: var(--ink); }
.step--final p { background: linear-gradient(135deg, #3b1d8a, var(--ink)); color: #fff; font-weight: 700; }
.step--final .step__tag { background: var(--yellow); color: var(--ink); }

/* Why + CTA */
.section--glow .h2 { margin: 10px 0 40px; }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why__card { padding: 24px; border-radius: var(--radius-lg); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); transition: transform .3s, border-color .3s; }
.why__card:hover { transform: translateY(-6px); border-color: rgba(139,92,246,.6); }
.why__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.why__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--purple-2), var(--purple)); font-size: 20px; }
.why__num { font-family: var(--font-head); font-weight: 900; font-size: 36px; color: rgba(255,255,255,.1); font-style: italic; }
.why__card h4 { font-size: 18px; }
.why__card p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--muted-light); }

.cta {
  position: relative; overflow: hidden;
  margin-top: 70px; padding: clamp(40px, 7vw, 80px) 24px; text-align: center;
  border-radius: var(--radius-xl);
  background: radial-gradient(50% 70% at 50% 40%, rgba(196,181,253,.35), transparent 70%), linear-gradient(120deg, #7c3aed, #5b21b6 60%, #6d28d9);
  box-shadow: 0 30px 80px -30px rgba(139,92,246,.8);
}
.cta h2 { font-size: clamp(30px, 5vw, 54px); font-weight: 900; line-height: 1.08; letter-spacing: -.02em; }
.cta p { max-width: 520px; margin: 18px auto 0; font-size: 15px; color: rgba(255,255,255,.85); line-height: 1.6; }
.cta__btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: stretch; }
.contact__text { display: flex; flex-direction: column; }
.contact__text .muted { margin-top: 18px; }
.contact__chips { margin-top: auto; padding-top: 40px; display: flex; gap: 8px; flex-wrap: wrap; }
.mini-chip { padding: 7px 12px; border-radius: 999px; background: var(--violet-soft); font-size: 12px; font-weight: 600; transition: background .2s; }
.mini-chip:hover { background: var(--yellow); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ccard { position: relative; overflow: hidden; padding: 22px; border-radius: var(--radius-lg); min-height: 190px; display: flex; flex-direction: column; }
.ccard h3 { margin-top: auto; font-size: 22px; font-weight: 800; }
.ccard p { margin-top: 6px; font-size: 13px; opacity: .8; }
.ccard__label { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ccard__ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-style: normal; font-size: 14px; }
.ccard__ico--dark { background: var(--ink); color: var(--yellow); }
.ccard__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ccard--dark { background: linear-gradient(150deg, #2a0f63, var(--ink)); color: #fff; }
.ccard--dark::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 0 0 28px rgba(255,255,255,.03); }
.ccard--yellow { background: var(--yellow); color: var(--ink); }
.ccard__at { position: absolute; right: -6px; top: -26px; font-family: var(--font-head); font-weight: 900; font-size: 150px; color: rgba(20,7,46,.06); pointer-events: none; }
.ccard__email { font-size: clamp(15px, 1.5vw, 18px) !important; overflow-wrap: anywhere; }
.ccard--purple { grid-column: 1 / -1; background: radial-gradient(60% 100% at 90% 0%, #a78bfa, transparent 60%), linear-gradient(120deg, #7c3aed, #5b21b6); color: #fff; }

/* Footer */
.footer { background: var(--deep); color: var(--muted-light); padding: 28px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer .brand { color: #fff; }
.footer p { font-size: 13px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: var(--shadow); transition: transform .35s; z-index: 100; }
.toast.show { transform: translate(-50%, 0); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============ Additions ============ */
/* Brand logo mark */
.brand__logo {
  position: relative; flex: none; width: 46px; height: 46px; border-radius: 14px; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #a78bfa 0%, var(--purple-2) 35%, var(--purple) 100%);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 26px -8px rgba(139,92,246,.85);
  transition: transform .35s ease, box-shadow .35s ease;
}
.brand__logo svg { width: 26px; height: 26px; stroke: #fff; stroke-width: 2.4; }
.brand__logo .slash { stroke: var(--yellow); }
.brand__logo::after {
  content: ""; position: absolute; inset: -40% auto -40% -60%; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite;
}
.brand:hover .brand__logo { transform: rotate(-6deg) scale(1.06); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 14px 30px -8px rgba(255,212,59,.6); }
@keyframes shine { 0%, 60% { left: -60%; } 85%, 100% { left: 130%; } }
.brand { gap: 12px; }
.brand__text strong { font-size: 17px; }
.brand__text small { font-size: 10.5px; }
.portrait img { object-position: center top; }
.hero__title-2 { display: block; font-size: .62em; margin-top: .1em; letter-spacing: .04em; background: linear-gradient(90deg, #fff, #d8c8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead strong { color: #fff; font-weight: 700; }

.ticks { list-style: none; padding: 0; margin: -10px 0 28px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; font-size: 15px; color: var(--text); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); font-size: 11px; font-weight: 800; color: var(--ink); }

/* Featured */
.feature {
  margin-top: 22px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center;
  padding: clamp(26px, 4vw, 48px); border-radius: var(--radius-xl); color: #fff; overflow: hidden; position: relative;
  background: radial-gradient(60% 80% at 100% 0%, rgba(139,92,246,.55), transparent 60%), radial-gradient(50% 60% at 0% 100%, rgba(107,46,230,.4), transparent 70%), linear-gradient(140deg, #24104f, var(--deep));
  box-shadow: 0 30px 80px -30px rgba(42,14,102,.6);
}
.status--dark { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: #fff; }
.feature h2 { margin-top: 16px; font-size: clamp(40px, 6vw, 68px); font-weight: 900; letter-spacing: -.02em; line-height: 1; }
.feature__kicker { margin-top: 10px; font-family: var(--font-head); font-weight: 600; color: var(--yellow); font-size: 17px; }
.feature__lead { margin-top: 16px; color: rgba(255,255,255,.8); line-height: 1.65; }
.feature__list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.feature__list li { position: relative; padding-left: 26px; font-size: 15px; color: rgba(255,255,255,.85); line-height: 1.5; }
.feature__list li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 9px; height: 9px; border-radius: 3px; background: var(--yellow); transform: rotate(45deg); }
.feature__list b { color: #fff; }
.stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.stack span { padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.viz-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); padding: 16px; backdrop-filter: blur(8px); }
.viz-card__bar { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted-light); margin-bottom: 8px; }
.viz-card__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.25); }
.viz-card__bar i:first-child { background: #f87171; }
.viz-card__bar i:nth-child(2) { background: var(--yellow); }
.viz-card__bar i:nth-child(3) { background: var(--green); }
.viz-card__bar span { margin-left: 8px; font-family: ui-monospace, monospace; }
.graph { width: 100%; height: auto; display: block; }
.graph .edges path { stroke: rgba(196,181,253,.55); stroke-width: 1.6; stroke-dasharray: 5 5; animation: dash 3s linear infinite; }
.graph .nodes circle { fill: var(--purple-2); stroke: #fff; stroke-width: 1.5; }
.graph .n-start { fill: var(--yellow); stroke: var(--ink); }
.graph .nodes .n-bug { fill: #f87171; animation: pulse 1.6s infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.viz-metrics { display: grid; gap: 8px; margin-top: 10px; }
.viz-metrics div { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 10px; font-size: 12px; }
.viz-metrics b { font-weight: 600; color: var(--muted-light); }
.viz-metrics em { font-style: normal; font-weight: 700; text-align: right; }
.meter { height: 7px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--purple-2), var(--yellow)); }
.viz-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.vt { padding: 4px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; }
.vt--ok { background: rgba(34,197,94,.18); color: #86efac; }
.vt--warn { background: rgba(255,212,59,.18); color: var(--yellow); }
.vt--bad { background: rgba(248,113,113,.18); color: #fca5a5; }
.viz-note { margin-top: 10px; text-align: center; font-size: 11px; color: var(--muted-light); }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -14px 0 22px; }
.filter { padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; font-family: var(--font-head); transition: .2s; }
.filter:hover { border-color: var(--purple-2); }
.filter.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pcard[hidden] { display: none; }
.pcard__date { line-height: 1.5; }

.earlier { margin-top: 30px; padding-top: 26px; border-top: 1px dashed var(--line); display: flex; gap: 16px 24px; align-items: baseline; flex-wrap: wrap; }
.earlier__list { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.earlier__list span { padding: 7px 12px; border-radius: 10px; background: var(--lav); font-size: 13px; font-weight: 600; color: var(--ink); }
.earlier__list em { font-style: normal; font-weight: 500; color: var(--muted); margin-left: 6px; font-size: 12px; }

/* Experience timeline */
.xp { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }
.xp::before { content: ""; position: absolute; left: 20px; top: 24px; bottom: 24px; width: 2px; background: linear-gradient(var(--purple-2), var(--purple)); }
.xp__item { display: flex; gap: 16px; align-items: flex-start; }
.xp__item .step__n { margin-top: 14px; }
.xp__card { flex: 1; background: #fff; border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: 0 8px 26px -14px rgba(42,14,102,.35); transition: transform .25s; }
.xp__card:hover { transform: translateX(4px); }
.xp__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.xp__head h3 { font-size: 17px; font-weight: 700; color: var(--ink); }
.xp__head .step__tag { position: static; flex: none; display: inline-block; }
.xp__meta { margin-top: 4px; font-size: 13px; color: var(--purple); font-weight: 600; }
.xp__card ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.xp__item--final .step__n { background: var(--yellow); color: var(--ink); }
.xp__item--final .xp__card { background: linear-gradient(135deg, #3b1d8a, var(--ink)); }
.xp__item--final h3 { color: #fff; }
.xp__item--final .xp__meta { color: var(--yellow); }
.xp__item--final ul { color: var(--muted-light); }
.xp__item--final .step__tag { background: var(--yellow); color: var(--ink); }

/* Résumé picker */
.resumes { display: grid; gap: 10px; scroll-margin-top: 90px; }
.resumes .eyebrow { margin-bottom: 2px; }
.resume-link { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--radius); background: #fff; box-shadow: 0 6px 20px -12px rgba(42,14,102,.3); transition: transform .2s, box-shadow .2s; }
.resume-link:hover { transform: translateX(4px); box-shadow: 0 10px 26px -12px rgba(42,14,102,.45); }
.resume-link__ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--ink); color: var(--yellow); font-family: var(--font-head); font-size: 10px; font-weight: 800; }
.resume-link b { display: block; font-family: var(--font-head); font-size: 14px; color: var(--ink); }
.resume-link small { font-size: 12px; color: var(--muted); }
.resume-link__arrow { margin-left: auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 700; }

/* Roles */
.roles { margin-top: 30px; }
.roles__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.roles__list span { padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255,212,59,.1); border: 1px solid rgba(255,212,59,.35); color: var(--yellow); }

/* Certifications */
.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cert { position: relative; overflow: hidden; padding: 22px; border-radius: var(--radius-lg); min-height: 210px; display: flex; flex-direction: column; transition: transform .3s; }
.cert:hover { transform: translateY(-6px); }
.cert--aws { background: radial-gradient(70% 60% at 100% 0%, rgba(139,92,246,.6), transparent 70%), linear-gradient(150deg, #2a0f63, var(--ink)); color: #fff; }
.cert--yellow { background: var(--yellow); color: var(--ink); }
.cert__logo { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; font-family: var(--font-head); font-weight: 900; font-size: 13px; background: var(--yellow); color: var(--ink); }
.cert--yellow .cert__logo { background: var(--ink); color: var(--yellow); }
.cert h3 { margin-top: auto; padding-top: 22px; font-size: 17px; font-weight: 700; line-height: 1.25; }
.cert p { margin-top: 6px; font-size: 13px; opacity: .8; }
.cert__tag { align-self: flex-start; margin-top: 12px; padding: 4px 10px; border-radius: 99px; font-size: 11px; font-weight: 700; background: rgba(255,255,255,.12); }
.cert--yellow .cert__tag { background: rgba(20,7,46,.1); }
.certs-more { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.certs-more span { padding: 9px 14px; border-radius: 12px; background: var(--lav); font-size: 13px; color: var(--muted); }
.certs-more b { color: var(--ink); margin-right: 4px; }

/* CTA modes */
.cta__modes { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.cta__modes span { padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); }

@media (max-width: 960px) {
  .feature { grid-template-columns: 1fr; }
  .certs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .certs { grid-template-columns: 1fr; }
  .cert { min-height: 170px; }
  .xp__head { flex-direction: column; gap: 6px; }
}

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .pill--float { display: none; }
}
@media (max-width: 960px) {
  .about, .bento, .skills, .steps, .contact { grid-template-columns: 1fr; gap: 32px; }
  .why { grid-template-columns: 1fr; }
  .nav__links {
    position: absolute; top: 58px; left: 0; right: 0;
    flex-direction: column; padding: 10px; border-radius: 18px;
    background: rgba(26, 10, 61, .96);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .25s;
  }
  .nav__links.open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { padding: 12px 16px; }
  .nav__toggle { display: flex; }
  .nav__actions .btn--ghost { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .about__cards { grid-template-columns: 1fr; }
  .photo-card { min-height: 260px; }
  .bento__grid { grid-template-columns: 1fr; }
  .tile--yellow { grid-row: auto; }
  .tile--portrait { grid-column: auto; grid-row: auto; min-height: 340px; }
  .contact__grid { grid-template-columns: 1fr; }
  .panel__head .eyebrow { display: none; }
  .hero__inner { padding: 64px 0 56px; }
  .step__tag { display: none; }
  .pcard { flex-basis: 82%; }
  .nav__actions .btn--yellow { padding: 10px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
.pcard__link { justify-content: flex-start; }
.pcard__link b { margin-left: auto; }

/* ============ Theme toggle ============ */
.theme-toggle {
  position: relative; width: 42px; height: 42px; flex: none; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff;
  backdrop-filter: blur(6px); transition: background .2s, transform .2s;
}
.theme-toggle:hover { background: rgba(255,255,255,.16); transform: rotate(-12deg); }
.theme-toggle svg { position: absolute; width: 19px; height: 19px; transition: transform .45s cubic-bezier(.4,1.6,.5,1), opacity .3s; }
/* Shows the mode you'll switch TO: moon in light mode, sun in dark mode */
.theme-toggle .ico-moon { color: #e9e3ff; }
.theme-toggle .ico-sun { opacity: 0; transform: rotate(90deg) scale(.4); color: var(--yellow); }
[data-theme="dark"] .theme-toggle .ico-moon { opacity: 0; transform: rotate(-90deg) scale(.4); }
[data-theme="dark"] .theme-toggle .ico-sun { opacity: 1; transform: none; }

/* Smooth colour cross-fade only while switching (not on page load) */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color .4s ease, color .4s ease, border-color .4s ease, box-shadow .4s ease !important;
}

/* ============ Dark theme ============ */
[data-theme="dark"] {
  color-scheme: dark;
  --lav: #0c0619;          /* page / section background */
  --violet-soft: #241848;  /* soft chips & controls */
  --line: rgba(196, 181, 253, .14);
  --text: #e9e5f7;
  --muted: #a8a0c6;
  --surface: #160e2e;      /* cards & panels */
  --surface-2: #1d1339;
}
[data-theme="dark"] body { background: var(--lav); color: var(--text); }
[data-theme="dark"] .section--white { background: #100923; }
[data-theme="dark"] .section--dark { background: radial-gradient(50% 60% at 0% 40%, rgba(107,46,230,.28), transparent 70%), #08040f; }
[data-theme="dark"] .section--glow { background: radial-gradient(45% 35% at 50% 70%, rgba(139,92,246,.35), transparent 70%), #08040f; }

/* Surfaces */
[data-theme="dark"] .panel,
[data-theme="dark"] .xp__card,
[data-theme="dark"] .resume-link,
[data-theme="dark"] .modal__dialog {
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 24px 60px -30px rgba(0,0,0,.8);
}
[data-theme="dark"] .pcard { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border-color: var(--line); }
[data-theme="dark"] .status,
[data-theme="dark"] .pcard__ico,
[data-theme="dark"] .filter { background: var(--surface-2); border-color: var(--line); color: var(--text); }
[data-theme="dark"] .filter.active { background: var(--yellow); border-color: var(--yellow); color: #14072e; }
[data-theme="dark"] .pcard__ico { color: #c4b5fd; }
[data-theme="dark"] .pcard--doc .pcard__ico { color: #14072e; background: var(--yellow); }
[data-theme="dark"] .earlier__list span,
[data-theme="dark"] .certs-more span,
[data-theme="dark"] .modal__stack { background: var(--surface-2); color: var(--text); }

/* Headings & text that used the dark ink colour */
[data-theme="dark"] .h2,
[data-theme="dark"] .pcard h3,
[data-theme="dark"] .xp__head h3,
[data-theme="dark"] .resume-link b,
[data-theme="dark"] .certs-more b,
[data-theme="dark"] .earlier__list span,
[data-theme="dark"] .counter b,
[data-theme="dark"] .modal h3,
[data-theme="dark"] .ticks li,
[data-theme="dark"] .modal__points li,
[data-theme="dark"] .muted strong,
[data-theme="dark"] .about__text strong { color: #fff; }
[data-theme="dark"] mark { color: #14072e; }
[data-theme="dark"] .xp__meta { color: #c4b5fd; }

/* Chips & small controls */
[data-theme="dark"] .chip { background: #2a1c55; box-shadow: inset 0 0 0 1px var(--line); }
[data-theme="dark"] .chip--soft { background: rgba(255,212,59,.14); color: var(--yellow); box-shadow: none; }
[data-theme="dark"] .mini-chip,
[data-theme="dark"] .nav-btn--light,
[data-theme="dark"] .modal__close { background: var(--violet-soft); color: var(--text); }
[data-theme="dark"] .mini-chip:hover,
[data-theme="dark"] .modal__close:hover { background: var(--yellow); color: #14072e; }
[data-theme="dark"] .step__tag { background: rgba(196,181,253,.14); color: #c4b5fd; }
[data-theme="dark"] .xp__item--final .step__tag { background: var(--yellow); color: #14072e; }
[data-theme="dark"] .xp__item--final .xp__card { background: linear-gradient(135deg, #3b1d8a, #1d1339); }

/* Buttons that relied on dark-on-light */
[data-theme="dark"] .btn--dark { background: var(--purple); }
[data-theme="dark"] .btn--dark:hover { background: var(--purple-2); }
[data-theme="dark"] .btn--line { color: var(--text); border-color: rgba(233,229,247,.5); }
[data-theme="dark"] .circle-btn { border-color: rgba(233,229,247,.5); color: var(--text); }
[data-theme="dark"] .circle-btn:hover { background: var(--yellow); color: #14072e; border-color: var(--yellow); }
[data-theme="dark"] .resume-link__ico { background: #2a1c55; }
[data-theme="dark"] .ccard--yellow .btn--dark { background: #14072e; }
[data-theme="dark"] .ccard--yellow .btn--line { color: #14072e; border-color: #14072e; }

/* Footer & misc */
[data-theme="dark"] .footer { background: #08040f; border-top: 1px solid var(--line); }
[data-theme="dark"] .earlier { border-top-color: var(--line); }
[data-theme="dark"] .toast { background: var(--surface-2); box-shadow: 0 0 0 1px var(--line); }

/* ============ Language switcher ============ */
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff;
  font-family: var(--font-head); font-size: 13px; font-weight: 700; backdrop-filter: blur(6px); transition: background .2s;
}
.lang__btn:hover, .lang.open .lang__btn { background: rgba(255,255,255,.16); }
.lang__btn svg { width: 17px; height: 17px; }
.lang__menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; min-width: 190px; padding: 6px;
  background: #fff; border-radius: 16px; box-shadow: 0 24px 60px -20px rgba(20,7,46,.55), 0 0 0 1px rgba(20,7,46,.06);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.lang.open .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__menu button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ink);
  font-size: 15px; font-weight: 600; text-align: start;
}
.lang__menu button[lang="ar"] span { font-family: "IBM Plex Sans Arabic", sans-serif; }
.lang__menu button[lang="ur"] span { font-family: "Noto Nastaliq Urdu", serif; font-size: 14px; line-height: 2; }
.lang__menu button small { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.lang__menu button:hover { background: var(--violet-soft); }
.lang__menu button[aria-checked="true"] { background: var(--ink); color: #fff; }
.lang__menu button[aria-checked="true"] small { color: var(--yellow); }
[data-theme="dark"] .lang__menu { background: var(--surface-2); box-shadow: 0 24px 60px -20px rgba(0,0,0,.8), 0 0 0 1px var(--line); }
[data-theme="dark"] .lang__menu button { color: var(--text); }
[data-theme="dark"] .lang__menu button[aria-checked="true"] { background: var(--yellow); color: #14072e; }
[data-theme="dark"] .lang__menu button[aria-checked="true"] small { color: #14072e; }
@media (max-width: 640px) { .lang__btn { padding: 0 10px; } .lang__btn span { display: none; } .lang__btn { width: 42px; justify-content: center; } }

/* ============ Arabic & Urdu typography ============ */
html[lang="ar"] { --font-head: "IBM Plex Sans Arabic", "Lexend", sans-serif; --font-body: "IBM Plex Sans Arabic", "DM Sans", sans-serif; }
html[lang="ur"] { --font-head: "Noto Naskh Arabic", "Lexend", serif; --font-body: "Noto Nastaliq Urdu", "Noto Naskh Arabic", serif; }
[dir="rtl"] *, [dir="rtl"] *::before, [dir="rtl"] *::after { letter-spacing: 0 !important; }
[dir="rtl"] .hero__title { line-height: 1.25; font-weight: 700; }
[dir="rtl"] .hero__title-2 { font-size: .7em; }
[dir="rtl"] .h2, [dir="rtl"] .cta h2, [dir="rtl"] .feature h2 { line-height: 1.35; }
html[lang="ur"] body { line-height: 1.9; }
html[lang="ur"] .muted, html[lang="ur"] .hero__lead, html[lang="ur"] .feature__lead { line-height: 2.1; }
html[lang="ur"] .pcard p, html[lang="ur"] .xp__card ul, html[lang="ur"] .why__card p { line-height: 2; }
html[lang="ur"] .band__track { font-size: clamp(30px, 5vw, 60px); }

/* ============ Right-to-left layout ============ */
/* Marquees and the project carousel keep LTR motion; their content reads RTL */
[dir="rtl"] .ticker__track, [dir="rtl"] .band__track, [dir="rtl"] .carousel { direction: ltr; }
[dir="rtl"] .ticker__track span, [dir="rtl"] .band__track span { unicode-bidi: plaintext; }
[dir="rtl"] .pcard { direction: rtl; }
[dir="rtl"] .feature__viz { direction: ltr; }
/* Mirror directional arrows */
[dir="rtl"] .arrow, [dir="rtl"] .tag-btn b, [dir="rtl"] .circle-btn { transform: scaleX(-1); }
/* Bulleted lists with custom markers */
[dir="rtl"] .ticks li, [dir="rtl"] .feature__list li, [dir="rtl"] .modal__points li { padding-left: 0; padding-right: 28px; }
[dir="rtl"] .ticks li::before, [dir="rtl"] .modal__points li::before { left: auto; right: 0; }
[dir="rtl"] .feature__list li::before { left: auto; right: 4px; }
/* Asymmetric paddings and positions */
[dir="rtl"] .chip { padding: 6px 6px 6px 12px; }
[dir="rtl"] .chip--soft { padding: 6px 12px; }
[dir="rtl"] .tag-btn { padding: 8px 14px 8px 8px; }
[dir="rtl"] .photo-card__num { left: auto; right: 14px; }
[dir="rtl"] .pcard__ico, [dir="rtl"] .resume-link__arrow { margin-left: 0; margin-right: auto; }
[dir="rtl"] .earlier__list em { margin-left: 0; margin-right: 6px; }
[dir="rtl"] .xp::before { left: auto; right: 20px; }
[dir="rtl"] .modal__close { right: auto; left: 16px; }
[dir="rtl"] .modal h3 { padding-right: 0; padding-left: 40px; }
[dir="rtl"] .lang__menu { right: auto; left: 0; }
[dir="rtl"] .skill-row:hover, [dir="rtl"] .xp__card:hover, [dir="rtl"] .resume-link:hover { transform: translateX(-4px); }
[dir="rtl"] .contact, [dir="rtl"] .about, [dir="rtl"] .bento, [dir="rtl"] .skills, [dir="rtl"] .steps { text-align: right; }
/* Keep email, numbers and code-ish strings left-to-right */
[dir="rtl"] .ccard__email, [dir="rtl"] .pcard__date, [dir="rtl"] .stack, [dir="rtl"] .counter { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .ccard__email { text-align: right; }

/* Small phones: keep the nav on one line (Contact stays in the menu and the hero CTA) */
@media (max-width: 480px) {
  .nav__actions { gap: 8px; }
  .nav__actions .btn--yellow { display: none; }
  .brand { gap: 10px; }
}

/* Collapse the nav into the menu below 1180px (6 links + 4 controls need the full width) */
@media (max-width: 1180px) {
  .nav__links {
    position: absolute; top: 58px; left: 0; right: 0;
    flex-direction: column; padding: 10px; border-radius: 18px;
    background: rgba(26, 10, 61, .96);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .25s;
  }
  .nav__links.open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { padding: 12px 16px; }
  .nav__toggle { display: flex; }
}

/* =====================================================================
   Reference alignment (bootcamps.techdestination.com design language)
   ===================================================================== */

/* ---- Typography ---- */
.h2 { font-family: var(--font-head); font-weight: 800; font-size: clamp(34px, 3.6vw, 50px); line-height: 1.07; letter-spacing: -.02em; }
.h2--xl { font-size: clamp(38px, 4.4vw, 60px); }
.muted { color: var(--muted); font-size: 17px; line-height: 1.65; }
mark {
  padding: 0 .14em; border-radius: .24em; color: var(--ink);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 0 / 100% 100%;
  transition: background-size 1s cubic-bezier(.6, 0, .2, 1) .35s;
}
.reveal:not(.in) mark { background-size: 0% 100%; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--purple); }
.eyebrow--light { color: #c4a1ff; }

/* ---- Section tags (numbered) & kicker ---- */
.chip { padding: 4px 14px 4px 4px; font-family: var(--font-body); font-size: 12.5px; font-weight: 600; background: var(--ink); }
.chip__ico { width: 24px; height: 24px; font-size: 11px; font-weight: 800; font-family: var(--font-body); }
.chip--soft { padding: 3px 16px 3px 3px; background: #fef9c3; border: 1px solid rgba(234, 179, 8, .45); color: var(--ink); font-weight: 600; gap: 12px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.kicker svg { width: 12px; height: 12px; stroke-width: 2.6; }

/* ---- Buttons with a circular arrow (.ci) ---- */
.btn { font-family: var(--font-body); font-weight: 700; }
.btn--ci { gap: 12px; padding: 0 5px 0 20px; height: 48px; }
.btn--sm.btn--ci { height: 46px; font-size: 15px; }
.ci { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--yellow); transition: transform .3s; flex: none; }
.ci svg { width: 18px; height: 18px; stroke-width: 2.4; }
.ci--y { background: var(--yellow); color: var(--ink); }
.btn--ci:hover .ci, .hero-cta:hover .ci { transform: rotate(-45deg); }
.btn--yellow:hover { background: var(--yellow); box-shadow: 0 14px 40px -10px rgba(253, 224, 71, .65); }
.hero-cta {
  height: 56px; gap: 14px; padding: 0 6px 0 26px; font-family: var(--font-head); font-weight: 800; font-size: 18px; letter-spacing: -.01em;
  animation: ctaPulse 2.4s ease-out infinite;
}
.hero-cta .ci { width: 44px; height: 44px; }
@keyframes ctaPulse {
  0% { box-shadow: 0 0 0 0 rgba(253,224,71,.55), 0 22px 50px -14px rgba(253,224,71,.65); }
  70% { box-shadow: 0 0 0 20px rgba(253,224,71,0), 0 22px 50px -14px rgba(253,224,71,.65); }
  100% { box-shadow: 0 0 0 0 rgba(253,224,71,0), 0 22px 50px -14px rgba(253,224,71,.65); }
}
.btn--ghost { height: 56px; padding: 0 26px; background: transparent; border: 1px solid rgba(255,255,255,.3); }
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }
.nav__actions .btn--ghost { height: 46px; padding: 0 18px; }

/* ---- Floating glass header ---- */
.hdr { position: sticky; top: 0; z-index: 50; padding: 14px 0; margin-bottom: -94px; pointer-events: none; }
.nav.hbar {
  position: relative; pointer-events: auto; margin: 0 auto; width: min(1180px, 100% - 32px);
  height: 66px; padding: 0 9px 0 14px; border-radius: 999px;
  background: rgba(30, 16, 72, .5); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 18px 50px -24px rgba(0,0,0,.7); color: #fff;
  transition: background .35s, box-shadow .35s, height .35s;
}
.hdr.scrolled .hbar {
  height: 60px;
  /* Frosted glass: page content stays visible (blurred) behind the bar */
  background: linear-gradient(180deg, rgba(46, 16, 101, .64), rgba(18, 8, 46, .68));
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-color: rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 18px 50px -20px rgba(18,8,46,.55);
}
@media (min-width: 1181px) { .hdr.scrolled .nav__links { background: rgba(255,255,255,.08); } }
.hdr.scrolled .nav__links > a:not(.active) { color: #f3eeff; }
.nav__links { gap: 2px; padding: 5px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.nav__links a { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; color: #d6cef2; font-size: 14.5px; font-weight: 500; }
.nav__links a:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav__links a.active { background: #fff; color: var(--ink); }
.brand__logo { width: 44px; height: 44px; }
.theme-toggle, .lang__btn { height: 46px; }
.theme-toggle { width: 46px; }

/* ---- Hero ---- */
.hero { background: radial-gradient(120% 80% at 50% 0%, #2e1065 0%, #12082e 62%); }
.hero::before { display: none; }
.hero__fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); }
.bl1 { width: 460px; height: 460px; left: -140px; top: -120px; background: rgba(124, 58, 237, .55); animation: d1 16s ease-in-out infinite alternate; }
.bl2 { width: 400px; height: 400px; right: -120px; top: 60px; background: rgba(168, 85, 247, .35); animation: d2 20s ease-in-out infinite alternate; }
.bl3 { width: 320px; height: 320px; left: 42%; bottom: -160px; background: rgba(253, 224, 71, .12); animation: d3 24s ease-in-out infinite alternate; }
@keyframes d1 { to { transform: translate(140px, 90px) scale(1.18); } }
@keyframes d2 { to { transform: translate(-120px, 110px) scale(1.12); } }
@keyframes d3 { to { transform: translate(-90px, -60px) scale(1.2); } }
.ring { position: absolute; left: 50%; top: 44%; border-radius: 50%; }
.ring1 { width: 760px; height: 760px; margin: -380px 0 0 -380px; border: 1px dashed rgba(196,161,255,.18); animation: spin 46s linear infinite; }
.ring2 { width: 1080px; height: 1080px; margin: -540px 0 0 -540px; border: 1px solid rgba(196,161,255,.08); animation: spin 70s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.floor {
  position: absolute; left: -25%; right: -25%; bottom: -10%; height: 50%;
  background-image: linear-gradient(rgba(196,161,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(196,161,255,.14) 1px, transparent 1px);
  background-size: 64px 64px; transform: perspective(520px) rotateX(62deg); transform-origin: bottom;
  -webkit-mask-image: linear-gradient(transparent, #000 70%); mask-image: linear-gradient(transparent, #000 70%);
  animation: gridmove 2.6s linear infinite;
}
@keyframes gridmove { to { background-position: 0 64px; } }
.hero__inner { padding: 150px 0 72px; }
.badge { padding: 7px 14px; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.hero__title { margin-top: clamp(16px, 2.6vh, 26px); font-family: var(--font-head); font-weight: 800; font-size: clamp(50px, min(9vw, 12vh), 128px); line-height: .92; letter-spacing: -.02em; text-shadow: none; }
.hero__title .t1 { position: relative; display: inline-block; }
.hero__title-2 { font-size: .5em; letter-spacing: .01em; margin-top: .18em; background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #fff; }
.live { position: absolute; top: .3em; right: -.16em; width: .08em; height: .08em; min-width: 8px; min-height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 14px 3px rgba(253,224,71,.6); animation: livepulse 2s ease infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(253,224,71,.65); } 70% { box-shadow: 0 0 0 12px rgba(253,224,71,0); } 100% { box-shadow: 0 0 0 0 rgba(253,224,71,0); } }
.hero__sub {
  display: block; margin-top: .3em; padding: 0; background: none; box-shadow: none; transform: none; border-radius: 0;
  font-family: var(--font-head); font-weight: 800; font-size: clamp(28px, min(3.7vw, 5.2vh), 52px); letter-spacing: -.015em; color: #fff;
}
.hero__sub .sw { position: relative; display: inline-block; color: #c4a1ff; }
.swoosh { position: absolute; left: 0; bottom: -.2em; width: 100%; height: .26em; overflow: visible; }
.swoosh path { fill: none; stroke: var(--yellow); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s cubic-bezier(.6,0,.2,1) .95s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero__sub .sp { position: relative; display: inline-block; }
.spark { position: absolute; top: -.36em; right: -.5em; width: .46em; height: .46em; transform-origin: left bottom; animation: spark 2.4s ease-in-out infinite; }
.spark path { fill: none; stroke: var(--yellow); stroke-width: 4; stroke-linecap: round; }
@keyframes spark { 50% { opacity: .45; transform: scale(.85); } }
.hero__lead { margin-top: clamp(18px, 3vh, 28px); max-width: 560px; color: #d6cef2; font-size: clamp(15px, 1.25vw, 17px); }
.hero__lead strong { color: #fff; font-weight: 600; }
.hero__cta { gap: 14px; margin-top: 36px; }
.hero__stats { gap: 10px 36px; font-size: 14px; color: #c8bfea; }
.hero__stats li { position: relative; }
.hero__stats li + li::before { content: ""; position: absolute; left: -20px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--yellow); }
.hero__stats b { font-family: var(--font-head); font-weight: 800; }
/* staggered entrance */
.rise { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.dl1 { animation-delay: .08s; } .dl2 { animation-delay: .18s; } .dl3 { animation-delay: .28s; }
.dl4 { animation-delay: .42s; } .dl5 { animation-delay: .56s; } .dl6 { animation-delay: .7s; }
@keyframes rise { from { opacity: 0; translate: 0 30px; } to { opacity: 1; translate: 0 0; } }
.reveal { transform: none; translate: 0 30px; transition: opacity .85s cubic-bezier(.2,.7,.2,1), translate .85s cubic-bezier(.2,.7,.2,1); }
.reveal.in { translate: 0 0; animation: none; }

/* floating chips with icon badges */
.hchip {
  position: absolute; display: flex; align-items: center; gap: 9px; padding: 7px 16px 7px 7px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 14px; font-weight: 600; color: #fff;
  animation: bob 6s ease-in-out infinite; z-index: 1;
}
.hchip__ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--purple); color: #fff; font-style: normal; }
.hchip__ico svg { width: 16px; height: 16px; }
.hchip--y { border-color: rgba(253,224,71,.4); box-shadow: 0 0 0 4px rgba(253,224,71,.06); }
.hchip--y .hchip__ico { background: var(--yellow); color: var(--ink); }
.hchip.p2 { animation-duration: 7s; animation-delay: -2s; } .hchip.p3 { animation-duration: 8s; animation-delay: -4s; }
.hchip.p4 { animation-duration: 6.5s; animation-delay: -1s; } .hchip.p5 { animation-duration: 7.5s; animation-delay: -3s; }
.hchip.p6 { animation-duration: 8.5s; animation-delay: -5s; }
@keyframes bob { 50% { transform: translateY(-16px); } }
.hchip.p1 { top: 140px; left: 3%; } .hchip.p2 { top: 285px; left: 0; } .hchip.p3 { top: 430px; left: 5%; }
.hchip.p4 { top: 150px; right: 3%; left: auto; } .hchip.p5 { top: 295px; right: 0; left: auto; } .hchip.p6 { top: 440px; right: 5%; left: auto; }
@media (max-width: 1100px) { .hchip { display: none; } }

/* ---- Panels & about cards ---- */
.panel { border-radius: 32px; padding: clamp(22px, 4vw, 48px); box-shadow: var(--shadow); }
.panel__head { margin-bottom: 32px; }
.photo-card { border-radius: 26px; min-height: 400px; }
.photo-card__num { width: 34px; height: 34px; top: 14px; left: 14px; font-size: 14px; }
.photo-card__body h3 { font-family: var(--font-head); font-size: 27px; line-height: 1; font-weight: 700; }
.photo-card__body p { font-size: 14px; color: #e4dcff; margin-top: 10px; }
.tag-btn { margin-top: 16px; padding: 6px 6px 6px 14px; font-size: 13px; }
.tag-btn b { width: 24px; height: 24px; }
.circle-btn { width: 64px; height: 64px; border: 1.5px solid var(--ink); transition: background .3s, transform .3s; }
.circle-btn svg { width: 22px; height: 22px; stroke-width: 2.2; transform: rotate(-45deg); }
.circle-btn:hover { background: var(--yellow); color: var(--ink); transform: rotate(45deg); }

/* ---- Bento stats & photo notch ---- */
.tile { border-radius: 26px; padding: 26px; }
.tile__num { font-size: clamp(64px, 6vw, 88px); line-height: .85; letter-spacing: -.03em; }
.tile h4 { font-family: var(--font-head); font-size: 20px; margin-top: 12px; }
.tile--portrait { min-height: 420px; }
.portrait img { transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.tile--portrait:hover .portrait img { transform: scale(1.05); }
.notch {
  position: absolute; top: -1px; right: -1px; width: 87px; height: 87px; z-index: 3;
  background: var(--notch-bg, #fff); border-bottom-left-radius: 30px; display: grid; place-items: center;
}
.notch::before, .notch::after { content: ""; position: absolute; width: 30px; height: 30px; background: radial-gradient(circle at 0 100%, transparent 29.5px, var(--notch-bg, #fff) 30px); }
.notch::before { top: 0; left: -30px; }
.notch::after { bottom: -30px; right: 0; }
.notch a { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; border: 1.5px solid var(--ink); color: var(--ink); transition: background .3s, transform .3s; }
.notch a svg { width: 22px; height: 22px; stroke-width: 2.2; transform: rotate(-45deg); }
.notch a:hover { background: var(--yellow); transform: rotate(-90deg); }

/* ---- Project cards (reference .prog) ---- */
.carousel { gap: 20px; padding-top: 10px; padding-bottom: 26px; }
.pcard { flex: 0 0 clamp(292px, 26vw, 340px); border: 0; border-radius: 32px; background: var(--violet-soft); transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s; }
.pcard:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -30px rgba(46,16,101,.45); }
.pcard__top { padding: 22px 22px 0; gap: 6px; }
.status { height: 30px; padding: 0 12px; border: 0; background: #fff; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.status .dot--green { width: 7px; height: 7px; box-shadow: 0 0 0 3px rgba(22,163,74,.18); }
.pcard__ico { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 18px; }
.pcard--doc .pcard__ico { background: var(--yellow); color: var(--ink); }
.pcard h3 { padding: 26px 22px 0; font-family: var(--font-head); font-size: 30px; line-height: .98; font-weight: 700; letter-spacing: -.02em; min-height: 2.1em; }
.pcard p { padding: 0; margin: 14px 22px 24px; font-size: 14.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__foot { margin: 0 8px 8px; border-radius: 26px; min-height: 170px; padding: 16px; isolation: isolate; }
.pcard__foot::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(120% 90% at 100% 100%, #000, transparent 70%); mask-image: radial-gradient(120% 90% at 100% 100%, #000, transparent 70%); }
.pcard__foot::after { left: -40px; top: -50px; right: auto; width: 150px; height: 150px; border: 0; box-shadow: none; background: radial-gradient(circle, rgba(253,224,71,.4), transparent 70%); filter: blur(6px); z-index: -1; }
.pcard:nth-child(4n+1) .pcard__foot { background: linear-gradient(145deg, #7c3aed, #2e1065); }
.pcard:nth-child(4n+2) .pcard__foot { background: linear-gradient(145deg, #a855f7, #4c1d95); }
.pcard:nth-child(4n+3) .pcard__foot { background: linear-gradient(145deg, #4c1d95, #12082e); }
.pcard:nth-child(4n+4) .pcard__foot { background: linear-gradient(145deg, #6d28d9, #1e1b4b); }
.pcard__date { height: auto; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(8px); font-size: 12px; }
.act { height: 46px; font-family: var(--font-body); font-size: 14px; font-weight: 600; }
.act:not(.act--off) { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(10px); }
.act:not(.act--off):hover { background: #fff; color: var(--ink); }
.nav-btn { width: 52px; height: 52px; }
.nav-btn:hover { background: var(--purple); }
.pbar { height: 4px; margin: 6px 0 0; border-radius: 4px; background: #ede7fb; overflow: hidden; }
.pbar span { display: block; height: 100%; width: 30%; border-radius: 4px; background: linear-gradient(90deg, #6d28d9, #a855f7); transition: width .2s linear, margin-left .2s linear; }
.filter { height: 40px; padding: 0 16px; font-family: var(--font-body); font-size: 14px; }

/* ---- Experience timeline: sticky intro + scroll-filled line ---- */
.steps { align-items: start; gap: 72px; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
@media (min-width: 961px) { .steps__text { position: sticky; top: 120px; } }
.xp::before { width: 3px; border-radius: 3px; background: #e2d9fb; left: 20px; }
.xp::after { content: ""; position: absolute; left: 20px; top: 24px; bottom: 24px; width: 3px; border-radius: 3px; background: linear-gradient(#6d28d9, #a855f7 70%, #fde047); transform-origin: top; transform: scaleY(var(--fill, 0)); transition: transform .15s linear; }
.xp__item { position: relative; z-index: 1; }
.xp__card { border: 1px solid var(--line); border-radius: 18px; box-shadow: none; transition: transform .3s, border-color .3s; }
.xp__card:hover { transform: translateX(6px); border-color: var(--purple-2); }
.xp__head h3 { font-family: var(--font-head); font-size: 20px; }
.step__n { font-family: var(--font-head); font-weight: 800; }
.step__tag { font-size: 11px; letter-spacing: .08em; padding: 6px 10px; background: #f1eaff; color: var(--purple); }
.resume-link { border-radius: 18px; border: 1px solid var(--line); box-shadow: none; }
.resume-link b { font-family: var(--font-body); font-weight: 700; }

/* ---- Skills (dark) ---- */
.skills__text .h2 { font-size: clamp(40px, 5vw, 68px); line-height: .98; }
.skill-row { border-radius: 18px; }
.skill-row h4 { font-family: var(--font-head); font-size: 19px; }

/* ---- Why + CTA ---- */
.why__card { padding: 36px 32px; border-radius: 24px; background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
.why__card:hover { border-color: rgba(196,161,255,.55); background: rgba(255,255,255,.07); }
.why__ico { width: 60px; height: 60px; border-radius: 18px; background: linear-gradient(140deg, #a855f7, #6d28d9); font-size: 26px; }
.why__num { font-family: var(--font-head); font-style: normal; font-weight: 800; font-size: 44px; color: transparent; -webkit-text-stroke: 1.2px rgba(196,161,255,.55); }
.why__card h4 { margin-top: 32px; font-family: var(--font-head); font-size: 28px; line-height: 1.1; }
.why__card p { font-size: 15px; color: #c8bfea; }
.section--glow .h2 { font-size: clamp(36px, 4.4vw, 58px); line-height: 1; }
.cta { position: relative; overflow: hidden; isolation: isolate; border-radius: 36px; padding: clamp(48px, 7vw, 96px) clamp(24px, 6vw, 80px); background: linear-gradient(135deg, #7e22ce 0%, #6d28d9 40%, #4c1d95 100%); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); }
.cta::after { content: ""; position: absolute; top: 50%; left: 50%; width: 160%; height: 260%; z-index: -2; background: conic-gradient(from 0deg, transparent 0deg, rgba(253,224,71,.22) 50deg, transparent 110deg, transparent 200deg, rgba(196,161,255,.3) 250deg, transparent 310deg); transform: translate(-50%, -50%); animation: glowspin 14s linear infinite; }
@keyframes glowspin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.cta h2 { max-width: 900px; margin: 0 auto; font-family: var(--font-head); font-weight: 800; font-size: clamp(40px, 6vw, 80px); line-height: .96; letter-spacing: -.025em; }
.cta p { font-size: 18px; color: #ede6ff; margin-top: 24px; }
.cta__btns { margin-top: 40px; gap: 14px; }

/* ---- Contact bento ---- */
.ccard { border-radius: 26px; padding: 28px; min-height: 250px; gap: 18px; isolation: isolate; }
.ccard h3 { font-family: var(--font-head); font-weight: 700; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.05; }
.ccard__label { font-size: 12.5px; letter-spacing: .14em; gap: 12px; }
.ccard__ico { width: 46px; height: 46px; border-radius: 14px; font-size: 18px; }
.ccard--dark { background: var(--ink); }
.ccard--purple { background: linear-gradient(115deg, #7c3aed 0%, #5b21b6 55%, #3b0f80 100%); }
.ccard__at { font-family: var(--font-head); font-size: 180px; color: rgba(26,11,61,.07); z-index: -1; }
.ccard__email { margin-top: auto; align-self: flex-start; font-family: var(--font-head); font-weight: 800; font-size: clamp(20px, 1.6vw, 25px) !important; line-height: 1.1; color: var(--ink); padding-bottom: 3px; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0% 2px no-repeat; transition: background-size .4s; }
.ccard__email:hover { background-size: 100% 2px; }
.radar { position: absolute; right: -92px; bottom: -92px; width: 200px; height: 200px; z-index: -1; pointer-events: none; }
.radar span { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(196,161,255,.55); animation: radarping 3.6s cubic-bezier(.2,.6,.3,1) infinite; }
.radar span:nth-child(2) { animation-delay: 1.2s; }
.radar span:nth-child(3) { animation-delay: 2.4s; }
.radar i { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 22px 6px rgba(253,224,71,.5); }
@keyframes radarping { from { transform: scale(.15); opacity: .9; } to { transform: scale(1); opacity: 0; } }
.ccard--dark::after { display: none; }
.mini-chip { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; background: var(--violet-soft); color: var(--ink-2); font-size: 14px; }

/* ---- Footer ---- */
.footer { background: #0c0520; padding: 44px 0 0; }
.footer__inner { gap: 28px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; }
.footer__nav a { color: #c8bfea; transition: color .2s; }
.footer__nav a:hover { color: var(--yellow); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 32px; padding: 20px 0 26px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: #a99dd0; }
.footer__bottom a:hover { color: var(--yellow); }

/* ---- Responsive for new layouts ---- */
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .hdr { margin-bottom: -88px; }
}
@media (max-width: 640px) {
  .hero__inner { padding: 130px 0 56px; }
  .hero__stats li + li::before { display: none; }
  .pcard { flex-basis: 84%; }
  .notch { width: 76px; height: 76px; }
  .notch a { width: 54px; height: 54px; }
  .hero-cta { height: 52px; font-size: 16px; }
  .btn--ghost { height: 52px; }
  .nav.hbar { height: 60px; padding: 0 7px 0 10px; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .swoosh path { stroke-dashoffset: 0; }
  mark { background-size: 100% 100% !important; }
  .reveal { translate: none; }
}

/* ---- Dark theme for the new components ---- */
[data-theme="dark"] { --notch-bg: var(--surface); }
[data-theme="dark"] .pcard { background: var(--surface-2); }
[data-theme="dark"] .status { background: var(--surface); color: var(--text); }
[data-theme="dark"] .pcard__ico { background: #2a1c55; color: #c4b5fd; }
[data-theme="dark"] .pbar { background: rgba(196,181,253,.14); }
[data-theme="dark"] .kicker { color: var(--muted); }
[data-theme="dark"] .xp::before { background: rgba(196,181,253,.18); }
[data-theme="dark"] .xp__card { border-color: var(--line); }
[data-theme="dark"] .resume-link { border-color: var(--line); }
[data-theme="dark"] .notch a { border-color: rgba(233,229,247,.6); color: var(--text); }
[data-theme="dark"] .notch a:hover { color: var(--ink); }
[data-theme="dark"] .chip--soft { background: rgba(253,224,71,.12); border-color: rgba(253,224,71,.35); color: var(--yellow); }
[data-theme="dark"] .mini-chip { background: var(--violet-soft); color: var(--text); }
[data-theme="dark"] .eyebrow:not(.eyebrow--light) { color: #c4a1ff; }
[data-theme="dark"] .ccard__email { color: var(--ink); }

/* Mobile menu sits below the floating bar */
@media (max-width: 1180px) { .nav__links { top: calc(100% + 10px); background: rgba(18, 8, 46, .96); border-color: rgba(255,255,255,.12); backdrop-filter: blur(18px); } .nav__links a { height: 46px; } }

/* Footer contact icons */
.footer__social { display: flex; gap: 10px; }
.social {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #e9e3ff;
  transition: transform .25s, background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.social svg { width: 20px; height: 20px; }
.social svg.fill { fill: currentColor; stroke: none; }
.social:hover { transform: translateY(-3px); }
.social:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.social--mail:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(253,224,71,.7); }
.social--wa:hover { background: #25d366; border-color: #25d366; color: #fff; box-shadow: 0 10px 24px -10px rgba(37,211,102,.7); }
.social--in:hover { background: #0a66c2; border-color: #0a66c2; color: #fff; box-shadow: 0 10px 24px -10px rgba(10,102,194,.7); }

/* Balanced footer: brand | links | contact icons + back to top */
.footer__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.footer__inner > .brand { justify-self: start; }
.footer__nav { justify-self: center; justify-content: center; }
.footer__end { justify-self: end; display: flex; align-items: center; gap: 10px; }
.footer__end .nav-btn { margin-left: 8px; }
.footer__bottom { justify-content: center; text-align: center; }
@media (max-width: 900px) {
  .footer__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 22px; }
  .footer__inner > .brand, .footer__nav, .footer__end { justify-self: center; }
}

/* =====================================================================
   Mobile polish (audit at 360–414px)
   ===================================================================== */

/* All sizes: the photo card must stay edge-to-edge (a later .tile rule added padding) */
.tile.tile--portrait { padding: 0; }
/* All sizes: clamped project text must not stretch (it leaked extra lines) */
.pcard p { flex: none; }
.pcard__foot { margin-top: auto; }

@media (max-width: 640px) {
  /* --- Type scale: one consistent size for section titles --- */
  .h2, .h2--xl, .skills__text .h2, .section--glow .h2 { font-size: 34px; line-height: 1.08; }
  .cta h2 { font-size: 36px; line-height: 1.02; }
  .feature h2 { font-size: 44px; }
  .muted { font-size: 16px; }

  /* --- Section heads: keep the numbered chip on one line --- */
  .panel { padding: 24px 20px; }
  .panel__head { margin-bottom: 22px; }
  .panel__head .kicker { display: none; }
  .chip { white-space: nowrap; }

  /* --- Hero stats: tidy 2 x 2 grid instead of ragged wrapping --- */
  .hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 360px; margin: 32px auto 0; }
  .hero__stats li { padding: 10px 8px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); font-size: 13px; line-height: 1.3; }
  .hero__stats li + li::before { display: none; }

  /* --- About service cards: compact (icon top-right, text below) --- */
  .about__cards { gap: 12px; }
  .photo-card { min-height: 0; }
  .photo-card__art { inset: 16px 16px auto auto; width: 56px; height: 56px; border-radius: 16px; font-size: 28px; background: rgba(255,255,255,.08); }
  .photo-card__art::before { width: 70px; height: 70px; }
  .photo-card__body { padding: 76px 18px 18px; background: none; }
  .photo-card__body h3 { font-size: 24px; }
  .tag-btn { height: 44px; }
  .circle-btn { margin-top: 24px; width: 56px; height: 56px; }

  /* --- Bento: the two stat tiles side by side, photo full width --- */
  .bento__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { min-height: 0; padding: 18px 16px; }
  .tile__num { font-size: 54px; }
  .tile__plus { font-size: 26px; }
  .tile h4 { font-size: 17px; margin-top: 8px; }
  .tile p { font-size: 12.5px; margin-top: 8px; line-height: 1.45; }
  .tile--yellow { grid-row: auto; }
  .tile--portrait { grid-column: 1 / -1; grid-row: auto; min-height: 360px; }

  /* --- Featured project: equal full-width buttons --- */
  .feature { padding: 26px 20px; gap: 28px; }
  .feature__btns .btn { width: 100%; justify-content: center; }

  /* --- Projects: one swipeable filter row, no wrapping pills --- */
  .carousel-head { margin-bottom: 22px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: -8px -16px 18px; padding: 0 16px 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .status { white-space: nowrap; }
  .pcard h3 { font-size: 27px; padding-top: 22px; }

  /* --- Earlier work: label on top, chips full width --- */
  .earlier { flex-direction: column; align-items: flex-start; gap: 12px; }
  .earlier__list span { white-space: nowrap; }

  /* --- Certifications: two per row --- */
  .certs { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cert { min-height: 0; padding: 16px; border-radius: 20px; }
  .cert__logo { width: 38px; height: 38px; font-size: 11px; border-radius: 10px; }
  .cert h3 { font-size: 15px; padding-top: 14px; }
  .cert p { font-size: 12px; }
  .cert__tag { font-size: 10.5px; }

  /* --- Why hire me: lighter cards --- */
  .why { gap: 12px; }
  .why__card { padding: 24px 22px; }
  .why__top { margin-bottom: 0; }
  .why__ico { width: 52px; height: 52px; border-radius: 16px; }
  .why__num { font-size: 38px; }
  .why__card h4 { margin-top: 18px; font-size: 24px; }

  /* --- Contact: no empty card space, buttons on one row, 44px targets --- */
  .contact { gap: 24px; }
  .contact__chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 22px; }
  .mini-chip { justify-content: center; height: 44px; padding: 0 6px; font-size: 13px; white-space: nowrap; }
  .ccard { min-height: 0; padding: 22px; }
  .ccard h3 { margin-top: 18px; }
  .ccard__email { margin-top: 2px; padding: 10px 0; }
  .ccard__btns { flex-wrap: nowrap; }
  .ccard__btns .btn { flex: 1; justify-content: center; height: 44px; }

  /* --- Footer: five links on one row, equal-size round buttons --- */
  .footer__nav { gap: 4px 18px; }
  .footer__nav a { padding: 10px 0; }
  .footer__end .nav-btn { width: 46px; height: 46px; }
}

/* Very narrow phones (≤ 360px) */
@media (max-width: 360px) {
  .hero__title { font-size: 46px; }
  .tile__num { font-size: 46px; }
  .mini-chip { font-size: 12px; }
  .footer__nav { gap: 4px 14px; }
}

/* Auto-hiding header: hidden while scrolling down, a faint "glance" while scrolling up */
.hdr { transition: transform .38s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.hdr.hdr--hidden { transform: translateY(calc(-100% - 12px)); }
.hdr.hdr--hidden .hbar { pointer-events: none; }
.hdr.hdr--peek .hbar {
  background: rgba(18, 8, 46, .3);
  border-color: rgba(255,255,255,.1);
  box-shadow: none;
  backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%);
}
.hdr .hbar { transition: background .35s, box-shadow .35s, height .35s, border-color .35s, backdrop-filter .35s; }

/* =====================================================================
   Modern menu: sliding pill (desktop) + expanding panel (≤ 1180px)
   ===================================================================== */
/* a transformed/will-change ancestor would trap the fixed backdrop inside the header */
.hdr { will-change: auto; }
.hdr.menu-open { transform: none; }

/* ---- Desktop: gliding pill behind the hovered / current link ---- */
.nav__links { position: relative; }
.nav__pill {
  position: absolute; top: 5px; left: 0; height: 40px; width: 0; border-radius: 999px;
  background: #fff; opacity: 0; pointer-events: none; z-index: 0;
  box-shadow: 0 6px 18px -8px rgba(0,0,0,.45);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), width .45s cubic-bezier(.2,.8,.2,1), opacity .25s;
}
.nav__links > a { position: relative; z-index: 1; transition: color .3s; }
.menu-extras { display: none; }
@media (min-width: 1181px) {
  .nav__links > a.active, .nav__links > a:hover { background: transparent; }
  .nav__links > a.active { color: #f3eeff; }
  .hdr .nav.hbar .nav__links > a.is-pill { color: var(--ink); }
}

/* ---- ≤ 1180px: expanding menu panel ---- */
.menu-scrim {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: rgba(12, 5, 32, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: opacity .4s ease;
}
.hdr.menu-open .menu-scrim { opacity: 1; pointer-events: auto; }
body.menu-lock { overflow: hidden; }

.nav__toggle { transition: background .3s, border-color .3s, transform .3s; }
.nav__toggle span { transition: transform .45s cubic-bezier(.2,.8,.2,1), background .3s, width .3s; }
.nav__toggle span:last-child { width: 12px; margin-left: 6px; }
.nav__toggle:hover span:last-child { width: 18px; margin-left: 0; }
.nav__toggle[aria-expanded="true"] { background: var(--yellow); border-color: var(--yellow); }
.nav__toggle[aria-expanded="true"] span { background: var(--ink); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { width: 18px; margin-left: 0; transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 1180px) {
  .nav__pill { display: none; }
  .nav__links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    display: flex; flex-direction: column; gap: 2px; padding: 10px;
    border-radius: 26px; background: rgba(18, 8, 46, .94); border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
    box-shadow: 0 30px 80px -30px rgba(0,0,0,.85);
    max-height: calc(100dvh - 120px); overflow-y: auto; overscroll-behavior: contain;
    opacity: 1; transform: none; visibility: hidden;
    clip-path: inset(0 0 100% 0 round 26px);
    transition: clip-path .45s cubic-bezier(.2,.8,.2,1), visibility 0s linear .45s;
    counter-reset: navitem;
  }
  .nav__links.open {
    visibility: visible; clip-path: inset(0 0 0 0 round 26px);
    transition: clip-path .55s cubic-bezier(.2,.8,.2,1), visibility 0s;
  }
  .nav__links > a {
    counter-increment: navitem;
    display: flex; align-items: center; gap: 14px; height: auto; padding: 14px 16px; border-radius: 16px;
    font-family: var(--font-head); font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: #fff;
    opacity: 0; transform: translateY(-12px);
    transition: opacity .3s ease, transform .45s cubic-bezier(.2,.8,.2,1), background .2s, color .2s;
  }
  .nav__links > a::before {
    content: counter(navitem, decimal-leading-zero);
    width: 22px; font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #c4a1ff;
  }
  .nav__links > a::after { content: "→"; margin-left: auto; font-family: var(--font-body); font-size: 18px; color: rgba(255,255,255,.3); transition: transform .25s, color .25s; }
  .nav__links > a:hover, .nav__links > a:focus-visible { background: rgba(255,255,255,.07); }
  .nav__links > a:hover::after, .nav__links > a:focus-visible::after { transform: translateX(4px); color: var(--yellow); }
  .hdr .nav__links > a.active, .hdr.scrolled .nav__links > a.active { background: rgba(255,255,255,.1); color: #fff; }
  .nav__links > a.active::before { color: var(--yellow); }
  .nav__links > a.active::after { color: var(--yellow); }
  .nav__links.open > a { opacity: 1; transform: none; }
  .nav__links.open > a:nth-of-type(1) { transition-delay: .08s; }
  .nav__links.open > a:nth-of-type(2) { transition-delay: .12s; }
  .nav__links.open > a:nth-of-type(3) { transition-delay: .16s; }
  .nav__links.open > a:nth-of-type(4) { transition-delay: .2s; }
  .nav__links.open > a:nth-of-type(5) { transition-delay: .24s; }
  .nav__links.open > a:nth-of-type(6) { transition-delay: .28s; }

  .menu-extras {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: 8px; padding: 16px 6px 6px; border-top: 1px solid rgba(255,255,255,.1);
    opacity: 0; transform: translateY(-8px); transition: opacity .3s ease, transform .45s cubic-bezier(.2,.8,.2,1);
  }
  .nav__links.open .menu-extras { opacity: 1; transform: none; transition-delay: .32s; }
  .menu-extras__btns { display: flex; gap: 8px; }
  .menu-extras .btn--ghost { height: 46px; padding: 0 18px; }
  .menu-social { display: flex; gap: 8px; }
  .menu-social .social { width: 44px; height: 44px; }
}
@media (max-width: 480px) {
  .nav__links > a { font-size: 20px; padding: 12px 14px; }
  .menu-extras { flex-direction: column; align-items: stretch; }
  .menu-extras__btns .btn { flex: 1; justify-content: center; }
  .menu-social { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .nav__links, .nav__links > a, .menu-extras { transition: none !important; }
}

/* Menu panel stays solid even after scrolling (beats the frosted-bar rules) */
@media (max-width: 1180px) { .hdr .nav.hbar .nav__links { background: rgba(18, 8, 46, .96); } }

/* Buttons inside the menu keep their own colours/sizes (generic nav-link rules must not apply) */
.nav__links .menu-extras .btn { height: 46px; font-size: 15px; }
.nav__links .menu-extras .btn--yellow { color: var(--ink); padding: 0 5px 0 20px; }
.nav__links .menu-extras .btn--ghost { color: #fff; padding: 0 18px; }
.nav__links .menu-extras .btn:hover { background-color: inherit; }
.nav__links .menu-extras .btn--yellow:hover { background: var(--yellow); }
.nav__links .menu-extras .btn--ghost:hover { background: rgba(255,255,255,.08); }

/* =====================================================================
   Performance: same look, far cheaper to render
   ===================================================================== */

/* 1. Hero glows: soft radial gradients instead of 90px blur filters (blur on moving
      elements forces an expensive repaint every frame) */
.blob { filter: none; will-change: transform; }
.bl1 { background: radial-gradient(circle at center, rgba(124, 58, 237, .55), rgba(124, 58, 237, 0) 68%); width: 640px; height: 640px; left: -240px; top: -220px; }
.bl2 { background: radial-gradient(circle at center, rgba(168, 85, 247, .38), rgba(168, 85, 247, 0) 68%); width: 560px; height: 560px; right: -200px; top: -20px; }
.bl3 { background: radial-gradient(circle at center, rgba(253, 224, 71, .14), rgba(253, 224, 71, 0) 68%); width: 460px; height: 460px; bottom: -240px; }

/* 2. Rotating rings & marquees run on the compositor */
.ring, .ticker__track, .band__track, .hchip, .cta::after { will-change: transform; }

/* 3. Grid floor: move a transformed layer instead of repainting background-position */
.floor { animation: none; overflow: hidden; background: none; }
.floor::before {
  content: ""; position: absolute; left: 0; right: 0; top: -64px; bottom: 0;
  background-image: linear-gradient(rgba(196,161,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(196,161,255,.14) 1px, transparent 1px);
  background-size: 64px 64px; will-change: transform;
  animation: floormove 2.6s linear infinite;
}
@keyframes floormove { to { transform: translateY(64px); } }

/* 4. CTA pulse: an expanding ring (transform/opacity) instead of an animated box-shadow */
.hero-cta { animation: none; position: relative; box-shadow: 0 22px 50px -14px rgba(253,224,71,.65); }
.hero-cta::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  border: 2px solid rgba(253, 224, 71, .7); will-change: transform, opacity;
  animation: ctaRing 2.4s ease-out infinite;
}
@keyframes ctaRing { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(1.18, 1.5); opacity: 0; } }

/* 5. Fewer stacked backdrop blurs (nested blur inside the blurred header bar is costly;
      on opaque backgrounds it is invisible anyway) */
.hchip, .badge, .lang__btn, .theme-toggle, .btn--ghost, .pcard__date, .act:not(.act--off),
.nav__links, .menu-scrim { backdrop-filter: none; -webkit-backdrop-filter: none; }
.hchip { background: rgba(46, 16, 101, .55); }
.menu-scrim { background: rgba(12, 5, 32, .6); }
@media (max-width: 1180px) { .hdr .nav.hbar .nav__links { background: rgba(18, 8, 46, .98); } }
.hdr.scrolled .hbar { backdrop-filter: blur(16px) saturate(170%); -webkit-backdrop-filter: blur(16px) saturate(170%); }

/* 6. Pause decorative loops while their area is off-screen (toggled from script.js) */
.is-offscreen, .is-offscreen *, .is-offscreen::before, .is-offscreen::after,
.is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }

/* 7. Snappier reveals: content appears sooner and settles faster */
.reveal { translate: 0 18px; transition: opacity .5s cubic-bezier(.2,.7,.2,1), translate .5s cubic-bezier(.2,.7,.2,1); }
mark { transition: background-size .6s cubic-bezier(.6, 0, .2, 1) .1s; }
.rise { animation-duration: .7s; }
.dl1 { animation-delay: .04s; } .dl2 { animation-delay: .1s; } .dl3 { animation-delay: .16s; }
.dl4 { animation-delay: .24s; } .dl5 { animation-delay: .32s; } .dl6 { animation-delay: .4s; }
.swoosh path { animation-delay: .5s; animation-duration: .8s; }

/* 8. No layout jump when the menu locks page scrolling */
html { scrollbar-gutter: stable; }


/* Only League Spartan 700/800 are downloaded now */
.band__track, .hero__title, .why__num, .cta h2, .feature h2, .cert__logo, .ccard__at { font-weight: 800; }

/* Live dot: expanding ring (transform/opacity) instead of an animated box-shadow */
.live { animation: none; box-shadow: 0 0 12px 2px rgba(253,224,71,.55); }
.live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(253,224,71,.55); will-change: transform, opacity; animation: liveRing 2s ease-out infinite; }
@keyframes liveRing { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.viz-card { backdrop-filter: none; -webkit-backdrop-filter: none; }

/* =====================================================================
   Photo card (At a glance): cut-out portrait on a coloured card
   ===================================================================== */
.tile--portrait { background: radial-gradient(120% 70% at 50% 0%, #a78bfa 0%, #7c3aed 38%, #3b1d8a 72%, #1a0b3d 100%); }
.tile--portrait .portrait img { object-fit: cover; object-position: 50% 0%; }
.tile--portrait::before {
  /* soft grid texture behind the portrait, like the project visuals */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(90% 70% at 50% 30%, #000, transparent 75%); mask-image: radial-gradient(90% 70% at 50% 30%, #000, transparent 75%);
}
.tile--portrait .portrait { z-index: 1; }
.tile--portrait .tile__caption { z-index: 2; background: linear-gradient(transparent, rgba(18, 8, 46, .78) 38%, rgba(18, 8, 46, .95)); }
.tile--portrait .notch { z-index: 3; }

/* =====================================================================
   Phone header: logo + name | Contact + menu (language/theme live in the menu)
   ===================================================================== */
.menu-prefs { display: none; }
@media (max-width: 640px) {
  .nav__actions .lang, .nav__actions > .theme-toggle { display: none; }
  .nav__actions { gap: 8px; }
  .nav__actions .btn--yellow { display: inline-flex; height: 42px; padding: 0 4px 0 14px; gap: 8px; font-size: 14px; }
  .nav__actions .btn--yellow .ci { width: 34px; height: 34px; }
  .nav__actions .btn--yellow .ci svg { width: 16px; height: 16px; }
  .nav__toggle { width: 42px; height: 42px; }
  .brand__logo { width: 40px; height: 40px; border-radius: 12px; }
  .brand__logo svg { width: 22px; height: 22px; }
  .brand__text strong { font-size: 15px; }
  .brand__text small { font-size: 9.5px; letter-spacing: .12em; }

  /* settings row inside the menu */
  .menu-prefs { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding-bottom: 12px; margin-bottom: 2px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .seg { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
  .seg__ico { display: grid; place-items: center; width: 34px; height: 34px; color: #c4a1ff; }
  .seg__ico svg { width: 18px; height: 18px; }
  .seg button { height: 34px; min-width: 46px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: #d6cef2; font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .04em; transition: background .2s, color .2s; }
  .seg button[aria-checked="true"] { background: var(--yellow); color: var(--ink); }
  .menu-theme.theme-toggle { width: 44px; height: 44px; }
}
@media (max-width: 340px) {
  /* very narrow phones: Contact as a compact pill without the arrow circle */
  .nav__actions .btn--yellow { padding: 0 14px; }
  .nav__actions .btn--yellow .ci { display: none; }
  .brand__text small { display: none; }
}

/* =====================================================================
   Phones: "zoom out" ~10% so more content fits and reads at a glance
   ===================================================================== */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .section { padding: 54px 0; }
  .muted { font-size: 15px; line-height: 1.6; }
  .h2, .h2--xl, .skills__text .h2, .section--glow .h2 { font-size: 30px; }
  .cta h2 { font-size: 32px; }
  .feature h2 { font-size: 38px; }
  .feature__lead, .feature__list li { font-size: 14.5px; }
  .feature__kicker { font-size: 15px; }

  /* hero */
  .hero__inner { padding: 120px 0 48px; }
  .hero__title { font-size: 44px; }
  .hero__sub { font-size: 26px; }
  .hero__lead { font-size: 14.5px; }
  .hero-cta { height: 50px; font-size: 16px; }
  .hero-cta .ci { width: 40px; height: 40px; }
  .btn--ghost { height: 50px; font-size: 15px; }
  .badge { font-size: 12px; }
  .hero__stats li { font-size: 12.5px; padding: 9px 6px; }

  /* panels & cards */
  .panel { padding: 22px 18px; border-radius: 26px; }
  .photo-card__body h3 { font-size: 21px; }
  .photo-card__body p { font-size: 13px; }
  .tile__num { font-size: 46px; }
  .tile h4 { font-size: 16px; }
  .tile--portrait { min-height: 340px; }
  .pcard h3 { font-size: 24px; }
  .pcard p { font-size: 13.5px; }
  .xp__head h3 { font-size: 17px; }
  .xp__card ul { font-size: 13.5px; }
  .xp__card { padding: 16px; }
  .skill-row { padding: 16px; gap: 14px; }
  .skill-row h4 { font-size: 16px; }
  .skill-row p { font-size: 13px; }
  .why__card h4 { font-size: 21px; }
  .why__card p { font-size: 14px; }
  .cta p { font-size: 15px; }
  .ccard h3 { font-size: 22px; }
  .ccard__email { font-size: 18px !important; }
  .ticks li { font-size: 14px; }
  .resume-link b { font-size: 14px; }

  /* menu */
  .nav__links > a { font-size: 19px; padding: 12px 14px; }
}
@media (max-width: 360px) {
  .hero__title { font-size: 40px; }
  .h2, .h2--xl, .skills__text .h2, .section--glow .h2 { font-size: 28px; }
}

/* Photo card: original white photo background, with a visible frame */
.tile.tile--portrait { background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px -26px rgba(46, 16, 101, .45); }
.tile--portrait::before { display: none; }
.tile--portrait .portrait img { object-fit: cover; object-position: 50% 12%; }
.tile--portrait .notch::before, .tile--portrait .notch::after { filter: none; }
[data-theme="dark"] .tile.tile--portrait { border-color: rgba(196,181,253,.25); }

/* Phones only: headshot framing for the photo card (desktop untouched) */
@media (max-width: 640px) {
  .tile.tile--portrait { min-height: 0; aspect-ratio: 4 / 5; }
  .tile--portrait .portrait img { object-fit: cover; object-position: 50% 0%; transform: translateY(-4%) scale(1.02); transform-origin: 50% 0; }
  .tile--portrait:hover .portrait img { transform: translateY(-4%) scale(1.06); }
  .tile--portrait .tile__caption { padding: 34px 18px 16px; background: linear-gradient(transparent, rgba(18, 8, 46, .82) 45%, rgba(18, 8, 46, .95)); }
  .tile--portrait .tile__caption h4 { font-size: 19px; }
  .tile--portrait .tile__caption p { margin-top: 4px; font-size: 12px; }
}
