
:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #888888;
  --pink: #ff1f7a;
  --max-w: 1200px;
  --font: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: var(--font); line-height: 1.6; }
a { color: inherit; text-decoration: none; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 56px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 40px;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.4s;
}
nav.light {
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid #e8e8e8;
}
.nav-logo {
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: #fff; white-space: nowrap;
  transition: color 0.4s;
}
nav.light .nav-logo { color: #111; }

.nav-links {
  display: flex; flex-wrap: nowrap; justify-content: flex-end;
  gap: 24px; align-items: center;
  font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase;
}
@media (max-width: 1000px) { .nav-links { gap: 14px; font-size: 10px; } }
.nav-links a { color: rgba(255,255,255,0.6); transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover { color: #fff; }
nav.light .nav-links a { color: rgba(0,0,0,0.5); }
nav.light .nav-links a:hover { color: #111; }

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; cursor: pointer;
  background: none; border: none; padding: 0; flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px; transition: all 0.3s;
}
nav.light .nav-hamburger span { background: #111; }
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── MOBILE MENU ── */
.nav-mobile-menu {
  position: fixed; top: 56px; left: 0; right: 0; bottom: 0; z-index: 199;
  background: rgba(10,4,18,0.97);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.nav-mobile-menu.open { opacity: 1; pointer-events: all; }
.nav-mobile-menu a {
  color: rgba(255,255,255,0.65); font-size: 18px; letter-spacing: 0.12em;
  text-transform: uppercase; transition: color 0.2s;
}
.nav-mobile-menu a:hover { color: #fff; }
.nav-mobile-menu .nav-mobile-contact {
  color: var(--pink) !important; border: 1px solid var(--pink);
  padding: 10px 28px; border-radius: 100px; margin-top: 8px; font-size: 13px;
}
.nav-mobile-menu .nav-mobile-contact:hover { background: var(--pink); color: #fff !important; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: 100px 32px 80px;
  background: #120820;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('images/hero-painting.jpg');
  background-size: cover; background-position: center;
  opacity: 0.55;
}
/* Fallback gradient when no painting */
.hero-bg-fallback {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 40%, #3b1f6e 0%, #1a0a2e 40%, #0d0614 100%);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0.65) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.hero-label {
  display: inline-block;
  font-size: 13px; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--pink); margin-bottom: 24px;
  font-weight: 400;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700; color: #fff;
  line-height: 1.1; letter-spacing: -0.02em;
}
.hero-sub {
  margin-top: 16px;
  font-size: clamp(16px, 2.2vw, 22px);
  color: rgba(255,255,255,0.75);
  font-style: italic; font-weight: 300;
}
.hero-cta {
  margin-top: 48px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.btn {
  padding: 13px 32px; border-radius: 100px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.06em;
  cursor: pointer; transition: all 0.25s;
}
.btn-primary {
  background: var(--pink); color: #fff; border: 2px solid var(--pink);
}
.btn-primary:hover { background: #e0185e; border-color: #e0185e; transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover { border-color: #fff; transform: translateY(-2px); }
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.4); font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll::after {
  content: ''; display: block;
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}

/* ── AMBIENT AUDIO ── */
.audio-btn {
  position: fixed; bottom: 28px; right: 28px; z-index: 300;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 18px; transition: all 0.2s; color: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.audio-btn:hover { background: rgba(255,255,255,0.22); transform: scale(1.08); }
.audio-btn.playing { background: var(--pink); border-color: var(--pink); }

/* ── SECTION LABELS ── */
.section-label {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.section-title {
  font-size: clamp(24px, 3vw, 36px); font-weight: 400;
  letter-spacing: -0.02em; margin-bottom: 48px;
}

/* ── RECENT PROJECTS ── */
.recent-section {
  background: #0a0a12;
  padding: 100px 40px;
}
.recent-section .section-label { color: rgba(255,255,255,0.35); }
.recent-section .section-title { color: #fff; }
.recent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: var(--max-w); margin: 0 auto;
}
@media (max-width: 900px) { .recent-grid { grid-template-columns: 1fr; } }

.recent-card {
  border-radius: 16px; padding: 40px 36px;
  display: flex; flex-direction: column; gap: 16px;
  border: 1px solid rgba(255,255,255,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden; min-height: 280px;
  text-decoration: none;
}
.recent-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, var(--card-accent, #a855f7) 0%, transparent 65%);
  opacity: 0.12; transition: opacity 0.3s;
}
.recent-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.recent-card:hover::before { opacity: 0.22; }

.card-tag {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  opacity: 0.5; color: #fff;
}
.recent-card h3 {
  font-size: clamp(20px, 2.5vw, 26px); font-weight: 600; color: #fff;
  line-height: 1.2;
}
.recent-card p {
  font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.65;
  flex: 1;
}
.card-link {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px; margin-top: 8px;
}
.card-link-arrow { transition: transform 0.2s; }
.recent-card:hover .card-link-arrow { transform: translateX(4px); }

.badge-coming {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.45);
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
}
.badge-live {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  background: rgba(16, 185, 129, 0.15); color: #10b981;
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid rgba(16,185,129,0.25);
}

/* ── ARCHIVE DIVIDER ── */
.archive-divider {
  padding: 80px 40px 0;
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
}
.archive-divider-line {
  flex: 1; height: 1px; background: #e8e8e8;
}
.archive-divider-label {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}

/* ── ARCHIVE GRID ── */
.archive-section { padding: 40px 40px 100px; }
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  max-width: var(--max-w); margin: 0 auto;
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  nav { padding: 0 20px; grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .recent-section, .archive-divider, .archive-section { padding-left: 20px; padding-right: 20px; }
  .recent-grid { gap: 12px; }
  .recent-card { padding: 28px 24px; }
}

.card {
  position: relative; display: block;
  background: #f4f4f4; overflow: hidden; aspect-ratio: 1/1;
}
.card-thumb {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.card:hover .card-thumb { transform: scale(1.04); }
.card-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 20px;
  transition: background 0.3s ease;
}
.card:hover .card-overlay { background: rgba(0,0,0,0.5); }
.card-meta {
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s; color: #fff;
}
.card:hover .card-meta { opacity: 1; transform: translateY(0); }
.card-year  { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; }
.card-title { font-size: 15px; font-weight: 500; margin-top: 2px; }
.card-desc  { font-size: 11px; margin-top: 2px; opacity: 0.7; }
.card-no-thumb { background: #111; }
.card-no-thumb .card-overlay { background: transparent; }
.card-no-thumb .card-meta { opacity: 1; transform: none; }

/* ── PROJECT PAGE ── */
.project-header {
  max-width: 760px; margin: 88px auto 48px; padding: 0 32px;
}
.project-header .back {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); display: inline-flex; align-items: center; gap: 6px; margin-bottom: 32px;
}
.project-header .back:hover { color: #111; }
.project-header h1 {
  font-size: clamp(24px, 3.5vw, 44px); font-weight: 400; letter-spacing: -0.02em;
}
.project-header .tagline { font-size: 15px; color: var(--muted); margin-top: 8px; }
.project-header .description {
  font-size: 15px; margin-top: 24px; line-height: 1.75; max-width: 600px;
}
.project-header .description a { border-bottom: 1px solid currentColor; }
.project-header .stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px; margin-top: 36px; padding-top: 36px;
  border-top: 1px solid #e8e8e8;
}
.stat-item .stat-label {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.stat-item .stat-value { font-size: 20px; font-weight: 600; margin-top: 4px; }

.project-media {
  max-width: 1000px; margin: 0 auto; padding: 0 32px 80px;
  display: flex; flex-direction: column; gap: 4px;
}
.project-media img, .project-media video {
  width: 100%; display: block; background: #f4f4f4;
}
.project-media video { max-height: 70vh; object-fit: contain; background: #000; }

/* ── LIGHTBOX ── */
#lb {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.95);
  align-items: center; justify-content: center;
}
#lb.active { display: flex; }
.lb-img {
  max-width: 88vw; max-height: 88vh;
  object-fit: contain; border-radius: 4px;
  user-select: none;
}
.lb-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; color: rgba(255,255,255,0.7);
  font-size: 28px; line-height: 1; cursor: pointer; padding: 8px;
  transition: color 0.2s;
}
.lb-close:hover { color: #fff; }
.lb-prev, .lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.08); border: none;
  color: #fff; font-size: 36px; line-height: 1;
  cursor: pointer; padding: 12px 18px; border-radius: 4px;
  transition: background 0.2s; user-select: none;
}
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.18); }
.lb-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.5); font-size: 12px; letter-spacing: 0.1em;
}
@media (max-width: 600px) {
  .lb-prev { left: 8px; padding: 10px 14px; }
  .lb-next { right: 8px; padding: 10px 14px; }
}

/* 2-column grid for GIF-heavy pages (motion design) */
.project-media.grid-2 {
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.project-media.grid-2 img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 8px;
}
@media (max-width: 600px) {
  .project-media.grid-2 { grid-template-columns: 1fr; gap: 8px; }
}
.video-label {
  padding: 16px 0 4px; font-size: 11px; color: var(--muted);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.xd-embed { border: 1px solid #e8e8e8; border-radius: 4px; overflow: hidden; aspect-ratio: 16/10; }
.xd-embed iframe { width: 100%; height: 100%; border: none; }

/* ── ICOUNT SECTIONS ── */
.icount-section {
  padding: 80px 40px;
  max-width: 1100px; margin: 0 auto;
}
.icount-section-alt { background: #fafafa; max-width: 100%; }
.icount-section-alt > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.icount-section-inner { margin-bottom: 40px; }
.icount-section-title {
  font-size: clamp(22px, 3vw, 32px); font-weight: 400;
  letter-spacing: -0.02em; margin: 8px 0 10px;
}
.icount-section-desc { font-size: 15px; color: var(--muted); max-width: 560px; }
.icount-mockup-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.icount-mockup-3col { grid-template-columns: repeat(2, 1fr); }
.icount-mockup-grid img {
  width: 100%; border-radius: 8px;
  background: #f4f4f4; object-fit: contain;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.icount-data-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.icount-data-grid img {
  width: 100%; border-radius: 8px; border: 1px solid #efefef;
  background: #fff; object-fit: contain;
}
.icount-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 32px;
  padding-top: 32px; border-top: 1px solid #e8e8e8;
}
.icount-list {
  list-style: none; display: flex; flex-direction: column; gap: 10px;
  font-size: 14px; line-height: 1.6;
}
@media (max-width: 700px) {
  .icount-cols { grid-template-columns: 1fr; gap: 24px; }
  .icount-mockup-grid { grid-template-columns: 1fr; }
  .icount-mockup-3col { grid-template-columns: 1fr; }
  .icount-data-grid { grid-template-columns: 1fr; }
  .icount-section { padding: 48px 20px; }
}

/* ── HIRE ME PAGE ── */
.hire-page-wrap {
  max-width: 1000px; margin: 0 auto; padding: 104px 40px 80px;
}
.hire-page-wrap .back {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); display: inline-flex; align-items: center; gap: 6px; margin-bottom: 40px;
}
.hire-page-wrap .back:hover { color: #111; }
.hire-hero {
  display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: start;
  padding-bottom: 60px;
}
.hire-hero-photo { flex-shrink: 0; padding-top: 8px; }
.hire-photo {
  width: 260px; height: 320px; object-fit: cover;
  border-radius: 16px; display: block;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}
.hire-photo-placeholder {
  width: 260px; height: 320px; border-radius: 16px;
  background: #f5f5f5; border: 2px dashed #ddd;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; font-size: 28px; color: #bbb;
}
.hire-photo-placeholder span { font-size: 11px; text-align: center; line-height: 1.6; color: #aaa; padding: 0 16px; }
.hire-body {
  border-top: 1px solid #f0f0f0;
  padding-top: 32px;
}
.hire-body p {
  font-size: 16px; line-height: 1.85; color: #333; margin-bottom: 22px;
  max-width: 660px;
}
.hire-stats {
  display: flex; gap: 48px; flex-wrap: wrap;
  padding: 32px 0; border-top: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8;
  margin: 36px 0 40px;
}
.hire-stat {
  display: flex; flex-direction: column; gap: 4px;
}
.hire-stat-num {
  font-size: 42px; font-weight: 700; letter-spacing: -0.04em; color: #111; line-height: 1;
}
.hire-stat-label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.hire-skills {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px;
}
.skill-tag {
  padding: 6px 16px; border-radius: 100px;
  border: 1px solid #e0e0e0; font-size: 13px; color: #555;
  background: #fafafa; transition: all 0.2s;
}
.skill-tag:hover { border-color: #aaa; background: #f0f0f0; }
.hire-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.btn.dark { color: #111; border-color: rgba(0,0,0,0.25); }
.btn.dark:hover { border-color: #111; background: rgba(0,0,0,0.04); }
@media (max-width: 700px) {
  .hire-page-wrap { padding: 88px 20px 60px; }
  .hire-hero { grid-template-columns: 1fr; gap: 32px; }
  .hire-hero-photo { order: -1; padding-top: 0; }
  .hire-photo, .hire-photo-placeholder { width: 140px; height: 175px; }
  .hire-stats { gap: 32px; }
}

/* ── FOOTER ── */
.footer-wrap {
  border-top: 1px solid #e8e8e8; padding: 32px 40px;
}
footer {
  display: flex; justify-content: space-between; align-items: center;
  max-width: var(--max-w); margin: 0 auto;
  flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted);
}
.footer-left { display: flex; flex-direction: column; gap: 3px; }
.footer-social { display: flex; gap: 20px; align-items: center; }
.footer-social a:hover { color: #111; }
.footer-built { font-size: 11px; color: #bbb; }
.footer-built a { color: #bbb; border-bottom: 1px solid rgba(0,0,0,0.15); transition: color 0.2s; }
.footer-built a:hover { color: #111; }
@media (max-width: 600px) {
  .footer-wrap { padding: 24px 20px; }
  footer { flex-direction: column; align-items: flex-start; gap: 16px; }
}
