/* ==========================================================================
   rakshity.me — homepage rebuild
   Hand-written CSS rebuilt from the live site's own design tokens.
   Palette / geometry are centralized on :root + .dark so everything stays
   editable from one place.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  --bg:        #ffffff;
  --bg-hatch:  #efefef;
  --surface:   #ffffff;
  --surface-2: #fafafa;
  --surface-3: #f4f4f5;

  --ink:         #0a0a0a;
  --ink-contrast:#ffffff;
  --ink-hover:   #262626;

  --mut:   #737373;
  --mut-2: #2f2f34;
  --mut-3: #3d3d42;
  --mut-4: #8a8a92;
  --mut-5: #6b6b72;

  --kbd-ink:      #7a7a82;
  --nav-inactive: #7a7a80;
  --nav-active:   #111111;

  --border:      #e7e7e7;
  --border-2:    #e4e4e7;
  --border-3:    #e0e0e4;
  --border-4:    #e2e2e6;
  --border-hover:#c9c9ce;
  --dock-border: #e6e6e8;
  --grab:        #d9d9de;
  --shot-ph:     #eef1f8;

  --live:  #2da44e;
  --accent:#e21e30;

  /* contribution ramp — GitHub greens */
  --c0: var(--border);
  --c1: #9be9a8;
  --c2: #40c463;
  --c3: #30a14e;
  --c4: #216e39;

  /* type */
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* geometry */
  --col: 860px;
  --pad-x: 26px;

  /* motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --ease-roll: cubic-bezier(.76, 0, .24, 1);
}

html.dark {
  --bg:        #0a0a0a;
  --bg-hatch:  #0a0a0a;
  --surface:   #19191c;
  --surface-2: #1f1f22;
  --surface-3: #27272a;

  --ink:         #f2f2f3;
  --ink-contrast:#0a0a0a;
  --ink-hover:   #d4d4d8;

  --mut:   #a1a1a6;
  --mut-2: #d4d4d8;
  --mut-3: #c4c4c8;
  --mut-4: #8f8f96;
  --mut-5: #9a9aa2;

  --kbd-ink:      #9a9aa2;
  --nav-inactive: #8a8a90;
  --nav-active:   #f2f2f3;

  --border:      #2a2a2e;
  --border-2:    #28282c;
  --border-3:    #28282c;
  --border-4:    #28282c;
  --border-hover:#3c3c42;
  --dock-border: #28282c;
  --grab:        #3a3a3e;
  --shot-ph:     #14161c;

  --c0: #212126;
  --c1: #3f3f46;
  --c2: #71717a;
  --c3: #d4d4d8;
  --c4: #fafafa;
}

/* ---------- 2. Base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  background: #000;
  color: #fafafa;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

.rk {
  min-height: 100vh;
  padding: 28px 12px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  background:
    repeating-linear-gradient(135deg, var(--bg-hatch) 0 1px, transparent 1px 8px),
    var(--bg);
  transition: background .5s, color .5s;
}

.rk-col {
  background: var(--surface);
  border: 1px solid var(--border);
  max-width: var(--col);
  margin: 0 auto;
}

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

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 4px;
}

.mut { color: var(--mut); }

/* section heading */
.sh {
  margin: 0;
  padding: 14px var(--pad-x);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -.01em;
}

/* ---------- 3. Banner + dock -------------------------------------------- */
.banner {
  position: relative;
  height: 230px;
  overflow: hidden;
  background:
    radial-gradient(90% 220% at 12% 130%, rgb(207 99 64 / .40) 0%, transparent 58%),
    radial-gradient(80% 180% at 88% -30%, rgb(255 255 255 / .08) 0%, transparent 60%),
    linear-gradient(148deg, #131315 0%, #1a1a1d 46%, #232327 100%);
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgb(255 255 255 / .17) 1px, transparent 0);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
  opacity: .55;
  pointer-events: none;
}

.banner::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 96px;
  background: linear-gradient(180deg, transparent, rgb(0 0 0 / .16));
  pointer-events: none;
}

.banner-mark {
  position: absolute;
  right: 26px;
  bottom: -46px;
  font-size: 200px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.06em;
  color: rgb(255 255 255 / .055);
  user-select: none;
  pointer-events: none;
}

.banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  filter: grayscale(1) contrast(1.08);
}

