html { scroll-behavior: smooth; }
:root {
  --color-bg: #F4F1E9; /* Warm paper / Washi */
  --color-surface: #EFECE1;
  --color-text: #2A2A28; /* Soft charcoal */
  --color-muted: #6B685F;
  --color-border: #D8D3C7; /* Visible structural lines */
  --color-border-dark: #AFAAA0;
  --color-accent: #932822; /* Classic Japanese Hanko Red, slightly aged */

  --font-body: 'Manrope', sans-serif;
  --font-display: 'Noto Serif JP', serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease-out: cubic-bezier(0.25, 1, 0.35, 1);
  --dur: 800ms;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  border: 12px solid var(--color-bg); /* Outer frame */
  min-height: 100vh;
}

/* Texture overlay for paper feel */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
}

/* Header (Kept mostly as is, but adapted colors) */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  background: rgba(244, 241, 233, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-dark);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-text);
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: 4px;
  transition: background-color 0.4s ease;
}

.logo:hover .logo-mark {
  background: var(--color-accent);
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
}

.logo-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--color-muted);
  text-transform: uppercase;
}

.nav {
  display: none;
  align-items: center;
  gap: 2.5rem;
}
@media (min-width: 900px) { .nav { display: flex; } }

.nav a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.nav a:hover { color: var(--color-accent); }

.lang-switcher {
  display: inline-flex;
  gap: 0.25rem;
}
.lang-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-muted);
  padding: 0.25rem 0.5rem;
  transition: color 0.3s ease;
}
.lang-btn.active {
  color: var(--color-text);
  font-weight: bold;
  border-bottom: 1px solid var(--color-text);
}

/* Editorial Layout Container */
.main-wrapper {
  max-width: 1440px;
  margin: 0 auto;
}

/* Journal Grid Overlay Lines */
.journal-grid-container {
  display: grid;
  grid-template-columns: 1fr;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}
@media (min-width: 900px) {
  .journal-grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
}


.journal-col {
  border-bottom: 1px solid var(--color-border);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
}
@media (min-width: 900px) {
  .journal-col {
    border-right: 1px solid var(--color-border);
    border-bottom: none;
  }
  .journal-col:last-child {
    border-right: none;
  }
}

.journal-meta {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.journal-heading {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.journal-subheading {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2.5rem;
}

.journal-img-ph {
  width: 100%;
  aspect-ratio: 4/5;
  background-color: var(--color-surface);
  margin-bottom: 2rem;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.journal-body {
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text);
  text-align: justify;
}
.journal-body p {
  margin-bottom: 1rem;
}

.read-more {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.3s;
}
.read-more:hover {
  color: var(--color-accent);
}
.hero-editorial {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 1px solid var(--color-border);
}
@media (min-width: 1024px) {
  .hero-editorial { grid-template-columns: 200px 1fr 300px; }
}

/* Left Metadata Column */
.meta-col {
  padding: 2rem;
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.meta-block { margin-bottom: 1.5rem; }
.meta-label { color: var(--color-text); font-weight: bold; margin-bottom: 0.25rem; display: block;}

/* Center Main Title */
.title-col {
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.editorial-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 6.5rem);
  font-weight: 400;
  line-height: 1;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.editorial-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  max-width: 42ch;
  color: var(--color-muted);
  font-weight: 300;
  line-height: 1.8;
}

.hanko-stamp {
  width: 60px;
  height: 60px;
  border: 2px solid var(--color-accent);
  border-radius: 4px;
  color: var(--color-accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  line-height: 1.1;
  font-size: 1.2rem;
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  opacity: 0.85;
  transform: rotate(-3deg);
}

/* Right Detail Column */
.detail-col {
  border-left: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.detail-image-ph {
  flex: 1;
  min-height: 250px;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  color: var(--color-muted);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(216, 211, 199, 0.4) 10px, rgba(216, 211, 199, 0.4) 11px);
}

.detail-text {
  padding: 2rem;
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--color-muted);
}
.detail-text strong {
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  display: block;
  margin-bottom: 0.5rem;
}

/* Services Grid - Botanical Journal Style */
.services-journal {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 1px solid var(--color-border);
}
@media (min-width: 768px) {
  .services-journal { grid-template-columns: repeat(3, 1fr); }
}

.journal-entry {
  padding: 3rem 2rem;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background-color 0.6s ease;
}
@media (min-width: 768px) {
  .journal-entry { border-bottom: none; }
  .journal-entry:last-child { border-right: none; }
}

.journal-entry:hover {
  background-color: #FDFBFC;
}

.entry-num {
  font-family: var(--font-display);
  font-size: 4.5rem;
  color: rgba(42, 42, 40, 0.06);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  line-height: 1;
}

.entry-kanji {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--color-accent);
  margin-bottom: 2rem;
}

.entry-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.entry-desc {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  flex: 1;
}

.entry-list {
  list-style: none;
  border-top: 1px dashed var(--color-border-dark);
  padding-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-muted);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Philosophy Text Block */
.philosophy-block {
  padding: 6rem 2rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.phil-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 2rem;
  display: block;
}

.phil-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.4;
  color: var(--color-text);
}

