/* =========================================================
   vokaweb — styles
   ========================================================= */

/* ---------- Fonts (self-hosted variable fonts, SIL Open Font License) ---------- */
@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/lexend-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-opsz.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --primary: #1a4bd6;
  --primary-dark: #1440c4;
  --primary-light: #5b8ff9;
  --gradient: linear-gradient(100deg, #1446d2 0%, #3d72ec 55%, #5b8ff9 100%);
  --heading: #111216;
  --text: #6b6d76;
  --muted: #9a9ca5;
  --bg: #ffffff;
  --bg-soft: #f4f4f6;
  --card-tint: #f3f7fe;
  --line: #e7e8ee;
  --surface: #ffffff;          /* cards, inputs, footer */
  --surface-2: #f3f4f7;        /* small bars inside cards */
  --text-strong: #3a3c44;      /* long-form text, reviews, comments */
  --checker: #f8f8f9;          /* hero checkerboard squares */
  --header-bg: rgba(255, 255, 255, .92);
  --nav-bg: rgba(255, 255, 255, .75);
  --img-bg: #dde3ef;
  --track: #e9eefb;
  --dots: #b9c8f3;
  --star-off: #d3dcf3;
  --sep: #c5c7cf;
  color-scheme: light;

  --font-head: "Bricolage Grotesque", "Lexend", system-ui, sans-serif;
  --font-body: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-btn: 0 14px 28px -8px rgba(26, 75, 214, .45);
  --shadow-card: 0 10px 40px -12px rgba(17, 18, 22, .12);

  --container: 1200px;
  --header-h: 92px;
}

/* ---------- Dark theme ---------- */
:root[data-theme="dark"] {
  --primary: #4f7ff5;
  --primary-dark: #3a6cf0;
  --primary-light: #7ca3ff;
  --heading: #f1f4fb;
  --text: #a3acc2;
  --muted: #7c869e;
  --bg: #0b1020;
  --bg-soft: #10172a;
  --card-tint: rgba(91, 143, 249, .13);
  --line: #232d47;
  --surface: #151d33;
  --surface-2: #1b2440;
  --text-strong: #c8cfdf;
  --checker: #0e1426;
  --header-bg: rgba(11, 16, 32, .88);
  --nav-bg: rgba(21, 29, 51, .7);
  --img-bg: #1b2440;
  --track: #22305a;
  --dots: #34467a;
  --star-off: #34467a;
  --sep: #46506a;
  --shadow-card: 0 14px 40px -14px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

/* Initial avatars: darker tint + light letters on the dark theme */
[data-theme="dark"] .review-card__avatar,
[data-theme="dark"] .review__avatar--initials,
[data-theme="dark"] .comment__avatar { color: hsl(var(--hue, 222) 85% 78%); background: hsl(var(--hue, 222) 45% 22%); }

/* Smooth colour change when switching theme (class added briefly by JS) */
html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after {
  transition: background-color .35s ease, border-color .35s ease, color .35s ease, fill .35s ease !important;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 10px); }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); line-height: 1.2; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.center { display: flex; justify-content: center; }

/* ---------- Buttons (template style: soft-rounded, gradient, soft blue shadow) ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 168px; height: 56px; padding: 0 30px;
  border-radius: 8px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 17px; line-height: 1;
  white-space: nowrap; cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease, color .3s ease, border-color .3s ease;
}
.btn:active { transform: translateY(0) scale(.98); }

/* Primary: template gradient; on hover a soft light flows through the blue */
.btn--primary {
  color: #fff;
  background: linear-gradient(100deg, #1446d2 0%, #3d72ec 30%, #5b8ff9 50%, #3d72ec 70%, #1446d2 100%);
  background-size: 200% 100%; background-position: 0 0;
  box-shadow: 0 14px 26px -12px rgba(26, 75, 214, .55);
  transition: transform .3s ease, box-shadow .3s ease, background-position .7s ease;
}
.btn--primary:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -12px rgba(61, 114, 236, .55);
}

/* Outline (Get Started): white with blue border; light blue tint on hover */
.btn--outline { background: var(--surface); border-color: var(--primary); color: var(--primary); }
.btn--outline:hover { background: var(--card-tint); transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(26, 75, 214, .35); }

.btn--sm { min-width: 150px; height: 50px; padding: 0 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--primary-light); outline-offset: 3px; }

/* ---------- Decorative sparkles ---------- */
.sparkle { position: absolute; color: var(--primary); pointer-events: none; animation: twinkle 3.2s ease-in-out infinite; }
@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0); opacity: 1; }
  50% { transform: scale(.75) rotate(20deg); opacity: .7; }
}

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s ease, box-shadow .3s ease, height .3s ease;
}
.header.is-scrolled {
  --header-h: 76px;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 30px -12px rgba(17, 18, 22, .18);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font-family: var(--font-head); font-weight: 800; font-size: 26px; letter-spacing: -.02em; color: var(--heading); }
