/* =============================================
   PORTFOLIO — DESIGN SYSTEM
   ============================================= */

/* ---- Custom Fonts ---- */
@font-face {
  font-family: "Portfolio Sans";
  src: url("https://cdn.prod.website-files.com/67ce28cfec624e2b733f8a52/6931e8a95706378cf227c83d_AnthropicSans-Roman-Web.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Portfolio Sans";
  src: url("https://cdn.prod.website-files.com/67ce28cfec624e2b733f8a52/6931e8a96f4a2fb0fac5769d_AnthropicSans-Italic-Web.woff2") format("woff2");
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Portfolio Serif";
  src: url("https://cdn.prod.website-files.com/67ce28cfec624e2b733f8a52/6931e8aa15739b7c09d56ee1_AnthropicSerif-Roman-Web.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Portfolio Serif";
  src: url("https://cdn.prod.website-files.com/67ce28cfec624e2b733f8a52/6931e8aaff2421cbb9f4cebe_AnthropicSerif-Italic-Web.woff2") format("woff2");
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}

/* ---- Design Tokens ---- */
:root {
  --bg: #f5f5f7;
  --sidebar-bg: #f5f5f7;
  --elevated: #ffffff;
  --card: #ffffff;
  --border: #d2d2d7;
  --text: #1d1d1f;
  --text-2: #424245;
  --text-3: #86868b;
  --coral: #1d1d1f;
  --coral-muted: #6e6e73;
  --blue: #1d1d1f;
  --radius: 10px;
  --radius-sm: 6px;
  --sans: "pacaembu", Arial, sans-serif;
  --serif: "legitima", Georgia, serif;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Subtle film grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

a {
  color: var(--text-2);
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* =============================================
   CENTERED LAYOUT
   ============================================= */
.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

/* ---- Top Header ---- */
.top-header {
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  z-index: 10;
}

.top-header-inner {
  max-width: fit-content;
  min-width: min(100%, 770px);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.top-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--coral);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}

.top-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.top-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-nav-link {
  font-size: 13px;
  color: var(--text-3);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  text-align: center;
}

.top-nav-link:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
}

/* ---- Contact Sheet ---- */
.contact-wrapper {
  position: relative;
}

.contact-sheet {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 260px;
  background: var(--elevated);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.92) translateY(-6px);
  transform-origin: top right;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.22s;
  z-index: 100;
}

.contact-sheet.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}

.contact-item:hover {
  background: rgba(0, 0, 0, 0.04);
}

.contact-item svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.contact-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 4px 14px;
}

.model-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-3);
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px;
  cursor: default;
}

.model-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ABF6F;
}

.model-chevron {
  opacity: 0.5;
  font-size: 10px;
  margin-left: auto;
}



/* ---- Main Panel ---- */
.main-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

.artifact-header {
  display: none;
}

.artifact-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-3);
  background: var(--elevated);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 4px;
}

.artifact-header-title {
  color: var(--text-2);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 14px;
}

/* ---- Filter Chip Bar (Artifacts-inspired) ---- */
.filter-chip-wrap {
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.filter-chip-bar {
  display: flex;
  gap: 6px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 32px;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: center;
}

.filter-chip-bar::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  padding: 6px 16px;
  border-radius: 20px;
  background: transparent;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.filter-chip:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
}

.filter-chip.active {
  background: var(--text);
  color: var(--sidebar-bg);
  font-weight: 600;
}

/* Scrollable content area */
.main-content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: auto;
  background: var(--bg);
}

