/* =========================
   01. VARIABLES
========================= */

:root {
  --vf-cream: #F8F5F2;
  --vf-cream-soft: #F3F2EE;
  --vf-mist: #EAF4F4;
  --vf-blue: #12324A;
  --vf-blue-text: #16354A;
  --vf-blue-dark: #0F2A3A;
  --vf-yellow: #F4B63F;
  --vf-yellow-hover: #F7C45A;

  --ease-premium: cubic-bezier(.22,1,.36,1);

  --shadow-soft: 0 12px 30px rgba(23,58,86,.14);
  --shadow-stamp: 0 22px 32px rgba(0,0,0,.22);
}

/* =========================
   02. BASE
========================= */

/* Default — kõik tavalised Visit Finisterre lehed */
body {
  background: linear-gradient(
    180deg,
    var(--vf-cream) 0%,
    var(--vf-cream-soft) 20%,
    var(--vf-mist) 60%,
    var(--vf-mist) 100%
  ) !important;
}

/* Ainult Buy the End of the World leht */
body.page-end {
  background: var(--vf-blue) !important;
}

.t-record,
.t-record:not(.t-cover) {
  background-color: transparent !important;
}

/* =========================
   03. HEADER
========================= */

.t228,
.tmenu-mobile,
.tmenu {
  background: var(--vf-cream) !important;
}

.t228 {
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.t-menu__link-item {
  color: var(--vf-blue-text) !important;
  transition: color .2s ease, opacity .2s ease;
}

.t-menu__link-item:hover {
  color: var(--vf-blue-dark) !important;
  opacity: 1 !important;
}

.t-menu__link-item.t-active {
  color: var(--vf-blue-text) !important;
  font-weight: 800;
}

/* =========================
   04. POPUP / PRIVATE DOCUMENT
========================= */

#rec2411903763 .popup-title,
#rec2411903763 .popup-copy,
#rec2411903763 .popup-form,
#rec2411903763 .popup-micro {
  opacity: 0;
  animation: popupFadeUp .75s ease forwards;
}

#rec2411903763 .popup-title {
  animation-name: popupFadeDown;
  animation-delay: .12s;
}

#rec2411903763 .popup-copy {
  animation-delay: .22s;
}

#rec2411903763 .popup-form {
  animation-delay: .32s;
}

#rec2411903763 .popup-micro {
  animation-delay: .55s;
}

#rec2411903763 .popup-handnote {
  opacity: 0;
  overflow: visible !important;
  clip-path: inset(-30px 100% -30px -30px);
  animation: popupHandwrite 1.2s steps(24,end) forwards;
  animation-delay: .75s;
}

@keyframes popupFadeDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popupFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popupHandwrite {
  0% {
    opacity: 0;
    clip-path: inset(-30px 100% -30px -30px);
    transform: rotate(-7deg);
  }

  10% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    clip-path: inset(-30px -30px -30px -30px);
    transform: rotate(-4deg);
  }
}

/* Popup form focus */

#rec2411903763 input:focus,
#rec2411903763 select:focus,
#rec2411903763 textarea:focus {
  border-color: var(--vf-yellow) !important;
  box-shadow: 0 0 0 4px rgba(244,182,63,.18) !important;
  outline: none !important;
}

/* Popup submit button */

#rec2411903763 .t-submit {
  transition: all .25s ease !important;
}

#rec2411903763 .t-submit:hover {
  background-color: var(--vf-yellow-hover) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

/* Popup backdrop */

#rec2411903763 .t-popup {
  background-color: var(--vf-blue) !important;
}

#rec2411903763 .t-popup__bg {
  background-color: var(--vf-blue) !important;
  opacity: 1 !important;
}

#rec2411903763 .t-popup__container,
#rec2411903763 .t-popup__container .t396__artboard {
  background-color: transparent !important;
}

/* =========================
   05. SHARE FLOW BACKGROUNDS
========================= */
/* Buy the End page — make whole canvas dark */
body.page-end #allrecords,
body.page-end #tilda-page,
body.page-end .t-records {
  background: var(--vf-blue) !important;
  background-color: var(--vf-blue) !important;
}

.uc-share-intro-block,
.uc-share-choice,
.uc-share-stamps {
  position: relative;
  z-index: 2;
}

/* Specific share blocks — dark background */

