/* ══════════════════════════════════
   VARIABLES & BASE
══════════════════════════════════ */
:root {
  --dark: #303030;
  --bg:   #ffffff;
  --yellow: #f5f052;
  --muted: rgba(48,48,48,0.42);
  --border: rgba(48,48,48,0.12);
  --pad: 40px;
  /* keep for modal backwards-compat */
  --blue: #303030;
  --red:  #303030;
  --white: #ffffff;
}
html { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0; }
html, body {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  color: var(--dark);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(230,230,230,0.8); -webkit-text-fill-color: var(--dark); }
::-webkit-scrollbar { display: none; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ══════════════════════════════════
   NAV
══════════════════════════════════ */
nav {
  position: sticky;
  top: 20px;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0;
  background: transparent;
  pointer-events: none;
}
.nav-pill {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.50);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(48,48,48,0.06);
  border-radius: 999px;
  padding: 5px 12px;
  height: 44px;
  pointer-events: all;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  position: relative;
}
.nav-pill a,
.nav-home-btn,
.nav-ai-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 400;
  color: rgba(48,48,48,0.65);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 5px 13px;
  cursor: pointer;
  transition: background .15s, color .15s;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}
.nav-pill a:hover,
.nav-home-btn:hover,
.nav-ai-btn:hover { color: var(--dark); text-decoration: none; }
/* TODO: re-enable language toggle */
.lang-toggle { display: none; }
.nav-pill a.active,
.nav-home-btn.active {
  color: var(--dark);
  font-weight: 500;
}

/* ── Limelight bar (top edge, slides to active item) ── */
.nav-limelight {
  position: absolute;
  top: 0;
  left: -999px;
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: #7B61FF;
  box-shadow:
    0 0 8px 2px rgba(123,97,255,0.5),
    0 4px 24px 0px rgba(123,97,255,0.25);
  pointer-events: none;
  z-index: 1;
}
.nav-limelight::after {
  content: '';
  position: absolute;
  left: -30%;
  top: 5px;
  width: 160%;
  height: 52px;
  clip-path: polygon(5% 100%, 22% 0, 78% 0, 95% 100%);
  background: linear-gradient(to bottom, rgba(123,97,255,0.15), transparent);
  pointer-events: none;
}

/* AI Match button – yellow dot before text */
.nav-ai-btn {
  font-weight: 500;
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav-ai-btn::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
}

/* ══════════════════════════════════
   INTRO
══════════════════════════════════ */
.intro {
  padding: 80px var(--pad) 64px;
  max-width: 1220px;
  margin: 0 auto;
}
.intro-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1em;
  height: 1.1em;
  border-radius: 50%;
  background: #eeecea;
  vertical-align: middle;
  margin-right: 0.25em;
  position: relative;
  top: -0.06em;
  overflow: hidden;
  font-size: 0.75em;
}
.intro p:first-child {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--dark);
}
.intro mark {
  background: var(--yellow);
  color: var(--dark);
  padding: 0 3px;
  font-style: normal;
}
.intro-note {
  margin-top: 28px;
  font-size: 12px;
  color: var(--dark);
  opacity: 0.38;
}

/* ══════════════════════════════════
   WORK SECTION
══════════════════════════════════ */
#work {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* FILTERS */
.work-filters-wrap {
  padding: 20px 0 18px;
  margin-bottom: 1px;
}
.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-scroll {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
}
.filter-scroll::-webkit-scrollbar { display: none; }
.filter-label { display: none; }
.filter-group { display: flex; gap: 6px; flex-wrap: nowrap; }
.filter-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(48,48,48,0.18);
  background: transparent;
  color: var(--dark);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.filter-btn:hover { border-color: rgba(48,48,48,0.45); }
.filter-btn.active {
  background: #7B61FF;
  color: #fff;
  border-color: transparent;
}
.filter-clear {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(48,48,48,0.18);
  background: transparent;
  color: var(--dark);
  cursor: pointer;
  white-space: nowrap;
  opacity: 0.5;
  transition: opacity .15s;
}
.filter-clear:hover { opacity: 1; }

/* WORK GRID */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 345px;
  gap: 16px;
  margin-bottom: 80px;
}