/* ---- Artifact Detail ---- */
.artifact-detail {
  padding: 36px 32px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.artifact-detail>* {
  box-sizing: border-box;
}

.artifact-color-bar {
  display: none;
}

.artifact-thumb-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.artifact-thumb-wrap img {
  width: 100%;
  display: block;
}

.artifact-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.25;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.artifact-date {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 14px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.artifact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.artifact-tag {
  font-size: 11px;
  color: var(--text-3);
  background: var(--elevated);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
}

.artifact-desc {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 800px;
  white-space: pre-line;
  margin-left: auto;
  margin-right: auto;
}

.artifact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.artifact-link {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  background: #1d1d1f;
  border: 1px solid #1d1d1f;
  padding: 8px 16px;
  border-radius: 20px;
  transition: background 0.15s;
  text-decoration: none;
}

.artifact-link:hover {
  background: #424245;
}

/* Inline banner video */
.artifact-banner-video {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  max-width: 800px;
  aspect-ratio: 16 / 9;
  margin-left: auto;
  margin-right: auto;
}

.artifact-banner-video iframe,
.artifact-banner-video video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Inline gallery */
.inline-gallery {
  margin-top: 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.inline-gallery-title {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-3);
  margin-bottom: 10px;
}

.inline-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.inline-gallery-img {
  width: 100%;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--border);
  transition: opacity 0.15s, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0;
  transform: translateY(16px);
}

.inline-gallery-img.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Thumbnail Strip (horizontal scroll project browser) ---- */
.thumb-strip-wrap {
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.thumb-strip {
  display: flex;
  gap: 12px;
  padding: 14px 32px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 1200px;
  margin: 0 auto;
}

.thumb-strip::-webkit-scrollbar {
  display: none;
}

.thumb-strip> :first-child {
  margin-left: auto;
}

.thumb-strip> :last-child {
  margin-right: auto;
}

.thumb-card {
  flex-shrink: 0;
  width: 160px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  border: 2px solid transparent;
  background: var(--card);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12), 0 2px 10px rgba(0, 0, 0, 0.08);
  animation: thumbFadeIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.thumb-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14), 0 1px 4px rgba(0, 0, 0, 0.08);
}

.thumb-card.active {
  border-color: var(--accent, var(--coral));
  box-shadow: 0 0 0 1px var(--accent, var(--coral)), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.thumb-card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--elevated);
}

.thumb-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s;
}

.thumb-card:hover .thumb-card-img-wrap img {
  transform: scale(1.05);
}

.thumb-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.thumb-card-label {
  padding: 8px 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thumb-card.active .thumb-card-label {
  color: var(--text);
}

/* =============================================
   MODAL
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--card);
  border-radius: var(--radius);
  width: 90%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid var(--border);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 18px;
  color: var(--text-3);
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.04);
}

.modal-banner {
  width: 100%;
  border-radius: var(--radius) var(--radius) 0 0;
}

.modal-banner-video {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

.modal-banner-video iframe,
.modal-banner-video video {
  width: 100%;
  height: 100%;
  border: none;
}

.modal-banner-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: var(--elevated);
  border-radius: var(--radius) var(--radius) 0 0;
}

.modal-body {
  padding: 24px 28px 32px;
}

.modal-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.modal-tagline {
  font-family: var(--serif);
  color: var(--text-3);
  font-size: 14px;
  margin-bottom: 14px;
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.modal-year,
.modal-category {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--elevated);
  border: 1px solid var(--border);
  color: var(--text-3);
}

.modal-description {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  white-space: pre-line;
}

.modal-links {
  margin-top: 20px;
}

.modal-links h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-3);
  margin-bottom: 10px;
}

.modal-link {
  display: inline-block;
  font-size: 13px;
  color: var(--coral);
  margin-right: 16px;
  margin-bottom: 6px;
  transition: opacity 0.15s;
}

.modal-link:hover {
  opacity: 0.7;
}

/* Modal gallery */
.modal-gallery {
  margin-top: 24px;
}

.modal-gallery h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-3);
  margin-bottom: 10px;
}

.modal-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.modal-gallery-img {
  width: 100%;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--border);
  transition: opacity 0.15s;
}

.modal-gallery-img:hover {
  opacity: 0.8;
}

.bts-video {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* YouTube gallery */
.yt-gallery {
  margin-top: 20px;
}

.yt-gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.yt-gallery-header h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-3);
}

