/* =========================================================
   motion v3 + dark footer with light boxes (loads after site.css)
   ========================================================= */
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="zoom"] { transform: scale(.92); }
[data-reveal].is-in { transform: none; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes rot { to { --a: 360deg; } }

/* animated gradient border on hover */
.card, .pillar, .offer, .pin__c { position: relative; }
.card::after, .pillar::after, .offer::after, .pin__c::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; opacity: 0; transition: opacity .45s; z-index: 3;
  background: conic-gradient(from var(--a), #6d28d9, #d9b26f, #0f9d9a, #6d28d9); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: rot 5s linear infinite; }
.card:hover::after, .pillar:hover::after, .offer:hover::after, .pin__c:hover::after { opacity: 1; }

/* tilt + glare */
.tilt { transform-style: preserve-3d; will-change: transform; transition: transform .6s var(--ease), box-shadow .5s; }
.tilt.is-tilting { transition: transform .12s linear, box-shadow .5s; }
.shine { position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .4s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .5), transparent 60%); mix-blend-mode: soft-light; border-radius: inherit; }
.tilt:hover > .shine { opacity: 1; }
.g { background-size: 220% 100%; animation: shine 9s linear infinite; }
.spot { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(540px circle at var(--sx, 50%) var(--sy, 30%), rgba(139, 69, 230, .11), transparent 60%); }
.step { overflow: hidden; }
.step::after { content: ""; position: absolute; inset: auto 1.2rem 0 1.2rem; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .6s var(--ease); }
.step:hover::after { transform: scaleX(1); }
.step:hover::before { -webkit-text-stroke-color: var(--vio); }
.why > div { transition: background .4s; } .why > div:hover { background: #faf7ff; }
.btn--ink:hover { box-shadow: 0 20px 36px -14px rgba(22, 18, 31, .8); }

/* big outline words marquee */
.words { padding: 1.3rem 0; overflow: hidden; border-block: 1px solid var(--line); background: #fff; }
.words__t { display: flex; align-items: center; gap: 2.6rem; width: max-content; animation: marquee 50s linear infinite; }
.words span { font-family: var(--f-head); font-size: clamp(2.2rem, 7vw, 5.2rem); font-weight: 700; line-height: 1.2; color: transparent; -webkit-text-stroke: 1px #cdbfe8; white-space: nowrap; }
.words i { color: var(--gold); font-style: normal; font-size: 1.4rem; }
.words--tint { background: var(--tint); }

/* story: pinned chapters, phone switches video */
.story { position: relative; background: linear-gradient(180deg, #fff, var(--tint) 50%, #fff); }
.story__head { padding-top: clamp(3rem, 7vw, 5rem); }
@media (min-width: 900px) { .story { height: 400vh; } .story__pin { position: sticky; top: calc(var(--tk) + var(--hh)); height: calc(100vh - var(--tk) - var(--hh)); display: flex; align-items: center; } .story__head { display: none; } }
.story__grid { display: grid; gap: 2rem; width: 100%; align-items: center; padding-block: 1.5rem 3rem; }
@media (min-width: 900px) { .story__grid { grid-template-columns: 1.05fr .95fr; gap: 3rem; padding-block: 0; } }
.chaps { margin-top: 1.6rem; display: grid; gap: .8rem; counter-reset: ch; }
.chap { position: relative; padding: 1.1rem 1.2rem; border-radius: 1.3rem; border: 1px solid var(--line); background: #fff; opacity: .45; transform: scale(.985); transition: opacity .5s, transform .6s var(--ease), box-shadow .5s, border-color .5s; counter-increment: ch; }
.chap::before { content: counter(ch, decimal-leading-zero); position: absolute; inset: 1rem 1.1rem auto auto; font-family: var(--f-head); font-size: 1.6rem; color: var(--gold-d); line-height: 1; }
.chap > div:first-child { padding-inline-start: 3.2rem; } .chap h3 { font-size: 1.4rem; } .chap p { font-size: .88rem; color: var(--muted); line-height: 1.8; margin-top: .15rem; }
.chap.is-on { opacity: 1; transform: none; border-color: #d6c4f2; box-shadow: var(--sh2); }
.chap__m { display: none; margin-top: .9rem; }
.story__vis { display: none; }
@media (min-width: 900px) { .story__vis { display: block; justify-self: center; width: min(100%, 21rem); } }
.story__phone { position: relative; aspect-ratio: 9/16; max-height: calc(100vh - var(--tk) - var(--hh) - 3rem); margin-inline: auto; border-radius: 2.2rem; overflow: hidden; background: #1a1328; border: 6px solid #fff; box-shadow: var(--sh2); outline: 1px solid var(--line); }
.layer { position: absolute; inset: 0; opacity: 0; transition: opacity .8s var(--ease), transform 1.3s var(--ease); transform: scale(1.07); }
.layer.is-on { opacity: 1; transform: none; }
.layer img, .layer video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story__phone::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .22), transparent 25%, transparent 60%, rgba(0, 0, 0, .68)); pointer-events: none; z-index: 2; }
.story__cap { position: absolute; inset: auto 0 0 0; z-index: 3; padding: 1.1rem; color: #fff; } .story__cap b { display: block; font-family: var(--f-head); font-size: 1.5rem; } .story__cap small { opacity: .88; font-size: .78rem; }
.story__dots { position: absolute; inset: .9rem 1rem auto 1rem; z-index: 3; display: flex; gap: .3rem; }
.story__dots i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .38); overflow: hidden; }
.story__dots i::after { content: ""; display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: 100% 50%; transition: transform .6s var(--ease); }
.story__dots i.is-on::after { transform: scaleX(1); }
@media (max-width: 899px) { .chap { opacity: 1; transform: none; } .chap__m { display: block; } .chap__m .media { aspect-ratio: 16/10; max-height: none; border-radius: 1.2rem; } }

/* triptych */
.tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.5rem, 2vw, 1.4rem); align-items: start; margin-top: 2.6rem; }
.tri > div { position: relative; }
.tri .phone { aspect-ratio: 9/16; border-width: 4px; border-radius: 1.6rem; }
.tri > div:nth-child(2) { margin-top: 2.6rem; }
.tri figcaption { position: absolute; inset: auto 0 0 0; padding: 1.5rem .9rem .8rem; color: #fff; z-index: 3; font-size: .82rem; font-weight: 600; background: linear-gradient(180deg, transparent, rgba(15, 8, 30, .78)); border-radius: 0 0 1.2rem 1.2rem; }
.tri figcaption small { display: block; font-weight: 400; opacity: .85; font-size: .68rem; }
@media (max-width: 640px) { .tri .phone { border-radius: 1rem; border-width: 3px; } .tri > div:nth-child(2) { margin-top: 1.4rem; } .tri figcaption { font-size: .68rem; padding: 1rem .5rem .5rem; } .tri figcaption small { display: none; } }

/* hero collage */
.collage { position: relative; width: min(100%, 28rem); aspect-ratio: 1/1.14; margin-inline: auto; }
.collage__main { position: absolute; right: 0; top: 0; width: 63%; aspect-ratio: 9/15.4; height: auto; border-radius: 2rem; }
.collage__a, .collage__b { position: absolute; overflow: hidden; background: #efe9f7; border: 5px solid #fff; box-shadow: var(--sh2); outline: 1px solid var(--line); }
.collage__a { left: 0; bottom: 3%; width: 45%; aspect-ratio: 4/5; border-radius: 1.5rem; animation: float 8s ease-in-out infinite; }
.collage__b { left: 8%; top: 5%; width: 33%; aspect-ratio: 1; border-radius: 1.3rem; animation: float 9s ease-in-out infinite -3s; z-index: 2; }
.collage__b video, .collage__b img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.collage__tag { position: absolute; inset: auto .6rem .6rem auto; z-index: 3; font-size: .68rem; font-weight: 600; color: var(--ink); background: rgba(255, 255, 255, .94); padding: .22rem .7rem; border-radius: 999px; box-shadow: var(--sh1); }
.collage__main .collage__tag { inset: auto auto 1rem 1rem; font-size: .74rem; }
@media (max-width: 767px) { .collage { width: min(100%, 21rem); } .collage__tag { font-size: .6rem; padding: .15rem .5rem; } .collage__main { border-radius: 1.5rem; } }

/* footer — white, four organised columns */
.foot { position: relative; background: #fff; color: var(--muted); padding: 2.4rem 0 5.8rem; font-size: .86rem; border-top: 0; overflow: visible; }
@media (min-width: 768px) { .foot { padding-bottom: 1.1rem; } }
.foot::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--grad); }
.foot::after { display: none; }
.foot__grid { display: grid; gap: 1.6rem 2rem; }
@media (min-width: 640px) { .foot__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1.1fr 1.1fr; } }
.fcol { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; }
.fcol h4 { font-family: var(--f-head); font-size: 1.25rem; color: var(--ink); margin: 0 0 .55rem; position: relative; padding-bottom: .5rem; }
.fcol h4::after { content: ""; position: absolute; inset: auto auto 0 0; width: 1.8rem; height: 2px; background: var(--grad); }
.fcol a, .fcol span { padding: .22rem 0; color: var(--muted); transition: color .25s, transform .3s var(--ease); line-height: 1.7; }
.fcol a:hover { color: var(--vio); transform: translateX(-4px); }
.fcol small { display: block; font-size: .66rem; letter-spacing: .12em; color: var(--gold-d); font-weight: 600; }
.fcol bdi { font-weight: 600; color: var(--ink2); }
.fcol em { font-style: normal; font-size: .62rem; font-weight: 600; color: var(--gold-d); background: #f6ecd9; border-radius: 999px; padding: .05rem .45rem; margin-inline-start: .3rem; }
.fcol--brand p { margin: .7rem 0 1rem; max-width: 18rem; line-height: 1.8; }
.fcol--brand .btn { color: #fff; }
.foot__brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); }
.foot__brand .brand__logo { width: 42px; height: 42px; border-radius: 12px; }
.foot__brand b { font-family: var(--f-head); font-size: 1.4rem; display: block; line-height: 1.1; color: var(--ink); } .foot__brand small { font-size: .56rem; letter-spacing: .14em; color: var(--muted); font-weight: 400; }
.foot__bar { margin-top: 1.6rem; padding-top: .9rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; font-size: .74rem; color: var(--muted); }
.foot__bar a { color: var(--ink2); display: inline; } .foot__bar a:hover { color: var(--vio); }

.fcol .btn { padding: .55rem 1.1rem; color: #fff; }
.fcol .btn:hover { color: #fff; transform: translateY(-2px); }

.collage__main .collage__tag { inset: 1rem 1rem auto auto; }

/* collage v2 */
.collage__main { border: 5px solid #fff; outline: 1px solid var(--line); box-shadow: var(--sh2); overflow: hidden; background: #efe9f7; aspect-ratio: 3/4.4; }
.collage__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kb 22s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.collage__a img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.collage__c { position: absolute; right: -3%; bottom: -1%; width: 31%; aspect-ratio: 1; border-radius: 1.3rem; overflow: hidden; background: #efe9f7; border: 5px solid #fff; box-shadow: var(--sh2); outline: 1px solid var(--line); z-index: 3; animation: float 9s ease-in-out infinite -6s; }
.collage__c video, .collage__c img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.collage__main .collage__tag { inset: 1rem 1rem auto auto; }
@media (max-width: 767px) { .collage__c { right: -2%; } }
