/* ═══════════════════════════════════════════════════════════
   PORTFOLIO — SHARED STYLESHEET
   Cinematic dark-crimson editorial aesthetic
═══════════════════════════════════════════════════════════ */

:root {
  --black:      #111010;
  --deep:       #1a1212;
  --crimson:    #a01828;
  --wine:       #7a1220;
  --wine-light: #c43050;
  --mist:       #352828;
  --gray:       #6a5e5e;
  --gray-light: #9e9090;
  --off-white:  #ede6de;
  --cream:      #f5ede4;
  --glow:       rgba(160, 24, 40, 0.30);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--black);
  color: var(--off-white);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

/* ── GRAIN OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 9000;
}

/* ── CUSTOM CURSOR ── */
#cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--wine-light);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease, background 0.2s ease;
}
#cursor-ring {
  position: fixed;
  width: 32px; height: 32px;
  border: 1px solid rgba(196, 48, 80, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}
body:has(a:hover) #cursor-ring,
body:has(button:hover) #cursor-ring {
  width: 50px; height: 50px;
  border-color: rgba(196, 48, 80, 0.85);
}

/* ── NAVIGATION ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 60px;
  background: linear-gradient(to bottom, rgba(9,9,9,0.95) 0%, transparent 100%);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--off-white);
  text-decoration: none;
  text-transform: uppercase;
  opacity: 0.9;
}

.nav-links {
  display: flex;
  gap: 48px;
  list-style: none;
}

.nav-links a {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray-light);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--wine-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--off-white); }

.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.nav-menu span {
  display: block;
  width: 22px; height: 1px;
  background: var(--off-white);
  transition: all 0.3s ease;
}
.nav-menu.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-menu.open span:nth-child(2) { opacity: 0; }
.nav-menu.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── FOOTER ── */
footer {
  padding: 40px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.04);
  background: var(--black);
}
.footer-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--gray);
}
.footer-copy {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: rgba(122, 110, 110, 0.5);
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }


/* ════════════════════════════════════════
   HOME — index.html
════════════════════════════════════════ */

.hero-wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 30% 50%, rgba(74,10,20,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 75% 25%, rgba(107,15,26,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 60% 80%, rgba(42,10,15,0.4) 0%, transparent 70%),
    var(--black);
  animation: bgPulse 12s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0%   { opacity: 0.85; }
  100% { opacity: 1; }
}

.hero-line-h {
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(139,26,42,0.15) 30%, rgba(139,26,42,0.15) 70%, transparent);
  transform: translateY(-50%);
}

.hero-line-v {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(139,26,42,0.08) 30%, rgba(139,26,42,0.08) 70%, transparent);
  transform: translateX(-50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  animation: heroFadeIn 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(24px);
}

@keyframes heroFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--wine-light);
  margin-bottom: 32px;
  opacity: 0.9;
}

.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4rem, 10vw, 8.5rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin-bottom: 40px;
}

.hero-name em {
  font-style: italic;
  color: var(--off-white);
  opacity: 0.85;
}

.hero-divider {
  width: 48px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--wine-light), transparent);
  margin: 0 auto 40px;
}

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  color: var(--gray-light);
  letter-spacing: 0.05em;
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 60px;
}

.hero-cta {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--off-white);
  text-decoration: none;
  border: 1px solid rgba(139, 26, 42, 0.45);
  padding: 14px 36px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--wine);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-cta:hover::before { transform: translateX(0); }
.hero-cta span { position: relative; z-index: 1; }

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.35;
  animation: scrollBob 2.5s ease-in-out infinite;
}

@keyframes scrollBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

.hero-scroll span {
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray-light);
}

.hero-scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--wine-light), transparent);
}

/* About Strip */
.about-strip {
  padding: 120px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-label {
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--wine-light);
  margin-bottom: 24px;
}

.about-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 32px;
}

.about-heading em { font-style: italic; color: var(--off-white); }

.about-body {
  font-size: 0.9rem;
  line-height: 2;
  color: var(--gray-light);
  max-width: 460px;
}

.about-body p + p { margin-top: 16px; }

.about-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-stat {
  padding: 28px 0;
  border-top: 1px solid rgba(139,26,42,0.2);
}

.about-stat:last-child { border-bottom: 1px solid rgba(139,26,42,0.2); }

.about-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--wine-light);
  line-height: 1;
  margin-bottom: 8px;
}

.about-stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray-light);
}


/* ════════════════════════════════════════
   WRITINGS — writings.html
════════════════════════════════════════ */

.page-top { padding-top: 100px; }

