/* ═══════════════════════════════════════════
   LIS PORTFOLIO — style.css
   Life Is Strange inspired portfolio styles
════════════════════════════════════════════ */

/* ── Custom Fonts ── */
@font-face {
  font-family: 'Dudu Calligraphy';
  src: url('../assets/fonts/Dudu_Calligraphy.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background: #0e0c09;
  color: #f5ede0;
  font-family: 'Dudu Calligraphy', cursive;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* ── Splash Screen ── */
#splash {
  width: 100vw;
  height: 100vh;
  background: #1a1510;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Camera flash overlay */
#flash {
  position: absolute;
  inset: 0;
  background: #ffffff;
  opacity: 1;
  z-index: 10;
  pointer-events: none;
}

/* CRT scanline texture */
.bg-texture {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.012) 2px,
    rgba(255, 255, 255, 0.012) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* Dark vignette edges */
.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.65) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Flying butterfly canvas — sits above vignette */
#butterfly-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

/* ── Main Intro Content ── */
#main-content {
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 2rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  position: relative;
  z-index: 2;
}

#main-content.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Text Side ── */
.text-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 380px;
}

.greeting {
  font-family: 'Pacifico', cursive;
  font-family: 'Dudu Calligraphy', cursive;
  font-size: 20px;
  color: #a89880;
  letter-spacing: 0.02em;
}

.name-line {
  font-family: 'Pacifico', cursive;
  font-family: 'Dudu Calligraphy', cursive;
  font-size: 45px;
  color: #f5ede0;
  line-height: 1.1;
  min-height: 58px;
  display: flex;
  align-items: flex-end;
  white-space: nowrap;
}

/* Blinking text cursor */
.cursor {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  background: #c9a870;
  margin-left: 3px;
  flex: 0 0 auto;
  animation: blink 0.9s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.tagline {
  font-family: 'Caveat', cursive;
  font-family: 'Dudu Calligraphy', cursive;
  font-size: 24px;
  color: #7a8e9a;
  line-height: 1.65;
  opacity: 0;
  transition: opacity 1s ease 0.3s;
}

.tagline.show {
  opacity: 1;
}

/* Enter button */
.enter-btn {
  margin-top: 6px;
  font-family: 'Pacifico', cursive;
  font-family: 'Dudu Calligraphy', cursive;
  font-size: 18px;
  color: #c9a870;
  background: none;
  border: 1px solid #6a5a40;
  padding: 10px 24px;
  border-radius: 24px;
  cursor: pointer;
  width: fit-content;
  opacity: 0;
  transition: opacity 0.6s ease, background 0.2s ease, border-color 0.2s ease;
  letter-spacing: 0.01em;
}

.enter-btn.show {
  opacity: 1;
}

.enter-btn:hover {
  background: rgba(201, 168, 112, 0.12);
  border-color: #c9a870;
}

.enter-btn:active {
  transform: scale(0.97);
}

/* ── Polaroid ── */
.polaroid-wrap {
  opacity: 0;
  transform: translateY(-380px) rotate(3deg);
  flex-shrink: 0;
  position: relative;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.6));
  transition: filter 0.3s ease;
}

/* Dropped state — triggered by JS */
.polaroid-wrap.drop {
  opacity: 1;
  transform: translateY(0px) rotate(3deg);
  transition: opacity 0.15s ease, transform 0.75s cubic-bezier(0.22, 1.2, 0.5, 1);
}

.polaroid-wrap.settle {
  transform: translateY(7px) rotate(3deg);
  transition: transform 0.18s ease-out;
}

.polaroid-wrap.rest {
  transform: translateY(0px) rotate(3deg);
  transition: transform 0.14s ease-in;
}

.polaroid-wrap:hover {
  transform: translateY(0px) rotate(0deg) scale(1.04) !important;
  transition: transform 0.3s ease !important;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,0.7));
}

.polaroid {
  background: #faf5ec;
  padding: 12px 12px 48px;
  width: 190px;
  border: 1px solid #e0d5c0;
}

.photo-area {
  width: 166px;
  height: 166px;
  background: #8fa8b8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.intro-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Replace these placeholder divs with an <img> tag */
.photo-silhouette {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #6a8a9a;
}

.photo-body {
  width: 76px;
  height: 38px;
  border-radius: 38px 38px 0 0;
  background: #6a8a9a;
}

.photo-label {
  font-family: 'Special Elite', cursive;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  text-align: center;
  position: absolute;
  bottom: 22px;
}

.film-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 15px;
  background: #f0e8d5;
  border-top: 1px solid #d4c8b0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 4px;
}

.sprocket {
  width: 6px;
  height: 9px;
  background: #c8bca8;
  border-radius: 1px;
}

.polaroid-caption {
  font-family: 'Special Elite', cursive;
  font-size: 14px;
  color: #3f311f;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  text-align: center;
  margin-top: 10px;
  line-height: 1.5;
}

/* Washi tape on top of polaroid */
.tape {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 20px;
  background: rgba(255, 235, 130, 0.65);
  border-radius: 1px;
  border-left: 1px solid rgba(200,180,80,0.3);
  border-right: 1px solid rgba(200,180,80,0.3);
}

/* ── Consequence Screen ── */
#consequence-screen {
  position: absolute;
  inset: 0;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

#consequence-screen.show {
  opacity: 1;
  pointer-events: all;
}

/* Subtle animated blue bg pulse canvas */
#csq-bg-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Inner content: butterfly + writing */
#csq-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 2rem;
}

#csq-butterfly {
  width: 108px;
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.35));
}