/* CARDS */
.work-card {
  background: #EEEDE5;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  transition: opacity .2s;
}
.work-card:hover { opacity: 0.88; }
.work-card.bento-wide { grid-column: span 2; }
.work-card.bento-tall { grid-row: span 2; }

.work-thumb {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: #EEEDE5;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.work-card-label {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--dark);
  border-radius: 999px;
  line-height: 1.4;
  max-width: calc(100% - 32px);
}
.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.work-card:hover .thumb-img { transform: scale(1.5); }
.work-thumb.thumb-rotate:hover .thumb-img { transform: scale(1.5) rotate(15deg); }
.thumb-placeholder {
  font-size: 48px;
  opacity: 0.18;
}
.work-card-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 16px 12px;
  display: flex;
  align-items: center;
  z-index: 1;
  background: #EEEDE5;
  font-size: 12px;
  color: var(--dark);
  opacity: 0.75;
  line-height: 1.5;
  letter-spacing: 0.01em;
}
.work-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  color: var(--dark);
  opacity: 1;
}
.work-tag.award { background: var(--yellow); opacity: 1; }
.work-tag-row { display: none; } /* legacy, hidden */
.work-empty {
  grid-column: 1/-1;
  padding: 80px;
  text-align: center;
  opacity: 0.28;
  font-style: italic;
}

/* ══════════════════════════════════
   MODAL (generic)
══════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.2);
  z-index: 1000;
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #f5f5f2;
  border-radius: 24px;
  width: min(580px, 92vw);
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 16px;
}
.modal-title { font-size: 14px; font-weight: 500; }
.modal-close {
  font-family: 'IBM Plex Mono', monospace; font-size: 18px;
  background: rgba(48,48,48,0.08); border-radius: 50%;
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  color: var(--dark); cursor: pointer; opacity: 0.5; transition: opacity .15s;
}
.modal-close:hover { opacity: 1; }
.modal-body { padding: 20px 24px; }
.modal-textarea {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px; font-weight: 400;
  color: var(--dark);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  width: 100%; height: 200px;
  resize: none; padding: 14px 16px;
  line-height: 1.6;
}
.modal-textarea::placeholder { opacity: 0.3; }
.modal-footer {
  display: flex; justify-content: flex-end;
  padding: 8px 24px 20px; gap: 8px;
}
.modal-cancel {
  font-family: 'IBM Plex Mono', monospace; font-size: 13px;
  padding: 8px 18px; background: rgba(48,48,48,0.08);
  border-radius: 999px; color: var(--dark);
  cursor: pointer; transition: background .15s;
}
.modal-cancel:hover { background: rgba(48,48,48,0.14); }
.modal-run {
  font-family: 'IBM Plex Mono', monospace; font-size: 13px;
  padding: 8px 18px; background: var(--dark); color: #fff;
  border-radius: 999px; cursor: pointer; transition: opacity .15s;
}
.modal-run:hover { opacity: 0.8; }
.modal-run.loading { opacity: 0.5; cursor: wait; }

/* ══════════════════════════════════
   PDF MODAL
══════════════════════════════════ */
.pdf-modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 2000;
  align-items: center; justify-content: center;
  padding: 24px;
}
.pdf-modal-overlay.open { display: flex; }
.pdf-modal {
  background: #fff;
  border: none;
  border-radius: 24px;
  width: min(960px, 95vw);
  height: 90vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}
.pdf-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(48,48,48,0.08);
  flex-shrink: 0;
}
.pdf-modal-title { font-size: 13px; opacity: 0.5; font-style: italic; }
.pdf-modal-close {
  font-family: 'IBM Plex Mono', monospace; font-size: 22px;
  background: none; border: none; color: var(--dark);
  cursor: pointer; line-height: 1; padding: 0 4px; opacity: 0.4;
}
.pdf-modal-close:hover { opacity: 1; }
.pdf-modal iframe { flex: 1; border: none; width: 100%; border-radius: 0 0 24px 24px; }

