:root {
  --bg: #0b0b0c;
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.62);
  --border: rgba(255, 255, 255, 0.14);
  --border2: rgba(255, 255, 255, 0.1);
  --radius: 16px;
  --max: 1080px;

  --panel: rgba(255, 255, 255, 0.04);
  --panel2: rgba(255, 255, 255, 0.06);
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(
      1100px 700px at 50% 18%,
      rgba(255, 255, 255, 0.1),
      transparent 55%
    ),
    radial-gradient(
      900px 600px at 20% 80%,
      rgba(255, 255, 255, 0.06),
      transparent 60%
    ),
    var(--bg);
  background-repeat: no-repeat; /* ← ADD THIS */
  background-attachment: fixed; /* optional but recommended */
  background-size: cover; /* optional, safer */
  color: var(--text);
  font:
    16px/1.45 -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    Inter,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}
::selection {
  background: rgba(255, 255, 255, 0.18);
}

.wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px 56px;
  position: relative;
  overflow: hidden;
}

/* Nav */
.nav {
  width: min(var(--max), 100%);
  display: flex;
  align-items: center;
  padding: 8px 2px 0;
  z-index: 5;
  position: relative;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.name {
  font-weight: 650;
  letter-spacing: -0.03em;
  font-size: 15px;
}

.addBtn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 0.12s ease,
    background 0.12s ease,
    filter 0.12s ease;
}
.addBtn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
  filter: brightness(1.03);
}
.addBtn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* ====== HERO / SEARCH STATES ====== */

.hero {
  width: min(var(--max), 100%);
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 3;
  position: relative;

  transition: margin-top 0.45s cubic-bezier(0.2, 0.9, 0.2, 1);
  will-change: margin-top;
}

body.results .hero {
  margin-top: 18px;
  text-align: left;
  align-items: stretch;
}

.heroTop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.9, 0.2, 1),
    opacity 0.35s ease,
    max-height 0.45s cubic-bezier(0.2, 0.9, 0.2, 1),
    margin 0.45s cubic-bezier(0.2, 0.9, 0.2, 1);
  overflow: hidden;
  max-height: 240px;
}

body.results .heroTop {
  opacity: 0;
  transform: translateY(-10px);
  max-height: 0px;
  margin-top: -8px;
  pointer-events: none;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-weight: 720;
}

.sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 16px;
  max-width: 65ch;
}

/* Search */
.search {
  margin-top: 28px;
  width: min(820px, 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition:
    margin-top 0.45s cubic-bezier(0.2, 0.9, 0.2, 1),
    width 0.45s cubic-bezier(0.2, 0.9, 0.2, 1),
    box-shadow 0.45s cubic-bezier(0.2, 0.9, 0.2, 1);
}

body.results .search {
  margin-top: 0px;
  width: min(var(--max), 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.38);
}

/* Collapse to 1 line when results are showing */
body.results .search .search-input-wrap {
  min-height: 44px;
  padding: 10px 14px 6px;
  transition: min-height 0.25s ease, padding 0.25s ease;
}
body.results .search textarea {
  min-height: 24px;
  max-height: 24px;
  overflow: hidden;
  transition: min-height 0.25s ease, max-height 0.25s ease;
}
/* Expand back when user focuses the input */
body.results .search:focus-within .search-input-wrap {
  min-height: 80px;
  padding: 14px 14px 8px;
}
body.results .search:focus-within textarea {
  min-height: 60px;
  max-height: 200px;
  overflow-y: auto;
}

.search-input-wrap {
  flex: 1;
  padding: 14px 14px 8px;
  min-height: 80px;
}

.search textarea {
  width: 100%;
  min-height: 60px;
  max-height: 200px;
  border: 0;
  outline: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  line-height: 1.5;
  padding: 0;
  letter-spacing: -0.01em;
  resize: none;
  font-family: inherit;
}
.search textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
  transition: opacity 0.18s ease;
}