#writing-svg {
  overflow: visible;
}

/* ── Main Portfolio (revealed after intro) ── */
#portfolio {
  min-height: 100vh;
  padding: 3.5rem 1.4rem 4rem;
  background:
    radial-gradient(circle at 10% 20%, rgba(163, 126, 86, 0.16), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(104, 136, 156, 0.16), transparent 42%),
    linear-gradient(160deg, #18130f 0%, #0f0c09 100%);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.1s ease, transform 1.1s ease;
}

#portfolio.hidden {
  display: none;
}

#portfolio.show {
  opacity: 1;
  transform: translateY(0);
}

.about-journal {
  width: min(1150px, 100%);
  margin: 0 auto;
}

.about-header {
  text-align: center;
  margin-bottom: 1.2rem;
}

.about-kicker {
  font-size: 1.25rem;
  color: #ad9777;
  letter-spacing: 0.03em;
  text-transform: lowercase;
}

.about-header h1 {
  margin-top: 0.2rem;
  font-size: clamp(1.7rem, 3.1vw, 2.5rem);
  color: #f5ede0;
  line-height: 1.18;
}

.journal-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: stretch;
}

.journal-page {
  position: relative;
  min-height: 670px;
  padding: 1.3rem 1.2rem 1.1rem;
  border: 2px solid #a89977;
  border-radius: 2px;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.08), 0 16px 42px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  background:
    repeating-linear-gradient(
      to bottom,
      #faf6ed 0,
      #faf6ed 32px,
      #e8f0f8 32px,
      #e8f0f8 33px
    ),
    linear-gradient(130deg, rgba(255, 248, 240, 0.6), rgba(240, 245, 255, 0.4));
  filter: sepia(0.08);
}

.left-page {
  transform: rotate(-1.2deg);
  background:
    repeating-linear-gradient(
      to bottom,
      #faf6ed 0,
      #faf6ed 32px,
      #e8f0f8 32px,
      #e8f0f8 33px
    ),
    linear-gradient(135deg, rgba(255, 245, 235, 0.8), rgba(240, 248, 255, 0.5));
}

.left-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 280px 200px at 75% 12%, rgba(147, 112, 219, 0.38) 0%, transparent 55%),
    radial-gradient(ellipse 240px 180px at 18% 72%, rgba(138, 108, 185, 0.32) 0%, transparent 60%),
    radial-gradient(circle 150px at 82% 60%, rgba(155, 89, 182, 0.28) 0%, transparent 65%);
  filter: blur(18px);
  z-index: 0;
}

.left-page > * {
  position: relative;
  z-index: 1;
}

.scrapbook-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.4rem;
  flex-wrap: wrap;
}

.timeloop-image {
  position: absolute;
  left: 0.8rem;
  top: 2.2rem;
  width: 168px;
  height: auto;
  transform: rotate(-7deg);
  filter: saturate(0.96) contrast(1.02) drop-shadow(0 8px 14px rgba(0, 0, 0, 0.14));
  mix-blend-mode: multiply;
  z-index: 1;
}

.timeloop-image::before {
  content: "";
  position: relative;
  display: block;
  border: none;
}

.right-page {
  transform: rotate(0.95deg);
  background:
    repeating-linear-gradient(
      to bottom,
      #faf6ed 0,
      #faf6ed 32px,
      #e8f0f8 32px,
      #e8f0f8 33px
    ),
    linear-gradient(115deg, rgba(255, 248, 240, 0.7), rgba(235, 245, 255, 0.4));
}

.right-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 300px 210px at 28% 22%, rgba(155, 89, 182, 0.36) 0%, transparent 52%),
    radial-gradient(ellipse 260px 190px at 78% 78%, rgba(142, 110, 195, 0.3) 0%, transparent 58%),
    radial-gradient(circle 160px at 42% 50%, rgba(147, 112, 219, 0.25) 0%, transparent 64%);
  filter: blur(20px);
  z-index: 0;
}

.right-page > * {
  position: relative;
  z-index: 1;
}

.experience-journal {
  position: relative;
  width: min(1150px, 100%);
  margin: 4.8rem auto 0;
}

.experience-butterfly {
  position: absolute;
  width: 120px;
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  opacity: 0.92;
}

.experience-butterfly-top {
  top: -1.2rem;
  left: -0.9rem;
  transform: rotate(-12deg);
}

.experience-butterfly-bottom {
  right: -1.1rem;
  bottom: -1.8rem;
  transform: scaleX(-1) rotate(-6deg);
}

.experience-header {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 1rem;
}

.experience-subtitle {
  margin-top: 0.4rem;
  color: #cfbc9f;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.timeline-shell {
  position: relative;
  z-index: 1;
  padding: 2.8rem 0 0.7rem;
}

.timeline-line {
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 1.5rem;
  height: 4px;
  background: linear-gradient(90deg, rgba(248, 227, 159, 0.15), rgba(248, 227, 159, 0.85), rgba(248, 227, 159, 0.15));
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12), 0 0 20px rgba(248, 227, 159, 0.25);
}

.timeline-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  justify-content: center;
  padding: 1.35rem 0.4rem 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(248, 227, 159, 0.55) rgba(255, 255, 255, 0.08);
}

.experience-card {
  position: relative;
  flex: 0 0 380px;
  width: 380px;
  min-width: 380px;
  max-width: 380px;
  height: 480px;
  border: none;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
  padding: 0;
  cursor: pointer;
  scroll-snap-align: start;
  perspective: 1200px;
  transform: rotate(var(--tilt, -2deg));
  transition: transform 0.28s ease, filter 0.28s ease;
}

