:root {
  /* Day mode (default) — warm pastels */
  --cream: #F5EEE1;
  --cream-deep: #EDE2D0;
  --cream-aged: #E8DCC5;
  --peach: #E8A57E;
  --peach-soft: #F2C9AE;
  --sky: #B8CFD9;
  --sky-deep: #7FA3B3;
  --moss: #9CAE8E;
  --butter: #E8CA87;
  --ink: #3A2E26;
  --ink-soft: #6B5A4D;
  --ink-faded: #9C8874;

  --font-serif: 'Fraunces', Georgia, serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --font-hand: 'Caveat', 'Brush Script MT', cursive;
}

/* Evening mode — as if the lamp has been dimmed, the sun has set */
body.evening {
  --cream: #E8D8B8;
  --cream-deep: #DCCAA8;
  --cream-aged: #CFB98E;
  --peach: #C77A4E;
  --peach-soft: #D9A078;
  --sky: #8FA5AE;
  --sky-deep: #5F7C8C;
  --moss: #798970;
  --butter: #C9A35C;
  --ink: #2A1F17;
  --ink-soft: #4D3E30;
  --ink-faded: #7A6851;
}

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

/* Smooth theme transitions */
body, body *:not(.obj) {
  transition: background-color 0.6s ease, color 0.6s ease, border-color 0.6s ease, fill 0.6s ease;
}
.specimen, .postcard, .book, .hero-illustration, .desk-lamp, .hero-stamp {
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s ease, background-color 0.6s ease, color 0.6s ease, border-color 0.6s ease, box-shadow 0.35s ease;
}

html, body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-serif);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  background-color: var(--cream);
}


/* ---------- Top navigation ---------- */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, padding 0.25s ease, border-bottom 0.35s ease;
  background: transparent;
  border-bottom: 0.5px solid transparent;
}
.topnav.scrolled {
  background: rgba(245, 238, 225, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 2.5rem;
  border-bottom: 0.5px solid rgba(58,46,38,0.12);
}
body.evening .topnav.scrolled {
  background: rgba(232, 216, 184, 0.82);
}

/* Brand on the left — peach dot THEN "ashu" */
.topnav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.topnav-brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--peach);
  flex-shrink: 0;
}

/* Nav pills on the right */
.topnav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topnav-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--ink);
  text-decoration: none;
  background: transparent;
  border: 1px solid rgba(228, 140, 100, 0.3);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.topnav-links a:hover {
  background: var(--peach);
  border-color: var(--peach);
  color: #FFFFFF;
}
.topnav-links a .arrow {
  display: inline-block;
  transition: transform 0.25s ease;
  font-size: 11px;
  line-height: 1;
}
.topnav-links a:hover .arrow {
  transform: translate(2px, -2px);
}

@media (max-width: 820px) {
  .topnav { padding: 14px 1.25rem; }
  .topnav.scrolled { padding: 12px 1.25rem; }
  .topnav-links { gap: 6px; }
  .topnav-links a { padding: 5px 12px; font-size: 11px; }
  .topnav-links a[data-hide-mobile] { display: none; }
  .topnav-brand { font-size: 12px; }
}

@media (max-width: 560px) {
  .topnav-links a:not(.topnav-cta-pill) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 3rem;
  z-index: 1;
}

/* Central headline block */
.hero-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 4;
  max-width: 720px;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faded);
  margin-bottom: 1.75rem;
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 0;
}
.hero h1 em {
  font-style: italic;
  color: var(--peach);
  font-weight: 500;
}
/* Lupine illustration — to the left of the center block */
.hero-lupine {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(calc(-50% - 440px), -50%);
  width: 150px;
  height: 264px;
  z-index: 3;
  pointer-events: auto;
}
.hero-lupine img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scaleX(-1) rotate(0deg);
  transform-origin: 50% 100%;
  filter: saturate(1) brightness(1);
  transition: filter 0.5s ease, transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Color bloom — subtle warmth + saturation lift on hover */