.search-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  gap: 12px;
}

.reasoning-level {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.reasoning-opt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}
.reasoning-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.reasoning-opt:hover {
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
}
.reasoning-opt.reasoning-opt--active {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 550;
  background: rgba(255, 255, 255, 0.08);
}
.reasoning-opt.reasoning-opt--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: auto;
}
.reasoning-opt.reasoning-opt--disabled:hover {
  color: inherit;
  background: transparent;
}

.reasoning-sep {
  opacity: 0.4;
  user-select: none;
}

.spark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.8);
  flex: 0 0 auto;
}

input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  padding: 10px 6px;
  letter-spacing: -0.01em;
  min-width: 0;
}
input::placeholder {
  color: rgba(255, 255, 255, 0.45);
  transition: opacity 0.18s ease;
}

.go {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(0, 0, 0, 0.88);
  position: relative;
  font-weight: 650;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    filter 0.12s ease,
    opacity 0.2s ease;
  flex: 0 0 auto;
}
.go:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}
.go[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}
.go[disabled]:hover {
  transform: none;
  filter: none;
}

.go-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.go-icon--spinner {
  display: none;
}
.go.is-loading .go-icon--search {
  display: none;
}
.go.is-loading .go-icon--spinner {
  display: inline-flex;
  isolation: isolate; /* keep spinner animation independent of button transform */
}
.spinner-circle {
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-top-color: rgba(0, 0, 0, 0.75);
  border-radius: 50%;
  /* rotation applied via JS (requestAnimationFrame) so it can't be blocked by parent CSS */
}

/* Loading reasoning steps below search bar */
.loading-reasons {
  display: none;
  width: min(820px, 100%);
  margin-top: 20px;
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}
body.results .loading-reasons {
  width: min(var(--max), 100%);
}
.loading-reasons::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 40%;
  background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0.08));
  border-radius: 0 2px 2px 0;
  animation: loading-sweep 2s ease-in-out infinite;
}
@keyframes loading-sweep {
  0% { left: -40%; }
  50% { left: 100%; }
  100% { left: -40%; }
}
.loading-reasons.is-visible {
  display: block;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.loading-reasons-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: center;
}
.loading-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.35s ease;
}
.loading-step.loading-step--revealed {
  color: rgba(255, 255, 255, 0.95);
}
.loading-step-icon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  animation: loading-pulse 1.2s ease-in-out infinite;
}
.loading-step:nth-child(1) .loading-step-icon { animation-delay: 0s; }
.loading-step:nth-child(2) .loading-step-icon { animation-delay: 0.15s; }
.loading-step:nth-child(3) .loading-step-icon { animation-delay: 0.3s; }
.loading-step:nth-child(4) .loading-step-icon { animation-delay: 0.45s; }
@keyframes loading-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* ====== RESULTS AREA ====== */

.resultsWrap {
  width: min(var(--max), 100%);
  margin-top: 18px;
  z-index: 3;
  position: relative;

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;

  transition:
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.2, 0.9, 0.2, 1);
}

body.results .resultsWrap,
body.seo-page .resultsWrap {
  opacity: 1;
  transform: translateY(0px);
  pointer-events: auto;
}

/* SEO landing pages: ensure article text is visible and readable */
.seoSection {
  color: var(--text);
}
.seoSection p,
.seoSection li {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.seoSection ul {
  margin: 0.5rem 0 1rem 1.25rem;
  padding: 0;
}
.seoSection strong {
  color: rgba(255, 255, 255, 0.95);
}

.table {
  border: 1px solid var(--border2);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.4);
}

