:root {
  --paper: #F4EBE1;
  --paper-aged: #E7D9C6;
  --paper-shade: #D8C7B0;
  --burgundy: #5C1D24;
  --oxblood: #4A151B;
  --charcoal: #1C1917;
  --olive: #5E6B52;
  --ink-muted: #5C554E;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Instrument Sans', -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  background: #141110;
  color: var(--charcoal);
  font-family: var(--sans);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body.locked {
  overflow: hidden;
  height: 100svh;
}

/* STAGE 1: FULLSCREEN ASCII BOUQUET */
.ascii-stage {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100svh;
  min-height: 600px;
  margin: 0 auto;
  background: #141110;
  overflow: hidden;
  cursor: pointer;
}

#view {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #141110;
}

.unwrap-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(30px, env(safe-area-inset-bottom, 30px));
  display: flex;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.unwrap-bar.ready {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.unwrap-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid rgba(244, 235, 225, 0.35);
  background: rgba(28, 25, 23, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.unwrap-btn:active {
  transform: scale(0.95);
  background: var(--burgundy);
  border-color: var(--paper);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #E87A86;
  box-shadow: 0 0 10px #E87A86;
  animation: dotPulse 1.8s infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(0.8); opacity: 0.45; }
  50% { transform: scale(1.3); opacity: 1; }
}

/* STAGE 2: UNWRAPPED ARCHIVE */
/* STAGE 2: UNWRAPPED ARCHIVE */
.archive-sheet {
  max-width: 480px;
  margin: 0 auto;
  background-color: #F4EBE1;
  color: #1C1917;
  position: relative;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.65);
  height: 0;
  overflow: hidden;
  opacity: 0;
}

.archive-sheet.unwrapped {
  height: auto;
  overflow: visible;
  opacity: 1;
  transition: opacity 0.45s ease;
}

.section {
  padding: 48px 22px;
  position: relative;
}



.section {
  padding: 48px 22px;
  border-bottom: 1px solid rgba(28, 25, 23, 0.14);
}

.mono-tag {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 6px;
}

.sec-heading {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.15;
color: var(--burgundy);
margin-bottom: 8px;
}

.sec-sub {
  font-size: 14px;
  font-weight: 300;
  color: var(--ink-muted);
  margin-top: 6px;
}

/* ACT I: THE BOUQUET */
.specimen-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 14px;
}

.specimen-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.specimen-item:active { transform: scale(0.95); }

.specimen-circle {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  border: 1px solid var(--olive);
  background: rgba(255, 255, 255, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 10px;
  overflow: hidden;
  padding: 20px;
  box-shadow: inset 0 0 22px rgba(94, 107, 82, 0.08);
}

.specimen-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: contrast(1.04) drop-shadow(0 4px 10px rgba(28, 25, 23, 0.12));
  transition: transform 0.35s ease;
}

.specimen-item:active .specimen-circle img { transform: scale(1.06); }

.specimen-num {
  position: absolute;
  top: 9px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--olive);
  letter-spacing: 0.14em;
  background: rgba(244, 235, 225, 0.85);
  padding: 1px 6px;
  border-radius: 999px;
  z-index: 2;
}

.specimen-title { font-size: 15px; font-weight: 500; color: var(--charcoal); }
.specimen-role {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-top: 3px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 17, 16, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open { opacity: 1; pointer-events: auto; }

.modal-card {
  width: 100%;
  max-width: 380px;
  background: var(--paper);
  border: 1px solid var(--burgundy);
  padding: 28px 24px;
  position: relative;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
}

.modal-backdrop.open .modal-card { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: 1px solid rgba(28, 25, 23, 0.2);
  font-family: var(--mono);
  font-size: 9.5px;
  padding: 4px 9px;
  color: var(--charcoal);
  cursor: pointer;
}

.modal-bloom-img { width: 96px; height: 96px; object-fit: contain; display: block; margin: 2px auto 12px; }
.modal-kicker { font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--olive); text-align: center; }
.modal-title { font-size: 24px; font-weight: 500; color: var(--burgundy); margin: 4px 0 14px; text-align: center; }
.modal-body { font-size: 14.5px; font-weight: 300; line-height: 1.68; color: var(--charcoal); white-space: pre-line; }

