/* =========================================================
   KABNETIC — Portfolio 2.0
   Purple / violet / cyan system, built around the K logo.
   No Bootstrap dependency. Bootstrap Icons loaded via CDN.
   ========================================================= */

:root {
  --bg: #07060f;
  --bg-2: #0c0a1b;
  --bg-3: #110d26;
  --card: #0f0b22;
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(168, 85, 247, .38);
  --text: #f3f1fc;
  --muted: #a5a2c2;
  --faint: #6f6c8f;

  --violet: #8b5cf6;
  --purple: #a855f7;
  --magenta: #d946ef;
  --indigo: #6366f1;
  --cyan: #22d3ee;
  --accent: #22d3ee;

  --gradient: linear-gradient(115deg, #c026d3 0%, #8b5cf6 38%, #4f7cff 72%, #22d3ee 100%);
  --gradient-soft: linear-gradient(135deg, rgba(168, 85, 247, .22), rgba(34, 211, 238, .10));
  --shadow-glow: 0 0 0 1px rgba(168, 85, 247, .22), 0 30px 80px -20px rgba(139, 92, 246, .45);

  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --radius: 22px;
  --radius-sm: 14px;
  --container: 1200px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -.02em; }
::selection { background: rgba(168, 85, 247, .55); color: #fff; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Page chrome ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1100; background: transparent; }
.progress span { display: block; height: 100%; width: 0; background: var(--gradient); box-shadow: 0 0 14px rgba(168, 85, 247, .8); }

.cursor-glow {
  position: fixed; top: 0; left: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; z-index: 0; opacity: 0;
  background: radial-gradient(circle, rgba(139, 92, 246, .16), transparent 62%);
  transition: opacity .4s; will-change: transform;
}
body.has-pointer .cursor-glow { opacity: 1; }
main, footer { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: .85rem; --pad-x: 1.5rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: var(--pad-y) var(--pad-x); border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem/1 var(--font-body); cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s, border-color .35s, color .35s;
}
.btn i { transition: transform .35s var(--ease); }
.btn:hover i.bi-arrow-up-right, .btn:hover i.bi-arrow-right { transform: translate(3px, -3px); }
.btn:hover i.bi-arrow-right { transform: translateX(4px); }
.btn--primary { color: #fff; background: var(--gradient); background-size: 140% 100%; box-shadow: 0 12px 34px -10px rgba(168, 85, 247, .8); }
.btn--primary:hover { transform: translateY(-3px); background-position: 100% 0; box-shadow: 0 18px 44px -10px rgba(139, 92, 246, .95); }
.btn--ghost { color: var(--text); background: rgba(255, 255, 255, .04); border-color: var(--border); backdrop-filter: blur(8px); }
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--border-strong); background: rgba(168, 85, 247, .12); }
.btn--lg { --pad-y: 1.05rem; --pad-x: 1.9rem; font-size: 1rem; }

/* ---------- Navigation ---------- */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 1000; padding-inline: 1rem; transition: top .4s var(--ease); }
.nav__inner {
  width: min(100%, 1080px); margin-inline: auto; display: flex; align-items: center; gap: 1rem;
  padding: .55rem .6rem .55rem 1.1rem; border-radius: 999px;
  background: rgba(10, 8, 24, .55); border: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background .4s, border-color .4s, box-shadow .4s;
}
.nav.scrolled .nav__inner { background: rgba(8, 6, 20, .86); border-color: rgba(168, 85, 247, .28); box-shadow: 0 18px 50px -20px rgba(0, 0, 0, .9); }
.nav__brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; }
.nav__brand .mark { height: 34px; width: auto; }
.nav__brand .word { height: 17px; width: auto; }
.nav__links { display: flex; align-items: center; gap: .15rem; }
.nav__links a { position: relative; padding: .55rem 1rem; border-radius: 999px; color: var(--muted); font-size: .92rem; font-weight: 500; transition: color .3s, background .3s; }
.nav__links a:hover { color: #fff; }
.nav__links a.active { color: #fff; background: rgba(168, 85, 247, .18); }
.nav__cta { --pad-y: .7rem; --pad-x: 1.3rem; }
.nav__toggle { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: rgba(255, 255, 255, .05); color: #fff; font-size: 1.3rem; cursor: pointer; align-items: center; justify-content: center; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 8.5rem 0 5rem; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -3; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; transform: scale(1.06); filter: saturate(1.15); }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 6, 15, .75) 0%, rgba(7, 6, 15, .35) 38%, rgba(7, 6, 15, .88) 82%, var(--bg) 100%); }
.hero__grid { position: absolute; inset: 0; z-index: -2; opacity: .5;
  background-image: linear-gradient(rgba(168, 85, 247, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(168, 85, 247, .09) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%); }
.hero__glow { position: absolute; z-index: -2; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.hero__glow.g1 { width: 520px; height: 520px; left: -140px; top: 8%; background: rgba(168, 85, 247, .38); animation: drift 14s ease-in-out infinite alternate; }
.hero__glow.g2 { width: 460px; height: 460px; right: -120px; bottom: 6%; background: rgba(34, 211, 238, .22); animation: drift 17s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(60px, -40px) scale(1.12); } }

.hero__content { text-align: center; position: relative; display: flex; flex-direction: column; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: .65rem; padding: .5rem 1.1rem; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(139, 92, 246, .1); backdrop-filter: blur(8px); font: 500 .76rem/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: #ddd3ff; }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); flex: none; }
.pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--cyan); animation: ping 2s ease-out infinite; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.hero__title-wrap { position: relative; display: block; width: fit-content; margin: 1.6rem auto 1.6rem; }
.hero__title { font-size: clamp(3.4rem, 12.5vw, 10.5rem); font-weight: 700; letter-spacing: -.045em; line-height: .92; }
.hero__title .line { display: block; overflow: hidden; padding: .04em .06em .1em; margin-bottom: -.06em; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); animation: rise 1.1s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.hero__title .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: translateY(0); } }
.hero__title .line.outline > span { color: transparent; -webkit-text-stroke: 2px rgba(220, 205, 255, .75); }

.sticker { position: absolute; display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 14px; background: rgba(15, 11, 34, .78); border: 1px solid var(--border-strong); backdrop-filter: blur(10px); font: 600 .82rem/1 var(--font-mono); color: #fff; box-shadow: 0 16px 40px -14px rgba(139, 92, 246, .8); animation: float 6s ease-in-out infinite; opacity: 0; animation-fill-mode: both; }
.sticker i { color: var(--cyan); font-size: 1rem; }
.sticker.s1 { left: -17%; top: 8%; --r: -9deg; }
.sticker.s2 { right: -15%; top: 34%; --r: 7deg; animation-delay: -2s; }
.sticker.s3 { left: -13%; bottom: 6%; --r: 5deg; animation-delay: -4s; }
@keyframes float { 0% { opacity: 1; transform: translateY(0) rotate(var(--r)); } 50% { opacity: 1; transform: translateY(-14px) rotate(calc(var(--r) * -.4)); } 100% { opacity: 1; transform: translateY(0) rotate(var(--r)); } }

.hero__lead { max-width: 760px; margin: 0 auto 2.2rem; color: #cfcbe8; font-size: clamp(1rem, 1.5vw, 1.18rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; width: min(100%, 760px); margin: 3.4rem auto 0; }
.stat { padding: 1.3rem 1rem; border-radius: var(--radius); background: rgba(255, 255, 255, .035); border: 1px solid var(--border); backdrop-filter: blur(10px); transition: transform .4s var(--ease), border-color .4s; }
.stat:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.stat .num { font: 700 clamp(2rem, 4vw, 2.9rem)/1 var(--font-display); background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { margin-top: .5rem; color: var(--muted); font-size: .82rem; }

.scroll-cue { position: absolute; left: 50%; bottom: 1.6rem; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 20px; }
.scroll-cue::after { content: ""; position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--cyan); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee { position: relative; padding: 1.6rem 0; border-block: 1px solid var(--border); background: linear-gradient(90deg, rgba(168, 85, 247, .08), rgba(34, 211, 238, .05)); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: scroll-x 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__group span { display: inline-flex; align-items: center; gap: 1.6rem; padding-right: 1.6rem; font: 600 clamp(1.5rem, 3.2vw, 2.5rem)/1 var(--font-display); letter-spacing: -.02em; color: rgba(255, 255, 255, .88); white-space: nowrap; }
.marquee__group span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.2px rgba(200, 180, 255, .6); }
.marquee__group span::after { content: "✦"; font-size: .9rem; color: var(--purple); -webkit-text-stroke: 0; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section.block { position: relative; padding: clamp(4rem, 7.5vw, 6.5rem) 0; }
.sec-head { max-width: 780px; margin-bottom: 3.4rem; }
.sec-head.row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.eyebrow { display: inline-flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; font: 500 .8rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--purple); }
.eyebrow::before { content: ""; width: 34px; height: 1.5px; background: var(--gradient); }
.sec-title { font-size: clamp(2.3rem, 5.4vw, 4.4rem); font-weight: 700; margin-bottom: 1.2rem; }
.sec-sub { color: var(--muted); font-size: 1.05rem; max-width: 680px; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.service { --mx: 50%; --my: 50%; position: relative; padding: 2rem 1.8rem 2.1rem; border-radius: var(--radius); background: linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)); border: 1px solid var(--border); overflow: hidden; transition: transform .5s var(--ease), border-color .4s; }
.service::before { content: ""; position: absolute; inset: 0; background: radial-gradient(380px circle at var(--mx) var(--my), rgba(139, 92, 246, .28), transparent 45%); opacity: 0; transition: opacity .4s; }
.service:hover { transform: translateY(-8px); border-color: var(--border-strong); }
.service:hover::before { opacity: 1; }
.service > * { position: relative; }
.service__no { position: absolute; top: 1.4rem; right: 1.6rem; font: 500 .8rem/1 var(--font-mono); color: var(--faint); }
.service__icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 1.6rem; border-radius: 18px; font-size: 1.5rem; color: #fff; background: var(--gradient); box-shadow: 0 14px 30px -10px rgba(139, 92, 246, .8); transition: transform .5s var(--ease); }
.service:hover .service__icon { transform: rotate(-8deg) scale(1.1); }
.service h3 { font-size: 1.45rem; margin-bottom: .75rem; }
.service p { color: var(--muted); font-size: .96rem; }

/* ---------- Work ---------- */
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 1.5rem; padding-bottom: 2vh; }
.project { position: relative; }
.project__inner { display: grid; grid-template-columns: 1fr; gap: 1.6rem; height: 100%; padding: 1.6rem; border-radius: 28px; background: linear-gradient(160deg, #130e2b, #0b081a 70%); border: 1px solid rgba(168, 85, 247, .22); box-shadow: 0 30px 70px -30px rgba(139, 92, 246, .35); transition: border-color .4s; }
.project:hover .project__inner { border-color: rgba(168, 85, 247, .55); }
.project__media { order: -1; }
.project__top { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.3rem; }
.project__no { font: 700 3.4rem/1 var(--font-display); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.2px rgba(190, 160, 255, .7); }
.tag { padding: .38rem .85rem; border-radius: 999px; background: rgba(139, 92, 246, .16); border: 1px solid rgba(168, 85, 247, .35); color: #d9ccff; font: 500 .72rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.project h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 1rem; }
.project p { color: var(--muted); font-size: .98rem; }
.project p strong { color: #fff; font-weight: 600; }
.pills { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.3rem 0 1.7rem; }
.pills li { padding: .32rem .75rem; border-radius: 999px; border: 1px solid var(--border); background: rgba(255, 255, 255, .04); color: #cdc8e6; font-size: .76rem; font-weight: 500; }
.project__link { display: inline-flex; align-items: center; gap: .6rem; padding-bottom: .3rem; border-bottom: 1.5px solid var(--purple); font-weight: 600; transition: gap .35s var(--ease), color .3s; }
.project__link:hover { gap: 1rem; color: var(--cyan); border-color: var(--cyan); }

.frame { container-type: size; aspect-ratio: 16 / 10.6; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #0a0818; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .9); transition: transform .6s var(--ease); }
.project:hover .frame { transform: translateY(-6px) rotate(-.6deg); }
.frame__bar { display: flex; align-items: center; gap: .4rem; padding: .6rem .9rem; background: #151030; border-bottom: 1px solid rgba(255, 255, 255, .08); flex: none; }
.frame__bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3260; }
.frame__bar i:nth-child(1) { background: #ff5f7a; } .frame__bar i:nth-child(2) { background: #ffc857; } .frame__bar i:nth-child(3) { background: #3ddc97; }
.frame__bar span { margin-left: .7rem; flex: 1; padding: .22rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--faint); font: 400 .68rem/1.3 var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame__view { position: relative; flex: 1; overflow: hidden; container-type: size; }
.frame__view img { width: 100%; height: auto; min-height: 100%; object-fit: cover; object-position: top; transition: transform 6s linear; }
.project:hover .frame__view img { transform: translateY(min(0px, calc(100cqh - 100%))); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.about__media { position: relative; }
.about__img { position: relative; border-radius: 32px; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--border-strong); box-shadow: var(--shadow-glow); }
.about__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.about__media:hover .about__img img { transform: scale(1.05); }
.about__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7, 6, 15, .55)); }
.about__media::before { content: ""; position: absolute; inset: -18px; z-index: -1; border-radius: 40px; background: var(--gradient); opacity: .28; filter: blur(46px); }
.badge { position: absolute; display: flex; align-items: center; gap: .6rem; padding: .7rem 1.1rem; border-radius: 16px; background: rgba(12, 9, 28, .85); border: 1px solid var(--border-strong); backdrop-filter: blur(12px); font: 600 .84rem/1.2 var(--font-body); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8); animation: float 7s ease-in-out infinite; opacity: 0; animation-fill-mode: both; }
.badge i { color: var(--cyan); font-size: 1.2rem; }
.badge small { display: block; color: var(--muted); font-weight: 400; font-size: .72rem; }
.badge.b1 { top: 10%; left: -7%; --r: -4deg; }
.badge.b2 { bottom: 9%; right: -6%; --r: 3deg; animation-delay: -3s; }
.about__text .sec-title { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin: 2rem 0 2.2rem; }
.highlights > div { display: flex; align-items: center; gap: .85rem; padding: 1.1rem 1rem; border-radius: var(--radius-sm); background: linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)); border: 1px solid var(--border); transition: transform .4s var(--ease), border-color .4s, background .4s; }
.highlights > div:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.highlights > div > div { min-width: 0; }
.highlight__icon { width: 42px; height: 42px; display: grid; place-items: center; flex: none; border-radius: 13px; border: 1px solid var(--border-strong); background: var(--gradient-soft); color: var(--cyan); font-size: 1.15rem; }
.highlights strong { display: block; margin-bottom: .3rem; font: 700 1.4rem/1 var(--font-display); background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.highlights span { color: #d6d2ee; font-size: .88rem; font-weight: 500; line-height: 1.35; display: block; }

/* ---------- Tools ---------- */
#tools .sec-head { margin-inline: auto; text-align: center; }
.tools { display: flex; flex-wrap: wrap; justify-content: center; gap: .85rem; }
.tool { display: inline-flex; align-items: center; gap: .7rem; padding: .85rem 1.35rem; border-radius: 16px; border: 1px solid var(--border); background: rgba(255, 255, 255, .03); font-weight: 500; transition: transform .4s var(--ease), border-color .4s, background .4s, box-shadow .4s; }
.tool i { font-size: 1.35rem; color: var(--purple); transition: color .3s; }
.tool:hover { transform: translateY(-6px) rotate(-1.5deg); border-color: var(--border-strong); background: rgba(139, 92, 246, .14); box-shadow: 0 16px 36px -14px rgba(139, 92, 246, .7); }
.tool:hover i { color: var(--cyan); }

/* ---------- Contact ---------- */
.cta { position: relative; text-align: center; padding: clamp(3rem, 7vw, 5.5rem) 1.5rem; margin-bottom: 3rem; border-radius: 36px; border: 1px solid var(--border-strong); background: radial-gradient(ellipse 80% 120% at 50% 0%, rgba(139, 92, 246, .32), transparent 60%), linear-gradient(180deg, #120c2b, #0a0718); overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 36rem; height: 36rem; left: 50%; top: -22rem; margin-left: -18rem; border-radius: 50%; border: 1px solid rgba(168, 85, 247, .3); box-shadow: 0 0 0 4rem rgba(139, 92, 246, .05), 0 0 0 8rem rgba(34, 211, 238, .03); }
.cta > * { position: relative; }
.cta .eyebrow { justify-content: center; }
.cta h2 { font-size: clamp(2.4rem, 6.4vw, 5.2rem); font-weight: 700; margin: .4rem auto 1.1rem; max-width: 900px; }
.cta p { color: #cbc7e6; max-width: 520px; margin: 0 auto 2rem; font-size: 1.08rem; }

.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; align-items: stretch; }
.contact__details { display: flex; flex-direction: column; gap: 1rem; }
.info { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.4rem; border-radius: var(--radius); background: rgba(255, 255, 255, .035); border: 1px solid var(--border); flex: 1; transition: transform .4s var(--ease), border-color .4s; }
.info:hover { transform: translateX(6px); border-color: var(--border-strong); }
.info .ico { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--gradient-soft); border: 1px solid var(--border-strong); color: #e5d9ff; font-size: 1.2rem; }
.info .lbl { font: 500 .72rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--purple); margin-bottom: .5rem; }
.info .val { color: #d8d4ee; font-size: .96rem; }

.form { position: relative; padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: 28px; background: linear-gradient(160deg, #140e2e, #0b081a); border: 1px solid var(--border-strong); box-shadow: var(--shadow-glow); overflow: hidden; }
.form::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--gradient); }
.form__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.6rem; font: 700 1.5rem/1 var(--font-display); }
.form__head i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gradient); font-size: 1rem; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .5rem; }
.field.full { grid-column: 1 / -1; }
.field label { font: 500 .72rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.input { width: 100%; padding: .95rem 1.1rem; border-radius: 14px; border: 1px solid var(--border); background: rgba(255, 255, 255, .04); color: #fff; font: 400 1rem/1.4 var(--font-body); outline: none; transition: border-color .3s, box-shadow .3s, background .3s; }
.input::placeholder { color: #6b6890; }
.input:focus { border-color: var(--purple); background: rgba(139, 92, 246, .08); box-shadow: 0 0 0 4px rgba(168, 85, 247, .18); }
textarea.input { resize: vertical; min-height: 140px; }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: .4rem; }
.form__foot small { color: var(--faint); }
.form__sign { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; padding-top: 1.3rem; border-top: 1px dashed var(--border); color: var(--muted); font-size: .9rem; }
.form__sign img { height: 34px; width: auto; opacity: .95; }

/* ---------- Footer ---------- */
footer { position: relative; padding: clamp(3.5rem, 7vw, 5rem) 0 0; border-top: 1px solid var(--border); background: linear-gradient(180deg, transparent, rgba(139, 92, 246, .06)); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(150px, .75fr) minmax(0, 1.1fr); align-items: start; gap: 0; padding-bottom: 3.5rem; }
.footer__brand { padding-right: clamp(1.5rem, 4vw, 4rem); }
.footer__brand img { width: 180px; margin: 0 0 .85rem; }
.footer__brand p { color: var(--muted); max-width: 300px; margin-bottom: 1.5rem; line-height: 1.7; }
.socials { display: flex; gap: .7rem; }
.socials a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); background: rgba(255, 255, 255, .04); font-size: 1.15rem; transition: transform .4s var(--ease), background .3s, border-color .3s; }
.socials a:hover { transform: translateY(-5px) rotate(-6deg); background: var(--gradient); border-color: transparent; }
.footer__grid > div:not(.footer__brand) { min-height: 100%; padding: .25rem clamp(1.5rem, 3vw, 3rem) 0; border-left: 1px solid var(--border); }
.footer__label { margin-bottom: 1.3rem; padding-bottom: .9rem; border-bottom: 1px solid var(--border); font: 500 .75rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--purple); }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; color: var(--muted); }
.footer__col a, .footer__col span { display: inline-flex; align-items: center; gap: .6rem; max-width: 100%; transition: color .3s, transform .3s; }
.footer__col a:hover { color: #fff; transform: translateX(5px); }
.footer__col i { color: var(--purple); }
.footer__giant { font: 700 clamp(4rem, 19vw, 17rem)/.8 var(--font-display); letter-spacing: -.06em; text-align: center; text-transform: lowercase; color: transparent; -webkit-text-stroke: 1.5px rgba(168, 85, 247, .35); background: linear-gradient(180deg, rgba(168, 85, 247, .35), transparent 80%); -webkit-background-clip: text; background-clip: text; user-select: none; margin: 0 0 -.12em; pointer-events: none; }
.footer__bottom { position: relative; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.5rem 0; border-top: 1px solid var(--border); color: var(--faint); font-size: .86rem; background: var(--bg); }

/* ---------- Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Thank-you page ---------- */
.ty { min-height: 100svh; display: grid; place-items: center; padding: 2rem 1.2rem; position: relative; overflow: hidden; isolation: isolate; }
.ty__bg { position: absolute; inset: 0; z-index: -2; }
.ty__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.ty__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, rgba(7, 6, 15, .35), var(--bg) 78%); }
.ty__card { position: relative; width: min(100%, 680px); padding: clamp(2.4rem, 6vw, 4rem) clamp(1.4rem, 5vw, 3.2rem); text-align: center; border-radius: 34px; border: 1px solid var(--border-strong); background: linear-gradient(160deg, rgba(24, 16, 54, .88), rgba(9, 7, 22, .92)); backdrop-filter: blur(16px); box-shadow: var(--shadow-glow); overflow: hidden; animation: card-in 1s var(--ease) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(40px) scale(.96); } }
.ty__card::before { content: ""; position: absolute; width: 24rem; height: 24rem; top: -14rem; right: -7rem; border-radius: 50%; border: 1px solid rgba(139, 92, 246, .3); box-shadow: 0 0 0 4rem rgba(139, 92, 246, .06), 0 0 0 8rem rgba(34, 211, 238, .04); }
.ty__card > * { position: relative; }
.ty__logo { width: 150px; margin: 0 auto 1.8rem; }
.ty__check { width: 96px; height: 96px; margin: 0 auto 1.6rem; filter: drop-shadow(0 0 22px rgba(139, 92, 246, .7)); }
.ty__check circle { fill: rgba(139, 92, 246, .14); stroke: url(#tg); stroke-width: 3; stroke-dasharray: 289; stroke-dashoffset: 289; animation: draw 1s .2s var(--ease) forwards; }
.ty__check path { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw .6s .9s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ty h1 { font-size: clamp(2.3rem, 7vw, 4.2rem); font-weight: 700; margin-bottom: 1rem; }
.ty__copy { max-width: 470px; margin: 0 auto 2rem; color: #cbc7e6; font-size: 1.06rem; }
.ty__bar { width: min(100%, 280px); height: 4px; margin: 1.6rem auto .9rem; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ty__bar span { display: block; height: 100%; width: 100%; background: var(--gradient); transform-origin: left; animation: shrink 3s linear forwards; }
@keyframes shrink { to { transform: scaleX(0); } }
.ty__note { color: var(--muted); font-size: .86rem; }
.ty__note b { color: var(--cyan); font-weight: 600; }
.confetti { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.confetti i { position: absolute; top: -14px; width: 8px; height: 14px; border-radius: 2px; opacity: 0; animation: fall linear forwards; }
@keyframes fall { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(110vh) rotate(720deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services { grid-template-columns: 1fr; }
  .projects { gap: 2rem; }
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 420px; margin-inline: auto; }
  .about__text > .btn { display: flex; width: fit-content; margin-inline: auto; }
  .tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); max-width: 850px; margin-inline: auto; gap: .65rem; }
  .tool { justify-content: center; gap: .55rem; padding: .7rem .8rem; font-size: .9rem; }
  .tool i { font-size: 1.15rem; }
  .badge.b1 { left: -2%; } .badge.b2 { right: -2%; }
  .contact { grid-template-columns: 1fr; }
  .contact__details { flex-direction: row; flex-wrap: wrap; }
  .info { flex: 1 1 260px; }
  .form__sign { gap: .75rem; font-size: .84rem; }
  .form__sign img { max-width: 42%; height: auto; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__brand { padding: 0 0 2rem; }
  .footer__grid > div:not(.footer__brand) { padding: 1.5rem 1.5rem 0 0; border-top: 1px solid var(--border); border-left: 0; }
  .footer__grid > div:last-child { padding-right: 0; padding-left: 1.5rem; border-left: 1px solid var(--border); }
}
@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__cta { display: none; }
  .nav__links { position: absolute; top: calc(100% + 10px); left: 1rem; right: 1rem; flex-direction: column; align-items: stretch; padding: .8rem; border-radius: 24px; background: rgba(9, 7, 22, .96); border: 1px solid var(--border-strong); backdrop-filter: blur(18px); opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
  .nav__links a { padding: .9rem 1.1rem; font-size: 1rem; }
  .nav__links .only-mobile { display: inline-flex; justify-content: center; margin-top: .4rem; color: #fff; background: var(--gradient); }
  .nav.open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .hero__title-wrap { width: min(100%, 800px); }
  .sticker.s1 { left: 1%; top: 2%; }
  .sticker.s2 { right: 1%; top: 38%; }
  .sticker.s3 { right: -2%; bottom: -5%; left: auto; }
  .badge.b1 { left: 2%; }
  .badge.b2 { right: 2%; }
}
@media (min-width: 861px) { .only-mobile { display: none !important; } }
@media (max-width: 640px) {
  .hero__bg img { position: absolute; top: 50%; left: 0; width: 100%; height: auto; object-fit: contain; transform: translateY(-50%); filter: saturate(1); }
  .services { grid-template-columns: 1fr; gap: .7rem; }
  .service { padding: 1.35rem 1.1rem 1.45rem; border-radius: 18px; }
  .service__no { top: 1rem; right: 1rem; font-size: .68rem; }
  .service__icon { width: 46px; height: 46px; margin-bottom: 1rem; border-radius: 14px; font-size: 1.2rem; }
  .service h3 { font-size: 1.15rem; margin-bottom: .55rem; }
  .service p { font-size: .86rem; }
  .projects { grid-template-columns: 1fr; }
  .stats { gap: .6rem; } .stat { padding: 1rem .5rem; } .stat .lbl { font-size: .72rem; }
  .highlights { grid-template-columns: 1fr; gap: .65rem; }
  .highlights > div { padding: .8rem .9rem; }
  .highlight__icon { width: 38px; height: 38px; }
  .form__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 300px; }
  .hero__title-wrap { margin-bottom: 3.2rem; }
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .tool { padding: .65rem .5rem; font-size: .84rem; }
  .tool i { font-size: 1.05rem; }
  .form__sign { align-items: flex-start; }
  .form__sign img { max-width: 40%; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand { padding-bottom: 1.75rem; }
  .footer__grid > div:not(.footer__brand), .footer__grid > div:last-child { padding: 1.5rem 0 0; border-top: 1px solid var(--border); border-left: 0; }
  .footer__label { max-width: 360px; }
  .sticker { gap: .35rem; padding: .45rem .65rem; border-radius: 11px; font-size: .68rem; }
  .sticker i { font-size: .85rem; }
  .sticker.s1 { left: -3%; top: -2%; gap: .25rem; padding: .35rem .45rem; font-size: .56rem; }
  .sticker.s2 { right: auto; bottom: -25%; left: calc(50% - 106px); top: auto; width: 88px; justify-content: center; }
  .sticker.s3 { right: auto; bottom: -25%; left: calc(50% + 4px); width: 122px; justify-content: center; }
  .badge { gap: .45rem; padding: .5rem .65rem; border-radius: 12px; font-size: .74rem; }
  .badge small { font-size: .64rem; }
  .badge.b1 { top: 8%; left: 0; }
  .badge.b2 { right: 0; bottom: 7%; }
  .project__inner { padding: 1.2rem; border-radius: 22px; }
  .project__no { font-size: 2.6rem; }
  .pill { font-size: .66rem; }
  .hero { padding-top: 7.5rem; }
}
@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 .reveal { opacity: 1; transform: none; }
  .hero__title .line > span { transform: none; }
  .sticker, .badge { opacity: 1; }
}
