/* ===== Tokens — gothic storybook palette ===== */
:root {
  --bg: #0d0b12;
  --bg-soft: #17131e;
  --ink: #efe6d0;
  --ink-dim: #9b8fa8;
  --plum: #3a2142;
  --plum-dk: #1c1020;
  --blood: #6b1f2a;
  --moss: #8ea33b;
  --mustard: #c9a227;
  --max: 1200px;
  --radius: 10px;
  --ease: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'EB Garamond', 'Georgia', serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse at 20% -10%, rgba(58,33,66,0.55), transparent 55%),
    radial-gradient(ellipse at 90% 10%, rgba(107,31,42,0.25), transparent 50%);
}

h1, h2, .nav-brand, .btn, .fact-num, .email-link {
  font-family: 'Eagle Lake', 'EB Garamond', serif;
  font-weight: 400;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 600;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  color: var(--ink-dim);
  margin: 0 0 1rem;
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.2rem, 5vw, 3.5rem);
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(13,11,18,0.9), rgba(13,11,18,0));
}

.nav-brand {
  font-size: 1.35rem;
  letter-spacing: 0.03em;
}
.nav-brand span { color: var(--moss); }

.nav-links {
  display: flex;
  gap: 2.2rem;
  font-weight: 500;
  font-size: 0.95rem;
  font-family: 'EB Garamond', serif;
  letter-spacing: 0.03em;
}
.nav-links a { opacity: 0.85; transition: opacity .2s, color .2s; }
.nav-links a:hover { opacity: 1; color: var(--mustard); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: 72vw;
  max-width: 320px;
  background: var(--bg-soft);
  border-left: 1px solid rgba(239,230,208,0.12);
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  padding: 6rem 2.2rem;
  transform: translateX(100%);
  transition: transform .35s var(--ease);
  font-size: 1.3rem;
  font-family: 'Eagle Lake', serif;
}
.mobile-menu.open { transform: translateX(0); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 clamp(1.2rem, 5vw, 3.5rem);
  overflow: hidden;
}

.hero-moon {
  position: absolute;
  top: 8%;
  right: 10%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--ink), var(--mustard) 70%, transparent 72%);
  opacity: 0.85;
  filter: blur(0.5px);
  box-shadow: 0 0 120px 20px rgba(201,162,39,0.18);
  animation: drift 20s ease-in-out infinite;
}

.hero-fog {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: drift 18s ease-in-out infinite;
}
.fog-1 { width: 480px; height: 320px; background: var(--plum); top: -80px; left: -120px; }
.fog-2 { width: 420px; height: 300px; background: var(--blood); bottom: -120px; right: -100px; animation-delay: -6s; opacity: 0.28; }
.fog-3 { width: 320px; height: 240px; background: var(--moss); top: 45%; left: 35%; animation-delay: -11s; opacity: 0.16; }

@keyframes drift {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px, -22px) scale(1.06); }
  66% { transform: translate(-24px, 16px) scale(0.96); }
}

.hero-trees {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 46%;
  opacity: 0.9;
  pointer-events: none;
}
.hero-trees svg { width: 100%; height: 100%; }

.hero-bats {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-bats span {
  position: absolute;
  font-size: 1.4rem;
  color: var(--ink-dim);
  opacity: 0.6;
  animation: flap 7s ease-in-out infinite;
}
@keyframes flap {
  0%, 100% { transform: translate(0,0) rotate(0deg); }
  50% { transform: translate(-26px, -14px) rotate(-6deg); }
}

.hero-content { position: relative; z-index: 2; max-width: 820px; }

.hero-title {
  font-size: clamp(3rem, 10vw, 6.4rem);
  line-height: 1.02;
  margin: 0.6rem 0 1.4rem;
  letter-spacing: 0.01em;
  text-shadow: 0 0 40px rgba(142,163,59,0.15);
}
.hero-title .line { display: block; }
.hero-title .accent {
  color: var(--moss);
  font-style: italic;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-dim);
  max-width: 540px;
  margin: 0 0 2.2rem;
  line-height: 1.7;
  font-style: italic;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 1.9rem;
  border: 1.5px solid var(--ink);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  position: relative;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), color .2s, border-color .2s;
  clip-path: polygon(3% 0%, 97% 2%, 100% 96%, 2% 100%);
}
.btn-primary {
  background: var(--moss);
  color: var(--plum-dk);
  border-color: var(--moss);
}
.btn-primary:hover { transform: translateY(-3px) rotate(-0.4deg); box-shadow: 0 14px 30px -10px rgba(142,163,59,0.45); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--mustard); color: var(--mustard); transform: translateY(-3px) rotate(0.4deg); }

.scroll-cue {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-cue span {
  display: block;
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, var(--ink-dim), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.9; }
}

/* ===== Work / Gallery ===== */
.work {
  padding: 8rem clamp(1.2rem, 5vw, 3.5rem) 6rem;
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}

.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head h2 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin: 0 0 0.8rem;
}
.section-head p { color: var(--ink-dim); font-size: 1.05rem; line-height: 1.6; margin: 0; font-style: italic; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/5;
  background: var(--bg-soft);
  border: 1px solid rgba(239,230,208,0.14);
  clip-path: polygon(1.5% 0%, 100% 0.8%, 98.5% 100%, 0% 99%);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease), filter .5s;
  filter: saturate(0.9) contrast(1.05);
}
.gallery-item:hover img { transform: scale(1.07) rotate(-0.4deg); filter: saturate(1.05) contrast(1.1); }

