/* =========================================================
   Risely Software Ltd — main stylesheet
   ========================================================= */

:root {
    --bg: #060910;
    --bg-2: #0a0d15;
    --surface: rgba(33, 33, 33, .3);
    --surface-hover: rgba(40, 40, 40, .45);
    --stroke: rgba(34, 197, 94, .15);
    --stroke-soft: rgba(255, 255, 255, .08);
    --stroke-strong: rgba(255, 255, 255, .16);
    --inner-glow: rgba(34, 197, 94, .18);

    --brand: #22c55e;
    --brand-2: #9cf25a;
    --brand-3: #d4fbb0;

    --text: #ffffff;
    --text-2: #d6d2e0;
    --muted: #9e9e9e;
    --muted-2: #6c707a;

    --font-head: 'Mulish', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --radius-lg: 24px;
    --radius: 20px;
    --radius-sm: 15px;
    --container: 1200px;
    --gutter: 24px;

    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-back: cubic-bezier(.175, .885, .32, 1.275);
    --section-y: clamp(80px, 11vw, 140px);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; color: var(--muted); }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--brand); border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: calc(var(--section-y) / 2) 0; }
.section:first-of-type { padding-top: var(--section-y); }

/* ---------- Typography ---------- */
.h1 { font-size: clamp(40px, 6.4vw, 72px); font-weight: 800; letter-spacing: -.035em; }
.h2 { font-size: clamp(32px, 4.2vw, 50px); font-weight: 700; letter-spacing: -.03em; }
.h3 { font-size: clamp(24px, 2.6vw, 32px); }
.h4 { font-size: 20px; font-weight: 700; }
.lead { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.65; color: var(--muted); max-width: 620px; }
.text-grad {
    background: linear-gradient(100deg, var(--brand-3) 0%, var(--brand-2) 35%, var(--brand) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Tag / pill ---------- */
.tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; border-radius: 999px;
    border: 1px solid var(--stroke); background: var(--surface);
    font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: .02em;
    color: var(--text-2);
}
.tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(34, 197, 94, .18), 0 0 12px var(--brand); }

/* ---------- Buttons ---------- */
.btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px; border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: 15px; font-weight: 500; line-height: 1.2;
    white-space: nowrap;
    transition: transform .375s var(--ease-back), box-shadow .375s, background-color .3s, border-color .3s;
}
.btn .icon { transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-glow {
    color: #fff;
    background-color: var(--brand);
    background-image: radial-gradient(circle farthest-corner at 50% 100%, var(--brand-2), rgba(34, 197, 94, 0) 79%);
    border: 1px solid #15913f;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 24px -8px rgba(34, 197, 94, .6);
}
.btn-glow:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 14px 34px -8px rgba(34, 197, 94, .75); }
.btn-ghost {
    color: #fff;
    background: var(--surface);
    border: 1px solid var(--stroke-strong);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: rgba(34, 197, 94, .45); box-shadow: 0 0 0 4px rgba(34, 197, 94, .08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.icon-btn {
    display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
    border: 1px solid var(--stroke-soft); background: var(--surface); color: var(--text-2);
    transition: border-color .3s, color .3s, transform .35s var(--ease-back);
}
.icon-btn:hover { border-color: var(--stroke); color: #fff; transform: translateY(-2px); }

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    border-bottom: 1px solid transparent;
    transition: background-color .4s, border-color .4s, -webkit-backdrop-filter .4s, backdrop-filter .4s;
}
.site-header.is-scrolled {
    background: rgba(6, 9, 16, .72);
    -webkit-backdrop-filter: blur(17px) saturate(140%); backdrop-filter: blur(17px) saturate(140%);
    border-bottom-color: var(--stroke-soft);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.logo img { border-radius: 10px; }
.logo em { font-style: normal; font-weight: 500; color: var(--muted); margin-left: 4px; }
.nav ul { display: flex; gap: 4px; }
.nav-link {
    position: relative; display: block; padding: 8px 14px; border-radius: 10px;
    font-size: 14.5px; color: rgba(255, 255, 255, .62); transition: color .4s, background-color .4s;
}
.nav-link:hover { color: #fff; }
.nav-link.is-active { color: #fff; }
.nav-link.is-active::after {
    content: ""; position: absolute; left: 50%; bottom: -2px; width: 18px; height: 2px; border-radius: 2px;
    transform: translateX(-50%); background: var(--brand); box-shadow: 0 0 10px var(--brand);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-cta-mobile, .nav-toggle { display: none; }
.nav-toggle { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--stroke-soft); background: var(--surface); position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: #fff; border-radius: 2px; transition: transform .4s var(--ease), top .4s var(--ease); }
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 24px; }
.nav-open .nav-toggle span:first-child { top: 20px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Decorative backgrounds ---------- */
.grid-bg {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero-sun {
    position: absolute; left: 50%; top: -620px; width: 1100px; height: 1100px; border-radius: 50%;
    transform: translateX(-50%); pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(34, 197, 94, .16), rgba(34, 197, 94, 0) 62%);
    animation: sunIn 1.8s var(--ease) both;
}
@keyframes sunIn { from { opacity: 0; filter: blur(30px); transform: translateX(-50%) scale(.85); } to { opacity: 1; filter: blur(0); transform: translateX(-50%) scale(1); } }

/* ---------- Home hero ---------- */
.hero { position: relative; padding: clamp(56px, 8vw, 96px) 0 0; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero .h1 { max-width: 920px; margin: 22px 0 22px; }
.hero .lead { margin: 0 auto 34px; }
.announce {
    display: inline-flex; align-items: center; gap: 10px; padding: 5px 6px 5px 6px; border-radius: 999px;
    border: 1px solid var(--stroke); background: var(--surface); font-size: 13.5px; color: var(--text-2);
    transition: border-color .3s, transform .35s var(--ease-back);
}
.announce:hover { border-color: rgba(34, 197, 94, .4); transform: translateY(-1px); }
.announce b { padding: 3px 10px; border-radius: 999px; background: rgba(34, 197, 94, .16); color: var(--brand-2); font-weight: 600; font-size: 12.5px; }
.announce .icon { margin-right: 6px; color: var(--muted); }

.hero-visual { position: relative; width: 100%; max-width: 1060px; margin: clamp(56px, 7vw, 84px) auto 0; perspective: 1400px; }
.hero-visual .tilt { transform: rotateX(var(--tilt, 16deg)) scale(var(--tilt-scale, .96)); transform-origin: 50% 0; transition: transform .1s linear; will-change: transform; }
.hero-horizon {
    position: absolute; left: 50%; top: 120px; width: 160%; aspect-ratio: 1; border-radius: 50%;
    transform: translateX(-50%); pointer-events: none;
    border-top: 1px solid rgba(156, 242, 90, .55);
    background: radial-gradient(circle at 50% 0%, rgba(34, 197, 94, .35) 0%, rgba(34, 197, 94, .08) 22%, rgba(6, 9, 16, 0) 45%);
    box-shadow: 0 -20px 80px -10px rgba(34, 197, 94, .45);
    animation: horizonIn 2s .3s var(--ease) both;
}
@keyframes horizonIn { from { opacity: 0; transform: translateX(-50%) translateY(120px) scale(.9); filter: blur(20px); } to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); filter: blur(0); } }
.hero-visual .mock-window { position: relative; z-index: 1; }
.hero-visual .mock-phone { position: absolute; z-index: 2; right: -2%; bottom: -8%; width: 23%; }
.float-chip {
    position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 14px; font-size: 13px; font-weight: 500;
    background: rgba(18, 18, 22, .78); border: 1px solid var(--stroke-strong);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .6);
    animation: float 6s ease-in-out infinite;
}
.float-chip .chip-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: rgba(34, 197, 94, .16); color: var(--brand-2); }
.float-chip small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 400; }
.float-chip.c1 { left: -3%; top: 26%; }
.float-chip.c2 { left: 8%; bottom: 4%; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 40%; z-index: 4; pointer-events: none; background: linear-gradient(to bottom, rgba(6, 9, 16, 0), var(--bg) 90%); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(80px, 11vw, 140px) 0 clamp(40px, 6vw, 70px); text-align: center; }
.page-hero .hero-sun { top: -700px; }
.page-hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.page-hero .h1 { max-width: 860px; margin: 20px 0 20px; font-size: clamp(38px, 5.6vw, 64px); }
.page-hero .lead { margin: 0 auto 32px; }
.page-hero .btn-row { justify-content: center; }

/* ---------- Section head ---------- */
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); }
.section-head .lead { margin: 0 auto; }
.section-head.is-left { align-items: flex-start; text-align: left; margin-left: 0; }
.section-head.is-left .lead { margin: 0; }
.split-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 52px); }
.split-head .section-head { margin-bottom: 0; }

