/* Wevia — portfolio: work page segments (sticky stack + wedding phone rail)
   and the homepage "Our work" slider. Loaded after styles.css. */

/* ── shared: browser frame ─────────────────────────────── */
.bw { position: relative; display: block; border-radius: 16px; overflow: hidden; background: #0b1019; border: 1px solid var(--line-2); box-shadow: 0 40px 90px -40px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.02) inset; text-decoration: none; color: inherit; }
.bw-bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; background: rgba(14,20,32,.96); border-bottom: 1px solid var(--line); }
.bw-dots { display: flex; gap: 6px; flex: none; }
.bw-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(238,241,247,.16); }
.bw-dots i:first-child { background: #ff6b5f; } .bw-dots i:nth-child(2) { background: #f5b453; } .bw-dots i:nth-child(3) { background: #2ee6c5; }
.bw-url { flex: 1; min-width: 0; max-width: 360px; margin: 0 auto; height: 24px; border-radius: 7px; background: rgba(238,241,247,.06); display: flex; align-items: center; justify-content: center; gap: 7px; font: 500 11.5px/1 var(--mono); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 10px; }
.bw-url svg { width: 10px; height: 10px; flex: none; fill: var(--acc); }
.bw-url b { color: var(--ink); font-weight: 600; }
.bw-shot { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.bw-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.2s var(--ease); }
a.bw:hover .bw-shot img, .stack-card:hover .bw-shot img { transform: scale(1.035); }

.live { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--mono); color: var(--acc); text-decoration: none; letter-spacing: .02em; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 0 rgba(46,230,197,.6); animation: livePulse 2.2s infinite; }
.live.pre { color: var(--ink-2); } .live.pre::before { background: var(--ink-3); animation: none; }
.live:hover { text-decoration: underline; text-underline-offset: 4px; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(46,230,197,.55); } 70% { box-shadow: 0 0 0 9px rgba(46,230,197,0); } 100% { box-shadow: 0 0 0 0 rgba(46,230,197,0); } }

/* ── work page: head stats + segment switch ────────────── */
.wk-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.wk-stats span { font: 600 12px/1 var(--mono); color: var(--ink-2); padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(12,17,28,.6); backdrop-filter: blur(8px); }
.wk-stats b { color: var(--ink); font-weight: 700; margin-right: 4px; }