.banner-cv {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.dockwrap {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.dock {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  background: var(--surface);
  border: 1px solid var(--dock-border);
  border-radius: 999px;
  box-shadow: 0 12px 34px -14px rgb(0 0 0 / .35), 0 2px 6px rgb(0 0 0 / .05);
}

.dock-row {
  position: relative;
  display: flex;
  border-radius: 999px;
}

.dock-lens {
  position: absolute;
  top: 0; left: 0;
  z-index: 3;
  width: 112px; height: 40px;
  border-radius: 999px;
  pointer-events: none;
  background: linear-gradient(160deg, rgb(255 255 255 / .55) 0%, rgb(236 240 250 / .18) 45%, rgb(255 255 255 / .35) 100%);
  box-shadow:
    inset 0 1px 1.5px rgb(255 255 255 / .95),
    inset 0 -5px 8px -4px rgb(255 255 255 / .75),
    inset 1.5px 0 2px -1px rgb(255 255 255 / .99),
    inset -1.5px 0 2px -1px rgb(255 255 255 / .99),
    0 0 0 1px rgb(60 70 100 / .07),
    0 4px 12px -7px rgb(40 50 80 / .18),
    0 1px 2px rgb(40 50 80 / .05);
  backdrop-filter: saturate(1.7) contrast(1.04);
  -webkit-backdrop-filter: saturate(1.7) contrast(1.04);
  transition: opacity .2s;
  will-change: transform, width;
}

.dock-lens::before {
  content: "";
  position: absolute;
  top: 3px; left: 15%; right: 30%;
  height: 30%;
  border-radius: 99px;
  background: linear-gradient(rgb(255 255 255 / .9), rgb(255 255 255 / 0));
}

.dock-lens.is-hidden { opacity: 0; }

html.dark .dock-lens {
  background: linear-gradient(160deg, rgb(255 255 255 / .16) 0%, rgb(150 170 220 / .07) 45%, rgb(255 255 255 / .1) 100%);
  box-shadow:
    inset 0 1px 1.5px rgb(255 255 255 / .3),
    inset 0 -5px 8px -4px rgb(255 255 255 / .12),
    0 0 0 1px rgb(255 255 255 / .07),
    0 8px 16px -8px rgb(0 0 0 / .6);
}

html.dark .dock-lens::before {
  background: linear-gradient(rgb(255 255 255 / .14), rgb(255 255 255 / 0));
}

.dock-nv {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px; height: 40px;
  color: var(--nav-inactive);
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  transition: color .22s;
}

.dock-nv.is-on { color: var(--nav-active); }

.dock-sep {
  width: 1px; height: 22px;
  margin: 0 8px;
  background: var(--border-4);
}

.dock-ctrls {
  display: flex;
  align-items: center;
  height: 40px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-4);
  border-radius: 99px;
}

.dock-ctrl-div {
  width: 1px; height: 18px;
  background: var(--border-4);
}

.dock-ctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 100%;
  padding: 0;
  color: var(--mut-5);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color .2s, background .2s;
}

.dock-ctrl:hover { color: var(--ink); background: var(--surface-3); }
/* --- theme switch: icons + view-transition bloom --- */
.ic-wrap { display: grid; place-items: center; width: 17px; height: 17px; }
.ic-wrap > svg { grid-area: 1 / 1; transform-origin: center; }
.ic-wrap > svg { transition: opacity .28s ease, transform .5s cubic-bezier(.34,1.56,.64,1); }
html:not(.dark) .ic-moon { opacity: 0; transform: rotate(-90deg) scale(.35); }
html.dark .ic-sun { opacity: 0; transform: rotate(90deg) scale(.35); }
.ic-sun .sun-core, .ic-sun .sun-ray { transform-origin: 12px 12px; }

::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }

@media (prefers-reduced-motion: no-preference) {
  .dock-ctrl:hover .ic-sun { animation: sunTurn .8s ease-in-out; }
  .dock-ctrl:hover .ic-sun .sun-core { animation: sunCore .8s ease-in-out; }
  .dock-ctrl:hover .ic-sun .sun-ray { animation: sunRay .8s ease-in-out; }
  .dock-ctrl:hover .ic-moon { animation: moonRock .8s ease-in-out; }
  .dock-ctrl.is-burst .ic-wrap > svg { animation: iconBurst .62s cubic-bezier(.34,1.56,.64,1); }
}