/* ---------- Marquee ---------- */
.marquee-section { padding: clamp(40px, 6vw, 72px) 0 clamp(20px, 4vw, 40px); text-align: center; position: relative; z-index: 5; }
.marquee-label { font-size: 14px; margin-bottom: 26px; }
.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
    padding: 0 30px; font-family: var(--font-head); font-size: 20px; font-weight: 700; letter-spacing: -.01em;
    color: rgba(255, 255, 255, .38); white-space: nowrap; transition: color .3s;
}
.marquee-item:hover { color: #fff; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards (glass + cursor spotlight) ---------- */
.card {
    position: relative; isolation: isolate; overflow: hidden;
    padding: 30px; border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--stroke-soft);
    transition: transform .6s var(--ease-back), border-color .4s, background-color .4s;
}
.card::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(34, 197, 94, .12), transparent 45%);
}
.card:hover { border-color: var(--stroke); background: var(--surface-hover); }
.card:hover::before { opacity: 1; }
.card-glow {
    border-color: var(--stroke);
    background-image: radial-gradient(circle farthest-corner at 50% 0%, rgba(34, 197, 94, .16) 5%, rgba(34, 197, 94, 0) 45%);
    box-shadow: inset 0 -20px 78px 0 rgba(34, 197, 94, .08), inset 0 0 29px 0 rgba(255, 255, 255, .05);
}
.card-icon {
    display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 22px; border-radius: 14px;
    color: var(--brand-2);
    background: linear-gradient(180deg, rgba(34, 197, 94, .18), rgba(34, 197, 94, .04));
    border: 1px solid var(--stroke);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-size: 14px; font-weight: 500; color: var(--brand-2); }
.card-link .icon { transition: transform .35s var(--ease); }
.card:hover .card-link .icon { transform: translateX(4px); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* ---------- Feature split ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.feature + .feature { margin-top: clamp(80px, 10vw, 130px); }
.feature.is-reverse .feature-media { order: -1; }
.feature-text .h2 { margin: 18px 0 18px; font-size: clamp(30px, 3.6vw, 44px); }
.feature-text .lead { margin-bottom: 28px; }
.checklist { display: grid; gap: 14px; margin-bottom: 34px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; color: var(--text-2); font-size: 15.5px; }
.check {
    flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
    background: rgba(34, 197, 94, .14); border: 1px solid var(--stroke); color: var(--brand-2);
}
.feature-media {
    position: relative; display: grid; place-items: center; min-height: 460px; padding: 40px;
    border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--stroke);
    background:
        radial-gradient(circle at 50% 110%, rgba(34, 197, 94, .35), rgba(34, 197, 94, 0) 55%),
        var(--surface);
    box-shadow: inset 0 0 29px 0 rgba(255, 255, 255, .04);
}
.feature-media .grid-bg { -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 60%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 60% 60% at 50% 60%, #000 20%, transparent 75%); }
.feature-media .mock-phone { width: 230px; position: relative; z-index: 1; }
.feature-media .mock-window { width: 112%; position: relative; z-index: 1; transform: translateX(8%); }

/* ---------- Process ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.process::before {
    content: ""; position: absolute; top: 55px; left: 12%; right: 12%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--stroke-strong), transparent);
}
.step { text-align: center; padding: 26px 20px 30px; }
.step-num {
    position: relative; z-index: 1; display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 24px;
    border-radius: 18px; background: var(--bg-2); border: 1px solid var(--stroke); color: var(--brand-2);
    box-shadow: 0 0 0 8px var(--bg), 0 0 30px -6px rgba(34, 197, 94, .5);
    transition: transform .5s var(--ease-back);
}
.step:hover .step-num { transform: translateY(-4px) rotate(-4deg); }
.step small { display: block; margin-bottom: 8px; font-family: var(--font-head); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-2); }
.step h3 { margin-bottom: 10px; }
.step p { font-size: 15px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--stroke-soft); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.stat { padding: 40px 28px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--stroke-soft); }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(38px, 4.4vw, 54px); font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-bottom: 10px; }
.stat span { color: var(--muted); font-size: 15px; }

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project { display: flex; flex-direction: column; gap: 20px; transition: transform .6s var(--ease-back); }
.project:hover { transform: translateY(-6px); }
.project.is-hidden { display: none; }
.project-cover {
    position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3.2; overflow: hidden;
    border-radius: var(--radius); border: 1px solid var(--stroke-soft);
    background: var(--surface);
    transition: border-color .4s;
}
.project-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 120%, var(--hue), transparent 60%); opacity: .55; transition: opacity .5s; }
.project:hover .project-cover { border-color: var(--stroke); }
.project:hover .project-cover::after { opacity: .9; }
.hue-amber { --hue: rgba(34, 197, 94, .7); }
.hue-rose  { --hue: rgba(20, 184, 166, .5); }
.hue-gold  { --hue: rgba(163, 230, 53, .5); }
.project-cover > * { position: relative; z-index: 1; transition: transform .7s var(--ease); }
.project:hover .project-cover > * { transform: translateY(-6px) scale(1.03); }
.project-cover .mock-phone { width: 40%; margin-top: 18%; }
.project-cover .mock-window { position: absolute; left: 12%; top: 16%; width: 112%; }
.project-cover .app-phone {
    width: 42%; margin-top: 16%; padding: 2.4%; border-radius: 14% / 6.6%;
    background: linear-gradient(160deg, #2a2b31, #0d0e12 40%, #1b1c21);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .85), inset 0 0 0 1.5px rgba(255, 255, 255, .12), 0 0 0 1px rgba(0, 0, 0, .6);
}
.project-cover .app-phone img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 19; object-fit: cover; object-position: top; border-radius: 12% / 5.6%; }
.app-title { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.app-title img { width: 48px; height: 48px; border-radius: 12px; flex: none; box-shadow: 0 0 0 1px var(--stroke-soft); }
.app-title h3 { margin: 0; }
.app-title small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.store-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.project-meta { display: flex; gap: 8px; margin-bottom: 12px; }
.project-meta span { padding: 4px 10px; border-radius: 999px; font-size: 12px; color: var(--text-2); border: 1px solid var(--stroke-soft); background: var(--surface); }
.project h3 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.project-arrow { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--stroke-soft); color: var(--muted); transition: all .4s var(--ease); }
.project:hover .project-arrow { background: var(--brand); border-color: var(--brand); color: #fff; transform: rotate(45deg); }
.project p { font-size: 15px; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 44px; }
.filter {
    padding: 9px 18px; border-radius: 999px; font-size: 14px; color: var(--muted);
    border: 1px solid var(--stroke-soft); background: var(--surface); transition: all .3s;
}
.filter:hover { color: #fff; }
.filter.is-active { color: #fff; border-color: var(--stroke); background: rgba(34, 197, 94, .14); }

/* ---------- Testimonials ---------- */
.slider { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.slider::-webkit-scrollbar { display: none; }
.testimonial { scroll-snap-align: start; display: flex; flex-direction: column; margin: 0; }
.stars { display: flex; gap: 3px; color: var(--brand-2); margin-bottom: 20px; }
.stars .icon { fill: currentColor; }
.testimonial blockquote { margin: 0 0 28px; flex: 1; font-size: 16.5px; line-height: 1.65; color: var(--text-2); }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; padding-top: 22px; border-top: 1px solid var(--stroke-soft); }
.testimonial strong { display: block; font-family: var(--font-head); font-size: 15px; }
.testimonial small { color: var(--muted); font-size: 13px; }
.testimonial small a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.testimonial small a:hover { color: var(--text); }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-family: var(--font-head); font-weight: 800; background: linear-gradient(135deg, var(--brand-2), var(--brand)); }
.slider-nav { display: flex; gap: 10px; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.faq-intro { position: sticky; top: 110px; }
.faq-intro .section-head { margin-bottom: 28px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border-radius: var(--radius-sm); border: 1px solid var(--stroke-soft); background: var(--surface); transition: border-color .3s, background-color .3s; }
.faq-item.is-open { border-color: var(--stroke); background: var(--surface-hover); }
.faq-q { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; text-align: left; font-family: var(--font-head); font-size: 17px; font-weight: 600; }
.faq-icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--stroke-soft); color: var(--brand-2); transition: transform .45s var(--ease), background-color .3s; }
.faq-item.is-open .faq-icon { transform: rotate(45deg); background: rgba(34, 197, 94, .14); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 24px 24px; font-size: 15.5px; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }

