/* ===== DESIGN TOKENS (edit to match the Nexahs logo) ===== */
:root {
  --bg: #070a1a;
  --surface: #0e1330;
  --surface2: #151b40;
  --text: #eef0ff;
  --muted: #8e95bf;
  --line: rgba(160, 170, 255, 0.16);
  --primary: #7c5cff;
  --secondary: #3de0ff;
  --accent: #ff6b8a;
  --grad: linear-gradient(120deg, #7c5cff, #3de0ff);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
:root[data-theme="light"] {
  --bg: #f5f6ff;
  --surface: #fff;
  --surface2: #e9ebff;
  --text: #0b1030;
  --muted: #555c86;
  --line: rgba(20, 30, 90, 0.15);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f6ff;
    --surface: #fff;
    --surface2: #e9ebff;
    --text: #0b1030;
    --muted: #555c86;
    --line: rgba(20, 30, 90, 0.15);
  }
}
* {
  box-sizing: border-box;
  margin: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  background: var(--bg);
  color: var(--text);
  font:
    400 17px/1.6 "DM Sans",
    system-ui,
    sans-serif;
  padding-top: var(--safe-t);
  overflow-x: hidden;
}
body:after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  z-index: 90;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
h1,
h2,
h3 {
  font-family: Outfit, sans-serif;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}
.wrap {
  max-width: 1400px;
  margin: auto;
  padding: 0 clamp(20px, 4vw, 56px);
}
section {
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
}
.h2 {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  margin-bottom: 22px;
}
.muted {
  color: var(--muted);
}
/* reveal */
.rv {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}
.rv.in {
  opacity: 1;
  transform: none;
}
/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 99px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition:
    transform 0.3s var(--ease),
    background 0.3s,
    box-shadow 0.3s;
}
.btn.p {
  background: var(--grad);
  color: #050818;
  border: 0;
  box-shadow: 0 10px 40px -10px var(--primary);
}
.btn:hover {
  box-shadow: 0 12px 50px -10px var(--secondary);
}
/* preloader */
#pre {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: clip-path 0.9s var(--ease);
  clip-path: inset(0 0 0 0);
  animation: preFailsafe 0s linear 3.6s forwards;
}
#pre.out {
  clip-path: inset(0 0 100% 0);
}
@keyframes preFailsafe {
  to {
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    pointer-events: none;
  }
}
#pre b {
  font: 600 clamp(2.5rem, 10vw, 6rem)/1 Outfit, system-ui, sans-serif;
  letter-spacing: 0.06em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
#pre i {
  display: block;
  height: 3px;
  margin-top: 20px;
  background: var(--grad);
  width: 0;
  transition: width 1s var(--ease);
}
/* nav */
header {
  position: fixed;
  top: var(--safe-t);
  left: 0;
  right: 0;
  z-index: 60;
  height: 88px;
  display: flex;
  align-items: center;
  transition:
    height 0.4s,
    background 0.4s,
    backdrop-filter 0.4s;
}
header.s {
  height: 64px;
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.logo {
  font: 600 1.5rem Outfit, system-ui, sans-serif;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo span {
  width: 26px;
  height: 26px;
  background: var(--grad);
  border-radius: 8px;
  transform: rotate(45deg);
} /* replace with logo image */
nav ul {
  display: flex;
  gap: 34px;
  list-style: none;
  padding: 0;
}
nav a {
  font-weight: 500;
  opacity: 0.8;
  transition: opacity 0.2s;
}
nav a:hover {
  opacity: 1;
}
.burger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
}
#menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--bg);
  padding: 110px 24px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: circle(0 at calc(100% - 48px) 48px);
  transition: clip-path 0.7s var(--ease);
  visibility: hidden;
}
#menu.open {
  clip-path: circle(150% at calc(100% - 48px) 48px);
  visibility: visible;
}
#menu a.big {
  display: block;
  font: 600 2.6rem/1.15 Outfit, system-ui, sans-serif;
  opacity: 0;
  transform: translateY(30px);
  transition: 0.6s var(--ease);
}
#menu.open a.big {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i) * 70ms + 250ms);
}
#menu .x {
  position: absolute;
  top: calc(20px + var(--safe-t));
  right: 24px;
}
/* hero */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}
#cv {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: min(760px, 90vw);
  height: min(760px, 90vw);
  z-index: 0;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: fl 12s ease-in-out infinite alternate;
}
@keyframes fl {
  to {
    transform: translate(60px, -40px) scale(1.2);
  }
}
.hero .wrap {
  position: relative;
  z-index: 2;
  margin-left: 10px;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.6rem);
  max-width: 12ch;
}
.hero h1 .l {
  display: block;
  overflow: hidden;
}
.hero h1 .l > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease);
}
.go .hero h1 .l > span {
  transform: none;
}
.hero h1 .l:nth-child(2) > span {
  transition-delay: 0.12s;
}
.hero h1 .l:nth-child(3) > span {
  transition-delay: 0.24s;
}
.hero p.lead {
  max-width: 520px;
  margin: 28px 0 36px;
  color: var(--muted);
  font-size: 1.15rem;
}
.hero .fade {
  opacity: 0;
  transform: translateY(24px);
  transition: 1s var(--ease) 0.6s;
}
.go .hero .fade {
  opacity: 1;
  transform: none;
}
.scroll {
  position: absolute;
  bottom: 28px;
  left: 24px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
}
.scroll:after {
  content: "";
  width: 60px;
  height: 1px;
  background: var(--muted);
  transform-origin: left;
  animation: ln 2s infinite;
}
@keyframes ln {
  0% {
    transform: scaleX(0);
  }
  60% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}
