/* ═══════════════════════════════════════════════════════
   PORTFOLIO — Skeuomorphic "Developer Desk" Theme
   Palette: off-white #F5F0E8 · ink #1B1B1B · teal #2D7D7B
   ═══════════════════════════════════════════════════════ */

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

:root {
  /* Palette */
  --base:       #F5F0E8;
  --base-light: #FAF7F2;
  --base-dark:  #E8E0D4;
  --ink:        #1B1B1B;
  --ink-soft:   #3A3A3A;
  --ink-muted:  #6B6560;
  --accent:     #2D7D7B;
  --accent-light:#3A9E9B;
  --accent-dark: #1F5958;
  --red:        #D94F4F;
  --yellow:     #E8B83D;
  --green:      #4CAF50;
  --white:      #FFFFFF;

  /* Shadows — ambient + contact */
  --shadow-ambient: 0 8px 32px rgba(27,27,27,.08);
  --shadow-contact: 0 2px 6px  rgba(27,27,27,.12);
  --shadow-card:    var(--shadow-ambient), var(--shadow-contact);
  --shadow-raised:  0 4px 14px rgba(27,27,27,.14), 0 1px 4px rgba(27,27,27,.10);
  --shadow-inset:   inset 0 2px 4px rgba(27,27,27,.15);
  --shadow-lift:    0 8px 24px rgba(27,27,27,.18), 0 2px 6px rgba(27,27,27,.10);

  /* Transitions */
  --ease: cubic-bezier(.25, .1, .25, 1);
  --dur:  160ms;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  /* Radius */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--base);
  /* subtle paper grain */
  background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-light); }

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

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
  letter-spacing: -0.01em;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════
   DESIGN SYSTEM — Reusable Components
   ═══════════════════════════════════════════════════════ */

/* ─── SkeuoCard ─── */
.skeuo-card {
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.skeuo-card.paper {
  background: var(--base-light);
  /* paper grain overlay */
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23p)' opacity='.03'/%3E%3C/svg%3E");
  border: 1px solid rgba(27,27,27,.06);
}
.skeuo-card.leather {
  background: linear-gradient(145deg, #4A3728, #3A2A1E);
  border: 1px solid rgba(255,255,255,.08);
}
.skeuo-card.metal {
  background: linear-gradient(180deg, #E8E4DE, #D8D2CA);
  border: 1px solid rgba(27,27,27,.10);
}

/* ─── SkeuoButton ─── */
.skeuo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .9rem;
  padding: 12px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  text-decoration: none;
  user-select: none;
  position: relative;
}

/* Raised variant */
.skeuo-btn.raised {
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
  color: var(--white);
  box-shadow: var(--shadow-raised), inset 0 1px 0 rgba(255,255,255,.20);
  text-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.skeuo-btn.raised:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift), inset 0 1px 0 rgba(255,255,255,.25);
}
.skeuo-btn.raised:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-contact), inset 0 2px 4px rgba(0,0,0,.15);
}

/* Metal / outline variant */
.skeuo-btn.metal {
  background: linear-gradient(180deg, #EEEAE4, #DAD5CC);
  color: var(--ink);
  box-shadow: var(--shadow-contact), inset 0 1px 0 rgba(255,255,255,.50);
  border: 1px solid rgba(27,27,27,.12);
}
.skeuo-btn.metal:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-raised), inset 0 1px 0 rgba(255,255,255,.60);
}
.skeuo-btn.metal:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-inset);
}

/* Focus ring (glow) */
.skeuo-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(45,125,123,.40), var(--shadow-raised);
}

/* ═══════════════════════════════════════════════════════
   1 · DESK HEADER
   ═══════════════════════════════════════════════════════ */
#desk-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, #F5F0E8, #EDE7DD);
  border-bottom: 2px solid #D6CFC3;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  /* subtle paper grain texture */
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='l'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23l)' opacity='.03'/%3E%3C/svg%3E");
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
}

/* Window dots */
.window-dots {
  display: flex;
  gap: 7px;
  margin-right: 16px;
}
.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  box-shadow: inset 0 -1px 2px rgba(0,0,0,.25);
}
.dot-red    { background: var(--red); }
.dot-yellow { background: var(--yellow); }
.dot-green  { background: var(--green); }

/* Monogram badge */
.header-left {
  display: flex;
  align-items: center;
}
.monogram-badge {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .05em;
  color: #F5F0E8;
  background: linear-gradient(145deg, #3A342C, #2C241C);
  border: 1px solid rgba(60,52,44,.3);
  border-radius: var(--r-sm);
  padding: 4px 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 1px 3px rgba(0,0,0,.30);
  text-shadow: 0 1px 2px rgba(0,0,0,.40);
}

/* Tab navigation */
.tab-nav {
  display: flex;
  gap: 4px;
}
.tab {
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 500;
  color: #5C5347;
  padding: 8px 18px;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  text-decoration: none;
  transition: all var(--dur) var(--ease);
  position: relative;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
}
.tab::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: 2px;
  background: transparent;
  transition: background var(--dur) var(--ease);
}
.tab:hover {
  color: #1B1B1B;
  background: rgba(0,0,0,.04);
  transform: translateY(-1px);
}
.tab:hover::before {
  background: var(--accent-light);
}
.tab.active {
  color: #1B1B1B;
  background: rgba(255,255,255,.65);
  border-color: rgba(0,0,0,.06);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.08);
  transform: translateY(1px);
}
.tab.active::before {
  background: var(--accent);
}