.logo span, .footer__logo span { color: var(--primary); }
.nav__track {
  position: relative; display: flex; padding: 6px;
  background: var(--nav-bg); border: 1px solid var(--line); border-radius: 999px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px -18px rgba(17, 18, 22, .25);
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
/* Sticky header already has its own background, so the menu frame is dropped there */
.header.is-scrolled .nav__track {
  background-color: transparent; border-color: transparent; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.nav__list { position: relative; z-index: 1; display: flex; gap: 2px; }
.nav__link {
  display: block; padding: 10px 18px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--text); white-space: nowrap;
  transition: color .3s ease, background-color .3s ease;
}
.nav__link:hover { color: var(--primary); background: rgba(26, 75, 214, .07); }
/* Without JS the active link gets its own background; with JS a sliding indicator is used */
.nav__link.is-active, .nav__link.is-active:hover { color: #fff; background: var(--gradient); }
.js .nav__link.is-active, .js .nav__link.is-active:hover { background: transparent; }
.nav__indicator {
  position: absolute; top: 6px; bottom: 6px; left: 0; width: 0; z-index: 0;
  border-radius: 999px; background: var(--gradient);
  box-shadow: 0 8px 18px -8px rgba(26, 75, 214, .6);
  opacity: 0;
  transition: transform .45s cubic-bezier(.22, .8, .3, 1), width .45s cubic-bezier(.22, .8, .3, 1), opacity .3s ease;
}
.nav__indicator.is-ready { opacity: 1; }
.nav__cta-mobile { display: none; }

.header__actions { display: flex; align-items: center; gap: 14px; }
.theme-toggle {
  position: relative; width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; overflow: hidden;
  background: var(--surface); border: 1.5px solid var(--line); color: var(--heading);
  transition: border-color .25s ease, color .25s ease, transform .2s ease;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle svg { position: absolute; width: 20px; height: 20px; transition: transform .45s cubic-bezier(.22,.8,.3,1), opacity .3s ease; }
.theme-toggle__moon { transform: translateY(0) rotate(0); }
.theme-toggle__sun { transform: translateY(30px) rotate(-90deg); opacity: 0; }
[data-theme="dark"] .theme-toggle__moon { transform: translateY(-30px) rotate(90deg); opacity: 0; }
[data-theme="dark"] .theme-toggle__sun { transform: translateY(0) rotate(0); opacity: 1; }
.burger { display: none; width: 44px; height: 44px; border-radius: 10px; position: relative; }
.burger span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--heading); border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: var(--header-h);
  background-color: var(--bg);
  background-image: conic-gradient(var(--checker) 25%, transparent 0 50%, var(--checker) 0 75%, transparent 0);
  background-size: 450px 450px;
  background-position: -60px -40px;
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; min-height: 740px; }
.hero__content { position: relative; align-self: center; padding: 60px 0 90px; }
.hero__burst { position: absolute; width: 62px; left: -46px; top: 18px; }
.hero__title { font-size: clamp(38px, 4.6vw, 64px); font-weight: 700; line-height: 1.22; letter-spacing: -.01em; max-width: 640px; }
.hero__text { margin-top: 26px; max-width: 520px; font-size: 16px; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 44px; }

.hero__visual { position: relative; align-self: center; display: flex; justify-content: center; padding: 48px 0 64px; }
.hero__photo {
  position: relative; width: min(100%, 440px); aspect-ratio: 4 / 5; margin: 0;
  border-radius: 28px; overflow: hidden; background: var(--img-bg);
  box-shadow: 0 40px 80px -40px rgba(26, 75, 214, .55), 0 0 0 10px var(--surface);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 20px 40px -18px rgba(17, 18, 22, .3);
  text-align: left; animation: badge-float 5s ease-in-out infinite;
}
.hero__badge strong { display: block; font-family: var(--font-head); font-size: 15px; color: var(--heading); line-height: 1.2; }
.hero__badge small { display: block; font-size: 13px; color: var(--muted); }
.hero__badge-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--gradient); color: #fff; }
.hero__badge-icon svg { width: 22px; height: 22px; }
.hero__badge-num { font-family: var(--font-head); font-weight: 800; font-size: 34px; line-height: 1; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__badge--top { top: 22%; left: -8%; }
.hero__badge--bottom { bottom: 14%; right: -6%; animation-delay: -2.5s; }
@keyframes badge-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.sparkle--hero-a { width: 40px; height: 40px; top: 3%; right: 6%; }
.sparkle--hero-b { width: 18px; height: 18px; top: 1%; right: 1%; animation-delay: .6s; }
.sparkle--hero-c { width: 14px; height: 14px; top: 2%; right: 16%; animation-delay: 1.2s; }
.sparkle--hero-d { width: 36px; height: 36px; top: 46%; left: -6%; animation-delay: .3s; }

/* ---------- Marquee ---------- */
.marquee { background: var(--gradient); color: #fff; overflow: hidden; height: 76px; display: flex; align-items: center; }
.marquee__track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 88px; padding-right: 88px; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 88px;
  font-family: var(--font-head); font-weight: 800; font-size: 20px; letter-spacing: .02em; white-space: nowrap;
}
/* The sparkle after each item is drawn by CSS, so each item is a single text element (easy to loop in WordPress) */
.marquee__item::after {
  content: ""; width: 32px; height: 32px; flex-shrink: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.9 6.6 4.8 10.8 12 12-7.2 1.2-11.1 5.4-12 12-.9-6.6-4.8-10.8-12-12C7.2 10.8 11.1 6.6 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.9 6.6 4.8 10.8 12 12-7.2 1.2-11.1 5.4-12 12-.9-6.6-4.8-10.8-12-12C7.2 10.8 11.1 6.6 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 120px 0; }
.section--soft { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 64px; }
.section-title {
  display: inline-flex; align-items: center; gap: 18px;
  font-size: clamp(26px, 3vw, 36px); font-weight: 700; text-transform: uppercase;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-title::before, .section-title::after {
  content: ""; width: 56px; height: 3px; border-radius: 3px; background: var(--primary);
}
.section-sub { max-width: 820px; margin: 16px auto 0; color: var(--muted); font-size: 17px; }
.section-sub--narrow { max-width: 640px; }
.section-sub--wide { max-width: 900px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-head); font-weight: 700; font-size: 18px; text-transform: uppercase; color: var(--primary);
}
.eyebrow::after { content: ""; width: 64px; height: 3px; background: var(--primary); border-radius: 3px; }

/* ---------- About ---------- */
.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about__media img { width: 100%; max-width: 590px; }

/* Collage photo (about-team.jpg): its white gaps become transparent so it works on light and dark.
   "cover" keeps the mask aligned with object-fit: cover wherever the photo is cropped. */
.img-collage {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 976 940'%3E%3Cg%3E%3Crect x='3' y='3' width='469' height='472' rx='20'/%3E%3Crect x='3' y='502' width='469' height='202' rx='20'/%3E%3Crect x='3' y='731' width='469' height='201' rx='20'/%3E%3Crect x='500' y='4' width='467' height='203' rx='20'/%3E%3Crect x='500' y='233' width='467' height='203' rx='20'/%3E%3Crect x='500' y='463' width='467' height='470' rx='20'/%3E%3C/g%3E%3C/svg%3E") center / cover no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 976 940'%3E%3Cg%3E%3Crect x='3' y='3' width='469' height='472' rx='20'/%3E%3Crect x='3' y='502' width='469' height='202' rx='20'/%3E%3Crect x='3' y='731' width='469' height='201' rx='20'/%3E%3Crect x='500' y='4' width='467' height='203' rx='20'/%3E%3Crect x='500' y='233' width='467' height='203' rx='20'/%3E%3Crect x='500' y='463' width='467' height='470' rx='20'/%3E%3C/g%3E%3C/svg%3E") center / cover no-repeat;
}
.about__title { margin-top: 18px; font-size: clamp(26px, 2.8vw, 38px); font-weight: 700; text-transform: uppercase; line-height: 1.25; }
.about__text { margin: 18px 0 36px; max-width: 560px; font-size: 16px; line-height: 1.8; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 48px 0; max-width: 580px; }
.stat {
  background: var(--card-tint); border-radius: var(--radius-lg); padding: 34px 24px; text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.stat__title { font-size: 19px; font-weight: 700; color: var(--primary); }
.stat__text { margin-top: 14px; font-size: 15px; color: var(--muted); }
.sparkle--about { width: 26px; height: 26px; top: 40px; right: 6%; }

/* ---------- Services ---------- */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 56px; }
.service-card {
  background: var(--surface); border-radius: var(--radius-lg); padding: 48px 34px 44px; text-align: center;
  box-shadow: 0 4px 24px -16px rgba(17, 18, 22, .2);
  transition: background .4s ease, color .4s ease, transform .35s ease, box-shadow .35s ease;
  position: relative; isolation: isolate; overflow: hidden; outline: none;
}
.service-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gradient);
  opacity: 0; transition: opacity .4s ease;
}
.service-card__icon {
  width: 84px; height: 84px; margin: 0 auto 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gradient); color: #fff;
  transition: background .4s ease, color .4s ease;
}
.service-card__icon svg { width: 40px; height: 40px; }
.service-card__title { font-size: 24px; font-weight: 700; color: var(--primary); transition: color .4s ease; }
.service-card__text { margin-top: 14px; font-size: 16px; line-height: 1.75; color: var(--text); transition: color .4s ease; }