/* marquee */
.mq {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
  white-space: nowrap;
}
.mq div {
  display: inline-flex;
  gap: 60px;
  animation: mq 40s linear infinite;
  font: 600 1.15rem Outfit, system-ui, sans-serif;
  color: var(--muted);
}
.mq div span:nth-child(even) {
  color: var(--primary);
}
@keyframes mq {
  to {
    transform: translateX(-50%);
  }
}
/* about */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 80px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.stats b {
  display: block;
  font: 600 clamp(1.8rem, 3.4vw, 2.8rem) Outfit, system-ui, sans-serif;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* services */
.svc {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
}
.row {
  display: grid;
  grid-template-columns: 50px 1fr 30px;
  gap: 16px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  position: relative;
  transition: padding 0.4s var(--ease);
}
.row h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  transition: transform 0.4s var(--ease);
}
.row p {
  grid-column: 2;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  color: var(--muted);
  transition: 0.5s var(--ease);
}
.row .ar {
  transition: transform 0.4s var(--ease);
}
.row.on {
  padding-left: 18px;
}
.row.on h3 {
  transform: translateX(8px);
  color: var(--secondary);
}
.row.on p {
  max-height: 120px;
  opacity: 1;
}
.row.on .ar {
  transform: translate(6px, -6px);
}
.row .n {
  color: var(--muted);
  font-size: 0.9rem;
}
.prev {
  position: sticky;
  top: 110px;
  height: min(520px, 70vh);
  border-radius: 28px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
  perspective: 900px;
}
.prev .pv {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition:
    opacity 0.6s,
    transform 0.8s var(--ease),
    filter 0.6s;
  opacity: 0;
  transform: scale(1.15);
  filter: blur(12px);
}
.prev .pv.on {
  opacity: 1;
  transform: none;
  filter: none;
}
.mock {
  width: 66%;
  aspect-ratio: 4/3;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  padding: 18px;
  display: grid;
  gap: 10px;
  align-content: start;
  transform: rotateY(-18deg) rotateX(8deg);
  box-shadow: -30px 40px 60px -20px rgba(0, 0, 0, 0.5);
}
.mock i {
  display: block;
  height: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.35);
}
.mock i:nth-child(1) {
  width: 35%;
  height: 20px;
}
.mock i:nth-child(3) {
  width: 70%;
}
.mock i:nth-child(4) {
  height: 60px;
  background: rgba(255, 255, 255, 0.18);
}
.pv em {
  position: absolute;
  bottom: 22px;
  left: 26px;
  font: 600 1.4rem Outfit, system-ui, sans-serif;
  font-style: normal;
  color: #fff;
}
/* work */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 50px;
}
.filters button {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 10px 20px;
  border-radius: 99px;
  cursor: pointer;
  font: inherit;
  transition: 0.3s;
}
.filters button.on {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.proj {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 100px;
  transition: opacity 0.5s;
}
.proj:nth-child(even) {
  grid-template-columns: 1fr 1.3fr;
}
.proj:nth-child(even) .pimg {
  order: 2;
}
.proj.hide {
  display: none;
}
.pimg {
  aspect-ratio: 16/11;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.2s;
  border: 1px solid var(--line);
}
.pimg .art {
  position: absolute;
  inset: -6%;
  transition: transform 1s var(--ease);
}
.pimg:hover .art {
  transform: scale(1.1);
}
.pimg .art b {
  position: absolute;
  font: 600 clamp(1.8rem, 4.4vw, 3.4rem) Outfit, system-ui, sans-serif;
  color: rgba(255, 255, 255, 0.9);
  left: 8%;
  bottom: 4%;
  mix-blend-mode: overlay;
}
.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 26px;
}
.tags span {
  font-size: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 4px 12px;
  color: var(--muted);
}
.proj h3 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  margin: 8px 0;
}
.cat {
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.9rem;
}
/* why: horizontal scroll */
.why {
  padding: 0;
}
.hs {
  height: 300vh;
  position: relative;
}
.hs .stick {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.track {
  display: flex;
  gap: 30px;
  padding: 0 8vw;
  will-change: transform;
}
.track h2 {
  flex: 0 0 min(80vw, 520px);
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  align-self: center;
}
.card {
  flex: 0 0 min(80vw, 420px);
  min-height: 340px;
  padding: 34px;
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    transform 0.5s var(--ease),
    border-color 0.3s;
}
.card:hover {
  transform: translateY(-12px) rotate(-1deg);
  border-color: var(--primary);
}
.card h3 {
  font-size: 1.4rem;
}
.card .k {
  font: 600 2.6rem Outfit, system-ui, sans-serif;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* process */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 70px;
}
.steps:before,
.steps .fill {
  content: "";
  position: absolute;
  top: 14px;
  left: 0;
  height: 2px;
  background: var(--line);
  width: 100%;
}
.steps .fill {
  background: var(--grad);
  width: 0;
  transition: width 0.3s;
}
.st {
  position: relative;
  padding-top: 44px;
  cursor: pointer;
  opacity: 0.5;
  transition: 0.4s;
}
.st:before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--muted);
  transition: 0.4s;
}
.st.on {
  opacity: 1;
}
.st.on:before {
  border-color: var(--secondary);
  background: var(--secondary);
  box-shadow: 0 0 24px var(--secondary);
}
.st h3 {
  font-size: 1.1rem;
}
.st p {
  font-size: 0.9rem;
  color: var(--muted);
  max-height: 0;
  overflow: hidden;
  transition: 0.5s;
}
.st.on p {
  max-height: 200px;
}
/* tech */
.tech {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  max-width: 900px;
  margin: 50px auto 0;
}
.tech span {
  padding: 14px 26px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 700;
  animation: bob 5s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -0.6s);
}
@keyframes bob {
  to {
    transform: translateY(-14px);
  }
}
/* testimonials */
.tq {
  position: relative;
  min-height: 300px;
}
.tq figure {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(40px);
  transition: 0.7s var(--ease);
  pointer-events: none;
}
.tq figure.on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.tq blockquote {
  font: 600 clamp(1.3rem, 2.2vw, 1.8rem)/1.3 Outfit, system-ui, sans-serif;
  max-width: 26ch;
}
/* pricing */
.tog {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 5px;
  margin-bottom: 40px;
}
.tog button {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 10px 22px;
  border-radius: 99px;
  cursor: pointer;
  font: inherit;
}
.tog button.on {
  background: var(--grad);
  color: #050818;
  font-weight: 700;
}
.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.plan {
  padding: 32px 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.plan.hot {
  border-color: var(--primary);
  background: linear-gradient(180deg, var(--surface2), var(--surface));
}
.plan .pr {
  font: 600 1.9rem Outfit, system-ui, sans-serif;
}
.plan ul {
  padding-left: 18px;
  color: var(--muted);
  flex: 1;
  font-size: 0.95rem;
}
/* faq */
.q {
  border-bottom: 1px solid var(--line);
}
.q button {
  width: 100%;
  background: none;
  border: 0;
  color: var(--text);
  text-align: left;
  font: 700 1.25rem "DM Sans";
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}
.q button:after {
  content: "+";
  transition: transform 0.4s;
}
.q.on button:after {
  transform: rotate(135deg);
}
.q div {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
  color: var(--muted);
}
.q.on div {
  grid-template-rows: 1fr;
}
.q div p {
  overflow: hidden;
}
.q.on div p {
  padding-bottom: 24px;
}
/* contact */
.ct {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}
.fld {
  position: relative;
  margin-bottom: 22px;
}
.fld input,
.fld select,
.fld textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  padding: 22px 0 10px;
  font: inherit;
  outline: 0;
}
.fld select option {
  background: var(--surface);
}
.fld label {
  position: absolute;
  left: 0;
  top: 22px;
  color: var(--muted);
  pointer-events: none;
  transition: 0.3s var(--ease);
  transform-origin: left;
}
.fld:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.fld:focus-within:after {
  transform: scaleX(1);
}
.fld:focus-within label,
.fld.f label {
  transform: translateY(-20px) scale(0.78);
  color: var(--secondary);
}
.err {
  color: var(--accent);
  font-size: 0.85rem;
  display: none;
}
.fld.bad .err {
  display: block;
}
.fld.bad input,
.fld.bad textarea {
  border-color: var(--accent);
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
#ok {
  display: none;
  padding: 26px;
  border-radius: 20px;
  border: 1px solid var(--secondary);
  margin-top: 20px;
}
/* cta+footer */
.cta {
  text-align: center;
  overflow: hidden;
  perspective: 1000px;
}
.cta h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  transform-style: preserve-3d;
}
footer {
  border-top: 1px solid var(--line);
  padding: 70px 0 40px;
}
.fg {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.fg ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
}
.fg h4 {
  margin-bottom: 14px;
}
.bot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 60px;
  color: var(--muted);
  font-size: 0.9rem;
}
/* modal */
#md {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--bg);
  overflow: auto;
  clip-path: circle(0 at 50% 50%);
  visibility: hidden;
  transition: clip-path 0.8s var(--ease);
}
#md.open {
  clip-path: circle(150% at 50% 50%);
  visibility: visible;
}
#md .wrap {
  padding-top: 120px;
  padding-bottom: 80px;
}
#md h2 {
  font-size: clamp(2.4rem, 7vw, 6rem);
}
#md h3 {
  margin: 40px 0 10px;
  font-size: 1.5rem;
}
/* cursor */
#cur {
  position: fixed;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  margin: -7px;
  border-radius: 50%;
  background: var(--secondary);
  pointer-events: none;
  z-index: 300;
  mix-blend-mode: normal;
  display: none;
  transition:
    width 0.3s var(--ease),
    height 0.3s var(--ease),
    margin 0.3s var(--ease),
    background 0.3s;
  font: 700 0.7rem/1 "DM Sans";
  color: #050818;
  text-align: center;
  align-items: center;
  justify-content: center;
}
#cur.big {
  width: 84px;
  height: 84px;
  margin: -42px;
  background: var(--secondary);
}
#cur.lnk {
  width: 44px;
  height: 44px;
  margin: -22px;
  background: transparent;
  border: 1px solid var(--secondary);
}
@media (hover: hover) and (pointer: fine) {
  body.cur * {
    cursor: none !important;
  }
  #cur {
    display: flex;
  }
}
/* progress */
#pg {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--grad);
  z-index: 100;
}
/* 404 */
.nf {
  font: 600 clamp(6rem, 24vw, 18rem) Outfit, system-ui, sans-serif;
  line-height: 0.9;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* responsive */
@media (max-width: 960px) {
  nav ul,
  header .btn {
    display: none;
  }
  .burger {
    display: block;
  }
  .about,
  .svc,
  .ct,
  .proj,
  .proj:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .proj:nth-child(even) .pimg {
    order: 0;
  }
  .prev {
    display: none;
  }
  .row p {
    max-height: 120px;
    opacity: 1;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .plans {
    grid-template-columns: 1fr 1fr;
  }
  .fg {
    grid-template-columns: 1fr 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .steps:before,
  .steps .fill {
    display: none;
  }
  .st {
    padding: 0 0 0 40px;
    opacity: 1;
  }
  .st:before {
    top: 4px;
  }
  .st p {
    max-height: 200px;
  }
  .hs {
    height: auto;
  }
  .hs .stick {
    position: static;
    height: auto;
    overflow: visible;
  }
  .track {
    flex-direction: column;
    padding: 0 24px;
  }
  .track h2,
  .card {
    flex: none;
    width: 100%;
  }
  #cv {
    opacity: 0.55;
    right: -30%;
  }
  .two {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .plans {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .rv {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}

.off {
  display: none !important;
}
.phero {
  padding: 190px 0 0;
}
.phero + section {
  padding-top: 60px;
}
#contact {
  padding-top: 170px;
}
#tx {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--grad);
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 0.5s var(--ease);
  pointer-events: none;
}
#tx.on {
  clip-path: circle(150% at 50% 50%);
}
nav a.act {
  opacity: 1;
  color: var(--secondary);
}
.homeonly {
  display: none;
}
body[data-page="home"] .homeonly {
  display: inline-flex;
}
body[data-page="home"] #fl {
  display: none;
}
body[data-page="home"] .proj:nth-child(n + 4) {
  display: none;
}
.tm {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 50px;
  perspective: 900px;
}
.tmc {
  padding: 28px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition:
    transform 0.5s var(--ease),
    border-color 0.3s;
}
.tmc:hover {
  transform: rotateY(-8deg) rotateX(4deg) translateY(-8px);
  border-color: var(--primary);
}
.av {
  width: 160px;
  height: 160px;
  border-radius: 10%;

  background: var(--grad);
  display: grid;
  place-items: center;
  font: 600 2.8rem Outfit, system-ui, sans-serif;
  color: #050818;
  margin-bottom: 22px;
  overflow: hidden;
}
.pimg .art img,
.av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pv img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 960px) {
  .tm {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .tm {
    grid-template-columns: 1fr;
  }
}

/* =====================================================================
   V2 — smaller type, mobile-first responsive fixes, extra animations
   (appended last so it overrides earlier rules; delete this block to revert)
   ===================================================================== */

/* ---------- smaller, lighter typography ---------- */
body { font-size: 15px; line-height: 1.6; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
html, body { overflow-x: clip; }
img, canvas, video, svg { max-width: 100%; }
h1, h2, h3 { letter-spacing: -0.015em; line-height: 1.08; }
.h2 { font-size: clamp(1.45rem, 3.2vw, 2.3rem); margin-bottom: 16px; }
.logo { font-size: 1.15rem; }
.logo span { width: 20px; height: 20px; border-radius: 6px; animation: logoSpin 8s linear infinite; }
@keyframes logoSpin { to { transform: rotate(405deg); } }
.btn { padding: 12px 22px; font-size: .9rem; font-weight: 600; position: relative; overflow: hidden; }
.btn.p::after, .btn.p::before { content: none; }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 3.5rem); max-width: 13ch; }
.hero p.lead { font-size: 1rem; margin: 20px 0 28px; }
.phero { padding-top: 150px; }
.phero p { font-size: 1rem !important; }
#contact { padding-top: 130px; }
#contact .lead { font-size: 1.15rem !important; }
.stats b { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.row h3 { font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.proj h3 { font-size: clamp(1.2rem, 1.9vw, 1.6rem); }
.card h3 { font-size: 1.15rem; }
.card .k { font-size: 2rem; }
.track h2 { font-size: clamp(1.6rem, 3.6vw, 2.8rem); }
.tq blockquote { font-size: clamp(1.1rem, 1.8vw, 1.45rem); }
.cta h2 { font-size: clamp(1.6rem, 4vw, 3rem); }
.q button { font-size: 1.02rem; padding: 18px 0; gap: 16px; }
.plan .pr { font-size: 1.6rem; }
.mq div { font-size: 1rem; }
nav a { font-size: .92rem; }
.tags span { font-size: .75rem; }
.pc-card h3 { font-size: 1.15rem; }
.pc-price { font-size: 1.9rem; }
.pc-card ul, .pc-desc { font-size: .88rem; }
.pc-tab { font-size: .85rem; padding: 10px 18px; }
.pc-head h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
.av { width: 130px; height: 130px; font-size: 2.2rem; }
.nf { font-size: clamp(5rem, 20vw, 14rem); }
footer { padding-bottom: calc(40px + var(--safe-b)); }
.fg h4 { font-size: .95rem; }
.fg ul, .bot { font-size: .88rem; }

/* ---------- mobile menu: bigger tap targets, smaller type ---------- */
#menu a.big { font-size: 1.9rem; padding: 4px 0; }
#menu { overflow-y: auto; padding-bottom: calc(40px + var(--safe-b)); }

/* ---------- testimonials: stack slides in a grid so long quotes never overflow ---------- */
.tq { display: grid; min-height: 0; }
.tq figure { position: relative; inset: auto; grid-area: 1 / 1; }

/* ---------- extra animations (all respect prefers-reduced-motion) ---------- */
/* reveal variants + stagger */
.rv { transition-delay: calc(var(--d, 0) * 90ms); }
.rv.l { transform: translateX(-40px); }
.rv.r { transform: translateX(40px); }
.rv.z { transform: scale(.92); }
.rv.l.in, .rv.r.in, .rv.z.in { transform: none; }

/* keep each element's own transitions while adding the reveal fade/slide */
.proj.rv, .tmc.rv, .bcard.rv, .card.rv, .row.rv, .q.rv, .tech span.rv, .stats > div.rv, .fg > div.rv, .filters.rv, .bot.rv {
  transition: opacity .8s var(--ease), transform .8s var(--ease), border-color .3s, padding .4s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms), calc(var(--d, 0) * 90ms), 0s, 0s;
}
.tech span.rv { animation-delay: calc(var(--i) * -0.6s); }

/* split-word heading reveal */
.h2.rv.sw { opacity: 1; transform: none; }
.sw .w { display: inline-block; overflow: hidden; vertical-align: top; }
.sw .w > i { display: inline-block; font-style: normal; transform: translateY(110%); opacity: 0;
  transition: transform .8s var(--ease), opacity .8s var(--ease); transition-delay: calc(var(--w) * 55ms); }
.sw.in .w > i { transform: none; opacity: 1; }

/* animated gradient on the hero + stat numbers */
.stats b, .card .k { background-size: 200% 100%; animation: gshift 6s ease-in-out infinite alternate; }
@keyframes gshift { to { background-position: 100% 0; } }
.hero h1 .l:nth-child(2) > span { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gshift 5s ease-in-out infinite alternate; }

/* button shine + press feedback (works with touch) */
.btn.p { background-size: 200% 100%; animation: gshift 5s ease-in-out infinite alternate; }
.btn:active, .pc-tab:active, .filters button:active, .tog button:active { transform: scale(.95); }
.btn .rp { position: absolute; border-radius: 50%; background: rgba(255,255,255,.45); transform: scale(0); pointer-events: none; animation: rp .6s ease-out forwards; }
@keyframes rp { to { transform: scale(1); opacity: 0; } }

/* image reveal (clip wipe) for project + team images */
.pimg.rv, .av.rv { clip-path: inset(0 0 100% 0); opacity: 1; transform: none; transition: clip-path 1.1s var(--ease), transform .2s; }
.pimg.rv.in, .av.rv.in { clip-path: inset(0 0 0 0); }

/* cards: lift + glowing border sweep when they scroll in */
.card, .tmc, .plan, .pc-card { position: relative; }
.card.rv.in, .tmc.rv.in { animation: pop .8s var(--ease) backwards; animation-delay: calc(var(--d, 0) * 90ms); }
@keyframes pop { 0% { transform: translateY(30px) scale(.96); } 60% { transform: translateY(-4px) scale(1.01); } 100% { transform: none; } }
.tmc:active, .card:active { transform: scale(.98); border-color: var(--primary); }

/* floating glow orbs drift with the scroll position (set by JS) */
.glow { will-change: transform; }

/* process + faq touches */
.st.rv.in:before { animation: dotPing 1.6s ease-out 1; animation-delay: calc(var(--d, 0) * 90ms); }
@keyframes dotPing { 0% { box-shadow: 0 0 0 0 rgba(61,224,255,.6); } 100% { box-shadow: 0 0 0 16px rgba(61,224,255,0); } }
.q.rv.in button:after { animation: spinIn .7s var(--ease) backwards; }
@keyframes spinIn { from { transform: rotate(-180deg) scale(.4); } }

/* tech chips: pop in one-by-one */
.tech span { transition: transform .3s var(--ease), border-color .3s, background .3s; }
.tech span:active { border-color: var(--secondary); }

/* header: slide down on load, tiny underline for active link */
header { animation: hdIn .9s var(--ease) .2s both; }
@keyframes hdIn { from { transform: translateY(-100%); opacity: 0; } }
nav a { position: relative; }
nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
nav a:hover::after, nav a.act::after { transform: scaleX(1); }

/* scroll hint bounce on hero */
.scroll:before { content: ""; width: 14px; height: 22px; border: 1.5px solid var(--muted); border-radius: 8px; background: linear-gradient(var(--secondary), var(--secondary)) 50% 5px / 2px 5px no-repeat; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 50% { background-position: 50% 11px; } }

/* back-to-top floating button */
#up { position: fixed; right: 16px; bottom: calc(16px + var(--safe-b)); width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(10px); color: var(--text); font-size: 1.1rem; cursor: pointer; z-index: 55;
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: .4s var(--ease); display: grid; place-items: center; }
#up.show { opacity: 1; transform: none; pointer-events: auto; animation: upFloat 3s ease-in-out infinite; }
@keyframes upFloat { 50% { translate: 0 -4px; } }