.experience-card:nth-child(1) {
  --tilt: -2deg;
}

.experience-card:nth-child(2) {
  --tilt: 1.6deg;
}

.experience-card:hover {
  transform: rotate(var(--tilt, -2deg));
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.18));
}

.clip-mark {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 24px;
  height: 28px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #d5d8df 0%, #aeb6c0 100%);
  border-radius: 6px 6px 4px 4px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.18);
  z-index: 3;
}

.clip-mark::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 6px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8fbff 0%, #7f8794 100%);
}

.experience-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.experience-card.is-flipped .experience-card-inner {
  transform: rotateY(180deg);
}

.experience-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border: 2px solid #d8c5a4;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.75), 0 14px 32px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 252, 244, 0.95), rgba(249, 242, 229, 0.96)),
    radial-gradient(circle at 20% 10%, rgba(150, 115, 200, 0.14), transparent 42%);
}

.experience-face::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 30px,
      rgba(101, 75, 60, 0.06) 31px
    );
  pointer-events: none;
  mix-blend-mode: multiply;
}

.experience-front,
.experience-back {
  padding: 0.8rem 1.1rem 0.8rem;
}

.experience-front {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  padding-bottom: 3rem;
}

.experience-back {
  padding-top: 1.5rem;
  transform: rotateY(180deg);
  background:
    linear-gradient(180deg, rgba(252, 247, 238, 0.98), rgba(243, 236, 223, 0.98));
}

.experience-back ul {
  margin-top: 0.75rem;
  padding-left: 1.1rem;
  color: #3a2f1f;
  font-size: 1.02rem;
  line-height: 1.45;
}

.experience-back li + li {
  margin-top: 0.55rem;
}

.card-date {
  color: #896b4c;
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
}

.experience-front h2 {
  color: #2f2117;
  font-size: 1.58rem;
  line-height: 1.08;
}

.card-back-title {
  color: #6e543a;
  font-size: 1.08rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-company {
  margin-top: 0.28rem;
  color: #7f6b55;
  font-size: 1.06rem;
  text-transform: lowercase;
}

.card-snippet {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  color: #3d3122;
  font-size: 1.06rem;
  line-height: 1.42;
}

.flip-hint {
  display: inline-flex;
  margin-top: 0;
  align-self: flex-start;
  padding: 0.26rem 0.48rem;
  border-radius: 999px;
  background: rgba(248, 227, 159, 0.72);
  color: #4c3a24;
  font-size: 0.92rem;
  border: 1px solid rgba(120, 90, 60, 0.18);
  position: absolute;
  left: 1.1rem;
  bottom: 0.8rem;
}

.card-image {
  width: 100%;
  height: auto;
  max-height: 170px;
  object-fit: contain;
  background: rgba(248, 242, 231, 0.9);
  border-radius: 3px;
  margin: 0.3rem 0 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.experience-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(100, 131, 193, 0.72);
}

.education-board {
  width: min(1150px, 100%);
  margin: 4.8rem auto 0;
}

.education-header {
  text-align: center;
  margin-bottom: 1rem;
}

.board-surface {
  position: relative;
  min-height: 900px;
  border-radius: 12px;
  border: 1px solid rgba(120, 92, 59, 0.46);
  padding: 1.3rem;
  background:
    radial-gradient(circle at 20% 16%, rgba(222, 193, 140, 0.36), transparent 42%),
    radial-gradient(circle at 85% 80%, rgba(180, 140, 95, 0.24), transparent 46%),
    linear-gradient(135deg, #4c3424 0%, #3f2c20 54%, #2f2016 100%);
  box-shadow: inset 0 0 48px rgba(0, 0, 0, 0.18), 0 14px 30px rgba(0, 0, 0, 0.28);
}

.board-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 3px,
      transparent 3px,
      transparent 7px
    );
  pointer-events: none;
}

.board-string {
  position: absolute;
  height: 2.5px;
  background: linear-gradient(90deg, #a11423 0%, #d52a3f 45%, #99101f 100%);
  box-shadow: 0 0 0 1px rgba(255, 145, 145, 0.12), 0 1px 2px rgba(0, 0, 0, 0.25);
  transform-origin: left center;
  z-index: 0;
}

.board-string::before,
.board-string::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle at 30% 30%, #ffeef0 0%, #d9e2ea 40%, #8f9baa 100%);
  box-shadow: 0 0 0 1px rgba(40, 40, 40, 0.3);
}

.board-string::before {
  left: -3px;
}

.board-string::after {
  right: -3px;
}

.board-string-a {
  width: 352px;
  top: 182px;
  left: 203px;
  transform: rotate(6.5deg);
}

.board-string-b {
  width: 359px;
  top: 222px;
  left: 555px;
  transform: rotate(-8deg);
}

.board-string-c {
  width: 332px;
  top: 198px;
  left: 205px;
  transform: rotate(90deg);
}

.board-string-d {
  width: 311px;
  top: 238px;
  left: 560px;
  transform: rotate(93.7deg);
}

.board-string-e {
  width: 341px;
  top: 174px;
  left: 905px;
  transform: rotate(93.4deg);
}

.board-string-f {
  width: 410px;
  top: 742px;
  left: 535px;
  transform: rotate(-32.8deg);
}

.board-string-g {
  width: 68px;
  top: 535px;
  left: 327px;
  transform: rotate(16deg);
}

.board-string-h {
  width: 66px;
  top: 541px;
  left: 680px;
  transform: rotate(-16deg);
}