@keyframes sunTurn {
  0% { transform: rotate(0deg); }
  40% { transform: rotate(14deg); }
  75% { transform: rotate(-6deg); }
  100% { transform: rotate(0deg); }
}
@keyframes sunCore {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.18); }
}
@keyframes sunRay {
  0%, 100% { opacity: 1; }
  45% { opacity: .7; }
}
@keyframes moonRock {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-16deg); }
  55% { transform: rotate(12deg); }
  80% { transform: rotate(-6deg); }
  100% { transform: rotate(0deg); }
}
@keyframes iconBurst {
  0% { transform: scale(.55) rotate(-60deg); }
  60% { transform: scale(1.14) rotate(8deg); }
  100% { transform: scale(1) rotate(0deg); }
}


.dock-ctrl .ic-off { display: none; }
html[data-sound="off"] #soundBtn .ic-on { display: none; }
html[data-sound="off"] #soundBtn .ic-off { display: block; }
html[data-sound="off"] #soundBtn { color: var(--border-3); }

.dock-k {
  width: auto;
  padding: 0 10px;
  font-family: var(--mono, ui-monospace, "SF Mono", Menlo, monospace);
  font-size: 10.5px;
  letter-spacing: .02em;
}

/* ---------- 4. Profile block -------------------------------------------- */
.profile {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 24px;
}

.avc { flex: none; }

.ava {
  position: relative;
  display: block;
  width: 92px; height: 92px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ava-frame {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border-3);
  background: var(--surface);
}

.ava-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .32s var(--ease-out), transform .55s var(--ease-out);
}

.ava-logo { object-fit: contain; padding: 1px; }

.ava-face { opacity: 0; transform: scale(1.08); }

.ava.is-peek .ava-logo { opacity: 0; }
.ava.is-peek .ava-face { opacity: 1; transform: none; }

.ava-badge {
  position: absolute;
  right: -6px; bottom: -6px;
  display: grid;
  place-items: center;
  width: 25px; height: 25px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  border: 2px solid var(--surface);
  transition: transform .3s var(--ease-pop);
}

.ava:hover .ava-badge,
.ava:focus-visible .ava-badge { transform: scale(1.12); }

.profile-main { flex: 1; min-width: 0; }

.name {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.role {
  display: flex;
  align-items: center;
  height: 26px;
  margin: 3px 0 12px;
  color: var(--mut);
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  background: var(--ink);
  animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

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

/* ---------- 5. Pills + per-character roll ------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  background: var(--ink);
  color: var(--ink-contrast);
  border: 0;
  border-radius: 8px;
  font: 500 12px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s;
}

.pill:hover { background: var(--ink-hover); }

.pill.is-outline {
  background: none;
  color: var(--ink);
  border: 1px solid var(--border-4);
}

.pill.is-outline:hover { background: var(--surface-3); }

.pill.is-sm { padding: 5px 11px; font-size: 11.5px; }

.roll { height: 34px; padding: 0 13px; }
.roll.is-big { height: 42px; padding: 0 18px; font-size: 13px; }

.roll-vp {
  position: relative;
  display: block;
  height: 18px;
  overflow: hidden;
}

.roll-row {
  display: flex;
  align-items: center;
  height: 18px;
  white-space: pre;
}

.roll-row.b { position: absolute; top: 0; left: 0; }

.roll-u {
  display: inline-block;
  line-height: 18px;
  transition: transform .55s var(--ease-roll);
  transition-delay: calc(var(--i) * 16ms);
}

.roll-u:first-child {
  display: inline-flex;
  align-items: center;
  height: 18px;
  margin-right: 7px;
}

.roll-row.b .roll-u { transform: translateY(130%); }

.roll:hover .roll-row.a .roll-u,
.roll:focus-visible .roll-row.a .roll-u { transform: translateY(-130%); }

.roll:hover .roll-row.b .roll-u,
.roll:focus-visible .roll-row.b .roll-u { transform: translateY(0); }

/* ---------- 6. About ---------------------------------------------------- */
.about {
  margin: 0;
  padding: 22px var(--pad-x) 24px 44px;
  font-size: 14.5px;
  line-height: 1.75;
}

.about li { margin-bottom: 14px; }
.about li:last-child { margin-bottom: 0; }

.about u,
.about a.u {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-color: var(--mut);
}
.about a.u {
  text-decoration: underline;
}
.about a.u:hover { text-decoration-color: var(--ink); }

/* hover preview card */
.ph { position: relative; display: inline-block; }

.ph-card {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  z-index: 30;
  width: 240px;
  padding: 10px;
  background-color: var(--shot-ph);
  background-position: 50%;
  background-size: cover;
  border-radius: 16px;
  box-shadow: 0 24px 48px -16px rgb(30 60 200 / .4), 0 0 0 1px rgb(60 90 200 / .12);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px) scale(.96);
  transition: opacity .2s, transform .25s var(--ease-out);
}

.ph:hover .ph-card,
.ph:focus-within .ph-card {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.ph-shot {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
  border-radius: 9px;
}

.ph-shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
}

/* ---------- 7. Globe ---------------------------------------------------- */
.globewrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 300px;
  padding: 34px 0 14px;
}