/* ══════════════════════════════════
   MATCH MODAL
══════════════════════════════════ */
.match-modal { max-width: 580px; width: 92vw; }
.match-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
}
.match-tab {
  padding: 10px 0;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  color: rgba(48,48,48,0.4);
  transition: color .15s;
}
.match-tab:hover {
  color: rgba(48,48,48,0.7);
}
.match-tab.active {
  color: var(--dark);
  font-weight: 500;
}
.match-tab-sep {
  font-size: 12px;
  color: rgba(48,48,48,0.2);
}
.match-panel { padding: 0 24px 0; }
.match-project-list {
  display: flex; flex-direction: column; gap: 2px;
  max-height: 260px; overflow-y: auto; margin-bottom: 16px;
  background: #fff; border-radius: 12px; padding: 4px;
}
.match-project-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  cursor: pointer; font-size: 12px; color: var(--dark);
  transition: background .12s;
}
.match-project-item:hover { background: #f5f5f2; }
.match-project-item input[type=checkbox] { accent-color: var(--dark); width: 14px; height: 14px; cursor: pointer; flex-shrink: 0; }
.ai-result-modal {
  display: none; margin: 12px 0; font-size: 12px;
  color: var(--dark); opacity: 0.7; line-height: 1.7;
  white-space: pre-line; padding: 12px 14px;
  background: #fff; border-radius: 12px;
}
.ai-result-modal.visible { display: block; }
.modal-share-hidden { display: none; }
.modal-share-hidden.visible { display: inline-flex; }
.match-job-input { padding: 12px 4px 4px; }
.match-job-input input {
  width: 100%; border: none;
  border-bottom: 1px solid var(--border);
  padding: 6px 0; font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; color: var(--dark); background: transparent;
  outline: none; opacity: 0.6;
}
.match-job-input input::placeholder { opacity: 0.35; }
.match-job-input input:focus { opacity: 1; border-bottom-color: var(--dark); }

/* ══════════════════════════════════
   HERO
══════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px var(--pad) 40px;
}

/* Grid background */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(48,48,48,0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(48,48,48,0.08) 1px, transparent 1px);
  background-size: 3rem 3rem;
  opacity: 0.3;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 70%, transparent 110%);
  -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 70%, transparent 110%);
  pointer-events: none;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
}

/* Announcement pill */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.hero-pill-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--dark);
  transition: color .15s;
}
.hero-pill-link:hover { color: #7B61FF; text-decoration: none; }

/* Hero card with plus corners */
.hero-card-wrap {
  margin-bottom: 20px;
}
.hero-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 48px;
  mask-image: radial-gradient(800rem 96rem at center, white, transparent);
  -webkit-mask-image: radial-gradient(800rem 96rem at center, white, transparent);
}
.corner-plus {
  position: absolute;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  color: var(--yellow);
  pointer-events: none;
  user-select: none;
}
.c-tl { top: 12px; left: 16px; }
.c-tr { top: 12px; right: 16px; }
.c-bl { bottom: 12px; left: 16px; }
.c-br { bottom: 12px; right: 16px; }

.hero-title {
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--dark);
  letter-spacing: -0.02em;
}
.hero-title-accent {
  color: var(--yellow);
  font-weight: 700;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  color: #22c55e;
  font-weight: 500;
}
.status-dot {
  position: relative;
  width: 10px;
  height: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.status-dot-pulse {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: statusPing 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes statusPing {
  75%, 100% { transform: scale(2.5); opacity: 0; }
}

.hero-subtitle {
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 12px;
}
.hero-name {
  color: var(--yellow);
  font-weight: 700;
}

.hero-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 600px;
}
.hero-typewriter {
  color: #3b82f6;
  font-weight: 600;
}
.tw-cursor {
  animation: twBlink 0.8s step-end infinite;
  color: var(--dark);
}
@keyframes twBlink {
  50% { opacity: 0; }
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 10px 28px;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity .15s;
  box-shadow: 0 4px 20px rgba(48,48,48,0.18);
}
.hero-btn-primary:hover { opacity: 0.85; text-decoration: none; }

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 10px 28px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--dark);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.hero-btn-secondary:hover { background: rgba(48,48,48,0.04); border-color: rgba(48,48,48,0.35); text-decoration: none; }

