.imprint-story {
  --imprint-brown: #2a1a0c;
  --imprint-gold: #c69b4b;
  --imprint-cream: #f5efe3;
  position: relative;
  height: 320vh;
  min-height: 1800px;
  background: var(--imprint-brown);
  color: var(--imprint-cream);
  isolation: isolate;
}

.imprint-stage {
  position: sticky;
  top: 5.6rem;
  min-height: calc(100vh - 5.6rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 48%, rgba(198, 155, 75, 0.13), transparent 31%),
    linear-gradient(130deg, #211207, var(--imprint-brown) 48%, #35200e);
}

.imprint-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, transparent 0 79px, rgba(255, 255, 255, 0.08) 80px);
  mask-image: linear-gradient(90deg, #000, transparent 54%);
}

.imprint-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  width: min(1180px, calc(100% - 3rem));
  min-height: calc(100vh - 5.6rem);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 5rem) 0;
}

.imprint-visual {
  display: grid;
  place-items: center;
  min-width: 0;
}

.imprint-scene {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1 / 0.9;
}

.imprint-paper {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(112px, 13vw, 170px);
  aspect-ratio: 0.73;
  border: 1px solid rgba(84, 61, 32, 0.3);
  border-radius: 3px;
  background:
    linear-gradient(#c5a96f 0 0) 16px 58px / 62% 2px no-repeat,
    repeating-linear-gradient(180deg, transparent 0 11px, rgba(93, 68, 37, 0.18) 12px 13px) 16px 78px / calc(100% - 32px) calc(100% - 98px) no-repeat,
    #eee5d3;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.36);
  color: #5b3b16;
  transform-origin: center;
  will-change: transform, opacity, filter;
}

.imprint-paper::before {
  content: attr(data-label);
  position: absolute;
  left: 16px;
  top: 18px;
  font: 700 clamp(0.65rem, 1vw, 0.82rem)/1.1 Arial, sans-serif;
  letter-spacing: 0.13em;
}

.imprint-paper::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 13px;
  width: 21px;
  height: 21px;
  border: 1px solid rgba(123, 80, 27, 0.45);
  border-radius: 50%;
}

.imprint-p1 { z-index: 2; }
.imprint-p2 { z-index: 5; }
.imprint-p3 { z-index: 3; }
.imprint-p4 { z-index: 6; }
.imprint-p5 { z-index: 1; }
.imprint-p6 { z-index: 4; }

.imprint-symbol {
  position: absolute;
  z-index: 8;
  color: rgba(245, 239, 227, 0.53);
  font-family: Georgia, serif;
  font-size: clamp(2rem, 5vw, 4.8rem);
  font-style: italic;
  line-height: 1;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  will-change: transform, opacity;
}

.imprint-s1 { left: 4%; top: 18%; transform: rotate(-18deg); }
.imprint-s2 { right: 8%; top: 12%; transform: rotate(14deg); }
.imprint-s3 { left: 9%; bottom: 12%; transform: rotate(9deg); }
.imprint-s4 { right: 5%; bottom: 18%; transform: rotate(-12deg); }

.imprint-path {
  position: absolute;
  z-index: 10;
  left: 50%;
  top: 50%;
  width: clamp(180px, 25vw, 310px);
  aspect-ratio: 1;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72) rotate(-18deg);
  will-change: opacity, transform;
}

.imprint-ring {
  position: absolute;
  inset: 4%;
  border: 1px solid rgba(198, 155, 75, 0.75);
  border-radius: 50%;
  box-shadow: 0 0 50px rgba(198, 155, 75, 0.18), inset 0 0 30px rgba(198, 155, 75, 0.08);
}

.imprint-ring::before,
.imprint-ring::after {
  content: "";
  position: absolute;
  background: rgba(198, 155, 75, 0.32);
}

.imprint-ring::before { left: 50%; top: -5%; width: 1px; height: 110%; }
.imprint-ring::after { left: -5%; top: 50%; width: 110%; height: 1px; }

.imprint-compass {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 21%;
  height: 76%;
  transform: translate(-50%, -50%) rotate(27deg);
  filter: drop-shadow(0 9px 14px rgba(0, 0, 0, 0.32));
}

