/* Aangan Studio — the work pieces. Two fictional brands, each with its own identity; only the
   colours are the house's (indigo night, ivory, lamplight gold). Drawn by tools/work.py.
     Lantern Night Market: lanterns strung over the river; Anek Bangla, condensed and heavy.
     Cha Ghor: two leaves and a bud, the rows of a tea garden; Cormorant Garamond.
   Pieces size themselves in container units (cqw). Labelled as concepts. */

.piece__art { container-type: inline-size; width: 100%; }
/* Each piece rides its own layer: the stage's opening clip and the drift then move it without
   redrawing what is inside (redrawing a lantern scene every frame is what made the work lag). */
.js-motion .piece__art { will-change: transform; }
.poster, .ads, .teabox, .set, .lanterns { container-type: inline-size; }
/* Pieces move only while on screen ([data-live], motion.css) and not paused. */
.piece.is-paused .piece__art *, .piece.is-paused .piece__art *::before, .piece.is-paused .piece__art *::after { animation-play-state: paused !important; }

/* ---------- Brand type ---------- */
.lnm-type, .brand-lnm .title b, .poster__title, .poster__top, .poster__meta, .site__nav b, .site__hero p, .pass b, .site__band {
  font-family: "Anek Bangla", "Arial Narrow", sans-serif; font-stretch: 75%; font-weight: 750; text-transform: uppercase;
}
.chaghor-type, .brand-chaghor .title b, .teabox__name, .teabox__note, .teabox__weight, .brand-chaghor .ad__h {
  font-family: "Cormorant Garamond", Garamond, Georgia, serif; font-weight: 500;
}

