/* ==========================================
   DESIGN SYSTEM & VARIABLES
   ========================================== */
:root {
  --color-blue-bg: #0b4f8c;
  --color-pink-accent: #db3380;
  --color-pink-light: #ff60ad;
  --color-cream-bg: #f9f6e5;
  --color-yellow-sticky: #fff9c4;
  --color-yellow-sticky-dark: #fff59d;
  --color-text-dark: #2c3e50;
  --color-text-light: #ffffff;
  
  --font-headline: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-handwritten: 'Gochi Hand', 'Caveat', cursive;
  
  --shadow-tactile: 5px 8px 20px rgba(0, 0, 0, 0.15);
  --shadow-folder: 10px 15px 30px rgba(0, 0, 0, 0.25);
  --shadow-sticky: 3px 6px 12px rgba(0, 0, 0, 0.1);
  --shadow-stamp: 2px 4px 10px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   BASE STYLES & RESET
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background-color: var(--color-blue-bg);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  cursor: url('assets/pencil_cursor.png') 10 10, auto;
}

/* Custom Hover Cursor for Clickable Elements */
a, button, [role="button"], 
.folder-tool, .notebook-turn-zone, .page-curl-corner, .page-curl-corner-left,
.folder-paper-scrap, .folder-smiley-sticker, .folder-barcode-sticker,
.about-polaroid-container, .notebook-page-spread, .cs-back-btn, .hire-button, .hire-close-btn,
#zone-prev, #zone-next, #cs-back, #close-hire-bar {
  cursor: url('assets/hover_cursor.png') 10 10, pointer;
}

/* Paper Texture Overlay (adds realism) */
.paper-texture-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3联%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Main Container */
.portfolio-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
  will-change: opacity, transform;
}

.portfolio-container.fade-out {
  opacity: 0;
  transform: translateX(-30px);
  visibility: hidden;
}