/* ---------- tablet ---------- */
@media (max-width: 960px) {
  header { height: 64px; }
  header.s { height: 56px; }
  .burger { width: 42px; height: 42px; font-size: 1.05rem; }
  section { padding: clamp(56px, 12vw, 90px) 0; }
  .hero { padding: 96px 0 70px; min-height: 100svh; }
  .hero .wrap { margin-left: auto; }
  .phero { padding-top: 110px; }
  #contact { padding-top: 100px; }
  .about, .svc, .ct { gap: 28px; }
  .proj { gap: 22px; margin-bottom: 56px; }
  .stats { margin-top: 44px; padding-top: 28px; gap: 22px 14px; }
  .row { padding: 18px 0; grid-template-columns: 34px 1fr 24px; gap: 10px; }
  .row.on { padding-left: 0; }
  .row.on h3 { transform: none; }
  .card { min-height: 0; padding: 24px; gap: 26px; }
  .track { gap: 16px; }
  .track h2 { margin-bottom: 4px; }
  .steps { margin-top: 36px; }
  .st h3 { font-size: 1.02rem; }
  .st p { font-size: .88rem; }
  .tq blockquote { max-width: none; }
  .pc-custom { padding: 24px 20px; }
  .tmc { padding: 20px; }
  .av { width: 100%; height: auto; aspect-ratio: 1; margin-bottom: 14px; }
  .pimg { border-radius: 18px; }
  .scroll { display: none; }
  #cv { opacity: .4; right: -35%; }
  .cta h2 { transform: none !important; }   /* disable 3D tilt on touch screens */
}

