/* ============================================================
   BBOTTL.com - Botanical Apothecary
   Colors: #F5F0E8 Bone Silk, #2C3028 Charcoal Moss,
           #B7C9A8 Sage Mist, #E8C4C4 Blush Petal,
           #C4B8D9 Lavender Dew, #9BA88E Faded Olive,
           #F2E6D0 Warm Cream, #6B7D5E Dried Herb
   Fonts:  Space Mono (body), Cormorant Garamond 300 (display)
   ============================================================ */

:root {
  --bone-silk:      #F5F0E8;
  --warm-cream:     #F2E6D0;
  --charcoal-moss:  #2C3028;
  --dried-herb:     #6B7D5E;
  --sage-mist:      #B7C9A8;
  --faded-olive:    #9BA88E;
  --blush-petal:    #E8C4C4;
  --lavender-dew:   #C4B8D9;
  --ease-organic:   cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bone-silk);
  color: var(--charcoal-moss);
  font-family: 'Space Mono', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.8;
  overflow-x: hidden;
  cursor: default;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  min-height: 100vh;
}

::selection {
  background: var(--sage-mist);
  color: var(--charcoal-moss);
}

/* =========================================================
   PAPER GRAIN TEXTURE (static SVG noise via data-URI)
   ========================================================= */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 500;
  opacity: 0.03;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.17 0 0 0 0 0.19 0 0 0 0 0.16 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

/* =========================================================
   MONOGRAM (floating BB — sole persistent UI element)
   ========================================================= */
.monogram {
  position: fixed;
  top: 36px;
  left: 40px;
  z-index: 200;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  mix-blend-mode: multiply;
  transition: opacity 0.8s var(--ease-organic), transform 0.8s var(--ease-organic);
}

.monogram-glyph {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 300;
  font-size: 26px;
  letter-spacing: 0.12em;
  color: var(--charcoal-moss);
  line-height: 1;
}

.monogram-sub {
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--faded-olive);
  padding-left: 2px;
}

.monogram:hover {
  transform: translateY(-1px);
}

/* =========================================================
   BORDER FRAME (viewport edge, appears on edge hover)
   ========================================================= */
.border-frame {
  position: fixed;
  top: 18px;
  left: 18px;
  width: calc(100vw - 36px);
  height: calc(100vh - 36px);
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s var(--ease-organic);
}

.border-frame.visible {
  opacity: 1;
  animation: borderBreathe 6s ease-in-out infinite;
}

#border-rect {
  stroke-dasharray: 3200;
  stroke-dashoffset: 3200;
  transition: stroke-dashoffset 2.4s var(--ease-organic);
}

.border-frame.visible #border-rect {
  stroke-dashoffset: 800; /* stop at ~75% — unfinished wabi-sabi gap */
}

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

/* =========================================================
   PARALLAX LEAF SILHOUETTES (site-wide background)
   ========================================================= */
.leaf-parallax {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.drift-leaf {
  position: absolute;
  will-change: transform;
  opacity: 0.08;
}

.drift-leaf-a {
  top: 8%;
  right: -8%;
  width: 520px;
  transform: rotate(18deg);
  opacity: 0.09;
}
.drift-leaf-b {
  top: 55%;
  left: -10%;
  width: 600px;
  transform: rotate(-24deg);
  opacity: 0.07;
}
.drift-leaf-c {
  top: 130%;
  right: -4%;
  width: 440px;
  transform: rotate(12deg);
  opacity: 0.10;
}
.drift-leaf-d {
  top: 190%;
  left: 2%;
  width: 380px;
  transform: rotate(-6deg);
  opacity: 0.06;
}

/* =========================================================
   GLOBAL SECTION / LAYOUT
   ========================================================= */
.act {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 80px 72px;
  z-index: 2;
}

.breathing-space {
  height: 20vh;
  min-height: 180px;
  background-color: var(--bone-silk);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.breathing-space-final {
  height: 12vh;
  min-height: 80px;
}

/* Vein dividers replace horizontal rules */
.vein-divider {
  width: 64%;
  max-width: 900px;
  height: 60px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.6s var(--ease-organic), transform 1.6s var(--ease-organic);
}

.vein-divider.in-view {
  opacity: 0.7;
  transform: translateY(0);
}

.vein-path {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  transition: stroke-dashoffset 3.2s var(--ease-organic);
}

.vein-divider.in-view .vein-path {
  stroke-dashoffset: 0;
}

/* Micro-labels */
.micro-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  color: var(--faded-olive);
  display: block;
}

.micro-label-top {
  margin-bottom: 24px;
}

.micro-label-lat {
  margin-top: 12px;
  font-style: italic;
  text-transform: lowercase;
  letter-spacing: 0.28em;
  color: var(--dried-herb);
}

/* Corner marks (laboratory catalog feel) */
.corner-mark {
  position: absolute;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--faded-olive);
  opacity: 0.6;
}