/* ---------- CTA panel ---------- */
.cta-panel {
    position: relative; overflow: hidden; isolation: isolate;
    padding: clamp(56px, 8vw, 100px) clamp(24px, 5vw, 64px); text-align: center;
    border-radius: 28px; border: 1px solid var(--stroke);
    background: var(--surface);
    box-shadow: inset 0 -19.6px 78.4px 0 rgba(34, 197, 94, .18), inset 0 0 29.4px 0 rgba(255, 255, 255, .06);
}
.cta-glow { position: absolute; z-index: -1; left: 50%; bottom: -70%; width: 120%; aspect-ratio: 2 / 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse at 50% 50%, rgba(34, 197, 94, .55), rgba(34, 197, 94, 0) 60%); filter: blur(10px); animation: pulse 7s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .75; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.06); } }
.cta-panel .grid-bg { z-index: -1; -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000 20%, transparent 75%); }
.cta-content { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cta-content .h2 { max-width: 720px; }
.cta-content .lead { margin-bottom: 10px; }

/* ---------- Services page ---------- */
.service-detail { display: grid; grid-template-columns: 70px 1fr 1fr; gap: 32px; padding: 44px 0; border-top: 1px solid var(--stroke-soft); align-items: start; }
.service-detail:last-child { border-bottom: 1px solid var(--stroke-soft); }
.service-detail .card-icon { margin: 0; }
.service-detail h3 { margin-bottom: 14px; }
.service-detail .checklist { margin: 0; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.chip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.industry { display: flex; align-items: center; gap: 14px; padding: 20px 22px; }
.industry .card-icon { width: 42px; height: 42px; margin: 0; border-radius: 12px; }
.industry span { font-family: var(--font-head); font-weight: 600; font-size: 16px; }
.tech-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tech-groups h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 18px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills span { padding: 6px 12px; border-radius: 10px; font-size: 14px; color: var(--text-2); border: 1px solid var(--stroke-soft); background: rgba(255, 255, 255, .02); }

/* ---------- About ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.story-text p + p { margin-top: 18px; }
.story-text .h2 { margin: 18px 0 24px; }
.story-visual { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); border: 1px solid var(--stroke); overflow: hidden; background: var(--surface); }
.orbit { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .1); transform: translate(-50%, -50%); }
.orbit.o1 { width: 40%; aspect-ratio: 1; }
.orbit.o2 { width: 64%; aspect-ratio: 1; animation: spin 40s linear infinite; }
.orbit.o3 { width: 88%; aspect-ratio: 1; animation: spin 70s linear infinite reverse; }
.orbit i { position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 16px var(--brand); }
.orbit.o3 i { background: var(--brand-2); top: auto; bottom: -6px; }
.story-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 26%; }
.story-core img { width: 100%; height: auto; border-radius: 28%; box-shadow: 0 0 60px rgba(34, 197, 94, .45); }
.story-visual::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(34, 197, 94, .25), transparent 55%); pointer-events: none; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 34px; }
.plan-tag { align-self: flex-start; margin-bottom: 24px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); border: 1px solid var(--stroke-soft); }
.plan.is-featured .plan-tag { color: #fff; border-color: transparent; background: var(--brand); }
.plan h3 { font-size: 26px; margin-bottom: 6px; }
.plan-price { font-family: var(--font-head); font-size: 15px; color: var(--brand-2); margin-bottom: 16px; font-weight: 600; }
.plan > p { font-size: 15px; }
.plan .checklist { margin: 28px 0 34px; padding-top: 28px; border-top: 1px solid var(--stroke-soft); flex: 1; }
.plan .btn { width: 100%; }
.plan.is-featured { transform: translateY(-12px); }
.plan.is-featured:hover { transform: translateY(-16px); }
.included { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.form-card { padding: clamp(26px, 4vw, 44px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; color: var(--text-2); }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 16px; border-radius: 12px; font: inherit; font-size: 15px; color: #fff;
    background: rgba(255, 255, 255, .03); border: 1px solid var(--stroke-soft);
    transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239e9e9e' stroke-width='1.6' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field select option { background: #12141a; }
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: rgba(34, 197, 94, .55); box-shadow: 0 0 0 4px rgba(34, 197, 94, .12); background: rgba(255, 255, 255, .05); }
.choice-group { display: flex; flex-wrap: wrap; gap: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; padding: 9px 16px; border-radius: 999px; font-size: 14px; color: var(--muted); border: 1px solid var(--stroke-soft); cursor: pointer; transition: all .3s; }
.choice input:checked + span { color: #fff; border-color: var(--stroke); background: rgba(34, 197, 94, .16); }
.choice input:focus-visible + span { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; flex-wrap: wrap; }
.form-foot small { color: var(--muted-2); font-size: 13px; }
.hp { position: absolute; left: -9999px; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; margin-bottom: 24px; font-size: 15px; }
.alert-ok { background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .35); color: #b8f0cb; }
.alert-err { background: rgba(234, 56, 76, .1); border: 1px solid rgba(234, 56, 76, .4); color: #ffc6cd; }
.alert ul { padding-left: 18px; list-style: disc; }
.contact-info { display: grid; gap: 16px; }
.info-card { display: flex; gap: 16px; align-items: flex-start; padding: 24px; }
.info-card .card-icon { width: 44px; height: 44px; margin: 0; flex: none; border-radius: 12px; }
.info-card h3 { font-size: 16px; margin-bottom: 4px; }
.info-card p, .info-card a { font-size: 15px; color: var(--muted); }
.info-card a:hover { color: var(--brand-2); }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; margin-top: calc(var(--section-y) / 2); padding: 80px 0 30px; border-top: 1px solid var(--stroke-soft); }
.footer-glow { position: absolute; left: 50%; top: -1px; width: 60%; height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--brand-2), transparent); box-shadow: 0 0 60px 20px rgba(34, 197, 94, .18); }
.footer-top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 60px; padding-bottom: 56px; }
.footer-brand p { margin: 20px 0 26px; max-width: 320px; font-size: 15px; }
.socials { display: flex; gap: 10px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1.2fr 1.4fr; gap: 32px; }
.footer-cols h4 { font-size: 14px; font-weight: 700; margin-bottom: 20px; color: #fff; letter-spacing: 0; }
.footer-cols ul { display: grid; gap: 12px; }
.footer-cols a, .footer-cols span { font-size: 15px; color: var(--muted); transition: color .3s; }
.footer-cols a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { flex: none; margin-top: 4px; color: var(--brand-2); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; border-top: 1px solid var(--stroke-soft); font-size: 14px; }
.footer-bottom p { font-size: 14px; color: var(--muted-2); }
.to-top { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); transition: color .3s; }
.to-top:hover { color: #fff; }
.to-top .icon { transform: rotate(-45deg); }

/* ---------- 404 ---------- */
.not-found .h1 { font-size: clamp(90px, 18vw, 200px); line-height: 1; }

/* =========================================================
   UI mockups (pure CSS)
   ========================================================= */
.mp-line { display: block; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.mp-line.light { background: rgba(255, 255, 255, .3); }
.w20 { width: 20%; } .w30 { width: 30%; } .w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; }
.mp-ico { flex: none; width: 26px; height: 26px; border-radius: 8px; background: rgba(34, 197, 94, .2); border: 1px solid rgba(34, 197, 94, .25); }

/* Window */
.mock-window {
    width: 100%; border-radius: 16px; overflow: hidden;
    background: linear-gradient(180deg, #13151c, #0c0e14);
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.mw-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .06); background: rgba(255, 255, 255, .02); }
.mw-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.mw-bar i:first-child { background: #22c55e; }
.mw-url { margin: 0 auto; padding: 4px 40px; border-radius: 7px; font-size: 11px; color: var(--muted-2); background: rgba(255, 255, 255, .04); }
.mw-body { display: grid; grid-template-columns: 19% 1fr; min-height: 340px; }
.mw-side { display: flex; flex-direction: column; gap: 16px; padding: 20px 18px; border-right: 1px solid rgba(255, 255, 255, .06); }
.mw-logo { width: 28px; height: 28px; margin-bottom: 10px; border-radius: 9px; background: linear-gradient(135deg, var(--brand-2), var(--brand)); }
.mw-side .mp-line { width: 80%; }
.mw-side .mp-line.on { background: rgba(34, 197, 94, .6); }
.mw-main { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.mw-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mw-stats > div { padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .06); }
.mw-stats strong { display: block; margin: 10px 0 2px; font-family: var(--font-head); font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.mw-stats em { font-style: normal; font-size: 11px; color: #4ade80; }
.mw-chart { height: 130px; padding: 10px 0 0; border-radius: 12px; background: rgba(255, 255, 255, .02); border: 1px solid rgba(255, 255, 255, .06); overflow: hidden; }
.mw-chart svg { width: 100%; height: 100%; }
.js .mw-path { stroke-dasharray: 600; stroke-dashoffset: 600; }
.is-in .mw-path { animation: draw 2.2s .4s var(--ease) forwards; }
.js .is-in .mw-area { animation: fadeIn 1.6s .9s both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.mw-table { display: grid; gap: 10px; }
.mw-table > div { display: flex; align-items: center; gap: 14px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .02); }
.mw-table .w40 { flex: 1; max-width: 40%; }
.mw-pill { margin-left: auto; width: 54px; height: 18px; border-radius: 999px; background: rgba(74, 222, 128, .15); border: 1px solid rgba(74, 222, 128, .3); }

.mock-window.is-mini .mw-body { min-height: 0; }
.mock-window.is-mini .mw-main { padding: 14px; gap: 12px; }
.mock-window.is-mini .mw-stats strong { font-size: 15px; }
.mock-window.is-mini .mw-chart { height: 80px; }
.mock-window.is-mini .mw-url { padding: 3px 24px; font-size: 9px; }
.mock-window.is-mini .mw-path { stroke-dashoffset: 0; animation: none; }

/* Phone */
.mock-phone {
    position: relative; aspect-ratio: 9 / 19; border-radius: 16% / 7.6%;
    background: linear-gradient(160deg, #2a2b31, #0d0e12 40%, #1b1c21);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .85), inset 0 0 0 1.5px rgba(255, 255, 255, .12), 0 0 0 1px rgba(0, 0, 0, .6);
    container-type: inline-size;
}
.mp-notch { position: absolute; z-index: 2; left: 50%; top: 4.6%; width: 30%; height: 3.4%; border-radius: 999px; transform: translateX(-50%); background: #000; }
.mp-screen {
    position: absolute; inset: 3.3% 7%; display: flex; flex-direction: column; gap: 6cqw; padding: 18cqw 7cqw 6cqw; border-radius: 11% / 5.4%; overflow: hidden;
    background: radial-gradient(circle at 50% 0%, rgba(34, 197, 94, .25), transparent 55%), #0b0d12;
}
.mp-top { display: flex; justify-content: space-between; align-items: center; }
.mp-avatar { width: 12cqw; height: 12cqw; border-radius: 50%; background: linear-gradient(135deg, var(--brand-2), var(--brand)); }
.mp-balance { display: flex; flex-direction: column; gap: 3cqw; padding: 7cqw; border-radius: 7cqw; background: linear-gradient(135deg, #22c55e, #16a34a 60%, #14532d); box-shadow: 0 10px 30px -10px rgba(34, 197, 94, .7); }
.mp-balance strong { font-family: var(--font-head); font-size: 11cqw; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.mp-balance strong small { font-size: 7cqw; opacity: .7; }
.mp-chip { align-self: flex-start; padding: 1.5cqw 4cqw; border-radius: 999px; font-size: 4.4cqw; background: rgba(255, 255, 255, .2); }
.mp-bars { display: flex; align-items: flex-end; gap: 3.4cqw; height: 26cqw; padding: 0 2cqw; }
.mp-bars span { flex: 1; height: var(--h); border-radius: 2cqw; background: rgba(255, 255, 255, .1); transform-origin: bottom; }
.mp-bars span:nth-child(6) { background: linear-gradient(180deg, var(--brand-2), var(--brand)); }
.js .mp-bars span { transform: scaleY(.15); transition: transform 1.1s var(--ease); }
.is-in .mp-bars span, .project .mp-bars span { transform: scaleY(1); }
.mp-bars span:nth-child(2) { transition-delay: .06s; } .mp-bars span:nth-child(3) { transition-delay: .12s; } .mp-bars span:nth-child(4) { transition-delay: .18s; }
.mp-bars span:nth-child(5) { transition-delay: .24s; } .mp-bars span:nth-child(6) { transition-delay: .3s; } .mp-bars span:nth-child(7) { transition-delay: .36s; }
.mp-list { display: grid; gap: 3.4cqw; flex: 1; }
.mp-row { display: flex; align-items: center; gap: 4cqw; padding: 3.4cqw; border-radius: 4cqw; background: rgba(255, 255, 255, .04); }
.mp-row .mp-ico { width: 10cqw; height: 10cqw; border-radius: 3cqw; }
.mp-row .mp-line { height: 2.4cqw; }
.mp-lines { flex: 1; display: grid; gap: 2cqw; }
.mp-lines .w60 { width: 80%; } .mp-lines .w30 { width: 45%; }
.mp-row > .w20 { width: 14cqw; }
.mp-tabs { display: flex; justify-content: space-around; padding: 4cqw 0 1cqw; border-top: 1px solid rgba(255, 255, 255, .06); }
.mp-tabs span { width: 7cqw; height: 7cqw; border-radius: 2.4cqw; background: rgba(255, 255, 255, .14); }
.mp-tabs span.on { background: var(--brand); }

/* =========================================================
   Scroll reveal (progressive enhancement)
   ========================================================= */
.js [data-reveal] {
    opacity: 0; transform: translate3d(0, 30px, 0); filter: blur(6px);
    transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
    transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.js [data-reveal="scale"] { transform: translate3d(0, 40px, 0) scale(.94); }
[data-delay="1"] { --d: 1; } [data-delay="2"] { --d: 2; } [data-delay="3"] { --d: 3; } [data-delay="4"] { --d: 4; } [data-delay="5"] { --d: 5; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
    .grid-4, .chip-grid, .tech-groups { grid-template-columns: repeat(2, 1fr); }
    .process { grid-template-columns: repeat(2, 1fr); }
    .process::before { display: none; }
    .slider { grid-auto-columns: calc((100% - 20px) / 2); }
    .footer-top { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .nav-cta { display: none; }
    .nav {
        position: fixed; inset: 76px 0 auto 0; z-index: 49;
        display: flex; flex-direction: column; gap: 24px; padding: 24px var(--gutter) 32px;
        background: rgba(6, 9, 16, .96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--stroke-soft);
        opacity: 0; visibility: hidden; transform: translateY(-12px);
        transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
    }
    .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
    .nav-open .site-header { background: rgba(6, 9, 16, .96); }
    .nav ul { flex-direction: column; gap: 2px; }
    .nav-link { padding: 14px 4px; font-size: 18px; font-family: var(--font-head); font-weight: 600; border-bottom: 1px solid var(--stroke-soft); border-radius: 0; }
    .nav-link.is-active::after { left: auto; right: 4px; bottom: 50%; width: 6px; height: 6px; border-radius: 50%; transform: translateY(50%); }
    .nav-cta-mobile { display: inline-flex; }

    .grid-3, .projects, .plans, .included { grid-template-columns: 1fr 1fr; }
    .feature, .story, .faq-layout, .contact-layout { grid-template-columns: 1fr; }
    .feature.is-reverse .feature-media { order: 0; }
    .feature-media { min-height: 380px; }
    .faq-intro { position: static; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--stroke-soft); }
    .service-detail { grid-template-columns: 56px 1fr; }
    .service-detail > :last-child { grid-column: 2; }
    .plan.is-featured { transform: none; }
    .plan.is-featured:hover { transform: translateY(-4px); }
    .hero-visual .float-chip { display: none; }
}

@media (max-width: 640px) {
    :root { --gutter: 16px; }
    .grid-3, .grid-2, .projects, .plans, .included, .chip-grid, .tech-groups, .process { grid-template-columns: 1fr; }
    .slider { grid-auto-columns: 88%; }
    .split-head { flex-direction: column; align-items: flex-start; }
    .form-grid { grid-template-columns: 1fr; }
    .service-detail { grid-template-columns: 1fr; gap: 18px; padding: 34px 0; }
    .service-detail > :last-child { grid-column: auto; }
    .service-detail .checklist { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .footer-cols > :last-child { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .mw-body { grid-template-columns: 1fr; }
    .mw-side { display: none; }
    .mw-stats { grid-template-columns: 1fr 1fr; }
    .mw-stats > div:nth-child(3) { display: none; }
    .mock-window:not(.is-mini) .mw-body { min-height: 0; }
    .hero-visual .mock-phone { width: 34%; right: -3%; bottom: -14%; }
    .card { padding: 24px; }
    .btn-row .btn { flex: 1 1 auto; }
    .stat { padding: 30px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .js [data-reveal] { opacity: 1; transform: none; filter: none; }
    .marquee-track { animation: none; }
    .js .mw-path { stroke-dashoffset: 0; }
    .js .mp-bars span { transform: none; }
}

/* =====================================================================
   HOME HERO — typed headline, flowing line bundle, live build feed
   ===================================================================== */
.hx { position: relative; overflow: hidden; min-height: clamp(640px, 88vh, 860px); display: flex; align-items: center; padding: clamp(48px, 7vw, 88px) 0 clamp(72px, 9vw, 120px); isolation: isolate; }
.hx-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.6s ease .2s; }
.hx-lines.is-ready { opacity: 1; }
.hx-lines .ln { fill: none; stroke: url(#hxGrad); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hx-lines .streak { fill: none; stroke: url(#hxStreak); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px rgba(156, 242, 90, .9)); }
.hx-glow { position: absolute; z-index: -2; right: -10%; top: 10%; width: 60%; height: 80%; pointer-events: none; background: radial-gradient(closest-side, rgba(34, 197, 94, .12), transparent 70%); filter: blur(20px); }
.hx::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none; background: linear-gradient(to bottom, transparent, var(--bg)); }

.hx-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; width: 100%; }
.hx-copy { max-width: 680px; }

.hx-badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 10px; border: 1px solid var(--stroke-soft); background: rgba(255, 255, 255, .03); font-size: 14.5px; color: var(--text-2); transition: border-color .3s, transform .3s; }
.hx-badge:hover { border-color: var(--stroke); transform: translateY(-1px); }
.hx-badge b { padding: 4px 10px; border-radius: 7px; background: rgba(34, 197, 94, .14); color: var(--brand-2); font-weight: 600; font-size: 13px; }

.hx-title { margin: 28px 0 26px; font-family: var(--font-head); font-size: clamp(44px, 6.6vw, 84px); font-weight: 700; line-height: 1.04; letter-spacing: -.04em; }
.hx-type { white-space: nowrap; }
.hx-caret { display: inline-block; width: .06em; height: .92em; margin-left: .06em; vertical-align: -.08em; background: var(--brand); border-radius: 2px; animation: hxBlink 1s steps(1) infinite; }
.hx-dot { color: var(--brand); margin-left: .08em; }
@keyframes hxBlink { 50% { opacity: 0; } }

.hx-lead { max-width: 600px; margin: 0 0 34px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--muted); }
.hx-lead strong { color: var(--text); font-weight: 500; }
.hx-actions { justify-content: flex-start; }
.hx-meta { margin: 26px 0 0; font-size: 14px; color: var(--muted); }

/* Floating feed */
.hx-feed { position: relative; display: flex; flex-direction: column; gap: 14px; max-width: 420px; justify-self: end; width: 100%; }
.hx-card {
    border-radius: 18px; border: 1px solid var(--stroke-soft);
    background: rgba(12, 14, 18, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .8);
    padding: 16px 20px; font-size: 15px; color: var(--text);
    opacity: 0; transform: translateY(18px) scale(.98);
    transition: opacity .6s var(--ease), transform .7s var(--ease), border-color .4s;
}
.hx-card.is-on { opacity: 1; transform: none; animation: hxFloat 7s ease-in-out infinite; }
.hx-card:nth-child(2).is-on { animation-delay: -1.5s; }
.hx-card:nth-child(3).is-on { animation-delay: -3s; }
.hx-card:nth-child(4).is-on { animation-delay: -4.5s; }
@keyframes hxFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.hx-prompt { border-radius: 999px; padding: 14px 22px; }
.hx-bot-head { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; margin-bottom: 12px; }
.hx-bot-head img { width: 24px; height: 24px; border-radius: 50%; box-shadow: 0 0 0 1px var(--stroke-soft); }
.hx-bot-msg { margin: 0; line-height: 1.5; min-height: 1.5em; }
.hx-order-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.hx-order-head span { color: var(--muted); font-size: 13.5px; letter-spacing: .02em; }
.hx-order-head strong { font-family: var(--font-head); font-size: 18px; }
.hx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hx-chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--stroke-soft); font-size: 13.5px; color: var(--muted); transition: all .45s var(--ease); }
.hx-chip.is-done { color: var(--text-2); border-color: var(--stroke-strong); }
.hx-chip.is-active { background: var(--brand); border-color: var(--brand); color: #04110a; font-weight: 600; box-shadow: 0 0 18px rgba(34, 197, 94, .45); }
.hx-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 999px; padding: 14px 22px; }
.hx-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .15); border-top-color: var(--text-2); animation: hxSpin .8s linear infinite; flex: none; }
.hx-tick { display: none; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #04110a; flex: none; }
.hx-status.is-done .hx-spinner { display: none; }
.hx-status.is-done .hx-tick { display: grid; }
.hx-status.is-done { border-color: var(--stroke); }
@keyframes hxSpin { to { transform: rotate(360deg); } }

/* No-JS / reduced motion: show everything, still */
html:not(.js) .hx-card { opacity: 1; transform: none; }
html:not(.js) .hx-caret { display: none; }
@media (prefers-reduced-motion: reduce) {
    .hx-card, .hx-card.is-on { opacity: 1; transform: none; animation: none; transition: none; }
    .hx-caret { animation: none; }
}

@media (max-width: 960px) {
    .hx { min-height: 0; }
    .hx-lines.is-ready { opacity: .55; }
    .hx-inner { grid-template-columns: 1fr; }
    .hx-feed { justify-self: start; max-width: 460px; }
}
@media (max-width: 560px) {
    .hx-title { font-size: clamp(38px, 11vw, 52px); }
    .hx-type { white-space: normal; }
    .hx-card { padding: 14px 16px; font-size: 14px; }
}

/* =========================================================
   WORK (database-driven) + BLOG
   ========================================================= */
.filter span { display: inline-grid; place-items: center; min-width: 22px; height: 20px; margin-left: 6px; padding: 0 6px; border-radius: 999px; font-size: 11.5px; background: rgba(255, 255, 255, .06); color: var(--muted); }
.filter.is-active span { background: rgba(34, 197, 94, .25); color: #fff; }
.projects-empty { max-width: 520px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 44px 30px; }
.projects-empty .card-icon { margin: 0 0 6px; }
.projects-empty p { margin-bottom: 8px; }
.project h3 a { transition: color .3s; }
.project h3 a:hover { color: var(--brand-2); }
.project-body { display: flex; flex-direction: column; flex: 1; }
.project-body .store-links { margin-top: auto; padding-top: 16px; }
.project.is-app .project-body > p { margin-bottom: 4px; }

/* Wide screenshot inside a browser frame */
.project-cover .app-browser {
    width: 86%; margin-top: 12%; align-self: start; border-radius: 12px; overflow: hidden;
    background: #0c0e14; border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .85);
}
.app-browser .mw-bar { padding: 9px 12px; gap: 6px; }
.app-browser .mw-bar i { width: 8px; height: 8px; }
.app-browser .mw-url { padding: 3px 18px; font-size: 10.5px; }
.app-browser img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.app-tile img { width: 120px; height: 120px; border-radius: 28px; box-shadow: 0 30px 60px -18px rgba(0, 0, 0, .8), 0 0 0 1px var(--stroke-soft); }

.stack-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.stack-chips li { padding: 3px 10px; border-radius: 8px; font-size: 12.5px; color: var(--brand-3); background: rgba(34, 197, 94, .08); border: 1px solid rgba(34, 197, 94, .18); }

/* Project detail */
.work-hero { position: relative; overflow: hidden; padding: clamp(60px, 8vw, 110px) 0 clamp(30px, 5vw, 60px); }
.work-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.work-hero-copy { display: flex; flex-direction: column; gap: 22px; }
.work-hero-copy .lead { max-width: 560px; }
.work-hero-media { aspect-ratio: 1 / 1; }
.work-hero-media .app-phone { width: 46%; margin-top: 12%; }
.work-hero-media .app-browser { width: 88%; margin-top: 16%; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a:hover { color: var(--brand-2); }
.crumbs span[aria-hidden] { color: var(--muted-2); }
.app-title.is-lg { gap: 18px; margin: 0; }
.app-title.is-lg img { width: 72px; height: 72px; border-radius: 18px; }
.app-title.is-lg small { font-size: 16px; margin-top: 6px; }

.work-detail { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 5vw, 70px); align-items: start; }
.work-detail-section { padding-top: clamp(30px, 5vw, 60px) !important; }
.work-facts { position: sticky; top: 100px; padding: 28px; }
.work-facts dl { margin: 0; display: grid; gap: 0; }
.work-facts dl > div { padding: 14px 0; border-bottom: 1px solid var(--stroke-soft); }
.work-facts dl > div:first-child { padding-top: 0; }
.work-facts dt { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); margin-bottom: 6px; }
.work-facts dd { margin: 0; color: var(--text-2); font-size: 15px; }
.work-facts .stack-chips { margin-top: 2px; }
.fact-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.fact-links a { display: inline-flex; align-items: center; gap: 4px; color: var(--brand-2); }
.fact-links a:hover { color: #fff; }
.rating-inline { display: inline-flex; align-items: center; gap: 4px; color: var(--brand-2); font-weight: 600; }
.rating-inline .icon { fill: currentColor; }
.work-facts-cta { width: 100%; justify-content: center; margin-top: 22px; }

.gallery-title { margin-bottom: 24px; }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 44%); gap: 16px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.gallery.is-phone { grid-auto-columns: minmax(170px, 210px); }
.gallery a { scroll-snap-align: start; display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--stroke-soft); background: var(--surface); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery a:hover img { transform: scale(1.03); }

/* Rich text */
.prose { color: var(--text-2); font-size: 17px; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { color: #fff; margin-top: 1.8em; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); }
.prose h3 { font-size: 22px; }
.prose p { color: var(--text-2); }
.prose a { color: var(--brand-2); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: #fff; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--brand); }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--brand); color: #fff; font-size: 1.08em; }
.prose img { border-radius: 16px; border: 1px solid var(--stroke-soft); height: auto; }
.prose pre { padding: 18px 20px; border-radius: 14px; background: #0c0e14; border: 1px solid var(--stroke-soft); overflow-x: auto; font-size: 14px; }
.prose code { font-size: .9em; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); }
.prose pre code { padding: 0; background: none; }
.prose hr { border: 0; border-top: 1px solid var(--stroke-soft); margin: 2.2em 0; }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.posts .post-card.is-lead { grid-column: span 2; }
.posts.is-compact .post-card { gap: 14px; }
.post-cover { display: block; aspect-ratio: 16 / 9.5; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--stroke-soft); background: var(--surface); transition: border-color .4s; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-cover { border-color: var(--stroke); }
.post-card:hover .post-cover img { transform: scale(1.04); }
.post-cover-blank { display: grid; place-items: center; height: 100%; background: radial-gradient(circle at 50% 120%, rgba(34, 197, 94, .45), transparent 65%); }
.post-cover-blank img { width: 64px; height: 64px; opacity: .8; }
.post-card:hover .post-cover-blank img { transform: none; }
.post-card h2, .post-card h3 { display: block; margin-bottom: 8px; }
.post-card .project-meta { flex-wrap: wrap; }
.post-hero { position: relative; overflow: hidden; padding: clamp(60px, 9vw, 120px) 0 clamp(30px, 4vw, 50px); text-align: center; }
.post-hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 22px; max-width: 860px; }
.post-hero .crumbs { justify-content: center; }
.post-byline { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-size: 14.5px; }
.post-byline img { width: 28px; height: 28px; border-radius: 50%; }
.post-cover-wrap { max-width: 1040px; margin-bottom: clamp(36px, 5vw, 60px); }
.post-cover-img { width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--stroke-soft); }
.post-body { max-width: 740px; margin: 0 auto; }
.post-share { max-width: 740px; margin: 48px auto 0; padding-top: 26px; border-top: 1px solid var(--stroke-soft); display: flex; align-items: center; gap: 10px; }
.post-share span { margin-right: 6px; font-size: 14px; color: var(--muted); }

@media (max-width: 1080px) {
    .posts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .work-hero-inner, .work-detail { grid-template-columns: 1fr; }
    .work-hero-media { aspect-ratio: 4 / 3.4; }
    .work-facts { position: static; }
}
@media (max-width: 640px) {
    .posts { grid-template-columns: 1fr; }
    .posts .post-card.is-lead { grid-column: auto; }
    .gallery { grid-auto-columns: 82%; }
    .gallery.is-phone { grid-auto-columns: 58%; }
    .prose { font-size: 16px; }
}
.project .store-links { gap: 6px; }
.project .store-links .btn-sm { padding: 8px 12px; font-size: 13.5px; gap: 6px; }

/* =========================================================
   WORK CARDS v2 — uniform grid + "latest project" spotlight
   ========================================================= */
.work-list { padding-top: clamp(10px, 2vw, 24px) !important; }
.projects.wk-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.project.wk {
    position: relative; gap: 0; overflow: hidden; isolation: isolate;
    border-radius: var(--radius-lg); border: 1px solid var(--stroke-soft);
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .008));
    transition: transform .5s var(--ease), border-color .4s, box-shadow .5s;
}
.project.wk:hover, .js .project.wk.is-in:hover { transform: translateY(-5px); border-color: rgba(34, 197, 94, .3); box-shadow: 0 34px 70px -34px rgba(0, 0, 0, .9), 0 0 50px -20px rgba(34, 197, 94, .25); }
.wk .wk-media { aspect-ratio: 16 / 11; border: 0; border-radius: 0; border-bottom: 1px solid var(--stroke-soft); background: radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, .04), transparent 60%), #0b0e15; }
.wk .wk-media .app-phone { width: 36%; margin-top: 9%; align-self: start; }
.wk .wk-media .app-browser { width: 84%; margin-top: 9%; align-self: start; }
.wk .wk-media .app-tile img { width: 96px; height: 96px; border-radius: 24px; }
.project.wk:hover .project-cover > * { transform: translateY(-6px); }
.wk-new {
    position: absolute; z-index: 2 !important; top: 16px; left: 16px; padding: 4px 11px; border-radius: 999px;
    font-size: 12px; font-weight: 600; letter-spacing: .02em; color: #06240f;
    background: linear-gradient(100deg, var(--brand-3), var(--brand-2)); box-shadow: 0 6px 18px -6px rgba(156, 242, 90, .7);
}
.project.wk:hover .wk-new { transform: none; }

.wk-body { display: flex; flex-direction: column; gap: 14px; flex: 1; padding: 22px 24px 20px; }
.wk-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 12.5px; color: var(--muted); }
.wk-kicker > span + span::before { content: "•"; margin: 0 8px; color: var(--muted-2); }
.wk:not(.is-spotlight) .wk-kicker .wk-latest, .wk:not(.is-spotlight) .wk-kicker .wk-sector { display: none; }
.wk:not(.is-spotlight) .wk-kicker .wk-latest + span::before { display: none; }
.wk-head { display: flex; align-items: center; gap: 14px; }
.wk-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 0 0 1px var(--stroke-soft), 0 10px 24px -10px rgba(0, 0, 0, .8); }
.project.wk h3.wk-title { display: block; margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.wk-title a { transition: color .3s; }
.project.wk:hover .wk-title a { color: var(--brand-3); }
.wk-stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.project.wk p.wk-sub { margin-top: 3px; font-size: 13.5px; color: var(--muted); }
.project.wk p.wk-text { font-size: 15px; line-height: 1.6; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wk .stack-chips { margin-top: 0; }
.wk .stack-chips .wk-more { display: none; }
.wk-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--stroke-soft); }
.wk-plats { display: flex; flex-wrap: wrap; gap: 6px; }
.wk-plats span { padding: 3px 9px; border-radius: 7px; font-size: 12px; color: var(--text-2); background: rgba(255, 255, 255, .04); border: 1px solid var(--stroke-soft); }
.wk-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--brand-2); white-space: nowrap; }
.wk-cta .icon { transition: transform .35s var(--ease); }
.project.wk:hover .wk-cta .icon { transform: translateX(4px); }
.wk-actions { display: none; }

/* Spotlight: newest project, full width */
.project.wk.is-spotlight { grid-column: 1 / -1; display: grid; grid-template-columns: 1.12fr 1fr; }
.is-spotlight .wk-media { aspect-ratio: auto; min-height: 460px; border-bottom: 0; border-right: 1px solid var(--stroke-soft); }
.is-spotlight .wk-media .app-phone { width: 30%; margin-top: 7%; }
.is-spotlight .wk-media .app-browser { width: 84%; margin-top: 0; align-self: center; }
.is-spotlight .wk-new { top: 22px; left: 22px; }
.is-spotlight .wk-body { justify-content: center; gap: 18px; padding: clamp(28px, 4vw, 52px); }
.is-spotlight .wk-kicker .wk-latest { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-2); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.is-spotlight .wk-kicker .wk-latest::after { content: ""; display: none; }
.is-spotlight .wk-kicker .wk-latest::before { content: ""; width: 7px; height: 7px; margin: 0; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(34, 197, 94, .18), 0 0 12px var(--brand); }
.is-spotlight .wk-icon { width: 64px; height: 64px; border-radius: 16px; }
.project.wk.is-spotlight h3.wk-title { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.03em; }
.project.wk.is-spotlight p.wk-sub { font-size: 15.5px; margin-top: 6px; }
.project.wk.is-spotlight p.wk-text { -webkit-line-clamp: 5; font-size: 16.5px; line-height: 1.65; color: var(--text-2); max-width: 560px; }
.is-spotlight .stack-chips .wk-more { display: inline-block; }
.is-spotlight .stack-chips .wk-count { display: none; }
.is-spotlight .wk-foot { display: none; }
.is-spotlight .wk-actions { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 2; margin-top: 6px; }

@media (max-width: 1080px) {
    .projects.wk-grid { grid-template-columns: repeat(2, 1fr); }
    .project.wk.is-spotlight { grid-template-columns: 1fr; }
    .is-spotlight .wk-media { min-height: 0; aspect-ratio: 16 / 10; border-right: 0; border-bottom: 1px solid var(--stroke-soft); }
    .is-spotlight .wk-media .app-phone { width: 30%; }
}
@media (max-width: 640px) {
    .projects.wk-grid { grid-template-columns: 1fr; }
    .is-spotlight .wk-media { aspect-ratio: 16 / 12; }
    .is-spotlight .wk-media .app-phone { width: 42%; }
    .is-spotlight .wk-body { padding: 24px 22px; }
    .is-spotlight .wk-actions .btn { flex: 1 1 auto; }
    .wk-body { padding: 20px; }
    .is-spotlight .wk-kicker .wk-sector { display: none; }
    .is-spotlight .wk-new { top: 14px; left: 14px; }
    .is-spotlight .wk-media .app-browser { align-self: end; margin-bottom: 7%; }
}

/* Work page: tighter gap between the heading and the projects */
.page-work .page-hero { padding-bottom: clamp(24px, 3vw, 36px); }

/* =========================================================
   BLOG POST — header, article + sidebar, related
   ========================================================= */
.bp-hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--stroke-soft); }
.bp-hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: calc(880px + var(--gutter) * 2); margin-left: max(0px, calc((100% - var(--container) - var(--gutter) * 2) / 2)); }
.bp-title { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.bp-lead { max-width: 760px; color: var(--text-2); }
.bp-byline { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.bp-byline img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 1px var(--stroke); }
.bp-byline strong { display: block; font-size: 15px; }
.bp-byline span { font-size: 13.5px; color: var(--muted); }

.bp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 64px); align-items: start; padding-top: clamp(36px, 5vw, 56px); }
.bp-cover { width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--stroke-soft); margin-bottom: clamp(28px, 4vw, 44px); }
.bp-body { max-width: 740px; }
.bp-body h2, .bp-body h3 { scroll-margin-top: 100px; }
.bp-share { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 740px; margin-top: 48px; padding: 20px 0; border-top: 1px solid var(--stroke-soft); border-bottom: 1px solid var(--stroke-soft); }
.bp-share > span { font-family: var(--font-head); font-weight: 700; }
.bp-share > div { display: flex; gap: 8px; }
.bp-author { display: flex; gap: 18px; align-items: flex-start; max-width: 740px; margin-top: 28px; }
.bp-author img { flex: none; width: 64px; height: 64px; border-radius: 18px; }
.bp-author small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); }
.bp-author strong { display: block; font-family: var(--font-head); font-size: 18px; margin: 2px 0 6px; }
.bp-author .card-link { margin-top: 10px; }