.leftover-pin {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffd8de 0%, #e53d52 45%, #95101f 100%);
  box-shadow: 0 0 0 1px rgba(40, 8, 12, 0.35), 0 1px 3px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.leftover-pin-l1 { left: 12px; top: 136px; }
.leftover-pin-l2 { left: 16px; top: 458px; }
.leftover-pin-l3 { left: 14px; top: 784px; }
.leftover-pin-r1 { right: 14px; top: 118px; }
.leftover-pin-r2 { right: 16px; top: 512px; }
.leftover-pin-r3 { right: 12px; top: 818px; }

.board-postit {
  position: absolute;
  right: 32px;
  top: 650px;
  width: 162px;
  padding: 0.7rem 0.8rem;
  background: #ffe37f;
  border: 1px solid rgba(133, 104, 40, 0.34);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.22);
  transform: rotate(4deg);
  z-index: 2;
}

.board-postit::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(1deg);
  width: 58px;
  height: 18px;
  background: rgba(255, 228, 144, 0.82);
  border-radius: 1px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.board-postit p {
  color: #5d451f;
  font-size: 1.42rem;
  line-height: 1;
  text-align: center;
}

.evidence-note {
  position: absolute;
  width: 290px;
  padding: 0.8rem 0.85rem 0.9rem;
  color: #302117;
  border-radius: 4px;
  border: 1px solid rgba(130, 99, 65, 0.35);
  box-shadow: 0 9px 18px rgba(0, 0, 0, 0.22);
}

.evidence-note::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 12px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f4f8fb 0%, #c8d1d9 35%, #8b96a3 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.note-edu {
  background:
    repeating-linear-gradient(
      to bottom,
      #f9f3e9 0,
      #f9f3e9 30px,
      #d6e3f2 30px,
      #d6e3f2 31px
    );
}

.note-skill {
  background: #f6e6bf;
}

.evidence-note h2 {
  font-size: 1.36rem;
  line-height: 1.15;
  margin-top: 0.15rem;
}

.note-type {
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8d6745;
}

.note-place {
  margin-top: 0.38rem;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.25;
}

.note-meta {
  margin-top: 0.22rem;
  font-size: 1rem;
  color: #5a4431;
}

.note-skill ul {
  margin-top: 0.5rem;
  padding-left: 1.1rem;
  font-size: 1.04rem;
  line-height: 1.35;
}

.note-edu-1 {
  top: 34px;
  left: 58px;
  transform: rotate(-2.4deg);
}

.note-edu-2 {
  top: 86px;
  left: 410px;
  transform: rotate(2deg);
}

.note-edu-3 {
  top: 58px;
  left: 760px;
  transform: rotate(-1.7deg);
}

.note-skill-1 {
  top: 398px;
  left: 58px;
  transform: rotate(-3.1deg);
}

.note-skill-2 {
  top: 426px;
  left: 392px;
  transform: rotate(1.4deg);
}

.note-skill-3 {
  top: 386px;
  left: 734px;
  transform: rotate(-2.1deg);
}

.note-skill-4 {
  top: 648px;
  left: 390px;
  transform: rotate(-1.3deg);
}

.projects-board {
  width: min(1150px, 100%);
  margin: 4.8rem auto 0;
}

.projects-header {
  text-align: center;
  margin-bottom: 1rem;
}

.projects-surface {
  position: relative;
  min-height: 900px;
  border-radius: 12px;
  border: 1px solid rgba(121, 89, 57, 0.45);
  padding: 1.2rem;
  background:
    radial-gradient(circle at 18% 20%, rgba(220, 182, 130, 0.26), transparent 40%),
    radial-gradient(circle at 80% 82%, rgba(179, 138, 93, 0.2), transparent 46%),
    repeating-linear-gradient(
      90deg,
      #3f2b1e 0,
      #3f2b1e 88px,
      #472f21 88px,
      #472f21 96px
    ),
    linear-gradient(140deg, #473123 0%, #362419 56%, #271b14 100%);
  box-shadow: inset 0 0 42px rgba(0, 0, 0, 0.2), 0 14px 30px rgba(0, 0, 0, 0.28);
}

.projects-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(35deg, rgba(255, 255, 255, 0.018) 0, rgba(255, 255, 255, 0.018) 3px, transparent 3px, transparent 8px);
  pointer-events: none;
}

.projects-doe {
  position: absolute;
  right: 30px;
  top: 58px;
  width: 112px;
  height: auto;
  opacity: 0.58;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.25));
  pointer-events: none;
}

.fairy-wire {
  position: absolute;
  background: linear-gradient(90deg, rgba(32, 25, 21, 0.9), rgba(59, 44, 35, 0.95));
  box-shadow: 0 1px 0 rgba(255, 230, 171, 0.12);
  z-index: 2;
}

.fairy-wire-top {
  left: 40px;
  right: 40px;
  top: 44px;
  height: 2px;
}

.fairy-wire-bottom {
  left: 40px;
  right: 40px;
  bottom: 28px;
  height: 2px;
}

.fairy-wire-left {
  left: 28px;
  top: 58px;
  bottom: 42px;
  width: 2px;
  background: linear-gradient(180deg, rgba(32, 25, 21, 0.9), rgba(59, 44, 35, 0.95));
}

.fairy-wire-right {
  right: 28px;
  top: 58px;
  bottom: 42px;
  width: 2px;
  background: linear-gradient(180deg, rgba(32, 25, 21, 0.9), rgba(59, 44, 35, 0.95));
}