/* Footer */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 4rem 2rem 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) {
  .footer { grid-template-columns: 1fr 1fr 1fr; }
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.footer-col p, .footer-col a {
  font-size: 0.85rem;
  color: var(--color-muted);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}
.footer-col a:hover { color: var(--color-accent); }

/* Calm Reveal Animation */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
/* Append to existing styles.css */

/* Gallery Index - Encyclopedia Style */
.gallery-index {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.gallery-header {
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(216, 211, 199, 0.1);
}

.gallery-list {
  display: flex;
  flex-direction: column;
  list-style: none;
}

.gallery-item {
  display: flex;
  align-items: center;
  border-bottom: 1px dashed var(--color-border-dark);
  transition: background-color 0.3s ease;
  position: relative;
  text-decoration: none;
  color: var(--color-text);
}

.gallery-item:last-child {
  border-bottom: none;
}

.gallery-item:hover {
  background-color: var(--color-surface);
}

.gi-number {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-muted);
  border-right: 1px solid var(--color-border);
}

.gi-title {
  padding: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  flex: 1;
}

.gi-pattern {
  width: 60px;
  height: 60px;
  border-left: 1px solid var(--color-border);
  background-color: var(--color-surface);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

/* Procedural Japanese Patterns for placeholders */
.pattern-seigaiha {
  background: 
    radial-gradient(circle at 100% 50%, transparent 20%, rgba(147, 40, 34, 0.1) 21%, rgba(147, 40, 34, 0.1) 34%, transparent 35%, transparent),
    radial-gradient(circle at 0% 50%, transparent 20%, rgba(147, 40, 34, 0.1) 21%, rgba(147, 40, 34, 0.1) 34%, transparent 35%, transparent) 0 -25px;
  background-size: 30px 50px;
  width: 100%;
  height: 100%;
}
.pattern-asanoha {
  background-color: var(--color-surface);
  background-image: linear-gradient(30deg, rgba(42,42,40,0.05) 12%, transparent 12.5%, transparent 87%, rgba(42,42,40,0.05) 87.5%, rgba(42,42,40,0.05)), linear-gradient(150deg, rgba(42,42,40,0.05) 12%, transparent 12.5%, transparent 87%, rgba(42,42,40,0.05) 87.5%, rgba(42,42,40,0.05)), linear-gradient(30deg, rgba(42,42,40,0.05) 12%, transparent 12.5%, transparent 87%, rgba(42,42,40,0.05) 87.5%, rgba(42,42,40,0.05)), linear-gradient(150deg, rgba(42,42,40,0.05) 12%, transparent 12.5%, transparent 87%, rgba(42,42,40,0.05) 87.5%, rgba(42,42,40,0.05)), linear-gradient(60deg, rgba(42,42,40,0.05) 25%, transparent 25.5%, transparent 75%, rgba(42,42,40,0.05) 75%, rgba(42,42,40,0.05)), linear-gradient(60deg, rgba(42,42,40,0.05) 25%, transparent 25.5%, transparent 75%, rgba(42,42,40,0.05) 75%, rgba(42,42,40,0.05));
  background-size: 40px 70px;
  background-position: 0 0, 0 0, 20px 35px, 20px 35px, 0 0, 20px 35px;
  width: 100%;
  height: 100%;
}
.pattern-ichimatsu {
  background-image: 
    linear-gradient(45deg, rgba(42,42,40,0.05) 25%, transparent 25%, transparent 75%, rgba(42,42,40,0.05) 75%, rgba(42,42,40,0.05)),
    linear-gradient(45deg, rgba(42,42,40,0.05) 25%, transparent 25%, transparent 75%, rgba(42,42,40,0.05) 75%, rgba(42,42,40,0.05));
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  width: 100%;
  height: 100%;
}

.gi-arrow {
  padding: 1.5rem;
  font-family: var(--font-mono);
  color: var(--color-accent);
}


/* Custom form elements for letter */
.letter-form-row {
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}

.letter-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  padding: 0.2rem 0.5rem;
  outline: none;
  flex: 1;
  min-width: 200px;
}
.letter-input::placeholder {
  color: var(--color-muted);
  font-size: 0.85rem;
  opacity: 0.5;
}

.letter-btn {
  /* overridden above */
}
.letter-btn:hover {
  /* overridden above */
}

/* Postal border for letter wrap */
/* Ensure the old definition is removed */









.letter-stamp-top {
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(0,0,0,0.25);
  text-align: center;
  line-height: 1.1;
  transform: rotate(-12deg);
  opacity: 0.8;
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 300;
  cursor: pointer;
  color: var(--color-muted);
  z-index: 10;
  transition: color 0.3s, transform 0.3s;
}
.modal-close-btn:hover {
  color: var(--color-accent);
  transform: scale(1.1);
}

.letter-btn {
  background: #932822; /* Pure Hanko Red */
  color: #fff;
  border: none;
  padding: 1.25rem 2.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  cursor: pointer;
  margin-top: 1rem;
  transition: background-color 0.3s ease, transform 0.2s;
  border-radius: 2px;
}
.letter-btn:hover {
  background: #7a201b;
  transform: translateY(-2px);
}

.letter-dear {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.letter-body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 2.2; /* Matches the background grid lines */
  color: var(--color-text);
  margin-bottom: 3rem;
}

.letter-body a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px dashed var(--color-accent);
}