/* ACT II: THINGS I CAPTURED + 4-SLOT CYANOTYPE FLEX COLUMN */
.captured-spread {
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.04) 0%, transparent 55%),
    linear-gradient(165deg, #621F27 0%, var(--burgundy) 52%, #47141A 100%);
  color: var(--paper);
  padding: 44px 18px;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 14px;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

.captured-side {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 4px;
  min-width: 0;
}

.captured-side .mono-tag { color: rgba(244, 235, 225, 0.78); }
.captured-side-title {
  font-size: 25px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-top: 6px;
}

.captured-side-sub {
  font-size: 13px;
  font-weight: 300;
  color: rgba(244, 235, 225, 0.85);
  margin-top: 8px;
  line-height: 1.48;
}

/* 4 slot bunga flex: otomatis mengikuti tinggi kolom & tidak pernah bertumpuk */
.cyanotype-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  pointer-events: none;
  user-select: none;
}

.cyanotype-slot {
  width: 100%;
  max-width: 126px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.4s ease;
}

.cyanotype-slot:nth-child(1) { transform: rotate(-18deg) translate(-12px, -4px) scale(1.12); }
.cyanotype-slot:nth-child(2) { transform: rotate(24deg) translate(16px, 6px) scale(0.95); }
.cyanotype-slot:nth-child(3) { transform: rotate(-11deg) translate(-8px, -2px) scale(1.15); }
.cyanotype-slot:nth-child(4) { transform: rotate(16deg) translate(12px, 8px) scale(0.92); }

.captured-footnote {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 235, 225, 0.72);
  line-height: 1.6;
  padding-bottom: 4px;
}

.photo-strip-panel {
  position: relative;
  z-index: 2;
  background: var(--paper);
  color: var(--charcoal);
  padding: 18px 14px;
  box-shadow: -8px 14px 32px rgba(0, 0, 0, 0.38);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.washi-tape {
  width: 42px;
  height: 10px;
  background: rgba(94, 107, 82, 0.68);
  margin: 0 auto -5px;
  position: relative;
  z-index: 2;
  transform: rotate(-2deg);
}

.strip-card:nth-child(even) .washi-tape { transform: rotate(2.5deg); }

.strip-img-box {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #231819;
  border: 1px solid rgba(28, 25, 23, 0.14);
  overflow: hidden;
}

.strip-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.14) contrast(1.05);
}

.strip-label {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-top: 7px;
}

.strip-desc {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.45;
  color: var(--charcoal);
  margin-top: 2px;
}

/* ACT III: A SMALL NOTE */
.note-section { text-align: center; }
.envelope-box { margin: 26px auto 6px; max-width: 360px; perspective: 1000px; }

.envelope-closed {
  background: linear-gradient(155deg, var(--paper-aged) 0%, var(--paper-shade) 100%);
  border: 1px solid rgba(92, 29, 36, 0.3);
  padding: 52px 20px 40px;
  position: relative;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(28, 25, 23, 0.1);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.envelope-closed.breaking { transform: rotateX(16deg) translateY(10px); opacity: 0; }

.envelope-flap {
  position: absolute;
  top: 0; left: 0; right: 0; height: 76px;
  background: linear-gradient(to bottom, rgba(92, 29, 36, 0.12), transparent);
  clip-path: polygon(0 0, 50% 100%, 100% 0);
}

.wax-seal {
  width: 58px; height: 58px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #7B242E 0%, var(--oxblood) 68%, #2B090D 100%);
  color: var(--paper);
  font-family: var(--script);
  font-size: 32px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 6px 16px rgba(74, 21, 27, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.25);
  border: 2px solid rgba(244, 235, 225, 0.18);
  position: relative; z-index: 2;
}

.envelope-hint { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--burgundy); }

