/* ============================================================
   mizanur.dev — premium design system
   Space Grotesk + Inter + JetBrains Mono
   Profile terminal card · icon cloud · screenshot bento covers
   ============================================================ */

/* Guard: never let decorative/absolute elements break horizontal scroll */
html,
body { overflow-x: clip; }
html { scroll-behavior: smooth; }

/* ---------- Thin scrollbar ---------- */
html {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--accent) 45%, var(--border)) var(--bg-2);
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--accent) 55%, var(--border));
  border-radius: 99px;
  border: 1.5px solid var(--bg-2);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
::-webkit-scrollbar-corner { background: var(--bg-2); }

/* ---------- Theme variables ---------- */
:root,
[data-theme="dark"] {
  --bg: #0a0b0d;
  --bg-2: #0e0f12;
  --card: #121317;
  --card-2: #16181d;
  --border: rgba(255, 255, 255, 0.08);
  --text: #ececf0;
  --muted: #8f929b;
  --accent: #f07c2b;
  --accent-2: #ffb25c;
  --green: #7ee787;
  --ash: #71716e;
  --grad: linear-gradient(120deg, #f07c2b 0%, #ffb25c 100%);
  --glow: rgba(240, 124, 43, 0.35);
  /* editor syntax */
  --c-kw: #c586c0;
  --c-str: #e5a06a;
  --c-fn: #e3d36b;
  --c-com: #6b8f6e;
  --c-prop: #8fd6ff;
  /* surfaces */
  --surface: rgba(18, 19, 23, 0.7);
  --nav-bg: rgba(10, 11, 13, 0.72);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f6f7f9;
  --bg-2: #ffffff;
  --card: #ffffff;
  --card-2: #f2f3f6;
  --border: rgba(15, 17, 22, 0.1);
  --text: #16181d;
  --muted: #5c6070;
  --accent: #f07c2b;
  --accent-2: #ffb25c;
  --green: #2f9e57;
  --ash: #71716e;
  --grad: linear-gradient(120deg, #e2691a 0%, #ffb25c 100%);
  --glow: rgba(226, 105, 26, 0.22);
  --c-kw: #7d3c98;
  --c-str: #a05a2c;
  --c-fn: #92700e;
  --c-com: #3c7a45;
  --c-prop: #1560a8;
  --surface: rgba(255, 255, 255, 0.8);
  --nav-bg: rgba(246, 247, 249, 0.8);
  --shadow: 0 10px 30px rgba(20, 22, 30, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 22, 30, 0.14);
  color-scheme: light;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

.mono { font-family: "JetBrains Mono", monospace; }
h1, h2, h3, .font-display { font-family: "Space Grotesk", sans-serif; }

::selection { background: var(--accent); color: #0a0b0d; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---------- Utilities ---------- */
.text-gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.text-gradient-name {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }
.text-text { color: var(--text); }

.c-kw { color: var(--c-kw); }
.c-str { color: var(--c-str); }
.c-fn { color: var(--c-fn); }
.c-com { color: var(--c-com); }
.c-prop { color: var(--c-prop); }
.c-ind { user-select: none; }

/* ---------- Background decor ---------- */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(122, 162, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 162, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 100%);
}

.blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(90px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}
.blob-1 {
  width: 520px; height: 520px;
  left: -160px; top: -120px;
  background: radial-gradient(circle, var(--accent), transparent 65%);
  animation: drift 16s ease-in-out infinite alternate;
}
.blob-2 {
  width: 460px; height: 460px;
  right: -140px; bottom: -160px;
  background: radial-gradient(circle, var(--accent-2), transparent 65%);
  animation: drift 20s ease-in-out infinite alternate-reverse;
}
.blob-3 {
  width: 420px; height: 420px;
  right: -180px; top: -120px;
  background: radial-gradient(circle, var(--accent), transparent 65%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, 40px) scale(1.12); }
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Scroll progress + back to top ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--grad);
  z-index: 60;
}

/* ---------- Back to top (vertical) ---------- */
.back-top {
  position: fixed;
  right: 16px;
  bottom: 130px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}
.back-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-top:hover { color: var(--accent); }
.back-top-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.back-top:hover .back-top-arrow { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.back-top-text {
  writing-mode: vertical-rl;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.back-top-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--accent), transparent);
}