.yt-gallery-counter {
  font-size: 11px;
  color: var(--text-3);
}

.yt-gallery-player {
  position: relative;
  margin-bottom: 10px;
}

.yt-gallery-iframe-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.yt-gallery-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.yt-gallery-title-bar {
  padding: 8px 0;
}

.yt-gallery-now-playing {
  font-size: 12px;
  color: var(--text-2);
}

.yt-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yt-gallery-prev {
  left: -12px;
}

.yt-gallery-next {
  right: -12px;
}

.yt-gallery-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.yt-gallery-thumb {
  flex-shrink: 0;
  width: 100px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.15s;
  text-align: left;
}

.yt-gallery-thumb.active {
  border-color: var(--coral);
}

.yt-gallery-thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.yt-gallery-thumb span {
  display: block;
  font-size: 10px;
  color: var(--text-3);
  padding: 4px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =============================================
   OVERLAYS (About, Why Me)
   ============================================= */
.about-overlay,
.whyme-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  overflow-y: auto;
  padding: 40px 20px;
}

.about-overlay.active,
.whyme-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.about-content {
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s;
  opacity: 0;
}

.about-content.about-entered {
  transform: translateY(0);
  opacity: 1;
}

.about-close,
.whyme-close {
  position: fixed;
  top: 20px;
  right: 24px;
  font-size: 22px;
  color: var(--text-3);
  z-index: 601;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.about-close:hover,
.whyme-close:hover {
  background: rgba(0, 0, 0, 0.06);
}

.about-content,
.whyme-content {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  max-width: 775px;
  width: 100%;
  padding: 32px;
  margin: auto;
}

/* About styles */
.about-header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.about-profile-pic {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.about-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
}

.about-headline {
  font-size: 13px;
  color: var(--text-3);
}

.about-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.about-link {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  background: #1d1d1f;
  border: 1px solid #1d1d1f;
  padding: 8px 16px;
  border-radius: 20px;
  transition: background 0.15s;
  text-decoration: none;
}

.about-link:hover {
  background: #424245;
}

.about-summary {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 12px;
}

/* Skills section in About modal */
.skills-section {
  margin-top: 20px;
  padding-top: 8px;
}

.skills-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.skills-header-label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--text);
  white-space: nowrap;
  font-family: var(--mono, ui-monospace, monospace);
}

.skills-header-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
  gap: 8px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px 2px;
  border-radius: 6px;
  transition: background 0.15s;
}

.skill-item:hover {
  background: rgba(0, 0, 0, 0.04);
}

.skill-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  filter: grayscale(100%);
  opacity: 1;
  transition: filter 0.2s, opacity 0.2s;
}

.skill-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.skill-icon-svg {
  width: 100%;
  height: 100%;
  color: #86868b;
  overflow: visible;
}

/* Dark-source PNGs (e.g. antigravity.png) — match #86868b gray of other icons */
.skill-icon-img.skill-icon-img-invert {
  filter: none;
  opacity: 0.53;
}

.skill-icon-svg svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}


.skill-label {
  font-size: 9px;
  color: var(--text-3);
  text-align: center;
  line-height: 1.2;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skill-item:hover .skill-icon {
  filter: grayscale(0%) brightness(1) contrast(1);
  opacity: 1;
}

.skill-item:hover .skill-label {
  color: var(--text-2);
}

/* Why Me */
.whyme-header {
  margin-bottom: 24px;
}

.whyme-header h1 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
}

.whyme-header p {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 4px;
}

.why-tabs {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.why-tab {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-3);
  padding: 12px 28px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  cursor: pointer;
}

.why-tab:hover {
  color: var(--text-2);
  border-color: rgba(0, 0, 0, 0.15);
}

.why-tab.active {
  color: #ffffff;
  background: #1d1d1f;
  border-color: #1d1d1f;
}

.whyme-subtitle {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 16px;
}

