/* ============ Xenon — tokens ============ */
:root {
  --bg: #08080D;
  --bg-alt: #0C0C13;
  --card: #12121A;
  --line: #22222E;
  --line-2: #2A2A3A;
  --text: #F2F3F7;
  --body: #A7ABBA;
  --muted: #5E6275;
  --blue: #1E6BFF;
  --blue-deep: #0E3FB8;
  --blue-light: #6EA0FF;
  --orbit: #DADDE5;

  --f-head: "Syne", system-ui, sans-serif;
  --f-body: "DM Sans", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --r: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--body); font: 400 17px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-head); color: var(--text); letter-spacing: -0.02em; margin: 0; line-height: 1.05; }
h1 { font-weight: 800; font-size: clamp(2.3rem, 4.6vw, 4.1rem); }
h2 { font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 2.9rem); max-width: 20ch; }
h3 { font-weight: 700; font-size: 1.3rem; line-height: 1.2; }
p { margin: 0; }
em { font-style: normal; color: var(--blue-light); }
::selection { background: var(--blue); color: #fff; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; border-radius: 6px; }

.eyebrow { font: 700 14px/1.2 var(--f-body); text-transform: uppercase; letter-spacing: .18em; color: var(--blue-light); margin-bottom: 18px; }
.sub { margin-top: 18px; max-width: 56ch; font-size: 1.08rem; }
.note { margin-top: 36px; border-left: 2px solid var(--blue); padding-left: 16px; max-width: 70ch; }

/* ============ Scroll progress + cursor glow ============ */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--blue-deep), var(--blue), var(--blue-light)); box-shadow: 0 0 12px var(--blue); }
.cursor-glow { position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; z-index: 0; background: radial-gradient(closest-side, rgba(30,107,255,.10), transparent 70%); opacity: 0; transition: opacity .4s; }
.cursor-glow.on { opacity: 1; }
main, .footer { position: relative; z-index: 1; }

/* ============ Buttons ============ */
.btn {
  --mx: 0px; --my: 0px; --lift: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; overflow: hidden;
  background: var(--blue); color: #fff; text-decoration: none; font-weight: 700; font-size: 1rem; cursor: pointer;
  border: 1px solid transparent;
  box-shadow: 0 10px 30px -10px rgba(30,107,255,.7), inset 0 1px 0 rgba(255,255,255,.18);
  transform: translate(var(--mx), calc(var(--my) + var(--lift)));
  transition: transform .35s var(--spring), box-shadow .25s var(--ease), background .25s, border-color .25s;
}
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .6s var(--ease); pointer-events: none; }
.btn:hover::after { left: 130%; }
.btn:hover { --lift: -2px; box-shadow: 0 16px 40px -10px rgba(30,107,255,.9), inset 0 1px 0 rgba(255,255,255,.2); }
.btn:active { --lift: 1px; transition-duration: .08s; }
.btn-ghost { background: transparent; border-color: var(--line-2); box-shadow: none; color: var(--text); }
.btn-ghost:hover { border-color: var(--blue-light); background: rgba(30,107,255,.08); box-shadow: none; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.btn-block { width: 100%; }

/* ============ Nav ============ */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(8,8,13,.72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.nav.scrolled { border-bottom-color: var(--line); background: rgba(8,8,13,.88); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.15rem/1 var(--f-head); letter-spacing: .12em; color: var(--text); min-height: 44px; }
.logo-sm { width: 34px; height: 34px; transition: transform .8s var(--spring); }
.brand:hover .logo-sm { transform: rotate(180deg) scale(1.1); }
.nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-links a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; color: var(--body); font-weight: 600; position: relative; transition: color .2s; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 10px; height: 1.5px; background: var(--blue-light); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--text); }
.nav-links a:not(.btn):hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* ============ Glows ============ */
.glow { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(10px); animation: pulse 7s ease-in-out infinite; }
.glow-hero { width: 900px; height: 900px; right: -200px; top: -220px; background: radial-gradient(closest-side, rgba(30,107,255,.30), rgba(14,63,184,.12) 55%, transparent 75%); }
.glow-side { width: 700px; height: 700px; left: -320px; top: 10%; background: radial-gradient(closest-side, rgba(30,107,255,.14), transparent 70%); }
.glow-right { left: auto; right: -320px; }
.glow-contact { width: 1000px; height: 700px; left: 50%; top: 50%; translate: -50% -50%; background: radial-gradient(closest-side, rgba(30,107,255,.30), rgba(14,63,184,.12) 55%, transparent 75%); }
@keyframes pulse { 0%,100% { opacity: .75; scale: 1; } 50% { opacity: 1; scale: 1.06; } }

