/* ============ Portfolio UI Mockups ============ */
.mu-phone {
  width: 200px;
  height: 410px;
  background: var(--phone-accent, #2E2548);
  border-radius: 32px;
  padding: 5px;
  box-shadow:
    0 0 0 2px rgba(0,0,0,0.06),
    0 30px 60px -20px rgba(46,37,72,0.35),
    inset 0 0 0 1px rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}
.mu-phone-notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 68px; height: 16px;
  background: black;
  border-radius: 10px;
  z-index: 5;
}
.mu-phone-screen {
  width: 100%;
  height: 100%;
  background: #FBF8FF;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-size: 10px;
  color: #2E2548;
  position: relative;
}
.portfolio-card.feat .mu-phone {
  width: 260px;
  height: 520px;
}

.mu-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px 4px;
  font-size: 11px;
  font-weight: 700;
  color: #2E2548;
}
.mu-statusbar.dark { color: white; }
.mu-statusbar-r { display: flex; align-items: center; gap: 4px; }
.mu-sb-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.mu-sb-bat { width: 18px; height: 9px; border: 1px solid currentColor; border-radius: 2px; position: relative; }
.mu-sb-bat::after {
  content: '';
  position: absolute;
  left: 1px; top: 1px; bottom: 1px;
  width: 70%;
  background: currentColor;
  border-radius: 1px;
}