.letter-signature {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 4rem;
}

.sig-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.sig-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-muted);
  display: block;
  margin-top: 0.5rem;
}

.hanko-large {
  width: 80px;
  height: 80px;
  border: 3px solid var(--color-accent);
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  transform: rotate(-4deg);
  position: relative;
}
.hanko-large::after {
  content: '';
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(147, 40, 34, 0.2);
  border-radius: 8px;
  transform: rotate(8deg);
}
/* Appending Samurai Scroll and Modal Styles */

/* Samurai Scroll Interaction */
.contact-section {
  padding: 6rem 2rem;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-trigger {
  background: var(--color-text);
  color: var(--color-bg);
  padding: 3rem 4rem;
  text-align: center;
  cursor: pointer;
  position: relative;
  border-radius: 2px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s;
  z-index: 10;
  max-width: 650px;
  width: 100%;
}


.scroll-trigger:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.2);
}

.scroll-seal {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: var(--color-bg);
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  border-radius: 50%;
  z-index: 11;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.35, 1);
}



.scroll-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.scroll-hint {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: opacity 0.3s;
}


/* Adjust contact letter wrap for animation */











.contact-letter-wrap.is-open 





.letter-paper {
  padding: 4rem;
  background: #EBE5D9;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");
  box-shadow: 0 10px 30px rgba(0,0,0,0.1), inset 0 0 60px rgba(147, 40, 34, 0.04);
  position: relative;
  scrollbar-width: none; 
}
.letter-paper::-webkit-scrollbar {
  display: none;
}
.letter-paper::before, .letter-paper::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 6px;
  background-size: 12px 100%;
}
.letter-paper::before {
  top: -6px;
  background-image: radial-gradient(circle at 6px 0, transparent 6px, #EBE5D9 7px);
}
.letter-paper::after {
  bottom: -6px;
  background-image: radial-gradient(circle at 6px 6px, transparent 6px, #EBE5D9 7px);
}

/* Letter Modal */


.letter-modal-overlay {
  display: none !important;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.letter-modal-overlay.is-active {
  display: flex !important;
  opacity: 1 !important;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 8, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.letter-modal-overlay .letter-paper {
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  margin: 0;
  animation: slideUp 0.5s ease 0.1s forwards;
  opacity: 0;
  /* Parchment Base */
  background: #F4EAD5; 
  /* Complex texture stacking */
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(139, 107, 72, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(139, 107, 72, 0.08) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.12'/%3E%3C/svg%3E");
  box-shadow: 
    0 20px 50px rgba(0,0,0,0.4), 
    inset 0 0 80px rgba(100, 75, 45, 0.15),
    inset 0 0 15px rgba(0, 0, 0, 0.05);
  border-radius: 2px;
  padding: 4rem;
  position: relative;
  /* Torn edges using CSS mask/clip */
  clip-path: polygon(
    0% 2%, 3% 0%, 7% 3%, 12% 0%, 18% 2%, 24% 0%, 30% 3%, 35% 0%, 41% 2%, 47% 0%, 
    53% 3%, 58% 0%, 64% 2%, 70% 0%, 75% 3%, 81% 0%, 87% 2%, 93% 0%, 97% 3%, 100% 1%, 
    100% 98%, 97% 100%, 93% 97%, 87% 100%, 81% 97%, 75% 100%, 70% 97%, 64% 100%, 58% 97%, 53% 100%, 
    47% 97%, 41% 100%, 35% 97%, 30% 100%, 24% 97%, 18% 100%, 12% 97%, 7% 100%, 3% 97%, 0% 100%
  );
}

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

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text);
  z-index: 10;
  transition: color 0.3s;
}
.modal-close-btn:hover {
  color: var(--color-accent);
}
