/* ─────────────────────────────────────────
   BASE RESET & TOKENS
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:     #080808;
  --fg:     #f0ede6;
  --border: #1e1e1e;
  --font:   'Montserrat', sans-serif;
  --pad-x:  48px;
  --pad-x-sm: 20px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* ─────────────────────────────────────────
   CANVAS
───────────────────────────────────────── */
#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  background: var(--bg);
}

/* everything sits above the canvas */
nav, .mobile-menu, .hero, .works, footer, .cursor, .cursor-ring {
  position: relative;
  z-index: 1;
}

/* ─────────────────────────────────────────
   CURSOR (desktop only — JS sets display:block)
───────────────────────────────────────── */
.cursor,
.cursor-ring {
  display: none;
  position: fixed;
  pointer-events: none;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
}
.cursor {
  width: 8px; height: 8px;
  background: var(--fg);
  border-radius: 50%;
  z-index: 9999;
  transition: width 0.2s, height 0.2s;
}
.cursor.grow { width: 36px; height: 36px; }
.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(240,237,230,0.35);
  border-radius: 50%;
  z-index: 9998;
}

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--pad-x);
}

.logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--fg);
}
.logo-sq {
  width: 13px; height: 13px;
  background: var(--fg);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.07em;
  text-decoration: none;
  color: var(--fg);
  transition: opacity 0.2s;
}
.nav-links a:hover,
.nav-links a.nav-active { opacity: 1; }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px; height: 1px;
  background: var(--fg);
}

/* ─────────────────────────────────────────
   MOBILE MENU
───────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8,8,8,0.97);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--fg);
  transition: opacity 0.2s;
}
.close-btn {
  position: absolute;
  top: 22px; right: 28px;
  font-size: 26px;
  background: none;
  border: none;
  color: var(--fg);
  cursor: pointer;
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 40px 80px;
  position: relative;
}

.hero-name {
  font-size: clamp(40px, 7.5vw, 100px);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 28px;
  animation: fadeUp 1s ease 0.1s both;
}
.hero-bio {
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.02em;
  animation: fadeUp 1s ease 0.3s both;
}

/* scroll arrow */
.scroll-arrow {
  position: absolute;
  bottom: 52px;
  left: 50%;
  width: 0; height: 0;
  opacity: 0;
  animation: arrowIn 1s ease 0.55s forwards, bounce 2.2s ease-in-out 1.6s infinite;
}
.scroll-arrow.hidden  { animation: arrowOut 0.5s ease forwards; pointer-events: none; }
.scroll-arrow.visible { animation: arrowIn  0.5s ease forwards, bounce 2.2s ease-in-out infinite; }

/* ─────────────────────────────────────────
   KEYFRAMES
───────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}
@keyframes arrowIn {
  from { opacity: 0; transform: translateX(-50%) translateY(6px); }
  to   { opacity: 0.5; transform: translateX(-50%) translateY(0); }
}
@keyframes arrowOut {
  from { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  to   { opacity: 0;   transform: translateX(-50%) translateY(6px); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ─────────────────────────────────────────
   WORKS GRID
───────────────────────────────────────── */
.works { padding: 80px var(--pad-x) 100px; }

.section-title,
.contact-title {
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}
.section-title { margin-bottom: 60px; }
.contact-title { margin-bottom: 56px; }

.works-grid { display: flex; flex-direction: column; gap: 60px; }

.works-row {
  display: grid;
  grid-template-columns: 5fr 8fr;
  gap: 32px;
  align-items: start;
}
.works-row--flip { grid-template-columns: 8fr 5fr; }

.work-card { display: flex; flex-direction: column; gap: 16px; }

.work-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0e0e0e;
  transition: transform 0.7s ease;
}
.work-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

/* card link hover scales the image */
.work-image-link {
  display: block;
  text-decoration: none;
  overflow: hidden;
}
.work-image-link:hover .work-image { transform: scale(1.03); }

/* work in progress — not clickable yet */
.work-card--wip { cursor: default; }
.work-image--wip { position: relative; }
.work-image--wip img { filter: grayscale(40%) brightness(0.55); }
.wip-badge {
  position: absolute;
  top: 16px; left: 16px;
  padding: 7px 14px;
  border: 1px solid rgba(240, 237, 230, 0.5);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.55);
  backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
}

.work-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.phone {
  width: 72px; height: 130px;
  border: 1.5px solid #333;
  border-radius: 12px;
  background: #5c5cf5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  letter-spacing: 0.05em;
  color: #fff;
  box-shadow: 0 0 30px rgba(92,92,245,0.2);
}
.phone.back {
  height: 108px;
  background: #2e2e2e;
  box-shadow: none;
  opacity: 0.5;
  margin-top: 22px;
}

.work-title {
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 500;
  letter-spacing: 0.03em;
}
.work-title a { color: var(--fg); text-decoration: none; transition: opacity 0.2s; }
.work-title a:hover { opacity: 0.6; }

.work-desc {
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.works-cta { display: flex; justify-content: center; margin-top: 64px; }

/* ─────────────────────────────────────────
   PILL BUTTONS (shared by all pages)
───────────────────────────────────────── */
.btn-pill {
  display: inline-block;
  border: 1px solid var(--fg);
  padding: 13px 36px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--fg);
  text-decoration: none;
  border-radius: 40px;
  transition: background 0.25s, color 0.25s;
}
.btn-pill:hover { background: var(--fg); color: var(--bg); }

/* alias classes that use the same pill style */
.btn-see-all,
.btn-artworks { }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer { padding: 0 var(--pad-x) 52px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  margin-bottom: 80px;
}

.footer-tagline {
  font-size: 13px;
  font-weight: 300;
  opacity: 0.5;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}
.f-email,
.footer-right a {
  font-size: 13px;
  font-weight: 300;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.footer-copy {
  font-size: 11px;
  font-weight: 300;
  opacity: 0.4;
  letter-spacing: 0.06em;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

/* ─────────────────────────────────────────
   SCROLL REVEAL
───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ─────────────────────────────────────────
   LOADER
───────────────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  background: #080808;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.8s ease;
}
.loader.bg-fade { opacity: 0; }
.loader.done    { display: none; }

.loader-name,
.loader-cursor {
  font-size: clamp(36px, 7vw, 96px);
  font-weight: 500;
  color: var(--fg);
  white-space: nowrap;
}
.loader-name {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: opacity 0.6s ease;
}
.loader-name.fade-out { opacity: 0; }

.loader-cursor {
  font-weight: 200;
  margin-left: 2px;
  animation: blink 0.7s step-end infinite;
  transition: opacity 0.3s ease;
}
.loader-cursor.hide { opacity: 0; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1200px) {
  .works-row,
  .works-row--flip { grid-template-columns: 1fr; gap: 48px; }
  .work-image { aspect-ratio: 16 / 10; }
}

@media (max-width: 768px) {
  nav { padding: 18px var(--pad-x-sm); }
  .nav-links  { display: none; }
  .hamburger  { display: flex; }

  .hero { padding: 90px 24px 80px; }
  .hero-name  { letter-spacing: 0.08em; }
  .hero-bio {max-width: 350px;}

  .works      { padding: 60px var(--pad-x-sm) 80px; }
  .works-grid { gap: 40px; }

  footer { padding: 0 var(--pad-x-sm) 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 48px; }
  .footer-right { align-items: flex-start; }
}