.seg-switch { position: sticky; top: 84px; z-index: 30; display: flex; width: max-content; max-width: calc(100% - 32px); margin: 0 auto 40px; padding: 5px; gap: 4px; border-radius: 999px; background: rgba(10,15,24,.82); border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 50px -25px rgba(0,0,0,.9); }
.seg-switch a { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; font: 600 14px/1 var(--ui); color: var(--ink-2); text-decoration: none; transition: color .35s; white-space: nowrap; }
.seg-switch a b { font: 700 11px/1 var(--mono); padding: 4px 6px; border-radius: 6px; background: rgba(238,241,247,.08); }
.seg-switch a.on { color: #050912; }
.seg-switch a.on b { background: rgba(5,9,18,.14); }
.seg-ind { position: absolute; top: 5px; bottom: 5px; left: 5px; border-radius: 999px; background: var(--acc); transition: transform .55s var(--ease), width .55s var(--ease), background .55s; }
.seg-switch.wed .seg-ind { background: #e9c27a; }
@media (max-width: 520px) { .seg-switch { top: 76px; } .seg-switch a { padding: 10px 12px; font-size: 13px; gap: 6px; } }

.seg { position: relative; padding: 4vh 5vw 12vh; max-width: 1320px; margin: 0 auto; scroll-margin-top: 150px; }
.seg-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 22px 28px; margin-bottom: 56px; }
.seg-no { font: 500 clamp(56px, 8vw, 120px)/.8 var(--display); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px var(--line-2); }
.seg-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 68px); line-height: .98; letter-spacing: -.02em; }
.seg-head h2 em { color: var(--warm); }
.seg-head p { max-width: 36ch; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
@media (max-width: 860px) { .seg-head { grid-template-columns: 1fr; } }

/* ── sticky stacking feature cards ─────────────────────── */
.stack { position: relative; }
.stack-card { position: sticky; top: calc(150px + var(--k, 0) * 16px); margin-bottom: 9vh; display: grid; grid-template-columns: 1.55fr 1fr; gap: 0; border-radius: 26px; overflow: hidden; background: linear-gradient(160deg, rgba(16,22,35,.97), rgba(9,13,21,.97)); border: 1px solid var(--line-2); box-shadow: 0 -30px 80px -40px rgba(0,0,0,.9); transform-origin: 50% 0; will-change: transform; }
.stack-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(700px 380px at 0% 0%, var(--tint, rgba(46,230,197,.12)), transparent 70%); }
.stack-card .sc-vis { position: relative; padding: 28px 0 28px 28px; }
.stack-card .sc-vis .bw { height: 100%; }
.stack-card .sc-vis .bw-shot { aspect-ratio: auto; height: calc(100% - 38px); min-height: 300px; }
.stack-card .sc-meta { position: relative; display: flex; flex-direction: column; padding: 38px 36px 34px; }
.sc-idx { font: 600 12px/1 var(--mono); color: var(--ink-3); letter-spacing: .08em; margin-bottom: 26px; display: flex; justify-content: space-between; }
.sc-idx .badge { color: #050912; background: var(--warm); padding: 6px 8px; border-radius: 6px; font-size: 10.5px; }
.sc-kind { font: 700 11px/1.4 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--acc); margin-bottom: 12px; }
.sc-name { font: 600 clamp(30px, 3.4vw, 48px)/1 var(--display); letter-spacing: -.03em; margin-bottom: 16px; }
.sc-desc { color: var(--ink-2); font-size: 15px; line-height: 1.65; max-width: 40ch; }
.sc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0 0; }
.sc-foot { margin-top: auto; padding-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); }
.sc-foot .btn { padding: 11px 16px; font-size: 13.5px; }
@media (max-width: 960px) {
  .stack-card { position: relative; top: 0; grid-template-columns: 1fr; margin-bottom: 22px; transform: none !important; filter: none !important; }
  .stack-card .sc-vis { padding: 16px 16px 0; }
  .stack-card .sc-vis .bw-shot { height: auto; min-height: 0; aspect-ratio: 16/10; }
  .stack-card .sc-meta { padding: 24px 22px 22px; }
  .sc-foot { flex-wrap: wrap; }
}

