:root {
  --primary-bg: #f5efe6;
  --secondary-bg: #5c2a2a;
  --tertiary-bg: #3d2b1f;
  --primary-accent: #c7a94f;
  --secondary-accent: #b8807a;
  --text-primary: #3d2b1f;
  --text-light: #e8ddd0;
  --highlight: #d4a032;
  --scroll-progress: 0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100%;
  overflow-x: hidden;
  background: var(--primary-bg);
  color: var(--text-primary);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.75;
  letter-spacing: 0.015em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.58;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(199, 169, 79, 0.20) 1px, transparent 1.8px),
    linear-gradient(90deg, rgba(92, 42, 42, 0.025), rgba(245, 239, 230, 0.04));
  background-size: 40px 40px, 100% 100%;
  mix-blend-mode: multiply;
}

.paper-grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.09;
  background-image:
    repeating-radial-gradient(circle at 13% 17%, rgba(61,43,31,0.12) 0 1px, transparent 1px 4px),
    repeating-radial-gradient(circle at 83% 61%, rgba(199,169,79,0.10) 0 1px, transparent 1px 5px);
  background-size: 160px 150px, 190px 170px;
}

.monogram {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 50;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(199, 169, 79, 0.68);
  border-radius: 50%;
  background: rgba(245, 239, 230, 0.72);
  color: var(--primary-accent);
  font: 400 2rem/1 "Bebas Neue", Impact, sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(199, 169, 79, 0);
  animation: monogram-pulse 3s ease-in-out infinite;
}

.monogram:hover { color: var(--highlight); transform: scale(1.07); }
.top-rule {
  position: fixed;
  top: 48px;
  left: 72px;
  right: 24px;
  z-index: 49;
  height: 1px;
  background: rgba(199, 169, 79, 0.22);
}
.progress-fill {
  display: block;
  height: 100%;
  width: calc(var(--scroll-progress) * 100%);
  background: var(--highlight);
  box-shadow: 0 0 14px rgba(212, 160, 50, 0.35);
}

@keyframes monogram-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(199, 169, 79, 0); }
  50% { box-shadow: 0 0 20px 4px rgba(199, 169, 79, 0.15); }
}

.journey { position: relative; z-index: 5; perspective: 1px; transform-style: preserve-3d; }
.proposition {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: [bleed-start] 1fr [content-start] minmax(280px, 2fr) [overlap-start] 0.7fr [decor-start] minmax(220px, 1.6fr) [content-end] 1fr [bleed-end];
  grid-template-rows: minmax(70px, 0.5fr) auto minmax(70px, 0.5fr);
  padding: clamp(5rem, 8vw, 8rem) clamp(1.5rem, 5vw, 5rem);
  isolation: isolate;
}

.proposition::after {
  content: "";
  position: absolute;
  left: -10vw;
  right: -10vw;
  bottom: -1px;
  height: 92px;
  opacity: 0.54;
  background:
    radial-gradient(90px 34px at 12% 45%, transparent 38%, rgba(199,169,79,0.42) 39%, transparent 41%),
    radial-gradient(120px 48px at 56% 58%, transparent 39%, rgba(199,169,79,0.28) 40%, transparent 42%),
    linear-gradient(176deg, transparent 48%, rgba(199,169,79,0.42) 49%, transparent 51%);
}

h1, h2 {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 0.9;
}
h1 { font-size: clamp(4rem, 10vw, 9rem); color: var(--secondary-bg); }
h2 { font-size: clamp(2rem, 5vw, 4.5rem); color: var(--secondary-bg); margin-bottom: 1.4rem; }
p { max-width: 38em; }
p + p { margin-top: 1rem; }
.eyebrow {
  color: var(--primary-accent);
  font-size: 0.875rem;
  font-style: italic;
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
}