.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.2rem;
  background: linear-gradient(to top, rgba(13,11,18,0.9), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }
.gallery-caption .title { font-family: 'Eagle Lake', serif; font-size: 1.1rem; color: var(--ink); }
.gallery-caption .meta { font-size: 0.8rem; color: var(--ink-dim); font-style: italic; }

/* ===== Sketches & Dress Design (sketchbook / croquis feel) ===== */
.sketches, .dress {
  padding: 6rem clamp(1.2rem, 5vw, 3.5rem);
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}
.paper-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem 1.6rem;
}

.paper-item {
  position: relative;
  cursor: pointer;
  background: #ece0c6;
  padding: 10px 10px 34px;
  box-shadow: 0 10px 26px -10px rgba(0,0,0,0.5);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.paper-item:nth-child(odd) { transform: rotate(-1.4deg); }
.paper-item:nth-child(even) { transform: rotate(1.1deg); }
.paper-item:hover { transform: rotate(0deg) translateY(-4px) scale(1.02); box-shadow: 0 20px 36px -12px rgba(0,0,0,0.6); }

.paper-item::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 34px;
  height: 16px;
  background: linear-gradient(135deg, rgba(201,162,39,0.75), rgba(201,162,39,0.4));
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.paper-item img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: sepia(0.12);
}

.paper-item .gallery-caption {
  position: static;
  background: none;
  opacity: 1;
  transform: none;
  padding: 0.7rem 0.3rem 0;
  text-align: center;
}
.paper-item .gallery-caption .title {
  font-family: 'Eagle Lake', serif;
  color: var(--plum-dk);
  font-size: 0.95rem;
}
.paper-item .gallery-caption .meta {
  color: #6b5f4e;
  font-size: 0.76rem;
  font-style: italic;
}

@media (max-width: 900px) {
  .paper-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .paper-gallery { grid-template-columns: 1fr 1fr; gap: 1.6rem 1rem; }
}

/* ===== About ===== */
.about {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 6rem clamp(1.2rem, 5vw, 3.5rem);
}

.about-visual { position: relative; }
.about-shape {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 60% 30%, var(--plum) 0%, var(--plum-dk) 60%, var(--bg) 100%);
  border: 1px solid rgba(239,230,208,0.14);
  clip-path: polygon(2% 0%, 100% 1.5%, 98% 100%, 0% 98.5%);
}
.about-shape::before {
  content: "";
  position: absolute;
  top: 16%;
  right: 14%;
  width: 34%;
  height: 34%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--ink), var(--mustard) 75%, transparent 78%);
  opacity: 0.9;
}
.about-shape::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(13,11,18,0.5) 0 2px, transparent 2px 26px);
  opacity: 0.5;
}

.about-copy h2 { font-size: clamp(2.2rem, 5vw, 3rem); margin: 0 0 1rem; }
.about-lede { font-size: 1.15rem; color: var(--ink); margin: 0 0 1.2rem; line-height: 1.6; font-style: italic; }
.about-copy p { color: var(--ink-dim); line-height: 1.75; }

.about-facts {
  display: flex;
  gap: 2.4rem;
  margin-top: 2.4rem;
  flex-wrap: wrap;
}
.about-facts > div { display: flex; flex-direction: column; }
.fact-num { font-size: 2.2rem; color: var(--moss); }
.fact-label { font-size: 0.8rem; color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.08em; font-family: 'EB Garamond', serif; }

/* ===== Contact ===== */
.contact {
  padding: 7rem clamp(1.2rem, 5vw, 3.5rem);
  text-align: center;
  position: relative;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(107,31,42,0.25), transparent 60%);
  pointer-events: none;
}
.contact-inner { max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }
.contact h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 0 0 1rem; }
.contact-sub { color: var(--ink-dim); margin: 0 0 2.2rem; font-size: 1.05rem; font-style: italic; }

.email-link {
  display: inline-block;
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--mustard);
  margin-bottom: 2.4rem;
}
.email-link:hover { color: var(--mustard); }

.social-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.social-pill {
  border: 1.5px solid rgba(239,230,208,0.25);
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  font-family: 'EB Garamond', serif;
  transition: all .2s;
  clip-path: polygon(4% 0%, 100% 0%, 96% 100%, 0% 100%);
}
.social-pill:hover { border-color: var(--moss); color: var(--moss); }

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 2.4rem 1.2rem 3rem;
  color: var(--ink-dim);
  font-size: 0.82rem;
  font-style: italic;
  border-top: 1px dashed rgba(239,230,208,0.15);
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5,4,8,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 300;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 78vh; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7); border: 1px solid rgba(239,230,208,0.2); }
.lightbox-caption { margin-top: 1.2rem; color: var(--ink-dim); font-size: 0.95rem; font-style: italic; font-family: 'Eagle Lake', serif; }
.lightbox-close {
  position: absolute;
  top: 1.6rem; right: 1.8rem;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .about { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero-moon { width: 140px; height: 140px; }
}

@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .about-facts { gap: 1.6rem; }
}