.why-essay-para {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 20px;
}

.why-essay-para:first-child {
  color: var(--text);
}

.podcast-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 24px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.podcast-cta:hover {
  border-color: var(--coral);
}

.podcast-cta-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.podcast-cta-text {
  font-size: 13px;
  color: var(--text-2);
}

.podcast-cta-text strong {
  color: var(--text);
}

.whyme-annotation {
  border-left: 2px solid var(--border);
  padding: 14px 0 14px 18px;
  margin-bottom: 18px;
}

.whyme-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 8px;
}

.whyme-response {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 6px;
}

.whyme-project-link {
  font-size: 12px;
  color: var(--coral);
  cursor: pointer;
  transition: opacity 0.15s;
}

.whyme-project-link:hover {
  opacity: 0.7;
}

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 92%;
  max-height: 92%;
  border-radius: 4px;
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s;
}

.lightbox img.lightbox-entered {
  transform: scale(1);
  opacity: 1;
}

/* =============================================
   PODCAST MINI-PLAYER
   ============================================= */
.podcast-mini-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 900;
  min-width: 300px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.podcast-mini-player.active {
  opacity: 1;
  pointer-events: all;
}

.podcast-play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.podcast-info {
  flex: 1;
}

.podcast-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 4px;
}

.podcast-progress-wrap {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
}

.podcast-progress-bar {
  height: 100%;
  width: 0;
  background: var(--coral);
  border-radius: 2px;
  transition: width 0.3s linear;
}

.podcast-time {
  font-size: 10px;
  color: var(--text-3);
  min-width: 35px;
  text-align: right;
}

.podcast-close-btn {
  font-size: 14px;
  color: var(--text-3);
  padding: 4px;
}

/* =============================================
   MOBILE HEADER
   ============================================= */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: var(--sidebar-bg);
  border-bottom: 1px solid var(--border);
  z-index: 20;
  align-items: center;
  padding: 0 14px;
  gap: 12px;
}

.mobile-menu-btn {
  font-size: 20px;
  color: var(--text);
  padding: 6px;
}

.mobile-title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--coral);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =============================================
   MOBILE RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .top-header-inner {
    padding: 12px 16px;
  }

  .model-selector {
    display: none;
  }

  .top-name {
    font-size: 13px;
  }

  .main-panel {
    padding-top: 0;
  }

  .artifact-detail {
    padding: 20px 18px;
  }

  .artifact-title {
    font-size: 22px;
  }

  .filter-chip-bar {
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 16px;
  }

  .thumb-strip {
    padding: 12px 16px;
  }
}

/* =============================================
   SCROLLBAR
   ============================================= */
.main-content-scroll::-webkit-scrollbar,
.modal::-webkit-scrollbar {
  width: 6px;
}

.main-content-scroll::-webkit-scrollbar-track,
.modal::-webkit-scrollbar-track {
  background: transparent;
}

.main-content-scroll::-webkit-scrollbar-thumb,
.modal::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* =============================================
   ANIMATIONS & VIEW TRANSITIONS
   ============================================= */

/* Thumbnail stagger entrance */
@keyframes thumbFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* View Transition names for morph targets */
.thumb-strip-wrap {
  view-transition-name: thumb-strip;
}

.artifact-detail {
  view-transition-name: artifact-detail;
}

.artifact-header {
  view-transition-name: artifact-header;
}

/* View Transition crossfade (pure opacity, no movement to avoid jitter) */
::view-transition-old(artifact-detail),
::view-transition-old(artifact-header) {
  animation: none;
  opacity: 0;
}

::view-transition-new(artifact-detail),
::view-transition-new(artifact-header) {
  animation: vtFadeIn 0.25s ease both;
}

@keyframes vtFadeIn {
  from {
    opacity: 0;
  }
}

/* =============================================
   ACCESSIBILITY: REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .inline-gallery-img {
    opacity: 1;
    transform: none;
  }

  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}