.bp-side { position: sticky; top: 100px; display: grid; gap: 20px; }
.bp-widget { padding: 22px; border-radius: var(--radius); border: 1px solid var(--stroke-soft); background: var(--surface); }
.bp-widget-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.bp-toc { display: grid; gap: 2px; counter-reset: toc; }
.bp-toc li a { display: block; padding: 6px 10px; border-radius: 8px; font-size: 14px; line-height: 1.45; color: var(--text-2); border-left: 2px solid transparent; transition: all .25s; }
.bp-toc li.is-sub a { padding-left: 22px; font-size: 13.5px; color: var(--muted); }
.bp-toc li a:hover, .bp-toc li a.is-active { color: #fff; background: rgba(34, 197, 94, .08); border-left-color: var(--brand); }
.bp-recent { display: grid; gap: 14px; }
.bp-recent a { display: flex; gap: 12px; align-items: flex-start; }
.bp-thumb { flex: none; width: 72px; height: 54px; border-radius: 10px; overflow: hidden; border: 1px solid var(--stroke-soft); background: #0b0e15; display: grid; place-items: center; }
.bp-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.bp-thumb img.is-mark { width: 28px; height: 28px; opacity: .8; }
.bp-recent strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.4; transition: color .25s; }
.bp-recent small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted-2); }
.bp-recent a:hover strong { color: var(--brand-2); }
.bp-recent a:hover .bp-thumb img { transform: scale(1.06); }
.bp-cats { display: grid; gap: 4px; }
.bp-cats a { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--text-2); transition: background-color .25s, color .25s; }
.bp-cats a span:last-child { min-width: 24px; text-align: center; border-radius: 999px; font-size: 12px; padding: 1px 7px; background: rgba(255, 255, 255, .06); color: var(--muted); }
.bp-cats a:hover { background: rgba(34, 197, 94, .08); color: #fff; }
.bp-cta { border-color: var(--stroke); background-image: radial-gradient(circle at 50% 0%, rgba(34, 197, 94, .18), transparent 60%); }
.bp-cta .card-icon { margin-bottom: 14px; width: 44px; height: 44px; border-radius: 12px; }
.bp-cta h2 { font-size: 18px; margin-bottom: 6px; }
.bp-cta p { font-size: 14px; margin-bottom: 16px; }
.bp-related { margin-top: clamp(30px, 5vw, 60px); border-top: 1px solid var(--stroke-soft); }

@media (max-width: 1000px) {
    .bp-layout { grid-template-columns: 1fr; }
    .bp-side { position: static; grid-template-columns: repeat(2, 1fr); }
    .bp-side .bp-widget:first-child:is(nav) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .bp-side { grid-template-columns: 1fr; }
    .bp-author { flex-direction: column; }
}
/* Tables inside articles (scroll sideways on small screens) */
.prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: separate; border-spacing: 0; font-size: 14.5px; line-height: 1.5; border: 1px solid var(--stroke-soft); border-radius: 14px; }
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--stroke-soft); min-width: 140px; }
.prose th { font-family: var(--font-head); font-weight: 700; color: #fff; background: rgba(34, 197, 94, .08); white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .02); }
.prose td:first-child { color: #fff; font-weight: 600; }
.adm-rte .ql-editor table { border-collapse: collapse; width: 100%; }
.adm-rte .ql-editor td { border: 1px solid var(--stroke-strong); padding: 6px 10px; }
.bp-related { padding-top: clamp(48px, 6vw, 72px) !important; margin-top: clamp(40px, 5vw, 64px); }
