/* ===== Ghost Cursor ===== */
body { cursor: none; }
.custom-cursor {
  pointer-events: none; position: fixed;
  width: 32px; height: 32px; z-index: 99999;
  transform: translate(-50%,-50%);
  transition: transform 0.15s ease;
  will-change: transform; left: 0; top: 0;
}
.custom-cursor::before {
  content: ''; position: absolute; width: 100%; height: 100%;
  background-image: url("../images/svg/ghost-1.svg");
  background-size: contain; background-repeat: no-repeat;
  filter: drop-shadow(0 0 1px rgba(0,0,0,.3));
  transform: scale(1); transition: transform .2s ease;
}
.custom-cursor.hover::before {
  transform: scale(1.5);
  animation: ghostFloat 2s ease-in-out infinite;
}
.custom-cursor-trail {
  pointer-events: none; position: fixed;
  width: 32px; height: 32px; z-index: 99998;
  opacity: 0.5; transform: translate(-50%,-50%);
  transition: opacity .3s ease; left: 0; top: 0;
  background-image: url("../images/svg/ghost-1.svg");
  background-size: contain; background-repeat: no-repeat;
  filter: drop-shadow(0 0 1px rgba(0,0,0,.2));
}
@keyframes ghostFloat {
  0%,100% { transform: scale(1.5) translateY(0); }
  50% { transform: scale(1.5) translateY(-5px); }
}
a, button, [data-project], .project-card, .filter-btn { cursor: none; }
@media (max-width: 768px) { .custom-cursor, .custom-cursor-trail { display: none; } body { cursor: auto; } }