.fairy-light {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff8e6 0%, #ffd57f 38%, #c38e3f 100%);
  box-shadow: 0 0 0 1px rgba(68, 43, 22, 0.4), 0 0 12px rgba(255, 205, 105, 0.36);
  z-index: 2;
  transition: box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.9;
}

.fairy-light::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 1px;
  height: 9px;
  transform: translateX(-50%);
  background: rgba(44, 31, 24, 0.9);
}

.light-1 { top: 38px; left: 82px; }
.light-2 { top: 44px; left: 230px; }
.light-3 { top: 40px; left: 390px; }
.light-4 { top: 46px; left: 548px; }
.light-5 { top: 39px; left: 704px; }
.light-6 { top: 45px; left: 856px; }
.light-7 { top: 41px; left: 1008px; }
.light-8 { top: 47px; left: 1116px; }
.light-9 { top: 190px; right: 24px; }
.light-10 { top: 338px; right: 24px; }
.light-11 { top: 488px; right: 24px; }
.light-12 { top: 636px; right: 24px; }
.light-13 { bottom: 22px; left: 196px; }
.light-14 { bottom: 22px; left: 452px; }
.light-15 { bottom: 22px; left: 734px; }
.light-16 { top: 658px; left: 22px; }

.proj-string {
  position: absolute;
  height: 2.5px;
  background: linear-gradient(90deg, #a01425 0%, #d52a3f 45%, #95101f 100%);
  box-shadow: 0 0 0 1px rgba(255, 134, 134, 0.14), 0 1px 2px rgba(0, 0, 0, 0.25);
  transform-origin: left center;
  z-index: 1;
}

.proj-string::before,
.proj-string::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle at 30% 30%, #ffedf0 0%, #d6dfe8 40%, #8d98a6 100%);
}

.proj-string::before { left: -3px; }
.proj-string::after { right: -3px; }

.proj-string-a {
  width: 284px;
  top: 256px;
  left: 328px;
  transform: rotate(-8deg);
}

.proj-string-b {
  width: 258px;
  top: 390px;
  left: 592px;
  transform: rotate(12deg);
}

.proj-string-c {
  width: 266px;
  top: 594px;
  left: 328px;
  transform: rotate(8deg);
}

.proj-string-d {
  width: 446px;
  top: 650px;
  left: 614px;
  transform: rotate(-40deg);
}

.proj-string-e {
  width: 384px;
  top: 228px;
  left: 156px;
  transform: rotate(43deg);
}

.project-card {
  position: absolute;
  width: 300px;
  min-height: 286px;
  padding: 0.85rem 0.8rem 0.9rem;
  border-radius: 4px;
  border: 1px solid rgba(133, 103, 72, 0.34);
  background: #faf4e8;
  color: #2e2017;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
  z-index: 1;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.project-card.media-photo {
  background: #fbf8ef;
}

.project-card.media-photo::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
  width: 64px;
  height: 18px;
  background: rgba(255, 228, 150, 0.8);
}

.project-card.media-note {
  background:
    repeating-linear-gradient(
      to bottom,
      #fff2bf 0,
      #fff2bf 26px,
      rgba(165, 131, 74, 0.12) 26px,
      rgba(165, 131, 74, 0.12) 27px
    );
  clip-path: polygon(0 0, 98% 1%, 100% 94%, 95% 100%, 3% 98%, 0 95%);
}

.project-card.media-clipping {
  background:
    linear-gradient(180deg, #f0efe8 0%, #e2dfd4 100%);
  filter: grayscale(0.25);
}

.project-card.media-clipping p {
  column-count: 1;
}

.project-card:hover {
  transform: translateY(-8px) rotate(var(--card-tilt, 0deg));
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.26);
}

.project-card-1:hover ~ .fairy-light.light-2,
.project-card-1:hover ~ .fairy-light.light-3,
.project-card-1:hover ~ .fairy-light.light-16,
.project-card-2:hover ~ .fairy-light.light-4,
.project-card-2:hover ~ .fairy-light.light-5,
.project-card-2:hover ~ .fairy-light.light-10,
.project-card-3:hover ~ .fairy-light.light-6,
.project-card-3:hover ~ .fairy-light.light-7,
.project-card-3:hover ~ .fairy-light.light-11,
.project-card-4:hover ~ .fairy-light.light-3,
.project-card-4:hover ~ .fairy-light.light-4,
.project-card-4:hover ~ .fairy-light.light-14,
.project-card-4:hover ~ .fairy-light.light-15 {
  transform: scale(1.15);
  box-shadow: 0 0 0 1px rgba(68, 43, 22, 0.35), 0 0 22px rgba(255, 218, 128, 0.95), 0 0 42px rgba(255, 190, 80, 0.48);
  opacity: 1;
}

.project-card h2 {
  font-size: 1.34rem;
  line-height: 1.15;
  margin-top: 0.28rem;
}

.project-card h2 span {
  color: #6b4b31;
}

.project-card p {
  margin-top: 0.4rem;
  font-size: 1rem;
  line-height: 1.3;
}

.project-thumb {
  display: inline-block;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 227, 139, 0.75);
  color: #5d4327;
  font-size: 0.95rem;
  border: 1px solid rgba(124, 93, 61, 0.2);
}

.project-clip {
  position: absolute;
  top: -10px;
  right: 14px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f5f9ff 0%, #ccd5de 40%, #8a95a3 100%);
}