/* Status light */
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-light {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(76,175,80,.50);
  animation: pulse-glow 2.5s infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 6px rgba(76,175,80,.50); }
  50%      { box-shadow: 0 0 12px rgba(76,175,80,.70); }
}
.status-label {
  font-size: .72rem;
  color: #4A4139;
  font-weight: 500;
  letter-spacing: .02em;
}

/* Theme toggle button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 50%;
  background: linear-gradient(145deg, #F0EAE0, #E6DFD3);
  box-shadow:
    2px 2px 5px rgba(0,0,0,.07),
    -1px -1px 3px rgba(255,255,255,.6),
    inset 0 1px 0 rgba(255,255,255,.4);
  cursor: pointer;
  margin-left: 12px;
  transition: all var(--dur) var(--ease);
  padding: 0;
  color: #6B6053;
}
.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow:
    3px 4px 8px rgba(0,0,0,.10),
    -1px -1px 3px rgba(255,255,255,.6),
    inset 0 1px 0 rgba(255,255,255,.4);
  color: var(--accent);
}
.theme-toggle:active {
  transform: translateY(1px);
  box-shadow: inset 1px 1px 3px rgba(0,0,0,.12);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 300ms var(--ease), opacity 200ms var(--ease);
}

/* Light mode: show moon, hide sun */
.icon-sun  { display: none; }
.icon-moon { display: block; }

/* Dark mode: show sun, hide moon */
[data-theme="dark"] .icon-sun  { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* ═══════════════════════════════════════════════════════
   2 · HERO
   ═══════════════════════════════════════════════════════ */
.hero-section {
  padding-top: 100px;
  padding-bottom: 100px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Notebook card */
.hero-notebook {
  padding: 48px 48px 48px 72px;
  position: relative;
}
/* Red margin line */
.hero-notebook::before {
  content: '';
  position: absolute;
  left: 56px; top: 0; bottom: 0;
  width: 2px;
  background: rgba(217,79,79,.25);
}
/* Horizontal lines */
.notebook-lines {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    180deg,
    transparent,
    transparent 31px,
    rgba(27,27,27,.06) 31px,
    rgba(27,27,27,.06) 32px
  );
  pointer-events: none;
}

.notebook-content {
  position: relative;
  z-index: 1;
}
.notebook-content h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.notebook-content h2 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 20px;
}
.hero-tagline {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 32px;
  max-width: 420px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero social handles — bottom center */
.hero-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
}
.hero-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, #F0EAE0, #E6DFD3);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow:
    2px 2px 6px rgba(0,0,0,.08),
    -1px -1px 3px rgba(255,255,255,.7),
    inset 0 1px 0 rgba(255,255,255,.5);
  color: #6B6053;
  text-decoration: none;
  transition: all var(--dur) var(--ease);
  position: relative;
}
.hero-social-link svg {
  width: 18px;
  height: 18px;
}
.hero-social-link:hover {
  transform: translateY(-3px);
  box-shadow:
    3px 4px 10px rgba(0,0,0,.10),
    -1px -1px 3px rgba(255,255,255,.7),
    inset 0 1px 0 rgba(255,255,255,.5);
}
.hero-social-link:active {
  transform: translateY(1px);
  box-shadow:
    inset 1px 1px 3px rgba(0,0,0,.10),
    inset 0 1px 0 rgba(255,255,255,.3);
}

