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

body {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  background: #fff;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #111;
  font-size: 16px;
  overflow-x: hidden;
}

.text-pull-quote, .cv-body, .contact-content a,
.about-text-block p, .project-desc, .curation-text, .printed-sheet {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

.layout {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}

.lang-switch {
  position: fixed;
  top: 52px;
  right: calc(50% - 600px - 80px);
  z-index: 200;
}
.lang-btn { font-size: 12px; letter-spacing: 0.08em; color: #aaa; cursor: pointer; transition: color 0.15s; }
.lang-btn:hover { color: #0000ee; }
.lang-btn.active { color: #111; }
.lang-sep { font-size: 12px; color: #ddd; margin: 0 3px; }

.hamburger { display: none; position: fixed; top: 20px; left: 20px; z-index: 300; background: none; border: none; cursor: pointer; padding: 6px; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 22px; height: 1px; background: #111; }

.menu-overlay { display: none; position: fixed; inset: 0; background: rgba(255,255,255,0.5); z-index: 150; }
.menu-overlay.open { display: block; }

.menu {
  width: 220px;
  min-width: 220px;
  padding: 52px 32px;
  position: fixed;
  top: 0;
  left: calc(50% - 600px - 120px);
  height: 100vh;
  overflow-y: auto;
  z-index: 200;
  background: transparent;
}

/* All menu sections equally spaced — no extra margin-top on menu-bottom */
.menu-section { margin-bottom: 16px; }
.menu-title { font-size: 16px; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; padding: 4px 0; transition: color 0.15s; }
.menu-title:hover { color: #0000ee; }
.menu-title.active { font-weight: 700; color: #0000ee; }
.submenu { display: none; margin-top: 8px; margin-left: 2px; }
.submenu.open { display: block; }
.submenu-item { font-size: 16px; cursor: pointer; padding: 4px 0; transition: color 0.15s; line-height: 1.4; }
.submenu-item:hover { color: #0000ee; }
.submenu-item.active { font-weight: 700; color: #111; }
.project-links { display: none; margin-left: 14px; margin-top: 3px; margin-bottom: 4px; }
.project-links.open { display: block; }
.project-link { font-size: 16px; color: #888; cursor: pointer; padding: 3px 0; transition: color 0.15s; }
.project-link:hover { color: #0000ee; }
.project-link.active { color: #111; font-weight: 600; }

/* menu-bottom: no extra top margin so Works/About/Contact are evenly spaced */
.menu-bottom { margin-top: 0; }

.content { padding: 0 0 100px 0; }

/* HOME */
#home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 100px 32px 40px 32px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

/* Swirl decorations on sides of home */
.home-swirl {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 180px;
  height: auto;
  pointer-events: none;
  opacity: 0.2;
  z-index: 1;
}
.home-swirl.left {
  left: 20px; /* Adds the gap from the edge */
  position: fixed;
}
.home-swirl.right {
  right: 20px; /* Adds the gap from the edge */
  position: fixed;
  transform: translateY(-50%) scaleX(-1);
}

#home h1 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-align: center;
  margin-bottom: 10px;
  transition: color 0.15s;
  cursor: pointer;
}
#home h1:hover { color: #0000ee; }

#home .tagline {
  font-size: 16px;        /* Bigger size to match projects */
  color: #444;           /* Kept your original darker color */
  text-align: center;
  max-width: 530px;      /* Slightly wider so the bigger text doesn't wrap too much */
  line-height: 1.7;      /* A bit more breathing room between lines */
  margin-bottom: 24px;
  transition: color 0.15s;
  cursor: pointer;
  text-transform: none;  /* Forces it to stay normal, not all caps */
}
#home .tagline:hover { color: #0000ee; }

/* SLIDESHOW RECTANGLE */
/* NOTEBOOK SLIDER */
.home-slideshow-wrap {
  width: 100%;
  max-width: 650px;
  margin: 40px auto 0 auto;
  position: relative;
}

.home-slideshow-frame {
  width: 100%;
  border: 1px solid #ddd;
  position: relative;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 1.4 / 1; /* Notebook shape */
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.notebook-slider {
  display: flex;
  width: 200%; /* Two spreads wide */
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.notebook-spread {
  display: flex;
  width: 50%; /* One spread fills the frame */
  height: 100%;
}

.notebook-page {
  flex: 1;
  height: 100%;
  position: relative;
}

/* The "Spine" shadow in the middle */
.notebook-page:first-child::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 15px;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,0.03));
  z-index: 2;
}

.notebook-page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.notebook-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #ddd;
  color: #888;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.notebook-arrow:hover { color: #0000ee; border-color: #0000ee; }
.notebook-arrow.left { left: -45px; }
.notebook-arrow.right { right: -45px; }

/* --- RESPONSIVE / MOBILE FIX --- */
@media (max-width: 900px) {
  .menu { display: none; left: 0; width: 260px; padding: 24px 28px; transform: translateX(-100%); transition: transform 0.25s; background: #fff; }
  .menu.open { display: block; transform: translateX(0); z-index: 400; }
  .hamburger { display: flex; }
  .lang-switch { right: 20px; top: 24px; }
  .page { padding: 52px 24px 0 24px; }
  .home-swirl { display: none; }

  #home { padding: 40px 20px; }
  #home h1 { font-size: 28px; }
  #home .tagline { font-size: 14px; max-width: 280px; margin: 0 auto 30px auto; }

  /* FIX: This forces the notebook to keep its shape on mobile */
  .home-slideshow-wrap { 
    max-width: 100% !important; 
    width: 100% !important;
    margin: 20px auto 0 auto !important;
  }

  .book-container {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1.4 / 1 !important; /* Forces the rectangle shape */
  }

  /* Make arrows slightly smaller so they don't overlap the book */
  .notebook-arrow { width: 28px; height: 28px; font-size: 12px; }
  .notebook-arrow.left { left: -15px; }
  .notebook-arrow.right { right: -15px; }
}

/* Bazuka circular image at bottom */
.home-bazuka {
  display: block;
  margin-top: auto;
  margin-bottom: 40px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  z-index: 10;
  flex-shrink: 0;
}

.home-bazuka:hover {
  opacity: 0.7;
}
.home-bazuka img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* PAGES */
.page { display: none; padding: 52px 70px 0 70px; }

.page-title { font-family: 'EB Garamond', Georgia, serif; font-size: 42px; font-weight: 400; letter-spacing: 0.1em; text-align: center; margin-bottom: 56px; }

.project-section { margin-bottom: 80px; }

.project-label { font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: #888; text-align: center; margin-bottom: 16px; }

.project-desc { font-size: 16px; color: #555; text-align: justify; max-width: 680px; margin: 0 auto 34px auto; line-height: 1.8; }

.project-section > img { display: block; width: 100%; max-width: 700px; height: auto; margin: 0 auto 22px auto; }

.project-divider { width: 40px; height: 1px; background: #ddd; margin: 60px auto; }

.project-link-out { text-align: center; margin-top: 20px; }
.project-link-out a { font-size: 14px; color: #888; text-decoration: none; border-bottom: 1px solid #ddd; padding-bottom: 1px; transition: color 0.15s, border-color 0.15s; }
.project-link-out a:hover { color: #0000ee; border-color: #0000ee; }

/* PHOTO LAYOUTS */
.image-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-width: 700px; margin: 0 auto 22px auto; }
.image-grid-2col img { width: 100%; height: auto; display: block; margin: 0; }

.illuminations-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-width: 700px; margin: 0 auto; align-items: stretch; }
.illuminations-layout .il-left { grid-row: 1/3; }
.illuminations-layout .il-left img { width: 100%; height: 100%; object-fit: cover; display: block; }
.illuminations-layout .il-right { display: flex; flex-direction: column; gap: 6px; }
.illuminations-layout .il-right img { width: 100%; height: auto; display: block; }

.notes-top { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-width: 700px; margin: 0 auto 6px auto; align-items: stretch; }
.notes-top .nl { display: flex; flex-direction: column; }
.notes-top .nl img { width: 100%; height: 100%; object-fit: cover; display: block; }
.notes-top .nr { display: flex; flex-direction: column; gap: 6px; }
.notes-top .nr img { width: 100%; height: auto; display: block; }
.notes-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-width: 700px; margin: 0 auto 6px auto; }
.notes-bottom img { width: 100%; height: auto; display: block; }
.notes-under { max-width: 700px; margin: 0 auto 22px auto; }
.notes-under img { width: 100%; height: auto; display: block; }

.isaw-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-width: 700px; margin: 0 auto 22px auto; align-items: stretch; }
.isaw-layout .il-left { grid-row: 1/3; }
.isaw-layout .il-left img { width: 100%; height: 100%; object-fit: cover; display: block; }
.isaw-layout .il-right { display: flex; flex-direction: column; gap: 6px; }
.isaw-layout .il-right img { width: 100%; height: auto; display: block; }

.zresidency-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-width: 700px; margin: 0 auto 22px auto; }
.zresidency-layout img { width: 100%; height: auto; display: block; }

.photostory-layout { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; max-width: 700px; margin: 0 auto 22px auto; }
.photostory-layout img { width: 100%; height: auto; display: block; }

.studio-layout-top { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-width: 700px; margin: 0 auto 6px auto; }
.studio-layout-top img { width: 100%; height: auto; display: block; }
.studio-layout-bottom { max-width: 700px; margin: 0 auto 22px auto; }
.studio-layout-bottom img { width: 50%; height: auto; display: block; margin-left: auto; margin-right: 0; }

/* BIRD AUDIO */
.audio-highlight { cursor: pointer; border-bottom: 1px dashed #111; transition: color 0.15s, border-color 0.15s; }
.audio-highlight:hover { color: #0000ee; border-color: #0000ee; }
.bird-audio-hint { font-size: 12px; color: #aaa; text-align: center; margin: 0 auto 24px auto; max-width: 680px; letter-spacing: 0.04em; }

/* MOVING IMAGE */
.gif-row { display: flex; gap: 32px; justify-content: center; align-items: flex-start; flex-wrap: wrap; max-width: 1000px; margin: 0 auto; }
.gif-item { flex: 1; min-width: 160px; max-width: 260px; text-align: center; }
.gif-item a { display: block; text-decoration: none; color: inherit; }
.gif-item img { width: 100%; height: auto; display: block; image-rendering: pixelated; transition: opacity 0.2s; }
.gif-item a:hover img { opacity: 0.8; }
.gif-caption { font-size: 12px; color: #aaa; margin-top: 6px; letter-spacing: 0.05em; transition: color 0.15s; }
.gif-item a:hover .gif-caption { color: #0000ee; }

.full-video { display: block; width: 100%; max-width: 860px; height: auto; margin: 0 auto; }

/* INTERACTIVE */
.iframe-wrap { width: 100%; max-width: 860px; margin: 0 auto; aspect-ratio: 16/9; overflow: hidden; }
.iframe-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

/* CURATION */
.curation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 700px; margin: 0 auto 32px auto; }
.curation-grid img { width: 100%; height: auto; display: block; }
.curation-text { font-size: 16px; color: #555; text-align: justify; max-width: 680px; margin: 0 auto 32px auto; line-height: 1.8; -webkit-user-select: text; user-select: text; }

/* TATTOO */
.tattoo-embeds { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; max-width: 1300px; margin: 0 auto; }

/* TEXT PAGE */
.text-pull-quote { font-family: 'EB Garamond', Georgia, serif; font-size: 18px; font-style: italic; color: #333; line-height: 1.7; border-left: 2px solid #ddd; padding-left: 18px; margin: 0 auto; max-width: 620px; -webkit-user-select: text; user-select: text; display: block; }

/* PRINTED SHEET */
.printed-sheet { max-width: 580px; margin: 0 auto; background: #fff; border: 1px solid #e0e0e0; padding: 36px 40px; font-family: 'Courier Prime', 'Courier New', monospace; font-size: 11px; line-height: 1.75; color: #111; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.printed-sheet p { margin-bottom: 14px; }
.printed-lang { font-weight: bold; margin-bottom: 16px !important; letter-spacing: 0.05em; }

/* ABOUT */
#about .about-content { max-width: 720px; margin: 0 auto; }
.about-portrait-wrap { text-align: center; margin-bottom: 36px; }
.about-portrait { width: 200px; height: auto; display: block; margin: 0 auto 12px auto; }
.about-portrait-wrap .location { font-size: 14px; color: #888; letter-spacing: 0.05em; }
.about-text-block p { margin-bottom: 20px; line-height: 1.95; font-size: 16px; color: #333; text-align: justify; -webkit-user-select: text; user-select: text; }

.cv-toggle { font-size: 16px; cursor: pointer; color: #111; margin-top: 28px; display: inline-block; border-bottom: 1px solid #ccc; padding-bottom: 2px; transition: color 0.15s; }
.cv-toggle:hover { color: #0000ee; }
.cv-body { display: none; margin-top: 24px; padding-top: 24px; border-top: 1px solid #eee; -webkit-user-select: text; user-select: text; }
.cv-body.open { display: block; }
.cv-section { margin-bottom: 32px; }
.cv-heading { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: #888; margin-bottom: 12px; font-weight: 400; }
.cv-year { font-size: 13px; letter-spacing: 0.05em; color: #aaa; margin-top: 12px; margin-bottom: 4px; }
.cv-body ul { list-style: none; padding: 0; }
.cv-body li { font-size: 14px; color: #333; line-height: 1.7; padding-left: 12px; position: relative; }
.cv-body li::before { content: '—'; position: absolute; left: 0; color: #ccc; }

/* CONTACT */
.contact-content { max-width: 400px; margin: 0 auto; text-align: center; }
.contact-content p { margin-bottom: 12px; font-size: 16px; }
.contact-content a { color: #111; text-decoration: none; border-bottom: 1px solid #ddd; }
.contact-content a:hover { color: #0000ee; border-color: #0000ee; }
.email-copy { cursor: pointer; border-bottom: 1px solid #ddd; transition: color 0.15s; }
.email-copy:hover { color: #0000ee; }

/* BACK TO TOP */
.back-to-top { display: none; position: fixed; bottom: 32px; right: 32px; background: none; border: 1px solid #ddd; color: #888; font-size: 12px; padding: 6px 12px; cursor: pointer; letter-spacing: 0.05em; transition: color 0.15s, border-color 0.15s; z-index: 100; }
.back-to-top.visible { display: block; }
.back-to-top:hover { color: #0000ee; border-color: #0000ee; }

/* TOAST */
.toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); background: #111; color: #fff; font-size: 12px; padding: 8px 16px; letter-spacing: 0.08em; opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 500; }
.toast.visible { opacity: 1; }

/* RESPONSIVE */
/* FOOTER - Outside of media query so it works on all screens */
.site-footer {
  width: 100%;
  padding: 60px 24px 100px 24px;
  text-align: center;
  /* border-top removed */
  margin-top: 100px;
  clear: both;
}

.site-footer p {
  font-family: 'EB Garamond', Georgia, serif; /* Same as your block text */
  font-size: 16px; /* Same size as project-desc */
  color: #999; /* Grayed out */
  line-height: 1.6;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

/* RESPONSIVE */
/* --- RESPONSIVE / MOBILE --- */
@media (max-width: 900px) {
  /* Menu & Layout */
  .menu { display: none; left: 0; width: 260px; padding: 24px 28px; transform: translateX(-100%); transition: transform 0.25s; background: #fff; }
  .menu.open { display: block; transform: translateX(0); z-index: 400; }
  .hamburger { display: flex; }
  .lang-switch { right: 20px; top: 24px; }
  .page { padding: 52px 24px 0 24px; }
  .home-swirl { display: none; }

  /* Home Section */
#home { padding: 80px 20px 40px 20px; display: flex; flex-direction: column; align-items: center; }
  #home h1 { font-size: 28px; text-align: center; }

  #home .tagline {
    font-size: 14px;
    max-width: 280px; /* Forces cleaner line breaks on small screens */
    line-height: 1.6;
    margin: 0 auto 30px auto;
    text-align: center;
  }

  /* Notebook Resizing - Forces the shape from your image */
/* Notebook Resizing */
  .home-slideshow-wrap { 
    max-width: 88%;
    width: 88%;
    margin: 20px auto 0 auto;
  }

  .book-container {
    max-width: 100%;
  }

  .notebook-arrow.left { left: -18px; }
  .notebook-arrow.right { right: -18px; }
  .notebook-arrow { width: 28px; height: 28px; font-size: 12px; }
  .notebook-arrow.left { left: -30px; }
  .notebook-arrow.right { right: -30px; }

  /* Menu Strikethrough Logic */
  .menu-title.active, 
  .submenu-item.active {
    text-decoration: none !important; /* Cleans "Darbi/Works" */
    font-weight: 700;
    color: #0000ee !important;
  }

  .project-link.active {
    text-decoration: line-through !important; /* Keeps line on "Illuminations" etc */
    color: #111 !important;
  }
}

/* Footer (Always keep at bottom) */
.site-footer {
  width: 100%;
  padding: 60px 24px 100px 24px;
  text-align: center;
  margin-top: 100px;
  clear: both;
}

.site-footer p {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 16px;
  color: #999;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}


/* Ensure the footer is hidden when Home is active, if you prefer */
#home ~ .site-footer {
  display: block;
}

/* 3D BOOK STYLES */
/* 3D OPEN BOOK STYLES */
/* 3D OPEN BOOK STYLES */
.book-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  perspective: 1500px;
  aspect-ratio: 1.4 / 1;
}

.book-page {
  position: absolute;
  width: 50%;
  top: 0;
  bottom: 0;
  transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
  transform-style: preserve-3d;
}

.left-side-base {
  left: 0;
  z-index: 1;
  border-right: 1px solid rgba(0,0,0,0.1);
  pointer-events: none; /* This lets your mouse click 'through' to the right page */
}

#moving-page {
  right: 0;
  transform-origin: left center; /* Hinges on the spine */
  z-index: 2;
  cursor: pointer;
}

.page-side {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background: #fff;
  border: 1px solid #ddd;
}

.page-side.back {
  transform: rotateY(180deg);
  background-image: linear-gradient(90deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 15%);
}

.page-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flip-control { display: none; }

/* When you click, the right page flips over to the left side */
/* This skips over the left page to find the moving page */
#flip-1:checked + .left-side-base + #moving-page {
  transform: rotateY(-180deg);
  z-index: 10;
}

/* This makes sure the back of the page is visible when flipped */
.page-side.back {
  transform: rotateY(180deg);
  z-index: 2;
  background-image: linear-gradient(90deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 15%);
}

/* Arrow Positioning */
.notebook-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: white;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notebook-arrow.left { left: -50px; }
.notebook-arrow.right { right: -50px; }

@media (max-width: 800px) {
  .notebook-arrow.left { left: 5px; }
  .notebook-arrow.right { right: 5px; }
}

/* LIGHTBOX */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  transition: background 0.35s ease;
}
.lightbox-overlay.open {
  display: flex;
  background: rgba(0,0,0,0.82);
}
.lightbox-overlay img {
  max-width: 70vw;
  max-height: 75vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  transform: scale(0.88);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.35s ease;
  position: fixed;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
}
.lightbox-overlay.open img {
  transform: scale(1);
  opacity: 1;
}