#rec2411854873,
#rec2437629033,
#rec2426916893,
#rec2411854873 .t396__artboard,
#rec2437629033 .t396__artboard,
#rec2426916893 .t396__artboard,
#rec2411854873 .t396__carrier,
#rec2437629033 .t396__carrier,
#rec2426916893 .t396__carrier,
#rec2411854873 .t396__filter,
#rec2437629033 .t396__filter,
#rec2426916893 .t396__filter {
  background: var(--vf-blue) !important;
  background-color: var(--vf-blue) !important;
}

#rec2411854873,
#rec2437629033,
#rec2426916893 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border: 0 !important;
}

body.page-end .uc-share-choice,
body.page-end .uc-share-stamps,
body.page-end .uc-share-choice .t396__artboard,
body.page-end .uc-share-stamps .t396__artboard,
body.page-end .uc-share-choice .t396__carrier,
body.page-end .uc-share-stamps .t396__carrier,
body.page-end .uc-share-choice .t396__filter,
body.page-end .uc-share-stamps .t396__filter {
  background: var(--vf-blue) !important;
  background-color: var(--vf-blue) !important;
}

.uc-share-choice {
  padding-bottom: 0 !important;
  margin-bottom: -4px !important;
}

.uc-share-stamps {
  padding-top: 0 !important;
  margin-top: -4px !important;
}

/* =========================
   06. INTRO FADE OUT
========================= */

.uc-share-intro-block.share-fade-elements .tn-elem {
  animation: shareElementsOut 1.2s ease forwards;
}

@keyframes shareElementsOut {
  to {
    opacity: 0;
    transform: scale(.98);
    filter: blur(2px);
  }
}

/* =========================
   07. THINKING DOTS
========================= */

.thinking-dot {
  opacity: 0;
  display: inline-block;
  animation-duration: 3.6s;
  animation-iteration-count: 2;
  animation-fill-mode: forwards;
  animation-timing-function: ease-in-out;
  animation-play-state: paused;
}

.uc-share-choice.dots-start .thinking-dot {
  animation-play-state: running;
}

.dot1 {
  animation-name: dotOne;
}

.dot2 {
  animation-name: dotTwo;
}

.dot3 {
  animation-name: dotThree;
}

@keyframes dotOne {
  0%, 8% {
    opacity: 0;
  }

  16% {
    opacity: 1;
  }

  34% {
    opacity: .75;
  }

  52% {
    opacity: .35;
  }

  68%, 100% {
    opacity: 0;
  }
}

@keyframes dotTwo {
  0%, 22% {
    opacity: 0;
  }

  32% {
    opacity: 1;
  }

  50% {
    opacity: .7;
  }

  66% {
    opacity: .25;
  }

  82%, 100% {
    opacity: 0;
  }
}

@keyframes dotThree {
  0%, 38% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  68% {
    opacity: .7;
  }

  84% {
    opacity: .25;
  }

  100% {
    opacity: 0;
  }
}

/* =========================
   08. SHARE SCENE — STORY TEXT
   Narrative pacing
========================= */

/*
 * Kõik tekstid alguses peidus.
 */

.uc-share-stamps .share-title,
.uc-share-stamps .share-wave-line,
.uc-share-stamps .share-the-one,
.uc-share-stamps .share-best-stories {
  opacity: 0;
  transform: translateY(18px);

  will-change:
    opacity,
    transform;
}


/* Kui vana GOOD element on Tildas veel alles,
   ei lase sellel stseeni segada. */

.uc-share-stamps .share-good {
  display: none !important;
}


/* --------------------------------
   1. THEY WEREN'T RANDOM.
-------------------------------- */

.uc-share-stamps.stamps-start
.share-title {
  animation:
    shareTextIn 1.15s
    cubic-bezier(.22,1,.36,1)
    forwards
    .35s;
}


/* --------------------------------
   2. YELLOW WAVE
   väike visuaalne hingetõmme
-------------------------------- */

.uc-share-stamps.stamps-start
.share-wave-line {
  animation:
    shareTextIn .8s
    ease
    forwards
    1.35s;
}


/* --------------------------------
   3. NEITHER WAS THIS.
   oluline narratiivne beat
-------------------------------- */

