/* "PRICE PER HOUR" - detailed, lightweight CSS currency illustration */

.price {
  width: 100%;
  padding: 5vh 0 8vh;
  overflow: hidden;
  border-top: 2px solid rgba(8, 38, 110, 0.32);
  background: transparent;
}

.price-title,
.price-caption {
  color: #0a1628;
  text-align: center;
  text-transform: uppercase;
  font-weight: 900;
}

.price-title {
  margin-bottom: clamp(30px, 6vh, 70px);
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1;
}

.price-stage {
  position: relative;
  width: min(90%, 820px);
  aspect-ratio: 1.9 / 1;
  margin: 0 auto;
  perspective: 1500px;
}

.currency-note {
  position: absolute;
  width: 62%;
  aspect-ratio: 2.35 / 1;
  overflow: hidden;
  border: 1px solid #506551;
  border-radius: 2px;
  color: #344c38;
  font-family: Georgia, "Times New Roman", serif;
  box-shadow: 0 18px 28px rgba(6, 39, 56, 0.22);
  opacity: 0;
  transform-style: preserve-3d;
  will-change: transform;
  background:
    repeating-radial-gradient(ellipse at center, transparent 0 5px, rgba(44, 73, 50, 0.07) 5px 6px),
    repeating-linear-gradient(105deg, transparent 0 4px, rgba(44, 73, 50, 0.045) 4px 5px),
    radial-gradient(ellipse at center, #f8f8df 0 42%, #e9edcc 76%, #dce5bd 100%);
}

.currency-note::before,
.currency-note::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.currency-note::before {
  inset: 3.5%;
  border: 4px double currentColor;
  opacity: 0.72;
}

.currency-note::after {
  inset: 8% 12%;
  border: 1px solid currentColor;
  border-radius: 46% / 20%;
  opacity: 0.32;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.22),
    inset 0 0 0 3px rgba(52, 76, 56, 0.12);
}