/* ============ Hero ============ */
.hero { position: relative; min-height: calc(100svh - 72px); display: flex; align-items: center; overflow: hidden; padding: 48px 0 96px; isolation: isolate; }
.grid-floor { position: absolute; inset: auto -20% -10% -20%; height: 55%; z-index: -1; background-image: linear-gradient(rgba(110,160,255,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(110,160,255,.10) 1px, transparent 1px); background-size: 64px 64px; transform: perspective(700px) rotateX(62deg); transform-origin: 50% 100%; mask-image: linear-gradient(to top, #000 10%, transparent 85%); -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%); animation: floor 6s linear infinite; }
@keyframes floor { to { background-position: 0 64px, 0 0; } }
.particles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.particles i { position: absolute; bottom: -10px; width: var(--s); height: var(--s); border-radius: 50%; background: var(--blue-light); opacity: 0; box-shadow: 0 0 8px var(--blue); animation: rise var(--t) linear infinite; animation-delay: var(--dl); }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: .7; } 90% { opacity: .5; } 100% { transform: translateY(-90vh) translateX(var(--dx)); opacity: 0; } }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-copy h1 { max-width: 15ch; font-size: clamp(2.2rem, 4.1vw, 3.7rem); }
.swap { display: inline-block; position: relative; }
.swap em { display: inline-block; transition: transform .45s var(--ease), opacity .45s, filter .45s; }
.swap.out em { transform: translateY(-40%) rotateX(80deg); opacity: 0; filter: blur(6px); }
.swap.pre em { transform: translateY(40%) rotateX(-80deg); opacity: 0; filter: blur(6px); transition: none; }
.lede { margin-top: 24px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 48ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 34px 0 0; font-size: .95rem; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); }

.js .enter { opacity: 0; transform: translateY(26px); filter: blur(6px); animation: enter 1s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 110ms + 100ms); }
@keyframes enter { to { opacity: 1; transform: none; filter: none; } }