/* Platform brand colors on hover */
.hero-social-link[data-social="github"]:hover   { color: #24292e; background: linear-gradient(145deg, #F0EAE0, #E2DCD2); }
.hero-social-link[data-social="linkedin"]:hover  { color: #0A66C2; background: linear-gradient(145deg, #EDF4FC, #E0EDF8); }
.hero-social-link[data-social="facebook"]:hover  { color: #1877F2; background: linear-gradient(145deg, #EDF2FC, #E0EAF8); }
.hero-social-link[data-social="instagram"]:hover { color: #E4405F; background: linear-gradient(145deg, #FDF0F2, #F8E3E8); }
.hero-social-link[data-social="tiktok"]:hover    { color: #010101; background: linear-gradient(145deg, #EDEDED, #E0E0E0); }

.hero-socials-label {
  text-align: center;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--ink-muted);
  letter-spacing: .06em;
  opacity: .65;
}

/* Polaroid card */
.hero-polaroid-wrapper {
  display: flex;
  justify-content: center;
  position: relative;
}
.paper-clip {
  position: absolute;
  top: -30px;
  right: 40%;
  z-index: 2;
  width: 28px;
  filter: drop-shadow(1px 1px 2px rgba(0,0,0,.15));
  transform: rotate(8deg);
}
.paper-clip svg { width: 100%; height: auto; }

.polaroid-card {
  padding: 16px 16px 32px;
  max-width: 280px;
  transform: rotate(2deg);
  transition: transform var(--dur) var(--ease);
}
.polaroid-card:hover { transform: rotate(0deg) scale(1.02); }
.polaroid-photo {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--base-dark), #D5CEC3);
  border-radius: var(--r-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.polaroid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: saturate(.85) contrast(1.02);
  transition: transform 400ms var(--ease), filter 400ms var(--ease);
}
.polaroid-card:hover .polaroid-img {
  transform: scale(1.03);
  filter: saturate(1) contrast(1.05);
}
.polaroid-label {
  text-align: center;
  margin-top: 16px;
}
.typewriter {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--ink-muted);
  letter-spacing: .02em;
}

/* ═══════════════════════════════════════════════════════
   3 · ABOUT
   ═══════════════════════════════════════════════════════ */
.about-section { padding-bottom: 60px; }

.resume-sheet {
  padding: 48px 56px;
  position: relative;
  border-radius: var(--r-lg);
}

/* Crease edges */
.crease-left,
.crease-right {
  position: absolute;
  top: 0; bottom: 0;
  width: 32px;
  pointer-events: none;
}
.crease-left {
  left: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.03), transparent);
  border-radius: var(--r-lg) 0 0 var(--r-lg);
}
.crease-right {
  right: 0;
  background: linear-gradient(-90deg, rgba(0,0,0,.03), transparent);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
}

.resume-content {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.resume-text {
  flex: 1;
}
.resume-text p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
  max-width: 520px;
}

/* Stamp badges */
.stamp-badges {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}
.stamp-badge {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(-6deg);
  opacity: .75;
  transition: all var(--dur) var(--ease);
}
.stamp-badge:nth-child(2) { transform: rotate(4deg); }
.stamp-badge:nth-child(3) { transform: rotate(-2deg); }
.stamp-badge:hover { opacity: 1; transform: rotate(0deg) scale(1.05); }
.stamp-badge span {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1.4;
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* Rubber stamp download button */
.rubber-stamp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 14px 30px;
  border: 3px solid var(--red);
  border-radius: var(--r-sm);
  color: var(--red);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-decoration: none;
  transform: rotate(-2deg);
  transition: all 200ms var(--ease);
  opacity: .85;
  cursor: pointer;
  position: relative;
  background: transparent;
}
.rubber-stamp-btn svg {
  flex-shrink: 0;
  transition: transform 200ms var(--ease);
}
.rubber-stamp-btn:hover {
  opacity: 1;
  transform: rotate(0deg) scale(1.05);
  color: #FFF;
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 4px 16px rgba(217,79,79,.30);
}
.rubber-stamp-btn:hover svg {
  transform: translateY(2px);
}
.rubber-stamp-btn:active {
  transform: rotate(0deg) scale(.97);
  box-shadow: 0 2px 6px rgba(217,79,79,.20);
}
.rubber-stamp-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(217,79,79,.30);
}
.rubber-stamp-btn.stamped {
  animation: stamp-press 300ms var(--ease);
  opacity: 1;
  transform: rotate(0deg) scale(1);
  color: #FFF;
  background: var(--red);
  border-color: var(--red);
}
@keyframes stamp-press {
  0%   { transform: rotate(-2deg) scale(1.2); opacity: .6; }
  60%  { transform: rotate(1deg)  scale(.95); }
  100% { transform: rotate(0deg)  scale(1); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════
   4 · PROJECTS
   ═══════════════════════════════════════════════════════ */
.projects-desk {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  align-items: start;
}

/* Index cards (left list) */
.project-index {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.project-index-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  background: var(--base-light);
  border: 1px solid rgba(27,27,27,.06);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-contact);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  font-family: var(--font-body);
  position: relative;
  /* paper texture */
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='x'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='80' height='80' filter='url(%23x)' opacity='.03'/%3E%3C/svg%3E");
}
.project-index-card strong {
  display: block;
  font-size: .92rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--ink);
}
.project-index-card p {
  font-size: .78rem;
  color: var(--ink-muted);
  line-height: 1.45;
  margin: 0;
}
.project-index-card:hover {
  transform: translateY(-2px) rotate(-.5deg);
  box-shadow: var(--shadow-raised);
}
.project-index-card.active {
  border-color: var(--accent);
  box-shadow: var(--shadow-raised), 0 0 0 2px rgba(45,125,123,.15);
  transform: translateX(6px);
}
.project-index-card.active::before {
  content: '';
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

/* Domain chip */
.domain-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(45,125,123,.10);
  color: var(--accent);
  margin-bottom: 6px;
  letter-spacing: .02em;
}