.gtext { padding: 20px 30px 26px; align-self: center; }

.gq {
  margin: 0;
  max-width: 350px;
  color: var(--ink);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.gq span { color: var(--mut); }

.gl {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.globe {
  display: block;
  width: 100%;
  max-width: 350px;
  height: auto;
  aspect-ratio: 1 / 1;
  touch-action: pan-y;
  cursor: grab;
}

.globe:active { cursor: grabbing; }

/* Pins ride on top of the globe canvas; JS places each one every frame.
   Each pin is a logo tile with its name below, like the reference globe. */
.gpins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.gpin {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}

.gpin-box {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 10px 22px -10px rgb(10 10 30 / .55), 0 0 0 3px rgb(255 255 255 / .06);
  overflow: hidden;
}

.gpin-box img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.gpin span {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 4px 10px -6px rgb(10 10 30 / .45);
  color: var(--ink);
  font: 500 10px var(--mono);
  letter-spacing: .02em;
  white-space: nowrap;
}

/* ---------- 8. Connect -------------------------------------------------- */
.conn {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 24px;
}

/* ---------- 9. Experience ---------------------------------------------- */
.ex { border-bottom: 1px solid var(--border); }

.ex-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 24px;
  cursor: pointer;
  user-select: none;
}

.ex-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px; height: 40px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 10px;
}

.ex-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* a vector mark needs breathing room, not a full-bleed crop */
.ex-logo.is-mark { padding: 6px; }
.ex-logo.is-mark img { object-fit: contain; }

.ex-logo.is-gh { background: var(--ink); color: var(--surface); }

.ex-main { flex: 1; min-width: 0; }

.ex-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.ex-top b { font-size: 16px; font-weight: 500; }

.ex-date {
  color: var(--mut);
  font: 400 11.5px var(--mono);
  white-space: nowrap;
}

.ex-sub { color: var(--mut); font-size: 13.5px; }

.ex-sub .sep { margin: 0 .35em; }

.ex-desc { margin-top: 8px; color: var(--mut-2); font-size: 14px; }

.ex-chev {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px; height: 30px;
  padding: 0;
  color: var(--mut-5);
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 99px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}

.ex-chev:hover { background: var(--surface-3); color: var(--ink); }

.ex-chev svg { width: 14px; height: 14px; transition: transform .45s var(--ease-out); }

.ex.is-open .ex-chev { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.ex.is-open .ex-chev svg { transform: rotate(180deg); }

.ex-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease-out);
}

.ex.is-open .ex-panel { grid-template-rows: 1fr; }

.ex-in { min-height: 0; overflow: hidden; }

.ex-body {
  padding: 0 24px 20px 78px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .35s, transform .5s var(--ease-out);
}

.ex.is-open .ex-body { opacity: 1; transform: none; transition-delay: 80ms; }

.ex-body p { margin: 0 0 10px; color: var(--mut-3); font-size: 13.5px; }
.ex-body ul { margin: 0 0 12px; padding-left: 18px; color: var(--mut-3); font-size: 13.5px; }
.ex-body li { margin-bottom: 3px; }

.ex-body code {
  padding: 1px 5px;
  color: var(--mut-2);
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  border-radius: 4px;
  font: 400 12px var(--mono);
}

.ex-lab {
  margin: 12px 0 6px;
  color: var(--mut);
  font: 500 10px var(--mono);
  letter-spacing: .08em;
}

