/* ADD preview: the top of the page as one held scene (11 Nov 2026).
   .story is tall; .story__stage stays on screen while you scroll through it, and story.js drives
   everything inside from one scroll position. Pictures, text, colors and buttons are the theme's own. */

.story {
  position: relative;
  width: 100%;
  background: #fff;
  z-index: 2;
}
.story__stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #fff;
}
.story__room {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: opacity;
}
/* the theme's sections that the scene replaces */
.story ~ .hero,
.story ~ .phone,
.story ~ .about {
  display: none !important;
}

/* header rides on the scene */
.story__stage > .header {
  position: absolute;
  top: 0;
  left: 0;
}

/* ---------- video ring ---------- */
.story .scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.story .drum {
  position: absolute;
  left: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}
.story .card {
  position: absolute;
  overflow: hidden;
  background-color: #111;
  background-size: cover;
  background-position: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, opacity;
  opacity: 0;
}
.story .card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0) 20%, rgba(0,0,0,0.04) 42%, rgba(0,0,0,0.14) 68%, rgba(0,0,0,0.32) 100%),
    radial-gradient(ellipse 120% 58% at 50% 104%, rgba(0,0,0,0.26) 0%, rgba(0,0,0,0.12) 36%, rgba(0,0,0,0) 72%),
    radial-gradient(ellipse 120% 58% at 50% -4%, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.08) 34%, rgba(0,0,0,0) 68%);
}
.story .card__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
}
.story .card__logo {
  position: absolute;
  top: calc(var(--cw) * (0.05 + var(--in, 0) * 0.13));
  left: calc(var(--cw) * (0.05 + var(--in, 0) * 0.05));
  z-index: 12;
  width: calc(var(--cw) * 0.31);
  height: calc(var(--cw) * 0.31);
  object-fit: contain;
  pointer-events: none;
}
.story .card__stat {
  position: absolute;
  bottom: calc(var(--cw) * (0.06 + var(--in, 0) * 0.17));
  left: 50%;
  transform: translateX(-50%);
  z-index: 11;
  display: inline-flex;
  align-items: center;
  flex-direction: column;
  white-space: nowrap;
  font-family: "Inter", "Montserrat", sans-serif;
  color: #fff;
  font-size: calc(var(--cw) * 0.113);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.03em;
  text-align: center;
  text-shadow: 0 10px 30px rgba(0,0,0,0.32);
}
.story .card__stat p {
  font-weight: 300;
  text-transform: uppercase;
  font-size: calc(var(--cw) * 0.051);
  margin: calc(var(--cw) * 0.01) 0 0;
  letter-spacing: 0.15em;
}

/* ---------- marble: resting statue + transformation frames ---------- */
.story .hero__image {
  position: absolute;
  left: 50%;
  bottom: auto;
  max-width: none;
  min-width: 0;
  width: auto;
  z-index: 4;
}
.story__marble {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  pointer-events: none;
  visibility: hidden;
  will-change: transform, opacity;
}

/* ---------- headline, button ---------- */
.story .hero__text {
  z-index: 6;
  will-change: transform, opacity;
}
.story .hero__cta {
  bottom: 4vh;
  z-index: 7;
}

/* ---------- LET ART / TELL YOUR STORY ---------- */
.story .text-carousel-title {
  position: absolute;
  top: 50%;
  margin: 0;
  z-index: 5;
  flex-direction: column;
  line-height: 1;
  pointer-events: none;
}
.story .carousel-title-1 { left: 17%; transform: translate(-50%, -50%); }
.story .carousel-title-2 { left: 83%; transform: translate(-50%, -50%); }
.story .text-carousel-title .ln { display: block; white-space: nowrap; }
.story .text-carousel-title .ch { display: inline-block; opacity: 0; will-change: transform, opacity; }