/* ---------- Floating chat cluster ---------- */
.msg-floats {
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 50;
}
.msg-pop {
  position: absolute;
  right: 56px;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateX(12px) scale(0.92);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.msg-pop.open {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}
.msg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}
.msg-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
}
.msg-wa { background: #25d366; }
.msg-fb { background: #0084ff; }
.msg-call {
  background: var(--grad);
  border: 1px solid color-mix(in srgb, var(--accent-2) 50%, transparent);
}
.msg-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px var(--glow);
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}
.msg-toggle:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px var(--glow);
}
.msg-icon-close { display: none; }
.msg-toggle.open .msg-icon-open { display: none; }
.msg-toggle.open .msg-icon-close { display: inline; }

/* ---------- Navbar ---------- */
.navbar {
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s ease, border-color 0.4s ease;
}
.nav-link {
  color: var(--muted);
  position: relative;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  height: 1px; width: 0%;
  background: var(--grad);
  transition: width 0.3s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--accent); }

.icon-btn {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.icon-btn:hover {
  color: var(--text);
  background: var(--card);
  border-color: var(--border);
}

/* ---------- Buttons ---------- */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 13px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  position: relative;
  overflow: hidden;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px var(--glow);
  border: 1px solid transparent;
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 55%;
  left: -70%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px var(--glow); }
.btn-primary:hover::before { left: 130%; }
.btn-ghost {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  transform: translateY(-2px);
}
.btn-primary .btn-arrow { transition: transform 0.3s ease; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }
.btn-ghost .btn-dl { transition: transform 0.3s ease; }
.btn-ghost:hover .btn-dl { transform: translateY(3px); }
.btn-sm { padding: 10px 18px; font-size: 0.78rem; border-radius: 11px; }

/* outline accent button — for primary CTAs, distinct from neutral ghost */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 13px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  background: transparent;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  transition: transform 0.2s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
.btn-outline:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 8px 24px var(--glow);
  transform: translateY(-2px);
}
.btn-outline .btn-arrow { transition: transform 0.3s ease; }
.btn-outline:hover .btn-arrow { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero { isolation: isolate; }

.badge {
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--surface);
}
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(126, 231, 135, 0.6);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(126, 231, 135, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(126, 231, 135, 0); }
  100% { box-shadow: 0 0 0 0 rgba(126, 231, 135, 0); }
}

/* rotating words */
.word-rotate-wrap { display: inline-flex; position: relative; }
.word-rotate {
  display: inline-block;
  position: relative;
  overflow: hidden;
  height: 1.35em;
  vertical-align: bottom;
}
.word-rotate span {
  display: block;
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}
.word-rotate span.is-in { transform: translateY(0); opacity: 1; }
.word-rotate span.is-out { transform: translateY(-110%); opacity: 0; }

/* social buttons */
.social-btn {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.2s ease, background 0.25s ease;
}
.social-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  background: var(--surface);
}