/* ── Mini cards ── */
.mini-cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-top: 4px;
}
@media (max-width: 560px) { .mini-cards { grid-template-columns: 1fr; } }
.mini-card {
  border-radius: 20px; overflow: hidden;
  display: flex; align-items: stretch;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  border: 1px solid rgba(0,0,0,.06);
  min-height: 160px;
}
.mini-card-body {
  flex: 1; padding: 22px 24px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
}
.mini-card-visual {
  width: 160px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: visible;
}
.mini-card-profile { background: #EBF9F2; }
.mini-card-profile .mini-card-visual { background: #C8EFD9; }
.mini-card-stack   { background: #FFFDF8; }
.mini-card-stack .mini-card-visual { background: #F5EFE0; }
.mini-card-eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: rgba(0,0,0,.5);
  margin-bottom: 6px;
}
.mini-card-name {
  font-family: var(--font-display); font-size: 26px; font-weight: 900;
  letter-spacing: -0.8px; line-height: 1.1; color: var(--foreground);
}
.mini-card-role {
  font-size: 15px; color: rgba(0,0,0,.55); margin-top: 6px;
  line-height: 1.45; font-weight: 500;
}
.mini-logo-row { display: flex; gap: 18px; align-items: center; }
.mini-logo-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mini-logo-img {
  width: 48px; height: 48px; border-radius: 12px;
  object-fit: cover; background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.14);
}
.mini-logo-img-round {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; background: none; box-shadow: none;
}
.mini-logo-label {
  font-size: 10px; font-weight: 600; color: rgba(0,0,0,.45);
  text-align: center; white-space: nowrap;
  font-family: var(--font-mono); letter-spacing: .5px;
}
.mini-logo-sep { width: 1px; height: 40px; background: rgba(0,0,0,.1); flex-shrink: 0; }
.mini-avatar {
  width: 136px; height: 136px; border-radius: 50%;
  object-fit: cover; border: 4px solid #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
}
.mini-card-big-title {
  font-family: var(--font-display); font-size: 28px; font-weight: 900;
  letter-spacing: -1px; line-height: 1.05; color: var(--foreground);
}
.mini-card-big-sub {
  font-size: 13px; color: rgba(0,0,0,.45); margin-top: 6px; line-height: 1.5;
}

/* ============================================
   ZJ Eats — v3-aligned design
   ============================================ */
:root {
  /* Brand (Chili red default — preset-swappable) */
  --brand: #E14434;
  --brand-ink: #ffffff;
  --brand-tint: #FDECE9;
  --brand-soft: #FBD9D3;

  --background: #ffffff;
  --foreground: #000000;
  --secondary: #f6f6f6;
  --border: #e8e8e8;
  --muted: #6b6b6b;

  /* Surface layers — overridden by [data-surface] presets */
  --canvas-bg: var(--background);     /* page body + header bg */
  --sidebar-bg: var(--background);    /* left sidebar bg */
  --card-bg: var(--background);       /* card interior default */

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);

  /* badges */
  --badge-green-bg: #06C167; --badge-blue-bg: #2196f3; --badge-red-bg: #e74c3c;
  --badge-orange-bg: #ff9800; --badge-purple-bg: #9c27b0; --badge-teal-bg: #009688;

  --font-display: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

/* Palette presets (swap brand color only; v3 green is "uber-green" preset) */
[data-palette="chili"]    { --brand: #E14434; --brand-tint: #FDECE9; --brand-soft: #FBD9D3; }
[data-palette="green"]    { --brand: #06C167; --brand-tint: #e6f9ef; --brand-soft: #c7f1dd; }
[data-palette="forest"]   { --brand: #2D5A3D; --brand-tint: #E6EFE8; --brand-soft: #C9DDCF; }
[data-palette="midnight"] { --brand: #1B3A5C; --brand-tint: #E8EEF4; --brand-soft: #CAD7E4; }
[data-palette="saffron"]  { --brand: #D97706; --brand-tint: #FDF2E1; --brand-soft: #FADFB3; }

/* Font pairing */
[data-type="helvetica"] { --font-display: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif; --font-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif; }
[data-type="serif-modern"] { --font-display: "Fraunces", Georgia, serif; --font-body: "Inter", Arial, sans-serif; }
[data-type="grotesk"] { --font-display: "Space Grotesk", "Inter", Arial, sans-serif; --font-body: "Space Grotesk", "Inter", Arial, sans-serif; }

/* Surface presets — controls sidebar/canvas/card tint */
[data-surface="white"] {
  --canvas-bg: #ffffff; --sidebar-bg: #ffffff; --card-bg: #ffffff;
}
[data-surface="eggshell-sidebar"] {
  --canvas-bg: #ffffff; --sidebar-bg: #F6F1EB; --card-bg: #ffffff;
  --border: #ECE4D8;
}
[data-surface="warm-canvas"] {
  --canvas-bg: #F6F1EB; --sidebar-bg: #F1EADF; --card-bg: #ffffff;
  --border: #E4DBCB; --secondary: #EEE6D6;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--canvas-bg);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
*:focus { outline: 2px solid var(--brand); outline-offset: 2px; }
*:focus:not(:focus-visible) { outline: none; }

/* ========== Header ========== */
.top-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  border-bottom: 1px solid var(--border);
  background: var(--canvas-bg);
  padding: 12px 20px;
  transition: box-shadow 0.3s ease;
}
.top-header.scrolled { box-shadow: var(--shadow-sm); }

.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; cursor: pointer; text-decoration: none; color: var(--foreground); }
.logo-text { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; font-family: var(--font-display); }
.logo-eats { color: var(--brand); }

.header-toggle {
  display: none; align-items: center; gap: 4px;
  background: var(--secondary);
  padding: 6px; border-radius: 100px; font-size: 12px; font-weight: 500;
}
@media (min-width: 900px) { .header-toggle { display: flex; } }
.toggle-btn {
  padding: 6px 14px; border-radius: 100px; cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  border: 0; background: transparent; font: inherit; color: var(--muted);
}
.toggle-btn.active { background: var(--foreground); color: var(--background); }
.toggle-btn:not(.active):hover { color: var(--foreground); }

.location-bar {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: var(--secondary); padding: 10px 18px; border-radius: 100px;
  transition: all .2s ease; cursor: pointer; min-width: 0;
}
.location-bar:hover { background: #ebebeb; }
.location-bar:active { transform: scale(.98); }
.location-bar i { color: var(--brand); font-size: 16px; }
.location-text { font-size: 15px; font-weight: 500; color: var(--foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.search-bar {
  display: none; flex: 1.2;
  align-items: center; gap: 10px;
  background: var(--secondary); padding: 10px 18px; border-radius: 100px;
  min-width: 0; position: relative;
}
@media (min-width: 1100px) { .search-bar { display: flex; } }
.search-bar i { color: var(--muted); font-size: 14px; }
.search-bar input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 14px; outline: 0; min-width: 0; }

/* ===== Search dropdown ===== */
.search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px); left: 0; right: 0;
  background: var(--background);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.14);
  z-index: 9999;
  overflow: hidden;
  max-height: 400px;
  overflow-y: auto;
}
.search-dropdown.sd-open { display: block; }
.sd-group-label {
  padding: 10px 16px 4px;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted);
}
.sd-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; cursor: pointer;
  transition: background 0.12s ease;
}
.sd-item:hover, .sd-item.sd-active { background: var(--secondary); }
.sd-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--brand-tint); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
.sd-icon img { width: 20px; height: 20px; object-fit: contain; }
.sd-text { min-width: 0; }
.sd-title { font-size: 14px; font-weight: 600; color: var(--foreground); }
.sd-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-empty { padding: 20px 16px; text-align: center; font-size: 13px; color: var(--muted); }
.sd-divider { height: 1px; background: var(--border); margin: 4px 0; }

.social-icons { display: none; align-items: center; gap: 8px; }
@media (min-width: 900px) { .social-icons { display: flex; } }
.social-icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  transition: all .2s ease; text-decoration: none;
}
.social-icon i { font-size: 22px; }
.social-icon[aria-label="LinkedIn"] i  { color: #0A66C2; }
.social-icon[aria-label="GitHub"] i    { color: #1a1a1a; }
.social-icon[aria-label="YouTube"] i   { color: #FF0000; }
.social-icon[aria-label="LinkedIn"]:hover { background: rgba(10,102,194,.10); transform: scale(1.08); }
.social-icon[aria-label="GitHub"]:hover   { background: rgba(0,0,0,.07);      transform: scale(1.08); }
.social-icon[aria-label="YouTube"]:hover  { background: rgba(255,0,0,.10);    transform: scale(1.08); }

.cart-wrapper { position: relative; display: none; }
@media (min-width: 900px) { .cart-wrapper { display: block; } }
.cart-icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--foreground); color: var(--background);
  cursor: pointer; position: relative; transition: all .2s ease; border: 0;
}
.cart-icon:hover { transform: scale(1.05); box-shadow: var(--shadow-md); }
.cart-icon i { font-size: 18px; }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 700;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--background);
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.1)} }