.portfolio-container.homepage-hidden {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================
   MARQUEE TICKER (SHARED STYLE)
   ========================================== */
.marquee-ticker {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-top: 3px solid #000;
  border-bottom: 3px solid #000;
  background-color: #fff;
  z-index: 10;
  position: relative;
}

.pink-ticker {
  background-color: var(--color-pink-accent);
  color: var(--color-text-light);
  font-family: var(--font-headline);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 1.5px;
}

.content-ticker {
  background-color: var(--color-pink-accent);
  color: var(--color-text-light);
  font-family: var(--font-headline);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 1.5px;
}

.marquee-content {
  display: inline-block;
  animation: marquee 25s linear infinite;
  padding-left: 100%;
}

.marquee-content span {
  display: inline-block;
  padding-right: 10px;
}

.star-separator {
  margin: 0 15px;
  color: #fff;
}

@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* ==========================================
   1. HERO SECTION
   ========================================== */
.hero-section {
  width: 100%;
  min-height: 90vh;
  background: linear-gradient(rgba(11, 79, 140, 0.3), rgba(11, 79, 140, 0.45)), url('assets/bg_blue_crumpled.png?v=2.2') repeat;
  background-size: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.hero-inner {
  width: 100%;
  max-width: 1200px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Floating tags */
.category-tag {
  position: absolute;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-headline);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 12px;
  border-radius: 4px;
}

.top-left-tag {
  top: -20px;
  left: 20px;
}

.top-right-tag {
  top: -20px;
  right: 20px;
}

/* Folder Container styling */
.folder-element {
  width: 100%;
  max-width: 820px; /* Larger folder */
  position: relative;
  z-index: 2; /* Create stacking context so child z-index: -1 stays in front of page background */
  margin: 80px auto 40px auto; /* Generous space at top for animated characters */
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Peeking Character styles */
.peeking-character-container {
  position: absolute;
  bottom: calc(100% - 15px); /* Align hands with folder top edge */
  right: 12%; /* Peek from the right side */
  width: 170px;
  height: auto;
  z-index: -1; /* Behind tab and folder content */
  pointer-events: none;
  opacity: 0;
  transform: translateY(100%) scale(0.9);
  animation: peekUp 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s forwards;
  transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.peeking-character-img {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes peekUp {
  0% {
    transform: translateY(100%) scale(0.9);
    opacity: 0;
  }
  100% {
    transform: translateY(70px) scale(0.95); /* Peek slightly (eyes and face fully visible, hands hidden) */
    opacity: 1;
  }
}

.folder-element:hover {
  transform: translateY(-8px) rotate(-1deg);
}

.folder-element:hover .peeking-character-container {
  transform: translateY(30px) scale(1.03) rotate(1.5deg); /* Rise fully, showing hands holding edge */
}

.folder-tab {
  width: 120px;
  height: 35px;
  background-color: var(--color-pink-accent);
  color: var(--color-text-light);
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  margin-left: 25px;
  position: relative;
  bottom: -2px;
  box-shadow: 2px -2px 10px rgba(0,0,0,0.1);
  letter-spacing: 1px;
}

.folder-content {
  background-color: var(--color-pink-accent);
  border-radius: 20px;
  border-top-left-radius: 0;
  padding: 40px 30px;
  box-shadow: var(--shadow-folder);
  color: var(--color-text-light);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-pink-light);
  min-height: 420px; /* Slightly taller to accommodate larger content */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  
  /* Tactical Grid Texture - More prominent grid */
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.16) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

/* --- Folder Cover Scrapbook Decorations --- */
.folder-paper-scrap {
  position: absolute;
  bottom: 80px;
  right: 170px;
  width: 175px;
  background-color: #ffffff;
  border: 1.5px solid #2c3e50;
  box-shadow: 4px 6px 12px rgba(0,0,0,0.18);
  padding: 14px 12px 12px 12px;
  transform: rotate(-3.5deg);
  z-index: 2;
  font-family: var(--font-handwritten);
  color: #2c3e50;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  cursor: pointer;
}

.folder-paper-scrap:hover {
  transform: rotate(1.5deg) scale(1.07);
  box-shadow: 8px 12px 20px rgba(0,0,0,0.22);
}

.scrap-tape {
  position: absolute;
  top: -12px;
  left: 45px;
  width: 70px;
  height: 20px;
  background-color: rgba(255, 235, 59, 0.65); /* Translucent yellow washi tape */
  transform: rotate(2deg);
  border-left: 2px dashed rgba(255,255,255,0.45);
  border-right: 2px dashed rgba(255,255,255,0.45);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.scrap-lines {
  background-image: linear-gradient(#b2dfdb 1px, transparent 1px);
  background-size: 100% 20px;
  line-height: 20px;
  padding-left: 2px;
}

.scrap-title {
  font-weight: 700;
  font-size: 14px;
  display: block;
  margin-bottom: 2px;
  color: #0b4f8c;
}

.scrap-item {
  font-size: 13px;
  display: block;
}

.folder-smiley-sticker {
  position: absolute;
  bottom: 85px;
  left: 200px;
  width: 52px;
  height: 52px;
  z-index: 3;
  transform: rotate(12deg);
  filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.18));
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
  cursor: pointer;
}

.folder-smiley-sticker:hover {
  transform: rotate(-8deg) scale(1.2);
  filter: drop-shadow(4px 8px 12px rgba(0,0,0,0.24));
}

.smiley-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.folder-barcode-sticker {
  position: absolute;
  bottom: 25px;
  left: 25px;
  background-color: #ffffff;
  border: 1.5px solid #2c3e50;
  padding: 6px 12px;
  border-radius: 2px;
  box-shadow: 2px 4px 8px rgba(0,0,0,0.12);
  transform: rotate(-1deg);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.folder-barcode-sticker:hover {
  transform: scale(1.1) rotate(2deg);
  box-shadow: 4px 8px 15px rgba(0,0,0,0.18);
}

.barcode-lines {
  display: flex;
  height: 22px;
  align-items: stretch;
}

.barcode-lines span {
  background-color: #2c3e50;
  margin-right: 1.5px;
  width: 2px;
}

.barcode-lines span:nth-child(2n) {
  width: 4.5px;
}
.barcode-lines span:nth-child(3n) {
  width: 1px;
}
.barcode-lines span:nth-child(5n) {
  width: 3px;
}

.barcode-text {
  font-family: monospace;
  font-size: 8px;
  color: #555;
  margin-top: 4px;
  letter-spacing: 1.5px;
}

.folder-sparkle {
  position: absolute;
  color: rgba(255, 255, 255, 0.65);
  pointer-events: none;
  font-family: var(--font-headline);
  animation: pulseSparkle 3s ease-in-out infinite;
  z-index: 2;
}

.sparkle-1 {
  top: 90px;
  left: 270px;
  font-size: 26px;
  color: #ffd54f;
}

.sparkle-2 {
  bottom: 120px;
  right: 50px;
  font-size: 18px;
  color: #ff60ad;
  animation-delay: 1s;
}

.sparkle-3 {
  top: 150px;
  right: 170px;
  font-size: 20px;
  color: #ffffff;
  animation-delay: 2s;
}

@keyframes pulseSparkle {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.35) rotate(45deg);
    opacity: 0.95;
  }
}

/* Scrapbook Folder Accessories */
.folder-paperclip {
  position: absolute;
  top: -15px;
  left: 140px;
  width: 20px;
  height: 50px;
  z-index: 10;
  transform: rotate(-12deg);
  filter: drop-shadow(1px 2px 2px rgba(0,0,0,0.15));
}

.folder-washi-tape {
  position: absolute;
  top: 18px;
  right: 25px;
  background-color: rgba(255, 235, 59, 0.55); /* Translucent warm yellow tape */
  border-left: 2.5px dashed rgba(255, 255, 255, 0.4);
  border-right: 2.5px dashed rgba(255, 255, 255, 0.4);
  color: #3e2723;
  font-family: var(--font-handwritten);
  font-size: 15px;
  font-weight: 700;
  padding: 4px 14px;
  transform: rotate(3deg);
  box-shadow: 1px 2px 3px rgba(0,0,0,0.08);
  letter-spacing: 0.5px;
  user-select: none;
}

.selected-works-text {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  opacity: 0.9;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 8px;
  display: block;
  margin-bottom: 20px;
}

.portfolio-title {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(45px, 9vw, 110px); /* Responsive title font size */
  line-height: 0.85;
  letter-spacing: -2px;
  margin-top: 15px;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
  text-shadow: 3px 5px 0px rgba(0, 0, 0, 0.15);
}

/* Starburst graphic decoration */
.starburst-container {
  position: absolute;
  top: 35px;
  left: 20px;
  width: 75px;
  height: 75px;
  pointer-events: none;
  animation: spin 30s linear infinite;
  z-index: 1;
}

.starburst-svg {
  width: 100%;
  height: 100%;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.curved-line-svg {
  position: absolute;
  top: 95px;
  left: 80px;
  width: 100px;
  height: 50px;
  opacity: 0.6;
}

/* Realistic CSS Stamp */
.stamp-wrapper {
  position: absolute;
  bottom: 25px;
  right: 25px;
  transform: rotate(-10deg);
  z-index: 3;
  transition: transform 0.3s ease;
}

.stamp-wrapper:hover {
  transform: rotate(5deg) scale(1.1);
}

.stamp-body {
  background-color: var(--color-pink-accent);
  color: var(--color-text-light);
  border: 3px dashed #ffffff;
  outline: 6px solid var(--color-pink-accent);
  outline-offset: -8px;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-stamp);
  border-radius: 4px;
}

.stamp-en {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 2px;
}

.stamp-role {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 1px;
  margin: 2px 0;
}

.stamp-ml {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 1px;
  opacity: 0.9;
}

/* Hero bottom links */
.hero-footer {
  width: 100%;
  max-width: 800px;
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  font-family: var(--font-headline);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.hero-footer a {
  color: #fff;
  border-bottom: 1.5px solid #fff;
  padding-bottom: 2px;
  text-transform: none; /* Keep email lowercase */
  transition: opacity 0.2s ease;
}

.hero-footer a:hover {
  opacity: 0.8;
}

/* ==========================================
   2. ABOUT ME SECTION
   ========================================== */
.about-section {
  width: 100%;
  background-color: var(--color-cream-bg);
  position: relative;
  padding: 80px 20px;
  border-bottom: 3px solid #000;
  overflow: hidden;
}

.about-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: 25px 25px;
  pointer-events: none;
}

.about-inner {
  width: 100%;
  max-width: 1050px; /* Tighter layout width */
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 850px) {
  .about-inner {
    grid-template-columns: 260px 1fr 280px;
    column-gap: 30px;
    row-gap: 30px;
    align-items: start;
  }
}

.about-left-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.hello-note-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Pinned Polaroid Photo (Swings dynamically) */
.about-polaroid-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 5;
  transform-origin: 25px 15px; /* Swing from the paperclip position! */
  animation: swing 6s ease-in-out infinite;
  margin-top: 15px;
  cursor: pointer;
}

.about-paperclip {
  position: absolute;
  top: -20px;
  left: 20px;
  width: 24px;
  height: 55px;
  z-index: 6;
  transform: rotate(-15deg);
  filter: drop-shadow(1px 2px 2px rgba(0,0,0,0.15));
}

.about-polaroid-card {
  background-color: #ffffff;
  padding: 12px 12px 25px 12px;
  box-shadow: var(--shadow-tactile);
  width: 220px;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,0.08);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: rotate(-2deg);
}

.about-polaroid-container:hover .about-polaroid-card {
  transform: rotate(0deg) scale(1.04);
  box-shadow: 8px 15px 25px rgba(0,0,0,0.2);
}

.about-polaroid-img-frame {
  width: 100%;
  height: 196px;
  overflow: hidden;
  background-color: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 1px;
}

.about-polaroid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-polaroid-caption {
  font-family: var(--font-handwritten);
  font-size: 24px;
  text-align: center;
  color: #333;
  margin-top: 12px;
  line-height: 1.1;
}

@keyframes swing {
  0% { transform: rotate(-2.5deg); }
  50% { transform: rotate(2.5deg); }
  100% { transform: rotate(-2.5deg); }
}

/* Bio Note Lined Sheet */
.hello-note-container {
  position: relative;
  z-index: 2;
}

.tape-decoration {
  position: absolute;
  top: -15px;
  left: 40px;
  width: 100px;
  height: 25px;
  background-color: rgba(144, 238, 144, 0.4);
  transform: rotate(-5deg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border-left: 2px dashed rgba(255,255,255,0.4);
  border-right: 2px dashed rgba(255,255,255,0.4);
  z-index: 3;
}

.green-tape {
  background-color: rgba(139, 195, 74, 0.45); /* warm semi-translucent green tape */
  transform: rotate(-3deg);
}

.hello-note {
  background-color: #fff;
  border-radius: 4px;
  box-shadow: var(--shadow-tactile);
  padding: 45px 35px 35px 35px;
  position: relative;
  border-left: 4px solid #ef5350; /* Red margin line */
  background-image: linear-gradient(#e0f2f1 1px, transparent 1px);
  background-size: 100% 30px;
  line-height: 30px;
}

.notebook-holes {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  padding: 0 30px;
}

.notebook-holes span {
  width: 10px;
  height: 10px;
  background-color: var(--color-cream-bg);
  border-radius: 50%;
  box-shadow: inset 1px 1px 2px rgba(0,0,0,0.3);
  display: block;
}

.handwritten-title {
  font-family: var(--font-handwritten);
  font-size: 34px;
  color: #0b4f8c;
  margin-bottom: 15px;
  line-height: 1.2;
}

.bio-text {
  font-size: 16px;
  line-height: 30px;
  color: var(--color-text-dark);
  margin-bottom: 20px;
}

.bio-text strong {
  font-weight: 700;
  color: var(--color-pink-accent);
}

.interests-box {
  margin-top: 15px;
  font-size: 13px;
  border-top: 1px dashed #ccc;
  padding-top: 10px;
  color: #555;
}

/* Yellow Sticky Notes */
.sticky-note {
  background-color: var(--color-yellow-sticky);
  background-image: linear-gradient(var(--color-yellow-sticky-dark) 1px, transparent 1px);
  background-size: 100% 22px;
  padding: 25px 20px 20px 20px;
  box-shadow: var(--shadow-sticky);
  border-radius: 2px;
  position: relative;
  width: 100%;
  max-width: 250px;
  color: #3e2723;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sticky-note:hover {
  transform: scale(1.03) rotate(0deg) !important;
  box-shadow: 8px 12px 20px rgba(0,0,0,0.15);
  z-index: 10;
}

/* Pushpin style */
.pushpin {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 25px;
  height: 25px;
  z-index: 4;
}

/* Contact Sticky Specifics */
.contact-sticky {
  justify-self: center;
  transform: rotate(-3deg);
  border-bottom-right-radius: 15px 3px; /* slight peel effect */
}

@media (min-width: 850px) {
  .contact-sticky {
    max-width: 100%;
    width: 250px;
    z-index: 6;
  }
}

.sticky-title {
  font-family: var(--font-handwritten);
  font-size: 22px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding-bottom: 4px;
}

.contact-list {
  list-style: none;
  font-size: 12px;
  line-height: 22px;
}

.contact-list li {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.contact-icon {
  margin-right: 8px;
  font-size: 14px;
}

.contact-list a:hover {
  text-decoration: underline;
  color: var(--color-pink-accent);
}

/* Education Sticky Specifics */
.edu-sticky {
  transform: rotate(2deg);
  border-bottom-left-radius: 12px 4px;
  justify-self: center;
  width: 100%;
}

@media (min-width: 850px) {
  .edu-sticky {
    max-width: 100%;
    width: 280px;
    transform: rotate(2deg);
    margin-top: 20px;
  }
}

@media (max-width: 849px) {
  .edu-sticky {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    max-width: 280px;
    margin: 30px auto 0 auto;
    transform: rotate(1.5deg);
  }
}

.paperclip-decor {
  position: absolute;
  top: -18px;
  right: 20px;
  width: 20px;
  height: 50px;
  z-index: 5;
  transform: rotate(-10deg);
}

.sticky-item {
  font-size: 12.5px; /* Increased from 11px */
  line-height: 1.5; /* Increased from 1.4 */
  margin-bottom: 12px;
}

.item-title {
  font-weight: 700;
  display: block;
}

.item-desc {
  color: #5d4037;
}



/* Skills & Tools Unified Notebook Page (Vertical Layout) */
.skills-notebook {
  grid-column: 1 / -1;
  margin-top: 40px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: var(--shadow-tactile);
  padding: 45px 35px 35px 35px;
  position: relative;
  border-left: 4px solid #ef5350; /* Red margin line */
  background-image: linear-gradient(#e0f2f1 1px, transparent 1px);
  background-size: 100% 28px;
  line-height: 28px;
}

.skills-notebook-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-2.5deg);
  width: 100px;
  height: 22px;
  z-index: 3;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.skills-notebook-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.skills-section-block {
  margin-bottom: 25px;
}

.skills-section-block:not(:first-child) {
  border-top: 1px dashed rgba(0,0,0,0.1);
  padding-top: 20px;
  margin-top: 5px;
}

.skills-section-title {
  font-family: var(--font-handwritten);
  font-size: 24px;
  color: #0b4f8c;
  margin-bottom: 12px;
  line-height: 1.2;
}

.folders-grid-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: flex-start;
  align-items: center;
  margin-top: 5px;
}

.skills-tags-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 5px;
}

.skill-tag {
  display: inline-block;
  padding: 5px 14px;
  font-family: var(--font-headline);
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 20px;
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
  user-select: none;
  cursor: pointer;
}

.skill-tag:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 3px 6px 10px rgba(0, 0, 0, 0.12);
}

.design-tag {
  background-color: rgba(219, 51, 128, 0.06);
  border: 1.5px dashed rgba(219, 51, 128, 0.45);
  color: var(--color-pink-accent);
}

.additional-tag {
  background-color: rgba(11, 79, 140, 0.06);
  border: 1.5px dashed rgba(11, 79, 140, 0.45);
  color: var(--color-blue-bg);
}

/* 3D Interactive Folder Tool - Dual Layer Pastel Design */
.folder-tool {
  width: 70px;
  height: 52px;
  position: relative;
  perspective: 150px;
  margin-top: 15px;
  background-color: var(--folder-back);
  border-radius: 6px;
  box-shadow: 1px 2px 4px rgba(0,0,0,0.06);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.folder-tool-tab {
  width: 28px;
  height: 10px;
  background-color: var(--folder-back);
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  position: absolute;
  top: -8px;
  left: 5px;
  transition: background-color 0.3s ease;
}

.folder-tool-front {
  width: 100%;
  height: 42px;
  background-color: var(--folder-front);
  border-radius: 6px;
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -1px 2px rgba(0,0,0,0.05), 0 3px 6px rgba(0,0,0,0.1);
  transform-origin: bottom center;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s;
  z-index: 2;
}

.tool-code {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 13px;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.15);
  user-select: none;
}

/* Folder hover/open interaction */
.folder-tool:hover {
  transform: translateY(-2px);
}

.folder-tool:hover .folder-tool-front {
  transform: rotateX(-30deg) skewX(-2deg);
}

/* Specific Tool Color Themes matching Reference Image Pastel Tones */
.canva-tool {
  --folder-back: #ffdfb4; /* Light Peach */
  --folder-front: #ffbe86; /* Peach */
}

.figma-tool {
  --folder-back: #ffb488; /* Soft Orange */
  --folder-front: #ff8c52; /* Vibrant Orange */
}

.ps-tool {
  --folder-back: #ffa1b8; /* Muted Pink */
  --folder-front: #ff7396; /* Coral Pink */
}

.ai-tool {
  --folder-back: #ff7b8b; /* Soft Red/Coral */
  --folder-front: #ff4b60; /* Vibrant Coral Red */
}

.visily-tool {
  --folder-back: #ff6b9d; /* Soft Magenta/Pink */
  --folder-front: #e63970; /* Saturated Hot Pink */
}



/* ==========================================
   3. PROJECTS GALLERY SECTION
   ========================================== */
.gallery-section {
  width: 100%;
  min-height: 100vh;
  background-color: var(--color-cream-bg);
  padding: 80px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 3px solid #000;
  overflow: hidden;
}

.gallery-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: 25px 25px;
  pointer-events: none;
  z-index: 1;
}