/* Preview panel (right) */
.project-preview {
  padding: 40px;
  min-height: 400px;
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.preview-inner h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.preview-inner .preview-domain {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}
.preview-inner .preview-desc {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 16px;
}
.preview-inner .preview-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.preview-inner .stack-tag {
  font-family: var(--font-mono);
  font-size: .72rem;
  padding: 4px 12px;
  background: rgba(27,27,27,.05);
  border-radius: 999px;
  color: var(--ink-muted);
}
.preview-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}

/* ═══════════════════════════════════════════════════════
   CASE STUDY DRAWER
   ═══════════════════════════════════════════════════════ */
.case-study-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
}
.case-study-drawer.open {
  pointer-events: auto;
  visibility: visible;
}
.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27,27,27,.45);
  opacity: 0;
  transition: opacity 250ms var(--ease);
}
.case-study-drawer.open .drawer-overlay { opacity: 1; }

.drawer-panel {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  max-height: 85vh;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 40px 48px 48px;
  transform: translateY(100%);
  transition: transform 300ms var(--ease);
  overflow-y: auto;
}
.case-study-drawer.open .drawer-panel { transform: translateY(0); }

.drawer-close {
  position: absolute;
  top: 16px; right: 24px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--ink-muted);
  cursor: pointer;
  transition: color var(--dur) var(--ease);
  line-height: 1;
}
.drawer-close:hover { color: var(--ink); }

.drawer-content h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 24px;
}
.drawer-content h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin: 20px 0 8px;
  color: var(--accent);
}
.drawer-content p,
.drawer-content ul {
  font-size: .95rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 12px;
}
.drawer-content ul { padding-left: 20px; }
.drawer-content li { margin-bottom: 6px; }

/* ═══════════════════════════════════════════════════════
   5 · SKILLS
   ═══════════════════════════════════════════════════════ */
.toolbox {
  padding: 40px 48px;
  border-radius: var(--r-lg);
}
.toolbox-group {
  margin-bottom: 28px;
}
.toolbox-group:last-child { margin-bottom: 0; }
.toolbox-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-muted);
  margin-bottom: 12px;
}
.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skill-chip {
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--base-light);
  border: 1px solid rgba(27,27,27,.08);
  box-shadow: 0 2px 4px rgba(27,27,27,.06), inset 0 1px 0 rgba(255,255,255,.70);
  cursor: default;
  transition: all var(--dur) var(--ease);
  position: relative;
  color: var(--ink-soft);
}
.skill-chip:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-raised);
  color: var(--ink);
}
/* Tooltip note */
.skill-chip::after {
  content: attr(data-note);
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-family: var(--font-mono);
  font-size: .65rem;
  white-space: nowrap;
  color: var(--accent);
  opacity: 0;
  transition: all var(--dur) var(--ease);
  pointer-events: none;
}
.skill-chip:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════════════════════
   6 · CONTACT
   ═══════════════════════════════════════════════════════ */
.contact-desk {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Business card */
.business-card {
  padding: 40px;
  border-radius: var(--r-lg);
}
.bcard-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.bcard-monogram {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  background: var(--accent);
  width: 56px; height: 56px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-contact);
}
.bcard-top h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}
.bcard-title {
  font-size: .85rem;
  color: var(--ink-muted);
}
.bcard-body {
  font-size: .92rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 24px;
}
.bcard-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bcard-actions {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(27,27,27,.06);
}
.bcard-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .88rem;
  color: var(--ink-soft);
}
.bcard-icon {
  width: 18px; height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Envelope form */
.envelope {
  padding: 40px;
  border-radius: var(--r-lg);
  position: relative;
}
.envelope-flap {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(180deg, var(--base-dark), transparent);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  pointer-events: none;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(27,27,27,.12);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-inset);
  transition: all var(--dur) var(--ease);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--shadow-inset), 0 0 0 3px rgba(45,125,123,.12);
}
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
  border-color: var(--red);
  box-shadow: var(--shadow-inset), 0 0 0 2px rgba(217,79,79,.12);
}
.stamp-submit {
  width: 100%;
  justify-content: center;
  font-size: .95rem;
  padding: 14px 32px;
}

.copy-email-btn svg {
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   SOCIALS — "Online Presence" label strip
   ═══════════════════════════════════════════════════════ */
.socials-section {
  padding-bottom: 40px;
}
.socials-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 28px 20px;
  min-width: 130px;
  text-decoration: none;
  color: var(--ink);
  border-radius: var(--r-md);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  position: relative;
}
.social-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 8px 24px rgba(0,0,0,.08),
    0 2px 6px rgba(0,0,0,.06);
}
.social-card:active {
  transform: translateY(0);
}
.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 8px;
  transition: background var(--dur) var(--ease);
}
.social-icon svg {
  width: 100%;
  height: 100%;
}

