/* Booking confirmation (/thank-you-1/) and 404 page. Desktop at 1440px, mobile at 390px. */

.js [data-anim="rise"] { transform: translateY(34px); transition: opacity .9s cubic-bezier(.16, 1, .3, 1) var(--d, 0s), transform 1s cubic-bezier(.16, 1, .3, 1) var(--d, 0s); }
.js [data-anim="rise"].is-in { transform: none; }
@keyframes ty-draw { to { stroke-dashoffset: 0; } }
@keyframes ty-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.ty-hero { position: relative; overflow: clip; }
.ty-hero__stage { height: auto; padding: 150px 101px 90px; text-align: center; }
.ty-check { width: 88px; height: 88px; fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ty-check circle { stroke-dasharray: 227; stroke-dashoffset: 227; animation: ty-draw .9s cubic-bezier(.65, 0, .35, 1) .2s forwards; }
.ty-check path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: ty-draw .5s cubic-bezier(.65, 0, .35, 1) 1s forwards; }
.ty-hero h1 { margin-top: 18px; animation: ty-up .9s cubic-bezier(.16, 1, .3, 1) .3s both; }
.ty-hero__p { margin-top: 18px; animation: ty-up .9s cubic-bezier(.16, 1, .3, 1) .45s both; }
.ty-hero__p2 { margin-top: 6px; animation: ty-up .9s cubic-bezier(.16, 1, .3, 1) .55s both; }
.ty-hero__clover { position: absolute; width: 150px; right: 8%; top: 120px; animation: lx-spin 50s linear infinite; }
.ty-hero__half { position: absolute; width: 140px; left: 7%; bottom: 60px; }
.ty-steps { margin: 50px auto 0; max-width: 860px; display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; position: relative; animation: ty-up .9s cubic-bezier(.16, 1, .3, 1) .7s both; }
.ty-steps::before { content: ""; position: absolute; left: 16.6%; right: 16.6%; top: 22px; height: 2px; background: rgba(40, 71, 52, .2); }
.ty-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 10px; }
.ty-steps__dot { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--cream); font-size: 18px; margin-bottom: 8px; }
.ty-steps__dot svg { width: 18px; height: 18px; fill: none; stroke: var(--cream); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.is-done .ty-steps__dot { background: var(--green); }
.is-next .ty-steps__dot { background: var(--white); box-shadow: 0 0 0 0 rgba(40, 71, 52, .35); animation: ty-pulse 2.4s ease-out 1.6s infinite; }
@keyframes ty-pulse { 0% { box-shadow: 0 0 0 0 rgba(40, 71, 52, .35); } 80%, 100% { box-shadow: 0 0 0 14px rgba(40, 71, 52, 0); } }
.ty-steps__n { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.ty-steps__t { font-size: 20px; line-height: 26px; max-width: 220px; }

/* ---------- Reviews ---------- */
.ty-reviews__stage { height: auto; padding: 100px 101px 110px; text-align: center; }
.ty-reviews__script { display: inline-block; }
.ty-reviews h2 { margin-top: 8px; }
.ty-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; text-align: left; align-items: start; }
.ty-q { padding: 34px 36px 32px; border-radius: 30px; transition: transform .3s ease-in-out; }
.ty-q--tall { grid-row: span 2; }
.ty-q:hover { transform: rotate(-2deg); }
.ty-q:nth-child(even):hover { transform: rotate(2deg); }
.ty-q__stars { display: flex; gap: 3px; }
.ty-q__stars svg { width: 18px; height: 18px; fill: var(--green); }
.ty-q blockquote { margin-top: 16px; font-size: 18.9px; line-height: 30.24px; }
.ty-q blockquote p + p { margin-top: 14px; }
.ty-q strong { font-weight: 600; }
.ty-q figcaption { margin-top: 26px; color: var(--brown); display: block; transform: rotate(-3deg); transform-origin: left center; }
.ty-grid .ty-q:last-child { grid-column: 1 / -1; }

/* ---------- Name their feelings ---------- */
.ty-name { overflow: clip; }
.ty-name__stage { height: auto; display: grid; grid-template-columns: 560px 1fr; align-items: center; gap: 80px; padding: 90px 101px 120px; }
.ty-name__media { position: relative; height: 560px; }
.ty-name__ring { position: absolute; width: 520px; left: 160px; top: -20px; }
.ty-name__block { position: absolute; width: 380px; left: -120px; bottom: -60px; }
.ty-name__photo { position: absolute; left: 40px; top: 60px; width: 440px; height: 440px; object-fit: contain; z-index: 1; }
.ty-name__copy h2 { max-width: 520px; }
.ty-name__copy p { margin-top: 22px; max-width: 520px; }

/* ---------- Contact ---------- */
.ty-contact { color: var(--cream); }
.ty-contact__stage { height: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding: 80px 101px 90px; }
.ty-contact__script { color: var(--peach); display: inline-block; }
.ty-contact__links { display: flex; gap: 14px; flex-wrap: wrap; }
.ty-contact__links a { display: flex; flex-direction: column; gap: 4px; padding: 18px 24px; border-radius: 22px; background: rgba(242, 242, 231, .08); font-size: 17px; transition: background-color .25s ease, transform .35s cubic-bezier(.16, 1, .3, 1); }
.ty-contact__links a span { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.ty-contact__links a:hover { background: rgba(242, 242, 231, .16); transform: translateY(-3px); }

/* ---------- 404 ---------- */
.nf__stage { height: auto; padding: 150px 101px 130px; text-align: center; }
.nf__art { position: relative; width: 560px; height: 250px; margin: 0 auto; }
.nf__num { position: relative; z-index: 2; display: block; font-size: 190px; line-height: 250px; }
.nf__s { position: absolute; z-index: 1; }
.nf__s--clover { width: 130px; left: -30px; top: -20px; animation: lx-spin 40s linear infinite; }
.nf__s--dome { width: 230px; right: -50px; bottom: -10px; }
.nf__s--ring { width: 120px; right: 30px; top: -30px; }
.nf__s--block { width: 70px; left: 70px; bottom: 0; }
.nf__num, .nf__stage h1, .nf__script, .nf__p, .nf__actions, .nf__links { animation: ty-up .9s cubic-bezier(.16, 1, .3, 1) both; }
.nf__stage h1 { animation-delay: .1s; margin-top: 10px; }
.nf__script { display: inline-block; margin-top: 34px; animation-delay: .05s; }
.nf__p { margin: 18px auto 0; max-width: 560px; animation-delay: .2s; }
.nf__actions { margin-top: 34px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; animation-delay: .3s; }
.btn.nf__btn { height: 50px; padding: 0 30px; }
.btn.nf__btn--quiet { background: var(--white); }
.btn.nf__btn--quiet:hover { background: var(--yellow); }
.nf__links { margin-top: 34px; display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; font-size: 16px; animation-delay: .4s; }
.nf__links a { text-decoration: underline; text-decoration-color: rgba(40, 71, 52, .3); text-underline-offset: 5px; }
.nf__links a:hover { text-decoration-color: currentColor; }

@media (prefers-reduced-motion: reduce) {
  .ty-check circle, .ty-check path { animation: none; stroke-dashoffset: 0; }
  .ty-hero h1, .ty-hero__p, .ty-hero__p2, .ty-steps, .nf__num, .nf__stage h1, .nf__script, .nf__p, .nf__actions, .nf__links { animation: none; }
  .ty-hero__clover, .nf__s--clover, .is-next .ty-steps__dot { animation: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 1023px) {
  .ty-hero__stage { padding: 50px 30px 56px; }
  .ty-check { width: 66px; height: 66px; }
  .ty-hero__clover { width: 80px; right: -20px; top: 20px; }
  .ty-hero__half { width: 70px; left: -10px; bottom: 20px; }
  .ty-steps { margin-top: 36px; grid-template-columns: 1fr; gap: 18px; text-align: left; }
  .ty-steps::before { left: 22px; right: auto; top: 20px; bottom: 20px; width: 2px; height: auto; }
  .ty-steps li { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; align-items: center; padding: 0; }
  .ty-steps__dot { grid-row: span 2; margin: 0; }
  .ty-steps__t { font-size: 18px; line-height: 23px; max-width: none; }
  .ty-reviews__stage { padding: 60px 30px 70px; }
  .ty-grid { margin-top: 32px; grid-template-columns: 1fr; gap: 18px; }
  .ty-q--tall { grid-row: auto; }
  .ty-grid .ty-q:last-child { grid-column: auto; }
  .ty-q { padding: 26px 24px; }
  .ty-q blockquote { font-size: 16.5px; line-height: 27px; }
  .ty-name__stage { display: block; padding: 50px 30px 70px; }
  .ty-name__media { height: 330px; }
  .ty-name__ring { width: 280px; left: 80px; top: -10px; }
  .ty-name__block { width: 200px; left: -60px; bottom: -30px; }
  .ty-name__photo { left: 20px; top: 40px; width: 270px; height: 270px; border-radius: 40px; }
  .ty-name__copy { margin-top: 30px; }
  .ty-contact__stage { display: block; padding: 56px 30px 64px; }
  .ty-contact__links { margin-top: 24px; flex-direction: column; }
  .nf__stage { padding: 50px 30px 80px; }
  .nf__art { width: 320px; height: 150px; }
  .nf__num { font-size: 110px; line-height: 150px; }
  .nf__s--clover { width: 74px; left: -14px; top: -10px; }
  .nf__s--dome { width: 130px; right: -30px; }
  .nf__s--ring { width: 70px; right: 20px; top: -20px; }
  .nf__s--block { width: 44px; left: 40px; }
  .btn.nf__btn { width: 330px; }
  .nf__links { gap: 18px; }
}