.letter-card {
  display: none;
  text-align: left;
  background: #FAF4ED;
  border: 1px solid rgba(92, 29, 36, 0.36);
  padding: 28px 22px;
  position: relative;
  box-shadow: 0 20px 44px rgba(28, 25, 23, 0.12);
  animation: letterOpen 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.letter-card.open { display: block; }
.letter-card::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(92, 29, 36, 0.18); pointer-events: none; }

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

.letter-to { font-size: 18px; font-weight: 500; color: var(--burgundy); margin-bottom: 14px; }
.letter-text { font-size: 14.5px; font-weight: 300; line-height: 1.72; color: var(--charcoal); white-space: pre-line; }
.letter-sign { font-family: var(--script); font-size: 32px; color: var(--burgundy); margin-top: 20px; text-align: right; }

/* ACT IV: BONUS TRACK & ENDING */
.track-list { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }

.track-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 15px;
  border: 1px solid rgba(28, 25, 23, 0.16);
  background: rgba(255, 255, 255, 0.34);
  text-decoration: none;
  color: var(--charcoal);
  transition: border-color 0.25s ease, transform 0.2s ease;
}

.track-link:active { transform: scale(0.98); border-color: var(--burgundy); }
.track-info { display: flex; flex-direction: column; }
.track-num { font-family: var(--mono); font-size: 10px; color: var(--olive); }
.track-title { font-size: 15px; font-weight: 500; }
.track-artist { font-size: 12px; font-weight: 300; color: var(--ink-muted); margin-top: 2px; }

.play-badge {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--burgundy);
  border: 1px solid rgba(92, 29, 36, 0.3);
  padding: 4px 9px;
  border-radius: 999px;
}
.playlist-cta {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--burgundy);
  color: var(--paper);
  text-decoration: none;
  border: 1px solid var(--burgundy);
  box-shadow: 0 10px 24px rgba(92, 29, 36, 0.22);
  transition: transform 0.2s ease, background 0.2s ease;
}

.playlist-cta:active {
  transform: scale(0.98);
  background: var(--oxblood);
}

.playlist-cta-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 235, 225, 0.78);
}

.playlist-cta-title {
  font-size: 14.5px;
  font-weight: 500;
  margin-top: 2px;
}

.playlist-cta-badge {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  border: 1px solid rgba(244, 235, 225, 0.45);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.ending-footer { padding: 40px 22px 56px; text-align: center; }
.ending-line { font-size: 15px; font-style: italic; color: var(--burgundy); }
.ending-stamp { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--olive); margin-top: 8px; }
/* SERAGAMKAN SEMUA FONT BOTANICAL ZINE */
body, p, span, div, a, button {
  font-family: 'Newsreader', Georgia, serif !important;
}

h1, h2, h3,
.sec-heading,
.captured-side-title,
.modal-title {
  font-family: 'IM Fell DW Pica', Georgia, serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
}

.specimen-role,
.strip-label,
.strip-title,
.track-artist,
.sec-sub,
.captured-side-sub,
.envelope-hint {
  font-family: 'Newsreader', Georgia, serif !important;
  font-style: italic !important;
  text-transform: lowercase !important;
  letter-spacing: 0.01em !important;
}

.modal-story {
  text-align: left !important;
}
.captured-side div,
.captured-date,
.mono-tag {
  font-family: 'Newsreader', Georgia, serif !important;
  font-style: italic !important;
  text-transform: lowercase !important;
  letter-spacing: 0.02em !important;
  font-size: 13px !important;
}
.wax-seal,
.wax-seal * {
  font-family: 'IM Fell DW Pica', Georgia, serif !important;
  font-style: italic !important;
}