@media (max-width: 640px) {
  .hero-section { padding: 100px 20px 40px; min-height: auto; }
  .hero-card { padding: 28px 20px; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-btn-primary, .hero-btn-secondary { justify-content: center; }
}

/* ══════════════════════════════════
   SHARE OVERLAY  – white scrollable layout
══════════════════════════════════ */
#share-overlay {
  position: fixed; inset: 0;
  background: #f9f9f7;
  z-index: 9999;
  overflow-y: auto;
}

/* Scrollable page column */
.share-page {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 32px 80px;
  box-sizing: border-box;
}

/* Cards container – relative in flow, sized by JS */
.share-cards {
  position: relative;
  width: 100%;
  margin: 40px 0;
}

.share-header {
  display: flex; align-items: center; justify-content: flex-end;
  margin-bottom: 40px;
}
.share-copy-btn {
  border: 1px solid rgba(48,48,48,0.2); background: transparent;
  color: rgba(48,48,48,0.55); padding: 5px 14px;
  border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.share-copy-btn:hover { background: #7B61FF; color: #fff; }

/* HeroHighlight: dot-grid background + radial mouse-follow highlight */
.hero-highlight {
  position: relative;
  padding: 32px 16px;
  border-radius: 12px;
  overflow: hidden;
}

.hero-highlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgb(212 212 212) 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
  opacity: 0.7;
}

.hero-highlight::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgb(99 102 241) 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%), black 0%, transparent 100%);
  mask-image: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%), black 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.hero-highlight:hover::after {
  opacity: 1;
}

.hero-highlight .share-intro {
  position: relative;
  z-index: 1;
}

.share-intro { margin-bottom: 20px; }
.share-greeting {
  font-size: clamp(28px, 4vw, 52px); font-weight: 400;
  color: var(--dark); margin-bottom: 12px;
}
.share-subtitle {
  font-size: clamp(16px, 2vw, 26px); font-weight: 400;
  color: rgba(48,48,48,0.65); line-height: 1.6;
}
.share-intro mark {
  background: linear-gradient(to right, var(--yellow), #e8d5ff);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: left center;
  animation: highlightExpand 2s ease-in 0.5s forwards;
  color: var(--dark);
  padding: 0 4px;
  border-radius: 6px;
}
@keyframes highlightExpand {
  0% { background-size: 0% 100%; }
  100% { background-size: 100% 100%; }
}
.share-reason {
  font-size: 12px;
  color: rgba(48,48,48,0.6);
  font-style: italic;
  line-height: 1.6;
  margin-top: 16px;
}
.share-footer {
  margin-top: 60px;
  display: flex; align-items: center; justify-content: center;
}

/* CTA marquee (InfiniteTextMarquee inside button) */
.share-cta-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
  z-index: 10;
}

.share-cta-marquee {
  position: relative;
  width: 220px;
  height: 56px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(48,48,48,0.25);
  border-radius: 28px;
  background: rgba(48,48,48,0.02);
  transition: border-color .2s, background .2s;
}

.share-cta-marquee:hover {
  border-color: rgba(48,48,48,0.5);
  background: rgba(48,48,48,0.05);
}

.share-cta-track {
  display: flex;
  white-space: nowrap;
  will-change: transform;
  animation: ctaMarquee 6s linear infinite;
  height: 100%;
  align-items: center;
}

.share-cta-track span {
  font-size: 16px;
  font-weight: 600;
  color: #7B61FF;
  opacity: 0.6;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  transition: color .2s;
  padding: 0 8px;
}

.share-cta-marquee:hover .share-cta-track span {
  opacity: 1;
}

@keyframes ctaMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.share-cta-tooltip {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--dark);
  padding: 8px 16px;
  border-radius: 12px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .3s;
  transform: translate(-50%, -140%);
}

/* ── Project showcase (ported from project-showcase.tsx) ── */

.sp-showcase {
  display: flex;
  flex-direction: column;
}

.sp-project {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.sp-project:hover { text-decoration: none; }

.sp-project-inner {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid rgba(48,48,48,0.1);
  transition: background .3s;
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
  border-radius: 8px;
}

.sp-project:last-child .sp-project-inner {
  border-bottom: 1px solid rgba(48,48,48,0.1);
}

.sp-project-bg {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}

.sp-project:hover .sp-project-bg {
  opacity: 1;
  transform: scale(1);
}

.sp-project-info {
  flex: 1;
  min-width: 0;
}

.sp-project-info h3 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 6px;
  position: relative;
  display: inline-block;
}

