/* ==========================================================================
   PIXIE IMAGE GROUP — PICTURE BOOK LINE-DRAWING DESIGN SYSTEM
   Simplistic, Childlike, Storybook Aesthetic
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Shantell+Sans:ital,wght@0,300..800;1,300..800&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg-white: #ffffff;
  --bg-subtle: #f8fafc;
  --ink-black: #1e293b;
  --ink-muted: #64748b;
  
  /* Primary Crayon/Felt-tip Colors */
  --crayon-blue: #2563eb;
  --crayon-red: #ef4444;
  --crayon-yellow: #f59e0b;
  --crayon-green: #10b981;
  --crayon-purple: #8b5cf6;

  --font-story: 'Shantell Sans', cursive, sans-serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-white);
  color: var(--ink-black);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  background: var(--bg-white);
  overflow-x: hidden;
}

::selection {
  background: #fef08a;
  color: var(--ink-black);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Typography & Story Text ─────────────────────────────────────────── */
.story-title {
  font-family: var(--font-story);
  font-weight: 700;
  color: var(--ink-black);
  line-height: 1.15;
}

.story-subtitle {
  font-family: var(--font-story);
  font-weight: 500;
  color: var(--ink-muted);
}

/* ── Wobbly Hand-Drawn Animations ────────────────────────────────────── */
@keyframes hand-wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-1.2deg) translateY(-2px); }
  75% { transform: rotate(1.2deg) translateY(1px); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
}

.wiggle-on-hover {
  transition: transform 0.25s ease;
}
.wiggle-on-hover:hover {
  animation: hand-wiggle 0.6s ease-in-out infinite;
}

.float-doodle {
  animation: float-slow 4s ease-in-out infinite;
}

/* ── HEADER ──────────────────────────────────────────────────────────── */
.pb-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 1.25rem 2rem;
  border-bottom: 2px solid #f1f5f9;
}

.pb-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}

.pb-logo {
  font-family: var(--font-story);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink-black);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pb-logo-dot {
  width: 12px;
  height: 12px;
  background-color: var(--crayon-blue);
  border-radius: 50%;
  display: inline-block;
}

.pb-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}

.pb-nav a {
  font-family: var(--font-story);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-black);
  text-decoration: none;
  position: relative;
  padding: 0.2rem 0.4rem;
  transition: color 0.2s;
}

.pb-nav a:hover {
  color: var(--crayon-blue);
}

.pb-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--crayon-yellow);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.pb-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.pb-btn {
  font-family: var(--font-story);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-black);
  background: var(--bg-white);
  padding: 0.6rem 1.4rem;
  border: 2px solid var(--ink-black);
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px; /* wobbly hand-drawn border curve */
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.pb-btn:hover {
  background: var(--crayon-yellow);
  color: var(--ink-black);
  transform: translateY(-2px);
}

.pb-btn.primary {
  background: var(--crayon-blue);
  color: var(--bg-white);
  border-color: var(--crayon-blue);
}

.pb-btn.primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

/* ── HERO SECTION ────────────────────────────────────────────────────── */
.pb-hero {
  padding: 5rem 0 4rem;
  position: relative;
}

.pb-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.pb-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-story);
  font-size: 1rem;
  color: var(--crayon-blue);
  background: #eff6ff;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.pb-hero-h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.pb-hero-h1 span.highlight-blue {
  color: var(--crayon-blue);
  position: relative;
}

.pb-hero-h1 span.highlight-red {
  color: var(--crayon-red);
}

.pb-hero-body {
  font-size: 1.15rem;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 2.2rem;
  max-width: 520px;
}