.cart-tooltip {
  position: absolute; top: calc(100% + 12px); right: 0;
  background: var(--foreground); color: var(--background);
  padding: 14px 18px; border-radius: 12px; font-size: 15px; font-weight: 500;
  white-space: nowrap; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all .3s cubic-bezier(.4,0,.2,1); z-index: 100; pointer-events: none;
}
.cart-tooltip::before { content: ''; position: absolute; top: -6px; right: 16px; width: 12px; height: 12px; background: var(--foreground); transform: rotate(45deg); }
.cart-wrapper:hover .cart-tooltip { opacity: 1; visibility: visible; transform: translateY(0); }

.mobile-menu-btn {
  display: block; background: none; border: none;
  font-size: 24px; cursor: pointer; padding: 8px; color: var(--foreground);
}
@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }

/* ========== Sidebar ========== */
.sidebar {
  position: fixed; top: 69px; left: 0;
  width: 240px; height: calc(100vh - 69px);
  border-right: 1px solid var(--border);
  background: var(--sidebar-bg);
  padding: 16px 12px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto;
  transition: transform .3s cubic-bezier(.4,0,.2,1), background .25s ease;
  z-index: 40;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }

/* ---- Status card ---- */
.status-card {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--secondary);
  border: 1px solid var(--border);
  margin-bottom: 4px;
  cursor: default;
  transition: background .2s;
}
.status-card:hover { background: var(--hover); }
.status-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0; position: relative;
}
.status-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: #22c55e;
  opacity: 0;
  animation: status-pulse 2.4s ease-out infinite;
}
@keyframes status-pulse {
  0%   { transform: scale(.6); opacity: .5; }
  70%  { transform: scale(2);  opacity: 0; }
  100% { transform: scale(2);  opacity: 0; }
}
.status-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.status-title {
  font-size: 12px; font-weight: 600;
  color: var(--text-primary); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.status-sub {
  font-size: 11px; color: var(--text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  .sidebar.active { transform: translateX(0); }
}
.sidebar-backdrop {
  display: none; position: fixed; top: 69px; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 35;
}
@media (max-width: 1024px) { .sidebar-backdrop.active { display: block; } }

.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  font-size: 15px; font-weight: 500;
  color: var(--muted); text-decoration: none;
  transition: all .2s ease; margin-bottom: 4px;
}
.nav-item:hover, .nav-item.active { background: var(--secondary); color: var(--foreground); }
.nav-item i { width: 20px; font-size: 18px; }

/* ========== Main ========== */
.main-content { margin-left: 0; transition: margin-left .3s ease; }
@media (min-width: 1024px) { .main-content { margin-left: 240px; } }
.container { max-width: 1400px; margin: 0 auto; padding: 6px 24px; }
@media (min-width: 1280px) { .container { padding: 24px 32px; } }
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 6px 0;
}
.section-divider:last-of-type {
  margin-bottom: 0;
}

