/* ==========================================================================
   Luniva Manandhar — portfolio
   Palette: cream paper + espresso ink + dusty pink + terracotta + olive
   Type:    Yellowtail (script, names/big titles)
            Caveat (handwritten accents, small labels)
            Inter (body/nav/UI — does the actual reading work)
   ========================================================================== */

:root {
  --cream: #f4ebda;
  --cream-deep: #ead9bf;
  --paper: #fbf6ec;
  --ink: #2b2119;
  --ink-soft: #5c4d3f;
  --pink: #cf98a0;
  --pink-deep: #a85f6d;
  --terracotta: #b5643f;
  --olive: #6e6b4a;
  --line: rgba(43, 33, 25, 0.14);
  --shadow: 0 10px 30px rgba(43, 33, 25, 0.12);

  --font-script: "Yellowtail", cursive;
  --font-signature: "Sacramento", cursive;
  --font-hand: "Caveat", cursive;
  --font-mono: "Space Mono", ui-monospace, monospace;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;

  /* scrapbook paper: subtle craft-paper dot grain + soft diagonal fiber lines */
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(43, 33, 25, 0.07) 1px, transparent 0),
    repeating-linear-gradient(115deg, rgba(43, 33, 25, 0.025) 0px, rgba(43, 33, 25, 0.025) 1px, transparent 1px, transparent 5px);
  background-size: 22px 22px, auto;
}

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

a {
  color: inherit;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- skip link (a11y) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: rgba(244, 235, 218, 0.86);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-nav .brand {
  font-family: var(--font-script);
  font-size: 1.7rem;
  text-decoration: none;
  color: var(--ink);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.site-nav a.nav-link {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.site-nav a.nav-link:hover,
.site-nav a.nav-link:focus-visible {
  color: var(--ink);
  border-color: var(--pink-deep);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- hero: name up top, draggable stickers clustered in the middle ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 68px); /* fill the screen minus the sticky nav */
  padding: 56px 24px 90px;
  overflow: hidden;
  text-align: center;
}

/* the name block, sitting at the top */
.hero-center {
  position: relative;
  z-index: 3;
  max-width: 620px;
  margin: 0 auto;
  pointer-events: none; /* let clicks/drags fall through to stickers behind it */
}

.hero-name {
  font-family: var(--font-signature);
  font-size: clamp(3.2rem, 8vw, 5.4rem);
  font-weight: 400;
  margin: 0;
  line-height: 1;
  color: var(--ink);
}

.hero-role {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 14px 0 2px;
}

.hero-def {
  font-family: var(--font-serif, Georgia, serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--pink-deep);
  margin: 0 0 20px;
}

.hero-tagline {
  max-width: 460px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* small rounded utility buttons docked at the bottom, like Jackie's */
.hero-dock {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  gap: 12px;
}

.dock-btn {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--ink-soft);
  transition: transform 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.dock-btn:hover,
.dock-btn:focus-visible {
  transform: translateY(-4px);
  color: var(--pink-deep);
  background: #fff;
}

.floating-object {
  position: absolute;
  width: 200px;
  height: 200px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: grab;
  touch-action: none;
  -webkit-user-drag: none;
  user-select: none;
  transition: transform 0.25s ease;
  animation: bob 6s ease-in-out infinite;
}

.floating-object img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(43, 33, 25, 0.2));
  pointer-events: none; /* the <a> handles drag/click, not the image */
  -webkit-user-drag: none;
}

.floating-object:active {
  cursor: grabbing;
}

.floating-object.is-dragging {
  animation: none;
  transition: none;
  z-index: 500;
}

.floating-object.is-dragging img {
  filter: drop-shadow(0 16px 24px rgba(43, 33, 25, 0.28));
}

/* sticker that trails the cursor around the hero — spawned by js/main.js */
.cursor-trail {
  position: fixed;
  z-index: 40;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(1);
  opacity: 0.9;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.cursor-trail.is-fading {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(0.4);
}

.floating-object:hover,
.floating-object:focus-visible {
  transform: scale(1.1) rotate(-3deg);
}

.floating-object:hover img,
.floating-object:focus-visible img {
  filter: drop-shadow(0 14px 22px rgba(43, 33, 25, 0.26));
}

.floating-object .fo-label {
  position: absolute;
  bottom: -26px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-hand);
  font-size: 1.05rem;
  white-space: nowrap;
  color: var(--ink-soft);
  background: rgba(251, 246, 236, 0.8);
  padding: 1px 8px;
  border-radius: 999px;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* individual placements — two flank the name up high (clear of the centered
   text column), three sit in a row across the lower-middle. Tweak freely. */
.fo-1 { top: 30%; left: 4%;  animation-delay: 0s; }   /* Photography — far left */
.fo-3 { top: 30%; left: 77%; animation-delay: 1.2s; } /* Videography — far right */
.fo-2 { top: 58%; left: 8%;  animation-delay: 0.6s; } /* Podcast — lower left */
.fo-5 { top: 55%; left: 34%; animation-delay: 2.4s; } /* Motion Graphics — off-center */
.fo-4 { top: 60%; left: 72%; animation-delay: 1.8s; } /* Graphic Design — lower right */
.fo-6 { top: 64%; left: 90%; animation-delay: 3s; }

/* ---------- section headings ---------- */
.section-heading {
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin: 0 0 8px;
}

.section-kicker {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--pink-deep);
  margin: 0 0 2px;
}

.section-intro {
  max-width: 560px;
  color: var(--ink-soft);
}

/* ---------- work grid ---------- */
/* ---------- proof strip (results at a glance) ---------- */
.proof {
  padding: 40px 24px;
  background: var(--cream-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 64px;
  text-align: center;
}

.proof-stat {
  display: flex;
  flex-direction: column;
  min-width: 130px;
}

.proof-num {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(2.1rem, 4.6vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--terracotta);
}

.proof-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 8px;
}

.work {
  padding: 80px 24px 100px;
}

.work-header {
  text-align: center;
  margin-bottom: 48px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.work-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.work-card:hover,
.work-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(43, 33, 25, 0.16);
}

.work-card .work-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-family: var(--font-hand);
  font-size: 1.3rem;
  overflow: hidden;
}