/* ---------- Profile terminal card ---------- */
.profile-card {
  position: relative;
  max-width: 420px;
  margin-inline: auto;
  transform-style: preserve-3d;
}
.p-window {
  background: #0c0e14;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  position: relative;
}
.p-window::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(140deg, rgba(122, 162, 255, 0.55), transparent 38%, transparent 62%, rgba(185, 146, 255, 0.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
}
.p-window::after {
  content: "";
  position: absolute;
  inset: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 65%);
  z-index: -1;
  filter: blur(46px);
}
.p-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: #14161d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.p-dots { display: flex; gap: 7px; }
.p-dots span { width: 11px; height: 11px; border-radius: 50%; }
.p-dots span:nth-child(1) { background: #ff5f57; }
.p-dots span:nth-child(2) { background: #febc2e; }
.p-dots span:nth-child(3) { background: #28c840; }
.p-tab {
  flex: 1;
  text-align: center;
  margin-right: 42px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}
.p-img-wrap {
  padding: 14px;
  background:
    radial-gradient(120% 120% at 50% 0%, #141824 0%, #0c0e14 70%);
}
.p-img {
  display: block;
  width: 100%;
  aspect-ratio: 500 / 462;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.p-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 16px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  color: #d6d9e0;
  background: #0a0c11;
}

/* floating chips */
.p-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 11px;
  background: rgba(16, 18, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  font-weight: 600;
  color: #e6e8ee;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 4;
  animation: floaty 5s ease-in-out infinite;
}
.p-chip img { flex-shrink: 0; }
.p-chip-1 { top: -16px; right: -8px; animation-delay: 0s; }
.p-chip-2 { bottom: -14px; left: -6px; animation-delay: 1.2s; }
.p-chip-3 { top: 18%; left: -10px; animation-delay: 2s; }
.p-chip-4 { bottom: 16%; right: -8px; animation-delay: 0.6s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1.05s step-end infinite;
}
.cursor.sm { height: 12px; }
@keyframes blink { 50% { opacity: 0; } }

/* scroll hint */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-line {
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrolldown 1.8s ease-in-out infinite;
}
@keyframes scrolldown {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Marquee ---------- */
.tape-wrap {
  position: relative;
  padding: 26px 0;
  margin-block: -8px;
  overflow: hidden;
}
.tape-wrap .marquee {
  transform: rotate(-2deg) scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.marquee {
  border-block: 1px solid color-mix(in srgb, #f5c518 35%, transparent);
  background:
    repeating-linear-gradient(
      -45deg,
      #171007 0,
      #171007 26px,
      #241a05 26px,
      #241a05 52px
    );
  padding: 20px 0;
  overflow: hidden;
  position: relative;
}
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, #171007, transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, #171007, transparent); }
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-group {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
  white-space: nowrap;
}
.marquee-group span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f5c518;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}
.marquee-group i {
  font-style: normal;
  color: color-mix(in srgb, #f5c518 75%, transparent);
  font-size: 1.05rem;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section headers ---------- */
.section-head { text-align: center; max-width: 680px; margin-inline: auto; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  padding: 6px 14px;
  border-radius: 999px;
}
.section-title {
  margin-top: 16px;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.section-sub {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
}

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 35%, transparent); }

.quote-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.quote-card .arrow { flex-shrink: 0; }

.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.stat:hover { border-color: color-mix(in srgb, var(--accent) 35%, transparent); transform: translateY(-3px); }
.stat-num-row { display: inline-flex; align-items: baseline; justify-content: center; }
.stat-aside {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1.2;
}
.stat-plus { color: var(--accent); margin-left: 1px; }
.stat .counter {
  display: inline;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1.2;
}
.stat-label { font-size: 0.72rem; color: var(--muted); font-family: "JetBrains Mono", monospace; }

/* ---------- Icon cloud (skills) ---------- */
.tool-group + .tool-group { margin-top: 24px; padding-top: 24px; border-top: 1px dashed var(--border); }
.tool-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.tool-cat-arrow { color: var(--muted); font-size: 0.68rem; opacity: 0.7; }
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
}
.icon-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 7%, var(--card-2));
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--border));
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}
.icon-chip img { width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.3s ease; }
.icon-chip:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--brand) 65%, transparent);
  background: color-mix(in srgb, var(--brand) 12%, var(--card-2));
  transform: translateY(-3px);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 28%, transparent);
}
.icon-chip:hover img { transform: scale(1.14); }

/* ---------- Skills bars ---------- */
.skill-row { display: flex; flex-direction: column; gap: 8px; }
.skill-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
}
.skill-head .name { color: var(--text); }
.skill-head .name .c-fn { color: var(--c-fn); }
.skill-head .pct { color: var(--accent); }
.skill-track {
  height: 8px;
  background: color-mix(in srgb, var(--muted) 14%, transparent);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}
.skill-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--sbrand, var(--accent)) 75%, transparent), var(--sbrand, var(--accent)));
  box-shadow: 0 0 14px color-mix(in srgb, var(--sbrand, var(--accent)) 55%, transparent);
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  padding: 7px 13px;
  border-radius: 9px;
  background: var(--card-2);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.tag .c-kw { color: var(--c-fn); }
.tag:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 22%, transparent);
}

/* ---------- Services ---------- */
.service-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.service-card:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); transform: translateY(-4px); }
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.service-card:hover::after { opacity: 1; }
.service-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.service-icon {
  width: 46px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
}
.service-title { margin-top: 18px; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.service-desc { margin-top: 8px; color: var(--muted); font-size: 0.9rem; line-height: 1.65; }
.service-points { margin-top: 14px; display: flex; flex-direction: column; gap: 7px; }
.service-points li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.82rem;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
}
.service-points li::before { content: "→"; color: var(--accent); font-size: 0.8rem; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  color: var(--accent);
}
a.service-card { text-decoration: none; }
a.service-card:hover { text-decoration: none; }
.project-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  white-space: nowrap;
}
a.project-card { text-decoration: none; }