/* ---------- One Brief ---------- */
.story__brief {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.story__brief::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 0, 0, 0.04) 0%, transparent 70%);
  opacity: var(--brief, 0);
}
.story__brief .container { width: 100%; }
.story__brief .about__inner::before,
.story__brief .about__inner::after,
.story__brief .about__mob-title {
  opacity: var(--brief, 0);
}
.story__brief .about-blocks__item {
  will-change: transform, opacity;
}
.story__brief .about-blocks__item video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story__brief.is-live { pointer-events: auto; }

@media (min-width: 1640px) {
  .story__brief::before { width: 700px; height: 700px; }
}
@media (max-width: 767px) {
  .story__brief::before { width: 220px; height: 220px; }
  .story .hero__cta { bottom: 5vh; }
  /* phones: the two lines sit above and below the hand */
  .story .text-carousel-title {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 0.28em;
    left: 50%;
    width: 100%;
    max-width: none;
    font-size: 12.4vw;              /* the same size above and below the hand */
  }
  .story .carousel-title-1 { top: 15%; transform: translate(-50%, -50%); }
  .story .carousel-title-2 { top: 91%; transform: translate(-50%, -50%); }
}
@media (max-width: 440px) {
  .story__brief::before { display: none; }
  .story__brief .about-blocks { min-height: 0; }
}

/* ---------- the thread from One Brief down into How It Works ---------- */
.story__thread {
  position: absolute;
  left: calc(50% - 0.5px);
  top: 50%;
  width: 1px;
  height: 0;
  background-color: rgba(0, 0, 0, 0.44);
  z-index: 9;
  pointer-events: none;
}
.story__thread-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #111;
  opacity: 0;
  z-index: 10;
  pointer-events: none;
}
.steps {
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  left: calc(50% - 0.5px);
  top: 0;
  width: 1px;
  height: 96px;
  background-color: rgba(0, 0, 0, 0.44);
  pointer-events: none;
}
@media (max-width: 1024px) { .steps::before { height: 78px; } }
@media (max-width: 768px) { .steps::before { height: 58px; } }

/* ---------- thread from the brand logos down to the statue's scene ---------- */
.company-work {
  position: relative;
}
.company-work::after {
  content: "";
  position: absolute;
  left: calc(50% - 0.5px);
  top: calc(100% + 18px);
  width: 1px;
  height: 64px;
  background-color: rgba(0, 0, 0, 0.44);
  transform-origin: 50% 0;
  transform: scaleY(var(--thread, 0));
  pointer-events: none;
}
@media (max-width: 440px) {
  .company-work::after { height: 36px; top: calc(100% + 10px); }
}