/* ── more work grid ────────────────────────────────────── */
.more-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: 12vh 0 26px; }
.more-head h3 { font: 600 clamp(22px, 2.4vw, 30px)/1.1 var(--display); letter-spacing: -.02em; }
.more-head span { font: 600 12px/1 var(--mono); color: var(--ink-3); }
.more-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.mcard { display: block; text-decoration: none; color: inherit; transition: transform .45s var(--ease); }
.mcard .bw { transition: border-color .3s, box-shadow .4s; }
.mcard:hover .bw { border-color: rgba(46,230,197,.4); box-shadow: 0 40px 90px -40px rgba(0,0,0,.85), 0 0 60px -20px var(--glow); }
.mcard .m-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 18px 4px 0; }
.mcard .m-name { font: 600 20px/1.15 var(--display); letter-spacing: -.02em; }
.mcard .m-kind { font: 700 11px/1.4 var(--ui); color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; margin-top: 6px; }
.mcard .go { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line-2); display: grid; place-items: center; flex: none; transition: all .25s; }
.mcard:hover .go { background: var(--acc); color: #050912; border-color: var(--acc); transform: rotate(45deg); }
@media (max-width: 720px) { .more-grid { grid-template-columns: 1fr; } }

/* ── weddings segment ──────────────────────────────────── */
.seg-wed { max-width: none; padding-left: 0; padding-right: 0; }
.seg-wed > .seg-head { max-width: 1320px; margin-left: auto; margin-right: auto; padding: 0 5vw; }
.seg-wed .seg-head h2 em { color: #f0c987; }
.seg-wed .seg-no { -webkit-text-stroke-color: rgba(240,201,135,.35); }
.seg-wed::before { content: ""; position: absolute; inset: -10vh 0 0; pointer-events: none; z-index: -1; background:
  radial-gradient(60vw 50vh at 18% 18%, rgba(233,170,140,.10), transparent 70%),
  radial-gradient(50vw 50vh at 85% 60%, rgba(240,201,135,.09), transparent 70%),
  linear-gradient(180deg, transparent, rgba(30,16,14,.55) 22%, rgba(30,16,14,.55) 80%, transparent); }
.wed-kicker { color: #f0c987 !important; }
.wed-kicker::before { content: "❦" !important; color: #f0c987 !important; }

.hscroll { position: relative; }
.hs-sticky { position: relative; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hs-sticky::-webkit-scrollbar { display: none; }
.hs-track { display: flex; gap: clamp(18px, 2.4vw, 34px); padding: 10px 5vw 30px; width: max-content; }
.hscroll.pin .hs-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; }
.hscroll.pin .hs-track { will-change: transform; padding-top: 120px; padding-bottom: 10px; }
.hscroll.pin .wcard, .hscroll.pin .wcard.end { width: min(clamp(230px, 22vw, 290px), calc((100vh - 330px) / 2.133)); }
.hscroll.pin .w-desc { min-height: 0; }
.hs-hint { display: flex; align-items: center; gap: 10px; max-width: 1320px; margin: -26px auto 26px; padding: 0 5vw; font: 600 12px/1 var(--mono); color: var(--ink-3); }
.hs-hint i { flex: 1; max-width: 220px; height: 1px; background: rgba(240,201,135,.18); position: relative; overflow: hidden; }
.hs-hint i::after { content: ""; position: absolute; inset: 0; background: #f0c987; transform-origin: 0 50%; transform: scaleX(var(--p, .04)); }

.wcard { scroll-snap-align: center; flex: none; width: clamp(230px, 22vw, 290px); text-decoration: none; color: inherit; display: block; }
.phone { position: relative; aspect-ratio: 9/19.2; border-radius: 40px; padding: 9px; background: linear-gradient(145deg, #3a2f2a, #15100e 40%, #2b231f); box-shadow: 0 0 0 1px rgba(240,201,135,.22), 0 50px 80px -40px rgba(0,0,0,.95), 0 0 70px -30px rgba(240,201,135,.25); transition: transform .7s var(--ease), box-shadow .5s; }
.phone::before { content: ""; position: absolute; top: 17px; left: 50%; width: 30%; height: 20px; translate: -50% 0; border-radius: 12px; background: #050505; z-index: 2; }
.phone .scr { position: relative; height: 100%; border-radius: 32px; overflow: hidden; background: #1a1210; }
.phone .scr img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.4s var(--ease); }
.phone .scr::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,.14), transparent 35%); pointer-events: none; }
.wcard:hover .phone { transform: translateY(-10px) rotate(-1.2deg); box-shadow: 0 0 0 1px rgba(240,201,135,.5), 0 60px 90px -40px rgba(0,0,0,.95), 0 0 90px -20px rgba(240,201,135,.4); }
.wcard:hover .phone .scr img { transform: scale(1.05); }
.w-meta { padding: 22px 6px 0; }
.w-type { font: 700 10.5px/1.4 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: #f0c987; }
.w-name { font: 400 26px/1.1 var(--serif); letter-spacing: -.01em; margin: 8px 0 8px; }
.w-name em { color: #f0c987; font-style: italic; }
.w-desc { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); min-height: 3.1em; }
.w-link { margin-top: 12px; font: 600 11.5px/1 var(--mono); color: var(--ink-3); display: inline-flex; gap: 6px; transition: color .25s; }
.wcard:hover .w-link { color: #f0c987; }
.wcard.end { width: clamp(230px, 22vw, 290px); display: flex; flex-direction: column; justify-content: center; padding: 30px; border-radius: 32px; border: 1px dashed rgba(240,201,135,.35); background: rgba(40,24,20,.35); aspect-ratio: 9/19.2; align-self: flex-start; }
.wcard.end h4 { font: 400 30px/1.1 var(--serif); margin-bottom: 14px; }
.wcard.end h4 em { color: #f0c987; }
.wcard.end p { color: var(--ink-2); font-size: 14px; line-height: 1.6; margin-bottom: 22px; }
.wcard.end .btn { align-self: flex-start; }
@media (max-width: 700px) { .wcard, .wcard.end { width: min(60vw, calc((100svh - 300px) / 2.133)); } .hs-track { padding: 10px 18vw 30px; } .w-name { font-size: 22px; } }

/* ── homepage: Our work — expanding panels ─────────────── */
#our-work { position: relative; padding: 14vh 0 12vh; }
#our-work .sec-head { max-width: 1320px; margin: 0 auto 40px; padding: 0 5vw; }
.xp { display: flex; gap: 10px; height: clamp(440px, 74vh, 660px); max-width: 1440px; margin: 0 auto; padding: 0 3vw; }
.xp-p { position: relative; flex: 1 1 0; min-width: 0; border-radius: 22px; overflow: hidden; text-decoration: none; color: var(--ink); background: #0b1019; border: 1px solid var(--line-2); transition: flex 1s var(--ease), border-color .5s, box-shadow .6s; isolation: isolate; }
.xp-p.on { flex: 7 1 0; border-color: rgba(46,230,197,.35); box-shadow: 0 50px 110px -50px rgba(0,0,0,.95), 0 0 90px -40px var(--glow); }
.xp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0 0; transform: scale(1.18); filter: grayscale(.85) brightness(.45); transition: transform 1.4s var(--ease), filter 1s var(--ease); -webkit-user-drag: none; }
.xp-p.on .xp-img { transform: scale(1); filter: none; }
.xp-p:not(.on):hover .xp-img { filter: grayscale(.3) brightness(.6); }
video.xp-img { object-position: center; filter: grayscale(.6) brightness(.5); }
.xp-p.on video.xp-img { filter: none; }
.xp-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(4,7,12,.97) 0%, rgba(4,7,12,.82) 26%, rgba(4,7,12,.25) 50%, transparent 66%); transition: opacity .8s; }
.xp-no { position: absolute; z-index: 2; top: 18px; left: 50%; translate: -50% 0; font: 600 12px/1 var(--mono); color: var(--ink-2); transition: left .9s var(--ease), translate .9s var(--ease), color .5s; }
.xp-p.on .xp-no { left: 24px; translate: 0 0; color: var(--acc); }
.xp-vert { position: absolute; z-index: 2; left: 50%; bottom: 28px; translate: -50% 0; writing-mode: vertical-rl; rotate: 180deg; white-space: nowrap; font: 600 clamp(15px, 1.3vw, 19px)/1 var(--display); letter-spacing: -.01em; transition: opacity .4s .35s; }
.xp-p.on .xp-vert { opacity: 0; transition-delay: 0s; }
.xp-info { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 0 30px 30px; display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .7s var(--ease); pointer-events: none; }
.xp-p.on .xp-info { opacity: 1; transform: none; transition-delay: .45s; pointer-events: auto; }
.xp-kind { font: 700 11px/1.4 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--acc); }
.xp-name { font: 600 clamp(30px, 4vw, 58px)/.95 var(--display); letter-spacing: -.035em; white-space: nowrap; }
.xp-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.xp-go { font: 600 13.5px/1 var(--ui); padding: 12px 16px; border-radius: 999px; background: var(--ink); color: #050912; white-space: nowrap; transition: background .3s; }
.xp-go b { display: inline-block; transition: transform .3s; }
.xp-p.on:hover .xp-go { background: var(--acc); }
.xp-p.on:hover .xp-go b { transform: translate(2px,-2px); }
.xp-bar { position: absolute; z-index: 3; left: 30px; right: 30px; top: 0; height: 2px; background: rgba(238,241,247,.08); opacity: 0; transition: opacity .4s; }
.xp-p.on .xp-bar { opacity: 1; }
.xp-bar b { display: block; height: 100%; background: linear-gradient(90deg, var(--acc), var(--warm)); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 760px) {
  .xp { flex-direction: column; height: auto; gap: 8px; padding: 0 16px; }
  .xp-p { flex: none; height: 62px; border-radius: 16px; transition: height .9s var(--ease), border-color .5s, box-shadow .6s; }
  .xp-p.on { flex: none; height: min(118vw, 520px); }
  .xp-img { object-position: 0 0; }
  .xp-no { top: 50%; left: 18px; translate: 0 -50%; }
  .xp-p.on .xp-no { top: 18px; translate: 0 0; left: 18px; }
  .xp-vert { writing-mode: horizontal-tb; rotate: 0deg; left: 54px; bottom: auto; top: 50%; translate: 0 -50%; font-size: 17px; }
  .xp-info { padding: 0 18px 18px; }
  .xp-name { font-size: 34px; white-space: normal; }
  .xp-row { flex-wrap: wrap; }
  .xp-bar { left: 18px; right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .stack-card { position: relative; top: 0; }
  .xp-p, .xp-img, .phone, .bw-shot img { transition: none; }
}