.writings-header {
  text-align: center;
  padding: 80px 24px 80px;
  position: relative;
}

.writings-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, rgba(139,26,42,0.5), transparent);
}

.writings-label {
  font-size: 0.6rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--wine-light);
  margin-bottom: 20px;
}

.writings-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1;
  letter-spacing: -0.02em;
}

.writings-title em { font-style: italic; }

.writings-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gray-light);
  margin-top: 20px;
}

/* Featured Poem */
.featured-poem {
  margin: 80px auto;
  max-width: 800px;
  padding: 0 40px;
  text-align: center;
}

.featured-tag {
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--wine-light);
  margin-bottom: 32px;
}

.featured-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 40px;
  letter-spacing: 0.02em;
}

.featured-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 2.2;
  color: var(--off-white);
  opacity: 0.8;
}

.featured-text p + p { margin-top: 16px; }

.featured-border-top,
.featured-border-bottom {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(139,26,42,0.35) 30%, rgba(139,26,42,0.35) 70%, transparent);
  margin: 48px 0;
}

/* Poem Grid */
.poems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(139,26,42,0.1);
  margin: 80px 0;
}

a.poem-card {
  text-decoration: none;
  display: block;
  color: inherit;
}

.poem-card {
  background: var(--black);
  padding: 52px 40px;
  cursor: pointer;
  transition: background 0.4s ease;
  position: relative;
  overflow: hidden;
}

.poem-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(107,15,26,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.poem-card:hover { background: var(--deep); }
.poem-card:hover::before { opacity: 1; }

.poem-card-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  color: rgba(139,26,42,0.5);
  letter-spacing: 0.2em;
  margin-bottom: 24px;
  transition: color 0.3s ease;
}

.poem-card:hover .poem-card-num { color: var(--wine-light); }

.poem-card-genre {
  font-size: 0.55rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 16px;
  transition: color 0.3s ease;
}

.poem-card:hover .poem-card-genre { color: var(--gray-light); }

.poem-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--off-white);
  margin-bottom: 20px;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.poem-card:hover .poem-card-title { color: var(--cream); }

.poem-card-excerpt {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--gray);
  margin-bottom: 32px;
  transition: color 0.3s ease;
}

.poem-card:hover .poem-card-excerpt { color: var(--gray-light); }

.poem-card-read {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--wine-light);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: gap 0.3s ease;
}

.poem-card:hover .poem-card-read { gap: 16px; }

.poem-card-read::after {
  content: '→';
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
}

/* Prose List */
.prose-section {
  max-width: 900px;
  margin: 80px auto;
  padding: 0 40px;
}

.prose-section-label {
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--wine-light);
  margin-bottom: 48px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(139,26,42,0.2);
}

.prose-list-item {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
  transition: padding-left 0.3s ease;
}

.prose-list-item:hover { padding-left: 12px; }

.prose-item-year {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  color: rgba(139,26,42,0.6);
  min-width: 56px;
  padding-top: 4px;
  letter-spacing: 0.1em;
}

.prose-item-body { flex: 1; }

.prose-item-type {
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}

.prose-item-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--off-white);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.prose-list-item:hover .prose-item-title { color: var(--cream); }

.prose-item-desc {
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--gray);
}

.prose-item-arrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: rgba(139,26,42,0.3);
  transition: color 0.3s ease, transform 0.3s ease;
  padding-top: 2px;
  align-self: center;
}

.prose-list-item:hover .prose-item-arrow {
  color: var(--wine-light);
  transform: translateX(6px);
}


/* ════════════════════════════════════════
   CONTACT — contact.html
════════════════════════════════════════ */

.contact-wrapper {
  min-height: calc(100vh - 100px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.contact-left {
  padding: 100px 80px;
  background: var(--deep);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.contact-left::before {
  content: '';
  position: absolute;
  top: -20%; right: -20%;
  width: 60%; height: 60%;
  background: radial-gradient(circle, rgba(107,15,26,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.contact-label {
  font-size: 0.6rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--wine-light);
  margin-bottom: 28px;
}

.contact-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 32px;
}

.contact-heading em { font-style: italic; }

.contact-desc {
  font-size: 0.88rem;
  line-height: 2;
  color: var(--gray-light);
  max-width: 360px;
  margin-bottom: 60px;
}

.contact-socials {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-social-item {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.contact-social-item:hover { transform: translateX(6px); }

.contact-social-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--wine-light);
  flex-shrink: 0;
}

.contact-social-platform {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray);
  min-width: 80px;
}

.contact-social-handle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--off-white);
}

.contact-right {
  padding: 100px 80px;
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 48px;
  letter-spacing: 0.02em;
}

.form-group {
  margin-bottom: 36px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.form-group:focus-within label { color: var(--wine-light); }

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 12px 0;
  color: var(--off-white);
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s ease;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus { border-color: rgba(139,26,42,0.6); }

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray);
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
}

