/* JBX Graphics — animated studio template
   Brand: deep navy + JBX purple, with CMYK accents for a print/design feel. */
@property --spin { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

:root {
  --bg: #070615;
  --bg2: #0d0b24;
  --panel: rgba(255, 255, 255, .045);
  --panel2: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .09);
  --text: #f5f3ff;
  --muted: #aaa6cc;
  --brand: #915eff;
  --brand2: #c4a2ff;
  --cyan: #22d3ee;
  --magenta: #ff4fa3;
  --yellow: #ffd23f;
  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, "Cascadia Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
/* film grain */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

main { overflow-x: hidden; overflow-x: clip; } /* animated/tilted cards never cause sideways scroll */
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3.4rem); font-weight: 800; max-width: 18ch; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.muted { color: var(--muted); }
.center { text-align: center; display: flex; justify-content: center; }
.grad {
  background: linear-gradient(100deg, var(--brand) 0%, var(--brand2) 35%, var(--magenta) 70%, var(--brand) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: -250% 0; } }

.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--brand); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: var(--bg);
  transition: opacity .6s var(--ease), visibility .6s;
}
.loader { animation: loaderSafety .6s ease 3.5s forwards; } /* never block the page if JS fails */
@keyframes loaderSafety { to { opacity: 0; visibility: hidden; } }
.loader.is-done { opacity: 0; visibility: hidden; }
.no-js .loader { display: none; }
.loader__box { display: grid; justify-items: center; gap: 14px; }
.loader__box img { border-radius: 14px; animation: pop 1s var(--ease) both; }
.loader__box p { font-size: .75rem; color: var(--muted); }
.loader__bars { display: flex; gap: 6px; }
.loader__bars i { width: 34px; height: 6px; border-radius: 4px; transform-origin: left; animation: bar 1s var(--ease) infinite alternate; }
.loader__bars i:nth-child(1) { background: var(--cyan); }
.loader__bars i:nth-child(2) { background: var(--magenta); animation-delay: .1s; }
.loader__bars i:nth-child(3) { background: var(--yellow); animation-delay: .2s; }
.loader__bars i:nth-child(4) { background: var(--brand); animation-delay: .3s; }
@keyframes bar { from { transform: scaleX(.15); } to { transform: scaleX(1); } }
@keyframes pop { from { transform: scale(.6) rotate(-8deg); opacity: 0; } }