.uc-share-stamps.stamps-start
.share-the-one {
  animation:
    shareTextIn 1.15s
    cubic-bezier(.22,1,.36,1)
    forwards
    2.55s;
}


/* --------------------------------
   4. YELLOW COPY
   Some stories already know...
-------------------------------- */

.uc-share-stamps.stamps-start
.share-best-stories {
  animation:
    shareTextIn 1.25s
    cubic-bezier(.22,1,.36,1)
    forwards
    4.15s;
}


@keyframes shareTextIn {

  0% {
    opacity: 0;
    transform: translateY(18px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }

}


/* =========================
   09. SHARE SCENE — STAMPS
   Only after story text
========================= */

.uc-share-stamps .stamp-whatsapp,
.uc-share-stamps .stamp-email,
.uc-share-stamps .stamp-link {
  opacity: 0;

  will-change:
    opacity,
    transform;
}


/* Initial positions */

.uc-share-stamps .stamp-whatsapp {
  transform:
    translateX(-45px)
    translateY(12px)
    rotate(-12deg);
}

.uc-share-stamps .stamp-email {
  transform:
    translateY(45px)
    rotate(3deg);
}

.uc-share-stamps .stamp-link {
  transform:
    translateX(45px)
    translateY(12px)
    rotate(12deg);
}


/* --------------------------------
   5. STAMP 1
-------------------------------- */

.uc-share-stamps.stamps-start
.stamp-whatsapp {
  animation:
    stampCardIn
    1.45s
    var(--ease-premium)
    forwards
    5.90s;
}


/* --------------------------------
   6. STAMP 2
-------------------------------- */

.uc-share-stamps.stamps-start
.stamp-email {
  animation:
    stampCardIn
    1.45s
    var(--ease-premium)
    forwards
    6.65s;
}


/* --------------------------------
   7. STAMP 3
-------------------------------- */

.uc-share-stamps.stamps-start
.stamp-link {
  animation:
    stampCardIn
    1.45s
    var(--ease-premium)
    forwards
    7.40s;
}


@keyframes stampCardIn {

  0% {
    opacity: 0;
  }

  55% {
    opacity: .85;
  }

  100% {
    opacity: 1;

    transform:
      translate(0,0)
      rotate(0deg);
  }

}


/* =========================
   10. SHARE SCENE —
   HANDWRITTEN NOTE
========================= */

.uc-share-stamps
.stamp-note {
  opacity: 0;

  clip-path:
    inset(0 100% 0 0);

  will-change:
    opacity,
    clip-path;
}


/*
 * JUST ONE PERSON
 *
 * Alles pärast seda,
 * kui kõik kolm stampi on kohal.
 */

.uc-share-stamps.stamps-start
.stamp-note {
  animation:
    noteWriteIn
    1.55s
    steps(32,end)
    forwards
    9.25s;
}


@keyframes noteWriteIn {

  0% {
    opacity: 0;

    clip-path:
      inset(0 100% 0 0);
  }

  8% {
    opacity: 1;
  }

  100% {
    opacity: 1;

    clip-path:
      inset(0 0 0 0);
  }

}


/* =========================
   11. SHARE SCENE —
   HANDWRITTEN UNDERLINE
========================= */

.uc-share-stamps
.stamp-note-line {
  opacity: 0;

  clip-path:
    inset(0 100% 0 0);
}


/*
 * Underline on viimane mikromoment.
 */

.uc-share-stamps.stamps-start
.stamp-note-line {
  animation:
    underlineReveal
    1.3s
    var(--ease-premium)
    forwards
    10.65s;
}


@keyframes underlineReveal {

  0% {
    opacity: 1;

    clip-path:
      inset(0 100% 0 0);
  }

  100% {
    opacity: 1;

    clip-path:
      inset(0 0 0 0);
  }

}

/* =========================
   12. STAMP HOVER — transform-safe version
========================= */

.uc-share-stamps .stamp-whatsapp,
.uc-share-stamps .stamp-email,
.uc-share-stamps .stamp-link {
  cursor: pointer;
  scale: 1;
  translate: 0 0;
  transition:
    scale .22s ease,
    translate .22s ease,
    filter .22s ease;
  will-change: scale, translate, filter;
}

/* subtle hover — ei kakle stampCardIn transform animatsiooniga */
.uc-share-stamps.stamps-start .stamp-whatsapp:hover,
.uc-share-stamps.stamps-start .stamp-email:hover,
.uc-share-stamps.stamps-start .stamp-link:hover {
  scale: 1.025;
  translate: 0 -5px;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.16));
}