.gallery-inner {
  width: 100%;
  max-width: 1000px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.selected-works-tag {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 11px;
  color: var(--color-text-dark);
  text-transform: uppercase;
  letter-spacing: 3px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  padding: 6px 16px;
  border-radius: 4px;
  margin-bottom: 40px;
}

/* ==========================================
   PROJECT NOTEBOOK CONTAINER & LAYOUT
   ========================================== */
.notebook-wrapper {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 30px auto;
  padding: 0 10px;
}

.notebook-container {
  position: relative;
  width: 100%;
  max-width: 1050px;
  aspect-ratio: 1.48; /* Realistic ratio of an open binder */
  background: url('assets/scrapbook_notebook_bg.jpg') no-repeat center center;
  background-size: 100% 100%;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  perspective: 2000px;
  z-index: 5;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s ease, opacity 0.6s ease;
}

.notebook-container.zoomed {
  transform: scale(1.25) translateY(-20px);
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  z-index: 90;
}

/* Central Binder Rings */
.notebook-spine-rings {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 44px;
  transform: translateX(-50%);
  z-index: 25;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 78px,
    rgba(0, 0, 0, 0.15) 78px,
    rgba(0, 0, 0, 0.2) 80px,
    #999 80px,
    #eee 84px,
    #999 88px,
    rgba(0, 0, 0, 0.2) 88px,
    transparent 90px
  );
}