/* chips inside experience */
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 3px 7px 3px 0;
  padding: 5px 11px 5px 7px;
  overflow: hidden;
  color: var(--mut-2);
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 450;
  box-shadow: 0 1px 1px rgb(0 0 0 / .03);
}

.chip .ci {
  display: flex;
  flex: none;
  width: 16px; height: 16px;
  transition: transform .5s var(--ease-pop);
}

.chip .ci img, .chip .ci svg { display: block; width: 16px; height: 16px; border-radius: 4px; }

.lk {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 6px 6px 0;
  padding: 4px 10px;
  overflow: hidden;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-4);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}

.lk:hover { background: var(--surface-3); }

.chip, .lk {
  transition: transform .42s var(--ease-pop), box-shadow .3s, border-color .25s;
}

.chip::after, .lk::after {
  content: "";
  position: absolute;
  top: 0; left: -70%;
  width: 45%; height: 100%;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgb(0 0 0 / .07), transparent);
  transform: skew(-22deg);
  transition: left .65s var(--ease-out);
}

.chip:hover, .lk:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 18px -10px rgb(0 0 0 / .35);
}

.chip:hover::after, .lk:hover::after { left: 130%; }
.chip:hover .ci { transform: scale(1.3) rotate(-10deg); }

.ar {
  display: inline-block;
  transition: transform .4s var(--ease-pop);
}

.lk:hover .ar { transform: translate(2px, -2px); }

/* ---------- 10. Projects ------------------------------------------------ */
.pj {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  border-bottom: 1px solid var(--border);
}

.pj.is-flip { grid-template-columns: 1.15fr 1fr; }
.pj.is-flip .pj-img { order: 2; }

.pj-img { padding: 22px; }

.shot {
  position: relative;
  height: 214px;
  overflow: hidden;
  background-color: var(--shot-ph);
  background-position: 50%;
  background-size: cover;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.shot-win {
  position: absolute;
  inset: 34px 15% -1px;
  overflow: hidden;
  background: var(--surface);
  border-radius: 9px 9px 0 0;
  box-shadow: 0 14px 30px -10px rgb(10 10 30 / .45), 0 0 0 1px rgb(10 10 30 / .12);
  transition: transform .4s var(--ease-out);
}

.shot:hover .shot-win { transform: scale(1.05); }

.shot-win img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
}

.pj-tx {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px var(--pad-x);
}

.pj-title { display: flex; align-items: baseline; gap: 10px; }

.pj-title h3 { flex: 0 1 auto; }

.pj-title h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.02em;
}

.stt {
  display: inline-flex;
  flex: none;
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  color: var(--mut);
  font: 400 10.5px var(--mono);
  letter-spacing: .05em;
}

.stt i {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 9px;
}

.stt i.live { background: var(--live); }
.stt i.build { border: 1.5px solid var(--mut); }

.pj-desc {
  margin: 8px 0 12px;
  color: var(--mut);
  font-size: 13.5px;
  line-height: 1.55;
}

.pchip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 2px 4px 2px 0;
  padding: 2px 8px;
  color: var(--mut);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 11px;
}

.pchip img {
  flex: none;
  width: 13px; height: 13px;
  object-fit: contain;
}

/* monochrome marks vanish on the dark surface; invert only those */
html.dark .pchip img[src$="nextjs.svg"],
html.dark .pchip img[src$="vercel.svg"],
html.dark .pchip img[src$="github.svg"] { filter: brightness(0) invert(1); }

.pj-btns { display: flex; gap: 6px; margin-top: 14px; }

.seeall {
  display: block;
  padding: 14px;
  color: var(--mut);
  text-align: center;
  text-decoration: none;
}

.seeall:hover { color: var(--ink); }

/* ---------- 11. Skills -------------------------------------------------- */
.skbody { position: relative; }

.skrow {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: start;
  padding: 15px 24px;
  border-bottom: 1px solid var(--border);
}

.skrow:last-child { border-bottom: 0; }

.sklab {
  padding-top: 9px;
  color: var(--mut);
  font: 400 11px var(--mono);
  letter-spacing: .07em;
}

.skcs { display: flex; flex-wrap: wrap; }

.sk {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 3px 7px 3px 0;
  padding: 5px 11px 5px 8px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  font-size: 12.5px;
  box-shadow: 0 1px 1px rgb(0 0 0 / .03);
  user-select: none;
  transition: transform .18s var(--ease-pop);
}