/* =========================
   13. WORLD WALKS — FACT REVEAL
========================= */

/* LOCATION — written reveal, no blur */

#rec2456211613 .share-location {
  opacity: 0;
  clip-path: inset(-8px 100% -8px -8px);
}

/* RATINGS + EVERY DAY — soft reveal */

#rec2456211613 .share-booking,
#rec2456211613 .share-google,
#rec2456211613 .share-tripadvisor,
#rec2456211613 .share-every,
#rec2456211613 .share-day,
#rec2456211613 .share-dot {
  opacity: 0;
  filter: blur(4px);
  transform: scale(.985);
}

/* STILL WELCOMING — written reveal */

#rec2456211613 .share-still {
  opacity: 0;
  clip-path: inset(-8px 100% -8px -8px);
}

/* ---------- Location ---------- */

#rec2456211613.fact-start .share-location {
  animation: vfWriteReveal 4.8s steps(95,end) forwards .5s;
}

/* ---------- Ratings — 1 / 2 / 3 ---------- */

#rec2456211613.fact-start .share-booking {
  animation: vfSoftReveal 1s ease forwards 4.10s;
}

#rec2456211613.fact-start .share-google {
  animation: vfSoftReveal 1s ease forwards 5.55s;
}

#rec2456211613.fact-start .share-tripadvisor {
  animation: vfSoftReveal 1s ease forwards 7.00s;
}

/* ---------- Still welcoming people ---------- */

#rec2456211613.fact-start .share-still {
  animation: vfWriteReveal 2.4s steps(40,end) forwards 9.00s;
}

/* ---------- Every day. ---------- */

#rec2456211613.fact-start .share-every {
  animation: vfSoftReveal .85s ease forwards 12.25s;
}

#rec2456211613.fact-start .share-day {
  animation: vfSoftReveal .85s ease forwards 13.25s;
}

#rec2456211613.fact-start .share-dot {
  animation: vfSoftReveal .35s ease forwards 14.05s;
}

/* =========================
   KEYFRAMES
========================= */

@keyframes vfWriteReveal {
  0% {
    opacity: 0;
    clip-path: inset(-8px 100% -8px -8px);
  }

  8% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    clip-path: inset(-8px -8px -8px -8px);
  }
}