.project-tags {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.project-tags span {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  background: #ffe37f;
  border: 1px dashed rgba(117, 88, 52, 0.34);
  color: #5d4327;
  font-size: 0.9rem;
  border-radius: 4px;
}

.project-card-1 {
  --card-tilt: -3deg;
  top: 94px;
  left: 46px;
  transform: rotate(-3deg);
}

.project-card-2 {
  --card-tilt: 2deg;
  top: 172px;
  left: 412px;
  transform: rotate(2deg);
}

.project-card-3 {
  --card-tilt: -2.2deg;
  top: 112px;
  left: 782px;
  transform: rotate(-2.2deg);
}

.project-card-4 {
  --card-tilt: 1.5deg;
  top: 530px;
  left: 392px;
  width: 344px;
  transform: rotate(1.5deg);
}

.contact-note {
  width: min(940px, 100%);
  margin: 4.8rem auto 0;
}

.notebook-tabs {
  position: sticky;
  top: 0.75rem;
  z-index: 35;
  width: min(1150px, 100%);
  margin: 0 auto 1.1rem;
  padding: 0.5rem 0.55rem 0.42rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.52rem;
  border: 1px solid rgba(128, 98, 69, 0.38);
  background:
    repeating-linear-gradient(
      12deg,
      rgba(255, 255, 255, 0.14) 0,
      rgba(255, 255, 255, 0.14) 5px,
      transparent 5px,
      transparent 13px
    ),
    linear-gradient(180deg, rgba(245, 232, 204, 0.95) 0%, rgba(228, 208, 170, 0.92) 100%);
  box-shadow: 0 8px 20px rgba(20, 14, 10, 0.24), inset 0 1px 0 rgba(255, 245, 224, 0.6);
  backdrop-filter: blur(2px);
  border-radius: 10px;
}

.notebook-tabs::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  background: rgba(89, 58, 33, 0.2);
}

.notebook-tab {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: #402d1f;
  font-family: 'Special Elite', cursive;
  font-size: 0.88rem;
  line-height: 1;
  letter-spacing: 0.02em;
  padding: 0.55rem 0.76rem 0.48rem;
  border: 1px solid rgba(121, 86, 49, 0.36);
  border-radius: 8px 8px 4px 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 35%),
    linear-gradient(180deg, #fbe7ba 0%, #dfbf84 100%);
  box-shadow: 0 2px 0 rgba(90, 58, 27, 0.24);
  transform: rotate(var(--tab-tilt, 0deg));
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.notebook-tab::before {
  content: "";
  position: absolute;
  top: 5px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff5f0 0%, #d9c8b4 45%, #92806b 100%);
  opacity: 0.85;
}

.notebook-tab:nth-child(1) { --tab-tilt: -2deg; }
.notebook-tab:nth-child(2) { --tab-tilt: -0.8deg; }
.notebook-tab:nth-child(3) { --tab-tilt: 1.2deg; }
.notebook-tab:nth-child(4) { --tab-tilt: -1.2deg; }
.notebook-tab:nth-child(5) { --tab-tilt: 1.8deg; }

.notebook-tab:hover {
  transform: translateY(-3px) rotate(var(--tab-tilt, 0deg));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.04) 35%),
    linear-gradient(180deg, #fef0cd 0%, #ebd4a0 100%);
  box-shadow: 0 4px 0 rgba(90, 58, 27, 0.3);
}

.notebook-tab.is-active {
  color: #2f2015;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.08) 38%),
    linear-gradient(180deg, #ffeeb6 0%, #efcf88 100%);
  box-shadow: 0 4px 0 rgba(90, 58, 27, 0.32), 0 0 0 1px rgba(178, 126, 56, 0.35);
}

#about,
#experience,
#education,
#projects,
#contact {
  scroll-margin-top: 5.8rem;
}

.contact-header {
  text-align: center;
  margin-bottom: 1.1rem;
}

.contact-paper-wrap {
  position: relative;
  padding: 2rem 1.35rem 1.25rem;
  border: 1px solid rgba(140, 103, 67, 0.38);
  background:
    repeating-linear-gradient(
      to bottom,
      #f9f2dc 0,
      #f9f2dc 34px,
      rgba(177, 197, 224, 0.45) 34px,
      rgba(177, 197, 224, 0.45) 35px
    ),
    linear-gradient(180deg, #fdf7e8 0%, #f2e7cc 100%);
  clip-path: polygon(0 0, 100% 0, 100% 94%, 97% 96%, 94% 95%, 90% 97%, 85% 95%, 80% 98%, 74% 95%, 67% 97%, 60% 95%, 55% 97%, 49% 95%, 43% 98%, 35% 95%, 27% 97%, 18% 95%, 11% 97%, 4% 95%, 0 96%);
  box-shadow: 0 12px 22px rgba(40, 28, 16, 0.18);
}

.paper-tape {
  position: absolute;
  top: -12px;
  width: 74px;
  height: 22px;
  background: rgba(255, 220, 150, 0.78);
  border: 1px solid rgba(190, 148, 90, 0.32);
}

.paper-tape-left {
  left: 22%;
  transform: rotate(-7deg);
}

.paper-tape-right {
  right: 20%;
  transform: rotate(6deg);
}

.contact-form {
  display: grid;
  gap: 0.45rem;
}

.contact-form label {
  font-family: 'Special Elite', cursive;
  color: #4f3a27;
  font-size: 1.05rem;
  margin-top: 0.2rem;
}

.contact-form input,
.contact-form textarea {
  border: 0;
  border-bottom: 2px solid rgba(109, 85, 61, 0.45);
  background: transparent;
  color: #2f2218;
  font-family: 'Caveat', cursive;
  font-size: 1.55rem;
  line-height: 1.2;
  padding: 0.16rem 0.1rem 0.22rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: #3f77bb;
}

.contact-submit-row {
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.send-note-btn {
  border: 1px solid rgba(125, 88, 41, 0.42);
  background: linear-gradient(180deg, #ffe79a 0%, #efc96e 100%);
  color: #4a341f;
  font-family: 'Special Elite', cursive;
  font-size: 1rem;
  padding: 0.5rem 0.95rem;
  border-radius: 3px;
  cursor: pointer;
  box-shadow: 2px 3px 0 rgba(72, 45, 19, 0.22);
}

.send-note-btn:hover {
  transform: translateY(-1px);
}

.send-note-btn:active {
  transform: translateY(1px);
  box-shadow: 1px 1px 0 rgba(72, 45, 19, 0.22);
}

.contact-feedback {
  color: #6c4a2d;
  font-size: 0.95rem;
  min-height: 1.1rem;
}

.contact-butterfly {
  position: absolute;
  width: 42px;
  bottom: 20px;
  left: 142px;
  opacity: 0;
  transform: translate(0, 0) scale(0.82) rotate(-3deg);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
  pointer-events: none;
}

.contact-butterfly.fly {
  animation: contactButterflyFly 1.35s ease-out forwards;
}

@keyframes contactButterflyFly {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.82) rotate(-5deg);
  }
  12% {
    opacity: 1;
  }
  45% {
    transform: translate(170px, -58px) scale(0.94) rotate(7deg);
  }
  100% {
    opacity: 0;
    transform: translate(400px, -128px) scale(0.75) rotate(16deg);
  }
}

.sticker-badges {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.95rem;
  flex-wrap: wrap;
}

.sticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  color: #2d2118;
  border: 1px dashed rgba(84, 62, 41, 0.42);
  box-shadow: 0 6px 9px rgba(24, 13, 8, 0.18);
  transform: rotate(var(--sticker-tilt, 0deg));
}