/* Pages Container */
.notebook-pages {
  position: absolute;
  top: 4.5%;
  bottom: 4.5%;
  left: 3.5%;
  right: 3.5%;
  z-index: 2;
  transform-style: preserve-3d;
}

/* Individual Spread Layer */
.notebook-page-spread {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 1;
  transform-style: preserve-3d;
}

.notebook-page-spread.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 3;
}

/* Page Sides */
.page-left, .page-right {
  position: absolute;
  top: 0;
  height: 100%;
  width: 45.8%;
  background-color: #fdfcf7; /* Warm natural paper */
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 20px 20px;
  box-shadow: 2px 8px 20px rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.page-left {
  left: 0;
  transform-origin: right center;
}

.page-right {
  right: 0;
  transform-origin: left center;
  border-left: 1.5px solid rgba(0, 0, 0, 0.06);
}

/* Page turn animation classes */
.notebook-page-spread.flipping-next {
  animation: flipNextSpread 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  z-index: 10;
}

.notebook-page-spread.flipping-prev {
  animation: flipPrevSpread 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  z-index: 10;
}

@keyframes flipNextSpread {
  0% { opacity: 1; transform: rotateY(0deg); }
  50% { opacity: 0.5; }
  100% { opacity: 0; transform: rotateY(-180deg); }
}

@keyframes flipPrevSpread {
  0% { opacity: 0; transform: rotateY(-180deg); }
  50% { opacity: 0.5; }
  100% { opacity: 1; transform: rotateY(0deg); }
}

/* Left Page Content - Note & Mockup */
.clip-note-container {
  position: relative;
  width: 100%;
  height: 82%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  cursor: pointer;
}

.clip-note-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  filter: drop-shadow(2px 5px 10px rgba(0,0,0,0.12));
  z-index: 1;
}

.mockup-img {
  position: absolute;
  top: 15%;
  left: 10%;
  width: 80%;
  height: 70%;
  object-fit: cover;
  transform: rotate(-1.5deg);
  border-radius: 4px;
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 2;
}

.clip-note-container:hover .mockup-img {
  transform: rotate(0deg) scale(1.03);
}

/* Double card overlap styling for Divine Decors (Spread 2) */
.clip-note-container.double-cards .mockup-img {
  width: 72%;
  height: 52%;
}

.clip-note-container.double-cards .card-front {
  top: 14%;
  left: 9%;
  transform: rotate(-5deg);
  z-index: 2;
}

.clip-note-container.double-cards .card-back {
  top: 32%;
  left: 18%;
  transform: rotate(3deg);
  z-index: 3;
}

.clip-note-container.double-cards:hover .card-front {
  transform: rotate(-2deg) scale(1.02);
}

.clip-note-container.double-cards:hover .card-back {
  transform: rotate(1deg) scale(1.04) translate(4px, 4px);
}

.page-tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  width: 100%;
  margin-top: 5px;
}

.page-tags .tag {
  font-family: var(--font-headline);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--color-pink-accent);
  color: #fff;
  border-radius: 20px;
  letter-spacing: 0.5px;
  box-shadow: 1px 2px 4px rgba(0,0,0,0.1);
}

/* Right Page Content */
.page-handwritten-title {
  font-family: var(--font-handwritten);
  font-size: 38px;
  color: var(--color-blue-bg);
  margin-bottom: 2px;
  line-height: 1.1;
  font-weight: 700;
}