@keyframes vfSoftReveal {
  from {
    opacity: 0;
    filter: blur(4px);
    transform: scale(.985);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

/* =========================
   14. COPY LINK NOTICE
========================= */

.copy-link-notice {
  position: fixed;
  left: 50%;
  bottom: 90px;
  z-index: 99999;

  transform: translate(-50%, 16px);

  padding: 13px 22px;
  border-radius: 999px;

  background: #F7F2EA;
  color: #15364F;

  border: 1px solid rgba(21, 54, 79, .18);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .22);

  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .04em;

  opacity: 0;
  pointer-events: none;

  transition:
    opacity .3s ease,
    transform .3s ease;
}

.copy-link-notice.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* =========================
   15. JOURNAL POPUP — SUCCESS SCENE
========================= */

/* Kõik success-elemendid alguses peidus */
.uc-journal-popup .journal-success-scene {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Vormistseen alguses nähtav */
.uc-journal-popup .journal-form-scene {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transition:
    opacity .55s ease,
    visibility 0s linear 0s;
}

/* Vorm kaob */
.uc-journal-popup.success-mode .journal-form-scene {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;

  transition:
    opacity .55s ease,
    visibility 0s linear .55s;
}

/* Success-stseen muutub aktiivseks */
.uc-journal-popup.success-mode .journal-success-scene {
  visibility: visible;
  pointer-events: auto;
}

/* =========================
   SUCCESS — JOURNAL MOCKUP
   Smooth opacity-only reveal
========================= */

.uc-journal-popup .journal-success-journal {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  will-change: opacity;
}

.uc-journal-popup.success-mode .journal-success-journal {
  visibility: visible;
  animation: journalMockupReveal 3.2s ease-in-out forwards .55s;
}

@keyframes journalMockupReveal {
  0% {
    opacity: 0;
  }

  18% {
    opacity: .06;
  }

  42% {
    opacity: .28;
  }

  68% {
    opacity: .62;
  }

  86% {
    opacity: .86;
  }

  100% {
    opacity: 1;
  }
}

/* =========================
   SUCCESS — TITLE
========================= */

.uc-journal-popup.success-mode .journal-success-title {
  animation: journalTextIn 1.35s ease forwards 3.25s;
}

/* =========================
   SUCCESS — COPY
========================= */

.uc-journal-popup.success-mode .journal-success-copy {
  animation: journalTextIn 1.35s ease forwards 4.20s;
}

/* =========================
   SUCCESS — FOOTER
========================= */

.uc-journal-popup.success-mode .journal-success-footer {
  animation: journalTextIn 1.05s ease forwards 5.25s;
}

/* =========================
   SUCCESS — HANDWRITTEN NOTE
   next stop + : + your inbox
========================= */

.uc-journal-popup .journal-note-next,
.uc-journal-popup .journal-note-dot-1,
.uc-journal-popup .journal-note-dot-2,
.uc-journal-popup .journal-note-inbox {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  will-change: opacity, clip-path, transform;
}

/* 1. next stop */
.uc-journal-popup.success-mode .journal-note-next {
  visibility: visible;

  animation:
    journalWriteText 1.9s steps(32, end)
    forwards 6.70s;
}

/* 2. kooloni esimene punkt */
.uc-journal-popup.success-mode .journal-note-dot-1 {
  visibility: visible;

  animation:
    journalWriteDot .30s ease-out
    forwards 8.75s;
}

/* 3. kooloni teine punkt */
.uc-journal-popup.success-mode .journal-note-dot-2 {
  visibility: visible;

  animation:
    journalWriteDot .30s ease-out
    forwards 9.18s;
}

/* 4. your inbox pärast väikest pausi */
.uc-journal-popup.success-mode .journal-note-inbox {
  visibility: visible;

  animation:
    journalWriteText 2.2s steps(38, end)
    forwards 10.10s;
}

/* =========================
   SUCCESS — KEYFRAMES
========================= */

@keyframes journalTextIn {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes journalWriteText {
  0% {
    opacity: 0;
    clip-path: inset(-16px 100% -16px -16px);
  }

  4% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    clip-path: inset(-16px -16px -16px -16px);
  }
}

@keyframes journalWriteDot {
  0% {
    opacity: 0;
    transform: scale(.12);
  }

  65% {
    opacity: 1;
    transform: scale(1.10);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* =========================
   FORM SCENE — HANDWRITTEN NOTE
   This stays / between us
========================= */

.uc-journal-popup .popup-handnote-1,
.uc-journal-popup .popup-handnote-2 {
  opacity: 0;
  visibility: hidden;
  clip-path: inset(-16px 100% -16px -16px);
  pointer-events: none;
  will-change: opacity, clip-path;
}

/* Esimene rida: This stays */
.t-popup_show .uc-journal-popup .popup-handnote-1 {
  visibility: visible;
  animation:
    popupHandwriteLine 1.35s steps(28,end)
    forwards 1.35s;
}

/* Teine rida: between us */
.t-popup_show .uc-journal-popup .popup-handnote-2 {
  visibility: visible;
  animation:
    popupHandwriteLine 1.45s steps(32,end)
    forwards 2.90s;
}

@keyframes popupHandwriteLine {
  0% {
    opacity: 0;
    clip-path: inset(-16px 100% -16px -16px);
  }

  4% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    clip-path: inset(-16px -16px -16px -16px);
  }
}

/* =========================
   TILDA SUCCESS BOX PEITU
========================= */

.uc-journal-popup .t-form__successbox,
.uc-journal-popup .js-successbox {
  display: none !important;
}

/* =========================
   FOOTER - E-POST ON HOOVER
========================= */
#rec2464358683 a,
#rec2464358683 a:visited{
    color:#F4B63F !important;
    transition:color .25s ease;
    text-decoration:underline;
}

#rec2464358683 a:hover{
    color:#FFD06A !important;
}

/* =========================================================
   16. BUY THE END — POST-IT WALL
   Responsive component
========================================================= */

body.page-end .identity-flip-wall {
  position: relative;
  width: 760px;
  height: 560px;
  max-width: 100%;
  overflow: visible;
}

body.page-end .identity-flip-wall .flip-card {
  position: absolute;

  width: 270px;
  height: 305px;

  padding: 0;
  border: 0;
  appearance: none;
  -webkit-appearance: none;

  background: transparent;

  cursor: pointer;

  perspective: 1100px;
  transform-origin: center center;

  transition:
    transform 280ms cubic-bezier(.22,1,.36,1),
    filter 280ms ease;

  -webkit-tap-highlight-color: transparent;

  /*
   * Lubab telefonis vertikaalselt scrollida.
   * Kaart ei kaaperda lehe scrolli.
   */
  touch-action: pan-y;
}

body.page-end .identity-flip-wall .flip-card:focus {
  outline: none;
}

body.page-end .identity-flip-wall .flip-card:focus-visible {
  outline: 2px solid rgba(244,182,63,.8);
  outline-offset: 5px;
}

body.page-end .identity-flip-wall .flip-inner {
  position: relative;

  display: block;

  width: 100%;
  height: 100%;

  transform-style: preserve-3d;

  transition:
    transform 700ms cubic-bezier(.16,1,.3,1);

  will-change: transform;
}

body.page-end .identity-flip-wall .flip-card.is-flipped .flip-inner {
  transform: rotateY(180deg);
}

body.page-end .identity-flip-wall .flip-card.is-returning .flip-inner {
  transition:
    transform 900ms cubic-bezier(.16,1,.3,1);
}

body.page-end .identity-flip-wall .flip-face {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: contain;

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;

  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

body.page-end .identity-flip-wall .flip-back {
  transform: rotateY(180deg);
}

/* =========================================================
   DESKTOP — 981px+
========================================================= */

@media (min-width: 981px) {

  body.page-end .card-hospitality {
    left: 35px;
    top: 25px;
    transform: rotate(-4deg);
  }

  body.page-end .card-creative {
    left: 390px;
    top: 10px;
    transform: rotate(5deg);
  }

  body.page-end .card-atlantic {
    left: 55px;
    top: 280px;
    transform: rotate(16deg);
  }

  body.page-end .card-legacy {
    left: 345px;
    top: 255px;
    transform: rotate(1deg);
  }

}

/* Hover ainult seadmetel, kus hover päriselt olemas */

@media
  (min-width: 981px)
  and (hover: hover)
  and (pointer: fine) {

  body.page-end .card-hospitality:hover {
    transform:
      rotate(-1deg)
      translateY(-7px)
      scale(1.025);
  }

  body.page-end .card-creative:hover {
    transform:
      rotate(1deg)
      translateY(-7px)
      scale(1.025);
  }

  body.page-end .card-atlantic:hover {
    transform:
      rotate(7deg)
      translateY(-7px)
      scale(1.025);
  }

  body.page-end .card-legacy:hover {
    transform:
      rotate(0deg)
      translateY(-7px)
      scale(1.025);
  }

}

/* =========================================================
   TABLET — 641–980px
   2 x 2 composition
========================================================= */

@media (min-width: 641px) and (max-width: 980px) {

  body.page-end .identity-flip-wall {
    width: min(680px, 92vw);
    height: clamp(480px, 70vw, 565px);

    margin-left: auto;
    margin-right: auto;
  }

  body.page-end .identity-flip-wall .flip-card {
    width: clamp(205px, 30vw, 250px);
    height: clamp(232px, 34vw, 282px);
  }

  body.page-end .card-hospitality {
    left: 5%;
    top: 18px;

    transform: rotate(-4deg);
  }

  body.page-end .card-creative {
    left: auto;
    right: 5%;
    top: 4px;

    transform: rotate(4deg);
  }

  body.page-end .card-atlantic {
    left: 7%;
    top: 245px;

    transform: rotate(7deg);
  }

  body.page-end .card-legacy {
    left: auto;
    right: 7%;
    top: 228px;

    transform: rotate(-2deg);
  }

}

/* =========================================================
   MOBILE — 0–640px
   One card at a time vertically
========================================================= */

@media (max-width: 640px) {

  body.page-end .identity-flip-wall {
    width: 100%;

    /*
     * Kaartide suuruse põhjal arvutatud.
     * Vajadusel timmime hiljem Zero Blocki kõrgusega koos.
     */
    height: clamp(850px, 242vw, 1010px);

    margin-left: auto;
    margin-right: auto;
  }

  body.page-end .identity-flip-wall .flip-card {
    width: clamp(218px, 72vw, 260px);
    height: clamp(246px, 81vw, 294px);

    left: 50% !important;
    right: auto !important;
  }

  /* Kergelt vasak / parem — mitte steriilne card-stack */

  body.page-end .card-hospitality {
    top: 0;

    transform:
      translateX(-54%)
      rotate(-4deg);
  }

  body.page-end .card-creative {
    top: clamp(205px, 59vw, 238px);

    transform:
      translateX(-45%)
      rotate(4deg);
  }

  body.page-end .card-atlantic {
    top: clamp(410px, 118vw, 476px);

    transform:
      translateX(-55%)
      rotate(-3deg);
  }

  body.page-end .card-legacy {
    top: clamp(615px, 177vw, 714px);

    transform:
      translateX(-44%)
      rotate(3deg);
  }

  /*
   * Touch-state:
   * päris väike reaktsioon, mitte Disneyland.
   */

  body.page-end .card-hospitality.is-touching {
    transform:
      translateX(-54%)
      translateY(-5px)
      rotate(-1deg)
      scale(1.015);
  }

  body.page-end .card-creative.is-touching {
    transform:
      translateX(-45%)
      translateY(-5px)
      rotate(1deg)
      scale(1.015);
  }

  body.page-end .card-atlantic.is-touching {
    transform:
      translateX(-55%)
      translateY(-5px)
      rotate(-1deg)
      scale(1.015);
  }

  body.page-end .card-legacy.is-touching {
    transform:
      translateX(-44%)
      translateY(-5px)
      rotate(1deg)
      scale(1.015);
  }

}

/* =========================================================
   VERY SMALL MOBILE — <= 380px
========================================================= */

@media (max-width: 380px) {

  body.page-end .identity-flip-wall {
    height: 880px;
  }

  body.page-end .identity-flip-wall .flip-card {
    width: 228px;
    height: 258px;
  }

  body.page-end .card-hospitality {
    top: 0;
  }

  body.page-end .card-creative {
    top: 205px;
  }

  body.page-end .card-atlantic {
    top: 410px;
  }

  body.page-end .card-legacy {
    top: 615px;
  }

}

/* =========================================================
   17. BUY THE END — MOBILE / TABLET POLISH
========================================================= */

@media (max-width: 980px) {

  body.page-end {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
  }

  /* -------------------------
     POPUP
  ------------------------- */

  body.page-end #rec2411903763 .t-popup__container {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.page-end #rec2411903763 input,
  body.page-end #rec2411903763 select,
  body.page-end #rec2411903763 textarea {
    /*
     * iOS ei zoomi inputi puudutamisel.
     */
    font-size: 16px !important;
  }

  body.page-end #rec2411903763 .t-submit:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  body.page-end #rec2411903763 .t-submit:active {
    transform: scale(.985) !important;
  }

  /* -------------------------
     STAMPS
  ------------------------- */

  body.page-end .uc-share-stamps .stamp-whatsapp,
  body.page-end .uc-share-stamps .stamp-email,
  body.page-end .uc-share-stamps .stamp-link {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

}

/* Touch-only stamp feedback */

@media
  (max-width: 980px)
  and (hover: none)
  and (pointer: coarse) {

  body.page-end
  .uc-share-stamps.stamps-start
  .stamp-whatsapp:hover,

  body.page-end
  .uc-share-stamps.stamps-start
  .stamp-email:hover,

  body.page-end
  .uc-share-stamps.stamps-start
  .stamp-link:hover {
    scale: 1;
    translate: 0 0;
    filter: none;
  }

  body.page-end
  .uc-share-stamps.stamps-start
  .stamp-whatsapp:active,

  body.page-end
  .uc-share-stamps.stamps-start
  .stamp-email:active,

  body.page-end
  .uc-share-stamps.stamps-start
  .stamp-link:active {
    scale: .975;
    translate: 0 2px;
  }

}

/* =========================================================
   18. COPY NOTICE — MOBILE
========================================================= */

@media (max-width: 980px) {

  body.page-end .copy-link-notice {
    left: 16px;
    right: 16px;

    bottom: 24px;

    width: auto;
    max-width: none;

    transform: translateY(14px);

    padding: 12px 16px;

    text-align: center;

    font-size: 12px;
    line-height: 1.35;
  }

  body.page-end .copy-link-notice.is-visible {
    transform: translateY(0);
  }

}

@media (max-width: 480px) {

  body.page-end .copy-link-notice {
    left: 12px;
    right: 12px;

    bottom: 18px;

    padding: 11px 14px;

    font-size: 11px;
  }

}

/* =========================================================
   19. ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

  body.page-end .identity-flip-wall *,
  body.page-end .uc-share-choice *,
  body.page-end .uc-share-stamps * {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
  }

}

/* =========================================================
   20. JOURNAL POPUP — SUCCESS CONTROLS
   Journal label → Close ×
   Continue exploring → delayed CTA
========================================================= */


/* -------------------------
   SHARED
------------------------- */

body.page-end .uc-journal-popup .popup-journal-label,
body.page-end .uc-journal-popup .popup-close-btn,
body.page-end .uc-journal-popup .popup-continue {
  transition:
    opacity .45s ease,
    transform .45s cubic-bezier(.22,1,.36,1);

  will-change: opacity, transform;
}


/* =========================================================
   NORMAL / FORM VIEW
========================================================= */


/* Opportunity Journal / No. 001 */

body.page-end
.uc-journal-popup
.popup-journal-label {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform: translateY(0);
}


/* Close × hidden */

body.page-end
.uc-journal-popup
.popup-close-btn {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(-5px);

  cursor: pointer;

  -webkit-tap-highlight-color: transparent;
}


/* Continue exploring hidden */

body.page-end
.uc-journal-popup
.popup-continue {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(10px);

  cursor: pointer;

  -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   SUCCESS VIEW
========================================================= */


/* Opportunity Journal / No.001 fades away */

body.page-end
.uc-journal-popup.success-mode
.popup-journal-label {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(-4px);
}


/* Close × jääb success-view alguses veel peitu */

body.page-end
.uc-journal-popup.success-mode
.popup-close-btn {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(-5px);
}


/* Close × ilmub alles siis,
   kui JS lisab .is-visible */

body.page-end
.uc-journal-popup.success-mode
.popup-close-btn.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform: translateY(0);
}


/* =========================================================
   CONTINUE EXPLORING
   JS lisab .is-visible käsikirja järel
========================================================= */

body.page-end
.uc-journal-popup.success-mode
.popup-continue {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(8px);
}


/* Continue exploring → ilmub hiljem */

body.page-end
.uc-journal-popup.success-mode
.popup-continue.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform: translateY(0);
}
/* =========================================================
   DESKTOP HOVER
========================================================= */