/* 3D scene */
.scene { position: relative; height: min(620px, 70vh); perspective: 1300px; }
.rig { --rx: 0deg; --ry: 0deg; position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.orb-ring { position: absolute; left: 50%; top: 50%; width: 440px; height: 440px; translate: -50% -50%; border-radius: 50%; border: 1px solid rgba(110,160,255,.14); transform: translateZ(-120px) rotateX(70deg); box-shadow: 0 0 80px rgba(30,107,255,.18) inset; animation: ringSpin 30s linear infinite; }
@keyframes ringSpin { to { transform: translateZ(-120px) rotateX(70deg) rotateZ(360deg); } }
.logo3d { position: absolute; left: 50%; top: 50%; width: min(330px, 62%); aspect-ratio: 1; translate: -50% -50%; transform-style: preserve-3d; animation: logoTilt 12s ease-in-out infinite; }
.logo-hero { width: 100%; height: 100%; filter: drop-shadow(0 30px 50px rgba(30,107,255,.35)); overflow: visible; }
@keyframes logoTilt { 0%,100% { transform: translateZ(60px) rotateX(14deg) rotateY(-24deg); } 50% { transform: translateZ(60px) rotateX(-10deg) rotateY(24deg); } }

.phone { position: absolute; width: 168px; aspect-ratio: 9 / 18.5; transform-style: preserve-3d; }
.p1 { left: 2%; bottom: 4%; transform: translateZ(160px) rotateY(24deg) rotateZ(-6deg); }
.p2 { right: 0; top: 2%; transform: translateZ(90px) rotateY(-26deg) rotateZ(5deg); }
.phone-float { width: 100%; height: 100%; padding: 7px; border-radius: 30px; background: linear-gradient(160deg, #2A2A3A, #12121A 40%, #0C0C13); border: 1px solid #343447; box-shadow: 0 40px 70px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.03) inset, 0 0 60px -20px rgba(30,107,255,.45); animation: float 6s ease-in-out infinite; }
.p2 .phone-float { animation-delay: -3s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.phone-flat { position: relative; width: 260px; }
.phone-flat .phone-float { border-radius: 40px; padding: 9px; }
.phone-flat .screen { border-radius: 32px; }

.screen { position: relative; height: 100%; border-radius: 24px; overflow: hidden; padding: 30px 12px 14px; display: flex; flex-direction: column; justify-content: flex-end; transition: background .6s; }
.screen::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 40% at 50% 38%, rgba(255,255,255,.22), transparent 70%), linear-gradient(to top, rgba(0,0,0,.75), transparent 55%); }
.screen > * { position: relative; }
.bar { position: absolute; top: 12px; left: 12px; right: 12px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.25); overflow: hidden; }
.bar i { display: block; height: 100%; width: 40%; background: #fff; animation: progress 5s linear infinite; }
#hookBar, #anatBar { animation: none; }
@keyframes progress { from { width: 0; } to { width: 100%; } }
.cap { font: 700 12.5px/1.35 var(--f-body); color: #0b0b10; background: #fff; border-radius: 8px; padding: 6px 8px; margin-bottom: 10px; box-shadow: 0 6px 16px rgba(0,0,0,.3); transition: opacity .35s, transform .35s var(--ease); }
.cap.swapping { opacity: 0; transform: translateY(8px) scale(.96); }
.cap-lg { font-size: 16px; padding: 9px 11px; border-radius: 10px; min-height: 3.2em; }
.handle { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: #fff; }
.handle span { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, #fff, #9bb9ff); }
.side-ui { position: absolute; right: 8px; bottom: 80px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: #fff; }
.side-ui b { font-weight: 400; }
.concept { position: absolute; top: 22px; left: 12px; font: 700 9px/1 var(--f-body); letter-spacing: .16em; color: #fff; background: rgba(8,8,13,.7); border: 1px solid rgba(255,255,255,.25); padding: 5px 7px; border-radius: 6px; z-index: 2; }
.hook-type { align-self: flex-start; font: 700 11px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--blue); padding: 6px 9px; border-radius: 6px; margin-bottom: 8px; }

.chip { position: absolute; padding: 9px 14px; border-radius: 999px; background: rgba(18,18,26,.85); border: 1px solid var(--line-2); color: var(--text); font-weight: 700; font-size: 13px; backdrop-filter: blur(8px); box-shadow: 0 20px 40px -20px rgba(0,0,0,.8); }
.chip::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); margin-right: 8px; box-shadow: 0 0 10px var(--blue); vertical-align: 1px; }
.chip-a { left: 30%; top: 8%; transform: translateZ(220px); }
.chip-b { right: 8%; bottom: 12%; transform: translateZ(240px); }
.chip-c { left: 0; top: 30%; transform: translateZ(200px); }

.tone-rose  { background: linear-gradient(160deg, #6b3a46, #2a1a22 55%, #120d12); }
.tone-amber { background: linear-gradient(160deg, #7a5524, #2c2012 55%, #120f0b); }
.tone-teal  { background: linear-gradient(160deg, #1f5a5a, #13292b 55%, #0b1213); }
.tone-blue  { background: linear-gradient(160deg, #1E6BFF, #0E3FB8 45%, #0c1430); }
.tone-green { background: linear-gradient(160deg, #3f5f33, #1b2716 55%, #0d110b); }
.tone-steel { background: linear-gradient(160deg, #4b5566, #22262f 55%, #0f1116); }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; width: 44px; height: 44px; display: grid; place-items: center; }
.scroll-cue span { width: 22px; height: 34px; border: 1.5px solid var(--line-2); border-radius: 14px; position: relative; }
.scroll-cue span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 3px; background: var(--blue-light); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ============ Sections ============ */
.sec { position: relative; padding: clamp(80px, 12vw, 140px) 0; overflow: hidden; }
.sec-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.sec-head { margin-bottom: clamp(40px, 6vw, 64px); }

.js .reveal { opacity: 0; transform: perspective(900px) translateY(48px) rotateX(10deg); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* split headings: words rise one by one */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform .8s var(--ease); transition-delay: calc(var(--i) * 45ms + 120ms); }
.in .split .w > span, .split.in .w > span { transform: none; }

/* ============ Formats ============ */
.formats-in { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.seg { display: inline-flex; gap: 4px; margin-top: 30px; padding: 5px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-2); position: relative; }
.seg-btn { position: relative; z-index: 1; min-height: 44px; min-width: 76px; padding: 0 18px; border-radius: 999px; border: 0; background: transparent; font-weight: 700; color: var(--body); cursor: pointer; transition: color .3s, background .3s; }
.seg-btn:hover { color: var(--text); }
.seg-btn[aria-pressed="true"] { color: #fff; background: var(--blue); box-shadow: 0 8px 24px -8px rgba(30,107,255,.8); }
.fmt-info { margin-top: 26px; min-height: 80px; }
.fmt-info h3 { margin-bottom: 6px; }
.deliverables { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.deliverables li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .9rem; font-weight: 600; color: var(--text); background: rgba(18,18,26,.6); transition: border-color .25s, background .25s, transform .3s var(--spring); cursor: default; }
.deliverables li:hover { border-color: var(--blue-light); background: rgba(30,107,255,.12); transform: translateY(-3px); }
.fmt-stage { height: 560px; display: grid; place-items: center; perspective: 1200px; }
.fmt-frame { --fw: 9; --fh: 16; --fhpx: 520px; position: relative; height: var(--fhpx); width: calc(var(--fhpx) * var(--fw) / var(--fh)); border-radius: 26px; border: 1px solid rgba(110,160,255,.35); padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; box-shadow: 0 50px 90px -40px rgba(30,107,255,.6); transition: width .7s var(--spring), border-radius .5s; transform: rotateY(-10deg) rotateX(6deg); animation: frameFloat 8s ease-in-out infinite; }
@keyframes frameFloat { 0%,100% { transform: rotateY(-10deg) rotateX(6deg); } 50% { transform: rotateY(8deg) rotateX(-4deg); } }
.fmt-frame::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 40% at 50% 38%, rgba(255,255,255,.22), transparent 70%), linear-gradient(to top, rgba(0,0,0,.7), transparent 55%); }
.fmt-frame > * { position: relative; }
.fmt-frame .cap { font-size: 15px; padding: 9px 11px; align-self: flex-start; max-width: 90%; }
.fmt-label { position: absolute; top: 16px; left: 16px; font: 800 1.6rem/1 var(--f-head); color: #fff; }
.fmt-dims { position: absolute; top: 20px; right: 16px; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.8); }
.fmt-safe { position: absolute; inset: 14%; border: 1.5px dashed rgba(255,255,255,.28); border-radius: 12px; }

/* ============ Cards ============ */
.cards { display: grid; gap: 20px; perspective: 1200px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { --rx: 0deg; --ry: 0deg; --ty: 0px; --mx: 50%; --my: 50%; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; transform-style: preserve-3d; overflow: hidden; }
.card.in, html:not(.js) .card { transform: rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--ty)); transition: transform .5s var(--ease), border-color .3s, box-shadow .4s; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(30,107,255,.16), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card.tilt:hover { border-color: #33407a; box-shadow: 0 30px 60px -30px rgba(30,107,255,.55), 0 0 0 1px rgba(30,107,255,.15); --ty: -6px; }
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: 12px; }
.card .num { display: block; font: 800 .95rem/1 var(--f-head); color: var(--blue-light); margin-bottom: 30px; letter-spacing: .05em; }
.ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px; background: linear-gradient(145deg, rgba(30,107,255,.22), rgba(14,63,184,.08)); border: 1px solid rgba(110,160,255,.22); transform: translateZ(30px); transition: transform .5s var(--spring); }
.card:hover .ico { transform: translateZ(50px) rotate(-8deg) scale(1.08); }
.ico svg { width: 26px; height: 26px; fill: none; stroke: var(--blue-light); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.ico svg .f { fill: var(--blue-light); stroke: none; }

.mini { margin-top: 28px; height: 54px; display: flex; align-items: flex-end; gap: 8px; }
.mini-stack i { width: 30px; height: 54px; border-radius: 6px; border: 1px solid var(--line-2); background: linear-gradient(to top, rgba(30,107,255,.25), transparent); animation: stack 3s ease-in-out infinite; }
.mini-stack i:nth-child(2) { animation-delay: .3s; } .mini-stack i:nth-child(3) { animation-delay: .6s; }
@keyframes stack { 0%,100% { transform: translateY(0); border-color: var(--line-2); } 40% { transform: translateY(-8px); border-color: var(--blue); } }
.mini-bars i { flex: 1; border-radius: 4px; background: var(--line-2); transform-origin: bottom; transform: scaleY(0); transition: transform 1s var(--ease); }
.in .mini-bars i, .card.in .mini-bars i { transform: scaleY(1); }
.mini-bars i:nth-child(1) { height: 100%; } .mini-bars i:nth-child(2) { height: 75%; transition-delay: .1s; } .mini-bars i:nth-child(3) { height: 45%; transition-delay: .2s; }
.mini-bars i:nth-child(4) { height: 18%; background: var(--blue); box-shadow: 0 0 14px rgba(30,107,255,.6); transition-delay: .3s; }
.mini-face i { width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #DADDE5 0 22%, transparent 23%), radial-gradient(circle at 50% 110%, #DADDE5 0 42%, transparent 43%), #1b1b26; border: 2px solid var(--blue); animation: ping 2.8s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(30,107,255,.45); } 100% { box-shadow: 0 0 0 18px rgba(30,107,255,0); } }

/* ============ What we make ============ */
.work-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--body); font-weight: 700; cursor: pointer; transition: all .25s var(--ease); }
.filter:hover { color: var(--text); border-color: var(--blue-light); }
.filter[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 8px 24px -8px rgba(30,107,255,.8); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; perspective: 1400px; max-width: 1040px; margin: 0 auto; }
.ad { position: relative; transition: opacity .45s var(--ease), transform .55s var(--spring), filter .45s; }
.ad.hide { display: none; }
.js .gallery .ad.leaving, .gallery .ad.leaving { opacity: 0; transform: scale(.85) rotateY(30deg); filter: blur(4px); }
.js .gallery .ad.entering, .gallery .ad.entering { opacity: 0; transform: scale(.85) rotateY(-30deg); filter: blur(4px); }
.ad-btn { display: block; width: 100%; text-align: left; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 20px; }
.ad-frame { --rx: 0deg; --ry: 0deg; position: relative; aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); padding: 40px 14px 16px; display: flex; flex-direction: column; justify-content: flex-end; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease), box-shadow .5s, border-color .3s; box-shadow: 0 30px 50px -30px rgba(0,0,0,.9); }
.ad-frame.sq { aspect-ratio: 4 / 5; }
.ad-btn:hover .ad-frame, .ad-btn:focus-visible .ad-frame { border-color: rgba(110,160,255,.5); box-shadow: 0 40px 70px -25px rgba(30,107,255,.55); }
.ad-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.ad-btn:hover .ad-frame img { transform: scale(1.05); }
.ad-frame::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(60% 35% at 50% 35%, rgba(255,255,255,.16), transparent 70%), linear-gradient(to top, rgba(0,0,0,.85), transparent 60%); }
.ad-frame > *:not(img) { position: relative; z-index: 2; }
.ad-frame .concept { position: absolute; top: 14px; }
.ad-frame .cap { font-size: 12.5px; }
.ad-frame .ad-open { position: absolute; top: 12px; right: 12px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); color: #fff; font-size: 16px; transition: transform .4s var(--spring), background .3s; }
.ad-btn:hover .ad-open { background: var(--blue); transform: rotate(45deg) scale(1.1); }
.ad-info { padding: 14px 4px 0; }
.ad-info h3 { font-size: 1.05rem; }
.ad-info p { font-size: .88rem; margin-top: 4px; }
.ad-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.ad-tags span { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; background: var(--card); border: 1px solid var(--line-2); color: var(--text); }

.ad-frame .shot { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; }
.shot i { position: relative; width: 30%; aspect-ratio: 1 / 1.9; border-radius: 22% 22% 14% 14% / 12% 12% 8% 8%; background: linear-gradient(100deg, rgba(255,255,255,.18), rgba(255,255,255,.55) 35%, rgba(255,255,255,.2) 70%); box-shadow: 0 30px 40px -18px rgba(0,0,0,.7); transition: transform .6s var(--spring); }
.shot i::before { content: ""; position: absolute; left: 32%; right: 32%; top: -16%; height: 18%; border-radius: 4px 4px 2px 2px; background: rgba(255,255,255,.45); }
.shot i::after { content: ""; position: absolute; left: -40%; right: -40%; bottom: -10%; height: 10%; border-radius: 50%; background: rgba(0,0,0,.35); filter: blur(4px); z-index: -1; }
.ad-btn:hover .shot i { transform: translateY(-6px) rotate(-4deg); }

.ad-frame .headline { position: absolute; top: 44px; left: 14px; right: 14px; z-index: 2; font: 800 clamp(1rem, 1.5vw, 1.25rem)/1.1 var(--f-head); letter-spacing: -0.01em; color: #0b0b10; }
.ad-frame .headline.light { color: #fff; left: auto; right: 14px; top: 64px; max-width: 37%; text-align: right; font-size: clamp(.9rem, 1.2vw, 1.05rem); }
.ad-frame.has-img::before { background: linear-gradient(to top, rgba(0,0,0,.55), transparent 40%); }
.ad-frame.has-img.sq::before { background: none; }

/* Modal */
.modal { padding: 0; border: 1px solid var(--line-2); border-radius: 24px; background: var(--bg-alt); color: var(--body); width: min(920px, calc(100vw - 32px)); max-height: calc(100svh - 32px); box-shadow: 0 60px 120px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(30,107,255,.12); }
.modal::backdrop { background: rgba(4,4,8,.7); backdrop-filter: blur(6px); }
.modal[open] { animation: modalIn .5s var(--spring); }
.modal[open]::backdrop { animation: fadeIn .3s ease; }
@keyframes modalIn { from { opacity: 0; transform: perspective(1000px) translateY(40px) rotateX(14deg) scale(.94); } }
@keyframes fadeIn { from { opacity: 0; } }
.modal-in { display: grid; grid-template-columns: 300px 1fr; gap: 36px; padding: 32px; position: relative; }
.m-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); cursor: pointer; transition: transform .4s var(--spring), border-color .2s; z-index: 3; }
.m-close:hover { transform: rotate(90deg); border-color: var(--blue-light); }
.m-media .ad-frame { transform: none; animation: none; }
.m-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; padding-right: 50px; }
.m-meta { margin-top: 10px; font-weight: 600; color: var(--text); }
.m-best { margin-top: 6px; }
.m-beats { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: b; }
.m-beats li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); opacity: 0; transform: translateX(20px); animation: beatIn .5s var(--ease) forwards; animation-delay: calc(var(--i) * 90ms + 150ms); }
@keyframes beatIn { to { opacity: 1; transform: none; } }
.m-beats b { font-size: .8rem; color: var(--blue-light); font-weight: 700; }
.m-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

/* ============ Hook lab ============ */
.hook-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.hook-list { display: grid; gap: 10px; margin-top: 22px; }
.hook-opt { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; width: 100%; text-align: left; min-height: 56px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); cursor: pointer; color: var(--body); transition: border-color .25s, background .25s, transform .35s var(--spring); animation: optIn .45s var(--ease) backwards; animation-delay: calc(var(--i) * 70ms); }
@keyframes optIn { from { opacity: 0; transform: translateY(12px); } }
.hook-opt:hover { border-color: var(--blue-light); transform: translateX(4px); }
.hook-opt[aria-pressed="true"] { border-color: var(--blue); background: rgba(30,107,255,.12); color: var(--text); }
.hook-opt b { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-light); }
.shuffle { margin-top: 18px; }
.hook-phone { display: grid; place-items: center; perspective: 1200px; }
.hook-phone .phone { transform: rotateY(-12deg) rotateX(4deg); transition: transform .6s var(--ease); }
.hook-phone:hover .phone { transform: rotateY(0) rotateX(0); }
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--blue); margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ============ Anatomy ============ */
.anat { display: grid; grid-template-columns: 300px 1fr; gap: 60px; align-items: center; }
.anat-phone { display: grid; place-items: center; }
.anat-phone .phone { transform: rotateY(10deg); }
.anat-controls { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.play-btn { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--blue); cursor: pointer; display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(30,107,255,.5), 0 12px 30px -10px rgba(30,107,255,.8); transition: transform .3s var(--spring); animation: ping 2.4s ease-out infinite; }
.play-btn:hover { transform: scale(1.08); }
.play-btn .pi { width: 0; height: 0; border-left: 15px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.play-btn[aria-pressed="true"] { animation: none; }
.play-btn[aria-pressed="true"] .pi { width: 14px; height: 16px; border: 0; margin: 0; border-left: 4.5px solid #fff; border-right: 4.5px solid #fff; }
.anat-time { font: 700 1rem/1 var(--f-body); color: var(--text); font-variant-numeric: tabular-nums; }
.track { position: relative; height: 44px; }
.track-segs { position: absolute; left: 0; right: 0; top: 15px; height: 14px; display: flex; border-radius: 999px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.track-segs span { width: var(--w); border-right: 2px solid var(--bg); background: rgba(30,107,255,.14); }
.track-segs span:last-child { border-right: 0; }
.track-fill { position: absolute; left: 0; top: 15px; height: 14px; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--blue-deep), var(--blue)); box-shadow: 0 0 18px rgba(30,107,255,.6); pointer-events: none; }
#scrub { position: absolute; inset: 0; width: 100%; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
#scrub::-webkit-slider-runnable-track { height: 44px; background: transparent; }
#scrub::-moz-range-track { height: 44px; background: transparent; }
#scrub::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: 10px; border-radius: 50%; background: #fff; border: 4px solid var(--blue); box-shadow: 0 0 18px var(--blue); }
#scrub::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--blue); box-shadow: 0 0 18px var(--blue); }
.beats-ui { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.beats-ui button { width: 100%; height: 100%; text-align: left; padding: 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); cursor: pointer; color: var(--body); display: flex; flex-direction: column; gap: 6px; transition: border-color .3s, background .3s, transform .4s var(--spring); }
.beats-ui button:hover { border-color: var(--blue-light); transform: translateY(-3px); }
.beats-ui button.on { border-color: var(--blue); background: rgba(30,107,255,.12); transform: translateY(-4px); }
.beats-ui b { font-size: .8rem; color: var(--blue-light); }
.beats-ui strong { font-family: var(--f-head); font-size: 1.15rem; color: var(--text); }
.beats-ui span { font-size: .92rem; }

/* ============ Process ============ */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.steps-line { position: absolute; left: 24px; right: 24px; top: 24px; height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.steps-line i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--blue-deep), var(--blue), var(--blue-light)); box-shadow: 0 0 12px var(--blue); }
.step { position: relative; }
.step-n { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--card); border: 1px solid var(--line-2); color: var(--text); font: 800 1.1rem/1 var(--f-head); margin-bottom: 22px; transition: background .4s, border-color .4s, transform .5s var(--spring), box-shadow .4s; }
.step.lit .step-n, .step:hover .step-n { background: var(--blue); border-color: var(--blue); box-shadow: 0 14px 30px -10px rgba(30,107,255,.8); }
.step:hover .step-n { transform: translateY(-4px) rotate(-8deg); }
.step h3 { margin-bottom: 8px; }
.step p { font-size: .97rem; }
[data-fill] { color: var(--blue-light); }

/* ============ Contact + brief ============ */
.contact-in { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.h-xl { font-size: clamp(2.4rem, 5.5vw, 4.6rem); max-width: 12ch; }
.contact-links { display: grid; gap: 12px; margin-top: 34px; max-width: 380px; }
.c-link { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 18px 12px 14px; border-radius: 18px; text-decoration: none; background: var(--card); border: 1px solid var(--line-2); color: var(--text); transition: transform .4s var(--spring), border-color .3s, box-shadow .35s; }
.c-link:hover { transform: translateX(6px); border-color: rgba(110,160,255,.5); box-shadow: 0 24px 40px -20px rgba(30,107,255,.6); }
.c-link .ci { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(30,107,255,.15); flex: none; }
.c-link .ci svg { width: 20px; height: 20px; fill: none; stroke: var(--blue-light); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.c-link small { display: block; font-size: .78rem; color: var(--body); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.c-link > span:last-child > span { font-weight: 700; }
.brief { padding: 32px; }
.brief.card:hover { box-shadow: 0 30px 60px -30px rgba(30,107,255,.4); }
.brief-sub { margin: 6px 0 22px; font-size: .95rem; }
.field { display: block; border: 0; padding: 0; margin: 0 0 18px; }
.field > span, .field legend { display: block; font-weight: 700; color: var(--text); font-size: .95rem; margin-bottom: 8px; padding: 0; }
.field input[type="text"] { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s; }
.field input[type="text"]::placeholder { color: #8a8ea0; }
.field input[type="text"]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30,107,255,.2); }
.field.bad input { border-color: #ff6b81; }
.err { display: none; color: #ff8a9b; margin-top: 6px; font-size: .85rem; }
.field.bad .err { display: block; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); font-weight: 600; font-size: .92rem; color: var(--body); transition: all .25s var(--ease); }
.chips input:hover + span { border-color: var(--blue-light); color: var(--text); }
.chips input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; transform: scale(1.04); }
.chips input:focus-visible + span { outline: 2px solid var(--blue-light); outline-offset: 3px; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--line); padding: 34px 0; }
.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer .brand img { width: 28px; height: 28px; }
.footer p { font-size: .95rem; }
.small { font-size: .85rem; }

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .cards-4, .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery { max-width: 640px; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .steps-line { display: none; }
  .beats-ui { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-in, .formats-in, .hook-in, .anat, .contact-in { grid-template-columns: 1fr; }
  .scene { height: 460px; margin-top: 10px; }
  .logo3d { width: 240px; }
  .phone { width: 132px; }
  .phone-flat { width: 240px; }
  .orb-ring { width: 320px; height: 320px; }
  .cards-3 { grid-template-columns: 1fr; }
  .fmt-stage { height: 460px; }
  .fmt-frame { --fhpx: 420px; }
  .anat-phone { order: 2; }
  .modal-in { grid-template-columns: 1fr; }
  .m-media { max-width: 240px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-in { padding-block: 6px; gap: 0; }
  .nav-links { width: 100%; justify-content: space-between; gap: 0; }
  .nav-links a:not(.btn) { padding: 0 6px; }
  .nav-links .btn-sm { padding: 0 14px; }
  .hero { padding-top: 32px; }
  .cta-row .btn { width: 100%; }
  .scene { height: 380px; }
  .logo3d { width: 190px; }
  .phone { width: 108px; }
  .p1 { left: 0; } .p2 { right: 0; }
  .chip { font-size: 11.5px; padding: 7px 11px; }
  .chip-a { left: 26%; top: 2%; } .chip-c { display: none; }
  .cards-4 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .fmt-stage { height: 380px; }
  .fmt-frame { --fhpx: 340px; }
  .ad-frame .cap { font-size: 11px; }
  .steps { grid-template-columns: 1fr; row-gap: 28px; }
  .step { display: grid; grid-template-columns: 48px 1fr; column-gap: 18px; }
  .step-n { margin-bottom: 0; grid-row: span 2; }
  .beats-ui { grid-template-columns: 1fr; }
  .hook-opt { grid-template-columns: 1fr; gap: 4px; }
  .modal-in { padding: 22px; }
  .m-beats li { grid-template-columns: 1fr; gap: 2px; }
  .brief { padding: 22px; }
  .footer-in { flex-direction: column; text-align: center; }
}

/* ============ Touch screens: no mouse, so the hero sways on its own ============ */
@media (hover: none), (pointer: coarse) {
  .rig { animation: sway 9s ease-in-out infinite; }
}
@keyframes sway { 0%,100% { transform: rotateX(6deg) rotateY(-14deg); } 50% { transform: rotateX(-4deg) rotateY(14deg); } }

/* ============ Reduced motion: continuous movement stops, the 3D staging stays ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glow, .grid-floor, .phone-float, .bar i, .mini-stack i, .mini-face i, .scroll-cue span::after, .orb-ring, .fmt-frame, .play-btn, .caret, .particles { animation: none !important; }
  .particles { display: none; }
  .logo3d { animation: none; transform: translateZ(40px) rotateX(12deg) rotateY(-18deg); }
  .rig { animation: none !important; transform: rotateX(4deg) rotateY(-10deg); }
  .js .enter { animation: fadeOnly .6s ease forwards; transform: none; filter: none; }
  .js .reveal { transform: none; transition: opacity .6s ease; }
  .split .w > span { transform: none !important; transition: none; }
  .cursor-glow { display: none; }
}
@keyframes fadeOnly { from { opacity: 0; } to { opacity: 1; } }
