/*
 * "What I didn't say out loud" thought-bubble sequence (home page).
 * The section is tall; its inner stage is sticky, and scroll progress reveals
 * one thought at a time around her head. At 860px and below the stage stops
 * pinning and the thoughts stack under her. Text lives in Elementor widgets;
 * the classes below are set on the containers in the Elementor panel.
 *
 *   .cc-zt          section (outer container)
 *   .cc-zt-sticky   pinned frame
 *   .cc-zt-head     kicker + heading
 *   .cc-zt-stage    figure + thoughts
 *   .cc-zt-fig      image widget
 *   .cc-zt-item     thought (add .cc-zt-l / .cc-zt-r and .cc-zt-1 … .cc-zt-4)
 */

.cc-zt {
  position: relative;
  display: block !important;
  height: 340vh;
  max-width: none !important;
  padding: 0 !important;
  background: #0c0909;
  overflow: clip; /* clip, not hidden: hidden would break the sticky stage */
}
.cc-zt .cc-zt-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: grid !important;
  grid-template-rows: auto 1fr;
  gap: 0 !important;
  isolation: isolate;
  padding: 0 !important;
}

/* red glow she stands in */
.cc-zt .cc-zt-sticky::before {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: auto !important;
  bottom: -14% !important;
  transform: translateX(-50%);
  width: min(120%, 68rem) !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  z-index: 0;
  pointer-events: none;
  opacity: 1 !important;
  background:
    radial-gradient(circle at 50% 62%, rgba(143, 26, 28, .5) 0%, rgba(127, 20, 22, .26) 32%, rgba(97, 12, 13, .1) 52%, rgba(12, 9, 9, 0) 72%),
    radial-gradient(circle at 50% 70%, rgba(213, 188, 132, .16) 0%, rgba(12, 9, 9, 0) 46%) !important;
}
/* dragon linework, top right */
.cc-zt .cc-zt-sticky::after {
  content: "" !important;
  position: absolute !important;
  right: -6% !important;
  top: 4% !important;
  left: auto !important;
  bottom: auto !important;
  width: min(52%, 40rem) !important;
  height: auto !important;
  aspect-ratio: 1584 / 672;
  z-index: 0;
  pointer-events: none;
  -webkit-mask: url(/wp-content/uploads/2026/09/dragon-1400-1.webp) no-repeat center / contain;
  mask: url(/wp-content/uploads/2026/09/dragon-1400-1.webp) no-repeat center / contain;
  background: linear-gradient(120deg, #d5bc84, #7f1416) !important;
  opacity: .08 !important;
}

.cc-zt .cc-zt-head {
  position: relative;
  z-index: 6;
  width: 100% !important;
  margin-inline: auto;
  padding: clamp(2.5rem, 7vh, 4.5rem) max(20px, 4vw) clamp(1.5rem, 4vh, 2.6rem) !important;
  display: grid !important;
  gap: 1rem !important;
  justify-items: center;
  text-align: center;
  background: linear-gradient(#0c0909 0%, #0c0909 66%, #0c090900 100%);
}
.cc-zt .cc-zt-kicker .elementor-heading-title {
  margin: 0;
  font-family: "Fregan Serif", "Aperitif Serif", Georgia, serif;
  font-size: clamp(16px, calc(14.72px + .25vw), 18px);
  font-weight: 500;
  line-height: normal;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #b49b62;
}
.cc-zt .cc-zt-title .elementor-heading-title {
  margin: 0 auto;
  max-width: 20ch;
  font-family: "Fregan Serif", "Aperitif Serif", Georgia, serif;
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.015em;
  color: #f2f0e3;
  text-transform: none;
  text-wrap: pretty;
}

.cc-zt .cc-zt-stage {
  position: relative;
  z-index: 2;
  display: block !important;
  min-height: 0;
  overflow: hidden;
  padding: clamp(.5rem, 2vh, 1.25rem) 0 0 !important;
}

.cc-zt .cc-zt-fig {
  position: absolute !important;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 1;
  height: 94%;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.cc-zt .cc-zt-fig > .elementor-widget-container { height: 100%; }
.cc-zt .cc-zt-fig img {
  display: block;
  height: 100% !important;
  width: auto !important;
  max-width: none !important;
  object-fit: contain;
  filter: drop-shadow(0 1.6rem 2.6rem rgba(0, 0, 0, .66));
}

/* the cloud */
.cc-zt .cc-zt-item {
  position: absolute !important;
  z-index: 4;
  display: block !important;
  margin: 0 !important;
  padding: 24px 28.8px !important;
  border-radius: 55.7px 61.4px 51.8px 65.3px / 49.9px 46.1px 59.5px 51.8px !important;
  text-align: center;
  background: radial-gradient(120% 100% at 30% 0%, #ffffff 0%, #fdfbf4 46%, #f4f1e4 100%) !important;
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 0 0 1px rgba(180, 155, 98, .85),
    0 0 0 6px rgba(180, 155, 98, .13),
    0 0 46px rgba(213, 188, 132, .3),
    0 31px 61px rgba(0, 0, 0, .58);
  will-change: opacity, transform;
}
.cc-zt .cc-zt-1 { left: 9%;  top: 6%;  width: 28% !important; }
.cc-zt .cc-zt-2 { right: 9%; top: 15%; width: 27% !important; }
.cc-zt .cc-zt-3 { left: 10%; top: 46%; width: 27% !important; }
.cc-zt .cc-zt-4 { right: 10%; top: 58%; width: 26% !important; }

.cc-zt .cc-zt-item .elementor-widget-heading { position: static !important; }
.cc-zt .cc-zt-item .elementor-heading-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  color: #14100f;
}

/* the trail of thought, stepping back toward her */
.cc-zt .cc-zt-item::before,
.cc-zt .cc-zt-item::after,
.cc-zt .cc-zt-item .elementor-widget-heading::after {
  content: "" !important;
  position: absolute !important;
  top: auto !important;
  border-radius: 50% !important;
  opacity: 1 !important;
  background: radial-gradient(120% 100% at 30% 0%, #ffffff, #f4f1e4) !important;
  box-shadow:
    0 0 0 1px rgba(180, 155, 98, .85),
    0 0 0 4px rgba(180, 155, 98, .12),
    0 0 1.2rem rgba(213, 188, 132, .28),
    0 .5rem 1.1rem rgba(0, 0, 0, .5);
  pointer-events: none;
}
.cc-zt .cc-zt-item::before { width: 17.3px !important; height: 17.3px !important; bottom: 25px !important; }
.cc-zt .cc-zt-item::after  { width: 10.6px !important; height: 10.6px !important; bottom: 8.6px !important; }
.cc-zt .cc-zt-item .elementor-widget-heading::after { width: 6.1px !important; height: 6.1px !important; bottom: -2.9px !important; }
.cc-zt .cc-zt-l::before { right: -21px !important; left: auto !important; }
.cc-zt .cc-zt-l::after  { right: -40px !important; left: auto !important; }
.cc-zt .cc-zt-l .elementor-widget-heading::after { right: -55.7px !important; left: auto !important; }
.cc-zt .cc-zt-r::before { left: -21px !important; right: auto !important; }
.cc-zt .cc-zt-r::after  { left: -40px !important; right: auto !important; }
.cc-zt .cc-zt-r .elementor-widget-heading::after { left: -55.7px !important; right: auto !important; }

/* each thought grows out from beside her head (only once the script runs) */
@media (min-width: 861px) {
  .cc-zt.is-armed .cc-zt-item {
    opacity: 0;
    pointer-events: none;
    transition: opacity .55s ease, transform .95s cubic-bezier(.18, .82, .24, 1);
  }
  .cc-zt.is-armed .cc-zt-l { transform-origin: 100% 100%; transform: translate3d(77px, 31px, 0) scale(.66); }
  .cc-zt.is-armed .cc-zt-r { transform-origin: 0% 100%;   transform: translate3d(-77px, 31px, 0) scale(.66); }
  .cc-zt.is-armed .cc-zt-item.is-on { opacity: 1; pointer-events: auto; transform: none; }
}

/* narrow screens: no pin, she stands above, thoughts stack below */
@media (max-width: 860px) {
  .cc-zt { height: auto; }
  /* stays relative so the glow/dragon pseudo-elements are clipped here, not
     against the section (which let the dragon widen the page on phones) */
  .cc-zt .cc-zt-sticky { position: relative; height: auto; overflow: hidden; }
  .cc-zt .cc-zt-sticky::after { width: 90% !important; right: -18% !important; opacity: .07 !important; }
  .cc-zt .cc-zt-stage {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 19.2px;
    overflow: visible;
    padding: 0 max(20px, 4vw) clamp(4rem, 9vh, 5rem) !important;
  }
  .cc-zt .cc-zt-fig {
    position: relative !important;
    left: auto;
    transform: none;
    height: auto;
    width: min(66vw, 320px) !important;
  }
  .cc-zt .cc-zt-fig img { width: 100% !important; height: auto !important; }
  .cc-zt .cc-zt-item {
    position: relative !important;
    left: auto; right: auto; top: auto;
    width: 100% !important;
    max-width: 480px;
    padding: 19.2px 23.2px !important;
  }
  .cc-zt .cc-zt-item .elementor-heading-title { font-size: 19.84px; }
  .cc-zt .cc-zt-item::before,
  .cc-zt .cc-zt-item::after,
  .cc-zt .cc-zt-item .elementor-widget-heading::after { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-zt.is-armed .cc-zt-item { opacity: 1; transform: none; transition: none; }
}