.hero-lupine:hover img {
  filter: saturate(1.18) brightness(1.04) sepia(0.08);
  animation: flowerSway 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
/* Single graceful breeze — sways once then settles. Forwards keeps it at final keyframe so exit transition works. */
@keyframes flowerSway {
  0%   { transform: scaleX(-1) rotate(0deg); }
  30%  { transform: scaleX(-1) rotate(-2.5deg); }
  70%  { transform: scaleX(-1) rotate(2deg); }
  100% { transform: scaleX(-1) rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-lupine:hover img { animation: none; }
}

/* ---------- Coffee mug — right side of hero, mid-height ---------- */
.hero-coffee {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(calc(-50% + 420px), calc(-50% + 20px)) rotate(-4deg);
  width: 110px;
  height: 110px;
  z-index: 3;
  pointer-events: auto;
  cursor: default;
}
.hero-coffee img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 4px 6px rgba(58, 46, 38, 0.12));
}
.hero-coffee:hover img {
  transform: translateY(-4px) rotate(2deg);
}

/* Steam wisps — hidden by default, animate in on hover */
.hero-coffee .steam {
  position: absolute;
  bottom: 78%;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 48px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.hero-coffee:hover .steam {
  opacity: 1;
}
.hero-coffee .steam path {
  fill: none;
  stroke: rgba(120, 100, 82, 0.45);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: bottom center;
}
.hero-coffee:hover .steam .wisp-1 {
  animation: steamRise1 2.4s ease-out infinite;
}
.hero-coffee:hover .steam .wisp-2 {
  animation: steamRise2 2.8s ease-out infinite;
  animation-delay: 0.4s;
}
.hero-coffee:hover .steam .wisp-3 {
  animation: steamRise3 2.6s ease-out infinite;
  animation-delay: 0.8s;
}
@keyframes steamRise1 {
  0%   { transform: translate(-4px, 10px) scale(0.8); opacity: 0; }
  30%  { opacity: 0.8; }
  100% { transform: translate(-6px, -20px) scale(1.1); opacity: 0; }
}
@keyframes steamRise2 {
  0%   { transform: translate(4px, 10px) scale(0.7); opacity: 0; }
  30%  { opacity: 0.7; }
  100% { transform: translate(8px, -22px) scale(1.15); opacity: 0; }
}
@keyframes steamRise3 {
  0%   { transform: translate(0px, 10px) scale(0.75); opacity: 0; }
  30%  { opacity: 0.75; }
  100% { transform: translate(-2px, -24px) scale(1.2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-coffee:hover .steam .wisp-1,
  .hero-coffee:hover .steam .wisp-2,
  .hero-coffee:hover .steam .wisp-3 { animation: none; }
}

/* ---------- Scattered hero objects ---------- */

/* Postage stamp — top-left, replaces sticky note */
.hero-stamp {
  position: absolute;
  top: 70px;
  left: 70px;
  width: 100px;
  z-index: 5;
  transform: rotate(-3deg);
  filter: drop-shadow(0 4px 8px rgba(58,46,38,0.18)) drop-shadow(0 1px 2px rgba(58,46,38,0.12));
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
  cursor: default;
}
.hero-stamp img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-stamp:hover {
  transform: rotate(-1deg) translateY(-4px);
  filter: drop-shadow(0 8px 14px rgba(58,46,38,0.22)) drop-shadow(0 1px 2px rgba(58,46,38,0.15));
}

/* Desk lamp — top-right, clickable theme toggle */
.desk-lamp {
  position: absolute;
  top: 40px;
  right: 80px;
  width: 140px;
  height: 180px;
  z-index: 5;
  cursor: pointer;
}
.desk-lamp img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: saturate(0.75) brightness(0.95);
}
.desk-lamp:hover img {
  transform: translateY(-3px);
}
body.evening .desk-lamp img {
  filter: saturate(0.6) brightness(0.7);
}
.lamp-hint {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-soft);
  background: rgba(245, 238, 225, 0.92);
  padding: 5px 10px;
  border-radius: 999px;
  border: 0.5px solid rgba(58,46,38,0.2);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  letter-spacing: 0.04em;
}
body.evening .lamp-hint {
  background: rgba(232, 216, 184, 0.9);
}
.desk-lamp:hover .lamp-hint { opacity: 1; }

/* Light pool from the lamp */
.light-pool {
  position: absolute;
  top: 0;
  right: 0;
  width: 700px;
  height: 700px;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(
    ellipse at 76% 20%,
    rgba(255, 220, 160, 0.4) 0%,
    rgba(255, 210, 150, 0.25) 14%,
    rgba(255, 200, 140, 0.12) 32%,
    rgba(255, 200, 140, 0.04) 52%,
    transparent 72%
  );
  mix-blend-mode: multiply;
  animation: lampBreath 8s ease-in-out infinite;
}
body.evening .light-pool {
  background: radial-gradient(
    ellipse at 76% 20%,
    rgba(255, 180, 100, 0.55) 0%,
    rgba(230, 150, 80, 0.38) 14%,
    rgba(200, 120, 60, 0.2) 32%,
    rgba(180, 100, 50, 0.08) 52%,
    transparent 72%
  );
}
@keyframes lampBreath {
  0%, 100% { opacity: 0.95; }
  50% { opacity: 1; }
}

/* Book shelf — bottom-left cluster */
/* ---------- Spectacles — bottom-right hero ---------- */
.hero-spectacles {
  position: absolute;
  bottom: 90px;
  right: 80px;
  width: 170px;
  z-index: 4;
  transform: rotate(-4deg);
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  filter: drop-shadow(0 6px 10px rgba(58, 46, 38, 0.18));
}
.hero-spectacles img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-spectacles:hover {
  transform: rotate(-1deg) translateY(-3px);
}

/* ---------- Bookshelf: illustrated SVG with 4 books + plant ---------- */
.bookshelf {
  position: absolute;
  bottom: 60px;
  left: 60px;
  width: 180px;
  height: 132px;
  z-index: 5;
}
.bookshelf-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.book-spine {
  cursor: pointer;
}
.book-spine .book-body {
  transition: transform 0.4s cubic-bezier(0.34, 1.35, 0.64, 1);
  transform-origin: center bottom;
}
.book-spine:hover .book-body {
  transform: translateY(-10px) rotate(-2deg);
  filter: url(#bookShadow) drop-shadow(0 6px 6px rgba(58,46,38,0.25));
}

/* Book tooltip (re-used style from old books) */
.book-tip {
  position: absolute;
  width: 120px;
  padding: 11px 12px 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.35, 0.64, 1);
  z-index: 20;
  transform: translateY(4px) rotate(var(--tip-rot, -1deg));
  font-family: var(--font-serif);
  text-align: center;
  /* Drop shadow lives on the container; paper fills the ::before layer */
  filter: drop-shadow(0 2px 5px rgba(58, 46, 38, 0.12));
}
.book-tip::before {
  /* This pseudo-element IS the paper — it gets the torn-edge filter, not the text */
  content: "";
  position: absolute;
  inset: 0;
  background: #FBF4E3;
  filter: url(#paperEdge);
  z-index: -1;
}
.book-tip.is-visible {
  opacity: 1;
  transform: translateY(0) rotate(var(--tip-rot, -1deg));
}
.book-tip .tip-title {
  display: block;
  position: relative;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.005em;
}

/* ---------- Section spacing ---------- */
.section {
  padding: clamp(5rem, 10vh, 8rem) 3rem;
  scroll-margin-top: 80px; /* offset for fixed top nav on anchor jumps */
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: 3rem;
  position: relative;
}
.section-number {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faded);
}
.section-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section-title em {
  color: var(--peach);
}
.section-subtitle {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--ink-soft);
  margin-left: auto;
  max-width: 320px;
  text-align: right;
  line-height: 1.5;
}