.sk b { font-weight: 400; }
.sk img, .sk svg { display: block; width: 16px; height: 16px; }
.sk.is-press { transform: scale(.94); }

.flag {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  flex: none;
  box-shadow: 0 0 0 1px rgb(0 0 0 / .1);
}

.sklens {
  position: absolute;
  top: 0; left: 0;
  z-index: 3;
  width: 10px; height: 10px;
  border-radius: 12px;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(160deg, rgb(255 255 255 / .42) 0%, rgb(190 208 252 / .28) 48%, rgb(255 255 255 / .3) 100%);
  box-shadow:
    inset 0 1px 1.5px rgb(255 255 255 / .95),
    inset 0 -5px 8px -4px rgb(255 255 255 / .8),
    inset 1.5px 0 2px -1px rgb(255 255 255 / .85),
    inset -1.5px 0 2px -1px rgb(255 255 255 / .85),
    0 0 0 1px rgb(70 90 170 / .22),
    0 0 0 4px rgb(130 150 240 / .1),
    0 10px 20px -8px rgb(40 60 130 / .45),
    0 2px 5px rgb(40 60 130 / .1);
  backdrop-filter: saturate(1.7) contrast(1.04);
  -webkit-backdrop-filter: saturate(1.7) contrast(1.04);
  will-change: transform, width, height;
  transition:
    transform .34s var(--ease-out),
    width .34s var(--ease-out),
    height .34s var(--ease-out),
    opacity .2s;
}

.sklens::before {
  content: "";
  position: absolute;
  top: 2px; left: 12%; right: 28%;
  height: 30%;
  border-radius: 99px;
  background: linear-gradient(rgb(255 255 255 / .9), rgb(255 255 255 / 0));
}

.sklens.is-on { opacity: 1; }

html.dark .sk img[src$="anthropic.svg"],
html.dark .sk img[src$="openai.svg"],
html.dark .sk img[src$="grok.svg"],
html.dark .sk img[src$="kimi.svg"] { filter: brightness(0) invert(1); }

