/* pelearaul.com — portfolio styles */
:root {
  --bg: #05060b;
  --bg-2: #0a0c16;
  --panel: rgba(16, 19, 34, 0.62);
  --panel-solid: #0e1120;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eceef6;
  --muted: #8d93ab;
  --cyan: #3ee7ff;
  --violet: #8b5cf6;
  --pink: #f472b6;
  --grad: linear-gradient(100deg, #3ee7ff 0%, #8b5cf6 55%, #f472b6 100%);
  --display: 'Sora', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: -0.03em; line-height: 1.05; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); position: relative; }
main, .footer { position: relative; z-index: 2; }
.muted { color: var(--muted); }
.center { display: flex; justify-content: center; margin-top: 48px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

/* Background layers */
#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .055;
  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); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } 100% { transform: translate(0, 0); } }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; }
.progress span { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

/* Custom cursor (fine pointers only) */
.cursor { display: none; }


/* Nav */
.nav {
  position: fixed; top: 14px; left: 50%; z-index: 50;
  width: min(1240px, calc(100% - 24px)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 18px;
  padding: 10px 10px 10px 16px; border-radius: 18px;
  background: rgba(8, 10, 20, .55); border: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  transition: transform .5s var(--ease), background .3s;
}
.nav.is-hidden { transform: translate(-50%, -130%); }
.anim .nav { animation: navIn 1.2s var(--ease) .4s backwards; }
@keyframes navIn { from { transform: translate(-50%, -150%); } }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand__mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  font: 800 14px/1 var(--display); letter-spacing: .02em; color: #05060b; background: var(--grad);
  box-shadow: 0 0 24px rgba(62, 231, 255, .25);
}
.brand__text { font: 700 15px/1 var(--display); letter-spacing: -.01em; }
.brand__text b { color: var(--cyan); }
.nav__links { display: flex; gap: 2px; }
.nav__links a { position: relative; padding: 8px 14px; border-radius: 10px; font-size: 14px; color: var(--muted); transition: color .2s, background .2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav__burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); cursor: pointer; position: relative; }
.nav__burger i { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform .35s var(--ease), top .35s var(--ease); }
.nav__burger i:first-child { top: 16px; }
.nav__burger i:last-child { top: 24px; }
.nav__burger[aria-expanded="true"] i:first-child { top: 20px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] i:last-child { top: 20px; transform: rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 100px var(--gutter) 40px; background: rgba(5, 6, 11, .96); backdrop-filter: blur(10px);
}
.menu[hidden] { display: none; }
.menu > a { font: 700 clamp(34px, 9vw, 54px)/1.15 var(--display); letter-spacing: -.03em; }
.menu__social { display: flex; gap: 20px; margin-top: 28px; color: var(--muted); }

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 15px/1 var(--body); color: var(--text); white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s, background .3s, border-color .3s;
  will-change: transform;
}
.btn > * { position: relative; z-index: 1; pointer-events: none; }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn--glow { color: #05060b; background: var(--grad); background-size: 160% 100%; box-shadow: 0 10px 40px -10px rgba(139, 92, 246, .7), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn--glow:hover { background-position: 100% 0; box-shadow: 0 16px 50px -10px rgba(62, 231, 255, .6); }
.btn--ghost { border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: rgba(62, 231, 255, .45); background: rgba(62, 231, 255, .06); }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); margin-bottom: 22px; }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 2s infinite; display: inline-block; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.chip { display: inline-flex; padding: 6px 12px; border-radius: 999px; font: 500 12px/1 var(--mono); letter-spacing: .04em; color: var(--accent, var(--cyan)); border: 1px solid color-mix(in srgb, var(--accent, var(--cyan)) 35%, transparent); background: color-mix(in srgb, var(--accent, var(--cyan)) 8%, transparent); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 12px; border-radius: 999px; font-size: 13px; color: #c9cde0; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.tags--small li { padding: 4px 10px; font-size: 12px; }

/* Split text */
.split .char, .split .word { display: inline-block; will-change: transform; }
.line { display: block; overflow: hidden; padding-bottom: .04em; }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 130px 0 34px; }
.hero__inner { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero__eyebrow { color: #b8f5d8; font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: 14px; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(52, 211, 153, .25); background: rgba(52, 211, 153, .07); align-self: flex-start; }
.hero__title { font-size: clamp(58px, 13.5vw, 214px); font-weight: 800; line-height: .9; letter-spacing: -.055em; margin-left: -.04em; }
.line--outline { color: #b9a7ff; }
.line--outline .char { background-image: var(--grad); background-size: 100% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; transition: filter .9s; }
.line--outline .char.lit { filter: brightness(1.45) drop-shadow(0 0 14px rgba(62, 231, 255, .55)); transition-duration: .12s; }
.hero__role { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-top: 28px; font: 600 clamp(20px, 2.6vw, 34px)/1.2 var(--display); letter-spacing: -.02em; }
.hero__role-label { color: var(--muted); }
.rotator { position: relative; display: inline-block; min-height: 1.2em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rotator::after { content: ''; display: inline-block; width: 3px; height: .9em; margin-left: 4px; vertical-align: -0.08em; background: var(--cyan); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__lead { max-width: 620px; margin-top: 22px; font-size: clamp(16px, 1.4vw, 19px); color: #b3b8cc; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__meta { display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: 40px; align-items: end; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero__meta div { display: flex; flex-direction: column; gap: 4px; }
.hero__meta span { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hero__meta b { font-weight: 500; font-size: 15px; }
.scroll-cue { justify-self: end; width: 28px; height: 46px; border: 1.5px solid var(--line-2); border-radius: 20px; position: relative; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--cyan); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(18px); opacity: 0; } 100% { opacity: 0; } }

/* Marquee */
.marquee { position: relative; z-index: 2; overflow: hidden; padding: 26px 0; border-block: 1px solid var(--line); background: rgba(5, 6, 11, .55); backdrop-filter: blur(6px); }
.marquee__track { display: flex; width: max-content; gap: 36px; align-items: center; animation: marquee 38s linear infinite; }
.marquee span { font: 700 clamp(28px, 4.5vw, 64px)/1 var(--display); letter-spacing: -.03em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(236, 238, 246, .5); transition: color .3s; }
.marquee span:nth-of-type(3n+1) { color: var(--text); -webkit-text-stroke: 0; }
.marquee i { font-style: normal; color: var(--cyan); font-size: clamp(18px, 2.4vw, 32px); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { position: relative; padding: clamp(96px, 14vw, 180px) 0; }
.section__head { margin-bottom: clamp(44px, 6vw, 80px); max-width: 900px; }
.h2 { font-size: clamp(38px, 6vw, 88px); font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.reveal-words .word { display: inline-block; }

/* About */
.about__big { font: 600 clamp(26px, 3.7vw, 54px)/1.18 var(--display); letter-spacing: -.035em; max-width: 1150px; }
.anim .scrub .w { opacity: .14; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: clamp(60px, 8vw, 110px); }
.stat { position: relative; padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(10px); overflow: hidden; }
.stat::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(62, 231, 255, .12), transparent 45%); opacity: 0; transition: opacity .3s; }
.stat:hover::before { opacity: 1; }
.stat b { font: 700 clamp(36px, 4.2vw, 60px)/1 var(--display); letter-spacing: -.04em; }
.stat em { font: 700 clamp(26px, 3vw, 40px)/1 var(--display); font-style: normal; color: var(--cyan); margin-left: 2px; }
.stat span { display: block; margin-top: 12px; color: var(--muted); font-size: 14px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.pillar { padding: 30px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(10px); }
.pillar__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; font-size: 22px; color: var(--cyan); background: rgba(62, 231, 255, .08); border: 1px solid rgba(62, 231, 255, .2); margin-bottom: 22px; }
.pillar h3 { font-size: 22px; margin-bottom: 10px; }
.pillar p { color: var(--muted); font-size: 15px; }

/* 3D tilt */
.tilt { --rx: 0deg; --ry: 0deg; --ty: 0px; transform: perspective(1000px) translate3d(0, var(--ty), 0) rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .5s var(--ease), border-color .3s; }
.tilt.is-tilting { transition: transform .08s linear, border-color .3s; }
.tilt.is-animating { transition: none; }
.tilt:hover { border-color: var(--line-2); }

/* Featured stack */
.stack { position: relative; }
.stack__card { position: sticky; top: calc(96px + var(--i) * 26px); margin-bottom: 8vh; transform-origin: 50% 0; }
.stack__card:last-child { margin-bottom: 0; }
.stack__card.no-stick { position: relative; top: 0; margin-bottom: 28px; }
.stack__inner {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 4vw, 64px); align-items: center;
  padding: clamp(24px, 3.4vw, 52px); border-radius: 30px; border: 1px solid var(--line-2);
  background:
    radial-gradient(900px circle at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%),
    linear-gradient(180deg, rgba(18, 21, 38, .96), rgba(9, 11, 21, .97));
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.stack__info h3 { display: flex; align-items: baseline; gap: 14px; font-size: clamp(34px, 4.4vw, 64px); margin: 18px 0 16px; letter-spacing: -.045em; }
.stack__num { font: 500 14px/1 var(--mono); color: var(--accent); letter-spacing: 0; }
.stack__info > p { color: #b3b8cc; font-size: 15.5px; }
.facts { display: grid; gap: 8px; margin: 20px 0; }
.facts li { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; }
.facts .ico { color: var(--accent); }
.stack__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.device { display: block; position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: #0b0d18; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .03), 0 0 80px -20px color-mix(in srgb, var(--accent) 45%, transparent); }
.tilt--deep { --rx: 4deg; --ry: -10deg; }
.device__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #11131f; border-bottom: 1px solid var(--line); }
.device__bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a2d3d; }
.device__bar i:nth-child(1) { background: #ff5f57; } .device__bar i:nth-child(2) { background: #febc2e; } .device__bar i:nth-child(3) { background: #28c840; }
.device__bar span { margin-left: 10px; padding: 4px 12px; border-radius: 6px; font: 400 12px/1 var(--mono); color: var(--muted); background: rgba(255, 255, 255, .04); }
@media (min-width: 1081px) and (max-height: 820px) {
  .stack__inner { padding: 30px 36px; gap: 40px; }
  .stack__info h3 { font-size: clamp(32px, 3.6vw, 48px); margin: 12px 0 10px; }
  .stack__info > p { font-size: 14.5px; line-height: 1.55; }
  .facts { margin: 14px 0; gap: 4px; }
  .stack__cta { margin-top: 18px; }
}
.device__shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .09) 45%, transparent 60%); transform: translateX(-100%); transition: transform 1.1s var(--ease); }
.device:hover .device__shine { transform: translateX(100%); }

/* Templates rail */
.templates { position: relative; z-index: 2; padding: 100px 0 40px; }
.templates .h2 { font-size: clamp(36px, 4.8vw, 66px); }
.templates__head { margin-bottom: 18px; }
.templates__head .muted { max-width: 560px; margin-top: 14px; font-size: 16px; }
.rail { overflow: hidden; perspective: 1400px; }
.rail__track { display: flex; gap: 28px; width: max-content; padding: 22px max(var(--gutter), calc((100vw - 1280px) / 2 + var(--gutter))); transform-style: preserve-3d; will-change: transform; }
.tcard { --rot: 0deg; --z: 0px; width: clamp(280px, min(36vw, 52vh), 540px); flex: none; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); background: var(--panel-solid); transform: rotateY(var(--rot)) translateZ(var(--z)); transition: border-color .3s, box-shadow .4s; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); }
.tcard:hover { border-color: rgba(62, 231, 255, .5); box-shadow: 0 30px 90px -25px rgba(62, 231, 255, .35); }
.tcard__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.tcard__meta { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--line); }
.tcard__n { font: 500 13px/1 var(--mono); color: var(--cyan); }
.tcard__meta div { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.tcard__meta b { font: 600 17px/1.2 var(--display); letter-spacing: -.02em; }
.tcard__meta div span { font-size: 13px; color: var(--muted); }
.tcard__go { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); transition: background .3s, color .3s, transform .4s var(--ease); }
.tcard:hover .tcard__go { background: var(--cyan); color: #05060b; transform: rotate(45deg); }
.rail__hint { display: flex; align-items: center; gap: 14px; margin-top: 18px; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rail__hint i { flex: 0 1 200px; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.rail__hint i::after { content: ''; position: absolute; inset: 0; background: var(--cyan); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }

/* Projects grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pcard { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(10px); overflow: hidden; }
.pcard__glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, .16), transparent 45%); }
.pcard:hover .pcard__glow { opacity: 1; }
.pcard__top { display: flex; align-items: center; justify-content: space-between; }
.pcard__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; font-size: 20px; color: var(--violet); background: rgba(139, 92, 246, .1); border: 1px solid rgba(139, 92, 246, .25); transform: translateZ(30px); }
.pcard__tag { font: 500 12px/1 var(--mono); color: var(--muted); }
.pcard h3 { font-size: 23px; transform: translateZ(20px); }
.pcard p { color: var(--muted); font-size: 15px; flex: 1; }
.pcard__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 500; font-size: 14px; color: var(--text); }
.pcard__link .ico:last-child { transition: transform .35s var(--ease); }
.pcard:hover .pcard__link .ico:last-child { transform: translate(3px, -3px); }

/* Skills */
.skills__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.skillsets { display: grid; gap: 26px; margin-top: 48px; }
.skillset h3 { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.skillset ul { display: flex; flex-wrap: wrap; gap: 8px; }
.skillset li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; font-size: 14px; border: 1px solid var(--line); background: var(--panel); transition: transform .3s var(--ease), border-color .3s, background .3s; }
.skillset li:hover { transform: translateY(-3px); border-color: rgba(62, 231, 255, .35); background: rgba(62, 231, 255, .06); }
.skillset li i { font-size: 18px; }
.skillset li .ico { width: 18px; height: 18px; color: #93c5fd; }
.sphere-wrap { position: relative; display: grid; place-items: center; }
.sphere { position: relative; width: min(520px, 86vw); aspect-ratio: 1; cursor: grab; touch-action: pan-y; user-select: none; }
.sphere:active { cursor: grabbing; }
.sphere::before { content: ''; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(139, 92, 246, .22), transparent 65%); filter: blur(20px); }
.sphere span { position: absolute; left: 50%; top: 50%; font: 600 clamp(15px, 1.5vw, 20px)/1 var(--display); white-space: nowrap; color: var(--text); will-change: transform, opacity; }
.sphere span.hi { color: var(--cyan); }
.sphere-hint { margin-top: 6px; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Timeline */
.timeline { position: relative; display: grid; gap: 22px; }
.timeline__line { position: absolute; left: 214px; top: 8px; bottom: 8px; width: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.timeline__line span { position: absolute; inset: 0; background: linear-gradient(var(--cyan), var(--violet), var(--pink)); transform-origin: 0 0; transform: scaleY(0); }
.titem { position: relative; display: grid; grid-template-columns: 180px 1fr; gap: 68px; align-items: start; }
.titem__dot { position: absolute; left: 207px; top: 26px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--cyan); box-shadow: 0 0 0 5px rgba(62, 231, 255, .1), 0 0 20px rgba(62, 231, 255, .5); z-index: 1; }
.titem__when { padding-top: 22px; font: 500 14px/1.4 var(--mono); color: var(--text); text-align: right; }
.titem__when small { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.titem__body { padding: 24px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(10px); }
.titem__body h3 { font-size: 23px; }
.titem__org { margin: 6px 0 12px; font-weight: 600; color: var(--cyan); font-size: 15px; }
.titem__body > p:not(.titem__org) { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.edu { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 64px; }
.edu__card { display: flex; gap: 18px; align-items: center; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(135deg, rgba(139, 92, 246, .1), rgba(62, 231, 255, .04)), var(--panel); }
.edu__icon { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 14px; font-size: 24px; color: var(--pink); background: rgba(244, 114, 182, .1); border: 1px solid rgba(244, 114, 182, .25); }
.edu__card b { display: block; font: 600 17px/1.3 var(--display); letter-spacing: -.01em; }
.edu__card div span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.edu__icon .ico { width: 26px; height: 26px; }
.pillar__icon .ico, .pcard__icon .ico { width: 24px; height: 24px; }

/* Contact */
.contact__big { font-size: clamp(48px, 10vw, 160px); font-weight: 800; line-height: .95; letter-spacing: -.055em; margin-bottom: clamp(48px, 6vw, 80px); }
.contact__big .line { padding-bottom: .06em; }
.lift { display: inline-block; will-change: transform; }
.contact__grid > * { min-width: 0; }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.contact__side { display: grid; gap: 12px; }
.contact__side .muted { font-size: 17px; margin-bottom: 14px; }
.clink { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); font-weight: 500; transition: border-color .3s, background .3s; overflow: hidden; }
.clink span { overflow: hidden; text-overflow: ellipsis; }
.clink .ico { font-size: 20px; color: var(--cyan); }
.clink:hover { border-color: rgba(62, 231, 255, .4); background: rgba(62, 231, 255, .05); }
.form { display: grid; gap: 14px; padding: clamp(22px, 3vw, 36px); border-radius: 26px; border: 1px solid var(--line-2); background: rgba(12, 14, 26, .82); backdrop-filter: blur(14px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; display: block; }
.field input, .field textarea { width: 100%; padding: 26px 16px 10px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--text); font: 400 16px/1.4 var(--body); resize: vertical; transition: border-color .25s, background .25s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); background: rgba(62, 231, 255, .04); }
.field span { position: absolute; left: 17px; top: 18px; color: var(--muted); font-size: 15px; pointer-events: none; transform-origin: 0 0; transition: transform .25s var(--ease), color .25s; }
.field input:focus + span, .field input:not(:placeholder-shown) + span, .field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-10px) scale(.78); color: var(--cyan); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #fb7185; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.g-recaptcha { min-height: 78px; }
.form__status { min-height: 1.4em; font-size: 15px; }
.form__status.ok { color: #6ee7b7; }
.form__status.err { color: #fda4af; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; background: rgba(5, 6, 11, .8); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; font-size: 14px; color: var(--muted); }
.footer__visits { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; }
.totop { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.totop:hover { color: var(--cyan); }

/* Responsive */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav > .btn { display: none; }
  .stack__inner { grid-template-columns: 1fr; }
  .stack__info { order: 2; }
  .grid { grid-template-columns: 1fr 1fr; }
  .skills__inner { grid-template-columns: 1fr; }
  .sphere-wrap { order: -1; }
}
@media (max-width: 760px) {
  .hero { padding-top: 110px; }
  .hero__meta { grid-template-columns: 1fr 1fr; gap: 18px; }
  .hero__meta div:nth-child(3) { grid-column: 1 / -1; }
  .scroll-cue { display: none; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 20px 16px; }
  .pillars, .grid, .edu, .contact__grid, .form__row { grid-template-columns: 1fr; }
  .stack__card { position: relative; top: 0; margin-bottom: 18px; }
  .stack__inner { border-radius: 22px; }
  .tilt--deep { --rx: 0deg; --ry: 0deg; }
  .rail { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail__track { padding: 10px var(--gutter) 24px; gap: 14px; }
  .tcard { width: 80vw; scroll-snap-align: center; }
  .timeline__line { left: 7px; }
  .titem { grid-template-columns: 1fr; gap: 10px; padding-left: 34px; }
  .titem__dot { left: 0; top: 4px; }
  .titem__when { padding-top: 0; text-align: left; }
  .titem__body { padding: 20px; }
  .form__foot { flex-direction: column; align-items: stretch; }
  .form__foot .btn { width: 100%; }
  .form { padding: 18px; }
  .g-recaptcha { transform: scale(.86); transform-origin: 0 0; width: 262px; height: 68px; min-height: 0; }
  .footer__inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .scrub .w { opacity: 1; }
  .grain { animation: none; }
}

/* ===================== v2 polish ===================== */

/* Intro loader */
.loader { display: none; }
.js:not(.seen) .loader {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 100; background: #05060b;
  clip-path: inset(0 0 0 0); animation: loaderFailsafe .6s ease 4.5s forwards;
}
@keyframes loaderFailsafe { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
.loader__inner { width: min(560px, calc(100% - 48px)); }
.loader__name { display: flex; flex-direction: column; font: 800 clamp(44px, 9vw, 92px)/.92 var(--display); letter-spacing: -.055em; }
.loader__name span { display: block; overflow: hidden; }
.loader__meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 26px; font: 500 13px/1 var(--mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.loader__meta b { font: 700 28px/1 var(--display); color: var(--text); letter-spacing: -.03em; }
.loader__bar { height: 2px; margin-top: 14px; background: var(--line); overflow: hidden; border-radius: 2px; }
.loader__bar i { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

/* Atmosphere */
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, .55) 100%); }
.hero__spot { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px circle at var(--sx, 70%) var(--sy, 30%), rgba(139, 92, 246, .14), transparent 60%); transition: background .2s; }
.bignum {
  position: absolute; right: var(--gutter); top: -.35em; z-index: -1; pointer-events: none; user-select: none;
  font: 800 clamp(120px, 22vw, 340px)/1 var(--display); letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .06);
}
.section__sub { margin-top: 18px; font-size: 16px; }

/* Nav status */
.nav__status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; font: 500 12px/1 var(--mono); color: #b8f5d8; border: 1px solid rgba(52, 211, 153, .22); background: rgba(52, 211, 153, .06); }
@media (max-width: 1240px) { .nav__status { display: none; } }

/* Hero layout + terminal */
.hero__row { display: grid; grid-template-columns: 1fr minmax(0, 470px); gap: clamp(28px, 4vw, 70px); align-items: end; }
.term {
  --ry: -8deg; --rx: 4deg;
  position: relative; border-radius: 18px; overflow: hidden; margin-bottom: 4px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(160deg, rgba(22, 25, 45, .78), rgba(8, 10, 20, .86));
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .03), 0 0 70px -25px rgba(139, 92, 246, .6);
}
.term::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, rgba(255, 255, 255, .07), transparent 35%); }
.term__bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.term__bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.term__bar i:nth-child(2) { background: #febc2e; } .term__bar i:nth-child(3) { background: #28c840; }
.term__bar span { margin-left: auto; margin-right: auto; font: 400 12px/1 var(--mono); color: var(--muted); transform: translateX(-20px); }
.term__body { padding: 18px 20px 20px; font: 400 13.5px/1.75 var(--mono); color: #c9cde0; }
.term__body b { color: var(--cyan); font-weight: 500; margin-right: 6px; }
.term__body .out { color: #e8eaf6; margin-bottom: 6px; }
.term__body em { font-style: normal; color: var(--muted); }
.term__body .k { color: #c4b5fd; }
.term__body .ok { color: #6ee7b7; }
.caret { display: inline-block; width: 8px; height: 15px; margin-left: 6px; vertical-align: -2px; background: var(--cyan); animation: blink 1s steps(2) infinite; }

/* Logo marquee row */
.marquee { display: grid; gap: 18px; }
.marquee__track--logos { animation-direction: reverse; animation-duration: 46s; gap: 14px; }
.marquee span.logo { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); font: 500 15px/1 var(--body); letter-spacing: 0; color: #c9cde0; -webkit-text-stroke: 0; white-space: nowrap; }
.marquee span.logo i { font-size: 20px; }

/* Live-scrolling screens */
.screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0b0d18; }
.screen img { width: 100%; height: auto; transform: translate3d(0, 0, 0); transition: transform var(--dur, 6s) cubic-bezier(.45, .05, .25, 1); will-change: transform; }
.screen.is-scrolling img { transform: translate3d(0, var(--scroll, 0px), 0); }
.screen::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; pointer-events: none; background: linear-gradient(transparent, rgba(5, 6, 11, .35)); opacity: 1; transition: opacity .4s; }
.screen.is-scrolling::after { opacity: 0; }

/* Featured cards: animated gradient border */
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.stack__inner { position: relative; isolation: isolate; }
.stack__inner::before {
  content: ''; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--ang), transparent 0 55%, var(--accent) 70%, #8b5cf6 82%, transparent 95%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spinBorder 6s linear infinite; opacity: .9;
}
.stack__inner::after { content: ''; position: absolute; inset: 0; z-index: -2; border-radius: inherit; box-shadow: 0 0 120px -40px var(--accent); opacity: .6; }
@keyframes spinBorder { to { --ang: 360deg; } }

/* Template cards polish */
.tcard { position: relative; }
.tcard::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .08) 50%, transparent 65%); transform: translateX(-120%); transition: transform 1s var(--ease); }
.tcard:hover::before { transform: translateX(120%); }

/* Process */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps__line { position: absolute; left: 28px; right: 28px; top: 47px; height: 1px; background: var(--line-2); overflow: hidden; }
.steps__line span { position: absolute; inset: 0; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(10px); }
.step__n { position: absolute; top: 18px; right: 20px; font: 500 12px/1 var(--mono); color: var(--muted); }
.step__icon { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #05060b; background: var(--grad); box-shadow: 0 0 0 6px var(--bg), 0 0 30px rgba(62, 231, 255, .35); margin-bottom: 22px; }
.step__icon .ico { width: 20px; height: 20px; }
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }

/* Context cursor */
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
  html.has-cursor input, html.has-cursor textarea { cursor: text; }
  .cursor {
    display: grid; place-items: center; position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none;
    width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
    background: #fff; mix-blend-mode: difference;
    transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s, opacity .3s, mix-blend-mode .3s;
  }
  .cursor__dot { display: none; }
  .cursor__label { font: 600 12px/1 var(--body); font-style: normal; color: #05060b; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .35s var(--ease); white-space: nowrap; }
  .cursor.is-hover { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .cursor.has-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; mix-blend-mode: normal; background: var(--grad); box-shadow: 0 10px 40px rgba(139, 92, 246, .45); }
  .cursor.has-label .cursor__label { opacity: 1; transform: none; }
  .cursor.is-hidden { opacity: 0; }
  .cursor.is-text { width: 3px; height: 26px; margin: -13px 0 0 -1.5px; border-radius: 2px; }
}

/* Contact polish */
.clink { position: relative; }
.clink__go { margin-left: auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--muted); transition: transform .4s var(--ease), background .3s, color .3s; }
.clink:hover .clink__go { transform: rotate(45deg); background: var(--cyan); color: #05060b; border-color: transparent; }
.clink__go .ico { color: inherit; font-size: 16px; }
.form__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.form__head b { font: 600 20px/1.2 var(--display); letter-spacing: -.02em; }
.form__head span { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); color: #b8f5d8; }

/* Footer v2 */
.footer { padding: 90px 0 26px; background: linear-gradient(180deg, rgba(5, 6, 11, .6), #05060b 40%); overflow: hidden; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-bottom: 40px; }
.footer__mail { display: inline-flex; align-items: center; gap: 14px; font: 700 clamp(36px, 6vw, 76px)/1 var(--display); letter-spacing: -.045em; transition: color .3s; }
.footer__mail .ico { width: .7em; height: .7em; color: var(--cyan); transition: transform .5s var(--ease); }
.footer__mail:hover { color: var(--cyan); }
.footer__mail:hover .ico { transform: rotate(45deg); }
.footer__cols { display: flex; gap: clamp(40px, 7vw, 100px); }
.footer__cols div { display: flex; flex-direction: column; gap: 10px; }
.footer__cols b { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.footer__cols a { color: #c9cde0; font-size: 15px; transition: color .2s, transform .3s var(--ease); }
.footer__cols a:hover { color: var(--cyan); transform: translateX(4px); }
.wordmark { display: flex; justify-content: space-between; gap: 2vw; margin: 10px 0 26px; font: 800 clamp(48px, 12vw, 200px)/.82 var(--display); letter-spacing: -.06em; user-select: none; white-space: nowrap; }
.wordmark > span { display: block; }
.wordmark .char { display: inline-block; }
.wordmark { overflow: hidden; padding-bottom: .04em; }
.wordmark span, .wordmark .char { background: linear-gradient(180deg, rgba(236, 238, 246, .9), rgba(236, 238, 246, .05)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark span:has(.char) { background: none; }
.footer__inner { border-top: 1px solid var(--line); padding-top: 22px; }

@media (max-width: 1080px) {
  .hero__row { grid-template-columns: 1fr; }
  .term { max-width: 520px; --ry: 0deg; --rx: 0deg; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps__line { display: none; }
}
@media (max-width: 760px) {
  .term { display: none; }
  .steps { grid-template-columns: 1fr; }
  .bignum { font-size: 120px; top: -.2em; }
  .footer__top { flex-direction: column; }
  .wordmark { flex-direction: column; gap: 0; }
  .marquee span.logo { padding: 8px 14px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .stack__inner::before { animation: none; }
  .screen img { transition: none; }
}
.footer__cta { display: flex; flex-direction: column; align-items: flex-start; }
.footer__cta .eyebrow { margin-bottom: 14px; }

/* Themes teaser band */
.tband { position: relative; z-index: 2; padding: 40px 0 0; }
.tband__card { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: clamp(24px, 4vw, 54px); border-radius: 30px; border: 1px solid var(--line-2); overflow: hidden; background: radial-gradient(700px circle at 100% 50%, rgba(139, 92, 246, .22), transparent 60%), linear-gradient(180deg, rgba(18, 21, 38, .94), rgba(9, 11, 21, .96)); transition: border-color .3s; }
.tband__card:hover { border-color: rgba(62, 231, 255, .4); }
.tband__text h2 { font-size: clamp(30px, 3.6vw, 52px); letter-spacing: -.04em; margin-bottom: 16px; }
.tband__text .muted { margin-bottom: 26px; font-size: 16px; max-width: 460px; }
.tband__shots { position: relative; height: clamp(220px, 26vw, 340px); perspective: 1200px; }
.tband__shots img { position: absolute; top: 50%; left: 50%; width: 72%; border-radius: 12px; border: 1px solid var(--line-2); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .9); z-index: calc(10 - var(--k));
  transform: translate(-50%, -50%) translateX(calc((var(--k) - 1.5) * 16%)) translateZ(calc(var(--k) * -60px)) rotateY(-22deg); transition: transform .8s var(--ease); }
.tband__card:hover .tband__shots img { transform: translate(-50%, -50%) translateX(calc((var(--k) - 1.5) * 24%)) translateZ(calc(var(--k) * -40px)) rotateY(-12deg); }
@media (max-width: 900px) { .tband__card { grid-template-columns: 1fr; } .tband__shots { height: 220px; } }

/* Themes + WordPress sections */
/* HTML theme cards */
.hlist { display: grid; gap: clamp(28px, 4vw, 54px); }
.hcard {
  position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(26px, 4vw, 60px); align-items: center;
  padding: clamp(20px, 3vw, 40px); border-radius: 30px; border: 1px solid var(--line-2); isolation: isolate;
  background: radial-gradient(800px circle at 0% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 55%), linear-gradient(180deg, rgba(18, 21, 38, .94), rgba(9, 11, 21, .96));
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9);
}
.hcard::before {
  content: ''; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--ang), transparent 0 60%, var(--accent) 75%, #8b5cf6 85%, transparent 95%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spinBorder 7s linear infinite;
}
.hcard:nth-child(even) { grid-template-columns: 1fr 1.25fr; }
.hcard:nth-child(even) .device { order: 2; }
.hcard .device { box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .85), 0 0 80px -20px color-mix(in srgb, var(--accent) 50%, transparent); }
.hcard__info h3 { display: flex; align-items: baseline; gap: 14px; font-size: clamp(36px, 4.4vw, 62px); margin: 18px 0 8px; letter-spacing: -.045em; }
.hcard__info .stack__num { color: var(--accent); }
.hcard__tag { font: 600 18px/1.35 var(--display); letter-spacing: -.01em; color: var(--text); margin-bottom: 12px; }
.hcard__info > p:not(.hcard__tag) { color: #b3b8cc; font-size: 15.5px; margin-bottom: 18px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: #c9cde0; font: 500 14px/1 var(--body); cursor: pointer; transition: background .25s, border-color .25s, color .25s; }
.filter i { font: 500 11px/1 var(--mono); font-style: normal; padding: 3px 7px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: var(--muted); }
.filter:hover { border-color: rgba(62, 231, 255, .4); }
.filter.is-on { color: #05060b; background: var(--grad); border-color: transparent; }
.filter.is-on i { background: rgba(5, 6, 11, .18); color: #05060b; }

/* WordPress grid */
.wgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.wcard { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--panel-solid); transition: border-color .3s, transform .5s var(--ease), box-shadow .4s; }
.wcard:hover { border-color: rgba(62, 231, 255, .35); transform: translateY(-4px); box-shadow: 0 30px 80px -30px rgba(62, 231, 255, .25); }
.wcard.is-hidden { display: none; }
.wcard__shot { display: block; width: 100%; padding: 0; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; background: #0b0d18; }
.wcard__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.wcard__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wcard__top h3 { font-size: 21px; }
.dots { display: inline-flex; }
.dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--panel-solid); margin-left: -5px; }
.wcard__niche { font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); }
.wcard__desc { color: var(--muted); font-size: 14.5px; margin-top: 4px; flex: 1; }
.wcard__meta { font-size: 12.5px; color: #7c829b; margin-top: 4px; }
.wcard__cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.wcard__dl { font: 500 12px/1 var(--mono); color: var(--muted); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 95; display: flex; flex-direction: column; background: rgba(5, 6, 11, .94); backdrop-filter: blur(10px); }
.lightbox[hidden] { display: none; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px var(--gutter); border-bottom: 1px solid var(--line); }
.lightbox__bar b { font: 600 18px/1 var(--display); }
.lightbox__bar button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text); font: 500 14px/1 var(--body); cursor: pointer; }
.lightbox__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 24px var(--gutter) 60px; }
.lightbox__scroll img { width: min(960px, 100%); margin: 0 auto; border-radius: 14px; box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9); }

/* Install */
.license { margin-top: 34px; font-size: 13.5px; color: var(--muted); }
.ulink { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1080px) {
  .hcard, .hcard:nth-child(even) { grid-template-columns: 1fr; }
  .hcard:nth-child(even) .device { order: 0; }
  .wgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .thero { padding-top: 120px; min-height: auto; }
  .tstats div { min-width: 0; flex: 1 1 40%; padding: 14px 16px; }
  .tstats b { font-size: 26px; }
  .wgrid { grid-template-columns: 1fr; }
  .hcard { border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) { .hcard::before { animation: none; } }
.wcard__cta { flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
.wcard__dl { margin-left: auto; }