.work-card .work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card .work-body {
  padding: 20px 22px 24px;
}

.work-card h3 {
  font-family: var(--font-script);
  font-size: 1.8rem;
  margin: 0 0 6px;
}

.work-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.work-card .work-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pink-deep);
  font-weight: 600;
}

.work-card.is-soon {
  opacity: 0.6;
}

.work-card.is-soon .work-cover::after {
  content: "coming soon";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 235, 218, 0.72);
  font-family: var(--font-hand);
  font-size: 1.5rem;
}

/* ---------- about / contact ---------- */
.about,
.contact {
  padding: 80px 24px;
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.about-portrait {
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  background: var(--cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-family: var(--font-hand);
  font-size: 1.3rem;
  overflow: hidden;
}
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy p {
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.contact {
  text-align: center;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 26px;
}

.contact-links a {
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, background 0.15s ease;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  transform: translateY(-3px);
  background: var(--pink);
  color: var(--paper);
}

/* ---------- footer ---------- */
.site-footer {
  padding: 28px 24px 50px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

/* ---------- case study pages ---------- */
.case-header {
  padding: 60px 24px 30px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 18px;
}
.breadcrumb:hover { color: var(--pink-deep); }

.category-grid {
  padding: 60px 24px 100px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.category-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  text-decoration: none;
  color: var(--paper);
  box-shadow: var(--shadow);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-card:hover img,
.category-card:focus-visible img {
  transform: scale(1.06);
}

.category-card .cc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(43, 33, 25, 0.65), transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.category-card h3 {
  font-family: var(--font-script);
  font-size: 2rem;
  margin: 0;
}

.category-card.is-locked {
  filter: grayscale(0.3);
  opacity: 0.7;
  pointer-events: none;
}

.category-card .cc-soon {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-hand);
  font-size: 0.95rem;
  padding: 4px 12px;
  border-radius: 999px;
}

/* ---------- videography case study ---------- */
.vid-results {
  padding: 20px 24px 10px;
}

.reel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}

.reel-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 32px;
  text-decoration: none;
  background: var(--ink);
  color: var(--paper);
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.reel-card:hover,
.reel-card:focus-visible { transform: translateY(-4px); }

.reel-stat { display: flex; flex-direction: column; }
.reel-num {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  color: #fff;
}
.reel-lbl {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink);
  margin-top: 6px;
}
.reel-cta {
  flex-basis: 100%;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--pink);
  margin-top: 6px;
}
.reel-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 20px auto 0;
}