.sp-project-title-line {
  display: none;
}

.sp-project-sub-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.sp-project-info p {
  font-size: 13px;
  color: rgba(48,48,48,0.45);
  line-height: 1.5;
}

.sp-project-tags {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: rgba(48,48,48,0.35);
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: auto;
}

.sp-project.sp-active .sp-project-inner {
  background: rgba(245, 240, 82, 0.2);
}

.sp-project-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sp-project-arrow {
  width: 16px;
  height: 16px;
  opacity: 0;
  transform: translateX(-8px) translateY(8px);
  transition: opacity .3s, transform .3s;
  color: rgba(48,48,48,0.4);
  display: inline-block;
}

.sp-project-arrow::before {
  content: '↗';
  font-size: 16px;
}

.sp-project.sp-active .sp-project-arrow {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* Mobile */
/* ══════════════════════════════════
   HERO (Hyper-text Decryption)
══════════════════════════════════ */

/* Grid background */
.hero-hyper {
  padding-top: calc(20px + 44px + 60px);
  padding-bottom: 40px;
}
.hero-hyper-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(48,48,48,0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(48,48,48,0.08) 1px, transparent 1px);
  background-size: 48px 32px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 50%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 50%, transparent 100%);
  pointer-events: none;
}

.hero-hyper-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 var(--pad);
  width: 100%;
  animation: hyperFadeIn 0.8s ease-out both;
}
@keyframes hyperFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Pill */
.hero-hyper-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 32px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.pill-dot {
  position: relative;
  width: 8px;
  height: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pill-dot-ping {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #60a5fa;
  animation: hyperPing 1.5s cubic-bezier(0,0,0.2,1) infinite;
}
@keyframes hyperPing {
  75%, 100% { transform: scale(2.5); opacity: 0; }
}
.pill-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7280;
}

/* Card */
.hero-hyper-card {
  width: 100%;
}

.hero-greeting {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 700;
  color: #1f2937;
  line-height: 1.8;
  margin-bottom: 4px;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4px;
  overflow: visible;
}
.hero-photo {
  width: 1.1em;
  height: 1.1em;
  object-fit: cover;
  border-radius: 0;
  border: none;
  box-shadow: none;
  transform: rotate(-4deg);
  vertical-align: middle;
  display: inline-block;
  margin: 0 4px;
  transition: transform 0.3s ease;
}
.hero-photo:hover {
  animation: photoWobble 0.4s ease-in-out infinite alternate;
}
.hero-portrait {
  width: 1.6em;
  height: 1.6em;
  object-fit: cover;
  vertical-align: middle;
  margin: 0 6px;
  transform: rotate(-2deg);
  transition: transform .2s;
  overflow: visible;
}
.hero-portrait:hover {
  animation: photoWobble 0.4s ease-in-out infinite alternate;
}
@keyframes photoWobble {
  0%   { transform: rotate(-8deg) translateX(-2px); }
  100% { transform: rotate(8deg) translateX(2px); }
}
.hero-role {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(14px, 2vw, 22px);
  font-weight: 400;
  color: rgba(48,48,48,0.55);
  line-height: 1.5;
  margin-bottom: 20px;
}

.hyper-paragraph {
  padding: 12px 0;
  text-align: left;
  line-height: 2.6;
}

/* Hyper-text words */
.hyper-word {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.6;
  color: #1f2937;
  position: relative;
  display: inline-block;
  cursor: default;
  vertical-align: top;
  transition: color 0.25s, opacity 0.3s, filter 0.3s, transform 0.3s;
  padding: 2px 4px;
  border-radius: 8px;
}
.hyper-word.hyper-highlight {
  color: #1f2937;
  cursor: pointer;
  padding: 0;
  border-radius: 0;
  transition: none;
}
.hyper-star {
  color: #7B61FF;
  font-weight: 700;
}
.hyper-curve {
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 12px;
  pointer-events: none;
  overflow: visible;
}