.sticker-badge svg {
  width: 18px;
  height: 18px;
}

.sticker-badge span {
  font-family: 'Special Elite', cursive;
  font-size: 0.95rem;
}

.badge-github {
  --sticker-tilt: -4deg;
  background: linear-gradient(180deg, #f0e7d1 0%, #dfd2b2 100%);
}

.badge-linkedin {
  --sticker-tilt: 3deg;
  background: linear-gradient(180deg, #d9ebff 0%, #bed8f1 100%);
}

.sticker-badge:hover {
  transform: translateY(-2px) rotate(var(--sticker-tilt, 0deg));
}

.ending-doe-wrap {
  width: min(1150px, 100%);
  margin: 1rem auto 0;
  display: flex;
  justify-content: flex-end;
  padding-right: 0.5rem;
}

.ending-doe {
  width: 120px;
  height: auto;
  opacity: 0.7;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.22));
}

.left-page-lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, transparent 58px, rgba(231, 126, 126, 0.38) 58px, rgba(231, 126, 126, 0.38) 60px, transparent 60px),
    repeating-linear-gradient(to bottom, transparent 0, transparent 31px, rgba(196, 213, 236, 0.62) 31px, rgba(196, 213, 236, 0.62) 32px);
  pointer-events: none;
  opacity: 0.58;
}

.journal-polaroid-wrap {
  position: relative;
  width: 270px;
  margin: 1.8rem auto 1.4rem;
  filter: drop-shadow(0 7px 14px rgba(30, 18, 8, 0.25));
}

.journal-tape {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
  width: 78px;
  height: 24px;
  background: linear-gradient(135deg, #ffe8a8 0%, #ffd991 100%);
  z-index: 2;
  border-radius: 1px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  opacity: 0.88;
}

.journal-polaroid {
  position: relative;
  z-index: 1;
  background: #fbf8f1;
  border: 2px solid #ddc9a8;
  padding: 16px 16px 52px;
  transform: rotate(-2.8deg);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6), 0 4px 8px rgba(0, 0, 0, 0.12);
}