/* ---------- progress + cursor ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 120; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--yellow), var(--brand)); }
.cursor {
  position: fixed; left: 0; top: 0; z-index: 150; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.7); pointer-events: none; display: none; place-items: center;
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s, border-color .3s;
  mix-blend-mode: difference;
}
.cursor__label { font-size: .7rem; font-weight: 700; opacity: 0; transition: opacity .2s; color: #000; }
.has-cursor .cursor { display: grid; }
.cursor.is-link { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: #fff; border-color: #fff; }
.cursor.is-view { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: #fff; mix-blend-mode: normal; }
.cursor.is-view .cursor__label { opacity: 1; }

/* ---------- buttons ---------- */
.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .9em 1.5em; border-radius: 999px;
  font-weight: 600; font-size: .95rem; border: 1px solid var(--line); background: var(--panel); cursor: pointer;
  transform: translate(var(--mx), var(--my)); transition: transform .35s var(--ease), background .3s, box-shadow .3s, border-color .3s;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); white-space: nowrap;
}
.btn:hover { border-color: rgba(255,255,255,.25); background: var(--panel2); }
.btn--glow { background: linear-gradient(135deg, var(--brand), #6d3df5); border-color: transparent; box-shadow: 0 10px 40px -10px rgba(145, 94, 255, .8); }
.btn--glow:hover { background: linear-gradient(135deg, #a57bff, var(--brand)); box-shadow: 0 14px 50px -8px rgba(145, 94, 255, .95); }
.btn--sm { padding: .6em 1.1em; font-size: .85rem; }
.btn--block { width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; z-index: 100; transform: translateX(-50%);
  width: min(1180px, calc(100% - 24px)); display: flex; align-items: center; gap: 18px; padding: 10px 12px 10px 16px;
  border-radius: 999px; border: 1px solid transparent; transition: background .4s, border-color .4s, top .4s;
}
.nav.is-scrolled { background: rgba(10, 8, 30, .7); border-color: var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); top: 10px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-right: auto; }
.brand img { border-radius: 10px; }
.brand b { color: var(--brand2); font-weight: 700; }
.nav__links { display: flex; gap: 4px; }
.nav__links a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: .92rem; position: relative; transition: color .3s; }
.nav__links a::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--brand); transform: translateX(-50%) scale(0); transition: transform .3s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after { transform: translateX(-50%) scale(1); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; padding: 120px 24px 80px; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.hero__grid {
  position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; animation: gridmove 18s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
@keyframes gridmove { to { background-position: 56px 56px; } }
.blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); opacity: .55; }
.blob--a { width: 520px; height: 520px; background: var(--brand); top: -120px; right: -80px; animation: drift 14s ease-in-out infinite alternate; }
.blob--b { width: 420px; height: 420px; background: #2b1a8f; bottom: -140px; left: -120px; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-80px, 60px) scale(1.15); } }

.hero__inner { width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--muted); padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3ef08b; box-shadow: 0 0 0 0 rgba(62, 240, 139, .7); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(62, 240, 139, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 240, 139, 0); } }
.hero__title { margin: 22px 0 10px; font-size: clamp(3.4rem, 10vw, 7.6rem); font-weight: 900; line-height: .92; letter-spacing: -.045em; display: flex; flex-wrap: wrap; column-gap: .22em; }
.split { display: inline-block; white-space: nowrap; }
.split .ch { display: inline-block; transform: translateY(110%) rotate(8deg); opacity: 0; transition: transform .9s var(--ease), opacity .9s var(--ease); transition-delay: calc(var(--i) * 45ms + 200ms); }
.split.grad .ch { background: inherit; -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 250% 100%; animation: shimmer 6s linear infinite; background-image: linear-gradient(100deg, var(--brand) 0%, var(--brand2) 35%, var(--magenta) 70%, var(--brand) 100%); }
.split.grad { background: none; animation: none; color: var(--brand); }
.is-ready .split .ch { transform: none; opacity: 1; }
.split .ch:hover { animation: jelly .6s var(--ease); }
@keyframes jelly { 30% { transform: scale(1.25, .8); } 50% { transform: scale(.85, 1.15); } 70% { transform: scale(1.08, .95); } }

.hero__rotator { font-size: clamp(1.2rem, 2.6vw, 1.7rem); font-weight: 600; color: var(--muted); display: flex; flex-wrap: wrap; gap: .35em; align-items: baseline; }
.rotator { position: relative; display: inline-block; color: var(--text); min-height: 1.3em; }
.rotator span { display: inline-block; padding: 0 .2em; border-bottom: 3px solid var(--cyan); animation: wordIn .6s var(--ease) both; }
.rotator span.out { animation: wordOut .4s var(--ease) both; }
@keyframes wordIn { from { transform: translateY(60%); opacity: 0; filter: blur(6px); } }
@keyframes wordOut { to { transform: translateY(-60%); opacity: 0; filter: blur(6px); } }
.hero__tag { margin-top: 16px; font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--muted); }
.hero__tag strong { color: var(--text); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.chips { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: .8rem; padding: 6px 12px; border-radius: 999px; border: 1px dashed rgba(255,255,255,.2); color: var(--muted); }
.chips li::before { content: "✓ "; color: var(--cyan); }
.founder-pill { --mx: 0px; --my: 0px; margin-top: 22px; display: inline-flex; align-items: center; gap: 12px; padding: 6px 18px 6px 6px; border-radius: 999px; background: linear-gradient(90deg, rgba(145,94,255,.28), rgba(145,94,255,.06)); border: 1px solid rgba(145,94,255,.55); translate: var(--mx) var(--my); transition: translate .35s var(--ease), background .3s, border-color .3s; }
.founder-pill:hover { background: linear-gradient(90deg, rgba(145,94,255,.45), rgba(255,79,163,.15)); border-color: var(--brand2); }
.founder-pill img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; border: 2px solid var(--brand2); }
.founder-pill span { display: grid; line-height: 1.2; font-weight: 700; font-size: .95rem; }
.founder-pill small { font-size: .66rem; color: var(--brand2); text-transform: uppercase; font-weight: 400; }
.founder-pill b { font-size: 1.1rem; transition: transform .3s var(--ease); }
.founder-pill:hover b { transform: translateX(4px); }
.nav__links a.nav__founder { color: var(--brand2); }