@media (hover: hover) and (pointer: fine) {

  body.page-end
  .uc-journal-popup.success-mode
  .popup-close-btn:hover {
    opacity: .62;
  }

  body.page-end
  .uc-journal-popup.success-mode
  .popup-continue.is-visible:hover {
    transform: translateX(4px);
  }

}


/* =========================================================
   TOUCH
========================================================= */

@media (hover: none), (pointer: coarse) {

  body.page-end
  .uc-journal-popup
  .popup-close-btn,

  body.page-end
  .uc-journal-popup
  .popup-continue {
    touch-action: manipulation;
  }

  body.page-end
  .uc-journal-popup.success-mode
  .popup-close-btn:active {
    opacity: .6;
  }

  body.page-end
  .uc-journal-popup.success-mode
  .popup-continue.is-visible:active {
    transform: translateX(2px);
  }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  body.page-end
  .uc-journal-popup
  .popup-journal-label,

  body.page-end
  .uc-journal-popup
  .popup-close-btn,

  body.page-end
  .uc-journal-popup
  .popup-continue {
    transition-duration: .01ms !important;
  }

}

/* =========================================================
   FINAL QUESTION — SCROLL DRIVEN REVEAL
========================================================= */

body.page-end
.uc-final-question
.final-question-part-1,

body.page-end
.uc-final-question
.final-question-part-2 {

  opacity: 0;

  transform: translateY(38px);

  will-change:
    opacity,
    transform;

}


/* Safari compositing polish */

body.page-end
.uc-final-question
.final-question-part-1,

body.page-end
.uc-final-question
.final-question-part-2 {

  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;

  transform-style: preserve-3d;
}