.mu-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--c-lavender);
  border: 2px solid white;
  flex: 0 0 32px;
  position: relative;
}
.mu-avatar.small { width: 24px; height: 24px; flex: 0 0 24px; }
.mu-avatar.pink { background: linear-gradient(135deg, #FFD6F0, #D88BB8); }
.mu-avatar.lav { background: linear-gradient(135deg, #E0D7FF, #8B7BC4); }
.mu-avatar.cyan { background: linear-gradient(135deg, #C4F1F9, #5BA8B5); }
.mu-avatar.mint { background: linear-gradient(135deg, #D8F5E3, #7CC4A5); }
.mu-avatar::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  bottom: -1px; right: -1px;
  background: #6BCC83;
  border: 2px solid white;
  border-radius: 50%;
}

.mu-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px 14px;
}
.mu-h-greet { font-weight: 700; font-size: 13px; }
.mu-h-loc { font-size: 10px; color: var(--t-soft); margin-top: 2px; }

.mu-search {
  margin: 0 18px;
  display: flex;
  gap: 8px;
  align-items: center;
  background: white;
  border: 1.5px solid #EDE6FF;
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 11px;
  color: var(--t-soft);
}

.mu-cats {
  display: flex;
  gap: 8px;
  padding: 14px 18px 10px;
  overflow: hidden;
}
.mu-cat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 0;
  background: white;
  border-radius: 12px;
  border: 1.5px solid #EDE6FF;
  font-size: 10px;
  color: var(--t-body);
}
.mu-cat.on { background: var(--c-lavender); border-color: var(--c-purple); }
.mu-cat span:first-child { font-size: 18px; }

.mu-section-t {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px 10px;
  font-size: 11px;
  font-weight: 700;
}
.mu-more { font-size: 10px; color: var(--c-purple); font-weight: 600; }

.mu-card-row {
  display: flex;
  gap: 10px;
  padding: 0 18px 14px;
}
.mu-prod-card {
  flex: 1;
  background: white;
  border-radius: 14px;
  border: 1.5px solid #EDE6FF;
  overflow: hidden;
}
.mu-prod-img {
  aspect-ratio: 1;
  position: relative;
}
.mu-badge {
  position: absolute;
  top: 6px; left: 6px;
  background: rgba(255,255,255,0.92);
  color: var(--c-purple);
  font-size: 8px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 8px;
}
.mu-prod-name { font-size: 10px; font-weight: 700; padding: 6px 8px 2px; }
.mu-prod-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px 8px;
  font-size: 9px;
  color: var(--t-soft);
}
.mu-prod-meta strong { color: var(--t-strong); font-size: 10px; }

.mu-nav {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: white;
  border-top: 1.5px solid #EDE6FF;
  padding: 10px 8px 14px;
}
.mu-nav > div {
  font-size: 14px;
  opacity: 0.4;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
}
.mu-nav > div.on { opacity: 1; color: var(--c-purple); }
.mu-nav > div.cart {
  background: var(--c-purple);
  color: white;
  border-radius: 50%;
  opacity: 1;
  transform: translateY(-6px);
  box-shadow: 0 4px 8px rgba(107,91,168,0.35);
}

.mu-cafe-bg {
  background: linear-gradient(180deg, #3F6E54 0%, #4D8267 100%);
  padding-bottom: 14px;
  color: white;
}
.mu-cafe-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 18px 14px;
}
.mu-cafe-hello { font-size: 10px; opacity: 0.85; }
.mu-cafe-name { font-family: var(--f-display); font-size: 16px; margin-top: 2px; }
.mu-cafe-bell { font-size: 16px; position: relative; }
.mu-cafe-bell span {
  position: absolute;
  top: -1px; right: -2px;
  width: 8px; height: 8px;
  background: #FF7C7C;
  border-radius: 50%;
}
.mu-cafe-card {
  margin: 0 14px;
  background: white;
  color: var(--t-strong);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,0.2);
}
.mu-cafe-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.mu-cafe-tier { font-size: 9px; font-weight: 700; color: #D4A82E; }
.mu-cafe-bal { font-family: var(--f-display); font-size: 16px; color: #3F6E54; }
.mu-cafe-stamps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
.mu-stamp {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px dashed #DDD;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: transparent;
}
.mu-stamp.on {
  background: #3F6E54;
  border-style: solid;
  border-color: #3F6E54;
  color: white;
}
.mu-cafe-progress {
  height: 6px;
  background: #F0EAE0;
  border-radius: 3px;
  overflow: hidden;
}
.mu-cafe-progress > div {
  height: 100%;
  background: linear-gradient(90deg, #3F6E54, #6BB088);
}
.mu-cafe-prog-t { font-size: 10px; color: var(--t-soft); margin-top: 6px; }
.mu-coupon-row {
  display: flex;
  gap: 10px;
  padding: 0 18px;
}
.mu-coupon {
  flex: 1;
  border-radius: 14px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1.5px dashed rgba(0,0,0,0.08);
}
.mu-coupon strong {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--t-strong);
}
.mu-coupon span { font-size: 10px; color: var(--t-body); }

.mu-chat-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 12px;
  border-bottom: 1px solid #EDE6FF;
  background: white;
}
.mu-chat-bar > span:first-child, .mu-chat-bar > span:last-child {
  font-size: 18px;
  color: var(--t-soft);
}
.mu-chat-who {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.mu-chat-name {
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mu-online {
  width: 7px; height: 7px;
  background: #6BCC83;
  border-radius: 50%;
}
.mu-chat-status { font-size: 9px; color: var(--c-purple); margin-top: 2px; }
.mu-chat-body {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: linear-gradient(180deg, #F8F4FF, #FFFFFF);
  overflow: hidden;
}
.mu-chat-date {
  font-size: 9px;
  color: var(--t-faint);
  text-align: center;
  margin-bottom: 6px;
}
.mu-bubble {
  font-size: 11px;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 16px;
  max-width: 78%;
  word-break: keep-all;
}
.mu-bubble.them {
  background: white;
  border: 1px solid #EDE6FF;
  border-bottom-left-radius: 6px;
  align-self: flex-start;
  color: var(--t-strong);
}
.mu-bubble.me {
  background: var(--c-purple);
  color: white;
  border-bottom-right-radius: 6px;
  align-self: flex-end;
}
.mu-typing {
  background: white;
  border: 1px solid #EDE6FF;
  border-bottom-left-radius: 6px;
  border-radius: 16px;
  padding: 10px 14px;
  align-self: flex-start;
  display: flex;
  gap: 4px;
}
.mu-typing span {
  width: 5px; height: 5px;
  background: var(--c-purple);
  border-radius: 50%;
  opacity: 0.4;
  animation: typingDot 1.4s ease-in-out infinite;
}
.mu-typing span:nth-child(2) { animation-delay: 0.2s; }
.mu-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
.mu-chat-input {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 14px 14px;
  background: white;
  border-top: 1px solid #EDE6FF;
}
.mu-chat-input > span:first-child {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-2);
  display: grid;
  place-items: center;
  color: var(--c-purple);
  font-weight: 700;
}
.mu-chat-input input {
  flex: 1;
  border: 1px solid #EDE6FF;
  background: var(--bg);
  border-radius: 14px;
  padding: 6px 12px;
  font-size: 10px;
  outline: none;
}
.mu-send {
  width: 28px; height: 28px;
  background: var(--c-purple);
  border-radius: 50%;
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.mu-dash {
  width: 420px;
  height: 300px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 30px 60px -20px rgba(46,37,72,0.30), 0 0 0 1px rgba(0,0,0,0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-size: 11px;
  color: var(--t-strong);
}
.portfolio-card.feat .mu-dash {
  width: 480px;
  height: 380px;
}
.mu-dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid #EDE6FF;
  background: var(--bg);
}
.mu-dash-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-display);
  font-size: 14px;
}
.mu-logo-mark {
  width: 20px; height: 20px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--c-purple), var(--c-pink-deep));
}
.mu-dash-tabs {
  display: flex;
  gap: 4px;
}
.mu-dash-tabs span {
  font-size: 11px;
  color: var(--t-soft);
  padding: 5px 12px;
  border-radius: 8px;
}
.mu-dash-tabs span.on {
  background: var(--c-purple);
  color: white;
  font-weight: 700;
}
.mu-dash-body {
  padding: 14px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mu-dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.mu-stat-card {
  background: var(--bg);
  border: 1px solid #EDE6FF;
  border-radius: 12px;
  padding: 12px 14px;
}
.mu-stat-k { font-size: 10px; color: var(--t-soft); }
.mu-stat-v {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--t-strong);
  margin: 2px 0;
}
.mu-stat-d { font-size: 10px; font-weight: 700; }
.mu-stat-d.up { color: #4DAE6A; }
.mu-stat-d.down { color: #D86A6A; }

.mu-chart-card {
  background: var(--bg);
  border: 1px solid #EDE6FF;
  border-radius: 12px;
  padding: 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.mu-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 8px;
}
.mu-legend {
  display: flex;
  gap: 10px;
  font-size: 9px;
  font-weight: 500;
  color: var(--t-soft);
  align-items: center;
}
.mu-legend span {
  width: 6px; height: 6px; border-radius: 50%;
  display: inline-block;
}
.mu-legend .d1 { background: var(--c-purple); }
.mu-legend .d2 { background: var(--c-pink-deep); }
.mu-legend .d3 { background: var(--c-cyan-deep); }
.mu-chart-svg {
  flex: 1;
  width: 100%;
  height: 100%;
}

.mu-fit-hero {
  background: linear-gradient(180deg, #FFF0EC 0%, #FFE0DA 100%);
  padding: 16px 18px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mu-fit-hello { font-size: 11px; color: var(--t-body); }
.mu-fit-name { font-family: var(--f-display); font-size: 14px; margin-top: 4px; color: var(--t-strong); }
.mu-ring { width: 80px; height: 80px; position: relative; }
.mu-ring-svg { width: 100%; height: 100%; }
.mu-ring-c {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: var(--t-soft);
}
.mu-ring-c strong {
  font-family: var(--f-display);
  font-size: 18px;
  color: #E07B6E;
  line-height: 1;
}
.mu-fit-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 12px 0;
  background: white;
  border-bottom: 1px solid #EDE6FF;
}
.mu-fit-stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.mu-fit-stats > div + div { border-left: 1px solid #EDE6FF; }
.mu-fit-stats strong {
  font-family: var(--f-display);
  font-size: 18px;
  color: var(--t-strong);
}
.mu-fit-stats span { font-size: 9px; color: var(--t-soft); }
.mu-mate-list {
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mu-mate {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid #EDE6FF;
  border-radius: 12px;
  padding: 8px 10px;
}
.mu-mate-meta { flex: 1; }
.mu-mate-n { font-size: 11px; font-weight: 700; }
.mu-mate-d { font-size: 9px; color: var(--t-soft); margin-top: 2px; }
.mu-mate-btn {
  background: #E07B6E;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 700;
}

/* Portfolio thumb sizing — let mockups breathe */
.portfolio-thumb {
  aspect-ratio: auto;
  height: 440px;
  background: linear-gradient(180deg, #FBF8FF, #F2EDFF);
  position: relative;
}
.portfolio-thumb-inner {
  padding: 20px;
}

/* Featured (full-width horizontal) */
.portfolio-grid {
  grid-template-columns: 1fr 1fr;
}
.portfolio-card.feat {
  grid-row: auto;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  flex-direction: row;
}
.portfolio-card.feat .portfolio-thumb {
  height: 100%;
  min-height: 500px;
  border-bottom: none;
  border-right: 1.5px solid var(--b-soft);
}
.portfolio-card.feat .portfolio-meta {
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.portfolio-card.feat h3 {
  font-size: 38px;
  margin-bottom: 12px;
}
.portfolio-card.feat .desc {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 8px;
}
.portfolio-card.feat .portfolio-tags { margin-bottom: 18px; }
.portfolio-card.feat .footer { margin-top: 24px; padding-top: 24px; }
.portfolio-card.feat .arrow { width: 48px; height: 48px; font-size: 18px; }
.portfolio-card:hover .portfolio-thumb-inner {
  transform: scale(1.03) translateY(-2px);
}

/* Mobile responsive */
@media (max-width: 900px) {
  .moonlighter-grid { grid-template-columns: 1fr; }
}


/* ============ Team card CTA ============ */
.team-card {
  cursor: pointer;
}
.team-card .team-cta {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1.5px dashed var(--b-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-pixel);
  font-size: 11px;
  color: var(--c-purple);
  letter-spacing: 0.05em;
  transition: all 250ms ease;
}
.team-card .team-cta .arrow-r {
  display: inline-block;
  transition: transform 250ms ease;
}
.team-card:hover .team-cta .arrow-r {
  transform: translateX(6px);
}
.team-card:focus-visible {
  outline: 3px solid var(--c-purple);
  outline-offset: 4px;
}

/* ============ Resume Modal ============ */
.rm-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(46, 37, 72, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 32px;
  animation: rmFade 280ms ease forwards;
}
@keyframes rmFade {
  from { background: rgba(46,37,72,0); backdrop-filter: blur(0); }
  to { background: rgba(46,37,72,0.55); backdrop-filter: blur(8px); }
}
.rm-sheet {
  width: 100%;
  max-width: 1100px;
  max-height: 85vh;
  background: var(--bg);
  border-radius: 32px;
  overflow-y: auto;
  position: relative;
  animation: rmSlide 380ms cubic-bezier(.2,.7,.2,1) forwards;
  box-shadow: 0 -20px 60px -10px rgba(46, 37, 72, 0.3);
  scrollbar-width: none;
}
@keyframes rmSlide {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.rm-sheet::-webkit-scrollbar { display: none; }

.rm-close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: white;
  border: 1.5px solid var(--b-soft);
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--t-strong);
  cursor: pointer;
  z-index: 210;
  box-shadow: var(--sh-card);
  transition: all 200ms ease;
}
.rm-close:hover {
  transform: rotate(90deg);
  background: var(--c-purple);
  color: white;
  border-color: var(--c-purple);
}

/* Header */
.rm-header {
  position: relative;
  padding: 48px 56px 36px;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}
.rm-sheet[data-c="lavender"] .rm-header { background: linear-gradient(180deg, #EEE6FF 0%, #FAF7FF 100%); }
.rm-sheet[data-c="pink"] .rm-header { background: linear-gradient(180deg, #FFE4F4 0%, #FFF7FB 100%); }
.rm-sheet[data-c="yellow"] .rm-header { background: linear-gradient(180deg, #FFF5CC 0%, #FFFBE8 100%); }
.rm-sheet[data-c="cyan"] .rm-header { background: linear-gradient(180deg, #D8F2F8 0%, #F0FAFC 100%); }
.rm-header-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.rm-header-content {
  display: flex;
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.rm-avatar {
  width: 144px; height: 144px;
  border-radius: var(--r-lg);
  background: white;
  display: grid;
  place-items: center;
  flex: 0 0 144px;
  box-shadow: var(--sh-card);
  border: 2px solid white;
}
.rm-name-row { flex: 1; min-width: 0; }
.rm-role {
  font-family: var(--f-pixel);
  font-size: 13px;
  color: var(--c-purple);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.rm-name {
  font-family: var(--f-display);
  font-size: 56px;
  color: var(--t-strong);
  line-height: 1;
  margin-bottom: 14px;
}
.rm-tagline {
  font-size: 17px;
  color: var(--t-body);
  line-height: 1.5;
}
.rm-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
  position: relative;
  z-index: 2;
}
.rm-stat {
  background: white;
  border: 1.5px solid var(--b-soft);
  border-radius: var(--r);
  padding: 16px 22px;
  text-align: center;
}
.rm-stat-v {
  font-family: var(--f-display);
  font-size: 36px;
  line-height: 1;
  margin-bottom: 6px;
}
.rm-stat-k {
  font-family: var(--f-pixel);
  font-size: 11px;
  color: var(--t-soft);
  letter-spacing: 0.05em;
}

/* Intro */
.rm-intro {
  padding: 36px 56px 32px;
  border-bottom: 1.5px dashed var(--b-soft);
}
.rm-intro p {
  font-size: 16px;
  color: var(--t-body);
  line-height: 1.75;
  margin-bottom: 18px;
}
.rm-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rm-contact-item {
  font-size: 13px;
  color: var(--t-body);
  background: white;
  border: 1.5px solid var(--b-soft);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rm-contact-k {
  font-family: var(--f-pixel);
  font-size: 10px;
  color: var(--c-purple);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Tabs */
.rm-tabs {
  display: flex;
  gap: 6px;
  padding: 24px 56px 0;
  flex-wrap: wrap;
}
.rm-tab {
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  background: white;
  border: 1.5px solid var(--b-soft);
  color: var(--t-body);
  cursor: pointer;
  transition: all 200ms ease;
}
.rm-tab:hover { border-color: var(--c-purple); }

/* Body */
.rm-body {
  padding: 32px 56px 32px;
  min-height: 360px;
}

/* Timeline */
.rm-timeline {
  display: flex;
  flex-direction: column;
}
.rm-tline-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 18px;
  padding-bottom: 28px;
  position: relative;
}
.rm-tline-marker {
  position: relative;
  width: 28px;
}
.rm-tline-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--c-purple);
  margin-top: 6px;
  position: relative;
  z-index: 1;
  border: 3px solid white;
  box-shadow: 0 0 0 1.5px var(--c-purple);
}
.rm-tline-line {
  position: absolute;
  left: 50%;
  top: 22px;
  bottom: -28px;
  transform: translateX(-50%);
  width: 2px;
  background-image: repeating-linear-gradient(180deg, var(--b) 0 6px, transparent 6px 12px);
}
.rm-tline-meta { padding-top: 2px; }
.rm-tline-period {
  font-family: var(--f-pixel);
  font-size: 11px;
  color: var(--c-purple);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.rm-tline-org {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--t-strong);
  margin-bottom: 4px;
}
.rm-tline-pos {
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--t-soft);
  font-weight: 500;
}
.rm-tline-desc {
  font-size: 14px;
  color: var(--t-body);
  line-height: 1.65;
}

/* Skills */
.rm-skills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.rm-skills-cat-t {
  font-family: var(--f-pixel);
  font-size: 12px;
  color: var(--c-purple);
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1.5px dashed var(--b-soft);
}
.rm-skills-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rm-skill-bar {
  display: grid;
  grid-template-columns: 130px 1fr 36px;
  gap: 12px;
  align-items: center;
}
.rm-skill-name {
  font-size: 13px;
  color: var(--t-strong);
  font-weight: 500;
}
.rm-skill-track {
  height: 8px;
  background: var(--bg-2);
  border-radius: 4px;
  overflow: hidden;
}
.rm-skill-fill {
  height: 100%;
  background: var(--c-purple);
  border-radius: 4px;
  animation: skillFill 800ms cubic-bezier(.2,.7,.2,1) backwards;
}
@keyframes skillFill {
  from { width: 0 !important; }
}
.rm-skill-lvl {
  font-family: var(--f-pixel);
  font-size: 10px;
  color: var(--t-soft);
  text-align: right;
}

/* Projects */
.rm-projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.rm-project-card {
  background: white;
  border-radius: var(--r);
  border: 1.5px solid var(--b-soft);
  overflow: hidden;
  transition: all 300ms cubic-bezier(.2,.7,.2,1);
}
.rm-project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-card);
}
.rm-project-thumb {
  position: relative;
  height: 280px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.rm-project-mockup {
  transform: scale(0.55);
  transform-origin: center;
}
.rm-project-meta {
  padding: 16px 18px;
}
.rm-project-tag {
  font-family: var(--f-pixel);
  font-size: 10px;
  color: var(--c-purple);
  letter-spacing: 0.05em;
}
.rm-project-title {
  font-family: var(--f-display);
  font-size: 20px;
  color: var(--t-strong);
  margin-top: 4px;
}
.rm-project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.rm-project-link {
  font-size: 11px;
  font-family: var(--f-pixel);
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 1px solid currentColor;
  border-radius: 20px;
  padding: 3px 10px;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.rm-project-link:hover { opacity: 1; }

/* Gallery strip for image projects */
.rm-gallery-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.rm-gallery-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  opacity: 0.85;
  transition: opacity 0.15s, transform 0.15s;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.08);
}
.rm-gallery-thumb:hover {
  opacity: 1;
  transform: scale(1.08);
}

/* Education */
.rm-edu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.rm-edu-h {
  font-family: var(--f-pixel);
  font-size: 12px;
  color: var(--c-purple);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1.5px dashed var(--b-soft);
  letter-spacing: 0.05em;
}
.rm-edu-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  margin-bottom: 12px;
  align-items: start;
}
.rm-edu-period {
  font-family: var(--f-pixel);
  font-size: 11px;
  color: var(--t-soft);
  letter-spacing: 0.05em;
  padding-top: 4px;
}
.rm-edu-school {
  font-family: var(--f-display);
  font-size: 18px;
  color: var(--t-strong);
}
.rm-edu-major {
  font-size: 13px;
  color: var(--t-body);
  margin-top: 2px;
}
.rm-edu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rm-edu-list li {
  font-size: 14px;
  color: var(--t-body);
  display: flex;
  align-items: center;
  gap: 10px;
}
.rm-edu-dot {
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--c-purple);
}

/* Footer */
.rm-footer {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 32px 56px 24px;
  background: linear-gradient(180deg, rgba(250, 247, 255, 0) 0%, var(--bg) 40%);
}
.rm-scroll-hint {
  position: sticky;
  bottom: 88px;
  text-align: center;
  font-size: 18px;
  color: var(--c-purple);
  opacity: 0.5;
  pointer-events: none;
  animation: rmBounce 1.2s ease-in-out infinite;
  margin: 0 0 -24px;
}
@keyframes rmBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Responsive */
@media (max-width: 900px) {
  .rm-sheet { max-width: 100%; border-radius: 20px; }
  .rm-header { padding: 40px 24px 28px; }
  .rm-header-content { flex-direction: column; text-align: center; gap: 16px; }
  .rm-avatar { width: 100px; height: 100px; flex: 0 0 100px; }
  .rm-name { font-size: 42px; }
  .rm-intro, .rm-tabs, .rm-body, .rm-footer { padding-left: 24px; padding-right: 24px; }
  .rm-skills, .rm-projects, .rm-edu { grid-template-columns: 1fr; }
  .rm-skill-bar { grid-template-columns: 100px 1fr 32px; }
}