.form-line {
  position: absolute;
  bottom: 0; left: 0;
  height: 1px; width: 0;
  background: var(--wine-light);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-group:focus-within .form-line { width: 100%; }

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: transparent;
  border: 1px solid rgba(139,26,42,0.45);
  color: var(--off-white);
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  padding: 16px 40px;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  margin-top: 12px;
}

.form-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--wine);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-submit:hover::before { transform: translateX(0); }
.form-submit span { position: relative; z-index: 1; }

.form-submit-arrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.form-submit:hover .form-submit-arrow { transform: translateX(4px); }

.contact-email-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 40px 80px;
  border-top: 1px solid rgba(139,26,42,0.12);
  background: var(--black);
}

.contact-email-bar-label {
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray);
  flex-shrink: 0;
}

.contact-email-bar-address {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--wine-light);
}


/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */

@media (max-width: 900px) {
  nav { padding: 22px 28px; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(9,9,9,0.97);
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 999;
  }
  .nav-links.open a {
    font-size: 1.5rem;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.1em;
  }
  .nav-menu { display: flex; }

  .about-strip { grid-template-columns: 1fr; gap: 48px; padding: 80px 28px; }
  .poems-grid  { grid-template-columns: 1fr; }

  .contact-wrapper { grid-template-columns: 1fr; }
  .contact-left, .contact-right { padding: 60px 28px; }
  .contact-email-bar { padding: 28px; flex-direction: column; align-items: flex-start; gap: 8px; }

  footer { padding: 28px; flex-direction: column; gap: 12px; text-align: center; }
  .prose-section { padding: 0 24px; }
  .featured-poem { padding: 0 24px; }
}

@media (max-width: 600px) {
  .hero-name { font-size: 3.5rem; }
  .poems-grid { margin: 40px 0; }
  #cursor, #cursor-ring { display: none; }
  body { cursor: auto; }
}


/* ════════════════════════════════════════
   ATMOSPHERE — particles + floral overlays
   (added by atmosphere.js at runtime)
════════════════════════════════════════ */

#atm-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

#atm-florals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}


/* ════════════════════════════════════════
   ATMOSPHERE v3 — new layer rules
════════════════════════════════════════ */

#atm-tint       { position:fixed;inset:0;pointer-events:none;z-index:0; }
#atm-fog        { position:fixed;inset:0;pointer-events:none;z-index:1; }
#atm-particles  { position:fixed;inset:0;pointer-events:none;z-index:2; }
#atm-breathe    { position:fixed;inset:0;pointer-events:none;z-index:3; }
#atm-trail      { position:fixed;inset:0;pointer-events:none;z-index:9997; }

/* ── TYPOGRAPHY EMERGENCE — cinematic materialise ──
   Applied to .hero-name, .reader-title, .writings-title,
   .about-heading, .contact-heading via .emerge class.
   Existing .hero-content uses heroFadeIn; these are extras.  */

.emerge {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(12px);
  animation: emergeIn 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.emerge-delay-1 { animation-delay: 0.15s; }
.emerge-delay-2 { animation-delay: 0.35s; }
.emerge-delay-3 { animation-delay: 0.55s; }
.emerge-delay-4 { animation-delay: 0.75s; }

@keyframes emergeIn {
  0%   { opacity: 0; filter: blur(8px);  transform: translateY(12px); }
  60%  { filter: blur(1px); }
  100% { opacity: 1; filter: blur(0px);  transform: translateY(0); }
}

/* Poem lines materialise one by one on the reader page */
.reader-stanza .reader-line {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(6px);
  animation: lineEmerge 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes lineEmerge {
  to { opacity: 0.88; filter: blur(0); transform: translateY(0); }
}

/* reader-title already inside .reader-content which has readerFadeIn —
   give the title its own blur emergence on top */
.reader-title {
  animation: emergeIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
  opacity: 0;
}
.reader-genre {
  animation: emergeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0s forwards;
  opacity: 0;
}
.reader-author {
  animation: emergeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
  opacity: 0;
}

/* Override: reader-content has its own opacity:0 animation;
   children that have their own animation must not inherit parent opacity clash.
   Set the parent to always resolve to visible once done — it already does via
   readerFadeIn forwards. The child animations fire independently. */