.corner-mark-tl {
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.corner-mark-br {
  bottom: 40px;
  right: 40px;
}

/* =========================================================
   ACT I — ORIGIN
   ========================================================= */
.act-origin {
  background-color: var(--bone-silk);
  overflow: hidden;
}

.act-origin-bg {
  position: absolute;
  top: 50%;
  left: 62%;
  transform: translate(-50%, -50%);
  width: 360px;
  height: 720px;
  opacity: 0.14;
  z-index: 1;
}

.vessel-icon-large {
  width: 100%;
  height: 100%;
}

.vessel-icon-large .draw-path {
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  transition: stroke-dashoffset 4.5s var(--ease-organic);
}

.act-origin.in-view .vessel-icon-large .draw-path {
  stroke-dashoffset: 0;
}

.act-origin-columns {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1280px;
  display: grid;
  grid-template-columns: 38.2fr 61.8fr; /* golden ratio */
  gap: 80px;
  align-items: center;
}

.col-narrow { padding-top: 40px; }
.col-wide   { }

.act-origin-content {
  padding-right: 40px;
}

.hero-phrase {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 300;
  font-size: clamp(36px, 6.6vw, 112px);
  line-height: 1.08;
  color: var(--charcoal-moss);
  letter-spacing: -0.03em;
  margin-bottom: 56px;
}

.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.4s var(--ease-organic), transform 1.4s var(--ease-organic);
}

.act-origin.in-view .hero-line:nth-child(1) {
  opacity: 1; transform: translateY(0);
  transition-delay: 0.4s;
}
.act-origin.in-view .hero-line:nth-child(2) {
  opacity: 1; transform: translateY(0);
  transition-delay: 1.0s;
}
.act-origin.in-view .hero-line:nth-child(3) {
  opacity: 1; transform: translateY(0);
  transition-delay: 1.5s;
}

.hero-line-divider {
  font-size: 0.45em;
  color: var(--faded-olive);
  letter-spacing: 0.4em;
  margin: 14px 0;
  font-style: italic;
}

.hero-char {
  display: inline-block;
}

.hero-sub {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  line-height: 2;
  color: var(--charcoal-moss);
  max-width: 460px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.2s var(--ease-organic) 2.4s, transform 1.2s var(--ease-organic) 2.4s;
}

.hero-sub em {
  font-style: italic;
  color: var(--dried-herb);
}

.act-origin.in-view .hero-sub {
  opacity: 0.92;
  transform: translateY(0);
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeHint 1.2s var(--ease-organic) 3.6s forwards;
}

.scroll-hint-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5em;
  color: var(--faded-olive);
}

.scroll-arrow {
  width: 18px;
  height: 18px;
  animation: breathe 3.6s ease-in-out infinite;
}

@keyframes fadeHint {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to   { opacity: 0.7; transform: translate(-50%, 0); }
}

@keyframes breathe {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50%      { opacity: 0.85; transform: translateY(4px); }
}

/* =========================================================
   ACT LABELS (for acts II–IV)
   ========================================================= */
.act-label {
  position: absolute;
  top: 80px;
  right: 72px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  z-index: 3;
}

.act-number {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 300;
  font-size: 44px;
  letter-spacing: 0.15em;
  line-height: 1;
  color: var(--dried-herb);
}

.act-name {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5em;
  color: var(--faded-olive);
}

/* =========================================================
   ACT II — VESSEL
   ========================================================= */
.act-vessel {
  background-color: var(--bone-silk);
}

.act-vessel-columns {
  display: grid;
  grid-template-columns: 38.2fr 61.8fr;
  gap: 80px;
  width: 100%;
  max-width: 1280px;
  align-items: center;
}

.vessel-text {
  padding-right: 40px;
}

.vessel-prose {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  line-height: 2;
  color: var(--charcoal-moss);
  margin-top: 24px;
  max-width: 360px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.2s var(--ease-organic) 0.4s, transform 1.2s var(--ease-organic) 0.4s;
}

.act-vessel.in-view .vessel-prose {
  opacity: 0.92;
  transform: translateY(0);
}

.vessel-prose-italic {
  font-style: italic;
  color: var(--dried-herb);
  transition-delay: 0.8s;
}

.act-vessel.in-view .vessel-prose-italic {
  transition-delay: 0.9s;
}

.vessel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 36px;
  width: 100%;
  padding: 24px 0;
}