/* Highlight only while hovered (or focused with the keyboard) */
.service-card:hover,
.service-card:focus-visible { box-shadow: 0 24px 50px -18px rgba(26, 75, 214, .55); }
.js .service-card.reveal.is-visible:hover,
.js .service-card.reveal.is-visible:focus-visible,
.service-card:hover, .service-card:focus-visible { transform: translateY(-6px); }
.service-card:hover::before,
.service-card:focus-visible::before { opacity: 1; }
.service-card:hover .service-card__icon,
.service-card:focus-visible .service-card__icon { background: #fff; color: var(--primary); }
.service-card:hover .service-card__title,
.service-card:hover .service-card__text,
.service-card:focus-visible .service-card__title,
.service-card:focus-visible .service-card__text { color: #fff; }

/* ---------- Projects ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 56px; }
.project__media, .post__media { display: block; overflow: hidden; }
.project__media img, .post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project:hover .project__media img, .post:hover .post__media img { transform: scale(1.06); }

/* Filter tabs */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -24px 0 48px; }
.filters__btn {
  padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface);
  font-family: var(--font-head); font-size: 15px; font-weight: 600; color: var(--text-strong);
  transition: background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.filters__btn:hover { border-color: var(--primary-light); color: var(--primary); }
.filters__btn.is-active { background: var(--gradient); border-color: transparent; color: #fff; box-shadow: var(--shadow-btn); }

/* Project card */
.projects__grid { display: flex; flex-wrap: wrap; justify-content: center; }
.projects__grid > .project { flex: 0 1 calc((100% - 56px) / 3); }
.project {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 12px;
  box-shadow: 0 6px 24px -18px rgba(17, 18, 22, .25);
}
.js .project.reveal.is-visible { transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease, opacity .8s ease; }
.project:hover, .js .project.reveal.is-visible:hover {
  transform: translateY(-6px); border-color: transparent;
  box-shadow: 0 26px 50px -22px rgba(26, 75, 214, .4);
}
.project.is-filtered-out { display: none; }
.project.is-filtered-in { animation: project-in .45s ease both; }
@keyframes project-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }

.project__media { position: relative; border-radius: 14px; aspect-ratio: 4 / 3.2; }
.project__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 70, 210, 0) 40%, rgba(13, 30, 90, .35));
  opacity: 0; transition: opacity .4s ease;
}
.project:hover .project__media::after { opacity: 1; }