/* ---------- Projects (browser mockup cards) ---------- */
.project-card { position: relative; }
.project-panel {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 14px;
  box-shadow: var(--shadow);
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.35s ease;
}
.project-panel::before {
  content: "";
  position: absolute;
  left: 8%; right: 8%;
  bottom: 4%;
  height: 55%;
  background: radial-gradient(70% 100% at 50% 100%, color-mix(in srgb, var(--pcolor, #f07c2b) 40%, transparent), transparent 75%);
  filter: blur(26px);
  opacity: 0.55;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}
.project-panel:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  box-shadow: var(--shadow-lg);
}
.project-panel:hover::before { opacity: 0.9; }
.browser {
  display: block;
  position: relative;
  z-index: 1;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0c0e14;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: #14161d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.browser-dots { display: flex; gap: 4px; flex-shrink: 0; }
.browser-dots i { width: 7px; height: 7px; border-radius: 50%; background: #ff5f57; }
.browser-dots i:nth-child(2) { background: #febc2e; }
.browser-dots i:nth-child(3) { background: #28c840; }
.browser-url {
  flex: 1;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #9aa0ac;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  padding: 2px 8px;
  border-radius: 6px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.browser-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: #7ee787;
  flex-shrink: 0;
}
.browser-live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #7ee787;
  box-shadow: 0 0 6px #7ee787;
}
.browser-screen {
  display: block;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: #0c0e14;
}
.browser-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
  filter: saturate(0.9) brightness(0.96);
}
.project-panel:hover .browser-screen img { transform: scale(1.06); filter: saturate(1.05) brightness(1.03); }
.project-body {
  position: relative;
  z-index: 1;
  padding: 20px 4px 4px;
}
.project-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.project-title { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
.project-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.project-link svg { transition: transform 0.3s ease; }
.project-link a:hover svg { transform: translate(3px, -3px); }
.project-desc { margin-top: 8px; color: var(--muted); font-size: 0.9rem; line-height: 1.65; }
.project-tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 7px; }
.project-tags span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--card-2);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* "more work" CTA card fills bento grid */
.project-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 36px 24px;
  height: 100%;
  background: var(--card);
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 22px;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.project-more:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, var(--card));
  transform: translateY(-4px);
}
.project-more .cursor { height: 12px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 6px; bottom: 6px;
  width: 1px;
  background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 15%, transparent));
}
.timeline-item { position: relative; width: 50%; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  top: 6px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
  z-index: 1;
}
.timeline-item.tl-left { left: 0; padding-right: 44px; text-align: right; }
.timeline-item.tl-left::before { right: -6px; }
.timeline-item.tl-right { left: 50%; padding-left: 44px; }
.timeline-item.tl-right::before { left: -6px; }
.tl-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.tl-card:hover { border-color: color-mix(in srgb, var(--accent) 35%, transparent); transform: translateY(-3px); }
.timeline-date {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.timeline-role { margin-top: 6px; font-size: 1.05rem; font-weight: 700; }
.timeline-role .at { color: var(--muted); font-weight: 500; }
.timeline-org { font-family: "JetBrains Mono", monospace; font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.timeline-desc { margin-top: 8px; color: var(--muted); font-size: 0.88rem; line-height: 1.65; }
@media (max-width: 768px) {
  .timeline { padding-left: 26px; }
  .timeline::before { left: 6px; transform: none; }
  .timeline-item { width: 100%; left: 0 !important; padding: 0 0 34px 0 !important; text-align: left !important; }
  .timeline-item::before { left: -25px !important; right: auto !important; top: 18px; }
}

/* ---------- Testimonials ---------- */
.testi-slider { position: relative; max-width: 1080px; margin-left: auto; margin-right: auto; padding: 0 52px; }
#testi-swiper { overflow: hidden; }
.testi-slide { padding: 0 10px; }
.swiper-pagination { position: static; margin-top: 24px; }
.swiper-pagination-bullet { background: var(--border); opacity: 1; width: 8px; height: 8px; transition: all 0.3s ease; }
.swiper-pagination-bullet-active { background: var(--accent); width: 26px; border-radius: 99px; box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 50%, transparent); }
.testi-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.testi-card:hover { border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.testi-quote {
  position: absolute;
  top: -6px; right: 22px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 6rem;
  line-height: 1;
  font-weight: 700;
  color: color-mix(in srgb, var(--accent) 22%, transparent);
  pointer-events: none;
  user-select: none;
}
.testi-stars { color: #f5c518; font-size: 0.85rem; letter-spacing: 2px; }
.testi-text {
  margin-top: 14px;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.7;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 6.12em;
}
.testi-who { margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid color-mix(in srgb, var(--accent) 60%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}
.testi-name { font-size: 0.9rem; font-weight: 600; }
.testi-role { font-size: 0.75rem; color: var(--muted); font-family: "JetBrains Mono", monospace; }
.testi-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 5;
}
.testi-nav:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 25%, transparent); }
.testi-prev { left: 10px; }
.testi-next { right: 10px; }
.testi-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
@media (max-width: 640px) {
  .testi-slider { padding: 0; }
  .testi-prev { left: 6px; }
  .testi-next { right: 6px; }
  .testi-nav { width: 34px; height: 34px; }
}

/* ---------- Contact ---------- */
.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
a.contact-row:hover { border-color: var(--accent); transform: translateX(4px); }
.contact-row-icon {
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  font-size: 0.85rem;
}

.field-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.field {
  width: 100%;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 12px 15px;
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field::placeholder { color: color-mix(in srgb, var(--muted) 60%, transparent); }
.field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

/* ---------- Footer ---------- */
.footer-big {
  font-size: clamp(2.4rem, 9vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

/* ---------- Mobile drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute;
  top: 0; left: 0;
  width: min(82vw, 320px);
  height: 100%;
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transform: translateX(-102%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.drawer-links { display: flex; flex-direction: column; margin-top: 18px; flex: 1; }
.drawer-links a {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.05rem;
  padding: 15px 4px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.2s ease, padding-left 0.25s ease;
}
.drawer-links a::before { content: "//"; color: var(--accent); font-size: 0.8rem; opacity: 0; transition: opacity 0.2s ease; }
.drawer-links a:hover { color: var(--accent); padding-left: 10px; }
.drawer-links a:hover::before { opacity: 1; }
.drawer-foot { margin-top: 18px; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal-d-1 { transition-delay: 0.08s; }
.reveal-d-2 { transition-delay: 0.16s; }
.reveal-d-3 { transition-delay: 0.24s; }
.reveal-d-4 { transition-delay: 0.32s; }
.reveal-d-5 { transition-delay: 0.4s; }
.reveal-d-6 { transition-delay: 0.48s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Small screen tweaks ---------- */
@media (max-width: 640px) {
  .p-chip-1 { top: -12px; right: -2px; }
  .p-chip-2 { bottom: -12px; left: -2px; }
  .p-chip-3 { top: 16%; left: -4px; }
  .p-chip-4 { bottom: 14%; right: -4px; }
  .footer-big { font-size: clamp(2.2rem, 12vw, 3.4rem); }
}

/* ============================================================
   Multipage additions — inner page hero, pricing, gallery, blog,
   careers, process, CTA strip
   ============================================================ */

/* ---------- Logo ---------- */
.logo-img {
  display: block;
  height: 76px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 150px 0 72px;
}
.page-hero .grid-bg { position: absolute; inset: 0; z-index: -1; }
.page-hero .blob { position: absolute; z-index: -1; }
.page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.page-hero-title {
  margin-top: 16px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.page-hero-sub {
  margin-top: 14px;
  max-width: 600px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

/* ---------- CTA strip ---------- */
.cta-strip {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 48px 28px;
  text-align: center;
  background:
    linear-gradient(var(--card) 0 0) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
}
.cta-strip::after {
  content: "";
  position: absolute;
  inset: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 65%);
  filter: blur(46px);
  pointer-events: none;
  z-index: 0;
}
.cta-strip > * { position: relative; z-index: 1; }

/* ---------- Process steps ---------- */
.process-step {
  position: relative;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.process-step:hover { border-color: color-mix(in srgb, var(--accent) 35%, transparent); transform: translateY(-3px); }
.process-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--text);
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 20px var(--glow);
}
.process-title { margin-top: 16px; font-size: 1.05rem; font-weight: 600; }
.process-desc { margin-top: 8px; color: var(--muted); font-size: 0.9rem; line-height: 1.65; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.price-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 38%, transparent); box-shadow: var(--shadow-lg); }
.price-card.popular {
  background:
    linear-gradient(var(--card) 0 0) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
  box-shadow: 0 20px 50px var(--glow);
}
.price-popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.price-name { font-family: "JetBrains Mono", monospace; font-size: 0.82rem; color: var(--accent); letter-spacing: 0.04em; }
.price-amount {
  margin-top: 14px;
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-amount small { font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.price-desc { margin-top: 10px; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.price-features {
  margin: 22px 0;
  padding-top: 22px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
}
.price-features li::before {
  content: "✓";
  color: var(--green);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.price-features li.no::before { content: "—"; color: color-mix(in srgb, var(--muted) 55%, transparent); }
.price-card .btn-primary, .price-card .btn-outline { width: 100%; justify-content: center; margin-top: auto; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.gallery-item {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  aspect-ratio: 2 / 1;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 40%, transparent); box-shadow: var(--shadow-lg); }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.96);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.07); filter: saturate(1.05) brightness(1.03); }
.gallery-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 34px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: linear-gradient(transparent, rgba(10, 11, 13, 0.88));
  color: #fff;
}
.gallery-cap b { font-size: 0.95rem; }
.gallery-cap span { font-family: "JetBrains Mono", monospace; font-size: 0.72rem; color: rgba(255, 255, 255, 0.7); }

.gallery-item.hide { display: none; }
.gallery-item.photo { cursor: pointer; width: 100%; padding: 0; text-align: left; font: inherit; color: inherit; }

/* ---------- Gallery lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 6, 8, 0.92);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-figure {
  margin: 0;
  max-width: min(1080px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lightbox-caption {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  color: var(--text);
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.lightbox-close:hover { background: color-mix(in srgb, var(--accent) 70%, transparent); transform: rotate(90deg); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 56px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.lightbox-nav:hover { background: color-mix(in srgb, var(--accent) 70%, transparent); }
.lightbox-prev { left: 16px; }
.lightbox-prev:hover { transform: translateY(-50%) translateX(-3px); }
.lightbox-next { right: 16px; }
.lightbox-next:hover { transform: translateY(-50%) translateX(3px); }
body.lb-open { overflow: hidden; }
@media (max-width: 640px) {
  .lightbox-nav { width: 40px; height: 48px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 40%, transparent); box-shadow: var(--shadow-lg); }
.blog-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(80% 120% at 20% 0%, color-mix(in srgb, var(--tb-1, var(--accent)) 28%, transparent), transparent 60%),
    radial-gradient(80% 120% at 90% 100%, color-mix(in srgb, var(--tb-2, var(--accent-2)) 28%, transparent), transparent 60%),
    var(--card-2);
}
.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.thumb-art {
  font-family: "JetBrains Mono", monospace;
  font-size: 2.4rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: -0.04em;
  user-select: none;
}
.blog-card:hover .blog-thumb img { transform: scale(1.06); }
.blog-cat {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.blog-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.blog-meta { display: flex; align-items: center; gap: 10px; font-family: "JetBrains Mono", monospace; font-size: 0.7rem; color: var(--muted); }
.blog-title { margin-top: 10px; font-size: 1.12rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; }
.blog-title a { color: var(--text); transition: color 0.25s ease; }
.blog-title a:hover { color: var(--accent); }
.blog-excerpt { margin-top: 10px; color: var(--muted); font-size: 0.88rem; line-height: 1.65; flex: 1; }
.blog-link {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
}
.blog-link svg { transition: transform 0.3s ease; }
.blog-link:hover svg { transform: translateX(4px); }

/* ---------- Careers ---------- */
.job-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.job-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 38%, transparent); }
.job-role { font-size: 1.15rem; font-weight: 700; }
.job-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; font-family: "JetBrains Mono", monospace; font-size: 0.75rem; color: var(--muted); }
.job-tag {
  padding: 4px 10px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--accent);
  font-size: 0.68rem;
}
.job-desc { margin-top: 14px; color: var(--muted); font-size: 0.92rem; line-height: 1.7; max-width: 640px; }