/* Organic cluster — loose, non-rigid positioning */
.vessel-grid .vessel-item:nth-child(1) { transform: translate(8px,  12px); }
.vessel-grid .vessel-item:nth-child(2) { transform: translate(-6px, -14px); }
.vessel-grid .vessel-item:nth-child(3) { transform: translate(10px, 18px); }
.vessel-grid .vessel-item:nth-child(4) { transform: translate(-14px, 6px); }
.vessel-grid .vessel-item:nth-child(5) { transform: translate(6px,  -10px); }
.vessel-grid .vessel-item:nth-child(6) { transform: translate(-12px, 14px); }

.vessel-item {
  position: relative;
  padding: 28px 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 1s var(--ease-organic),
              transform 0.6s var(--ease-organic);
  will-change: transform, opacity;
}

.act-vessel.in-view .vessel-item {
  opacity: 1;
}

.vessel-item:hover {
  transform: translate(var(--hover-tx, 0), var(--hover-ty, 0)) rotate(2deg);
}

.vessel-border {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.border-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.animated-border {
  stroke-dasharray: 392;          /* perimeter of 98x98 */
  stroke-dashoffset: 392;
  transition: stroke-dashoffset 2.4s var(--ease-organic);
}

/* Normal (complete) border reveals fully */
.act-vessel.in-view .vessel-item .animated-border {
  stroke-dashoffset: 0;
}

/* Incomplete border — stops at 75% (wabi-sabi signature) */
.act-vessel.in-view .vessel-item[data-incomplete="true"] .animated-border {
  stroke-dashoffset: 98; /* ≈ 25% remaining */
}

.vessel-icon {
  width: 64px;
  height: 96px;
  transition: transform 0.8s var(--ease-organic);
}

.vessel-item:hover .vessel-icon {
  transform: translateY(-2px);
}

.vessel-icon .draw-path {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  transition: stroke-dashoffset 2.4s var(--ease-organic);
}

.act-vessel.in-view .vessel-item .draw-path {
  stroke-dashoffset: 0;
}

.vessel-number {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 0.25em;
  color: var(--dried-herb);
  margin-top: 6px;
}

.vessel-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--charcoal-moss);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.6s var(--ease-organic), transform 0.6s var(--ease-organic);
}

.vessel-item:hover .vessel-label {
  opacity: 1;
  transform: translateY(0);
}

.act-vessel.in-view .vessel-item .vessel-label {
  opacity: 0.85;
  transform: translateY(0);
  transition-delay: 1.4s;
}

.vessel-latin {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--faded-olive);
  font-style: italic;
  opacity: 0;
  transition: opacity 0.6s var(--ease-organic);
}

.act-vessel.in-view .vessel-item .vessel-latin {
  opacity: 0.75;
  transition-delay: 1.7s;
}

.vessel-item:hover .vessel-latin {
  opacity: 1;
  color: var(--dried-herb);
}

/* =========================================================
   ACT III — ESSENCE
   ========================================================= */
.act-essence {
  background-color: var(--bone-silk);
  overflow: hidden;
}

.essence-leaf-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  max-width: 900px;
  height: 80vh;
  opacity: 0.08;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.essence-leaf-bg svg {
  width: 100%;
  height: 100%;
}

.essence-leaf-bg .draw-path {
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  transition: stroke-dashoffset 4.8s var(--ease-organic);
}

.act-essence.in-view .essence-leaf-bg .draw-path {
  stroke-dashoffset: 0;
}

.essence-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 880px;
  margin-bottom: 80px;
}

.pull-quote {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 300;
  font-size: clamp(30px, 5vw, 68px);
  line-height: 1.25;
  color: var(--charcoal-moss);
  letter-spacing: -0.02em;
  border: none;
  padding: 0;
  margin: 0;
}

.quote-line {
  display: block;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.2s var(--ease-organic), transform 1.2s var(--ease-organic);
}

.quote-amp {
  font-style: italic;
  color: var(--dried-herb);
  padding: 0 0.1em;
}

.act-essence.in-view .quote-line:nth-child(1) {
  opacity: 1; transform: translateY(0); transition-delay: 0.4s;
}
.act-essence.in-view .quote-line:nth-child(2) {
  opacity: 1; transform: translateY(0); transition-delay: 0.9s;
}
.act-essence.in-view .quote-line:nth-child(3) {
  opacity: 1; transform: translateY(0); transition-delay: 1.4s;
}

.pull-quote-attribution {
  display: block;
  margin-top: 36px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--faded-olive);
  opacity: 0;
  transition: opacity 1s var(--ease-organic) 2s;
}