/* ========== Skills Carousel ========== */
.skills-section { position: relative; margin-bottom: 4px; }
.skills-scroll {
  display: flex; gap: 28px; overflow-x: auto;
  scroll-behavior: smooth; padding: 12px 0;
  scrollbar-width: none;
}
.skills-scroll::-webkit-scrollbar { display: none; }
.skill-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  flex-shrink: 0; cursor: pointer; transition: transform .2s ease;
}
.skill-item:hover { transform: translateY(-4px); }
.skill-icon {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.skill-item:hover .skill-icon { transform: scale(1.15); }
.skill-icon img { width: 48px; height: 48px; border-radius: 10px; }
.skill-name { font-size: 12px; font-weight: 500; white-space: nowrap; }

.scroll-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--background); border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10; transition: all .2s ease;
}
.scroll-btn:hover { background: var(--secondary); transform: translateY(-50%) scale(1.05); }
.scroll-btn.left { left: -8px; } .scroll-btn.right { right: -8px; }

/* ========== Filter Pills ========== */
.filter-pills {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 24px; padding: 8px 0;
}
.filter-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 100px;
  border: 1.5px solid var(--border); background: var(--background);
  font-size: 15px; font-weight: 500; color: var(--foreground);
  cursor: pointer; white-space: nowrap;
  transition: all .25s cubic-bezier(.4,0,.2,1);
}
.filter-pill:hover { background: var(--secondary); border-color: var(--muted); transform: translateY(-2px); }
.filter-pill.active { background: var(--foreground); color: var(--background); border-color: var(--foreground); }
.filter-pill i { font-size: 14px; }

/* ========== Hero (paired big cards) ========== */
.hero-section { margin-top: 32px; margin-bottom: 64px; }
.hero-pair {
  display: grid; grid-template-columns: 1fr; gap: 0;
  align-items: stretch;
  max-width: 1100px; margin: 0 auto;
}