/* ---------- Work section: clean card grid ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.work-card {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 2rem;
  align-items: stretch;                  /* image stretches to match text column height */
  background: #FBF6EC;
  border: 0.5px solid rgba(58,46,38,0.12);
  border-radius: 18px;
  padding: 2rem 2.25rem;
  cursor: pointer;
  position: relative;
  min-height: 240px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.3s ease;
}
.work-card:hover {
  border-color: rgba(58,46,38,0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(58,46,38,0.08);
}

.work-card-image {
  /* no aspect-ratio — image stretches to row height (matches text content) */
  background: var(--cream-aged);
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  border: 0.5px solid rgba(58,46,38,0.1);
  min-height: 180px;
}
.work-card-image .placeholder-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-faded);
  letter-spacing: 0.1em;
  text-align: center;
  padding: 1rem;
}

.work-card-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.work-card-title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.work-card-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faded);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 0.5px solid rgba(58,46,38,0.15);
}
.work-card-desc {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}
.work-card-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
.work-card-link svg {
  width: 14px;
  height: 14px;
  stroke: var(--ink-soft);
  stroke-width: 1.6;
  fill: none;
}
.work-card:hover .work-card-link { color: var(--peach); }
.work-card:hover .work-card-link svg { stroke: var(--peach); }

/* Section header — match the reference's tone */
.work-section-header {
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding-left: 0.5rem;
}
.work-section-header h2 {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.work-section-header .asterisk {
  color: var(--peach);
  font-weight: 400;
}

@media (max-width: 860px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-card { padding: 1.5rem; gap: 1.25rem; }
}

@media (max-width: 560px) {
  .work-card {
    grid-template-columns: 1fr;
    padding: 1.25rem;
    gap: 1rem;
    min-height: 0;
  }
  .work-card-image {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
  .work-card-title { font-size: 17px; }
  .work-card-desc { font-size: 12px; }
}

/* ---------- Playground: open folder with pocket ---------- */
.playground-folder-wrap {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 2rem auto 3rem;
  height: 600px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 1rem 2rem;
}

.pg-hover-zone {
  position: relative;
  width: 540px;
  height: 520px;
  cursor: pointer;
}

/* ==== Back panel — stays flat, z=1 (the base of the folder) ==== */
.pg-back-panel {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 510px;
  height: 320px;
  background: #D4C7A6;
  border-radius: 5px 5px 4px 4px;
  box-shadow:
    inset 0 3px 6px rgba(58,46,38,0.22),
    0 1px 3px rgba(58,46,38,0.12);
  z-index: 1;
}

/* ==== Polaroids — sit INSIDE the pocket, between back panel (z=1) and front panel (z=5) ==== */
.pg-polaroid {
  position: absolute;
  width: 122px;
  padding: 8px 8px 26px;
  background: #FDFBF4;
  box-shadow:
    0 2px 4px rgba(58,46,38,0.1),
    0 4px 12px rgba(58,46,38,0.18);
  z-index: 3;
  cursor: pointer;
  transition: transform 0.55s cubic-bezier(0.34, 1.36, 0.64, 1),
              box-shadow 0.4s ease;
}
.pg-polaroid .pol-img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--cream-aged);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-faded);
  letter-spacing: 0.08em;
  overflow: hidden;
}
.pg-polaroid .pol-caption {
  position: absolute;
  bottom: 7px;
  left: 8px;
  right: 8px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

/* Resting position: polaroids are tucked inside, bottoms hidden by front panel */
/* Their top edges peek out above the front panel's top edge */
.pg-polaroid.pol-1 {
  bottom: 260px;
  left: 55px;
  transform: rotate(-10deg);
}
.pg-polaroid.pol-2 {
  bottom: 280px;
  left: 170px;
  transform: rotate(-3deg);
}
.pg-polaroid.pol-3 {
  bottom: 280px;
  right: 170px;
  transform: rotate(3deg);
}
.pg-polaroid.pol-4 {
  bottom: 260px;
  right: 55px;
  transform: rotate(10deg);
}

/* Hover: polaroids rise up and fan out. Bottoms stay hidden by front panel = physical folder feel */
.pg-hover-zone:hover .pg-polaroid.pol-1 {
  transform: translateY(-50px) translateX(-30px) rotate(-18deg);
}
.pg-hover-zone:hover .pg-polaroid.pol-2 {
  transform: translateY(-65px) translateX(-10px) rotate(-7deg);
}
.pg-hover-zone:hover .pg-polaroid.pol-3 {
  transform: translateY(-65px) translateX(10px) rotate(7deg);
}
.pg-hover-zone:hover .pg-polaroid.pol-4 {
  transform: translateY(-50px) translateX(30px) rotate(18deg);
}

/* Individual polaroid hover: scale up and lift highest */
.pg-polaroid:hover {
  z-index: 50 !important;
}
.pg-hover-zone:hover .pg-polaroid.pol-1:hover {
  transform: translateY(-70px) translateX(-30px) rotate(-18deg) scale(1.08);
}
.pg-hover-zone:hover .pg-polaroid.pol-2:hover {
  transform: translateY(-85px) translateX(-10px) rotate(-7deg) scale(1.08);
}
.pg-hover-zone:hover .pg-polaroid.pol-3:hover {
  transform: translateY(-85px) translateX(10px) rotate(7deg) scale(1.08);
}
.pg-hover-zone:hover .pg-polaroid.pol-4:hover {
  transform: translateY(-70px) translateX(30px) rotate(18deg) scale(1.08);
}

/* ==== Front panel — z=5, covers bottom portion of polaroids (the pocket) ==== */
.pg-front-panel {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform-origin: bottom center;
  transform: translateX(-50%) perspective(900px) rotateX(-3deg);
  width: 540px;
  height: 290px;
  background: linear-gradient(to bottom,
    #F8ECD4 0%,
    #F1E5CE 20%,
    #EDDFBF 100%);
  border-radius: 8px 8px 4px 4px;
  box-shadow:
    0 4px 14px rgba(58,46,38,0.2),
    0 1px 0 rgba(255,255,255,0.5) inset;
  z-index: 5;
}

/* Dark gradient overlay on top of front panel — creates the "recede back" feeling */
.pg-front-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(58,46,38,0.2) 0%,
    rgba(58,46,38,0.06) 25%,
    rgba(58,46,38,0) 50%);
  pointer-events: none;
  border-radius: 8px 8px 4px 4px;
}