.act-essence.in-view .pull-quote-attribution {
  opacity: 0.75;
}

.essence-details {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  width: 100%;
  max-width: 1100px;
}

.essence-item {
  position: relative;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: rgba(245, 240, 232, 0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--ease-organic), transform 1s var(--ease-organic);
}

.act-essence.in-view .essence-item:nth-child(1) {
  opacity: 1; transform: translateY(0); transition-delay: 0.8s;
}
.act-essence.in-view .essence-item:nth-child(2) {
  opacity: 1; transform: translateY(0); transition-delay: 1.2s;   /* staggered 400ms */
}
.act-essence.in-view .essence-item:nth-child(3) {
  opacity: 1; transform: translateY(0); transition-delay: 1.6s;
}

.essence-border {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.essence-border .animated-border {
  stroke-dasharray: 392;
  stroke-dashoffset: 392;
  transition: stroke-dashoffset 2.4s var(--ease-organic);
}

.act-essence.in-view .essence-item:nth-child(1) .animated-border {
  stroke-dashoffset: 0;  transition-delay: 1s;
}
.act-essence.in-view .essence-item:nth-child(2) .animated-border {
  stroke-dashoffset: 0;  transition-delay: 1.4s;
}
.act-essence.in-view .essence-item:nth-child(3) .animated-border {
  stroke-dashoffset: 0;  transition-delay: 1.8s;
}

/* Incomplete borders — stop at 75% */
.act-essence.in-view .essence-item[data-incomplete="true"] .animated-border {
  stroke-dashoffset: 98;
}

.essence-icon {
  width: 48px;
  height: 48px;
}

.essence-icon .draw-path {
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  transition: stroke-dashoffset 2.4s var(--ease-organic);
}

.act-essence.in-view .essence-icon .draw-path {
  stroke-dashoffset: 0;
}

.essence-number {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--faded-olive);
  margin-top: 12px;
}

.essence-text {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--charcoal-moss);
  font-weight: 700;
}

.essence-latin {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--dried-herb);
  font-style: italic;
}

.essence-desc {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  line-height: 1.9;
  color: var(--charcoal-moss);
  margin-top: 12px;
  opacity: 0.85;
}

/* =========================================================
   ACT IV — RITUAL
   ========================================================= */
.act-ritual {
  background-color: var(--warm-cream);
  transition: background-color 1.6s var(--ease-organic);
  overflow: hidden;
}

.ritual-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  max-width: 900px;
  width: 100%;
}

.ritual-pull-quote {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 300;
  font-size: clamp(28px, 4.8vw, 56px);
  line-height: 1.25;
  color: var(--charcoal-moss);
  letter-spacing: -0.02em;
  text-align: center;
  border: none;
  padding: 0;
  margin: 0;
}

.ritual-quote-line {
  display: block;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.2s var(--ease-organic), transform 1.2s var(--ease-organic);
}

.act-ritual.in-view .ritual-quote-line:nth-child(1) {
  opacity: 1; transform: translateY(0); transition-delay: 0.4s;
}
.act-ritual.in-view .ritual-quote-line:nth-child(2) {
  opacity: 1; transform: translateY(0); transition-delay: 1.0s;
}

.ritual-rotating-leaf {
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slowRotate 20s linear infinite;
  opacity: 0;
  transition: opacity 1.6s var(--ease-organic) 1.8s;
}

.act-ritual.in-view .ritual-rotating-leaf {
  opacity: 1;
}

.ritual-rotating-leaf svg {
  width: 100%;
  height: 100%;
}

.ritual-rotating-leaf .draw-path {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  transition: stroke-dashoffset 3.2s var(--ease-organic);
}

.act-ritual.in-view .ritual-rotating-leaf .draw-path {
  stroke-dashoffset: 0;
}

@keyframes slowRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.ritual-icons {
  display: flex;
  gap: 72px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}

.ritual-icon-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1s var(--ease-organic), transform 1s var(--ease-organic);
}

.act-ritual.in-view .ritual-icon-group:nth-child(1) {
  opacity: 1; transform: translateY(0); transition-delay: 1.0s;
}
.act-ritual.in-view .ritual-icon-group:nth-child(2) {
  opacity: 1; transform: translateY(0); transition-delay: 1.4s;
}
.act-ritual.in-view .ritual-icon-group:nth-child(3) {
  opacity: 1; transform: translateY(0); transition-delay: 1.8s;
}

.ritual-icon {
  width: 72px;
  height: 72px;
}

.ritual-icon .draw-path {
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  transition: stroke-dashoffset 2.4s var(--ease-organic);
}