.vid-section {
  padding: 46px 24px 10px;
}
.vid-title {
  font-family: var(--font-script);
  font-size: 2.2rem;
  margin: 0 0 6px;
}
.vid-title span {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.vid-desc {
  max-width: 620px;
  color: var(--ink-soft);
  margin: 0 0 24px;
}
.vid-desc em { color: var(--pink-deep); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.vid-note-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 24px;
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.vid-note-card em { color: var(--pink-deep); }

/* ---------- editorial design ---------- */
.design-grid {
  display: grid;
  gap: 26px;
  align-items: start;
}
.design-grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.design-grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.design-item { margin: 0; }
.design-item img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: block;
}
.design-item figcaption {
  font-family: var(--font-script);
  font-size: 1.5rem;
  margin-top: 12px;
}
.design-item figcaption span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- motion graphics ---------- */
.motion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
  align-items: start;
}
.motion-item { margin: 0; }
.motion-item video {
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: var(--ink);
  box-shadow: var(--shadow);
  display: block;
}
.motion-item.motion-vertical video {
  max-width: 340px;
}
.motion-item figcaption {
  font-family: var(--font-script);
  font-size: 1.5rem;
  margin-top: 12px;
}
.motion-item figcaption span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- podcast ---------- */
.podcast-cover-art {
  width: 260px;
  max-width: 70%;
  margin: 28px auto 0;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.podcast-show { margin-bottom: 22px; }
.podcast-show iframe { border-radius: 14px; box-shadow: var(--shadow); }
.podcast-episodes {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.podcast-episodes iframe { border-radius: 14px; }

/* ---------- New Documentary: diptych essay ---------- */
.nd-essay {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 24px 90px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}
.nd-diptych { margin: 0; }
.nd-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.nd-pair img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.nd-missing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: #14171f;
  color: var(--pink);
  font-family: var(--font-hand);
  font-size: 1.3rem;
}
.nd-missing span { font-size: 0.9rem; color: var(--ink-soft); opacity: 0.8; }
.nd-diptych figcaption {
  text-align: center;
  max-width: 620px;
  margin: 22px auto 0;
}
.nd-diptych figcaption h2 {
  font-family: var(--font-script);
  font-size: 1.9rem;
  margin: 0 0 10px;
}
.nd-diptych figcaption p {
  color: var(--ink-soft);
  margin: 0;
}
.nd-thanks {
  text-align: center;
  font-family: var(--font-script);
  font-size: 2.4rem;
  color: var(--pink-deep);
  margin: 10px 0 0;
}

/* ---------- sequential gallery (Nature-style) ---------- */
.gallery-sequential {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 24px 110px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.gallery-sequential figure {
  margin: 0;
}

.gallery-sequential img {
  width: 100%;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.gallery-sequential .row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .site-nav ul {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--paper);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 0.2s ease;
  }
  .site-nav ul.is-open {
    transform: translateY(0);
  }
  .nav-toggle {
    display: block;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  /* on small screens the stickers cluster in the middle, below the name */
  .floating-object {
    width: 120px;
    height: 120px;
  }
  .fo-1 { top: 32%; left: 2%; }
  .fo-2 { top: 30%; left: 56%; }
  .fo-3 { top: 48%; left: 30%; }
  .fo-4 { top: 66%; left: 4%; }
  .fo-5 { top: 64%; left: 58%; }
  .fo-6 { top: 80%; left: 32%; }
  .hero-name { font-size: clamp(2.8rem, 15vw, 4rem); }
  .gallery-sequential .row-two {
    grid-template-columns: 1fr;
  }
}