.head {
  display: grid;
  grid-template-columns:
    28px /* chevron */
    72px /* avatar */
    220px /* name */
    minmax(380px, 1fr) /* socials */
    max-content /* resume */
    130px; /* contact */
  gap: 0;
  align-items: center;

  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border2);
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.rowWrap {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rowBio {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  padding: 6px 14px 10px;
  transition: background 0.18s ease;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rowWrap.expanded .rowBio {
  -webkit-line-clamp: unset;
  overflow: visible;
}
.rowWrap:last-child {
  border-bottom: 0;
}

.row {
  display: grid;
  grid-template-columns:
    28px /* chevron */
    72px
    220px
    minmax(380px, 1fr)
    max-content
    130px;
  gap: 0;
  align-items: center;

  padding: 12px 14px;
  transition: background 0.18s ease;
  cursor: pointer;
  user-select: none;
}
.rowWrap:hover .row,
.rowWrap:hover .rowBio {
  background: rgba(255, 255, 255, 0.025);
}
.row:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.cell {
  min-width: 0;
}

.chevron {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.18s ease;
}

.rowWrap.expanded .chevron {
  transform: rotate(90deg);
}

/* round column */
.round {
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pfp {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.pfp img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pfp .pfp-placeholder {
  width: 100%;
  height: 100%;
  padding: 20%;
  box-sizing: border-box;
  fill: rgba(255, 255, 255, 0.18);
  display: block;
}

/* name column */
.nameCol {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.personName {
  font-weight: 650;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.desc {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* social chips */
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: center;
  min-width: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.9);
  transition:
    transform 0.12s ease,
    filter 0.12s ease,
    background 0.12s ease;
  max-width: 100%;
  cursor: pointer;
}
.chip:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}
.chip .handle {
  opacity: 0.92;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  opacity: 0.92;
  flex: 0 0 auto;
}

/* theme colors per social */
.chip.linkedin {
  background: rgba(10, 102, 194, 0.22);
  border-color: rgba(10, 102, 194, 0.35);
}
.chip.instagram {
  background: rgba(225, 48, 108, 0.18);
  border-color: rgba(225, 48, 108, 0.3);
}
.chip.github {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}
.chip.scholar {
  background: rgba(66, 133, 244, 0.18);
  border-color: rgba(66, 133, 244, 0.3);
}
.chip.site {
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.26);
}
.chip.twitter {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}
.chip.youtube {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.28);
}
.chip.tiktok {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

/* resume link */
.resume a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  transition:
    transform 0.12s ease,
    filter 0.12s ease;
  max-width: 100%;
  cursor: pointer;
}
.resume a:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}
.resume span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
  display: inline-block;
  opacity: 0.92;
}

/* contact button */
.contact {
  display: flex;
  justify-content: flex-end;
}
.contact a,
.contact button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(0, 0, 0, 0.88);
  font-weight: 650;
  font-size: 13px;
  letter-spacing: -0.01em;
  transition:
    transform 0.12s ease,
    filter 0.12s ease;
  cursor: pointer;
}
.contact a:hover,
.contact button:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}
.contact button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
}
.contact button:hover {
  filter: brightness(1.05);
}

