/* portfolio-draft: homepage entrances (#explore), ported from Enzo's approved handoff (portfolio-section/handoff/homepage-entrances).
   Directly below BUILT TO GO VIRAL. Classes .cwe / .cwe-*, keyframes cwe*. Smooth motion only: no glitch, flicker, shake or RGB split.
   House-rule changes from the mockup: classes namespaced (the site has global .btn/.eyebrow), no cursor overrides, no inline styles,
   Anton from the site's self-hosted subset, fixed 660x600 stages scaled to the column with --k (pf-entrances.js) instead of zoom:.56,
   the zoom veil covers the viewport, and loops pause off-screen (.cwe--off). */
@font-face { font-family: "Anton PF"; src: url("/assets/fonts/anton-pf-v1.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

.cwe { --cwe-cyan: #5fe6ff; --cwe-blue: #1EA7FF; --cwe-brand-blue: #0189F7; --cwe-red: #EC0911; --cwe-ink: #F6F8FB; --cwe-muted: #A9B8CC; --cwe-loader: #05080F;
  --cwe-ease: cubic-bezier(.22, .61, .36, 1); --cwe-zoom-ease: cubic-bezier(.55, 0, .8, .25);
  position: relative; isolation: isolate; overflow: hidden; background: #07090f; font-family: Montserrat, system-ui, sans-serif; color: var(--cwe-ink); padding: 70px 20px 80px; }
.cwe-anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }
.cwe-imp { font-family: Impact, "Anton PF", Anton, "Arial Narrow", sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: .95; }
.cwe-scene { position: relative; }

/* background (matches the viral section) */
.cwe-bg { position: absolute; inset: -70px -50vw -80px; pointer-events: none; }
.cwe-bg__base { position: absolute; inset: 0; background: radial-gradient(ellipse 40% 40% at 50% 45%, #0f2238 0%, #0a1220 50%, #07090f 82%); }
.cwe-bg__wall { position: absolute; inset: 0; background-image: linear-gradient(rgba(56, 182, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(56, 182, 255, .05) 1px, transparent 1px); background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 45% 55% at 50% 45%, #000, transparent 80%); mask-image: radial-gradient(ellipse 45% 55% at 50% 45%, #000, transparent 80%); }
.cwe-floorwrap { position: absolute; left: 0; right: 0; bottom: 0; height: 300px; perspective: 420px; perspective-origin: 50% 0;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.cwe-floor { position: absolute; left: 0; right: 0; top: 0; height: 900px; transform: rotateX(76deg); transform-origin: 50% 0;
  background-image: linear-gradient(rgba(70, 215, 255, .30) 1.4px, transparent 1.4px), linear-gradient(90deg, rgba(70, 215, 255, .30) 1.4px, transparent 1.4px); background-size: 46px 46px; background-position: 50% 0; animation: cweFloor 6s linear infinite; }
@keyframes cweFloor { to { background-position: 50% 46px; } }
.cwe-pts { position: absolute; inset: 70px 50vw 80px; }
.cwe-pts b { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%; background: #bff4ff; opacity: var(--o); box-shadow: 0 0 calc(var(--s) * 3) rgba(95, 230, 255, .8); animation: cweDrift var(--d) ease-in-out infinite alternate; animation-delay: var(--dl); }
.cwe-pts b.is-red { background: #ffb3b6; box-shadow: 0 0 calc(var(--s) * 3) rgba(236, 9, 17, .7); }
@keyframes cweDrift { to { transform: translate3d(var(--dx), -24px, 0); } }

/* head */
.cwe-head { position: relative; text-align: center; z-index: 2; }
.cwe-eyebrow { display: inline-flex; align-items: center; gap: 14px; margin: 0; font: 700 14px/1 Montserrat, system-ui, sans-serif; letter-spacing: .32em; text-transform: uppercase; color: var(--cwe-cyan); }
.cwe-eyebrow::before, .cwe-eyebrow::after { content: ""; width: 46px; height: 1px; background: linear-gradient(90deg, transparent, var(--cwe-cyan)); }
.cwe-eyebrow::after { transform: scaleX(-1); }
.cwe-h2 { margin: 14px 0 0; font-size: clamp(48px, 5.85vw, 84px); color: var(--cwe-ink); }
.cwe-b { background: linear-gradient(180deg, #7FD6FF, #1EA7FF 55%, #0189F7); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* cards */
.cwe-pair { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 660px)); gap: clamp(20px, 2.8vw, 40px); justify-content: center; margin-top: 44px; }
.cwe-card { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; outline: none; }
.cwe-ttl { position: relative; display: inline-block; font-size: clamp(54px, 7.2vw, 104px); text-decoration: none; color: transparent;
  background: linear-gradient(180deg, #ffffff 0%, #c9f6ff 35%, #5fe6ff 62%, #1EA7FF 100%); -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 12px rgba(95, 230, 255, .45)) drop-shadow(0 0 30px rgba(1, 137, 247, .30)); animation: cweTitle 4.2s ease-in-out infinite; transition: filter .45s var(--cwe-ease); }
.cwe-ttl:hover { color: transparent; }
.cwe-ttl--media { background: linear-gradient(180deg, #ffffff 0%, #ffd5d7 30%, #ff6b70 58%, #EC0911 100%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 12px rgba(236, 9, 17, .40)) drop-shadow(0 0 30px rgba(1, 137, 247, .28)); }
.cwe-ttl::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: -8px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--cwe-red), var(--cwe-brand-blue), var(--cwe-cyan)); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--cwe-ease); box-shadow: 0 0 14px rgba(95, 230, 255, .6); }
.cwe-ttl:focus-visible, .cwe-btn:focus-visible { outline: 3px solid var(--cwe-cyan); outline-offset: 6px; border-radius: 8px; }
.cwe-btn:focus-visible { border-radius: 999px; }
.cwe-card.is-hover .cwe-ttl::after { transform: scaleX(1); }
.cwe-card.is-hover .cwe-ttl { filter: drop-shadow(0 0 18px rgba(95, 230, 255, .75)) drop-shadow(0 0 44px rgba(1, 137, 247, .5)); }
.cwe-card.is-hover .cwe-ttl--media { filter: drop-shadow(0 0 18px rgba(236, 9, 17, .7)) drop-shadow(0 0 44px rgba(1, 137, 247, .45)); }
.cwe-card:nth-child(2) .cwe-ttl { animation-delay: -2.1s; }
@keyframes cweTitle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.cwe-cap { margin: 14px 0 0; font: 600 18px/1.3 Montserrat, system-ui, sans-serif; color: var(--cwe-muted); letter-spacing: .02em; text-align: center; }

/* fixed 660x600 stage, scaled to the column (--k from pf-entrances.js; media-query fallbacks below) */
.cwe-stagebox { --k: 1; position: relative; width: min(100%, 660px); height: calc(600px * var(--k)); margin-top: 10px; }
.cwe-stage { position: absolute; left: 50%; top: 0; width: 660px; height: 600px; margin-left: -330px; transform: scale(var(--k)); transform-origin: 50% 0; }
.cwe-pool { position: absolute; left: 50%; bottom: 6px; width: 520px; height: 90px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse, rgba(95, 230, 255, .40) 0%, rgba(1, 137, 247, .16) 42%, transparent 70%); transition: opacity .6s var(--cwe-ease), transform .6s var(--cwe-ease); }
.cwe-pool--cam { background: radial-gradient(ellipse, rgba(236, 9, 17, .22) 0%, rgba(95, 230, 255, .2) 38%, rgba(1, 137, 247, .1) 55%, transparent 70%); }
.cwe-card.is-hover .cwe-pool { transform: translateX(-50%) scale(1.08); }
.cwe-btn { position: relative; display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 17px 34px; border-radius: 999px; text-decoration: none; color: #fff; font: 800 18px/1 Montserrat, system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase;
  background: linear-gradient(90deg, rgba(11, 95, 184, .85), rgba(1, 137, 247, .85)); border: 1.5px solid rgba(155, 233, 255, .8); box-shadow: 0 0 24px rgba(1, 137, 247, .45), inset 0 0 14px rgba(255, 255, 255, .12); transition: box-shadow .45s var(--cwe-ease), transform .45s var(--cwe-ease); }
.cwe-btn:hover { color: #fff; }
.cwe-btn svg { width: 20px; height: 20px; }
.cwe-card.is-hover .cwe-btn { box-shadow: 0 0 40px rgba(95, 230, 255, .7), inset 0 0 16px rgba(255, 255, 255, .2); transform: translateY(-2px); }
.cwe-btn--rec { background: linear-gradient(90deg, rgba(150, 8, 14, .9), rgba(236, 9, 17, .88)); border-color: rgba(255, 170, 174, .8); box-shadow: 0 0 24px rgba(236, 9, 17, .42), inset 0 0 14px rgba(255, 255, 255, .12); }
.cwe-card.is-hover .cwe-btn--rec { box-shadow: 0 0 40px rgba(236, 9, 17, .65), 0 0 22px rgba(1, 137, 247, .35), inset 0 0 16px rgba(255, 255, 255, .2); }

/* ================= ARCHIVE VAULT (Portfolio) ================= */
.cwe-vault { position: absolute; left: 50%; bottom: 44px; width: 330px; height: 530px; transform: translateX(-50%); }
.cwe-frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cwe-plinth { position: absolute; left: 50%; bottom: -26px; width: 380px; height: 30px; transform: translateX(-50%); clip-path: polygon(4% 0, 96% 0, 100% 100%, 0 100%); background: linear-gradient(180deg, #1b2636, #0a0f17); box-shadow: 0 0 0 1px rgba(95, 230, 255, .3); }
.cwe-plinth::before { content: ""; position: absolute; left: 6%; right: 6%; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--cwe-cyan), transparent); box-shadow: 0 0 12px var(--cwe-cyan); }
.cwe-crest { position: absolute; left: 0; right: 0; top: 16px; height: 62px; display: flex; align-items: center; justify-content: center; }
.cwe-crest img { width: 56px; height: auto; filter: drop-shadow(0 0 10px rgba(1, 137, 247, .5)); }
.cwe-win { position: absolute; left: 24px; right: 24px; top: 90px; bottom: 28px; overflow: hidden;
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px);
  background: radial-gradient(ellipse 80% 60% at 50% 40%, #0e2a46 0%, #081626 60%, #050b14 100%); perspective: 700px; }
.cwe-burst { position: absolute; inset: 0; background: radial-gradient(ellipse 55% 50% at 50% 50%, rgba(220, 250, 255, .9), rgba(95, 230, 255, .35) 35%, transparent 70%); opacity: 0; pointer-events: none; }
.cwe-card.is-hover .cwe-burst { animation: cweBurst 1.4s var(--cwe-ease) forwards; }
@keyframes cweBurst { 0% { opacity: 0; } 35% { opacity: .85; } 100% { opacity: .28; } }
.cwe-shelf { position: absolute; left: 14px; right: 14px; height: 118px; }
.cwe-shelf:nth-of-type(1) { top: 16px; } .cwe-shelf:nth-of-type(2) { top: 146px; } .cwe-shelf:nth-of-type(3) { top: 276px; }
.cwe-plate { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 12px; border-radius: 50%; background: radial-gradient(ellipse, rgba(190, 245, 255, .9) 0%, rgba(95, 230, 255, .45) 35%, rgba(1, 137, 247, .1) 65%, transparent 72%); opacity: .55; transition: opacity .5s var(--cwe-ease); }
.cwe-plate::after { content: ""; position: absolute; left: 8%; right: 8%; top: 50%; height: 1.5px; background: linear-gradient(90deg, transparent, var(--cwe-cyan), transparent); }
.cwe-card.is-hover .cwe-plate { opacity: 1; }
.cwe-card.is-hover .cwe-shelf:nth-of-type(2) .cwe-plate { transition-delay: .18s; } .cwe-card.is-hover .cwe-shelf:nth-of-type(3) .cwe-plate { transition-delay: .36s; }
.cwe-items { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; align-items: flex-end; gap: 14px; transform-style: preserve-3d; }
.cwe-it { position: relative; padding: 4px; border-radius: 6px; background: rgba(6, 16, 30, .85); border: 1.5px solid rgba(95, 230, 255, .55); box-shadow: 0 0 14px rgba(1, 137, 247, .35), 0 10px 18px rgba(0, 0, 0, .5);
  animation: cweSpin 9s ease-in-out infinite alternate; transition: translate .7s var(--cwe-ease), scale .7s var(--cwe-ease); }
.cwe-it img { display: block; border-radius: 3px; object-fit: cover; }
.cwe-it img.cwe-it__ba { object-position: 0 50%; }
.cwe-it:nth-child(2) { animation-delay: -4.5s; }
@keyframes cweSpin { from { transform: rotateY(-16deg); } to { transform: rotateY(16deg); } }
.cwe-card.is-hover .cwe-it { translate: 0 -8px; scale: 1.08; }
.cwe-card.is-hover .cwe-shelf:nth-of-type(2) .cwe-it { transition-delay: .15s; } .cwe-card.is-hover .cwe-shelf:nth-of-type(3) .cwe-it { transition-delay: .3s; }
.cwe-scan { position: absolute; left: 0; right: 0; top: 0; height: 70px; background: linear-gradient(180deg, transparent, rgba(95, 230, 255, .16) 45%, rgba(191, 244, 255, .35) 50%, rgba(95, 230, 255, .16) 55%, transparent); animation: cweScan 5s ease-in-out infinite; pointer-events: none; z-index: 3; }
@keyframes cweScan { 0% { transform: translateY(-140%); } 100% { transform: translateY(560%); } }
.cwe-door { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 4; transition: transform 1s var(--cwe-ease);
  background: linear-gradient(160deg, rgba(200, 240, 255, .16), rgba(120, 200, 255, .06) 45%, rgba(160, 225, 255, .12)); -webkit-backdrop-filter: blur(3px) saturate(1.2); backdrop-filter: blur(3px) saturate(1.2); box-shadow: inset 0 0 0 1px rgba(160, 235, 255, .25); }
.cwe-door::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 14px); opacity: .6; }
.cwe-door--l { left: 0; border-right: 1.5px solid rgba(160, 240, 255, .85); box-shadow: inset 0 0 0 1px rgba(160, 235, 255, .25), 6px 0 16px rgba(95, 230, 255, .35); }
.cwe-door--r { right: 0; border-left: 1.5px solid rgba(160, 240, 255, .85); box-shadow: inset 0 0 0 1px rgba(160, 235, 255, .25), -6px 0 16px rgba(95, 230, 255, .35); }
.cwe-door i { position: absolute; top: 50%; width: 4px; height: 60px; margin-top: -30px; border-radius: 3px; background: rgba(191, 244, 255, .8); box-shadow: 0 0 10px var(--cwe-cyan); }
.cwe-door--l i { right: 10px; } .cwe-door--r i { left: 10px; }
.cwe-card.is-hover .cwe-door--l { transform: translateX(-94%); }
.cwe-card.is-hover .cwe-door--r { transform: translateX(94%); }
.cwe-hud { position: absolute; font: 700 11px/1 Montserrat, system-ui, sans-serif; letter-spacing: .2em; color: rgba(160, 235, 255, .8); white-space: nowrap; }
.cwe-hud--a { left: -78px; top: 120px; } .cwe-hud--b { right: -84px; top: 220px; } .cwe-hud--c { right: -74px; top: 380px; }
.cwe-hud::after { content: ""; position: absolute; top: 50%; width: 26px; height: 1px; background: rgba(95, 230, 255, .6); }
.cwe-hud--a::after { left: calc(100% + 6px); } .cwe-hud--b::after, .cwe-hud--c::after { right: calc(100% + 6px); }
.cwe-ticks { position: absolute; left: -22px; top: 150px; width: 10px; height: 300px; background: repeating-linear-gradient(180deg, rgba(95, 230, 255, .7) 0 1.5px, transparent 1.5px 12px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent); }
.cwe-ticks::after { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 2px; background: var(--cwe-cyan); box-shadow: 0 0 8px var(--cwe-cyan); animation: cweTick 5s ease-in-out infinite; }
@keyframes cweTick { 0%, 100% { transform: translateY(45px); } 50% { transform: translateY(246px); } }

/* ================= CAMERA RIG (Media) ================= */
.cwe-cam { position: absolute; inset: 0; }
.cwe-g { position: absolute; display: block; height: auto; pointer-events: none; transition: filter .6s var(--cwe-ease), transform .6s var(--cwe-ease); }
.cwe-g--back { filter: brightness(.55) saturate(.9); }
.cwe-g--front { filter: brightness(.78); }
.cwe-led { left: 6px; bottom: 150px; width: 118px; }
.cwe-ringlight { right: 0; bottom: 140px; width: 132px; }
.cwe-glow { position: absolute; border-radius: 50%; pointer-events: none; transition: opacity .6s var(--cwe-ease); }
.cwe-glow--led { left: -10px; bottom: 330px; width: 160px; height: 130px; background: radial-gradient(ellipse, rgba(230, 245, 255, .30), transparent 68%); }
.cwe-glow--ring { right: -16px; bottom: 372px; width: 168px; height: 168px; background: radial-gradient(circle, rgba(200, 235, 255, .10) 0%, rgba(255, 255, 255, .06) 28%, rgba(220, 240, 255, .28) 40%, rgba(95, 230, 255, .12) 55%, transparent 70%); }
.cwe-glow--ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; opacity: 0; transition: opacity .6s var(--cwe-ease); background: radial-gradient(circle, rgba(210, 240, 255, .16) 0%, rgba(255, 255, 255, .10) 28%, rgba(235, 248, 255, .45) 40%, rgba(95, 230, 255, .2) 55%, transparent 70%); }
.cwe-drone-wrap { position: absolute; left: 0; top: 0; width: 200px; animation: cweBob 4.6s ease-in-out infinite; transition: translate .8s var(--cwe-ease); translate: 0 -6px; }
.cwe-drone { position: relative; width: 100%; filter: brightness(.62); }
.cwe-prop { position: absolute; width: 20%; height: 22%; border-radius: 50%; background: radial-gradient(ellipse, rgba(200, 215, 230, .20), rgba(200, 215, 230, .06) 60%, transparent 72%); filter: blur(1px); }
.cwe-prop--1 { left: -2%; top: -6%; } .cwe-prop--2 { left: 13%; top: 12%; } .cwe-prop--3 { right: 13%; top: 12%; } .cwe-prop--4 { right: -2%; top: -6%; }
@keyframes cweBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.cwe-rig { position: absolute; left: 50%; bottom: 30px; height: 560px; aspect-ratio: 963 / 1596; transform: translateX(-50%); z-index: 3; }
.cwe-rig > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cwe-lens { position: absolute; left: 35.826%; top: 13.847%; width: 33.229%; height: 20.05%; }
.cwe-lens img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cwe-spin1 { position: absolute; inset: 0; transition: transform 1.2s var(--cwe-ease); }
.cwe-spin2 { position: absolute; inset: 0; }
.cwe-card.is-hover .cwe-spin1 { transform: rotate(100deg); }
.cwe-card.is-hover .cwe-spin2 { animation: cweRing 24s linear 1.2s infinite; }
@keyframes cweRing { to { transform: rotate(360deg); } }
.cwe-gglow { position: absolute; inset: 16%; border-radius: 50%; background: radial-gradient(circle, rgba(95, 230, 255, 0) 35%, rgba(95, 230, 255, .35) 62%, rgba(95, 230, 255, 0) 72%); opacity: 0; transition: opacity .8s var(--cwe-ease); mix-blend-mode: screen; }
.cwe-card.is-hover .cwe-gglow { opacity: 1; }
.cwe-af { position: absolute; inset: -14%; opacity: 0; transform: scale(1.15); transition: opacity .6s var(--cwe-ease), transform .9s var(--cwe-ease); }
.cwe-af i { position: absolute; width: 22%; height: 22%; border: 2.5px solid var(--cwe-cyan); filter: drop-shadow(0 0 5px var(--cwe-cyan)); }
.cwe-af i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; } .cwe-af i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.cwe-af i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; } .cwe-af i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.cwe-card.is-hover .cwe-af { opacity: 1; transform: scale(1); }
.cwe-recchip { position: absolute; left: 13%; top: 5.5%; display: flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; background: rgba(10, 14, 22, .78); border: 1px solid rgba(255, 140, 145, .55); font: 800 12px/1 Montserrat, system-ui, sans-serif; letter-spacing: .2em; color: #ffd4d6; white-space: nowrap; }
.cwe-recchip b { width: 9px; height: 9px; border-radius: 50%; background: var(--cwe-red); box-shadow: 0 0 10px var(--cwe-red); animation: cweRec 2s ease-in-out infinite; }
@keyframes cweRec { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.85); } }
.cwe-pocket { left: 118px; bottom: 14px; width: 46px; z-index: 4; }
.cwe-mtri { left: 30px; bottom: 14px; width: 92px; z-index: 4; }
.cwe-phone { right: 128px; bottom: 14px; width: 56px; z-index: 4; }
.cwe-mic { right: 28px; bottom: 12px; width: 92px; z-index: 4; }
.cwe-card.is-hover .cwe-g--back { filter: brightness(.75) saturate(1); }
.cwe-card.is-hover .cwe-ringlight { filter: brightness(1.05); }
.cwe-card.is-hover .cwe-g--front { filter: brightness(.92); }
.cwe-card.is-hover .cwe-glow--ring::after { opacity: 1; }
.cwe-card.is-hover .cwe-drone-wrap { translate: 0 -22px; }

/* click: no zoom (Boss 11:23 PHT). pf-entrances.js navigates straight away; the /portfolio/ vault door loader is the transition. */

/* loops pause while the section is off-screen */
.cwe--off .cwe-floor, .cwe--off .cwe-pts b, .cwe--off .cwe-ttl, .cwe--off .cwe-it, .cwe--off .cwe-scan, .cwe--off .cwe-ticks::after, .cwe--off .cwe-drone-wrap, .cwe--off .cwe-recchip b, .cwe--off .cwe-spin2 { animation-play-state: paused; }

/* no-JS fallbacks for the stage scale (pf-entrances.js sets the exact --k) */
@media (max-width: 1400px) { .cwe-stagebox { --k: .72; } }
@media (max-width: 760px) {
  .cwe { padding: 44px 16px 56px; }
  .cwe-h2 { font-size: 52px; }
  .cwe-eyebrow { font-size: 12px; letter-spacing: .26em; } .cwe-eyebrow::before, .cwe-eyebrow::after { width: 26px; }
  .cwe-pair { grid-template-columns: minmax(0, 1fr); gap: 54px; margin-top: 30px; }
  .cwe-card { width: 100%; }
  .cwe-ttl { font-size: 65px; }
  .cwe-cap { font-size: 15px; margin-top: 10px; }
  .cwe-stagebox { --k: .54; }
  .cwe-btn { font-size: 15px; padding: 15px 28px; margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .cwe *, .cwe *::before, .cwe *::after { animation: none !important; transition: none !important; }
}

/* ================= VAULT LOCK on the door seam (Boss Oct 18 6:21 AM) =================
   Matches the /portfolio/ loader: metal ring with cyan ticks, 8 cyan locking bolts, turning 6-spoke wheel, small Clickwave logo (never recoloured).
   72px = ~25% of the 282px door pair. Idle: very slow wheel turn. Hover/focus (.is-hover): wheel turns ~80deg, bolts glow. Click: unchanged (straight to the loader). */
.cwe-lock { position: absolute; left: 50%; top: 50%; z-index: 5; width: 72px; height: 72px; margin: -36px 0 0 -36px; pointer-events: none;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .55)) drop-shadow(0 0 10px rgba(95, 230, 255, .28)); }
.cwe-lock__ring, .cwe-lock__wheel, .cwe-lock__wheel svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.cwe-lock__bolts { position: absolute; inset: 0; }
.cwe-lock__bolts i { position: absolute; left: 50%; top: 50%; width: 6px; height: 11px; margin: -5.5px 0 0 -3px; border-radius: 3px;
  background: linear-gradient(180deg, #bff4ff, #2b8fd0); box-shadow: 0 0 4px rgba(95, 230, 255, .55); opacity: .85;
  transform: rotate(var(--a)) translateY(-35px); transition: box-shadow .5s var(--cwe-ease), opacity .5s var(--cwe-ease), filter .5s var(--cwe-ease); }
.cwe-lock__bolts i:nth-child(1) { --a: 0deg; } .cwe-lock__bolts i:nth-child(2) { --a: 45deg; } .cwe-lock__bolts i:nth-child(3) { --a: 90deg; } .cwe-lock__bolts i:nth-child(4) { --a: 135deg; }
.cwe-lock__bolts i:nth-child(5) { --a: 180deg; } .cwe-lock__bolts i:nth-child(6) { --a: 225deg; } .cwe-lock__bolts i:nth-child(7) { --a: 270deg; } .cwe-lock__bolts i:nth-child(8) { --a: 315deg; }
.cwe-lock__wheel { filter: drop-shadow(0 0 3px rgba(95, 230, 255, .55)); animation: cweLockIdle 48s linear infinite; }
.cwe-lock__wheel svg { transition: transform 1s var(--cwe-ease); }
.cwe-lock__logo { position: absolute; left: 50%; top: 50%; width: 34%; height: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 2px 6px rgba(1, 137, 247, .5)); }
@keyframes cweLockIdle { to { rotate: 360deg; } }
.cwe-card.is-hover .cwe-lock__wheel svg { transform: rotate(80deg); }
.cwe-card.is-hover .cwe-lock__bolts i { opacity: 1; filter: brightness(1.25); box-shadow: 0 0 10px rgba(95, 230, 255, .95), 0 0 18px rgba(95, 230, 255, .55); }
.cwe--off .cwe-lock__wheel { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .cwe-card.is-hover .cwe-lock__wheel svg { transform: none; } }
/* Oct 18 follow-up: shelf thumbnails = current /portfolio orbit thumbs. Middle shelf (under the vault lock) flanks the lock instead of hiding behind it. */
.cwe-it img.cwe-it__orb { object-position: 50% 50%; }
.cwe-win > .cwe-shelf:nth-of-type(2) .cwe-items { gap: 84px; }
.cwe-win > .cwe-shelf:nth-of-type(2) .cwe-it img.cwe-it__orb { width: 74px; height: 47px; }