/* ── PointerHighlight effect ── */
.pointer-highlight {
  position: relative;
  display: inline-block;
  padding: 2px 4px;
  margin: -2px -4px;
  background: rgba(245, 240, 82, 0.4);
}

.pointer-highlight .ph-rect {
  position: absolute;
  inset: 0;
  border: 1px solid var(--dark);
  border-radius: 4px;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.pointer-highlight.in-view .ph-rect {
  opacity: 1;
  animation: phRectGrow 0.8s 0.2s ease-out forwards;
}

@keyframes phRectGrow {
  0%   { width: 0; height: 0; }
  100% { width: 100%; height: 100%; }
}

.pointer-highlight .ph-cursor {
  position: absolute;
  left: calc(100% + 4px);
  top: 100%;
  opacity: 0;
  pointer-events: none;
  color: #7B61FF;
}

.pointer-highlight.in-view .ph-cursor {
  opacity: 1;
  animation: phCursorIn 0.3s 1s ease-out forwards;
}

@keyframes phCursorIn {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}
.hyper-word.hyper-hover {
  color: #1f2937;
  transform: translateY(-2px);
  z-index: 20;
}
.hyper-word.hyper-hover::after {
  display: none;
}
/* Tech corner dots */
.hyper-word.hyper-hover .corner-dot {
  display: none;
}
.hyper-word.hyper-dimmed {
  opacity: 0.3;
  filter: blur(2px);
}

/* Hint */
.hero-hyper-hint {
  margin-top: 24px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: #9ca3af;
  text-align: left;
}

@media (max-width: 640px) {
  .hero-hyper { padding: 100px 20px 40px; min-height: auto; }
  .hero-hyper-card { padding: 28px 20px; }
  .ambience-blob { opacity: 0.15; }
}

/* ══════════════════════════════════
   FOOTER (taped card design)
══════════════════════════════════ */
.site-footer {
  max-width: 1220px;
  margin: 0 auto;
  padding: 80px var(--pad) 60px;
}

.footer-tape {
  position: absolute;
  width: 120px;
  height: 40px;
  background: rgba(123, 97, 255, 0.4);
  z-index: 2;
}
.footer-dog-img {
  position: absolute;
  top: -114px;
  right: 20px;
  width: 180px;
  z-index: 2;
  transform: rotate(0.1deg);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
  cursor: pointer;
  transition: transform .2s;
}
.footer-dog-img:hover {
  animation: dogWobble 0.4s ease-in-out infinite alternate;
}
@keyframes dogWobble {
  0%   { transform: rotate(2deg) translateX(-4px); }
  100% { transform: rotate(10deg) translateX(4px); }
}
.footer-tape-right {
  top: -14px;
  right: 40px;
  transform: rotate(6deg);
}

.footer-tape-card {
  position: relative;
  background: var(--bg);
  border-radius: 24px;
  padding: 40px 48px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transform: rotate(0.8deg);
  transform-origin: center;
}

.footer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 16px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
}

.footer-tagline {
  font-size: 14px;
  color: rgba(48,48,48,0.75);
}

.footer-contacts-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-contact-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  transition: transform .15s;
}

.footer-contact-btn svg,
.footer-contact-btn img {
  position: relative;
  z-index: 1;
  transition: filter .3s;
}

.footer-contact-btn:hover svg,
.footer-contact-btn:hover img,
.footer-contact-btn.copied svg,
.footer-contact-btn.copied img {
  filter: brightness(0) invert(1);
}

.footer-contact-btn:hover {
  transform: scale(1.1);
}

.btn-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: #7B61FF;
  transition: height .3s ease-in-out;
  border-radius: 50%;
}

.footer-contact-btn:hover .btn-fill,
.footer-contact-btn.copied .btn-fill {
  height: 100%;
}

.footer-contact-btn.copied {
  background: none;
}

.footer-contact-btn .copy-feedback {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #fff;
  background: #7B61FF;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, bottom .2s;
}

.footer-contact-btn.copied .copy-feedback {
  opacity: 1;
  bottom: -30px;
}

.page-copyright {
  width: 100%;
  text-align: center;
  padding: 24px var(--pad) 32px;
  font-size: 11px;
  color: var(--muted);
}