/* ---------- Check list (benefits) ---------- */
.check-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.check-list li:hover { border-color: color-mix(in srgb, var(--accent) 35%, transparent); transform: translateY(-2px); }
.check-list li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---------- Responsive footer nav ---------- */
@media (min-width: 1024px) {
  .footer-nav-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   Infyrasoft agency additions — dropdown nav, hero slider,
   team, clients strip, filters, detail pages
   ============================================================ */

/* ---------- Navbar dropdown ---------- */
.nav-dd { position: relative; }
.nav-dd-head { display: inline-flex; align-items: center; gap: 5px; }
.nav-caret { transition: transform 0.25s ease; }
.nav-dd:hover .nav-caret { transform: rotate(180deg); }
.nav-dd-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  min-width: 230px;
  padding: 8px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 60;
}
.nav-dd:hover .nav-dd-panel,
.nav-dd:focus-within .nav-dd-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-dd-panel a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.nav-dd-panel a::before { content: "→"; color: var(--accent); opacity: 0; transition: opacity 0.2s ease; }
.nav-dd-panel a:hover { color: var(--text); background: color-mix(in srgb, var(--accent) 8%, transparent); transform: translateX(2px); }
.nav-dd-panel a:hover::before { opacity: 1; }
.nav-dd-panel a.active { color: var(--accent); }