.act-ritual.in-view .ritual-icon .draw-path {
  stroke-dashoffset: 0;
}

.ritual-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--charcoal-moss);
  margin-top: 8px;
}

.ritual-latin {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--dried-herb);
  font-style: italic;
  opacity: 0.8;
}

/* Ritual CTA */
.ritual-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 300px;
  height: 80px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1.2s var(--ease-organic) 2.4s, transform 1.2s var(--ease-organic) 2.4s;
  outline: none;
}

.act-ritual.in-view .ritual-cta {
  opacity: 1;
  transform: translateY(0);
}

.ritual-border-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ritual-border-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ritual-border-svg .animated-border {
  stroke-dasharray: 756;
  stroke-dashoffset: 756;
  transition: stroke-dashoffset 2.4s var(--ease-organic);
}

.act-ritual.in-view .ritual-border-svg .animated-border {
  stroke-dashoffset: 189; /* ~75% — unfinished until hover */
}

.ritual-cta:hover .ritual-border-svg .animated-border {
  stroke-dashoffset: 0;
  transition-duration: 0.9s;
}

.ritual-cta-text {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.45em;
  color: var(--dried-herb);
  position: relative;
  z-index: 2;
  transition: color 0.6s var(--ease-organic);
}

.ritual-cta-arrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: var(--dried-herb);
  position: relative;
  z-index: 2;
  transform: translateX(0);
  transition: transform 0.6s var(--ease-organic), color 0.6s var(--ease-organic);
}

.ritual-cta:hover .ritual-cta-text {
  color: var(--charcoal-moss);
}

.ritual-cta:hover .ritual-cta-arrow {
  color: var(--charcoal-moss);
  transform: translateX(6px);
}

.ritual-note {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  line-height: 2;
  color: var(--faded-olive);
  text-align: center;
  max-width: 420px;
  opacity: 0;
  transition: opacity 1.2s var(--ease-organic) 2.8s;
}

.ritual-note em {
  font-style: italic;
  color: var(--dried-herb);
}

.act-ritual.in-view .ritual-note {
  opacity: 0.9;
}

/* Closing mark (fin) */
.closing-mark {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 1.2s var(--ease-organic) 3.2s;
}

.act-ritual.in-view .closing-mark {
  opacity: 0.55;
}

.closing-monogram {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 22px;
  letter-spacing: 0.22em;
  color: var(--dried-herb);
}

.closing-line {
  display: block;
  width: 24px;
  height: 1px;
  background-color: var(--faded-olive);
  opacity: 0.7;
}

.closing-year {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.55em;
  color: var(--faded-olive);
}

.closing-tagline {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--faded-olive);
  margin-top: 4px;
  font-style: italic;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .act {
    padding: 72px 48px;
  }
  .act-origin-columns,
  .act-vessel-columns {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .act-origin-content { padding-right: 0; }
  .vessel-text        { padding-right: 0; }
  .vessel-prose       { max-width: none; }
  .act-label {
    top: 56px;
    right: 48px;
  }
  .act-origin-bg {
    left: 75%;
    opacity: 0.08;
  }
}

@media (max-width: 768px) {
  body { font-size: 13px; }

  .act {
    padding: 64px 28px;
  }

  .monogram {
    top: 24px;
    left: 24px;
  }
  .monogram-glyph { font-size: 22px; }
  .monogram-sub   { font-size: 7px; }

  .act-label {
    top: 24px;
    right: 28px;
  }
  .act-number { font-size: 32px; }

  .vessel-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 24px;
    max-width: 440px;
    margin: 0 auto;
  }
  .vessel-grid .vessel-item:nth-child(n) {
    transform: none;
  }

  .essence-details {
    grid-template-columns: 1fr;
    max-width: 520px;
    gap: 24px;
  }

  .ritual-icons {
    gap: 40px;
  }

  .corner-mark-tl { top: 24px; }
  .corner-mark-br { bottom: 24px; right: 28px; }

  .hero-phrase {
    font-size: clamp(32px, 9vw, 56px);
  }

  .drift-leaf-a, .drift-leaf-b, .drift-leaf-c, .drift-leaf-d {
    opacity: 0.05;
  }

  .border-frame { display: none; }

  .vein-divider { width: 80%; }
}

@media (max-width: 480px) {
  .vessel-grid {
    grid-template-columns: 1fr;
    max-width: 240px;
  }
  .ritual-cta {
    width: 240px;
  }
  .ritual-icons {
    gap: 28px;
  }
  .hero-phrase {
    font-size: 32px;
  }
  .pull-quote  { font-size: 28px; }
  .ritual-pull-quote { font-size: 26px; }
}