/* Subtle crease lines near the bottom */
.pg-front-panel::after {
  content: "";
  position: absolute;
  bottom: 22px;
  left: 20px;
  right: 20px;
  height: 1px;
  background: rgba(58,46,38,0.08);
  pointer-events: none;
}

/* Content on the front panel */
.pg-folder-content {
  position: absolute;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 6;
  pointer-events: none;
  width: 80%;
}
.pg-folder-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 42px;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.pg-folder-subtitle {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faded);
  margin-top: 8px;
}

/* Postage stamp — sits on top of front panel */
.pg-stamp {
  position: absolute;
  bottom: 195px;
  left: 70px;
  width: 54px;
  height: 44px;
  background: #FDFBF4;
  padding: 4px;
  z-index: 7;
  pointer-events: none;
  transform: rotate(-4deg);
  box-shadow: 0 2px 4px rgba(58,46,38,0.15);
}
.pg-stamp-inner {
  width: 100%;
  height: 100%;
  border: 0.5px dashed rgba(58,46,38,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pg-stamp-inner svg {
  width: 28px;
  height: 28px;
}

/* Botanical sticker — sits on top of front panel */
.pg-sticker {
  position: absolute;
  bottom: 190px;
  right: 85px;
  width: 54px;
  height: 54px;
  z-index: 7;
  pointer-events: none;
  transform: rotate(8deg);
  filter: drop-shadow(0 2px 4px rgba(58,46,38,0.2));
}
.pg-sticker svg {
  width: 100%;
  height: 100%;
}

/* Hover hint */
.pg-hint {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faded);
  opacity: 0.7;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}
.pg-hover-zone:hover .pg-hint { opacity: 0; }

@media (max-width: 720px) {
  .playground-folder-wrap { height: 460px; max-width: 100%; }
  .pg-hover-zone { width: 100%; height: 400px; max-width: 440px; }
  .pg-back-panel { width: 95%; height: 240px; }
  .pg-front-panel { width: 100%; max-width: 440px; height: 230px; }
  .pg-folder-title { font-size: 32px; }
  .pg-folder-content { bottom: 35px; }
  .pg-stamp { bottom: 160px; left: 40px; width: 44px; height: 36px; }
  .pg-sticker { bottom: 155px; right: 50px; width: 44px; height: 44px; }
  .pg-polaroid { width: 96px; padding: 6px 6px 22px; }
  .pg-polaroid.pol-1 { bottom: 195px; left: 20px; }
  .pg-polaroid.pol-2 { bottom: 210px; left: 115px; }
  .pg-polaroid.pol-3 { bottom: 210px; right: 115px; }
  .pg-polaroid.pol-4 { bottom: 195px; right: 20px; }
}

/* ---------- Footer ---------- */
.footer {
  padding: 4rem 3rem 3rem;
  text-align: center;
  border-top: 0.5px dashed rgba(58,46,38,0.2);
  margin-top: 4rem;
}
.footer-line {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.footer-email {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 0.5px solid var(--peach);
  padding-bottom: 2px;
}
.footer-email:hover { color: var(--peach); }
.footer-contact-row {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 16px;
}
.footer-credits {
  margin-top: 4rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-faded);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 1.5rem; min-height: auto; padding-top: 4rem; padding-bottom: 4rem; }
  .hero-center { position: relative; top: auto; left: auto; transform: none; margin: 2rem auto; max-width: 100%; }
  .hero-lupine { position: relative; transform: none; margin: 0 auto 1.5rem; left: auto; top: auto; }
  .hero-stamp, .desk-lamp, .book-cluster {
    position: relative;
    top: auto; left: auto; right: auto; bottom: auto;
    margin: 1rem auto;
    transform: none !important;
  }
  .book-cluster { justify-content: center; }
  .section { padding: clamp(3rem, 6vh, 4rem) 1.5rem; }
  .section-header { flex-direction: column; gap: 0.5rem; }
  .section-subtitle { text-align: left; margin-left: 0; max-width: 100%; }
  .postcard { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .light-pool { animation: none; }
}