/* ---------- Drawer accordion ---------- */
.drawer-acc {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 4px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: 1.05rem;
  cursor: pointer;
  text-align: left;
}
.drawer-acc svg { transition: transform 0.3s ease; flex-shrink: 0; }
.drawer-acc.open svg { transform: rotate(90deg); }
.drawer-sub { display: none; padding: 6px 0 10px 18px; }
.drawer-sub.open { display: block; }
.drawer-sub a {
  display: block;
  padding: 10px 4px;
  border-bottom: 1px dashed var(--border);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.drawer-sub a:hover { color: var(--accent); padding-left: 8px; }
.drawer-links a.active { color: var(--accent); }

/* ---------- Hero slider ---------- */
.hero-slider { width: 100%; position: relative; }
.hero-slider .swiper-slide { padding: 108px 0 90px; }

/* Full-bleed Three.js wireframe wave background */
.hero-wave {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0a0b0d;
  pointer-events: none;
}
[data-theme="light"] .hero-wave { background: #ebeced; }
.hero-wave canvas { display: block; width: 100%; height: 100%; }

/* Full-width slide — rounded card on the wave background */
.hero-slide {
  position: relative;
  height: min(72vh, 660px);
  min-height: 460px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0c0e14;
  box-shadow: var(--shadow-lg);
}
.hero-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) brightness(0.92);
}
[data-theme="light"] .hero-slide {
  border-color: var(--bg);
  box-shadow: 0 20px 45px rgba(20, 22, 30, 0.16);
}
/* readability gradient over the image */
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(10, 11, 13, 0.92) 0%, rgba(10, 11, 13, 0.6) 36%, rgba(10, 11, 13, 0.12) 62%, rgba(10, 11, 13, 0) 78%),
    linear-gradient(0deg, rgba(10, 11, 13, 0.82) 0%, rgba(10, 11, 13, 0) 42%);
  pointer-events: none;
}
/* accent glow bleeding in from the right */
.hero-slide::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--hc, var(--accent)) 40%, transparent), transparent 65%);
  filter: blur(50px);
  z-index: 1;
  pointer-events: none;
}
.hero-slide-copy {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 660px;
  padding: 42px clamp(24px, 6vw, 64px);
}
.hero-slide-badge {
  background: rgba(12, 14, 20, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #dbe0ea;
}
.hero-slide-title {
  margin-top: 18px;
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.hero-slide-sub {
  margin-top: 16px;
  font-size: clamp(0.96rem, 1.4vw, 1.08rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.84);
  max-width: 46ch;
}
.hero-cta-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: transparent;
}
.hero-cta-light:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 18px var(--glow);
}
.hero-social {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  transition: all 0.25s ease;
}
.hero-social:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}
.hero-social svg,
.social-btn svg { width: 16px; height: 16px; }