/* artboard */
.artboard { position: relative; border-radius: var(--radius); background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid var(--line); padding: 44px 14px 14px 32px; box-shadow: 0 40px 120px -40px rgba(145, 94, 255, .55); }
.artboard__tab { position: absolute; top: 10px; left: 32px; font-size: .7rem; color: var(--muted); display: flex; align-items: center; gap: 8px; padding: 4px 10px; background: rgba(0,0,0,.35); border-radius: 8px 8px 0 0; border-bottom: 2px solid var(--brand); }
.tab-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }
.ruler { position: absolute; opacity: .6; }
.ruler--x { top: 34px; left: 32px; right: 14px; height: 8px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 1px, transparent 1px 10px), repeating-linear-gradient(90deg, rgba(255,255,255,.6) 0 1px, transparent 1px 50px); background-size: auto 4px, auto 8px; background-repeat: repeat-x; background-position: bottom; }
.ruler--y { top: 44px; left: 18px; bottom: 14px; width: 8px; background: repeating-linear-gradient(180deg, rgba(255,255,255,.35) 0 1px, transparent 1px 10px), repeating-linear-gradient(180deg, rgba(255,255,255,.6) 0 1px, transparent 1px 50px); background-size: 4px auto, 8px auto; background-repeat: repeat-y; background-position: right; }
.artboard__canvas {
  position: relative; aspect-ratio: 5 / 6; border-radius: 14px; overflow: hidden;
  background:
    radial-gradient(circle at 70% 30%, rgba(145, 94, 255, .45), transparent 55%),
    radial-gradient(circle at 20% 90%, rgba(34, 211, 238, .22), transparent 50%),
    conic-gradient(from 0deg at 50% 50%, #120f33, #1a1240, #120f33);
}
.artboard__canvas::before { /* transparency checker hint at the edges */
  content: ""; position: absolute; inset: 0; opacity: .08;
  background: repeating-conic-gradient(#fff 0 25%, transparent 0 50%) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, transparent 45%, #000 80%); mask-image: radial-gradient(circle at 50% 45%, transparent 45%, #000 80%);
}
.pen { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.pen path { fill: none; stroke: var(--cyan); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 3.2s var(--ease) 1s forwards; filter: drop-shadow(0 0 8px rgba(34, 211, 238, .7)); }
.pen .anchors { opacity: 0; animation: fadeIn .6s ease 3.4s forwards; }
.pen .anchors circle { fill: var(--bg); stroke: var(--cyan); stroke-width: 2; }
.pen .anchors line { stroke: rgba(34, 211, 238, .5); stroke-width: 1.5; stroke-dasharray: 4 4; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
.pen-space { position: absolute; top: 0; left: 0; z-index: 4; width: 500px; height: 600px; transform: scale(var(--s, 1)); transform-origin: 0 0; pointer-events: none; }
.pen-cursor {
  position: absolute; top: 0; left: 0; width: 30px; height: 30px; color: #fff;
  offset-path: path("M-20 470 C 90 330, 170 560, 260 400 S 420 160, 520 250"); offset-rotate: 0deg; offset-distance: 0%;
  animation: penmove 3.2s var(--ease) 1s forwards; opacity: 0;
}
.pen-cursor svg { width: 100%; height: 100%; fill: #fff; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); transform: translate(-2px, -24px); }
@keyframes penmove { 0% { offset-distance: 0%; opacity: 1; } 92% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.hero__photo { position: absolute; inset: auto 0 0 0; margin: 0 auto; width: 62%; z-index: 2; }
.hero__photo img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); animation: rise 1.2s var(--ease) .5s both; }
@keyframes rise { from { transform: translateY(12%); opacity: 0; } }
.transform { position: absolute; inset: 6% -4% -1% -4%; border: 1.5px dashed rgba(255,255,255,.55); animation: ants 1s linear infinite, fadeIn .6s ease 2s both; opacity: 0; }
.transform i { position: absolute; width: 9px; height: 9px; background: #fff; border: 1.5px solid var(--brand); }
.transform i:nth-child(1) { top: -5px; left: -5px; } .transform i:nth-child(2) { top: -5px; left: calc(50% - 5px); } .transform i:nth-child(3) { top: -5px; right: -5px; }
.transform i:nth-child(4) { top: calc(50% - 5px); right: -5px; } .transform i:nth-child(5) { bottom: -5px; right: -5px; } .transform i:nth-child(6) { bottom: -5px; left: calc(50% - 5px); }
.transform i:nth-child(7) { bottom: -5px; left: -5px; } .transform i:nth-child(8) { top: calc(50% - 5px); left: -5px; }
@keyframes ants { to { border-color: rgba(145,94,255,.75); } }

.float {
  --tx: 0px; --ty: 0px;
  position: absolute; z-index: 3; padding: 12px 14px; border-radius: 14px; background: rgba(14, 11, 40, .72); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 20px 40px -20px rgba(0,0,0,.8);
  translate: var(--tx) var(--ty); transition: translate .6s var(--ease); font-size: .78rem;
}
.float .mono { font-size: .68rem; color: var(--muted); }
.card-layers { top: 9%; left: 6%; width: 168px; animation: bob 6s ease-in-out infinite; }
.card-layers ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 5px; }
.card-layers li { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 6px; animation: layerSel 6s steps(1) infinite; }
.card-layers li:nth-child(2) { animation-delay: -4s; } .card-layers li:nth-child(3) { animation-delay: -2s; }
@keyframes layerSel { 0%, 33% { background: rgba(145, 94, 255, .35); } 33.01%, 100% { background: transparent; } }
.eye { width: 10px; height: 6px; border: 1.5px solid var(--muted); border-radius: 50%; }
.ly { width: 18px; height: 14px; border-radius: 3px; display: grid; place-items: center; font-size: .6rem; font-weight: 800; }
.ly--t { background: #fff; color: #000; } .ly--p { background: linear-gradient(135deg, #7c5cff, #ff4fa3); } .ly--b { background: #1f1a4a; border: 1px solid var(--line); }
.card-swatch { right: 5%; top: 36%; animation: bob 7s ease-in-out -2s infinite; }
.swatch-row { display: flex; gap: 6px; margin-bottom: 6px; }
.swatch-row i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgba(255,255,255,.15); animation: swatchPulse 4s ease-in-out infinite; }
.swatch-row i:nth-child(2) { animation-delay: 1s; } .swatch-row i:nth-child(3) { animation-delay: 2s; } .swatch-row i:nth-child(4) { animation-delay: 3s; }
@keyframes swatchPulse { 0%, 20% { transform: scale(1.25); box-shadow: 0 0 0 2px #fff; } 30%, 100% { transform: none; } }
.card-type { left: 4%; bottom: 10%; display: grid; animation: bob 8s ease-in-out -4s infinite; }
.card-type .aa { font-size: 2rem; font-weight: 900; line-height: 1; background: linear-gradient(135deg, #fff, var(--brand2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes bob { 50% { transform: translateY(-10px); } }

.scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; font-size: .7rem; color: var(--muted); }
.scroll-hint span { width: 22px; height: 36px; border: 1.5px solid var(--muted); border-radius: 12px; position: relative; }
.scroll-hint span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--text); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 60% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- marquee ---------- */
.marquee-wrap { overflow: hidden; padding: 30px 0 50px; }
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(145,94,255,.18), rgba(255,79,163,.12)); transform: rotate(-2deg) scale(1.04); }
.marquee__track { display: flex; width: max-content; gap: 28px; padding: 18px 0; animation: marquee 30s linear infinite; font-size: clamp(1.2rem, 3vw, 2rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
.marquee__track span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.75); }
.marquee__track b { color: var(--yellow); font-weight: 400; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 100px 0; }
.sec-head { margin-bottom: 48px; display: grid; gap: 14px; }
.kicker { font-size: .78rem; color: var(--brand2); text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 34px; height: 8px; background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 6px); opacity: .8; }
.clients .kicker::before { display: none; }

/* reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.tilt.reveal.in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* services */
.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.svc { grid-column: span 2; }
.svc:nth-child(4) { grid-column: 2 / span 2; }
.svc {
  --rx: 0deg; --ry: 0deg;
  position: relative; padding: 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .4s var(--ease), border-color .3s, background .3s, opacity .9s var(--ease);
  overflow: hidden;
}
.svc.reveal:not(.in) { transform: translateY(40px); }
.svc::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--px, 50%) var(--py, 0%), rgba(145, 94, 255, .22), transparent 45%); opacity: 0; transition: opacity .3s; }
.svc:hover { border-color: rgba(145, 94, 255, .5); }
.svc:hover::before { opacity: 1; }
.svc h3 { margin: 18px 0 8px; position: relative; }
.svc p { color: var(--muted); font-size: .95rem; position: relative; }
.svc__icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(145,94,255,.35), rgba(34,211,238,.15)); border: 1px solid var(--line); position: relative; }
.svc__icon svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.svc__icon .draw { stroke: var(--cyan); stroke-dasharray: 60; stroke-dashoffset: 60; transition: stroke-dashoffset 1.2s var(--ease) .3s; }
.svc.in .svc__icon .draw { stroke-dashoffset: 0; }
.svc:hover .svc__icon { animation: wiggle .6s var(--ease); }
@keyframes wiggle { 25% { transform: rotate(-8deg) scale(1.08); } 60% { transform: rotate(6deg) scale(1.04); } }

