:root {
  --cream: #f1eee6;
  --cream-2: #e7e3d8;
  --ink: #0d0d0d;
  --ink-2: #1a1a1a;
  --muted: #6b675e;
  --lime: #d2ff1f;
  --orange: #ff5a1f;
  --blue: #3b5bff;
  --pink: #ff8ad8;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(18px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: 0.95; }
em { font-style: normal; }
::selection { background: var(--lime); color: var(--ink); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000; background: var(--ink); color: var(--cream);
  display: flex; align-items: flex-end; justify-content: space-between; padding: var(--pad);
  transition: transform 0.9s cubic-bezier(.77,0,.18,1);
}
.loader.done { transform: translateY(-100%); }
.loader-name { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4vw, 52px); }
.loader-name sup { font-size: .4em; }
.loader-count { font-family: var(--display); font-weight: 800; font-size: clamp(80px, 16vw, 220px); line-height: .8; color: var(--lime); }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 999; pointer-events: none;
  width: 14px; height: 14px; border-radius: 50%; background: var(--cream);
  mix-blend-mode: difference; transform: translate(-50%, -50%);
  transition: width .25s, height .25s;
}
.cursor.big { width: 64px; height: 64px; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  transition: background .3s, padding .3s;
}
.nav.scrolled { background: rgba(241,238,230,.82); backdrop-filter: blur(12px); padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(13,13,13,.08); }
.logo { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.04em; }
.logo sup { font-size: .5em; }
.nav-pill {
  display: flex; gap: 4px; padding: 5px; border-radius: 999px;
  background: rgba(13,13,13,.9); backdrop-filter: blur(10px);
}
.nav-pill a { color: var(--cream); font-size: .88rem; padding: 8px 16px; border-radius: 999px; transition: background .2s, color .2s; }
.nav-pill a:hover { background: var(--lime); color: var(--ink); }
.nav-cta {
  font-weight: 600; font-size: .92rem; padding: 11px 20px; border-radius: 999px;
  background: var(--lime); border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 680px; overflow: hidden; }