/* ---------- Order Receipt ---------- */
.receipt-wrap {
  position: relative;
  filter: drop-shadow(0 10px 32px rgba(0,0,0,.13));
}
.receipt-wrap::after {
  content: '';
  position: absolute;
  bottom: -12px; left: 0; right: 0;
  height: 12px;
  background-image:
    linear-gradient(135deg, #FFFDF8 33.33%, transparent 33.33%),
    linear-gradient(225deg, #FFFDF8 33.33%, transparent 33.33%);
  background-size: 12px 12px;
  background-repeat: repeat-x;
  background-position: 0 0;
  background-color: transparent;
}
.v2-card {
  background: #FFFDF8; border-radius: 20px 20px 0 0; overflow: hidden;
  border: 1px solid #ECE4D8; border-bottom: none;
  display: flex; flex-direction: column;
}
.v2-header {
  background: var(--foreground); color: var(--background);
  padding: 16px 24px; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.v2-brand-block { display: flex; align-items: center; gap: 12px; }
.v2-brand-logo {
  width: 40px; height: 40px; border-radius: 10px; background: var(--brand);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 17px;
}
.v2-brand-name { font-family: var(--font-display); font-size: 18px; font-weight: 800; letter-spacing: -0.4px; }
.v2-brand-sub { font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,.5); letter-spacing: 1.5px; text-transform: uppercase; }
.v2-order-no { font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,.45); letter-spacing: .8px; }
.v2-order-no strong { color: var(--background); }
.v2-hero-title {
  padding: 20px 24px 8px;
  font-family: var(--font-display); font-size: clamp(18px, 1.9vw, 23px); font-weight: 800;
  line-height: 1.15; letter-spacing: -0.5px; color: var(--foreground);
}
.v2-hero-title span { color: var(--brand); }
.v2-hero-sub { padding: 0 24px 16px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.v2-items { padding: 0 24px; }
.v2-item {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px dashed rgba(0,0,0,.1);
}
.v2-item:last-child { border-bottom: 0; }
.v2-qty { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--brand); }
.v2-item-name { font-size: 13px; font-weight: 600; color: var(--foreground); }
.v2-item-desc { font-size: 11px; color: var(--muted); margin-top: 1px; }
.v2-item-val { font-family: var(--font-mono); font-size: 12px; font-weight: 700; text-align: right; white-space: nowrap; color: var(--foreground); }
.v2-divider { margin: 8px 24px 0; border-top: 1.5px dashed rgba(0,0,0,.13); }
.v2-total {
  padding: 14px 24px 18px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.v2-total-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.v2-total-val { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -0.4px; color: var(--foreground); }
.v2-total-val span { color: var(--brand); }
.v2-cta-row { display: flex; gap: 8px; flex-wrap: wrap; }
.v2-footer {
  padding: 10px 24px 14px; font-family: var(--font-mono); font-size: 9px;
  color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; text-align: center;
  border-top: none; margin-top: auto;
}
.v2-saw {
  height: 0; border-top: 1.5px dashed rgba(0,0,0,.13);
  margin: 0 20px; flex-shrink: 0;
}
/* Contact popup */
.email-popup-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.5); backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
}
.email-popup-overlay.active { display: flex; }
.email-popup {
  background: #fff; border-radius: 20px;
  box-shadow: 0 28px 72px rgba(0,0,0,.28); max-width: 400px; width: 90%;
  overflow: hidden; position: relative;
}
/* Status bar */
.ep-status-bar {
  background: #F59E0B; padding: 11px 18px;
  display: flex; align-items: center; gap: 9px;
}
.ep-status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #7C4A00;
  flex-shrink: 0; position: relative;
}
.ep-status-dot::before {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  background: rgba(124,74,0,.4); opacity: 0;
  animation: status-pulse 2.4s ease-out infinite;
}
.ep-status-text {
  font-size: 10px; font-weight: 700; color: #78350F;
  letter-spacing: 0.07em; flex: 1;
}
.ep-close {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: rgba(0,0,0,.12); border: none; color: #78350F;
  font-size: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.ep-close:hover { background: rgba(0,0,0,.22); }
/* Body */
.ep-body { padding: 24px 22px 28px; }
.ep-eyebrow {
  font-size: 10px; font-weight: 700; color: #06C167;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px;
}
.ep-title {
  font-family: var(--font-display); font-size: 22px; font-weight: 800;
  color: #1a1a1a; line-height: 1.2; margin-bottom: 8px;
}
.ep-sub {
  font-size: 13px; color: #777; line-height: 1.5; margin-bottom: 20px;
}
/* Contact option rows */
.contact-option {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 15px; border-radius: 14px;
  border: 1.5px solid #EBEBEB; background: #FAFAFA;
  text-decoration: none; color: inherit;
  transition: all .2s ease; margin-bottom: 10px; text-align: left;
}
.contact-option:last-child { margin-bottom: 0; }
.contact-option:hover { border-color: #06C167; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(6,193,103,.12); }
.contact-option-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.contact-option-linkedin .contact-option-icon { background: #0A66C2; color: #fff; }
.contact-option-email .contact-option-icon { background: #F0F0F0; color: #444; border: 1.5px solid #E0E0E0; }
.contact-option-text { flex: 1; min-width: 0; }
.contact-option-label {
  font-size: 13px; font-weight: 600; color: #1a1a1a;
  display: flex; align-items: center; gap: 7px; margin-bottom: 2px;
}
.contact-option-sub { font-size: 11px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact-badge {
  font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 20px;
  letter-spacing: 0.06em; flex-shrink: 0;
}
.contact-badge-express { background: #06C167; color: #fff; }
.contact-badge-standard { background: #EBEBEB; color: #666; }
.contact-option-arrow { color: #BBBBBB; font-size: 11px; flex-shrink: 0; }

/* Shared buttons used inside variants */
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  padding: 14px 26px; border-radius: 12px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  cursor: pointer; border: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .25s cubic-bezier(.4,0,.2,1);
}
.btn-primary { background: var(--foreground); color: var(--background); box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: var(--background); color: var(--foreground); border: 2px solid var(--border); }
.btn-secondary:hover { background: var(--foreground); color: var(--background); border-color: var(--foreground); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); filter: brightness(.95); }
.btn-ghost-light { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn-ghost-light:hover { background: rgba(255,255,255,.25); }

/* ========== Section Header ========== */
.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px; gap: 12px; flex-wrap: wrap;
}
.section-title {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700; letter-spacing: -0.3px;
  display: flex; align-items: center; gap: 10px;
}
.see-all {
  display: flex; align-items: center; gap: 6px;
  font-size: 16px; font-weight: 600;
  color: var(--foreground); text-decoration: none;
  transition: all .2s ease;
}
.see-all:hover { color: var(--brand); transform: translateX(4px); }

/* ========== Projects Grid ========== */
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px; margin-bottom: 0;
}
@media (max-width: 768px) { .projects-grid { grid-template-columns: 1fr; } }

.project-card {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1.5px solid var(--border); background: var(--background);
  transition: all .3s cubic-bezier(.4,0,.2,1); cursor: pointer;
  text-decoration: none; color: inherit; display: block;
}
.project-card:hover {
  box-shadow: var(--shadow-lg); transform: translateY(-6px);
  border-color: var(--brand);
}
.project-image {
  width: 100%; aspect-ratio: 16 / 9; height: auto;
  object-fit: cover; object-position: center top;
  background: var(--secondary); transition: transform .3s ease; display: block;
}
.project-card:hover .project-image { transform: scale(1.02); }

.project-content { padding: 18px; }
.project-badge {
  position: absolute; top: 14px; left: 14px;
  padding: 5px 11px; border-radius: 6px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 10; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.18);
  -webkit-font-smoothing: antialiased;
}
.badge-green,
.badge-blue,
.badge-red,
.badge-orange,
.badge-purple,
.badge-teal { background: var(--badge-red-bg); }

.project-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.2px; font-family: var(--font-display); }
.project-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; color: var(--muted);
}
.project-rating { display: flex; align-items: center; gap: 5px; }
.project-rating i { color: #ffc107; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.project-tag {
  padding: 4px 10px; border-radius: 6px; background: var(--secondary);
  font-size: 12px; color: var(--muted); font-weight: 500;
}

/* ========== More Projects Carousel ========== */
.project-group { margin-bottom: 32px; }
.project-group:last-child { margin-bottom: 0; }
.project-group-label {
  font-size: 13px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--muted); margin: 0 0 12px 2px;
}
.more-projects-carousel { position: relative; overflow: hidden; margin-bottom: 0; }
.more-projects-scroll {
  display: flex; gap: 24px; width: max-content;
  animation: scroll-projects 50s linear infinite;
}
.more-projects-scroll:hover { animation-play-state: paused; }
@keyframes scroll-projects { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ========== Experience ========== */
.experience-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
}
@media (max-width: 768px) {
  .experience-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); justify-content: center; }
}