.imprint-compass::before,
.imprint-compass::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-left: clamp(12px, 2vw, 23px) solid transparent;
  border-right: clamp(12px, 2vw, 23px) solid transparent;
}

.imprint-compass::before {
  top: 0;
  border-bottom: clamp(80px, 12vw, 143px) solid var(--imprint-gold);
}

.imprint-compass::after {
  bottom: 0;
  border-top: clamp(80px, 12vw, 143px) solid #efe2c7;
}

.imprint-copy { position: relative; min-width: 0; }

.imprint-kicker,
.imprint-message span,
.imprint-closing small {
  display: block;
  color: var(--imprint-gold);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.imprint-copy h2 {
  max-width: 11ch;
  margin: 1rem 0 clamp(2rem, 5vh, 4rem);
  color: #fffaf0;
  font-family: Georgia, serif;
  font-size: clamp(2.5rem, 5.1vw, 5.6rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.93;
}

.imprint-copy h2 em,
.imprint-closing h2 em {
  display: block;
  color: var(--imprint-gold);
  font-weight: 400;
}

.imprint-messages { position: relative; min-height: 8.5rem; }

.imprint-message {
  position: absolute;
  inset: 0;
  max-width: 32rem;
  opacity: 0;
  transform: translateY(22px);
  pointer-events: none;
  will-change: opacity, transform;
}

.imprint-message p {
  margin: 0.65rem 0 0;
  color: rgba(255, 250, 240, 0.78);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.58;
}

.imprint-phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  width: min(100%, 32rem);
  margin-top: 1.8rem;
}

.imprint-phases span {
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}

.imprint-phases span::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--imprint-gold);
  transform: scaleX(var(--phase-fill, 0));
  transform-origin: left;
}

.imprint-closing {
  display: grid;
  place-items: center;
  min-height: 72vh;
  padding: 6rem 1.5rem;
  text-align: center;
  background: #f3ecdf;
  color: #2a1a0c;
}

.imprint-closing > div { width: min(940px, 100%); }
.imprint-closing small { margin-bottom: 1.2rem; }

.imprint-closing h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(3rem, 7.5vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.imprint-closing p {
  max-width: 40rem;
  margin: 2rem auto 0;
  color: #6b5642;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

@media (max-width: 800px) {
  .imprint-story { height: 285vh; min-height: 1680px; }
  .imprint-stage { top: 4.8rem; min-height: calc(100vh - 4.8rem); }
  .imprint-grid {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 0.65rem;
    width: min(100% - 2rem, 620px);
    min-height: calc(100vh - 4.8rem);
    padding: 1rem 0 1.5rem;
  }
  .imprint-scene { width: min(86vw, 390px); height: min(34vh, 300px); aspect-ratio: auto; }
  .imprint-paper { width: clamp(88px, 25vw, 112px); }
  .imprint-path { width: clamp(160px, 49vw, 220px); }
  .imprint-copy h2 { max-width: 12ch; margin: 0.5rem 0 1rem; font-size: clamp(2rem, 10.5vw, 3.8rem); }
  .imprint-kicker { font-size: 0.64rem; }
  .imprint-messages { min-height: 6.5rem; }
  .imprint-message p { margin-top: 0.4rem; font-size: 0.96rem; line-height: 1.45; }
  .imprint-message span { font-size: 0.65rem; }
  .imprint-phases { margin-top: 0.9rem; }
  .imprint-closing { min-height: 62vh; padding: 5rem 1.25rem; }
}

@media (max-width: 420px) {
  .imprint-scene { height: min(31vh, 260px); }
  .imprint-copy h2 { font-size: clamp(1.9rem, 10vw, 2.7rem); }
  .imprint-symbol { font-size: 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .imprint-story { height: auto; min-height: auto; }
  .imprint-stage { position: relative; top: auto; min-height: auto; }
  .imprint-grid { min-height: auto; padding-block: 5rem; }
  .imprint-message { position: relative; margin-bottom: 1rem; opacity: 1 !important; transform: none !important; }
  .imprint-messages { min-height: 0; }
  .imprint-phases { display: none; }
}