.page-category {
  font-family: var(--font-headline);
  font-size: 13px;
  text-transform: uppercase;
  color: var(--color-pink-accent);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.page-description {
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.55;
  color: #444;
  margin-bottom: 12px;
}

.page-tools {
  font-size: 12px;
  color: #333;
  margin-bottom: 12px;
}

.tool-tag {
  display: inline-block;
  padding: 3px 8px;
  margin: 1px 2px;
  font-family: var(--font-headline);
  font-size: 10px;
  font-weight: 700;
  background: rgba(11, 79, 140, 0.08);
  color: var(--color-blue-bg);
  border-radius: 4px;
  border: 1px dashed rgba(11, 79, 140, 0.3);
}

.page-summary {
  font-family: var(--font-handwritten);
  font-size: 16px;
  color: #555;
  border-top: 1px dashed #ddd;
  padding-top: 10px;
  line-height: 1.3;
}

.page-number {
  position: absolute;
  bottom: 15px;
  right: 20px;
  font-family: var(--font-headline);
  font-size: 11px;
  font-weight: 700;
  color: #999;
}

/* Page Turning Click Zones */
.notebook-turn-zone {
  position: absolute;
  top: 4.5%;
  bottom: 4.5%;
  width: 80px;
  z-index: 25;
  transition: all 0.3s ease;
  cursor: pointer;
}

.turn-zone-left {
  left: 3.5%;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

.turn-zone-right {
  right: 3.5%;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

/* Sibling combinators to trigger page corner curl highlights on hover */
.turn-zone-left:hover ~ .notebook-pages .notebook-page-spread.active .page-curl-corner-left {
  background: linear-gradient(225deg, transparent 40%, #fff176 40%, #fbc02d 100%);
  box-shadow: 2px -2px 8px rgba(0,0,0,0.15);
}

.turn-zone-right:hover ~ .notebook-pages .notebook-page-spread.active .page-curl-corner {
  background: linear-gradient(135deg, transparent 40%, #fff176 40%, #fbc02d 100%);
  box-shadow: -2px -2px 8px rgba(0,0,0,0.15);
}

/* Sibling visual feedback on outer page margins on hover */
.turn-zone-left:hover ~ .notebook-pages .notebook-page-spread.active .page-left {
  box-shadow: inset 10px 0 20px rgba(0, 0, 0, 0.05), 2px 8px 20px rgba(0, 0, 0, 0.08);
}

.turn-zone-right:hover ~ .notebook-pages .notebook-page-spread.active .page-right {
  box-shadow: inset -10px 0 20px rgba(0, 0, 0, 0.05), 2px 8px 20px rgba(0, 0, 0, 0.08);
}

.notebook-hint {
  font-family: var(--font-handwritten);
  font-size: 20px;
  color: var(--color-text-dark);
  margin-top: 20px;
  text-align: center;
  letter-spacing: 0.5px;
  animation: pulseHint 2s infinite ease-in-out;
}

@keyframes pulseHint {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

/* Interactive Curling Corners */
.page-curl-corner, .page-curl-corner-left {
  position: absolute;
  bottom: 0;
  width: 40px;
  height: 40px;
  z-index: 15;
  transition: all 0.3s ease;
  cursor: pointer;
}

.page-curl-corner {
  right: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(0,0,0,0.04) 50%, rgba(0,0,0,0.1) 100%);
  border-bottom-right-radius: 6px;
}

.page-curl-corner:hover {
  background: linear-gradient(135deg, transparent 40%, #fff176 40%, #fbc02d 100%);
  box-shadow: -2px -2px 6px rgba(0,0,0,0.1);
}

.page-curl-corner-left {
  left: 0;
  background: linear-gradient(225deg, transparent 50%, rgba(0,0,0,0.04) 50%, rgba(0,0,0,0.1) 100%);
  border-bottom-left-radius: 6px;
}

.page-curl-corner-left:hover {
  background: linear-gradient(225deg, transparent 40%, #fff176 40%, #fbc02d 100%);
  box-shadow: 2px -2px 6px rgba(0,0,0,0.1);
}

/* ==========================================
   CASE STUDY Dedicated SCREEN & LAYOUT (SCRAPBOOK THEME)
   ========================================== */
body.case-study-active {
  background-image: url('assets/case_study_bg.png?v=2.6') !important;
  background-size: cover !important;
  background-attachment: scroll !important; /* Content and background scroll naturally */
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: #faf8f0 !important;
}

body.case-study-active .portfolio-container {
  display: none !important; /* Completely hide homepage to avoid overlaps/resource loading */
}

.case-study-page-view {
  display: none;
  width: 100%;
  min-height: 100vh;
  padding: 40px 20px 120px 20px;
  opacity: 0;
  transform: translateX(30px); /* Slide in page transition */
  transition: opacity 0.5s ease, transform 0.5s ease;
}

body.case-study-active .case-study-page-view {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

/* Custom Scrollbar for Scrapbook fullscreen page */
body.case-study-active::-webkit-scrollbar {
  width: 10px;
}
body.case-study-active::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
}
body.case-study-active::-webkit-scrollbar-thumb {
  background: rgba(139, 119, 101, 0.3);
  border-radius: 5px;
}
body.case-study-active::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 119, 101, 0.5);
}

.cs-scroll-content {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  position: relative; /* Anchor for absolute back button wrapper */
}

/* Floating Scrapbook Back Button Wrapper (Physically Taped to Page) */
.cs-back-btn-wrapper {
  position: absolute;
  top: 30px;
  left: calc(50% - 450px - 195px); /* Perfectly aligns to the left of the centered 900px content column with a 15px gap */
  z-index: 100;
  transform: rotate(-3deg);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (max-width: 1300px) {
  .cs-back-btn-wrapper {
    position: static;
    display: inline-block;
    margin-top: 15px;
    margin-bottom: 25px;
    transform: rotate(-1.5deg);
  }
}

.cs-back-btn-wrapper:hover {
  transform: rotate(-1deg) scale(1.03);
}

.cs-back-btn-tape {
  position: absolute;
  top: -12px;
  left: 30px;
  width: 70px;
  height: 20px;
  background-color: rgba(255, 235, 59, 0.6); /* Translucent yellow washi tape */
  transform: rotate(2deg);
  border-left: 1.5px dashed rgba(255,255,255,0.4);
  border-right: 1.5px dashed rgba(255,255,255,0.4);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  z-index: 102;
  pointer-events: none;
}

.cs-back-btn {
  background-color: #faf8f0; /* Off-white paper tab */
  color: #3e2723; /* Handwritten charcoal brown */
  border: 1.5px solid #2c3e50;
  padding: 10px 22px;
  font-family: var(--font-handwritten);
  font-weight: 700;
  font-size: 18px;
  text-transform: none;
  border-radius: 2px;
  box-shadow: 3px 5px 12px rgba(0,0,0,0.15);
  display: block;
  z-index: 101;
  position: relative;
  transition: background-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.cs-back-btn:hover {
  background-color: #fffde7; /* Soft yellow on hover */
  box-shadow: 5px 8px 18px rgba(0,0,0,0.2);
}

/* ==========================================
   SCRAPBOOK SHEET & DYNAMIC COMPONENTS
   ========================================== */
.cs-scrapbook-sheet {
  width: 100%;
  background: transparent; /* Full screen transparent layout container */
  position: relative;
  transition: transform 0.4s ease, opacity 0.4s ease;
  transform: translateY(0);
  opacity: 1;
}

/* Slide animations for transitions between case studies */
.cs-scrapbook-sheet.exit-slide {
  transform: translateX(-120px) rotate(-2deg);
  opacity: 0;
}

.cs-scrapbook-sheet.enter-slide {
  transform: translateX(120px) rotate(2deg);
  opacity: 0;
}

/* Torn Header Page */
/* Top Section directly on background */
.cs-top-section {
  margin-top: 40px;
  margin-bottom: 50px;
  max-width: 800px;
}

.cs-top-section .cs-title {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(38px, 6.5vw, 68px);
  color: #3e2723; /* Dark charcoal brown */
  text-transform: uppercase;
  margin-bottom: 8px;
  line-height: 1.05;
  letter-spacing: -0.5px;
}

.cs-top-section .cs-category {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 14px;
  color: var(--color-pink-accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 24px;
  line-height: 1.5;
  display: inline-block;
  border-bottom: 2px dashed rgba(219, 51, 128, 0.3);
  padding-bottom: 4px;
}

.cs-top-section .cs-description {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.8vw, 17.5px);
  line-height: 1.75;
  color: #4e342e; /* Warm dark brown text */
}

/* Grid & Layout Rows */
.cs-overview-row {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
}

/* Objective-only row (no Project Info sticky) */
.cs-objective-row {
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .cs-overview-row {
    flex-direction: column;
  }
}

/* Lined Notebook Paper Card (Objective) */
.cs-notebook-page {
  flex: 2;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  padding: 30px 35px 30px 45px;
  box-shadow: 4px 6px 18px rgba(0, 0, 0, 0.05);
  position: relative;
  /* Lined paper styling */
  background-image: linear-gradient(#e8f5e9 1px, transparent 1px);
  background-size: 100% 28px;
  line-height: 28px;
}

.cs-notebook-margin-line {
  position: absolute;
  top: 0;
  left: 30px;
  width: 2px;
  height: 100%;
  background-color: #ffab91; /* soft red margin */
}

.cs-notebook-page-tape {
  position: absolute;
  top: -12px;
  left: 40px;
  width: 75px;
  height: 22px;
  background-color: rgba(255, 112, 67, 0.25); /* Translucent orange washi tape */
  transform: rotate(3deg);
  border-left: 1.5px dashed rgba(255, 255, 255, 0.4);
  border-right: 1.5px dashed rgba(255, 255, 255, 0.4);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.cs-handwritten-section-title {
  font-family: var(--font-handwritten);
  font-size: 26px;
  color: #3e2723;
  margin-top: 5px;
  margin-bottom: 12px;
  font-weight: 700;
}

.cs-notebook-page p, .cs-grid-card p {
  font-size: 13.5px;
  color: #444;
  line-height: 28px; /* aligns perfectly with lines! */
}

/* Sticky Notes */
.cs-sticky-note {
  flex: 1.2;
  padding: 25px;
  border-radius: 2px;
  box-shadow: 5px 8px 18px rgba(0, 0, 0, 0.12);
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.cs-sticky-note:hover {
  transform: scale(1.02) rotate(0deg) !important;
}

.yellow-sticky {
  background-color: #fffde7;
  border-left: 1px solid rgba(0, 0, 0, 0.04);
  transform: rotate(-2.5deg);
}

.pink-sticky {
  background-color: #f8bbd0;
  border-left: 1px solid rgba(0, 0, 0, 0.04);
  transform: rotate(3deg);
}

/* Sticky Note Pushpins */
.cs-pushpin {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  pointer-events: none;
}

/* Pushpin SVG styles */
.cs-pushpin::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.15);
}

.cs-pushpin::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%) rotate(15deg);
  width: 2px;
  height: 14px;
  background-color: #777;
}

.red-pin::before {
  background-color: #f44336;
}

.blue-pin::before {
  background-color: #03a9f4;
}

.cs-sticky-title {
  font-family: var(--font-handwritten);
  font-size: 23px;
  color: #3e2723;
  margin-bottom: 12px;
  font-weight: 700;
  border-bottom: 1px dashed rgba(62, 39, 35, 0.2);
  padding-bottom: 4px;
}

.cs-meta-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cs-meta-li {
  font-size: 12.5px;
  color: #5d4037;
  line-height: 1.4;
}

.cs-meta-li strong {
  font-weight: 700;
  color: #3e2723;
}

/* Design Process Section */
.cs-process-section {
  margin-top: 40px;
  margin-bottom: 40px;
}

/* Grid Index Card styling */
.cs-grid-card {
  background-color: #ffffff;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 4px;
  padding: 35px 40px;
  box-shadow: 4px 6px 18px rgba(0,0,0,0.05);
  position: relative;
  /* Grid paper pattern */
  background-image: linear-gradient(rgba(0, 150, 136, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 150, 136, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
}

.cs-grid-tape {
  position: absolute;
  top: -12px;
  left: 40px;
  width: 80px;
  height: 22px;
  background-color: rgba(0, 150, 136, 0.2); /* Translucent teal tape */
  transform: rotate(-3deg);
  border-left: 2px dashed rgba(255, 255, 255, 0.4);
  border-right: 2px dashed rgba(255, 255, 255, 0.4);
}

/* Gallery Section & Polaroids */
.cs-gallery-section {
  margin-bottom: 40px;
}

.cs-gallery-title {
  font-family: var(--font-handwritten);
  font-size: 28px;
  color: #3e2723;
  margin-bottom: 20px;
  font-weight: 700;
}

.cs-polaroid-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.cs-polaroid-frame {
  background: #ffffff;
  padding: 15px 15px 40px 15px;
  border-radius: 2px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  max-width: 400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cs-polaroid-frame:hover {
  transform: scale(1.03) rotate(0deg) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
  z-index: 10;
}

.polaroid-tilt-left {
  transform: rotate(-3deg);
}

.polaroid-tilt-right {
  transform: rotate(3deg);
}

.polaroid-tilt-center {
  transform: rotate(1.5deg);
}

.cs-polaroid-tape {
  position: absolute;
  top: -12px;
  width: 90px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(1px);
  transform: rotate(2deg);
  border-left: 2px dashed rgba(0,0,0,0.1);
  border-right: 2px dashed rgba(0,0,0,0.1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.cs-polaroid-img-wrapper {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background-color: #f9f9f9;
  border: 1px solid #eeeeee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-polaroid-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.cs-polaroid-frame:hover .cs-polaroid-img-wrapper img {
  transform: scale(1.02);
}

.cs-polaroid-caption {
  font-family: var(--font-handwritten);
  font-size: 20px;
  color: #4e342e;
  margin-top: 15px;
  text-align: center;
  line-height: 1.2;
}

/* Learnings Section */
.cs-learnings-section {
  margin-bottom: 50px;
  display: flex;
  justify-content: center;
}

.cs-learnings-sticky {
  width: 100%;
  max-width: 600px;
  min-height: auto;
}

.cs-learnings-sticky p {
  font-family: var(--font-handwritten);
  font-size: 20px;
  line-height: 1.4;
  color: #3e2723;
}

/* Bottom Next Project Tab */
.cs-next-project-tab {
  position: absolute;
  bottom: -25px;
  right: 50px;
  background-color: #d7ccc8; /* kraft paper brown */
  border: 1.5px solid #8d6e63;
  padding: 12px 25px;
  border-radius: 4px;
  transform: rotate(1.5deg);
  box-shadow: 3px 6px 15px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  cursor: pointer;
  z-index: 20;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, background-color 0.2s;
}

.cs-next-project-tab:hover {
  transform: translateY(-5px) scale(1.04) rotate(-0.5deg);
  background-color: #efe5fd; /* Soft purple hint or lighter kraft */
  border-color: var(--color-pink-accent);
  box-shadow: 5px 10px 22px rgba(0, 0, 0, 0.22);
}

.cs-next-tab-tape {
  position: absolute;
  top: -12px;
  left: 20px;
  width: 50px;
  height: 18px;
  background-color: rgba(78, 52, 46, 0.2);
  transform: rotate(-4deg);
}

.cs-next-label {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 11px;
  color: var(--color-pink-accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 2px;
}

.cs-next-title {
  font-family: var(--font-handwritten);
  font-weight: 700;
  font-size: 22px;
  color: #3e2723;
}

/* Mobile responsive fixes for scrapbook elements */
@media (max-width: 600px) {
  .cs-scrapbook-sheet {
    padding: 30px 20px 80px 20px;
    border-radius: 12px;
  }
  
  .cs-header-page {
    padding: 25px 20px 25px 35px;
    margin-bottom: 25px;
    background-size: 100% 26px;
    line-height: 26px;
  }
  
  .cs-header-holes {
    display: none;
  }
  
  .cs-title {
    font-size: 28px;
  }
  
  .cs-notebook-page {
    padding: 20px 20px 20px 35px;
    background-size: 100% 26px;
    line-height: 26px;
  }
  
  .cs-notebook-margin-line {
    left: 22px;
  }
  
  .cs-polaroid-frame {
    padding: 10px 10px 30px 10px;
  }
  
  .cs-polaroid-img-wrapper {
    height: 180px;
  }
  
  .cs-polaroid-caption {
    font-size: 16px;
  }
  
  .cs-next-project-tab {
    right: 20px;
    padding: 10px 18px;
  }
  
  .cs-next-title {
    font-size: 18px;
  }
}

/* ==========================================
   MOBILE & RESPONSIVE ADJUSTMENTS
   ========================================== */
@media (max-width: 768px) {
  .notebook-container {
    aspect-ratio: 0.72; /* Slimmer portrait layout for mobile */
    max-width: 420px;
    background-image: none;
    background-color: #fcfbeb;
    border: 3.5px solid #000;
  }

  .notebook-spine-rings {
    display: none;
  }

  .notebook-pages {
    top: 3%;
    bottom: 3%;
    left: 4%;
    right: 4%;
  }

  .page-left, .page-right {
    width: 100%;
    height: 100%;
    left: 0;
    right: 0;
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    border-left: none;
    padding: 22px 18px;
  }

  /* Single-page state control */
  .page-left.mobile-active,
  .page-right.mobile-active {
    opacity: 1;
    pointer-events: auto;
  }

  .clip-note-container {
    height: 72%;
  }

  .page-handwritten-title {
    font-size: 32px;
  }

  .page-description {
    font-size: 12px;
    line-height: 1.45;
  }

  .page-summary {
    font-size: 15px;
  }

  .notebook-turn-zone {
    top: 3%;
    bottom: 3%;
    width: 60px;
  }
  .turn-zone-left {
    left: 4%;
  }
  .turn-zone-right {
    right: 4%;
  }
  
  .cs-title {
    font-size: 32px;
  }
  
  .cs-back-btn-wrapper {
    top: 15px;
    left: 15px;
  }
  
  .cs-back-btn {
    padding: 8px 16px;
    font-size: 14px;
  }
}


/* ==========================================
   4. CONTACT SECTION (ENDING PAGE)
   ========================================== */
.contact-section {
  width: 100%;
  background: linear-gradient(rgba(11, 79, 140, 0.94), rgba(11, 79, 140, 0.96)), url('assets/bg_blue_crumpled.png?v=2.2') repeat;
  background-size: 200px;
  padding: 100px 20px 80px 20px;
  border-top: 3px solid #000;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-inner {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Washi Tape Get In Touch Badge */
.contact-badge {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 11px;
  color: #3e2723;
  background-color: var(--color-yellow-sticky);
  padding: 6px 18px;
  border-radius: 4px;
  transform: rotate(-2.5deg);
  border: 1.5px dashed rgba(0,0,0,0.18);
  letter-spacing: 2.5px;
  box-shadow: 2px 4px 10px rgba(0,0,0,0.15);
  display: inline-block;
  margin-bottom: 30px;
}

.contact-title {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(32px, 5.5vw, 54px);
  color: #ffffff;
  line-height: 1.15;
  max-width: 780px;
  margin: 0 auto 20px auto;
  text-transform: none;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.15);
}

.serif-italic {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  color: var(--color-pink-light);
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.15);
}

.contact-description {
  font-family: var(--font-body);
  font-size: clamp(14px, 2vw, 16.5px);
  color: rgba(255, 255, 255, 0.85);
  max-width: 580px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

/* Tactile Pill Buttons */
.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: url('assets/hover_cursor.png') 10 10, pointer;
}

.contact-btn:hover {
  background-color: #ffffff;
  color: var(--color-blue-bg);
  border-color: #ffffff;
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.btn-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

/* Footer style inside contact section */
.contact-footer {
  font-family: var(--font-headline);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  border-top: 1.5px dashed rgba(255, 255, 255, 0.15);
  padding-top: 30px;
  width: 100%;
  max-width: 600px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 10px;
}

/* ==========================================
   5. FLOATING BOTTOM BAR (HIRE ME)
   ========================================== */
.floating-hire-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  width: 90%;
  max-width: 480px;
  background-color: rgba(69, 58, 48, 0.95); /* matching brown border of banner */
  border: 2px solid #5d4037;
  color: #fff;
  border-radius: 50px;
  padding: 10px 15px 10px 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  z-index: 100;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-hire-bar.active {
  transform: translateX(-50%) translateY(0);
}

.hire-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hire-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hire-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  background-color: #fff;
}

.hire-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hire-status-text {
  font-size: 11px;
  font-family: var(--font-headline);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.hire-button {
  background-color: #fff;
  color: #333;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 30px;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  transition: background-color 0.2s, transform 0.2s;
}

.hire-button:hover {
  background-color: var(--color-pink-accent);
  color: #fff;
  transform: scale(1.05);
}

.hire-close-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 18px;
  padding: 0 5px;
  line-height: 1;
  transition: color 0.2s;
  cursor: pointer;
}

.hire-close-btn:hover {
  color: #fff;
}

/* Mobile: keep the floating hire bar from overlapping the footer credit */
@media (max-width: 768px) {
  .contact-section {
    /* extra room at the bottom so the fixed hire bar clears the footer text */
    padding-bottom: 130px;
  }

  .floating-hire-bar {
    width: calc(100% - 24px);
    max-width: 480px;
    padding: 9px 12px 9px 16px;
  }

  .hire-bar-inner {
    gap: 8px;
  }

  .hire-profile {
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
  }

  .hire-status-text {
    font-size: 10.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hire-button {
    flex: 0 0 auto;
    padding: 8px 14px;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .hire-status-text {
    /* on very narrow screens the button + close take priority */
    display: none;
  }
}

/* ==========================================
   6. CUSTOM EASING CURSOR
   ========================================== */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  background-image: url('assets/pencil_cursor.png?v=2.3');
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 10000;
  transform: translate3d(-100px, -100px, 0);
  will-change: transform;
  transition: filter 0.2s ease, opacity 0.2s ease;
  opacity: 0;
  display: none;
}

/* Hide native cursor and show custom one only on devices supporting hover */
@media (hover: hover) and (pointer: fine) {
  body.custom-cursor-active {
    cursor: none !important;
  }
  body.custom-cursor-active * {
    cursor: none !important;
  }
  body.custom-cursor-active .custom-cursor {
    display: block;
  }
}

/* Hover state: swap to magnifying glass, scale and cyan glow */
.custom-cursor.hovered {
  background-image: url('assets/hover_cursor.png?v=2.3');
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.65)); /* Cyan lens glow */
}

/* ==========================================
   PAGE CAROUSEL (Spread 1 - F-Series)
   ========================================== */
.page-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-carousel .carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.page-carousel .carousel-slide.active-slide {
  opacity: 1;
  pointer-events: auto;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: 2px solid var(--color-pink-accent);
  color: var(--color-pink-accent);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 14px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.carousel-btn:hover {
  background: var(--color-pink-accent);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: 4px; }
.carousel-next { right: 4px; }

.carousel-dots {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(219,51,128,0.3);
  border: 1.5px solid var(--color-pink-accent);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active-dot {
  background: var(--color-pink-accent);
  transform: scale(1.25);
}

/* ==========================================
   FIND ME PDF PREVIEW (Spread 3)
   ========================================== */
.findme-pdf-preview {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255,255,255,0.6);
  border-radius: 8px;
}

.findme-icon {
  font-size: 48px;
  line-height: 1;
}

.findme-label {
  font-family: var(--font-handwritten);
  font-size: 1.3rem;
  color: var(--color-text-dark);
  font-weight: 700;
}

.findme-open-btn {
  display: inline-block;
  padding: 6px 16px;
  background: var(--color-pink-accent);
  color: #fff;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 2px 8px rgba(219,51,128,0.3);
}

.findme-open-btn:hover {
  background: #b8275f;
  transform: translateY(-2px);
}

/* Case Study PDF preview wrapper */
.cs-pdf-preview-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  min-height: 140px;
  background: rgba(255,255,255,0.5);
  border-radius: 6px;
}

.cs-pdf-icon {
  font-size: 40px;
  line-height: 1;
}

.cs-pdf-name {
  font-family: var(--font-handwritten);
  font-size: 1rem;
  color: var(--color-text-dark);
  font-weight: 700;
}

.cs-pdf-open-btn {
  display: inline-block;
  padding: 5px 14px;
  background: var(--color-pink-accent);
  color: #fff;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 2px 6px rgba(219,51,128,0.25);
}

.cs-pdf-open-btn:hover {
  background: #b8275f;
  transform: translateY(-2px);
}

/* ==========================================
   INSTAGRAM CAROUSEL MOCKUP (Spread 1)
   ========================================== */
.ig-mockup {
  position: absolute;
  inset: 8px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
  z-index: 2;
}

/* IG Header */
.ig-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid #efefef;
  flex-shrink: 0;
}

.ig-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7);
  flex-shrink: 0;
}

.ig-user-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.ig-handle {
  font-size: 11px;
  font-weight: 700;
  color: #262626;
  line-height: 1.2;
}

.ig-subtitle {
  font-size: 9px;
  color: #8e8e8e;
  line-height: 1.2;
}

.ig-dots-menu {
  font-size: 14px;
  color: #262626;
  letter-spacing: 1px;
  cursor: default;
}

/* IG Image Area */
.ig-image-area {
  position: relative;
  width: 100%;
  flex: 1;
  background: #000;
  overflow: hidden;
  min-height: 0;
}

.ig-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.ig-slide.active-slide {
  opacity: 1;
}

/* IG Nav Buttons */
.ig-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 11px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 6px rgba(0,0,0,0.25);
  transition: opacity 0.2s, transform 0.15s;
  color: #262626;
  padding: 0;
}

.ig-nav-btn:hover {
  transform: translateY(-50%) scale(1.1);
}

.ig-prev { left: 8px; }
.ig-next { right: 8px; }

/* IG Slide Counter */
.ig-counter {
  position: absolute;
  top: 8px;
  right: 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  z-index: 10;
  font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

/* IG Actions Row */
.ig-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 2px;
  flex-shrink: 0;
}

.ig-action-left {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ig-icon {
  font-size: 16px;
  cursor: default;
  color: #262626;
}

.ig-bookmark {
  color: #262626;
}

/* IG Dots */
.ig-dot-row {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 2px 0 6px;
  flex-shrink: 0;
}

.ig-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c7c7c7;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.ig-dot.ig-dot-active {
  background: #0095f6;
  transform: scale(1.2);
}

/* ==========================================
   FIND ME PDF EMBED (Spread 3)
   ========================================== */
.findme-embed-wrapper {
  position: absolute;
  inset: 6px;
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 2;
}

.findme-pdf-embed {
  width: 100%;
  flex: 1;
  border: none;
  display: block;
  background: #f0f0f0;
  min-height: 0;
}

.findme-open-pill {
  display: block;
  text-align: center;
  padding: 6px 0;
  background: #1a2744;
  color: #f5c518;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.03em;
  flex-shrink: 0;
  transition: background 0.2s;
}

.findme-open-pill:hover {
  background: #2d3f6e;
}

/* ==========================================
   IG CAROUSEL IN CASE STUDY VIEW
   ========================================== */
/* Override position:absolute from .ig-mockup so it flows inside cs-polaroid-container */
.ig-mockup-cs {
  position: relative !important;
  inset: auto !important;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

/* Make the image area tall enough to see the images properly */
.ig-mockup-cs .ig-image-area {
  height: 380px;
}

/* Scale up nav buttons slightly for the case study view */
.ig-mockup-cs .ig-nav-btn {
  width: 32px;
  height: 32px;
  font-size: 14px;
}

/* Make the cs-polaroid-container flex-box-centered for the single frame */
.cs-gallery-section .cs-polaroid-container:has(.ig-mockup-cs) {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
}

/* ==========================================
   3-PANEL STRIP (Auto Fare Series)
   ========================================== */
/* In notebook page-left (fits inside clip-note-container) */
.panel-strip {
  position: absolute;
  inset: 6px;
  display: flex;
  flex-direction: row;
  gap: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0,0,0,0.22);
  z-index: 2;
}

.strip-panel {
  flex: 1 1 0;
  width: 0;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
}

/* In case study gallery area — flows as a block, full-width */
.panel-strip-cs {
  position: relative;
  inset: auto;
  width: 100%;
  max-width: 680px;
  height: 260px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.2);
}

/* Find Me PDF fallback card (when browser can't render PDF inline) */
.findme-pdf-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #1a2744 0%, #2d3f6e 100%);
  border-radius: 6px 6px 0 0;
}

.findme-fallback-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.findme-fallback-title {
  font-family: var(--font-handwritten);
  font-size: 1.4rem;
  font-weight: 700;
  color: #f5c518;
}

.findme-fallback-sub {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 0 12px;
}