/* work */
.section--wide { width: min(1320px, calc(100% - 32px)); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -16px 0 28px; }
.filter { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-size: .9rem; color: var(--muted); transition: all .3s var(--ease); }
.filter:hover { color: var(--text); }
.filter.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.shot {
  position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in;
  background: var(--bg2); transition: opacity .5s var(--ease), transform .5s var(--ease), filter .5s;
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease), filter .5s; }
.shot:hover img { transform: scale(1.06); }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,6,21,.75), transparent 45%); opacity: 0; transition: opacity .4s; }
.shot:hover::after, .shot:focus-visible::after { opacity: 1; }
.shot__tag { position: absolute; left: 14px; bottom: 12px; z-index: 1; font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transform: translateY(8px); transition: all .4s var(--ease); }
.shot:hover .shot__tag, .shot:focus-visible .shot__tag { opacity: 1; transform: none; }
.shot.is-hidden { display: none; }
.shot.is-entering { animation: shotIn .55s var(--ease) both; }
@keyframes shotIn { from { opacity: 0; transform: scale(.92) translateY(20px); } }
#work .center { margin-top: 24px; }

/* clients */
.clients { padding: 40px 0 10px; overflow: hidden; }
.clients__track { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin-top: 20px; padding: 0 16px; }
.clients figure { margin: 0; display: grid; justify-items: center; gap: 8px; padding: 16px 18px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); width: 140px; transition: transform .4s var(--ease), border-color .3s; }
.clients figure:hover { transform: translateY(-6px) rotate(-2deg); border-color: rgba(145,94,255,.5); }
.clients img { width: 64px; height: 64px; object-fit: contain; border-radius: 14px; background: #fff; padding: 4px; filter: grayscale(1); transition: filter .4s; }
.clients figure:hover img { filter: none; }
.clients figcaption { font-size: .78rem; color: var(--muted); text-align: center; }

/* price swatches */
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.chip {
  border-radius: 14px; background: #fbfaff; color: #120f2a; overflow: hidden; box-shadow: 0 20px 50px -20px rgba(0,0,0,.7);
  transform: rotate(var(--r, 0deg)); transform-origin: 50% 100%;
}
.chip:nth-child(1) { --r: -3deg; } .chip:nth-child(2) { --r: 2deg; } .chip:nth-child(3) { --r: -1.5deg; } .chip:nth-child(4) { --r: 2.5deg; } .chip:nth-child(5) { --r: -2deg; }
.chip.reveal { transform: translateY(60px) rotate(calc(var(--r) * 4)); }
.chip.reveal.in { transform: rotate(var(--r)); transition: transform .9s var(--ease), opacity .9s var(--ease), box-shadow .3s; }
.chip.reveal.in:hover { transform: translateY(-14px) rotate(0deg) scale(1.03); box-shadow: 0 30px 60px -20px var(--sw); transition-delay: 0ms; }
.chip__color { aspect-ratio: 1 / .85; background: var(--sw); position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 10px 12px; }
.chip__color::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); }
.chip:hover .chip__color::after { animation: sheen .9s var(--ease); }
@keyframes sheen { to { transform: translateX(120%); } }
.chip__color span { font-size: .7rem; color: rgba(0,0,0,.6); font-weight: 700; }
.chip__body { padding: 14px 14px 16px; }
.chip h3 { font-size: 1rem; }
.price { font-weight: 800; font-size: 1.35rem; margin-top: 4px; letter-spacing: -.02em; }
.chip .sub { font-size: .74rem; color: #5b5680; margin-top: 2px; line-height: 1.35; }
.chip .sub b { color: #120f2a; }
.note { margin-top: 26px; color: var(--muted); font-size: .9rem; }
.rush { margin-top: 34px; padding: 18px 20px; border-radius: var(--radius); border: 1px dashed rgba(255, 210, 63, .45); background: rgba(255, 210, 63, .05); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.rush__title { font-size: .78rem; color: var(--yellow); text-transform: uppercase; }
.rush ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.rush li { display: grid; padding: 8px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); line-height: 1.25; min-width: 104px; }
.rush li b { font-size: .95rem; }
.rush li span { font-size: .8rem; color: var(--muted); }
.estimate { font-weight: 700; font-size: 1.05rem; padding: 12px 14px; border-radius: 12px; background: rgba(145, 94, 255, .12); border: 1px solid rgba(145, 94, 255, .35); }
.estimate small { display: block; font-weight: 400; font-size: .75rem; color: var(--muted); }
.estimate:empty { display: none; }

/* packages */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.pack {
  --rx: 0deg; --ry: 0deg;
  position: relative; padding: 30px 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .4s var(--ease), opacity .9s var(--ease);
}
.pack.reveal:not(.in) { transform: translateY(40px); }
.pack h3 { font-size: 1.5rem; margin-top: 6px; }
.pack__label { font-size: .72rem; color: var(--muted); text-transform: uppercase; }
.pack__price { font-size: 2.2rem; font-weight: 800; margin: 14px 0 18px; letter-spacing: -.03em; }
.pack__price small { font-size: .9rem; font-weight: 500; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.pack ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; flex: 1; }
.pack li { position: relative; padding-left: 28px; color: #d9d6f2; font-size: .94rem; }
.pack li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 6px; background: rgba(145,94,255,.25) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c4a2ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.pack--hot { background: linear-gradient(180deg, rgba(145,94,255,.2), rgba(145,94,255,.04)); border-color: transparent; }
.pack--hot::before {
  content: ""; position: absolute; inset: -1.5px; z-index: -1; border-radius: calc(var(--radius) + 1.5px);
  background: conic-gradient(from var(--spin), var(--brand), var(--cyan), var(--magenta), var(--yellow), var(--brand)); animation: spin 5s linear infinite;
}
.pack--hot::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--radius); background: var(--bg); }
.pack--hot { isolation: isolate; }
@keyframes spin { to { --spin: 360deg; } }

/* process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; left: 4%; right: 4%; height: 2px; background: linear-gradient(90deg, var(--brand), var(--cyan), var(--magenta), var(--yellow)); transform-origin: left; transform: scaleX(var(--line-p, 0)); transition: transform 1.6s var(--ease); }
.steps.in::before { --line-p: 1; }
.step { position: relative; padding-top: 70px; }
.step__n { position: absolute; top: 0; left: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--brand); font-weight: 700; font-size: .95rem; box-shadow: 0 0 0 6px var(--bg); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .94rem; }

/* about */
.about__card { position: relative; padding: clamp(28px, 5vw, 64px); border-radius: 30px; border: 1px solid var(--line); overflow: hidden; background: radial-gradient(600px circle at 90% 0%, rgba(145,94,255,.35), transparent 60%), radial-gradient(500px circle at 0% 100%, rgba(255,79,163,.18), transparent 60%), var(--bg2); display: grid; gap: 18px; }
.about__card h2 { max-width: 22ch; }
.about__card > p { color: var(--muted); max-width: 60ch; font-size: 1.05rem; }
.about__card .hero__cta { margin-top: 6px; }

/* contact */
.contact { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; align-items: start; }
.order { padding: 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); display: grid; gap: 14px; }
.order h3 { font-size: 1.35rem; }
.order label { display: grid; gap: 6px; font-size: .85rem; color: var(--muted); font-weight: 500; }
.order input, .order select, .order textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .3s, box-shadow .3s;
}
.order select option { background: var(--bg2); }
.order input:focus, .order select:focus, .order textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(145,94,255,.2); }
.order textarea { resize: vertical; min-height: 90px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row--btns .btn { white-space: normal; text-align: center; }
.preview { font-size: .78rem; white-space: pre-wrap; color: #cfe9ff; background: rgba(34,211,238,.07); border: 1px dashed rgba(34,211,238,.35); border-radius: 12px; padding: 12px 14px; }
.preview::before { content: "WhatsApp message preview"; display: block; color: var(--cyan); margin-bottom: 6px; font-size: .68rem; text-transform: uppercase; }
.info { display: grid; gap: 14px; }
.info__item { --rx: 0deg; --ry: 0deg; display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .4s var(--ease), border-color .3s; font-weight: 600; }
.info__item:hover { border-color: rgba(145,94,255,.5); }
.info__item small { display: block; font-size: .7rem; color: var(--muted); font-weight: 400; text-transform: uppercase; }
.info__icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.info__icon svg { width: 24px; height: 24px; fill: #fff; }
.info__icon.wa { background: #25d366; } .info__icon.pin { background: var(--brand); }

/* footer */
.footer { padding: 40px 24px 30px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__big { font-size: clamp(6rem, 28vw, 22rem); font-weight: 900; line-height: .8; text-align: center; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px rgba(145,94,255,.55); background: linear-gradient(90deg, var(--brand), var(--magenta)) 0 100% / 0% 100% no-repeat; -webkit-background-clip: text; background-clip: text; transition: background-size 1.6s var(--ease); user-select: none; }
.footer.in .footer__big { background-size: 100% 100%; }
.footer__row { width: min(1180px, 100%); margin: 30px auto 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; color: var(--muted); font-size: .88rem; }
.footer__row nav { display: flex; gap: 18px; }
.footer__row a:hover { color: var(--text); }

/* floating WhatsApp */
.wa-float { --mx: 0px; --my: 0px; position: fixed; right: 18px; bottom: 18px; z-index: 110; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; box-shadow: 0 10px 30px -6px rgba(37, 211, 102, .7); transform: translate(var(--mx), var(--my)); transition: transform .35s var(--ease); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ring 2.4s ease-out infinite; }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; color: var(--text); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(4, 3, 14, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lightbox figure { margin: 0; display: grid; gap: 10px; justify-items: center; animation: lbIn .45s var(--ease); }
.lightbox img { max-width: min(92vw, 900px); max-height: 82vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox figcaption { font-size: .8rem; color: var(--muted); }
@keyframes lbIn { from { opacity: 0; transform: scale(.94); } }
.lb-btn { position: fixed; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.08); cursor: pointer; font-size: 1.5rem; line-height: 1; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255,255,255,.18); }
.lb-close { top: 18px; right: 18px; font-size: 1.1rem; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero__inner { grid-template-columns: 1fr; }
  .artboard { max-width: 520px; width: 100%; margin: 10px auto 0; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .svc, .svc:nth-child(4) { grid-column: auto; }
  .svc:last-child { grid-column: 1 / -1; }
  .swatches { grid-template-columns: repeat(3, 1fr); }
  .packs { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .steps::before { display: none; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav__links {
    position: fixed; top: 74px; left: 12px; right: 12px; flex-direction: column; gap: 4px; padding: 12px; border-radius: 22px;
    background: #0f0c2a; border: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
    opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98); transition: all .35s var(--ease);
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { padding: 14px 16px; font-size: 1.05rem; }
  .nav__links a::after { display: none; }
  .nav { background: rgba(10, 8, 30, .7); border-color: var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .burger { display: block; }
  .nav__cta { display: none; }
  .hero { padding: 104px 18px 70px; }
  .scroll-hint { display: none; }
  .section { width: calc(100% - 32px); padding: 70px 0; }
  .services { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .swatches .chip:last-child { grid-column: 1 / -1; max-width: 50%; justify-self: center; width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .shot { border-radius: 12px; }
  .shot__tag { opacity: 1; transform: none; font-size: .7rem; left: 8px; bottom: 8px; }
  .float { font-size: .66rem; padding: 8px 9px; }
  .card-layers { width: 118px; top: 5%; left: 4%; }
  .card-layers ul { gap: 3px; margin-top: 5px; }
  .card-swatch { top: 56%; right: 4%; }
  .swatch-row i { width: 16px; height: 16px; }
  .card-type { display: none; }
  .artboard { padding: 40px 10px 10px 26px; }
  .artboard__tab { left: 26px; font-size: .62rem; }
  .ruler--x { left: 26px; right: 10px; } .ruler--y { left: 13px; bottom: 10px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .split .ch { opacity: 1 !important; transform: none !important; }
  .pen path { stroke-dashoffset: 0; }
  .pen-cursor { display: none; }
  .marquee__track { animation: none; }
  body::after { display: none; }
}