.project__body { display: flex; flex-direction: column; flex: 1; padding: 18px 10px 10px; }
.project__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.project__meta { font-size: 13px; color: var(--muted); }
.project__title { margin-top: 4px; font-size: 24px; font-weight: 700; }
.project__title a { transition: color .25s ease; }
.project__title a:hover { color: var(--primary); }
.project__arrow {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; border: 1.5px solid var(--line); color: var(--heading);
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s ease;
}
.project__arrow svg { width: 20px; height: 20px; }
.project:hover .project__arrow { background: var(--gradient); border-color: transparent; color: #fff; transform: rotate(45deg); }
.project__desc { margin: 10px 0 18px; font-size: 15px; line-height: 1.65; color: var(--text); }
.project .tags { margin-top: auto; }
.projects__empty { text-align: center; color: var(--muted); margin: -24px 0 48px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tags li { background: var(--card-tint); color: var(--primary); font-size: 13px; font-weight: 500; padding: 5px 13px; border-radius: 999px; }

/* ---------- Reviews slider (Swiper) ---------- */
.reviews-swiper {
  --card-w: 400px; --card-h: 440px;
  --hex-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 110' preserveAspectRatio='none'%3E%3Cpath d='M38 3.6Q50-2 62 3.6L92.5 20Q100 24.5 100 33V77Q100 85.5 92.5 90L62 106.4Q50 112 38 106.4L7.5 90Q0 85.5 0 77V33Q0 24.5 7.5 20Z'/%3E%3C/svg%3E");
  --hex-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 110' preserveAspectRatio='none'%3E%3Cpath fill='%23111216' d='M38 3.6Q50-2 62 3.6L92.5 20Q100 24.5 100 33V77Q100 85.5 92.5 90L62 106.4Q50 112 38 106.4L7.5 90Q0 85.5 0 77V33Q0 24.5 7.5 20Z'/%3E%3C/svg%3E");
  --hex-blue: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 110' preserveAspectRatio='none'%3E%3Cpath fill='%231a4bd6' d='M38 3.6Q50-2 62 3.6L92.5 20Q100 24.5 100 33V77Q100 85.5 92.5 90L62 106.4Q50 112 38 106.4L7.5 90Q0 85.5 0 77V33Q0 24.5 7.5 20Z'/%3E%3C/svg%3E");
  padding: 30px 0 50px;
}
.review.swiper-slide {
  width: var(--card-w); height: var(--card-h);
  position: relative; isolation: isolate;
  cursor: grab;
}
.reviews-swiper:active .review { cursor: grabbing; }

/* Soft shadows: blurred copies of the hexagon behind the card (only their opacity animates) */
.review::before, .review::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: center / 100% 100% no-repeat;
  filter: blur(26px);
  transition: opacity .5s ease;
}
.review::before { background-image: var(--hex-dark); opacity: .07; transform: translateY(18px) scale(.9); }
.review::after  { background-image: var(--hex-blue); opacity: 0; transform: translateY(24px) scale(.88); }
.review.swiper-slide-active::before { opacity: 0; }
.review.swiper-slide-active::after { opacity: .45; }

.review__hex {
  width: 100%; height: 100%; background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 44px;
  -webkit-mask: var(--hex-mask) center / 100% 100% no-repeat;
          mask: var(--hex-mask) center / 100% 100% no-repeat;
  position: relative; isolation: isolate;
  transform: scale(.94); opacity: .85;
  transition: transform .5s ease, opacity .5s ease;
}
.review.swiper-slide-active .review__hex { transform: scale(1); opacity: 1; }
/* gradient layer fades in on the active slide */
.review__hex::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--gradient); opacity: 0; transition: opacity .5s ease;
}
.review.swiper-slide-active .review__hex::before { opacity: 1; }
.review__avatar {
  width: 82px; height: 82px; border-radius: 50%; object-fit: cover;
  border: 4px solid var(--surface); box-shadow: 0 0 0 3px var(--primary);
}
.review__avatar--initials {
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 24px;
  color: hsl(var(--hue, 222) 65% 40%); background: hsl(var(--hue, 222) 80% 94%);
}
.review.swiper-slide-active .review__avatar { box-shadow: 0 0 0 3px #fff; border-color: var(--primary); }
.review__name { margin-top: 14px; font-size: 18px; font-weight: 700; transition: color .5s ease; }
.review__role { font-size: 13px; color: var(--muted); transition: color .5s ease; }
.review__text { margin-top: 18px; font-size: 14px; line-height: 1.75; color: var(--text-strong); transition: color .5s ease; }
.review__stars { display: flex; align-items: center; gap: 6px; margin-top: 20px; color: var(--primary); transition: color .5s ease; }
.review__stars svg { width: 18px; height: 18px; }
.review__stars svg:nth-child(3) { width: 22px; height: 22px; }
.review__score { margin-top: 4px; font-size: 12px; color: var(--text-strong); transition: color .5s ease; }
.review.swiper-slide-active .review__name,
.review.swiper-slide-active .review__role,
.review.swiper-slide-active .review__text,
.review.swiper-slide-active .review__score,
.review.swiper-slide-active .review__stars { color: #fff; }
.review.swiper-slide-active .review__role { color: rgba(255, 255, 255, .85); }

/* pagination: short dashes, active one is long */
.reviews-swiper .swiper-pagination { position: static; margin-top: 32px; display: flex; justify-content: center; align-items: center; gap: 8px; }
.reviews-swiper .swiper-pagination-bullet {
  width: 10px; height: 4px; margin: 0 !important; border-radius: 4px;
  background: var(--dots); opacity: 1; transition: width .3s ease, background .3s ease;
}
.reviews-swiper .swiper-pagination-bullet-active { width: 40px; background: var(--primary); }

/* ---------- Feed ---------- */
.feed__grid { align-items: stretch; }
.post {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 6px 24px -18px rgba(17, 18, 22, .25);
}
.js .post.reveal.is-visible { transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease, opacity .8s ease; }
.post:hover, .js .post.reveal.is-visible:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 24px 48px -20px rgba(26, 75, 214, .35);
}
.post__media { position: relative; aspect-ratio: 402 / 290; }
.post__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17, 18, 22, 0) 55%, rgba(17, 18, 22, .35) 100%);
  opacity: .6; transition: opacity .4s ease;
}
.post:hover .post__media::after { opacity: 1; }
.post__badge {
  position: absolute; left: 16px; bottom: 16px; z-index: 1;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px);
  color: var(--primary); font-size: 12px; font-weight: 600; letter-spacing: .02em;
  padding: 6px 12px; border-radius: 999px;
}
.post__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.post__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); }
.post__meta span { display: inline-flex; align-items: center; gap: 6px; }
.post__meta svg { width: 16px; height: 16px; color: var(--primary); }
.post__title { margin-top: 12px; font-size: 22px; font-weight: 700; line-height: 1.3; }
.post__title a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: color .25s ease, background-size .35s ease;
}
.post__title a:hover { color: var(--primary); background-size: 100% 2px; }
.post__text {
  margin: 12px 0 18px; font-size: 15px; color: var(--text); line-height: 1.7;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.post__link {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary); font-family: var(--font-head); font-size: 15px; font-weight: 600;
  position: relative; padding-bottom: 3px;
}
.post__link::after {
  content: ""; position: absolute; left: 0; right: 26px; bottom: 0; height: 2px; border-radius: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.post__link svg { width: 18px; height: 18px; transition: transform .3s ease; }
.post__link:hover::after { transform: scaleX(1); }
.post__link:hover svg { transform: translateX(5px); }

/* ---------- Contact ---------- */
.contact-form { max-width: 600px; margin-inline: auto; display: grid; gap: 18px; }
.field input, .field textarea {
  width: 100%; border: 1.5px solid transparent; background: var(--surface); border-radius: 10px;
  padding: 16px 18px; font-size: 15px; color: var(--heading); outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus { border-color: var(--primary-light); box-shadow: 0 0 0 4px rgba(91, 143, 249, .18); }
.field.has-error input, .field.has-error textarea { border-color: #e5484d; }
.field__error { display: block; min-height: 0; color: #e5484d; font-size: 13px; margin-top: 6px; }
.field__error:empty { display: none; }
.contact-form .btn { margin-top: 10px; }
.contact-form .btn[disabled] { opacity: .7; pointer-events: none; }
.contact-form__status { text-align: center; font-size: 15px; color: #16a34a; min-height: 1em; }

/* ---------- Footer ---------- */
.footer { background: var(--surface); padding: 80px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1.2fr .8fr .8fr; gap: 48px; }
.footer__logo { font-family: var(--font-head); font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: var(--heading); }
.footer__brand p { margin-top: 12px; max-width: 300px; color: var(--text-strong); font-size: 15px; }
.socials { display: flex; gap: 12px; margin-top: 22px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--primary); color: var(--primary);
  display: grid; place-items: center; transition: background .25s ease, color .25s ease;
}
.socials a:hover { background: var(--primary); color: #fff; }
.socials svg { width: 18px; height: 18px; }
.footer__col h4 { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 20px; }
.footer__col li + li { margin-top: 14px; }
.footer__col a { color: var(--muted); font-size: 15px; transition: color .2s ease; }
.footer__col a:hover { color: var(--primary); }
.footer__bottom { border-top: 1px solid var(--line); margin-top: 64px; padding: 24px 0; text-align: center; font-size: 14px; color: var(--muted); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  width: 48px; height: 48px; border-radius: 50%; background: var(--gradient); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-btn);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s ease, transform .3s ease;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .nav__link { padding: 9px 12px; font-size: 14px; }
  .header__cta { min-width: 0; }
  .hero__inner { min-height: 640px; }
  .about__inner { gap: 40px; }
  .services__grid, .cards-3 { gap: 20px; }
  .service-card { padding: 40px 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .projects__grid > .project { flex-basis: calc((100% - 20px) / 2); }
  .filters { margin-top: -12px; }
  :root { --header-h: 72px; }
  .header.is-scrolled { --header-h: 66px; }
  .header { background: var(--header-bg); backdrop-filter: blur(10px); }
  .header__cta { display: none; }
  .burger { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--surface); padding: 24px 24px 32px; box-shadow: 0 20px 30px -20px rgba(17, 18, 22, .25);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .3s ease, opacity .3s ease, visibility .3s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__track { display: block; padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav__indicator { display: none; }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__link { padding: 13px 16px; border-radius: 12px; font-size: 17px; }
  .nav__link.is-active, .nav__link.is-active:hover,
  .js .nav__link.is-active, .js .nav__link.is-active:hover { background: var(--card-tint); color: var(--primary); font-weight: 600; }
  .nav__cta-mobile { display: inline-flex; width: 100%; margin-top: 16px; }

  .hero__inner { grid-template-columns: 1fr; min-height: 0; text-align: center; }
  .hero__content { padding: 48px 0 24px; }
  .hero__burst { left: 0; top: 0; width: 44px; }
  .hero__title, .hero__text { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__visual { padding: 8px 0 64px; }
  .hero__photo { width: min(86%, 380px); }
  .hero__badge--top { left: 0; }
  .hero__badge--bottom { right: 0; }

  .section { padding: 88px 0; }
  .about__inner { grid-template-columns: 1fr; }
  .about__media img { margin-inline: auto; }
  .about__content { text-align: center; }
  .stats { margin-inline: auto; }

  .services__grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; margin-bottom: 48px; }
  .cards-3 { grid-template-columns: repeat(2, 1fr); margin-bottom: 48px; }

  .reviews-swiper { --card-w: 330px; --card-h: 370px; }
  .review__hex { padding: 0 34px; }
  .review__text { font-size: 13px; margin-top: 12px; }
  .review__avatar { width: 68px; height: 68px; }
}

@media (max-width: 600px) {
  .cards-3 { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .projects__grid > .project { flex-basis: 100%; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 32px, var(--container)); }
  .btn { min-width: 0; flex: 1 1 140px; height: 52px; padding: 0 18px; }
  .center .btn { flex: 0 0 auto; }
  .section-title { gap: 12px; }
  .section-title::before, .section-title::after { width: 28px; }
  .section-head { margin-bottom: 44px; }
  .stats { grid-template-columns: 1fr; }
  .reviews-swiper { --card-w: 290px; --card-h: 340px; }
  .review__hex { padding: 0 28px; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .marquee { height: 60px; }
  .marquee__group { gap: 48px; padding-right: 48px; }
  .marquee__item { gap: 48px; }
  .marquee__item::after { width: 24px; height: 24px; }
}

/* =========================================================
   Inner pages (blog post + project)
   ========================================================= */
.container--narrow { width: min(100% - 48px, 860px); }
.btn--white { background: #fff; color: var(--primary); box-shadow: 0 14px 26px -14px rgba(0, 0, 0, .35); }
.btn--white:hover { background: var(--card-tint); transform: translateY(-2px); }

/* Reading progress bar */
.read-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  background: var(--gradient); transform-origin: left; transform: scaleX(0);
}

/* Page hero */
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 56px) 0 72px;
  background-color: var(--bg);
  background-image:
    radial-gradient(60% 80% at 85% 0%, rgba(91, 143, 249, .14), transparent 70%),
    conic-gradient(var(--checker) 25%, transparent 0 50%, var(--checker) 0 75%, transparent 0);
  background-size: auto, 450px 450px;
}
.page-hero__sparkle { width: 30px; height: 30px; right: 8%; top: calc(var(--header-h) + 40px); }
.page-hero__title { margin-top: 16px; font-size: clamp(32px, 4.4vw, 54px); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.page-hero__lead { margin-top: 18px; max-width: 720px; font-size: 18px; color: var(--text); }

.breadcrumb { margin-bottom: 28px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--sep); }
.breadcrumb a { transition: color .2s ease; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb [aria-current] { color: var(--heading); font-weight: 500; }

.pill-label {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--card-tint); color: var(--primary); font-size: 13px; font-weight: 600;
}

/* Article meta */
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 30px; }
.article-meta__author { display: flex; align-items: center; gap: 12px; }
.article-meta__author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); box-shadow: 0 0 0 2px var(--primary); }
.author-initial {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: var(--gradient); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 20px;
}
.author-initial--lg { width: 84px; height: 84px; font-size: 34px; }
.comment__avatar.author-initial { color: #fff; background: var(--gradient); }
.article-meta__author strong { display: block; color: var(--heading); font-family: var(--font-head); font-size: 15px; }
.article-meta__author span { font-size: 13px; color: var(--muted); }
.article-meta__item { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.article-meta__item svg { width: 18px; height: 18px; color: var(--primary); }

/* Article */
.article-section { padding-bottom: 110px; }
.article-cover { margin: 0 0 64px; border-radius: 24px; overflow: hidden; aspect-ratio: 21 / 9; box-shadow: var(--shadow-card); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; }

.prose { font-size: 17px; line-height: 1.85; color: var(--text-strong); }
.prose > * + * { margin-top: 20px; }
.prose__intro { font-size: 20px; line-height: 1.7; color: var(--heading); }
.prose h2 { margin-top: 48px; font-size: 30px; font-weight: 700; scroll-margin-top: 110px; }
.prose h3 { margin-top: 32px; font-size: 22px; font-weight: 700; }
.prose h2 + p, .prose h3 + p { margin-top: 12px; }
.prose > ul, .prose > ol { padding-left: 22px; }
.prose > ul { list-style: disc; }
.prose > ol { list-style: decimal; }
.prose > ul > li + li, .prose > ol > li + li { margin-top: 8px; }
.prose > ul > li::marker, .prose > ol > li::marker { color: var(--primary); font-weight: 600; }
.prose blockquote {
  margin: 36px 0; padding: 32px 36px; border-radius: 0 18px 18px 0;
  background: var(--card-tint); border-left: 4px solid var(--primary);
}
.prose blockquote svg { width: 32px; height: 32px; color: var(--primary); opacity: .35; }
.prose blockquote p { margin-top: 8px; font-family: var(--font-head); font-size: 21px; line-height: 1.55; color: var(--heading); }
.prose blockquote cite { display: block; margin-top: 12px; font-style: normal; font-size: 14px; color: var(--muted); }
.prose figure { margin: 32px 0; }
.prose figure img { width: 100%; max-width: 520px; margin-inline: auto; border-radius: 16px; }
.prose figcaption { margin-top: 10px; text-align: center; font-size: 14px; color: var(--muted); }

.article-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 48px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.article-footer .tags { margin-top: 0; }
.share { display: flex; align-items: center; gap: 10px; }
.share > span { font-size: 14px; color: var(--muted); margin-right: 4px; }
.share__btn {
  position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line);
  display: grid; place-items: center; color: var(--heading);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.share__btn svg { width: 18px; height: 18px; }
.share__btn:hover { background: var(--primary); border-color: transparent; color: #fff; }
.share__icon-check { display: none; }
.share__btn.is-copied { background: #16a34a; border-color: transparent; color: #fff; }
.share__btn.is-copied .share__icon-link { display: none; }
.share__btn.is-copied .share__icon-check { display: block; }
.share__btn.is-copied::after {
  content: "Link copied"; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--heading); color: #fff; font-size: 12px; white-space: nowrap; padding: 5px 10px; border-radius: 6px;
}

.author-box { display: flex; gap: 24px; align-items: flex-start; margin-top: 40px; padding: 28px; border-radius: 20px; background: var(--bg-soft); }
.author-box img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box__label { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--primary); font-weight: 600; }
.author-box__name { margin: 4px 0 8px; font-size: 22px; }
.author-box p { margin: 0; font-size: 15px; line-height: 1.7; }

/* Comments */
.article-main { min-width: 0; }
.comments { margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--line); }
.comments__title { display: flex; align-items: center; gap: 12px; font-size: 26px; }
.comments__count {
  min-width: 34px; height: 34px; padding: 0 10px; border-radius: 999px; display: inline-grid; place-items: center;
  background: var(--card-tint); color: var(--primary); font-size: 15px; font-weight: 700;
}
.comment-list { margin-top: 28px; }
.comment-list > .comment + .comment { margin-top: 16px; }
.comment__body {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px;
  padding: 22px 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface);
}
.comment__avatar {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 15px;
  color: hsl(var(--hue, 222) 65% 40%); background: hsl(var(--hue, 222) 80% 94%);
}
.comment__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.comment__author { font-family: var(--font-head); font-size: 16px; color: var(--heading); }
.comment__badge { font-size: 11px; font-weight: 600; color: #fff; background: var(--gradient); padding: 3px 10px; border-radius: 999px; }
.comment__date { font-size: 13px; color: var(--muted); }
.comment__content p { margin-top: 8px; font-size: 15px; line-height: 1.75; color: var(--text-strong); }
.comment__reply {
  margin-top: 10px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--primary); transition: color .2s ease;
}
.comment__reply svg { width: 16px; height: 16px; transition: transform .25s ease; }
.comment__reply:hover svg { transform: translateX(-3px); }
.comment--author > .comment__body { background: var(--card-tint); border-color: transparent; }
.comment .children { margin-top: 16px; padding-left: 40px; position: relative; display: grid; gap: 16px; }
.comment .children::before { content: ""; position: absolute; left: 22px; top: 0; bottom: 24px; width: 2px; border-radius: 2px; background: var(--line); }
.comment--new > .comment__body { animation: comment-in .5s ease; }
@keyframes comment-in { from { opacity: 0; transform: translateY(10px); } }
.comment__pending { display: inline-block; margin-top: 8px; font-size: 13px; color: #b45309; background: #fef3c7; padding: 3px 10px; border-radius: 999px; }

/* Comment form */
.comment-respond { margin-top: 32px; padding: 32px; border-radius: 20px; background: var(--bg-soft); }
.comment .comment-respond { margin-top: 16px; background: var(--surface); border: 1px solid var(--line); }
.comment-respond__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 22px; }
.comment-respond__cancel { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: #e5484d; }
.comment-respond__cancel:hover { text-decoration: underline; }
.comment-respond__note { margin-top: 6px; font-size: 14px; color: var(--muted); }
.comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.comment-form .field--full, .comment-form .checkbox { grid-column: 1 / -1; }
.comment .comment-form .field input, .comment .comment-form .field textarea { background: var(--bg-soft); }
.comment-form textarea { min-height: 130px; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text); cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.comment-form .btn[disabled] { opacity: .7; pointer-events: none; }

/* Sidebar */
.sidebar { position: sticky; top: 100px; display: grid; gap: 24px; }
.widget { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.widget__title { margin-bottom: 16px; font-size: 17px; }
.mini-posts li + li { margin-top: 16px; }
.mini-post { display: flex; align-items: center; gap: 14px; }
.mini-post img { width: 76px; height: 62px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.mini-post strong { display: block; font-family: var(--font-head); font-size: 14px; line-height: 1.35; color: var(--heading); transition: color .2s ease; }
.mini-post span { font-size: 12px; color: var(--muted); }
.mini-post:hover strong { color: var(--primary); }
.cat-list a {
  display: flex; justify-content: space-between; align-items: center; padding: 10px 0;
  border-bottom: 1px dashed var(--line); font-size: 15px; color: var(--text); transition: color .2s ease;
}
.cat-list li:last-child a { border-bottom: 0; }
.cat-list a span { background: var(--bg-soft); border-radius: 999px; font-size: 12px; padding: 2px 10px; }
.cat-list a:hover { color: var(--primary); }
.widget--cta { background: var(--gradient); border: 0; color: #fff; }
.widget--cta h4 { color: #fff; font-size: 20px; }
.widget--cta p { margin: 8px 0 18px; font-size: 14px; color: rgba(255, 255, 255, .85); }
.related-grid { margin-bottom: 0; }

/* Project hero */
.page-hero--project { padding-bottom: 96px; }
.project-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.project-hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.project-hero__media {
  padding: 10px; border-radius: 28px; background: var(--surface);
  box-shadow: 0 30px 60px -30px rgba(26, 75, 214, .45);
  transform: rotate(1.5deg); transition: transform .5s ease;
}
.js .project-hero__media.reveal.is-visible { transform: rotate(1.5deg); transition: transform .5s ease, opacity .8s ease; }
.project-hero__media:hover, .js .project-hero__media.reveal.is-visible:hover { transform: rotate(0); }
.project-hero__media img { width: 100%; aspect-ratio: 418 / 374; object-fit: cover; border-radius: 20px; }

/* Facts bar */
.project-facts { position: relative; z-index: 2; margin-top: -44px; background: linear-gradient(transparent 44px, var(--bg-soft) 44px); }
.project-facts + .section { padding-top: 90px; }
.facts {
  display: grid; grid-template-columns: 1fr .75fr 1.6fr;
  padding: 26px 0; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
.fact {
  display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto 1fr; column-gap: 14px; align-items: start;
  padding: 0 32px; border-left: 1px solid var(--line);
}
.fact:first-child { border-left: 0; }
.fact__icon { grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--card-tint); color: var(--primary); }
.fact__icon svg { width: 22px; height: 22px; }
.fact dt { font-size: 13px; color: var(--muted); }
.fact dd { margin: 4px 0 0; font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--heading); }
.fact__tags { margin-top: 2px; font-family: var(--font-body); font-weight: 500; }

/* About the project + key features */
.project-about__title { margin-top: 14px; font-size: clamp(26px, 2.8vw, 34px); font-weight: 700; line-height: 1.25; }
.features-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: center; }
.features-split__intro { margin-top: 14px; font-size: 16px; line-height: 1.8; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 32px; margin-top: 36px; }
.feature { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; align-items: start; }
.feature__icon {
  grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--card-tint); color: var(--primary); transition: background .3s ease, color .3s ease, transform .3s ease;
}
.feature__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature:hover .feature__icon { background: var(--gradient); color: #fff; transform: translateY(-3px); }
.feature__title { margin-top: 2px; font-size: 17px; }
.feature__text { margin-top: 4px; font-size: 14px; line-height: 1.65; }

/* Browser-style frame around a screenshot */
.browser-frame {
  border-radius: 18px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(26, 75, 214, .4);
}
.browser-frame__bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.browser-frame__bar span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.browser-frame__bar span:nth-child(2) { background: #febc2e; }
.browser-frame__bar span:nth-child(3) { background: #28c840; }
.browser-frame img { width: 100%; aspect-ratio: 418 / 374; object-fit: cover; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 270px; gap: 20px; }
.gallery__item { position: relative; padding: 0; border-radius: 18px; overflow: hidden; cursor: zoom-in; background: var(--img-bg); }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(20, 70, 210, .1), rgba(13, 30, 90, .55)); opacity: 0; transition: opacity .35s ease;
}
.gallery__zoom {
  position: absolute; left: 50%; top: 50%; z-index: 1; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--primary);
  opacity: 0; transform: translate(-50%, -50%) scale(.8); transition: opacity .3s ease, transform .3s ease;
}
.gallery__zoom svg { width: 24px; height: 24px; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:hover::after, .gallery__item:focus-visible::after { opacity: 1; }
.gallery__item:hover .gallery__zoom, .gallery__item:focus-visible .gallery__zoom { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* Customer reviews (product) */
.product-reviews { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 40px; align-items: stretch; }
.stars { display: flex; gap: 3px; color: var(--primary); }
.stars svg { width: 16px; height: 16px; }
.stars svg.is-off { color: var(--star-off); }
.stars--lg svg { width: 22px; height: 22px; }

.rating-summary {
  padding: 32px 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.rating-summary__score { font-family: var(--font-head); font-weight: 800; font-size: 64px; line-height: 1; color: var(--heading); }
.rating-summary__score span { font-size: 22px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.rating-summary .stars { margin-top: 12px; }
.rating-summary__count { margin-top: 8px; font-size: 14px; color: var(--muted); }
.rating-bars { width: 100%; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.rating-bars li { display: grid; grid-template-columns: 34px 1fr 30px; align-items: center; gap: 10px; font-size: 13px; color: var(--text); }
.rating-bars__label { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.rating-bars__label svg { width: 12px; height: 12px; color: var(--primary); }
.rating-bars__track { height: 8px; border-radius: 99px; background: var(--track); overflow: hidden; }
.rating-bars__track span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--gradient); }
.rating-bars__num { text-align: right; color: var(--muted); }

.product-reviews__slider { min-width: 0; display: flex; flex-direction: column; }
.product-reviews__swiper { width: 100%; flex: 1; padding: 4px; margin: -4px; }
.product-reviews__swiper .swiper-slide { height: auto; }
.review-card {
  display: flex; flex-direction: column; padding: 28px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.review-card:hover { border-color: transparent; box-shadow: 0 20px 40px -22px rgba(26, 75, 214, .35); }
.review-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.review-card__reason { font-size: 12px; font-weight: 600; color: var(--primary); background: var(--card-tint); padding: 5px 12px; border-radius: 999px; }
.review-card__text { margin: 18px 0 24px; font-size: 16px; line-height: 1.75; color: var(--text-strong); }
.review-card__author { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.review-card__avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  color: hsl(var(--hue) 65% 40%); background: hsl(var(--hue) 80% 94%);
}
.review-card__author strong { display: block; font-family: var(--font-head); font-size: 15px; color: var(--heading); }
.review-card__meta { font-size: 13px; color: var(--muted); }
.verified { display: inline-flex; align-items: center; gap: 4px; color: #16a34a; font-weight: 500; }
.verified svg { width: 14px; height: 14px; }

.product-reviews__nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.product-reviews__pagination { display: flex; justify-content: center; align-items: center; gap: 8px; }
.product-reviews__pagination .swiper-pagination-bullet {
  width: 10px; height: 4px; margin: 0 !important; border-radius: 4px;
  background: var(--dots); opacity: 1; transition: width .3s ease, background .3s ease;
}
.product-reviews__pagination .swiper-pagination-bullet-active { width: 32px; background: var(--primary); }
.slider-btn {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: var(--surface); border: 1.5px solid var(--line); color: var(--heading);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.slider-btn svg { width: 20px; height: 20px; }
.slider-btn:hover { background: var(--primary); border-color: transparent; color: #fff; }
.slider-btn.swiper-button-disabled { opacity: .4; pointer-events: none; }

/* Related products */
.related-products .cards-3 { margin-bottom: 48px; }

/* CTA band */
.cta-band { padding: 0 0 110px; }
.cta-band__inner {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 56px 64px; border-radius: 28px; background: var(--gradient); color: #fff;
}
.cta-band__inner h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); }
.cta-band__inner p { margin-top: 10px; color: rgba(255, 255, 255, .85); }
.cta-band__sparkle { width: 120px; height: 120px; right: 26%; top: -30px; color: rgba(255, 255, 255, .12); }
.cta-band .btn { flex-shrink: 0; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(10, 14, 30, .9); backdrop-filter: blur(6px);
  animation: lb-in .3s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lb-in { from { opacity: 0; } }
.lightbox__figure { margin: 0; text-align: center; }
.lightbox__img { max-width: min(1000px, 86vw); max-height: 78vh; border-radius: 12px; margin-inline: auto; animation: lb-img .35s ease; }
@keyframes lb-img { from { opacity: 0; transform: scale(.96); } }
.lightbox__caption { margin-top: 14px; color: rgba(255, 255, 255, .85); font-size: 15px; }
.lightbox__btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .12);
  transition: background .25s ease;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .25); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 24px; top: 50%; transform: translateY(-50%); }
body.lightbox-open { overflow: hidden; }

@media (max-width: 1100px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; }
  .fact { padding: 0 20px; }
}

@media (max-width: 860px) {
  .page-hero { padding: calc(var(--header-h) + 32px) 0 56px; }
  .article-cover { aspect-ratio: 16 / 10; margin-bottom: 40px; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .project-hero { grid-template-columns: 1fr; gap: 40px; }
  .project-hero__media, .js .project-hero__media.reveal.is-visible { transform: none; }
  .features-split { grid-template-columns: 1fr; gap: 48px; }
  .facts { grid-template-columns: 1fr; padding: 4px 24px; }
  .fact { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); }
  .fact:first-child { border-top: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .comment-form { grid-template-columns: 1fr; }
  .comment-respond { padding: 24px; }
  .comment .children { padding-left: 20px; }
  .comment .children::before { left: 6px; }
  .cta-band__inner { flex-direction: column; text-align: center; padding: 44px 28px; }
  .product-reviews { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .container--narrow { width: min(100% - 32px, 860px); }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 25px; }
  .prose blockquote { padding: 24px; }
  .author-box { flex-direction: column; }
  .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: auto; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 24px; transform: none; }
}

/* =========================================================
   Blog listing page
   ========================================================= */
.page-hero--center { text-align: center; }
.page-hero--center .breadcrumb ol { justify-content: center; }
.page-hero--center .page-hero__lead { margin-inline: auto; }

.blog-section { padding: 72px 0 110px; }

/* Grid */
.blog-grid { margin-bottom: 56px; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; }
.pagination__item {
  min-width: 46px; height: 46px; padding: 0 12px; border-radius: 12px;
  display: grid; place-items: center; border: 1.5px solid var(--line); background: var(--surface);
  font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--heading);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.pagination__item svg { width: 18px; height: 18px; }
.pagination__item:hover { border-color: var(--primary); color: var(--primary); }
.pagination__item.is-current { background: var(--gradient); border-color: transparent; color: #fff; box-shadow: 0 10px 20px -10px rgba(26, 75, 214, .6); }
.pagination__item.is-disabled { opacity: .4; pointer-events: none; }
.pagination__dots { padding: 0 4px; color: var(--muted); }

@media (max-width: 520px) {
  .pagination__item { min-width: 40px; height: 40px; }
}

/* =========================================================
   Projects listing page
   ========================================================= */
.projects-page { padding: 64px 0 100px; }
.projects-page .filters { margin-top: 0; }
.projects-page .cards-3 { margin-bottom: 0; }