/* Expand details */
.details {
  display: none;
  padding: 14px 14px 16px;
  background: rgba(255, 255, 255, 0.018);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.rowWrap.expanded .details {
  display: block;
}

.detailsGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.aiCard {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 12px 12px;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}
.aiTitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.aiText {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rowWrap.expanded .aiText {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.tagPanel {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tagRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.bubble {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1;
  max-width: 100%;
}

.bubble .btxt {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

.bubble.skill {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.84);
}

.bubble.education {
  background: rgba(234, 179, 8, 0.18); /* amber-400 */
  border-color: rgba(234, 179, 8, 0.45);
  color: white;
  font-weight: 600;
}

.bubble.experience {
  background: rgba(59, 130, 246, 0.18); /* blue-500 */
  border-color: rgba(59, 130, 246, 0.35);
  color: white;
  font-weight: 500;
}

.bubble.level {
  background: rgba(168, 85, 247, 0.18); /* purple-500 */
  border-color: rgba(168, 85, 247, 0.35);
  color: white;
  font-weight: 500;
}

.bubble.years {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

.moreHint {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  margin-top: 2px;
}

/* Empty states */
.empty {
  padding: 22px 18px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

.error {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 90, 90, 0.25);
  background: rgba(255, 90, 90, 0.08);
  color: rgba(255, 255, 255, 0.86);
  display: none;
}
.error.show {
  display: block;
}

/* Responsive */
@media (max-width: 980px) {
  .head,
  .row {
    grid-template-columns:
      72px minmax(160px, 240px) minmax(260px, 1fr)
      max-content 130px;
  }
  .resume span {
    max-width: 150px;
  }
}

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

@media (max-width: 760px) {
  .head {
    display: none;
  }

  /* Use a compact 3-column layout on narrow screens so chevron, avatar
     and main content align cleanly and don't stack awkwardly. */
  .row {
    /* Two-row layout:
       - Row 1: chevron, avatar, name (spans remaining columns)
       - Row 2: socials + resume + contact on ONE line */
    grid-template-columns: 36px 56px 1fr max-content max-content;
    gap: 10px;
    padding: 10px;
    align-items: center;
  }

  .nameCol {
    grid-column: 3 / -1;
  }

  .socials,
  .resume,
  .contact {
    grid-row: 2;
    margin-top: 0;
  }
  .socials {
    grid-column: 3;
  }
  .resume {
    grid-column: 4;
  }
  .contact {
    grid-column: 5;
  }

  .chevron {
    width: 24px;
    height: 24px;
  }

  .pfp {
    width: 42px;
    height: 42px;
  }

  .personName {
    font-size: 15px;
  }

  .desc {
    color: rgba(255, 255, 255, 0.56);
    font-size: 12px;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  /* Make chips/bubbles smaller and allow wrapping */
  .tagPanel {
    gap: 8px;
  }
  .tagRow {
    gap: 6px;
  }
  .bubble {
    padding: 6px 8px;
    font-size: 12px;
  }
  .bubble .btxt {
    max-width: 160px;
  }

  /* Social icons should stay horizontal on mobile */
  .socials {
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
  }
  .socials::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }
  .chip {
    flex: 0 0 auto;
    padding: 7px;
    gap: 0;
    border-radius: 999px;
  }
  .chip .handle {
    display: none;
  }
  .chip .icon {
    width: 16px;
    height: 16px;
  }

  .resume a,
  .contact a,
  .contact button {
    padding: 6px 8px;
    font-size: 12px;
    border-radius: 10px;
  }

  .round {
    justify-content: flex-start;
  }
  .resume span {
    max-width: 180px;
  }
}

/* Footer */
.foot {
  margin-top: auto;
  width: min(var(--max), 100%);
  padding-top: 22px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 12px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 80px;
  z-index: 3;
  position: relative;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

.demoSection {
  width: min(var(--max), 100%);
  margin-top: 60px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0px 0px 15px gray;
}

#demo-vid {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  border-radius: 20px;

  object-fit: cover; /* key: fills frame, crops excess */
  object-position: center;
  display: block;
}

#signin-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  max-width: 90%;
  background: rgba(11, 11, 12, 0.95);
  border-radius: 16px;
  padding: 62px 44px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  line-height: 1.25;
  text-align: center;
  color: var(--text, rgba(255, 255, 255, 0.92));
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.45);
  z-index: 999;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  box-shadow: 0px 0px 20px rgba(255, 255, 255, 0.1);
}

#signin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  line-height: 1;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    filter 0.12s ease,
    background 0.12s ease;
}

.pill {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);

  /* very subtle gradient */
  background: linear-gradient(
    135deg,
    rgba(120, 119, 198, 0.15),
    rgba(0, 212, 255, 0.12),
    rgba(168, 85, 247, 0.15)
  );

  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}


.gradient-text {
  background: linear-gradient(90deg, #dbeafe, #e9d5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 400;
}