.pb-hero-cta {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.pb-hero-image-wrap {
  position: relative;
}

.wobbly-frame {
  position: relative;
  background: var(--bg-white);
  padding: 10px;
  border-radius: 12px;
}

.wobbly-frame svg.frame-stroke {
  position: absolute;
  inset: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  pointer-events: none;
  z-index: 2;
}

.wobbly-frame img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* ── SECTIONS ────────────────────────────────────────────────────────── */
.pb-section {
  padding: 5rem 0;
  position: relative;
}

.pb-section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.pb-badge {
  display: inline-block;
  font-family: var(--font-story);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.pb-badge.blue   { background: #dbeafe; color: var(--crayon-blue); }
.pb-badge.green  { background: #d1fae5; color: var(--crayon-green); }
.pb-badge.yellow { background: #fef3c7; color: var(--crayon-yellow); }
.pb-badge.purple { background: #ede9fe; color: var(--crayon-purple); }

.pb-section-title {
  font-size: 2.6rem;
  margin-bottom: 0.5rem;
}

.pb-section-desc {
  font-family: var(--font-story);
  font-size: 1.15rem;
  color: var(--ink-muted);
}

/* ── WORKS GRID ──────────────────────────────────────────────────────── */
.pb-works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.pb-work-card {
  background: var(--bg-white);
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

.pb-work-img-box {
  position: relative;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  overflow: hidden;
}

.pb-work-img-box img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.pb-work-card:hover .pb-work-img-box img {
  transform: scale(1.03);
}

.pb-work-artist {
  font-family: var(--font-story);
  font-size: 1rem;
  font-weight: 600;
  color: var(--crayon-blue);
  margin-bottom: 0.2rem;
}

.pb-work-title {
  font-family: var(--font-story);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.pb-work-tags {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.pb-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
  background: var(--bg-subtle);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  border: 1px stroke #e2e8f0;
}

/* ── DIRECTORS ───────────────────────────────────────────────────────── */
.pb-directors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pb-director-card {
  background: var(--bg-white);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: all 0.25s ease;
}

.pb-director-card:hover {
  border-color: var(--crayon-blue);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(37, 99, 235, 0.12);
}

.pb-director-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  border-radius: 50%;
  border: 2px solid var(--ink-black);
}

.pb-director-name {
  font-family: var(--font-story);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.pb-director-role {
  font-family: var(--font-story);
  font-size: 0.95rem;
  color: var(--crayon-blue);
  margin-bottom: 0.85rem;
}

.pb-director-bio {
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ── INQUIRY FORM ─────────────────────────────────────────────────────── */
.pb-form-box {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-white);
  border: 2.5px solid var(--ink-black);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.06);
  position: relative;
}

.pb-form-group {
  margin-bottom: 1.75rem;
}

.pb-label {
  display: block;
  font-family: var(--font-story);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-black);
  margin-bottom: 0.4rem;
}

.pb-input, .pb-textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.85rem 1.1rem;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  background: var(--bg-white);
  color: var(--ink-black);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pb-input:focus, .pb-textarea:focus {
  border-color: var(--crayon-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* ── MODAL ───────────────────────────────────────────────────────────── */
.pb-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.pb-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.pb-modal-card {
  background: var(--bg-white);
  border: 3px solid var(--ink-black);
  border-radius: 24px;
  max-width: 780px;
  width: 100%;
  overflow: hidden;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.pb-modal-overlay.open .pb-modal-card {
  transform: scale(1);
}

.pb-modal-header {
  padding: 1.25rem 1.75rem;
  background: var(--bg-subtle);
  border-bottom: 2px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pb-modal-title {
  font-family: var(--font-story);
  font-size: 1.35rem;
  font-weight: 700;
}

.pb-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink-muted);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.pb-modal-close:hover { background: #e2e8f0; color: var(--ink-black); }

.pb-modal-content {
  padding: 1.75rem;
}

.pb-modal-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.pb-modal-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.pb-modal-spec {
  font-size: 0.95rem;
}
.pb-modal-spec label {
  font-family: var(--font-story);
  font-size: 0.85rem;
  color: var(--ink-muted);
  display: block;
}

/* ── FOOTER ──────────────────────────────────────────────────────────── */
.pb-footer {
  padding: 3rem 0;
  border-top: 2px solid #f1f5f9;
  text-align: center;
  color: var(--ink-muted);
  font-family: var(--font-story);
  font-size: 1rem;
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────── */
@media (max-width: 840px) {
  .pb-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .pb-works-grid { grid-template-columns: 1fr; }
  .pb-directors-grid { grid-template-columns: 1fr; }
  .pb-hero-h1 { font-size: 2.75rem; }
  .pb-nav { display: none; }
}