/* About inside footer */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 3fr;
  min-height: auto;
  background: transparent;
  border-radius: 0;
  padding-top: 40px;
  overflow: visible;
}

.about-left {
  position: relative;
  padding: 5px 40px 0 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about-left::after {
  content: '';
  display: none;
}

.about-right {
  padding: 0 0 0 48px;
  margin-top: -10px;
}

.about-portrait {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 16px;
  object-fit: cover;
  aspect-ratio: 1/1;
}

.about-name {
  display: none;
}

.about-role {
  display: none;
}

.about-bio {
  display: none;
}

.about-sub { font-size: 11px; margin-bottom: 10px; margin-top: 24px; letter-spacing: 0.05em; color: #7B61FF; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0; }
.chip {
  font-size: 12px;
  color: var(--dark);
  opacity: 0.65;
}
.chip::after { content: '\00a0/\00a0'; opacity: 0.4; }
.chip:last-child::after { display: none; }
.award-row { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; }
.award-icon { font-size: 16px; flex-shrink: 0; }
.award-name { font-size: 13px; font-weight: 500; margin-bottom: 3px; }
.award-sub { font-size: 11px; opacity: 0.45; }
.exp-item { margin-bottom: 20px; }
.exp-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.exp-role { font-size: 14px; font-weight: 500; }
.exp-co { font-size: 12px; opacity: 0.5; }
.exp-period { font-size: 11px; opacity: 0.35; margin-left: auto; }
.exp-desc { font-size: 12px; opacity: 0.55; line-height: 1.7; }
.edu-row { display: flex; gap: 20px; margin-bottom: 12px; }
.edu-yr { font-size: 11px; opacity: 0.35; width: 80px; flex-shrink: 0; padding-top: 2px; }
.edu-school { font-size: 13px; font-weight: 500; margin-bottom: 3px; }
.edu-major { font-size: 12px; opacity: 0.5; }

@media (max-width: 640px) {
  /* Force single-column bento grid */
  .work-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 12px;
  }
  .work-card.bento-wide,
  .work-card.bento-tall {
    grid-column: span 1;
    grid-row: span 1;
  }
  .work-card { min-height: 260px; }

  /* Nav */
  .nav-pill { gap: 8px !important; padding: 6px 14px !important; }
  .nav-limelight { display: none !important; }
  .nav-home-btn, nav a, .nav-ai-btn { font-size: 12px !important; padding: 6px 10px !important; }

  /* Hero */
  :root { --pad: 20px; }
  .hero-hyper { padding-top: calc(20px + 36px + 40px); padding-bottom: 24px; }
  .hero-hyper-grid { background-size: 24px 16px; }
  .hero-role { font-size: 14px !important; }

  /* Share page */
  .share-page { padding: 32px 20px 60px; }
  .share-intro { margin-bottom: 16px; }
  .share-subtitle { font-size: 16px !important; }
  .share-greeting { font-size: 28px !important; }
  .sp-project-tags { display: none; }
  .share-cta-marquee { width: 180px !important; }

  /* Filters */
  #industry-filter, #skill-filter { gap: 6px !important; }
  .filter-btn { font-size: 12px !important; padding: 6px 12px !important; }

  /* Footer */
  .footer-tape-card { padding: 32px 20px; }
  .footer-tape { width: 80px; height: 30px; }
  .footer-tape-left { left: 16px; }
  .footer-tape-right { right: 16px; }
  .footer-header { flex-direction: column; }
  .footer-contacts-row { justify-content: flex-start; }
  .about-grid { grid-template-columns: 1fr; }
  .about-left { padding: 0; }
  .about-left::after { display: none; }
  .about-right { padding: 0; }
}

/* ══════════════════════════════════
   WECHAT BROWSER TIP
══════════════════════════════════ */
#wechat-tip {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.75);
  z-index: 10000;
  animation: wechatFadeIn 0.3s ease;
}
@keyframes wechatFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.wechat-tip-content {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #fff;
  color: #333;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  padding: 20px 24px;
  border-radius: 12px;
  line-height: 1.8;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.wechat-tip-content p { margin: 0; }
.wechat-tip-arrow {
  position: absolute;
  top: -8px;
  right: 30px;
  font-size: 20px;
  color: #fff;
}