/* ---------- phones ---------- */
@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 18px; }
  .hero h1 { font-size: clamp(1.75rem, 8.4vw, 2.3rem); max-width: 11ch; }
  .hero .fade { gap: 10px !important; }
  .hero .fade .btn { flex: 1 1 100%; justify-content: center; }
  .h2 { font-size: 1.4rem; }
  .btn { padding: 12px 20px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .tm { gap: 12px; grid-template-columns: 1fr 1fr; }
  .tmc h3 { font-size: 1rem; }
  .tmc p { font-size: .82rem; }
  .fg { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .fg > div:first-child { grid-column: 1 / -1; }
  .bot { margin-top: 36px; flex-direction: column; }
  .filters { gap: 8px; margin-bottom: 30px; }
  .filters button { padding: 8px 14px; font-size: .82rem; }
  .tog button { padding: 8px 16px; }
  .pc-tabs { margin-inline: -18px; padding-inline: 18px; }
  .pc-grid { gap: 16px; }
  .pc-card { padding: 26px 20px 22px; border-radius: 20px; }
  .pc-custom { flex-direction: column; align-items: stretch; text-align: left; }
  .pc-custom .btn { justify-content: center; }
  .tech { gap: 8px; margin-top: 28px; }
  .tech span { padding: 8px 14px; font-size: .82rem; }
  .mq { padding: 14px 0; }
  .mq div { gap: 36px; font-size: .9rem; }
  .two { gap: 0; }
  .fld input, .fld select, .fld textarea { font-size: 16px; }  /* stops iOS zoom on focus */
  #menu a.big { font-size: 1.65rem; }
  #up { right: 12px; }
  .q button { font-size: .96rem; }
  .project-nav, section > .wrap[style*="space-between"] { flex-wrap: wrap; gap: 14px; }
}
@media (max-width: 360px) {
  .tm, .stats { grid-template-columns: 1fr; }
  .fg { grid-template-columns: 1fr; }
}

/* touch devices: no sticky hover states */
@media (hover: none) {
  .card:hover, .tmc:hover { transform: none; border-color: var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  .sw .w > i, .pimg.rv, .av.rv { transform: none !important; opacity: 1 !important; clip-path: none !important; }
  header { animation: none; }
}

/* ---------- "How a project moves": vertical timeline (all screen sizes) ---------- */
@media all {
  .steps { display: grid; grid-template-columns: 1fr; gap: 34px; margin-top: 34px; }
  .steps:before, .steps .fill { display: block; content: ""; position: absolute; left: 8px; top: 0; bottom: auto; width: 2px; }
  .steps:before { height: 100%; background: var(--line); }
  .steps .fill { height: 0; width: 2px; background: linear-gradient(var(--primary), var(--secondary)); transition: height .15s linear; box-shadow: 0 0 14px var(--secondary); border-radius: 2px; }
  .st { padding: 0 0 0 44px; opacity: .4; transform: translateX(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .st.on { opacity: 1; transform: none; }
  .st:before { top: 2px; left: 0; background: var(--bg); border-color: var(--muted); }
  .st.on:before { border-color: var(--secondary); background: var(--secondary); box-shadow: 0 0 20px var(--secondary); animation: dotPing 1.2s ease-out 1; }
  .st h3 { font-size: 1.05rem; margin-bottom: 4px; }
  .st.on h3 { color: var(--secondary); }
  .st p { max-height: 200px; }
}

@media (min-width: 961px) {
  .steps { max-width: 760px; gap: 44px; margin-top: 50px; }
  .st { padding-left: 64px; }
  .st:before { width: 22px; height: 22px; top: 0; }
  .steps:before, .steps .fill { left: 10px; }
  .st h3 { font-size: 1.3rem; margin-bottom: 6px; }
  .st p { font-size: .98rem; }
  .st:hover { opacity: 1; }
}

/* ---------- testimonials: centered floating-avatar cards ---------- */
#voices { position: relative; overflow: hidden; }
#voices::before { content: ""; position: absolute; left: 50%; top: 45%; width: min(700px, 90vw); height: 420px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 22%, transparent), transparent); filter: blur(30px); pointer-events: none; animation: tGlow 7s ease-in-out infinite alternate; }
@keyframes tGlow { to { transform: translate(-50%, -50%) scale(1.15); opacity: .7; } }
#voices .wrap { position: relative; }
.tkick { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--secondary); background: color-mix(in srgb, var(--surface) 80%, transparent); margin-bottom: 14px; }

.tq { display: flex; flex-wrap: wrap; justify-content: center; gap: 56px 22px; margin: 64px auto 0; min-height: 0; position: relative; max-width: 1100px; }
.tq .tcard { position: relative; inset: auto; grid-area: auto; opacity: 1; transform: none; pointer-events: auto; overflow: visible; margin: 0;
  flex: 1 1 300px; max-width: 380px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  padding: 44px 26px 28px; border: 1px solid var(--line); border-radius: 28px;
  background: linear-gradient(180deg, var(--surface2, var(--surface)), var(--surface));
  transition: opacity .8s var(--ease), transform .8s var(--ease), border-color .3s, box-shadow .3s;
  transition-delay: calc(var(--d, 0) * 90ms), calc(var(--d, 0) * 90ms), 0s, 0s; }
.tq .tcard.rv:not(.in) { opacity: 0; transform: translateY(34px) scale(.96); }
.tq .tcard::before { content: "\201C"; position: absolute; left: 50%; top: 52px; transform: translateX(-50%); font: 600 8rem/1 Outfit, Georgia, serif; color: var(--primary); opacity: .07; pointer-events: none; }
.tq .tcard::after { content: none; }

/* floating avatar that sits on the top edge of the card */
.tav { position: absolute; top: -30px; left: 50%; translate: -50% 0; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #050818; font: 600 1.4rem Outfit, system-ui, sans-serif; border: 4px solid var(--bg);
  box-shadow: 0 10px 24px -8px var(--primary); animation: tFloat 4s ease-in-out infinite alternate; }
.tcard:nth-child(2n) .tav { animation-delay: -2s; }
@keyframes tFloat { to { translate: -50% -5px; } }

.tstars { color: #ffb938; letter-spacing: 4px; font-size: .95rem; text-shadow: 0 0 14px rgba(255,185,56,.45); position: relative; }
.tq .tcard blockquote { font-family: inherit; font-weight: 500; font-size: 1rem; line-height: 1.7; max-width: none; color: var(--text); position: relative; }
.tq .tcard figcaption { margin: auto 0 0 !important; padding: 16px 0 0; border: 0; position: relative; display: block; }
.tq .tcard figcaption::before { content: ""; display: block; width: 36px; height: 3px; border-radius: 3px; background: var(--grad); margin: 0 auto 14px; transition: width .4s var(--ease); }
.tq figcaption b { display: block; font: 600 1rem Outfit, system-ui, sans-serif; color: var(--text); }
.tq figcaption small { display: block; color: var(--muted); font-size: .82rem; margin-top: 3px; }
@media (hover: hover) {
  .tq .tcard:hover { transform: translateY(-8px); border-color: var(--primary); box-shadow: 0 26px 50px -26px var(--primary); }
  .tq .tcard:hover figcaption::before { width: 64px; }
}

.tnav { display: none; justify-content: center; gap: 12px; margin-top: 18px; }
.tnav .btn { width: 44px; height: 44px; padding: 0; border-radius: 50%; justify-content: center; }

/* phones: centered swipe carousel */
@media (max-width: 640px) {
  .tq { display: flex; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 50px -18px 0; padding: 38px 9vw 16px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; max-width: none; }
  .tq::-webkit-scrollbar { display: none; }
  .tq .tcard { flex: 0 0 82vw; max-width: none; scroll-snap-align: center; padding: 42px 20px 24px; }
  .tnav { display: flex; }
}

/* =====================================================================
   BLOG
   ===================================================================== */
.filters .fb { border: 1px solid var(--line); color: var(--muted); padding: 9px 18px; border-radius: 99px; font-size: .88rem; text-decoration: none; transition: .3s; }
.filters .fb:hover { border-color: var(--primary); color: var(--text); }
.filters .fb.on { background: var(--text); color: var(--bg); border-color: var(--text); }

.bwrap { max-width: 780px; margin-inline: auto; }
.phero .tkick { margin-bottom: 18px; }

/* cover art (gradient placeholder or image) */
.bart { position: absolute; inset: 0; display: block; overflow: hidden; }
.bart img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--ease); }
.bart b { position: absolute; left: 7%; bottom: 8%; font: 600 clamp(1.4rem, 3vw, 2.2rem) Outfit, system-ui, sans-serif; color: rgba(255,255,255,.92); mix-blend-mode: overlay; }
.bimg { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 20px 20px 0 0; }
.bcard:hover .bart img, .bfeat:hover .bart img { transform: scale(1.06); }

.bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bcard { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; display: flex; flex-direction: column; transition: transform .4s var(--ease), border-color .3s, box-shadow .3s; }
.bcard .bbody { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.bmeta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; font-size: .78rem; color: var(--muted); margin-bottom: 10px; }
.bmeta .cat { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.bcard h3 { font-size: 1.15rem; line-height: 1.25; margin-bottom: 8px; }
.bcard h3 a, .bfeat h2 a { color: inherit; text-decoration: none; }
.bcard .bbody p { font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bmore { margin-top: auto; padding-top: 16px; color: var(--secondary); font-weight: 600; font-size: .9rem; text-decoration: none; }
.bmore span { display: inline-block; transition: transform .3s var(--ease); }
.bcard:hover .bmore span { transform: translateX(6px); }
@media (hover: hover) { .bcard:hover { transform: translateY(-6px); border-color: var(--primary); box-shadow: 0 24px 46px -26px var(--primary); } }

/* featured (latest) post */
.bfeat { display: grid; grid-template-columns: 1.15fr 1fr; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; background: var(--surface); margin-bottom: 28px; }
.bfeat .bimg { border-radius: 0; aspect-ratio: auto; min-height: 320px; }
.bfeat .bbody { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.bfeat h2 { font-size: clamp(1.4rem, 2.6vw, 2.1rem); margin: 4px 0 12px; }
.bfeat .bmeta { justify-content: flex-start; gap: 14px; }
.bfeat p { margin-bottom: 22px; }

.bpages { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 44px; }
.bempty { text-align: center; padding: 60px 20px; border: 1px dashed var(--line); border-radius: 24px; }
.bempty h3 { margin-bottom: 8px; }
.bempty .btn { margin-top: 18px; }

/* single post */
.bback { display: inline-block; color: var(--muted); font-size: .9rem; text-decoration: none; margin-bottom: 18px; transition: color .3s; }
.bback:hover { color: var(--secondary); }
.bby { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.bby b { display: block; font: 600 .95rem Outfit, system-ui, sans-serif; }
.bby small { display: block; color: var(--muted); font-size: .82rem; }
.bav { position: static; translate: none; animation: none; width: 44px; height: 44px; font-size: 1.05rem; border: 0; box-shadow: none; }
.bcover { position: relative; aspect-ratio: 16 / 8; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); margin: 34px auto 40px; max-width: 1000px; }
.bpost-wide { max-width: 1000px; }
.btoc { border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; background: var(--surface); margin: 0 0 32px; }
.btoc b { font: 600 .95rem Outfit, system-ui, sans-serif; }
.btoc ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: .92rem; }
.btoc a { color: var(--muted); text-decoration: none; transition: color .3s; }
.btoc a:hover { color: var(--secondary); }

.prose { font-size: 1.04rem; line-height: 1.8; color: var(--text); }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { font-size: 1.55rem; margin-top: 2em; scroll-margin-top: 100px; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; scroll-margin-top: 100px; }
.prose p, .prose li { color: color-mix(in srgb, var(--text) 82%, transparent); }
.prose a { color: var(--secondary); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: .45em; }
.prose blockquote { border-left: 3px solid var(--primary); padding: 6px 0 6px 20px; font: 500 1.15rem/1.6 Outfit, system-ui, sans-serif; color: var(--text); background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 10%, transparent), transparent); border-radius: 0 12px 12px 0; }
.prose code { background: var(--surface2); border: 1px solid var(--line); padding: 1px 7px; border-radius: 6px; font-size: .9em; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.2em 0; }
.prose img { max-width: 100%; height: auto; border-radius: 16px; display: block; }
.prose figure { margin-inline: 0; }
.prose figcaption { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 8px; }

.bshare { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); }
.bshare span { color: var(--muted); font-size: .9rem; margin-right: 6px; }
.bshare .btn { padding: 9px 16px; font-size: .85rem; }
.bpn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bpnl { border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; text-decoration: none; color: var(--text); background: var(--surface); transition: .3s; display: block; }
.bpnl:hover { border-color: var(--primary); transform: translateY(-3px); }
.bpnl small { display: block; color: var(--muted); margin-bottom: 4px; }
.bpnl b { font: 600 1rem/1.3 Outfit, system-ui, sans-serif; }
.bpnl.r { text-align: right; grid-column: 2; }
.bpreview { position: fixed; z-index: 90; left: 50%; bottom: 14px; transform: translateX(-50%); background: #c7395a; color: #fff; padding: 9px 18px; border-radius: 99px; font-size: .85rem; box-shadow: 0 10px 30px rgba(0,0,0,.35); max-width: 92vw; text-align: center; }

@media (max-width: 960px) {
  .bgrid { grid-template-columns: repeat(2, 1fr); }
  .bfeat { grid-template-columns: 1fr; }
  .bfeat .bimg { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
  .bgrid { grid-template-columns: 1fr; gap: 18px; }
  .bcard h3 { font-size: 1.08rem; }
  .bcover { aspect-ratio: 16 / 10; border-radius: 18px; margin-bottom: 28px; }
  .prose { font-size: 1rem; line-height: 1.75; }
  .prose h2 { font-size: 1.3rem; }
  .bpn { grid-template-columns: 1fr; }
  .bpnl.r { grid-column: auto; text-align: left; }
  .bshare .btn { flex: 1 1 auto; text-align: center; }
  .bfeat { border-radius: 20px; }
}