html.dark .sk img[src$="zai.svg"] { filter: brightness(1.35) saturate(.85); }
html.dark .sk img[src$="nextdotjs.svg"],
html.dark .sk img[src$="github.svg"] { filter: brightness(0) invert(1); }
html.dark .sk img[src$="hermes-agent.png"] { background: #fff; border-radius: 5px; padding: 1px; box-sizing: content-box; }

html.dark .sklens {
  background: linear-gradient(160deg, rgb(255 255 255 / .12) 0%, rgb(160 180 230 / .06) 48%, rgb(255 255 255 / .08) 100%);
  box-shadow:
    inset 0 1px 1.5px rgb(255 255 255 / .25),
    inset 0 -3px 6px -3px rgb(255 255 255 / .12),
    0 0 0 1px rgb(255 255 255 / .07),
    0 4px 9px -6px rgb(0 0 0 / .6);
}

/* ---------- 12. Activity ------------------------------------------------ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
}

.st { padding: 16px 22px; border-right: 1px solid var(--border); }
.st.is-last { border-right: 0; }

.sv {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.sl {
  margin-top: 2px;
  color: var(--mut);
  font: 400 10px var(--mono);
  letter-spacing: .06em;
}

.gw { position: relative; padding: 20px 16px 16px; }

.gw-scroll { overflow-x: auto; scrollbar-width: thin; }
.gw-in { width: max-content; }

.gw-months { position: relative; height: 16px; margin-left: 33px; }

.gw-month {
  position: absolute;
  color: var(--mut);
  font: 400 10.5px var(--mono);
}

.gw-grid { display: flex; gap: 3px; margin-top: 2px; }

.gw-days {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 30px;
  color: var(--mut);
  font: 400 10px var(--mono);
}

.gw-days span { height: 12px; line-height: 12px; }

.gw-week { display: flex; flex-direction: column; gap: 3px; }

.ac {
  position: relative;
  display: block;
  width: 12px; height: 12px;
  border-radius: 3px;
  transition: transform .22s var(--ease-pop), box-shadow .2s;
}

.ac.is-hov {
  z-index: 4;
  transform: scale(1.55);
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px rgb(10 10 10 / .18), 0 4px 10px -3px rgb(0 0 0 / .35);
}

.leg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--mut);
  font: 400 10.5px var(--mono);
}

.leg-note { color: var(--mut-4); }

.leg-scale {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--c0); }
.lg[data-lvl="1"] { background: var(--c1); }
.lg[data-lvl="2"] { background: var(--c2); }
.lg[data-lvl="3"] { background: var(--c3); }
.lg[data-lvl="4"] { background: var(--c4); }

.tip {
  position: absolute;
  top: 0; left: 0;
  z-index: 20;
  pointer-events: none;
  will-change: transform;
}

.tip-b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px 7px 11px;
  color: #0a0a0a;
  background: linear-gradient(160deg, rgb(255 255 255 / .92), rgb(236 240 252 / .8));
  border-radius: 999px;
  box-shadow:
    inset 0 1px 1.5px rgb(255 255 255 / .95),
    0 0 0 1px rgb(60 70 110 / .14),
    0 12px 26px -10px rgb(30 40 90 / .5),
    0 2px 6px rgb(30 40 90 / .1);
  font-size: 12.5px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px) scale(.88);
  transform-origin: 50% 100%;
  transition: opacity .16s, transform .28s var(--ease-pop);
  backdrop-filter: blur(10px) saturate(1.6);
  -webkit-backdrop-filter: blur(10px) saturate(1.6);
}

.tip.is-on .tip-b { opacity: 1; transform: none; }

.tip-dot { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.tip-b b { font-weight: 600; font-variant-numeric: tabular-nums; }
.tip-date { color: #6b6b72; }

.tip-sep {
  display: inline-block;
  width: 1px; height: 12px;
  margin: 0 2px;
  background: rgb(0 0 0 / .16);
  vertical-align: -2px;
}

/* ---------- 13. Footer -------------------------------------------------- */
.cta {
  padding: 44px 24px 38px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.cta h2 {
  margin: 0 0 20px;
  color: var(--mut-2);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -.015em;
}

.cta h2 b { color: var(--ink); font-weight: 500; }

.foot {
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  color: var(--mut-2);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.foot u { color: var(--ink); font-weight: 500; }

/* booking sheet */
.ov {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgb(10 10 14 / .38);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
}

.ov.is-open { opacity: 1; pointer-events: auto; }

.sheet {
  position: absolute;
  bottom: 0;
  left: 50%;
  display: flex;
  flex-direction: column;
  width: min(860px, 100% - 20px);
  max-height: 94vh;
  overflow: hidden;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -24px 70px -20px rgb(0 0 0 / .45), 0 0 0 1px rgb(0 0 0 / .06);
  transform: translate(-50%, 104%);
  transition: transform .6s var(--ease-out);
}

.ov.is-open .sheet { transform: translate(-50%, 0); }

.grab {
  flex: none;
  width: 38px; height: 4px;
  margin: 9px auto 0;
  background: var(--grab);
  border-radius: 9px;
}

.sheet-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  padding: 10px 18px 10px 22px;
}

.sheet-h b { font-size: 15px; font-weight: 500; }

.sheet-x {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  padding: 0;
  color: var(--mut-5);
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 99px;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.sheet-x:hover { background: var(--surface-3); color: var(--ink); }

.bk {
  position: relative;
  height: min(560px, 66vh);
  background: var(--surface);
  border-top: 1px solid var(--surface-3);
}

.bk-load {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mut-4);
  font-size: 13px;
  text-align: center;
  padding: 0 24px;
}

.bk-embed {
  position: absolute;
  inset: 0;
  overflow: auto;
  background: none;
}

.sheet-f {
  flex: none;
  padding: 10px 18px;
  border-top: 1px solid var(--surface-3);
  font-size: 12px;
  text-align: center;
}

.sheet-f a { color: var(--mut); }
.sheet-f a:hover { color: var(--ink); }

/* ---------- 15. Command palette ----------------------------------------- */
.cmdk {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: min(18vh, 160px);
  background: rgb(10 10 14 / .38);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s;
}

.cmdk.is-open { opacity: 1; pointer-events: auto; }

.cmdk-box {
  width: min(560px, 100% - 32px);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 30px 70px -24px rgb(0 0 0 / .5);
  transform: translateY(-8px) scale(.98);
  transition: transform .24s var(--ease-out);
}

.cmdk.is-open .cmdk-box { transform: none; }

.cmdk-input {
  width: 100%;
  padding: 15px 18px;
  color: var(--ink);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--border);
  font: 400 14px var(--sans);
}

.cmdk-input::placeholder { color: var(--mut-4); }
.cmdk-input:focus { outline: none; }

.cmdk-list { max-height: 320px; padding: 6px; overflow-y: auto; margin: 0; list-style: none; }

.cmdk-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  color: var(--mut-2);
  border-radius: 8px;
  font-size: 13.5px;
  cursor: pointer;
}