.journal-photo-area {
  height: 230px;
  border: 2px solid #cfc5b4;
  background: linear-gradient(165deg, #a8bfc8 0%, #798999 100%);
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.journal-photo-placeholder {
  color: #fff8e8;
  font-size: 1.32rem;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.journal-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.journal-photo-caption {
  margin-top: 11px;
  text-align: center;
  color: #4c3b2a;
  font-size: 1.08rem;
  line-height: 1.25;
}

.trait-line {
  position: relative;
  z-index: 1;
  margin: 0.85rem auto 0;
  max-width: 88%;
  padding: 0.48rem 0.65rem;
  color: #3a2f1f;
  font-size: 1.1rem;
  line-height: 1.4;
  text-align: center;
  background: rgba(255, 252, 235, 0.82);
  border: 1px solid rgba(120, 90, 60, 0.22);
  border-radius: 1px;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

.margin-note {
  display: block;
  font-size: 0.95rem;
  color: #5a4a3a;
  font-style: italic;
  margin-top: 0.3rem;
  padding-top: 0.3rem;
  border-top: 1px solid rgba(100, 80, 60, 0.2);
}

.trait-tags {
  position: relative;
  z-index: 1;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.58rem;
  margin-top: 0.35rem;
}

.trait-tags li {
  padding: 0.32rem 0.75rem;
  border-radius: 6px;
  border: 1px dashed rgba(86, 63, 39, 0.38);
  color: #2e2218;
  font-size: 1.02rem;
  line-height: 1;
}

.trait-tags li:nth-child(1) {
  background: #ffe79b;
}

.trait-tags li:nth-child(2) {
  background: #cde5ff;
}

.trait-tags li:nth-child(3) {
  background: #ffd3cc;
}

.butterfly-doodle {
  position: absolute;
  bottom: 0.85rem;
  left: 0.85rem;
  width: 94px;
  transform: rotate(-11deg);
  opacity: 0.95;
}

.butterfly-doodle-right {
  left: auto;
  right: 0.85rem;
  transform: scaleX(-1) rotate(-9deg);
}

.entry-date {
  color: #68513d;
  font-size: 1.13rem;
  margin-bottom: 0.35rem;
}

.right-page h2 {
  color: #2f2117;
  font-size: 2rem;
  margin-bottom: 0.38rem;
}

.entry-body {
  color: #2f2218;
  font-size: 1.35rem;
  line-height: 1.52;
  padding-right: 0.35rem;
}

.entry-body + .entry-body {
  margin-top: 0.7rem;
}

.hl-yellow {
  background: linear-gradient(transparent 42%, rgba(255, 231, 122, 0.95) 42%);
  padding: 0 0.1rem;
}

.hl-blue {
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-thickness: 3px;
  text-decoration-color: #3d8ed8;
  text-underline-offset: 2px;
}

.hl-red {
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-thickness: 2px;
  text-decoration-color: #cc3f3f;
  text-underline-offset: 2px;
}

.sticky-note {
  width: fit-content;
  max-width: 295px;
  margin-top: 1.1rem;
  padding: 0.6rem 0.78rem;
  background: #f5f0c8;
  color: #4a3f28;
  font-size: 1.16rem;
  border: 1px solid rgba(150, 130, 80, 0.25);
  box-shadow: 2px 4px 0 rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: rotate(-2.2deg);
  line-height: 1.3;
}

.bottom-labels {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.bottom-labels span {
  display: inline-block;
  padding: 0.26rem 0.55rem;
  border-radius: 4px;
  color: #2f2419;
  font-size: 1rem;
  border: 1px solid rgba(93, 71, 52, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.bottom-labels span:nth-child(1) {
  background: #f4dfae;
}

.bottom-labels span:nth-child(2) {
  background: #cfe3ff;
}

.bottom-labels span:nth-child(3) {
  background: #f7cec5;
}

@keyframes journalIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.journal-page {
  animation: journalIn 0.8s ease both;
}

.right-page {
  animation-delay: 0.15s;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  #main-content {
    flex-direction: column;
    gap: 32px;
    padding: 1.5rem;
  }

  .name-line {
    font-size: 28px;
  }

  .polaroid-wrap.drop,
  .polaroid-wrap.settle,
  .polaroid-wrap.rest {
    transform: translateY(0px) rotate(2deg) !important;
  }

  #csq-inner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  #csq-butterfly {
    width: 86px;
  }

  #writing-svg {
    width: 280px;
  }

  #portfolio {
    padding: 2.1rem 0.85rem 2.3rem;
  }

  .journal-spread {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .journal-page {
    min-height: 610px;
    transform: none;
    padding: 1rem 0.95rem 1rem;
  }

  .about-kicker {
    font-size: 1.08rem;
  }

  .about-header h1 {
    font-size: 1.5rem;
  }

  .journal-polaroid-wrap {
    width: min(250px, 100%);
  }

  .scrapbook-row {
    gap: 0.7rem;
  }

  .timeloop-image {
    left: 0.35rem;
    top: 1.7rem;
    width: 140px;
  }

  .journal-photo-area {
    height: 200px;
  }

  .entry-body {
    font-size: 1.17rem;
    line-height: 1.45;
  }

  .sticky-note {
    font-size: 1.02rem;
    max-width: 100%;
  }

  .bottom-labels {
    position: static;
    margin-top: 0.95rem;
  }

  .experience-butterfly {
    width: 80px;
  }

  .experience-butterfly-top {
    top: -0.6rem;
    left: -0.2rem;
  }

  .experience-butterfly-bottom {
    right: -0.3rem;
    bottom: -1rem;
  }

  .board-surface {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding: 0.95rem;
  }

  .board-string {
    display: none;
  }

  .leftover-pin {
    display: none;
  }

  .board-postit {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    width: 100%;
    transform: none;
    margin: 0 0 0.35rem;
  }

  .projects-surface {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.95rem;
    padding: 0.95rem;
  }

  .proj-string {
    display: none;
  }

  .fairy-wire,
  .fairy-light {
    display: none;
  }

  .projects-doe {
    position: relative;
    right: auto;
    top: auto;
    width: 86px;
    justify-self: end;
    margin-right: 0.2rem;
    margin-bottom: 0.2rem;
  }

  .project-card {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    min-height: 0;
    transform: none;
  }

  .project-card-4 {
    width: 100%;
  }

  .notebook-tabs {
    top: 0.4rem;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 0.48rem 0.48rem 0.42rem;
    gap: 0.42rem;
  }

  .notebook-tab {
    font-size: 0.8rem;
    white-space: nowrap;
    padding: 0.48rem 0.65rem 0.44rem;
  }

  .contact-paper-wrap {
    padding: 1.55rem 0.9rem 1rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 1.35rem;
  }

  .contact-submit-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .contact-butterfly {
    left: 108px;
    width: 36px;
  }

  .ending-doe-wrap {
    justify-content: center;
    padding-right: 0;
  }

  .ending-doe {
    width: 96px;
  }

  .evidence-note {
    position: relative;
    width: 100%;
    top: auto;
    left: auto;
    transform: none;
  }

  .evidence-note h2 {
    font-size: 1.18rem;
  }
}