.hero-nav {
  position: absolute;
  left: 50%;
  bottom: 118px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  z-index: 15;
}
.hero-pp { display: flex; align-items: center; gap: 7px; }

/* Scroll-down mouse indicator (hero bottom center) */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(12, 14, 20, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  pointer-events: none;
}
[data-theme="light"] .scroll-hint {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(15, 17, 22, 0.12);
}
.scroll-hint-track {
  position: relative;
  width: 24px;
  height: 38px;
  border-radius: 13px;
  border: 2px solid var(--muted);
}
.scroll-hint-track::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 99px;
  background: var(--accent);
  animation: scroll-dot 1.7s ease-in-out infinite;
}
@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(13px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
.scroll-hint-text {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-pp .swiper-pagination-bullet { width: 8px; height: 8px; background: var(--border); opacity: 1; transition: all 0.3s ease; }
.hero-pp .swiper-pagination-bullet-active { width: 28px; border-radius: 99px; background: var(--accent); box-shadow: 0 0 10px var(--glow); }

@media (max-width: 640px) {
  .hero-slider .swiper-slide { padding: 100px 0 74px; }
  .hero-slide { min-height: 420px; height: 62vh; }
  .hero-slide-copy { justify-content: flex-end; padding: 26px 22px; }
  .hero-slide-title { font-size: 1.72rem; }
  .hero-slide-sub { font-size: 0.9rem; margin-top: 12px; }
  .hero-nav { bottom: 100px; }
}

/* 16:9 banner card on hero slides */
.hero-banner {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0c0e14;
  box-shadow: var(--shadow-lg);
}
.hero-banner::after {
  content: "";
  position: absolute;
  inset: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--hc, var(--accent)) 45%, transparent), transparent 65%);
  filter: blur(46px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}