.cmdk-item kbd {
  color: var(--kbd-ink);
  font: 400 10.5px var(--mono);
}

.cmdk-item.is-active { background: var(--surface-3); color: var(--ink); }

.cmdk-empty { padding: 18px 14px; color: var(--mut); font-size: 13px; }

/* ---------- 16. Responsive --------------------------------------------- */
@media (max-width: 720px) {
  .rk { padding: 12px 6px; }
  .dock-sep { display: none; }
  .dock-ctrls { display: flex; }
  .dock { gap: 2px; padding: 6px 6px; }
  .dock-nv { width: auto; padding: 0 8px; font-size: 11.5px; }
  .profile { padding: 18px 16px; }
  .role { display: block; height: auto; min-height: 26px; white-space: normal; line-height: 1.35; }
  .about { padding: 20px 20px 22px 36px; }
  .ph-card { display: none; }
  .conn { padding: 14px 16px; }
  .ex-head { gap: 12px; padding: 16px; }
  .ex-top { flex-direction: column; gap: 2px; }
  .ex-body { padding: 0 16px 18px; }
  .globewrap { grid-template-columns: 1fr; padding: 24px 0 10px; }
  .gtext { padding: 4px 20px 0; }
  .gl { max-width: 320px; }
  .globe { max-width: 300px; }
  .gpin { gap: 4px; }
  .gpin-box { width: 34px; height: 34px; border-radius: 10px; }
  .gpin-box img { width: 26px; height: 26px; }
  .gpin span { font-size: 9px; padding: 2px 5px; }
  .pj, .pj.is-flip { grid-template-columns: 1fr; }
  .pj.is-flip .pj-img { order: 0; }
  .pj-title { flex-wrap: wrap; row-gap: 4px; }
  .pj-img { padding: 16px 16px 0; }
  .pj-tx { padding: 16px 18px 22px; }
  .skrow { grid-template-columns: 1fr; padding: 14px 16px; }
  .sklab { padding: 0 0 4px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .st:nth-child(2) { border-right: 0; }
  .st:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .gw { padding: 16px 16px 14px; }
  .sheet { width: 100%; }
  .sh { padding: 12px 16px; }
}

@media (max-width: 560px) {
  #soundBtn { display: none; }
  .dock-ctrl { width: 34px; }
  .dock-nv { padding: 0 6px; font-size: 10.5px; }
}

@media (max-width: 380px) {
  .dock-nv { padding: 0 4px; font-size: 10px; }
  .dock { padding: 5px 5px; }
  .dock { gap: 1px; padding: 5px 5px; }
}

/* ---------- 17. Motion preferences ------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .shot-win, .overlay, .ex-panel, .ex-body, .roll-u,
  .sklens, .sk, .ac, .tip-b, .sheet, .cmdk-box { transition: none !important; }
  .caret { animation: none; }
  .roll:hover .roll-row.a .roll-u,
  .roll:hover .roll-row.b .roll-u { transform: none; }
}


/* ---------- 19. Native cursor + text skill chips ------------------------ */
a, button, [role="button"], .sk.is-press { cursor: pointer; }
.sk.is-txt { gap: 6px; cursor: default; }
.sk.is-txt i { font-style: normal; color: var(--mut); }
.sk.is-txt b { color: var(--ink); }

/* ---------- 18. Accessibility ------------------------------------------- */
html { color-scheme: light; }
html.dark { color-scheme: dark; }

.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--surface);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-220%);
  transition: transform .2s var(--ease-out);
}

.skip:focus-visible { transform: translateY(0); }

:where(a, button, [tabindex="0"], input):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  /* keep the visual size, widen the touch target */
  .ex-chev { position: relative; }
  .ex-chev::after { content: ""; position: absolute; inset: -8px; }
  .pj-btns .pill { min-height: 36px; }
  .lk { min-height: 34px; }
  .dock-ctrl { width: 42px; }
}