.experience-card {
  display: flex; align-items: stretch;
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  text-decoration: none; color: inherit;
  transition: all .2s ease; min-height: 110px;
}
.experience-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.13); transform: translateY(-2px); }
.experience-card-body {
  flex: 1; padding: 14px 16px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.experience-card-visual {
  width: 100px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.experience-image {
  width: 66px; height: 66px; object-fit: contain;
  border-radius: 12px; background: rgba(255,255,255,.75);
  box-shadow: 0 2px 8px rgba(0,0,0,.13);
}
.experience-image-round {
  width: 66px; height: 66px; object-fit: cover;
  border-radius: 50%; background: none; box-shadow: none;
}
.experience-badge {
  display: inline-block; font-family: var(--font-mono);
  font-size: 9px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(0,0,0,.42); margin-bottom: 4px;
}
.experience-company { font-size: 17px; font-weight: 900; letter-spacing: -0.4px; line-height: 1.1; margin-bottom: 3px; color: var(--foreground); }
.experience-title { font-size: 12px; font-weight: 500; color: rgba(0,0,0,.55); line-height: 1.3; }
.experience-meta { display: flex; gap: 8px; font-size: 10px; color: rgba(0,0,0,.38); margin-top: 8px; }
.exp-green { background: #EBF9F2; }
.exp-green .experience-card-visual { background: #C8EFD9; }
.exp-blue  { background: #EBF4FF; }
.exp-blue  .experience-card-visual { background: #C5DCFF; }
.exp-purple{ background: #F3F0FF; }
.exp-purple .experience-card-visual { background: #DDD5FE; }
.exp-sand  { background: #FFF8EF; }
.exp-sand  .experience-card-visual { background: #FFE4BE; }
.exp-teal  { background: #E8F8F5; }
.exp-teal  .experience-card-visual { background: #B2DFDB; }
.exp-rose  { background: #FFF0F0; }
.exp-rose  .experience-card-visual { background: #FFCDD2; }

/* ========== Footer ========== */

/* ========== Tweaks panel ========== */
.tweaks-panel {
  position: fixed; right: 18px; bottom: 18px;
  width: 300px; background: var(--background);
  border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 18px;
  z-index: 200; display: none; font-size: 13px;
}
.tweaks-panel.on { display: block; animation: slideIn .22s ease; }
@keyframes slideIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.tweaks-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.tweaks-head h4 { font-size: 14px; font-weight: 700; font-family: var(--font-display); }
.tweaks-head .close { border: 0; background: transparent; cursor: pointer; color: var(--muted); font-size: 16px; }
.tweaks-group { margin-bottom: 14px; }
.tweaks-group > label {
  display: block; font-family: var(--font-mono);
  font-size: 10.5px; color: var(--muted);
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px;
}
.tweak-swatches { display: flex; gap: 8px; }
.tweak-swatches button {
  width: 36px; height: 36px; border-radius: 10px;
  border: 2px solid var(--border); cursor: pointer; padding: 0;
}
.tweak-swatches button.on { border-color: var(--foreground); box-shadow: 0 0 0 2px var(--background), 0 0 0 3px var(--foreground); }
.tweak-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tweak-row button {
  padding: 7px 11px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--background);
  font: inherit; font-size: 12px; font-weight: 600;
  cursor: pointer; color: var(--muted);
}
.tweak-row button.on { background: var(--foreground); color: var(--background); border-color: var(--foreground); }

/* Concept intensity — subtle hides the most decorative pieces */
[data-concept="subtle"] .filter-pills { display: none; }

/* Responsive */
@media (max-width: 900px) {
  .top-header { padding: 10px 16px; }
}
@media (max-width: 768px) {
  .container { padding: 16px 18px; }
  .section-divider { margin: 28px 0; }
  .filter-pills { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; padding-bottom: 12px; }
  .filter-pills::-webkit-scrollbar { display: none; }
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .section-title { font-size: 24px; }
  .v1-body { padding: 28px; }
  .v2-header, .v2-hero-title, .v2-hero-sub, .v2-items, .v2-total, .v2-cta-row { padding-left: 22px; padding-right: 22px; }
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero-section, .projects-grid > *, .experience-card { animation: fadeIn .5s ease-out both; }
.projects-grid > *:nth-child(1) { animation-delay: .1s; }
.projects-grid > *:nth-child(2) { animation-delay: .2s; }
.projects-grid > *:nth-child(3) { animation-delay: .3s; }