.note-ten {
  top: 2%;
  left: 4%;
  z-index: 1;
  color: #625542;
  border-color: #87775b;
  background:
    radial-gradient(circle at 25% 56%, rgba(174, 70, 69, 0.21) 0 16%, transparent 16.5%),
    repeating-radial-gradient(ellipse at center, transparent 0 5px, rgba(96, 76, 48, 0.07) 5px 6px),
    repeating-linear-gradient(105deg, transparent 0 4px, rgba(96, 76, 48, 0.045) 4px 5px),
    radial-gradient(ellipse at center, #f5e8c8 0 40%, #e9d5ab 76%, #d8bd89 100%);
}

.note-one {
  right: 3%;
  bottom: 1%;
  z-index: 2;
}

.note-number {
  position: absolute;
  z-index: 3;
  min-width: 1.1em;
  font-size: clamp(1rem, 3.2vw, 2rem);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-shadow: 1px 1px rgba(255, 255, 255, 0.45);
}

.number-tl { top: 6%; left: 5%; }
.number-tr { top: 6%; right: 5%; }
.number-bl { bottom: 6%; left: 5%; transform: rotate(180deg); }
.number-br { right: 5%; bottom: 6%; transform: rotate(180deg); }

.note-series {
  position: absolute;
  z-index: 3;
  color: #278654;
  font-family: "Courier New", monospace;
  font-size: clamp(0.36rem, 1.05vw, 0.68rem);
  font-weight: 700;
  letter-spacing: 0.11em;
}

.note-ten .note-series { color: #426b58; }
.series-left { top: 28%; left: 13%; }
.series-right { right: 13%; bottom: 25%; }

.note-seal {
  position: absolute;
  top: 54%;
  z-index: 3;
  display: grid;
  width: clamp(26px, 5.2vw, 48px);
  aspect-ratio: 1;
  place-items: center;
  border: 3px double currentColor;
  border-radius: 50%;
  font-size: clamp(0.65rem, 1.6vw, 1rem);
  font-weight: 700;
  transform: translateY(-50%);
  opacity: 0.78;
}

.note-seal-left { left: 13%; }
.note-seal-right { right: 13%; color: #258955; }
.note-ten .note-seal-right { color: #9e584d; }

.note-copy {
  position: absolute;
  inset: 3% 20%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.note-reserve {
  position: absolute;
  top: 2%;
  font-size: clamp(0.34rem, 0.86vw, 0.58rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.note-copy strong {
  position: absolute;
  top: 12%;
  font-size: clamp(0.48rem, 1.35vw, 0.9rem);
  line-height: 0.95;
  text-transform: uppercase;
  white-space: nowrap;
}

.note-portrait {
  position: relative;
  z-index: 2;
  width: clamp(52px, 10vw, 92px);
  aspect-ratio: 0.82;
  margin-top: 8%;
  overflow: hidden;
  border: 4px double currentColor;
  border-radius: 48% 48% 44% 44%;
  box-shadow: inset 0 0 18px rgba(45, 68, 48, 0.3);
  background:
    repeating-linear-gradient(105deg, transparent 0 2px, currentColor 2px 2.5px),
    rgba(255, 255, 255, 0.26);
}

.portrait-face,
.portrait-hair,
.portrait-body {
  position: absolute;
  left: 50%;
  display: block;
  background: currentColor;
  opacity: 0.76;
}

.portrait-face {
  top: 20%;
  width: 32%;
  height: 39%;
  border-radius: 48% 52% 44% 46%;
  transform: translateX(-50%) rotate(-3deg);
}

.portrait-face::before {
  content: "";
  position: absolute;
  top: 40%;
  right: -18%;
  width: 30%;
  height: 18%;
  border-radius: 50%;
  background: currentColor;
}

.portrait-hair {
  top: 13%;
  width: 47%;
  height: 29%;
  border-radius: 52% 46% 20% 30%;
  transform: translateX(-50%) rotate(-5deg);
  box-shadow: -7px 5px 0 -2px currentColor, 7px 4px 0 -3px currentColor;
}

.portrait-body {
  bottom: -10%;
  width: 82%;
  height: 51%;
  border-radius: 50% 50% 8% 8%;
  transform: translateX(-50%);
}

.hamilton .portrait-hair {
  width: 60%;
  height: 35%;
  box-shadow: -9px 6px 0 -2px currentColor, 9px 5px 0 -3px currentColor;
}

.note-copy small {
  margin-top: 1%;
  font-size: clamp(0.27rem, 0.68vw, 0.46rem);
  font-style: italic;
}

.note-copy b {
  position: absolute;
  bottom: 1%;
  font-size: clamp(0.52rem, 1.35vw, 0.88rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.price.in-view .note-ten {
  animation:
    note-ten-enter 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards,
    note-ten-float 8s ease-in-out 1.1s infinite;
}

.price.in-view .note-one {
  animation:
    note-one-enter 980ms cubic-bezier(0.22, 1, 0.36, 1) 140ms forwards,
    note-one-float 7.2s ease-in-out 1.3s infinite;
}

@keyframes note-ten-enter {
  from { opacity: 0; transform: translate3d(-80px, 50px, -100px) rotateX(18deg) rotateY(16deg) rotateZ(-8deg); }
  to { opacity: 1; transform: translate3d(0, 0, 0) rotateX(0) rotateY(0) rotateZ(-2deg); }
}

@keyframes note-one-enter {
  from { opacity: 0; transform: translate3d(90px, 70px, -70px) rotateX(20deg) rotateY(-18deg) rotateZ(8deg); }
  to { opacity: 1; transform: translate3d(0, 0, 24px) rotateX(0) rotateY(0) rotateZ(1deg); }
}

@keyframes note-ten-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotateX(0) rotateY(0) rotateZ(-2deg); }
  50% { transform: translate3d(-3px, -7px, 10px) rotateX(2deg) rotateY(-4deg) rotateZ(-3deg); }
}

@keyframes note-one-float {
  0%, 100% { transform: translate3d(0, 0, 24px) rotateX(0) rotateY(0) rotateZ(1deg); }
  50% { transform: translate3d(3px, -9px, 38px) rotateX(-3deg) rotateY(5deg) rotateZ(2deg); }
}

.price-caption {
  margin-top: clamp(25px, 5vh, 54px);
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  letter-spacing: 0.06em;
}

@media (max-width: 640px) {
  .price { padding: 4vh 0 6vh; }
  .price-title { margin-bottom: 28px; font-size: clamp(1.75rem, 8.5vw, 2.4rem); }
  .price-stage { width: 96%; aspect-ratio: 1.45 / 1; }
  .currency-note { width: 76%; }
  .note-ten { top: 1%; left: 1%; }
  .note-one { right: 1%; bottom: 1%; }
  .price-caption { margin-top: 24px; font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .price.in-view .currency-note {
    animation: none;
    opacity: 1;
  }
}