.reveal-group > * { opacity: 0; transform: translateY(15px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.in-view .reveal-group > * { opacity: 1; transform: translateY(0); }
.in-view .reveal-group > *:nth-child(2) { transition-delay: 0.15s; }
.in-view .reveal-group > *:nth-child(3) { transition-delay: 0.30s; }
.in-view .reveal-group > *:nth-child(4) { transition-delay: 0.45s; }

.depth { will-change: transform; }
.draw-svg { overflow: visible; }
.draw-svg path, .draw-svg circle { fill: none; stroke: var(--primary-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.draw-svg circle { stroke-width: 1.3; }
.draw-svg path, .draw-svg circle { stroke-dasharray: var(--dash, 1000); stroke-dashoffset: var(--dash, 1000); transition: stroke-dashoffset 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.in-view .draw-svg path, .in-view .draw-svg circle, .draw-svg.is-drawn path, .draw-svg.is-drawn circle { stroke-dashoffset: 0; }

.gold-ring {
  position: absolute;
  display: block;
  border: 1px solid var(--primary-accent);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 1.2s cubic-bezier(0.34, 1.56, 0.64, 1), transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.in-view .gold-ring { opacity: 0.76; transform: scale(1); }

.proposition-one {
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 20% 25%, rgba(199,169,79,0.14), transparent 24%),
    radial-gradient(circle at 82% 72%, rgba(184,128,122,0.18), transparent 27%),
    var(--primary-bg);
}
.hero-copy { grid-column: content-start / content-end; grid-row: 2; position: relative; z-index: 4; }
.thesis { margin: 2rem auto 0; font-size: clamp(1.35rem, 2.2vw, 2rem); font-style: italic; color: var(--tertiary-bg); }
.botanical-layer { position: absolute; inset: 7% 2% auto 2%; z-index: 1; transform: translateZ(-2px) scale(3); opacity: 0.58; }
.vine-hero { width: 100%; height: 72vh; }
.circle-layer { position: absolute; inset: 0; z-index: 2; transform: translateZ(-1px) scale(2); }
.ring-a { width: 180px; height: 180px; left: 12%; top: 20%; }
.ring-b { width: 62px; height: 62px; right: 17%; top: 26%; transition-delay: 0.25s; }
.ring-c { width: 240px; height: 240px; right: 7%; bottom: 12%; transition-delay: 0.5s; }

.proposition-two { background: var(--primary-bg); }
.text-block { grid-column: content-start / overlap-start; grid-row: 2; z-index: 5; }
.framed {
  position: relative;
  padding: clamp(1.8rem, 4vw, 3.4rem);
  background: rgba(245, 239, 230, 0.72);
  box-shadow: inset 0 0 0 1px rgba(199, 169, 79, 0.45), 0 24px 60px rgba(61, 43, 31, 0.06);
}
.framed::before, .framed::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border: 1px solid var(--primary-accent);
  opacity: 0.65;
}
.framed::before { left: -18px; top: -18px; border-right: 0; border-bottom: 0; border-radius: 70% 0 0 0; }
.framed::after { right: -18px; bottom: -18px; border-left: 0; border-top: 0; border-radius: 0 0 70% 0; }
.rose-panel { grid-column: overlap-start / content-end; grid-row: 2; align-self: center; height: min(58vh, 520px); background: rgba(184, 128, 122, 0.15); transform: translateY(-9%) rotate(-2deg); z-index: 1; }
.fern-frond { grid-column: decor-start / bleed-end; grid-row: 1 / 4; width: min(44vw, 520px); justify-self: end; align-self: center; z-index: 3; opacity: 0.88; }
.wide-vine { position: absolute; left: -8vw; right: -8vw; top: 19%; height: 1px; background: linear-gradient(90deg, transparent, rgba(199,169,79,0.48), transparent); transform: rotate(-8deg); }

.proposition-three {
  background: var(--primary-bg);
  color: var(--text-light);
}
.diagonal-field {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-bg) 0 47%, var(--secondary-bg) 47.2% 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transition: clip-path 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 0;
}
.proposition-three.in-view .diagonal-field { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.proof-light { grid-column: content-start / overlap-start; grid-row: 2; align-self: start; z-index: 4; color: var(--text-primary); }
.proof-dark { grid-column: decor-start / content-end; grid-row: 2; align-self: end; z-index: 4; padding-top: 16vh; color: var(--text-light); }
.proof-dark .eyebrow { color: var(--highlight); }
.proof-light h2 { color: var(--secondary-bg); }
.logic-tree { width: min(32vw, 360px); margin-top: 2rem; }
.logic-tree path, .logic-tree circle { stroke: var(--primary-accent); }

.dense-bloom { background: radial-gradient(circle at 80% 28%, rgba(199,169,79,0.10), transparent 24%), var(--primary-bg); }
.frame-large, .frame-small {
  position: absolute;
  border: 1px solid rgba(199,169,79,0.46);
  z-index: 1;
  transform: rotate(-3deg);
}
.frame-large { width: 54vw; height: 62vh; right: 7vw; top: 17vh; }
.frame-small { width: 28vw; height: 32vh; left: 9vw; bottom: 12vh; transform: rotate(5deg); background: rgba(199,169,79,0.10); }
.peony { grid-column: overlap-start / bleed-end; grid-row: 1 / 4; width: min(58vw, 640px); align-self: center; justify-self: end; z-index: 2; opacity: 0.72; transform: translateZ(-1px) scale(2); }
.bloom-text { grid-column: content-start / decor-start; grid-row: 2; z-index: 5; }
.ring-d { width: 72px; height: 72px; left: 10%; top: 18%; z-index: 3; }
.ring-e { width: 172px; height: 172px; right: 15%; top: 18%; z-index: 3; transition-delay: 0.2s; }
.ring-f { width: 226px; height: 226px; left: 18%; bottom: 10%; z-index: 3; transition-delay: 0.4s; }

.proposition-five { place-items: center; text-align: center; background: var(--primary-bg); }
.proposition-five::after { content: none; }
.final-mark { width: min(38vw, 210px); margin-bottom: 2.5rem; filter: drop-shadow(0 14px 20px rgba(199,169,79,0.12)); }
.conclusion-copy { grid-column: content-start / content-end; grid-row: 2; }
.conclusion { font-size: clamp(1.7rem, 3vw, 2.6rem); font-style: italic; color: var(--text-primary); letter-spacing: 0.04em; }

@media (max-width: 820px) {
  .proposition {
    grid-template-columns: 12% 1fr 8%;
    padding: 5rem 0 4rem;
  }
  .hero-copy, .text-block, .proof-light, .proof-dark, .bloom-text, .conclusion-copy { grid-column: 2; }
  .framed { padding: 1.65rem; }
  .fern-frond, .peony { grid-column: 2 / 4; width: 95%; opacity: 0.36; transform: translateX(30%) translateZ(0) scale(1); }
  .rose-panel { grid-column: 2 / 4; opacity: 0.72; }
  .proposition-three { background: linear-gradient(155deg, var(--primary-bg) 0 52%, var(--secondary-bg) 52.3% 100%); }
  .diagonal-field { display: none; }
  .proof-dark { margin-top: 30vh; padding-top: 0; }
  .logic-tree { width: min(80vw, 330px); }
  .frame-large { width: 84vw; right: -22vw; }
  .frame-small { width: 58vw; }
  .top-rule { right: 14px; }
}

@media (max-width: 520px) {
  .monogram { top: 16px; left: 16px; width: 42px; height: 42px; font-size: 1.65rem; }
  .top-rule { top: 37px; left: 58px; }
  h1 { font-size: clamp(4rem, 22vw, 6rem); }
  h2 { font-size: clamp(2.8rem, 15vw, 4rem); }
}