.hero-banner-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: #14161d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.hero-banner-tab {
  flex: 1;
  text-align: center;
  margin-right: 30px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.55);
}
.hero-banner > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) brightness(0.97);
}
.hero-banner-cap {
  position: absolute;
  z-index: 3;
  left: 14px; bottom: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border-radius: 10px;
  background: rgba(16, 18, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.72rem;
  color: #e6e8ee;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero-banner-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(16, 18, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.74rem;
  font-weight: 600;
  color: #e6e8ee;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}
.hero-banner-chip img { width: 18px; height: 18px; }
.hero-banner-chip-1 { top: -16px; right: 6px; }
.hero-banner-chip-2 { top: 22%; left: 8px; }
@media (max-width: 640px) {
  .hero-banner-chip-1 { top: -12px; right: 2px; }
  .hero-banner-chip-2 { display: none; }
}

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 22px 26px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 38%, transparent); box-shadow: var(--shadow-lg); }
.team-avatar {
  width: 92px; height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: "JetBrains Mono", monospace;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad);
  border: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent);
  object-fit: cover;
  overflow: hidden;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-name { margin-top: 16px; font-size: 1.08rem; font-weight: 700; }
.team-role { margin-top: 3px; font-family: "JetBrains Mono", monospace; font-size: 0.74rem; color: var(--accent); }
.team-bio { margin-top: 12px; color: var(--muted); font-size: 0.86rem; line-height: 1.65; }

/* ---------- Clients strip ---------- */
.clients-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 42px; }
.client-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  color: var(--muted);
  opacity: 0.65;
  transition: opacity 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.client-logo:hover { opacity: 1; color: var(--text); transform: translateY(-2px); }
.client-mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  background: color-mix(in srgb, var(--cc, var(--accent)) 16%, var(--card));
  border: 1px solid color-mix(in srgb, var(--cc, var(--accent)) 30%, var(--border));
  flex-shrink: 0;
}

/* ---------- Portfolio filter ---------- */
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.filter-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  cursor: pointer;
  transition: all 0.25s ease;
}
.filter-btn:hover { color: var(--text); border-color: var(--accent); }
.filter-btn.active { background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: var(--accent); color: var(--accent); }
.project-card.hide { display: none; }

/* ---------- Service detail ---------- */
.svc-meta-grid { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
@media (max-width: 800px) { .svc-meta-grid { grid-template-columns: 1fr; } }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--card-2);
  border: 1px solid var(--border);
  color: var(--muted);
}
.svc-other { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.svc-other a {
  display: block;
  padding: 16px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  transition: all 0.25s ease;
}
.svc-other a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* ---------- Case study detail ---------- */
.cs-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .cs-grid { grid-template-columns: 1fr; } }
.cs-meta-box { display: flex; flex-direction: column; gap: 22px; }
.cs-block h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.cs-block p { color: var(--muted); font-size: 0.92rem; line-height: 1.75; }

/* ---------- Blog post detail ---------- */
.post-wrap { max-width: 760px; margin-inline: auto; }
.article-body { display: flex; flex-direction: column; gap: 18px; }
.article-body p { color: var(--muted); font-size: 1.02rem; line-height: 1.85; }
.article-quote {
  border-left: 3px solid var(--accent);
  background: var(--card);
  padding: 22px 24px;
  border-radius: 0 14px 14px 0;
  font-size: 1.1rem;
  line-height: 1.7;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
}
.author-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

/* ---------- Buttons: uppercase labels optional ---------- */
.btn-lab { display: inline-flex; align-items: center; gap: 6px; }
