/* ==========================================================================
   PROTEAN IMAGE GROUP — NAIVE MINIMALIST & LINE ART DESIGN SYSTEM
   Inspired by Utrecht.jp — Hand-drawn aesthetic, high whitespace, organic lines
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;700&family=Inter:wght@300;400;500;600&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400&family=Space+Mono:ital@0;1&display=swap');

:root {
  --bg-paper: #fbf9f5;
  --bg-card: #ffffff;
  --bg-card-alt: #f4f1ea;
  --text-ink: #1a1918;
  --text-muted: #6e6b66;
  --accent-coral: #e44d3a;
  --accent-soft-yellow: #fef0c7;
  --border-ink: #1a1918;
  --border-pencil: #d8d3c8;
  
  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-hand: 'Caveat', cursive;
  --font-mono: 'Space Mono', monospace;
}

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

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

body {
  min-height: 100vh;
  line-height: 1.6;
  background-color: var(--bg-paper);
  background-image: radial-gradient(#e5dfd3 1px, transparent 1px);
  background-size: 24px 24px;
}

::selection {
  background: var(--accent-soft-yellow);
  color: var(--text-ink);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-paper);
}
::-webkit-scrollbar-thumb {
  background: var(--border-pencil);
  border-radius: 10px;
}

/* Header & Nav */
.header-nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px dashed var(--border-pencil);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo-art {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.brand-wrapper:hover .brand-logo-art {
  transform: rotate(-8deg) scale(1.1);
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-ink);
  text-decoration: none;
}

.brand-subtitle {
  font-family: var(--font-hand);
  font-size: 1.15rem;
  color: var(--text-muted);
  display: block;
  margin-top: -0.2rem;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--text-ink);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-coral);
  transition: width 0.2s ease;
  border-radius: 2px;
}

.nav-links a:hover::after {
  width: 100%;
}

.doodle-toggle-btn {
  font-family: var(--font-hand);
  font-size: 1.1rem;
  background: var(--bg-card);
  border: 2px solid var(--text-ink);
  padding: 0.3rem 0.9rem;
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
  cursor: pointer;
  box-shadow: 2px 2px 0px var(--text-ink);
  transition: all 0.15s ease;
}

.doodle-toggle-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px var(--text-ink);
  background: var(--accent-soft-yellow);
}

/* Hero Section */
.hero-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-heading {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-heading em {
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--accent-coral);
}

.hero-handwritten-note {
  font-family: var(--font-hand);
  font-size: 1.4rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.4;
  transform: rotate(-1deg);
}

.hero-bio {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.btn-hand-drawn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-ink);
  background: var(--bg-card);
  border: 2px solid var(--text-ink);
  padding: 0.8rem 1.6rem;
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
  text-decoration: none;
  box-shadow: 3px 3px 0px var(--text-ink);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-hand-drawn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--text-ink);
  background: var(--accent-soft-yellow);
}

.hero-illustration-box {
  background: var(--bg-card);
  border: 2px solid var(--text-ink);
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
  padding: 2rem;
  box-shadow: 5px 5px 0px var(--text-ink);
  position: relative;
  text-align: center;
}

.hero-illustration-img {
  width: 80%;
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0 auto;
  mix-blend-mode: multiply;
}

.hero-caption {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Section Header */
.section-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid var(--text-ink);
  padding-bottom: 0.75rem;
  margin-bottom: 2.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.section-hand-tag {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  color: var(--accent-coral);
}

/* Works Grid */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

.work-card {
  background: var(--bg-card);
  border: 2px solid var(--text-ink);
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
  box-shadow: 4px 4px 0px var(--text-ink);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.work-card:hover {
  transform: translate(-3px, -3px) rotate(-0.5deg);
  box-shadow: 7px 7px 0px var(--text-ink);
}

.work-img-box {
  aspect-ratio: 16/10;
  overflow: hidden;
  border-bottom: 2px solid var(--text-ink);
  position: relative;
  background: #eee;
}

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

.work-card:hover .work-img {
  transform: scale(1.05);
}

.work-content {
  padding: 1.25rem 1.5rem 1.5rem;
}

.work-meta-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.work-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.work-artist {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  color: var(--accent-coral);
  margin-bottom: 0.75rem;
}

.work-tag-list {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.work-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-pencil);
  border-radius: 4px;
  color: var(--text-muted);
}

/* Directors Section - Sketch Card Layout */
.directors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.director-sketch-card {
  background: var(--bg-card);
  border: 2px dashed var(--text-ink);
  padding: 2rem 1.5rem;
  border-radius: 12px;
  position: relative;
  box-shadow: 3px 3px 0px rgba(0,0,0,0.05);
}

.director-sketch-card::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 20px;
  background: rgba(230, 220, 200, 0.6);
  border: 1px solid rgba(0,0,0,0.1);
}

.director-name {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.director-title {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  color: var(--accent-coral);
  margin-bottom: 1rem;
}

.director-note {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* Gear Locker - Line art list */
.gear-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.gear-item {
  background: var(--bg-card);
  border: 2px solid var(--text-ink);
  padding: 1rem 1.25rem;
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gear-item-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
}

.gear-item-spec {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Postcard Inquiry Form */
.postcard-wrapper {
  background: var(--bg-card);
  border: 2px solid var(--text-ink);
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
  box-shadow: 6px 6px 0px var(--text-ink);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  position: relative;
}

.postcard-stamp {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 60px;
  height: 70px;
  border: 2px dashed var(--accent-coral);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-hand);
  font-size: 0.85rem;
  color: var(--accent-coral);
  transform: rotate(4deg);
}

.postcard-field {
  margin-bottom: 1.5rem;
}

.postcard-label {
  display: block;
  font-family: var(--font-hand);
  font-size: 1.25rem;
  color: var(--text-ink);
  margin-bottom: 0.25rem;
}

.postcard-input, .postcard-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border-pencil);
  padding: 0.5rem 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-ink);
  outline: none;
  transition: border-color 0.2s;
}

.postcard-input:focus, .postcard-textarea:focus {
  border-color: var(--accent-coral);
}

.postcard-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Interactive Canvas Drawer for Doodle Mode */
#doodle-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9998;
}

body.doodle-mode #doodle-canvas {
  pointer-events: auto;
  cursor: crosshair;
}

.doodle-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-coral);
  color: #fff;
  font-family: var(--font-hand);
  font-size: 1.3rem;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 9999;
  display: none;
  align-items: center;
  gap: 1rem;
}

body.doodle-mode .doodle-banner {
  display: flex;
}

.doodle-banner button {
  background: #fff;
  color: var(--text-ink);
  border: none;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
}

/* Footer */
.footer-simple {
  max-width: 1100px;
  margin: 4rem auto 2rem;
  padding: 2rem;
  border-top: 2px dashed var(--border-pencil);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-hand-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-ink);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section { grid-template-columns: 1fr; gap: 2rem; }
  .postcard-wrapper { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 1.5rem; }
  .gear-list { grid-template-columns: 1fr; }
  .hero-heading { font-size: 2.4rem; }
  .header-nav { flex-direction: column; gap: 1rem; text-align: center; }
}