.hero-meta {
  position: absolute; top: 86px; left: var(--pad); right: var(--pad); z-index: 5;
  display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted);
}
.hero-meta span { display: flex; align-items: center; gap: 8px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: #1fbf5a; animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(31,191,90,.6); } 80%,100% { box-shadow: 0 0 0 9px rgba(31,191,90,0); } }

.hero-name {
  position: absolute; left: 0; right: 0; top: 118px; z-index: 1;
  display: flex; justify-content: center;
  font-size: 27vw; line-height: .8; letter-spacing: -0.06em; color: var(--ink);
  user-select: none;
}
.hero-name span { display: inline-block; transform: translateY(110%); transition: transform 1.1s cubic-bezier(.2,.9,.2,1); }
.ready .hero-name span { transform: none; }
.hero-name span:nth-child(2) { transition-delay: .06s; }
.hero-name span:nth-child(3) { transition-delay: .12s; }
.hero-name span:nth-child(4) { transition-delay: .18s; }
.hero-name span:nth-child(5) { transition-delay: .24s; }

.hero-photo {
  position: absolute; bottom: 0; left: 50%; z-index: 3; height: 84%;
  transform: translate(-50%, 12%); opacity: 0;
  transition: transform 1.2s cubic-bezier(.2,.9,.2,1) .25s, opacity 1s .25s;
}
.ready .hero-photo { transform: translate(-50%, 0); opacity: 1; }
.hero-photo img { height: 100%; width: auto; display: block; position: relative; z-index: 2; filter: drop-shadow(0 30px 40px rgba(0,0,0,.18)); }
.blob {
  position: absolute; z-index: 1; left: 50%; top: 4%; width: 74%; aspect-ratio: 1;
  transform: translateX(-50%); border-radius: 50%; background: var(--lime);
  animation: morph 9s ease-in-out infinite;
}
@keyframes morph {
  0%,100% { border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; }
  33% { border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%; }
  66% { border-radius: 42% 58% 46% 54% / 56% 44% 56% 44%; }
}

.sticker {
  position: absolute; z-index: 4;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 14px; border: 2px solid var(--ink);
  font-family: var(--display); font-weight: 700; font-size: clamp(.85rem, 1.25vw, 1.1rem);
  box-shadow: 4px 4px 0 var(--ink); white-space: nowrap;
  opacity: 0; transition: opacity .6s;
  will-change: transform;
}
.ready .sticker { opacity: 1; }
.sticker b { font-size: 1.2em; font-family: var(--mono); }
.s-ai { background: var(--lime); left: 22%; top: 44%; --r: -8deg; transition-delay: .7s; }
.s-design { background: var(--orange); color: var(--ink); right: 20%; top: 36%; --r: 7deg; transition-delay: .8s; }
.s-web { background: var(--blue); color: #fff; left: 24%; bottom: 36%; --r: 5deg; transition-delay: .9s; }
.s-mkt { background: var(--pink); right: 24%; bottom: 13%; --r: -6deg; transition-delay: 1s; }
.sticker { transform: rotate(var(--r)); }

.hero-intro {
  position: absolute; left: var(--pad); bottom: 6vh; z-index: 5; max-width: 360px;
  padding: 18px 20px; border-radius: 20px;
  background: rgba(241, 238, 230, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
}
.hi { font-size: 1rem; color: var(--muted); margin-bottom: 4px; }
.rot { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.05; letter-spacing: -.03em; min-height: 2.2em; }
.rot-word { display: inline-block; background: var(--ink); color: var(--lime); padding: 0 .2em; border-radius: 6px; transition: transform .35s, opacity .35s; }
.rot-word.out { transform: translateY(40%); opacity: 0; }
.sub { margin-top: 10px; color: #3d3a34; font-size: .95rem; }

.badge {
  position: absolute; right: var(--pad); bottom: calc(6vh + 64px); z-index: 5;
  width: 128px; height: 128px; border-radius: 50%; background: var(--ink); color: var(--cream);
  display: grid; place-items: center;
}
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 14s linear infinite; }
.badge text { fill: var(--cream); font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.5px; }
.badge > span { font-size: 2rem; color: var(--lime); transition: transform .3s; }
.badge:hover > span { transform: rotate(45deg); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Band ---------- */
.band { background: var(--ink); color: var(--lime); padding: 22px 0; transform: rotate(-2deg) scale(1.04); margin: 30px 0; overflow: hidden; }
.band-track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 22s linear infinite; }
.band span { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4.5vw, 4rem); letter-spacing: -.03em; white-space: nowrap; }
.band i { font-style: normal; font-size: 2rem; color: var(--cream); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Common ---------- */
section { padding: 120px var(--pad) 0; }
.eyebrow { font-family: var(--mono); font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.section-head h2 { font-size: clamp(2.8rem, 7.5vw, 7rem); margin-bottom: 60px; }
.section-head h2 em { color: var(--orange); }

/* ---------- Statement ---------- */
.statement { max-width: 1300px; }
.scroll-text { font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem, 4.2vw, 4rem); line-height: 1.1; letter-spacing: -.03em; }
.scroll-text span { opacity: .14; transition: opacity .2s; }
.scroll-text span.on { opacity: 1; }

/* ---------- Skills stack ---------- */
.stack { display: flex; flex-direction: column; gap: 40px; padding-bottom: 40px; }
.scard {
  position: sticky; top: 100px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  min-height: 520px; padding: clamp(28px, 4vw, 56px); border-radius: 36px;
  border: 2px solid var(--ink); box-shadow: 0 -10px 40px rgba(0,0,0,.08);
}
.scard:nth-child(2) { top: 120px; }
.scard:nth-child(3) { top: 140px; }
.scard:nth-child(4) { top: 160px; }
.c-ai { background: var(--ink); color: var(--cream); }
.c-design { background: var(--orange); }
.c-web { background: var(--blue); color: #fff; }
.c-mkt { background: var(--pink); }
.num { font-family: var(--mono); font-size: .9rem; opacity: .7; }
.scard h3 { font-size: clamp(2.4rem, 5vw, 4.6rem); margin: 12px 0 18px; }
.c-ai h3 { color: var(--lime); }
.scard p { font-size: 1.08rem; max-width: 460px; opacity: .88; }
.scard ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.scard li { padding: 7px 14px; border-radius: 999px; border: 1.5px solid currentColor; font-size: .85rem; font-weight: 500; }

.demo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.hint { font-family: var(--mono); font-size: .78rem; opacity: .7; }

/* AI demo */
.demo-ai { align-items: stretch; max-width: 440px; justify-self: center; width: 100%; }
.chat { display: flex; flex-direction: column; gap: 12px; }
.bubble { padding: 14px 18px; border-radius: 20px; font-size: .95rem; max-width: 85%; }
.bubble.in { background: #2a2a2a; align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.out { background: var(--lime); color: var(--ink); align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble small { display: block; font-family: var(--mono); font-size: .7rem; opacity: .65; margin-top: 6px; }
.wf { display: flex; align-items: center; margin-top: 18px; }
.wf-node { padding: 9px 12px; border-radius: 10px; border: 1.5px solid #444; font-family: var(--mono); font-size: .75rem; white-space: nowrap; }
.wf-node.ai { border-color: var(--lime); color: var(--lime); box-shadow: 0 0 24px -4px var(--lime); }
.wf-line { flex: 1; height: 2px; background: #333; position: relative; overflow: hidden; min-width: 18px; }
.wf-line i { position: absolute; top: -2px; left: -10px; width: 10px; height: 6px; border-radius: 3px; background: var(--lime); animation: flow 1.6s linear infinite; }
.wf-line:nth-child(4) i { animation-delay: .5s; }
.wf-line:nth-child(6) i { animation-delay: 1s; }
@keyframes flow { to { left: 100%; } }

/* Design demo */
.poster {
  --pbg: var(--ink); --pfg: var(--lime);
  position: relative; width: min(280px, 70vw); aspect-ratio: 3/4; border-radius: 18px; overflow: hidden;
  background: var(--pbg); color: var(--pfg); border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink); transform: rotate(-3deg);
  transition: background .5s, color .5s, transform .4s;
  padding: 22px; display: flex; flex-direction: column; justify-content: space-between;
}
.poster:hover { transform: rotate(0) scale(1.03); }
.p-tag { font-family: var(--mono); font-size: .75rem; letter-spacing: 2px; }
.p-big { font-family: var(--display); font-weight: 800; font-size: 3.6rem; line-height: .85; letter-spacing: -.05em; position: relative; z-index: 1; }
.p-circle { position: absolute; right: -40px; top: 40px; width: 160px; height: 160px; border-radius: 50%; border: 18px solid var(--pfg); opacity: .9; transition: border-color .5s; }
.p-foot { font-family: var(--mono); font-size: .65rem; }
.swatches { display: flex; gap: 10px; }
.swatches button { width: 34px; height: 34px; border-radius: 50%; background: var(--c); border: 2px solid var(--ink); transition: transform .2s; }
.swatches button:hover, .swatches button.active { transform: scale(1.2); }

/* Web demo */
.browser { width: 100%; max-width: 460px; border-radius: 18px; overflow: hidden; background: #0f1220; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.b-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: #1a1f35; }
.b-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4060; }
.b-bar span { margin-left: 10px; font-family: var(--mono); font-size: .72rem; color: #8a93b8; background: #0f1220; padding: 4px 12px; border-radius: 6px; flex: 1; }
.code { font-family: var(--mono); font-size: .8rem; line-height: 1.6; color: #c9d1ff; padding: 18px; min-height: 150px; white-space: pre-wrap; }
.code .t { color: #ff8ad8; } .code .a { color: var(--lime); } .code .s { color: #ffb38a; }
.code::after { content: "▌"; color: var(--lime); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.render {
  margin: 0 14px 14px; padding: 22px; border-radius: 12px; background: var(--cream); color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  opacity: 0; transform: translateY(10px); transition: .5s;
}
.render.show { opacity: 1; transform: none; }
.r-title { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.03em; }
.r-btn { background: var(--blue); color: #fff; padding: 9px 16px; border-radius: 999px; font-size: .85rem; font-weight: 600; white-space: nowrap; }

/* Marketing demo */
.demo-mkt { width: 100%; max-width: 440px; justify-self: center; background: var(--cream); border: 2px solid var(--ink); border-radius: 22px; padding: 24px; box-shadow: 8px 8px 0 var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.kpis div { background: #fff; border: 1.5px solid var(--ink); border-radius: 12px; padding: 10px 12px; }
.kpis small { display: block; font-family: var(--mono); font-size: .7rem; color: var(--muted); }
.kpis strong { font-family: var(--display); font-size: 1.7rem; }
.kpis em { font-family: var(--display); font-weight: 800; font-size: 1.1rem; color: var(--orange); }
.bars { width: 100%; height: 170px; display: flex; align-items: flex-end; gap: 8px; border-bottom: 2px solid var(--ink); }
.bars span { flex: 1; height: 0; background: var(--ink); border-radius: 6px 6px 0 0; transition: height 1s cubic-bezier(.2,.9,.2,1); }
.bars span:last-child { background: var(--orange); }
.demo-mkt.in .bars span { height: var(--h); }
.bars span:nth-child(2) { transition-delay: .08s; } .bars span:nth-child(3) { transition-delay: .16s; }
.bars span:nth-child(4) { transition-delay: .24s; } .bars span:nth-child(5) { transition-delay: .32s; }
.bars span:nth-child(6) { transition-delay: .4s; } .bars span:nth-child(7) { transition-delay: .48s; }
.bars span:nth-child(8) { transition-delay: .56s; }

/* ---------- Why ---------- */
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch; }
.col { border: 2px solid var(--ink); border-radius: 28px; padding: 36px; position: relative; overflow: hidden; }
.col h4 { font-size: 2.2rem; margin-bottom: 22px; }
.col ul { list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 1.05rem; }
.them { background: var(--cream-2); }
.them li { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.them li::before { content: "✕  "; color: var(--orange); text-decoration: none; display: inline-block; }
.me { background: var(--ink); color: var(--cream); }
.me h4 { color: var(--lime); }
.me { min-height: 380px; }
.me h4, .me ul { position: relative; z-index: 1; max-width: 50%; }
.me li::before { content: "✓  "; color: var(--lime); }
.me-photo { position: absolute; right: 0; bottom: 0; width: 48%; height: 100%; z-index: 0; overflow: hidden; border-radius: 0 26px 26px 0; }
.me-photo::before {
  content: ""; position: absolute; left: 50%; transform: translateX(-40%); bottom: -22%; width: 100%; aspect-ratio: 1;
  border-radius: 50%; background: var(--lime);
}
.me-photo img {
  position: absolute; right: -16%; bottom: 0; height: 96%; width: auto; max-width: none;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.35));
}
.vs { align-self: center; width: 70px; height: 70px; border-radius: 50%; background: var(--lime); border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.3rem; }

/* ---------- Work ---------- */
.work { position: relative; }
.work-list { list-style: none; border-top: 2px solid var(--ink); }
.work-list li { border-bottom: 2px solid var(--ink); transition: background .3s; }
.work-list li > a {
  display: grid; grid-template-columns: 60px 1fr auto 40px; align-items: center; gap: 20px;
  padding: 30px 12px; transition: padding .3s;
}
.work-list li:hover { background: var(--row, var(--lime)); }
.work-list li:hover > a { padding-left: 28px; }
.w-title small { display: block; font-family: var(--body); font-weight: 500; font-size: .95rem; letter-spacing: 0; color: var(--muted); margin-top: 6px; }
.work-list li:hover .w-title small { color: var(--ink); }
.w-thumb { display: none; }
.w-num { font-family: var(--mono); color: var(--muted); }
.w-title { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2.6rem); letter-spacing: -.03em; line-height: 1.05; }
.w-cat { font-family: var(--mono); font-size: .8rem; padding: 6px 12px; border: 1.5px solid var(--ink); border-radius: 999px; white-space: nowrap; }
.w-arrow { font-size: 1.6rem; transition: transform .3s; }
.work-list li:hover .w-arrow { transform: rotate(45deg); }
.work-preview {
  position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none;
  width: 360px; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden;
  background: var(--ink); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink);
  transform: translate(-50%, -50%) scale(0) rotate(-4deg); transition: transform .35s cubic-bezier(.2,.9,.2,1);
}
.work-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.work-preview span {
  position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px;
  background: var(--ink); color: var(--lime); font-family: var(--display); font-weight: 700; font-size: .85rem;
}
.work-preview.show { transform: translate(-50%, -50%) scale(1) rotate(-4deg); }
@media (hover: none) { .work-preview { display: none; } }

/* ---------- Tools ---------- */
.playground {
  position: relative; height: 380px; border: 2px dashed var(--ink); border-radius: 28px;
  background-image: radial-gradient(var(--cream-2) 1.5px, transparent 1.5px); background-size: 22px 22px;
  overflow: hidden; touch-action: none;
}
.tool {
  position: absolute; padding: 12px 20px; border-radius: 999px; border: 2px solid var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 1.1rem; background: #fff;
  box-shadow: 3px 3px 0 var(--ink); cursor: grab; user-select: none; white-space: nowrap;
}
.tool:active { cursor: grabbing; box-shadow: 6px 6px 0 var(--ink); }
.tool:nth-child(4n+1) { background: var(--lime); }
.tool:nth-child(4n+2) { background: var(--orange); }
.tool:nth-child(4n+3) { background: var(--blue); color: #fff; }
.tool:nth-child(4n) { background: var(--pink); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 50px; }
.stats div { border-top: 2px solid var(--ink); padding-top: 18px; }
.stats strong { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 6vw, 5.5rem); letter-spacing: -.05em; line-height: 1; }
.stats span { display: block; color: var(--muted); }

/* ---------- Contact ---------- */
.contact {
  margin-top: 140px; background: var(--ink); color: var(--cream);
  padding-top: 120px; padding-bottom: 100px; border-radius: 48px 48px 0 0;
}
.contact .eyebrow { color: #8b877d; }
.big-cta { font-size: clamp(3.4rem, 11vw, 11rem); line-height: .88; }
.big-cta em { color: var(--lime); }
.mail {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 50px;
  font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 4vw, 3.2rem);
  border-bottom: 3px solid var(--lime); padding-bottom: 6px; transition: color .25s;
}
.mail:hover { color: var(--lime); }
.mail span { transition: transform .3s; }
.mail:hover span { transform: rotate(45deg); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 50px; }
.socials a { padding: 12px 22px; border: 1.5px solid #3a3a3a; border-radius: 999px; transition: background .2s, color .2s, border-color .2s; }
.socials a:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }

.footer {
  background: var(--ink); color: #8b877d; font-size: .88rem;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 26px var(--pad) 34px; border-top: 1px solid #262626;
}
.footer a:hover { color: var(--lime); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s, transform .9s cubic-bezier(.2,.9,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) and (min-width: 761px) {
  .hero-photo { height: 74%; }
  .badge { display: none; }
  .s-web { bottom: 36%; left: 4%; }
  .s-mkt { bottom: 30%; right: 4%; }
}
@media (max-width: 980px) {
  .scard { grid-template-columns: 1fr; position: relative; top: 0 !important; min-height: 0; }
  .compare { grid-template-columns: 1fr; }
  .vs { justify-self: center; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .s-ai { left: 6%; } .s-design { right: 4%; } .s-web { left: 6%; } .s-mkt { right: 4%; }
}
@media (max-width: 760px) {
  .nav-pill { display: none; }
  .hero { min-height: 720px; }
  .hero-meta { flex-direction: column; gap: 4px; }
  .hero-meta span:last-child { display: none; }
  .hero-name { top: 118px; font-size: 31vw; }
  .hero-photo { height: 54%; bottom: 165px; }
  .blob { top: 8%; width: 80%; }
  .hero-photo img { -webkit-mask-image: linear-gradient(#000 85%, transparent); mask-image: linear-gradient(#000 85%, transparent); }
  .sticker { padding: 8px 12px; font-size: .78rem; box-shadow: 3px 3px 0 var(--ink); }
  .s-ai { top: 37%; left: 3%; } .s-design { top: 44%; right: 3%; }
  .s-web { bottom: auto; top: 57%; left: 3%; } .s-mkt { bottom: auto; top: 64%; right: 3%; }
  .hero-intro { left: var(--pad); right: var(--pad); bottom: 20px; max-width: none; padding: 14px 16px; }
  .rot { min-height: 0; }
  .badge { width: 92px; height: 92px; bottom: 150px; display: none; }
  .work-list li > a { grid-template-columns: 1fr auto; padding: 22px 6px; row-gap: 14px; }
  .work-list li:hover > a { padding-left: 6px; }
  .w-num, .w-arrow { display: none; }
  .w-thumb { display: block; grid-column: 1 / -1; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 14px; border: 2px solid var(--ink); }
  .me { min-height: 0; }
  .me h4, .me ul { max-width: 100%; }
  .me-photo { position: relative; width: auto; height: 300px; margin: -36px -36px 24px; overflow: hidden; border-radius: 26px 26px 0 0; }
  .me-photo { border-radius: 26px 26px 0 0; }
  .me-photo::before { left: 50%; transform: translateX(-50%); bottom: -45%; width: 340px; }
  .me-photo img { right: 50%; transform: translateX(50%); height: 100%; }
  .contact { border-radius: 28px 28px 0 0; }
  .scard { padding: 24px 20px; gap: 28px; border-radius: 28px; }
  .demo-mkt { padding: 16px; box-shadow: 5px 5px 0 var(--ink); }
  .kpis { gap: 6px; }
  .kpis div { padding: 8px; min-width: 0; }
  .kpis strong { font-size: 1.25rem; }
  .kpis em { font-size: .9rem; }
  .bars { height: 130px; gap: 5px; }
  .browser, .poster { box-shadow: 5px 5px 0 var(--ink); }
  .p-big { font-size: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- AI chat ---------- */
.ai-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 300;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 999px; background: var(--ink); color: var(--cream);
  border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--lime);
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  transition: transform .2s, box-shadow .2s;
}
.ai-fab:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--lime); }
.ai-fab b { color: var(--lime); font-size: 1.1rem; animation: spin 6s linear infinite; display: inline-block; }
.ai-fab-dot { width: 9px; height: 9px; border-radius: 50%; background: #1fbf5a; animation: ping 2s infinite; }
.ai-fab.open { opacity: 0; pointer-events: none; transform: scale(.8); }

.ai-panel {
  position: fixed; right: 22px; bottom: 22px; z-index: 301;
  width: min(390px, calc(100vw - 24px)); height: min(600px, calc(100svh - 40px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--cream); border: 2px solid var(--ink); border-radius: 24px; box-shadow: 8px 8px 0 var(--ink);
  transform-origin: bottom right; animation: aiIn .35s cubic-bezier(.2,.9,.2,1);
}
.ai-panel[hidden] { display: none; }
@keyframes aiIn { from { opacity: 0; transform: scale(.85) translateY(20px); } }
.ai-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--ink); color: var(--cream); }
.ai-head img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--lime); border: 2px solid var(--lime); }
.ai-head div { flex: 1; line-height: 1.25; }
.ai-head strong { font-family: var(--display); font-size: 1.05rem; display: block; }
.ai-head small { color: #a9a59b; font-size: .78rem; display: flex; align-items: center; gap: 6px; }
.ai-head small i { width: 7px; height: 7px; border-radius: 50%; background: #1fbf5a; }
.ai-close { color: var(--cream); font-size: 1.1rem; width: 34px; height: 34px; border-radius: 50%; }
.ai-close:hover { background: #2a2a2a; }

.ai-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.ai-msg { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: .93rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.ai-msg.bot { background: #fff; border: 1.5px solid var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.ai-msg.user { background: var(--ink); color: var(--cream); align-self: flex-end; border-bottom-right-radius: 4px; }
.ai-msg.err { background: #ffe3d6; border: 1.5px solid var(--orange); align-self: flex-start; }
.ai-msg a { color: var(--blue); text-decoration: underline; }
.ai-msg.typing { display: flex; gap: 5px; padding: 14px 16px; }
.ai-msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: bob 1s infinite; }
.ai-msg.typing span:nth-child(2) { animation-delay: .15s; } .ai-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bob { 0%,60%,100% { transform: none; opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ai-chips button { padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--lime); font-size: .8rem; font-weight: 600; }
.ai-chips button:hover { background: var(--ink); color: var(--lime); }

.ai-form { display: flex; gap: 8px; padding: 12px; border-top: 1.5px solid var(--ink); background: #fff; }
.ai-form textarea {
  flex: 1; resize: none; border: 1.5px solid var(--ink); border-radius: 14px; padding: 10px 12px;
  font: inherit; font-size: .93rem; max-height: 110px; background: var(--cream); outline: none;
}
.ai-form textarea:focus { border-color: var(--blue); }
.ai-form button { width: 44px; border-radius: 14px; background: var(--ink); color: var(--lime); font-size: 1.2rem; font-weight: 700; }
.ai-form button:disabled { opacity: .4; }

@media (max-width: 520px) {
  .ai-fab { right: 14px; bottom: 14px; padding: 12px 16px; font-size: .92rem; }
  .ai-panel { inset: 0; width: 100%; height: auto; border-radius: 0; border: 0; box-shadow: none; }
}