/* Platform brand colors on icons */
[data-social="github"] .social-icon { color: #24292e; }
[data-social="linkedin"] .social-icon { color: #0A66C2; }
[data-social="facebook"] .social-icon { color: #1877F2; }
[data-social="instagram"] .social-icon { color: #E4405F; }
[data-social="tiktok"] .social-icon { color: #010101; }

/* Hover: fill background with brand tint */
[data-social="github"]:hover .social-icon { background: rgba(36,41,46,.08); }
[data-social="linkedin"]:hover .social-icon { background: rgba(10,102,194,.08); }
[data-social="facebook"]:hover .social-icon { background: rgba(24,119,242,.08); }
[data-social="instagram"]:hover .social-icon { background: rgba(228,64,95,.08); }
[data-social="tiktok"]:hover .social-icon { background: rgba(1,1,1,.06); }

.social-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .85rem;
  color: var(--ink);
}
.social-username {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--ink-muted);
  opacity: .7;
}
.social-card:hover .social-username {
  opacity: 1;
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.desk-footer {
  text-align: center;
  padding: 32px 24px;
  font-size: .8rem;
  color: var(--ink-muted);
  border-top: 1px solid rgba(27,27,27,.06);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

/* ─── Tablet (≤ 900px) ─── */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-polaroid-wrapper {
    justify-content: center;
  }
  .projects-desk {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .contact-desk {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .resume-content {
    flex-direction: column;
  }
  .stamp-badges {
    flex-direction: row;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .stamp-badge {
    width: 90px; height: 90px;
  }
  .socials-strip {
    gap: 12px;
  }
  .social-card {
    min-width: 110px;
    padding: 20px 20px 16px;
  }
  .drawer-panel {
    padding: 32px 24px 32px;
  }
}

/* ─── Large phones (≤ 640px) ─── */
@media (max-width: 640px) {
  .header-inner { padding: 0 12px; }
  .tab-nav {
    gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-shrink: 1;
    min-width: 0;
  }
  .tab-nav::-webkit-scrollbar { display: none; }
  .tab {
    font-size: .72rem;
    padding: 8px 10px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .status-label { display: none; }
  .window-dots { display: none; }
  .section { padding: 48px 16px; }
  .hero-section { padding-top: 60px; padding-bottom: 60px; }
  .notebook-content h1 { font-size: 2.2rem; }
  .notebook-content h2 { font-size: 1rem; }
  .hero-tagline { font-size: .95rem; }
  .hero-notebook { padding: 28px 24px 28px 40px; }
  .hero-notebook::before { left: 28px; }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta .skeuo-btn {
    text-align: center;
    justify-content: center;
  }
  .hero-socials { gap: 10px; margin-top: 32px; }
  .hero-social-link { width: 38px; height: 38px; }
  .hero-social-link svg { width: 16px; height: 16px; }
  .polaroid-card { max-width: 220px; }
  .toolbox { padding: 24px 16px; }
  .business-card,
  .envelope { padding: 24px 16px; }
  .resume-sheet { padding: 28px 20px; }
  .project-preview { padding: 24px 16px; }
  .project-index-card { padding: 14px 16px; }
  .stamp-badge { width: 80px; height: 80px; }
  .stamp-badge span { font-size: .62rem; }
  .rubber-stamp-btn {
    padding: 12px 20px;
    font-size: .78rem;
  }
  .section-title { font-size: 1.6rem; }
  .preview-inner h3 { font-size: 1.3rem; }
  .bcard-top { flex-direction: column; text-align: center; }
  .bcard-monogram { width: 48px; height: 48px; font-size: 1.3rem; }
  .social-card { min-width: 90px; padding: 16px 12px 12px; }
  .social-label { font-size: .78rem; }
  .social-username { font-size: .65rem; }
  .drawer-panel { padding: 24px 16px 24px; }
  .skill-chip {
    font-size: .8rem;
    padding: 6px 14px;
  }
  /* Hide tooltip on mobile — touch devices can't hover */
  .skill-chip::after { display: none; }
}

/* ─── Small phones (≤ 480px) ─── */
@media (max-width: 480px) {
  .header-inner { height: 48px; }
  .monogram-badge { font-size: .8rem; padding: 3px 10px; }
  .theme-toggle { width: 32px; height: 32px; margin-left: 8px; }
  .theme-toggle svg { width: 15px; height: 15px; }
  .section { padding: 36px 14px; }
  .hero-section { padding-top: 48px; padding-bottom: 48px; }
  .notebook-content h1 { font-size: 1.8rem; }
  .notebook-content h2 { font-size: .9rem; }
  .hero-tagline { font-size: .88rem; max-width: 100%; }
  .hero-notebook { padding: 24px 18px 24px 32px; }
  .hero-notebook::before { left: 22px; }
  .hero-grid { gap: 24px; }
  .hero-cta .skeuo-btn { font-size: .82rem; padding: 10px 20px; }
  .polaroid-card { max-width: 180px; padding: 12px 12px 24px; }
  .resume-sheet { padding: 24px 16px; }
  .resume-text p { font-size: .92rem; }
  .stamp-badges { gap: 8px; }
  .stamp-badge { width: 70px; height: 70px; }
  .stamp-badge span { font-size: .55rem; }
  .rubber-stamp-btn {
    padding: 10px 16px;
    font-size: .72rem;
    transform: rotate(0deg);
  }
  .toolbox { padding: 20px 14px; }
  .toolbox-label { font-size: .65rem; }
  .skill-chips { gap: 8px; }
  .skill-chip { font-size: .75rem; padding: 5px 12px; }
  .project-preview { padding: 20px 14px; min-height: 300px; }
  .preview-inner h3 { font-size: 1.15rem; }
  .preview-inner .preview-desc { font-size: .9rem; }
  .preview-inner .stack-tag { font-size: .65rem; padding: 3px 10px; }
  .preview-actions { gap: 8px; }
  .preview-actions .skeuo-btn { font-size: .8rem; padding: 10px 18px; }
  .contact-desk { gap: 16px; }
  .business-card, .envelope { padding: 20px 14px; }
  .bcard-body { font-size: .85rem; }
  .form-group label { font-size: .68rem; }
  .form-group input, .form-group textarea { font-size: .85rem; padding: 10px 12px; }
  .stamp-submit { font-size: .85rem; padding: 12px 24px; }
  .socials-strip { gap: 8px; }
  .social-card { min-width: 80px; padding: 14px 10px 10px; }
  .social-icon { width: 30px; height: 30px; }
  .social-label { font-size: .72rem; }
  .social-username { font-size: .6rem; }
  .section-title { font-size: 1.4rem; margin-bottom: 28px; }
  .desk-footer { padding: 24px 14px; font-size: .72rem; }
}

/* ─── Very small phones (≤ 360px) ─── */
@media (max-width: 360px) {
  .tab { font-size: .65rem; padding: 6px 8px; }
  .monogram-badge { font-size: .72rem; padding: 2px 8px; }
  .section { padding: 28px 12px; }
  .hero-section { padding-top: 36px; padding-bottom: 36px; }
  .notebook-content h1 { font-size: 1.55rem; }
  .notebook-content h2 { font-size: .82rem; }
  .hero-tagline { font-size: .82rem; }
  .hero-notebook { padding: 20px 14px 20px 28px; }
  .hero-notebook::before { left: 18px; }
  .hero-cta .skeuo-btn { font-size: .78rem; padding: 9px 16px; }
  .polaroid-card { max-width: 160px; }
  .resume-sheet { padding: 20px 12px; }
  .stamp-badge { width: 60px; height: 60px; border-width: 2px; }
  .stamp-badge span { font-size: .5rem; }
  .project-index-card { padding: 12px; }
  .project-index-card strong { font-size: .82rem; }
  .project-index-card p { font-size: .72rem; }
  .domain-chip { font-size: .6rem; padding: 2px 8px; }
  .project-preview { min-height: 260px; padding: 16px 12px; }
  .toolbox { padding: 16px 12px; }
  .skill-chip { font-size: .7rem; padding: 4px 10px; }
  .business-card, .envelope { padding: 16px 12px; }
  .bcard-monogram { width: 40px; height: 40px; font-size: 1.1rem; }
  .bcard-top h3 { font-size: 1rem; }
  .bcard-title { font-size: .78rem; }
  .social-card { min-width: 70px; padding: 12px 8px 8px; }
  .hero-socials { gap: 8px; }
  .hero-social-link { width: 34px; height: 34px; }
  .hero-social-link svg { width: 14px; height: 14px; }
  .hero-socials-label { font-size: .68rem; }
}

/* ═══════════════════════════════════════════════════════
   DARK THEME
   ═══════════════════════════════════════════════════════ */
[data-theme="dark"] {
  --base:       #1A1A1F;
  --base-light: #222228;
  --base-dark:  #141418;
  --ink:        #E8E4DD;
  --ink-soft:   #C8C4BD;
  --ink-muted:  #908A82;
  --accent:     #4ECDC4;
  --accent-light:#6EE7DF;
  --accent-dark: #3AABA4;

  --shadow-ambient: 0 8px 32px rgba(0,0,0,.30);
  --shadow-contact: 0 2px 6px  rgba(0,0,0,.40);
  --shadow-card:    var(--shadow-ambient), var(--shadow-contact);
  --shadow-raised:  0 4px 14px rgba(0,0,0,.35), 0 1px 4px rgba(0,0,0,.25);
  --shadow-inset:   inset 0 2px 4px rgba(0,0,0,.35);
  --shadow-lift:    0 8px 24px rgba(0,0,0,.40), 0 2px 6px rgba(0,0,0,.25);
}

/* Body */
[data-theme="dark"] body {
  background: var(--base);
  background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.02'/%3E%3C/svg%3E");
}

/* Header */
[data-theme="dark"] #desk-header {
  background: linear-gradient(180deg, #222228, #1A1A1F);
  border-bottom: 2px solid #333;
  box-shadow: 0 2px 12px rgba(0,0,0,.30);
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='l'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23l)' opacity='.03'/%3E%3C/svg%3E");
}
[data-theme="dark"] .tab {
  color: #A09890;
}
[data-theme="dark"] .tab:hover {
  color: #E8E4DD;
  background: rgba(255,255,255,.06);
}
[data-theme="dark"] .tab.active {
  color: #FFFFFF;
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.06);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.25);
}
[data-theme="dark"] .tab::before { background: transparent; }
[data-theme="dark"] .tab:hover::before { background: var(--accent-light); }
[data-theme="dark"] .tab.active::before { background: var(--accent); }
[data-theme="dark"] .status-label {
  color: #908A82;
}
[data-theme="dark"] .monogram-badge {
  color: var(--accent);
  background: linear-gradient(145deg, #2A2A30, #1E1E24);
  border-color: rgba(78,205,196,.2);
}

/* Theme toggle — dark variant */
[data-theme="dark"] .theme-toggle {
  background: linear-gradient(145deg, #2A2A30, #222228);
  border-color: rgba(255,255,255,.08);
  box-shadow:
    2px 2px 5px rgba(0,0,0,.25),
    -1px -1px 3px rgba(255,255,255,.04),
    inset 0 1px 0 rgba(255,255,255,.06);
  color: #C8C4BD;
}
[data-theme="dark"] .theme-toggle:hover {
  color: var(--accent);
}

/* Cards — paper variant */
[data-theme="dark"] .skeuo-card.paper {
  background: linear-gradient(145deg, #252530, #1E1E28);
  border-color: rgba(255,255,255,.05);
}

/* Cards — metal variant */
[data-theme="dark"] .skeuo-card.metal {
  background: linear-gradient(145deg, #2A2A32, #222230);
  border-color: rgba(255,255,255,.06);
}

/* Notebook */
[data-theme="dark"] .hero-notebook {
  background: linear-gradient(135deg, #252530, #1E1E28);
}
[data-theme="dark"] .notebook-lines {
  background-image: repeating-linear-gradient(
    transparent,
    transparent 31px,
    rgba(255,255,255,.04) 31px,
    rgba(255,255,255,.04) 32px
  );
}
[data-theme="dark"] .hero-notebook::before {
  background: rgba(200,100,100,.15);
}

/* Polaroid */
[data-theme="dark"] .polaroid-card {
  background: #252530;
}
[data-theme="dark"] .polaroid-photo {
  background: linear-gradient(135deg, #333, #2A2A30);
}
[data-theme="dark"] .typewriter {
  color: var(--ink-muted);
}

/* Hero social icons */
[data-theme="dark"] .hero-social-link {
  background: linear-gradient(145deg, #2A2A30, #222228);
  border-color: rgba(255,255,255,.06);
  box-shadow:
    2px 2px 6px rgba(0,0,0,.25),
    -1px -1px 3px rgba(255,255,255,.03),
    inset 0 1px 0 rgba(255,255,255,.05);
  color: #908A82;
}
[data-theme="dark"] .hero-social-link:hover {
  box-shadow:
    3px 4px 10px rgba(0,0,0,.30),
    -1px -1px 3px rgba(255,255,255,.03),
    inset 0 1px 0 rgba(255,255,255,.05);
}
[data-theme="dark"] .hero-social-link[data-social="github"]:hover   { color: #E8E4DD; background: linear-gradient(145deg, #2F2F35, #252530); }
[data-theme="dark"] .hero-social-link[data-social="linkedin"]:hover  { color: #5BA8E6; background: linear-gradient(145deg, #1E2A35, #1A2530); }
[data-theme="dark"] .hero-social-link[data-social="facebook"]:hover  { color: #6CA0E8; background: linear-gradient(145deg, #1E2535, #1A2030); }
[data-theme="dark"] .hero-social-link[data-social="instagram"]:hover { color: #E87090; background: linear-gradient(145deg, #351E25, #301A20); }
[data-theme="dark"] .hero-social-link[data-social="tiktok"]:hover    { color: #E8E4DD; background: linear-gradient(145deg, #2F2F35, #252530); }

[data-theme="dark"] .hero-socials-label {
  color: var(--ink-muted);
}

/* Resume sheet */
[data-theme="dark"] .resume-sheet {
  background: linear-gradient(145deg, #252530, #1E1E28);
}
[data-theme="dark"] .stamp-badge {
  border-color: var(--accent);
  color: var(--accent);
}

/* Download resume button */
[data-theme="dark"] .rubber-stamp-btn {
  border-color: #E86060;
  color: #E86060;
}
[data-theme="dark"] .rubber-stamp-btn:hover {
  color: #FFF;
  background: #E86060;
  border-color: #E86060;
  box-shadow: 0 4px 16px rgba(232,96,96,.30);
}

/* Project cards */
[data-theme="dark"] .project-index .project-card {
  background: linear-gradient(145deg, #252530, #1E1E28);
  border-color: rgba(255,255,255,.04);
}
[data-theme="dark"] .project-card[aria-selected="true"] {
  border-color: var(--accent);
  background: linear-gradient(145deg, #2A2A35, #222230);
}
[data-theme="dark"] .domain-chip {
  background: rgba(78,205,196,.12);
  color: var(--accent);
  border-color: rgba(78,205,196,.2);
}

/* Skill chips */
[data-theme="dark"] .skill-chip {
  background: linear-gradient(145deg, #2F2F38, #252530);
  border-color: rgba(255,255,255,.06);
  color: var(--ink);
}
[data-theme="dark"] .skill-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Buttons */
[data-theme="dark"] .skeuo-btn.raised.primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  color: #1A1A1F;
}
[data-theme="dark"] .skeuo-btn.metal {
  background: linear-gradient(145deg, #2F2F38, #252530);
  border-color: rgba(255,255,255,.08);
  color: var(--ink);
}
[data-theme="dark"] .skeuo-btn.metal:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Business card & envelope */
[data-theme="dark"] .business-card {
  background: linear-gradient(145deg, #252530, #1E1E28);
}
[data-theme="dark"] .bcard-monogram {
  background: linear-gradient(145deg, #2A2A32, #1E1E26);
  color: var(--accent);
  border-color: rgba(78,205,196,.2);
}
[data-theme="dark"] .bcard-icon {
  color: var(--accent);
}
[data-theme="dark"] .envelope {
  background: linear-gradient(145deg, #252530, #1E1E28);
}
[data-theme="dark"] .envelope-flap {
  background: linear-gradient(180deg, #2A2A32, #252530);
  border-bottom-color: rgba(255,255,255,.05);
}

/* Form inputs */
[data-theme="dark"] .envelope-form input,
[data-theme="dark"] .envelope-form textarea {
  background: #1A1A1F;
  border-color: rgba(255,255,255,.08);
  color: var(--ink);
}
[data-theme="dark"] .envelope-form input:focus,
[data-theme="dark"] .envelope-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(78,205,196,.15);
}
[data-theme="dark"] .envelope-form label {
  color: var(--ink-muted);
}

/* Social cards (Online Presence section) */
[data-theme="dark"] .social-card {
  background: linear-gradient(145deg, #252530, #1E1E28);
  border-color: rgba(255,255,255,.05);
  color: var(--ink);
}
[data-theme="dark"] .social-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.25), 0 2px 6px rgba(0,0,0,.20);
}
[data-theme="dark"] .social-label {
  color: var(--ink);
}
[data-theme="dark"] .social-username {
  color: var(--ink-muted);
}
[data-theme="dark"] .social-card:hover .social-username {
  color: var(--accent);
}

/* Social icons — bright brand colors for dark mode */
[data-theme="dark"] [data-social="github"] .social-icon   { color: #E8E4DD; }
[data-theme="dark"] [data-social="linkedin"] .social-icon  { color: #5BA8E6; }
[data-theme="dark"] [data-social="facebook"] .social-icon  { color: #6CA0E8; }
[data-theme="dark"] [data-social="instagram"] .social-icon { color: #F06292; }
[data-theme="dark"] [data-social="tiktok"] .social-icon    { color: #E8E4DD; }

/* Hover: brighter tint bg in dark mode */
[data-theme="dark"] [data-social="github"]:hover .social-icon   { color: #FFF; background: rgba(255,255,255,.08); }
[data-theme="dark"] [data-social="linkedin"]:hover .social-icon  { color: #7CC0FF; background: rgba(91,168,230,.12); }
[data-theme="dark"] [data-social="facebook"]:hover .social-icon  { color: #8CB8FF; background: rgba(108,160,232,.12); }
[data-theme="dark"] [data-social="instagram"]:hover .social-icon { color: #FF80AB; background: rgba(240,98,146,.12); }
[data-theme="dark"] [data-social="tiktok"]:hover .social-icon    { color: #FFF; background: rgba(255,255,255,.08); }

/* Section titles */
[data-theme="dark"] .section-title {
  color: var(--ink);
}
[data-theme="dark"] .section-title::after {
  background: var(--accent);
}

/* Footer */
[data-theme="dark"] .desk-footer {
  border-top-color: rgba(255,255,255,.05);
  color: var(--ink-muted);
}

/* Case study drawer */
[data-theme="dark"] .drawer-panel {
  background: linear-gradient(145deg, #252530, #1E1E28);
}
[data-theme="dark"] .drawer-overlay {
  background: rgba(0,0,0,.60);
}

/* Paper clip */
[data-theme="dark"] .paper-clip svg path {
  stroke: #555;
}

/* ─── Print-friendly ─── */
@media print {
  #desk-header { position: static; }
  .skeuo-btn { box-shadow: none !important; }
}