/* ---------- Gold foil ---------- */
.foil {
  background: linear-gradient(110deg, #7E5A1C 0%, #D9B26A 18%, #FFF1C9 27%, #C99B45 40%, #8A6420 55%, #E4C37C 74%, #FFF3D0 82%, #B4893A 100%);
  background-size: 260% 100%;
  background-position: 30% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Phone ---------- */
.piece__art.phone-wrap, .phone-wrap { width: min(100%, 17.5rem); margin-inline: auto; }
.phone { position: relative; aspect-ratio: 9 / 18.6; padding: 2.2cqw; border-radius: 12cqw; background: linear-gradient(145deg, #1B1F2B, #07090F 60%); box-shadow: 0 3.5rem 6rem -3rem rgb(0 0 0 / 0.7), inset 0 0 0 1px rgb(255 255 255 / 0.1); }
.phone::after { content: ""; position: absolute; top: 4.2cqw; left: 50%; width: 20cqw; height: 4.6cqw; translate: -50% 0; border-radius: 99px; background: #05070C; z-index: 6; }
.phone__screen { position: relative; height: 100%; border-radius: 10cqw; overflow: hidden; isolation: isolate; background: #050A18; font-family: var(--font-body); }

/* ---------- Film: shots that cross-dissolve, each with a slow camera move ---------- */
.film__shot { position: absolute; inset: 0; opacity: 0; overflow: hidden; animation: shot var(--loop, 20s) linear infinite; animation-delay: calc(var(--i, 0) * var(--loop, 20s) / var(--n, 4)); }
.film__shot > .cam { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: var(--origin, 50% 50%); animation: camera var(--loop, 20s) linear infinite; animation-delay: calc(var(--i, 0) * var(--loop, 20s) / var(--n, 4)); }
@keyframes shot { 0% { opacity: 0; } 5% { opacity: 1; } 25% { opacity: 1; } 30%, 100% { opacity: 0; } }
@keyframes camera { 0% { transform: scale(var(--s0, 1.06)) translate(0, 0); } 30% { transform: scale(var(--s1, 1.2)) translate(var(--dx, 0%), var(--dy, -2%)); } 100% { transform: scale(var(--s1, 1.2)) translate(var(--dx, 0%), var(--dy, -2%)); } }
/* Grade: a vignette and moving grain over every shot */
.film__grade { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 45%, transparent 50%, rgb(3 8 22 / 0.6)), linear-gradient(transparent 55%, rgb(3 8 22 / 0.75)); }
.film__grain { position: absolute; inset: -20%; z-index: 3; pointer-events: none; opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.8s steps(5) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); } 60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); } }

/* Titles: set in each brand's own type */
.titles { position: absolute; inset: 0; z-index: 4; display: grid; align-items: end; padding: 0 8cqw 26cqw; text-align: center; }
.title { grid-area: 1 / 1; opacity: 0; color: #F4ECDC; animation: title var(--loop, 20s) var(--ease-out) infinite; animation-delay: calc(var(--i, 0) * var(--loop, 20s) / var(--n, 4) + 0.6s); }
.title b { display: block; font-weight: 400; font-size: 10.5cqw; line-height: 1.04; text-shadow: 0 0.4cqw 4cqw rgb(0 0 0 / 0.6); }
.title small { display: block; margin-top: 2.8cqw; font-size: 3.2cqw; letter-spacing: 0.24em; text-transform: uppercase; color: #E2BE78; }
.brand-lnm .title b { font-size: 13cqw; line-height: 0.9; letter-spacing: 0.005em; }
.brand-chaghor .title b { font-size: 11.5cqw; line-height: 1; }
.title__mark { display: block; width: 9cqw; height: 13.5cqw; margin: 0 auto 3.5cqw; color: #E2BE78; }
.title--lock span[lang="bn"] { display: block; margin-top: 2cqw; font-size: 5.6cqw; font-weight: 600; color: #E2BE78; }
.titles--top { align-items: start; padding: 30cqw 8cqw 0; }
.title--ink { color: #0E2A5E; }
.title--ink b { text-shadow: none; }
.title--ink small { color: #8A5F14; }
@keyframes title { 0% { opacity: 0; transform: translateY(4%); } 5% { opacity: 1; transform: none; } 22% { opacity: 1; } 25%, 100% { opacity: 0; } }
.reel__bars { position: absolute; top: 11cqw; left: 6cqw; right: 6cqw; z-index: 5; display: flex; gap: 1.2cqw; }
.reel__bars i { flex: 1; height: 0.55cqw; border-radius: 9px; background: rgb(255 255 255 / 0.28); overflow: hidden; }
.reel__bars i::after { content: ""; display: block; height: 100%; background: rgb(255 255 255 / 0.92); transform-origin: left; transform: scaleX(0); animation: var(--loop, 20s) linear infinite; }
.reel__bars i:nth-child(1)::after { animation-name: seg1; }
.reel__bars i:nth-child(2)::after { animation-name: seg2; }
.reel__bars i:nth-child(3)::after { animation-name: seg3; }
.reel__bars i:nth-child(4)::after { animation-name: seg4; }
@keyframes seg1 { 0% { transform: scaleX(0); } 25%, 100% { transform: scaleX(1); } }
@keyframes seg2 { 0%, 25% { transform: scaleX(0); } 50%, 100% { transform: scaleX(1); } }
@keyframes seg3 { 0%, 50% { transform: scaleX(0); } 75%, 100% { transform: scaleX(1); } }
@keyframes seg4 { 0%, 75% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
.reel__head { position: absolute; top: 15cqw; left: 6cqw; z-index: 5; display: flex; align-items: center; gap: 2.2cqw; font-size: 3.5cqw; color: rgb(255 255 255 / 0.9); text-shadow: 0 0 2cqw rgb(0 0 0 / 0.5); }
.reel__avatar { display: grid; place-items: center; width: 7.5cqw; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 0.5cqw rgb(255 255 255 / 0.85); }
.reel__avatar svg { width: 46%; height: 70%; }
.reel__avatar--lnm { background: #0A1838; color: #E2BE78; }
.reel__avatar--tea { background: #0C2453; color: #D7AE5E; }
.reel__caption { position: absolute; left: 6cqw; right: 6cqw; bottom: 8cqw; z-index: 5; margin: 0; font-size: 3.3cqw; line-height: 1.45; color: rgb(255 255 255 / 0.85); text-shadow: 0 0 2cqw rgb(0 0 0 / 0.6); }

/* ---------- Lantern Night Market: strings of paper lanterns over the river ---------- */
.lanterns {
  position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(90% 34% at 50% var(--horizon), rgb(217 150 70 / 0.24), transparent 70%), linear-gradient(#030817, #0C1D4A var(--horizon));
}
.lanterns__strings { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; overflow: visible; }
.lanterns__strings path { fill: none; stroke: rgb(232 205 150 / 0.42); stroke-width: 1; vector-effect: non-scaling-stroke; }
/* The far bank: a dark line with the stalls' small lights along it */
.lanterns__shore {
  position: absolute; left: 0; right: 0; top: calc(var(--horizon) - 1.3cqw); height: 1.3cqw;
  background: radial-gradient(circle, #FFD58A 0 0.2cqw, rgb(255 213 138 / 0) 0.5cqw) 0 35% / 2.6cqw 100% repeat-x, linear-gradient(transparent 60%, #030816 60%);
}
.lanterns__water { position: absolute; left: 0; right: 0; top: var(--horizon); bottom: 0; overflow: hidden; background: linear-gradient(#0A1A42, #030817); }
/* The water moves as one layer: ripples drifting toward the viewer, breaking the lights */
.lanterns__water::after { content: ""; position: absolute; left: 0; right: 0; top: -12cqw; bottom: 0; background: repeating-linear-gradient(0deg, rgb(255 255 255 / 0.03) 0 1px, transparent 1px 2.8cqw), repeating-linear-gradient(0deg, rgb(3 8 23 / 0.6) 0 0.55cqw, transparent 0.55cqw 1.4cqw); animation: ripple 6s linear infinite; }
@keyframes ripple { from { transform: translateY(0); } to { transform: translateY(5.6cqw); } }
.lantern {
  position: absolute; left: var(--x); top: var(--y); width: calc(var(--s) * 1cqw); aspect-ratio: 1 / 1.55; translate: -50% 0; opacity: var(--o, 1);
  transform-origin: 50% 0;
  background: linear-gradient(rgb(232 205 150 / 0.6), rgb(232 205 150 / 0.6)) 50% 0 / 1px 24% no-repeat;
}

/* The glow is a gradient, never a blurred shadow: blur is the costliest thing to draw */
.lantern::before { content: ""; position: absolute; left: -100%; right: -100%; top: 0; bottom: -50%; border-radius: 50%; background: radial-gradient(closest-side, rgb(255 196 110 / 0.36), rgb(255 170 80 / 0.12) 45%, transparent); }
.lantern::after {
  content: ""; position: absolute; left: 0; right: 0; top: 22%; bottom: 0; border-radius: 48% 48% 44% 44% / 42% 42% 58% 58%;
  background: repeating-linear-gradient(0deg, rgb(150 70 15 / 0.2) 0 1px, transparent 1px 17%), radial-gradient(70% 60% at 50% 55%, #FFF5D8, #FFD27A 45%, #E7963C 85%, #B8661F);
}
/* Each lantern's light in the water; the moving ripples above break it up */
.glint {
  position: absolute; left: var(--x); top: var(--y); width: calc(var(--s) * 1.3cqw); height: calc(var(--s) * 3.4cqw); translate: -50% -15%; opacity: calc(var(--o, 1) * 0.75);
  background: radial-gradient(closest-side, rgb(255 200 120 / 0.8), rgb(255 170 80 / 0.22) 55%, transparent);
}
/* Out of focus: lights of the market behind the title */
.bokeh { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(80% 60% at 50% 60%, #14295F, #040A1C 80%); }
.bokeh i {
  position: absolute; left: var(--x); top: var(--y); width: calc(var(--s) * 1cqw); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; opacity: var(--o);
  background: radial-gradient(circle, rgb(255 205 130 / 0.3) 0 52%, rgb(255 216 150 / 0.55) 64%, rgb(255 200 120 / 0) 70%);
}
/* Sky lanterns let go over the river */
.rise { --horizon: 88%; position: absolute; inset: 0; overflow: hidden; background: radial-gradient(100% 34% at 50% 90%, rgb(217 150 70 / 0.26), transparent 70%), linear-gradient(#030817, #0E2250 88%, #040A1C 88%); }
/* Two fields rise at two speeds (far slower), each one layer; the lanterns in them hold still */
.rise__field { position: absolute; left: 0; right: 0; top: 0; height: 500cqw; animation: sky-rise 30s linear infinite; }
.rise__field--near { animation-duration: 17s; }
@keyframes sky-rise { from { transform: translateY(0); } to { transform: translateY(-250cqw); } }
.sky-lantern {
  position: absolute; left: var(--x); top: calc(var(--y) * 1cqw); width: calc(var(--s) * 1.6cqw); aspect-ratio: 1 / 1.25; translate: -50% 0;
  background: radial-gradient(closest-side, rgb(255 190 105 / 0.32), transparent);
}
.sky-lantern b { position: absolute; inset: 24% 28% 22%; clip-path: polygon(4% 0, 96% 0, 80% 100%, 20% 100%); background: linear-gradient(#D9842F, #FFD27A 72%, #FFF4D2); }

/* ---------- Poster: the market's own poster ---------- */
.poster { position: relative; width: min(100%, 22rem); margin-inline: auto; aspect-ratio: 4 / 5.4; overflow: hidden; background: #030817; color: #F6EEDD; box-shadow: 0 3rem 5rem -2.5rem rgb(0 0 0 / 0.6); font-family: var(--font-body); }
.poster p { margin: 0; }
.poster__top { position: absolute; left: 6cqw; right: 6cqw; top: 5.5cqw; z-index: 2; display: flex; justify-content: space-between; font-weight: 600; font-size: 3.2cqw; letter-spacing: 0.14em; color: #E2BE78; }
.poster__title { position: absolute; left: 5.5cqw; bottom: 20cqw; z-index: 2; font-weight: 800; font-size: 17.5cqw; line-height: 0.84; color: #F6EEDD; text-shadow: 0 1cqw 5cqw rgb(0 0 0 / 0.5); }
.poster__mark { position: absolute; right: 7.5cqw; bottom: 33cqw; z-index: 2; width: 8.5cqw; height: 12.75cqw; color: #E2BE78; }
.poster__bn { position: absolute; right: 6cqw; bottom: 21cqw; z-index: 2; font-size: 6.4cqw; font-weight: 600; color: #E2BE78; }
.poster__meta { position: absolute; left: 6cqw; right: 6cqw; bottom: 6cqw; z-index: 2; display: flex; justify-content: space-between; padding-top: 2.6cqw; border-top: 1px solid rgb(226 190 120 / 0.5); font-weight: 600; font-size: 3cqw; letter-spacing: 0.1em; color: #D9CFBC; }

/* ---------- Browser: the market's ticket page ---------- */
.browser { position: relative; aspect-ratio: 16 / 11; border-radius: 1.4cqw; overflow: hidden; background: #F7F1E5; box-shadow: 0 3rem 5rem -2.5rem rgb(0 0 0 / 0.6), 0 0 0 1px rgb(0 0 0 / 0.05); }
.browser__bar { display: flex; align-items: center; gap: 1cqw; height: 5cqw; padding: 0 2cqw; background: #E9E0CE; }
.browser__bar i { width: 1.3cqw; height: 1.3cqw; border-radius: 50%; background: #CDBFA6; }
.browser__bar span { margin-left: 2cqw; flex: 0 1 34cqw; height: 3cqw; border-radius: 99px; background: #F7F1E5; color: #6B5E48; font-size: 1.7cqw; display: flex; align-items: center; padding-left: 2cqw; font-family: var(--font-body); }
.browser__view { position: absolute; inset: 5cqw 0 0; overflow: hidden; }
.site { animation: site 20s var(--ease-in-out) infinite; font-family: var(--font-body); color: #0E2A5E; }
@keyframes site { 0%, 18% { transform: translateY(0); } 46%, 64% { transform: translateY(-46%); } 92%, 100% { transform: translateY(0); } }
.site__nav { display: flex; align-items: center; justify-content: space-between; padding: 2cqw 4cqw; font-size: 1.8cqw; }
.site__nav b { display: flex; align-items: center; gap: 1.2cqw; font-size: 2.5cqw; letter-spacing: 0.04em; }
.site__nav b svg { width: 1.8cqw; height: 2.7cqw; color: #B97A26; }
.site__hero { position: relative; height: 34cqw; margin: 0 4cqw; overflow: hidden; }
.site__hero p { position: absolute; z-index: 2; left: 4cqw; bottom: 3.5cqw; margin: 0; font-size: 5.6cqw; line-height: 0.9; color: #F6EEDD; max-width: 11ch; }
.site__passes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5cqw; padding: 4cqw; }
.pass { padding: 2.5cqw; border: 1px solid rgb(14 42 94 / 0.18); display: grid; gap: 0.8cqw; font-size: 1.7cqw; }
.pass b { font-size: 3.6cqw; line-height: 1; }
.pass span { color: #8A5F14; }
.pass i { font-style: normal; justify-self: start; margin-top: 1cqw; padding: 0.7cqw 2cqw; border-radius: 99px; background: #0E2A5E; color: #F2EADB; }
.site__band { padding: 4cqw; background: #0E2A5E; color: #F2EADB; text-align: center; font-size: 3.2cqw; letter-spacing: 0.06em; }

/* ---------- Results: an ad report (Aangan's own report, in the house type) ---------- */
.dash { position: relative; aspect-ratio: 16 / 11; padding: 4.5cqw; background: radial-gradient(80% 60% at 85% 0%, #17336E, #0B1A3E 70%); color: #F2EADB; box-shadow: 0 3rem 5rem -2.5rem rgb(0 0 0 / 0.6); font-family: var(--font-body); display: grid; gap: 3cqw; align-content: start; }
.dash__top { display: flex; justify-content: space-between; align-items: baseline; font-size: 2.2cqw; color: #C9C0AE; }
.dash__top b { font-family: var(--font-display); font-weight: 400; font-size: 3.4cqw; color: #F2EADB; }
.dash__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5cqw; }
.dash__metric { padding: 2.4cqw 0; border-top: 1px solid rgb(217 165 74 / 0.45); display: grid; gap: 0.6cqw; }
.dash__metric span { font-size: 1.8cqw; color: #C9C0AE; }
.dash__metric b { font-family: var(--font-display); font-weight: 400; font-size: 5.2cqw; line-height: 1; }
.dash__metric em { font-style: normal; font-size: 1.7cqw; color: #E2B866; }
.dash__chart { width: 100%; height: auto; overflow: visible; }
.dash__grid line { stroke: rgb(242 234 219 / 0.08); }
.dash__line { fill: none; stroke: #E2B866; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 12s var(--ease-out) infinite; }
.dash__area { opacity: 0; animation: area 12s var(--ease-out) infinite; }
@keyframes draw { 0% { stroke-dashoffset: 520; opacity: 1; } 35%, 88% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes area { 0%, 20% { opacity: 0; } 40%, 88% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- Sets: where the Cha Ghor box is photographed ---------- */
.set { position: relative; height: 100%; display: grid; place-items: center; overflow: hidden; }
.set--ivory { background: radial-gradient(70% 55% at 50% 42%, #FFFDF7, #EDE3CF 70%, #D8C9AC); }
.set--night { background: radial-gradient(60% 50% at 50% 40%, rgb(226 176 90 / 0.28), transparent 70%), radial-gradient(120% 90% at 50% 30%, #12285A, #050B1C 75%); }
.set--sand { background: linear-gradient(115deg, transparent 0 42%, rgb(60 40 10 / 0.12) 42% 46%, transparent 46% 58%, rgb(60 40 10 / 0.1) 58% 61%, transparent 61%), radial-gradient(80% 60% at 50% 40%, #F1E3C4, #D6BF93 80%); }
/* The garden at first light: hills of tea in rows, mist between them */
.set--garden { background: radial-gradient(26% 16% at 72% 26%, rgb(255 236 196 / 0.95), rgb(255 220 160 / 0) 70%), linear-gradient(#F4E8D0, #EAD6B2 38%, #BCC3D8 66%); }
.set__hills { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.set--garden > .teabox { align-self: end; margin-bottom: 12%; }
/* Mist settling between the hills */
.set--garden::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(transparent 44%, rgb(244 234 212 / 0.34) 53%, transparent 61%, rgb(244 234 212 / 0.2) 67%, transparent 75%); }
.set > .teabox { z-index: 1; }

/* ---------- The Cha Ghor box: indigo board, gold foil, the garden rows pressed in ---------- */
.teabox { position: relative; isolation: isolate; width: var(--box-w, 54%); aspect-ratio: 3 / 4.2; margin-inline: auto; }
.teabox__front {
  position: absolute; inset: 0; overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgb(255 255 255 / 0.022) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgb(0 0 0 / 0.05) 0 1px, transparent 1px 3px),
    radial-gradient(120% 85% at 28% 18%, #1A458A, #0C2453 52%, #06153A);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07), inset -5cqw 0 9cqw -6cqw rgb(0 0 0 / 0.5);
}
.teabox__front p { margin: 0; }
/* A slow bar of light across the board, as if the box turns under a lamp */
.teabox__front::after { content: ""; position: absolute; top: -20%; bottom: -20%; width: 34%; left: 0; background: linear-gradient(90deg, transparent, rgb(255 240 210 / 0.16), transparent); transform: translateX(-180%) skewX(-14deg); animation: sheen 11s var(--ease-in-out) infinite; }
@keyframes sheen { 0%, 50% { transform: translateX(-180%) skewX(-14deg); } 85%, 100% { transform: translateX(420%) skewX(-14deg); } }
.teabox__side { position: absolute; left: 100%; top: -3.2%; width: 11%; height: 103.2%; clip-path: polygon(0 3.1%, 100% 0, 100% 96.9%, 0 100%); background: linear-gradient(90deg, #071636, #0B1F4A 60%, #0E2756); }
.teabox__top { position: absolute; left: 0; bottom: 100%; width: 111%; height: 3.2%; clip-path: polygon(0 100%, 90.1% 100%, 100% 0, 9.9% 0); background: linear-gradient(#1C4A90, #123571); }
.teabox__lid { position: absolute; left: 0; right: 0; top: 23%; height: 1px; background: rgb(0 0 0 / 0.55); box-shadow: 0 1px 0 rgb(255 255 255 / 0.08); }
.teabox__mark { position: absolute; left: 50%; top: 3.5%; width: 14cqw; height: 16.8cqw; translate: -50% 0; color: #D7AE5E; }
.teabox__name { position: absolute; left: 0; right: 0; top: 28%; text-align: center; font-weight: 600; font-size: 11.5cqw; letter-spacing: 0.16em; padding-left: 0.16em; text-transform: uppercase; line-height: 1; }
.teabox__bn { position: absolute; left: 0; right: 0; top: 39%; display: flex; align-items: center; justify-content: center; gap: 3cqw; font-size: 5cqw; color: #D9B26A; }
.teabox__bn::before, .teabox__bn::after { content: ""; width: 9cqw; height: 1px; background: #B98D3E; }
.teabox__note { position: absolute; left: 0; right: 0; top: 47%; text-align: center; font-style: italic; font-size: 5cqw; color: #E4DACA; }
.teabox__hills { position: absolute; left: 7cqw; top: 57%; width: calc(100% - 14cqw); height: 29%; max-width: none; overflow: visible; color: #CFA559; }
.teabox__weight { position: absolute; left: 0; right: 0; top: 89.5%; text-align: center; font-size: 4.2cqw; color: #D2A85A; }
.teabox__shadow { position: absolute; left: -12%; right: -22%; top: 97%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgb(0 0 0 / 0.45), transparent); z-index: -1; }
.teabox-stage { position: relative; width: min(100%, 20rem); margin-inline: auto; padding: 10% 0 12%; }
.teabox-stage .teabox { --box-w: 64%; }

/* ---------- AI ads: one box, three settings ---------- */
.ads { position: relative; width: min(100%, 24rem); margin-inline: auto; aspect-ratio: 1; overflow: hidden; box-shadow: 0 3rem 5rem -2.5rem rgb(0 0 0 / 0.6); font-family: var(--font-body); }
.ad { position: absolute; inset: 0; opacity: 0; animation: version 18s var(--ease-in-out) infinite; animation-delay: calc(var(--i, 0) * 6s); }
@keyframes version { 0% { opacity: 0; } 6%, 30% { opacity: 1; } 37%, 100% { opacity: 0; } }
.ad > .set { position: absolute; inset: 0; }
.ad .teabox { --box-w: 34%; position: absolute; right: 12%; bottom: 15%; }
.ad__copy { position: absolute; left: 7cqw; top: 8cqw; bottom: 8cqw; width: 46%; z-index: 2; display: grid; align-content: space-between; }
.ad__copy p { margin: 0; }
.ad__chip { justify-self: start; padding: 0.8cqw 3cqw; border: 1px solid currentColor; border-radius: 99px; font-size: 2.6cqw; letter-spacing: 0.06em; opacity: 0.8; }
.ad__h { font-size: 9cqw; line-height: 1.02; }
.ad__cta { justify-self: start; font-size: 3cqw; letter-spacing: 0.06em; border-bottom: 1px solid currentColor; }
.ad--light .ad__copy { color: #0E2A5E; }
.ad--dark .ad__copy { color: #F4ECDC; }
/* The garden version: hills set lower so the words sit in the morning haze; the button carries its own ground */
.ad .set--garden .set__hills { transform: translateY(20%); }
.ad--garden .ad__cta { padding: 1cqw 3.2cqw; border: 0; border-radius: 99px; background: #0E2A5E; color: #F2EADB; }

@media (prefers-reduced-motion: reduce) {
  .piece__art *, .piece__art *::before, .piece__art *::after { animation: none !important; }
  .film__shot:first-of-type, .title:first-child, .ad:first-child { opacity: 1; }
  .dash__line { stroke-dashoffset: 0; }
  .dash__area { opacity: 1; }
}