/* ---------- small details ---------- */
.story__shadow {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(52, 44, 36, 0.34) 0%, rgba(52, 44, 36, 0.16) 38%, rgba(52, 44, 36, 0) 70%);
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}
.story__shine {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
}
.story__shine i {
  position: absolute;
  top: -10%;
  left: 0;
  width: 45%;
  height: 120%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,0) 100%);
}
.story__hint {
  position: absolute;
  right: 44px;
  bottom: 36px;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #111;
  opacity: 0;
  pointer-events: none;
}
.story__hint i {
  position: relative;
  display: block;
  width: 1px;
  height: 44px;
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.story__hint i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 45%;
  background: #111;
  animation: story-hint 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes story-hint {
  0% { transform: translateY(-110%); }
  100% { transform: translateY(240%); }
}
@media (max-width: 767px) {
  .story__hint { right: 18px; bottom: 22px; font-size: 9px; }
  .story__hint i { height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .story__hint i::after { animation: none; }
}

/* ---------- phone -> brush, and the line the brush paints (11 Nov 2026) ---------- */
.story__off {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  background: #111;
  opacity: 0;
  pointer-events: none;
}
.story__ink {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;                 /* behind the marble hand and behind the cards */
  overflow: visible;
  pointer-events: none;
  opacity: 0;
  transform-origin: 50% 50%;
}
/* the stroke itself: a filled brush shape with a hairline of bare paper in it */
.story__ink .ink-body {
  fill: #121212;
  fill-opacity: 0.8;
  stroke: none;
}
.story__ink .ink-body--fade {
  fill: url(#story-stem-fade);
  fill-opacity: 1;
}
.story__ink .ink-gap {
  fill: none;
  stroke: #fff;
  stroke-width: 0.55;
  stroke-opacity: 0.9;
  stroke-dasharray: 16 44 34 28 9 76 24 38;
}
/* the plain line in the mask that uncovers the stroke as you scroll */
.story__ink .ink-reveal {
  fill: none;
  stroke: #fff;
  stroke-width: 16;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* the old circle-and-eye drawing (the same one as Artist Activation) makes way for the painted line */
.story__brief .about__svg {
  display: none;
}

/* ---------- contact shadow under the statue's base ---------- */
.story__ground {
  position: absolute;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
}
.story__ground > div {
  position: absolute;
  inset: 0;
}
.story__ground i {
  position: absolute;
  inset: 0;
  background: #1c1510;
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  clip-path: inset(82% 0 0 0);          /* only the base */
}
.story__ground-a {                       /* tight and dark, hugging the bottom edge */
  filter: blur(5px);
  transform: translateY(1%);
  opacity: 0.75;
}
.story__ground-b {                       /* wider and softer */
  filter: blur(16px);
  transform: translateY(2.6%) scaleX(1.05);
  opacity: 0.4;
}
.story__ink--stem {
  opacity: 0;
}
.story__ink--stem .ink-reveal {
  stroke-linecap: butt;
}
/* drops of paint beside the stroke: each lands as the stroke passes it */
.story__ink .ink-drop {
  fill: #121212;
  fill-opacity: 0.8;
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transform: scale(0);
  transition: transform 0.28s cubic-bezier(0.2, 1.7, 0.4, 1);
}
.story__ink .ink-drop.is-on {
  transform: scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .story__ink .ink-drop { transition: none; }
}
.story__ink .ink-run {
  fill: #121212;
  fill-opacity: 0.85;
  opacity: 0;
}

/* ---------- One Brief on phones: two tidy columns, the words in the middle (11 Nov 2026) ---------- */
@media (max-width: 767px) {
  .story__brief .container,
  .story__brief .about__inner {
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 0;
    padding: 0;
    margin: 0;
  }
  .story__brief .about-blocks {
    --ob-w: min(150px, 37vw);
    --ob-gap: min(70px, 16vw);
    --ob-h: min(196px, calc((100svh - 72px - 30px - 36px) / 4));
    display: grid;
    grid-template-columns: repeat(2, var(--ob-w));
    grid-template-rows: var(--ob-h) var(--ob-h) 72px var(--ob-h) var(--ob-h);
    column-gap: var(--ob-gap);
    row-gap: 10px;
    justify-content: center;
    align-content: center;
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 0;
    margin: 0;
    padding: 0;
  }
  .story__brief .about-blocks__item {
    position: relative;
    inset: auto;
    width: var(--ob-w);
    height: var(--ob-h);
    margin: 0;
    transform: none;
    border-radius: 14px;
  }
  .story__brief .about-blocks__item:nth-child(1) { grid-area: 1 / 1; }
  .story__brief .about-blocks__item:nth-child(2) { grid-area: 1 / 2; }
  .story__brief .about-blocks__item:nth-child(3) { grid-area: 2 / 1; }
  .story__brief .about-blocks__item:nth-child(4) { grid-area: 2 / 2; }
  .story__brief .about-blocks__item:nth-child(5) { grid-area: 4 / 1; }
  .story__brief .about-blocks__item:nth-child(6) { grid-area: 4 / 2; }
  .story__brief .about-blocks__item:nth-child(7) { grid-area: 5 / 1; }
  .story__brief .about-blocks__item:nth-child(8) { grid-area: 5 / 2; }
  .story__brief .about-blocks__item:nth-child(n + 9) { display: none; }
}

/* ---------- liquid glass frames (11 Nov): each wall video sits in a clear glass frame with a bright rim,
   thickness on its near side, a shadow on the wall and a shine that slides as the wall turns ---------- */
.story .card {
  overflow: visible;
}
.story .card::before {
  content: "";
  position: absolute;
  inset: calc(var(--cw) * -0.026 * var(--k, 1));
  border-radius: calc(var(--cw) * 0.126);
  z-index: -1;
  pointer-events: none;
  opacity: var(--k, 1);
  /* clear glass: almost no fill, the light sits on two opposite corners like Apple's liquid glass */
  background:
    linear-gradient(135deg, rgba(255,255,255,0.42) 0%, rgba(255,255,255,0.1) 22%, rgba(255,255,255,0.03) 50%, rgba(255,255,255,0.1) 78%, rgba(255,255,255,0.3) 100%);
  -webkit-backdrop-filter: blur(6px) saturate(180%) brightness(1.06);
          backdrop-filter: blur(6px) saturate(180%) brightness(1.06);
  box-shadow:
    inset 1px 1px 0.5px rgba(255, 255, 255, 0.95),
    inset -1px -1px 0.5px rgba(255, 255, 255, 0.55),
    inset 0 0 calc(var(--cw) * 0.02) rgba(255, 255, 255, 0.3),
    0 0 0 0.5px rgba(90, 70, 55, 0.1),
    calc(var(--e, 0) * 0.5px) 0 0 0 rgba(238, 234, 229, 0.72),
    calc(var(--e, 0) * 0.5px + var(--e, 0) * 0.06px) 0 0.5px 0 rgba(255, 255, 255, 0.9),
    calc(var(--e, 0) * 1.6px) calc(var(--cw) * 0.07) calc(var(--cw) * 0.2) rgba(70, 52, 36, 0.2),
    0 calc(var(--cw) * 0.012) calc(var(--cw) * 0.03) rgba(70, 52, 36, 0.14);
}
.story .card::after {
  background:
    linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.03) 30%, rgba(255,255,255,0.14) 50%, rgba(255,255,255,0.03) 70%, rgba(255,255,255,0) 100%) calc(var(--sh, 0) * 1%) 0 / 60% 100% no-repeat,
    radial-gradient(ellipse at center, rgba(0,0,0,0) 20%, rgba(0,0,0,0.04) 42%, rgba(0,0,0,0.14) 68%, rgba(0,0,0,0.32) 100%),
    radial-gradient(ellipse 120% 58% at 50% 104%, rgba(0,0,0,0.26) 0%, rgba(0,0,0,0.12) 36%, rgba(0,0,0,0) 72%),
    radial-gradient(ellipse 120% 58% at 50% -4%, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.08) 34%, rgba(0,0,0,0) 68%);
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, calc(0.18 * var(--k, 1)));
}
/* in the phone the video's corners follow the phone's own curve: a little rounder than on the wall, so they
   cover the screen's corners and stay inside the phone's outer corners (measured: screen corner 16px, frame 7px) */
.story .card { border-radius: calc(var(--cw) * (0.1 + 0.02 * var(--in, 0))) !important; }
/* phones: lighter glass. No blur behind the frame (the wall is plain, so it showed nothing) and one soft shadow. */
@media (max-width: 767px) {
  .story .card::before {
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
    box-shadow:
      inset 1px 1px 0.5px rgba(255, 255, 255, 0.95),
      inset -1px -1px 0.5px rgba(255, 255, 255, 0.55),
      0 0 0 0.5px rgba(90, 70, 55, 0.1),
      calc(var(--e, 0) * 0.5px) 0 0 0 rgba(238, 234, 229, 0.72),
      0 calc(var(--cw) * 0.05) calc(var(--cw) * 0.1) rgba(70, 52, 36, 0.2);
  }
}
